diff --git a/dist/apps/admin-gui/243.a5a89586dfc2013d.js b/dist/apps/admin-gui/243.3cb96387b1cb7424.js similarity index 71% rename from dist/apps/admin-gui/243.a5a89586dfc2013d.js rename to dist/apps/admin-gui/243.3cb96387b1cb7424.js index 659cdefb6..07d59300f 100644 --- a/dist/apps/admin-gui/243.a5a89586dfc2013d.js +++ b/dist/apps/admin-gui/243.3cb96387b1cb7424.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:($,w,o)=>{o.d(w,{G:()=>g});var v=o(94650);let g=(()=>{class n{constructor(){this.entityDetailChange=new v.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(E){return new(E||n)},n.\u0275prov=v.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:($,w,o)=>{o.d(w,{y:()=>Q});var v=o(32105),g=o(10036),n=o(32080),d=o(94650),E=o(94364),s=o(36895),t=o(51572),e=o(96214),L=o(38383),N=o(64901),i=o(89383);function G(Z,y){1&Z&&d._UZ(0,"mat-spinner",5)}const D=function(){return["id","fullName"]};function M(Z,y){if(1&Z){const A=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){d.CHM(A);const Y=d.oxw();return d.KtG(Y.refreshTable())}),d.qZA()}if(2&Z){const A=d.oxw();d.Q6J("displayedColumns",d.DdM(5,D))("disableRouting",!A.routeAuth)("filter",A.filterValue)("members",A.members)("tableId",A.tableId)}}let Q=(()=>{class Z{constructor(A,P,Y,V){this.route=A,this.resourceService=P,this.authResolver=Y,this.entityStorageService=V,this.loading=!1,this.filterValue="",this.tableId=g.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(A=>{this.members=A,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(A){this.filterValue=A}}return Z.\u0275fac=function(A){return new(A||Z)(d.Y36(E.gz),d.Y36(v.xk),d.Y36(n.x4),d.Y36(n.fb))},Z.\u0275cmp=d.Xpm({type:Z,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(A,P){1&A&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return P.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(V){return P.applyFilter(V)}),d.qZA(),d.YNc(5,G,1,0,"mat-spinner",3),d.YNc(6,M,1,6,"perun-web-apps-members-list",4)),2&A&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",P.loading),d.xp6(1),d.Q6J("ngIf",!P.loading))},dependencies:[s.O5,t.Ou,e.t,L.O,N.P,i.X$]}),Z})()},49546:($,w,o)=>{o.d(w,{D:()=>S});var v=o(32105),g=o(10036),n=o(95017),d=o(9244),E=o(65412),s=o(32080),t=o(94650),e=o(89383),L=o(36895),N=o(4859),i=o(3848),G=o(51572),D=o(64901),M=o(90439),Q=o(60205);function Z(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function A(l,_){if(1&l&&t._UZ(0,"app-services-list",16),2&l){const c=t.oxw(2);t.Q6J("disableRouting",!0)("services",c.filteredServices)("displayedColumns",t.DdM(5,y))("selection",c.selection)("tableId",c.tableId)}}const P=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){t.CHM(c);const W=t.oxw();return t.KtG(W.applyFilter(x))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){t.CHM(c);const W=t.oxw();return t.KtG(W.servicePackageSelected(x))}),t.qZA()(),t.YNc(12,A,1,6,"app-services-list",15),t.qZA()()()}if(2&l){const c=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",c.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,P))("filterValue",c.filterValue)("selection",c.selection)("tableId",c.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",c.selectedPackage)("servicePackages",c.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==c.selectedPackage.id)}}let V=(()=>{class l{constructor(c,m,x,W,z,ce){this.dialogRef=c,this.data=m,this.notificator=x,this.translate=W,this.resourceManager=z,this.servicesManager=ce,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=g.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(m=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=m;for(const W of c)for(const z of m)W.id===z.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(z),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(c){this.filterValue=c}servicePackageSelected(c){this.selectedPackage=c,-1!==c.id?this.servicesManager.getServicesFromServicesPackage(c.id).subscribe(m=>{this.filteredServices=m}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(c=>{this.notificator.showSuccess(c),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const c=[];for(const m of this.selection.selected)c.push(m.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(E.so),t.Y36(E.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk),t.Y36(v.KK))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(c,m){1&c&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Z,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return m.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return m.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&c&&(t.Tol(m.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===m.selection.selected.length&&-1===m.selectedPackage.id||m.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===m.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[L.O5,N.lW,i.SP,i.uX,E.uh,E.xY,E.H8,G.Ou,D.P,M.F,Q.Q,e.X$]}),l})();var B=o(30671);function q(l,_){1&l&&t._UZ(0,"mat-spinner",6)}function te(l,_){1&l&&t._UZ(0,"th",15)}function se(l,_){if(1&l&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&l){const c=_.$implicit;t.xp6(1),t.Oqu(c.name)}}function U(l,_){1&l&&t._UZ(0,"tr",17)}function H(l,_){1&l&&t._UZ(0,"tr",18)}function h(l,_){if(1&l&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,U,1,0,"tr",13),t.YNc(12,H,1,0,"tr",14),t.qZA()()),2&l){const c=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",c.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",c.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",c.displayedColumns)}}let T=(()=>{class l{constructor(c,m,x,W,z){this.dialogRef=c,this.data=m,this.notificator=x,this.translate=W,this.resourcesManager=z,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new B.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const m of this.data.services)c.push(m.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(E.so),t.Y36(E.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,m){1&c&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,q,1,0,"mat-spinner",1),t.YNc(5,h,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return m.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return m.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&c&&(t.Tol(m.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",m.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[L.O5,N.lW,B.BZ,B.fO,B.as,B.w1,B.Dz,B.nj,B.ge,B.ev,B.XQ,B.Gk,E.uh,E.xY,E.H8,G.Ou,e.X$]}),l})();var J=o(94364),X=o(96214),oe=o(7434);function ne(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const c=t.oxw();t.Q6J("disabled",0===c.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ie(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function C(l,_){if(1&l&&t._UZ(0,"app-services-list",10),2&l){const c=t.oxw();t.Q6J("disableRouting",!c.serviceRoutingAuth)("selection",c.selected)("displayedColumns",c.displayedColumns)("filterValue",c.filterValue)("services",c.assignedServices)("tableId",c.tableId)}}let S=(()=>{class l{constructor(c,m,x,W,z){this.route=c,this.resourcesManager=m,this.dialog=x,this.guiAuthResolver=W,this.entityStorageService=z,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=g.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(c=>{this.assignedServices=c,this.selected.clear(),this.loading=!1})}addService(){const c=(0,d.kZ)();c.width="800px",c.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(V,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}removeServices(){const c=(0,d.kZ)();c.width="500px",c.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(T,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}applyFilter(c){this.filterValue=c}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(J.gz),t.Y36(v.xk),t.Y36(E.uw),t.Y36(s.x4),t.Y36(s.fb))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(c,m){1&c&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return m.loadAllServices()}),t.qZA(),t.YNc(4,ne,3,3,"button",2),t.YNc(5,re,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(W){return m.applyFilter(W)}),t.qZA(),t.YNc(7,ie,1,0,"mat-spinner",5),t.YNc(8,C,1,6,"app-services-list",6)),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",m.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",m.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading))},dependencies:[L.O5,N.lW,G.Ou,Q.Q,X.t,oe.L,e.X$]}),l})()},92090:($,w,o)=>{o.d(w,{X:()=>y});var v=o(32080),g=o(32105),n=o(94650),d=o(36895),E=o(3848),s=o(19191),t=o(12651),e=o(89383);function L(A,P){1&A&&(n._uU(0),n.ALo(1,"translate")),2&A&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(A,P){if(1&A&&n._UZ(0,"app-one-entity-attribute-page",4),2&A){const Y=n.oxw();n.Q6J("entityId",Y.resource.id)("entity","resource")}}function i(A,P){1&A&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&A&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function G(A,P){if(1&A&&n._UZ(0,"app-two-entity-attribute-page",5),2&A){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function D(A,P){1&A&&(n.TgZ(0,"mat-tab"),n.YNc(1,i,3,6,"ng-template",1),n.YNc(2,G,1,3,"ng-template",2),n.qZA())}function M(A,P){1&A&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&A&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Q(A,P){if(1&A&&n._UZ(0,"app-two-entity-attribute-page",5),2&A){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function Z(A,P){1&A&&(n.TgZ(0,"mat-tab"),n.YNc(1,M,3,6,"ng-template",1),n.YNc(2,Q,1,3,"ng-template",2),n.qZA())}let y=(()=>{class A{constructor(Y,V,B){this.authResolver=Y,this.resourceManager=V,this.entityStorageService=B}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return A.\u0275fac=function(Y){return new(Y||A)(n.Y36(v.x4),n.Y36(g.xk),n.Y36(v.fb))},A.\u0275cmp=n.Xpm({type:A,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,V){2&Y&&n.ekj("router-component",V.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,V){1&Y&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,L,2,3,"ng-template",1),n.YNc(7,N,1,2,"ng-template",2),n.qZA(),n.YNc(8,D,3,0,"mat-tab",3),n.YNc(9,Z,3,0,"mat-tab",3),n.qZA()()),2&Y&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",V.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",V.resourceGroupAttAuth))},dependencies:[d.O5,E.SP,E.uD,E.uX,E.Vc,s.Y,t.t,e.X$]}),A})()},98918:($,w,o)=>{o.d(w,{b:()=>C});var v=o(36769),g=o(69024),n=o(32105),d=o(9244),E=o(32080),s=o(19516),t=o(16074),e=o(533),L=o(22158),N=o(82722),i=o(94650),G=o(94364),D=o(77968),M=o(65412),Q=o(15003),Z=o(36895),y=o(97392),A=o(4859),P=o(51572),Y=o(10266),V=o(61283),B=o(4235),q=o(89383);function te(S,l){1&S&&i._UZ(0,"mat-spinner",3)}function se(S,l){if(1&S){const _=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(_);const m=i.oxw(2);return i.KtG(m.editResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function U(S,l){if(1&S){const _=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(_);const m=i.oxw(2);return i.KtG(m.deleteResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"delete_forever"),i.qZA()()}}const H=function(S){return["/organizations",S]};function h(S,l){if(1&S&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.Q6J("routerLink",i.VKq(2,H,_.resource.vo.id)),i.xp6(1),i.Oqu(_.resource.vo.name)}}function T(S,l){if(1&S&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.xp6(1),i.hij(" ",_.resource.vo.name," ")}}const J=function(S){return["/facilities",S]};function X(S,l){if(1&S&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.Q6J("routerLink",i.VKq(2,J,_.resource.facilityId)),i.xp6(1),i.Oqu(_.resource.facility.name)}}function oe(S,l){if(1&S&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.xp6(1),i.hij(" ",_.resource.facility.name," ")}}const ne=function(){return{color:"black"}},re=function(S){return[S]};function ie(S,l){if(1&S&&(i.TgZ(0,"div")(1,"div",4),i._UZ(2,"mat-icon",5),i.ALo(3,"translate"),i.TgZ(4,"div",6)(5,"div",7)(6,"a",8),i._uU(7),i.qZA(),i.TgZ(8,"span",9),i._uU(9),i.qZA(),i.YNc(10,se,3,0,"button",10),i.YNc(11,U,3,0,"button",11),i.qZA(),i.TgZ(12,"div"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"span",12),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"translate"),i.YNc(19,h,2,4,"a",13),i.YNc(20,T,2,1,"span",2),i._uU(21),i.ALo(22,"translate"),i.YNc(23,X,2,4,"a",14),i.YNc(24,oe,2,1,"span",2),i._uU(25),i.ALo(26,"translate"),i.qZA()()(),i._UZ(27,"app-animated-router-outlet"),i.qZA()),2&S){const _=i.oxw();i.xp6(2),i.s9C("matTooltip",i.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),i.Q6J("ngStyle",i.DdM(32,ne)),i.xp6(4),i.Q6J("routerLink",i.VKq(33,re,_.baseUrl)),i.xp6(1),i.hij(" ",_.resource.name," "),i.xp6(2),i.hij(" \xa0#",_.resource.id," "),i.xp6(1),i.Q6J("ngIf",_.editResourceAuth),i.xp6(1),i.Q6J("ngIf",_.deleteAuth),i.xp6(2),i.AsE("",i.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),i.xp6(3),i.AsE(" ",i.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",i.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),i.xp6(3),i.Q6J("ngIf",_.voLinkAuth),i.xp6(1),i.Q6J("ngIf",!_.voLinkAuth),i.xp6(1),i.AsE(" #",_.resource.voId,", ",i.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),i.xp6(2),i.Q6J("ngIf",_.facilityLinkAuth),i.xp6(1),i.Q6J("ngIf",!_.facilityLinkAuth),i.xp6(1),i.lnq(" #",_.resource.facilityId,", ",i.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let C=(()=>{class S extends((0,L.T)()){constructor(_,c,m,x,W,z,ce,f,F,u,R){super(),this.route=_,this.facilityManager=c,this.vosManagerService=m,this.resourcesManager=x,this.sideMenuService=W,this.sideMenuItemService=z,this.dialog=ce,this.guiAuthResolver=f,this.router=F,this.entityStorageService=u,this.reloadEntityDetail=R,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,N.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const c=Number(_.resourceId);this.resourcesManager.getRichResourceById(c).subscribe(m=>{this.resource=m,this.entityStorageService.setEntity({id:m.id,voId:m.voId,facilityId:m.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(m,!1),this.facilityManager.getFacilityById(m.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(m,!0),this.vosManagerService.getVoById(m.voId).subscribe(x=>{this.vo=x,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let _;const c=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,c])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,c]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(c=>{_=c;const m=(0,d.kZ)();m.width="450px",m.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,m).afterClosed().subscribe(W=>{W&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(z=>{this.resource=z,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(m=>{m&&this.router.navigate(["../"],{relativeTo:this.route})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return S.\u0275fac=function(_){return new(_||S)(i.Y36(G.gz),i.Y36(n.IQ),i.Y36(n.YF),i.Y36(n.xk),i.Y36(D.D),i.Y36(g.V),i.Y36(M.uw),i.Y36(E.x4),i.Y36(G.F0),i.Y36(E.fb),i.Y36(Q.G))},S.\u0275cmp=i.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[i.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"resource-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["queryParamsHandling","merge","class","resource-link",3,"routerLink",4,"ngIf"],["class","resource-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,c){1&_&&(i.TgZ(0,"div",0),i._UZ(1,"perun-web-apps-back-button"),i.YNc(2,te,1,0,"mat-spinner",1),i.YNc(3,ie,28,35,"div",2),i.qZA()),2&_&&(i.xp6(2),i.Q6J("ngIf",c.loading),i.xp6(1),i.Q6J("ngIf",!c.loading&&void 0!==c.resource))},dependencies:[Z.O5,Z.PC,G.yS,y.Hw,A.lW,P.Ou,Y.gM,V.A,B.W,q.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[v.Ji]}}),S})()},258:($,w,o)=>{o.d(w,{K:()=>ce});var v=o(32105),g=o(95017),n=o(65412),d=o(30671),E=o(32080),s=o(94650),t=o(89383),e=o(36895),L=o(4859),N=o(51572);function i(f,F){1&f&&s._UZ(0,"mat-spinner",6)}function G(f,F){1&f&&s._UZ(0,"th",15)}function D(f,F){if(1&f&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&f){const u=F.$implicit;s.xp6(1),s.Oqu(u.name)}}function M(f,F){1&f&&s._UZ(0,"tr",17)}function Q(f,F){1&f&&s._UZ(0,"tr",18)}function Z(f,F){if(1&f&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,G,1,0,"th",11),s.YNc(10,D,2,1,"td",12),s.BQk(),s.YNc(11,M,1,0,"tr",13),s.YNc(12,Q,1,0,"tr",14),s.qZA()()),2&f){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let y=(()=>{class f{constructor(u,R,I,k,K){this.dialogRef=u,this.data=R,this.notificator=I,this.translate=k,this.resourceManager=K,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const R of this.data.groups)u.push(R.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(E.V6),s.Y36(t.sK),s.Y36(v.xk))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(u,R){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,i,1,0,"mat-spinner",1),s.YNc(5,Z,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return R.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return R.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",R.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,L.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,n.uh,n.xY,n.H8,N.Ou,t.X$]}),f})();var A=o(10036),P=o(24006),Y=o(90455),V=o(86257),B=o(24179),q=o(64901);const te=["stepper"];function se(f,F){1&f&&s._UZ(0,"mat-spinner",4)}function U(f,F){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function H(f,F){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function T(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,U,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.applyFilter(I))}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,H,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeSubgroupsMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.autoAssignSubgroups=I)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeInactiveMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.asActive=I)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeAsyncMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.async=I)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&f){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,h))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function J(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function X(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&f){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function oe(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ne(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,X,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&f){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let re=(()=>{class f{constructor(u,R,I,k,K,ee,pe,ge){this.dialogRef=u,this.data=R,this.notificator=I,this.translate=k,this.resourceManager=K,this.groupService=ee,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new g.Ov(!0,[]),this.filterValue="",this.tableId=A.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(R=>{for(const I of R)-1===u.findIndex(k=>k.id===I.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,I])&&this.unAssignedGroups.push(I);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const u=[];for(const R of this.selection.selected)u.push(R.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(E.V6),s.Y36(t.sK),s.Y36(v.xk),s.Y36(v.ff),s.Y36(E.x4),s.Y36(s.sBO))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,R){if(1&u&&s.Gf(te,5),2&u){let I;s.iGM(I=s.CRH())&&(R.stepper=I.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(u,R){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,se,1,0,"mat-spinner",1),s.YNc(5,T,25,28,"div",2),s.YNc(6,ne,7,6,"div",3),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading&&R.stepper))},dependencies:[e.O5,P.JJ,P.On,L.lW,n.uh,n.xY,n.H8,N.Ou,Y.Rr,V.C0,V.VY,V.Vq,B.W,q.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),f})();var ie=o(9244),C=o(64080),S=o(94364),l=o(10266),_=o(96214);function c(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function m(f,F){1&f&&s._UZ(0,"mat-spinner",9)}const x=function(f){return[f]},W=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function z(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.loadAllGroups())}),s.qZA()}if(2&f){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,x,u.assignedGroups[0])))("displayedColumns",s.DdM(12,W))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class f{constructor(u,R,I,k,K){this.route=u,this.resourcesManager=R,this.dialog=I,this.guiAuthResolver=k,this.entityStorageService=K,this.assignedGroups=[],this.selected=new g.Ov(!0,[]),this.filteredValue="",this.tableId=A.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[C.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(K=>{const ee=K.enrichedGroup.group;return ee.status=K.status,ee.failureCause=K.failureCause,ee.sourceGroupId=K.sourceGroupId,ee});const R=this.assignedGroups.map(K=>K.id),I=this.assignedGroups.filter((K,ee)=>R.indexOf(K.id)===ee),k=this.assignedGroups.filter((K,ee)=>{const pe=R.indexOf(K.id);return pe!==ee&&(null===K.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(K=>K.id);I.forEach(K=>{k.includes(K.id)&&(K.moreTypesOfAssignment=!0)}),this.assignedGroups=I,this.groupsToDisable=new Set(this.assignedGroups.filter(K=>!!K.sourceGroupId&&!K.moreTypesOfAssignment).map(K=>K.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ie.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(I=>this.groupsToDisable.has(I.id))},this.dialog.open(re,u).afterClosed().subscribe(I=>{I&&this.loadAllGroups()})}removeGroups(){const u=(0,ie.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,u).afterClosed().subscribe(I=>{I&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(S.gz),s.Y36(v.xk),s.Y36(n.uw),s.Y36(E.x4),s.Y36(E.fb))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,R){1&u&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return R.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return R.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return R.applyFilter(k)}),s.qZA(),s.YNc(11,m,1,0,"mat-spinner",6),s.YNc(12,z,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",R.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,R.resource))),s.xp6(1),s.Q6J("disabled",0===R.selected.selected.length||!R.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",R.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading))},dependencies:[e.O5,L.lW,N.Ou,l.gM,B.W,_.t,q.P,t.X$]}),f})()},4675:($,w,o)=>{o.d(w,{H:()=>N});var v=o(32105),g=o(32080),n=o(94650),d=o(94364),E=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const D=n.oxw();n.xp6(1),n.Q6J("items",D.navItems)("size","small")}}let N=(()=>{class i{constructor(D,M,Q,Z,y){this.resourcesManager=D,this.route=M,this.guiAuthResolver=Q,this.entityStorageService=Z,this.routePolicyService=y,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(D){const M=D?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${M}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`/${M}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${M}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${M}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${M}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${M}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return i.\u0275fac=function(D){return new(D||i)(n.Y36(v.xk),n.Y36(d.gz),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(D,M){2&D&&n.ekj("router-component",M.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(D,M){1&D&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&D&&(n.Q6J("ngIf",M.loading),n.xp6(1),n.Q6J("ngIf",!M.loading))},dependencies:[E.O5,s.Ou,t.L]}),i})()},20057:($,w,o)=>{o.d(w,{O:()=>d});var v=o(32080),g=o(94650),n=o(28361);let d=(()=>{class E{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return E.\u0275fac=function(t){return new(t||E)(g.Y36(v.x4),g.Y36(v.fb))},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&g._UZ(0,"app-managers-page",0),2&t&&g.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),E})()},16500:($,w,o)=>{o.d(w,{h:()=>N});var v=o(32105),g=o(32080),n=o(94650),d=o(94364),E=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const D=n.oxw();n.xp6(1),n.Q6J("items",D.items)("size","small")}}let N=(()=>{class i{constructor(D,M,Q,Z,y){this.route=D,this.resourceManager=M,this.authResolver=Q,this.entityStorageService=Z,this.routePolicyService=y,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(D){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${D?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return i.\u0275fac=function(D){return new(D||i)(n.Y36(d.gz),n.Y36(v.xk),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(D,M){2&D&&n.ekj("router-component",M.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(D,M){1&D&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&D&&(n.Q6J("ngIf",M.loading),n.xp6(1),n.Q6J("ngIf",!M.loading))},dependencies:[E.O5,s.Ou,t.L]}),i})()},60113:($,w,o)=>{o.d(w,{t:()=>d});var v=o(36769),g=o(94650),n=o(61283);let d=(()=>{class E{}return E.\u0275fac=function(t){return new(t||E)},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&g.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&g._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[v.Ji]}}),E})()},20872:($,w,o)=>{o.d(w,{v:()=>se});var v=o(32105),g=o(95017),n=o(10036),d=o(9244),E=o(32080),s=o(16074),t=o(65412),e=o(94650),L=o(36895),N=o(4859),i=o(51572),G=o(17672),D=o(89383);function M(U,H){1&U&&e._UZ(0,"mat-spinner",8)}function Q(U,H){if(1&U&&e._UZ(0,"app-resources-tags-list",9),2&U){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let Z=(()=>{class U{constructor(h,T,J){this.dialogRef=h,this.data=T,this.resourcesManager=J,this.tableId=n.g,this.selection=new g.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(h=>{this.resourceTags=h.filter(T=>!this.assignedTags.map(J=>J.id).includes(T.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(h){if(0===h.length)return this.dialogRef.close(!0);const T=h.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:T}).subscribe(()=>{this.onSubmit(h)})}applyFilter(h){this.filterValue=h}}return U.\u0275fac=function(h){return new(h||U)(e.Y36(t.so),e.Y36(t.WI),e.Y36(v.xk))},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,M,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,Q,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return T.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return T.onSubmit(T.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&h&&(e.Tol(T.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",T.loading||0===T.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[L.O5,N.lW,t.uh,t.xY,t.H8,i.Ou,G.o,D.X$]}),U})();var y=o(17584),A=o(96214),P=o(7434);function Y(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&U&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function V(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&U&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function B(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&U){const h=e.oxw();e.Q6J("disabled",0===h.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function q(U,H){1&U&&e._UZ(0,"mat-spinner",9)}function te(U,H){if(1&U&&e._UZ(0,"app-resources-tags-list",10),2&U){const h=e.oxw();e.Q6J("displayedColumns",h.displayedColumns)("entity","resource")("resourceTags",h.resourceTags)("filterValue",h.filterValue)("selection",h.selection)("tableId",h.tableId)}}let se=(()=>{class U{constructor(h,T,J,X,oe,ne){this.authResolver=h,this.resourcesManager=T,this.dialog=J,this.notificator=X,this.translate=oe,this.entityStorageService=ne,this.loading=!1,this.resourceTags=[],this.selection=new g.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const h=(0,d.kZ)();h.width="450px",h.data={items:this.selection.selected.map(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,h).afterClosed().subscribe(J=>{J&&this.removeTag(this.selection.selected)})}removeTag(h){if(0===h.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const T=h.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:T}).subscribe(()=>{this.removeTag(h)})}addTag(){const h=(0,d.kZ)();h.width="600px",h.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(Z,h).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const h=(0,d.kZ)();h.width="450px",h.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(y.p,h).afterClosed().subscribe(J=>{J&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(X=>{this.notificator.showSuccess(X)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(h=>{this.resourceTags=h,this.selection.clear(),this.loading=!1})}setAuthRights(){const h={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[h]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(h){this.filterValue=h}}return U.\u0275fac=function(h){return new(h||U)(e.Y36(E.x4),e.Y36(v.xk),e.Y36(t.uw),e.Y36(E.V6),e.Y36(D.sK),e.Y36(E.fb))},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return T.updateData()}),e.qZA(),e.YNc(4,Y,3,3,"button",2),e.YNc(5,V,3,3,"button",2),e.YNc(6,B,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(X){return T.applyFilter(X)}),e.qZA(),e.YNc(8,q,1,0,"mat-spinner",5),e.YNc(9,te,1,6,"app-resources-tags-list",6)),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",T.createAuth),e.xp6(1),e.Q6J("ngIf",T.addAuth),e.xp6(1),e.Q6J("ngIf",T.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading))},dependencies:[L.O5,N.lW,i.Ou,G.o,A.t,P.L,D.X$]}),U})()},17584:($,w,o)=>{o.d(w,{p:()=>D});var v=o(65412),g=o(32105),n=o(94650),d=o(36895),E=o(59549),s=o(284),t=o(24006),e=o(4859),L=o(51572),N=o(89383);function i(M,Q){1&M&&n._UZ(0,"mat-spinner",6)}function G(M,Q){if(1&M){const Z=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(A){n.CHM(Z);const P=n.oxw();return n.KtG(P.name=A)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&M){const Z=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",Z.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let D=(()=>{class M{constructor(Z,y,A){this.dialogRef=Z,this.data=y,this.resourceManager=A,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return M.\u0275fac=function(Z){return new(Z||M)(n.Y36(v.so),n.Y36(v.WI),n.Y36(g.xk))},M.\u0275cmp=n.Xpm({type:M,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(Z,y){1&Z&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,i,1,0,"mat-spinner",1),n.YNc(5,G,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return y.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return y.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&Z&&(n.Tol(y.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",y.loading),n.xp6(1),n.Q6J("ngIf",!y.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",y.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[d.O5,E.TO,E.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,v.uh,v.xY,v.H8,L.Ou,N.X$]}),M})()},28361:($,w,o)=>{o.d(w,{s:()=>Ne});var v=o(95017),g=o(65412),n=o(32080),d=o(32105),E=o(10036),s=o(64080),t=o(24006),e=o(94650),L=o(89383),N=o(94364),i=o(36895),G=o(3238),D=o(59549),M=o(284),Q=o(4859),Z=o(84385),y=o(51572),A=o(98380),P=o(50301),Y=o(64877),V=o(23123);function B(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function q(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const se=function(){return["select","id","name","email","logins","organization"]};function U(r,b){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const a=e.oxw(2);e.Q6J("disableRouting",!0)("selection",a.selection)("displayedColumns",e.DdM(5,se))("tableId",a.tableId)("users",a.users)}}function H(r,b){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,U,1,6,"app-users-list",19),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",0===a.users.length&&a.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==a.users.length)}}let h=(()=>{class r{constructor(a,p,O,j,ae,le,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=O,this.usersService=j,this.translate=ae,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new v.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=E.H2,ae.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ae.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,a).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(L.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,B,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,q,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,H,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA()()()),2&a&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},dependencies:[i.sg,i.O5,G.ey,D.TO,D.KE,D.hX,M.Nt,t.Fj,t.JJ,t.oH,Q.lW,g.uh,g.xY,g.H8,Z.gD,y.Ou,A.w,P.hT,Y.C,L.X$,V.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=o(30671);function J(r,b){1&r&&e._UZ(0,"th",15)}function X(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.xp6(1),e.AsE("",a.firstName," ",a.lastName,"")}}function oe(r,b){1&r&&e._UZ(0,"tr",17)}function ne(r,b){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ie(r,b){if(1&r&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&r){const a=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,re,e.lcZ(3,4,a.data.role)))," ")}}function C(r,b){if(1&r&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,X,2,2,"td",11),e.BQk(),e.YNc(11,oe,1,0,"tr",12),e.YNc(12,ne,1,0,"tr",13),e.qZA(),e.YNc(13,ie,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){const a=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",a.removeSelf)}}function S(r,b){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(a,p,O,j,ae,le,ue){this.dialogRef=a,this.data=p,this.notificator=O,this.translate=j,this.authzService=ae,this.store=le,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(a=>a.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,C,14,10,"div",1),e.YNc(5,S,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},dependencies:[i.O5,Q.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,g.uh,g.xY,g.H8,y.Ou,A.w,L.X$,V.i]}),r})();function _(r,b){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,b){1&r&&e._UZ(0,"th",15)}function m(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.xp6(1),e.Oqu(a.name)}}function x(r,b){1&r&&e._UZ(0,"tr",17)}function W(r,b){1&r&&e._UZ(0,"tr",18)}function z(r,b){if(1&r&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,c,1,0,"th",11),e.YNc(10,m,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,W,1,0,"tr",14),e.qZA()()),2&r){const a=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns)}}let ce=(()=>{class r{constructor(a,p,O,j,ae){this.dialogRef=a,this.data=p,this.notificator=O,this.translate=j,this.authzService=ae,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(d.Ct))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,z,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},dependencies:[i.O5,Q.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,g.uh,g.xY,g.H8,y.Ou,L.X$]}),r})();var f=o(68675),F=o(54004),u=o(47957),R=o(24179),I=o(64901);function k(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function K(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a.name," ")}}function ee(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.applyFilter(O))}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,b){1&r&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Re(r,b){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",a.selection)("filter",a.filterValue)("groups",a.groups)("tableId",a.tableId)}}let Ae=(()=>{class r{constructor(a,p,O,j,ae,le,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=O,this.voService=j,this.groupService=ae,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new v.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=E.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(a){return a?a.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(a=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,f.O)(""),(0,F.U)(p=>this._filter(p))),this.vos=a,this.loading=!1},()=>this.loading=!1)}showVoGroups(a){this.loading=!0,this.groupService.getAllGroups(a.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(a){this.filterValue=a}_filter(a){const p="string"==typeof a?a.toLowerCase():a.name.toLowerCase();return this.vos.filter(O=>O.name.toLowerCase().includes(p))}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(L.sK),e.Y36(n.V6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","filter","groups","tableId"]],template:function(a,p){if(1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,k,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(j){return p.showVoGroups(j)}),e.YNc(20,K,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,ee,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Re,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()),2&a){const O=e.MAs(19);e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",p.myControl)("matAutocomplete",O),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},dependencies:[i.sg,i.O5,u.XC,u.ZL,G.ey,D.KE,D.hX,M.Nt,t.Fj,t.JJ,t.oH,Q.lW,g.uh,g.xY,g.H8,Z.gD,y.Ou,R.W,I.P,i.Ov,L.X$,V.i]}),r})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function Ce(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function ve(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function Oe(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,b){if(1&r&&e._UZ(0,"app-users-list",17),2&r){const a=e.oxw(2);e.Q6J("disableSelf",a.disableSelf)("tableId",a.tableId)("disableRouting",!a.routeAuth||a.disableRouting)("displayedColumns",a.displayedUserColumns)("selection",a.selectionUsers)("users",a.managers)}}function De(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshUsers())}),e.qZA(),e.YNc(1,ve,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshUsers())})("valueChange",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=O)}),e.YNc(8,be,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.managers)}}function Me(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function Ge(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function ye(r,b){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",23),2&r){const a=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",a.disableRouting)("displayedColumns",a.displayedGroupColumns)("groups",a.groups)("selection",a.selectionGroups)("tableId",a.tableId)}}function Le(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshGroups())})("valueChange",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=O)}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ge,1,0,"mat-spinner",11),e.YNc(10,ye,1,6,"perun-web-apps-groups-list",20)}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.groups)}}function Pe(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class r{constructor(a,p,O,j,ae,le,ue){this.dialog=a,this.authzService=p,this.storeService=O,this.guiAuthResolver=j,this.router=ae,this.reloadEntityDetail=le,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new v.Ov(!0,[]),this.selectionGroups=new v.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=E.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(a=>this.availableRolesPrivileges.get(a).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let a=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){a=!0;break}a||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(a){this.loading=!0,0===a.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,a,!1,!0).subscribe(p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(a=>{this.groups=a,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,a).afterClosed().subscribe(O=>{O&&this.refreshUsers()})}removeManager(){const a=(0,de.kZ)();a.width="450px",a.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(l,a).afterClosed().subscribe(O=>{O&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const a=(0,de.kZ)();a.width="450px",a.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ce,a).afterClosed().subscribe(O=>{O&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Ae,a).afterClosed().subscribe(O=>{O&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.uw),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(N.F0),e.Y36(Ee.G),e.Y36(N.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(a,p){2&a&&e.ekj("router-component",p.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(a,p){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(j){return p.tabChanged(j)}),e.TgZ(4,"mat-tab"),e.YNc(5,Ce,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Le,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===p.availableRoles.length))},dependencies:[i.sg,i.O5,G.ey,D.KE,D.hX,Q.lW,me.SP,me.uD,me.uX,me.Vc,Z.gD,y.Ou,A.w,R.W,Te.t,Y.C,L.X$,V.i]}),r})()},17672:($,w,o)=>{o.d(w,{o:()=>ie});var v=o(96308),g=o(30671),n=o(95017),d=o(32080),E=o(32105),s=o(9244),t=o(94650),e=o(89383),L=o(36895),N=o(59549),i=o(284),G=o(24006),D=o(97392),M=o(4859),Q=o(56709),Z=o(10266),y=o(98380),A=o(18750);function P(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const m=t.oxw();return t.KtG(c?m.masterToggle():null)}),t.qZA()()}if(2&C){const l=t.oxw();t.xp6(1),t.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function Y(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,W=t.oxw();return t.KtG(c?W.selection.toggle(x):null)})("click",function(c){return c.stopPropagation()}),t.qZA()()}if(2&C){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function V(C,S){1&C&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function B(C,S){if(1&C&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&C){const l=S.$implicit;t.xp6(1),t.Oqu(l.id)}}function q(C,S){1&C&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(C,S){if(1&C&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&C){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",25),t.NdJ("ngModelChange",function(c){t.CHM(l);const m=t.oxw().$implicit;return t.KtG(m.tagName=c)}),t.qZA()()()}if(2&C){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function U(C,S){if(1&C&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&C){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function H(C,S){1&C&&t._UZ(0,"th",22)}function h(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit,m=t.oxw();return t.KtG(m.edit(c))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&C&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit,m=t.oxw();return t.KtG(m.save(c))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&C&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function J(C,S){if(1&C&&(t.TgZ(0,"td",23)(1,"div",26),t.YNc(2,h,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA()()),2&C){const l=S.$implicit,_=t.oxw();t.xp6(2),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function X(C,S){1&C&&t._UZ(0,"tr",29)}function oe(C,S){1&C&&t._UZ(0,"tr",30)}function ne(C,S){if(1&C&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&C){const l=t.oxw();t.xp6(1),t.hij(" ","vo"===l.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function re(C,S){1&C&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ie=(()=>{class C{constructor(l,_,c,m,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=m,this.tableCheckbox=x,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(l){this.sort=l,this.setDataSource()}static getDataForColumn(l,_){switch(_){case"id":return l.id.toString();case"name":return l.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new g.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,C.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,C.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,C.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(l){this.resourceManager.updateResourceTag({resourceTag:l}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.isChanging.deselect(l)})}edit(l){this.isChanging.select(l)}}return C.\u0275fac=function(l){return new(l||C)(t.Y36(E.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},C.\u0275cmp=t.Xpm({type:C,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(v.YE,7)),2&l){let c;t.iGM(c=t.CRH())&&(_.child=c.first),t.iGM(c=t.CRH())&&(_.matSort=c.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(l,_){1&l&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(m){return _.exportData(m)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,P,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,V,3,3,"th",7),t.YNc(8,B,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,q,3,3,"th",10),t.YNc(11,U,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,H,1,0,"th",10),t.YNc(14,J,4,2,"td",11),t.BQk(),t.YNc(15,X,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),t.qZA()()(),t.YNc(17,ne,4,5,"perun-web-apps-alert",15),t.YNc(18,re,3,3,"perun-web-apps-alert",15)),2&l&&(t.Q6J("hidden",0===_.resourceTags.length||0===_.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),t.xp6(1),t.Q6J("dataSource",_.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===_.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.resourceTags.length))},dependencies:[L.O5,N.KE,i.Nt,G.Fj,G.JJ,G.On,D.Hw,M.lW,v.YE,v.nU,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,Q.oG,Z.gM,y.w,A.l,e.X$]}),C})()},22158:($,w,o)=>{o.d(w,{T:()=>g});var v=o(77579);const g=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new v.x}ngOnDestroy(){this.destroyed$.next()}}},90439:($,w,o)=>{o.d(w,{F:()=>d});var v=o(94650),g=o(42377),n=o(89383);let d=(()=>{class E{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new v.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return E.\u0275fac=function(t){return new(t||E)},E.\u0275cmp=v.Xpm({type:E,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(v.TgZ(0,"perun-web-apps-entity-search-select",0),v.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),v.ALo(1,"translate"),v.ALo(2,"translate"),v.ALo(3,"translate"),v.qZA()),2&t&&v.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",v.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",v.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",v.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[g.i,n.X$]}),E})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:($,w,o)=>{o.d(w,{G:()=>g});var v=o(94650);let g=(()=>{class n{constructor(){this.entityDetailChange=new v.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return n.\u0275fac=function(E){return new(E||n)},n.\u0275prov=v.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})()},76023:($,w,o)=>{o.d(w,{y:()=>Q});var v=o(32105),g=o(10036),n=o(32080),d=o(94650),E=o(94364),s=o(36895),t=o(51572),e=o(96214),L=o(38383),N=o(64901),i=o(89383);function G(Z,y){1&Z&&d._UZ(0,"mat-spinner",5)}const D=function(){return["id","fullName"]};function M(Z,y){if(1&Z){const R=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){d.CHM(R);const Y=d.oxw();return d.KtG(Y.refreshTable())}),d.qZA()}if(2&Z){const R=d.oxw();d.Q6J("displayedColumns",d.DdM(5,D))("disableRouting",!R.routeAuth)("filter",R.filterValue)("members",R.members)("tableId",R.tableId)}}let Q=(()=>{class Z{constructor(R,P,Y,V){this.route=R,this.resourceService=P,this.authResolver=Y,this.entityStorageService=V,this.loading=!1,this.filterValue="",this.tableId=g.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(R=>{this.members=R,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(R){this.filterValue=R}}return Z.\u0275fac=function(R){return new(R||Z)(d.Y36(E.gz),d.Y36(v.xk),d.Y36(n.x4),d.Y36(n.fb))},Z.\u0275cmp=d.Xpm({type:Z,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(R,P){1&R&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return P.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(V){return P.applyFilter(V)}),d.qZA(),d.YNc(5,G,1,0,"mat-spinner",3),d.YNc(6,M,1,6,"perun-web-apps-members-list",4)),2&R&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",P.loading),d.xp6(1),d.Q6J("ngIf",!P.loading))},dependencies:[s.O5,t.Ou,e.t,L.O,N.P,i.X$]}),Z})()},49546:($,w,o)=>{o.d(w,{D:()=>S});var v=o(32105),g=o(10036),n=o(95017),d=o(9244),E=o(65412),s=o(32080),t=o(94650),e=o(89383),L=o(36895),N=o(4859),i=o(3848),G=o(51572),D=o(64901),M=o(90439),Q=o(60205);function Z(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function R(l,_){if(1&l&&t._UZ(0,"app-services-list",16),2&l){const c=t.oxw(2);t.Q6J("disableRouting",!0)("services",c.filteredServices)("displayedColumns",t.DdM(5,y))("selection",c.selection)("tableId",c.tableId)}}const P=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7)(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.tabChanged())}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10)(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){t.CHM(c);const W=t.oxw();return t.KtG(W.applyFilter(x))}),t.ALo(6,"translate"),t.qZA()(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13)(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){t.CHM(c);const W=t.oxw();return t.KtG(W.servicePackageSelected(x))}),t.qZA()(),t.YNc(12,R,1,6,"app-services-list",15),t.qZA()()()}if(2&l){const c=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",c.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,P))("filterValue",c.filterValue)("selection",c.selection)("tableId",c.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",c.selectedPackage)("servicePackages",c.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==c.selectedPackage.id)}}let V=(()=>{class l{constructor(c,m,x,W,z,ce){this.dialogRef=c,this.data=m,this.notificator=x,this.translate=W,this.resourceManager=z,this.servicesManager=ce,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new n.Ov(!0,[]),this.tableId=g.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(m=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=m;for(const W of c)for(const z of m)W.id===z.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(z),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(c){this.filterValue=c}servicePackageSelected(c){this.selectedPackage=c,-1!==c.id?this.servicesManager.getServicesFromServicesPackage(c.id).subscribe(m=>{this.filteredServices=m}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(c=>{this.notificator.showSuccess(c),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const c=[];for(const m of this.selection.selected)c.push(m.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(E.so),t.Y36(E.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk),t.Y36(v.KK))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(c,m){1&c&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Z,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return m.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return m.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&c&&(t.Tol(m.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===m.selection.selected.length&&-1===m.selectedPackage.id||m.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===m.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},dependencies:[L.O5,N.lW,i.SP,i.uX,E.uh,E.xY,E.H8,G.Ou,D.P,M.F,Q.Q,e.X$]}),l})();var B=o(30671);function q(l,_){1&l&&t._UZ(0,"mat-spinner",6)}function te(l,_){1&l&&t._UZ(0,"th",15)}function se(l,_){if(1&l&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&l){const c=_.$implicit;t.xp6(1),t.Oqu(c.name)}}function U(l,_){1&l&&t._UZ(0,"tr",17)}function H(l,_){1&l&&t._UZ(0,"tr",18)}function h(l,_){if(1&l&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,U,1,0,"tr",13),t.YNc(12,H,1,0,"tr",14),t.qZA()()),2&l){const c=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",c.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",c.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",c.displayedColumns)}}let T=(()=>{class l{constructor(c,m,x,W,z){this.dialogRef=c,this.data=m,this.notificator=x,this.translate=W,this.resourcesManager=z,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new B.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const m of this.data.services)c.push(m.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(E.so),t.Y36(E.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,m){1&c&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,q,1,0,"mat-spinner",1),t.YNc(5,h,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return m.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return m.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&c&&(t.Tol(m.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",m.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},dependencies:[L.O5,N.lW,B.BZ,B.fO,B.as,B.w1,B.Dz,B.nj,B.ge,B.ev,B.XQ,B.Gk,E.uh,E.xY,E.H8,G.Ou,e.X$]}),l})();var J=o(94364),X=o(96214),oe=o(7434);function ne(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.addService())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(c);const x=t.oxw();return t.KtG(x.removeServices())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const c=t.oxw();t.Q6J("disabled",0===c.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ie(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function C(l,_){if(1&l&&t._UZ(0,"app-services-list",10),2&l){const c=t.oxw();t.Q6J("disableRouting",!c.serviceRoutingAuth)("selection",c.selected)("displayedColumns",c.displayedColumns)("filterValue",c.filterValue)("services",c.assignedServices)("tableId",c.tableId)}}let S=(()=>{class l{constructor(c,m,x,W,z){this.route=c,this.resourcesManager=m,this.dialog=x,this.guiAuthResolver=W,this.entityStorageService=z,this.assignedServices=[],this.selected=new n.Ov(!0,[]),this.tableId=g.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(c=>{this.assignedServices=c,this.selected.clear(),this.loading=!1})}addService(){const c=(0,d.kZ)();c.width="800px",c.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(V,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}removeServices(){const c=(0,d.kZ)();c.width="500px",c.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(T,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}applyFilter(c){this.filterValue=c}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(J.gz),t.Y36(v.xk),t.Y36(E.uw),t.Y36(s.x4),t.Y36(s.fb))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(c,m){1&c&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return m.loadAllServices()}),t.qZA(),t.YNc(4,ne,3,3,"button",2),t.YNc(5,re,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(W){return m.applyFilter(W)}),t.qZA(),t.YNc(7,ie,1,0,"mat-spinner",5),t.YNc(8,C,1,6,"app-services-list",6)),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",m.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",m.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",m.loading),t.xp6(1),t.Q6J("ngIf",!m.loading))},dependencies:[L.O5,N.lW,G.Ou,Q.Q,X.t,oe.L,e.X$]}),l})()},92090:($,w,o)=>{o.d(w,{X:()=>y});var v=o(32080),g=o(32105),n=o(94650),d=o(36895),E=o(3848),s=o(19191),t=o(12651),e=o(89383);function L(R,P){1&R&&(n._uU(0),n.ALo(1,"translate")),2&R&&n.hij(" ",n.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(R,P){if(1&R&&n._UZ(0,"app-one-entity-attribute-page",4),2&R){const Y=n.oxw();n.Q6J("entityId",Y.resource.id)("entity","resource")}}function i(R,P){1&R&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&R&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function G(R,P){if(1&R&&n._UZ(0,"app-two-entity-attribute-page",5),2&R){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function D(R,P){1&R&&(n.TgZ(0,"mat-tab"),n.YNc(1,i,3,6,"ng-template",1),n.YNc(2,G,1,3,"ng-template",2),n.qZA())}function M(R,P){1&R&&(n._uU(0),n.ALo(1,"translate"),n.ALo(2,"translate")),2&R&&n.AsE(" ",n.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",n.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function Q(R,P){if(1&R&&n._UZ(0,"app-two-entity-attribute-page",5),2&R){const Y=n.oxw(2);n.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function Z(R,P){1&R&&(n.TgZ(0,"mat-tab"),n.YNc(1,M,3,6,"ng-template",1),n.YNc(2,Q,1,3,"ng-template",2),n.qZA())}let y=(()=>{class R{constructor(Y,V,B){this.authResolver=Y,this.resourceManager=V,this.entityStorageService=B}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return R.\u0275fac=function(Y){return new(Y||R)(n.Y36(v.x4),n.Y36(g.xk),n.Y36(v.fb))},R.\u0275cmp=n.Xpm({type:R,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,V){2&Y&&n.ekj("router-component",V.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,V){1&Y&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-tab-group")(5,"mat-tab"),n.YNc(6,L,2,3,"ng-template",1),n.YNc(7,N,1,2,"ng-template",2),n.qZA(),n.YNc(8,D,3,0,"mat-tab",3),n.YNc(9,Z,3,0,"mat-tab",3),n.qZA()()),2&Y&&(n.xp6(2),n.Oqu(n.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),n.xp6(6),n.Q6J("ngIf",V.resourceMemberAttAuth),n.xp6(1),n.Q6J("ngIf",V.resourceGroupAttAuth))},dependencies:[d.O5,E.SP,E.uD,E.uX,E.Vc,s.Y,t.t,e.X$]}),R})()},98918:($,w,o)=>{o.d(w,{b:()=>C});var v=o(36769),g=o(69024),n=o(32105),d=o(9244),E=o(32080),s=o(19516),t=o(74281),e=o(533),L=o(22158),N=o(82722),i=o(94650),G=o(94364),D=o(77968),M=o(65412),Q=o(15003),Z=o(36895),y=o(97392),R=o(4859),P=o(51572),Y=o(10266),V=o(61283),B=o(4235),q=o(89383);function te(S,l){1&S&&i._UZ(0,"mat-spinner",3)}function se(S,l){if(1&S){const _=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(_);const m=i.oxw(2);return i.KtG(m.editResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function U(S,l){if(1&S){const _=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(_);const m=i.oxw(2);return i.KtG(m.deleteResource())}),i.TgZ(1,"mat-icon"),i._uU(2,"delete_forever"),i.qZA()()}}const H=function(S){return["/organizations",S]};function h(S,l){if(1&S&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.Q6J("routerLink",i.VKq(2,H,_.resource.vo.id)),i.xp6(1),i.Oqu(_.resource.vo.name)}}function T(S,l){if(1&S&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.xp6(1),i.hij(" ",_.resource.vo.name," ")}}const J=function(S){return["/facilities",S]};function X(S,l){if(1&S&&(i.TgZ(0,"a",8),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.Q6J("routerLink",i.VKq(2,J,_.resource.facilityId)),i.xp6(1),i.Oqu(_.resource.facility.name)}}function oe(S,l){if(1&S&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&S){const _=i.oxw(2);i.xp6(1),i.hij(" ",_.resource.facility.name," ")}}const ne=function(){return{color:"black"}},re=function(S){return[S]};function ie(S,l){if(1&S&&(i.TgZ(0,"div")(1,"div",4),i._UZ(2,"mat-icon",5),i.ALo(3,"translate"),i.TgZ(4,"div",6)(5,"div",7)(6,"a",8),i._uU(7),i.qZA(),i.TgZ(8,"span",9),i._uU(9),i.qZA(),i.YNc(10,se,3,0,"button",10),i.YNc(11,U,3,0,"button",11),i.qZA(),i.TgZ(12,"div"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"span",12),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"translate"),i.YNc(19,h,2,4,"a",13),i.YNc(20,T,2,1,"span",2),i._uU(21),i.ALo(22,"translate"),i.YNc(23,X,2,4,"a",14),i.YNc(24,oe,2,1,"span",2),i._uU(25),i.ALo(26,"translate"),i.qZA()()(),i._UZ(27,"app-animated-router-outlet"),i.qZA()),2&S){const _=i.oxw();i.xp6(2),i.s9C("matTooltip",i.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),i.Q6J("ngStyle",i.DdM(32,ne)),i.xp6(4),i.Q6J("routerLink",i.VKq(33,re,_.baseUrl)),i.xp6(1),i.hij(" ",_.resource.name," "),i.xp6(2),i.hij(" \xa0#",_.resource.id," "),i.xp6(1),i.Q6J("ngIf",_.editResourceAuth),i.xp6(1),i.Q6J("ngIf",_.deleteAuth),i.xp6(2),i.AsE("",i.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),i.xp6(3),i.AsE(" ",i.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",i.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),i.xp6(3),i.Q6J("ngIf",_.voLinkAuth),i.xp6(1),i.Q6J("ngIf",!_.voLinkAuth),i.xp6(1),i.AsE(" #",_.resource.voId,", ",i.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),i.xp6(2),i.Q6J("ngIf",_.facilityLinkAuth),i.xp6(1),i.Q6J("ngIf",!_.facilityLinkAuth),i.xp6(1),i.lnq(" #",_.resource.facilityId,", ",i.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let C=(()=>{class S extends((0,L.T)()){constructor(_,c,m,x,W,z,ce,f,F,u,A){super(),this.route=_,this.facilityManager=c,this.vosManagerService=m,this.resourcesManager=x,this.sideMenuService=W,this.sideMenuItemService=z,this.dialog=ce,this.guiAuthResolver=f,this.router=F,this.entityStorageService=u,this.reloadEntityDetail=A,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,N.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const c=Number(_.resourceId);this.resourcesManager.getRichResourceById(c).subscribe(m=>{this.resource=m,this.entityStorageService.setEntity({id:m.id,voId:m.voId,facilityId:m.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(m,!1),this.facilityManager.getFacilityById(m.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(m,!0),this.vosManagerService.getVoById(m.voId).subscribe(x=>{this.vo=x,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let _;const c=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,c])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,c]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(c=>{_=c;const m=(0,d.kZ)();m.width="450px",m.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,m).afterClosed().subscribe(W=>{W&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(z=>{this.resource=z,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(m=>{m&&this.router.navigate(["../"],{relativeTo:this.route})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return S.\u0275fac=function(_){return new(_||S)(i.Y36(G.gz),i.Y36(n.IQ),i.Y36(n.YF),i.Y36(n.xk),i.Y36(D.D),i.Y36(g.V),i.Y36(M.uw),i.Y36(E.x4),i.Y36(G.F0),i.Y36(E.fb),i.Y36(Q.G))},S.\u0275cmp=i.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[i.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"resource-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["queryParamsHandling","merge","class","resource-link",3,"routerLink",4,"ngIf"],["class","resource-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,c){1&_&&(i.TgZ(0,"div",0),i._UZ(1,"perun-web-apps-back-button"),i.YNc(2,te,1,0,"mat-spinner",1),i.YNc(3,ie,28,35,"div",2),i.qZA()),2&_&&(i.xp6(2),i.Q6J("ngIf",c.loading),i.xp6(1),i.Q6J("ngIf",!c.loading&&void 0!==c.resource))},dependencies:[Z.O5,Z.PC,G.yS,y.Hw,R.lW,P.Ou,Y.gM,V.A,B.W,q.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[v.Ji]}}),S})()},258:($,w,o)=>{o.d(w,{K:()=>ce});var v=o(32105),g=o(95017),n=o(65412),d=o(30671),E=o(32080),s=o(94650),t=o(89383),e=o(36895),L=o(4859),N=o(51572);function i(f,F){1&f&&s._UZ(0,"mat-spinner",6)}function G(f,F){1&f&&s._UZ(0,"th",15)}function D(f,F){if(1&f&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&f){const u=F.$implicit;s.xp6(1),s.Oqu(u.name)}}function M(f,F){1&f&&s._UZ(0,"tr",17)}function Q(f,F){1&f&&s._UZ(0,"tr",18)}function Z(f,F){if(1&f&&(s.TgZ(0,"div",7)(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,G,1,0,"th",11),s.YNc(10,D,2,1,"td",12),s.BQk(),s.YNc(11,M,1,0,"tr",13),s.YNc(12,Q,1,0,"tr",14),s.qZA()()),2&f){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let y=(()=>{class f{constructor(u,A,I,k,K){this.dialogRef=u,this.data=A,this.notificator=I,this.translate=k,this.resourceManager=K,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const A of this.data.groups)u.push(A.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(E.V6),s.Y36(t.sK),s.Y36(v.xk))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","delete-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(u,A){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,i,1,0,"mat-spinner",1),s.YNc(5,Z,13,9,"div",2),s.TgZ(6,"div",3)(7,"button",4),s.NdJ("click",function(){return A.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return A.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA()()()),2&u&&(s.Tol(A.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",A.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},dependencies:[e.O5,L.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,n.uh,n.xY,n.H8,N.Ou,t.X$]}),f})();var R=o(10036),P=o(24006),Y=o(90455),V=o(86257),B=o(24179),q=o(64901);const te=["stepper"];function se(f,F){1&f&&s._UZ(0,"mat-spinner",4)}function U(f,F){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function H(f,F){1&f&&(s._uU(0),s.ALo(1,"translate")),2&f&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function T(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),s.YNc(4,U,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.applyFilter(I))}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,H,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeSubgroupsMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.autoAssignSubgroups=I)}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeInactiveMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.asActive=I)}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.changeAsyncMessage())})("ngModelChange",function(I){s.CHM(u);const k=s.oxw();return s.KtG(k.async=I)}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA()()()()}if(2&f){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,h))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function J(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.stepperPrevious())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function X(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.stepperNext())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&f){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function oe(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){s.CHM(u);const I=s.oxw(2);return s.KtG(I.onAdd())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ne(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"div",15)(1,"button",16),s.NdJ("click",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.onCancel())}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,J,3,3,"button",17),s.YNc(5,X,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&f){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let re=(()=>{class f{constructor(u,A,I,k,K,ee,pe,ge){this.dialogRef=u,this.data=A,this.notificator=I,this.translate=k,this.resourceManager=K,this.groupService=ee,this.guiAuthResolver=pe,this.cd=ge,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new g.Ov(!0,[]),this.filterValue="",this.tableId=R.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(A=>{for(const I of A)-1===u.findIndex(k=>k.id===I.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,I])&&this.unAssignedGroups.push(I);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const u=[];for(const A of this.selection.selected)u.push(A.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(A=>{this.notificator.showSuccess(A),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(A=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,A])||(u=!1)}),u}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(n.so),s.Y36(n.WI),s.Y36(E.V6),s.Y36(t.sK),s.Y36(v.xk),s.Y36(v.ff),s.Y36(E.x4),s.Y36(s.sBO))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,A){if(1&u&&s.Gf(te,5),2&u){let I;s.iGM(I=s.CRH())&&(A.stepper=I.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button","data-cy","assign-button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button","data-cy","next-button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button","data-cy","assign-button",1,"ml-2",3,"click"]],template:function(u,A){1&u&&(s.TgZ(0,"div")(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,se,1,0,"mat-spinner",1),s.YNc(5,T,25,28,"div",2),s.YNc(6,ne,7,6,"div",3),s.qZA()),2&u&&(s.Tol(A.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading&&A.stepper))},dependencies:[e.O5,P.JJ,P.On,L.lW,n.uh,n.xY,n.H8,N.Ou,Y.Rr,V.C0,V.VY,V.Vq,B.W,q.P,t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),f})();var ie=o(9244),C=o(64080),S=o(94364),l=o(10266),_=o(96214);function c(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.addGroup())}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&f&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function m(f,F){1&f&&s._UZ(0,"mat-spinner",9)}const x=function(f){return[f]},W=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function z(f,F){if(1&f){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){s.CHM(u);const I=s.oxw();return s.KtG(I.loadAllGroups())}),s.qZA()}if(2&f){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,x,u.assignedGroups[0])))("displayedColumns",s.DdM(12,W))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class f{constructor(u,A,I,k,K){this.route=u,this.resourcesManager=A,this.dialog=I,this.guiAuthResolver=k,this.entityStorageService=K,this.assignedGroups=[],this.selected=new g.Ov(!0,[]),this.filteredValue="",this.tableId=R.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[C.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(K=>{const ee=K.enrichedGroup.group;return ee.status=K.status,ee.failureCause=K.failureCause,ee.sourceGroupId=K.sourceGroupId,ee});const A=this.assignedGroups.map(K=>K.id),I=this.assignedGroups.filter((K,ee)=>A.indexOf(K.id)===ee),k=this.assignedGroups.filter((K,ee)=>{const pe=A.indexOf(K.id);return pe!==ee&&(null===K.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(K=>K.id);I.forEach(K=>{k.includes(K.id)&&(K.moreTypesOfAssignment=!0)}),this.assignedGroups=I,this.groupsToDisable=new Set(this.assignedGroups.filter(K=>!!K.sourceGroupId&&!K.moreTypesOfAssignment).map(K=>K.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ie.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(I=>this.groupsToDisable.has(I.id))},this.dialog.open(re,u).afterClosed().subscribe(I=>{I&&this.loadAllGroups()})}removeGroups(){const u=(0,ie.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,u).afterClosed().subscribe(I=>{I&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(A=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,A])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return f.\u0275fac=function(u){return new(u||f)(s.Y36(S.gz),s.Y36(v.xk),s.Y36(n.uw),s.Y36(E.x4),s.Y36(E.fb))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","","data-cy","add-group-button",3,"click",4,"ngIf"],["color","warn","mat-flat-button","","data-cy","remove-group-button",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","","data-cy","add-group-button",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,A){1&u&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return A.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return A.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA()(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return A.applyFilter(k)}),s.qZA(),s.YNc(11,m,1,0,"mat-spinner",6),s.YNc(12,z,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",A.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,A.resource))),s.xp6(1),s.Q6J("disabled",0===A.selected.selected.length||!A.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",A.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",A.loading),s.xp6(1),s.Q6J("ngIf",!A.loading))},dependencies:[e.O5,L.lW,N.Ou,l.gM,B.W,_.t,q.P,t.X$]}),f})()},4675:($,w,o)=>{o.d(w,{H:()=>N});var v=o(32105),g=o(32080),n=o(94650),d=o(94364),E=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const D=n.oxw();n.xp6(1),n.Q6J("items",D.navItems)("size","small")}}let N=(()=>{class i{constructor(D,M,Q,Z,y){this.resourcesManager=D,this.route=M,this.guiAuthResolver=Q,this.entityStorageService=Z,this.routePolicyService=y,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(D){const M=D?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${M}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`/${M}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${M}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${M}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${M}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${M}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return i.\u0275fac=function(D){return new(D||i)(n.Y36(v.xk),n.Y36(d.gz),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(D,M){2&D&&n.ekj("router-component",M.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(D,M){1&D&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&D&&(n.Q6J("ngIf",M.loading),n.xp6(1),n.Q6J("ngIf",!M.loading))},dependencies:[E.O5,s.Ou,t.L]}),i})()},20057:($,w,o)=>{o.d(w,{O:()=>d});var v=o(32080),g=o(94650),n=o(28361);let d=(()=>{class E{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return E.\u0275fac=function(t){return new(t||E)(g.Y36(v.x4),g.Y36(v.fb))},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&g._UZ(0,"app-managers-page",0),2&t&&g.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},dependencies:[n.s]}),E})()},16500:($,w,o)=>{o.d(w,{h:()=>N});var v=o(32105),g=o(32080),n=o(94650),d=o(94364),E=o(36895),s=o(51572),t=o(71135);function e(i,G){1&i&&n._UZ(0,"mat-spinner",2)}function L(i,G){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"perun-web-apps-menu-buttons-field",3),n.qZA()),2&i){const D=n.oxw();n.xp6(1),n.Q6J("items",D.items)("size","small")}}let N=(()=>{class i{constructor(D,M,Q,Z,y){this.route=D,this.resourceManager=M,this.authResolver=Q,this.entityStorageService=Z,this.routePolicyService=y,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(D){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${D?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return i.\u0275fac=function(D){return new(D||i)(n.Y36(d.gz),n.Y36(v.xk),n.Y36(g.x4),n.Y36(g.fb),n.Y36(g.Ip))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(D,M){2&D&&n.ekj("router-component",M.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(D,M){1&D&&(n.YNc(0,e,1,0,"mat-spinner",0),n.YNc(1,L,2,2,"div",1)),2&D&&(n.Q6J("ngIf",M.loading),n.xp6(1),n.Q6J("ngIf",!M.loading))},dependencies:[E.O5,s.Ou,t.L]}),i})()},60113:($,w,o)=>{o.d(w,{t:()=>d});var v=o(36769),g=o(94650),n=o(61283);let d=(()=>{class E{}return E.\u0275fac=function(t){return new(t||E)},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&g.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&g._UZ(0,"app-animated-router-outlet")},dependencies:[n.A],data:{animation:[v.Ji]}}),E})()},20872:($,w,o)=>{o.d(w,{v:()=>se});var v=o(32105),g=o(95017),n=o(10036),d=o(9244),E=o(32080),s=o(74281),t=o(65412),e=o(94650),L=o(36895),N=o(4859),i=o(51572),G=o(17672),D=o(89383);function M(U,H){1&U&&e._UZ(0,"mat-spinner",8)}function Q(U,H){if(1&U&&e._UZ(0,"app-resources-tags-list",9),2&U){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let Z=(()=>{class U{constructor(h,T,J){this.dialogRef=h,this.data=T,this.resourcesManager=J,this.tableId=n.g,this.selection=new g.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(h=>{this.resourceTags=h.filter(T=>!this.assignedTags.map(J=>J.id).includes(T.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(h){if(0===h.length)return this.dialogRef.close(!0);const T=h.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:T}).subscribe(()=>{this.onSubmit(h)})}applyFilter(h){this.filterValue=h}}return U.\u0275fac=function(h){return new(h||U)(e.Y36(t.so),e.Y36(t.WI),e.Y36(v.xk))},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2),e.YNc(6,M,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,Q,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5)(9,"button",6),e.NdJ("click",function(){return T.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return T.onSubmit(T.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()),2&h&&(e.Tol(T.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",T.loading||0===T.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},dependencies:[L.O5,N.lW,t.uh,t.xY,t.H8,i.Ou,G.o,D.X$]}),U})();var y=o(17584),R=o(96214),P=o(7434);function Y(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.create())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&U&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function V(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.addTag())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&U&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function B(U,H){if(1&U){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){e.CHM(h);const J=e.oxw();return e.KtG(J.removeTags())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&U){const h=e.oxw();e.Q6J("disabled",0===h.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function q(U,H){1&U&&e._UZ(0,"mat-spinner",9)}function te(U,H){if(1&U&&e._UZ(0,"app-resources-tags-list",10),2&U){const h=e.oxw();e.Q6J("displayedColumns",h.displayedColumns)("entity","resource")("resourceTags",h.resourceTags)("filterValue",h.filterValue)("selection",h.selection)("tableId",h.tableId)}}let se=(()=>{class U{constructor(h,T,J,X,oe,ne){this.authResolver=h,this.resourcesManager=T,this.dialog=J,this.notificator=X,this.translate=oe,this.entityStorageService=ne,this.loading=!1,this.resourceTags=[],this.selection=new g.Ov(!0,[]),this.tableId=n.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const h=(0,d.kZ)();h.width="450px",h.data={items:this.selection.selected.map(J=>J.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,h).afterClosed().subscribe(J=>{J&&this.removeTag(this.selection.selected)})}removeTag(h){if(0===h.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const T=h.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:T}).subscribe(()=>{this.removeTag(h)})}addTag(){const h=(0,d.kZ)();h.width="600px",h.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(Z,h).afterClosed().subscribe(J=>{J&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const h=(0,d.kZ)();h.width="450px",h.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(y.p,h).afterClosed().subscribe(J=>{J&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(X=>{this.notificator.showSuccess(X)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(h=>{this.resourceTags=h,this.selection.clear(),this.loading=!1})}setAuthRights(){const h={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[h]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(h){this.filterValue=h}}return U.\u0275fac=function(h){return new(h||U)(e.Y36(E.x4),e.Y36(v.xk),e.Y36(t.uw),e.Y36(E.V6),e.Y36(D.sK),e.Y36(E.fb))},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return T.updateData()}),e.qZA(),e.YNc(4,Y,3,3,"button",2),e.YNc(5,V,3,3,"button",2),e.YNc(6,B,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function(X){return T.applyFilter(X)}),e.qZA(),e.YNc(8,q,1,0,"mat-spinner",5),e.YNc(9,te,1,6,"app-resources-tags-list",6)),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",T.createAuth),e.xp6(1),e.Q6J("ngIf",T.addAuth),e.xp6(1),e.Q6J("ngIf",T.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading))},dependencies:[L.O5,N.lW,i.Ou,G.o,R.t,P.L,D.X$]}),U})()},17584:($,w,o)=>{o.d(w,{p:()=>D});var v=o(65412),g=o(32105),n=o(94650),d=o(36895),E=o(59549),s=o(284),t=o(24006),e=o(4859),L=o(51572),N=o(89383);function i(M,Q){1&M&&n._UZ(0,"mat-spinner",6)}function G(M,Q){if(1&M){const Z=n.EpF();n.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),n.NdJ("ngModelChange",function(R){n.CHM(Z);const P=n.oxw();return n.KtG(P.name=R)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"mat-error"),n._uU(5),n.ALo(6,"translate"),n.qZA()()()}if(2&M){const Z=n.oxw();n.xp6(2),n.s9C("placeholder",n.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),n.Q6J("ngModel",Z.name),n.xp6(3),n.Oqu(n.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let D=(()=>{class M{constructor(Z,y,R){this.dialogRef=Z,this.data=y,this.resourceManager=R,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return M.\u0275fac=function(Z){return new(Z||M)(n.Y36(v.so),n.Y36(v.WI),n.Y36(g.xk))},M.\u0275cmp=n.Xpm({type:M,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(Z,y){1&Z&&(n.TgZ(0,"div")(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.YNc(4,i,1,0,"mat-spinner",1),n.YNc(5,G,7,7,"div",2),n.TgZ(6,"div",3)(7,"button",4),n.NdJ("click",function(){return y.onCancel()}),n._uU(8),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"button",5),n.NdJ("click",function(){return y.onSubmit()}),n._uU(11),n.ALo(12,"translate"),n.qZA()()()),2&Z&&(n.Tol(y.theme),n.xp6(2),n.Oqu(n.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),n.xp6(2),n.Q6J("ngIf",y.loading),n.xp6(1),n.Q6J("ngIf",!y.loading),n.xp6(3),n.hij(" ",n.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),n.xp6(2),n.Q6J("disabled",y.loading),n.xp6(1),n.hij(" ",n.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},dependencies:[d.O5,E.TO,E.KE,s.Nt,t.Fj,t.JJ,t.Q7,t.On,e.lW,v.uh,v.xY,v.H8,L.Ou,N.X$]}),M})()},28361:($,w,o)=>{o.d(w,{s:()=>Ne});var v=o(95017),g=o(65412),n=o(32080),d=o(32105),E=o(10036),s=o(64080),t=o(24006),e=o(94650),L=o(89383),N=o(94364),i=o(36895),G=o(3238),D=o(59549),M=o(284),Q=o(4859),Z=o(84385),y=o(51572),R=o(98380),P=o(50301),Y=o(64877),V=o(23123);function B(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function q(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const se=function(){return["select","id","name","email","logins","organization"]};function U(r,b){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const a=e.oxw(2);e.Q6J("disableRouting",!0)("selection",a.selection)("displayedColumns",e.DdM(5,se))("tableId",a.tableId)("users",a.users)}}function H(r,b){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,U,1,6,"app-users-list",19),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",0===a.users.length&&a.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==a.users.length)}}let h=(()=>{class r{constructor(a,p,O,j,ae,le,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=O,this.usersService=j,this.translate=ae,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new v.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=E.H2,ae.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ae.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.p4("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,a).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(L.sK),e.Y36(n.V6),e.Y36(n.d6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,B,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA()()(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,q,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,H,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12)(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA()()()),2&a&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},dependencies:[i.sg,i.O5,G.ey,D.TO,D.KE,D.hX,M.Nt,t.Fj,t.JJ,t.oH,Q.lW,g.uh,g.xY,g.H8,Z.gD,y.Ou,R.w,P.hT,Y.C,L.X$,V.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=o(30671);function J(r,b){1&r&&e._UZ(0,"th",15)}function X(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.xp6(1),e.AsE("",a.firstName," ",a.lastName,"")}}function oe(r,b){1&r&&e._UZ(0,"tr",17)}function ne(r,b){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ie(r,b){if(1&r&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&r){const a=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,re,e.lcZ(3,4,a.data.role)))," ")}}function C(r,b){if(1&r&&(e.TgZ(0,"div",6)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,J,1,0,"th",10),e.YNc(10,X,2,2,"td",11),e.BQk(),e.YNc(11,oe,1,0,"tr",12),e.YNc(12,ne,1,0,"tr",13),e.qZA(),e.YNc(13,ie,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){const a=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",a.removeSelf)}}function S(r,b){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(a,p,O,j,ae,le,ue){this.dialogRef=a,this.data=p,this.notificator=O,this.translate=j,this.authzService=ae,this.store=le,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(a=>a.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,C,14,10,"div",1),e.YNc(5,S,1,0,"mat-spinner",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},dependencies:[i.O5,Q.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,g.uh,g.xY,g.H8,y.Ou,R.w,L.X$,V.i]}),r})();function _(r,b){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,b){1&r&&e._UZ(0,"th",15)}function m(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.xp6(1),e.Oqu(a.name)}}function x(r,b){1&r&&e._UZ(0,"tr",17)}function W(r,b){1&r&&e._UZ(0,"tr",18)}function z(r,b){if(1&r&&(e.TgZ(0,"div",7)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,c,1,0,"th",11),e.YNc(10,m,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,W,1,0,"tr",14),e.qZA()()),2&r){const a=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",a.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns)}}let ce=(()=>{class r{constructor(a,p,O,j,ae){this.dialogRef=a,this.data=p,this.notificator=O,this.translate=j,this.authzService=ae,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(a=>{this.notificator.showSuccess(a),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(n.V6),e.Y36(L.sK),e.Y36(d.Ct))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(a,p){1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,z,13,9,"div",2),e.TgZ(6,"div",3)(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&a&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},dependencies:[i.O5,Q.lW,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,g.uh,g.xY,g.H8,y.Ou,L.X$]}),r})();var f=o(68675),F=o(54004),u=o(47957),A=o(24179),I=o(64901);function k(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function K(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.hij(" ",a.name," ")}}function ee(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.applyFilter(O))}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,b){1&r&&e._UZ(0,"mat-spinner",19)}const ge=function(){return["select","id","name","description"]};function Ae(r,b){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const a=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,ge))("selection",a.selection)("filter",a.filterValue)("groups",a.groups)("tableId",a.tableId)}}let Re=(()=>{class r{constructor(a,p,O,j,ae,le,ue,he,fe){this.dialogRef=a,this.data=p,this.authzService=O,this.voService=j,this.groupService=ae,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new v.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.p4,this.firstSearchDone=!1,this.tableId=E.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(a){return a?a.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(a=>a.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(a=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,f.O)(""),(0,F.U)(p=>this._filter(p))),this.vos=a,this.loading=!1},()=>this.loading=!1)}showVoGroups(a){this.loading=!0,this.groupService.getAllGroups(a.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(a){this.filterValue=a}_filter(a){const p="string"==typeof a?a.toLowerCase():a.name.toLowerCase();return this.vos.filter(O=>O.name.toLowerCase().includes(p))}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.so),e.Y36(g.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(L.sK),e.Y36(n.V6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","filter","groups","tableId"]],template:function(a,p){if(1&a&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"div",2)(6,"mat-form-field",3)(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(j){return p.selectedRole=j}),e.YNc(11,k,3,4,"mat-option",5),e.qZA()(),e.TgZ(12,"mat-form-field",6)(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(j){return p.showVoGroups(j)}),e.YNc(20,K,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA()()(),e.YNc(22,ee,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14)(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA()()()),2&a){const O=e.MAs(19);e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",p.myControl)("matAutocomplete",O),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},dependencies:[i.sg,i.O5,u.XC,u.ZL,G.ey,D.KE,D.hX,M.Nt,t.Fj,t.JJ,t.oH,Q.lW,g.uh,g.xY,g.H8,Z.gD,y.Ou,A.W,I.P,i.Ov,L.X$,V.i]}),r})();var de=o(9244),Ee=o(15003),me=o(3848),Te=o(96214);function Ce(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function ve(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.addManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.removeManager())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e.ALo(1,"lowercase"),e._uU(2),e.ALo(3,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.uIk("data-cy",e.lcZ(1,3,a)),e.xp6(2),e.Oqu(e.lcZ(3,5,a))}}function Oe(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,b){if(1&r&&e._UZ(0,"app-users-list",17),2&r){const a=e.oxw(2);e.Q6J("disableSelf",a.disableSelf)("tableId",a.tableId)("disableRouting",!a.routeAuth||a.disableRouting)("displayedColumns",a.displayedUserColumns)("selection",a.selectionUsers)("users",a.managers)}}function De(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshUsers())}),e.qZA(),e.YNc(1,ve,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshUsers())})("valueChange",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=O)}),e.YNc(8,be,4,7,"mat-option",10),e.qZA()(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.managers)}}function Me(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function xe(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.addGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Ze(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(a);const O=e.oxw(2);return e.KtG(O.removeGroup())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const a=e.oxw(2);e.Q6J("disabled",0===a.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const a=b.$implicit;e.Q6J("value",a),e.xp6(1),e.Oqu(e.lcZ(2,2,a))}}function Ge(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function ye(r,b){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",24),2&r){const a=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",a.disableRouting)("displayedColumns",a.displayedGroupColumns)("groups",a.groups)("selection",a.selectionGroups)("tableId",a.tableId)}}function Le(r,b){if(1&r){const a=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshGroups())}),e.qZA(),e.YNc(1,xe,3,3,"button",18),e.YNc(2,Ze,3,4,"button",19),e.TgZ(3,"mat-form-field",20)(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){e.CHM(a);const O=e.oxw();return e.KtG(O.refreshGroups())})("valueChange",function(O){e.CHM(a);const j=e.oxw();return e.KtG(j.selectedRole=O)}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA()(),e.YNc(9,Ge,1,0,"mat-spinner",11),e.YNc(10,ye,1,6,"perun-web-apps-groups-list",21)}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(1),e.Q6J("ngIf",a.manageAuth&&!a.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",a.selectedRole),e.xp6(1),e.Q6J("ngForOf",a.availableRoles),e.xp6(1),e.Q6J("ngIf",a.loading),e.xp6(1),e.Q6J("ngIf",!a.loading&&a.groups)}}function Pe(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class r{constructor(a,p,O,j,ae,le,ue){this.dialog=a,this.authzService=p,this.storeService=O,this.guiAuthResolver=j,this.router=ae,this.reloadEntityDetail=le,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new v.Ov(!0,[]),this.selectionGroups=new v.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=E.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(a=>this.availableRolesPrivileges.get(a).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let a=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){a=!0;break}a||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(a){this.loading=!0,0===a.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let a=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];a=a.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,a,!1,!0).subscribe(p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(a=>{this.groups=a,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,a).afterClosed().subscribe(O=>{O&&this.refreshUsers()})}removeManager(){const a=(0,de.kZ)();a.width="450px",a.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(l,a).afterClosed().subscribe(O=>{O&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const a=(0,de.kZ)();a.width="450px",a.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ce,a).afterClosed().subscribe(O=>{O&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const a=(0,de.kZ)();a.width="1000px",a.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,a).afterClosed().subscribe(O=>{O&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(g.uw),e.Y36(d.Ct),e.Y36(n.d6),e.Y36(n.x4),e.Y36(N.F0),e.Y36(Ee.G),e.Y36(N.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(a,p){2&a&&e.ekj("router-component",p.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["data-cy","role-filter",1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(a,p){1&a&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(j){return p.tabChanged(j)}),e.TgZ(4,"mat-tab"),e.YNc(5,Ce,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Me,2,3,"ng-template",2),e.YNc(9,Le,11,9,"ng-template",3),e.qZA()(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===p.availableRoles.length))},dependencies:[i.sg,i.O5,G.ey,D.KE,D.hX,Q.lW,me.SP,me.uD,me.uX,me.Vc,Z.gD,y.Ou,R.w,A.W,Te.t,Y.C,i.i8,L.X$,V.i]}),r})()},17672:($,w,o)=>{o.d(w,{o:()=>ie});var v=o(96308),g=o(30671),n=o(95017),d=o(32080),E=o(32105),s=o(9244),t=o(94650),e=o(89383),L=o(36895),N=o(59549),i=o(284),G=o(24006),D=o(97392),M=o(4859),Q=o(56709),Z=o(10266),y=o(98380),R=o(18750);function P(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const m=t.oxw();return t.KtG(c?m.masterToggle():null)}),t.qZA()()}if(2&C){const l=t.oxw();t.xp6(1),t.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function Y(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,W=t.oxw();return t.KtG(c?W.selection.toggle(x):null)})("click",function(c){return c.stopPropagation()}),t.qZA()()}if(2&C){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function V(C,S){1&C&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function B(C,S){if(1&C&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&C){const l=S.$implicit;t.xp6(1),t.Oqu(l.id)}}function q(C,S){1&C&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(C,S){if(1&C&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&C){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"div")(1,"mat-form-field")(2,"input",25),t.NdJ("ngModelChange",function(c){t.CHM(l);const m=t.oxw().$implicit;return t.KtG(m.tagName=c)}),t.qZA()()()}if(2&C){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function U(C,S){if(1&C&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&C){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function H(C,S){1&C&&t._UZ(0,"th",22)}function h(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit,m=t.oxw();return t.KtG(m.edit(c))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()()}2&C&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(C,S){if(1&C){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit,m=t.oxw();return t.KtG(m.save(c))}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA()()}2&C&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function J(C,S){if(1&C&&(t.TgZ(0,"td",23)(1,"div",26),t.YNc(2,h,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA()()),2&C){const l=S.$implicit,_=t.oxw();t.xp6(2),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function X(C,S){1&C&&t._UZ(0,"tr",29)}function oe(C,S){1&C&&t._UZ(0,"tr",30)}function ne(C,S){if(1&C&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&C){const l=t.oxw();t.xp6(1),t.hij(" ","vo"===l.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function re(C,S){1&C&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&C&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ie=(()=>{class C{constructor(l,_,c,m,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=m,this.tableCheckbox=x,this.resourceTags=[],this.selection=new n.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new n.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(l){this.sort=l,this.setDataSource()}static getDataForColumn(l,_){switch(_){case"id":return l.id.toString();case"name":return l.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new g.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,C.getDataForColumn),l)}exportDisplayedData(l){const _=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,c=_+this.dataSource.paginator.pageSize;(0,s.O6)((0,s.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(_,c),this.displayedColumns,C.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,C.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,C.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(l){this.resourceManager.updateResourceTag({resourceTag:l}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.isChanging.deselect(l)})}edit(l){this.isChanging.select(l)}}return C.\u0275fac=function(l){return new(l||C)(t.Y36(E.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},C.\u0275cmp=t.Xpm({type:C,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(v.YE,7)),2&l){let c;t.iGM(c=t.CRH())&&(_.child=c.first),t.iGM(c=t.CRH())&&(_.matSort=c.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(l,_){1&l&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(m){return _.exportDisplayedData(m)})("exportAllData",function(m){return _.exportAllData(m)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,P,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,V,3,3,"th",7),t.YNc(8,B,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,q,3,3,"th",10),t.YNc(11,U,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,H,1,0,"th",10),t.YNc(14,J,4,2,"td",11),t.BQk(),t.YNc(15,X,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),t.qZA()()(),t.YNc(17,ne,4,5,"perun-web-apps-alert",15),t.YNc(18,re,3,3,"perun-web-apps-alert",15)),2&l&&(t.Q6J("hidden",0===_.resourceTags.length||0===_.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),t.xp6(1),t.Q6J("dataSource",_.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===_.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.resourceTags.length))},dependencies:[L.O5,N.KE,i.Nt,G.Fj,G.JJ,G.On,D.Hw,M.lW,v.YE,v.nU,g.BZ,g.fO,g.as,g.w1,g.Dz,g.nj,g.ge,g.ev,g.XQ,g.Gk,Q.oG,Z.gM,y.w,R.l,e.X$]}),C})()},22158:($,w,o)=>{o.d(w,{T:()=>g});var v=o(77579);const g=(n=class{})=>class extends n{constructor(){super(...arguments),this.destroyed$=new v.x}ngOnDestroy(){this.destroyed$.next()}}},90439:($,w,o)=>{o.d(w,{F:()=>d});var v=o(94650),g=o(42377),n=o(89383);let d=(()=>{class E{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new v.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return E.\u0275fac=function(t){return new(t||E)},E.\u0275cmp=v.Xpm({type:E,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(v.TgZ(0,"perun-web-apps-entity-search-select",0),v.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),v.ALo(1,"translate"),v.ALo(2,"translate"),v.ALo(3,"translate"),v.qZA()),2&t&&v.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",v.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",v.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",v.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},dependencies:[g.i,n.X$]}),E})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/323.b4f3219efd392317.js b/dist/apps/admin-gui/323.b4f3219efd392317.js new file mode 100644 index 000000000..455274e7a --- /dev/null +++ b/dist/apps/admin-gui/323.b4f3219efd392317.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[323],{15935:(I,b,i)=>{i.d(b,{D:()=>K});var D=i(95017),g=i(96308),u=i(30671),l=i(9244),h=i(32080),e=i(94650),t=i(36895),T=i(56709),v=i(98380),L=i(18750),m=i(89383),C=i(37677);function o(r,p){if(1&r){const a=e.EpF();e.TgZ(0,"th",15)(1,"mat-checkbox",16),e.NdJ("change",function(E){e.CHM(a);const x=e.oxw();return e.KtG(E?x.masterToggle():null)}),e.qZA()()}if(2&r){const a=e.oxw();e.xp6(1),e.Q6J("aria-label",a.checkboxLabel())("checked",a.selection.hasValue()&&a.isAllSelected())("indeterminate",a.selection.hasValue()&&!a.isAllSelected())}}function c(r,p){if(1&r){const a=e.EpF();e.TgZ(0,"td",17)(1,"mat-checkbox",18),e.NdJ("change",function(E){const _=e.CHM(a).$implicit,d=e.oxw();return e.KtG(E?d.selection.toggle(_):null)})("click",function(E){return E.stopPropagation()}),e.qZA()()}if(2&r){const a=p.$implicit,s=e.oxw();e.xp6(1),e.Q6J("aria-label",s.checkboxLabel(a))("checked",s.selection.isSelected(a))}}function S(r,p){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function A(r,p){if(1&r&&(e.TgZ(0,"td",20),e._uU(1),e.qZA()),2&r){const a=p.$implicit;e.xp6(1),e.Oqu(a.id)}}function P(r,p){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function R(r,p){if(1&r&&(e.TgZ(0,"td",21),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&r){const a=p.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,a.name),"-name-td"),e.xp6(2),e.hij(" ",a.name," ")}}function y(r,p){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function U(r,p){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const a=p.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,a.type))}}function Z(r,p){1&r&&e._UZ(0,"tr",22)}function w(r,p){1&r&&e._UZ(0,"tr",23)}function N(r,p){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function B(r,p){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let K=(()=>{class r{constructor(a,s){this.authResolver=a,this.tableCheckbox=s,this.selection=new D.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=l.f7}set matSort(a){this.sort=a,this.setDataSource()}static getDataForColumn(a,s){switch(s){case"id":return a.id.toString();case"type":return a.type.substring(40);case"name":return a.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(a=>"id"!==a)),this.dataSource=new u.by(this.extSources),this.setDataSource()}exportAllData(a){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),a)}exportDisplayedData(a){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,E=s+this.dataSource.paginator.pageSize;(0,l.O6)((0,l.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,E),this.displayedColumns,r.getDataForColumn),a)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(a,s)=>(0,l.Sd)(a,s,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(a,s)=>(0,l.pR)(a,s,r.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(a){return a?`${this.selection.isSelected(a)?"deselect":"select"} row ${a.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(a){return new(a||r)(e.Y36(h.x4),e.Y36(h.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(a,s){if(1&a&&(e.Gf(l.l9,7),e.Gf(g.YE,7)),2&a){let E;e.iGM(E=e.CRH())&&(s.child=E.first),e.iGM(E=e.CRH())&&(s.matSort=E.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(a,s){1&a&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(x){return s.exportDisplayedData(x)})("exportAllData",function(x){return s.exportAllData(x)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,o,2,3,"th",4),e.YNc(5,c,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,S,3,3,"th",7),e.YNc(8,A,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,P,3,3,"th",7),e.YNc(11,R,3,4,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,y,3,3,"th",7),e.YNc(14,U,3,3,"td",10),e.BQk(),e.YNc(15,Z,1,0,"tr",12),e.YNc(16,w,1,0,"tr",13),e.qZA()()(),e.YNc(17,N,3,3,"perun-web-apps-alert",14),e.YNc(18,B,3,3,"perun-web-apps-alert",14)),2&a&&(e.Q6J("hidden",0===s.extSources.length||0===s.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),e.xp6(1),e.Q6J("dataSource",s.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",s.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",s.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===s.extSources.length),e.xp6(1),e.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.extSources.length))},dependencies:[t.O5,g.YE,g.nU,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,T.oG,v.w,L.l,t.i8,m.X$,C.A]}),r})()},60526:(I,b,i)=>{i.d(b,{b:()=>x});var D=i(32105),g=i(9244),u=i(74281),l=i(30671),h=i(32080),e=i(64080),t=i(94650),T=i(65412),v=i(89383),L=i(36895),m=i(97392),C=i(4859),o=i(51572),c=i(73546),S=i(69773),A=i(21757),P=i(38993),R=i(62383),y=i(21330);function U(_,d){1&_&&t._UZ(0,"mat-spinner",4)}function Z(_,d){1&_&&t._UZ(0,"th",12)}function w(_,d){if(1&_&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&_){const n=d.$implicit;t.xp6(1),t.hij("",n,":")}}function N(_,d){1&_&&t._UZ(0,"th",12)}function B(_,d){if(1&_){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const O=t.oxw(4);return t.KtG(O.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function K(_,d){if(1&_&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",15),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,B,3,0,"button",16),t.ALo(9,"memberStatusDisabled"),t.qZA()),2&_){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,n.member.status)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,n.member.status)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id)&&!t.lcZ(9,12,n.member))}}function r(_,d){if(1&_){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const O=t.oxw(4);return t.KtG(O.changeVoExpiration(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function p(_,d){if(1&_&&(t.TgZ(0,"div")(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,r,3,0,"button",16),t.ALo(5,"memberStatusDisabled"),t.qZA()),2&_){const n=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,n.voExpiration)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id)&&!t.lcZ(5,4,n.member))}}function a(_,d){if(1&_&&(t.TgZ(0,"td",14),t.YNc(1,K,10,14,"div",3),t.YNc(2,p,6,6,"div",3),t.qZA()),2&_){const n=d.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function s(_,d){1&_&&t._UZ(0,"tr",19)}function E(_,d){if(1&_&&(t.TgZ(0,"div")(1,"table",5),t.ynx(2,6),t.YNc(3,Z,1,0,"th",7),t.YNc(4,w,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,N,1,0,"th",7),t.YNc(7,a,3,2,"td",10),t.BQk(),t.YNc(8,s,1,0,"tr",11),t.qZA()()),2&_){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let x=(()=>{class _{constructor(n,f,O,M,W,Y){this.dialog=n,this.authResolver=f,this.apiRequest=O,this.attributesManager=M,this.translate=W,this.notificator=Y,this.voMembershipDataSource=new l.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new l.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,g.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const f=this.member.status;this.dialog.open(u.pf,n).afterClosed().subscribe(M=>{M&&(this.member=M,("VALID"===f&&("EXPIRED"===M.status||"DISABLED"===M.status)||"VALID"===M.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const f=(0,g.kZ)();f.width="400px",f.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(u.kZ,f).afterClosed().subscribe(M=>{M.success&&(M.member&&(this.member=M.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,e.r.MEMBER_DEF_EXPIRATION).subscribe(n=>{this.voExpirationAtt=n,this.voExpiration=n.value?n.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},n=>{const f=n.error;"PrivilegeException"!==f.name?this.notificator.showError(f.name):this.voMembershipDataSource=new l.by(["Status"]),this.loading=!1})}}return _.\u0275fac=function(n){return new(n||_)(t.Y36(T.uw),t.Y36(h.x4),t.Y36(h.F5),t.Y36(D.H8),t.Y36(v.sK),t.Y36(h.V6))},_.\u0275cmp=t.Xpm({type:_,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[t.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(n,f){1&n&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content"),t.YNc(7,U,1,0,"mat-spinner",2),t.YNc(8,E,9,2,"div",3),t.qZA()()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[L.O5,m.Hw,C.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,o.Ou,c.a8,c.dk,c.dn,c.n5,v.X$,S.u,A.f,P.n,R.M,y.r],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),_})()},21330:(I,b,i)=>{i.d(b,{r:()=>g});var D=i(94650);let g=(()=>{class u{transform(h,e){return"valid"!==h.toLowerCase()||e&&"valid"!==h.toLowerCase()?h:"ACTIVE"}}return u.\u0275fac=function(h){return new(h||u)},u.\u0275pipe=D.Yjl({name:"transformMemberStatus",type:u,pure:!0}),u})()},71992:(I,b,i)=>{i.d(b,{a:()=>T});var D=i(32080),g=i(32105),u=i(54004),l=i(70262),h=i(39646),e=i(94650),t=i(94364);let T=(()=>{class v{constructor(m,C,o,c,S,A,P,R){this.authResolver=m,this.routePolicyService=C,this.router=o,this.notificator=c,this.apiRequest=S,this.memberManager=A,this.groupManager=P,this.resourceManager=R}static getBeanName(m){switch(m){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(m){const C=m.slice(1).split("/").reverse(),o={key:"",entity:{id:-1,beanName:""}};for(const c of C){if(Number(c)){if(-1===o.entity.id){o.entity.id=Number(c);continue}"services-status-"===o.key&&(o.entity.id=Number(c));break}o.key=c.concat("-",o.key)}return o.key=o.key.slice(0,o.key.length-1),o.entity.beanName=v.getBeanName(o.key.split("-")[0]),o}canActivateChild(m,C){if(this.authResolver.isPerunAdminOrObserver())return!0;const o=v.parseUrl(C.url);return o.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(o.entity.id).pipe((0,u.U)(c=>(o.entity.userId=c.userId,o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):o.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(o.entity.id).pipe((0,u.U)(c=>(o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):o.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(o.entity.id).pipe((0,u.U)(c=>(o.entity.facilityId=c.facilityId,o.entity.voId=c.voId,this.finalizeCanActivateChild(o))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):this.finalizeCanActivateChild(o)}finalizeCanActivateChild(m){return!!this.routePolicyService.canNavigate(m.key,m.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(m){if("PrivilegeException"===m.name)return this.notificator.showRouteError(),(0,h.of)(this.router.parseUrl("/notAuthorized"))}}return v.\u0275fac=function(m){return new(m||v)(e.LFG(D.x4),e.LFG(D.Ip),e.LFG(t.F0),e.LFG(D.V6),e.LFG(D.F5),e.LFG(g.uq),e.LFG(g.ff),e.LFG(g.xk))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},23123:(I,b,i)=>{i.d(b,{i:()=>u});var D=i(94650),g=i(89383);let u=(()=>{class l{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return l.\u0275fac=function(e){return new(e||l)(D.Y36(g.sK,16))},l.\u0275pipe=D.Yjl({name:"displayedRole",type:l,pure:!0}),l})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/323.ca22f168f9fcfe71.js b/dist/apps/admin-gui/323.ca22f168f9fcfe71.js deleted file mode 100644 index 249af9533..000000000 --- a/dist/apps/admin-gui/323.ca22f168f9fcfe71.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[323],{15935:(I,D,a)=>{a.d(D,{D:()=>K});var g=a(95017),f=a(96308),u=a(30671),l=a(9244),h=a(32080),e=a(94650),t=a(36895),T=a(56709),v=a(98380),L=a(18750),p=a(89383),b=a(37677);function s(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"th",15)(1,"mat-checkbox",16),e.NdJ("change",function(M){e.CHM(i);const O=e.oxw();return e.KtG(M?O.masterToggle():null)}),e.qZA()()}if(2&r){const i=e.oxw();e.xp6(1),e.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function c(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"td",17)(1,"mat-checkbox",18),e.NdJ("change",function(M){const o=e.CHM(i).$implicit,d=e.oxw();return e.KtG(M?d.selection.toggle(o):null)})("click",function(M){return M.stopPropagation()}),e.qZA()()}if(2&r){const i=m.$implicit,_=e.oxw();e.xp6(1),e.Q6J("aria-label",_.checkboxLabel(i))("checked",_.selection.isSelected(i))}}function S(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function A(r,m){if(1&r&&(e.TgZ(0,"td",20),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.id)}}function P(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function R(r,m){if(1&r&&(e.TgZ(0,"td",21),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&r){const i=m.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,i.name),"-name-td"),e.xp6(2),e.hij(" ",i.name," ")}}function y(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function U(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,i.type))}}function Z(r,m){1&r&&e._UZ(0,"tr",22)}function w(r,m){1&r&&e._UZ(0,"tr",23)}function N(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function B(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let K=(()=>{class r{constructor(i,_){this.authResolver=i,this.tableCheckbox=_,this.selection=new g.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=l.f7}set matSort(i){this.sort=i,this.setDataSource()}static getDataForColumn(i,_){switch(_){case"id":return i.id.toString();case"type":return i.type.substring(40);case"name":return i.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new u.by(this.extSources),this.setDataSource()}exportData(i){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),i)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(i,_)=>(0,l.Sd)(i,_,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(i,_)=>(0,l.pR)(i,_,r.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(h.x4),e.Y36(h.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(i,_){if(1&i&&(e.Gf(l.l9,7),e.Gf(f.YE,7)),2&i){let M;e.iGM(M=e.CRH())&&(_.child=M.first),e.iGM(M=e.CRH())&&(_.matSort=M.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(i,_){1&i&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(O){return _.exportData(O)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,s,2,3,"th",4),e.YNc(5,c,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,S,3,3,"th",7),e.YNc(8,A,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,P,3,3,"th",7),e.YNc(11,R,3,4,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,y,3,3,"th",7),e.YNc(14,U,3,3,"td",10),e.BQk(),e.YNc(15,Z,1,0,"tr",12),e.YNc(16,w,1,0,"tr",13),e.qZA()()(),e.YNc(17,N,3,3,"perun-web-apps-alert",14),e.YNc(18,B,3,3,"perun-web-apps-alert",14)),2&i&&(e.Q6J("hidden",0===_.extSources.length||0===_.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),e.xp6(1),e.Q6J("dataSource",_.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",_.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",_.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===_.extSources.length),e.xp6(1),e.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.extSources.length))},dependencies:[t.O5,f.YE,f.nU,u.BZ,u.fO,u.as,u.w1,u.Dz,u.nj,u.ge,u.ev,u.XQ,u.Gk,T.oG,v.w,L.l,t.i8,p.X$,b.A]}),r})()},60526:(I,D,a)=>{a.d(D,{b:()=>O});var g=a(32105),f=a(9244),u=a(16074),l=a(30671),h=a(32080),e=a(64080),t=a(94650),T=a(65412),v=a(89383),L=a(36895),p=a(97392),b=a(4859),s=a(51572),c=a(73546),S=a(69773),A=a(21757),P=a(38993),R=a(62383),y=a(21330);function U(o,d){1&o&&t._UZ(0,"mat-spinner",4)}function Z(o,d){1&o&&t._UZ(0,"th",12)}function w(o,d){if(1&o&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&o){const n=d.$implicit;t.xp6(1),t.hij("",n,":")}}function N(o,d){1&o&&t._UZ(0,"th",12)}function B(o,d){if(1&o){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const x=t.oxw(4);return t.KtG(x.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function K(o,d){if(1&o&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",15),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,B,3,0,"button",16),t.ALo(9,"memberStatusDisabled"),t.qZA()),2&o){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,n.member.status)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,n.member.status)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id)&&!t.lcZ(9,12,n.member))}}function r(o,d){if(1&o){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(n);const x=t.oxw(4);return t.KtG(x.changeVoExpiration(!1))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function m(o,d){if(1&o&&(t.TgZ(0,"div")(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,r,3,0,"button",16),t.ALo(5,"memberStatusDisabled"),t.qZA()),2&o){const n=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,n.voExpiration)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id)&&!t.lcZ(5,4,n.member))}}function i(o,d){if(1&o&&(t.TgZ(0,"td",14),t.YNc(1,K,10,14,"div",3),t.YNc(2,m,6,6,"div",3),t.qZA()),2&o){const n=d.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function _(o,d){1&o&&t._UZ(0,"tr",19)}function M(o,d){if(1&o&&(t.TgZ(0,"div")(1,"table",5),t.ynx(2,6),t.YNc(3,Z,1,0,"th",7),t.YNc(4,w,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,N,1,0,"th",7),t.YNc(7,i,3,2,"td",10),t.BQk(),t.YNc(8,_,1,0,"tr",11),t.qZA()()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let O=(()=>{class o{constructor(n,E,x,C,W,Y){this.dialog=n,this.authResolver=E,this.apiRequest=x,this.attributesManager=C,this.translate=W,this.notificator=Y,this.voMembershipDataSource=new l.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new l.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,f.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const E=this.member.status;this.dialog.open(u.pf,n).afterClosed().subscribe(C=>{C&&(this.member=C,("VALID"===E&&("EXPIRED"===C.status||"DISABLED"===C.status)||"VALID"===C.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const E=(0,f.kZ)();E.width="400px",E.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(u.kZ,E).afterClosed().subscribe(C=>{C.success&&(C.member&&(this.member=C.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,e.r.MEMBER_DEF_EXPIRATION).subscribe(n=>{this.voExpirationAtt=n,this.voExpiration=n.value?n.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},n=>{const E=n.error;"PrivilegeException"!==E.name?this.notificator.showError(E.name):this.voMembershipDataSource=new l.by(["Status"]),this.loading=!1})}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(T.uw),t.Y36(h.x4),t.Y36(h.F5),t.Y36(g.H8),t.Y36(v.sK),t.Y36(h.V6))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[t.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(n,E){1&n&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content"),t.YNc(7,U,1,0,"mat-spinner",2),t.YNc(8,M,9,2,"div",3),t.qZA()()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",E.loading),t.xp6(1),t.Q6J("ngIf",!E.loading))},dependencies:[L.O5,p.Hw,b.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,s.Ou,c.a8,c.dk,c.dn,c.n5,v.X$,S.u,A.f,P.n,R.M,y.r],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),o})()},21330:(I,D,a)=>{a.d(D,{r:()=>f});var g=a(94650);let f=(()=>{class u{transform(h,e){return"valid"!==h.toLowerCase()||e&&"valid"!==h.toLowerCase()?h:"ACTIVE"}}return u.\u0275fac=function(h){return new(h||u)},u.\u0275pipe=g.Yjl({name:"transformMemberStatus",type:u,pure:!0}),u})()},71992:(I,D,a)=>{a.d(D,{a:()=>T});var g=a(32080),f=a(32105),u=a(54004),l=a(70262),h=a(39646),e=a(94650),t=a(94364);let T=(()=>{class v{constructor(p,b,s,c,S,A,P,R){this.authResolver=p,this.routePolicyService=b,this.router=s,this.notificator=c,this.apiRequest=S,this.memberManager=A,this.groupManager=P,this.resourceManager=R}static getBeanName(p){switch(p){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(p){const b=p.slice(1).split("/").reverse(),s={key:"",entity:{id:-1,beanName:""}};for(const c of b){if(Number(c)){if(-1===s.entity.id){s.entity.id=Number(c);continue}"services-status-"===s.key&&(s.entity.id=Number(c));break}s.key=c.concat("-",s.key)}return s.key=s.key.slice(0,s.key.length-1),s.entity.beanName=v.getBeanName(s.key.split("-")[0]),s}canActivateChild(p,b){if(this.authResolver.isPerunAdminOrObserver())return!0;const s=v.parseUrl(b.url);return s.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(s.entity.id).pipe((0,u.U)(c=>(s.entity.userId=c.userId,s.entity.voId=c.voId,this.finalizeCanActivateChild(s))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):s.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(s.entity.id).pipe((0,u.U)(c=>(s.entity.voId=c.voId,this.finalizeCanActivateChild(s))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):s.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(s.entity.id).pipe((0,u.U)(c=>(s.entity.facilityId=c.facilityId,s.entity.voId=c.voId,this.finalizeCanActivateChild(s))),(0,l.K)(c=>this.errorRedirectUrl(c.error)))):this.finalizeCanActivateChild(s)}finalizeCanActivateChild(p){return!!this.routePolicyService.canNavigate(p.key,p.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(p){if("PrivilegeException"===p.name)return this.notificator.showRouteError(),(0,h.of)(this.router.parseUrl("/notAuthorized"))}}return v.\u0275fac=function(p){return new(p||v)(e.LFG(g.x4),e.LFG(g.Ip),e.LFG(t.F0),e.LFG(g.V6),e.LFG(g.F5),e.LFG(f.uq),e.LFG(f.ff),e.LFG(f.xk))},v.\u0275prov=e.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})()},23123:(I,D,a)=>{a.d(D,{i:()=>u});var g=a(94650),f=a(89383);let u=(()=>{class l{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return l.\u0275fac=function(e){return new(e||l)(g.Y36(f.sK,16))},l.\u0275pipe=g.Yjl({name:"displayedRole",type:l,pure:!0}),l})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/374.b56e397decc61373.js b/dist/apps/admin-gui/374.44bee678b6d534bf.js similarity index 99% rename from dist/apps/admin-gui/374.b56e397decc61373.js rename to dist/apps/admin-gui/374.44bee678b6d534bf.js index a687f77c8..5804424b1 100644 --- a/dist/apps/admin-gui/374.b56e397decc61373.js +++ b/dist/apps/admin-gui/374.44bee678b6d534bf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[374],{54668:(x,P,n)=>{n.d(P,{l:()=>o});var A=n(65412),u=n(32105),S=n(32080),s=n(10036),e=n(95017),b=n(64080),l=n(24006),t=n(94650),v=n(89383),E=n(36895),R=n(59549),N=n(284),M=n(97392),L=n(4859),U=n(51572),D=n(98380),h=n(64877);function f(r,d){if(1&r&&t._UZ(0,"app-users-list",14),2&r){const m=t.oxw(2);t.Q6J("displayedColumns",m.displayedColumns)("selection",m.selection)("tableId",m.tableId)("disableRouting",!0)("users",m.identities)}}function C(r,d){if(1&r&&(t.TgZ(0,"div"),t.YNc(1,f,1,5,"app-users-list",13),t.qZA()),2&r){const m=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==m.identities&&m.identities.length>0)}}function c(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",15),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function p(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function a(r,d){1&r&&t._UZ(0,"mat-spinner",17)}let o=(()=>{class r{constructor(m,I,Z,B,F,Q){this.dialogRef=m,this.data=I,this.userManager=Z,this.storeService=B,this.notificator=F,this.translate=Q,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=s.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.p4("",[l.kI.required,l.kI.pattern(".*[\\S]+.*")])}onAdd(){let m,I;this.loading=!0,this.isService?(m=this.selection.selected[0].id,I=this.userId):(m=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(m,I).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let m=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL];m=m.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,m).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(m){"Enter"===m.key&&this.onSearchByString()}filterIdentities(m){return m.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return r.\u0275fac=function(m){return new(m||r)(t.Y36(A.so),t.Y36(A.WI),t.Y36(u.Fv),t.Y36(S.d6),t.Y36(S.V6),t.Y36(v.sK))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(m,I){1&m&&(t.TgZ(0,"div",0),t.NdJ("keyup",function(B){return I.onKeyInput(B)}),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",2)(5,"mat-form-field",3),t._UZ(6,"input",4),t.ALo(7,"translate"),t.TgZ(8,"mat-error"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return I.onSearchByString()}),t.TgZ(12,"mat-icon"),t._uU(13,"search"),t.qZA()(),t.YNc(14,C,2,1,"div",6),t.YNc(15,c,3,3,"perun-web-apps-alert",7),t.YNc(16,p,3,3,"perun-web-apps-alert",8),t.qZA(),t.YNc(17,a,1,0,"mat-spinner",9),t.TgZ(18,"div",10)(19,"button",11),t.NdJ("click",function(){return I.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",12),t.NdJ("click",function(){return I.onAdd()}),t._uU(23),t.ALo(24,"translate"),t.qZA()()()),2&m&&(t.Tol(I.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),t.xp6(4),t.s9C("placeholder",t.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),t.Q6J("formControl",I.searchCtrl),t.xp6(3),t.hij(" ",t.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),t.xp6(2),t.Q6J("disabled",I.loading),t.xp6(3),t.Q6J("ngIf",!I.loading),t.xp6(1),t.Q6J("ngIf",!I.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),t.xp6(1),t.Q6J("ngIf",I.loading),t.xp6(3),t.hij(" ",t.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===I.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[E.O5,R.TO,R.KE,N.Nt,l.Fj,l.JJ,l.oH,M.Hw,L.lW,A.uh,A.xY,A.H8,U.Ou,D.w,h.C,v.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),r})()},94814:(x,P,n)=>{n.d(P,{B:()=>h});var A=n(32105),u=n(65412),S=n(32080),s=n(30671),e=n(94650),b=n(89383),l=n(36895),t=n(4859),v=n(98380),E=n(31359);function R(f,C){1&f&&e._UZ(0,"th",13)}function N(f,C){if(1&f&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&f){const c=C.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,c))}}function M(f,C){1&f&&e._UZ(0,"tr",15)}function L(f,C){1&f&&e._UZ(0,"tr",16)}function U(f,C){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function D(f,C){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let h=(()=>{class f{constructor(c,p,a,o,r,d){this.dialogRef=c,this.data=p,this.userManager=a,this.notificator=o,this.translate=r,this.store=d,this.displayedColumns=["name"]}ngOnInit(){let c;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new s.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(c=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(c=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(c).subscribe(p=>{this.disconnectingLastOwner=1===p.length})}onConfirm(){let c,p;this.isService?(c=this.dataSource.data[0].id,p=this.userId):(c=this.userId,p=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(c,p).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return f.\u0275fac=function(c){return new(c||f)(e.Y36(u.so),e.Y36(u.WI),e.Y36(A.Fv),e.Y36(S.V6),e.Y36(b.sK),e.Y36(S.d6))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(c,p){1&c&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,R,1,0,"th",5),e.YNc(14,N,3,3,"td",6),e.BQk(),e.YNc(15,M,1,0,"tr",7),e.YNc(16,L,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,D,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return p.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return p.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&c&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+p.targetTitle)),e.xp6(2),e.Tol(p.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+p.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",p.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",p.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",p.displayedColumns),e.xp6(1),e.Q6J("ngIf",p.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",p.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[l.O5,t.lW,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,u.uh,u.xY,u.H8,v.w,b.X$,E.d]}),f})()},29862:(x,P,n)=>{n.d(P,{x:()=>D});var A=n(32105),u=n(65412),S=n(32080),s=n(24006),e=n(94650),b=n(89383),l=n(36895),t=n(59549),v=n(284),E=n(4859);function R(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function N(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function M(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function L(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let D=(()=>{class h{constructor(C,c,p,a,o){this.dialogRef=C,this.data=c,this.userService=p,this.notificator=a,this.translateService=o,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new s.p4(this.data.user.titleBefore,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.titleAfter=new s.p4(this.data.user.titleAfter,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.firstName=new s.p4(this.data.user.firstName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.middleName=new s.p4(this.data.user.middleName,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.lastName=new s.p4(this.data.user.lastName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(C=>{this.notificator.showSuccess(C),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(u.so),e.Y36(u.WI),e.Y36(A.Fv),e.Y36(S.V6),e.Y36(b.sK))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(C,c){1&C&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,R,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,N,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,M,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,L,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return c.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return c.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&C&&(e.Tol(c.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",c.titleBefore),e.xp6(2),e.Q6J("ngIf",c.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",c.titleAfter),e.xp6(2),e.Q6J("ngIf",c.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",c.firstName),e.xp6(2),e.Q6J("ngIf",c.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",c.middleName),e.xp6(2),e.Q6J("ngIf",c.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",c.lastName),e.xp6(2),e.Q6J("ngIf",c.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",c.loading||c.firstName.invalid||c.lastName.invalid||c.titleBefore.invalid||c.titleAfter.invalid||c.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[l.O5,t.TO,t.KE,v.Nt,s.Fj,s.JJ,s.Q7,s.oH,E.lW,u.xY,u.H8,b.X$]}),h})()},98973:(x,P,n)=>{n.d(P,{u:()=>L});var A=n(32080),u=n(94650),S=n(94364),s=n(36895),e=n(3848),b=n(19191),l=n(12651),t=n(89383);function v(U,D){1&U&&(u._uU(0),u.ALo(1,"translate")),2&U&&u.hij(" ",u.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function E(U,D){if(1&U&&u._UZ(0,"app-one-entity-attribute-page",5),2&U){const h=u.oxw();u.Q6J("entityId",h.userId)("entity","user")}}function R(U,D){1&U&&(u._uU(0),u.ALo(1,"translate"),u.ALo(2,"translate")),2&U&&u.AsE(" ",u.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",u.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function N(U,D){if(1&U&&u._UZ(0,"app-two-entity-attribute-page",6),2&U){const h=u.oxw(2);u.Q6J("firstEntity","user")("firstEntityId",h.userId)("secondEntity","facility")}}function M(U,D){1&U&&(u.TgZ(0,"mat-tab"),u.YNc(1,R,3,6,"ng-template",2),u.YNc(2,N,1,3,"ng-template",3),u.qZA())}let L=(()=>{class U{constructor(h,f,C){this.route=h,this.store=f,this.authResolver=C}ngOnInit(){this.route.parent.params.subscribe(h=>{this.userId=Number(h.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(h){return new(h||U)(u.Y36(S.gz),u.Y36(A.d6),u.Y36(A.x4))},U.\u0275cmp=u.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(h,f){2&h&&u.ekj("router-component",f.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(h,f){1&h&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group")(4,"mat-tab",1),u.YNc(5,v,2,3,"ng-template",2),u.YNc(6,E,1,2,"ng-template",3),u.qZA(),u.YNc(7,M,3,0,"mat-tab",4),u.qZA()),2&h&&(u.xp6(1),u.Oqu(u.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),u.xp6(6),u.Q6J("ngIf",f.userFacilityAttAuth))},dependencies:[s.O5,e.SP,e.uD,e.uX,e.Vc,b.Y,l.t,t.X$]}),U})()},85985:(x,P,n)=>{n.d(P,{u:()=>c});var A=n(32080),u=n(32105),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(24179),v=n(96214),E=n(7434),R=n(89383);function N(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function M(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function L(p,a){1&p&&s._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function D(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw();s.Q6J("disableMembers",!1)("groups",o.membersGroups)("displayedColumns",s.DdM(5,U))("filter",o.memberFilterValue)("tableId",o.tableId)}}function h(p,a){1&p&&s._UZ(0,"mat-spinner",7)}function f(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw(2);s.Q6J("disableMembers",!1)("groups",o.adminsGroups)("displayedColumns",s.DdM(5,U))("filter",o.adminFilterValue)("tableId",o.adminTableId)}}function C(p,a){if(1&p){const o=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(o);const d=s.oxw();return s.KtG(d.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){s.CHM(o);const m=s.oxw();return s.KtG(m.adminFilter(d))}),s.qZA(),s.YNc(6,h,1,0,"mat-spinner",3),s.YNc(7,f,1,6,"perun-web-apps-groups-list",4),s.qZA()}if(2&p){const o=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.adminRefresh),s.xp6(1),s.Q6J("ngIf",!o.adminRefresh)}}let c=(()=>{class p{constructor(o,r,d,m,I){this.usersService=o,this.memberService=r,this.groupService=d,this.store=m,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=S.KE,this.adminTableId=S.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(o=>this.userId=Number(o.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(o){this.memberFilterValue=o}adminFilter(o){this.adminFilterValue=o}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(o=>{this.adminsGroups=o,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(o=>{this.vos=o;for(const r of this.vos)this.memberService.getMemberByUser(r.id,this.userId).subscribe(d=>{this.groupService.getMemberGroups(d.id).subscribe(m=>{this.membersGroups=this.membersGroups.concat(m),this.vos.indexOf(r)===this.vos.length-1&&(this.memberRefresh=!1)})});0===o.length&&(this.memberRefresh=!1)})}}return p.\u0275fac=function(o){return new(o||p)(s.Y36(u.Fv),s.Y36(u.uq),s.Y36(u.ff),s.Y36(A.d6),s.Y36(e.gz))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(o,r){2&o&&s.ekj("router-component",r.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(o,r){1&o&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return r.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(m){return r.memberFilter(m)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,D,1,6,"perun-web-apps-groups-list",4),s.YNc(6,C,8,6,"div",5)),2&o&&(s.Q6J("ngIf",r.showPrincipal),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal))},dependencies:[b.O5,l.Ou,t.W,v.t,E.L,R.X$]}),p})()},74837:(x,P,n)=>{n.d(P,{j:()=>C});var A=n(32105),u=n(32080),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(87831),v=n(96214),E=n(7434),R=n(89383);function N(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function M(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function L(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function U(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw();s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.memberTableId)("filterValue",a.memberFilterValue)("vos",a.vosWhereIsMember)}}function D(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function h(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw(2);s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.adminTableId)("filterValue",a.adminFilterValue)("vos",a.vosWhereIsAdmin)}}function f(c,p){if(1&c){const a=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(r){s.CHM(a);const d=s.oxw();return s.KtG(d.applyAdminFilter(r))}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",3),s.YNc(7,h,1,4,"perun-web-apps-vos-list",4),s.qZA()}if(2&c){const a=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",a.adminRefresh),s.xp6(1),s.Q6J("ngIf",!a.adminRefresh)}}let C=(()=>{class c{constructor(a,o,r,d){this.usersService=a,this.authResolver=o,this.store=r,this.route=d,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=S.YF,this.memberTableId=S.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(a=>this.userId=Number(a.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(a=>{this.vosWhereIsMember=a,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(a=>{this.vosWhereIsAdmin=a,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(a){this.memberFilterValue=a}applyAdminFilter(a){this.adminFilterValue=a}}return c.\u0275fac=function(a){return new(a||c)(s.Y36(A.Fv),s.Y36(u.x4),s.Y36(u.d6),s.Y36(e.gz))},c.\u0275cmp=s.Xpm({type:c,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(a,o){2&a&&s.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(a,o){1&a&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return o.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){return o.applyMemberFilter(d)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,U,1,4,"perun-web-apps-vos-list",4),s.YNc(6,f,8,6,"div",5)),2&a&&(s.Q6J("ngIf",o.isMyProfile),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile))},dependencies:[b.O5,l.Ou,t.Z,v.t,E.L,R.X$]}),c})()},17755:(x,P,n)=>{n.d(P,{Z:()=>a});var A=n(32105),u=n(30671),S=n(32080),s=n(64080),e=n(9244),b=n(16074),l=n(94650),t=n(94364),v=n(65412),E=n(36895),R=n(97392),N=n(4859),M=n(73546),L=n(71135),U=n(89383);function D(o,r){1&o&&l._UZ(0,"th",12)}function h(o,r){if(1&o&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.displayName,": ")}}function f(o,r){1&o&&l._UZ(0,"th",12)}function C(o,r){if(1&o){const d=l.EpF();l.TgZ(0,"td",14),l._uU(1),l.TgZ(2,"button",15),l.NdJ("click",function(){l.CHM(d);const I=l.oxw(2);return l.KtG(I.changeEmail())}),l.TgZ(3,"mat-icon"),l._uU(4,"edit"),l.qZA()()()}if(2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.value," ")}}function c(o,r){1&o&&l._UZ(0,"tr",16)}function p(o,r){if(1&o&&(l.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),l._uU(5),l.ALo(6,"translate"),l.qZA()()(),l.TgZ(7,"mat-card-content")(8,"table",5),l.ynx(9,6),l.YNc(10,D,1,0,"th",7),l.YNc(11,h,2,1,"td",8),l.BQk(),l.ynx(12,9),l.YNc(13,f,1,0,"th",7),l.YNc(14,C,5,1,"td",10),l.BQk(),l.YNc(15,c,1,0,"tr",11),l.qZA()()()()),2&o){const d=l.oxw();l.xp6(5),l.Oqu(l.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.xp6(3),l.Q6J("dataSource",d.mailDataSource),l.xp6(7),l.Q6J("matRowDefColumns",d.displayedColumns)}}let a=(()=>{class o{constructor(d,m,I,Z,B){this.userService=d,this.attributeService=m,this.storeService=I,this.route=Z,this.dialog=B,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(d=>{d.userId?this.userService.getUserById(Number(d.userId)).subscribe(m=>{this.user=m,this.isServiceUser=m.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(m=>{this.preferredMail=m,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail]),this.initNavItems()}))})}changeEmail(){const d=(0,e.kZ)();d.width="350px",d.data={userId:this.userID},this.dialog.open(b.gr,d).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(Z=>{this.preferredMail=Z,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(s.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(){this.navItems=[{cssIcon:"perun-vo",url:"organizations",label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:"groups",label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:"accounts",label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:"identities",label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:"facilities",label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:"resources",label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"attributes",label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return o.\u0275fac=function(d){return new(d||o)(l.Y36(A.Fv),l.Y36(A.H8),l.Y36(S.d6),l.Y36(t.gz),l.Y36(v.uw))},o.\u0275cmp=l.Xpm({type:o,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(d,m){2&d&&l.ekj("router-component",m.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(d,m){1&d&&(l.YNc(0,p,16,5,"div",0),l._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&d&&(l.Q6J("ngIf",m.inMyProfile),l.xp6(1),l.Q6J("items",m.navItems)("size","small"))},dependencies:[E.O5,R.Hw,N.lW,u.BZ,u.fO,u.w1,u.Dz,u.nj,u.ge,u.ev,u.Gk,M.a8,M.dk,M.dn,M.n5,L.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),o})()},6097:(x,P,n)=>{n.d(P,{t:()=>b});var A=n(32105),u=n(32080),S=n(94650),s=n(94364),e=n(34775);let b=(()=>{class l{constructor(v,E,R){this.authzResolverService=v,this.route=E,this.store=R,this.roles=new Map,this.roleNames=[],this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER","MEMBERSHIP"]}ngOnInit(){this.outerLoading=!0,this.showDescription=!0,this.route.parent.params.subscribe(v=>{if(v.userId)this.userId=Number(v.userId),this.authzResolverService.getUserRoles(this.userId).subscribe(E=>{this.roleNames=Object.keys(E).map(R=>R.toUpperCase()),this.entityType="USER",this.prepareRoles(E)});else{const E=this.store.getPerunPrincipal();this.userId=E.userId,this.roleNames=Object.keys(E.roles),this.entityType="SELF",this.prepareRoles(E.roles)}})}prepareRoles(v){this.roleNames.forEach(E=>{const R=new Map;Object.keys(v[E]).forEach(M=>{R.set(M,v[E][M])}),this.roles.set(E,R)}),this.roleNames=this.roleNames.filter(E=>!this.roleFilter.includes(E)),this.outerLoading=!1}}return l.\u0275fac=function(v){return new(v||l)(S.Y36(A.Ct),S.Y36(s.gz),S.Y36(u.d6))},l.\u0275cmp=S.Xpm({type:l,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(v,E){2&v&&S.ekj("router-component",E.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","showDescription","entityType"]],template:function(v,E){1&v&&S._UZ(0,"app-perun-web-apps-roles-page",0),2&v&&S.Q6J("outerLoading",E.outerLoading)("roles",E.roles)("roleNames",E.roleNames)("entityId",E.userId)("showDescription",E.showDescription)("entityType",E.entityType)},dependencies:[e._]}),l})()},46597:(x,P,n)=>{n.d(P,{d:()=>C});var A=n(10036),u=n(32105),S=n(95017),s=n(9244),e=n(54668),b=n(94814),l=n(32080),t=n(94650),v=n(65412),E=n(94364),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(c,p){if(1&c&&(t._UZ(0,"app-users-list",6),t.ALo(1,"translate")),2&c){const a=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",a.disableRouting)("displayedColumns",a.displayedColumns)("selection",a.selection)("tableId",a.tableId)("users",a.associatedUsers)}}function f(c,p){1&c&&t._UZ(0,"mat-spinner",7)}let C=(()=>{class c{constructor(a,o,r,d,m){this.dialog=a,this.router=o,this.authResolver=r,this.userManager=d,this.entityStorageService=m,this.loading=!1,this.selection=new S.Ov(!1,[]),this.associatedUsers=[],this.tableId=A.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.selection.clear(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const a=(0,s.kZ)();a.width="1250px",a.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,a).afterClosed().subscribe(r=>{r&&this.refreshTable()})}onRemove(){const a=(0,s.kZ)();a.width="650px",a.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(b.B,a).afterClosed().subscribe(r=>{r&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(v.uw),t.Y36(E.F0),t.Y36(l.x4),t.Y36(u.Fv),t.Y36(l.fb))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(a,o){1&a&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onAdd()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return o.onRemove()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,h,2,8,"app-users-list",4),t.qZA(),t.YNc(12,f,1,0,"mat-spinner",5)),2&a&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),c})()},97453:(x,P,n)=>{n.d(P,{R:()=>p});var A=n(95017),u=n(32105),S=n(10036),s=n(9244),e=n(54668),b=n(94814),l=n(32080),t=n(94650),v=n(94364),E=n(65412),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&a&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function f(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&a){const r=t.oxw();t.Q6J("disabled",0===r.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function C(a,o){1&a&&t._UZ(0,"mat-spinner",8)}function c(a,o){if(1&a&&(t._UZ(0,"app-users-list",9),t.ALo(1,"translate")),2&a){const r=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",r.displayedColumns)("selection",r.selection)("tableId",r.tableId)("routeToAdmin",r.routeToAdminSection)("users",r.identities)}}let p=(()=>{class a{constructor(r,d,m,I,Z,B){this.route=r,this.dialog=d,this.router=m,this.userManager=I,this.authResolver=Z,this.store=B,this.loading=!1,this.selection=new A.Ov(!1,[]),this.identities=[],this.tableId=S.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(r=>{this.userId=Number(r.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(r=>{this.identities=r,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const r=(0,s.kZ)();r.width="1250px",r.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}onRemove(){const r=(0,s.kZ)();r.width="650px",r.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(b.B,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}}return a.\u0275fac=function(r){return new(r||a)(t.Y36(v.gz),t.Y36(E.uw),t.Y36(v.F0),t.Y36(u.Fv),t.Y36(l.x4),t.Y36(l.d6))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(r,d){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return d.refreshTable()}),t.qZA(),t.YNc(4,h,3,3,"button",2),t.YNc(5,f,3,4,"button",3),t.YNc(6,C,1,0,"mat-spinner",4),t.YNc(7,c,2,8,"app-users-list",5)),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",d.addIdentity),t.xp6(1),t.Q6J("ngIf",d.removeIdentity),t.xp6(1),t.Q6J("ngIf",d.loading),t.xp6(1),t.Q6J("ngIf",!d.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),a})()},46374:(x,P,n)=>{n.r(P),n.d(P,{UsersModule:()=>Qe});var A=n(36895),u=n(94364),S=n(74837),s=n(85985),e=n(94650),b=n(61283);let l=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.true)},decls:1,vars:0,template:function(i,g){1&i&&e._UZ(0,"app-animated-router-outlet")},dependencies:[b.A]}),_})();var t=n(32105),v=n(51572),E=n(71135);function R(_,T){1&_&&e._UZ(0,"mat-spinner",2)}function N(_,T){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("items",i.navItems)("size","small")}}let M=(()=>{class _{constructor(i,g){this.route=i,this.userManager=g,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(i=>{const g=Number(i.userId);this.userManager.getUserById(g).subscribe(O=>{this.isServiceUser=O.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(u.gz),e.Y36(t.Fv))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(i,g){1&i&&(e.YNc(0,R,1,0,"mat-spinner",0),e.YNc(1,N,2,2,"div",1)),2&i&&(e.Q6J("ngIf",g.loading),e.xp6(1),e.Q6J("ngIf",!g.loading))},dependencies:[A.O5,v.Ou,E.L]}),_})();var L=n(98973),U=n(33604),D=n(9244),h=n(6335),f=n(3238),C=n(59549),c=n(84385),p=n(89383);function a(_,T){if(1&_&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&_){const i=T.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}let o=(()=>{class _{constructor(i){this.guiConfigService=i,this.tablePageSizeOptions=D.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(h.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(h.Rc,this.preferredTablePageSize)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(h.Ng))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,g){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(){return g.updatePreferredTablePageSize()})("valueChange",function(y){return g.preferredTablePageSize=y}),e.YNc(9,a,2,2,"mat-option",4),e.qZA()()()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",g.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",g.tablePageSizeOptions))},dependencies:[A.sg,f.ey,C.KE,C.hX,c.gD,p.X$]}),_})();var r=n(17755),d=n(32080),m=n(77968),I=n(97392),Z=n(10266),B=n(4235),F=n(31359);const Q=function(){return{color:"black"}},H=function(){return["/myProfile"]};function V(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(16,Q)),e.xp6(4),e.Q6J("routerLink",e.DdM(17,H)),e.xp6(1),e.hij(" ",e.lcZ(9,10,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let j=(()=>{class _{constructor(i,g,O){this.sideMenuService=i,this.store=g,this.router=O}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(d.d6),e.Y36(u.F0))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(i,g){1&i&&e.YNc(0,V,17,18,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[A.O5,A.PC,u.yS,I.Hw,Z.gM,B.W,b.A,p.X$,F.d]}),_})();var X=n(6097),$=n(97453),k=n(69024),q=n(29862),G=n(65412),K=n(4859);function ee(_,T){1&_&&e._UZ(0,"mat-spinner",11)}function te(_,T){if(1&_){const i=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(i);const O=e.oxw(2);return e.KtG(O.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const se=function(){return{color:"black"}},ne=function(_){return["/myProfile/service-identities",_]};function ie(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ee,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,te,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(2),e.Q6J("ngIf",i.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(22,se)),e.xp6(4),e.Q6J("routerLink",e.VKq(23,ne,i.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,14,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(1),e.Q6J("ngIf",i.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,16,"ADMIN_USER.UUID"),": ",i.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let re=(()=>{class _{constructor(i,g,O,y,W,w,J){this.sideMenuService=i,this.usersService=g,this.sideMenuItemService=O,this.route=y,this.dialog=W,this.authResolver=w,this.entityStorageService=J,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(i=>{const g=Number(i.userId);this.entityStorageService.setEntity({id:g,beanName:"User"}),this.usersService.getUserById(g).subscribe(O=>{this.user=O;const y=this.sideMenuItemService.parseServiceIdentity(O);this.sideMenuService.setUserItems([y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const i=(0,D.kZ)();i.width="450px",i.data={theme:"admin-theme",user:this.user},this.dialog.open(q.x,i).afterClosed().subscribe(O=>{O&&this.usersService.getUserById(this.user.id).subscribe(y=>{this.user=y})})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(t.Fv),e.Y36(k.V),e.Y36(u.gz),e.Y36(G.uw),e.Y36(d.x4),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(i,g){1&i&&e.YNc(0,ie,22,25,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[A.O5,A.PC,u.yS,I.Hw,K.lW,v.Ou,Z.gM,B.W,b.A,p.X$,F.d]}),_})(),ae=(()=>{class _{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-authentication",url:"authentication",label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(i,g){1&i&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&i&&e.Q6J("items",g.navItems)("size","small")},dependencies:[E.L]}),_})();var oe=n(46597),Y=n(24006),le=n(28499),_e=n(95406);function ue(_,T){if(1&_&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("formGroup",i.formGroup)("filteredNamespace",i.data.filteredNamespaces)}}function ce(_,T){1&_&&e._UZ(0,"mat-spinner",9)}let pe=(()=>{class _{constructor(i,g,O,y,W,w,J,ze,He,Ve){this.dialogRef=i,this.data=g,this.formBuilder=O,this.usersManagerService=y,this.membersManagerService=W,this.attributesManagerService=w,this.apiRequestConfiguration=J,this.notificator=ze,this.translate=He,this.cd=Ve,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Y.kI.pattern("^[a-z][a-z0-9_-]+$"),Y.kI.maxLength(15),Y.kI.minLength(2)]],passwordCtrl:["",Y.kI.required,[(0,le.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:D.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("loginCtrl").value;if(g)this.setLogin(i,g);else{const O=`urn:perun:user:attribute-def:def:login-namespace:${i}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(y=>{this.usersManagerService.generateAccountForName(i,y.value).subscribe(w=>{this.setLogin(i,w[O])},()=>this.processing=!1)})}}setLogin(i,g){this.usersManagerService.setLogin(this.userId,g,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,i).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:i,password:g}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.so),e.Y36(G.WI),e.Y36(Y.QS),e.Y36(t.Fv),e.Y36(t.uq),e.Y36(t.H8),e.Y36(d.F5),e.Y36(d.V6),e.Y36(p.sK),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(i,g){1&i&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ue,2,2,"div",2),e.YNc(5,ce,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return g.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return g.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!g.processing),e.xp6(1),e.Q6J("ngIf",g.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===g.formGroup.get("namespaceCtrl").value||g.formGroup.invalid||g.formGroup.pending||g.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[A.O5,Y.JL,Y.sg,K.lW,G.xY,G.H8,v.Ou,_e.r,p.X$]}),_})();var de=n(96214),me=n(53599);const ge=["logins"],fe=[{path:"",component:j,children:[{path:"",component:r.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:L.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:S.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:s.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:X.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:$.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:l,children:[{path:"",component:M,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:o,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:re,children:[{path:"",component:ae},{path:"associated-users",component:oe.d},{path:"authentication",component:(()=>{class _{constructor(i,g){this.dialog=i,this.entityStorageService=g,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const i=(0,D.kZ)();i.width="500px",i.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(pe,i).afterClosed().subscribe(O=>{O&&this.logins.refreshTable()})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.uw),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-user-setting-authentication"]],viewQuery:function(i,g){if(1&i&&e.Gf(ge,5),2&i){let O;e.iGM(O=e.CRH())&&(g.logins=O.first)}},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(i,g){if(1&i){const O=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(O);const W=e.MAs(8);return e.KtG(W.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return g.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(W){return g.filteredNamespaces=W}),e.qZA()}2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.AUTHENTICATION.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.AUTHENTICATION.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[K.lW,de.t,me.N,p.X$]}),_})()}]}];let Ee=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[u.Bz.forChild(fe),u.Bz]}),_})();var Ie=n(47957),Te=n(284),ve=n(23267),Ue=n(37084),Ce=n(96308),Ae=n(30671),Se=n(3848),De=n(35423),Oe=n(56709),Re=n(17009),be=n(73162),Me=n(90455),Pe=n(99602),Ne=n(71948),Le=n(44850),Ze=n(98739),z=n(73546),ye=n(86257),xe=n(73555),Be=n(77331),Ye=n(28255),We=n(67376),Ge=n(63189),Ke=n(42673),we=n(11243),Je=n(19516),Fe=n(14264);let Qe=(()=>{class _{constructor(i){this.translate=i,i.addLangs(["en","cs"])}}return _.\u0275fac=function(i){return new(i||_)(e.LFG(p.sK))},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[A.ez,Ee,Ie.Bb,Te.c,C.lN,Y.UX,Y.u5,I.Ps,ve.SJ,Ue.To,p.aw.forChild({}),K.ot,Ce.JX,Ae.p0,Se.Nh,De.dp,K.ot,Oe.p9,G.Is,c.LD,Re.ZX,v.Cq,be.Cv,Z.AV,Me.rP,Pe.FA,f.XK,Ne.Fk,Le.t,f.si,Ze.TU,z.QW,ye.T5,xe._t,z.QW,Be.Hi,Ye.Tx,We.Cl,Ge.r,Ke.g,U.ez,we.r,Je.d4,Fe.m]}),_})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[374],{54668:(x,P,n)=>{n.d(P,{l:()=>o});var A=n(65412),u=n(32105),S=n(32080),s=n(10036),e=n(95017),b=n(64080),l=n(24006),t=n(94650),v=n(89383),E=n(36895),R=n(59549),N=n(284),M=n(97392),L=n(4859),U=n(51572),D=n(98380),h=n(64877);function f(r,d){if(1&r&&t._UZ(0,"app-users-list",14),2&r){const m=t.oxw(2);t.Q6J("displayedColumns",m.displayedColumns)("selection",m.selection)("tableId",m.tableId)("disableRouting",!0)("users",m.identities)}}function C(r,d){if(1&r&&(t.TgZ(0,"div"),t.YNc(1,f,1,5,"app-users-list",13),t.qZA()),2&r){const m=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==m.identities&&m.identities.length>0)}}function c(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",15),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function p(r,d){1&r&&(t.TgZ(0,"perun-web-apps-alert",16),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&r&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function a(r,d){1&r&&t._UZ(0,"mat-spinner",17)}let o=(()=>{class r{constructor(m,I,Z,B,F,Q){this.dialogRef=m,this.data=I,this.userManager=Z,this.storeService=B,this.notificator=F,this.translate=Q,this.loading=!1,this.selection=new e.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=s.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.p4("",[l.kI.required,l.kI.pattern(".*[\\S]+.*")])}onAdd(){let m,I;this.loading=!0,this.isService?(m=this.selection.selected[0].id,I=this.userId):(m=this.userId,I=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(m,I).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let m=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL];m=m.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,m).subscribe(I=>{this.identities=this.filterIdentities(I),this.loading=!1},()=>{this.loading=!1})}onKeyInput(m){"Enter"===m.key&&this.onSearchByString()}filterIdentities(m){return m.filter(this.isService?I=>!I.serviceUser:I=>I.serviceUser)}}return r.\u0275fac=function(m){return new(m||r)(t.Y36(A.so),t.Y36(A.WI),t.Y36(u.Fv),t.Y36(S.d6),t.Y36(S.V6),t.Y36(v.sK))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(m,I){1&m&&(t.TgZ(0,"div",0),t.NdJ("keyup",function(B){return I.onKeyInput(B)}),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",2)(5,"mat-form-field",3),t._UZ(6,"input",4),t.ALo(7,"translate"),t.TgZ(8,"mat-error"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return I.onSearchByString()}),t.TgZ(12,"mat-icon"),t._uU(13,"search"),t.qZA()(),t.YNc(14,C,2,1,"div",6),t.YNc(15,c,3,3,"perun-web-apps-alert",7),t.YNc(16,p,3,3,"perun-web-apps-alert",8),t.qZA(),t.YNc(17,a,1,0,"mat-spinner",9),t.TgZ(18,"div",10)(19,"button",11),t.NdJ("click",function(){return I.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",12),t.NdJ("click",function(){return I.onAdd()}),t._uU(23),t.ALo(24,"translate"),t.qZA()()()),2&m&&(t.Tol(I.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+I.target)),t.xp6(4),t.s9C("placeholder",t.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),t.Q6J("formControl",I.searchCtrl),t.xp6(3),t.hij(" ",t.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),t.xp6(2),t.Q6J("disabled",I.loading),t.xp6(3),t.Q6J("ngIf",!I.loading),t.xp6(1),t.Q6J("ngIf",!I.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!I.loading&&I.firstSearchDone&&0===I.identities.length),t.xp6(1),t.Q6J("ngIf",I.loading),t.xp6(3),t.hij(" ",t.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===I.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},dependencies:[E.O5,R.TO,R.KE,N.Nt,l.Fj,l.JJ,l.oH,M.Hw,L.lW,A.uh,A.xY,A.H8,U.Ou,D.w,h.C,v.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),r})()},94814:(x,P,n)=>{n.d(P,{B:()=>h});var A=n(32105),u=n(65412),S=n(32080),s=n(30671),e=n(94650),b=n(89383),l=n(36895),t=n(4859),v=n(98380),E=n(31359);function R(f,C){1&f&&e._UZ(0,"th",13)}function N(f,C){if(1&f&&(e.TgZ(0,"td",14),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&f){const c=C.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,c))}}function M(f,C){1&f&&e._UZ(0,"tr",15)}function L(f,C){1&f&&e._UZ(0,"tr",16)}function U(f,C){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function D(f,C){1&f&&(e.TgZ(0,"perun-web-apps-alert",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&f&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let h=(()=>{class f{constructor(c,p,a,o,r,d){this.dialogRef=c,this.data=p,this.userManager=a,this.notificator=o,this.translate=r,this.store=d,this.displayedColumns=["name"]}ngOnInit(){let c;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new s.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(c=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(c=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(c).subscribe(p=>{this.disconnectingLastOwner=1===p.length})}onConfirm(){let c,p;this.isService?(c=this.dataSource.data[0].id,p=this.userId):(c=this.userId,p=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(c,p).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return f.\u0275fac=function(c){return new(c||f)(e.Y36(u.so),e.Y36(u.WI),e.Y36(A.Fv),e.Y36(S.V6),e.Y36(b.sK),e.Y36(S.d6))},f.\u0275cmp=e.Xpm({type:f,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(c,p){1&c&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div")(4,"div",1)(5,"p"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"div",2),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"table",3),e.ynx(12,4),e.YNc(13,R,1,0,"th",5),e.YNc(14,N,3,3,"td",6),e.BQk(),e.YNc(15,M,1,0,"tr",7),e.YNc(16,L,1,0,"tr",8),e.qZA(),e.YNc(17,U,3,3,"perun-web-apps-alert",9),e.YNc(18,D,3,3,"perun-web-apps-alert",9),e.qZA(),e.TgZ(19,"div",10)(20,"button",11),e.NdJ("click",function(){return p.onCancel()}),e._uU(21),e.ALo(22,"translate"),e.qZA(),e.TgZ(23,"button",12),e.NdJ("click",function(){return p.onConfirm()}),e._uU(24),e.ALo(25,"translate"),e.qZA()()()),2&c&&(e.xp6(1),e.Oqu(e.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+p.targetTitle)),e.xp6(2),e.Tol(p.theme),e.xp6(3),e.Oqu(e.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+p.targetDescription)),e.xp6(3),e.hij(" ",e.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),e.xp6(2),e.Q6J("dataSource",p.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",p.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",p.displayedColumns),e.xp6(1),e.Q6J("ngIf",p.disconnectingSelf),e.xp6(1),e.Q6J("ngIf",p.disconnectingLastOwner),e.xp6(3),e.hij(" ",e.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},dependencies:[l.O5,t.lW,s.BZ,s.fO,s.as,s.w1,s.Dz,s.nj,s.ge,s.ev,s.XQ,s.Gk,u.uh,u.xY,u.H8,v.w,b.X$,E.d]}),f})()},29862:(x,P,n)=>{n.d(P,{x:()=>D});var A=n(32105),u=n(65412),S=n(32080),s=n(24006),e=n(94650),b=n(89383),l=n(36895),t=n(59549),v=n(284),E=n(4859);function R(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function N(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function M(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function L(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function U(h,f){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let D=(()=>{class h{constructor(C,c,p,a,o){this.dialogRef=C,this.data=c,this.userService=p,this.notificator=a,this.translateService=o,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new s.p4(this.data.user.titleBefore,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.titleAfter=new s.p4(this.data.user.titleAfter,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.firstName=new s.p4(this.data.user.firstName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.middleName=new s.p4(this.data.user.middleName,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.lastName=new s.p4(this.data.user.lastName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(C=>{this.notificator.showSuccess(C),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return h.\u0275fac=function(C){return new(C||h)(e.Y36(u.so),e.Y36(u.WI),e.Y36(A.Fv),e.Y36(S.V6),e.Y36(b.sK))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","data-cy","user-first-name-input","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","user-save-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(C,c){1&C&&(e.TgZ(0,"div")(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1)(5,"mat-form-field"),e._UZ(6,"input",2),e.ALo(7,"translate"),e.YNc(8,R,3,3,"mat-error",3),e.qZA(),e.TgZ(9,"mat-form-field"),e._UZ(10,"input",2),e.ALo(11,"translate"),e.YNc(12,N,3,3,"mat-error",3),e.qZA(),e.TgZ(13,"mat-form-field"),e._UZ(14,"input",4),e.ALo(15,"translate"),e.YNc(16,M,3,3,"mat-error",3),e.qZA(),e.TgZ(17,"mat-form-field"),e._UZ(18,"input",2),e.ALo(19,"translate"),e.YNc(20,L,3,3,"mat-error",3),e.qZA(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",5),e.ALo(23,"translate"),e.YNc(24,U,3,3,"mat-error",3),e.qZA()(),e.TgZ(25,"div",6)(26,"button",7),e.NdJ("click",function(){return c.onCancel()}),e._uU(27),e.ALo(28,"translate"),e.qZA(),e.TgZ(29,"button",8),e.NdJ("click",function(){return c.onSave()}),e._uU(30),e.ALo(31,"translate"),e.qZA()()()),2&C&&(e.Tol(c.theme),e.xp6(2),e.Oqu(e.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),e.xp6(4),e.s9C("placeholder",e.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),e.Q6J("formControl",c.titleBefore),e.xp6(2),e.Q6J("ngIf",c.titleBefore.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),e.Q6J("formControl",c.titleAfter),e.xp6(2),e.Q6J("ngIf",c.titleAfter.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),e.Q6J("formControl",c.firstName),e.xp6(2),e.Q6J("ngIf",c.firstName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),e.Q6J("formControl",c.middleName),e.xp6(2),e.Q6J("ngIf",c.middleName.invalid),e.xp6(2),e.s9C("placeholder",e.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),e.Q6J("formControl",c.lastName),e.xp6(2),e.Q6J("ngIf",c.lastName.invalid),e.xp6(3),e.hij(" ",e.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),e.xp6(2),e.Q6J("disabled",c.loading||c.firstName.invalid||c.lastName.invalid||c.titleBefore.invalid||c.titleAfter.invalid||c.middleName.invalid),e.xp6(1),e.hij(" ",e.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},dependencies:[l.O5,t.TO,t.KE,v.Nt,s.Fj,s.JJ,s.Q7,s.oH,E.lW,u.xY,u.H8,b.X$]}),h})()},98973:(x,P,n)=>{n.d(P,{u:()=>L});var A=n(32080),u=n(94650),S=n(94364),s=n(36895),e=n(3848),b=n(19191),l=n(12651),t=n(89383);function v(U,D){1&U&&(u._uU(0),u.ALo(1,"translate")),2&U&&u.hij(" ",u.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function E(U,D){if(1&U&&u._UZ(0,"app-one-entity-attribute-page",5),2&U){const h=u.oxw();u.Q6J("entityId",h.userId)("entity","user")}}function R(U,D){1&U&&(u._uU(0),u.ALo(1,"translate"),u.ALo(2,"translate")),2&U&&u.AsE(" ",u.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",u.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function N(U,D){if(1&U&&u._UZ(0,"app-two-entity-attribute-page",6),2&U){const h=u.oxw(2);u.Q6J("firstEntity","user")("firstEntityId",h.userId)("secondEntity","facility")}}function M(U,D){1&U&&(u.TgZ(0,"mat-tab"),u.YNc(1,R,3,6,"ng-template",2),u.YNc(2,N,1,3,"ng-template",3),u.qZA())}let L=(()=>{class U{constructor(h,f,C){this.route=h,this.store=f,this.authResolver=C}ngOnInit(){this.route.parent.params.subscribe(h=>{this.userId=Number(h.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return U.\u0275fac=function(h){return new(h||U)(u.Y36(S.gz),u.Y36(A.d6),u.Y36(A.x4))},U.\u0275cmp=u.Xpm({type:U,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(h,f){2&h&&u.ekj("router-component",f.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(h,f){1&h&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"mat-tab-group")(4,"mat-tab",1),u.YNc(5,v,2,3,"ng-template",2),u.YNc(6,E,1,2,"ng-template",3),u.qZA(),u.YNc(7,M,3,0,"mat-tab",4),u.qZA()),2&h&&(u.xp6(1),u.Oqu(u.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),u.xp6(6),u.Q6J("ngIf",f.userFacilityAttAuth))},dependencies:[s.O5,e.SP,e.uD,e.uX,e.Vc,b.Y,l.t,t.X$]}),U})()},85985:(x,P,n)=>{n.d(P,{u:()=>c});var A=n(32080),u=n(32105),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(24179),v=n(96214),E=n(7434),R=n(89383);function N(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function M(p,a){1&p&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&p&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function L(p,a){1&p&&s._UZ(0,"mat-spinner",7)}const U=function(){return["id","vo","name","description"]};function D(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw();s.Q6J("disableMembers",!1)("groups",o.membersGroups)("displayedColumns",s.DdM(5,U))("filter",o.memberFilterValue)("tableId",o.tableId)}}function h(p,a){1&p&&s._UZ(0,"mat-spinner",7)}function f(p,a){if(1&p&&s._UZ(0,"perun-web-apps-groups-list",8),2&p){const o=s.oxw(2);s.Q6J("disableMembers",!1)("groups",o.adminsGroups)("displayedColumns",s.DdM(5,U))("filter",o.adminFilterValue)("tableId",o.adminTableId)}}function C(p,a){if(1&p){const o=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(o);const d=s.oxw();return s.KtG(d.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){s.CHM(o);const m=s.oxw();return s.KtG(m.adminFilter(d))}),s.qZA(),s.YNc(6,h,1,0,"mat-spinner",3),s.YNc(7,f,1,6,"perun-web-apps-groups-list",4),s.qZA()}if(2&p){const o=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.adminRefresh),s.xp6(1),s.Q6J("ngIf",!o.adminRefresh)}}let c=(()=>{class p{constructor(o,r,d,m,I){this.usersService=o,this.memberService=r,this.groupService=d,this.store=m,this.route=I,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=S.KE,this.adminTableId=S.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(o=>this.userId=Number(o.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(o){this.memberFilterValue=o}adminFilter(o){this.adminFilterValue=o}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(o=>{this.adminsGroups=o,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(o=>{this.vos=o;for(const r of this.vos)this.memberService.getMemberByUser(r.id,this.userId).subscribe(d=>{this.groupService.getMemberGroups(d.id).subscribe(m=>{this.membersGroups=this.membersGroups.concat(m),this.vos.indexOf(r)===this.vos.length-1&&(this.memberRefresh=!1)})});0===o.length&&(this.memberRefresh=!1)})}}return p.\u0275fac=function(o){return new(o||p)(s.Y36(u.Fv),s.Y36(u.uq),s.Y36(u.ff),s.Y36(A.d6),s.Y36(e.gz))},p.\u0275cmp=s.Xpm({type:p,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(o,r){2&o&&s.ekj("router-component",r.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(o,r){1&o&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return r.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(m){return r.memberFilter(m)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,D,1,6,"perun-web-apps-groups-list",4),s.YNc(6,C,8,6,"div",5)),2&o&&(s.Q6J("ngIf",r.showPrincipal),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.memberRefresh),s.xp6(1),s.Q6J("ngIf",!r.showPrincipal))},dependencies:[b.O5,l.Ou,t.W,v.t,E.L,R.X$]}),p})()},74837:(x,P,n)=>{n.d(P,{j:()=>C});var A=n(32105),u=n(32080),S=n(10036),s=n(94650),e=n(94364),b=n(36895),l=n(51572),t=n(87831),v=n(96214),E=n(7434),R=n(89383);function N(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function M(c,p){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function L(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function U(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw();s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.memberTableId)("filterValue",a.memberFilterValue)("vos",a.vosWhereIsMember)}}function D(c,p){1&c&&s._UZ(0,"mat-spinner",7)}function h(c,p){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const a=s.oxw(2);s.Q6J("displayedColumns",a.displayedColumns)("tableId",a.adminTableId)("filterValue",a.adminFilterValue)("vos",a.vosWhereIsAdmin)}}function f(c,p){if(1&c){const a=s.EpF();s.TgZ(0,"div",9)(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){s.CHM(a);const r=s.oxw();return s.KtG(r.refreshAdminTable())}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(r){s.CHM(a);const d=s.oxw();return s.KtG(d.applyAdminFilter(r))}),s.qZA(),s.YNc(6,D,1,0,"mat-spinner",3),s.YNc(7,h,1,4,"perun-web-apps-vos-list",4),s.qZA()}if(2&c){const a=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",a.adminRefresh),s.xp6(1),s.Q6J("ngIf",!a.adminRefresh)}}let C=(()=>{class c{constructor(a,o,r,d){this.usersService=a,this.authResolver=o,this.store=r,this.route=d,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=S.YF,this.memberTableId=S.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(a=>this.userId=Number(a.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(a=>{this.vosWhereIsMember=a,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(a=>{this.vosWhereIsAdmin=a,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(a){this.memberFilterValue=a}applyAdminFilter(a){this.adminFilterValue=a}}return c.\u0275fac=function(a){return new(a||c)(s.Y36(A.Fv),s.Y36(u.x4),s.Y36(u.d6),s.Y36(e.gz))},c.\u0275cmp=s.Xpm({type:c,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(a,o){2&a&&s.ekj("router-component",o.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(a,o){1&a&&(s.YNc(0,N,3,3,"h1",0),s.YNc(1,M,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return o.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(d){return o.applyMemberFilter(d)}),s.qZA(),s.YNc(4,L,1,0,"mat-spinner",3),s.YNc(5,U,1,4,"perun-web-apps-vos-list",4),s.YNc(6,f,8,6,"div",5)),2&a&&(s.Q6J("ngIf",o.isMyProfile),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.memberRefresh),s.xp6(1),s.Q6J("ngIf",!o.isMyProfile))},dependencies:[b.O5,l.Ou,t.Z,v.t,E.L,R.X$]}),c})()},17755:(x,P,n)=>{n.d(P,{Z:()=>a});var A=n(32105),u=n(30671),S=n(32080),s=n(64080),e=n(9244),b=n(74281),l=n(94650),t=n(94364),v=n(65412),E=n(36895),R=n(97392),N=n(4859),M=n(73546),L=n(71135),U=n(89383);function D(o,r){1&o&&l._UZ(0,"th",12)}function h(o,r){if(1&o&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.displayName,": ")}}function f(o,r){1&o&&l._UZ(0,"th",12)}function C(o,r){if(1&o){const d=l.EpF();l.TgZ(0,"td",14),l._uU(1),l.TgZ(2,"button",15),l.NdJ("click",function(){l.CHM(d);const I=l.oxw(2);return l.KtG(I.changeEmail())}),l.TgZ(3,"mat-icon"),l._uU(4,"edit"),l.qZA()()()}if(2&o){const d=r.$implicit;l.xp6(1),l.hij(" ",d.value," ")}}function c(o,r){1&o&&l._UZ(0,"tr",16)}function p(o,r){if(1&o&&(l.TgZ(0,"div",2)(1,"mat-card",3)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",4),l._uU(5),l.ALo(6,"translate"),l.qZA()()(),l.TgZ(7,"mat-card-content")(8,"table",5),l.ynx(9,6),l.YNc(10,D,1,0,"th",7),l.YNc(11,h,2,1,"td",8),l.BQk(),l.ynx(12,9),l.YNc(13,f,1,0,"th",7),l.YNc(14,C,5,1,"td",10),l.BQk(),l.YNc(15,c,1,0,"tr",11),l.qZA()()()()),2&o){const d=l.oxw();l.xp6(5),l.Oqu(l.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.xp6(3),l.Q6J("dataSource",d.mailDataSource),l.xp6(7),l.Q6J("matRowDefColumns",d.displayedColumns)}}let a=(()=>{class o{constructor(d,m,I,Z,B){this.userService=d,this.attributeService=m,this.storeService=I,this.route=Z,this.dialog=B,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(d=>{d.userId?this.userService.getUserById(Number(d.userId)).subscribe(m=>{this.user=m,this.isServiceUser=m.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(m=>{this.preferredMail=m,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail]),this.initNavItems()}))})}changeEmail(){const d=(0,e.kZ)();d.width="350px",d.data={userId:this.userID},this.dialog.open(b.gr,d).afterClosed().subscribe(I=>{I&&this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(Z=>{this.preferredMail=Z,this.handleMailNotDefined(),this.mailDataSource=new u.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,e.Cz)(s.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(){this.navItems=[{cssIcon:"perun-vo",url:"organizations",label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:"groups",label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:"accounts",label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:"identities",label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:"facilities",label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:"resources",label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"attributes",label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return o.\u0275fac=function(d){return new(d||o)(l.Y36(A.Fv),l.Y36(A.H8),l.Y36(S.d6),l.Y36(t.gz),l.Y36(v.uw))},o.\u0275cmp=l.Xpm({type:o,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(d,m){2&d&&l.ekj("router-component",m.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(d,m){1&d&&(l.YNc(0,p,16,5,"div",0),l._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&d&&(l.Q6J("ngIf",m.inMyProfile),l.xp6(1),l.Q6J("items",m.navItems)("size","small"))},dependencies:[E.O5,R.Hw,N.lW,u.BZ,u.fO,u.w1,u.Dz,u.nj,u.ge,u.ev,u.Gk,M.a8,M.dk,M.dn,M.n5,L.L,U.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),o})()},6097:(x,P,n)=>{n.d(P,{t:()=>b});var A=n(32105),u=n(32080),S=n(94650),s=n(94364),e=n(34775);let b=(()=>{class l{constructor(v,E,R){this.authzResolverService=v,this.route=E,this.store=R,this.roles=new Map,this.roleNames=[],this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER","MEMBERSHIP"]}ngOnInit(){this.outerLoading=!0,this.showDescription=!0,this.route.parent.params.subscribe(v=>{if(v.userId)this.userId=Number(v.userId),this.authzResolverService.getUserRoles(this.userId).subscribe(E=>{this.roleNames=Object.keys(E).map(R=>R.toUpperCase()),this.entityType="USER",this.prepareRoles(E)});else{const E=this.store.getPerunPrincipal();this.userId=E.userId,this.roleNames=Object.keys(E.roles),this.entityType="SELF",this.prepareRoles(E.roles)}})}prepareRoles(v){this.roleNames.forEach(E=>{const R=new Map;Object.keys(v[E]).forEach(M=>{R.set(M,v[E][M])}),this.roles.set(E,R)}),this.roleNames=this.roleNames.filter(E=>!this.roleFilter.includes(E)),this.outerLoading=!1}}return l.\u0275fac=function(v){return new(v||l)(S.Y36(A.Ct),S.Y36(s.gz),S.Y36(u.d6))},l.\u0275cmp=S.Xpm({type:l,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(v,E){2&v&&S.ekj("router-component",E.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","showDescription","entityType"]],template:function(v,E){1&v&&S._UZ(0,"app-perun-web-apps-roles-page",0),2&v&&S.Q6J("outerLoading",E.outerLoading)("roles",E.roles)("roleNames",E.roleNames)("entityId",E.userId)("showDescription",E.showDescription)("entityType",E.entityType)},dependencies:[e._]}),l})()},46597:(x,P,n)=>{n.d(P,{d:()=>C});var A=n(10036),u=n(32105),S=n(95017),s=n(9244),e=n(54668),b=n(94814),l=n(32080),t=n(94650),v=n(65412),E=n(94364),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(c,p){if(1&c&&(t._UZ(0,"app-users-list",6),t.ALo(1,"translate")),2&c){const a=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",a.disableRouting)("displayedColumns",a.displayedColumns)("selection",a.selection)("tableId",a.tableId)("users",a.associatedUsers)}}function f(c,p){1&c&&t._UZ(0,"mat-spinner",7)}let C=(()=>{class c{constructor(a,o,r,d,m){this.dialog=a,this.router=o,this.authResolver=r,this.userManager=d,this.entityStorageService=m,this.loading=!1,this.selection=new S.Ov(!1,[]),this.associatedUsers=[],this.tableId=A.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(a=>{this.associatedUsers=a,this.selection.clear(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const a=(0,s.kZ)();a.width="1250px",a.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(e.l,a).afterClosed().subscribe(r=>{r&&this.refreshTable()})}onRemove(){const a=(0,s.kZ)();a.width="650px",a.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(b.B,a).afterClosed().subscribe(r=>{r&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return c.\u0275fac=function(a){return new(a||c)(t.Y36(v.uw),t.Y36(E.F0),t.Y36(l.x4),t.Y36(u.Fv),t.Y36(l.fb))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(a,o){1&a&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onAdd()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return o.onRemove()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,h,2,8,"app-users-list",4),t.qZA(),t.YNc(12,f,1,0,"mat-spinner",5)),2&a&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),c})()},97453:(x,P,n)=>{n.d(P,{R:()=>p});var A=n(95017),u=n(32105),S=n(10036),s=n(9244),e=n(54668),b=n(94814),l=n(32080),t=n(94650),v=n(94364),E=n(65412),R=n(36895),N=n(4859),M=n(51572),L=n(96214),U=n(64877),D=n(89383);function h(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&a&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function f(a,o){if(1&a){const r=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(r);const m=t.oxw();return t.KtG(m.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&a){const r=t.oxw();t.Q6J("disabled",0===r.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function C(a,o){1&a&&t._UZ(0,"mat-spinner",8)}function c(a,o){if(1&a&&(t._UZ(0,"app-users-list",9),t.ALo(1,"translate")),2&a){const r=t.oxw();t.Q6J("noUsersFoundLabel",t.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",r.displayedColumns)("selection",r.selection)("tableId",r.tableId)("routeToAdmin",r.routeToAdminSection)("users",r.identities)}}let p=(()=>{class a{constructor(r,d,m,I,Z,B){this.route=r,this.dialog=d,this.router=m,this.userManager=I,this.authResolver=Z,this.store=B,this.loading=!1,this.selection=new A.Ov(!1,[]),this.identities=[],this.tableId=S.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(r=>{this.userId=Number(r.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(r=>{this.identities=r,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const r=(0,s.kZ)();r.width="1250px",r.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(e.l,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}onRemove(){const r=(0,s.kZ)();r.width="650px",r.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(b.B,r).afterClosed().subscribe(m=>{m&&this.refreshTable()})}}return a.\u0275fac=function(r){return new(r||a)(t.Y36(v.gz),t.Y36(E.uw),t.Y36(v.F0),t.Y36(u.Fv),t.Y36(l.x4),t.Y36(l.d6))},a.\u0275cmp=t.Xpm({type:a,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(r,d){1&r&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return d.refreshTable()}),t.qZA(),t.YNc(4,h,3,3,"button",2),t.YNc(5,f,3,4,"button",3),t.YNc(6,C,1,0,"mat-spinner",4),t.YNc(7,c,2,8,"app-users-list",5)),2&r&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",d.addIdentity),t.xp6(1),t.Q6J("ngIf",d.removeIdentity),t.xp6(1),t.Q6J("ngIf",d.loading),t.xp6(1),t.Q6J("ngIf",!d.loading))},dependencies:[R.O5,N.lW,M.Ou,L.t,U.C,D.X$]}),a})()},46374:(x,P,n)=>{n.r(P),n.d(P,{UsersModule:()=>Qe});var A=n(36895),u=n(94364),S=n(74837),s=n(85985),e=n(94650),b=n(61283);let l=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.true)},decls:1,vars:0,template:function(i,g){1&i&&e._UZ(0,"app-animated-router-outlet")},dependencies:[b.A]}),_})();var t=n(32105),v=n(51572),E=n(71135);function R(_,T){1&_&&e._UZ(0,"mat-spinner",2)}function N(_,T){if(1&_&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-menu-buttons-field",3),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("items",i.navItems)("size","small")}}let M=(()=>{class _{constructor(i,g){this.route=i,this.userManager=g,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(i=>{const g=Number(i.userId);this.userManager.getUserById(g).subscribe(O=>{this.isServiceUser=O.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(u.gz),e.Y36(t.Fv))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(i,g){2&i&&e.ekj("router-component",g.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(i,g){1&i&&(e.YNc(0,R,1,0,"mat-spinner",0),e.YNc(1,N,2,2,"div",1)),2&i&&(e.Q6J("ngIf",g.loading),e.xp6(1),e.Q6J("ngIf",!g.loading))},dependencies:[A.O5,v.Ou,E.L]}),_})();var L=n(98973),U=n(33604),D=n(9244),h=n(6335),f=n(3238),C=n(59549),c=n(84385),p=n(89383);function a(_,T){if(1&_&&(e.TgZ(0,"mat-option",5),e._uU(1),e.qZA()),2&_){const i=T.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}let o=(()=>{class _{constructor(i){this.guiConfigService=i,this.tablePageSizeOptions=D.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(h.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(h.Rc,this.preferredTablePageSize)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(h.Ng))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(i,g){1&i&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.TgZ(8,"mat-select",3),e.NdJ("valueChange",function(){return g.updatePreferredTablePageSize()})("valueChange",function(y){return g.preferredTablePageSize=y}),e.YNc(9,a,2,2,"mat-option",4),e.qZA()()()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),e.xp6(5),e.Oqu(e.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),e.xp6(2),e.Q6J("value",g.preferredTablePageSize),e.xp6(1),e.Q6J("ngForOf",g.tablePageSizeOptions))},dependencies:[A.sg,f.ey,C.KE,C.hX,c.gD,p.X$]}),_})();var r=n(17755),d=n(32080),m=n(77968),I=n(97392),Z=n(10266),B=n(4235),F=n(31359);const Q=function(){return{color:"black"}},H=function(){return["/myProfile"]};function V(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.TgZ(2,"div",2),e._UZ(3,"mat-icon",3),e.ALo(4,"translate"),e.TgZ(5,"div",4)(6,"div",5)(7,"a",6),e._uU(8),e.ALo(9,"userFullName"),e.qZA(),e.TgZ(10,"span",7),e._uU(11),e.qZA()(),e.TgZ(12,"span",8),e._uU(13),e.ALo(14,"translate"),e.ALo(15,"translate"),e.qZA()()(),e._UZ(16,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(3),e.s9C("matTooltip",e.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(16,Q)),e.xp6(4),e.Q6J("routerLink",e.DdM(17,H)),e.xp6(1),e.hij(" ",e.lcZ(9,10,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(2),e.lnq(" ",e.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let j=(()=>{class _{constructor(i,g,O){this.sideMenuService=i,this.store=g,this.router=O}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(d.d6),e.Y36(u.F0))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(i,g){1&i&&e.YNc(0,V,17,18,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[A.O5,A.PC,u.yS,I.Hw,Z.gM,B.W,b.A,p.X$,F.d]}),_})();var X=n(6097),$=n(97453),k=n(69024),q=n(29862),G=n(65412),K=n(4859);function ee(_,T){1&_&&e._UZ(0,"mat-spinner",11)}function te(_,T){if(1&_){const i=e.EpF();e.TgZ(0,"button",12),e.NdJ("click",function(){e.CHM(i);const O=e.oxw(2);return e.KtG(O.editUser())}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}const se=function(){return{color:"black"}},ne=function(_){return["/myProfile/service-identities",_]};function ie(_,T){if(1&_&&(e.TgZ(0,"div",1),e._UZ(1,"perun-web-apps-back-button"),e.YNc(2,ee,1,0,"mat-spinner",2),e.TgZ(3,"div",3),e._UZ(4,"mat-icon",4),e.ALo(5,"translate"),e.TgZ(6,"div",5)(7,"div",6)(8,"a",7),e._uU(9),e.ALo(10,"userFullName"),e.qZA(),e.TgZ(11,"span",8),e._uU(12),e.qZA(),e.YNc(13,te,3,0,"button",9),e.qZA(),e.TgZ(14,"div"),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"span",10),e._uU(18),e.ALo(19,"translate"),e.ALo(20,"translate"),e.qZA()()(),e._UZ(21,"app-animated-router-outlet"),e.qZA()),2&_){const i=e.oxw();e.xp6(2),e.Q6J("ngIf",i.loading),e.xp6(2),e.s9C("matTooltip",e.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),e.Q6J("ngStyle",e.DdM(22,se)),e.xp6(4),e.Q6J("routerLink",e.VKq(23,ne,i.user.id)),e.xp6(1),e.hij(" ",e.lcZ(10,14,i.user)," "),e.xp6(3),e.hij(" \xa0#",i.user.id," "),e.xp6(1),e.Q6J("ngIf",i.authResolver.isPerunAdmin()),e.xp6(2),e.AsE("",e.lcZ(16,16,"ADMIN_USER.UUID"),": ",i.user.uuid,""),e.xp6(3),e.lnq(" ",e.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",e.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",i.getUserType()," ")}}let re=(()=>{class _{constructor(i,g,O,y,W,w,J){this.sideMenuService=i,this.usersService=g,this.sideMenuItemService=O,this.route=y,this.dialog=W,this.authResolver=w,this.entityStorageService=J,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(i=>{const g=Number(i.userId);this.entityStorageService.setEntity({id:g,beanName:"User"}),this.usersService.getUserById(g).subscribe(O=>{this.user=O;const y=this.sideMenuItemService.parseServiceIdentity(O);this.sideMenuService.setUserItems([y]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const i=(0,D.kZ)();i.width="450px",i.data={theme:"admin-theme",user:this.user},this.dialog.open(q.x,i).afterClosed().subscribe(O=>{O&&this.usersService.getUserById(this.user.id).subscribe(y=>{this.user=y})})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(m.D),e.Y36(t.Fv),e.Y36(k.V),e.Y36(u.gz),e.Y36(G.uw),e.Y36(d.x4),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(i,g){1&i&&e.YNc(0,ie,22,25,"div",0),2&i&&e.Q6J("ngIf",void 0!==g.user)},dependencies:[A.O5,A.PC,u.yS,I.Hw,K.lW,v.Ou,Z.gM,B.W,b.A,p.X$,F.d]}),_})(),ae=(()=>{class _{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"},{cssIcon:"perun-authentication",url:"authentication",label:"MENU_ITEMS.USER.AUTHENTICATION",style:"user-btn"}]}}return _.\u0275fac=function(i){return new(i||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(i,g){1&i&&e._UZ(0,"perun-web-apps-menu-buttons-field",0),2&i&&e.Q6J("items",g.navItems)("size","small")},dependencies:[E.L]}),_})();var oe=n(46597),Y=n(24006),le=n(28499),_e=n(95406);function ue(_,T){if(1&_&&(e.TgZ(0,"div",7),e._UZ(1,"app-login-password-form-with-generate-option",8),e.qZA()),2&_){const i=e.oxw();e.xp6(1),e.Q6J("formGroup",i.formGroup)("filteredNamespace",i.data.filteredNamespaces)}}function ce(_,T){1&_&&e._UZ(0,"mat-spinner",9)}let pe=(()=>{class _{constructor(i,g,O,y,W,w,J,ze,He,Ve){this.dialogRef=i,this.data=g,this.formBuilder=O,this.usersManagerService=y,this.membersManagerService=W,this.attributesManagerService=w,this.apiRequestConfiguration=J,this.notificator=ze,this.translate=He,this.cd=Ve,this.processing=!1}ngOnInit(){this.userId=this.data.userId,this.formGroup=this.formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[Y.kI.pattern("^[a-z][a-z0-9_-]+$"),Y.kI.maxLength(15),Y.kI.minLength(2)]],passwordCtrl:["",Y.kI.required,[(0,le.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:D.dN.passwordMatchValidator})}ngAfterViewInit(){this.cd.detectChanges()}onSetLogin(){this.processing=!0;const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("loginCtrl").value;if(g)this.setLogin(i,g);else{const O=`urn:perun:user:attribute-def:def:login-namespace:${i}`;this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:core:lastName").subscribe(y=>{this.usersManagerService.generateAccountForName(i,y.value).subscribe(w=>{this.setLogin(i,w[O])},()=>this.processing=!1)})}}setLogin(i,g){this.usersManagerService.setLogin(this.userId,g,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_LOGIN")),this.setPassword()},()=>{this.processing=!1})}setPassword(){const i=this.formGroup.get("namespaceCtrl").value.toLowerCase(),g=this.formGroup.get("passwordCtrl").value;if(this.formGroup.get("generatePasswordCtrl").value){if(!this.formGroup.get("loginCtrl").value)return;this.usersManagerService.reserveRandomPassword(this.userId,i).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:this.userId,namespace:i,password:g}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(this.userId,i).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.SET_LOGIN.SUCCESS_PASSWORD")),this.dialogRef.close(!0)},()=>{this.processing=!1})},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.so),e.Y36(G.WI),e.Y36(Y.QS),e.Y36(t.Fv),e.Y36(t.uq),e.Y36(t.H8),e.Y36(d.F5),e.Y36(d.V6),e.Y36(p.sK),e.Y36(e.sBO))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-set-login-dialog"]],decls:13,vars:12,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content","",1,"dialog-container"],[3,"formGroup","filteredNamespace"],[1,"ml-auto","mr-auto"]],template:function(i,g){1&i&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,ue,2,2,"div",2),e.YNc(5,ce,1,0,"mat-spinner",3),e.TgZ(6,"div",4)(7,"button",5),e.NdJ("click",function(){return g.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",6),e.NdJ("click",function(){return g.onSetLogin()}),e._uU(11),e.ALo(12,"translate"),e.qZA()()()),2&i&&(e.xp6(2),e.Oqu(e.lcZ(3,6,"DIALOGS.SET_LOGIN.TITLE")),e.xp6(2),e.Q6J("ngIf",!g.processing),e.xp6(1),e.Q6J("ngIf",g.processing),e.xp6(3),e.hij(" ",e.lcZ(9,8,"DIALOGS.SET_LOGIN.CANCEL")," "),e.xp6(2),e.Q6J("disabled","Not selected"===g.formGroup.get("namespaceCtrl").value||g.formGroup.invalid||g.formGroup.pending||g.processing),e.xp6(1),e.hij(" ",e.lcZ(12,10,"DIALOGS.SET_LOGIN.SET_LOGIN")," "))},dependencies:[A.O5,Y.JL,Y.sg,K.lW,G.xY,G.H8,v.Ou,_e.r,p.X$]}),_})();var de=n(96214),me=n(53599);const ge=["logins"],fe=[{path:"",component:j,children:[{path:"",component:r.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:L.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:S.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:s.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:X.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:$.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:l,children:[{path:"",component:M,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:U.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:o,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:re,children:[{path:"",component:ae},{path:"associated-users",component:oe.d},{path:"authentication",component:(()=>{class _{constructor(i,g){this.dialog=i,this.entityStorageService=g,this.filteredNamespaces=[]}ngOnInit(){this.userId=this.entityStorageService.getEntity().id}onAdd(){const i=(0,D.kZ)();i.width="500px",i.data={userId:this.userId,filteredNamespaces:this.filteredNamespaces},this.dialog.open(pe,i).afterClosed().subscribe(O=>{O&&this.logins.refreshTable()})}}return _.\u0275fac=function(i){return new(i||_)(e.Y36(G.uw),e.Y36(d.fb))},_.\u0275cmp=e.Xpm({type:_,selectors:[["app-perun-web-apps-user-setting-authentication"]],viewQuery:function(i,g){if(1&i&&e.Gf(ge,5),2&i){let O;e.iGM(O=e.CRH())&&(g.logins=O.first)}},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[3,"authenticationPage","filteredNamespaces"],["logins",""]],template:function(i,g){if(1&i){const O=e.EpF();e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){e.CHM(O);const W=e.MAs(8);return e.KtG(W.refreshTable())}),e.qZA(),e.TgZ(4,"button",2),e.NdJ("click",function(){return g.onAdd()}),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"perun-web-apps-password-reset",3,4),e.NdJ("filteredNamespaces",function(W){return g.filteredNamespaces=W}),e.qZA()}2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"USER_DETAIL.SETTINGS.AUTHENTICATION.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,5,"USER_DETAIL.SETTINGS.AUTHENTICATION.ADD"),"\n"),e.xp6(2),e.Q6J("authenticationPage",!0))},dependencies:[K.lW,de.t,me.N,p.X$]}),_})()}]}];let Ee=(()=>{class _{}return _.\u0275fac=function(i){return new(i||_)},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[u.Bz.forChild(fe),u.Bz]}),_})();var Ie=n(47957),Te=n(284),ve=n(23267),Ue=n(37084),Ce=n(96308),Ae=n(30671),Se=n(3848),De=n(35423),Oe=n(56709),Re=n(17009),be=n(73162),Me=n(90455),Pe=n(99602),Ne=n(71948),Le=n(44850),Ze=n(98739),z=n(73546),ye=n(86257),xe=n(73555),Be=n(77331),Ye=n(28255),We=n(67376),Ge=n(63189),Ke=n(42673),we=n(11243),Je=n(19516),Fe=n(14264);let Qe=(()=>{class _{constructor(i){this.translate=i,i.addLangs(["en","cs"])}}return _.\u0275fac=function(i){return new(i||_)(e.LFG(p.sK))},_.\u0275mod=e.oAB({type:_}),_.\u0275inj=e.cJS({imports:[A.ez,Ee,Ie.Bb,Te.c,C.lN,Y.UX,Y.u5,I.Ps,ve.SJ,Ue.To,p.aw.forChild({}),K.ot,Ce.JX,Ae.p0,Se.Nh,De.dp,K.ot,Oe.p9,G.Is,c.LD,Re.ZX,v.Cq,be.Cv,Z.AV,Me.rP,Pe.FA,f.XK,Ne.Fk,Le.t,f.si,Ze.TU,z.QW,ye.T5,xe._t,z.QW,Be.Hi,Ye.Tx,We.Cl,Ge.r,Ke.g,U.ez,we.r,Je.d4,Fe.m]}),_})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/858.026d85900616e3ea.js b/dist/apps/admin-gui/858.0b6dd1686d5eb534.js similarity index 95% rename from dist/apps/admin-gui/858.026d85900616e3ea.js rename to dist/apps/admin-gui/858.0b6dd1686d5eb534.js index 2d05d13ba..1a499fead 100644 --- a/dist/apps/admin-gui/858.026d85900616e3ea.js +++ b/dist/apps/admin-gui/858.0b6dd1686d5eb534.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[858],{60858:(Bp,ut,c)=>{c.r(ut),c.d(ut,{VosModule:()=>kp});var m=c(36895),b=c(94364),Vt=c(25309),z=c(69024),L=c(36769),h=c(32105),g=c(9244),u=c(32080),S=c(64080),G=c(16074),Yt=c(41656),dt=c(22158),_t=c(82722),t=c(94650),V=c(77968),p=c(65412),$=c(15003),P=c(97392),I=c(4859),A=c(51572),N=c(10266),Y=c(61283),X=c(4235),d=c(89383),Jt=c(29218),qt=c(45942),Qt=c(28764);function kt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Bt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Ht(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function zt(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",15),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,jt,6,11,"button",16),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const $t=function(){return{color:"black"}},Xt=function(i,n){return["/organizations",i,"groups",n]},Kt=function(i){return["/organizations",i]};function Wt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Bt,3,0,"button",10),t.YNc(11,Ht,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",8),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,zt,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,$t)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Xt,e.vo.id,e.group.id)),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(30,Kt,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let te=(()=>{class i extends((0,dt.T)()){constructor(e,o,a,s,r,_,T,E,M,ct){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=T,this.router=E,this.entityStorageService=M,this.reloadEntityDetail=ct,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,_t.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(a=>{a&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(a).subscribe(r=>{this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(_=>{this.group=_,this.syncEnabled=(0,g.bx)(_),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Yt.P,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["../"],{relativeTo:this.route})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(z.V),t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.x4),t.Y36(b.F0),t.Y36(u.fb),t.Y36($.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,kt,1,0,"mat-spinner",1),t.YNc(3,Wt,25,32,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[m.O5,m.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,d.X$,Jt.J,qt.r,Qt.F],data:{animation:[L.Ji]}}),i})();function ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const ie=function(i){return["/admin","users",i]};function oe(i,n){if(1&i&&(t.TgZ(0,"a",8),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("routerLink",t.VKq(2,ie,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ne(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const ae=function(){return{color:"black"}},se=function(i,n){return["/organizations",i,"members",n]};function re(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,oe,2,4,"a",11),t.YNc(15,ne,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,ae)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,se,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let le=(()=>{class i{constructor(e,o,a,s,r,_,T){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=_,this.authResolver=T,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(a).subscribe(r=>{this.member=r;const _=this.sideMenuItemService.parseVo(this.vo),T=this.sideMenuItemService.parseMember(this.member);this.fullName=T.label,this.sideMenuService.setAccessMenuItems([_,T]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.V),t.Y36(d.sK),t.Y36(V.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ee,1,0,"mat-spinner",1),t.YNc(3,re,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[m.O5,m.PC,b.yS,P.Hw,A.Ou,N.gM,Y.A,X.W,d.X$],data:{animation:[L.Ji]}}),i})();var J=c(71135);function ce(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function pe(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let ue=(()=>{class i{constructor(e,o,a,s,r,_){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=_,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,ce,1,0,"mat-spinner",0),t.YNc(1,pe,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var de=c(4732),_e=c(81847),me=c(11717),ge=c(50301);function he(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const fe=function(i){return["/organizations/",i]};function Te(i,n){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,he,2,0,"span",1),t.qZA()),2&i){const e=n.$implicit,o=n.index,a=t.oxw();t.xp6(1),t.Q6J("perunWebAppsForceRouterLink",t.VKq(3,fe,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function Ae(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let Ie=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["queryParamsHandling","merge",1,"vo-link","pointer",3,"perunWebAppsForceRouterLink"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Te,4,5,"span",0),t.YNc(3,Ae,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[m.sg,m.O5,ge.Kd,d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function be(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function ve(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Ce(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Se(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const xe=function(){return{color:"black"}},Ne=function(i){return["/organizations/",i]};function Oe(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ee,3,0,"button",10),t.YNc(11,ve,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,Ce,1,2,"app-related-vos",13),t.YNc(17,Se,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,xe))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Ne,e.vo.id)),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,15,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,17,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let Ze=(()=>{class i extends((0,dt.T)()){constructor(e,o,a,s,r,_,T,E,M){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=T,this.entityStorageService=E,this.reloadEntityDetail=M,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,_t.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(a=>{this.vo=a.vo,this.enrichedVo=a,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(a=>{a&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const a=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([a])}removeVo(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(me.o,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(z.V),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.fb),t.Y36($.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","vo-name-link",1,"vo-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,be,1,0,"mat-spinner",1),t.YNc(3,Oe,19,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},dependencies:[m.O5,m.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,Ie,d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[L.Ji]}}),i})();var l=c(30671),De=c(58964),Me=c(19352),Z=c(73546),Le=c(60526),D=c(98380),mt=c(82322),gt=c(21757),Re=c(82514),ht=c(62383),Ge=c(21330);function we(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.groupIsSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Ue(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function Pe(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function ye(i,n){1&i&&t._UZ(0,"th",17)}function Fe(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function Ve(i,n){1&i&&t._UZ(0,"th",17)}function Ye(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Je(i,n){if(1&i&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"groupStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ye,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeExpiration())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Qe(i,n){if(1&i&&(t.TgZ(0,"div")(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,qe,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function ke(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Je,9,12,"div",6),t.YNc(2,Qe,5,4,"div",6),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function Be(i,n){1&i&&t._UZ(0,"tr",23)}function He(i,n){if(1&i&&(t.TgZ(0,"div")(1,"table",10),t.ynx(2,11),t.YNc(3,ye,1,0,"th",12),t.YNc(4,Fe,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Ve,1,0,"th",12),t.YNc(7,ke,3,2,"td",15),t.BQk(),t.YNc(8,Be,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let je=(()=>{class i{constructor(e,o,a,s){this.groupsManager=e,this.authResolver=o,this.translate=a,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new l.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,g.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[S.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(a=>"groupMembershipExpiration"===a.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new l.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,g.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(G.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(G.pf,e).afterClosed().subscribe(a=>{a&&(this.selectedMember=a,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.x4),t.Y36(d.sK),t.Y36(p.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",2),t.YNc(7,we,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Ue,1,0,"mat-spinner",4),t.YNc(9,Pe,3,3,"perun-web-apps-alert",5),t.YNc(10,He,9,2,"div",6),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,I.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,A.Ou,Z.a8,Z.dk,Z.dn,Z.n5,D.w,mt.h,d.X$,gt.f,Re.F,ht.M,Ge.r],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),ze=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var Q=c(31359);function $e(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Xe(i,n){1&i&&t._UZ(0,"th",17)}function Ke(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function We(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ti(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Ke,2,1,"span",1),t.YNc(2,We,3,3,"span",1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function ei(i,n){1&i&&t._UZ(0,"th",17)}function ii(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function oi(i,n){1&i&&t._UZ(0,"tr",20)}function ni(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",21)(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function ai(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function si(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function ri(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function li(i,n){if(1&i&&(t.TgZ(0,"td",33)(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function ci(i,n){1&i&&t._UZ(0,"tr",35)}function pi(i,n){1&i&&t._UZ(0,"tr",20)}const ft=function(){return["sponsors","expiration"]};function ui(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,ai,3,3,"th",9),t.YNc(10,si,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,ri,3,3,"th",9),t.YNc(13,li,4,3,"td",30),t.BQk(),t.YNc(14,ci,1,0,"tr",32),t.YNc(15,pi,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,ft)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,ft))}}function di(i,n){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",24)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,ui,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function _i(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,Xe,1,0,"th",9),t.YNc(13,ti,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ei,1,0,"th",9),t.YNc(16,ii,2,1,"td",12),t.BQk(),t.YNc(17,oi,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14)(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,ni,12,11,"mat-card",15),t.YNc(23,di,11,7,"div",1),t.qZA()(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let mi=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=T,this.routePolicyService=E,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new l.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new l.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(a=>{this.attUrns=this.storeService.get("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(a.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.friendlyNameParameter)),this.member=a,this.initAttributes(),this.dataSource=new l.by(Array.from(this.attributes.keys())),this.vo={id:a.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(De.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Me.H,e).afterClosed().subscribe(a=>{a&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.d6),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"member","vo"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,$e,1,0,"mat-spinner",0),t.YNc(1,_i,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,N.gM,Z.a8,Z.dk,Z.dn,Z.n5,Z.$j,Le.b,je,J.L,d.X$,ze,Q.d,ht.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}"]}),i})();var gi=c(85243);function hi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const fi=function(i,n){return["/organizations",i,"groups",n]};function Ti(i,n){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("routerLink",t.WLB(5,fi,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Ai(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Ti,5,8,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ii=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(a).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"HttpErrorResponse"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"]],template:function(e,o){1&e&&(t.YNc(0,hi,1,0,"mat-spinner",0),t.YNc(1,Ai,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,b.yS,A.Ou,J.L,d.X$]}),i})();var bi=c(15592);let Ei=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var vi=c(94856);let Ci=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(a=>{a instanceof b.m2&&(this.currentUrl=a.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var K=c(12651);let Si=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[K.t,d.X$]}),i})();function xi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ni(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Oi=(()=>{class i{constructor(e,o,a,s){this.voService=e,this.router=o,this.entityStorageService=a,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,xi,1,0,"mat-spinner",0),t.YNc(1,Ni,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var k=c(3238),x=c(59549),y=c(284),f=c(24006),B=c(56709),H=c(84385),W=c(90455),Tt=c(71948);const Zi=["*"];let Di=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(W.Rr,7),2&e){let a;t.iGM(a=t.CRH())&&(o.toggle=a.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Zi,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const a=t.EpF();t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(a);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const a=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!a.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",a.checked?"open":"closed")}},dependencies:[f.JJ,f.On,W.Rr],data:{animation:[L.BQ]}}),i})();function Mi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Li(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Ri(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=a)}),t.YNc(9,Li,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Gi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function wi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Ui(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Pi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Fi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=a)}),t.YNc(9,Fi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodType=a)}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,yi,7,8,"div",13),t.YNc(11,Vi,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=a)}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(3),o=t.MAs(7),a=t.oxw(2);t.xp6(1),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(6);return t.KtG(a.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=a)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.periodType=a)}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Mi,7,8,"div",13),t.YNc(22,Ri,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=a)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=a)}),t.YNc(30,Gi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=a)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=a)}),t.YNc(38,wi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=a)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=a)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=a)}),t.YNc(50,Ui,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=a)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=a)}),t.YNc(61,Pi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Yi,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.saveChanges())}),t._uU(66),t.ALo(67,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(6),o=t.MAs(14),a=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",a.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let At=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const a=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=a}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const a=[];return e.doNotAllowLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotAllowLoas=a,a.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const a=[];return e.doNotExtendLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotExtendLoas=a,a.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const a=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=a,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let a=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(a.startsWith("+")){a.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="dynamic";const s=a.charAt(a.length-1);o.specialLoaPeriodDynamic=a.substring(1,a.length-1),o.specialLoaPeriodDynamicUnit=s}else a.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=a;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),a=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),_=this.parseSpecialLoaPeriod(e),T={period:o};return null!==s&&(T.doNotExtendLoa=s),null!==a&&(T.doNotAllowLoa=a),null!==r&&(T.gracePeriod=r),null!==_&&(T.periodLoa=_),T}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ji,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[m.sg,m.O5,k.ey,x.KE,x.bx,x.hX,x.UY,y.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,B.oG,H.gD,N.gM,W.Rr,Tt.VQ,Tt.U0,Di,d.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[L.BQ]}}),i})();function qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Qi=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>{this.notificator.showRPCError(o.error,this.errorMessage)})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,qi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,At],data:{animation:[L.BQ]}}),i})();var ki=c(55857),It=c(28361);let Bi=(()=>{class i{constructor(e,o,a,s){this.dialog=e,this.voService=o,this.guiAuthResolver=a,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[It.s]}),i})();function Hi(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ji(i,n){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=a)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function $i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=a)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,ji,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,zi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let Xi=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Hi,1,0,"mat-spinner",1),t.YNc(5,$i,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[m.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,d.X$]}),i})();function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=a)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let to=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ki,1,0,"mat-spinner",1),t.YNc(5,Wi,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[m.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function eo(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function io(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function oo(i,n){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,io,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function no(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ao(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,no,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function so(i,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,oo,4,2,"mat-form-field",8),t.YNc(2,ao,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let ro=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,eo,1,0,"mat-spinner",1),t.YNc(5,so,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[m.O5,x.TO,x.KE,y.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var tt=c(44850),lo=c(43157);function co(i,n){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function po(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function uo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.verifyApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function _o(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.approveApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function mo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.rejectApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function go(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.resendNotification())}),t.TgZ(1,"i",14),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function fo(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function To(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Ao(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function Io(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function bo(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function Eo(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function vo(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Co(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function So(i,n){1&i&&t._UZ(0,"th",31)}function xo(i,n){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function No(i,n){1&i&&t._UZ(0,"th",31)}function Oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,s=t.oxw(3);return t.KtG(s.editApplicationData(a))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Zo(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,Oo,3,0,"button",34),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Do(i,n){1&i&&t._UZ(0,"tr",36)}function Mo(i,n){1&i&&t._UZ(0,"tr",37)}function Lo(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,So,1,0,"th",25),t.YNc(3,xo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,No,1,0,"th",25),t.YNc(6,Zo,3,2,"td",28),t.BQk(),t.YNc(7,Do,1,0,"tr",29),t.YNc(8,Mo,1,0,"tr",30),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Ro(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,uo,3,3,"button",7),t.YNc(2,_o,3,3,"button",7),t.YNc(3,mo,3,3,"button",8),t.YNc(4,go,3,3,"button",8),t.YNc(5,ho,5,3,"button",9),t.YNc(6,fo,5,4,"div",4),t.YNc(7,To,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Ao,4,0,"span",4),t.YNc(21,Io,4,0,"span",4),t.YNc(22,bo,4,0,"span",4),t.qZA(),t.YNc(23,Eo,12,11,"div",12),t.YNc(24,vo,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,Co,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div")(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div")(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Lo,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,25,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,27,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,29,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,33,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(3),t.Oqu(t.lcZ(36,35,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(41,37,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(46,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(48,41,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let et=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,this.authResolver=T,this.usersService=E,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const a=Number(e.applicationId);this.registrarManager.getApplicationById(a).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const _=r.userAttributes.find(T=>"preferredMail"===T.friendlyName);this.userMail=_?.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new l.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const a=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==a.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):a}return e}resendNotification(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(Xi,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(to,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(a=>{this.application=a,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(ro,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.uw),t.Y36(d.sK),t.Y36(b.gz),t.Y36(u.V6),t.Y36(b.F0),t.Y36(u.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,co,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,po,1,0,"mat-spinner",3),t.YNc(6,Ro,50,44,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,tt.d,Z.n5,m.uU,d.X$,lo.h,Q.d]}),i})();var Go=c(75234),wo=c(37240);let Uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var O=c(3848),bt=c(19191);function Po(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function yo(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Fo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Vo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Yo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Fo,3,6,"ng-template",1),t.YNc(2,Vo,1,3,"ng-template",2),t.qZA())}function Jo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function qo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function Qo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Jo,3,6,"ng-template",1),t.YNc(2,qo,1,3,"ng-template",2),t.qZA())}let ko=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Po,2,3,"ng-template",1),t.YNc(7,yo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Yo,3,0,"mat-tab",3),t.YNc(9,Qo,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,d.X$]}),i})();function Bo(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ho(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let jo=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"HttpErrorResponse"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Bo,1,0,"mat-spinner",0),t.YNc(1,Ho,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var zo=c(10369),$o=c(21963),Xo=c(28820);function Ko(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Wo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchToInitial())}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchToExtension())}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function en(i,n){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function on(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function an(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,on,2,1,"mat-icon",21),t.YNc(8,nn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function sn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function rn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function ln(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,sn,2,1,"mat-icon",21),t.YNc(10,rn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function cn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function pn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function dn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,cn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,pn,2,1,"mat-icon",21),t.YNc(10,un,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function _n(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function mn(i,n){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function gn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function fn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,mn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,gn,2,1,"mat-icon",21),t.YNc(9,hn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Tn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function An(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function In(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,Tn,2,1,"mat-icon",21),t.YNc(7,An,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function bn(i,n){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function En(i,n){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),t.qZA()())}function vn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Cn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=a)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,bn,2,1,"option",32),t.qZA(),t.YNc(10,En,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,vn,2,1,"mat-icon",21),t.YNc(13,Cn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function xn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function Nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function On(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Zn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,xn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,Nn,2,1,"mat-icon",21),t.YNc(9,On,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Dn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Mn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Ln(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,Dn,2,1,"mat-icon",21),t.YNc(16,Mn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Rn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Gn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function wn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Rn,2,1,"mat-icon",39),t.YNc(4,Gn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Pn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function yn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Un,2,1,"mat-icon",39),t.YNc(4,Pn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Fn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Vn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Yn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Fn,2,1,"mat-icon",21),t.YNc(91,Vn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function qn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const Qn=function(){return["Example 1","Example 2"]},Et=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function kn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,t.DdM(5,Qn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Bn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const jn=function(){return{key1:"value 1",key2:"value 2"}};function zn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Bn,2,1,"mat-icon",21),t.YNc(8,Hn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,t.DdM(5,jn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function $n(i,n){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,an,11,5,"div",15),t.YNc(2,ln,13,6,"div",15),t.YNc(3,dn,13,9,"div",15),t.YNc(4,_n,2,1,"div",2),t.YNc(5,fn,12,6,"div",15),t.YNc(6,In,10,5,"div",15),t.YNc(7,Sn,16,11,"div",15),t.YNc(8,Zn,12,5,"div",15),t.YNc(9,Ln,19,7,"div",15),t.YNc(10,wn,5,4,"div",15),t.YNc(11,yn,5,4,"div",2),t.YNc(12,Yn,94,8,"div",15),t.YNc(13,kn,11,8,"div",2),t.YNc(14,zn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf",("HEADING"===e.type||"HTML_COMMENT"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Xn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,$n,15,14,"div",13),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Kn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",4),t.YNc(2,Wo,5,3,"button",5),t.YNc(3,tn,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=a)}),t.YNc(9,en,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Xn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let vt=(()=>{class i{constructor(e,o,a){this.route=e,this.translate=o,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const a=[];for(const s of o.split("|"))a.push(s.split("#")[1]);return a}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,a,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}hiddenTooltip(e){let o,a,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}getLocalizedLabel(e){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(d.sK),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ko,1,0,"mat-spinner",1),t.YNc(4,Kn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.sg,m.O5,k.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,P.Hw,I.lW,H.gD,A.Ou,N.gM,$o.H,Xo.$,m.gd,d.X$],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Wn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ta(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function ea(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function ia(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function oa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ea,3,6,"ng-template",1),t.YNc(2,ia,1,3,"ng-template",2),t.qZA())}function na(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function aa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function sa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,na,3,6,"ng-template",1),t.YNc(2,aa,1,3,"ng-template",2),t.qZA())}function ra(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function la(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function ca(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function pa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function ua(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ca,3,6,"ng-template",1),t.YNc(2,pa,1,3,"ng-template",2),t.qZA())}let da=(()=>{class i{constructor(e,o,a){this.route=e,this.authResolver=o,this.memberManager=a}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(u.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Wn,2,3,"ng-template",1),t.YNc(7,ta,1,2,"ng-template",2),t.qZA(),t.YNc(8,oa,3,0,"mat-tab",3),t.YNc(9,sa,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,ra,2,3,"ng-template",1),t.YNc(12,la,1,2,"ng-template",2),t.qZA(),t.YNc(13,ua,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,d.X$]}),i})(),_a=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=a,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},dependencies:[J.L]}),i})();var ma=c(68056),ga=c(24219),v=c(95017),ha=c(17584);function fa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ta(i,n){1&i&&t._UZ(0,"th",15)}function Aa(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function Ia(i,n){1&i&&t._UZ(0,"tr",17)}function ba(i,n){1&i&&t._UZ(0,"tr",18)}function Ea(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ta,1,0,"th",11),t.YNc(10,Aa,2,1,"td",12),t.BQk(),t.YNc(11,Ia,1,0,"tr",13),t.YNc(12,ba,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let va=(()=>{class i{constructor(e,o,a){this.dialogRef=e,this.data=o,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,fa,1,0,"mat-spinner",1),t.YNc(5,Ea,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var C=c(10036),Ca=c(17672),U=c(96214),R=c(7434);function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.deleteTag())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Na(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Oa(i,n){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Za=(()=>{class i{constructor(e,o,a,s,r,_){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=_,this.loading=!1,this.resourceTag=[],this.selection=new v.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(va,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ha.p,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,Sa,3,3,"button",2),t.YNc(5,xa,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Na,1,0,"mat-spinner",5),t.YNc(8,Oa,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Ca.o,U.t,R.L,d.X$]}),i})();function Da(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Ma=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>this.notificator.showRPCError(o.error,this.errorMessage))}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Da,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,At]}),i})(),La=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[It.s]}),i})();function Ra(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ga(i,n){1&i&&t._UZ(0,"th",15)}function wa(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Ua(i,n){1&i&&t._UZ(0,"tr",17)}function Pa(i,n){1&i&&t._UZ(0,"tr",18)}function ya(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ga,1,0,"th",11),t.YNc(10,wa,2,1,"td",12),t.BQk(),t.YNc(11,Ua,1,0,"tr",13),t.YNc(12,Pa,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ct=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ra,1,0,"mat-spinner",1),t.YNc(5,ya,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function Fa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Va(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Ya=function(i){return{"disabled-label":i}};function Ja(i,n){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Ya,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function ka(i,n){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,Ja,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,qa,2,1,"textarea",17),t.YNc(4,Qa,2,1,"textarea",17),t.qZA()()),2&i){const e=n.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Va,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,ka,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let St=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=a,this.notificator=s,this.data=r,this.mailFooter="",this.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fa,1,0,"mat-spinner",1),t.YNc(5,Ba,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[m.mk,m.sg,m.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,p.uh,p.xY,p.H8,A.Ou,N.gM,D.w,m.gd,d.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var Ha=c(67376);function ja(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let za=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,ja,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[m.sg,I.lW,N.gM,tt.d,d.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),$a=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[Ha.PQ,D.w,za,d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Xa(i,n){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Ka(i,n){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function Wa(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function ts(i,n){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function es(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function is(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function os(i,n){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function ns(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function as(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ss(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function rs(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const ls=function(i){return{"disabled-label":i}};function cs(i,n){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,ls,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function ds(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function _s(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function ms(i,n){1&i&&t._UZ(0,"mat-divider",61)}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,cs,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.showTags=!a.showTags)}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18)(13,"div",null,51),t.YNc(15,ps,1,1,"input",52),t.YNc(16,us,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,ds,2,1,"textarea",55),t.YNc(24,_s,2,1,"textarea",55),t.qZA()()(),t.YNc(25,ms,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,_=t.MAs(14),T=t.MAs(22),E=t.oxw(2).$implicit,M=t.oxw(2);return t.KtG(M.addTag(_,T,E,a,r))}),t.qZA()()()()}if(2&i){const e=n.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function hs(i,n){if(1&i&&(t.YNc(0,ss,3,3,"perun-web-apps-alert",40),t.YNc(1,rs,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,gs,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function fs(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,hs,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+n.$implicit)))}function Ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,ts,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,es,3,3,"div",30),t.YNc(40,is,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,os,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ns,3,3,"div",30),t.YNc(55,as,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=a)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,fs,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function Is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let it=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=_,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,a,s,r){const _=this.isTextFocused?o.children.item(0):e.children.item(0),T=_.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,T)+s+this.applicationMail.htmlMessage[a].text.substring(T):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,T)+s+this.applicationMail.message[a].text.substring(T):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,T)+s+this.applicationMail.htmlMessage[a].subject.substring(T):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,T)+s+this.applicationMail.message[a].subject.substring(T),_.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.tk),t.Y36(p.WI),t.Y36(u.x4),t.Y36(h.ff),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",0),t.YNc(2,Xa,4,3,"div",1),t.YNc(3,Ka,3,3,"ng-template",null,2,t.W1O),t.YNc(5,Wa,1,0,"mat-spinner",3),t.YNc(6,Ts,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,As,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,Is,3,4,"button",7),t.qZA()()()()),2&e){const a=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},dependencies:[m.mk,m.sg,m.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,B.oG,p.uh,p.xY,p.H8,H.gD,A.Ou,N.gM,tt.d,D.w,$a,m.gd,d.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[L.es,L.BQ]}}),i})();var ot=c(62707);function bs(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let xt=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=_,this.data=T,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=E=>E.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(d.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,bs,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,ot.M,mt.h,d.X$],data:{animation:[L.BQ]}}),i})();var q=c(96308),Nt=c(18750);function Es(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return t.KtG(a?_.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}function Cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Ss(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function xs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Ns(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Zs(i,n){1&i&&(t.TgZ(0,"div")(1,"mat-icon",25),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Ds(i,n){1&i&&(t.TgZ(0,"mat-icon",26),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Ms(i,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,Zs,5,3,"div",23),t.YNc(2,Ds,4,3,"ng-template",null,24,t.W1O),t.qZA()),2&i){const e=n.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ls(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22)(1,"section")(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),t.qZA()()()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Gs(i,n){1&i&&t._UZ(0,"tr",28)}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Us(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Ot=(()=>{class i{constructor(e,o,a,s,r,_){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=_,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new v.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(it,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new l.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:21,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.ynx(3,3),t.YNc(4,Es,2,3,"th",4),t.YNc(5,vs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Cs,3,3,"th",7),t.YNc(8,Ss,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,xs,3,3,"th",7),t.YNc(11,Ns,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Os,3,3,"th",7),t.YNc(14,Ms,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ls,3,3,"th",7),t.YNc(17,Rs,4,6,"td",10),t.BQk(),t.YNc(18,Gs,1,0,"tr",13),t.YNc(19,ws,1,2,"tr",14),t.qZA()()(),t.YNc(20,Us,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[m.O5,f.JJ,f.On,P.Hw,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.copy())}),t.TgZ(1,"i",5),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Vs(i,n){1&i&&t._UZ(0,"mat-spinner",12)}function Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.changeSelection(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let Js=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=T,this.store=E,this.entityStorageService=M,this.loading=!1,this.applicationMails=[],this.selection=new v.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.get("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const a=(0,g.kZ)();a.width="1400px",a.height="700px",a.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(it,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ct,e).afterClosed().subscribe(a=>{a&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(St,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.YF),t.Y36(u.d6),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ps,3,3,"button",2),t.YNc(5,ys,3,4,"button",3),t.TgZ(6,"button",4),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(7,"i",5),t._uU(8,"email"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Fs,5,3,"button",6),t.qZA(),t.YNc(12,Vs,1,0,"mat-spinner",7),t.YNc(13,Ys,1,7,"app-notification-list",8)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(10,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Ot,d.X$]}),i})();var qs=c(14336);function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Hs(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function js(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.changeSelection(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function zs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,Qs,3,3,"button",3),t.YNc(3,ks,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeEmailFooter())}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Bs,5,3,"button",7),t.qZA(),t.YNc(10,Hs,1,0,"mat-spinner",8),t.YNc(11,js,1,7,"app-notification-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function $s(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Xs(i,n){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,$s,3,3,"button",16),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let Ks=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,this.attributesService=T,this.entityStorageService=E,this.loading=!1,this.applicationMails=[],this.selection=new v.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"HttpErrorResponse"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{const o=e.error;"FormNotExistsException"===o.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(o)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(it,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ct,e).afterClosed().subscribe(a=>{a&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(St,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.F5),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.H8),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,zs,12,8,"div",1),t.YNc(4,Xs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[m.O5,I.lW,A.Ou,D.w,Ot,d.X$]}),i})();var nt=c(15935);function Ws(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function tr(i,n){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Zt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new v.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,Ws,1,0,"mat-spinner",3),t.YNc(7,tr,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,R.L,nt.D,d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function er(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function ir(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function or(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function nr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function ar(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function sr(i,n){1&i&&t._UZ(0,"tr",19)}function rr(i,n){1&i&&t._UZ(0,"tr",20)}function lr(i,n){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,ir,2,0,"th",12),t.YNc(10,or,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,nr,2,0,"th",12),t.YNc(13,ar,2,1,"td",13),t.BQk(),t.YNc(14,sr,1,0,"tr",15),t.YNc(15,rr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Dt=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=_,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(C.dB),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,er,1,0,"mat-spinner",2),t.YNc(6,lr,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function cr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function pr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ur(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function dr(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let _r=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new v.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(T=>this.successMessage=T)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Zt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,cr,3,3,"button",2),t.YNc(6,pr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ur,1,0,"mat-spinner",5),t.YNc(9,dr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,nt.D,U.t,R.L,d.X$]}),i})();var F=c(24179);function mr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(a.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const hr=function(){return["select","id","name","description"]};function fr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("authType","create-relation-dialog")("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,hr))("filter",e.filterValue)("tableId",e.tableId)}}function Tr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,gr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(a))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,fr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Tr,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Ir=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=_,this.data=T,this.selection=new v.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(E=>this.successMessage=E)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(a=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[a])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(h.YF),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,mr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Ar,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,R.L,ot.M,d.X$]}),i})();function br(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Er(i,n){1&i&&t._UZ(0,"th",15)}function vr(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Cr(i,n){1&i&&t._UZ(0,"tr",17)}function Sr(i,n){1&i&&t._UZ(0,"tr",18)}function xr(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Er,1,0,"th",11),t.YNc(10,vr,2,1,"td",12),t.BQk(),t.YNc(11,Cr,1,0,"tr",13),t.YNc(12,Sr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Nr=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(_=>this.successMessage=_)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(h.ff),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,br,1,0,"mat-spinner",1),t.YNc(5,xr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var Or=c(33604);const Zr=["list"];function Dr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const Mr=function(){return["select","id","vo","name","description"]};function Lr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10,11),2&i){const e=t.oxw();t.Q6J("authType","group-relations")("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(8,Mr))("filter",e.filterValue)("tableId",e.tableId)}}let Rr=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new v.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Ir,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Nr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],viewQuery:function(e,o){if(1&e&&t.Gf(Zr,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:19,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"span",3),t.ALo(9,"translate"),t.TgZ(10,"button",4),t.NdJ("click",function(){return o.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(14,"mat-checkbox",6),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Dr,1,0,"mat-spinner",7),t.YNc(18,Lr,2,9,"perun-web-apps-groups-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,11,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,13,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(9,15,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||void 0!==o.list&&!o.list.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(12,17,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(16,19,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,B.oG,A.Ou,N.gM,F.W,U.t,R.L,d.X$]}),i})();var at=c(64901),Gr=c(9146);function wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Ur(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Pr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function yr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let Fr=(()=>{class i{constructor(e,o,a){this.registrarManager=e,this.memberManager=o,this.route=a,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,wr,3,3,"button",2),t.YNc(6,Ur,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Pr,1,0,"mat-spinner",4),t.YNc(9,yr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,at.P,Gr.S,d.X$]}),i})();var Mt=c(68675),Lt=c(54004),w=c(86257),Rt=c(47957);function Vr(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Yr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Jr(i,n){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),t.KtG(r.stepper.selected.completed=!0)}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Qr(i,n){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function kr(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,Jr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Qr,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Br(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Hr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const jr=function(){return["select","id","name","description"]};function zr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,jr))("selection",e.selectedGroups)}}function $r(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Xr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function Kr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.stepperNext(),t.KtG(a.loadGroups())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function Wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let tl=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=T,this.cd=E,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new v.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(a=>a.id)),this.groups.forEach(a=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[a])||this.membersGroupsId.add(a.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Mt.O)(""),(0,Lt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Mt.O)(""),(0,Lt.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(w.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,Vr,2,3,"ng-template",4),t.YNc(8,Yr,1,0,"mat-spinner",5),t.YNc(9,kr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Br,2,3,"ng-template",4),t.YNc(12,Hr,1,0,"mat-spinner",5),t.YNc(13,zr,2,8,"div",6),t.YNc(14,$r,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Xr,3,3,"button",10),t.YNc(20,Kr,3,8,"button",11),t.YNc(21,Wr,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[m.sg,m.O5,Rt.XC,Rt.ZL,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.oH,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,w.C0,w.VY,w.Vq,D.w,F.W,m.Ov,d.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var el=c(62109);function il(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ol(i,n){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function nl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let al=(()=>{class i{constructor(e,o,a,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=a,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(a=>{this.member=a,this.refreshTable()})})}addResource(){const e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tl,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,il,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,ol,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,nl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,R.L,el.C,d.X$]}),i})();var sl=c(98918),rl=c(4675),ll=c(258),cl=c(60113),pl=c(16500),ul=c(92090),dl=c(20057),_l=c(49546),ml=c(76023),gl=c(3246);function hl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function fl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Tl(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Al(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let Il=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new v.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(T=>this.successMessage=T)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Zt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,hl,3,3,"button",2),t.YNc(6,fl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Tl,1,0,"mat-spinner",5),t.YNc(9,Al,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,nt.D,U.t,R.L,d.X$]}),i})();function bl(i,n){1&i&&t._UZ(0,"th",9)}function El(i,n){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function vl(i,n){1&i&&t._UZ(0,"th",9)}function Cl(i,n){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function Sl(i,n){1&i&&t._UZ(0,"tr",12)}let Gt=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new l.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,bl,1,0,"th",4),t.YNc(10,El,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,vl,1,0,"th",4),t.YNc(13,Cl,2,1,"td",7),t.BQk(),t.YNc(14,Sl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,Z.a8,Z.dk,Z.dn,Z.n5,d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function xl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Nl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Ol=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new l.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new l.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,xl,1,0,"mat-spinner",1),t.YNc(4,Nl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,Gt,d.X$]}),i})();function Zl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Dl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Ml=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([a,s])=>this.membersCountsByVoStatus.set(a.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(a=>{Object.entries(a).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Zl,1,0,"mat-spinner",1),t.YNc(4,Dl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,Gt,d.X$]}),i})();function Ll(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Rl=function(){return["select","id","name","description"]};function Gl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(a))}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Rl))("filter",e.filterValue)("tableId",e.tableId)}}let wl=(()=>{class i{constructor(e,o,a,s){this.dialogRef=e,this.data=o,this.groupService=a,this.registrarService=s,this.loading=!1,this.selection=new v.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ll,1,0,"mat-spinner",1),t.YNc(5,Gl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,at.P,d.X$]}),i})();const Ul=["list"];function Pl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAddGroup())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function yl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Fl=function(){return["select","id","name","description"]};function Vl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11,12),2&i){const e=t.oxw();t.Q6J("authType","application-form-manage-groups")("displayedColumns",t.DdM(7,Fl))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Yl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new v.Ov(!0,[]),this.tableId=C.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(wl,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,g.kZ)();e.width="450px",e.data={items:this.selected.selected.map(a=>a.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.x4),t.Y36(p.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ul,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Pl,3,3,"button",3),t.TgZ(9,"span",4),t.ALo(10,"translate"),t.TgZ(11,"button",5),t.NdJ("click",function(){return o.removeGroup()}),t._uU(12),t.ALo(13,"translate"),t.qZA()(),t.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,yl,1,0,"mat-spinner",7),t.YNc(16,Vl,2,8,"perun-web-apps-groups-list",8)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.s9C("matTooltip",t.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",void 0===o.list||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||void 0!==o.list&&!o.list.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,N.gM,D.w,F.W,U.t,R.L,d.X$]}),i})();var Jl=c(20872),ql=c(28499),wt=c(38383),Ut=c(96338),Ql=c(95406);const kl=["stepper"];function Bl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function Hl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function jl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function zl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function $l(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Xl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Wl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function tc(i,n){if(1&i&&(t.TgZ(0,"span",29),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function ec(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",24),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,tc,2,1,"span",25),t.TgZ(5,"span",26),t.ALo(6,"translate"),t.TgZ(7,"button",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",28),t._uU(9,"close"),t.qZA()()()()()}if(2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function ic(i,n){1&i&&t._UZ(0,"mat-spinner",30)}const oc=function(){return["checkbox","id","fullName"]};function nc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",33),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,oc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function ac(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function sc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,nc,1,6,"perun-web-apps-members-list",31),t.YNc(2,ac,3,3,"perun-web-apps-alert",32),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8)(4,"form",9),t.YNc(5,Bl,2,3,"ng-template",10),t.TgZ(6,"div",11)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,Hl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,jl,3,3,"mat-error",13),t.YNc(19,zl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,$l,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,Xl,3,3,"mat-error",13),t.qZA()()()(),t.TgZ(32,"mat-step",8)(33,"form",9),t.YNc(34,Kl,2,3,"ng-template",10),t.TgZ(35,"app-login-password-form-with-generate-option",17),t.NdJ("parsedRulesOutput",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=a)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,Wl,2,3,"ng-template",10),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,ec,10,9,"mat-list-item",18),t.qZA(),t.TgZ(43,"h6",19),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",20)(47,"input",21),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return t.KtG(0!==a.searchCtrl.value.length&&a.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,ic,1,0,"mat-spinner",3),t.YNc(56,sc,3,2,"div",13),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,27,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,29,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,31,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,33,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,35,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,37,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,39,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,41,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function lc(i,n){1&i&&t._UZ(0,"mat-spinner",30)}function cc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",35)(1,"button",36),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,cc,3,3,"button",37),t.YNc(5,pc,3,8,"button",38),t.YNc(6,uc,3,4,"button",39),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let _c=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M,ct){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=T,this.apiRequestConfiguration=E,this._formBuilder=M,this.cd=ct,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new v.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(pt=>this.successMessageMember=pt),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(pt=>this.successMessagePwd=pt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,ql.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}onCreate(){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const e=this.firstFormGroup.get("subjectCtrl");e?.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=e.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.parsedRules.get(o),s=`urn:perun:user:attribute-def:def:login-namespace:${o}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===a.login?this.usersManagerService.generateAccountForName(o,this.firstFormGroup.get("nameCtrl").value).subscribe(r=>{this.candidate.attributes[s]=r[s],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[s]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(e=>e.user),candidate:this.candidate}).subscribe(e=>{this.membersManagerService.validateMemberAsync(e.id).subscribe(o=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(o,this.secondFormGroup.get("generatePasswordCtrl").value):this.dialogRef.close(!0)},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(e,o){const a=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(a).login)return void this.validateMember(e.id);this.usersManagerService.reserveRandomPassword(e.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id,!1)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:a,password:s}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(e,o=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{o&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0)},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(f.QS),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(kl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:6,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,rc,57,43,"div",2),t.YNc(5,lc,1,0,"mat-spinner",3),t.YNc(6,dc,7,6,"div",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},dependencies:[m.sg,m.O5,x.TO,x.KE,x.hX,y.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,P.Hw,I.lW,p.xY,p.H8,A.Ou,N.gM,w.C0,w.VY,w.Vq,D.w,wt.O,Ut.i$,Ut.Tg,Ql.r,d.X$,Q.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var mc=c(53455);function gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveMembers())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function hc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const fc=function(){return["checkbox","id","type","fullName","status"]};function Tc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,fc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Ac=(()=>{class i{constructor(e,o,a,s,r){this.membersManager=e,this.dialog=o,this.authResolver=a,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new v.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(_c,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(mc.X,e).afterClosed().subscribe(a=>{a&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,gc,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,hc,1,0,"mat-spinner",5),t.YNc(10,Tc,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,R.L,wt.O,d.X$]}),i})();var j=c(71992),Pt=c(87831);const Ic=["stepper"];function bc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Ec(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function vc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Cc(i,n){1&i&&t._UZ(0,"th",19)}function Sc(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function xc(i,n){1&i&&t._UZ(0,"tr",21)}function Nc(i,n){1&i&&t._UZ(0,"tr",22)}function Oc(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Cc,1,0,"th",14),t.YNc(6,Sc,2,1,"td",15),t.BQk(),t.YNc(7,xc,1,0,"tr",16),t.YNc(8,Nc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function Zc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Ec,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=a)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,vc,2,3,"ng-template",8),t.YNc(9,Oc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Mc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Lc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function Rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Dc,3,3,"button",26),t.YNc(6,Mc,3,4,"button",27),t.YNc(7,Lc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Gc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=a,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new v.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const a=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!a.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ic,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,bc,1,0,"mat-spinner",1),t.YNc(5,Zc,10,7,"div",2),t.YNc(6,Rc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,p.uh,p.xY,p.H8,A.Ou,w.C0,w.VY,w.Vq,w.BY,D.w,Pt.Z,R.L,d.X$]}),i})();function wc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Pc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function yc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let Fc=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=_,this.translator=T,this.loading=!1,this.voSelection=new v.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Gc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36($.G),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,wc,3,3,"button",2),t.YNc(5,Uc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Pc,1,0,"mat-spinner",5),t.YNc(8,yc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Pt.Z,U.t,R.L,d.X$]}),i})();const Vc=function(){return["select","id","name","description"]};function Yc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,Vc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Jc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function qc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const Qc=function(i){return{parentVo:i}};let kc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.groupService=a,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new v.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Yc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Jc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,qc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,Qc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,D.w,F.W,R.L,d.X$]}),i})();function Bc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Hc=function(){return["select","id","name","description"]};function jc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,Hc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function zc(i,n){1&i&&t._UZ(0,"mat-spinner",11)}let $c=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=_,this.changeDetector=T,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new v.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(kc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(u.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,Bc,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,jc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,zc,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,A.Ou,F.W,U.t,ot.M,d.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var Xc=c(61639);const Kc=[{path:"",component:Vt.Y},{path:":voId",component:Ze,canActivateChild:[j.a],children:[{path:"",component:ue,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Si,data:{animation:"VoAttributesPage"}},{path:"groups",component:de.G,data:{animation:"VoGroupsPage"}},{path:"members",component:_e.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ei,children:[{path:"",component:_a,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ma.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ga.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Za,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:vi.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:gl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Ac,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ol,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ci,children:[{path:"",component:Oi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Qi,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Bi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:zo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Yl},{path:"notifications",component:Js,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:_r,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Fc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:$c,data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:le,canActivateChild:[j.a],children:[{path:"",component:mi,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:da,data:{animation:"MemberAttributesPage"}},{path:"groups",component:gi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Fr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:al,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:te,canActivateChild:[j.a],children:[{path:"",component:Ii,data:{animation:"GroupOverviewPage"}},{path:"members",component:Go.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:bi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:ki.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:wo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:ko,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Ml,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:Xc.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Uo,children:[{path:"",component:jo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Ma,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:La,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt},{path:"notifications",component:Ks,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Rr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Il,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:et,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:sl.b,canActivateChild:[j.a],children:[{path:"",component:rl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ll.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:_l.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ul.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:ml.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Jl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cl.t,children:[{path:"",component:pl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dl.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Wc=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[b.Bz.forChild(Kc),b.Bz]}),i})();var tp=c(14264),ep=c(63189),ip=c(19516),op=c(51525),np=c(45256),st=c(28255);let rt=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var ap=c(86511);let lt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(ap.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var sp=c(69773),rp=c(9954);let lp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function cp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function pp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20)(1,"div",21),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",22),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return t.KtG(a?_.itemSelectionToggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),t.qZA()()()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(7,16,t.lcZ(8,18,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))("disabled",t.xi3(6,13,e,o.blockManualAdding))}}function up(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function dp(i,n){if(1&i&&(t.TgZ(0,"i",26),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function _p(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,dp,4,9,"i",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function mp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function gp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function hp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function fp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function Tp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Ap(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Ip(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function bp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Ep(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function vp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Cp(i,n){1&i&&t._UZ(0,"th",23)}function Sp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function xp(i,n){1&i&&t._UZ(0,"tr",27)}function Np(i,n){1&i&&t._UZ(0,"tr",28)}function Op(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}let Zp=(()=>{class i{constructor(e,o,a){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=a,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const a=e.richUser?e.richUser:e.candidate;return a.lastName?a.lastName:a.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const a of e.userAttributes)a.friendlyName.startsWith("login-namespace")&&null!=a.value&&(o.length>0&&(o+=", "),o+=a.friendlyName.substring(16)+": "+a.value);return o}getLoginsForCandidate(e){let a="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(a.length>0&&(a+=", "),a+=s.substring(49)+": "+e.attributes[s]);return a}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?this.selection.isSelected(e)?"deselect":"select":(this.isAllSelected()?"select":"deselect")+" all"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(rt),t.Y36(lt),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([rt,lt]),t.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return o.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,cp,2,3,"th",4),t.YNc(5,pp,9,20,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,up,3,3,"th",7),t.YNc(8,_p,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,mp,3,3,"th",7),t.YNc(11,gp,4,5,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,hp,3,3,"th",7),t.YNc(14,fp,3,3,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,Tp,3,3,"th",7),t.YNc(17,Ap,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,Ip,3,3,"th",7),t.YNc(20,bp,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Ep,3,3,"th",7),t.YNc(23,vp,3,3,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Cp,1,0,"th",7),t.YNc(26,Sp,2,1,"td",8),t.BQk(),t.YNc(27,xp,1,0,"tr",15),t.YNc(28,Np,1,0,"tr",16),t.qZA()()(),t.YNc(29,Op,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(25),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[m.O5,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,m.i8,d.X$,Q.d,sp.u,gt.f,rp.Z,lp,rt,lt]}),i})();function Dp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Mp(i,n){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function Lp(i,n){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function Rp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function Gp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(a))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Dp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,Mp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Lp,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,Rp,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function wp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Up(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function Pp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function yp(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function Fp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function Vp(i,n){1&i&&t._UZ(0,"tr",32)}function Yp(i,n){1&i&&t._UZ(0,"tr",33)}const yt=function(){return["userName","error"]};function Jp(i,n){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,Up,3,3,"th",24),t.YNc(7,Pp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,yp,3,3,"th",24),t.YNc(10,Fp,4,2,"td",25),t.BQk(),t.YNc(11,Vp,1,0,"tr",27),t.YNc(12,Yp,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,yt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,yt))}}function qp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Qp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,wp,1,0,"mat-spinner",5),t.YNc(2,Jp,13,9,"div",19),t.YNc(3,qp,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Ft=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new v.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new l.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Gp,23,27,"div",1),t.YNc(5,Qp,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[m.sg,m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,N.gM,st.VK,st.OP,st.p6,D.w,at.P,Zp,m.gd,d.X$,Q.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),kp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[m.ez,Wc,tp.m,ep.r,Or.ez,ip.d4,g.Je]}),i})();t.B6R(op.H,[Ft],[m.Ov]),t.B6R(np.k,[Ft],[m.Ov])}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[858],{60858:(Bp,ut,c)=>{c.r(ut),c.d(ut,{VosModule:()=>kp});var m=c(36895),b=c(94364),Vt=c(25309),z=c(69024),L=c(36769),h=c(32105),g=c(9244),u=c(32080),S=c(64080),G=c(74281),Yt=c(41656),dt=c(22158),_t=c(82722),t=c(94650),V=c(77968),p=c(65412),$=c(15003),P=c(97392),I=c(4859),A=c(51572),N=c(10266),Y=c(61283),X=c(4235),d=c(89383),Jt=c(29218),qt=c(45942),Qt=c(28764);function kt(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Bt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Ht(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteGroup())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.onSyncDetail())}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA()()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function zt(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",15),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,jt,6,11,"button",16),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const $t=function(){return{color:"black"}},Xt=function(i,n){return["/organizations",i,"groups",n]},Kt=function(i){return["/organizations",i]};function Wt(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Bt,3,0,"button",10),t.YNc(11,Ht,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",8),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,zt,7,10,"span",2),t.qZA()()(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,$t)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Xt,e.vo.id,e.group.id)),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(30,Kt,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let te=(()=>{class i extends((0,dt.T)()){constructor(e,o,a,s,r,_,T,E,M,ct){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=T,this.router=E,this.entityStorageService=M,this.reloadEntityDetail=ct,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[S.r.GROUP_SYNC_ENABLED,S.r.GROUP_LAST_SYNC_STATE,S.r.GROUP_LAST_SYNC_TIMESTAMP,S.r.GROUP_STRUCTURE_SYNC_ENABLED,S.r.GROUP_LAST_STRUCTURE_SYNC_STATE,S.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,_t.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,g.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(G.Bp,e)}editGroup(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:G.Eg.GROUP},this.dialog.open(G.rd,e).afterClosed().subscribe(a=>{a&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(a).subscribe(r=>{this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(_=>{this.group=_,this.syncEnabled=(0,g.bx)(_),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Yt.P,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["../"],{relativeTo:this.route})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(z.V),t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.x4),t.Y36(b.F0),t.Y36(u.fb),t.Y36($.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,kt,1,0,"mat-spinner",1),t.YNc(3,Wt,25,32,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},dependencies:[m.O5,m.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,d.X$,Jt.J,qt.r,Qt.F],data:{animation:[L.Ji]}}),i})();function ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const ie=function(i){return["/admin","users",i]};function oe(i,n){if(1&i&&(t.TgZ(0,"a",8),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("routerLink",t.VKq(2,ie,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function ne(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const ae=function(){return{color:"black"}},se=function(i,n){return["/organizations",i,"members",n]};function re(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA()(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,oe,2,4,"a",11),t.YNc(15,ne,2,1,"span",2),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,ae)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,se,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let le=(()=>{class i{constructor(e,o,a,s,r,_,T){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=_,this.authResolver=T,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(a).subscribe(r=>{this.member=r;const _=this.sideMenuItemService.parseVo(this.vo),T=this.sideMenuItemService.parseMember(this.member);this.fullName=T.label,this.sideMenuService.setAccessMenuItems([_,T]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.V),t.Y36(d.sK),t.Y36(V.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,ee,1,0,"mat-spinner",1),t.YNc(3,re,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},dependencies:[m.O5,m.PC,b.yS,P.Hw,A.Ou,N.gM,Y.A,X.W,d.X$],data:{animation:[L.Ji]}}),i})();var J=c(71135);function ce(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function pe(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let ue=(()=>{class i{constructor(e,o,a,s,r,_){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=_,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,ce,1,0,"mat-spinner",0),t.YNc(1,pe,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var de=c(4732),_e=c(81847),me=c(11717),ge=c(50301);function he(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const fe=function(i){return["/organizations/",i]};function Te(i,n){if(1&i&&(t.TgZ(0,"span")(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,he,2,0,"span",1),t.qZA()),2&i){const e=n.$implicit,o=n.index,a=t.oxw();t.xp6(1),t.Q6J("perunWebAppsForceRouterLink",t.VKq(3,fe,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function Ae(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let Ie=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["queryParamsHandling","merge",1,"vo-link","pointer",3,"perunWebAppsForceRouterLink"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Te,4,5,"span",0),t.YNc(3,Ae,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},dependencies:[m.sg,m.O5,ge.Kd,d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function be(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function ve(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeVo())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Ce(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Se(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const xe=function(){return{color:"black"}},Ne=function(i){return["/organizations/",i]};function Oe(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ee,3,0,"button",10),t.YNc(11,ve,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,Ce,1,2,"app-related-vos",13),t.YNc(17,Se,1,2,"app-related-vos",13),t.qZA()()(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,xe))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Ne,e.vo.id)),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,15,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,17,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let Ze=(()=>{class i extends((0,dt.T)()){constructor(e,o,a,s,r,_,T,E,M){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=T,this.entityStorageService=E,this.reloadEntityDetail=M,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,_t.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(a=>{this.vo=a.vo,this.enrichedVo=a,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,g.sF)("vos",this.vo),(0,g.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,g.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:G.Eg.VO},this.dialog.open(G.rd,e).afterClosed().subscribe(a=>{a&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const a=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([a])}removeVo(){const e=(0,g.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(me.o,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(z.V),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.fb),t.Y36($.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","vo-name-link",1,"vo-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,be,1,0,"mat-spinner",1),t.YNc(3,Oe,19,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},dependencies:[m.O5,m.PC,b.yS,P.Hw,I.lW,A.Ou,N.gM,Y.A,X.W,Ie,d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[L.Ji]}}),i})();var l=c(30671),De=c(58964),Me=c(19352),Z=c(73546),Le=c(60526),D=c(98380),mt=c(82322),gt=c(21757),Re=c(82514),ht=c(62383),Ge=c(21330);function we(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.groupIsSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Ue(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function Pe(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function ye(i,n){1&i&&t._UZ(0,"th",17)}function Fe(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function Ve(i,n){1&i&&t._UZ(0,"th",17)}function Ye(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeStatus())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Je(i,n){if(1&i&&(t.TgZ(0,"div")(1,"i"),t.ALo(2,"groupStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ye,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.changeExpiration())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Qe(i,n){if(1&i&&(t.TgZ(0,"div")(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,qe,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function ke(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Je,9,12,"div",6),t.YNc(2,Qe,5,4,"div",6),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function Be(i,n){1&i&&t._UZ(0,"tr",23)}function He(i,n){if(1&i&&(t.TgZ(0,"div")(1,"table",10),t.ynx(2,11),t.YNc(3,ye,1,0,"th",12),t.YNc(4,Fe,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Ve,1,0,"th",12),t.YNc(7,ke,3,2,"td",15),t.BQk(),t.YNc(8,Be,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let je=(()=>{class i{constructor(e,o,a,s){this.groupsManager=e,this.authResolver=o,this.translate=a,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new l.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,g.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[S.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(a=>"groupMembershipExpiration"===a.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new l.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,g.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(G.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,g.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(G.pf,e).afterClosed().subscribe(a=>{a&&(this.selectedMember=a,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.x4),t.Y36(d.sK),t.Y36(p.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",2),t.YNc(7,we,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Ue,1,0,"mat-spinner",4),t.YNc(9,Pe,3,3,"perun-web-apps-alert",5),t.YNc(10,He,9,2,"div",6),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,I.lW,l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,A.Ou,Z.a8,Z.dk,Z.dn,Z.n5,D.w,mt.h,d.X$,gt.f,Re.F,ht.M,Ge.r],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),ze=(()=>{class i{transform(e){return(0,g.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var Q=c(31359);function $e(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Xe(i,n){1&i&&t._UZ(0,"th",17)}function Ke(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function We(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ti(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Ke,2,1,"span",1),t.YNc(2,We,3,3,"span",1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function ei(i,n){1&i&&t._UZ(0,"th",17)}function ii(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function oi(i,n){1&i&&t._UZ(0,"tr",20)}function ni(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content",21)(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.requestPwdReset())}),t._uU(10),t.ALo(11,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function ai(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function si(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function ri(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function li(i,n){if(1&i&&(t.TgZ(0,"td",33)(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA()()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function ci(i,n){1&i&&t._UZ(0,"tr",35)}function pi(i,n){1&i&&t._UZ(0,"tr",20)}const ft=function(){return["sponsors","expiration"]};function ui(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content")(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(3);return t.KtG(a.changeSponsors())}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA()()(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,ai,3,3,"th",9),t.YNc(10,si,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,ri,3,3,"th",9),t.YNc(13,li,4,3,"td",30),t.BQk(),t.YNc(14,ci,1,0,"tr",32),t.YNc(15,pi,1,0,"tr",13),t.qZA()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,ft)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,ft))}}function di(i,n){if(1&i&&(t.TgZ(0,"div")(1,"mat-card",24)(2,"mat-card-header")(3,"mat-card-title")(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,ui,16,8,"mat-card-content",1),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function _i(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",3)(2,"div",4)(3,"mat-card",5)(4,"mat-card-header")(5,"mat-card-title")(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA()()(),t.TgZ(9,"mat-card-content")(10,"table",7),t.ynx(11,8),t.YNc(12,Xe,1,0,"th",9),t.YNc(13,ti,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ei,1,0,"th",9),t.YNc(16,ii,2,1,"td",12),t.BQk(),t.YNc(17,oi,1,0,"tr",13),t.qZA()()()(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14)(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,ni,12,11,"mat-card",15),t.YNc(23,di,11,7,"div",1),t.qZA()(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let mi=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=T,this.routePolicyService=E,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new l.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new l.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(a=>{this.attUrns=this.storeService.get("password_namespace_attributes").map(s=>{const r=s.split(":");return r[r.length-1]}),this.attributesManager.getLogins(a.userId).subscribe(s=>{this.logins=s.filter(r=>this.attUrns.includes(r.friendlyNameParameter)),this.member=a,this.initAttributes(),this.dataSource=new l.by(Array.from(this.attributes.keys())),this.vo={id:a.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,g.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(De.m,e)}changeSponsors(){const e=(0,g.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Me.H,e).afterClosed().subscribe(a=>{a&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.d6),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"member","vo"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,$e,1,0,"mat-spinner",0),t.YNc(1,_i,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,N.gM,Z.a8,Z.dk,Z.dn,Z.n5,Z.$j,Le.b,je,J.L,d.X$,ze,Q.d,ht.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}"]}),i})();var gi=c(85243);function hi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const fi=function(i,n){return["/organizations",i,"groups",n]};function Ti(i,n){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t._uU(4),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("routerLink",t.WLB(5,fi,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Ai(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Ti,5,8,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ii=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(a).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,g.sF)("groups",this.group),(0,g.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-roles",this.group)&&this.navItems.push({cssIcon:"perun-roles",url:`/organizations/${this.group.voId}/groups/${this.group.id}/roles`,label:"MENU_ITEMS.GROUP.ROLES",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"HttpErrorResponse"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"]],template:function(e,o){1&e&&(t.YNc(0,hi,1,0,"mat-spinner",0),t.YNc(1,Ai,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,b.yS,A.Ou,J.L,d.X$]}),i})();var bi=c(15592);let Ei=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var vi=c(94856);let Ci=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(a=>{a instanceof b.m2&&(this.currentUrl=a.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var K=c(12651);let Si=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},dependencies:[K.t,d.X$]}),i})();function xi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ni(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Oi=(()=>{class i{constructor(e,o,a,s){this.voService=e,this.router=o,this.entityStorageService=a,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,xi,1,0,"mat-spinner",0),t.YNc(1,Ni,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var k=c(3238),x=c(59549),y=c(284),f=c(24006),B=c(56709),H=c(84385),W=c(90455),Tt=c(71948);const Zi=["*"];let Di=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(W.Rr,7),2&e){let a;t.iGM(a=t.CRH())&&(o.toggle=a.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Zi,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const a=t.EpF();t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"label",2),t.NdJ("click",function(){t.CHM(a);const r=t.MAs(5);return t.KtG(r.toggle()||o.valueChanged())}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA()(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA()()}if(2&e){const a=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!a.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",a.checked?"open":"closed")}},dependencies:[f.JJ,f.On,W.Rr],data:{animation:[L.BQ]}}),i})();function Mi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Li(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Ri(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",27),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.periodDynamicUnit=a)}),t.YNc(9,Li,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Gi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function wi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Ui(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Pi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25)(1,"mat-form-field",26)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodStatic=a)}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Fi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Vi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18)(1,"mat-form-field",19)(2,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamic=a)}),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.currentConfiguration.specialLoaPeriodDynamicUnit=a)}),t.YNc(9,Fi,2,2,"mat-option",17),t.qZA()()()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29)(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodType=a)}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA()(),t.YNc(10,yi,7,8,"div",13),t.YNc(11,Vi,10,10,"div",14),t.TgZ(12,"div")(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.currentConfiguration.specialLoaPeriodExtendExpiredMembers=a)}),t._uU(14),t.ALo(15,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(3),o=t.MAs(7),a=t.oxw(2);t.xp6(1),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2)(2,"h1",3),t.NdJ("click",function(){t.CHM(e);const a=t.MAs(6);return t.KtG(a.toggle())}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.enabled=a)}),t.qZA()(),t.TgZ(7,"div")(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7)(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.periodType=a)}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA()(),t.YNc(21,Mi,7,8,"div",13),t.YNc(22,Ri,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoasEnabled=a)}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field")(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotAllowLoas=a)}),t.YNc(30,Gi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoasEnabled=a)}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field")(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.doNotExtendLoas=a)}),t.YNc(38,wi,2,2,"mat-option",17),t.qZA()()(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodEnabled=a)}),t.ALo(40,"translate"),t.TgZ(41,"div",18)(42,"mat-form-field",19)(43,"input",20),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriod=a)}),t.ALo(44,"translate"),t.qZA()(),t.TgZ(45,"mat-form-field")(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.gracePeriodUnit=a)}),t.YNc(50,Ui,2,2,"mat-option",17),t.qZA()()()(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoaPeriodEnabled=a)}),t.ALo(52,"translate"),t.TgZ(53,"div",7)(54,"div")(55,"mat-form-field")(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentConfiguration.specialLoa=a)}),t.YNc(61,Pi,2,2,"mat-option",17),t.qZA()(),t.YNc(62,Yi,16,13,"div",22),t.qZA()()()(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.saveChanges())}),t._uU(66),t.ALo(67,"translate"),t.qZA()()()}if(2&i){const e=t.MAs(6),o=t.MAs(14),a=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",a.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let At=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const a=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=a}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const a=[];return e.doNotAllowLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotAllowLoas=a,a.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const a=[];return e.doNotExtendLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotExtendLoas=a,a.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const a=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=a,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let a=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(a.startsWith("+")){a.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="dynamic";const s=a.charAt(a.length-1);o.specialLoaPeriodDynamic=a.substring(1,a.length-1),o.specialLoaPeriodDynamicUnit=s}else a.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=a;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),a=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),_=this.parseSpecialLoaPeriod(e),T={period:o};return null!==s&&(T.doNotExtendLoa=s),null!==a&&(T.doNotAllowLoa=a),null!==r&&(T.gracePeriod=r),null!==_&&(T.periodLoa=_),T}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ji,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},dependencies:[m.sg,m.O5,k.ey,x.KE,x.bx,x.hX,x.UY,y.Nt,f.Fj,f.JJ,f.c5,f.On,I.lW,B.oG,H.gD,N.gM,W.Rr,Tt.VQ,Tt.U0,Di,d.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[L.BQ]}}),i})();function qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Qi=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>{this.notificator.showRPCError(o.error,this.errorMessage)})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,S.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,qi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,At],data:{animation:[L.BQ]}}),i})();var ki=c(55857),It=c(28361);let Bi=(()=>{class i{constructor(e,o,a,s){this.dialog=e,this.voService=o,this.guiAuthResolver=a,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[It.s]}),i})();function Hi(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ji(i,n){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.reason=a)}),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function $i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"mat-select",9),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.mailType=a)}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,ji,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA()()(),t.YNc(24,zi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let Xi=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Hi,1,0,"mat-spinner",1),t.YNc(5,$i,25,24,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},dependencies:[m.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,d.X$]}),i})();function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8)(4,"textarea",9),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.reason=a)}),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let to=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ki,1,0,"mat-spinner",1),t.YNc(5,Wi,5,4,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},dependencies:[m.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function eo(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function io(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function oo(i,n){if(1&i&&(t.TgZ(0,"mat-form-field")(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,io,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function no(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function ao(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,no,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function so(i,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,oo,4,2,"mat-form-field",8),t.YNc(2,ao,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let ro=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new f.p4(this.formItemData.value,[f.kI.required,f.kI.email]):this.inputControl=new f.p4(this.formItemData.value,[f.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,eo,1,0,"mat-spinner",1),t.YNc(5,so,3,2,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},dependencies:[m.O5,x.TO,x.KE,y.Nt,f.Fj,f.JJ,f.Q7,f.oH,I.lW,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var tt=c(44850),lo=c(43157);function co(i,n){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function po(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function uo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.verifyApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function _o(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.approveApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function mo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.rejectApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function go(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteApplication())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.resendNotification())}),t.TgZ(1,"i",14),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function fo(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function To(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Ao(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function Io(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function bo(i,n){1&i&&(t.TgZ(0,"span")(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function Eo(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function vo(i,n){if(1&i&&(t.TgZ(0,"div",20)(1,"mat-card-title")(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div")(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Co(i,n){if(1&i&&(t.TgZ(0,"div")(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function So(i,n){1&i&&t._UZ(0,"th",31)}function xo(i,n){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function No(i,n){1&i&&t._UZ(0,"th",31)}function Oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit,s=t.oxw(3);return t.KtG(s.editApplicationData(a))}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Zo(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,Oo,3,0,"button",34),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Do(i,n){1&i&&t._UZ(0,"tr",36)}function Mo(i,n){1&i&&t._UZ(0,"tr",37)}function Lo(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,So,1,0,"th",25),t.YNc(3,xo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,No,1,0,"th",25),t.YNc(6,Zo,3,2,"td",28),t.BQk(),t.YNc(7,Do,1,0,"tr",29),t.YNc(8,Mo,1,0,"tr",30),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Ro(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,uo,3,3,"button",7),t.YNc(2,_o,3,3,"button",7),t.YNc(3,mo,3,3,"button",8),t.YNc(4,go,3,3,"button",8),t.YNc(5,ho,5,3,"button",9),t.YNc(6,fo,5,4,"div",4),t.YNc(7,To,9,8,"div",4),t.TgZ(8,"div")(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div")(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Ao,4,0,"span",4),t.YNc(21,Io,4,0,"span",4),t.YNc(22,bo,4,0,"span",4),t.qZA(),t.YNc(23,Eo,12,11,"div",12),t.YNc(24,vo,12,11,"div",12),t.TgZ(25,"div",13)(26,"mat-card-title")(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,Co,5,4,"div",4),t.TgZ(33,"div")(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div")(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div")(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Lo,9,3,"table",15),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,25,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,27,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,29,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,33,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(3),t.Oqu(t.lcZ(36,35,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(41,37,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(46,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(48,41,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let et=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,this.authResolver=T,this.usersService=E,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const a=Number(e.applicationId);this.registrarManager.getApplicationById(a).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const _=r.userAttributes.find(T=>"preferredMail"===T.friendlyName);this.userMail=_?.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new l.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const a=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==a.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):a}return e}resendNotification(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:this.application.group?.id},this.dialog.open(Xi,e)}deleteApplication(){const e=(0,g.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,g.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(to,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(a=>{this.application=a,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1})})}editApplicationData(e){const o=(0,g.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(ro,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.uw),t.Y36(d.sK),t.Y36(b.gz),t.Y36(u.V6),t.Y36(b.F0),t.Y36(u.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,co,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,po,1,0,"mat-spinner",3),t.YNc(6,Ro,50,44,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,P.Hw,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,A.Ou,tt.d,Z.n5,m.uU,d.X$,lo.h,Q.d]}),i})();var Go=c(75234),wo=c(37240);let Uo=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[Y.A],data:{animation:[L.Ji]}}),i})();var O=c(3848),bt=c(19191);function Po(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function yo(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Fo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Vo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Yo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Fo,3,6,"ng-template",1),t.YNc(2,Vo,1,3,"ng-template",2),t.qZA())}function Jo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function qo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function Qo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Jo,3,6,"ng-template",1),t.YNc(2,qo,1,3,"ng-template",2),t.qZA())}let ko=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Po,2,3,"ng-template",1),t.YNc(7,yo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Yo,3,0,"mat-tab",3),t.YNc(9,Qo,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,d.X$]}),i})();function Bo(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ho(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let jo=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=T,this.entityStorageService=E,this.routePolicyService=M,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"HttpErrorResponse"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Bo,1,0,"mat-spinner",0),t.YNc(1,Ho,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,J.L]}),i})();var zo=c(10369),$o=c(21963),Xo=c(28820);function Ko(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Wo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchToInitial())}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchToExtension())}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function en(i,n){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function on(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function an(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,on,2,1,"mat-icon",21),t.YNc(8,nn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function sn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function rn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function ln(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24)(6,"br")(7,"input",19),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,sn,2,1,"mat-icon",21),t.YNc(10,rn,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function cn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function pn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function dn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,cn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"div",20),t.YNc(9,pn,2,1,"mat-icon",21),t.YNc(10,un,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function _n(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function mn(i,n){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function gn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function fn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",28),t.YNc(6,mn,2,1,"option",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,gn,2,1,"mat-icon",21),t.YNc(9,hn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Tn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function An(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function In(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,Tn,2,1,"mat-icon",21),t.YNc(7,An,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function bn(i,n){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function En(i,n){1&i&&(t.TgZ(0,"div",35)(1,"form"),t._UZ(2,"input",36),t.qZA()())}function vn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Cn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit,r=t.oxw(2);return t.KtG(r.mapForCombobox[s.id]=a)}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,bn,2,1,"option",32),t.qZA(),t.YNc(10,En,3,0,"div",33),t.qZA()(),t.TgZ(11,"div",20),t.YNc(12,vn,2,1,"mat-icon",21),t.YNc(13,Cn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA()()()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function xn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function Nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function On(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Zn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t.YNc(6,xn,3,2,"div",9),t.qZA()()(),t.TgZ(7,"div",20),t.YNc(8,Nn,2,1,"mat-icon",21),t.YNc(9,On,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Dn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Mn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Ln(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br")(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br")(12,"input",37),t._uU(13," example group3 "),t.qZA()()(),t.TgZ(14,"div",20),t.YNc(15,Dn,2,1,"mat-icon",21),t.YNc(16,Mn,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Rn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Gn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function wn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Rn,2,1,"mat-icon",39),t.YNc(4,Gn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Pn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function yn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Un,2,1,"mat-icon",39),t.YNc(4,Pn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Fn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Vn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Yn(i,n){if(1&i&&(t.TgZ(0,"div",16)(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18)(5,"select",41)(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA()()()(),t.TgZ(89,"div",20),t.YNc(90,Fn,2,1,"mat-icon",21),t.YNc(91,Vn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function qn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const Qn=function(){return["Example 1","Example 2"]},Et=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function kn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,t.DdM(5,Qn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Bn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const jn=function(){return{key1:"value 1",key2:"value 2"}};function zn(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",17)(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA()(),t.TgZ(6,"div",20),t.YNc(7,Bn,2,1,"mat-icon",21),t.YNc(8,Hn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA()()()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Et,t.DdM(5,jn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function $n(i,n){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,an,11,5,"div",15),t.YNc(2,ln,13,6,"div",15),t.YNc(3,dn,13,9,"div",15),t.YNc(4,_n,2,1,"div",2),t.YNc(5,fn,12,6,"div",15),t.YNc(6,In,10,5,"div",15),t.YNc(7,Sn,16,11,"div",15),t.YNc(8,Zn,12,5,"div",15),t.YNc(9,Ln,19,7,"div",15),t.YNc(10,wn,5,4,"div",15),t.YNc(11,yn,5,4,"div",2),t.YNc(12,Yn,94,8,"div",15),t.YNc(13,kn,11,8,"div",2),t.YNc(14,zn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf",("HEADING"===e.type||"HTML_COMMENT"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Xn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,$n,15,14,"div",13),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Kn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",4),t.YNc(2,Wo,5,3,"button",5),t.YNc(3,tn,5,3,"button",5),t.TgZ(4,"mat-form-field")(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.currentLanguage=a)}),t.YNc(9,en,4,6,"mat-option",7),t.qZA()()(),t.TgZ(10,"div",8),t.YNc(11,Xn,2,1,"div",9),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let vt=(()=>{class i{constructor(e,o,a){this.route=e,this.translate=o,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const a=[];for(const s of o.split("|"))a.push(s.split("#")[1]);return a}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,a,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}hiddenTooltip(e){let o,a,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}getLocalizedLabel(e){return e.i18n[this.currentLanguage]?.label?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(d.sK),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ko,1,0,"mat-spinner",1),t.YNc(4,Kn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.sg,m.O5,k.ey,x.KE,x.hX,f._Y,f.YN,f.Kr,f.EJ,f.JJ,f.JL,f.On,f.F,P.Hw,I.lW,H.gD,A.Ou,N.gM,$o.H,Xo.$,m.gd,d.X$],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Wn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ta(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function ea(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function ia(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function oa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ea,3,6,"ng-template",1),t.YNc(2,ia,1,3,"ng-template",2),t.qZA())}function na(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function aa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function sa(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,na,3,6,"ng-template",1),t.YNc(2,aa,1,3,"ng-template",2),t.qZA())}function ra(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function la(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function ca(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function pa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function ua(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ca,3,6,"ng-template",1),t.YNc(2,pa,1,3,"ng-template",2),t.qZA())}let da=(()=>{class i{constructor(e,o,a){this.route=e,this.authResolver=o,this.memberManager=a}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(u.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Wn,2,3,"ng-template",1),t.YNc(7,ta,1,2,"ng-template",2),t.qZA(),t.YNc(8,oa,3,0,"mat-tab",3),t.YNc(9,sa,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,ra,2,3,"ng-template",1),t.YNc(12,la,1,2,"ng-template",2),t.qZA(),t.YNc(13,ua,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},dependencies:[m.O5,O.SP,O.uD,O.uX,O.Vc,bt.Y,K.t,d.X$]}),i})(),_a=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=a,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},dependencies:[J.L]}),i})();var ma=c(68056),ga=c(24219),v=c(95017),ha=c(17584);function fa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ta(i,n){1&i&&t._UZ(0,"th",15)}function Aa(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function Ia(i,n){1&i&&t._UZ(0,"tr",17)}function ba(i,n){1&i&&t._UZ(0,"tr",18)}function Ea(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ta,1,0,"th",11),t.YNc(10,Aa,2,1,"td",12),t.BQk(),t.YNc(11,Ia,1,0,"tr",13),t.YNc(12,ba,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let va=(()=>{class i{constructor(e,o,a){this.dialogRef=e,this.data=o,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,fa,1,0,"mat-spinner",1),t.YNc(5,Ea,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var C=c(10036),Ca=c(17672),U=c(96214),R=c(7434);function Sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.deleteTag())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Na(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Oa(i,n){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Za=(()=>{class i{constructor(e,o,a,s,r,_){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=_,this.loading=!1,this.resourceTag=[],this.selection=new v.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,g.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(va,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,g.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ha.p,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,Sa,3,3,"button",2),t.YNc(5,xa,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Na,1,0,"mat-spinner",5),t.YNc(8,Oa,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Ca.o,U.t,R.L,d.X$]}),i})();function Da(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.saveExpirationAttribute(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let Ma=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>this.notificator.showRPCError(o.error,this.errorMessage))}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Da,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},dependencies:[m.O5,At]}),i})(),La=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},dependencies:[It.s]}),i})();function Ra(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ga(i,n){1&i&&t._UZ(0,"th",15)}function wa(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Ua(i,n){1&i&&t._UZ(0,"tr",17)}function Pa(i,n){1&i&&t._UZ(0,"tr",18)}function ya(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ga,1,0,"th",11),t.YNc(10,wa,2,1,"td",12),t.BQk(),t.YNc(11,Ua,1,0,"tr",13),t.YNc(12,Pa,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ct=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ra,1,0,"mat-spinner",1),t.YNc(5,ya,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function Fa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Va(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",13),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_HTML_NOT_AUTHORIZED")," "))}const Ya=function(i){return{"disabled-label":i}};function Ja(i,n){if(1&i&&(t.TgZ(0,"span",18),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.Q6J("ngClass",t.VKq(6,Ya,"html"===e&&!o.htmlEditAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.FORMAT_"+e))," ")}}function qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.mailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.mailFooter)}}function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3);return t.KtG(s.htmlMailFooter=a)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("ngModel",e.htmlMailFooter)}}function ka(i,n){if(1&i&&(t.TgZ(0,"mat-tab",14),t.YNc(1,Ja,4,8,"ng-template",15),t.TgZ(2,"mat-form-field",16),t.YNc(3,qa,2,1,"textarea",17),t.YNc(4,Qa,2,1,"textarea",17),t.qZA()()),2&i){const e=n.$implicit,o=t.oxw(2);t.Q6J("disabled","html"===e&&!o.htmlEditAuth),t.xp6(3),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e)}}function Ba(i,n){if(1&i&&(t.TgZ(0,"div",8),t.YNc(1,Va,3,3,"perun-web-apps-alert",9),t.TgZ(2,"mat-tab-group",10),t.YNc(3,ka,5,3,"mat-tab",11),t.qZA(),t.TgZ(4,"div",12),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.plainEdithAuth&&!e.htmlEditAuth),t.xp6(2),t.Q6J("ngForOf",e.formats),t.xp6(2),t.hij(" ",t.lcZ(6,3,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let St=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=a,this.notificator=s,this.data=r,this.mailFooter="",this.htmlMailFooter="",this.loading=!1,this.formats=["plain_text","html"]}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.htmlMailAttribute.value=this.htmlMailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1}):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe({next:()=>{this.htmlEditAuth&&this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.htmlMailAttribute}).subscribe({next:()=>{this.notificationSuccess(),this.dialogRef.close()},error:()=>this.loading=!1})},error:()=>this.loading=!1})}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getVoAttributeByName(this.data.voId,S.r.VO_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.plainEdithAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""}),this.attributesManager.getGroupAttributeByName(this.data.groupId,S.r.GROUP_DEF_MAIL_HTML_FOOTER).subscribe(e=>{this.htmlMailAttribute=e,this.htmlEditAuth=this.htmlMailAttribute.writable,this.htmlMailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","info",4,"ngIf"],["color","primary"],[3,"disabled",4,"ngFor","ngForOf"],[1,"mt-2","font-italic","text-muted"],["alert_type","info"],[3,"disabled"],["mat-tab-label",""],[1,"w-100"],["matInput","","rows","5",3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngClass"],["matInput","","rows","5",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fa,1,0,"mat-spinner",1),t.YNc(5,Ba,7,5,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.plainEdithAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.plainEdithAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},dependencies:[m.mk,m.sg,m.O5,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,p.uh,p.xY,p.H8,A.Ou,N.gM,D.w,m.gd,d.X$],styles:[".disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"]}),i})();var Ha=c(67376);function ja(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",1)(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.addTag("{"+s[0]+"}"))}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let za=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,ja,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},dependencies:[m.sg,I.lW,N.gM,tt.d,d.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),$a=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","HTMLMAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["htmlMailFooter","USER_INVITATIONS_HTMLMAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA()()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},dependencies:[Ha.PQ,D.w,za,d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Xa(i,n){1&i&&(t.TgZ(0,"div")(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function Ka(i,n){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function Wa(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function ts(i,n){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function es(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function is(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function os(i,n){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function ns(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function as(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function ss(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function rs(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const ls=function(i){return{"disabled-label":i}};function cs(i,n){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,ls,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].subject=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!1)}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function ds(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.message[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function _s(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit,r=t.oxw(2);return t.KtG(r.applicationMail.htmlMessage[s].text=a)})("focus",function(){t.CHM(e);const a=t.oxw(5);return t.KtG(a.isTextFocused=!0)}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function ms(i,n){1&i&&t._UZ(0,"mat-divider",61)}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,cs,4,8,"ng-template",45),t.TgZ(2,"div",46)(3,"div",47)(4,"div",48)(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.showTags=!a.showTags)}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18)(13,"div",null,51),t.YNc(15,ps,1,1,"input",52),t.YNc(16,us,1,1,"input",52),t.qZA()()(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18)(21,"div",null,54),t.YNc(23,ds,2,1,"textarea",55),t.YNc(24,_s,2,1,"textarea",55),t.qZA()()(),t.YNc(25,ms,1,0,"mat-divider",56),t.TgZ(26,"div")(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,_=t.MAs(14),T=t.MAs(22),E=t.oxw(2).$implicit,M=t.oxw(2);return t.KtG(M.addTag(_,T,E,a,r))}),t.qZA()()()()}if(2&i){const e=n.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function hs(i,n){if(1&i&&(t.YNc(0,ss,3,3,"perun-web-apps-alert",40),t.YNc(1,rs,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,gs,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function fs(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,hs,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+n.$implicit)))}function Ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11)(1,"div")(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.TgZ(5,"mat-tab-group",13)(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15)(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17)(13,"mat-form-field",18)(14,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.mailType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,ts,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA()()()()(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,es,3,3,"div",30),t.YNc(40,is,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15)(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17)(46,"mat-form-field",18)(47,"mat-select",19),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.appType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.notificationExist())}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,os,3,3,"mat-option",33),t.qZA()()()(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ns,3,3,"div",30),t.YNc(55,as,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15)(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17)(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applicationMail.send=a)}),t.qZA()()(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA()()(),t.YNc(67,fs,4,5,"mat-tab",36),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.create())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function Is(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.save())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let it=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=_,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,a,s,r){const _=this.isTextFocused?o.children.item(0):e.children.item(0),T=_.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,T)+s+this.applicationMail.htmlMessage[a].text.substring(T):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,T)+s+this.applicationMail.message[a].text.substring(T):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,T)+s+this.applicationMail.htmlMessage[a].subject.substring(T):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,T)+s+this.applicationMail.message[a].subject.substring(T),_.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.tk),t.Y36(p.WI),t.Y36(u.x4),t.Y36(h.ff),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div")(1,"div",0),t.YNc(2,Xa,4,3,"div",1),t.YNc(3,Ka,3,3,"ng-template",null,2,t.W1O),t.YNc(5,Wa,1,0,"mat-spinner",3),t.YNc(6,Ts,68,55,"div",4),t.TgZ(7,"div",5)(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,As,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,Is,3,4,"button",7),t.qZA()()()()),2&e){const a=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},dependencies:[m.mk,m.sg,m.O5,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.On,I.lW,O.SP,O.uD,O.uX,O.Vc,B.oG,p.uh,p.xY,p.H8,H.gD,A.Ou,N.gM,tt.d,D.w,$a,m.gd,d.X$],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[L.es,L.BQ]}}),i})();var ot=c(62707);function bs(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let xt=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=_,this.data=T,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=E=>E.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(d.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,bs,1,0,"mat-spinner",1),t.TgZ(5,"div",2)(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA()(),t.TgZ(15,"div",6)(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,ot.M,mt.h,d.X$],data:{animation:[L.BQ]}}),i})();var q=c(96308),Nt=c(18750);function Es(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return t.KtG(a?_.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}function Cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function Ss(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function xs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Ns(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Os(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Zs(i,n){1&i&&(t.TgZ(0,"div")(1,"mat-icon",25),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function Ds(i,n){1&i&&(t.TgZ(0,"mat-icon",26),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Ms(i,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,Zs,5,3,"div",23),t.YNc(2,Ds,4,3,"ng-template",null,24,t.W1O),t.qZA()),2&i){const e=n.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ls(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22)(1,"section")(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.changeSending(s))})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),t.qZA()()()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Gs(i,n){1&i&&t._UZ(0,"tr",28)}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw();return t.KtG(r.openApplicationMailDetail(s))}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Us(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Ot=(()=>{class i{constructor(e,o,a,s,r,_){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=_,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new v.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=g.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(it,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new l.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:21,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1)(2,"table",2),t.ynx(3,3),t.YNc(4,Es,2,3,"th",4),t.YNc(5,vs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Cs,3,3,"th",7),t.YNc(8,Ss,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,xs,3,3,"th",7),t.YNc(11,Ns,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Os,3,3,"th",7),t.YNc(14,Ms,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ls,3,3,"th",7),t.YNc(17,Rs,4,6,"td",10),t.BQk(),t.YNc(18,Gs,1,0,"tr",13),t.YNc(19,ws,1,2,"tr",14),t.qZA()()(),t.YNc(20,Us,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},dependencies:[m.O5,f.JJ,f.On,P.Hw,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.copy())}),t.TgZ(1,"i",5),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Vs(i,n){1&i&&t._UZ(0,"mat-spinner",12)}function Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.changeSelection(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let Js=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=T,this.store=E,this.entityStorageService=M,this.loading=!1,this.applicationMails=[],this.selection=new v.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.get("supported_languages"),o=(0,g.i5)(e);o.formId=this.applicationForm.id;const a=(0,g.kZ)();a.width="1400px",a.height="700px",a.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(it,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ct,e).afterClosed().subscribe(a=>{a&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(St,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.YF),t.Y36(u.d6),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ps,3,3,"button",2),t.YNc(5,ys,3,4,"button",3),t.TgZ(6,"button",4),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(7,"i",5),t._uU(8,"email"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Fs,5,3,"button",6),t.qZA(),t.YNc(12,Vs,1,0,"mat-spinner",7),t.YNc(13,Ys,1,7,"app-notification-list",8)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(10,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Ot,d.X$]}),i})();var qs=c(14336);function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.add())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.remove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.copy())}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Hs(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function js(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.changeSelection(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function zs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2),t.YNc(2,Qs,3,3,"button",3),t.YNc(3,ks,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeEmailFooter())}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Bs,5,3,"button",7),t.qZA(),t.YNc(10,Hs,1,0,"mat-spinner",8),t.YNc(11,js,1,7,"app-notification-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function $s(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.createEmptyApplicationForm())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Xs(i,n){if(1&i&&(t.TgZ(0,"div")(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,$s,3,3,"button",16),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let Ks=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,this.attributesService=T,this.entityStorageService=E,this.loading=!1,this.applicationMails=[],this.selection=new v.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,S.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"HttpErrorResponse"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{const o=e.error;"FormNotExistsException"===o.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(o)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,g.i5)();e.formId=this.applicationForm.id;const o=(0,g.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(it,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(Ct,e).afterClosed().subscribe(a=>{a&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,g.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(St,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.F5),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.H8),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,zs,12,8,"div",1),t.YNc(4,Xs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},dependencies:[m.O5,I.lW,A.Ou,D.w,Ot,d.X$]}),i})();var nt=c(15935);function Ws(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function tr(i,n){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Zt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new v.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(6,Ws,1,0,"mat-spinner",3),t.YNc(7,tr,2,4,"div",4),t.TgZ(8,"div",5)(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,R.L,nt.D,d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function er(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function ir(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function or(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function nr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function ar(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function sr(i,n){1&i&&t._UZ(0,"tr",19)}function rr(i,n){1&i&&t._UZ(0,"tr",20)}function lr(i,n){if(1&i&&(t.TgZ(0,"div",8)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,ir,2,0,"th",12),t.YNc(10,or,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,nr,2,0,"th",12),t.YNc(13,ar,2,1,"td",13),t.BQk(),t.YNc(14,sr,1,0,"tr",15),t.YNc(15,rr,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Dt=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=_,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(C.dB),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"div",0)(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,er,1,0,"mat-spinner",2),t.YNc(6,lr,16,9,"div",3),t.TgZ(7,"div",4)(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();function cr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function pr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ur(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function dr(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let _r=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new v.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(T=>this.successMessage=T)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Zt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,cr,3,3,"button",2),t.YNc(6,pr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ur,1,0,"mat-spinner",5),t.YNc(9,dr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,nt.D,U.t,R.L,d.X$]}),i})();var F=c(24179);function mr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw(2);return t.KtG(s.getGroupsToInclude(a.id))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const hr=function(){return["select","id","name","description"]};function fr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("authType","create-relation-dialog")("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,hr))("filter",e.filterValue)("tableId",e.tableId)}}function Tr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,gr,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(a))}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,fr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,Tr,1,0,"mat-spinner",1),t.TgZ(6,"div",8)(7,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let Ir=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=_,this.data=T,this.selection=new v.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(E=>this.successMessage=E)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(a=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[a])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(h.YF),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,mr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,Ar,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,R.L,ot.M,d.X$]}),i})();function br(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Er(i,n){1&i&&t._UZ(0,"th",15)}function vr(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Cr(i,n){1&i&&t._UZ(0,"tr",17)}function Sr(i,n){1&i&&t._UZ(0,"tr",18)}function xr(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Er,1,0,"th",11),t.YNc(10,vr,2,1,"td",12),t.BQk(),t.YNc(11,Cr,1,0,"tr",13),t.YNc(12,Sr,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Nr=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(_=>this.successMessage=_)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(h.ff),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,br,1,0,"mat-spinner",1),t.YNc(5,xr,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},dependencies:[m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,d.X$]}),i})();var Or=c(33604);const Zr=["list"];function Dr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const Mr=function(){return["select","id","vo","name","description"]};function Lr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10,11),2&i){const e=t.oxw();t.Q6J("authType","group-relations")("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(8,Mr))("filter",e.filterValue)("tableId",e.tableId)}}let Rr=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new v.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,g.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(Ir,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,g.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Nr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],viewQuery:function(e,o){if(1&e&&t.Gf(Zr,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:19,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"span",3),t.ALo(9,"translate"),t.TgZ(10,"button",4),t.NdJ("click",function(){return o.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()(),t.TgZ(13,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(14,"mat-checkbox",6),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Dr,1,0,"mat-spinner",7),t.YNc(18,Lr,2,9,"perun-web-apps-groups-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,11,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,13,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(9,15,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||void 0!==o.list&&!o.list.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(12,17,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(16,19,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,B.oG,A.Ou,N.gM,F.W,U.t,R.L,d.X$]}),i})();var at=c(64901),Gr=c(9146);function wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.showAllDetails=!0)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Ur(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.showAllDetails=!1)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Pr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function yr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let Fr=(()=>{class i{constructor(e,o,a){this.registrarManager=e,this.memberManager=o,this.route=a,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,wr,3,3,"button",2),t.YNc(6,Ur,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA()(),t.YNc(8,Pr,1,0,"mat-spinner",4),t.YNc(9,yr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,at.P,Gr.S,d.X$]}),i})();var Mt=c(68675),Lt=c(54004),w=c(86257),Rt=c(47957);function Vr(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Yr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Jr(i,n){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),t.KtG(r.stepper.selected.completed=!0)}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Qr(i,n){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function kr(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div")(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,Jr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA()()(),t.TgZ(9,"div")(10,"mat-form-field",14)(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA()()(),t.TgZ(15,"div")(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA()(),t.TgZ(21,"div")(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Qr,2,1,"div",23),t.qZA()()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Br(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Hr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const jr=function(){return["select","id","name","description"]};function zr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,jr))("selection",e.selectedGroups)}}function $r(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Xr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function Kr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.stepperNext(),t.KtG(a.loadGroups())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function Wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let tl=(()=>{class i{constructor(e,o,a,s,r,_,T,E){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=T,this.cd=E,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new f.p4,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new v.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(a=>a.id)),this.groups.forEach(a=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[a])||this.membersGroupsId.add(a.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Mt.O)(""),(0,Lt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Mt.O)(""),(0,Lt.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(w.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"mat-stepper",2)(6,"mat-step",3),t.YNc(7,Vr,2,3,"ng-template",4),t.YNc(8,Yr,1,0,"mat-spinner",5),t.YNc(9,kr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Br,2,3,"ng-template",4),t.YNc(12,Hr,1,0,"mat-spinner",5),t.YNc(13,zr,2,8,"div",6),t.YNc(14,$r,3,3,"perun-web-apps-alert",7),t.qZA()()(),t.TgZ(15,"div",8)(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Xr,3,3,"button",10),t.YNc(20,Kr,3,8,"button",11),t.YNc(21,Wr,3,4,"button",12),t.qZA()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},dependencies:[m.sg,m.O5,Rt.XC,Rt.ZL,k.ey,x.KE,y.Nt,f.Fj,f.JJ,f.oH,I.lW,p.uh,p.xY,p.H8,H.gD,A.Ou,w.C0,w.VY,w.Vq,D.w,F.W,m.Ov,d.X$],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var el=c(62109);function il(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addResource())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function ol(i,n){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function nl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let al=(()=>{class i{constructor(e,o,a,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=a,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(a=>{this.member=a,this.refreshTable()})})}addResource(){const e=(0,g.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(tl,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,il,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,ol,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,nl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,R.L,el.C,d.X$]}),i})();var sl=c(98918),rl=c(4675),ll=c(258),cl=c(60113),pl=c(16500),ul=c(92090),dl=c(20057),_l=c(49546),ml=c(76023),gl=c(3246);function hl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function fl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function Tl(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Al(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let Il=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new v.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(T=>this.successMessage=T)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,g.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Zt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,g.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,hl,3,3,"button",2),t.YNc(6,fl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,Tl,1,0,"mat-spinner",5),t.YNc(9,Al,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,nt.D,U.t,R.L,d.X$]}),i})();function bl(i,n){1&i&&t._UZ(0,"th",9)}function El(i,n){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function vl(i,n){1&i&&t._UZ(0,"th",9)}function Cl(i,n){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function Sl(i,n){1&i&&t._UZ(0,"tr",12)}let Gt=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new l.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0)(1,"mat-card-header")(2,"mat-card-title")(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA()()(),t.TgZ(6,"mat-card-content")(7,"table",2),t.ynx(8,3),t.YNc(9,bl,1,0,"th",4),t.YNc(10,El,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,vl,1,0,"th",4),t.YNc(13,Cl,2,1,"td",7),t.BQk(),t.YNc(14,Sl,1,0,"tr",8),t.qZA()()()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},dependencies:[l.BZ,l.fO,l.w1,l.Dz,l.nj,l.ge,l.ev,l.Gk,Z.a8,Z.dk,Z.dn,Z.n5,d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function xl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Nl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Ol=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new l.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new l.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,xl,1,0,"mat-spinner",1),t.YNc(4,Nl,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,Gt,d.X$]}),i})();function Zl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Dl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4)(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Ml=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([a,s])=>this.membersCountsByVoStatus.set(a.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(a=>{Object.entries(a).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Zl,1,0,"mat-spinner",1),t.YNc(4,Dl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,A.Ou,Gt,d.X$]}),i})();function Ll(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Rl=function(){return["select","id","name","description"]};function Gl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.applyFilter(a))}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Rl))("filter",e.filterValue)("tableId",e.tableId)}}let wl=(()=>{class i{constructor(e,o,a,s){this.dialogRef=e,this.data=o,this.groupService=a,this.registrarService=s,this.loading=!1,this.selection=new v.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ll,1,0,"mat-spinner",1),t.YNc(5,Gl,4,11,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,F.W,at.P,d.X$]}),i})();const Ul=["list"];function Pl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAddGroup())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function yl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Fl=function(){return["select","id","name","description"]};function Vl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11,12),2&i){const e=t.oxw();t.Q6J("authType","application-form-manage-groups")("displayedColumns",t.DdM(7,Fl))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Yl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new v.Ov(!0,[]),this.tableId=C.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,g.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(wl,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,g.kZ)();e.width="450px",e.data={items:this.selected.selected.map(a=>a.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.x4),t.Y36(p.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ul,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Pl,3,3,"button",3),t.TgZ(9,"span",4),t.ALo(10,"translate"),t.TgZ(11,"button",5),t.NdJ("click",function(){return o.removeGroup()}),t._uU(12),t.ALo(13,"translate"),t.qZA()(),t.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,yl,1,0,"mat-spinner",7),t.YNc(16,Vl,2,8,"perun-web-apps-groups-list",8)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.s9C("matTooltip",t.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",void 0===o.list||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||void 0!==o.list&&!o.list.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,N.gM,D.w,F.W,U.t,R.L,d.X$]}),i})();var Jl=c(20872),ql=c(28499),wt=c(38383),Ut=c(96338),Ql=c(95406);const kl=["stepper"];function Bl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function Hl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function jl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function zl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function $l(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Xl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Wl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function tc(i,n){if(1&i&&(t.TgZ(0,"span",29),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function ec(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item")(1,"p",24),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,tc,2,1,"span",25),t.TgZ(5,"span",26),t.ALo(6,"translate"),t.TgZ(7,"button",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.removeUser(s))}),t.TgZ(8,"mat-icon",28),t._uU(9,"close"),t.qZA()()()()()}if(2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function ic(i,n){1&i&&t._UZ(0,"mat-spinner",30)}const oc=function(){return["checkbox","id","fullName"]};function nc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",33),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,oc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function ac(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",34),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function sc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,nc,1,6,"perun-web-apps-members-list",31),t.YNc(2,ac,3,3,"perun-web-apps-alert",32),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8)(4,"form",9),t.YNc(5,Bl,2,3,"ng-template",10),t.TgZ(6,"div",11)(7,"mat-form-field")(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,Hl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,jl,3,3,"mat-error",13),t.YNc(19,zl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,$l,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,Xl,3,3,"mat-error",13),t.qZA()()()(),t.TgZ(32,"mat-step",8)(33,"form",9),t.YNc(34,Kl,2,3,"ng-template",10),t.TgZ(35,"app-login-password-form-with-generate-option",17),t.NdJ("parsedRulesOutput",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.parsedRules=a)}),t.qZA()()(),t.TgZ(36,"mat-step"),t.YNc(37,Wl,2,3,"ng-template",10),t.TgZ(38,"h6"),t._uU(39),t.ALo(40,"translate"),t.qZA(),t.TgZ(41,"mat-list"),t.YNc(42,ec,10,9,"mat-list-item",18),t.qZA(),t.TgZ(43,"h6",19),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-form-field",20)(47,"input",21),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return t.KtG(0!==a.searchCtrl.value.length&&a.onSearchByString())}),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSearchByString())}),t.TgZ(50,"mat-icon"),t._uU(51,"search"),t.qZA()(),t.TgZ(52,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addUsers())}),t._uU(53),t.ALo(54,"translate"),t.qZA(),t.YNc(55,ic,1,0,"mat-spinner",3),t.YNc(56,sc,3,2,"div",13),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,27,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,29,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,31,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,33,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(2),t.Q6J("formGroup",e.secondFormGroup),t.xp6(4),t.Oqu(t.lcZ(40,35,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(45,37,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(48,39,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(54,41,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function lc(i,n){1&i&&t._UZ(0,"mat-spinner",30)}function cc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",40),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",41),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",35)(1,"button",36),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,cc,3,3,"button",37),t.YNc(5,pc,3,8,"button",38),t.YNc(6,uc,3,4,"button",39),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let _c=(()=>{class i{constructor(e,o,a,s,r,_,T,E,M,ct){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=T,this.apiRequestConfiguration=E,this._formBuilder=M,this.cd=ct,this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new f.p4(""),this.members=[],this.selection=new v.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(pt=>this.successMessageMember=pt),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(pt=>this.successMessagePwd=pt)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",f.kI.required],emailCtrl:["",[f.kI.required,f.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[f.kI.pattern("^[a-z][a-z0-9_-]+$"),f.kI.maxLength(15),f.kI.minLength(2)]],passwordCtrl:["",f.kI.required,[(0,ql.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:g.dN.passwordMatchValidator});const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}onCreate(){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const e=this.firstFormGroup.get("subjectCtrl");e?.value&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=e.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.parsedRules.get(o),s=`urn:perun:user:attribute-def:def:login-namespace:${o}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===a.login?this.usersManagerService.generateAccountForName(o,this.firstFormGroup.get("nameCtrl").value).subscribe(r=>{this.candidate.attributes[s]=r[s],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[s]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(e=>e.user),candidate:this.candidate}).subscribe(e=>{this.membersManagerService.validateMemberAsync(e.id).subscribe(o=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(o,this.secondFormGroup.get("generatePasswordCtrl").value):this.dialogRef.close(!0)},()=>this.processing=!1)},()=>this.processing=!1)}setPassword(e,o){const a=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(a).login)return void this.validateMember(e.id);this.usersManagerService.reserveRandomPassword(e.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id,!1)},()=>{this.processing=!1})},()=>{this.processing=!1})}else this.usersManagerService.reservePasswordForUser({user:e.userId,namespace:a,password:s}).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(e,o=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{o&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0)},()=>{this.processing=!1})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(f.QS),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(kl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:6,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],[3,"formGroup","parsedRulesOutput"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,rc,57,43,"div",2),t.YNc(5,lc,1,0,"mat-spinner",3),t.YNc(6,dc,7,6,"div",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},dependencies:[m.sg,m.O5,x.TO,x.KE,x.hX,y.Nt,f._Y,f.Fj,f.JJ,f.JL,f.Q7,f.oH,f.sg,f.u,P.Hw,I.lW,p.xY,p.H8,A.Ou,N.gM,w.C0,w.VY,w.Vq,D.w,wt.O,Ut.i$,Ut.Tg,Ql.r,d.X$,Q.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var mc=c(53455);function gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveMembers())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function hc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const fc=function(){return["checkbox","id","type","fullName","status"]};function Tc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,fc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Ac=(()=>{class i{constructor(e,o,a,s,r){this.membersManager=e,this.dialog=o,this.authResolver=a,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new v.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,g.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(_c,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,g.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(mc.X,e).afterClosed().subscribe(a=>{a&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,gc,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,hc,1,0,"mat-spinner",5),t.YNc(10,Tc,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,U.t,R.L,wt.O,d.X$]}),i})();var j=c(71992),Pt=c(87831);const Ic=["stepper"];function bc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Ec(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function vc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Cc(i,n){1&i&&t._UZ(0,"th",19)}function Sc(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function xc(i,n){1&i&&t._UZ(0,"tr",21)}function Nc(i,n){1&i&&t._UZ(0,"tr",22)}function Oc(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Cc,1,0,"th",14),t.YNc(6,Sc,2,1,"td",15),t.BQk(),t.YNc(7,xc,1,0,"tr",16),t.YNc(8,Nc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function Zc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step"),t.YNc(4,Ec,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voFilter=a)}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,vc,2,3,"ng-template",8),t.YNc(9,Oc,12,10,"ng-template",11),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Dc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperPrevious())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Mc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.stepperNext())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Lc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function Rc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23)(1,"button",24),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Dc,3,3,"button",26),t.YNc(6,Mc,3,4,"button",27),t.YNc(7,Lc,3,3,"button",28),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let Gc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=a,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new v.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const a=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!a.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ic,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,bc,1,0,"mat-spinner",1),t.YNc(5,Zc,10,7,"div",2),t.YNc(6,Rc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.lW,p.uh,p.xY,p.H8,A.Ou,w.C0,w.VY,w.Vq,w.BY,D.w,Pt.Z,R.L,d.X$]}),i})();function wc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeMemberOrganization())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Pc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function yc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let Fc=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=_,this.translator=T,this.loading=!1,this.voSelection=new v.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,g.kZ)();e.width="750px",this.dialog.open(Gc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,g.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36($.G),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,wc,3,3,"button",2),t.YNc(5,Uc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Pc,1,0,"mat-spinner",5),t.YNc(8,yc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,A.Ou,Pt.Z,U.t,R.L,d.X$]}),i})();const Vc=function(){return["select","id","name","description"]};function Yc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,Vc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Jc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function qc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9)(1,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.close())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.confirm())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const Qc=function(i){return{parentVo:i}};let kc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.groupService=a,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new v.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1)(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Yc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Jc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,qc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,Qc,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},dependencies:[m.O5,I.lW,p.uh,p.xY,p.H8,A.Ou,D.w,F.W,R.L,d.X$]}),i})();function Bc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.voSelected(a))}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Hc=function(){return["select","id","name","description"]};function jc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,Hc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function zc(i,n){1&i&&t._UZ(0,"mat-spinner",11)}let $c=(()=>{class i{constructor(e,o,a,s,r,_,T){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=_,this.changeDetector=T,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new v.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(kc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,g.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(G.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(u.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1)(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,Bc,1,1,"perun-web-apps-vo-search-select",6),t.qZA()(),t.YNc(13,jc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,zc,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},dependencies:[m.O5,I.lW,A.Ou,F.W,U.t,ot.M,d.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})();var Xc=c(61639);const Kc=[{path:"",component:Vt.Y},{path:":voId",component:Ze,canActivateChild:[j.a],children:[{path:"",component:ue,data:{animation:"VoOverviewPage"}},{path:"attributes",component:Si,data:{animation:"VoAttributesPage"}},{path:"groups",component:de.G,data:{animation:"VoGroupsPage"}},{path:"members",component:_e.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ei,children:[{path:"",component:_a,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ma.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ga.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Za,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:vi.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:gl.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Ac,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Ol,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Ci,children:[{path:"",component:Oi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:Qi,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Bi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:zo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Yl},{path:"notifications",component:Js,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:_r,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Fc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:$c,data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:le,canActivateChild:[j.a],children:[{path:"",component:mi,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:da,data:{animation:"MemberAttributesPage"}},{path:"groups",component:gi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Fr,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:et,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:al,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:te,canActivateChild:[j.a],children:[{path:"",component:Ii,data:{animation:"GroupOverviewPage"}},{path:"members",component:Go.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:bi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:ki.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:wo.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:ko,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Ml,data:{animation:"GroupStatisticsPage"}},{path:"roles",component:Xc.C,data:{animation:"GroupRolesPage"}},{path:"settings",component:Uo,children:[{path:"",component:jo,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:Ma,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:La,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:vt},{path:"notifications",component:Ks,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Rr,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:Il,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:et,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:sl.b,canActivateChild:[j.a],children:[{path:"",component:rl.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:ll.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:_l.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:ul.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:ml.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Jl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:cl.t,children:[{path:"",component:pl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:dl.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Wc=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[b.Bz.forChild(Kc),b.Bz]}),i})();var tp=c(14264),ep=c(63189),ip=c(19516),op=c(51525),np=c(45256),st=c(28255);let rt=(()=>{class i{transform(e){return e?.member?.sourceGroupId&&"DIRECT"===e?.member?.membershipType?"Member of Group":e?.member?.sourceGroupId&&"INDIRECT"===e?.member?.membershipType?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var ap=c(86511);let lt=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){return e.member?"vo"===this.addMemberService.getType()||e.member?.sourceGroupId&&"DIRECT"===e.member?.membershipType:o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(ap.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})();var sp=c(69773),rp=c(9954);let lp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();function cp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return t.KtG(a?s.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function pp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20)(1,"div",21),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",22),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return t.KtG(a?_.itemSelectionToggle(r):null)})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),t.qZA()()()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(7,16,t.lcZ(8,18,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))("disabled",t.xi3(6,13,e,o.blockManualAdding))}}function up(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function dp(i,n){if(1&i&&(t.TgZ(0,"i",26),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function _p(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,dp,4,9,"i",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function mp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function gp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function hp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function fp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function Tp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function Ap(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Ip(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function bp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Ep(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function vp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Cp(i,n){1&i&&t._UZ(0,"th",23)}function Sp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function xp(i,n){1&i&&t._UZ(0,"tr",27)}function Np(i,n){1&i&&t._UZ(0,"tr",28)}function Op(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}let Zp=(()=>{class i{constructor(e,o,a){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=a,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=g.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":{const a=e.richUser?e.richUser:e.candidate;return a.lastName?a.lastName:a.firstName??""}case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){switch(o){case"status":return e.member?e.member.status??"":"";case"fullName":return(0,g.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,g.OV)(e.richUser):(0,g.v$)(e.candidate);case"email":return e.richUser||e.member?(0,g.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportAllData(e){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}exportDisplayedData(e){const o=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=o+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(o,a),this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,g.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,g.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=o?.value?o.value.replace(","," "):""}return(0,g.Jc)(e.candidate)}getOrganization(e){return(0,g.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const a of e.userAttributes)a.friendlyName.startsWith("login-namespace")&&null!=a.value&&(o.length>0&&(o+=", "),o+=a.friendlyName.substring(16)+": "+a.value);return o}getLoginsForCandidate(e){let a="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(a.length>0&&(a+=", "),a+=s.substring(49)+": "+e.attributes[s]);return a}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?this.selection.isSelected(e)?"deselect":"select":(this.isAllSelected()?"select":"deselect")+" all"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(rt),t.Y36(lt),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(g.l9,7),t.Gf(q.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([rt,lt]),t.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(s){return o.exportDisplayedData(s)})("exportAllData",function(s){return o.exportAllData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,cp,2,3,"th",4),t.YNc(5,pp,9,20,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,up,3,3,"th",7),t.YNc(8,_p,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,mp,3,3,"th",7),t.YNc(11,gp,4,5,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,hp,3,3,"th",7),t.YNc(14,fp,3,3,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,Tp,3,3,"th",7),t.YNc(17,Ap,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,Ip,3,3,"th",7),t.YNc(20,bp,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Ep,3,3,"th",7),t.YNc(23,vp,3,3,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Cp,1,0,"th",7),t.YNc(26,Sp,2,1,"td",8),t.BQk(),t.YNc(27,xp,1,0,"tr",15),t.YNc(28,Np,1,0,"tr",16),t.qZA()()(),t.YNc(29,Op,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(25),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},dependencies:[m.O5,q.YE,q.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,B.oG,N.gM,D.w,Nt.l,m.i8,d.X$,Q.d,sp.u,gt.f,rp.Z,lp,rt,lt]}),i})();function Dp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Mp(i,n){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function Lp(i,n){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function Rp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return t.KtG(r.invite.emit(s))}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function Gp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",2)(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){t.CHM(e);const s=t.oxw();return t.KtG(s.search.emit(a))}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Dp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,Mp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7)(9,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.cancel.emit(!1))}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Lp,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,Rp,6,11,"button",12),t.qZA()(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.add.emit())}),t._uU(21),t.ALo(22,"translate"),t.qZA()()()()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function wp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function Up(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function Pp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function yp(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function Fp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA()()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function Vp(i,n){1&i&&t._UZ(0,"tr",32)}function Yp(i,n){1&i&&t._UZ(0,"tr",33)}const yt=function(){return["userName","error"]};function Jp(i,n){if(1&i&&(t.TgZ(0,"div",2)(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,Up,3,3,"th",24),t.YNc(7,Pp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,yp,3,3,"th",24),t.YNc(10,Fp,4,2,"td",25),t.BQk(),t.YNc(11,Vp,1,0,"tr",27),t.YNc(12,Yp,1,0,"tr",28),t.qZA()()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,yt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,yt))}}function qp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.cancel.emit(!0))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Qp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,wp,1,0,"mat-spinner",5),t.YNc(2,Jp,13,9,"div",19),t.YNc(3,qp,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Ft=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new v.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new f.p4("",[f.kI.required,f.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new l.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Gp,23,27,"div",1),t.YNc(5,Qp,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},dependencies:[m.sg,m.O5,I.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,p.uh,p.xY,p.H8,A.Ou,N.gM,st.VK,st.OP,st.p6,D.w,at.P,Zp,m.gd,d.X$,Q.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),kp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[m.ez,Wc,tp.m,ep.r,Or.ez,ip.d4,g.Je]}),i})();t.B6R(op.H,[Ft],[m.Ov]),t.B6R(np.k,[Ft],[m.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/876.892d40f55533ada3.js b/dist/apps/admin-gui/876.892d40f55533ada3.js new file mode 100644 index 000000000..99d70c93e --- /dev/null +++ b/dist/apps/admin-gui/876.892d40f55533ada3.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[876],{89397:function(w,E){!function(s){"use strict";function c(H,Q){return Q.forEach(function(nt){nt&&"string"!=typeof nt&&!Array.isArray(nt)&&Object.keys(nt).forEach(function(q){if("default"!==q&&!(q in H)){var U=Object.getOwnPropertyDescriptor(nt,q);Object.defineProperty(H,q,U.get?U:{enumerable:!0,get:function(){return nt[q]}})}})}),Object.freeze(H)}var q,nt,x={exports:{}};q=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,nt=function(U){var mt,St,D=typeof(U=U||{})<"u"?U:{};D.ready=new Promise(function(b,k){mt=b,St=k});var Et,Mt={};for(Et in D)D.hasOwnProperty(Et)&&(Mt[Et]=D[Et]);var Ct,Zt,Qt="./this.program",ft="";typeof document<"u"&&document.currentScript&&(ft=document.currentScript.src),q&&(ft=q),ft=0!==ft.indexOf("blob:")?ft.substr(0,ft.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Ct=function(b){var k=new XMLHttpRequest;return k.open("GET",b,!1),k.send(null),k.responseText},Zt=function(b,k,Z){var rt=new XMLHttpRequest;rt.open("GET",b,!0),rt.responseType="arraybuffer",rt.onload=function(){200==rt.status||0==rt.status&&rt.response?k(rt.response):Z()},rt.onerror=Z,rt.send(null)};var xe,ie=D.print||console.log.bind(console),ue=D.printErr||console.warn.bind(console);for(Et in Mt)Mt.hasOwnProperty(Et)&&(D[Et]=Mt[Et]);Mt=null,D.thisProgram&&(Qt=D.thisProgram),D.wasmBinary&&(xe=D.wasmBinary),"object"!=typeof WebAssembly&&gi("no native wasm support detected");var Ue,Pe=!1;function It(b,k){b||gi("Assertion failed: "+k)}var ze,Ge,an,_e,un,$t=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Vt(b,k,Z){for(var rt=k+Z,ut=k;b[ut]&&!(ut>=rt);)++ut;if(ut-k>16&&b.subarray&&$t)return $t.decode(b.subarray(k,ut));for(var yt="";k>10,56320|1023&De)}}else yt+=String.fromCharCode((31&Ot)<<6|Bt)}else yt+=String.fromCharCode(Ot)}return yt}function Jt(b,k){return b?Vt(an,b,k):""}function me(b,k,Z,rt){if(!(rt>0))return 0;for(var ut=Z,yt=Z+rt-1,Ot=0;Ot=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&b.charCodeAt(++Ot)),Bt<=127){if(Z>=yt)break;k[Z++]=Bt}else if(Bt<=2047){if(Z+1>=yt)break;k[Z++]=192|Bt>>6,k[Z++]=128|63&Bt}else if(Bt<=65535){if(Z+2>=yt)break;k[Z++]=224|Bt>>12,k[Z++]=128|Bt>>6&63,k[Z++]=128|63&Bt}else{if(Z+3>=yt)break;k[Z++]=240|Bt>>18,k[Z++]=128|Bt>>12&63,k[Z++]=128|Bt>>6&63,k[Z++]=128|63&Bt}}return k[Z]=0,Z-ut}function Ee(b){for(var k=0,Z=0;Z=55296&&rt<=57343&&(rt=65536+((1023&rt)<<10)|1023&b.charCodeAt(++Z)),rt<=127?++k:k+=rt<=2047?2:rt<=65535?3:4}return k}function we(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){ze=b,D.HEAP8=Ge=new Int8Array(b),D.HEAP16=new Int16Array(b),D.HEAP32=_e=new Int32Array(b),D.HEAPU8=an=new Uint8Array(b),D.HEAPU16=new Uint16Array(b),D.HEAPU32=new Uint32Array(b),D.HEAPF32=new Float32Array(b),D.HEAPF64=un=new Float64Array(b)}var Yt,oe=[],pe=[],qt=[];var mi=0,Ei=null;function Zi(b){mi++,D.monitorRunDependencies&&D.monitorRunDependencies(mi)}function Pi(b){if(mi--,D.monitorRunDependencies&&D.monitorRunDependencies(mi),0==mi&&Ei){var k=Ei;Ei=null,k()}}function gi(b){D.onAbort&&D.onAbort(b),ue(b="Aborted("+b+")"),Pe=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw St(k),k}D.preloadedImages={},D.preloadedAudios={};var tn;function be(b){return b.startsWith("data:application/octet-stream;base64,")}function yi(b){try{if(b==tn&&xe)return new Uint8Array(xe);throw"both async and sync fetching of the wasm failed"}catch(k){gi(k)}}be(tn="expatlib.wasm")||(tn=function dt(b){return D.locateFile?D.locateFile(b,ft):ft+b}(tn));var He,Tn,Bn={11694:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function Di(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var Z=k.func;"number"==typeof Z?void 0===k.arg?In(Z)():In(Z)(k.arg):Z(void 0===k.arg?null:k.arg)}else k(D)}}function In(b){return Yt.get(b)}var Te={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var Z=0,rt=b.length-1;rt>=0;rt--){var ut=b[rt];"."===ut?b.splice(rt,1):".."===ut?(b.splice(rt,1),Z++):Z&&(b.splice(rt,1),Z--)}if(k)for(;Z;Z--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),Z="/"===b.substr(-1);return!(b=Te.normalizeArray(b.split("/").filter(function(rt){return!!rt}),!k).join("/"))&&!k&&(b="."),b&&Z&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=Te.splitPath(b),Z=k[0],rt=k[1];return Z||rt?(rt&&(rt=rt.substr(0,rt.length-1)),Z+rt):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=Te.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return Te.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return Te.normalize(b.join("/"))},join2:function(b,k){return Te.normalize(b+"/"+k)}};var Hn={resolve:function(){for(var b="",k=!1,Z=arguments.length-1;Z>=-1&&!k;Z--){var rt=Z>=0?arguments[Z]:A.cwd();if("string"!=typeof rt)throw new TypeError("Arguments to path.resolve must be strings");if(!rt)return"";b=rt+"/"+b,k="/"===rt.charAt(0)}return(k?"/":"")+(b=Te.normalizeArray(b.split("/").filter(function(ut){return!!ut}),!k).join("/"))||"."},relative:function(b,k){function Z(De){for(var Ye=0;Ye=0&&""===De[on];on--);return Ye>on?[]:De.slice(Ye,on-Ye+1)}b=Hn.resolve(b).substr(1),k=Hn.resolve(k).substr(1);for(var rt=Z(b.split("/")),ut=Z(k.split("/")),yt=Math.min(rt.length,ut.length),Ot=yt,Bt=0;Bt0&&(ie(Vt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(ue(Vt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(ue(Vt(b.output,0)),b.output=[])}}};var $={ops_table:null,mount:function(b){return $.createNode(null,"/",16895,0)},createNode:function(b,k,Z,rt){if(A.isBlkdev(Z)||A.isFIFO(Z))throw new A.ErrnoError(63);$.ops_table||($.ops_table={dir:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,lookup:$.node_ops.lookup,mknod:$.node_ops.mknod,rename:$.node_ops.rename,unlink:$.node_ops.unlink,rmdir:$.node_ops.rmdir,readdir:$.node_ops.readdir,symlink:$.node_ops.symlink},stream:{llseek:$.stream_ops.llseek}},file:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:{llseek:$.stream_ops.llseek,read:$.stream_ops.read,write:$.stream_ops.write,allocate:$.stream_ops.allocate,mmap:$.stream_ops.mmap,msync:$.stream_ops.msync}},link:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,readlink:$.node_ops.readlink},stream:{}},chrdev:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:A.chrdev_stream_ops}});var ut=A.createNode(b,k,Z,rt);return A.isDir(ut.mode)?(ut.node_ops=$.ops_table.dir.node,ut.stream_ops=$.ops_table.dir.stream,ut.contents={}):A.isFile(ut.mode)?(ut.node_ops=$.ops_table.file.node,ut.stream_ops=$.ops_table.file.stream,ut.usedBytes=0,ut.contents=null):A.isLink(ut.mode)?(ut.node_ops=$.ops_table.link.node,ut.stream_ops=$.ops_table.link.stream):A.isChrdev(ut.mode)&&(ut.node_ops=$.ops_table.chrdev.node,ut.stream_ops=$.ops_table.chrdev.stream),ut.timestamp=Date.now(),b&&(b.contents[k]=ut,b.timestamp=ut.timestamp),ut},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var Z=b.contents?b.contents.length:0;if(!(Z>=k)){k=Math.max(k,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(k=Math.max(k,256));var ut=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ut.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var Z=b.contents;b.contents=new Uint8Array(k),Z&&b.contents.set(Z.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&$.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,Z,rt){return $.createNode(b,k,Z,rt)},rename:function(b,k,Z){if(A.isDir(b.mode)){var rt;try{rt=A.lookupNode(k,Z)}catch{}if(rt)for(var ut in rt.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=Z,k.contents[Z]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var Z=A.lookupNode(b,k);for(var rt in Z.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var Z in b.contents)!b.contents.hasOwnProperty(Z)||k.push(Z);return k},symlink:function(b,k,Z){var rt=$.createNode(b,k,41471,0);return rt.link=Z,rt},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,Z,rt,ut){var yt=b.node.contents;if(ut>=b.node.usedBytes)return 0;var Ot=Math.min(b.node.usedBytes-ut,rt);if(Ot>8&&yt.subarray)k.set(yt.subarray(ut,ut+Ot),Z);else for(var Bt=0;Bt0||rt+Z8)throw new A.ErrnoError(32);for(var ut=Te.normalizeArray(b.split("/").filter(function(Ae){return!!Ae}),!1),yt=A.root,Ot="/",Bt=0;Bt40)throw new A.ErrnoError(32)}}return{path:Ot,node:yt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var Z=b.mount.mountpoint;return k?"/"!==Z[Z.length-1]?Z+"/"+k:Z+k:Z}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var Z=0,rt=0;rt>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var Z=A.nameTable[k];Z;){if(Z.name_next===b){Z.name_next=b.name_next;break}Z=Z.name_next}},lookupNode:function(b,k){var Z=A.mayLookup(b);if(Z)throw new A.ErrnoError(Z,b);for(var rt=A.hashName(b.id,k),ut=A.nameTable[rt];ut;ut=ut.name_next)if(ut.parent.id===b.id&&ut.name===k)return ut;return A.lookup(b,k)},createNode:function(b,k,Z,rt){var ut=new A.FSNode(b,k,Z,rt);return A.hashAddNode(ut),ut},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,Z){var rt;try{rt=A.lookupNode(b,k)}catch(yt){return yt.errno}var ut=A.nodePermissions(b,"wx");if(ut)return ut;if(Z){if(!A.isDir(rt.mode))return 54;if(A.isRoot(rt)||A.getPath(rt)===A.cwd())return 10}else if(A.isDir(rt.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var Z=b=b||0;Z<=k;Z++)if(!A.streams[Z])return Z;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,Z){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Ot){this.node=Ot}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var rt=new A.FSStream;for(var ut in b)rt[ut]=b[ut];b=rt;var yt=A.nextfd(k,Z);return b.fd=yt,A.streams[yt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],Z=[b];Z.length;){var rt=Z.pop();k.push(rt),Z.push.apply(Z,rt.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&ue("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=A.getMounts(A.root.mount),rt=0;function ut(Ot){return A.syncFSRequests--,k(Ot)}function yt(Ot){if(Ot)return yt.errored?void 0:(yt.errored=!0,ut(Ot));++rt>=Z.length&&ut(null)}Z.forEach(function(Ot){if(!Ot.type.syncfs)return yt(null);Ot.type.syncfs(Ot,b,yt)})},mount:function(b,k,Z){var yt,rt="/"===Z,ut=!Z;if(rt&&A.root)throw new A.ErrnoError(10);if(!rt&&!ut){var Ot=A.lookupPath(Z,{follow_mount:!1});if(Z=Ot.path,A.isMountpoint(yt=Ot.node))throw new A.ErrnoError(10);if(!A.isDir(yt.mode))throw new A.ErrnoError(54)}var Bt={type:b,opts:k,mountpoint:Z,mounts:[]},ee=b.mount(Bt);return ee.mount=Bt,Bt.root=ee,rt?A.root=ee:yt&&(yt.mounted=Bt,yt.mount&&yt.mount.mounts.push(Bt)),ee},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var Z=k.node,rt=Z.mounted,ut=A.getMounts(rt);Object.keys(A.nameTable).forEach(function(Ot){for(var Bt=A.nameTable[Ot];Bt;){var ee=Bt.name_next;ut.includes(Bt.mount)&&A.destroyNode(Bt),Bt=ee}}),Z.mounted=null;var yt=Z.mount.mounts.indexOf(rt);Z.mount.mounts.splice(yt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,Z){var ut=A.lookupPath(b,{parent:!0}).node,yt=Te.basename(b);if(!yt||"."===yt||".."===yt)throw new A.ErrnoError(28);var Ot=A.mayCreate(ut,yt);if(Ot)throw new A.ErrnoError(Ot);if(!ut.node_ops.mknod)throw new A.ErrnoError(63);return ut.node_ops.mknod(ut,yt,k,Z)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var Z=b.split("/"),rt="",ut=0;ut"u"&&(Z=k,k=438),A.mknod(b,k|=8192,Z)},symlink:function(b,k){if(!Hn.resolve(b))throw new A.ErrnoError(44);var rt=A.lookupPath(k,{parent:!0}).node;if(!rt)throw new A.ErrnoError(44);var ut=Te.basename(k),yt=A.mayCreate(rt,ut);if(yt)throw new A.ErrnoError(yt);if(!rt.node_ops.symlink)throw new A.ErrnoError(63);return rt.node_ops.symlink(rt,ut,b)},rename:function(b,k){var Bt,ee,Z=Te.dirname(b),rt=Te.dirname(k),ut=Te.basename(b),yt=Te.basename(k);if(Bt=A.lookupPath(b,{parent:!0}).node,ee=A.lookupPath(k,{parent:!0}).node,!Bt||!ee)throw new A.ErrnoError(44);if(Bt.mount!==ee.mount)throw new A.ErrnoError(75);var on,De=A.lookupNode(Bt,ut),Ye=Hn.relative(b,rt);if("."!==Ye.charAt(0))throw new A.ErrnoError(28);if("."!==(Ye=Hn.relative(k,Z)).charAt(0))throw new A.ErrnoError(55);try{on=A.lookupNode(ee,yt)}catch{}if(De!==on){var Ae=A.isDir(De.mode),Ie=A.mayDelete(Bt,ut,Ae);if(Ie)throw new A.ErrnoError(Ie);if(Ie=on?A.mayDelete(ee,yt,Ae):A.mayCreate(ee,yt))throw new A.ErrnoError(Ie);if(!Bt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(De)||on&&A.isMountpoint(on))throw new A.ErrnoError(10);if(ee!==Bt&&(Ie=A.nodePermissions(Bt,"w")))throw new A.ErrnoError(Ie);A.hashRemoveNode(De);try{Bt.node_ops.rename(De,ee,yt)}catch(Me){throw Me}finally{A.hashAddNode(De)}}},rmdir:function(b){var Z=A.lookupPath(b,{parent:!0}).node,rt=Te.basename(b),ut=A.lookupNode(Z,rt),yt=A.mayDelete(Z,rt,!0);if(yt)throw new A.ErrnoError(yt);if(!Z.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);Z.node_ops.rmdir(Z,rt),A.destroyNode(ut)},readdir:function(b){var Z=A.lookupPath(b,{follow:!0}).node;if(!Z.node_ops.readdir)throw new A.ErrnoError(54);return Z.node_ops.readdir(Z)},unlink:function(b){var Z=A.lookupPath(b,{parent:!0}).node,rt=Te.basename(b),ut=A.lookupNode(Z,rt),yt=A.mayDelete(Z,rt,!1);if(yt)throw new A.ErrnoError(yt);if(!Z.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);Z.node_ops.unlink(Z,rt),A.destroyNode(ut)},readlink:function(b){var Z=A.lookupPath(b).node;if(!Z)throw new A.ErrnoError(44);if(!Z.node_ops.readlink)throw new A.ErrnoError(28);return Hn.resolve(A.getPath(Z.parent),Z.node_ops.readlink(Z))},stat:function(b,k){var rt=A.lookupPath(b,{follow:!k}).node;if(!rt)throw new A.ErrnoError(44);if(!rt.node_ops.getattr)throw new A.ErrnoError(63);return rt.node_ops.getattr(rt)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,Z){var rt;if(!(rt="string"==typeof b?A.lookupPath(b,{follow:!Z}).node:b).node_ops.setattr)throw new A.ErrnoError(63);rt.node_ops.setattr(rt,{mode:4095&k|-4096&rt.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var Z=A.getStream(b);if(!Z)throw new A.ErrnoError(8);A.chmod(Z.node,k)},chown:function(b,k,Z,rt){var ut;if(!(ut="string"==typeof b?A.lookupPath(b,{follow:!rt}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ut.node_ops.setattr(ut,{timestamp:Date.now()})},lchown:function(b,k,Z){A.chown(b,k,Z,!0)},fchown:function(b,k,Z){var rt=A.getStream(b);if(!rt)throw new A.ErrnoError(8);A.chown(rt.node,k,Z)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var Z;if(!(Z="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(Z.mode))throw new A.ErrnoError(31);if(!A.isFile(Z.mode))throw new A.ErrnoError(28);var ut=A.nodePermissions(Z,"w");if(ut)throw new A.ErrnoError(ut);Z.node_ops.setattr(Z,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var Z=A.getStream(b);if(!Z)throw new A.ErrnoError(8);if(0==(2097155&Z.flags))throw new A.ErrnoError(28);A.truncate(Z.node,k)},utime:function(b,k,Z){var ut=A.lookupPath(b,{follow:!0}).node;ut.node_ops.setattr(ut,{timestamp:Math.max(k,Z)})},open:function(b,k,Z,rt,ut){if(""===b)throw new A.ErrnoError(44);var yt;if(Z=typeof Z>"u"?438:Z,Z=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&Z|32768:0,"object"==typeof b)yt=b;else{b=Te.normalize(b);try{yt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Bt=!1;if(64&k)if(yt){if(128&k)throw new A.ErrnoError(20)}else yt=A.mknod(b,Z,0),Bt=!0;if(!yt)throw new A.ErrnoError(44);if(A.isChrdev(yt.mode)&&(k&=-513),65536&k&&!A.isDir(yt.mode))throw new A.ErrnoError(54);if(!Bt){var ee=A.mayOpen(yt,k);if(ee)throw new A.ErrnoError(ee)}512&k&&A.truncate(yt,0),k&=-131713;var De=A.createStream({node:yt,path:A.getPath(yt),id:yt.id,flags:k,mode:yt.mode,seekable:!0,position:0,stream_ops:yt.stream_ops,node_ops:yt.node_ops,ungotten:[],error:!1},rt,ut);return De.stream_ops.open&&De.stream_ops.open(De),D.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),De},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,Z){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=Z&&1!=Z&&2!=Z)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,Z),b.ungotten=[],b.position},read:function(b,k,Z,rt,ut){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var yt=typeof ut<"u";if(yt){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Ot=b.stream_ops.read(b,k,Z,rt,ut);return yt||(b.position+=Ot),Ot},write:function(b,k,Z,rt,ut,yt){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Ot=typeof ut<"u";if(Ot){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Bt=b.stream_ops.write(b,k,Z,rt,ut,yt);return Ot||(b.position+=Bt),Bt},allocate:function(b,k,Z){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||Z<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,Z)},mmap:function(b,k,Z,rt,ut,yt){if(0!=(2&ut)&&0==(2&yt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,Z,rt,ut,yt)},msync:function(b,k,Z,rt,ut){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,Z,rt,ut):0},munmap:function(b){return 0},ioctl:function(b,k,Z){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,Z)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var Z,rt=A.open(b,k.flags),yt=A.stat(b).size,Ot=new Uint8Array(yt);return A.read(rt,Ot,0,yt,0),"utf8"===k.encoding?Z=Vt(Ot,0):"binary"===k.encoding&&(Z=Ot),A.close(rt),Z},writeFile:function(b,k,Z){(Z=Z||{}).flags=Z.flags||577;var rt=A.open(b,Z.flags,Z.mode);if("string"==typeof k){var ut=new Uint8Array(Ee(k)+1),yt=me(k,ut,0,ut.length);A.write(rt,ut,0,yt,void 0,Z.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(rt,k,0,k.byteLength,void 0,Z.canOwn)}A.close(rt)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var Z=A.nodePermissions(k.node,"x");if(Z)throw new A.ErrnoError(Z);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,Z,rt,ut,yt){return ut}}),A.mkdev("/dev/null",A.makedev(1,3)),sn.register(A.makedev(5,0),sn.default_tty_ops),sn.register(A.makedev(6,0),sn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Fi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){gi("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(Z,rt){var yt=A.getStream(+rt);if(!yt)throw new A.ErrnoError(8);var Ot={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return yt.path}}};return Ot.parent=Ot,Ot}},k}},{},"/proc/self/fd")},createStandardStreams:function(){D.stdin?A.createDevice("/dev","stdin",D.stdin):A.symlink("/dev/tty","/dev/stdin"),D.stdout?A.createDevice("/dev","stdout",null,D.stdout):A.symlink("/dev/tty","/dev/stdout"),D.stderr?A.createDevice("/dev","stderr",null,D.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,Z){this.node=Z,this.setErrno=function(rt){this.errno=rt},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount($,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:$}},init:function(b,k,Z){A.init.initialized=!0,A.ensureErrnoError(),D.stdin=b||D.stdin,D.stdout=k||D.stdout,D.stderr=Z||D.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=D._fflush;b&&b(0);for(var k=0;kthis.length-1||Ae<0)){var Ie=Ae%this.chunkSize;return this.getter(Ae/this.chunkSize|0)[Ie]}},yt.prototype.setDataGetter=function(Ae){this.getter=Ae},yt.prototype.cacheLength=function(){var Ae=new XMLHttpRequest;if(Ae.open("HEAD",Z,!1),Ae.send(null),!(Ae.status>=200&&Ae.status<300||304===Ae.status))throw new Error("Couldn't load "+Z+". Status: "+Ae.status);var Me,Ie=Number(Ae.getResponseHeader("Content-length")),Kn=(Me=Ae.getResponseHeader("Accept-Ranges"))&&"bytes"===Me,Hi=(Me=Ae.getResponseHeader("Content-Encoding"))&&"gzip"===Me,vi=1048576;Kn||(vi=Ie);var Nn=this;Nn.setDataGetter(function(Ci){var Ki=Ci*vi,Gn=(Ci+1)*vi-1;if(Gn=Math.min(Gn,Ie-1),typeof Nn.chunks[Ci]>"u"&&(Nn.chunks[Ci]=function(Ci,Ki){if(Ci>Ki)throw new Error("invalid range ("+Ci+", "+Ki+") or no bytes requested!");if(Ki>Ie-1)throw new Error("only "+Ie+" bytes available! programmer error!");var Gn=new XMLHttpRequest;if(Gn.open("GET",Z,!1),Ie!==vi&&Gn.setRequestHeader("Range","bytes="+Ci+"-"+Ki),typeof Uint8Array<"u"&&(Gn.responseType="arraybuffer"),Gn.overrideMimeType&&Gn.overrideMimeType("text/plain; charset=x-user-defined"),Gn.send(null),!(Gn.status>=200&&Gn.status<300||304===Gn.status))throw new Error("Couldn't load "+Z+". Status: "+Gn.status);return void 0!==Gn.response?new Uint8Array(Gn.response||[]):he(Gn.responseText||"",!0)}(Ki,Gn)),typeof Nn.chunks[Ci]>"u")throw new Error("doXHR failed!");return Nn.chunks[Ci]}),(Hi||!Ie)&&(vi=Ie=1,Ie=this.getter(0).length,vi=Ie,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ie,this._chunkSize=vi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ee=A.createFile(b,k,Bt={isDevice:!1,url:Z},rt,ut);Bt.contents?ee.contents=Bt.contents:Bt.url&&(ee.contents=null,ee.url=Bt.url),Object.defineProperties(ee,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ee.stream_ops).forEach(function(on){var Ae=ee.stream_ops[on];De[on]=function(){return A.forceLoadFile(ee),Ae.apply(null,arguments)}}),De.read=function(Ae,Ie,Me,Kn,Hi){A.forceLoadFile(ee);var vi=Ae.node.contents;if(Hi>=vi.length)return 0;var Wn=Math.min(vi.length-Hi,Kn);if(vi.slice)for(var Nn=0;Nn>2]=rt.dev,_e[Z+4>>2]=0,_e[Z+8>>2]=rt.ino,_e[Z+12>>2]=rt.mode,_e[Z+16>>2]=rt.nlink,_e[Z+20>>2]=rt.uid,_e[Z+24>>2]=rt.gid,_e[Z+28>>2]=rt.rdev,_e[Z+32>>2]=0,Tn=[rt.size>>>0,(He=rt.size,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[Z+40>>2]=Tn[0],_e[Z+44>>2]=Tn[1],_e[Z+48>>2]=4096,_e[Z+52>>2]=rt.blocks,_e[Z+56>>2]=rt.atime.getTime()/1e3|0,_e[Z+60>>2]=0,_e[Z+64>>2]=rt.mtime.getTime()/1e3|0,_e[Z+68>>2]=0,_e[Z+72>>2]=rt.ctime.getTime()/1e3|0,_e[Z+76>>2]=0,Tn=[rt.ino>>>0,(He=rt.ino,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[Z+80>>2]=Tn[0],_e[Z+84>>2]=Tn[1],0},doMsync:function(b,k,Z,rt,ut){var yt=an.slice(b,b+Z);A.msync(k,yt,ut,Z,rt)},doMkdir:function(b,k){return"/"===(b=Te.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,Z){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,Z),0},doReadlink:function(b,k,Z){if(Z<=0)return-28;var rt=A.readlink(b),ut=Math.min(Z,Ee(rt)),yt=Ge[k+ut];return function ve(b,k,Z){return me(b,an,k,Z)}(rt,k,Z+1),Ge[k+ut]=yt,ut},doAccess:function(b,k){if(-8&k)return-28;var rt=A.lookupPath(b,{follow:!0}).node;if(!rt)return-44;var ut="";return 4&k&&(ut+="r"),2&k&&(ut+="w"),1&k&&(ut+="x"),ut&&A.nodePermissions(rt,ut)?-2:0},doDup:function(b,k,Z){var rt=A.getStream(Z);return rt&&A.close(rt),A.open(b,k,0,Z,Z).fd},doReadv:function(b,k,Z,rt){for(var ut=0,yt=0;yt>2],ee=A.read(b,Ge,_e[k+8*yt>>2],Bt,rt);if(ee<0)return-1;if(ut+=ee,ee>2],_e[k+(8*yt+4)>>2],rt);if(ee<0)return-1;ut+=ee}return ut},varargs:void 0,get:function(){return bt.varargs+=4,_e[bt.varargs-4>>2]},getStr:function(b){return Jt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Ut=[];function pt(b){try{return Ue.grow(b-ze.byteLength+65535>>>16),Tt(Ue.buffer),1}catch{}}var _t={};function Wt(){if(!Wt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var Z in _t)void 0===_t[Z]?delete k[Z]:k[Z]=_t[Z];var rt=[];for(var Z in k)rt.push(Z+"="+k[Z]);Wt.strings=rt}return Wt.strings}var Oe=function(b,k,Z,rt){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=rt};function he(b,k,Z){var rt=Z>0?Z:Ee(b)+1,ut=new Array(rt),yt=me(b,ut,0,ut.length);return k&&(ut.length=yt),ut}Object.defineProperties(Oe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Oe,A.staticInit();var Fe={h:function Dt(b,k,Z){bt.varargs=Z;try{var rt=bt.getStr(b),ut=Z?bt.get():0;return A.open(rt,k,ut).fd}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return-Ot.errno}},b:function Pt(){gi("")},a:function Ht(b,k,Z){var rt=function jt(b,k){var Z;for(Ut.length=0,k>>=2;Z=an[b++];){var rt=Z<105;rt&&1&k&&k++,Ut.push(rt?un[k++>>1]:_e[k]),++k}return Ut}(k,Z);return Bn[b].apply(null,rt)},k:function J(b,k,Z){an.copyWithin(b,k,k+Z)},e:function gt(b){var k=an.length,Z=2147483648;if((b>>>=0)>Z)return!1;for(var rt=1;rt<=4;rt*=2){var ut=k*(1+.2/rt);if(ut=Math.min(ut,b+100663296),pt(Math.min(Z,we(Math.max(b,ut),65536))))return!0}return!1},f:function Lt(b,k){var Z=0;return Wt().forEach(function(rt,ut){var yt=k+Z;_e[b+4*ut>>2]=yt,function ke(b,k,Z){for(var rt=0;rt>0]=b.charCodeAt(rt);Z||(Ge[k>>0]=0)}(rt,yt),Z+=rt.length+1}),0},g:function ae(b,k){var Z=Wt();_e[b>>2]=Z.length;var rt=0;return Z.forEach(function(ut){rt+=ut.length+1}),_e[k>>2]=rt,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(Z){if(typeof A>"u"||!(Z instanceof A.ErrnoError))throw Z;return Z.errno}},i:function re(b,k,Z,rt){try{var ut=bt.getStreamFromFD(b),yt=bt.doReadv(ut,k,Z);return _e[rt>>2]=yt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},j:function Ce(b,k,Z,rt,ut){try{var yt=bt.getStreamFromFD(b),Bt=4294967296*Z+(k>>>0),ee=9007199254740992;return Bt<=-ee||Bt>=ee?-61:(A.llseek(yt,Bt,rt),Tn=[yt.position>>>0,(He=yt.position,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[ut>>2]=Tn[0],_e[ut+4>>2]=Tn[1],yt.getdents&&0===Bt&&0===rt&&(yt.getdents=null),0)}catch(De){if(typeof A>"u"||!(De instanceof A.ErrnoError))throw De;return De.errno}},c:function ye(b,k,Z,rt){try{var ut=bt.getStreamFromFD(b),yt=bt.doWritev(ut,k,Z);return _e[rt>>2]=yt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},l:function je(b){var k=Date.now();return _e[b>>2]=k/1e3|0,_e[b+4>>2]=k%1e3*1e3|0,0}};(function On(){var b={a:Fe};function k(Ot,Bt){D.asm=Ot.exports,Tt((Ue=D.asm.m).buffer),Yt=D.asm.G,function Ni(b){pe.unshift(b)}(D.asm.n),Pi()}function Z(Ot){k(Ot.instance)}function rt(Ot){return function ji(){return xe||"function"!=typeof fetch?Promise.resolve().then(function(){return yi(tn)}):fetch(tn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+tn+"'";return b.arrayBuffer()}).catch(function(){return yi(tn)})}().then(function(Bt){return WebAssembly.instantiate(Bt,b)}).then(function(Bt){return Bt}).then(Ot,function(Bt){ue("failed to asynchronously prepare wasm: "+Bt),gi(Bt)})}if(Zi(),D.instantiateWasm)try{return D.instantiateWasm(b,k)}catch(Ot){return ue("Module.instantiateWasm callback failed with error: "+Ot),!1}return function ut(){return xe||"function"!=typeof WebAssembly.instantiateStreaming||be(tn)||"function"!=typeof fetch?rt(Z):fetch(tn,{credentials:"same-origin"}).then(function(Ot){return WebAssembly.instantiateStreaming(Ot,b).then(Z,function(ee){return ue("wasm streaming compile failed: "+ee),ue("falling back to ArrayBuffer instantiation"),rt(Z)})})}().catch(St),{}})(),D.___wasm_call_ctors=function(){return(D.___wasm_call_ctors=D.asm.n).apply(null,arguments)};var Jn,fn=D._emscripten_bind_CExpat_CExpat_0=function(){return(fn=D._emscripten_bind_CExpat_CExpat_0=D.asm.o).apply(null,arguments)},mn=D._emscripten_bind_CExpat_version_0=function(){return(mn=D._emscripten_bind_CExpat_version_0=D.asm.p).apply(null,arguments)},Je=D._emscripten_bind_CExpat_create_0=function(){return(Je=D._emscripten_bind_CExpat_create_0=D.asm.q).apply(null,arguments)},$e=D._emscripten_bind_CExpat_destroy_0=function(){return($e=D._emscripten_bind_CExpat_destroy_0=D.asm.r).apply(null,arguments)},wn=D._emscripten_bind_CExpat_parse_1=function(){return(wn=D._emscripten_bind_CExpat_parse_1=D.asm.s).apply(null,arguments)},Zn=D._emscripten_bind_CExpat_tag_0=function(){return(Zn=D._emscripten_bind_CExpat_tag_0=D.asm.t).apply(null,arguments)},Vn=D._emscripten_bind_CExpat_attrs_0=function(){return(Vn=D._emscripten_bind_CExpat_attrs_0=D.asm.u).apply(null,arguments)},Yn=D._emscripten_bind_CExpat_content_0=function(){return(Yn=D._emscripten_bind_CExpat_content_0=D.asm.v).apply(null,arguments)},Ri=D._emscripten_bind_CExpat_startElement_0=function(){return(Ri=D._emscripten_bind_CExpat_startElement_0=D.asm.w).apply(null,arguments)},ce=D._emscripten_bind_CExpat_endElement_0=function(){return(ce=D._emscripten_bind_CExpat_endElement_0=D.asm.x).apply(null,arguments)},Qe=D._emscripten_bind_CExpat_characterData_0=function(){return(Qe=D._emscripten_bind_CExpat_characterData_0=D.asm.y).apply(null,arguments)},_n=D._emscripten_bind_CExpat___destroy___0=function(){return(_n=D._emscripten_bind_CExpat___destroy___0=D.asm.z).apply(null,arguments)},Cn=D._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=D._emscripten_bind_VoidPtr___destroy___0=D.asm.A).apply(null,arguments)},Qn=D._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Qn=D._emscripten_bind_CExpatJS_CExpatJS_0=D.asm.B).apply(null,arguments)},li=D._emscripten_bind_CExpatJS_startElement_0=function(){return(li=D._emscripten_bind_CExpatJS_startElement_0=D.asm.C).apply(null,arguments)},jn=D._emscripten_bind_CExpatJS_endElement_0=function(){return(jn=D._emscripten_bind_CExpatJS_endElement_0=D.asm.D).apply(null,arguments)},En=D._emscripten_bind_CExpatJS_characterData_0=function(){return(En=D._emscripten_bind_CExpatJS_characterData_0=D.asm.E).apply(null,arguments)},Pn=D._emscripten_bind_CExpatJS___destroy___0=function(){return(Pn=D._emscripten_bind_CExpatJS___destroy___0=D.asm.F).apply(null,arguments)};function bi(b){function k(){Jn||(Jn=!0,D.calledRun=!0,!Pe&&(function Xe(){!D.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,Di(pe)}(),mt(D),D.onRuntimeInitialized&&D.onRuntimeInitialized(),function bn(){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;)b=D.postRun.shift(),qt.unshift(b);var b;Di(qt)}()))}mi>0||(function Ve(){if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)b=D.preRun.shift(),oe.unshift(b);var b;Di(oe)}(),mi>0)||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},1),k()},1)):k())}if(D._malloc=function(){return(D._malloc=D.asm.H).apply(null,arguments)},Ei=function b(){Jn||bi(),Jn||(Ei=b)},D.run=bi,D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);D.preInit.length>0;)D.preInit.pop()();function gn(){}function hn(b){return(b||gn).__cache__}function ci(b,k){var Z=hn(k),rt=Z[b];return rt||((rt=Object.create((k||gn).prototype)).ptr=b,Z[b]=rt)}bi(),(gn.prototype=Object.create(gn.prototype)).constructor=gn,gn.prototype.__class__=gn,gn.__cache__={},D.WrapperObject=gn,D.getCache=hn,D.wrapPointer=ci,D.castObject=function Ji(b,k){return ci(b.ptr,k)},D.NULL=ci(0),D.destroy=function ui(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete hn(b.__class__)[b.ptr]},D.compare=function zi(b,k){return b.ptr===k.ptr},D.getPointer=function Mn(b){return b.ptr},D.getClass=function Ti(b){return b.__class__};var cn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(cn.needed){for(var b=0;b=cn.size?(It(rt>0),cn.needed+=rt,ut=D._malloc(rt),cn.temps.push(ut)):(ut=cn.buffer+cn.pos,cn.pos+=rt),ut},copy:function(b,k,Z){switch(Z>>>=0,k.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var ut=0;ut=j);)++ht;if(ht-S>16&&y.subarray&&Ee)return Ee.decode(y.subarray(S,ht));for(var xt="";S>10,56320|1023&Le)}}else xt+=String.fromCharCode((31&At)<<6|Rt)}else xt+=String.fromCharCode(At)}return xt}function we(y,S){return y?ke(oe,y,S):""}function ze(y,S,P,j){if(!(j>0))return 0;for(var ht=P,xt=P+j-1,At=0;At=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&y.charCodeAt(++At)),Rt<=127){if(P>=xt)break;S[P++]=Rt}else if(Rt<=2047){if(P+1>=xt)break;S[P++]=192|Rt>>6,S[P++]=128|63&Rt}else if(Rt<=65535){if(P+2>=xt)break;S[P++]=224|Rt>>12,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}else{if(P+3>=xt)break;S[P++]=240|Rt>>18,S[P++]=128|Rt>>12&63,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}}return S[P]=0,P-ht}function an(y){for(var S=0,P=0;P=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&y.charCodeAt(++P)),j<=127?++S:S+=j<=2047?2:j<=65535?3:4}return S}function un(y,S){return y%S>0&&(y+=S-y%S),y}function Xe(y){Tt=y,D.HEAP8=Yt=new Int8Array(y),D.HEAP16=pe=new Int16Array(y),D.HEAP32=qt=new Int32Array(y),D.HEAPU8=oe=new Uint8Array(y),D.HEAPU16=new Uint16Array(y),D.HEAPU32=new Uint32Array(y),D.HEAPF32=new Float32Array(y),D.HEAPF64=Ve=new Float64Array(y)}var bn,oi=[],Ni=[],fi=[];var tn=0,yi=null;function On(y){tn++,D.monitorRunDependencies&&D.monitorRunDependencies(tn)}function He(y){if(tn--,D.monitorRunDependencies&&D.monitorRunDependencies(tn),0==tn&&yi){var S=yi;yi=null,S()}}function Tn(y){D.onAbort&&D.onAbort(y),xe(y="Aborted("+y+")"),me=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw St(S),S}D.preloadedImages={},D.preloadedAudios={};var In;function Di(y){return y.startsWith("data:application/octet-stream;base64,")}function Te(y){try{if(y==In&&$t)return new Uint8Array($t);throw"both async and sync fetching of the wasm failed"}catch(S){Tn(S)}}Di(In="graphvizlib.wasm")||(In=function Ct(y){return D.locateFile?D.locateFile(y,dt):dt+y}(In));var sn,z,bt,$={161580:function(y,S){var P=we(y),j=we(S);O.createPath("/",Ht.dirname(P)),O.writeFile(Ht.join("/",P),j)}};function ct(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(D)}}function A(y){return bn.get(y)}bt=function(){return performance.now()};function Pt(y){return qt[Ot()>>2]=y,y}var Ht={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,j=y.length-1;j>=0;j--){var ht=y[j];"."===ht?y.splice(j,1):".."===ht?(y.splice(j,1),P++):P&&(y.splice(j,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Ht.normalizeArray(y.split("/").filter(function(j){return!!j}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Ht.splitPath(y),P=S[0],j=S[1];return P||j?(j&&(j=j.substr(0,j.length-1)),P+j):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Ht.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Ht.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Ht.normalize(y.join("/"))},join2:function(y,S){return Ht.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var j=P>=0?arguments[P]:O.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";y=j+"/"+y,S="/"===j.charAt(0)}return(S?"/":"")+(y=Ht.normalizeArray(y.split("/").filter(function(ht){return!!ht}),!S).join("/"))||"."},relative:function(y,S){function P(Le){for(var en=0;en=0&&""===Le[dn];dn--);return en>dn?[]:Le.slice(en,dn-en+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var j=P(y.split("/")),ht=P(S.split("/")),xt=Math.min(j.length,ht.length),At=xt,Rt=0;Rt0&&(ue(ke(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(xe(ke(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(xe(ke(y.output,0)),y.output=[])}}};function Wt(y){y=function zt(y,S){return Math.ceil(y/S)*S}(y,65536);var S=Ye(65536,y);return S?(function _t(y,S){oe.fill(0,y,y+S)}(S,y),S):0}var Lt={ops_table:null,mount:function(y){return Lt.createNode(null,"/",16895,0)},createNode:function(y,S,P,j){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);Lt.ops_table||(Lt.ops_table={dir:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr,lookup:Lt.node_ops.lookup,mknod:Lt.node_ops.mknod,rename:Lt.node_ops.rename,unlink:Lt.node_ops.unlink,rmdir:Lt.node_ops.rmdir,readdir:Lt.node_ops.readdir,symlink:Lt.node_ops.symlink},stream:{llseek:Lt.stream_ops.llseek}},file:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr},stream:{llseek:Lt.stream_ops.llseek,read:Lt.stream_ops.read,write:Lt.stream_ops.write,allocate:Lt.stream_ops.allocate,mmap:Lt.stream_ops.mmap,msync:Lt.stream_ops.msync}},link:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr,readlink:Lt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr},stream:O.chrdev_stream_ops}});var ht=O.createNode(y,S,P,j);return O.isDir(ht.mode)?(ht.node_ops=Lt.ops_table.dir.node,ht.stream_ops=Lt.ops_table.dir.stream,ht.contents={}):O.isFile(ht.mode)?(ht.node_ops=Lt.ops_table.file.node,ht.stream_ops=Lt.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):O.isLink(ht.mode)?(ht.node_ops=Lt.ops_table.link.node,ht.stream_ops=Lt.ops_table.link.stream):O.isChrdev(ht.mode)&&(ht.node_ops=Lt.ops_table.chrdev.node,ht.stream_ops=Lt.ops_table.chrdev.stream),ht.timestamp=Date.now(),y&&(y.contents[S]=ht,y.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var ht=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(ht.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&Lt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,j){return Lt.createNode(y,S,P,j)},rename:function(y,S,P){if(O.isDir(y.mode)){var j;try{j=O.lookupNode(S,P)}catch{}if(j)for(var ht in j.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var j in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var j=Lt.createNode(y,S,41471,0);return j.link=P,j},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,j,ht){var xt=y.node.contents;if(ht>=y.node.usedBytes)return 0;var At=Math.min(y.node.usedBytes-ht,j);if(At>8&&xt.subarray)S.set(xt.subarray(ht,ht+At),P);else for(var Rt=0;Rt0||j+P8)throw new O.ErrnoError(32);for(var ht=Ht.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),xt=O.root,At="/",Rt=0;Rt40)throw new O.ErrnoError(32)}}return{path:At,node:xt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,j=0;j>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var j=O.hashName(y.id,S),ht=O.nameTable[j];ht;ht=ht.name_next)if(ht.parent.id===y.id&&ht.name===S)return ht;return O.lookup(y,S)},createNode:function(y,S,P,j){var ht=new O.FSNode(y,S,P,j);return O.hashAddNode(ht),ht},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var j;try{j=O.lookupNode(y,S)}catch(xt){return xt.errno}var ht=O.nodePermissions(y,"wx");if(ht)return ht;if(P){if(!O.isDir(j.mode))return 54;if(O.isRoot(j)||O.getPath(j)===O.cwd())return 10}else if(O.isDir(j.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(At){this.node=At}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var j=new O.FSStream;for(var ht in y)j[ht]=y[ht];y=j;var xt=O.nextfd(S,P);return y.fd=xt,O.streams[xt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var j=P.pop();S.push(j),P.push.apply(P,j.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&xe("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),j=0;function ht(At){return O.syncFSRequests--,S(At)}function xt(At){if(At)return xt.errored?void 0:(xt.errored=!0,ht(At));++j>=P.length&&ht(null)}P.forEach(function(At){if(!At.type.syncfs)return xt(null);At.type.syncfs(At,y,xt)})},mount:function(y,S,P){var xt,j="/"===P,ht=!P;if(j&&O.root)throw new O.ErrnoError(10);if(!j&&!ht){var At=O.lookupPath(P,{follow_mount:!1});if(P=At.path,O.isMountpoint(xt=At.node))throw new O.ErrnoError(10);if(!O.isDir(xt.mode))throw new O.ErrnoError(54)}var Rt={type:y,opts:S,mountpoint:P,mounts:[]},te=y.mount(Rt);return te.mount=Rt,Rt.root=te,j?O.root=te:xt&&(xt.mounted=Rt,xt.mount&&xt.mount.mounts.push(Rt)),te},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,j=P.mounted,ht=O.getMounts(j);Object.keys(O.nameTable).forEach(function(At){for(var Rt=O.nameTable[At];Rt;){var te=Rt.name_next;ht.includes(Rt.mount)&&O.destroyNode(Rt),Rt=te}}),P.mounted=null;var xt=P.mount.mounts.indexOf(j);P.mount.mounts.splice(xt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var ht=O.lookupPath(y,{parent:!0}).node,xt=Ht.basename(y);if(!xt||"."===xt||".."===xt)throw new O.ErrnoError(28);var At=O.mayCreate(ht,xt);if(At)throw new O.ErrnoError(At);if(!ht.node_ops.mknod)throw new O.ErrnoError(63);return ht.node_ops.mknod(ht,xt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),j="",ht=0;ht"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var j=O.lookupPath(S,{parent:!0}).node;if(!j)throw new O.ErrnoError(44);var ht=Ht.basename(S),xt=O.mayCreate(j,ht);if(xt)throw new O.ErrnoError(xt);if(!j.node_ops.symlink)throw new O.ErrnoError(63);return j.node_ops.symlink(j,ht,y)},rename:function(y,S){var Rt,te,P=Ht.dirname(y),j=Ht.dirname(S),ht=Ht.basename(y),xt=Ht.basename(S);if(Rt=O.lookupPath(y,{parent:!0}).node,te=O.lookupPath(S,{parent:!0}).node,!Rt||!te)throw new O.ErrnoError(44);if(Rt.mount!==te.mount)throw new O.ErrnoError(75);var dn,Le=O.lookupNode(Rt,ht),en=pt.relative(y,j);if("."!==en.charAt(0))throw new O.ErrnoError(28);if("."!==(en=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{dn=O.lookupNode(te,xt)}catch{}if(Le!==dn){var Ne=O.isDir(Le.mode),Ze=O.mayDelete(Rt,ht,Ne);if(Ze)throw new O.ErrnoError(Ze);if(Ze=dn?O.mayDelete(te,xt,Ne):O.mayCreate(te,xt))throw new O.ErrnoError(Ze);if(!Rt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(Le)||dn&&O.isMountpoint(dn))throw new O.ErrnoError(10);if(te!==Rt&&(Ze=O.nodePermissions(Rt,"w")))throw new O.ErrnoError(Ze);O.hashRemoveNode(Le);try{Rt.node_ops.rename(Le,te,xt)}catch(vn){throw vn}finally{O.hashAddNode(Le)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,j=Ht.basename(y),ht=O.lookupNode(P,j),xt=O.mayDelete(P,j,!0);if(xt)throw new O.ErrnoError(xt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.rmdir(P,j),O.destroyNode(ht)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,j=Ht.basename(y),ht=O.lookupNode(P,j),xt=O.mayDelete(P,j,!1);if(xt)throw new O.ErrnoError(xt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.unlink(P,j),O.destroyNode(ht)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var j=O.lookupPath(y,{follow:!S}).node;if(!j)throw new O.ErrnoError(44);if(!j.node_ops.getattr)throw new O.ErrnoError(63);return j.node_ops.getattr(j)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var j;if(!(j="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);j.node_ops.setattr(j,{mode:4095&S|-4096&j.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,j){var ht;if(!(ht="string"==typeof y?O.lookupPath(y,{follow:!j}).node:y).node_ops.setattr)throw new O.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var j=O.getStream(y);if(!j)throw new O.ErrnoError(8);O.chown(j.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var ht=O.nodePermissions(P,"w");if(ht)throw new O.ErrnoError(ht);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var ht=O.lookupPath(y,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(S,P)})},open:function(y,S,P,j,ht){if(""===y)throw new O.ErrnoError(44);var xt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)xt=y;else{y=Ht.normalize(y);try{xt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Rt=!1;if(64&S)if(xt){if(128&S)throw new O.ErrnoError(20)}else xt=O.mknod(y,P,0),Rt=!0;if(!xt)throw new O.ErrnoError(44);if(O.isChrdev(xt.mode)&&(S&=-513),65536&S&&!O.isDir(xt.mode))throw new O.ErrnoError(54);if(!Rt){var te=O.mayOpen(xt,S);if(te)throw new O.ErrnoError(te)}512&S&&O.truncate(xt,0),S&=-131713;var Le=O.createStream({node:xt,path:O.getPath(xt),id:xt.id,flags:S,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},j,ht);return Le.stream_ops.open&&Le.stream_ops.open(Le),D.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),Le},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,j,ht){if(j<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var At=y.stream_ops.read(y,S,P,j,ht);return xt||(y.position+=At),At},write:function(y,S,P,j,ht,xt){if(j<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var At=typeof ht<"u";if(At){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var Rt=y.stream_ops.write(y,S,P,j,ht,xt);return At||(y.position+=Rt),Rt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,j,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,j,ht,xt)},msync:function(y,S,P,j,ht){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,j,ht):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,j=O.open(y,S.flags),xt=O.stat(y).size,At=new Uint8Array(xt);return O.read(j,At,0,xt,0),"utf8"===S.encoding?P=ke(At,0):"binary"===S.encoding&&(P=At),O.close(j),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var j=O.open(y,P.flags,P.mode);if("string"==typeof S){var ht=new Uint8Array(an(S)+1),xt=ze(S,ht,0,ht.length);O.write(j,ht,0,xt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write(j,S,0,S.byteLength,void 0,P.canOwn)}O.close(j)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,j,ht,xt){return ht}}),O.mkdev("/dev/null",O.makedev(1,3)),gt.register(O.makedev(5,0),gt.default_tty_ops),gt.register(O.makedev(6,0),gt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function J(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){Tn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,j){var xt=O.getStream(+j);if(!xt)throw new O.ErrnoError(8);var At={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return At.parent=At,At}},S}},{},"/proc/self/fd")},createStandardStreams:function(){D.stdin?O.createDevice("/dev","stdin",D.stdin):O.symlink("/dev/tty","/dev/stdin"),D.stdout?O.createDevice("/dev","stdout",null,D.stdout):O.symlink("/dev/tty","/dev/stdout"),D.stderr?O.createDevice("/dev","stderr",null,D.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function(j){this.errno=j},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(Lt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:Lt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),D.stdin=y||D.stdin,D.stdout=S||D.stdout,D.stderr=P||D.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=D._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var Ze=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[Ze]}},xt.prototype.setDataGetter=function(Ne){this.getter=Ne},xt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var vn,Ze=Number(Ne.getResponseHeader("Content-length")),hi=(vn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===vn,gr=(vn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===vn,Li=1048576;hi||(Li=Ze);var xi=this;xi.setDataGetter(function(Yi){var _r=Yi*Li,qn=(Yi+1)*Li-1;if(qn=Math.min(qn,Ze-1),typeof xi.chunks[Yi]>"u"&&(xi.chunks[Yi]=function(Yi,_r){if(Yi>_r)throw new Error("invalid range ("+Yi+", "+_r+") or no bytes requested!");if(_r>Ze-1)throw new Error("only "+Ze+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),Ze!==Li&&qn.setRequestHeader("Range","bytes="+Yi+"-"+_r),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Bi(qn.responseText||"",!0)}(_r,qn)),typeof xi.chunks[Yi]>"u")throw new Error("doXHR failed!");return xi.chunks[Yi]}),(gr||!Ze)&&(Li=Ze=1,Ze=this.getter(0).length,Li=Ze,ue("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ze,this._chunkSize=Li,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,te=O.createFile(y,S,Rt={isDevice:!1,url:P},j,ht);Rt.contents?te.contents=Rt.contents:Rt.url&&(te.contents=null,te.url=Rt.url),Object.defineProperties(te,{usedBytes:{get:function(){return this.contents.length}}});var Le={};return Object.keys(te.stream_ops).forEach(function(dn){var Ne=te.stream_ops[dn];Le[dn]=function(){return O.forceLoadFile(te),Ne.apply(null,arguments)}}),Le.read=function(Ne,Ze,vn,hi,gr){O.forceLoadFile(te);var Li=Ne.node.contents;if(gr>=Li.length)return 0;var wr=Math.min(Li.length-gr,hi);if(Li.slice)for(var xi=0;xi>2]=j.dev,qt[P+4>>2]=0,qt[P+8>>2]=j.ino,qt[P+12>>2]=j.mode,qt[P+16>>2]=j.nlink,qt[P+20>>2]=j.uid,qt[P+24>>2]=j.gid,qt[P+28>>2]=j.rdev,qt[P+32>>2]=0,z=[j.size>>>0,(sn=j.size,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[P+40>>2]=z[0],qt[P+44>>2]=z[1],qt[P+48>>2]=4096,qt[P+52>>2]=j.blocks,qt[P+56>>2]=j.atime.getTime()/1e3|0,qt[P+60>>2]=0,qt[P+64>>2]=j.mtime.getTime()/1e3|0,qt[P+68>>2]=0,qt[P+72>>2]=j.ctime.getTime()/1e3|0,qt[P+76>>2]=0,z=[j.ino>>>0,(sn=j.ino,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[P+80>>2]=z[0],qt[P+84>>2]=z[1],0},doMsync:function(y,S,P,j,ht){var xt=oe.slice(y,y+P);O.msync(S,xt,ht,P,j)},doMkdir:function(y,S){return"/"===(y=Ht.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var j=O.readlink(y),ht=Math.min(P,an(j)),xt=Yt[S+ht];return function Ge(y,S,P){return ze(y,oe,S,P)}(j,S,P+1),Yt[S+ht]=xt,ht},doAccess:function(y,S){if(-8&S)return-28;var j=O.lookupPath(y,{follow:!0}).node;if(!j)return-44;var ht="";return 4&S&&(ht+="r"),2&S&&(ht+="w"),1&S&&(ht+="x"),ht&&O.nodePermissions(j,ht)?-2:0},doDup:function(y,S,P){var j=O.getStream(P);return j&&O.close(j),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,j){for(var ht=0,xt=0;xt>2],te=O.read(y,Yt,qt[S+8*xt>>2],Rt,j);if(te<0)return-1;if(ht+=te,te>2],qt[S+(8*xt+4)>>2],j);if(te<0)return-1;ht+=te}return ht},varargs:void 0,get:function(){return re.varargs+=4,qt[re.varargs-4>>2]},getStr:function(y){return we(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Vn=[];function Qe(y){try{return Jt.grow(y-Tt.byteLength+65535>>>16),Xe(Jt.buffer),1}catch{}}var Cn={};function li(){if(!li.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var j=[];for(var P in S)j.push(P+"="+S[P]);li.strings=j}return li.strings}var Mn=function(y,S,P,j){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=j};function Bi(y,S,P){var j=P>0?P:an(y)+1,ht=new Array(j),xt=ze(y,ht,0,ht.length);return S&&(ht.length=xt),ht}Object.defineProperties(Mn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=Mn,O.staticInit();var Ke={A:function jt(y,S){return function Ut(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return qt[S>>2]=P/1e3|0,qt[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Ce(y,S){try{return y=re.getStr(y),re.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function ye(y,S,P){re.varargs=P;try{var j=re.getStreamFromFD(y);switch(S){case 0:return(ht=re.get())<0?-28:O.open(j.path,j.flags,0,ht).fd;case 1:case 2:case 6:case 7:return 0;case 3:return j.flags;case 4:var ht=re.get();return j.flags|=ht,0;case 5:return ht=re.get(),pe[ht+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Rt){if(typeof O>"u"||!(Rt instanceof O.ErrnoError))throw Rt;return-Rt.errno}},x:function je(y,S){try{var P=re.getStreamFromFD(y);return re.doStat(O.stat,P.path,S)}catch(j){if(typeof O>"u"||!(j instanceof O.ErrnoError))throw j;return-j.errno}},u:function Oe(y,S,P,j){try{S=re.getStr(S);var ht=256&j,xt=4096&j;return j&=-4353,S=re.calculateAt(y,S,xt),re.doStat(ht?O.lstat:O.stat,S,P)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},y:function Be(y,S,P){re.varargs=P;try{var j=re.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return j.tty?0:-59;case 21519:if(!j.tty)return-59;var ht=re.get();return qt[ht>>2]=0,0;case 21520:return j.tty?-28:-59;case 21531:return ht=re.get(),O.ioctl(j,S,ht);default:Tn("bad ioctl syscall "+S)}}catch(xt){if(typeof O>"u"||!(xt instanceof O.ErrnoError))throw xt;return-xt.errno}},k:function he(y,S,P,j,ht,xt){try{return function le(y,S,P,j,ht,xt){xt<<=12;var At,Rt=!1;if(0!=(16&j)&&y%65536!=0)return-28;if(0!=(32&j)){if(!(At=Wt(S)))return-48;Rt=!0}else{var te=O.getStream(ht);if(!te)return-8;var Le=O.mmap(te,y,S,xt,P,j);At=Le.ptr,Rt=Le.allocated}return re.mappings[At]={malloc:At,len:S,allocated:Rt,fd:ht,prot:P,flags:j,offset:xt},At}(y,S,P,j,ht,xt)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},j:function fn(y,S){try{return function Fe(y,S){var P=re.mappings[y];if(0===S||!P)return-28;if(S===P.len){var j=O.getStream(P.fd);j&&2&P.prot&&re.doMsync(y,j,S,P.flags,P.offset),re.mappings[y]=null,P.allocated&&yt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function mn(y,S,P){re.varargs=P;try{var j=re.getStr(y),ht=P?re.get():0;return O.open(j,S,ht).fd}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},v:function Je(y,S){try{return y=re.getStr(y),re.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function $e(y){try{return y=re.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Zn(){Tn("")},C:function Ri(y,S,P){var j=function Yn(y,S){var P;for(Vn.length=0,S>>=2;P=oe[y++];){var j=P<105;j&&1&S&&S++,Vn.push(j?Ve[S++>>1]:qt[S]),++S}return Vn}(S,P);return $[y].apply(null,j)},o:function ce(y,S,P){oe.copyWithin(y,S,S+P)},p:function _n(y){var S=oe.length,P=2147483648;if((y>>>=0)>P)return!1;for(var j=1;j<=4;j*=2){var ht=S*(1+.2/j);if(ht=Math.min(ht,y+100663296),Qe(Math.min(P,un(Math.max(y,ht),65536))))return!0}return!1},s:function jn(y,S){var P=0;return li().forEach(function(j,ht){var xt=S+P;qt[y+4*ht>>2]=xt,function _e(y,S,P){for(var j=0;j>0]=y.charCodeAt(j);P||(Yt[S>>0]=0)}(j,xt),P+=j.length+1}),0},t:function En(y,S){var P=li();qt[y>>2]=P.length;var j=0;return P.forEach(function(ht){j+=ht.length+1}),qt[S>>2]=j,0},a:function Pn(y){!function Hi(y,S){!function vi(y){(function Ei(){return Vt||!1})()||(D.onExit&&D.onExit(y),me=!0),Nt(y,new Me(y))}(y)}(y)},d:function Jn(y){try{var S=re.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,j){try{var ht=re.getStreamFromFD(y),xt=re.doReadv(ht,S,P);return qt[j>>2]=xt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},n:function gn(y,S,P,j,ht){try{var xt=re.getStreamFromFD(y),Rt=4294967296*P+(S>>>0),te=9007199254740992;return Rt<=-te||Rt>=te?-61:(O.llseek(xt,Rt,j),z=[xt.position>>>0,(sn=xt.position,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[ht>>2]=z[0],qt[ht+4>>2]=z[1],xt.getdents&&0===Rt&&0===j&&(xt.getdents=null),0)}catch(Le){if(typeof O>"u"||!(Le instanceof O.ErrnoError))throw Le;return Le.errno}},g:function hn(y,S,P,j){try{var ht=re.getStreamFromFD(y),xt=re.doWritev(ht,S,P);return qt[j>>2]=xt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},c:function ci(){return Ue},w:function Ji(y){var S=Date.now();return qt[y>>2]=S/1e3|0,qt[y+4>>2]=S%1e3*1e3|0,0},l:function Ae(y,S,P,j,ht,xt,At){var Rt=Bt();try{return A(y)(S,P,j,ht,xt,At)}catch(te){if(ee(Rt),te!==te+0&&"longjmp"!==te)throw te;De(1,0)}},m:function on(y,S){var P=Bt();try{A(y)(S)}catch(j){if(ee(P),j!==j+0&&"longjmp"!==j)throw j;De(1,0)}},b:function ui(y){!function(y){Ue=y}(y)},f:function zi(y){var S=Date.now()/1e3|0;return y&&(qt[y>>2]=S),S}};(function Hn(){var y={a:Ke};function S(At,Rt){D.asm=At.exports,Xe((Jt=D.asm.D).buffer),bn=D.asm.M,function Qi(y){Ni.unshift(y)}(D.asm.E),He()}function P(At){S(At.instance)}function j(At){return function Fi(){return $t||"function"!=typeof fetch?Promise.resolve().then(function(){return Te(In)}):fetch(In,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+In+"'";return y.arrayBuffer()}).catch(function(){return Te(In)})}().then(function(Rt){return WebAssembly.instantiate(Rt,y)}).then(function(Rt){return Rt}).then(At,function(Rt){xe("failed to asynchronously prepare wasm: "+Rt),Tn(Rt)})}if(On(),D.instantiateWasm)try{return D.instantiateWasm(y,S)}catch(At){return xe("Module.instantiateWasm callback failed with error: "+At),!1}return function ht(){return $t||"function"!=typeof WebAssembly.instantiateStreaming||Di(In)||"function"!=typeof fetch?j(P):fetch(In,{credentials:"same-origin"}).then(function(At){return WebAssembly.instantiateStreaming(At,y).then(P,function(te){return xe("wasm streaming compile failed: "+te),xe("falling back to ArrayBuffer instantiation"),j(P)})})}().catch(St),{}})(),D.___wasm_call_ctors=function(){return(D.___wasm_call_ctors=D.asm.E).apply(null,arguments)};var _i=D._emscripten_bind_VoidPtr___destroy___0=function(){return(_i=D._emscripten_bind_VoidPtr___destroy___0=D.asm.F).apply(null,arguments)},Dn=D._emscripten_bind_Graphviz_Graphviz_2=function(){return(Dn=D._emscripten_bind_Graphviz_Graphviz_2=D.asm.G).apply(null,arguments)},b=D._emscripten_bind_Graphviz_version_0=function(){return(b=D._emscripten_bind_Graphviz_version_0=D.asm.H).apply(null,arguments)},k=D._emscripten_bind_Graphviz_lastError_0=function(){return(k=D._emscripten_bind_Graphviz_lastError_0=D.asm.I).apply(null,arguments)},Z=D._emscripten_bind_Graphviz_layout_3=function(){return(Z=D._emscripten_bind_Graphviz_layout_3=D.asm.J).apply(null,arguments)},rt=D._emscripten_bind_Graphviz_createFile_2=function(){return(rt=D._emscripten_bind_Graphviz_createFile_2=D.asm.K).apply(null,arguments)},ut=D._emscripten_bind_Graphviz___destroy___0=function(){return(ut=D._emscripten_bind_Graphviz___destroy___0=D.asm.L).apply(null,arguments)};D._malloc=function(){return(D._malloc=D.asm.N).apply(null,arguments)};var Ie,yt=D._free=function(){return(yt=D._free=D.asm.O).apply(null,arguments)},Ot=D.___errno_location=function(){return(Ot=D.___errno_location=D.asm.P).apply(null,arguments)},Bt=D.stackSave=function(){return(Bt=D.stackSave=D.asm.Q).apply(null,arguments)},ee=D.stackRestore=function(){return(ee=D.stackRestore=D.asm.R).apply(null,arguments)},De=D._setThrew=function(){return(De=D._setThrew=D.asm.S).apply(null,arguments)},Ye=D._memalign=function(){return(Ye=D._memalign=D.asm.T).apply(null,arguments)};function Me(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Kn(y){function S(){Ie||(Ie=!0,D.calledRun=!0,!me&&(function Zi(){!D.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,ct(Ni)}(),mt(D),D.onRuntimeInitialized&&D.onRuntimeInitialized(),function Pi(){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;)y=D.postRun.shift(),fi.unshift(y);var y;ct(fi)}()))}tn>0||(function er(){if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)y=D.preRun.shift(),oi.unshift(y);var y;ct(oi)}(),tn>0)||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},1),S()},1)):S())}if(yi=function y(){Ie||Kn(),Ie||(yi=y)},D.run=Kn,D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);D.preInit.length>0;)D.preInit.pop()();function Wn(){}function Nn(y){return(y||Wn).__cache__}function Ci(y,S){var P=Nn(S),j=P[y];return j||((j=Object.create((S||Wn).prototype)).ptr=y,P[y]=j)}Kn(),(Wn.prototype=Object.create(Wn.prototype)).constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},D.WrapperObject=Wn,D.getCache=Nn,D.wrapPointer=Ci,D.castObject=function Ki(y,S){return Ci(y.ptr,S)},D.NULL=Ci(0),D.destroy=function Gn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Nn(y.__class__)[y.ptr]},D.compare=function va(y,S){return y.ptr===S.ptr},D.getPointer=function za(y){return y.ptr},D.getClass=function Mr(y){return y.__class__};var An={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(An.needed){for(var y=0;y=An.size?(ve(j>0),An.needed+=j,ht=D._malloc(j),An.temps.push(ht)):(ht=An.buffer+An.pos,An.pos+=j),ht},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var ht=0;ht\n\n')}}function st(H,Q){var nt=Y({images:[],files:[]},Q);V(V([],nt.files,!0),function et(H){return H.map(it)}(nt.images),!0).forEach(function(q){return H.createFile(q.path,q.data)})}var X={layout:function(H,Q,nt,q){return void 0===Q&&(Q="svg"),void 0===nt&&(nt="dot"),H?u(B,q?.wasmFolder,q?.wasmBinary).then(function(U){var D=new U.Graphviz(void 0!==q?.yInvert&&q?.yInvert,void 0!==q?.nop?q?.nop:0);st(D,q);var mt=D.layout(H,Q,nt);if(U.destroy(D),!mt)throw new Error(U.Graphviz.prototype.lastError());return mt}):Promise.resolve("")},circo:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"circo",nt)},dot:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"dot",nt)},fdp:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"fdp",nt)},sfdp:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"sfdp",nt)},neato:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"neato",nt)},osage:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"osage",nt)},patchwork:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"patchwork",nt)},twopi:function(H,Q,nt){return void 0===Q&&(Q="svg"),this.layout(H,Q,"twopi",nt)}},W=function(){function H(Q){this._wasm=Q}return H.prototype.layout=function(Q,nt,q,U){if(void 0===nt&&(nt="svg"),void 0===q&&(q="dot"),!Q)return"";var D=new this._wasm.Graphviz(U?.yInvert?1:0,U?.nop?U?.nop:0);st(D,U);var mt=D.layout(Q,nt,q);if(this._wasm.destroy(D),!mt)throw new Error(this._wasm.Graphviz.prototype.lastError());return mt},H.prototype.circo=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"circo",q)},H.prototype.dot=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"dot",q)},H.prototype.fdp=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"fdp",q)},H.prototype.sfdp=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"sfdp",q)},H.prototype.neato=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"neato",q)},H.prototype.osage=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"osage",q)},H.prototype.patchwork=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"patchwork",q)},H.prototype.twopi=function(Q,nt,q){return void 0===nt&&(nt="svg"),this.layout(Q,nt,"twopi",q)},H}();s.GraphvizSync=W,s.StackElement=g,s.StackParser=C,s.expatVersion=function I(H,Q){return u(m,H,Q).then(function(nt){return nt.CExpat.prototype.version()})},s.graphviz=X,s.graphvizSync=function at(H,Q){return u(B,H,Q).then(function(nt){return new W(nt)})},s.graphvizVersion=function K(H,Q){return u(B,H,Q).then(function(nt){return nt.Graphviz.prototype.version()})},s.parse=R,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(E)},62876:(w,E,s)=>{"use strict";s.r(E),s.d(E,{AdminModule:()=>Cy});var c={};s.r(c),s.d(c,{forceCenter:()=>sd,forceCollide:()=>Vo,forceLink:()=>Yo,forceManyBody:()=>Xo,forceRadial:()=>Md,forceSimulation:()=>Wo,forceX:()=>Nd,forceY:()=>Pd});var x={};s.r(x),s.d(x,{dispatch:()=>ba.Z});var _={};s.r(_),s.d(_,{interval:()=>Rd,now:()=>or.zO,timeout:()=>$a.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var m=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[m.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var R=s(95017),M=s(65412),F=s(30671),B=s(32080),Y=s(32105),V=s(4859),it=s(51572),et=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function K(n,r){1&n&&t._UZ(0,"th",16)}function X(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function W(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function H(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,K,1,0,"th",11),t.YNc(10,X,2,1,"td",12),t.BQk(),t.YNc(11,W,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let Q=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new F.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,H,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,it.Ou,et.w,u.X$]}),n})();var nt=s(24006),q=s(78372),U=s(63900),D=s(61135),mt=s(69751),St=s(38421),Mt=s(75797),Et=s(60515),Qt=s(25403),Nt=s(63269);function ft(...n){const r=(0,Nt.jO)(n),e=(0,Mt.k)(n);return e.length?new mt.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(G=>G.shift());i.next(r?r(...N):N),a.some((G,tt)=>!G.length&&o[tt])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):Et.E}var dt=s(39646),Ct=s(19516),Zt=s(3238),se=s(39349),ie=s(59549),ue=s(284),xe=s(84385),Ue=s(3848),Pe=s(23123);function It(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function $t(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Vt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new D.X(this.policy.role),this.objects=this.selectedRole.pipe((0,U.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,It,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,$t,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[m.sg,nt.JJ,nt.On,l.Hw,V.lW,ie.KE,Zt.ey,xe.gD,m.Ov,u.X$,Pe.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Jt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Jt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function ve(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,me,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Ee=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,ve,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[m.sg,m.O5,l.Hw,V.lW,Vt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function ke(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function we(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,ke,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let ze=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,an,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[m.sg,Ue.SP,Ue.uD,Ue.uX,ze,u.X$]}),n})();var un=s(10266),Tt=s(90455),Yt=s(4765);function oe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const pe=function(n){return{disable:n}};let qt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,oe,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,pe,t.lcZ(1,1,i.attDef)))},dependencies:[m.O5,nt.JJ,nt.On,un.gM,Tt.Rr,u.X$,Yt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ve=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Xe(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function bn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function fi(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ei(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function er(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Zi(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Pi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,bn,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,Ni,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,fi,2,2,"mat-option",15),t.qZA(),t.YNc(19,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,Ei,2,2,"mat-option",15),t.qZA(),t.YNc(24,er,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Zi,3,4,"mat-option",15),t.qZA(),t.YNc(29,Pi,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t._UZ(32,"perun-web-apps-attribute-rights-tab-group",19),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(2),t.Q6J("collections",e.collections)}}let Qi=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",nt.kI.required],displayName:["",nt.kI.required],description:["",nt.kI.required],entity:["",nt.kI.required],definitionType:["",nt.kI.required],valueType:["",nt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.Array","java.util.LinkedHashMap"],this.attDef=new D.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,q.b)(200)).subscribe(G=>{this.setAttribute(G)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,U.w)(e=>ft((0,dt.of)(e.id),(0,dt.of)(this.collections))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,U.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(nt.QS),t.Y36(Y.H8),t.Y36(B.eE),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Ct.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Ct.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xe,1,0,"mat-spinner",2),t.YNc(5,gi,33,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[m.sg,m.O5,Zt.ey,se.IC,ie.TO,ie.KE,ue.Nt,nt._Y,nt.Fj,nt.JJ,nt.JL,nt.Q7,nt.sg,nt.u,V.lW,M.uh,M.xY,M.H8,xe.gD,it.Ou,_e,qt,m.Ov,u.X$,Ve]}),n})();var be=s(9244),tn=s(10036);function yi(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let On=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,U.w)(e=>ft((0,dt.of)(e.id),(0,dt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,U.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8),t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,yi,1,0,"mat-spinner",2),t.YNc(5,ji,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[m.O5,ie.KE,ue.Nt,nt.Fj,nt.JJ,nt.Q7,nt.On,V.lW,M.uh,M.xY,M.H8,it.Ou,et.w,u.X$]}),n})();var He=s(96308),Tn=s(36769),Bn=s(68675),Di=s(64425),In=s(37084),Te=s(33604),Fi=s(56709),Hn=s(43532),sn=s(18750);function z(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function ct(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function A(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"label")(2,"input",28),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function bt(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function Dt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Pt(n,r){1&n&&t._UZ(0,"tr",30)}function Ut(n,r){1&n&&t._UZ(0,"tr",31)}function jt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.ynx(3,13),t.YNc(4,z,2,3,"th",14),t.YNc(5,$,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,ct,3,3,"th",17),t.YNc(8,A,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,bt,3,3,"th",17),t.YNc(11,Dt,2,1,"td",18),t.BQk(),t.YNc(12,Pt,1,0,"tr",20),t.YNc(13,Ut,1,0,"tr",21),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Ht(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function J(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let pt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new F.by,this.selection=new R.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=be.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new F.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(He.YE,7),t.Gf(Te.Mw,5),t.Gf(be.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,jt,14,7,"div",7),t.YNc(17,Ht,1,0,"mat-spinner",8),t.YNc(18,J,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[m.O5,ue.Nt,nt.Fj,nt.JJ,nt.On,V.lW,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,M.uh,M.xY,M.H8,it.Ou,un.gM,et.w,Hn.M,sn.l,u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var gt=s(60205);function _t(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function zt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Wt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Lt=function(){return["id","name","enabled","script"]};function ae(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,zt,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,Wt,3,3,"mat-error",1),t.qZA()(),t._UZ(11,"perun-web-apps-attribute-unique-toggle",15)(12,"perun-web-apps-attribute-rights-tab-group",16),t.ALo(13,"async"),t.TgZ(14,"mat-accordion")(15,"mat-expansion-panel",17)(16,"mat-expansion-panel-header")(17,"mat-panel-title"),t._uU(18),t.ALo(19,"translate"),t.qZA()(),t._UZ(20,"app-services-list",18),t.ALo(21,"async"),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(1),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(13,16,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(19,18,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(22,Lt))("services",t.lcZ(21,20,e.services$))}}function O(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchShowKeys())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_t,1,0,"mat-spinner",3),t.YNc(5,ae,22,23,"div",4),t.TgZ(6,"div",5),t.YNc(7,O,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",20),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let ye=(()=>{class n{constructor(e,i,a,o,v,T,N,G,tt){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=G,this.attributeRightsService=tt,this.tableId=tn.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,nt.kI.required],description:[this.attDef.description,nt.kI.required]}),this.collections$=new D.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,Bn.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributePolicyCollections(this.attDef.id).subscribe(this.collections$)}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,U.w)(()=>(0,dt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,U.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Di.TU),t.Y36(Y.H8),t.Y36(Y.KK),t.Y36(nt.QS),t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[3,"attDef"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,re,17,16,"div",1),t.YNc(2,Ce,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[m.O5,se.IC,ie.TO,ie.KE,ue.Nt,nt._Y,nt.Fj,nt.JJ,nt.JL,nt.Q7,nt.sg,nt.u,In.pp,In.ib,In.yz,In.yK,V.lW,M.uh,M.xY,M.H8,it.Ou,_e,qt,pt,gt.Q,m.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],data:{animation:[Tn.SG,Tn.GH,Tn.Ls]}}),n})();var je=s(70844),Oe=s(64597);let Be=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function le(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function he(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"consentRelatedAttribute"),t.ALo(4,"translate"),t.ALo(5,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(3,8,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(4,12,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(5,14,e.namespace,i.serviceEnabled,i.consentRequired))}}function Fe(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function fn(n,r){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function mn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function Je(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function $e(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function wn(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Zn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Vn(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function Yn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function Ri(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function ce(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function Qe(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function _n(n,r){1&n&&t._UZ(0,"tr",26)}function Cn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function Qn(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function li(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let jn=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new R.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=be.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new F.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){(0,be.O6)((0,be.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,be.O6)((0,be.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,be.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,be.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(e){if(!this.disableRouting){const i=(0,be.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(ye,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.UA),t.Y36(je.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(be.l9,7),t.Gf(He.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.ynx(4,4),t.YNc(5,le,2,3,"th",5),t.YNc(6,he,6,18,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Fe,3,3,"th",8),t.YNc(9,fn,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,mn,3,3,"th",8),t.YNc(12,Je,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,$e,3,3,"th",8),t.YNc(15,wn,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,Zn,3,3,"th",8),t.YNc(18,Vn,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,Yn,3,3,"th",8),t.YNc(21,Ri,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,ce,3,3,"th",8),t.YNc(24,Qe,2,1,"td",11),t.BQk(),t.YNc(25,_n,1,0,"tr",16),t.YNc(26,Cn,1,2,"tr",17),t.qZA()()()(),t.YNc(27,Qn,3,3,"perun-web-apps-alert",18),t.YNc(28,li,3,3,"perun-web-apps-alert",18)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[m.O5,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,un.gM,et.w,sn.l,u.X$,Oe.R,Ve,Be,je.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var En=s(96214),Pn=s(7434);function Jn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function bi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function gn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function hn(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function ci(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ji=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new R.Ov(!0,[]),this.filterValue="",this.tableId=tn.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,be.kZ)();e.width="650px",this.dialog.open(Qi,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,be.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(Q,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,be.kZ)();e.width="700px",this.dialog.open(On,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Y.H8),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Jn,3,3,"button",2),t.YNc(6,bi,3,3,"button",3),t.YNc(7,gn,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,hn,1,0,"mat-spinner",6),t.YNc(10,ci,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,jn,En.t,Pn.L,u.X$]}),n})(),ui=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var zi=s(9921);let Mn=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,zi.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Ti=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var cn=s(71884),Bi=s(18505),Ke=s(47957),_i=s(71948),Dn=s(86257);function b(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function k(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function Z(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function rt(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function ut(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function yt(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Ot=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new nt.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,q.b)(400),(0,cn.x)(),(0,Bi.b)(()=>this.loading=!0),(0,U.w)(e=>this.usersService.findUsers(e)),(0,Bi.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(u.sK),t.Y36(Y.IQ),t.Y36(Y.KK),t.Y36(p.F0),t.Y36(B.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,b,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,k,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,Z,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,rt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,ut,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,yt,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[m.sg,m.O5,Ke.XC,Ke.ZL,Zt.ey,ie.KE,ie.bx,ie.R9,ue.Nt,nt.Fj,nt.JJ,nt.oH,nt.On,V.lW,it.Ou,_i.VQ,_i.U0,Dn.C0,Dn.VY,Dn.Vq,Dn.fd,m.Ov,u.X$]}),n})();function Bt(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function ee(n){this._context=n}function Ye(n,r){this._basis=new ee(n),this._beta=r}ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bt(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Ye.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const on=function n(r){function e(i){return 1===r?new ee(i):new Ye(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Ae=s(77579),Ie=s(70655),Me=s(37340);function Kn(){}function Hi(n){return null==n?Kn:function(){return this.querySelector(n)}}function Wn(){return[]}function Nn(n){return null==n?Wn:function(){return this.querySelectorAll(n)}}function Ki(n){return function(){return this.matches(n)}}function va(n){return new Array(n.length)}function Mr(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function qi(n,r,e,i,a,o){for(var T,v=0,N=r.length,G=o.length;vr?1:n>=r?0:NaN}Mr.prototype={constructor:Mr,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Ze="http://www.w3.org/1999/xhtml";const vn={svg:"http://www.w3.org/2000/svg",xhtml:Ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hi(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),vn.hasOwnProperty(r)?{space:vn[r],local:n}:n}function gr(n){return function(){this.removeAttribute(n)}}function Li(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wr(n,r){return function(){this.setAttribute(n,r)}}function xi(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Yi(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function _r(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Gs(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function yc(n){return function(){this.style.removeProperty(n)}}function bc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Tc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Nr(n,r){return n.style.getPropertyValue(r)||Gs(n).getComputedStyle(n,null).getPropertyValue(r)}function wc(n){return function(){delete this[n]}}function Ac(n,r){return function(){this[n]=r}}function Sc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Us(n){return n.trim().split(/^|\s+/)}function Ha(n){return n.classList||new zs(n)}function zs(n){this._node=n,this._names=Us(n.getAttribute("class")||"")}function Hs(n,r){for(var e=Ha(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Xs={},Ar=null;function nu(n,r,e){return n=$s(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function $s(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function iu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function ru(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=Xt&&(Xt=Kt+1);!(Se=vt[Xt])&&++Xt=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function xt(n){function r(lt,ot){return lt&&ot?n(lt.__data__,ot.__data__):!lt-!ot}n||(n=At);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?yc:"function"==typeof r?Tc:bc)(n,r,e??"")):Nr(this.node(),n)},property:function Ec(n,r){return arguments.length>1?this.each((null==r?wc:"function"==typeof r?Sc:Ac)(n,r)):this.node()[n]},classed:function Ic(n,r){var e=Us(n+"");if(arguments.length<2){for(var i=Ha(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const uu=function n(r){function e(i){return 1===r?new xa(i):new to(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Ya=Math.PI,Wa=2*Ya,Sr=1e-6,hu=Wa-Sr;function Xa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function eo(){return new Xa}Xa.prototype=eo.prototype={constructor:Xa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),G=o-n,tt=v-r,lt=G*G+tt*tt;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(lt>Sr)if(Math.abs(tt*T-N*G)>Sr&&a){var ot=e-o,wt=i-v,kt=T*T+N*N,Ft=ot*ot+wt*wt,vt=Math.sqrt(kt),Gt=Math.sqrt(lt),Kt=a*Math.tan((Ya-Math.acos((kt+lt-Ft)/(2*vt*Gt)))/2),Xt=Kt/Gt,ge=Kt/vt;Math.abs(Xt-1)>Sr&&(this._+="L"+(n+Xt*G)+","+(r+Xt*tt)),this._+="A"+a+","+a+",0,0,"+ +(tt*ot>G*wt)+","+(this._x1=n+ge*T)+","+(this._y1=r+ge*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,G=r+T,tt=1^o,lt=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+G:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-G)>Sr)&&(this._+="L"+N+","+G),e&&(lt<0&&(lt=lt%Wa+Wa),lt>hu?this._+="A"+e+","+e+",0,1,"+tt+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+tt+","+(this._x1=N)+","+(this._y1=G):lt>Sr&&(this._+="A"+e+","+e+",0,"+ +(lt>=Ya)+","+tt+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const du=eo;function ya(n){return function(){return n}}function no(n){this._context=n}function pu(n){return new no(n)}function fu(n){return n[0]}function mu(n){return n[1]}no.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var io=Math.PI;function ao(n){return(1-Math.cos(io*n))/2}var ba=s(25922),or=s(49194),$a=s(73339),_u=(0,ba.Z)("start","end","cancel","interrupt"),vu=[];function wa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function xu(n,r,e){var a,i=n.__transition;function v(G){var tt,lt,ot,wt;if(1!==e.state)return N();for(tt in i)if((wt=i[tt]).name===e.name){if(3===wt.state)return(0,$a.Z)(v);4===wt.state?(wt.state=6,wt.timer.stop(),wt.on.call("interrupt",n,n.__data__,wt.index,wt.group),delete i[tt]):+tt0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=tr(n,r);if(e.state>3)throw new Error("too late; already running");return e}function tr(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function vr(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,qa,ho,Aa,co=180/Math.PI,Ka={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?tt+=360:tt-G>180&&(G+=360),ot.push({i:lt.push(a(lt)+"rotate(",null,i)-2,x:vr(G,tt)})):tt&<.push(a(lt)+"rotate("+tt+i)}(G.rotate,tt.rotate,lt,ot),function T(G,tt,lt,ot){G!==tt?ot.push({i:lt.push(a(lt)+"skewX(",null,i)-2,x:vr(G,tt)}):tt&<.push(a(lt)+"skewX("+tt+i)}(G.skewX,tt.skewX,lt,ot),function N(G,tt,lt,ot,wt,kt){if(G!==lt||tt!==ot){var Ft=wt.push(a(wt)+"scale(",null,",",null,")");kt.push({i:Ft-4,x:vr(G,lt)},{i:Ft-2,x:vr(tt,ot)})}else(1!==lt||1!==ot)&&wt.push(a(wt)+"scale("+lt+","+ot+")")}(G.scaleX,G.scaleY,tt.scaleX,tt.scaleY,lt,ot),G=tt=null,function(wt){for(var vt,kt=-1,Ft=ot.length;++kt>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Ea(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Ea(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=ku.exec(n))?new Gi(r[1],r[2],r[3],1):(r=Iu.exec(n))?new Gi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Ou.exec(n))?Ea(r[1],r[2],r[3],r[4]):(r=Mu.exec(n))?Ea(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Nu.exec(n))?bo(r[1],r[2]/100,r[3]/100,1):(r=Pu.exec(n))?bo(r[1],r[2]/100,r[3]/100,r[4]):mo.hasOwnProperty(n)?vo(mo[n]):"transparent"===n?new Gi(NaN,NaN,NaN,0):null}function vo(n){return new Gi(n>>16&255,n>>8&255,255&n,1)}function Ea(n,r,e,i){return i<=0&&(n=r=e=NaN),new Gi(n,r,e,i)}function Ru(n){return n instanceof ra||(n=oa(n)),n?new Gi((n=n.rgb()).r,n.g,n.b,n.opacity):new Gi}function Da(n,r,e,i){return 1===arguments.length?Ru(n):new Gi(n,r,e,i??1)}function Gi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function xo(){return"#"+ns(this.r)+ns(this.g)+ns(this.b)}function yo(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function ns(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function bo(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new ir(n,r,e,i)}function To(n){if(n instanceof ir)return new ir(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new ir;if(n instanceof ir)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new ir(v,T,N,n.opacity)}function ir(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function is(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Co(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function wo(n){return function(){return n}}function So(n,r){var e=r-n;return e?function Ao(n,r){return function(e){return n+e*r}}(n,e):wo(isNaN(n)?r:n)}es(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:go,formatHex:go,formatHsl:function Fu(){return To(this).formatHsl()},formatRgb:_o,toString:_o}),es(Gi,Da,fo(ra,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new Gi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Gi(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xo,formatHex:xo,formatRgb:yo,toString:yo})),es(ir,function Bu(n,r,e,i){return 1===arguments.length?To(n):new ir(n,r,e,i??1)},fo(ra,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new ir(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new ir(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Gi(is(n>=240?n-240:n+120,a,i),is(n,a,i),is(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Eo=function n(r){var e=function Uu(n){return 1==(n=+n)?So:function(r,e){return e-r?function Gu(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):wo(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=Da(a)).r,(o=Da(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),G=So(a.opacity,o.opacity);return function(tt){return a.r=v(tt),a.g=T(tt),a.b=N(tt),a.opacity=G(tt),a+""}}return i.gamma=n,i}(1);function Do(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Co((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:vr(i,a)})),e=as.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Ja:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var bh=na.prototype.constructor;function ko(n){return function(){this.style.removeProperty(n)}}function Dh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Lh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Dh(n,v,e)),i}return o._value=r,o}function Nh(n){return function(r){this.textContent=n.call(this,r)}}function Ph(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Nh(a)),r}return i._value=n,i}var Zh=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Io(){return++Zh}var Fr=na.prototype;cr.prototype=function Vh(n){return na().transition(n)}.prototype={constructor:cr,select:function xh(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function zh(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Io(),(e=ss).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function id(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function La(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const Ro=Symbol("implicit");function os(){var n=new Map,r=[],e=[],i=Ro;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Ro)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return os(r,e).unknown(i)},La.apply(a,arguments),a}var Br=s(59695);function sd(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(lt=(T+G)/2))?T=lt:G=lt,(vt=e>=(ot=(N+tt)/2))?N=ot:tt=ot,a=o,!(o=o[Gt=vt<<1|Ft]))return a[Gt]=v,n;if(wt=+n._x.call(null,o.data),kt=+n._y.call(null,o.data),r===wt&&e===kt)return v.next=o,a?a[Gt]=v:n._root=v,n;do{a=a?a[Gt]=new Array(4):n._root=new Array(4),(Ft=r>=(lt=(T+G)/2))?T=lt:G=lt,(vt=e>=(ot=(N+tt)/2))?N=ot:tt=ot}while((Gt=vt<<1|Ft)==(Kt=(kt>=ot)<<1|wt>=lt));return a[Kt]=o,a[Gt]=v,n}function ki(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function xd(n){return n[0]}function bd(n){return n[1]}function ls(n,r,e){var i=new cs(r??xd,e??bd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function cs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function Zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Ii=ls.prototype=cs.prototype;function Cd(n){return n.x+n.vx}function wd(n){return n.y+n.vy}function Vo(n){var r,e,i=1,a=1;function o(){for(var N,tt,lt,ot,wt,kt,Ft,G=r.length,vt=0;vtot+yn||Sewt+yn||delt.index){var Ln=ot-nn.x-nn.vx,kn=wt-nn.y-nn.vy,$n=Ln*Ln+kn*kn;$nN.r&&(N.r=N[G].r)}function T(){if(r){var N,tt,G=r.length;for(e=new Array(G),N=0;Ntt&&(tt=a),olt&&(lt=o));if(N>tt||G>lt)return this;for(this.cover(N,G).cover(tt,lt),e=0;en||n>=a||i>r||r>=o;)switch(G=(rtt||(T=kt.y0)>lt||(N=kt.x1)=Gt)<<1|n>=vt)&&(kt=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=kt)}else{var Kt=n-+this._x.call(null,wt.data),Xt=r-+this._y.call(null,wt.data),ge=Kt*Kt+Xt*Xt;if(ge=(ot=(v+N)/2))?v=ot:N=ot,(Ft=lt>=(wt=(T+G)/2))?T=wt:G=wt,r=e,!(e=e[vt=Ft<<1|kt]))return this;if(!e.length)break;(r[vt+1&3]||r[vt+2&3]||r[vt+3&3])&&(i=r,Gt=vt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[vt]=o:delete r[vt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Gt]=e:this._root=e),this):(this._root=o,this)},Ii.removeAll=function fd(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(kt):T.set(kt,wt(Ft)),r):T.get(kt)},find:function(kt,Ft,vt){var Xt,ge,Se,de,nn,Gt=0,Kt=n.length;for(null==vt?vt=1/0:vt*=vt,Gt=0;Gt1?(G.on(kt,Ft),r):G.on(kt)}}}function Xo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var wt,kt=n.length,Ft=ls(n,Ld,kd).visitAfter(tt);for(e=ot,wt=0;wt=v)){(ot.data!==r||ot.next)&&(0===vt&&(Xt+=(vt=xr())*vt),0===Gt&&(Xt+=(Gt=xr())*Gt),Xt{return(n=Zr||(Zr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Zr;var n})(),Vr=(()=>{return(n=Vr||(Vr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Vr;var n})();function cp(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...G){const tt=+new Date;!T&&!1===e.leading&&(T=tt);const lt=r-(tt-T);return i=this,a=G,lt<=0?(clearTimeout(v),v=null,T=tt,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,lt)),o}}function up(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:cp(o.value,n,r)}),this[a]}}}}const Qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class hp{constructor(r,e,i){"string"==typeof r&&(r=Qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=Qo.find(i=>i.name===r)),os().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let pp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Gr=(()=>{return(n=Gr||(Gr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Gr;var n})();function Ur(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function Jo(n,r){return"number"==typeof r?n[r]:r}const Ko={dagre:class fp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class mp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class _p{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(kt=>kt.id===e.source),a=r.nodes.find(kt=>kt.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,G={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},tt={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},lt=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[G,{[v]:G[v],[o]:G[o]-N*lt},{[v]:tt[v],[o]:tt[o]+N*lt},tt];const wt=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return wt&&(wt.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class vp{constructor(){this.defaultSettings={force:Wo().force("charge",Xo().strength(-150)).force("collide",Vo(5)),forceLink:Yo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new Ae.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Ur(e.source).id,target:Ur(e.target).id,points:[{x:Ur(e.source).x,y:Ur(e.source).y},{x:Ur(e.target).x,y:Ur(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class xp{constructor(){this.defaultSettings={force:(0,Fd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new Ae.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=Jo(r.nodes,e.source),a=Jo(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let qo=(()=>{class n{getLayout(e){if(Ko[e])return new Ko[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),yp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),bp=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Zr.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Vr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Oo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new pp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=uu.beta(1)),this.zone.run(()=>{this.dims=function dp({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Oo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof mt.y?e:(0,dt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Yh.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let G=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const tt=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);G?G.data&&tt&&tt.data&&JSON.stringify(G.data)!==JSON.stringify(tt.data)&&(G.data=tt.data):G=tt||v,G.oldLine=G.line;const lt=v.points,ot=this.generateLine(lt),wt=Object.assign({},G);wt.line=ot,wt.points=lt,this.updateMidpointOnEdge(wt,lt);const kt=lt[Math.floor(lt.length/2)];kt&&(wt.textTransform=`translate(${kt.x||0},${kt.y||0})`),wt.textAngle=0,wt.oldLine||(wt.oldLine=wt.line),this.calcDominantBaseline(wt),a.push(wt)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Vr.UpperLeft:return"";case Vr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(Ks(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(ao).duration(e?500:0).attr("d",a.line),Ks(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(ao).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),G=N.querySelector("g.chart"),tt=N.createSVGPoint();tt.x=v,tt.y=T;const lt=tt.matrixTransform(G.getScreenCTM().inverse());this.pan(lt.x,lt.y,!0),this.zoom(a),this.pan(-lt.x,-lt.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Fo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Fo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function td(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return qh(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof mt.y?T:(0,dt.of)(T);this.graphSubscription.add(N.subscribe(G=>{this.graph=G,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function nd(n){return function Po(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function ad(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new hp(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Zr.Horizontal:this.pan(a,0);break;case Zr.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Mo.R)(window,"resize").pipe((0,q.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(qo))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,Bd,5),t.Suo(a,Zd,5),t.Suo(a,Vd,5),t.Suo(a,Gd,5),t.Suo(a,Ud,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(zd,5),t.Gf(Hd,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:lp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,np,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,op,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[yp,m.O5,m.tP,m.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Me.X$)("animationState",[(0,Me.eR)(":enter",[(0,Me.oB)({opacity:0}),(0,Me.jt)("500ms 100ms",(0,Me.oB)({opacity:1}))])])]},changeDetection:0}),(0,Ie.gn)([up(500)],n.prototype,"updateMinimap",null),n})(),Tp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[qo],imports:[[m.ez]]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez],Tp]}),n})();var tl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function ul(n,r){return nr?1:n>=r?0:NaN}function _s(n){let r=n,e=n;function i(v,T,N,G){for(null==N&&(N=0),null==G&&(G=v.length);N>>1;e(v[tt],T)<0?N=tt+1:G=tt}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function Np(n){return(r,e)=>ul(n(r),e)}(n)),{left:i,center:function o(v,T,N,G){null==N&&(N=0),null==G&&(G=v.length);const tt=i(v,T,N,G-1);return tt>N&&r(v[tt-1],T)>-r(v[tt],T)?tt-1:tt},right:function a(v,T,N,G){for(null==N&&(N=0),null==G&&(G=v.length);N>>1;e(v[tt],T)>0?G=tt:N=tt+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var vs=Math.sqrt(50),xs=Math.sqrt(10),ys=Math.sqrt(2);function bs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=vs?a*=10:o>=xs?a*=5:o>=ys&&(a*=2),r0))return N;do{N.push(G=new Date(+o)),r(o,T),n(o)}while(G=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return ws.setTime(+o),As.setTime(+v),n(ws),n(As),Math.floor(e(ws,As))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Na=di(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Na.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?di(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Na:null};const Fp=Na;const ha=di(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const ml=di(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const _l=di(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Pa=di(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return di(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/Ts})}var Fa=Lr(0),Ra=Lr(1),Yr=(Lr(2),Lr(3),Lr(4));const yl=(Lr(5),Lr(6),di(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var Ss=di(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Ss.every=function(n){return isFinite(n=Math.floor(n))&&n>0?di(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ss;const Gp=di(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const Up=di(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Es=di(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return di(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/Ts})}var Ds=Ir(0),Ba=Ir(1),Wr=(Ir(2),Ir(3),Ir(4));const Xp=(Ir(5),Ir(6),di(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var Ls=di(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Ls.every=function(n){return isFinite(n=Math.floor(n))&&n>0?di(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Xr=Ls;function Al(n,r,e,i,a,o){const v=[[ha,1,pr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,Ts],[r,1,dl],[r,3,3*dl],[n,1,Cs]];function N(G,tt,lt){const ot=Math.abs(tt-G)/lt,wt=_s(([,,vt])=>vt).right(v,ot);if(wt===v.length)return n.every(bs(G/Cs,tt/Cs,lt));if(0===wt)return Fp.every(Math.max(bs(G,tt,lt),1));const[kt,Ft]=v[ot/v[wt-1][2][r.toLowerCase(),e]))}function tf(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function ef(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function nf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function rf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function af(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function El(n,r,e){var i=pi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Dl(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function sf(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function of(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function lf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ll(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function cf(n,r,e){var i=pi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function kl(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function uf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function hf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function df(n,r,e){var i=pi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function pf(n,r,e){var i=pi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function ff(n,r,e){var i=Jp.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function mf(n,r,e){var i=pi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function gf(n,r,e){var i=pi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Il(n,r){return xn(n.getDate(),r,2)}function _f(n,r){return xn(n.getHours(),r,2)}function vf(n,r){return xn(n.getHours()%12||12,r,2)}function xf(n,r){return xn(1+Pa.count(kr(n),n),r,3)}function Ol(n,r){return xn(n.getMilliseconds(),r,3)}function yf(n,r){return Ol(n,r)+"000"}function bf(n,r){return xn(n.getMonth()+1,r,2)}function Tf(n,r){return xn(n.getMinutes(),r,2)}function Cf(n,r){return xn(n.getSeconds(),r,2)}function wf(n){var r=n.getDay();return 0===r?7:r}function Af(n,r){return xn(Fa.count(kr(n)-1,n),r,2)}function Ml(n){var r=n.getDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function Sf(n,r){return n=Ml(n),xn(Yr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function Ef(n){return n.getDay()}function Df(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Lf(n,r){return xn(n.getFullYear()%100,r,2)}function kf(n,r){return xn((n=Ml(n)).getFullYear()%100,r,2)}function If(n,r){return xn(n.getFullYear()%1e4,r,4)}function Of(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getFullYear()%1e4,r,4)}function Mf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Nl(n,r){return xn(n.getUTCDate(),r,2)}function Nf(n,r){return xn(n.getUTCHours(),r,2)}function Pf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Ff(n,r){return xn(1+Es.count(Xr(n),n),r,3)}function Pl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function Rf(n,r){return Pl(n,r)+"000"}function Bf(n,r){return xn(n.getUTCMonth()+1,r,2)}function Zf(n,r){return xn(n.getUTCMinutes(),r,2)}function Vf(n,r){return xn(n.getUTCSeconds(),r,2)}function Gf(n){var r=n.getUTCDay();return 0===r?7:r}function Uf(n,r){return xn(Ds.count(Xr(n)-1,n),r,2)}function Fl(n){var r=n.getUTCDay();return r>=4||0===r?Wr(n):Wr.ceil(n)}function zf(n,r){return n=Fl(n),xn(Wr.count(Xr(n),n)+(4===Xr(n).getUTCDay()),r,2)}function Hf(n){return n.getUTCDay()}function Yf(n,r){return xn(Ba.count(Xr(n)-1,n),r,2)}function Wf(n,r){return xn(n.getUTCFullYear()%100,r,2)}function Xf(n,r){return xn((n=Fl(n)).getUTCFullYear()%100,r,2)}function $f(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function Qf(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Wr(n):Wr.ceil(n)).getUTCFullYear()%1e4,r,4)}function jf(){return"+0000"}function Rl(){return"%"}function Bl(n){return+n}function Zl(n){return Math.floor(+n/1e3)}!function tm(n){(function jp(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,G=pa(a),tt=fa(a),lt=pa(o),ot=fa(o),wt=pa(v),kt=fa(v),Ft=pa(T),vt=fa(T),Gt=pa(N),Kt=fa(N),Xt={a:function ri(fe){return v[fe.getDay()]},A:function sr(fe){return o[fe.getDay()]},b:function ai(fe){return N[fe.getMonth()]},B:function si(fe){return T[fe.getMonth()]},c:null,d:Il,e:Il,f:yf,g:kf,G:Of,H:_f,I:vf,j:xf,L:Ol,m:bf,M:Tf,p:function Un(fe){return a[+(fe.getHours()>=12)]},q:function zn(fe){return 1+~~(fe.getMonth()/3)},Q:Bl,s:Zl,S:Cf,u:wf,U:Af,V:Sf,w:Ef,W:Df,x:null,X:null,y:Lf,Y:If,Z:Mf,"%":Rl},ge={a:function ga(fe){return v[fe.getUTCDay()]},A:function qr(fe){return o[fe.getUTCDay()]},b:function ta(fe){return N[fe.getUTCMonth()]},B:function ea(fe){return T[fe.getUTCMonth()]},c:null,d:Nl,e:Nl,f:Rf,g:Xf,G:Qf,H:Nf,I:Pf,j:Ff,L:Pl,m:Bf,M:Zf,p:function Si(fe){return a[+(fe.getUTCHours()>=12)]},q:function Ua(fe){return 1+~~(fe.getUTCMonth()/3)},Q:Bl,s:Zl,S:Vf,u:Gf,U:Uf,V:zf,w:Hf,W:Yf,x:null,X:null,y:Wf,Y:$f,Z:jf,"%":Rl},Se={a:function Ln(fe,qe,pn){var ne=wt.exec(qe.slice(pn));return ne?(fe.w=kt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},A:function kn(fe,qe,pn){var ne=lt.exec(qe.slice(pn));return ne?(fe.w=ot.get(ne[0].toLowerCase()),pn+ne[0].length):-1},b:function $n(fe,qe,pn){var ne=Gt.exec(qe.slice(pn));return ne?(fe.m=Kt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},B:function ei(fe,qe,pn){var ne=Ft.exec(qe.slice(pn));return ne?(fe.m=vt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},c:function ni(fe,qe,pn){return ln(fe,r,qe,pn)},d:Ll,e:Ll,f:pf,g:Dl,G:El,H:kl,I:kl,j:cf,L:df,m:lf,M:uf,p:function yn(fe,qe,pn){var ne=G.exec(qe.slice(pn));return ne?(fe.p=tt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},q:of,Q:mf,s:gf,S:hf,u:ef,U:nf,V:rf,w:tf,W:af,x:function ar(fe,qe,pn){return ln(fe,e,qe,pn)},X:function ii(fe,qe,pn){return ln(fe,i,qe,pn)},y:Dl,Y:El,Z:sf,"%":ff};function de(fe,qe){return function(pn){var Mi,We,Rn,ne=[],Fn=-1,Sn=0,Oi=fe.length;for(pn instanceof Date||(pn=new Date(+pn));++Fn53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Oi=(Sn=Is(da(ne.y,0,1))).getUTCDay(),Sn=Oi>4||0===Oi?Ba.ceil(Sn):Ba(Sn),Sn=Es.offset(Sn,7*(ne.V-1)),ne.y=Sn.getUTCFullYear(),ne.m=Sn.getUTCMonth(),ne.d=Sn.getUTCDate()+(ne.w+6)%7):(Oi=(Sn=ks(da(ne.y,0,1))).getDay(),Sn=Oi>4||0===Oi?Ra.ceil(Sn):Ra(Sn),Sn=Pa.offset(Sn,7*(ne.V-1)),ne.y=Sn.getFullYear(),ne.m=Sn.getMonth(),ne.d=Sn.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Oi="Z"in ne?Is(da(ne.y,0,1)).getUTCDay():ks(da(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Oi+5)%7:ne.w+7*ne.U-(Oi+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,Is(ne)):ks(ne)}}function ln(fe,qe,pn,ne){for(var Mi,We,Fn=0,Sn=qe.length,Oi=pn.length;Fn=Oi)return-1;if(37===(Mi=qe.charCodeAt(Fn++))){if(Mi=qe.charAt(Fn++),!(We=Se[Mi in Sl?qe.charAt(Fn++):Mi])||(ne=We(fe,pn,ne))<0)return-1}else if(Mi!=pn.charCodeAt(ne++))return-1}return ne}return Xt.x=de(e,Xt),Xt.X=de(i,Xt),Xt.c=de(r,Xt),ge.x=de(e,ge),ge.X=de(i,ge),ge.c=de(r,ge),{format:function(fe){var qe=de(fe+="",Xt);return qe.toString=function(){return fe},qe},parse:function(fe){var qe=nn(fe+="",!1);return qe.toString=function(){return fe},qe},utcFormat:function(fe){var qe=de(fe+="",ge);return qe.toString=function(){return fe},qe},utcParse:function(fe){var qe=nn(fe+="",!0);return qe.toString=function(){return fe},qe}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),_s(ul),_s(function em(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const wm=["caretElm"];function Am(n,r){}const Sm=function(n){return{model:n}};function Em(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Am,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,Sm,e.context))}}function Dm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function n_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const G=+new Date;!T&&!1===e.leading&&(T=G);const tt=r-(G-T);return i=this,a=arguments,tt<=0?(clearTimeout(v),v=null,T=G,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,tt)),o}}function i_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:n_(o.value,n,r)}),this[a]}}}}var rn=(()=>{return(n=rn||(rn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",rn;var n})();function Jl(n,r,e){return e===rn.Top?n.top-7:e===rn.Bottom?n.top+n.height-r.height+7:e===rn.Center?n.top+n.height/2-r.height/2:void 0}function Kl(n,r,e){return e===rn.Left?n.left-7:e===rn.Right?n.left+n.width-r.width+7:e===rn.Center?n.left+n.width/2-r.width/2:void 0}class Ui{static calculateVerticalAlignment(r,e,i){let a=Jl(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===rn.Top&&(o=r.height/2-i.height/2+7),a===rn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===rn.Center&&(o=e.height/2-i.height/2);const v=Jl(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=Kl(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===rn.Left&&(o=r.width/2-i.width/2+7),a===rn.Right&&(o=e.width-r.width/2-i.width/2-7),a===rn.Center&&(o=e.width/2-i.width/2);const v=Kl(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===rn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===rn.Left&&r.left-e.width-a<0&&(o=!0),i===rn.Top&&r.top-e.height-a<0&&(o=!0),i===rn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=-7,v=Ui.calculateVerticalCaret(i,e,a,o)):r===rn.Left?(T=e.width,v=Ui.calculateVerticalCaret(i,e,a,o)):r===rn.Top?(v=e.height,T=Ui.calculateHorizontalCaret(i,e,a,o)):r===rn.Bottom&&(v=-7,T=Ui.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=i.left+i.width+a,v=Ui.calculateVerticalAlignment(i,e,o)):r===rn.Left?(T=i.left-e.width-a,v=Ui.calculateVerticalAlignment(i,e,o)):r===rn.Top?(v=i.top-e.height-a,T=Ui.calculateHorizontalAlignment(i,e,o)):r===rn.Bottom&&(v=i.top+i.height+a,T=Ui.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(Ui.shouldFlip(i,e,r,a)){if(r===rn.Right)return rn.Left;if(r===rn.Left)return rn.Right;if(r===rn.Top)return rn.Bottom;if(r===rn.Bottom)return rn.Top}return r}}let r_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,m.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=Ui.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=Ui.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Ui.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(wm,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,Em,2,4,"span",3),t.YNc(5,Dm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[m.O5,m.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,Ie.gn)([i_(100)],n.prototype,"onWindowResize",null),n})(),ql=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function s_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new tl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new tl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ms=(()=>{class n extends class a_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=r_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ql))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ac=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez]]}),n})();var jr=(()=>{return(n=jr||(jr={})).popover="popover",n.tooltip="tooltip",jr;var n})(),Tr=(()=>{return(n=Tr||(Tr={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Tr;var n})();let Rs,Ps=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=rn.Top,this.tooltipAlignment=rn.Center,this.tooltipType=jr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Tr.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.focus}get listensForHover(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ms),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),sc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ql,Ms],imports:[[m.ez]]}),n})();typeof window<"u"?Rs=window:typeof global<"u"&&(Rs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[m.ez,ac,sc],m.ez,ac,sc]}),n})(),v_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),x_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),y_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),b_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),mc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Zs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),w_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,mc]]}),n})(),S_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),E_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),D_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,fc]]}),n})(),k_=(()=>{class n{constructor(){!function L_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,v_,fc,x_,y_,b_,mc,w_,S_,Zs,E_,D_]}),n})();function I_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function O_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function M_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function N_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function P_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const F_=function(n,r){return[n,r]};function R_(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,O_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,M_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,N_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,P_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,F_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function B_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Z_(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,B_,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function V_(n,r){if(1&n&&(t.YNc(0,R_,18,19,"div",1),t.YNc(1,Z_,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let G_=(()=>{class n{constructor(e,i,a,o,v,T,N,G,tt){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=G,this.translate=tt,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=on,this.zoomToFit$=new Ae.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const G of this.facilities)this.serviceService.getAllRichDestinationsForFacility(G.id).subscribe(tt=>{this.connectToService(G,tt),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,G="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:G});const lt={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(lt)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),G=this.localVo+": "+v.shortName,tt=v.name,lt="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:tt,color:"#E5FFCC",tip:lt});const wt={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(wt)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),G=this.localGroup+": "+i.name,tt=i.description,lt="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:tt,color:"#CCE5FF",tip:lt});const wt={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(wt)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),G=this.localResource+": "+a.name,tt=a.description,lt="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:tt,color:"#FFCCCC",tip:lt});const wt={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(wt);const kt={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(kt)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.IQ),t.Y36(Y.Fv),t.Y36(Y.uq),t.Y36(Y.KK),t.Y36(Y.xk),t.Y36(Y.ff),t.Y36(Y.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,I_,2,0,"div",1),t.YNc(4,V_,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[bp,m.O5,Ps,it.Ou,u.X$]}),n})();var U_=s(25828),gc=s(69024),z_=s(29862),ma=s(74281),H_=s(31359);function Y_(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function W_(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span")(1,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editUser())}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()(),t.TgZ(4,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.anonymizeUser())}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA()()()}}const X_=function(){return{color:"black"}},$_=function(n){return["/admin/users",n]};function Q_(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,W_,7,0,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,X_))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,$_,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let j_=(()=>{class n{constructor(e,i,a,o,v,T,N,G){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=v,this.authResolver=T,this.entityStorageService=N,this.router=G,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(a=>{this.user=a,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const o=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([o]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,be.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(z_.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,be.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.Fv),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Y_,1,0,"mat-spinner",1),t.YNc(3,Q_,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[m.O5,m.PC,p.yS,l.Hw,V.lW,it.Ou,un.gM,h.A,f.W,u.X$,H_.d]}),n})();var J_=s(17755),K_=s(74837),q_=s(85985),tv=s(98973),ev=s(15935);function nv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onLoad())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function iv(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const rv=function(){return["id","name","type"]};function av(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",7),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,rv))("tableId",e.tableId)}}let sv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=tn.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.KG),t.Y36(B.V6),t.Y36(u.sK),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,nv,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,iv,1,0,"mat-spinner",3),t.YNc(7,av,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,ev.D,Pn.L,u.X$]}),n})();var ov=s(6097),lv=s(97453),Ga=s(54004);function cv(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function uv(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function hv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,uv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let dv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new nt.p4("",[nt.kI.required,nt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new nt.p4("",[nt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Bn.O)(""),(0,Ga.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Bn.O)(""),(0,Ga.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KG),t.Y36(Y.Fv),t.Y36(u.sK),t.Y36(B.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,cv,1,0,"mat-spinner",2),t.YNc(5,hv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[m.sg,m.O5,Ke.XC,Ke.ZL,Zt.ey,ie.TO,ie.KE,ue.Nt,nt.Fj,nt.JJ,nt.Q7,nt.oH,V.lW,M.uh,M.xY,M.H8,it.Ou,m.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var pv=s(80275);function fv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function mv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function gv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function _v(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let vv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new R.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=tn.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,be.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(dv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,be.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(B.d6),t.Y36(Y.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,fv,3,3,"button",2),t.YNc(5,mv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,gv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,_v,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,En.t,Pn.L,pv.j,u.X$]}),n})();var xv=s(80774),yv=s(62109);function bv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Tv=function(){return["id","name","vo","facility","description"]};function Cv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Tv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let wv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=tn.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,bv,1,0,"mat-spinner",3),t.YNc(7,Cv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,it.Ou,En.t,Pn.L,yv.C,u.X$]}),n})();var Av=s(61365),Sv=s(71103),Ev=s(53984);const Dv=["list"];function Lv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function kv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let Iv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new R.Ov(!0,[]),this.tableId=tn.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,be.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,be.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Sv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,be.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,be.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Av.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Y.H8),t.Y36(Y.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Dv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Lv,1,0,"mat-spinner",6),t.YNc(25,kv,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,En.t,Ev.p,m.uU,u.X$]}),n})();var Ov=s(40009),Mv=s(90719);function Nv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Pv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Fv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Rv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const Bv=function(){return{color:"black"}},Zv=function(n){return["/admin/services",n]};function Vv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,Pv,3,0,"button",12),t.YNc(12,Fv,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Rv,3,3,"button",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,14,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(22,Bv)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,Zv,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,16,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,18,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,20,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let Gv=(()=>{class n{constructor(e,i,a,o,v,T,N,G,tt,lt,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=G,this.translate=tt,this.notificator=lt,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,be.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Ov.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,be.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Mv.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,be.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e,this.entityStorageService.setEntity({id:e.id,beanName:e.beanName});const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(Y.WY),t.Y36(Y.KK),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(B.x4),t.Y36(u.sK),t.Y36(B.V6),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link","queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Nv,1,0,"mat-spinner",1),t.YNc(3,Vv,24,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,m.PC,p.yS,l.Hw,V.lW,it.Ou,un.gM,Tt.Rr,h.A,f.W,u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"],data:{animation:[Tn.Ji]}}),n})(),Uv=(()=>{class n{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},dependencies:[L.L]}),n})();var zv=s(32076),Hv=s(24351),_c=s(54482),Yv=s(25032),Xv=s(86099),$v=s(57359);function jv(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function Jv(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function Kv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,Jv,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function qv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let t0=(()=>{class n{constructor(e,i,a,o,v,T,N,G){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=G,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,Hv.b)(zv.D),(0,Ga.U)(tt=>tt.id),function Wv(n,r){return(0,_c.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),Yv.Z))})}(),(0,Xv.z)(tt=>this.consentHubService.getConsentHubByFacility(tt)),function Qv(n,r){return(0,_c.e)((0,$v.U)(n,r,arguments.length>=2,!1,!0))}((tt,lt)=>tt||lt.enforceConsents,!1),(0,Bn.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ga.U)(tt=>tt.enabled),(0,Bn.O)(!0)),this.attrDefinitions=[],this.selection=new R.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KK),t.Y36(Y.H8),t.Y36(Y.IQ),t.Y36(Y.WY),t.Y36(B.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,jv,1,0,"mat-spinner",1),t.YNc(5,Kv,7,14,"div",2),t.YNc(6,qv,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,M.uh,M.xY,M.H8,it.Ou,et.w,Pn.L,jn,m.Ov,u.X$]}),n})();function e0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function n0(n,r){1&n&&t._UZ(0,"th",15)}function r0(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function a0(n,r){1&n&&t._UZ(0,"tr",17)}function s0(n,r){1&n&&t._UZ(0,"tr",18)}function o0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,n0,1,0,"th",11),t.YNc(10,r0,2,1,"td",12),t.BQk(),t.YNc(11,a0,1,0,"tr",13),t.YNc(12,s0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let l0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new F.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KK),t.Y36(B.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,e0,1,0,"mat-spinner",1),t.YNc(5,o0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[m.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,it.Ou,u.X$]}),n})();function c0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function u0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function h0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function d0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let p0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new R.Ov(!0,[]),this.attrDefinitions=[],this.tableId=tn.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,be.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(t0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,be.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(l0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.H8),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,c0,3,3,"button",2),t.YNc(6,u0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,h0,1,0,"mat-spinner",5),t.YNc(9,d0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,jn,En.t,Pn.L,u.X$]}),n})();var f0=s(46597),m0=s(89466),g0=s(70242);function _0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function v0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function x0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function y0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const b0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function T0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,b0))("tableId",e.tableId)}}let C0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new R.Ov(!0,[]),this.tableId=tn.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,be.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(m0.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.KK),t.Y36(B.V6),t.Y36(u.sK),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,_0,3,4,"button",2),t.YNc(6,v0,3,4,"button",3),t.YNc(7,x0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,y0,1,0,"mat-spinner",6),t.YNc(10,T0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,g0.q,En.t,Pn.L,u.X$]}),n})();function w0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function A0(n,r){1&n&&t._UZ(0,"th",13)}function S0(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function E0(n,r){1&n&&t._UZ(0,"tr",15)}function D0(n,r){1&n&&t._UZ(0,"tr",16)}function L0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,A0,1,0,"th",9),t.YNc(10,S0,2,1,"td",10),t.BQk(),t.YNc(11,E0,1,0,"tr",11),t.YNc(12,D0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function k0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let I0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new F.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,w0,1,0,"mat-spinner",1),t.YNc(4,L0,13,9,"div",2),t.YNc(5,k0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,it.Ou,u.X$]}),n})();function O0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function M0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function N0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function P0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,M0,3,3,"mat-error",3),t.YNc(12,N0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let F0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new nt.p4(null,[nt.kI.required,nt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new nt.p4(null,[nt.kI.required,nt.kI.pattern(be.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(B.V6),t.Y36(Y.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,O0,1,0,"mat-spinner",2),t.YNc(5,P0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,Zt.ey,ie.TO,ie.KE,ue.Nt,nt.Fj,nt.JJ,nt.Q7,nt.oH,V.lW,M.uh,M.xY,M.H8,xe.gD,it.Ou,un.gM,u.X$]}),n})();var R0=s(23256);function B0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Z0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function V0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function G0(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let U0=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new R.Ov(!0,[]),this.filterValue="",this.tableId=tn.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,be.kZ)();e.width="400px",e.data={},this.dialog.open(F0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,be.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(I0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.aC),t.Y36(M.uw),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,B0,3,3,"button",2),t.YNc(6,Z0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,V0,1,0,"mat-spinner",5),t.YNc(9,G0,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,En.t,Pn.L,R0.Q,u.X$]}),n})();var z0=s(74010);function H0(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function Y0(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let W0=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=tn.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,H0,1,0,"mat-spinner",3),t.YNc(7,Y0,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,it.Ou,En.t,Pn.L,z0.X,u.X$]}),n})();var vc=s(64080),X0=s(24179),$0=s(62707),Q0=s(19191),j0=s(12651),J0=s(60526);function K0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function q0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function tx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function ex(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const nx=function(){return["id","recent","name","description","expiration","groupStatus"]};function ix(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,nx))}}const rx=function(n,r){return["/organizations",n,"members",r]};function ax(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),t.qZA()(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ix,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("routerLink",t.WLB(11,rx,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function sx(n,r){if(1&n&&(t.YNc(0,ex,1,0,"mat-spinner",1),t.YNc(1,ax,12,14,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function ox(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function cx(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function ux(n,r){if(1&n&&(t.YNc(0,lx,1,0,"mat-spinner",4),t.YNc(1,cx,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function hx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function dx(n,r){1&n&&t._UZ(0,"mat-spinner")}function px(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function fx(n,r){if(1&n&&(t.YNc(0,dx,1,0,"mat-spinner",4),t.YNc(1,px,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function mx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function gx(n,r){1&n&&t._UZ(0,"mat-spinner")}function _x(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function vx(n,r){if(1&n&&(t.YNc(0,gx,1,0,"mat-spinner",4),t.YNc(1,_x,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function xx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,tx,2,3,"ng-template",8),t.YNc(3,sx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,ox,2,3,"ng-template",8),t.YNc(6,ux,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,hx,2,3,"ng-template",8),t.YNc(9,fx,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,mx,2,3,"ng-template",8),t.YNc(12,vx,2,2,"ng-template",9),t.qZA()())}function yx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let bx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[vc.r.MEMBER_DEF_GROUP_EXPIRATION,vc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.Fv),t.Y36(Y.uq),t.Y36(Y.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[3,"member","vo"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,K0,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,q0,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,xx,13,0,"mat-tab-group",4),t.YNc(7,yx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[m.O5,p.yS,Ue.SP,Ue.uD,Ue.uX,Ue.Vc,it.Ou,et.w,X0.W,$0.M,Q0.Y,j0.t,J0.b,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),xc=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function Tx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function Cx(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function wx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Ax(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let Sx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Di.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Tx,2,3,"ng-template",4),t.YNc(13,Cx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,wx,2,3,"ng-template",4),t.YNc(16,Ax,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,V.lW,Ue.SP,Ue.uD,Ue.uX,Ue.Vc,M.uh,M.xY,M.H8,u.X$,xc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Ex=s(98739),Dx=s(56451),Lx=s(62383);function kx(n,r){1&n&&(t.TgZ(0,"div",17),t._UZ(1,"mat-spinner",18),t.qZA())}function Ix(n,r){1&n&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Ox(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Mx(n,r){1&n&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function Nx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function Px(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Fx(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function Rx(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Bx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function Zx(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function Vx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function Gx(n,r){1&n&&t._UZ(0,"th",21)}function Ux(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",20)(1,"button",23),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function zx(n,r){1&n&&t._UZ(0,"tr",24)}function Hx(n,r){1&n&&t._UZ(0,"tr",25)}function Yx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let Wx=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=be.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,m.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Dx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,Bi.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new B.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}viewDetails(e){const i=(0,be.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(Sx,i)}exportDisplayedData(e){(0,be.O6)((0,be.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(B.ly),t.Y36(tn.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(be.l9,7),t.Gf(He.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[t._Bn([{provide:Ex.ye,useClass:B.Be}]),t.TTD],decls:28,vars:16,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","allowExportAll","exportDisplayedData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","","data-cy","audit-message-td",4,"matCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell","","data-cy","audit-message-td",1,"static-column-size"],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)}),t.YNc(3,kx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,Ix,3,3,"th",5),t.YNc(8,Ox,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,Mx,3,3,"th",5),t.YNc(11,Nx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Px,3,3,"th",9),t.YNc(14,Fx,3,3,"td",10),t.BQk(),t.ynx(15,11),t.YNc(16,Rx,3,3,"th",9),t.YNc(17,Bx,2,1,"td",6),t.BQk(),t.ynx(18,12),t.YNc(19,Zx,3,3,"th",9),t.YNc(20,Vx,2,1,"td",6),t.BQk(),t.ynx(21,13),t.YNc(22,Gx,1,0,"th",9),t.YNc(23,Ux,4,3,"td",6),t.BQk(),t.YNc(24,zx,1,0,"tr",14),t.YNc(25,Hx,1,0,"tr",15),t.qZA()()(),t.YNc(26,Yx,3,3,"perun-web-apps-alert",16),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,10,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId)("allowExportAll",!1),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,12,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,14,i.dataSource.loading$)))},dependencies:[m.O5,V.lW,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,it.Ou,et.w,sn.l,m.Ov,u.X$,Lx.M,xc]}),n})(),Xx=(()=>{class n{constructor(){this.tableId=tn.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},dependencies:[Wx,En.t,u.X$]}),n})();var $x=s(44850);let Qx=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[V.lW,M.uh,M.xY,M.H8,$x.d,et.w,u.X$]}),n})();function jx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Jx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function qx(n,r){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function ty(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function ey(n,r){if(1&n&&(t.TgZ(0,"td",22),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function ny(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function iy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function ry(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function ay(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",25),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function sy(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,ay,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function oy(n,r){1&n&&t._UZ(0,"tr",26)}function ly(n,r){1&n&&t._UZ(0,"tr",27)}function cy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function uy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}let hy=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new R.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=be.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new F.by(this.consentHubs),this.setDataSource()}exportAllData(e){(0,be.O6)((0,be.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const i=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=i+this.dataSource.paginator.pageSize;(0,be.O6)((0,be.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(i,a),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,be.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,be.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,be.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(Qx,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(B.UA),t.Y36(M.uw),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(be.l9,7),t.Gf(He.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return i.exportDisplayedData(o)})("exportAllData",function(o){return i.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,jx,2,3,"th",4),t.YNc(5,Jx,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Kx,3,3,"th",7),t.YNc(8,qx,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ty,3,3,"th",7),t.YNc(11,ey,3,4,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,ny,3,3,"th",7),t.YNc(14,iy,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ry,3,3,"th",7),t.YNc(17,sy,2,1,"td",10),t.BQk(),t.YNc(18,oy,1,0,"tr",13),t.YNc(19,ly,1,0,"tr",14),t.qZA()()(),t.YNc(20,cy,3,3,"perun-web-apps-alert",15),t.YNc(21,uy,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[m.sg,m.O5,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,Tt.Rr,et.w,sn.l,u.X$,Oe.R]}),n})();function dy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function fy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function my(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let gy=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=tn.HE,this.selection=new R.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,be.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.WY),t.Y36(B.x4),t.Y36(B.V6),t.Y36(u.sK),t.Y36(B.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,dy,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,py,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,fy,1,0,"mat-spinner",6),t.YNc(11,my,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[m.O5,V.lW,it.Ou,un.gM,hy,et.w,En.t,Pn.L,u.X$]}),n})();var _y=s(57788),Vs=s(71992);const vy=[{path:"",component:C,canActivateChild:[Vs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:Ji,data:{animation:"AdminAttributesPage"}},{path:"users",component:U_.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:U0,data:{animation:"AdminOwnersPage"}},{path:"services",component:xv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:Xx,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ui,children:[{path:"",component:Ti,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:Mn,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Ot,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:G_,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:sv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:gy,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:_y.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:j_,canActivateChild:[Vs.a],children:[{path:"",component:J_.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:bx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:tv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:K_.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:q_.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:vv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:W0,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:wv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Iv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:ov.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:lv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:f0.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:Gv,canActivateChild:[Vs.a],children:[{path:"",component:Uv,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:p0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:C0,data:{animation:"ServiceDestinationsPage"}}]}];let xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(vy),p.Bz]}),n})();var yy=s(14264),by=s(63189),Ty=s(46374);let Cy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Cp,k_,m.ez,xy,yy.m,by.r,Te.ez,Ct.d4,Ty.UsersModule]}),n})()},70242:(w,E,s)=>{"use strict";s.d(E,{q:()=>Qt});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(32080),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),g=s(18750),C=s(89383);function L(Nt,ft){if(1&Nt){const dt=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(Zt){t.CHM(dt);const se=t.oxw();return t.KtG(Zt?se.masterToggle():null)}),t.qZA()()}if(2&Nt){const dt=t.oxw();t.xp6(1),t.Q6J("aria-label",dt.checkboxLabel())("checked",dt.selection.hasValue()&&dt.isAllSelected())("indeterminate",dt.selection.hasValue()&&!dt.isAllSelected())}}function I(Nt,ft){if(1&Nt){const dt=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(Zt){const ie=t.CHM(dt).$implicit,ue=t.oxw();return t.KtG(Zt?ue.selection.toggle(ie):null)})("click",function(Zt){return Zt.stopPropagation()}),t.qZA()()}if(2&Nt){const dt=ft.$implicit,Ct=t.oxw();t.xp6(1),t.Q6J("aria-label",Ct.checkboxLabel(dt))("checked",Ct.selection.isSelected(dt))}}function R(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function M(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.hij(" ",dt.id," ")}}function F(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function B(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.service.name)}}function Y(Nt,ft){1&Nt&&t._UZ(0,"th",28)}function V(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function it(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t.YNc(1,V,3,3,"mat-icon",29),t.qZA()),2&Nt){const dt=ft.$implicit,Ct=t.oxw();t.xp6(1),t.Q6J("ngIf",!Ct.services.has(dt.service.id))}}function et(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function st(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.facility.name)}}function K(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function X(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.destination)}}function W(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function at(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.type.toUpperCase())}}function H(Nt,ft){1&Nt&&t._UZ(0,"th",28)}function Q(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function nt(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function q(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t.YNc(1,Q,3,3,"mat-icon",31),t.YNc(2,nt,3,3,"mat-icon",31),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Q6J("ngIf",!dt.blocked),t.xp6(1),t.Q6J("ngIf",dt.blocked)}}function U(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function D(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.propagationType)}}function mt(Nt,ft){1&Nt&&t._UZ(0,"tr",33)}function St(Nt,ft){1&Nt&&t._UZ(0,"tr",34)}function Mt(Nt,ft){1&Nt&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Et(Nt,ft){1&Nt&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let Qt=(()=>{class Nt{constructor(dt,Ct){this.authResolver=dt,this.tableCheckbox=Ct,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=m.f7}set matSort(dt){this.sort=dt,this.setDataSource()}static getDataForColumn(dt,Ct){switch(Ct){case"destinationId":return dt.id.toString();case"service":return dt.service.name;case"facility":return dt.facility.name;case"destination":return dt.destination;case"type":return dt.type;case"status":return dt.blocked?"blocked":"allowed";case"propagationType":return dt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(dt=>"destinationId"!==dt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportAllData(dt){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,Nt.getDataForColumn),dt)}exportDisplayedData(dt){const Ct=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Zt=Ct+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ct,Zt),this.displayedColumns,Nt.getDataForColumn),dt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(dt,Ct)=>(0,m.Sd)(dt,Ct,this.displayedColumns,Nt.getDataForColumn),this.dataSource.sortData=(dt,Ct)=>(0,m.pR)(dt,Ct,Nt.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(dt){return dt?`${this.selection.isSelected(dt)?"deselect":"select"} row ${dt.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Nt.\u0275fac=function(dt){return new(dt||Nt)(t.Y36(p.x4),t.Y36(p.UA))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(dt,Ct){if(1&dt&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&dt){let Zt;t.iGM(Zt=t.CRH())&&(Ct.child=Zt.first),t.iGM(Zt=t.CRH())&&(Ct.matSort=Zt.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(dt,Ct){1&dt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(se){return Ct.exportDisplayedData(se)})("exportAllData",function(se){return Ct.exportAllData(se)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,L,2,3,"th",4),t.YNc(5,I,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,R,3,3,"th",7),t.YNc(8,M,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,F,3,3,"th",7),t.YNc(11,B,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Y,1,0,"th",12),t.YNc(14,it,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,et,3,3,"th",7),t.YNc(17,st,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,K,3,3,"th",7),t.YNc(20,X,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,W,3,3,"th",7),t.YNc(23,at,2,1,"td",10),t.BQk(),t.ynx(24,16),t.YNc(25,H,1,0,"th",12),t.YNc(26,q,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,U,3,3,"th",7),t.YNc(29,D,2,1,"td",10),t.BQk(),t.YNc(30,mt,1,0,"tr",18),t.YNc(31,St,1,0,"tr",19),t.qZA()()(),t.YNc(32,Mt,3,3,"perun-web-apps-alert",20),t.YNc(33,Et,3,3,"perun-web-apps-alert",20)),2&dt&&(t.Q6J("hidden",0===Ct.dataSource.filteredData.length||0===Ct.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Ct.pageSizeOptions)("dataLength",Ct.dataSource.filteredData.length)("tableId",Ct.tableId),t.xp6(1),t.Q6J("dataSource",Ct.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",Ct.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Ct.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Ct.dataSource.filteredData.length&&0!==Ct.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Ct.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,g.l,C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Nt})()},89466:(w,E,s)=>{"use strict";s.d(E,{u:()=>I});var c=s(32105),x=s(65412),_=s(30671),m=s(32080),p=s(94650),t=s(89383),d=s(36895),l=s(4859),h=s(51572),f=s(98380),u=s(70242);function g(R,M){1&R&&p._UZ(0,"mat-spinner",6)}function C(R,M){if(1&R&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&R){const F=p.oxw(2);p.Q6J("destinations",F.destinations)("displayedColumns",F.displayedColumns)}}function L(R,M){if(1&R&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&R){const F=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!F.loading)}}let I=(()=>{class R{constructor(F,B,Y,V,it){this.dialogRef=F,this.data=B,this.notificator=Y,this.translate=V,this.serviceManager=it,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const F=this.destinations.pop();this.serviceManager.removeDestination(F.service.id,F.facility.id,F.destination,F.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return R.\u0275fac=function(F){return new(F||R)(p.Y36(x.so),p.Y36(x.WI),p.Y36(m.V6),p.Y36(t.sK),p.Y36(c.KK))},R.\u0275cmp=p.Xpm({type:R,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(F,B){1&F&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,g,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return B.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return B.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&F&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(B.theme),p.xp6(1),p.Q6J("ngIf",B.loading),p.xp6(1),p.Q6J("ngIf",!B.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",B.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[d.O5,l.lW,x.uh,x.xY,x.H8,h.Ou,f.w,u.q,t.X$]}),R})()},23256:(w,E,s)=>{"use strict";s.d(E,{Q:()=>X});var c=s(96308),x=s(95017),_=s(30671),m=s(9244),p=s(32080),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383);function g(W,at){if(1&W){const H=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(nt){t.CHM(H);const q=t.oxw();return t.KtG(nt?q.masterToggle():null)}),t.qZA()()}if(2&W){const H=t.oxw();t.xp6(1),t.Q6J("aria-label",H.checkboxLabel())("checked",H.selection.hasValue()&&H.isAllSelected())("indeterminate",H.selection.hasValue()&&!H.isAllSelected())}}function C(W,at){if(1&W){const H=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(nt){const U=t.CHM(H).$implicit,D=t.oxw();return t.KtG(nt?D.selection.toggle(U):null)})("click",function(nt){return nt.stopPropagation()}),t.qZA()()}if(2&W){const H=at.$implicit,Q=t.oxw();t.xp6(1),t.Q6J("aria-label",Q.checkboxLabel(H))("checked",Q.selection.isSelected(H))}}function L(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function I(W,at){if(1&W&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.hij(" ",H.id," ")}}function R(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function M(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.name)}}function F(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function B(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.contact)}}function Y(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function V(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.type)}}function it(W,at){1&W&&t._UZ(0,"tr",23)}function et(W,at){1&W&&t._UZ(0,"tr",24)}function st(W,at){1&W&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function K(W,at){1&W&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let X=(()=>{class W{constructor(H,Q){this.authResolver=H,this.tableCheckbox=Q,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=m.f7}set matSort(H){this.sort=H,this.setDataSource()}static getDataForColumn(H,Q){switch(Q){case"id":return H.id.toString();case"name":return H.name;case"contact":return H.contact;case"type":return H.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(H){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,W.getDataForColumn),H)}exportDisplayedData(H){const Q=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,nt=Q+this.dataSource.paginator.pageSize;(0,m.O6)((0,m.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Q,nt),this.displayedColumns,W.getDataForColumn),H)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(H,Q)=>(0,m.Sd)(H,Q,this.displayedColumns,W.getDataForColumn),this.dataSource.sortData=(H,Q)=>(0,m.pR)(H,Q,W.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(H=>"id"!==H)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return W.\u0275fac=function(H){return new(H||W)(t.Y36(p.x4),t.Y36(p.UA))},W.\u0275cmp=t.Xpm({type:W,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(H,Q){if(1&H&&(t.Gf(m.l9,7),t.Gf(c.YE,7)),2&H){let nt;t.iGM(nt=t.CRH())&&(Q.child=nt.first),t.iGM(nt=t.CRH())&&(Q.matSort=nt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(H,Q){1&H&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(q){return Q.exportDisplayedData(q)})("exportAllData",function(q){return Q.exportAllData(q)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,g,2,3,"th",4),t.YNc(5,C,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,L,3,3,"th",7),t.YNc(8,I,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,M,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,F,3,3,"th",7),t.YNc(14,B,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Y,3,3,"th",7),t.YNc(17,V,2,1,"td",10),t.BQk(),t.YNc(18,it,1,0,"tr",13),t.YNc(19,et,1,0,"tr",14),t.qZA()()(),t.YNc(20,st,3,3,"perun-web-apps-alert",15),t.YNc(21,K,3,3,"perun-web-apps-alert",15)),2&H&&(t.Q6J("hidden",0===Q.owners.length||0===Q.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",Q.tableId)("dataLength",Q.dataSource.filteredData.length)("pageSizeOptions",Q.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",Q.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",Q.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Q.displayedColumns),t.xp6(1),t.Q6J("ngIf",!Q.owners.length),t.xp6(1),t.Q6J("ngIf",!Q.dataSource.filteredData.length&&Q.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$]}),W})()},16087:(w,E,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function m(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=m(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(m){var p,t;return!(!1===x(m)||(p=m.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,E,s)=>{"use strict";s.d(E,{B8:()=>et,Il:()=>x,J5:()=>m,SU:()=>it,Ss:()=>st,Ym:()=>Q,ZP:()=>B,xV:()=>_});var c=s(68884);function x(){}var _=.7,m=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),g=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function R(){return this.rgb().formatHex()}function F(){return this.rgb().formatRgb()}function B(U){var D,mt;return U=(U+"").trim().toLowerCase(),(D=l.exec(U))?(mt=D[1].length,D=parseInt(D[1],16),6===mt?Y(D):3===mt?new st(D>>8&15|D>>4&240,D>>4&15|240&D,(15&D)<<4|15&D,1):8===mt?V(D>>24&255,D>>16&255,D>>8&255,(255&D)/255):4===mt?V(D>>12&15|D>>8&240,D>>8&15|D>>4&240,D>>4&15|240&D,((15&D)<<4|15&D)/255):null):(D=h.exec(U))?new st(D[1],D[2],D[3],1):(D=f.exec(U))?new st(255*D[1]/100,255*D[2]/100,255*D[3]/100,1):(D=u.exec(U))?V(D[1],D[2],D[3],D[4]):(D=g.exec(U))?V(255*D[1]/100,255*D[2]/100,255*D[3]/100,D[4]):(D=C.exec(U))?at(D[1],D[2]/100,D[3]/100,1):(D=L.exec(U))?at(D[1],D[2]/100,D[3]/100,D[4]):I.hasOwnProperty(U)?Y(I[U]):"transparent"===U?new st(NaN,NaN,NaN,0):null}function Y(U){return new st(U>>16&255,U>>8&255,255&U,1)}function V(U,D,mt,St){return St<=0&&(U=D=mt=NaN),new st(U,D,mt,St)}function it(U){return U instanceof x||(U=B(U)),U?new st((U=U.rgb()).r,U.g,U.b,U.opacity):new st}function et(U,D,mt,St){return 1===arguments.length?it(U):new st(U,D,mt,St??1)}function st(U,D,mt,St){this.r=+U,this.g=+D,this.b=+mt,this.opacity=+St}function K(){return"#"+W(this.r)+W(this.g)+W(this.b)}function X(){var U=this.opacity;return(1===(U=isNaN(U)?1:Math.max(0,Math.min(1,U)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===U?")":", "+U+")")}function W(U){return((U=Math.max(0,Math.min(255,Math.round(U)||0)))<16?"0":"")+U.toString(16)}function at(U,D,mt,St){return St<=0?U=D=mt=NaN:mt<=0||mt>=1?U=D=NaN:D<=0&&(U=NaN),new nt(U,D,mt,St)}function H(U){if(U instanceof nt)return new nt(U.h,U.s,U.l,U.opacity);if(U instanceof x||(U=B(U)),!U)return new nt;if(U instanceof nt)return U;var D=(U=U.rgb()).r/255,mt=U.g/255,St=U.b/255,Mt=Math.min(D,mt,St),Et=Math.max(D,mt,St),Qt=NaN,Nt=Et-Mt,ft=(Et+Mt)/2;return Nt?(Qt=D===Et?(mt-St)/Nt+6*(mt0&&ft<1?0:Qt,new nt(Qt,Nt,ft,U.opacity)}function Q(U,D,mt,St){return 1===arguments.length?H(U):new nt(U,D,mt,St??1)}function nt(U,D,mt,St){this.h=+U,this.s=+D,this.l=+mt,this.opacity=+St}function q(U,D,mt){return 255*(U<60?D+(mt-D)*U/60:U<180?mt:U<240?D+(mt-D)*(240-U)/60:D)}(0,c.Z)(x,B,{copy:function(U){return Object.assign(new this.constructor,this,U)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHsl:function M(){return H(this).formatHsl()},formatRgb:F,toString:F}),(0,c.Z)(st,et,(0,c.l)(x,{brighter:function(U){return U=null==U?m:Math.pow(m,U),new st(this.r*U,this.g*U,this.b*U,this.opacity)},darker:function(U){return U=null==U?_:Math.pow(_,U),new st(this.r*U,this.g*U,this.b*U,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:K,formatHex:K,formatRgb:X,toString:X})),(0,c.Z)(nt,Q,(0,c.l)(x,{brighter:function(U){return U=null==U?m:Math.pow(m,U),new nt(this.h,this.s,this.l*U,this.opacity)},darker:function(U){return U=null==U?_:Math.pow(_,U),new nt(this.h,this.s,this.l*U,this.opacity)},rgb:function(){var U=this.h%360+360*(this.h<0),D=isNaN(U)||isNaN(this.s)?0:this.s,mt=this.l,St=mt+(mt<.5?mt:1-mt)*D,Mt=2*mt-St;return new st(q(U>=240?U-240:U+120,Mt,St),q(U,Mt,St),q(U<120?U+240:U-120,Mt,St),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var U=this.opacity;return(1===(U=isNaN(U)?1:Math.max(0,Math.min(1,U)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===U?")":", "+U+")")}}))},68884:(w,E,s)=>{"use strict";function c(_,m,p){_.prototype=m.prototype=p,p.constructor=_}function x(_,m){var p=Object.create(_.prototype);for(var t in m)p[t]=m[t];return p}s.d(E,{Z:()=>c,l:()=>x})},25922:(w,E,s)=>{"use strict";s.d(E,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.d(E,{Z:()=>m,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function m(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,E,s)=>{"use strict";function _(m){return((m*=2)<=1?m*m*m:(m-=2)*m*m+2)/2}s.d(E,{tw:()=>_})},22910:(w,E,s)=>{"use strict";s.d(E,{WU:()=>_,ZP:()=>p,jH:()=>m});var x,_,m,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,m=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,E,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,m){if((p=(_=m?_.toExponential(m-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(E,{V:()=>x,Z:()=>c})},32517:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(m){if(!(p=c.exec(m)))throw new Error("invalid format: "+m);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,E,s)=>{"use strict";s.r(E),s.d(E,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>m.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),m=s(78986),p=s(38914),t=s(65142)},4753:(w,E,s)=>{"use strict";s.d(E,{Z:()=>L});var d,c=s(68520),m=s(32517),t=s(5326);function h(I,R){var M=(0,t.V)(I,R);if(!M)return I+"";var F=M[0],B=M[1];return B<0?"0."+new Array(-B).join("0")+F:F.length>B+1?F.slice(0,B+1)+"."+F.slice(B+1):F+new Array(B-F.length+2).join("0")}const f={"%":(I,R)=>(100*I).toFixed(R),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,R)=>I.toExponential(R),f:(I,R)=>I.toFixed(R),g:(I,R)=>I.toPrecision(R),o:I=>Math.round(I).toString(8),p:(I,R)=>h(100*I,R),r:h,s:function l(I,R){var M=(0,t.V)(I,R);if(!M)return I+"";var F=M[0],B=M[1],Y=B-(d=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,V=F.length;return Y===V?F:Y>V?F+new Array(Y-V+1).join("0"):Y>0?F.slice(0,Y)+"."+F.slice(Y):"0."+new Array(1-Y).join("0")+(0,t.V)(I,Math.max(0,R+Y-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var R=void 0===I.grouping||void 0===I.thousands?u:function x(I,R){return function(M,F){for(var B=M.length,Y=[],V=0,it=I[0],et=0;B>0&&it>0&&(et+it+1>F&&(it=Math.max(1,F-et)),Y.push(M.substring(B-=it,B+it)),!((et+=it+1)>F));)it=I[V=(V+1)%I.length];return Y.reverse().join(R)}}(g.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",F=void 0===I.currency?"":I.currency[1]+"",B=void 0===I.decimal?".":I.decimal+"",Y=void 0===I.numerals?u:function _(I){return function(R){return R.replace(/[0-9]/g,function(M){return I[+M]})}}(g.call(I.numerals,String)),V=void 0===I.percent?"%":I.percent+"",it=void 0===I.minus?"\u2212":I.minus+"",et=void 0===I.nan?"NaN":I.nan+"";function st(X){var W=(X=(0,m.Z)(X)).fill,at=X.align,H=X.sign,Q=X.symbol,nt=X.zero,q=X.width,U=X.comma,D=X.precision,mt=X.trim,St=X.type;"n"===St?(U=!0,St="g"):f[St]||(void 0===D&&(D=12),mt=!0,St="g"),(nt||"0"===W&&"="===at)&&(nt=!0,W="0",at="=");var Mt="$"===Q?M:"#"===Q&&/[boxX]/.test(St)?"0"+St.toLowerCase():"",Et="$"===Q?F:/[%p]/.test(St)?V:"",Qt=f[St],Nt=/[defgprs%]/.test(St);function ft(dt){var se,ie,ue,Ct=Mt,Zt=Et;if("c"===St)Zt=Qt(dt)+Zt,dt="";else{var xe=(dt=+dt)<0||1/dt<0;if(dt=isNaN(dt)?et:Qt(Math.abs(dt),D),mt&&(dt=function p(I){t:for(var B,R=I.length,M=1,F=-1;M0&&(F=0)}return F>0?I.slice(0,F)+I.slice(B+1):I}(dt)),xe&&0==+dt&&"+"!==H&&(xe=!1),Ct=(xe?"("===H?H:it:"-"===H||"("===H?"":H)+Ct,Zt=("s"===St?C[8+d/3]:"")+Zt+(xe&&"("===H?")":""),Nt)for(se=-1,ie=dt.length;++se(ue=dt.charCodeAt(se))||ue>57){Zt=(46===ue?B+dt.slice(se+1):dt.slice(se))+Zt,dt=dt.slice(0,se);break}}U&&!nt&&(dt=R(dt,1/0));var Ue=Ct.length+dt.length+Zt.length,Pe=Ue>1)+Ct+dt+Zt+Pe.slice(Ue);break;default:dt=Pe+Ct+dt+Zt}return Y(dt)}return D=void 0===D?6:/[gprs]/.test(St)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D)),ft.toString=function(){return X+""},ft}return{format:st,formatPrefix:function K(X,W){var at=st(((X=(0,m.Z)(X)).type="f",X)),H=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(W)/3))),Q=Math.pow(10,-H),nt=C[8+H/3];return function(q){return at(Q*q)+nt}}}}},78986:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_,m){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(m)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_,m){return _=Math.abs(_),m=Math.abs(m)-_,Math.max(0,(0,c.Z)(m)-(0,c.Z)(_))+1}},9921:function(w,E,s){!function(c,x,_,m,p,t,d,l,h,f){"use strict";function u(J){if(J&&J.__esModule)return J;var pt=Object.create(null);return J&&Object.keys(J).forEach(function(gt){if("default"!==gt){var _t=Object.getOwnPropertyDescriptor(J,gt);Object.defineProperty(pt,gt,_t.get?_t:{enumerable:!0,get:function(){return J[gt]}})}}),pt.default=J,Object.freeze(pt)}var Dt,g=u(x);function C(J,pt,gt){return pt in J?Object.defineProperty(J,pt,{value:gt,enumerable:!0,configurable:!0,writable:!0}):J[pt]=gt,J}function L(J){return function I(J){if(Array.isArray(J))return F(J)}(J)||function R(J){if(typeof Symbol<"u"&&null!=J[Symbol.iterator]||null!=J["@@iterator"])return Array.from(J)}(J)||function M(J,pt){if(J){if("string"==typeof J)return F(J,pt);var gt=Object.prototype.toString.call(J).slice(8,-1);if("Object"===gt&&J.constructor&&(gt=J.constructor.name),"Map"===gt||"Set"===gt)return Array.from(J);if("Arguments"===gt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(gt))return F(J,pt)}}(J)||function B(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(J,pt){(null==pt||pt>J.length)&&(pt=J.length);for(var gt=0,_t=new Array(pt);gt1&&void 0!==arguments[1]?arguments[1]:0,gt=g.select(this),_t=J.attributes,zt=gt.node().attributes;if(zt)for(var Wt=0;Wt0?Cn.children[0].text:"")}null==ce.key&&(zt&&("ellipse"==_n||"polygon"==_n)&&(_n="path"),ce.key=_n+"-"+Qe)}function Oe(ce,Qe){ce.id=(Qe?Qe.id+".":"")+ce.key}function Be(ce){O[ce.id]=ce}function le(ce,Qe){zt&&ce.id in re&&("polygon"==Qe.tag||"ellipse"==Qe.tag||"path"==Qe.tag)&&(Qe.tag!=ce.tag||"polygon"==ce.tag)&&("path"!=Qe.tag&&(ce.alternativeOld=Pe(Qe,ce)),"path"!=ce.tag&&(ce.alternativeNew=Pe(ce,Qe)))}function he(ce,Qe){if(_t&&Qe&&("path"==Qe.tag||ce.alternativeOld&&"path"==ce.alternativeOld.tag)){var _n=(ce.alternativeNew||ce).attributes.d;if(ce.alternativeOld)var Cn=et(ce.alternativeOld);else Cn=et(Qe);(ce.alternativeOld||(ce.alternativeOld={})).points=function ft(J,pt,gt,_t){for(var zt=J,Wt=zt.cloneNode(),Lt=zt.getTotalLength(),ae=(Wt.setAttribute("d",pt),Wt).getTotalLength(),O=[0],re=0,Ce=_t?gt:gt/Math.max(Lt,ae);(re+=Ce)<1;)O.push(re);return O.push(1),O.map(function(je){var Oe=zt.getPointAtLength(je*Lt),Be=Wt.getPointAtLength(je*ae);return[[Oe.x,Oe.y],[Be.x,Be.y]]})}(Cn,_n,Wt,Lt)}}function Fe(ce){var _n=arguments.length>2?arguments[2]:void 0;je(ce,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Oe(ce,_n);var Qn=re[ce.id];Be(ce),le(ce,Qn),he(ce,Qn);var li={};ce.children.forEach(function(jn){var En=jn.tag;("ellipse"==En||"polygon"==En)&&(En="path"),null==li[En]&&(li[En]=0),Fe(jn,li[En]++,ce)})}function Je(ce){(function fn(ce){if(ae&&ce.parent&&"node"==ce.parent.attributes.class&&"title"==ce.tag){if(ce.children.length>0)var Cn=ce.children[0].text;else Cn="";Ce[Cn]=ce.parent}})(ce),function mn(ce){var _n=ce.tag;if(ae&&!re[ce.id]&&ce.parent&&Zt(ce)&&("path"==_n||"polygon"==_n)){if("polygon"==_n){var Qn=ce.parent.children.find(function(Mn){return"path"==Mn.tag});Qn&&(ce.totalLength=Qn.totalLength)}var jn=function ie(J){return function se(J){return"edge"==J.parent.attributes.class?J.parent:J.parent.parent.parent}(J).children.find(function(pt){return"title"==pt.tag})}(ce).children[0],En=jn.text.split("->");2!=En.length&&(En=jn.text.split("--"));var Pn=En[0],Jn=Ce[Pn],bi=ye[Pn];if(bi){if((hn=Jn.children.findIndex(function(Mn,Ti){return"g"==Mn.tag}))>=0){var gn=Jn.children[hn].children.findIndex(function(Mn,Ti){return"a"==Mn.tag});Jn=Jn.children[hn].children[gn]}(hn=bi.children.findIndex(function(Mn,Ti){return"g"==Mn.tag}))>=0&&(gn=bi.children[hn].children.findIndex(function(Ti,cn){return"a"==Ti.tag}),bi=bi.children[hn].children[gn]);for(var ci=Jn.children,hn=0;hn0&&this._queue.shift().call(this)}function Pi(J,pt,gt,_t){var zt=[J*gt-(pt=-pt)*(_t=-_t),J*_t+pt*gt];return[J=zt[0],pt=-(pt=zt[1])]}function be(J,pt,gt,_t,zt,Wt,Lt){var O=V(Tn.call(this,Wt));J.data([O]),at.call(J.node(),O),tn(J,pt,gt,_t,zt,Wt,Lt)}function tn(J,pt,gt,_t,zt,Wt,Lt){var ae=Lt.shortening||0,ye=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],je=_t-pt,Oe=zt-gt,Be=Math.sqrt(je*je+Oe*Oe);if(0==Be)var le=1,he=0;else le=je/Be,he=Oe/Be;if(_t=pt+(Be-ae-10-.1)*le,zt=gt+(Be-ae-10-.1)*he,Wt.URL||Wt.tooltip)var Fe=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Fe.selectWithoutDataPropagation("path"),mn=Fe.selectWithoutDataPropagation("polygon");else fn=J.selectWithoutDataPropagation("path"),mn=J.selectWithoutDataPropagation("polygon");var Je=f.path();Je.moveTo(pt,gt),Je.lineTo(_t,zt),fn.attr("d",Je),_t=pt+(Be-ae-10)*le,zt=gt+(Be-ae-10)*he;for(var $e=0;$e b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(Lt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function In(J,pt,gt,_t,zt,Wt){var ae=V($.call(this,_t,zt));return J.data([ae]),at.call(J.node(),ae),Te(J,pt,gt,zt),this}function Te(J,pt,gt,_t,zt){if(_t.URL||_t.tooltip)var Wt=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Wt=J;var Lt=Wt.selectAll("ellipse,polygon,path,polyline"),ae=J.selectWithoutDataPropagation("text");if(0!=Lt.size()){var O=Lt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=ae.size()&&(O={x:+ae.attr("x"),y:+ae.attr("y"),width:0,height:0,cx:+ae.attr("x"),cy:+ae.attr("y")});return Lt.each(function(re,Ce){var ye=g.select(this);if(ye.attr("cx"))ye.attr("cx",Q(pt)).attr("cy",Q(gt));else if(ye.attr("points")){var je=ye.attr("points").trim();ye.attr("points",function It(Wt,pt,gt){var zt,_t=(zt=Wt.split(" ")).map(function(Lt){return Lt.split(",")});return _t=zt.map(function(Lt){return[Q(+pt+ +Lt.split(",")[0]),Q(+gt+ +Lt.split(",")[1])]}),(zt=_t.map(function(Lt){return Lt.join(",")})).join(" ")}(je,pt-O.cx,gt-O.cy))}else{var Oe=ye.attr("d");ye.attr("d",function $t(J,pt,gt){(Wt=J.split(/[A-Z ]/)).shift();var _t=J.split(/[^[A-Z ]+/),Wt=(Wt.map(function(Lt){return Lt.split(",")}),Wt.map(function(Lt){return[Q(+pt+ +Lt.split(",")[0]),Q(+gt+ +Lt.split(",")[1])]}).map(function(Lt){return Lt.join(",")}));return _t.reduce(function(Lt,ae,O){return Lt.concat(ae,Wt[O])},[]).join("")}(Oe,pt-O.cx,gt-O.cy))}}),0!=ae.size()&&ae.attr("x",Q(+ae.attr("x")+pt-O.cx)).attr("y",Q(+ae.attr("y")+gt-O.cy)),this}function Hn(){if(!this._drawnNode)return this;var J=this._drawnNode.g;return J.empty()||J.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:g.select(null)}function $(J,pt){for(var gt="",_t=0,zt=Object.keys(pt);_t"u"&&(Lt=!1),typeof SharedWorker>"u"&&(ae=!1),Lt||ae){var re=g.selectAll("script").filter(function(){return"javascript/worker"==g.select(this).attr("type")||g.select(this).attr("src")&&g.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==re.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),Lt=!1,ae=!1):(this._vizURL=re.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),Lt=!1,ae=!1))}if(ae){var Ce="data:application/javascript;base64,"+btoa(ct.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Ce),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(Lt){var ye=new Blob([ct.toString()+"("+A.toString()+")()"]),je=window.URL.createObjectURL(ye);this._worker=new Worker(je),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Oe){gt._graphvizVersion=Oe}.bind(this));this._selection=J,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Vt.call(this),J.node().__graphviz__=this}function Ut(J,pt){return g.select(J).graphviz(pt)}Pt.prototype=Ut.prototype=(C(Dt={constructor:Pt,engine:function oe(J){return this._options.engine=J,this},addImage:function pe(J,pt,gt){return this._images.push({path:J,width:pt,height:gt}),this},keyMode:function qt(J){if(!this._keyModes.has(J))throw Error("Illegal keyMode: "+J);if(J!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=J,this},fade:function Ve(J){return this._options.fade=J,this},tweenPaths:function Xe(J){return this._options.tweenPaths=J,this},tweenShapes:function bn(J){return this._options.tweenShapes=J,J&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(J){return this._options.convertEqualSidedPolygons=J,this},tweenPrecision:function Ni(J){return this._options.tweenPrecision=J,this},growEnteringEdges:function fi(J){return this._options.growEnteringEdges=J,this},zoom:function nt(J){return this._options.zoom=J,this._options.zoom&&!this._zoomBehavior?q.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function mt(J){var pt=this._zoomSelection;return J&&(pt=pt.transition(J)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function Et(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function St(J){return this._options.zoomScaleExtent=J,this},zoomTranslateExtent:function Mt(J){return this._options.zoomTranslateExtent=J,this},render:function ue(J){return this._busy?(this._queue.push(this.render.bind(this,J)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=m.transition(this._transitionFactory()),xe.call(this,J)}.bind(this),0):xe.call(this,J),this)},layout:function me(J,pt,gt,_t){if(this._worker)Jt.call(this,{type:"layout",dot:J,engine:pt,options:gt},function(Wt){_t.call(this,Wt.data)});else try{var zt=this.layoutSync(J,"svg",pt,gt);_t.call(this,{type:"done",svg:zt})}catch(Wt){_t.call(this,{type:"error",error:Wt.message})}},dot:function ve(J,pt){var gt=this,_t=this._options.engine,zt=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(J,_t,{images:zt},function(Lt){switch(Lt.type){case"error":if(!gt._onerror)throw Lt.error.message;gt._onerror(Lt.error);break;case"done":Ee.call(this,Lt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,J,pt),this)},data:function dt(){return this._data||null},renderDot:function ke(J,pt){var gt=this;return this.dot(J,function _t(){gt.render(pt)}),this},transition:function we(J){return J instanceof Function?this._transitionFactory=J:this._transition=m.transition(J),this},active:function ze(J){var gt=this._selection.selectWithoutDataPropagation("svg");return 0!=gt.size()?m.active(gt.node(),J):null},options:function Ge(J){if(typeof J>"u")return Object.assign({},this._options);for(var pt=0,gt=Object.keys(J);pt2")(je)+" ",he+=Oe+" ".repeat(Wt-Oe.length),he+=h.format(" >5")(Be-gt)+" ","initEnd"!=Oe&&(he+=h.format(" >5")(Be-_t.start[le])),"dataProcessEnd"==Oe&&(he+=" prepare "+h.format(" >5")(Be-_t.layoutEnd[le])),"renderEnd"==Oe&&O._transition&&(he+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-_t.renderStart[le])),re=O._transition.delay(),Ce=O._transition.duration()),"transitionStart"==Oe){var Fe=Be-_t.renderStart[le];he+=" transition delay "+h.format(" >5")(Be-_t.renderStart[le]),he+=" expected "+h.format(" >5")(re),he+=" diff "+h.format(" >5")(Fe-re)}if("transitionEnd"==Oe){var fn=Be-_t.transitionStart[le];he+=" transition duration "+h.format(" >5")(fn),he+=" expected "+h.format(" >5")(Ce),he+=" diff "+h.format(" >5")(fn-Ce)}console.log(he),gt=Be}:null)},ae=0;ae5&&void 0!==arguments[5]?arguments[5]:{};if((zt=Object.assign({},zt)).style&&zt.style.includes("invis"))var Lt=g.select(null);else{var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ye=V(Tn.call(this,zt));Lt=re.append("g").data([ye]),at.call(Lt.node(),ye),be.call(this,Lt,J,pt,gt,_t,zt,Wt)}return this._drawnEdge={g:Lt,x1:J,y1:pt,x2:gt,y2:_t,attributes:zt},this},updateDrawnEdge:function Qi(J,pt,gt,_t){var zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Lt=this._drawnEdge.g;return zt=Object.assign(this._drawnEdge.attributes,zt),this._drawnEdge.x1=J,this._drawnEdge.y1=pt,this._drawnEdge.x2=gt,this._drawnEdge.y2=_t,!Lt.empty()||zt.style&&zt.style.includes("invis")||(Lt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Lt),Lt.empty()||be.call(this,Lt,J,pt,gt,_t,zt,Wt),this},moveDrawnEdgeEndPoint:function yi(J,pt){var gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var _t=this._drawnEdge.g,zt=this._drawnEdge.x1,Wt=this._drawnEdge.y1,Lt=this._drawnEdge.attributes;return this._drawnEdge.x2=J,this._drawnEdge.y2=pt,tn(_t,zt,Wt,J,pt,Lt,gt),this},insertDrawnEdge:function On(J){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(J);var Wt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Lt=Wt.datum(),ae=this._extractData(pt,Lt.children.length,Wt.datum());return Lt.children.push(ae),X(pt,ae),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Dt,"drawnEdgeSelection",He),C(Dt,"drawnEdgeSelection",He),C(Dt,"drawNode",function Bn(J,pt,gt){var _t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((_t=Object.assign({},_t)).style&&_t.style.includes("invis"))var Wt=g.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=V($.call(this,gt,_t));Wt=O.append("g").data([Ce]),at.call(Wt.node(),Ce),In.call(this,Wt,J,pt,gt,_t,zt)}return this._drawnNode={g:Wt,nodeId:gt,x:J,y:pt,attributes:_t},this}),C(Dt,"updateDrawnNode",function Di(J,pt,gt){var _t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Wt=this._drawnNode.g;return null==gt&&(gt=this._drawnNode.nodeId),_t=Object.assign(this._drawnNode.attributes,_t),this._drawnNode.nodeId=gt,this._drawnNode.x=J,this._drawnNode.y=pt,!Wt.empty()||_t.style&&_t.style.includes("invis")||(Wt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Wt),Wt.empty()||In.call(this,Wt,J,pt,gt,_t,zt),this}),C(Dt,"moveDrawnNode",function Fi(J,pt){if(!this._drawnNode)throw Error("No node has been drawn");var gt=this._drawnNode.g,_t=this._drawnNode.attributes;return this._drawnNode.x=J,this._drawnNode.y=pt,gt.empty()||Te(gt,J,pt,_t),this}),C(Dt,"insertDrawnNode",function sn(J){if(!this._drawnNode)throw Error("No node has been drawn");null==J&&(J=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var gt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(J),gt.URL||gt.tooltip){var Wt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Wt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Lt=Wt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Lt=pt.selectWithoutDataPropagation("text");Lt.text(gt.label||J);var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ce=re.datum(),ye=this._extractData(pt,Ce.children.length,re.datum());return Ce.children.push(ye),X(pt,ye),this._drawnNode=null,this}),C(Dt,"removeDrawnNode",Hn),C(Dt,"removeDrawnNode",Hn),C(Dt,"drawnNodeSelection",z),C(Dt,"drawnNodeSelection",z),C(Dt,"graphvizVersion",function Ue(){return this._graphvizVersion}),Dt),x.selection.prototype.graphviz=function jt(J){var pt=this.node().__graphviz__;return pt?(pt.options(J),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,J),pt},x.selection.prototype.selectWithoutDataPropagation=function Ht(J){return g.select(this.size()>0?this.node().querySelector(J):null)},c.graphviz=Ut,Object.defineProperty(c,"__esModule",{value:!0})}(E,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,E,s)=>{"use strict";s.r(E),s.d(E,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(g+1),f=f.slice(0,g)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var g,f=0,u=l.length;f0)for(var g,C,f=new Array(g),u=0;u{"use strict";s.r(E),s.d(E,{interval:()=>it,now:()=>g,timeout:()=>V,timer:()=>I,timerFlush:()=>R});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(et){setTimeout(et,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(et,st,K){var X=new L;return X.restart(et,st,K),X}function R(){g(),++c;for(var st,et=p;et;)(st=l-et._time)>=0&&et._call.call(null,st),et=et._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{R()}finally{c=0,function B(){for(var et,K,st=p,X=1/0;st;)st._call?(X>st._time&&(X=st._time),et=st,st=st._next):(K=st._next,st._next=null,st=et?et._next=K:p=K);t=et,Y(X)}(),l=0}}function F(){var et=f.now(),st=et-d;st>1e3&&(h-=st,d=et)}function Y(et){c||(x&&(x=clearTimeout(x)),et-l>24?(et<1/0&&(x=setTimeout(M,et-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}function V(et,st,K){var X=new L;return X.restart(W=>{X.stop(),et(W+st)},st=null==st?0:+st,K),X}function it(et,st,K){var X=new L,W=st;return null==st?(X.restart(et,st,K),X):(X._restart=X.restart,X.restart=function(at,H,Q){H=+H,Q=null==Q?g():+Q,X._restart(function nt(q){q+=W,X._restart(nt,W+=H,Q),at(q)},H,Q)},X.restart(et,st,K),X)}L.prototype=I.prototype={constructor:L,restart:function(et,st,K){if("function"!=typeof et)throw new TypeError("callback is not a function");K=(null==K?g():+K)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=et,this._time=K,Y()},stop:function(){this._call&&(this._call=null,this._time=1/0,Y())}}},90268:(w,E,s)=>{"use strict";s.d(E,{M:()=>m,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:m)(p,t)}function m(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,m,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*m+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var m=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,m-1):Math.floor(p*m),d=_[t],l=_[t+1];return c((p-t/m)*m,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(16712);function x(_){var m=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*m);return(0,c.t)((p-t/m)*m,_[(t+m-1)%m],_[t%m],_[(t+1)%m],_[(t+2)%m])}}},35147:(w,E,s)=>{"use strict";s.d(E,{ZP:()=>t,wx:()=>m,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function m(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,E,s)=>{"use strict";s.d(E,{Z:()=>c});const c=x=>()=>x},15629:(w,E,s)=>{"use strict";function c(x,_){var m=new Date;return x=+x,_=+_,function(p){return m.setTime(x*(1-p)+_*p),m}}s.d(E,{Z:()=>c})},46176:(w,E,s)=>{"use strict";s.r(E),s.d(E,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>m.Z,interpolateCubehelix:()=>Ge,interpolateCubehelixLong:()=>an,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>ue,interpolateHclLong:()=>xe,interpolateHsl:()=>B,interpolateHslLong:()=>Y,interpolateHue:()=>l,interpolateLab:()=>se,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>R.ZP,interpolateRgbBasis:()=>R.hD,interpolateRgbBasisClosed:()=>R.YD,interpolateRound:()=>g.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>_e,quantize:()=>un});var c=s(37656),x=s(90268),_=s(16712),m=s(68523),p=s(15629);function t(Tt){var Yt=Tt.length;return function(oe){return Tt[Math.max(0,Math.min(Yt-1,Math.floor(oe*Yt)))]}}var d=s(35147);function l(Tt,Yt){var oe=(0,d.wx)(+Tt,+Yt);return function(pe){var qt=oe(pe);return qt-360*Math.floor(qt/360)}}var h=s(6738),f=s(62681),u=s(84858),g=s(84067),C=s(23096),L=s(75349),I=s(76257),R=s(86811),M=s(52786);function F(Tt){return function(Yt,oe){var pe=Tt((Yt=(0,M.Ym)(Yt)).h,(oe=(0,M.Ym)(oe)).h),qt=(0,d.ZP)(Yt.s,oe.s),Ve=(0,d.ZP)(Yt.l,oe.l),Xe=(0,d.ZP)(Yt.opacity,oe.opacity);return function(bn){return Yt.h=pe(bn),Yt.s=qt(bn),Yt.l=Ve(bn),Yt.opacity=Xe(bn),Yt+""}}}const B=F(d.wx);var Y=F(d.ZP),V=s(68884);const it=Math.PI/180,et=180/Math.PI,K=.96422,W=.82521,at=4/29,H=6/29,Q=3*H*H;function q(Tt){if(Tt instanceof mt)return new mt(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof Ct)return Zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ve,Xe,Yt=Qt(Tt.r),oe=Qt(Tt.g),pe=Qt(Tt.b),qt=St((.2225045*Yt+.7168786*oe+.0606169*pe)/1);return Yt===oe&&oe===pe?Ve=Xe=qt:(Ve=St((.4360747*Yt+.3850649*oe+.1430804*pe)/K),Xe=St((.0139322*Yt+.0971045*oe+.7141733*pe)/W)),new mt(116*qt-16,500*(Ve-qt),200*(qt-Xe),Tt.opacity)}function D(Tt,Yt,oe,pe){return 1===arguments.length?q(Tt):new mt(Tt,Yt,oe,pe??1)}function mt(Tt,Yt,oe,pe){this.l=+Tt,this.a=+Yt,this.b=+oe,this.opacity=+pe}function St(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/Q+at}function Mt(Tt){return Tt>H?Tt*Tt*Tt:Q*(Tt-at)}function Et(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function Nt(Tt){if(Tt instanceof Ct)return new Ct(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof mt||(Tt=q(Tt)),0===Tt.a&&0===Tt.b)return new Ct(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(m){return x*(1-m)+_*m}}s.d(E,{Z:()=>c})},62681:(w,E,s)=>{"use strict";function c(_,m){m||(m=[]);var d,p=_?Math.min(m.length,_.length):0,t=m.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(37656);function x(_,m){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===m||"object"!=typeof m)&&(m={}),m)d in _?p[d]=(0,c.Z)(_[d],m[d]):t[d]=m[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,E,s)=>{"use strict";s.d(E,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),m=s(35147);const p=function h(f){var u=(0,m.yi)(f);function g(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),R=u(C.g,L.g),M=u(C.b,L.b),F=(0,m.ZP)(C.opacity,L.opacity);return function(B){return C.r=I(B),C.g=R(B),C.b=M(B),C.opacity=F(B),C+""}}return g.gamma=h,g}(1);function t(h){return function(f){var I,R,u=f.length,g=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(m){return Math.round(x*(1-m)+_*m)}}s.d(E,{Z:()=>c})},23096:(w,E,s)=>{"use strict";s.d(E,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,g,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),L[C]?L[C]+=g:L[++C]=g),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(E,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function m(u,g,C,L,I,R){var M,F,B;return(M=Math.sqrt(u*u+g*g))&&(u/=M,g/=M),(B=u*C+g*L)&&(C-=u*B,L-=g*B),(F=Math.sqrt(C*C+L*L))&&(C/=F,L/=F,B/=F),u*L180?V+=360:V-Y>180&&(Y+=360),et.push({i:it.push(I(it)+"rotate(",null,L)-2,x:(0,c.Z)(Y,V)})):V&&it.push(I(it)+"rotate("+V+L)}(Y.rotate,V.rotate,it,et),function F(Y,V,it,et){Y!==V?et.push({i:it.push(I(it)+"skewX(",null,L)-2,x:(0,c.Z)(Y,V)}):V&&it.push(I(it)+"skewX("+V+L)}(Y.skewX,V.skewX,it,et),function B(Y,V,it,et,st,K){if(Y!==it||V!==et){var X=st.push(I(st)+"scale(",null,",",null,")");K.push({i:X-4,x:(0,c.Z)(Y,it)},{i:X-2,x:(0,c.Z)(V,et)})}else(1!==it||1!==et)&&st.push(I(st)+"scale("+it+","+et+")")}(Y.scaleX,Y.scaleY,V.scaleX,V.scaleY,it,et),Y=V=null,function(st){for(var W,K=-1,X=et.length;++K{"use strict";s.d(E,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),m=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,g){var L,C=typeof g;return null==g||"boolean"===C?(0,l.Z)(g):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(g))?(g=L,x.ZP):d.Z:g instanceof c.ZP?x.ZP:g instanceof Date?m.Z:(0,h.v)(g)?h.Z:Array.isArray(g)?_.M:"function"!=typeof g.valueOf&&"function"!=typeof g.toString||isNaN(g)?t.Z:p.Z)(u,g)}},76257:(w,E,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(E,{Z:()=>p});const p=function t(d,l,h){function f(u,g){var it,et,C=u[0],L=u[1],I=u[2],F=g[2],B=g[0]-C,Y=g[1]-L,V=B*B+Y*Y;if(V<1e-12)et=Math.log(F/I)/d,it=function(H){return[C+H*B,L+H*Y,I*Math.exp(d*H*et)]};else{var st=Math.sqrt(V),K=(F*F-I*I+h*V)/(2*I*l*st),X=(F*F-I*I-h*V)/(2*F*l*st),W=Math.log(Math.sqrt(K*K+1)-K),at=Math.log(Math.sqrt(X*X+1)-X);et=(at-W)/d,it=function(H){var Q=H*et,nt=x(W),q=I/(l*st)*(nt*function m(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*Q+W)-function _(t){return((t=Math.exp(t))-1/t)/2}(W));return[C+q*B,L+q*Y,I*nt/x(d*Q+W)]}}return it.duration=1e3*et*d/Math.SQRT2,it}return f.rho=function(u){var g=Math.max(.001,+u),C=g*g;return t(g,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,E,s)=>{"use strict";s.r(E),s.d(E,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,m=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,g,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,f,u,g){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),R=(u=+u)-(h=+h),M=C-l,F=L-h,B=M*M+F*F;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(B>_)if(Math.abs(F*I-R*M)>_&&g){var Y=f-C,V=u-L,it=I*I+R*R,et=Y*Y+V*V,st=Math.sqrt(it),K=Math.sqrt(B),X=g*Math.tan((c-Math.acos((it+B-et)/(2*st*K)))/2),W=X/K,at=X/st;Math.abs(W-1)>_&&(this._+="L"+(l+W*M)+","+(h+W*F)),this._+="A"+g+","+g+",0,0,"+ +(F*Y>M*V)+","+(this._x1=l+at*I)+","+(this._y1=h+at*R)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,g,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),R=l+L,M=h+I,F=1^C,B=C?u-g:g-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+R+","+M:(Math.abs(this._x1-R)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+R+","+M),f&&(B<0&&(B=B%x+x),B>m?this._+="A"+f+","+f+",0,1,"+F+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+F+","+(this._x1=R)+","+(this._y1=M):B>_&&(this._+="A"+f+","+f+",0,"+ +(B>=c)+","+F+","+(this._x1=l+f*Math.cos(g))+","+(this._y1=h+f*Math.sin(g))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,E,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(E,{Z:()=>c})},7500:(w,E,s)=>{"use strict";s.d(E,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?m:_)(d)}},68557:(w,E,s)=>{"use strict";s.r(E),s.d(E,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>R.Z,selectorAll:()=>M.Z,style:()=>F.S,window:()=>B.Z});var c=s(7500),x=s(52016);function _(Y){return(0,x.Z)((0,c.Z)(Y).call(document.documentElement))}var m=0;function p(){return new t}function t(){this._="@"+(++m).toString(36)}t.prototype=p.prototype={constructor:t,get:function(Y){for(var V=this._;!(V in Y);)if(!(Y=Y.parentNode))return;return Y[V]},set:function(Y,V){return Y[this._]=V},remove:function(Y){return this._ in Y&&delete Y[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function g(Y,V){return Y.target&&(Y=(0,u.Z)(Y),void 0===V&&(V=Y.currentTarget),Y=Y.touches||[Y]),Array.from(Y,it=>(0,f.Z)(it,V))}var C=s(34638),L=s(37853);function I(Y){return"string"==typeof Y?new L.Y1([document.querySelectorAll(Y)],[document.documentElement]):new L.Y1([null==Y?[]:(0,C.Z)(Y)],L.Jz)}var R=s(29742),M=s(32037),F=s(24476),B=s(2442)},97905:(w,E,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(m){return m.matches(_)}}s.d(E,{P:()=>x,Z:()=>c})},36175:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(53517);function x(_){var m=_+="",p=m.indexOf(":");return p>=0&&"xmlns"!==(m=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(m)?{space:c.Z[m],local:_}:_}},53517:(w,E,s)=>{"use strict";s.d(E,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(75819);function x(_,m){if(_=(0,c.Z)(_),void 0===m&&(m=_.currentTarget),m){var p=m.ownerSVGElement||m;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(m.getScreenCTM().inverse())).x,t.y]}if(m.getBoundingClientRect){var d=m.getBoundingClientRect();return[_.clientX-d.left-m.clientLeft,_.clientY-d.top-m.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,E,s)=>{"use strict";s.d(E,{Y1:()=>Te,ZP:()=>sn,Jz:()=>In});var c=s(29742),_=s(34638),m=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function B(z,$){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=$}function Y(z){return function(){return z}}function V(z,$,ct,A,bt,Dt){for(var Ut,Pt=0,jt=$.length,Ht=Dt.length;Pt$?1:z>=$?0:NaN}B.prototype={constructor:B,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,$){return this._parent.insertBefore(z,$)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Mt=s(36175);function Et(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function Nt(z,$){return function(){this.setAttribute(z,$)}}function ft(z,$){return function(){this.setAttributeNS(z.space,z.local,$)}}function dt(z,$){return function(){var ct=$.apply(this,arguments);null==ct?this.removeAttribute(z):this.setAttribute(z,ct)}}function Ct(z,$){return function(){var ct=$.apply(this,arguments);null==ct?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,ct)}}var se=s(24476);function ie(z){return function(){delete this[z]}}function ue(z,$){return function(){this[z]=$}}function xe(z,$){return function(){var ct=$.apply(this,arguments);null==ct?delete this[z]:this[z]=ct}}function Pe(z){return z.trim().split(/^|\s+/)}function It(z){return z.classList||new $t(z)}function $t(z){this._node=z,this._names=Pe(z.getAttribute("class")||"")}function Vt(z,$){for(var ct=It(z),A=-1,bt=$.length;++A=0&&(this._names.splice($,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var Xe=s(7500);function oi(){return null}function fi(){var z=this.parentNode;z&&z.removeChild(this)}function Ei(){var z=this.cloneNode(!1),$=this.parentNode;return $?$.insertBefore(z,this.nextSibling):z}function er(){var z=this.cloneNode(!0),$=this.parentNode;return $?$.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function($){var ct="",A=$.indexOf(".");return A>=0&&(ct=$.slice(A+1),$=$.slice(0,A)),{type:$,name:ct}})}function be(z){return function(){var $=this.__on;if($){for(var Dt,ct=0,A=-1,bt=$.length;ct=re&&(re=O+1);!(ye=Lt[re])&&++re=0;)(Pt=A[bt])&&(Dt&&4^Pt.compareDocumentPosition(Dt)&&Dt.parentNode.insertBefore(Pt,Dt),Dt=Pt);return this},sort:function H(z){function $(pt,gt){return pt&>?z(pt.__data__,gt.__data__):!pt-!gt}z||(z=Q);for(var ct=this._groups,A=ct.length,bt=new Array(A),Dt=0;Dt1?this.each((null==$?ie:"function"==typeof $?xe:ue)(z,$)):this.node()[z]},classed:function ke(z,$){var ct=Pe(z+"");if(arguments.length<2){for(var A=It(this.node()),bt=-1,Dt=ct.length;++bt{"use strict";s.d(E,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function m(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?m:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,E,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(E,{Z:()=>x})},32037:(w,E,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(E,{Z:()=>x})},75819:(w,E,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(E,{Z:()=>c})},2442:(w,E,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(E,{Z:()=>c})},73339:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(49194);function x(_,m,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+m)},m=null==m?0:+m,p),t}},49194:(w,E,s)=>{"use strict";s.d(E,{B7:()=>L,HT:()=>I,R8:()=>R,zO:()=>g});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(V){setTimeout(V,17)};function g(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(V,it,et){var st=new L;return st.restart(V,it,et),st}function R(){g(),++c;for(var it,V=p;V;)(it=l-V._time)>=0&&V._call.call(null,it),V=V._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{R()}finally{c=0,function B(){for(var V,et,it=p,st=1/0;it;)it._call?(st>it._time&&(st=it._time),V=it,it=it._next):(et=it._next,it._next=null,it=V?V._next=et:p=et);t=V,Y(st)}(),l=0}}function F(){var V=f.now(),it=V-d;it>1e3&&(h-=it,d=V)}function Y(V){c||(x&&(x=clearTimeout(x)),V-l>24?(V<1/0&&(x=setTimeout(M,V-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(V,it,et){if("function"!=typeof V)throw new TypeError("callback is not a function");et=(null==et?g():+et)+(null==it?0:+it),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=V,this._time=et,Y()},stop:function(){this._call&&(this._call=null,this._time=1/0,Y())}}},18429:(w,E,s)=>{"use strict";s.r(E),s.d(E,{active:()=>sn,interrupt:()=>B,transition:()=>He});var c=s(37853),x=s(25922),_=s(49194),m=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,$,ct,A,bt,Dt){var Pt=z.__transition;if(Pt){if(ct in Pt)return}else z.__transition={};!function F(z,$,ct){var bt,A=z.__transition;function Pt(Ht){var J,pt,gt,_t;if(1!==ct.state)return jt();for(J in A)if((_t=A[J]).name===ct.name){if(3===_t.state)return(0,m.Z)(Pt);4===_t.state?(_t.state=6,_t.timer.stop(),_t.on.call("interrupt",z,z.__data__,_t.index,_t.group),delete A[J]):+J<$&&(_t.state=6,_t.timer.stop(),_t.on.call("cancel",z,z.__data__,_t.index,_t.group),delete A[J])}if((0,m.Z)(function(){3===ct.state&&(ct.state=4,ct.timer.restart(Ut,ct.delay,ct.time),Ut(Ht))}),ct.state=2,ct.on.call("start",z,z.__data__,ct.index,ct.group),2===ct.state){for(ct.state=3,bt=new Array(gt=ct.tween.length),J=0,pt=-1;J0)throw new Error("too late; already scheduled");return ct}function R(z,$){var ct=M(z,$);if(ct.state>3)throw new Error("too late; already running");return ct}function M(z,$){var ct=z.__transition;if(!ct||!(ct=ct[$]))throw new Error("transition not found");return ct}function B(z,$){var A,bt,Pt,ct=z.__transition,Dt=!0;if(ct){for(Pt in $=null==$?null:$+"",ct)(A=ct[Pt]).name===$?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete ct[Pt]):Dt=!1;Dt&&delete z.__transition}}var V=s(75349),it=s(36175);function et(z,$){var ct,A;return function(){var bt=R(this,z),Dt=bt.tween;if(Dt!==ct)for(var Pt=0,Ut=(A=ct=Dt).length;Pt=0&&($=$.slice(0,ct)),!$||"start"===$})}($)?I:R;return function(){var Pt=Dt(this,z),Ut=Pt.on;Ut!==A&&(bt=(A=Ut).copy()).on($,ct),Pt.on=bt}}var an=s(29742),un=s(32037),Yt=c.ZP.prototype.constructor,pe=s(24476);function Ve(z){return function(){this.style.removeProperty(z)}}function fi(z,$,ct){return function(A){this.style.setProperty(z,$.call(this,A),ct)}}function mi(z,$,ct){var A,bt;function Dt(){var Pt=$.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&fi(z,Pt,ct)),A}return Dt._value=$,Dt}function gi(z){return function($){this.textContent=z.call(this,$)}}function Qi(z){var $,ct;function A(){var bt=z.apply(this,arguments);return bt!==ct&&($=(ct=bt)&&gi(bt)),$}return A._value=z,A}var ji=0;function On(z,$,ct,A){this._groups=z,this._parents=$,this._name=ct,this._id=A}function He(z){return(0,c.ZP)().transition(z)}function Tn(){return++ji}var Bn=c.ZP.prototype;On.prototype=He.prototype={constructor:On,select:function _e(z){var $=this._name,ct=this._id;"function"!=typeof z&&(z=(0,an.Z)(z));for(var A=this._groups,bt=A.length,Dt=new Array(bt),Pt=0;Pt1&&A.name===$)return new On([[z]],Hn,$,+bt);return null}},46041:(w,E,s)=>{"use strict";s.r(E),s.d(E,{zoom:()=>Y,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),m=s(52016),p=s(29132),t=s(18429);const d=V=>()=>V;function l(V,{sourceEvent:it,target:et,transform:st,dispatch:K}){Object.defineProperties(this,{type:{value:V,enumerable:!0,configurable:!0},sourceEvent:{value:it,enumerable:!0,configurable:!0},target:{value:et,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:K}})}function h(V,it,et){this.k=V,this.x=it,this.y=et}h.prototype={constructor:h,scale:function(V){return 1===V?this:new h(this.k*V,this.x,this.y)},translate:function(V,it){return 0===V&0===it?this:new h(this.k,this.x+this.k*V,this.y+this.k*it)},apply:function(V){return[V[0]*this.k+this.x,V[1]*this.k+this.y]},applyX:function(V){return V*this.k+this.x},applyY:function(V){return V*this.k+this.y},invert:function(V){return[(V[0]-this.x)/this.k,(V[1]-this.y)/this.k]},invertX:function(V){return(V-this.x)/this.k},invertY:function(V){return(V-this.y)/this.k},rescaleX:function(V){return V.copy().domain(V.range().map(this.invertX,this).map(V.invert,V))},rescaleY:function(V){return V.copy().domain(V.range().map(this.invertY,this).map(V.invert,V))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(V){for(;!V.__zoom;)if(!(V=V.parentNode))return f;return V.__zoom}function g(V){V.stopImmediatePropagation()}function C(V){V.preventDefault(),V.stopImmediatePropagation()}function L(V){return!(V.ctrlKey&&"wheel"!==V.type||V.button)}function I(){var V=this;return V instanceof SVGElement?(V=V.ownerSVGElement||V).hasAttribute("viewBox")?[[(V=V.viewBox.baseVal).x,V.y],[V.x+V.width,V.y+V.height]]:[[0,0],[V.width.baseVal.value,V.height.baseVal.value]]:[[0,0],[V.clientWidth,V.clientHeight]]}function R(){return this.__zoom||f}function M(V){return-V.deltaY*(1===V.deltaMode?.05:V.deltaMode?1:.002)*(V.ctrlKey?10:1)}function F(){return navigator.maxTouchPoints||"ontouchstart"in this}function B(V,it,et){var st=V.invertX(it[0][0])-et[0][0],K=V.invertX(it[1][0])-et[1][0],X=V.invertY(it[0][1])-et[0][1],W=V.invertY(it[1][1])-et[1][1];return V.translate(K>st?(st+K)/2:Math.min(0,st)||Math.max(0,K),W>X?(X+W)/2:Math.min(0,X)||Math.max(0,W))}function Y(){var nt,q,U,V=L,it=I,et=B,st=M,K=F,X=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],at=250,H=_.Z,Q=(0,c.Z)("start","zoom","end"),D=500,St=0,Mt=10;function Et(It){It.property("__zoom",R).on("wheel.zoom",se).on("mousedown.zoom",ie).on("dblclick.zoom",ue).filter(K).on("touchstart.zoom",xe).on("touchmove.zoom",Ue).on("touchend.zoom touchcancel.zoom",Pe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(It,$t){return($t=Math.max(X[0],Math.min(X[1],$t)))===It.k?It:new h($t,It.x,It.y)}function Nt(It,$t,Vt){var Jt=$t[0]-Vt[0]*It.k,me=$t[1]-Vt[1]*It.k;return Jt===It.x&&me===It.y?It:new h(It.k,Jt,me)}function ft(It){return[(+It[0][0]+ +It[1][0])/2,(+It[0][1]+ +It[1][1])/2]}function dt(It,$t,Vt,Jt){It.on("start.zoom",function(){Ct(this,arguments).event(Jt).start()}).on("interrupt.zoom end.zoom",function(){Ct(this,arguments).event(Jt).end()}).tween("zoom",function(){var me=this,ve=arguments,Ee=Ct(me,ve).event(Jt),ke=it.apply(me,ve),we=null==Vt?ft(ke):"function"==typeof Vt?Vt.apply(me,ve):Vt,ze=Math.max(ke[1][0]-ke[0][0],ke[1][1]-ke[0][1]),Ge=me.__zoom,an="function"==typeof $t?$t.apply(me,ve):$t,_e=H(Ge.invert(we).concat(ze/Ge.k),an.invert(we).concat(ze/an.k));return function(un){if(1===un)un=an;else{var Tt=_e(un),Yt=ze/Tt[2];un=new h(Yt,we[0]-Tt[0]*Yt,we[1]-Tt[1]*Yt)}Ee.zoom(null,un)}})}function Ct(It,$t,Vt){return!Vt&&It.__zooming||new Zt(It,$t)}function Zt(It,$t){this.that=It,this.args=$t,this.active=0,this.sourceEvent=null,this.extent=it.apply(It,$t),this.taps=0}function se(It,...$t){if(V.apply(this,arguments)){var Vt=Ct(this,$t).event(It),Jt=this.__zoom,me=Math.max(X[0],Math.min(X[1],Jt.k*Math.pow(2,st.apply(this,arguments)))),ve=(0,p.Z)(It);if(Vt.wheel)(Vt.mouse[0][0]!==ve[0]||Vt.mouse[0][1]!==ve[1])&&(Vt.mouse[1]=Jt.invert(Vt.mouse[0]=ve)),clearTimeout(Vt.wheel);else{if(Jt.k===me)return;Vt.mouse=[ve,Jt.invert(ve)],(0,t.interrupt)(this),Vt.start()}C(It),Vt.wheel=setTimeout(Ee,150),Vt.zoom("mouse",et(Nt(Qt(Jt,me),Vt.mouse[0],Vt.mouse[1]),Vt.extent,W))}function Ee(){Vt.wheel=null,Vt.end()}}function ie(It,...$t){if(!U&&V.apply(this,arguments)){var Vt=Ct(this,$t,!0).event(It),Jt=(0,m.Z)(It.view).on("mousemove.zoom",we,!0).on("mouseup.zoom",ze,!0),me=(0,p.Z)(It,ve),ve=It.currentTarget,Ee=It.clientX,ke=It.clientY;(0,x.Z)(It.view),g(It),Vt.mouse=[me,this.__zoom.invert(me)],(0,t.interrupt)(this),Vt.start()}function we(Ge){if(C(Ge),!Vt.moved){var an=Ge.clientX-Ee,_e=Ge.clientY-ke;Vt.moved=an*an+_e*_e>St}Vt.event(Ge).zoom("mouse",et(Nt(Vt.that.__zoom,Vt.mouse[0]=(0,p.Z)(Ge,ve),Vt.mouse[1]),Vt.extent,W))}function ze(Ge){Jt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ge.view,Vt.moved),C(Ge),Vt.event(Ge).end()}}function ue(It,...$t){if(V.apply(this,arguments)){var Vt=this.__zoom,Jt=(0,p.Z)(It.changedTouches?It.changedTouches[0]:It,this),me=Vt.invert(Jt),ve=Vt.k*(It.shiftKey?.5:2),Ee=et(Nt(Qt(Vt,ve),Jt,me),it.apply(this,$t),W);C(It),at>0?(0,m.Z)(this).transition().duration(at).call(dt,Ee,Jt,It):(0,m.Z)(this).call(Et.transform,Ee,Jt,It)}}function xe(It,...$t){if(V.apply(this,arguments)){var ve,Ee,ke,we,Vt=It.touches,Jt=Vt.length,me=Ct(this,$t,It.changedTouches.length===Jt).event(It);for(g(It),Ee=0;Ee{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,E,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function m(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?d.push(g):f(g.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,E,s)=>{var c=s(45760),x=s(11510);function m(p,t,d,l,h,f){var g=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),g&&p.setEdge(g,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function m(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&m(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,d),c.has(g,"y")&&d(g)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var g=f.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(f),m(f))}}},3226:w=>{function E(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=E,E.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},E.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},E.prototype.toString=function(){for(var x=[],_=this._sentinel,m=_._prev;m!==_;)x.push(JSON.stringify(m,c)),m=m._prev;return"["+x.join(", ")+"]"}},71914:(w,E,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function m(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return d.setEdge(u,g,{style:"invis"}),g})}),d}}},36456:(w,E,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,E,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var g=function l(f,u){var g=new x,C=0,L=0;c.forEach(f.nodes(),function(M){g.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var F=g.edge(M.v,M.w)||0,B=u(M);g.setEdge(M.v,M.w,F+B),L=Math.max(L,g.node(M.v).out+=B),C=Math.max(C,g.node(M.w).in+=B)});var I=c.range(L+C+3).map(function(){return new _}),R=C+1;return c.forEach(g.nodes(),function(M){h(I,R,g.node(M))}),{graph:g,buckets:I,zeroIdx:R}}(f,u||m),C=function t(f,u,g){for(var R,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;R=I.dequeue();)d(f,u,g,R);for(;R=L.dequeue();)d(f,u,g,R);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(R=u[M].dequeue()){C=C.concat(d(f,u,g,R,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var m=c.constant(1);function d(f,u,g,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(R){var M=f.edge(R),F=f.node(R.v);L&&I.push({v:R.v,w:R.w}),F.out-=M,h(u,g,F)}),c.forEach(f.outEdges(C.v),function(R){var M=f.edge(R),B=f.node(R.w);B.in-=M,h(u,g,B)}),f.removeNode(C.v),I}function h(f,u,g){g.out?g.in?f[g.out-g.in+u].enqueue(g):f[f.length-1].enqueue(g):f[0].enqueue(g)}},14850:(w,E,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),m=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),g=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(ft,dt){var Ct=dt&&dt.debugTiming?C.time:C.notime;Ct("layout",function(){var Zt=Ct(" buildLayoutGraph",function(){return function X(ft){var dt=new L({multigraph:!0,compound:!0}),Ct=Nt(ft.graph());return dt.setGraph(c.merge({},B,Qt(Ct,F),c.pick(Ct,Y))),c.forEach(ft.nodes(),function(Zt){var se=Nt(ft.node(Zt));dt.setNode(Zt,c.defaults(Qt(se,V),it)),dt.setParent(Zt,ft.parent(Zt))}),c.forEach(ft.edges(),function(Zt){var se=Nt(ft.edge(Zt));dt.setEdge(Zt,c.merge({},st,Qt(se,et),c.pick(se,K)))}),dt}(ft)});Ct(" runLayout",function(){!function R(ft,dt){dt(" makeSpaceForEdgeLabels",function(){!function W(ft){var dt=ft.graph();dt.ranksep/=2,c.forEach(ft.edges(),function(Ct){var Zt=ft.edge(Ct);Zt.minlen*=2,"c"!==Zt.labelpos.toLowerCase()&&("TB"===dt.rankdir||"BT"===dt.rankdir?Zt.width+=Zt.labeloffset:Zt.height+=Zt.labeloffset)})}(ft)}),dt(" removeSelfEdges",function(){!function St(ft){c.forEach(ft.edges(),function(dt){if(dt.v===dt.w){var Ct=ft.node(dt.v);Ct.selfEdges||(Ct.selfEdges=[]),Ct.selfEdges.push({e:dt,label:ft.edge(dt)}),ft.removeEdge(dt)}})}(ft)}),dt(" acyclic",function(){x.run(ft)}),dt(" nestingGraph.run",function(){l.run(ft)}),dt(" rank",function(){m(C.asNonCompoundGraph(ft))}),dt(" injectEdgeLabelProxies",function(){!function at(ft){c.forEach(ft.edges(),function(dt){var Ct=ft.edge(dt);if(Ct.width&&Ct.height){var Zt=ft.node(dt.v),se=ft.node(dt.w);C.addDummyNode(ft,"edge-proxy",{rank:(se.rank-Zt.rank)/2+Zt.rank,e:dt},"_ep")}})}(ft)}),dt(" removeEmptyRanks",function(){d(ft)}),dt(" nestingGraph.cleanup",function(){l.cleanup(ft)}),dt(" normalizeRanks",function(){p(ft)}),dt(" assignRankMinMax",function(){!function H(ft){var dt=0;c.forEach(ft.nodes(),function(Ct){var Zt=ft.node(Ct);Zt.borderTop&&(Zt.minRank=ft.node(Zt.borderTop).rank,Zt.maxRank=ft.node(Zt.borderBottom).rank,dt=c.max(dt,Zt.maxRank))}),ft.graph().maxRank=dt}(ft)}),dt(" removeEdgeLabelProxies",function(){!function Q(ft){c.forEach(ft.nodes(),function(dt){var Ct=ft.node(dt);"edge-proxy"===Ct.dummy&&(ft.edge(Ct.e).labelRank=Ct.rank,ft.removeNode(dt))})}(ft)}),dt(" normalize.run",function(){_.run(ft)}),dt(" parentDummyChains",function(){t(ft)}),dt(" addBorderSegments",function(){h(ft)}),dt(" order",function(){u(ft)}),dt(" insertSelfEdges",function(){!function Mt(ft){var dt=C.buildLayerMatrix(ft);c.forEach(dt,function(Ct){var Zt=0;c.forEach(Ct,function(se,ie){var ue=ft.node(se);ue.order=ie+Zt,c.forEach(ue.selfEdges,function(xe){C.addDummyNode(ft,"selfedge",{width:xe.label.width,height:xe.label.height,rank:ue.rank,order:ie+ ++Zt,e:xe.e,label:xe.label},"_se")}),delete ue.selfEdges})})}(ft)}),dt(" adjustCoordinateSystem",function(){f.adjust(ft)}),dt(" position",function(){g(ft)}),dt(" positionSelfEdges",function(){!function Et(ft){c.forEach(ft.nodes(),function(dt){var Ct=ft.node(dt);if("selfedge"===Ct.dummy){var Zt=ft.node(Ct.e.v),se=Zt.x+Zt.width/2,ie=Zt.y,ue=Ct.x-se,xe=Zt.height/2;ft.setEdge(Ct.e,Ct.label),ft.removeNode(dt),Ct.label.points=[{x:se+2*ue/3,y:ie-xe},{x:se+5*ue/6,y:ie-xe},{x:se+ue,y:ie},{x:se+5*ue/6,y:ie+xe},{x:se+2*ue/3,y:ie+xe}],Ct.label.x=Ct.x,Ct.label.y=Ct.y}})}(ft)}),dt(" removeBorderNodes",function(){!function mt(ft){c.forEach(ft.nodes(),function(dt){if(ft.children(dt).length){var Ct=ft.node(dt),Zt=ft.node(Ct.borderTop),se=ft.node(Ct.borderBottom),ie=ft.node(c.last(Ct.borderLeft)),ue=ft.node(c.last(Ct.borderRight));Ct.width=Math.abs(ue.x-ie.x),Ct.height=Math.abs(se.y-Zt.y),Ct.x=ie.x+Ct.width/2,Ct.y=Zt.y+Ct.height/2}}),c.forEach(ft.nodes(),function(dt){"border"===ft.node(dt).dummy&&ft.removeNode(dt)})}(ft)}),dt(" normalize.undo",function(){_.undo(ft)}),dt(" fixupEdgeLabelCoords",function(){!function U(ft){c.forEach(ft.edges(),function(dt){var Ct=ft.edge(dt);if(c.has(Ct,"x"))switch(("l"===Ct.labelpos||"r"===Ct.labelpos)&&(Ct.width-=Ct.labeloffset),Ct.labelpos){case"l":Ct.x-=Ct.width/2+Ct.labeloffset;break;case"r":Ct.x+=Ct.width/2+Ct.labeloffset}})}(ft)}),dt(" undoCoordinateSystem",function(){f.undo(ft)}),dt(" translateGraph",function(){!function nt(ft){var dt=Number.POSITIVE_INFINITY,Ct=0,Zt=Number.POSITIVE_INFINITY,se=0,ie=ft.graph(),ue=ie.marginx||0,xe=ie.marginy||0;function Ue(Pe){var It=Pe.x,$t=Pe.y,Vt=Pe.width,Jt=Pe.height;dt=Math.min(dt,It-Vt/2),Ct=Math.max(Ct,It+Vt/2),Zt=Math.min(Zt,$t-Jt/2),se=Math.max(se,$t+Jt/2)}c.forEach(ft.nodes(),function(Pe){Ue(ft.node(Pe))}),c.forEach(ft.edges(),function(Pe){var It=ft.edge(Pe);c.has(It,"x")&&Ue(It)}),dt-=ue,Zt-=xe,c.forEach(ft.nodes(),function(Pe){var It=ft.node(Pe);It.x-=dt,It.y-=Zt}),c.forEach(ft.edges(),function(Pe){var It=ft.edge(Pe);c.forEach(It.points,function($t){$t.x-=dt,$t.y-=Zt}),c.has(It,"x")&&(It.x-=dt),c.has(It,"y")&&(It.y-=Zt)}),ie.width=Ct-dt+ue,ie.height=se-Zt+xe}(ft)}),dt(" assignNodeIntersects",function(){!function q(ft){c.forEach(ft.edges(),function(dt){var ie,ue,Ct=ft.edge(dt),Zt=ft.node(dt.v),se=ft.node(dt.w);Ct.points?(ie=Ct.points[0],ue=Ct.points[Ct.points.length-1]):(Ct.points=[],ie=se,ue=Zt),Ct.points.unshift(C.intersectRect(Zt,ie)),Ct.points.push(C.intersectRect(se,ue))})}(ft)}),dt(" reversePoints",function(){!function D(ft){c.forEach(ft.edges(),function(dt){var Ct=ft.edge(dt);Ct.reversed&&Ct.points.reverse()})}(ft)}),dt(" acyclic.undo",function(){x.undo(ft)})}(Zt,Ct)}),Ct(" updateInputGraph",function(){!function M(ft,dt){c.forEach(ft.nodes(),function(Ct){var Zt=ft.node(Ct),se=dt.node(Ct);Zt&&(Zt.x=se.x,Zt.y=se.y,dt.children(Ct).length&&(Zt.width=se.width,Zt.height=se.height))}),c.forEach(ft.edges(),function(Ct){var Zt=ft.edge(Ct),se=dt.edge(Ct);Zt.points=se.points,c.has(se,"x")&&(Zt.x=se.x,Zt.y=se.y)}),ft.graph().width=dt.graph().width,ft.graph().height=dt.graph().height}(ft,Zt)})})};var F=["nodesep","edgesep","ranksep","marginx","marginy"],B={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Y=["acyclicer","ranker","rankdir","align"],V=["width","height"],it={width:0,height:0},et=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function Qt(ft,dt){return c.mapValues(c.pick(ft,dt),Number)}function Nt(ft){var dt={};return c.forEach(ft,function(Ct,Zt){dt[Zt.toLowerCase()]=Ct}),dt}},45760:(w,E,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,E,s)=>{var c=s(45760),x=s(11510);function m(l,h,f,u,g,C,L){var I=l.children(L);if(I.length){var R=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),F=l.node(L);l.setParent(R,L),F.borderTop=R,l.setParent(M,L),F.borderBottom=M,c.forEach(I,function(B){m(l,h,f,u,g,C,B);var Y=l.node(B),V=Y.borderTop?Y.borderTop:B,it=Y.borderBottom?Y.borderBottom:B,et=Y.borderTop?u:2*u,st=V!==it?1:g-C[L]+1;l.setEdge(R,V,{weight:et,minlen:st,nestingEdge:!0}),l.setEdge(it,M,{weight:et,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,R,{weight:0,minlen:g+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){m(l,h,g,C,u,f,L)}),l.graph().nodeRankFactor=g},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,E,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function m(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,g=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,R,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,m,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void m.setEdge(u,h);h=f}})}},81323:(w,E,s)=>{var c=s(45760);w.exports=function x(_,m){return c.map(m,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,E,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function m(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),g=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,g||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),R=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+R})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,E,s)=>{"use strict";var c=s(45760);function _(m,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(m.outEdges(C),function(L){return{pos:d[L.w],weight:m.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;g+=C.weight*I})),g}w.exports=function x(m,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),m=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(R){return p(C,R,I)})}function u(C,L){var I=new d;c.forEach(C,function(R){var M=R.graph().root,F=m(R,M,I,L);c.forEach(F.vs,function(B,Y){R.node(B).order=Y}),t(R,I,F.vs)})}function g(C,L){c.forEach(L,function(I){c.forEach(I,function(R,M){C.node(R).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),R=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);g(C,M);for(var B,F=Number.POSITIVE_INFINITY,Y=0,V=0;V<4;++Y,++V){u(Y%2?I:R,Y%4>=2),M=l.buildLayerMatrix(C);var it=_(C,M);it{"use strict";var c=s(45760);w.exports=function x(_){var m={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(m,f)){m[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,E,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function m(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,E,s)=>{var c=s(45760),x=s(81323),_=s(83826),m=s(93803);w.exports=function p(l,h,f,u){var g=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,R={};L&&(g=c.filter(g,function(it){return it!==L&&it!==I}));var M=x(l,g);c.forEach(M,function(it){if(l.children(it.v).length){var et=p(l,it.v,f,u);R[it.v]=et,c.has(et,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(it,et)}});var F=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(F,R);var B=m(F,u);if(L&&(B.vs=c.flatten([L,B.vs,I],!0),l.predecessors(L).length)){var Y=l.node(l.predecessors(L)[0]),V=l.node(l.predecessors(I)[0]);c.has(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+Y.order+V.order)/(B.weight+2),B.weight+=2}return B}},93803:(w,E,s)=>{var c=s(45760),x=s(11510);function m(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(R){return c.has(R,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(R){return-R.i}),u=[],g=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=m(u,f,L),c.forEach(h,function(R){L+=R.vs.length,u.push(R.vs),g+=R.barycenter*R.weight,C+=R.weight,L=m(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=g/C,I.weight=C),I}},60162:(w,E,s)=>{var c=s(45760);w.exports=function x(p){var t=function m(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),g=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,g=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==g&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function m(F,B){var Y={};return c.reduce(B,function V(it,et){var st=0,K=0,X=it.length,W=c.last(et);return c.forEach(et,function(at,H){var Q=function t(F,B){if(F.node(B).dummy)return c.find(F.predecessors(B),function(Y){return F.node(Y).dummy})}(F,at),nt=Q?F.node(Q).order:X;(Q||at===W)&&(c.forEach(et.slice(K,H+1),function(q){c.forEach(F.predecessors(q),function(U){var D=F.node(U),mt=D.order;(mtW)&&d(Y,Q,at)})})}return c.reduce(B,function it(et,st){var X,K=-1,W=0;return c.forEach(st,function(at,H){if("border"===F.node(at).dummy){var Q=F.predecessors(at);Q.length&&(X=F.node(Q[0]).order,V(st,W,H,K,X),W=H,K=X)}V(st,W,st.length,X,et.length)}),st}),Y}function d(F,B,Y){if(B>Y){var V=B;B=Y,Y=V}var it=F[B];it||(F[B]=it={}),it[Y]=!0}function l(F,B,Y){if(B>Y){var V=B;B=Y,Y=V}return c.has(F[B],Y)}function h(F,B,Y,V){var it={},et={},st={};return c.forEach(B,function(K){c.forEach(K,function(X,W){it[X]=X,et[X]=X,st[X]=W})}),c.forEach(B,function(K){var X=-1;c.forEach(K,function(W){var at=V(W);if(at.length)for(var H=((at=c.sortBy(at,function(U){return st[U]})).length-1)/2,Q=Math.floor(H),nt=Math.ceil(H);Q<=nt;++Q){var q=at[Q];et[W]===W&&X{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function m(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(g){return t.node(g).height}));c.forEach(f,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,E,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,L=u===C?g.w:C;!l.hasNode(L)&&!_(h,g)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function m(l){var g,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),m=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){m(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,E,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,m=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(Y){Y=d(Y),m(Y);var it,V=x(Y);for(g(V),h(V,Y);it=L(V);)R(V,Y,it,I(V,Y,it))}function h(Y,V){var it=t(Y,Y.nodes());it=it.slice(0,it.length-1),c.forEach(it,function(et){!function f(Y,V,it){var et=Y.node(it);Y.edge(it,et.parent).cutvalue=u(Y,V,it)}(Y,V,et)})}function u(Y,V,it){var st=Y.node(it).parent,K=!0,X=V.edge(it,st),W=0;return X||(K=!1,X=V.edge(st,it)),W=X.weight,c.forEach(V.nodeEdges(it),function(at){var H=at.v===it,Q=H?at.w:at.v;if(Q!==st){var nt=H===K,q=V.edge(at).weight;if(W+=nt?q:-q,function F(Y,V,it){return Y.hasEdge(V,it)}(Y,it,Q)){var U=Y.edge(it,Q).cutvalue;W+=nt?-U:U}}}),W}function g(Y,V){arguments.length<2&&(V=Y.nodes()[0]),C(Y,{},1,V)}function C(Y,V,it,et,st){var K=it,X=Y.node(et);return V[et]=!0,c.forEach(Y.neighbors(et),function(W){c.has(V,W)||(it=C(Y,V,it,W,et))}),X.low=K,X.lim=it++,st?X.parent=st:delete X.parent,it}function L(Y){return c.find(Y.edges(),function(V){return Y.edge(V).cutvalue<0})}function I(Y,V,it){var et=it.v,st=it.w;V.hasEdge(et,st)||(et=it.w,st=it.v);var K=Y.node(et),X=Y.node(st),W=K,at=!1;K.lim>X.lim&&(W=X,at=!0);var H=c.filter(V.edges(),function(Q){return at===B(0,Y.node(Q.v),W)&&at!==B(0,Y.node(Q.w),W)});return c.minBy(H,function(Q){return _(V,Q)})}function R(Y,V,it,et){Y.removeEdge(it.v,it.w),Y.setEdge(et.v,et.w,{}),g(Y),h(Y,V),function M(Y,V){var it=c.find(Y.nodes(),function(st){return!V.node(st).parent}),et=p(Y,it);et=et.slice(1),c.forEach(et,function(st){var K=Y.node(st).parent,X=V.edge(st,K),W=!1;X||(X=V.edge(K,st),W=!0),V.node(st).rank=V.node(K).rank+(W?X.minlen:-X.minlen)})}(Y,V)}function B(Y,V,it){return it.low<=V.lim&&V.lim<=it.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=R},1916:(w,E,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(m){var p={};c.forEach(m.sources(),function t(d){var l=m.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(m.outEdges(d),function(f){return t(f.w)-m.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(m,p){return m.node(p.w).rank-m.node(p.v).rank-m.edge(p).minlen}}},11510:(w,E,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,F,B,Y){var V;do{V=c.uniqueId(Y)}while(M.hasNode(V));return B.dummy=F,M.setNode(V,B),V}function C(M){return c.max(c.map(M.nodes(),function(F){var B=M.node(F).rank;if(!c.isUndefined(B))return B}))}w.exports={addDummyNode:_,simplify:function m(M){var F=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(B){F.setNode(B,M.node(B))}),c.forEach(M.edges(),function(B){var Y=F.edge(B.v,B.w)||{weight:0,minlen:1},V=M.edge(B);F.setEdge(B.v,B.w,{weight:Y.weight+V.weight,minlen:Math.max(Y.minlen,V.minlen)})}),F},asNonCompoundGraph:function p(M){var F=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(B){M.children(B).length||F.setNode(B,M.node(B))}),c.forEach(M.edges(),function(B){F.setEdge(B,M.edge(B))}),F},successorWeights:function t(M){var F=c.map(M.nodes(),function(B){var Y={};return c.forEach(M.outEdges(B),function(V){Y[V.w]=(Y[V.w]||0)+M.edge(V).weight}),Y});return c.zipObject(M.nodes(),F)},predecessorWeights:function d(M){var F=c.map(M.nodes(),function(B){var Y={};return c.forEach(M.inEdges(B),function(V){Y[V.v]=(Y[V.v]||0)+M.edge(V).weight}),Y});return c.zipObject(M.nodes(),F)},intersectRect:function l(M,F){var K,X,B=M.x,Y=M.y,V=F.x-B,it=F.y-Y,et=M.width/2,st=M.height/2;if(!V&&!it)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(it)*et>Math.abs(V)*st?(it<0&&(st=-st),K=st*V/it,X=st):(V<0&&(et=-et),K=et,X=et*it/V),{x:B+K,y:Y+X}},buildLayerMatrix:function h(M){var F=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(B){var Y=M.node(B),V=Y.rank;c.isUndefined(V)||(F[V][Y.order]=B)}),F},normalizeRanks:function f(M){var F=c.min(c.map(M.nodes(),function(B){return M.node(B).rank}));c.forEach(M.nodes(),function(B){var Y=M.node(B);c.has(Y,"rank")&&(Y.rank-=F)})},removeEmptyRanks:function u(M){var F=c.min(c.map(M.nodes(),function(it){return M.node(it).rank})),B=[];c.forEach(M.nodes(),function(it){var et=M.node(it).rank-F;B[et]||(B[et]=[]),B[et].push(it)});var Y=0,V=M.graph().nodeRankFactor;c.forEach(B,function(it,et){c.isUndefined(it)&&et%V!=0?--Y:Y&&c.forEach(it,function(st){M.node(st).rank+=Y})})},addBorderNode:function g(M,F,B,Y){var V={width:0,height:0};return arguments.length>=4&&(V.rank=B,V.order=Y),_(M,"border",V,F)},maxRank:C,partition:function L(M,F){var B={lhs:[],rhs:[]};return c.forEach(M,function(Y){F(Y)?B.lhs.push(Y):B.rhs.push(Y)}),B},time:function I(M,F){var B=c.now();try{return F()}finally{console.log(M+" time: "+(c.now()-B)+"ms")}},notime:function R(M,F){return F()}}},28126:w=>{w.exports="0.8.5"},85510:(w,E,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,E,s)=>{var c=s(79138);w.exports=function x(_){var t,m={},p=[];function d(l){c.has(m,l)||(m[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,E,s)=>{var c=s(79138);function _(m,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(m,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(m,p,t){c.isArray(p)||(p=[p]);var d=(m.isDirected()?m.successors:m.neighbors).bind(m),l=[],h={};return c.each(p,function(f){if(!m.hasNode(f))throw new Error("Graph does not have node: "+f);_(m,f,"post"===t,h,d,l)}),l}},25668:(w,E,s)=>{var c=s(61718),x=s(79138);w.exports=function _(m,p,t){return x.transform(m.nodes(),function(d,l){d[l]=c(m,l,p,t)},{})}},61718:(w,E,s)=>{var c=s(79138),x=s(31919);w.exports=function m(t,d,l,h){return function p(t,d,l,h){var g,C,f={},u=new x,L=function(I){var R=I.v!==g?I.v:I.w,M=f[R],F=l(I),B=C.distance+F;if(F<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+F);B0&&(g=u.removeMin(),(C=f[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,E,s)=>{var c=s(79138),x=s(73585);w.exports=function _(m){return c.filter(x(m),function(p){return p.length>1||1===p.length&&m.hasEdge(p[0],p[0])})}},22881:(w,E,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function m(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var g=u.v===f?u.w:u.v,C=t(u);l[f][g]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(g){var C=l[g];h.forEach(function(L){var R=u[L],M=C[L],F=C[f].distance+R.distance;F{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,E,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(m){if(m instanceof c.CycleException)return!1;throw m}return!0}},46694:(w,E,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"post")}},5330:(w,E,s)=>{var c=s(22163);w.exports=function x(_,m){return c(_,m,"pre")}},46823:(w,E,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function m(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var R=t(C);R0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(g)throw new Error("Input graph is not connected: "+p);g=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,E,s)=>{var c=s(79138);w.exports=function x(_){var m=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:m,index:m++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var g,u=[];do{g=p.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,E,s)=>{var c=s(79138);function x(m){var p={},t={},d=[];if(c.each(m.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(m.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==m.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,E,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var m=this._keyIndices[_];if(void 0!==m)return this._arr[m].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,m){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:m}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,m){var p=this._keyIndices[_];if(m>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+m);this._arr[p].priority=m,this._decrease(p)},x.prototype._heapify=function(_){var m=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function d(u,g){--u[g]||delete u[g]}function l(u,g,C,L){var I=""+g,R=""+C;if(!u&&I>R){var M=I;I=R,R=M}return I+"\x01"+R+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,g,C,L){var I=""+g,R=""+C;if(!u&&I>R){var M=I;I=R,R=M}var F={v:I,w:R};return L&&(F.name=L),F}function f(u,g){return l(u,g.v,g.w,g.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},p.prototype.setNodes=function(u,g){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,g):L.setNode(I)}),this},p.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(L){g.removeEdge(g._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){g.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=_;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==_)return g}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},p.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},p.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(R,M){u(M)&&g.setNode(M,R)}),c.each(this._edgeObjs,function(R){g.hasNode(R.v)&&g.hasNode(R.w)&&g.setEdge(R,C.edge(R))});var L={};function I(R){var M=C.parent(R);return void 0===M||g.hasNode(M)?(L[R]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(g.nodes(),function(R){g.setParent(R,I(R))}),g},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,g){var C=this,L=arguments;return c.reduce(u,function(I,R){return L.length>1?C.setEdge(I,R,g):C.setEdge(I,R),R}),this},p.prototype.setEdge=function(){var u,g,C,L,I=!1,R=arguments[0];"object"==typeof R&&null!==R&&"v"in R?(u=R.v,g=R.w,C=R.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=R,g=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,g,C);var F=h(this._isDirected,u,g,C);return u=F.v,g=F.w,Object.freeze(F),this._edgeObjs[M]=F,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][M]=F,this._out[u][M]=F,this._edgeCount++,this},p.prototype.edge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,g,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),I=this._edgeObjs[L];return I&&(u=I.v,g=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[g],u),d(this._sucs[u],g),delete this._in[g][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.v===g}):L}},p.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var L=c.values(C);return g?c.filter(L,function(I){return I.w===g}):L}},p.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,E,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,E,s)=>{var c=s(79138),x=s(66568);function m(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:m(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,E,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var E=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function m(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=E.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,E,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,E,s)=>{var c=s(64312),x=s(46421),_=s(15764),m=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),m=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,E,s)=>{var c=s(10638),x=s(11184),_=s(70866),m=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,E,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,E,s)=>{var c=s(99850),x=s(4600),_=s(31387);function m(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),m=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=m,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,E,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,E,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,E,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function E(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length,m=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[m++]=t)}return p}},61253:(w,E,s)=>{var c=s(14164);w.exports=function x(_,m){return!(null==_||!_.length)&&c(_,m,0)>-1}},37609:w=>{w.exports=function E(s,c,x){for(var _=-1,m=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),m=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var g=_(f),C=!g&&x(f),L=!g&&!C&&m(f),I=!g&&!C&&!L&&t(f),R=g||C||L||I,M=R?c(f.length,String):[],F=M.length;for(var B in f)(u||l.call(f,B))&&(!R||!("length"==B||L&&("offset"==B||"parent"==B)||I&&("buffer"==B||"byteLength"==B||"byteOffset"==B)||p(B,F)))&&M.push(B);return M}},84633:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length,m=Array(_);++x<_;)m[x]=c(s[x],x,s);return m}},85059:w=>{w.exports=function E(s,c){for(var x=-1,_=c.length,m=s.length;++x<_;)s[m+x]=c[x];return s}},8745:w=>{w.exports=function E(s,c,x,_){var m=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++m]);++m{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,E,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,E,s)=>{var c=s(85683),x=s(20217);w.exports=function _(m,p,t){(void 0!==t&&!x(m[p],t)||void 0===t&&!(p in m))&&c(m,p,t)}},89719:(w,E,s)=>{var c=s(85683),x=s(20217),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!m.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,E,s)=>{var c=s(20217);w.exports=function x(_,m){for(var p=_.length;p--;)if(c(_[p][0],m))return p;return-1}},94121:(w,E,s)=>{var c=s(31989),x=s(118);w.exports=function _(m,p){return m&&c(p,x(p),m)}},99287:(w,E,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m,p){return m&&c(p,x(p),m)}},85683:(w,E,s)=>{var c=s(56713);w.exports=function x(_,m,p){"__proto__"==m&&c?c(_,m,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[m]=p}},44462:(w,E,s)=>{var c=s(2858),x=s(96837),_=s(89719),m=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),g=s(28794),C=s(76782),L=s(37878),I=s(4264),R=s(21503),M=s(80891),F=s(13222),B=s(25940),Y=s(90799),V=s(118),it=s(16555),X="[object Arguments]",nt="[object Function]",mt="[object Object]",$t={};$t[X]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t[mt]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[nt]=$t["[object WeakMap]"]=!1,w.exports=function Vt(Jt,me,ve,Ee,ke,we){var ze,Ge=1&me,an=2&me,_e=4&me;if(ve&&(ze=ke?ve(Jt,Ee,ke,we):ve(Jt)),void 0!==ze)return ze;if(!B(Jt))return Jt;var un=R(Jt);if(un){if(ze=C(Jt),!Ge)return d(Jt,ze)}else{var Tt=g(Jt),Yt=Tt==nt||"[object GeneratorFunction]"==Tt;if(M(Jt))return t(Jt,Ge);if(Tt==mt||Tt==X||Yt&&!ke){if(ze=an||Yt?{}:I(Jt),!Ge)return an?h(Jt,p(ze,Jt)):l(Jt,m(ze,Jt))}else{if(!$t[Tt])return ke?Jt:{};ze=L(Jt,Tt,Ge)}}we||(we=new c);var oe=we.get(Jt);if(oe)return oe;we.set(Jt,ze),Y(Jt)?Jt.forEach(function(Ve){ze.add(Vt(Ve,me,ve,Ve,Jt,we))}):F(Jt)&&Jt.forEach(function(Ve,Xe){ze.set(Xe,Vt(Ve,me,ve,Xe,Jt,we))});var qt=un?void 0:(_e?an?u:f:an?it:V)(Jt);return x(qt||Jt,function(Ve,Xe){qt&&(Ve=Jt[Xe=Ve]),_(ze,Xe,Vt(Ve,me,ve,Xe,Jt,we))}),ze}},78858:(w,E,s)=>{var c=s(25940),x=Object.create,_=function(){function m(){}return function(p){if(!c(p))return{};if(x)return x(p);m.prototype=p;var t=new m;return m.prototype=void 0,t}}();w.exports=_},43132:(w,E,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,E,s)=>{var c=s(44129);w.exports=function x(_,m,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,m){var p=[];return c(_,function(t,d,l){m(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function E(s,c,x,_){for(var m=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(m,p,t,d,l){var h=-1,f=m.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,E,s)=>{var x=s(40456)();w.exports=x},45184:(w,E,s)=>{var c=s(30755),x=s(118);w.exports=function _(m,p){return m&&c(m,p,x)}},15456:(w,E,s)=>{var c=s(65456),x=s(68533);w.exports=function _(m,p){for(var t=0,d=(p=c(p,m)).length;null!=m&&t{var c=s(85059),x=s(21503);w.exports=function _(m,p,t){var d=p(m);return x(m)?d:c(d,t(m))}},93337:(w,E,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function E(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function E(s,c){return null!=s&&c in Object(s)}},14164:(w,E,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function m(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,E,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,E,s)=>{var c=s(58325),x=s(72671);w.exports=function _(m,p,t,d,l){return m===p||(null==m||null==p||!x(m)&&!x(p)?m!=m&&p!=p:c(m,p,t,d,_,l))}},58325:(w,E,s)=>{var c=s(2858),x=s(63914),_=s(78583),m=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",g="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(R,M,F,B,Y,V){var it=t(R),et=t(M),st=it?u:p(R),K=et?u:p(M),X=(st=st==f?g:st)==g,W=(K=K==f?g:K)==g,at=st==K;if(at&&d(R)){if(!d(M))return!1;it=!0,X=!1}if(at&&!X)return V||(V=new c),it||l(R)?x(R,M,F,B,Y,V):_(R,M,st,F,B,Y,V);if(!(1&F)){var H=X&&L.call(R,"__wrapped__"),Q=W&&L.call(M,"__wrapped__");if(H||Q){var nt=H?R.value():R,q=Q?M.value():M;return V||(V=new c),Y(nt,q,F,B,V)}}return!!at&&(V||(V=new c),m(R,M,F,B,Y,V))}},97021:(w,E,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,E,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,g=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function E(s){return s!=s}},37304:(w,E,s)=>{var c=s(75946),x=s(91943),_=s(25940),m=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(m(C))}},771:(w,E,s)=>{var c=s(28794),x=s(72671);w.exports=function m(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,E,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function H(Q){return _(Q)&&x(Q.length)&&!!at[c(Q)]}},96517:(w,E,s)=>{var c=s(98133),x=s(9458),_=s(32608),m=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?m(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,E,s)=>{var c=s(45488),x=s(85491),m=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))m.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,E,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function E(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(m,p){var t=-1,d=x(m)?Array(m.length):[];return c(m,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,E,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function m(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,E,s)=>{var c=s(85740),x=s(8817),_=s(11172),m=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,g){return m(u)&&p(g)?t(d(u),g):function(C){var L=x(C,u);return void 0===L&&L===g?_(C,u):c(g,L,3)}}},73842:(w,E,s)=>{var c=s(2858),x=s(49276),_=s(30755),m=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,g,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))m(h,f,I,u,l,g,C);else{var R=g?g(d(h,I),L,I+"",h,f,C):void 0;void 0===R&&(R=L),x(h,I,R)}},t)}},33675:(w,E,s)=>{var c=s(49276),x=s(19292),_=s(65208),m=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(92377),h=s(80891),f=s(75946),u=s(25940),g=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function R(M,F,B,Y,V,it,et){var st=L(M,B),K=L(F,B),X=et.get(K);if(X)c(M,B,X);else{var W=it?it(st,K,B+"",M,F,et):void 0,at=void 0===W;if(at){var H=d(K),Q=!H&&h(K),nt=!H&&!Q&&C(K);W=K,H||Q||nt?d(st)?W=st:l(st)?W=m(st):Q?(at=!1,W=x(K,!0)):nt?(at=!1,W=_(K,!0)):W=[]:g(K)||t(K)?(W=st,t(st)?W=I(st):(!u(st)||f(st))&&(W=p(K))):at=!1}at&&(et.set(K,W),V(W,K,Y,it,et),et.delete(K)),c(M,B,W)}}},6119:(w,E,s)=>{var c=s(84633),x=s(15456),_=s(96517),m=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,g,C){g=g.length?c(g,function(R){return h(R)?function(M){return x(M,1===R.length?R[0]:R)}:R}):[l];var L=-1;g=c(g,t(_));var I=m(u,function(R,M,F){return{criteria:c(g,function(Y){return Y(R)}),index:++L,value:R}});return p(I,function(R,M){return d(R,M,C)})}},83021:(w,E,s)=>{var c=s(95495),x=s(11172);w.exports=function _(m,p){return c(m,p,function(t,d){return x(m,d)})}},95495:(w,E,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function m(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function E(s){return function(c){return c?.[s]}}},39222:(w,E,s)=>{var c=s(15456);w.exports=function x(_){return function(m){return c(m,_)}}},16307:w=>{var E=Math.ceil,s=Math.max;w.exports=function c(x,_,m,p){for(var t=-1,d=s(E((_-x)/(m||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=m;return l}},13570:w=>{w.exports=function E(s,c,x,_,m){return m(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,E,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function m(p,t){return _(x(p,t,c),p+"")}},55963:(w,E,s)=>{var c=s(89719),x=s(65456),_=s(58442),m=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!m(d))return d;for(var u=-1,g=(l=x(l,d)).length,C=g-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function E(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function E(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),m=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(m(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,E,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(m){return m&&m.slice(0,c(m)+1).replace(x,"")}},85647:w=>{w.exports=function E(s){return function(c){return s(c)}}},80707:(w,E,s)=>{var c=s(58849),x=s(61253),_=s(37609),m=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var g=-1,C=x,L=h.length,I=!0,R=[],M=R;if(u)I=!1,C=_;else if(L>=200){var F=f?null:p(h);if(F)return t(F);I=!1,C=m,M=new c}else M=f?[]:R;t:for(;++g{var c=s(84633);w.exports=function x(_,m){return c(m,function(p){return _[p]})}},38645:w=>{w.exports=function E(s,c,x){for(var _=-1,m=s.length,p=c.length,t={};++_{w.exports=function E(s,c){return s.has(c)}},21481:(w,E,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,E,s)=>{var c=s(21503),x=s(45352),_=s(32855),m=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(m(t))}},43362:(w,E,s)=>{var c=s(73457);w.exports=function x(_){var m=new _.constructor(_.byteLength);return new c(m).set(new c(_)),m}},19292:(w,E,s)=>{w=s.nmd(w);var c=s(12119),x=E&&!E.nodeType&&E,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,E,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var E=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,E.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,E,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function m(p){return _?Object(_.call(p)):{}}},65208:(w,E,s)=>{var c=s(43362);w.exports=function x(_,m){var p=m?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,E,s)=>{var c=s(44129);w.exports=function x(_,m){if(_!==m){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==m,f=null===m,u=m==m,g=c(m);if(!f&&!g&&!l&&_>m||l&&h&&u&&!f&&!g||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!g&&_{var c=s(13443);w.exports=function x(_,m,p){for(var t=-1,d=_.criteria,l=m.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-m.index}},99454:w=>{w.exports=function E(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,E,s)=>{var c=s(89719),x=s(85683);w.exports=function _(m,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(m,p){return c(m,x(m),p)}},59905:(w,E,s)=>{var c=s(31989),x=s(53051);w.exports=function _(m,p){return c(m,x(m),p)}},24610:(w,E,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,E,s)=>{var c=s(23269),x=s(93342);w.exports=function _(m){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=m.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,m){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=m?d:-1,h=Object(p);(m?l--:++l{w.exports=function E(s){return function(c,x,_){for(var m=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++m];if(!1===x(p[l],l,p))break}return c}}},24653:(w,E,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function m(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(g){return f(h[g],g,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,E,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function m(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,E,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,E,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,g){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var R=g.get(d),M=g.get(l);if(R&&M)return R==l&&M==d;var F=-1,B=!0,Y=2&h?new c:void 0;for(g.set(d,l),g.set(l,d);++F{var c=s(60443),x=s(73457),_=s(20217),m=s(63914),p=s(83205),t=s(24174),Y=c?c.prototype:void 0,V=Y?Y.valueOf:void 0;w.exports=function it(et,st,K,X,W,at,H){switch(K){case"[object DataView]":if(et.byteLength!=st.byteLength||et.byteOffset!=st.byteOffset)return!1;et=et.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(et.byteLength!=st.byteLength||!at(new x(et),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+et,+st);case"[object Error]":return et.name==st.name&&et.message==st.message;case"[object RegExp]":case"[object String]":return et==st+"";case"[object Map]":var Q=p;case"[object Set]":if(Q||(Q=t),et.size!=st.size&&!(1&X))return!1;var q=H.get(et);if(q)return q==st;X|=2,H.set(et,st);var U=m(Q(et),Q(st),X,W,at,H);return H.delete(et),U;case"[object Symbol]":if(V)return V.call(et)==V.call(st)}return!1}},32286:(w,E,s)=>{var c=s(47597),m=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var g=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!g)return!1;for(var M=L;M--;){var F=C[M];if(!(g?F in d:m.call(d,F)))return!1}var B=u.get(t),Y=u.get(d);if(B&&Y)return B==d&&Y==t;var V=!0;u.set(t,d),u.set(d,t);for(var it=g;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function m(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var E="object"==typeof global&&global&&global.Object===Object&&global;w.exports=E},47597:(w,E,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function m(p){return c(p,_,x)}},6967:(w,E,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function m(p){return c(p,_,x)}},54537:(w,E,s)=>{var c=s(23819);w.exports=function x(_,m){var p=_.__data__;return c(m)?p["string"==typeof m?"string":"hash"]:p.map}},22379:(w,E,s)=>{var c=s(22442),x=s(118);w.exports=function _(m){for(var p=x(m),t=p.length;t--;){var d=p[t],l=m[d];p[t]=[d,l,c(l)]}return p}},53436:(w,E,s)=>{var c=s(37304),x=s(51990);w.exports=function _(m,p){var t=x(m,p);return c(t)?t:void 0}},29519:(w,E,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,E,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,m=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=m.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,E,s)=>{var c=s(69779),x=s(49975),m=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return m.call(d,l)}))}:x},53051:(w,E,s)=>{var c=s(85059),x=s(29519),_=s(39383),m=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:m},28794:(w,E,s)=>{var c=s(37244),x=s(51501),_=s(44267),m=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),R=d(_),M=d(m),F=d(p),B=t;(c&&B(new c(new ArrayBuffer(1)))!=C||x&&B(new x)!=l||_&&B(_.resolve())!=f||m&&B(new m)!=u||p&&B(new p)!=g)&&(B=function(Y){var V=t(Y),it="[object Object]"==V?Y.constructor:void 0,et=it?d(it):"";if(et)switch(et){case L:return C;case I:return l;case R:return f;case M:return u;case F:return g}return V}),w.exports=B},51990:w=>{w.exports=function E(s,c){return s?.[c]}},47283:(w,E,s)=>{var c=s(65456),x=s(77151),_=s(21503),m=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,E,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function E(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,E,s)=>{var c=s(60862),m=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return m.call(d,t)?d[t]:void 0}},18685:(w,E,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function m(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,E,s)=>{var c=s(60862);w.exports=function _(m,p){var t=this.__data__;return this.size+=this.has(m)?0:1,t[m]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,m=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(m.index=x.index,m.input=x.input),m}},37878:(w,E,s)=>{var c=s(43362),x=s(17e3),_=s(74098),m=s(62533),p=s(65208);w.exports=function K(X,W,at){var H=X.constructor;switch(W){case"[object ArrayBuffer]":return c(X);case"[object Boolean]":case"[object Date]":return new H(+X);case"[object DataView]":return x(X,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(X,at);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(X);case"[object RegExp]":return _(X);case"[object Symbol]":return m(X)}}},4264:(w,E,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function m(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,E,s)=>{var c=s(60443),x=s(77151),_=s(21503),m=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(m&&t&&t[m])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var m=typeof x;return!!(_=_??9007199254740991)&&("number"==m||"symbol"!=m&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,E,s)=>{var c=s(20217),x=s(56507),_=s(58442),m=s(25940);w.exports=function p(t,d,l){if(!m(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,E,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||m.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function E(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,E,s)=>{var m,c=s(24610),x=(m=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";w.exports=function _(m){return!!x&&x in m}},45488:w=>{var E=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||E)}},22442:(w,E,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function E(){this.__data__=[],this.size=0}},34378:(w,E,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function m(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,E,s)=>{var c=s(43503);w.exports=function x(_){var m=this.__data__,p=c(m,_);return p<0?void 0:m[p][1]}},67343:(w,E,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,E,s)=>{var c=s(43503);w.exports=function x(_,m){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,m])):p[t][1]=m,this}},10638:(w,E,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function m(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,E,s)=>{var c=s(54537);w.exports=function x(_){var m=c(this,_).delete(_);return this.size-=m?1:0,m}},70866:(w,E,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,E,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,E,s)=>{var c=s(54537);w.exports=function x(_,m){var p=c(this,_),t=p.size;return p.set(_,m),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function E(s){var c=-1,x=Array(s.size);return s.forEach(function(_,m){x[++c]=[m,_]}),x}},642:w=>{w.exports=function E(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,E,s)=>{var c=s(30535);w.exports=function _(m){var p=c(m,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,E,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,E,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function E(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,E,s)=>{w=s.nmd(w);var c=s(79122),x=E&&!E.nodeType&&E,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function E(s,c){return function(x){return s(c(x))}}},53983:(w,E,s)=>{var c=s(26999),x=Math.max;w.exports=function _(m,p,t){return p=x(void 0===p?m.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function E(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function E(s){return this.__data__.has(s)}},24174:w=>{w.exports=function E(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,E,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var m=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++m>=800)return arguments[0]}else m=0;return _.apply(void 0,arguments)}}},13720:(w,E,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function E(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function E(s){return this.__data__.get(s)}},22247:w=>{w.exports=function E(s){return this.__data__.has(s)}},41585:(w,E,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function E(s,c,x){for(var _=x-1,m=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function m(p){return x(p)?_(p):c(p)}},32855:(w,E,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,m=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=m},68533:(w,E,s)=>{var c=s(44129);w.exports=function _(m){if("string"==typeof m||c(m))return m;var p=m+"";return"0"==p&&1/m==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var E=/\s/;w.exports=function s(c){for(var x=c.length;x--&&E.test(c.charAt(x)););return x}},81149:w=>{var E="\\ud800-\\udfff",p="["+E+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+E+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",R=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",F=RegExp(d+"(?="+d+")|"+M+R,"g");w.exports=function B(Y){for(var V=F.lastIndex=0;F.test(Y);)++V;return V}},11094:(w,E,s)=>{var c=s(44462);w.exports=function _(m){return c(m,4)}},90733:(w,E,s)=>{var c=s(44462);w.exports=function m(p){return c(p,5)}},76684:w=>{w.exports=function E(s){return function(){return s}}},28800:(w,E,s)=>{var c=s(23269),x=s(20217),_=s(93342),m=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&_(h[0],h[1],g)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function E(s,c){return s===c||s!=s&&c!=c}},35281:(w,E,s)=>{var c=s(69779),x=s(33609),_=s(96517),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d,3))}},62516:(w,E,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,E,s)=>{var c=s(65317),x=s(96517),_=s(44401),m=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=m(h+f,0)),c(t,x(d,3),f)}},22274:(w,E,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,E,s)=>{var c=s(96837),x=s(43132),_=s(21481),m=s(21503);w.exports=function p(t,d){return(m(t)?c:x)(t,_(d))}},41176:(w,E,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function m(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,E,s)=>{var c=s(15456);w.exports=function x(_,m,p){var t=null==_?void 0:c(_,m);return void 0===t?p:t}},54842:(w,E,s)=>{var c=s(84781),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},11172:(w,E,s)=>{var c=s(69989),x=s(47283);w.exports=function _(m,p){return null!=m&&x(m,p,c)}},32608:w=>{w.exports=function E(s){return s}},77151:(w,E,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,m=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&m.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,E,s)=>{var c=s(75946),x=s(96231);w.exports=function _(m){return null!=m&&x(m.length)&&!c(m)}},92377:(w,E,s)=>{var c=s(56507),x=s(72671);w.exports=function _(m){return x(m)&&c(m)}},80891:(w,E,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=E&&!E.nodeType&&E,m=_&&w&&!w.nodeType&&w,t=m&&m.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,E,s)=>{var c=s(81172),x=s(28794),_=s(77151),m=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(m(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var R in L)if(g.call(L,R))return!1;return!0}},75946:(w,E,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,E,s)=>{var c=s(97021),x=s(85647),_=s(73597),m=_&&_.isMap,p=m?x(m):c;w.exports=p},25940:w=>{w.exports=function E(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function E(s){return null!=s&&"object"==typeof s}},97614:(w,E,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,E,s)=>{var c=s(771),x=s(85647),_=s(73597),m=_&&_.isSet,p=m?x(m):c;w.exports=p},30248:(w,E,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,E,s)=>{var c=s(93337),x=s(72671);w.exports=function m(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,E,s)=>{var c=s(1083),x=s(85647),_=s(73597),m=_&&_.isTypedArray,p=m?x(m):c;w.exports=p},34235:w=>{w.exports=function E(s){return void 0===s}},118:(w,E,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function m(p){return _(p)?c(p):x(p)}},16555:(w,E,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function m(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function E(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,E,s)=>{var c=s(84633),x=s(96517),_=s(92046),m=s(21503);w.exports=function p(t,d){return(m(t)?c:_)(t,x(d,3))}},10203:(w,E,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function m(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,E,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,E,s)=>{var c=s(99850);function _(m,p){if("function"!=typeof m||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=m.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,E,s)=>{var c=s(73842),_=s(84944)(function(m,p,t){c(m,p,t)});w.exports=_},29439:(w,E,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function m(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,E,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function m(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function E(){}},31710:(w,E,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,E,s)=>{var c=s(83021),_=s(3975)(function(m,p){return null==m?{}:c(m,p)});w.exports=_},87495:(w,E,s)=>{var c=s(11847),x=s(39222),_=s(45352),m=s(68533);w.exports=function p(t){return _(t)?c(m(t)):x(t)}},90361:(w,E,s)=>{var x=s(97509)();w.exports=x},81337:(w,E,s)=>{var c=s(8745),x=s(43132),_=s(96517),m=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:m,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,E,s)=>{var c=s(81172),x=s(28794),_=s(56507),m=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return m(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,E,s)=>{var c=s(50686),x=s(6119),_=s(23269),m=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&m(t,d[0],d[1])?d=[]:l>2&&m(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function E(){return[]}},63580:w=>{w.exports=function E(){return!1}},12232:(w,E,s)=>{var c=s(51467),x=1/0;w.exports=function m(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,E,s)=>{var c=s(12232);w.exports=function x(_){var m=c(_),p=m%1;return m==m?p?m-p:m:0}},51467:(w,E,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var g=t.test(f);return g||d.test(f)?l(f.slice(2),g?2:8):p.test(f)?NaN:+f}},8067:(w,E,s)=>{var c=s(31989),x=s(16555);w.exports=function _(m){return c(m,x(m))}},73943:(w,E,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,E,s)=>{var c=s(96837),x=s(78858),_=s(45184),m=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(g,C,L){var I=t(g),R=I||d(g)||f(g);if(C=m(C,4),null==L){var M=g&&g.constructor;L=R?I?new M:[]:h(g)&&l(M)?x(p(g)):{}}return(R?c:_)(g,function(F,B,Y){return C(L,F,B,Y)}),L}},68921:(w,E,s)=>{var c=s(50686),x=s(23269),_=s(80707),m=s(92377),p=x(function(t){return _(c(t,1,m,!0))});w.exports=p},51541:(w,E,s)=>{var c=s(73943),x=0;w.exports=function _(m){var p=++x;return c(m)+p}},90377:(w,E,s)=>{var c=s(19179),x=s(118);w.exports=function _(m){return null==m?[]:c(m,x(m))}},21617:(w,E,s)=>{var c=s(89719),x=s(38645);w.exports=function _(m,p){return x(m||[],p||[],c)}},34315:(w,E,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function m(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,E,s)=>{"use strict";function c(x){for(var _ in x)E.hasOwnProperty(_)||(E[_]=x[_])}Object.defineProperty(E,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,E,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);E.LayoutAdaptor=_,E.adaptor=function m(p){return new _(p)}},83292:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(15675),x=s(76767);E.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function m(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(g){return t.length+g.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(g){return g.index}):[])}});var f=t.concat(d).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},E.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;g.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(49346),x=s(22487);E.d3adaptor=function _(p){return!p||function m(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,E,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);E.D3StyleLayoutAdaptor=_,E.d3adaptor=function m(){return new _}},22487:function(w,E,s){"use strict";var m,c=this&&this.__extends||(m=function(p,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}m(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(m){function p(t){var d=m.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,m),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return m.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);E.D3StyleLayoutAdaptor=_},91786:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(m,p){this.locks[m]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var m in this.locks)return!1;return!0},_.prototype.apply=function(m){for(var p in this.locks)m(Number(p),this.locks[p])},_}();E.Locks=s;var c=function(){function _(m,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=m,this.k=m.length;var d=this.n=m[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&F>B||!isFinite(B)){for(d=0;d1&&(Y=1);var V=B*B,it=2*Y*(F-B)/(V*F),et=F*F*F,st=2*-Y/(V*et);for(isFinite(it)||console.log(it),d=0;d0?Q-(U+1)*X:Q-(U-1)*X)&&R<=K&&(this.scaleSnapByMaxH?(this.g[d][g]+=u*at*R,this.H[d][g][g]+=u*at):(this.g[d][g]+=at*R,this.H[d][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(mt,St){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(m){_.mApply(this.k,this.n,m)},_.prototype.computeNextPosition=function(m,p){var t=this;this.computeDerivatives(m);var d=this.computeStepSize(this.g);if(this.stepAndProject(m,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=m[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(m,p,this.e,l)}},_.prototype.run=function(m){for(var p=Number.MAX_VALUE,t=!1;!t&&m-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(m,p){return m+this.getNext()*(p-m)},_}();E.PseudoRandom=x},30225:function(w,E,s){"use strict";var q,c=this&&this.__extends||(q=function(U,D){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,St){mt.__proto__=St}||function(mt,St){for(var Mt in St)St.hasOwnProperty(Mt)&&(mt[Mt]=St[Mt])})(U,D)},function(U,D){function mt(){this.constructor=U}q(U,D),U.prototype=null===D?Object.create(D):(mt.prototype=D.prototype,new mt)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(4068),_=function q(){};E.Point=_;var m=function q(U,D,mt,St){this.x1=U,this.y1=D,this.x2=mt,this.y2=St};E.LineSegment=m;var p=function(q){function U(){return null!==q&&q.apply(this,arguments)||this}return c(U,q),U}(_);function t(q,U,D){return(U.x-q.x)*(D.y-q.y)-(D.x-q.x)*(U.y-q.y)}function d(q,U,D){return t(q,U,D)>0}function l(q,U,D){return t(q,U,D)<0}function C(q,U){var D=U.slice(0);return D.push(U[0]),{rtan:L(q,D),ltan:I(q,D)}}function L(q,U){var mt,St,Mt,Qt,D=U.length-1;if(l(q,U[1],U[0])&&!d(q,U[D-1],U[0]))return 0;for(mt=0,St=D;;){if(St-mt==1)return d(q,U[mt],U[St])?mt:St;if((Qt=l(q,U[(Mt=Math.floor((mt+St)/2))+1],U[Mt]))&&!d(q,U[Mt-1],U[Mt]))return Mt;d(q,U[mt+1],U[mt])?Qt||d(q,U[mt],U[Mt])?St=Mt:mt=Mt:Qt&&l(q,U[mt],U[Mt])?St=Mt:mt=Mt}}function I(q,U){var mt,St,Mt,Qt,D=U.length-1;if(d(q,U[D-1],U[0])&&!l(q,U[1],U[0]))return 0;for(mt=0,St=D;;){if(St-mt==1)return l(q,U[mt],U[St])?mt:St;if(Qt=l(q,U[(Mt=Math.floor((mt+St)/2))+1],U[Mt]),d(q,U[Mt-1],U[Mt])&&!Qt)return Mt;l(q,U[mt+1],U[mt])?Qt?l(q,U[mt],U[Mt])?St=Mt:mt=Mt:St=Mt:Qt?mt=Mt:d(q,U[mt],U[Mt])?St=Mt:mt=Mt}}function R(q,U,D,mt,St,Mt){var Et,Qt;Qt=mt(q[Et=D(U[0],q)],U);for(var Nt=!1;!Nt;){for(Nt=!0;Et===q.length-1&&(Et=0),!St(U[Qt],q[Et],q[Et+1]);)++Et;for(;0===Qt&&(Qt=U.length-1),!Mt(q[Et],U[Qt],U[Qt-1]);)--Qt,Nt=!1}return{t1:Et,t2:Qt}}function F(q,U){return R(q,U,L,I,d,l)}E.PolyPoint=p,E.isLeft=t,E.ConvexHull=function h(q){var mt,U=q.slice(0).sort(function(Zt,se){return Zt.x!==se.x?se.x-Zt.x:se.y-Zt.y}),D=q.length,Mt=U[0].x;for(mt=1;mt=0&&U[mt].x===dt;mt--);for(Nt=mt+1,mt=Et;++mt<=Nt;)if(!(t(U[0],U[Nt],U[mt])>=0&&mt1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],U[mt])>0);)Qt.length-=1;0!=mt&&Qt.push(U[mt])}ft!=Nt&&Qt.push(U[ft]);var Ct=Qt.length;for(mt=Nt;--mt>=Et;)if(!(t(U[ft],U[Et],U[mt])>=0&&mt>Et)){for(;Qt.length>Ct&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],U[mt])>0);)Qt.length-=1;0!=mt&&Qt.push(U[mt])}}return Qt},E.clockwiseRadialSweep=function f(q,U,D){U.slice(0).sort(function(mt,St){return Math.atan2(mt.y-q.y,mt.x-q.x)-Math.atan2(St.y-q.y,St.x-q.x)}).forEach(D)},E.tangent_PolyPolyC=R,E.LRtangent_PolyPolyC=function M(q,U){var D=F(U,q);return{t1:D.t2,t2:D.t1}},E.RLtangent_PolyPolyC=F,E.LLtangent_PolyPolyC=function B(q,U){return R(q,U,I,I,l,l)},E.RRtangent_PolyPolyC=function Y(q,U){return R(q,U,L,L,d,d)};var V=function q(U,D){this.t1=U,this.t2=D};E.BiTangent=V;var it=function q(){};E.BiTangents=it;var et=function(q){function U(){return null!==q&&q.apply(this,arguments)||this}return c(U,q),U}(_);E.TVGPoint=et;var st=function q(U,D,mt,St){this.id=U,this.polyid=D,this.polyvertid=mt,this.p=St,St.vv=this};E.VisibilityVertex=st;var K=function(){function q(U,D){this.source=U,this.target=D}return q.prototype.length=function(){var U=this.source.p.x-this.target.p.x,D=this.source.p.y-this.target.p.y;return Math.sqrt(U*U+D*D)},q}();E.VisibilityEdge=K;var X=function(){function q(U,D){if(this.P=U,this.V=[],this.E=[],D)this.V=D.V.slice(0),this.E=D.E.slice(0);else{for(var mt=U.length,St=0;St0&&this.E.push(new K(Mt[Et-1].vv,Nt))}Mt.length>1&&this.E.push(new K(Mt[0].vv,Mt[Mt.length-1].vv))}for(St=0;St0)return!0;return!1},q}();function W(q,U){for(var D=[],mt=1,St=U.length;mt=0&&ie>=0&&ue<0&&xe>=0&&Ue>=0&&Pe<0?St.ll=new V(Mt,Et):se<=0&&ie<=0&&ue>0&&xe<=0&&Ue<=0&&Pe>0?St.rr=new V(Mt,Et):se<=0&&ie>0&&ue<=0&&xe>=0&&Ue<0&&Pe>=0?St.rl=new V(Mt,Et):se>=0&&ie<0&&ue>=0&&xe<=0&&Ue>0&&Pe<=0&&(St.lr=new V(Mt,Et))}return St}function Q(q,U){return!q.every(function(D){return!function H(q,U){for(var D=1,mt=U.length;D0)return!0}return!1}},76767:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),m=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};E.NodeWrapper=m;var p=function l(h,f,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=g,this.line=C};E.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),g=f.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,g=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=R-M+1)}else L[I][R]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();E.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(et,st){return new m(st,f.getBounds(et),f.getChildren(et))}),this.leaves=this.nodes.filter(function(et){return et.leaf}),this.groups=this.nodes.filter(function(et){return!et.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(et){return et.children.forEach(function(st){return g.nodes[st].parent=et})}),this.root={children:[]},this.nodes.forEach(function(et){typeof et.parent>"u"&&(et.parent=g.root,g.root.children.push(et.id)),et.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(et,st){return g.getDepth(et)-g.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(et){return!et.leaf}).forEach(function(et){var st=c.Rectangle.empty();et.children.forEach(function(K){return st=st.union(g.nodes[K].rect)}),et.rect=st.inflate(g.groupPadding)});var L=this.midPoints(this.cols.map(function(et){return et.pos})),I=this.midPoints(this.rows.map(function(et){return et.pos})),R=L[0],M=L[L.length-1],F=I[0],B=I[I.length-1],Y=this.rows.map(function(et){return{x1:R,x2:M,y1:et.pos,y2:et.pos}}).concat(I.map(function(et){return{x1:R,x2:M,y1:et,y2:et}})),V=this.cols.map(function(et){return{x1:et.pos,x2:et.pos,y1:F,y2:B}}).concat(L.map(function(et){return{x1:et,x2:et,y1:F,y2:B}})),it=Y.concat(V);it.forEach(function(et){return et.verts=[]}),this.verts=[],this.edges=[],Y.forEach(function(et){return V.forEach(function(st){var K=new p(g.verts.length,st.x1,et.y1);et.verts.push(K),st.verts.push(K),g.verts.push(K);for(var X=g.backToFront.length;X-- >0;){var W=g.backToFront[X],at=W.rect,H=Math.abs(K.x-at.cx()),Q=Math.abs(K.y-at.cy());if(H0;){var g=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],g=1;g.1)&&F.push(B={pos:R[0][f],segments:[]}),B.segments.push(R)}return F},l.nudgeSegs=function(h,f,u,g,C,L){var I=g.length;if(!(I<=1)){for(var R=g.map(function(W){return new x.Variable(W[0][h])}),M=[],F=0;F=0&&M.push(new x.Constraint(R[st],R[K],L))}new x.Solver(R,M).solve(),R.forEach(function(W,at){var H=g[at],Q=W.position();H[0][h]=H[1][h]=Q;var nt=u[H.edgeid];H.i>0&&(nt[H.i-1][1][h]=Q),H.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[g.l]={}),f[g.l][g.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:g});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(R=C[I.si+1],F=C[I.si-1],M=L[I.ti-1]):(R=C[I.si+I.length-2],M=C[I.si+I.length],F=L[I.ti+I.length]),l.isLeft(R,M,F)?f.push({l:g,r:u}):f.push({l:u,r:g})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var g=[],C=f(h[0]),L=1;L1&&q>1?1e3:0}).reverse().map(function(K){return u.verts[K]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(K,X){return!(X0&&K.node===C&&st[X-1].node===C)})},l.getRoutePath=function(h,f,u,g){var I,R,M,nt,q,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?R-=F/Math.abs(F)*f:M-=B/Math.abs(B)*f,C.routepath+="L "+R+" "+M+" ";var Y=h[L+1],V=Y[0].x,it=Y[0].y;F=Y[1].x-V,B=Y[1].y-it;var X,W,K=l.angleBetween2Lines(I,Y)<0?1:0;Math.abs(F)>0?(X=V+F/Math.abs(F)*f,W=it):(X=V,W=it+B/Math.abs(B)*f);var at=Math.abs(X-R),H=Math.abs(W-M);C.routepath+="A "+at+" "+H+" 0 0 "+K+" "+X+" "+W+" "}else{var Q=[R,M];Math.abs(F)>0?(nt=[R-=F/Math.abs(F)*g,M+u],q=[R,M-u]):(nt=[R+u,M-=B/Math.abs(B)*g],q=[R-u,M]),C.routepath+="L "+R+" "+M+" ",g>0&&(C.arrowpath="M "+Q[0]+" "+Q[1]+" L "+nt[0]+" "+nt[1]+" L "+q[0]+" "+q[1])}}else F=(R=(I=h[0])[1].x)-I[0].x,B=(M=I[1].y)-I[0].y,Q=[R,M],Math.abs(F)>0?(nt=[R-=F/Math.abs(F)*g,M+u],q=[R,M-u]):(nt=[R+u,M-=B/Math.abs(B)*g],q=[R-u,M]),C.routepath+="L "+R+" "+M+" ",g>0&&(C.arrowpath="M "+Q[0]+" "+Q[1]+" L "+nt[0]+" "+nt[1]+" L "+q[0]+" "+q[1]);return C},l}();E.GridRouter=d},30345:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;E.applyPacking=function c(_,m,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=m,g=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),R=0,M=0,F=0,B=[];function et(W,at){B=[],I=0,R=0,F=0;for(var H=0;H=W.height&&B[Q].x+B[Q].width+W.width+10-at<=1e-4){H=B[Q];break}B.push(W),void 0!==H?(W.x=H.x+H.width+10,W.y=H.bottom,W.space_left=W.height,W.bottom=W.y,H.space_left-=W.height+10,H.bottom+=W.height+10):(W.y=F,F+=W.height+10,W.x=0,W.bottom=W.y,W.space_left=W.height),W.y+W.height-R>-1e-4&&(R=W.y+W.height-0),W.x+W.width-I>-1e-4&&(I=W.x+W.width-0)}0!=_.length&&(function Y(W){W.forEach(function(H){!function at(H){var Q=Number.MAX_VALUE,nt=Number.MAX_VALUE,q=0,U=0;H.array.forEach(function(D){var mt=typeof D.width<"u"?D.width:L,St=typeof D.height<"u"?D.height:L;mt/=2,St/=2,q=Math.max(D.x+mt,q),Q=Math.min(D.x-mt,Q),U=Math.max(D.y+St,U),nt=Math.min(D.y-St,nt)}),H.width=q-Q,H.height=U-nt}(H)})}(_),function it(W,at){var H=Number.POSITIVE_INFINITY,Q=0;W.sort(function(ft,dt){return dt.height-ft.height});for(var nt=Qt=M=W.reduce(function(ft,dt){return ft.widthM||Et>1e-4;){if(1!=St){var Qt=q-(q-nt)/s_GOLDEN_SECTION;D=et(W,Qt)}if(0!=St){var Nt=nt+(q-nt)/s_GOLDEN_SECTION;mt=et(W,Nt)}if(Mt=Math.abs(Qt-Nt),Et=Math.abs(D-mt),Dmt?(nt=Qt,Qt=Nt,D=mt,St=1):(q=Nt,Nt=Qt,mt=D,St=0),U++>100)break}et(W,Q)}(_),l&&function V(W){W.forEach(function(at){var H={x:0,y:0};at.array.forEach(function(q){H.x+=q.x,H.y+=q.y}),H.x/=at.array.length,H.y/=at.array.length;var nt_x=at.x-(H.x-at.width/2)+u/2-I/2,nt_y=at.y-(H.y-at.height/2)+g/2-R/2;at.array.forEach(function(q){q.x+=nt_x,q.y+=nt_y})})}(_))},E.separateGraphs=function x(_,m){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),m=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=E.EventType||(E.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&typeof this.event[g.type]<"u"&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,g=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=g[I],L.y=C[I]},u.prototype.nodes=function(g){if(!g){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,R){"number"==typeof I&&((L.leaves[R]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,R){"number"==typeof I&&((L.groups[R]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(g){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),g(C),this},u.prototype.avoidOverlaps=function(g){return arguments.length?(this._avoidOverlaps=g,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(g){return arguments.length?(this._handleDisconnected=g,this):this._handleDisconnected},u.prototype.flowLayout=function(g,C){return arguments.length||(g="y"),this._directedLinkConstraints={axis:g,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(g){return arguments.length?(this._links=g,this):this._links},u.prototype.constraints=function(g){return arguments.length?(this._constraints=g,this):this._constraints},u.prototype.distanceMatrix=function(g){return arguments.length?(this._distanceMatrix=g,this):this._distanceMatrix},u.prototype.size=function(g){return g?(this._canvasSize=g,this):this._canvasSize},u.prototype.defaultNodeSize=function(g){return g?(this._defaultNodeSize=g,this):this._defaultNodeSize},u.prototype.groupCompactness=function(g){return g?(this._groupCompactness=g,this):this._groupCompactness},u.prototype.linkDistance=function(g){return g?(this._linkDistance="function"==typeof g?g:+g,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(g){return this._linkType=g,this},u.prototype.convergenceThreshold=function(g){return g?(this._threshold="function"==typeof g?g:+g,this):this._threshold},u.prototype.alpha=function(g){return arguments.length?(g=+g,this._alpha?this._alpha=g>0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return g*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(g,C,L,I,R,M){var F=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===R&&(R=!0),void 0===M&&(M=!0);var Q,V=this.nodes().length,it=V+2*this._groups.length,st=this._canvasSize[0],K=this._canvasSize[1],X=new Array(it),W=new Array(it),at=null,H=this._avoidOverlaps;this._nodes.forEach(function(Mt,Et){Mt.index=Et,typeof Mt.x>"u"&&(Mt.x=st/2,Mt.y=K/2),X[Et]=Mt.x,W[Et]=Mt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?Q=this._distanceMatrix:(Q=new p.Calculator(it,this._links,u.getSourceIndex,u.getTargetIndex,function(Mt){return F.getLinkLength(Mt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(it,function(){return 2}),this._links.forEach(function(Mt){"number"==typeof Mt.source&&(Mt.source=F._nodes[Mt.source]),"number"==typeof Mt.target&&(Mt.target=F._nodes[Mt.target])}),this._links.forEach(function(Mt){var Et=u.getSourceIndex(Mt),Qt=u.getTargetIndex(Mt);at[Et][Qt]=at[Qt][Et]=Mt.weight||1}));var nt=_.Descent.createSquareMatrix(it,function(Mt,Et){return Q[Mt][Et]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var B=V;this._groups.forEach(function(Et){(function(Et,Qt,Nt,ft){at[Et][Qt]=at[Qt][Et]=Nt,nt[Et][Qt]=nt[Qt][Et]=.1})(B,B+1,F._groupCompactness),X[B]=0,W[B++]=0,X[B]=0,W[B++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var U=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,U=U.concat(x.generateDirectedEdgeConstraints(V,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([X,W],nt),this._descent.locks.clear(),B=0;B0&&(this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,U).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,K,M),this.avoidOverlaps(H),H&&(this._nodes.forEach(function(Mt,Et){Mt.x=X[Et],Mt.y=W[Et]}),this._descent.project=new m.Projection(this._nodes,this._groups,this._rootGroup,U,!0).projectFunctions(),this._nodes.forEach(function(Mt,Et){X[Et]=Mt.x,W[Et]=Mt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=V,this._descent.scaleSnapByMaxH=V!=it;var St=_.Descent.createSquareMatrix(it,function(Mt,Et){return Mt>=V||Et>=V?at[Mt][Et]:0});this._descent.G=St,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,K,M),R?this.resume():this},u.prototype.initialLayout=function(g,C,L){if(this._groups.length>0&&g>0){var I=this._nodes.length,R=this._links.map(function(F){return{source:F.source.index,target:F.target.index}}),M=this._nodes.map(function(F){return{index:F.index}});this._groups.forEach(function(F,B){M.push({index:F.index=I+B})}),this._groups.forEach(function(F,B){typeof F.leaves<"u"&&F.leaves.forEach(function(Y){return R.push({source:F.index,target:Y.index})}),typeof F.groups<"u"&&F.groups.forEach(function(Y){return R.push({source:F.index,target:Y.index})})}),(new u).size(this.size()).nodes(M).links(R).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(F){C[F.index]=M[F.index].x,L[F.index]=M[F.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var R=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(B,Y){B.x=R[Y],B.y=M[Y]});var F=d.separateGraphs(this._nodes,this._links);d.applyPacking(F,g,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(B,Y){I._descent.x[0][Y]=B.x,I._descent.x[1][Y]=B.y,B.bounds&&(B.bounds.setXCentre(B.x),B.bounds.setYCentre(B.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,L){void 0===C&&(C=5);var I=[],R=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:g.source.x,y:g.source.y},F={x:g.target.x,y:g.target.y},B=R.addPoint(M,g.source.index),Y=R.addPoint(F,g.target.index);R.addEdgeIfVisible(M,F,g.source.index,g.target.index),typeof L<"u"&&L(R);var K=new p.Calculator(R.V.length,R.E,function(nt){return nt.source.id},function(nt){return nt.target.id},function(nt){return nt.length()}).PathFromNodeToNode(B.id,Y.id);if(1===K.length||K.length===R.V.length){var X=m.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);I=[X.sourceIntersection,X.arrowStart]}else{for(var W=K.length-2,at=R.V[K[W]].p,H=R.V[K[0]].p,Q=(I=[g.source.innerBounds.rayIntersection(at.x,at.y)],W);Q>=0;--Q)I.push(R.V[K[Q]].p);I.push(m.makeEdgeTo(H,g.target.innerBounds,C))}return I},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){typeof g.leaves<"u"&&g.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(L){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof g.groups<"u"&&g.groups.forEach(function(L){return u.drag(L,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(typeof g.leaves<"u"&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof g.groups<"u"&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();E.Layout=f},86461:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),m=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(g,C){var L=C[u.target]-C[u.source];return g+L*L},0))},h}();E.Link3D=p,E.Node3D=function h(f,u,g){void 0===f&&(f=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=f,this.y=u,this.z=g};var d=function(){function h(f,u,g){var C=this;void 0===g&&(g=1),this.nodes=f,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[B]=Math.random())}C.result[0][R]=I.x,C.result[1][R]=I.y,C.result[2][R]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var g=this.nodes.length,C=new l;this.useJaccardLinkLengths&&m.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(B){return B.length*=u.idealLinkLength});var L=new c.Calculator(g,this.links,function(B){return B.source},function(B){return B.target},function(B){return B.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(g,function(B,Y){return L[B][Y]}),R=x.Descent.createSquareMatrix(g,function(){return 2});this.links.forEach(function(B){var Y=B.source,V=B.target;return R[Y][V]=R[V][Y]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=R,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var g=function x(l,h){var f={},u=function(g,C){typeof f[g]>"u"&&(f[g]={}),f[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),L=h.getTargetIndex(g);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=g[u.getSourceIndex(C)],I=g[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],g=0,C=[],L=[];function I(K){K.index=K.lowlink=g++,C.push(K),K.onStack=!0;for(var X=0,W=K.out;X"u"?(I(at),K.lowlink=Math.min(K.lowlink,at.lowlink)):at.onStack&&(K.lowlink=Math.min(K.lowlink,at.index))}if(K.lowlink===K.index){for(var H=[];C.length&&((at=C.pop()).onStack=!1,H.push(at),at!==K););L.push(H.map(function(Q){return Q.id}))}}for(var R=0;R"u"&&I(st)}return L}Object.defineProperty(E,"__esModule",{value:!0}),E.symmetricDiffLinkLengths=function m(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.sqrt(s(u,g)-c(u,g))},h)},E.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,g){return Math.min(Object.keys(u).length,Object.keys(g).length)<1.1?0:c(u,g)/s(u,g)},h)},E.generateDirectedEdgeConstraints=function t(l,h,f,u){var g=d(l,h,u),C={};g.forEach(function(I,R){return I.forEach(function(M){return C[M]=R})});var L=[];return h.forEach(function(I){var R=u.getSourceIndex(I),M=u.getTargetIndex(I);C[R]!==C[M]&&L.push({axis:f,left:R,right:M,gap:u.getMinSeparation(I)})}),L},E.stronglyConnectedComponents=d},33900:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function h(f,u,g){this.source=f,this.target=u,this.type=g};E.PowerEdge=s;var c=function(){function h(f,u,g,C){var L=this;if(this.linkAccessor=g,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(g.a,g.b,f),!0}},h.prototype.nEdges=function(f,u){var g=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(I){var R=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof R.gid>"u"?I.source:g[R.gid],typeof M.gid>"u"?I.target:g[M.gid],I.type))}),g},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,f,u){h.forAll(function(g){if(g.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(g.id);else{var C=f;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var L in g.definition)C[L]=g.definition[L];f.groups||(f.groups=[]),f.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}E.Configuration=c;var _=function(){function h(f,u,g,C,L){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=g,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();E.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function m(h,f){var u={};for(var g in h)g in f&&(u[g]=h[g]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();E.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(g){!u&&g.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var g=this.sets[f];g.remove(u),0===g.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,g){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(g,C){if(C in f.sets){var L=g.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();E.LinkSets=t,E.getGroups=function l(h,f,u,g){for(var L=new c(h.length,f,u,g);L.greedyMerge(););var I=[],R=L.getGroupHierarchy(I);return I.forEach(function(M){var F=function(B){var Y=M[B];"number"==typeof Y&&(M[B]=h[Y])};F("source"),F("target")}),{groups:R,powerEdges:I}}},88866:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var m="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();E.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();E.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),m=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,g=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var R=C.right===g;I===L.get_child(u)?C.set_child(R,t.single_rotate(g,!u)):C.set_child(R,t.double_rotate(g,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==g&&(C=g),g=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,g=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var R=t.single_rotate(h,C);f.set_child(L,R),f=R}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var F=u.right===f;t.is_red(M.get_child(L))?u.set_child(F,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(F,t.single_rotate(f,L));var B=u.get_child(F);B.red=!0,h.red=!0,B.left.red=!1,B.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);E.RBTree=m},4068:function(w,E,s){"use strict";var K,c=this&&this.__extends||(K=function(X,W){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,H){at.__proto__=H}||function(at,H){for(var Q in H)H.hasOwnProperty(Q)&&(at[Q]=H[Q])})(X,W)},function(X,W){function at(){this.constructor=X}K(X,W),X.prototype=null===W?Object.create(W):(at.prototype=W.prototype,new at)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(98237),_=s(94655);function m(K){return K.bounds=typeof K.leaves<"u"?K.leaves.reduce(function(X,W){return W.bounds.union(X)},p.empty()):p.empty(),typeof K.groups<"u"&&(K.bounds=K.groups.reduce(function(X,W){return m(W).union(X)},K.bounds)),K.bounds=K.bounds.inflate(K.padding),K.bounds}E.computeGroupBounds=m;var p=function(){function K(X,W,at,H){this.x=X,this.X=W,this.y=at,this.Y=H}return K.empty=function(){return new K(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},K.prototype.cx=function(){return(this.x+this.X)/2},K.prototype.cy=function(){return(this.y+this.Y)/2},K.prototype.overlapX=function(X){var W=this.cx(),at=X.cx();return W<=at&&X.x0?at[0]:null},K.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},K.lineIntersection=function(X,W,at,H,Q,nt,q,U){var D=at-X,mt=q-Q,St=H-W,Mt=U-nt,Et=Mt*D-mt*St;if(0==Et)return null;var Qt=X-Q,Nt=W-nt,dt=(mt*Nt-Mt*Qt)/Et,Zt=(D*Nt-St*Qt)/Et;return dt>=0&&dt<=1&&Zt>=0&&Zt<=1?{x:X+dt*D,y:W+dt*St}:null},K.prototype.inflate=function(X){return new K(this.x-X,this.X+X,this.y-X,this.Y+X)},K}();E.Rectangle=p,E.makeEdgeBetween=function t(K,X,W){var at=K.rayIntersection(X.cx(),X.cy())||{x:K.cx(),y:K.cy()},H=X.rayIntersection(K.cx(),K.cy())||{x:X.cx(),y:X.cy()},Q=H.x-at.x,nt=H.y-at.y,q=Math.sqrt(Q*Q+nt*nt),U=q-W;return{sourceIntersection:at,targetIntersection:H,arrowStart:{x:at.x+U*Q/q,y:at.y+U*nt/q}}},E.makeEdgeTo=function d(K,X,W){var at=X.rayIntersection(K.x,K.y);at||(at={x:X.cx(),y:X.cy()});var H=at.x-K.x,Q=at.y-K.y,nt=Math.sqrt(H*H+Q*Q);return{x:at.x-W*H/nt,y:at.y-W*Q/nt}};var l=function K(X,W,at){this.v=X,this.r=W,this.pos=at,this.prev=u(),this.next=u()},h=function K(X,W,at){this.isOpen=X,this.v=W,this.pos=at};function f(K,X){return K.pos>X.pos?1:K.pos0&&(K[at].insert(Q),Q[H].insert(K))};W("next","prev"),W("prev","next")}};function L(K,X,W,at){void 0===at&&(at=!1);var H=K.padding,Q=typeof K.groups<"u"?K.groups.length:0,nt=typeof K.leaves<"u"?K.leaves.length:0,q=Q?K.groups.reduce(function(ie,ue){return ie.concat(L(ue,X,W,!0))},[]):[],U=(at?2:0)+nt+Q,D=new Array(U),mt=new Array(U),St=0,Mt=function(ie,ue){mt[St]=ie,D[St++]=ue};if(at){var Et=K.bounds,Qt=X.getCentre(Et),Nt=X.getSize(Et)/2,ft=X.getOpen(Et),dt=X.getClose(Et),Ct=Qt-Nt+H/2,Zt=Qt+Nt-H/2;K.minVar.desiredPosition=Ct,Mt(X.makeRect(ft,dt,Ct,H),K.minVar),K.maxVar.desiredPosition=Zt,Mt(X.makeRect(ft,dt,Zt,H),K.maxVar)}nt&&K.leaves.forEach(function(ie){return Mt(ie.bounds,ie.variable)}),Q&&K.groups.forEach(function(ie){var ue=ie.bounds;Mt(X.makeRect(X.getOpen(ue),X.getClose(ue),X.getCentre(ue),X.getSize(ue)),ie.minVar)});var se=I(mt,D,X,W);return Q&&(D.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),se.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),K.groups.forEach(function(ie){var ue=(ie.padding-X.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(xe){return xe.gap+=ue}),ie.minVar.cOut.forEach(function(xe){xe.left=ie.maxVar,xe.gap+=ue})})),q.concat(se)}function I(K,X,W,at){var H,Q=K.length,nt=2*Q;console.assert(X.length>=Q);var q=new Array(nt);for(H=0;Hq[at]&&(q[at]=U)}nt=q})}},K.prototype.createAlignment=function(X){var W=this,at=this.nodes[X.offsets[0].node].variable;this.makeFeasible(X);var H="x"===X.axis?this.xConstraints:this.yConstraints;X.offsets.slice(1).forEach(function(Q){H.push(new x.Constraint(at,W.nodes[Q.node].variable,Q.offset,!0))})},K.prototype.createConstraints=function(X){var W=this,at=function(H){return typeof H.type>"u"||"separation"===H.type};this.xConstraints=X.filter(function(H){return"x"===H.axis&&at(H)}).map(function(H){return W.createSeparation(H)}),this.yConstraints=X.filter(function(H){return"y"===H.axis&&at(H)}).map(function(H){return W.createSeparation(H)}),X.filter(function(H){return"alignment"===H.type}).forEach(function(H){return W.createAlignment(H)})},K.prototype.setupVariablesAndBounds=function(X,W,at,H){this.nodes.forEach(function(Q,nt){Q.fixed?(Q.variable.weight=Q.fixedWeight?Q.fixedWeight:1e3,at[nt]=H(Q)):Q.variable.weight=1;var q=(Q.width||0)/2,U=(Q.height||0)/2,D=X[nt],mt=W[nt];Q.bounds=new p(D-q,D+q,mt-U,mt+U)})},K.prototype.xProject=function(X,W,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(X,W,X,at,function(H){return H.px},this.xConstraints,Y,function(H){return H.bounds.setXCentre(at[H.variable.index]=H.variable.position())},function(H){var Q=at[H.minVar.index]=H.minVar.position(),nt=at[H.maxVar.index]=H.maxVar.position(),q=H.padding/2;H.bounds.x=Q-q,H.bounds.X=nt+q})},K.prototype.yProject=function(X,W,at){!this.rootGroup&&!this.yConstraints||this.project(X,W,W,at,function(H){return H.py},this.yConstraints,V,function(H){return H.bounds.setYCentre(at[H.variable.index]=H.variable.position())},function(H){var Q=at[H.minVar.index]=H.minVar.position(),nt=at[H.maxVar.index]=H.maxVar.position(),q=H.padding/2;H.bounds.y=Q-q,H.bounds.Y=nt+q})},K.prototype.projectFunctions=function(){var X=this;return[function(W,at,H){return X.xProject(W,at,H)},function(W,at,H){return X.yProject(W,at,H)}]},K.prototype.project=function(X,W,at,H,Q,nt,q,U,D){this.setupVariablesAndBounds(X,W,H,Q),this.rootGroup&&this.avoidOverlaps&&(m(this.rootGroup),nt=nt.concat(q(this.rootGroup))),this.solve(this.variables,nt,at,H),this.nodes.forEach(U),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(D),m(this.rootGroup))},K.prototype.solve=function(X,W,at,H){var Q=new x.Solver(X,W);Q.setStartingPositions(at),Q.setDesiredPositions(H),Q.solve()},K}();E.Projection=st},33858:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},m=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new _(g);for(g=this.es.length;g--;){var C=this.es[g],L=h(C),I=f(C),R=u(C);this.neighbours[L].neighbours.push(new x(I,R)),this.neighbours[I].neighbours.push(new x(L,R))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(B,Y){return B.q=Y}))}}return u},t}();E.Calculator=p},98237:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();E.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();E.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();E.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();E.Solver=p,E.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(et){return new x(et.desiredCenter)}),u=[],g=d.length,C=0;C=rt);)++ut;if(ut-k>16&&b.subarray&&$t)return $t.decode(b.subarray(k,ut));for(var yt="";k>10,56320|1023&De)}}else yt+=String.fromCharCode((31&Ot)<<6|Bt)}else yt+=String.fromCharCode(Ot)}return yt}function Jt(b,k){return b?Vt(an,b,k):""}function me(b,k,Z,rt){if(!(rt>0))return 0;for(var ut=Z,yt=Z+rt-1,Ot=0;Ot=55296&&Bt<=57343&&(Bt=65536+((1023&Bt)<<10)|1023&b.charCodeAt(++Ot)),Bt<=127){if(Z>=yt)break;k[Z++]=Bt}else if(Bt<=2047){if(Z+1>=yt)break;k[Z++]=192|Bt>>6,k[Z++]=128|63&Bt}else if(Bt<=65535){if(Z+2>=yt)break;k[Z++]=224|Bt>>12,k[Z++]=128|Bt>>6&63,k[Z++]=128|63&Bt}else{if(Z+3>=yt)break;k[Z++]=240|Bt>>18,k[Z++]=128|Bt>>12&63,k[Z++]=128|Bt>>6&63,k[Z++]=128|63&Bt}}return k[Z]=0,Z-ut}function Se(b){for(var k=0,Z=0;Z=55296&&rt<=57343&&(rt=65536+((1023&rt)<<10)|1023&b.charCodeAt(++Z)),rt<=127?++k:k+=rt<=2047?2:rt<=65535?3:4}return k}function Ce(b,k){return b%k>0&&(b+=k-b%k),b}function Tt(b){ze=b,D.HEAP8=Ge=new Int8Array(b),D.HEAP16=new Int16Array(b),D.HEAP32=_e=new Int32Array(b),D.HEAPU8=an=new Uint8Array(b),D.HEAPU16=new Uint16Array(b),D.HEAPU32=new Uint32Array(b),D.HEAPF32=new Float32Array(b),D.HEAPF64=un=new Float64Array(b)}var Yt,se=[],pe=[],qt=[];var mi=0,Ei=null;function Zi(b){mi++,D.monitorRunDependencies&&D.monitorRunDependencies(mi)}function Pi(b){if(mi--,D.monitorRunDependencies&&D.monitorRunDependencies(mi),0==mi&&Ei){var k=Ei;Ei=null,k()}}function gi(b){D.onAbort&&D.onAbort(b),ue(b="Aborted("+b+")"),Pe=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var k=new WebAssembly.RuntimeError(b);throw St(k),k}D.preloadedImages={},D.preloadedAudios={};var tn;function Ee(b){return b.startsWith("data:application/octet-stream;base64,")}function yi(b){try{if(b==tn&&xe)return new Uint8Array(xe);throw"both async and sync fetching of the wasm failed"}catch(k){gi(k)}}Ee(tn="expatlib.wasm")||(tn=function dt(b){return D.locateFile?D.locateFile(b,ft):ft+b}(tn));var He,Tn,Bn={11694:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";k.startElement()},11912:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";k.endElement()},12124:function(b){var k=D.getCache(D.CExpatJS)[b];if(!k.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";k.characterData()}};function Di(b){for(;b.length>0;){var k=b.shift();if("function"!=typeof k){var Z=k.func;"number"==typeof Z?void 0===k.arg?In(Z)():In(Z)(k.arg):Z(void 0===k.arg?null:k.arg)}else k(D)}}function In(b){return Yt.get(b)}var be={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,k){for(var Z=0,rt=b.length-1;rt>=0;rt--){var ut=b[rt];"."===ut?b.splice(rt,1):".."===ut?(b.splice(rt,1),Z++):Z&&(b.splice(rt,1),Z--)}if(k)for(;Z;Z--)b.unshift("..");return b},normalize:function(b){var k="/"===b.charAt(0),Z="/"===b.substr(-1);return!(b=be.normalizeArray(b.split("/").filter(function(rt){return!!rt}),!k).join("/"))&&!k&&(b="."),b&&Z&&(b+="/"),(k?"/":"")+b},dirname:function(b){var k=be.splitPath(b),Z=k[0],rt=k[1];return Z||rt?(rt&&(rt=rt.substr(0,rt.length-1)),Z+rt):"."},basename:function(b){if("/"===b)return"/";var k=(b=(b=be.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===k?b:b.substr(k+1)},extname:function(b){return be.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return be.normalize(b.join("/"))},join2:function(b,k){return be.normalize(b+"/"+k)}};var Hn={resolve:function(){for(var b="",k=!1,Z=arguments.length-1;Z>=-1&&!k;Z--){var rt=Z>=0?arguments[Z]:A.cwd();if("string"!=typeof rt)throw new TypeError("Arguments to path.resolve must be strings");if(!rt)return"";b=rt+"/"+b,k="/"===rt.charAt(0)}return(k?"/":"")+(b=be.normalizeArray(b.split("/").filter(function(ut){return!!ut}),!k).join("/"))||"."},relative:function(b,k){function Z(De){for(var Ye=0;Ye=0&&""===De[on];on--);return Ye>on?[]:De.slice(Ye,on-Ye+1)}b=Hn.resolve(b).substr(1),k=Hn.resolve(k).substr(1);for(var rt=Z(b.split("/")),ut=Z(k.split("/")),yt=Math.min(rt.length,ut.length),Ot=yt,Bt=0;Bt0&&(ie(Vt(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,k){null===k||10===k?(ue(Vt(b.output,0)),b.output=[]):0!=k&&b.output.push(k)},flush:function(b){b.output&&b.output.length>0&&(ue(Vt(b.output,0)),b.output=[])}}};var $={ops_table:null,mount:function(b){return $.createNode(null,"/",16895,0)},createNode:function(b,k,Z,rt){if(A.isBlkdev(Z)||A.isFIFO(Z))throw new A.ErrnoError(63);$.ops_table||($.ops_table={dir:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,lookup:$.node_ops.lookup,mknod:$.node_ops.mknod,rename:$.node_ops.rename,unlink:$.node_ops.unlink,rmdir:$.node_ops.rmdir,readdir:$.node_ops.readdir,symlink:$.node_ops.symlink},stream:{llseek:$.stream_ops.llseek}},file:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:{llseek:$.stream_ops.llseek,read:$.stream_ops.read,write:$.stream_ops.write,allocate:$.stream_ops.allocate,mmap:$.stream_ops.mmap,msync:$.stream_ops.msync}},link:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr,readlink:$.node_ops.readlink},stream:{}},chrdev:{node:{getattr:$.node_ops.getattr,setattr:$.node_ops.setattr},stream:A.chrdev_stream_ops}});var ut=A.createNode(b,k,Z,rt);return A.isDir(ut.mode)?(ut.node_ops=$.ops_table.dir.node,ut.stream_ops=$.ops_table.dir.stream,ut.contents={}):A.isFile(ut.mode)?(ut.node_ops=$.ops_table.file.node,ut.stream_ops=$.ops_table.file.stream,ut.usedBytes=0,ut.contents=null):A.isLink(ut.mode)?(ut.node_ops=$.ops_table.link.node,ut.stream_ops=$.ops_table.link.stream):A.isChrdev(ut.mode)&&(ut.node_ops=$.ops_table.chrdev.node,ut.stream_ops=$.ops_table.chrdev.stream),ut.timestamp=Date.now(),b&&(b.contents[k]=ut,b.timestamp=ut.timestamp),ut},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,k){var Z=b.contents?b.contents.length:0;if(!(Z>=k)){k=Math.max(k,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(k=Math.max(k,256));var ut=b.contents;b.contents=new Uint8Array(k),b.usedBytes>0&&b.contents.set(ut.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,k){if(b.usedBytes!=k)if(0==k)b.contents=null,b.usedBytes=0;else{var Z=b.contents;b.contents=new Uint8Array(k),Z&&b.contents.set(Z.subarray(0,Math.min(k,b.usedBytes))),b.usedBytes=k}},node_ops:{getattr:function(b){var k={};return k.dev=A.isChrdev(b.mode)?b.id:1,k.ino=b.id,k.mode=b.mode,k.nlink=1,k.uid=0,k.gid=0,k.rdev=b.rdev,k.size=A.isDir(b.mode)?4096:A.isFile(b.mode)?b.usedBytes:A.isLink(b.mode)?b.link.length:0,k.atime=new Date(b.timestamp),k.mtime=new Date(b.timestamp),k.ctime=new Date(b.timestamp),k.blksize=4096,k.blocks=Math.ceil(k.size/k.blksize),k},setattr:function(b,k){void 0!==k.mode&&(b.mode=k.mode),void 0!==k.timestamp&&(b.timestamp=k.timestamp),void 0!==k.size&&$.resizeFileStorage(b,k.size)},lookup:function(b,k){throw A.genericErrors[44]},mknod:function(b,k,Z,rt){return $.createNode(b,k,Z,rt)},rename:function(b,k,Z){if(A.isDir(b.mode)){var rt;try{rt=A.lookupNode(k,Z)}catch{}if(rt)for(var ut in rt.contents)throw new A.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=Z,k.contents[Z]=b,k.timestamp=b.parent.timestamp,b.parent=k},unlink:function(b,k){delete b.contents[k],b.timestamp=Date.now()},rmdir:function(b,k){var Z=A.lookupNode(b,k);for(var rt in Z.contents)throw new A.ErrnoError(55);delete b.contents[k],b.timestamp=Date.now()},readdir:function(b){var k=[".",".."];for(var Z in b.contents)!b.contents.hasOwnProperty(Z)||k.push(Z);return k},symlink:function(b,k,Z){var rt=$.createNode(b,k,41471,0);return rt.link=Z,rt},readlink:function(b){if(!A.isLink(b.mode))throw new A.ErrnoError(28);return b.link}},stream_ops:{read:function(b,k,Z,rt,ut){var yt=b.node.contents;if(ut>=b.node.usedBytes)return 0;var Ot=Math.min(b.node.usedBytes-ut,rt);if(Ot>8&&yt.subarray)k.set(yt.subarray(ut,ut+Ot),Z);else for(var Bt=0;Bt0||rt+Z8)throw new A.ErrnoError(32);for(var ut=be.normalizeArray(b.split("/").filter(function(we){return!!we}),!1),yt=A.root,Ot="/",Bt=0;Bt40)throw new A.ErrnoError(32)}}return{path:Ot,node:yt}},getPath:function(b){for(var k;;){if(A.isRoot(b)){var Z=b.mount.mountpoint;return k?"/"!==Z[Z.length-1]?Z+"/"+k:Z+k:Z}k=k?b.name+"/"+k:b.name,b=b.parent}},hashName:function(b,k){for(var Z=0,rt=0;rt>>0)%A.nameTable.length},hashAddNode:function(b){var k=A.hashName(b.parent.id,b.name);b.name_next=A.nameTable[k],A.nameTable[k]=b},hashRemoveNode:function(b){var k=A.hashName(b.parent.id,b.name);if(A.nameTable[k]===b)A.nameTable[k]=b.name_next;else for(var Z=A.nameTable[k];Z;){if(Z.name_next===b){Z.name_next=b.name_next;break}Z=Z.name_next}},lookupNode:function(b,k){var Z=A.mayLookup(b);if(Z)throw new A.ErrnoError(Z,b);for(var rt=A.hashName(b.id,k),ut=A.nameTable[rt];ut;ut=ut.name_next)if(ut.parent.id===b.id&&ut.name===k)return ut;return A.lookup(b,k)},createNode:function(b,k,Z,rt){var ut=new A.FSNode(b,k,Z,rt);return A.hashAddNode(ut),ut},destroyNode:function(b){A.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var k=A.flagModes[b];if(typeof k>"u")throw new Error("Unknown file open mode: "+b);return k},flagsToPermissionString:function(b){var k=["r","w","rw"][3&b];return 512&b&&(k+="w"),k},nodePermissions:function(b,k){return A.ignorePermissions?0:k.includes("r")&&!(292&b.mode)||k.includes("w")&&!(146&b.mode)||k.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return A.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,k){try{return A.lookupNode(b,k),20}catch{}return A.nodePermissions(b,"wx")},mayDelete:function(b,k,Z){var rt;try{rt=A.lookupNode(b,k)}catch(yt){return yt.errno}var ut=A.nodePermissions(b,"wx");if(ut)return ut;if(Z){if(!A.isDir(rt.mode))return 54;if(A.isRoot(rt)||A.getPath(rt)===A.cwd())return 10}else if(A.isDir(rt.mode))return 31;return 0},mayOpen:function(b,k){return b?A.isLink(b.mode)?32:A.isDir(b.mode)&&("r"!==A.flagsToPermissionString(k)||512&k)?31:A.nodePermissions(b,A.flagsToPermissionString(k)):44},MAX_OPEN_FDS:4096,nextfd:function(b,k){k=k||A.MAX_OPEN_FDS;for(var Z=b=b||0;Z<=k;Z++)if(!A.streams[Z])return Z;throw new A.ErrnoError(33)},getStream:function(b){return A.streams[b]},createStream:function(b,k,Z){A.FSStream||(A.FSStream=function(){},A.FSStream.prototype={object:{get:function(){return this.node},set:function(Ot){this.node=Ot}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var rt=new A.FSStream;for(var ut in b)rt[ut]=b[ut];b=rt;var yt=A.nextfd(k,Z);return b.fd=yt,A.streams[yt]=b,b},closeStream:function(b){A.streams[b]=null},chrdev_stream_ops:{open:function(b){var k=A.getDevice(b.node.rdev);b.stream_ops=k.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new A.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,k){return b<<8|k},registerDevice:function(b,k){A.devices[b]={stream_ops:k}},getDevice:function(b){return A.devices[b]},getMounts:function(b){for(var k=[],Z=[b];Z.length;){var rt=Z.pop();k.push(rt),Z.push.apply(Z,rt.mounts)}return k},syncfs:function(b,k){"function"==typeof b&&(k=b,b=!1),A.syncFSRequests++,A.syncFSRequests>1&&ue("warning: "+A.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=A.getMounts(A.root.mount),rt=0;function ut(Ot){return A.syncFSRequests--,k(Ot)}function yt(Ot){if(Ot)return yt.errored?void 0:(yt.errored=!0,ut(Ot));++rt>=Z.length&&ut(null)}Z.forEach(function(Ot){if(!Ot.type.syncfs)return yt(null);Ot.type.syncfs(Ot,b,yt)})},mount:function(b,k,Z){var yt,rt="/"===Z,ut=!Z;if(rt&&A.root)throw new A.ErrnoError(10);if(!rt&&!ut){var Ot=A.lookupPath(Z,{follow_mount:!1});if(Z=Ot.path,A.isMountpoint(yt=Ot.node))throw new A.ErrnoError(10);if(!A.isDir(yt.mode))throw new A.ErrnoError(54)}var Bt={type:b,opts:k,mountpoint:Z,mounts:[]},ee=b.mount(Bt);return ee.mount=Bt,Bt.root=ee,rt?A.root=ee:yt&&(yt.mounted=Bt,yt.mount&&yt.mount.mounts.push(Bt)),ee},unmount:function(b){var k=A.lookupPath(b,{follow_mount:!1});if(!A.isMountpoint(k.node))throw new A.ErrnoError(28);var Z=k.node,rt=Z.mounted,ut=A.getMounts(rt);Object.keys(A.nameTable).forEach(function(Ot){for(var Bt=A.nameTable[Ot];Bt;){var ee=Bt.name_next;ut.includes(Bt.mount)&&A.destroyNode(Bt),Bt=ee}}),Z.mounted=null;var yt=Z.mount.mounts.indexOf(rt);Z.mount.mounts.splice(yt,1)},lookup:function(b,k){return b.node_ops.lookup(b,k)},mknod:function(b,k,Z){var ut=A.lookupPath(b,{parent:!0}).node,yt=be.basename(b);if(!yt||"."===yt||".."===yt)throw new A.ErrnoError(28);var Ot=A.mayCreate(ut,yt);if(Ot)throw new A.ErrnoError(Ot);if(!ut.node_ops.mknod)throw new A.ErrnoError(63);return ut.node_ops.mknod(ut,yt,k,Z)},create:function(b,k){return k=void 0!==k?k:438,k&=4095,A.mknod(b,k|=32768,0)},mkdir:function(b,k){return k=void 0!==k?k:511,k&=1023,A.mknod(b,k|=16384,0)},mkdirTree:function(b,k){for(var Z=b.split("/"),rt="",ut=0;ut"u"&&(Z=k,k=438),A.mknod(b,k|=8192,Z)},symlink:function(b,k){if(!Hn.resolve(b))throw new A.ErrnoError(44);var rt=A.lookupPath(k,{parent:!0}).node;if(!rt)throw new A.ErrnoError(44);var ut=be.basename(k),yt=A.mayCreate(rt,ut);if(yt)throw new A.ErrnoError(yt);if(!rt.node_ops.symlink)throw new A.ErrnoError(63);return rt.node_ops.symlink(rt,ut,b)},rename:function(b,k){var Bt,ee,Z=be.dirname(b),rt=be.dirname(k),ut=be.basename(b),yt=be.basename(k);if(Bt=A.lookupPath(b,{parent:!0}).node,ee=A.lookupPath(k,{parent:!0}).node,!Bt||!ee)throw new A.ErrnoError(44);if(Bt.mount!==ee.mount)throw new A.ErrnoError(75);var on,De=A.lookupNode(Bt,ut),Ye=Hn.relative(b,rt);if("."!==Ye.charAt(0))throw new A.ErrnoError(28);if("."!==(Ye=Hn.relative(k,Z)).charAt(0))throw new A.ErrnoError(55);try{on=A.lookupNode(ee,yt)}catch{}if(De!==on){var we=A.isDir(De.mode),Ie=A.mayDelete(Bt,ut,we);if(Ie)throw new A.ErrnoError(Ie);if(Ie=on?A.mayDelete(ee,yt,we):A.mayCreate(ee,yt))throw new A.ErrnoError(Ie);if(!Bt.node_ops.rename)throw new A.ErrnoError(63);if(A.isMountpoint(De)||on&&A.isMountpoint(on))throw new A.ErrnoError(10);if(ee!==Bt&&(Ie=A.nodePermissions(Bt,"w")))throw new A.ErrnoError(Ie);A.hashRemoveNode(De);try{Bt.node_ops.rename(De,ee,yt)}catch(Me){throw Me}finally{A.hashAddNode(De)}}},rmdir:function(b){var Z=A.lookupPath(b,{parent:!0}).node,rt=be.basename(b),ut=A.lookupNode(Z,rt),yt=A.mayDelete(Z,rt,!0);if(yt)throw new A.ErrnoError(yt);if(!Z.node_ops.rmdir)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);Z.node_ops.rmdir(Z,rt),A.destroyNode(ut)},readdir:function(b){var Z=A.lookupPath(b,{follow:!0}).node;if(!Z.node_ops.readdir)throw new A.ErrnoError(54);return Z.node_ops.readdir(Z)},unlink:function(b){var Z=A.lookupPath(b,{parent:!0}).node,rt=be.basename(b),ut=A.lookupNode(Z,rt),yt=A.mayDelete(Z,rt,!1);if(yt)throw new A.ErrnoError(yt);if(!Z.node_ops.unlink)throw new A.ErrnoError(63);if(A.isMountpoint(ut))throw new A.ErrnoError(10);Z.node_ops.unlink(Z,rt),A.destroyNode(ut)},readlink:function(b){var Z=A.lookupPath(b).node;if(!Z)throw new A.ErrnoError(44);if(!Z.node_ops.readlink)throw new A.ErrnoError(28);return Hn.resolve(A.getPath(Z.parent),Z.node_ops.readlink(Z))},stat:function(b,k){var rt=A.lookupPath(b,{follow:!k}).node;if(!rt)throw new A.ErrnoError(44);if(!rt.node_ops.getattr)throw new A.ErrnoError(63);return rt.node_ops.getattr(rt)},lstat:function(b){return A.stat(b,!0)},chmod:function(b,k,Z){var rt;if(!(rt="string"==typeof b?A.lookupPath(b,{follow:!Z}).node:b).node_ops.setattr)throw new A.ErrnoError(63);rt.node_ops.setattr(rt,{mode:4095&k|-4096&rt.mode,timestamp:Date.now()})},lchmod:function(b,k){A.chmod(b,k,!0)},fchmod:function(b,k){var Z=A.getStream(b);if(!Z)throw new A.ErrnoError(8);A.chmod(Z.node,k)},chown:function(b,k,Z,rt){var ut;if(!(ut="string"==typeof b?A.lookupPath(b,{follow:!rt}).node:b).node_ops.setattr)throw new A.ErrnoError(63);ut.node_ops.setattr(ut,{timestamp:Date.now()})},lchown:function(b,k,Z){A.chown(b,k,Z,!0)},fchown:function(b,k,Z){var rt=A.getStream(b);if(!rt)throw new A.ErrnoError(8);A.chown(rt.node,k,Z)},truncate:function(b,k){if(k<0)throw new A.ErrnoError(28);var Z;if(!(Z="string"==typeof b?A.lookupPath(b,{follow:!0}).node:b).node_ops.setattr)throw new A.ErrnoError(63);if(A.isDir(Z.mode))throw new A.ErrnoError(31);if(!A.isFile(Z.mode))throw new A.ErrnoError(28);var ut=A.nodePermissions(Z,"w");if(ut)throw new A.ErrnoError(ut);Z.node_ops.setattr(Z,{size:k,timestamp:Date.now()})},ftruncate:function(b,k){var Z=A.getStream(b);if(!Z)throw new A.ErrnoError(8);if(0==(2097155&Z.flags))throw new A.ErrnoError(28);A.truncate(Z.node,k)},utime:function(b,k,Z){var ut=A.lookupPath(b,{follow:!0}).node;ut.node_ops.setattr(ut,{timestamp:Math.max(k,Z)})},open:function(b,k,Z,rt,ut){if(""===b)throw new A.ErrnoError(44);var yt;if(Z=typeof Z>"u"?438:Z,Z=64&(k="string"==typeof k?A.modeStringToFlags(k):k)?4095&Z|32768:0,"object"==typeof b)yt=b;else{b=be.normalize(b);try{yt=A.lookupPath(b,{follow:!(131072&k)}).node}catch{}}var Bt=!1;if(64&k)if(yt){if(128&k)throw new A.ErrnoError(20)}else yt=A.mknod(b,Z,0),Bt=!0;if(!yt)throw new A.ErrnoError(44);if(A.isChrdev(yt.mode)&&(k&=-513),65536&k&&!A.isDir(yt.mode))throw new A.ErrnoError(54);if(!Bt){var ee=A.mayOpen(yt,k);if(ee)throw new A.ErrnoError(ee)}512&k&&A.truncate(yt,0),k&=-131713;var De=A.createStream({node:yt,path:A.getPath(yt),id:yt.id,flags:k,mode:yt.mode,seekable:!0,position:0,stream_ops:yt.stream_ops,node_ops:yt.node_ops,ungotten:[],error:!1},rt,ut);return De.stream_ops.open&&De.stream_ops.open(De),D.logReadFiles&&!(1&k)&&(A.readFiles||(A.readFiles={}),b in A.readFiles||(A.readFiles[b]=1)),De},close:function(b){if(A.isClosed(b))throw new A.ErrnoError(8);b.getdents&&(b.getdents=null);try{b.stream_ops.close&&b.stream_ops.close(b)}catch(k){throw k}finally{A.closeStream(b.fd)}b.fd=null},isClosed:function(b){return null===b.fd},llseek:function(b,k,Z){if(A.isClosed(b))throw new A.ErrnoError(8);if(!b.seekable||!b.stream_ops.llseek)throw new A.ErrnoError(70);if(0!=Z&&1!=Z&&2!=Z)throw new A.ErrnoError(28);return b.position=b.stream_ops.llseek(b,k,Z),b.ungotten=[],b.position},read:function(b,k,Z,rt,ut){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(1==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.read)throw new A.ErrnoError(28);var yt=typeof ut<"u";if(yt){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Ot=b.stream_ops.read(b,k,Z,rt,ut);return yt||(b.position+=Ot),Ot},write:function(b,k,Z,rt,ut,yt){if(rt<0||ut<0)throw new A.ErrnoError(28);if(A.isClosed(b))throw new A.ErrnoError(8);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(A.isDir(b.node.mode))throw new A.ErrnoError(31);if(!b.stream_ops.write)throw new A.ErrnoError(28);b.seekable&&1024&b.flags&&A.llseek(b,0,2);var Ot=typeof ut<"u";if(Ot){if(!b.seekable)throw new A.ErrnoError(70)}else ut=b.position;var Bt=b.stream_ops.write(b,k,Z,rt,ut,yt);return Ot||(b.position+=Bt),Bt},allocate:function(b,k,Z){if(A.isClosed(b))throw new A.ErrnoError(8);if(k<0||Z<=0)throw new A.ErrnoError(28);if(0==(2097155&b.flags))throw new A.ErrnoError(8);if(!A.isFile(b.node.mode)&&!A.isDir(b.node.mode))throw new A.ErrnoError(43);if(!b.stream_ops.allocate)throw new A.ErrnoError(138);b.stream_ops.allocate(b,k,Z)},mmap:function(b,k,Z,rt,ut,yt){if(0!=(2&ut)&&0==(2&yt)&&2!=(2097155&b.flags))throw new A.ErrnoError(2);if(1==(2097155&b.flags))throw new A.ErrnoError(2);if(!b.stream_ops.mmap)throw new A.ErrnoError(43);return b.stream_ops.mmap(b,k,Z,rt,ut,yt)},msync:function(b,k,Z,rt,ut){return b&&b.stream_ops.msync?b.stream_ops.msync(b,k,Z,rt,ut):0},munmap:function(b){return 0},ioctl:function(b,k,Z){if(!b.stream_ops.ioctl)throw new A.ErrnoError(59);return b.stream_ops.ioctl(b,k,Z)},readFile:function(b,k){if((k=k||{}).flags=k.flags||0,k.encoding=k.encoding||"binary","utf8"!==k.encoding&&"binary"!==k.encoding)throw new Error('Invalid encoding type "'+k.encoding+'"');var Z,rt=A.open(b,k.flags),yt=A.stat(b).size,Ot=new Uint8Array(yt);return A.read(rt,Ot,0,yt,0),"utf8"===k.encoding?Z=Vt(Ot,0):"binary"===k.encoding&&(Z=Ot),A.close(rt),Z},writeFile:function(b,k,Z){(Z=Z||{}).flags=Z.flags||577;var rt=A.open(b,Z.flags,Z.mode);if("string"==typeof k){var ut=new Uint8Array(Se(k)+1),yt=me(k,ut,0,ut.length);A.write(rt,ut,0,yt,void 0,Z.canOwn)}else{if(!ArrayBuffer.isView(k))throw new Error("Unsupported data type");A.write(rt,k,0,k.byteLength,void 0,Z.canOwn)}A.close(rt)},cwd:function(){return A.currentPath},chdir:function(b){var k=A.lookupPath(b,{follow:!0});if(null===k.node)throw new A.ErrnoError(44);if(!A.isDir(k.node.mode))throw new A.ErrnoError(54);var Z=A.nodePermissions(k.node,"x");if(Z)throw new A.ErrnoError(Z);A.currentPath=k.path},createDefaultDirectories:function(){A.mkdir("/tmp"),A.mkdir("/home"),A.mkdir("/home/web_user")},createDefaultDevices:function(){A.mkdir("/dev"),A.registerDevice(A.makedev(1,3),{read:function(){return 0},write:function(k,Z,rt,ut,yt){return ut}}),A.mkdev("/dev/null",A.makedev(1,3)),sn.register(A.makedev(5,0),sn.default_tty_ops),sn.register(A.makedev(6,0),sn.default_tty1_ops),A.mkdev("/dev/tty",A.makedev(5,0)),A.mkdev("/dev/tty1",A.makedev(6,0));var b=function Fi(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var b=new Uint8Array(1);return function(){return crypto.getRandomValues(b),b[0]}}return function(){gi("randomDevice")}}();A.createDevice("/dev","random",b),A.createDevice("/dev","urandom",b),A.mkdir("/dev/shm"),A.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){A.mkdir("/proc");var b=A.mkdir("/proc/self");A.mkdir("/proc/self/fd"),A.mount({mount:function(){var k=A.createNode(b,"fd",16895,73);return k.node_ops={lookup:function(Z,rt){var yt=A.getStream(+rt);if(!yt)throw new A.ErrnoError(8);var Ot={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return yt.path}}};return Ot.parent=Ot,Ot}},k}},{},"/proc/self/fd")},createStandardStreams:function(){D.stdin?A.createDevice("/dev","stdin",D.stdin):A.symlink("/dev/tty","/dev/stdin"),D.stdout?A.createDevice("/dev","stdout",null,D.stdout):A.symlink("/dev/tty","/dev/stdout"),D.stderr?A.createDevice("/dev","stderr",null,D.stderr):A.symlink("/dev/tty1","/dev/stderr"),A.open("/dev/stdin",0),A.open("/dev/stdout",1),A.open("/dev/stderr",1)},ensureErrnoError:function(){A.ErrnoError||(A.ErrnoError=function(k,Z){this.node=Z,this.setErrno=function(rt){this.errno=rt},this.setErrno(k),this.message="FS error"},A.ErrnoError.prototype=new Error,A.ErrnoError.prototype.constructor=A.ErrnoError,[44].forEach(function(b){A.genericErrors[b]=new A.ErrnoError(b),A.genericErrors[b].stack=""}))},staticInit:function(){A.ensureErrnoError(),A.nameTable=new Array(4096),A.mount($,{},"/"),A.createDefaultDirectories(),A.createDefaultDevices(),A.createSpecialDirectories(),A.filesystems={MEMFS:$}},init:function(b,k,Z){A.init.initialized=!0,A.ensureErrnoError(),D.stdin=b||D.stdin,D.stdout=k||D.stdout,D.stderr=Z||D.stderr,A.createStandardStreams()},quit:function(){A.init.initialized=!1;var b=D._fflush;b&&b(0);for(var k=0;kthis.length-1||we<0)){var Ie=we%this.chunkSize;return this.getter(we/this.chunkSize|0)[Ie]}},yt.prototype.setDataGetter=function(we){this.getter=we},yt.prototype.cacheLength=function(){var we=new XMLHttpRequest;if(we.open("HEAD",Z,!1),we.send(null),!(we.status>=200&&we.status<300||304===we.status))throw new Error("Couldn't load "+Z+". Status: "+we.status);var Me,Ie=Number(we.getResponseHeader("Content-length")),Kn=(Me=we.getResponseHeader("Accept-Ranges"))&&"bytes"===Me,Hi=(Me=we.getResponseHeader("Content-Encoding"))&&"gzip"===Me,vi=1048576;Kn||(vi=Ie);var Nn=this;Nn.setDataGetter(function(Ci){var Ki=Ci*vi,Gn=(Ci+1)*vi-1;if(Gn=Math.min(Gn,Ie-1),typeof Nn.chunks[Ci]>"u"&&(Nn.chunks[Ci]=function(Ci,Ki){if(Ci>Ki)throw new Error("invalid range ("+Ci+", "+Ki+") or no bytes requested!");if(Ki>Ie-1)throw new Error("only "+Ie+" bytes available! programmer error!");var Gn=new XMLHttpRequest;if(Gn.open("GET",Z,!1),Ie!==vi&&Gn.setRequestHeader("Range","bytes="+Ci+"-"+Ki),typeof Uint8Array<"u"&&(Gn.responseType="arraybuffer"),Gn.overrideMimeType&&Gn.overrideMimeType("text/plain; charset=x-user-defined"),Gn.send(null),!(Gn.status>=200&&Gn.status<300||304===Gn.status))throw new Error("Couldn't load "+Z+". Status: "+Gn.status);return void 0!==Gn.response?new Uint8Array(Gn.response||[]):he(Gn.responseText||"",!0)}(Ki,Gn)),typeof Nn.chunks[Ci]>"u")throw new Error("doXHR failed!");return Nn.chunks[Ci]}),(Hi||!Ie)&&(vi=Ie=1,Ie=this.getter(0).length,vi=Ie,ie("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ie,this._chunkSize=vi,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Bt,ee=A.createFile(b,k,Bt={isDevice:!1,url:Z},rt,ut);Bt.contents?ee.contents=Bt.contents:Bt.url&&(ee.contents=null,ee.url=Bt.url),Object.defineProperties(ee,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ee.stream_ops).forEach(function(on){var we=ee.stream_ops[on];De[on]=function(){return A.forceLoadFile(ee),we.apply(null,arguments)}}),De.read=function(we,Ie,Me,Kn,Hi){A.forceLoadFile(ee);var vi=we.node.contents;if(Hi>=vi.length)return 0;var Wn=Math.min(vi.length-Hi,Kn);if(vi.slice)for(var Nn=0;Nn>2]=rt.dev,_e[Z+4>>2]=0,_e[Z+8>>2]=rt.ino,_e[Z+12>>2]=rt.mode,_e[Z+16>>2]=rt.nlink,_e[Z+20>>2]=rt.uid,_e[Z+24>>2]=rt.gid,_e[Z+28>>2]=rt.rdev,_e[Z+32>>2]=0,Tn=[rt.size>>>0,(He=rt.size,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[Z+40>>2]=Tn[0],_e[Z+44>>2]=Tn[1],_e[Z+48>>2]=4096,_e[Z+52>>2]=rt.blocks,_e[Z+56>>2]=rt.atime.getTime()/1e3|0,_e[Z+60>>2]=0,_e[Z+64>>2]=rt.mtime.getTime()/1e3|0,_e[Z+68>>2]=0,_e[Z+72>>2]=rt.ctime.getTime()/1e3|0,_e[Z+76>>2]=0,Tn=[rt.ino>>>0,(He=rt.ino,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[Z+80>>2]=Tn[0],_e[Z+84>>2]=Tn[1],0},doMsync:function(b,k,Z,rt,ut){var yt=an.slice(b,b+Z);A.msync(k,yt,ut,Z,rt)},doMkdir:function(b,k){return"/"===(b=be.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),A.mkdir(b,k,0),0},doMknod:function(b,k,Z){switch(61440&k){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return A.mknod(b,k,Z),0},doReadlink:function(b,k,Z){if(Z<=0)return-28;var rt=A.readlink(b),ut=Math.min(Z,Se(rt)),yt=Ge[k+ut];return function ve(b,k,Z){return me(b,an,k,Z)}(rt,k,Z+1),Ge[k+ut]=yt,ut},doAccess:function(b,k){if(-8&k)return-28;var rt=A.lookupPath(b,{follow:!0}).node;if(!rt)return-44;var ut="";return 4&k&&(ut+="r"),2&k&&(ut+="w"),1&k&&(ut+="x"),ut&&A.nodePermissions(rt,ut)?-2:0},doDup:function(b,k,Z){var rt=A.getStream(Z);return rt&&A.close(rt),A.open(b,k,0,Z,Z).fd},doReadv:function(b,k,Z,rt){for(var ut=0,yt=0;yt>2],ee=A.read(b,Ge,_e[k+8*yt>>2],Bt,rt);if(ee<0)return-1;if(ut+=ee,ee>2],_e[k+(8*yt+4)>>2],rt);if(ee<0)return-1;ut+=ee}return ut},varargs:void 0,get:function(){return bt.varargs+=4,_e[bt.varargs-4>>2]},getStr:function(b){return Jt(b)},getStreamFromFD:function(b){var k=A.getStream(b);if(!k)throw new A.ErrnoError(8);return k},get64:function(b,k){return b}};var Ut=[];function pt(b){try{return Ue.grow(b-ze.byteLength+65535>>>16),Tt(Ue.buffer),1}catch{}}var _t={};function Wt(){if(!Wt.strings){var k={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var Z in _t)void 0===_t[Z]?delete k[Z]:k[Z]=_t[Z];var rt=[];for(var Z in k)rt.push(Z+"="+k[Z]);Wt.strings=rt}return Wt.strings}var Oe=function(b,k,Z,rt){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=A.nextInode++,this.name=k,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=rt};function he(b,k,Z){var rt=Z>0?Z:Se(b)+1,ut=new Array(rt),yt=me(b,ut,0,ut.length);return k&&(ut.length=yt),ut}Object.defineProperties(Oe.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return A.isDir(this.mode)}},isDevice:{get:function(){return A.isChrdev(this.mode)}}}),A.FSNode=Oe,A.staticInit();var Fe={h:function Dt(b,k,Z){bt.varargs=Z;try{var rt=bt.getStr(b),ut=Z?bt.get():0;return A.open(rt,k,ut).fd}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return-Ot.errno}},b:function Pt(){gi("")},a:function Ht(b,k,Z){var rt=function jt(b,k){var Z;for(Ut.length=0,k>>=2;Z=an[b++];){var rt=Z<105;rt&&1&k&&k++,Ut.push(rt?un[k++>>1]:_e[k]),++k}return Ut}(k,Z);return Bn[b].apply(null,rt)},k:function J(b,k,Z){an.copyWithin(b,k,k+Z)},e:function gt(b){var k=an.length,Z=2147483648;if((b>>>=0)>Z)return!1;for(var rt=1;rt<=4;rt*=2){var ut=k*(1+.2/rt);if(ut=Math.min(ut,b+100663296),pt(Math.min(Z,Ce(Math.max(b,ut),65536))))return!0}return!1},f:function Lt(b,k){var Z=0;return Wt().forEach(function(rt,ut){var yt=k+Z;_e[b+4*ut>>2]=yt,function ke(b,k,Z){for(var rt=0;rt>0]=b.charCodeAt(rt);Z||(Ge[k>>0]=0)}(rt,yt),Z+=rt.length+1}),0},g:function ae(b,k){var Z=Wt();_e[b>>2]=Z.length;var rt=0;return Z.forEach(function(ut){rt+=ut.length+1}),_e[k>>2]=rt,0},d:function O(b){try{var k=bt.getStreamFromFD(b);return A.close(k),0}catch(Z){if(typeof A>"u"||!(Z instanceof A.ErrnoError))throw Z;return Z.errno}},i:function re(b,k,Z,rt){try{var ut=bt.getStreamFromFD(b),yt=bt.doReadv(ut,k,Z);return _e[rt>>2]=yt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},j:function Te(b,k,Z,rt,ut){try{var yt=bt.getStreamFromFD(b),Bt=4294967296*Z+(k>>>0),ee=9007199254740992;return Bt<=-ee||Bt>=ee?-61:(A.llseek(yt,Bt,rt),Tn=[yt.position>>>0,(He=yt.position,+Math.abs(He)>=1?He>0?(0|Math.min(+Math.floor(He/4294967296),4294967295))>>>0:~~+Math.ceil((He-+(~~He>>>0))/4294967296)>>>0:0)],_e[ut>>2]=Tn[0],_e[ut+4>>2]=Tn[1],yt.getdents&&0===Bt&&0===rt&&(yt.getdents=null),0)}catch(De){if(typeof A>"u"||!(De instanceof A.ErrnoError))throw De;return De.errno}},c:function ye(b,k,Z,rt){try{var ut=bt.getStreamFromFD(b),yt=bt.doWritev(ut,k,Z);return _e[rt>>2]=yt,0}catch(Ot){if(typeof A>"u"||!(Ot instanceof A.ErrnoError))throw Ot;return Ot.errno}},l:function je(b){var k=Date.now();return _e[b>>2]=k/1e3|0,_e[b+4>>2]=k%1e3*1e3|0,0}};(function On(){var b={a:Fe};function k(Ot,Bt){D.asm=Ot.exports,Tt((Ue=D.asm.m).buffer),Yt=D.asm.G,function Ni(b){pe.unshift(b)}(D.asm.n),Pi()}function Z(Ot){k(Ot.instance)}function rt(Ot){return function ji(){return xe||"function"!=typeof fetch?Promise.resolve().then(function(){return yi(tn)}):fetch(tn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+tn+"'";return b.arrayBuffer()}).catch(function(){return yi(tn)})}().then(function(Bt){return WebAssembly.instantiate(Bt,b)}).then(function(Bt){return Bt}).then(Ot,function(Bt){ue("failed to asynchronously prepare wasm: "+Bt),gi(Bt)})}if(Zi(),D.instantiateWasm)try{return D.instantiateWasm(b,k)}catch(Ot){return ue("Module.instantiateWasm callback failed with error: "+Ot),!1}return function ut(){return xe||"function"!=typeof WebAssembly.instantiateStreaming||Ee(tn)||"function"!=typeof fetch?rt(Z):fetch(tn,{credentials:"same-origin"}).then(function(Ot){return WebAssembly.instantiateStreaming(Ot,b).then(Z,function(ee){return ue("wasm streaming compile failed: "+ee),ue("falling back to ArrayBuffer instantiation"),rt(Z)})})}().catch(St),{}})(),D.___wasm_call_ctors=function(){return(D.___wasm_call_ctors=D.asm.n).apply(null,arguments)};var Jn,fn=D._emscripten_bind_CExpat_CExpat_0=function(){return(fn=D._emscripten_bind_CExpat_CExpat_0=D.asm.o).apply(null,arguments)},mn=D._emscripten_bind_CExpat_version_0=function(){return(mn=D._emscripten_bind_CExpat_version_0=D.asm.p).apply(null,arguments)},Je=D._emscripten_bind_CExpat_create_0=function(){return(Je=D._emscripten_bind_CExpat_create_0=D.asm.q).apply(null,arguments)},$e=D._emscripten_bind_CExpat_destroy_0=function(){return($e=D._emscripten_bind_CExpat_destroy_0=D.asm.r).apply(null,arguments)},wn=D._emscripten_bind_CExpat_parse_1=function(){return(wn=D._emscripten_bind_CExpat_parse_1=D.asm.s).apply(null,arguments)},Zn=D._emscripten_bind_CExpat_tag_0=function(){return(Zn=D._emscripten_bind_CExpat_tag_0=D.asm.t).apply(null,arguments)},Vn=D._emscripten_bind_CExpat_attrs_0=function(){return(Vn=D._emscripten_bind_CExpat_attrs_0=D.asm.u).apply(null,arguments)},Yn=D._emscripten_bind_CExpat_content_0=function(){return(Yn=D._emscripten_bind_CExpat_content_0=D.asm.v).apply(null,arguments)},Ri=D._emscripten_bind_CExpat_startElement_0=function(){return(Ri=D._emscripten_bind_CExpat_startElement_0=D.asm.w).apply(null,arguments)},ce=D._emscripten_bind_CExpat_endElement_0=function(){return(ce=D._emscripten_bind_CExpat_endElement_0=D.asm.x).apply(null,arguments)},Qe=D._emscripten_bind_CExpat_characterData_0=function(){return(Qe=D._emscripten_bind_CExpat_characterData_0=D.asm.y).apply(null,arguments)},_n=D._emscripten_bind_CExpat___destroy___0=function(){return(_n=D._emscripten_bind_CExpat___destroy___0=D.asm.z).apply(null,arguments)},Cn=D._emscripten_bind_VoidPtr___destroy___0=function(){return(Cn=D._emscripten_bind_VoidPtr___destroy___0=D.asm.A).apply(null,arguments)},Qn=D._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Qn=D._emscripten_bind_CExpatJS_CExpatJS_0=D.asm.B).apply(null,arguments)},li=D._emscripten_bind_CExpatJS_startElement_0=function(){return(li=D._emscripten_bind_CExpatJS_startElement_0=D.asm.C).apply(null,arguments)},jn=D._emscripten_bind_CExpatJS_endElement_0=function(){return(jn=D._emscripten_bind_CExpatJS_endElement_0=D.asm.D).apply(null,arguments)},En=D._emscripten_bind_CExpatJS_characterData_0=function(){return(En=D._emscripten_bind_CExpatJS_characterData_0=D.asm.E).apply(null,arguments)},Pn=D._emscripten_bind_CExpatJS___destroy___0=function(){return(Pn=D._emscripten_bind_CExpatJS___destroy___0=D.asm.F).apply(null,arguments)};function bi(b){function k(){Jn||(Jn=!0,D.calledRun=!0,!Pe&&(function Xe(){!D.noFSInit&&!A.init.initialized&&A.init(),A.ignorePermissions=!1,Di(pe)}(),mt(D),D.onRuntimeInitialized&&D.onRuntimeInitialized(),function bn(){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;)b=D.postRun.shift(),qt.unshift(b);var b;Di(qt)}()))}mi>0||(function Ve(){if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)b=D.preRun.shift(),se.unshift(b);var b;Di(se)}(),mi>0)||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},1),k()},1)):k())}if(D._malloc=function(){return(D._malloc=D.asm.H).apply(null,arguments)},Ei=function b(){Jn||bi(),Jn||(Ei=b)},D.run=bi,D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);D.preInit.length>0;)D.preInit.pop()();function gn(){}function hn(b){return(b||gn).__cache__}function ci(b,k){var Z=hn(k),rt=Z[b];return rt||((rt=Object.create((k||gn).prototype)).ptr=b,Z[b]=rt)}bi(),(gn.prototype=Object.create(gn.prototype)).constructor=gn,gn.prototype.__class__=gn,gn.__cache__={},D.WrapperObject=gn,D.getCache=hn,D.wrapPointer=ci,D.castObject=function Ji(b,k){return ci(b.ptr,k)},D.NULL=ci(0),D.destroy=function ui(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete hn(b.__class__)[b.ptr]},D.compare=function zi(b,k){return b.ptr===k.ptr},D.getPointer=function Mn(b){return b.ptr},D.getClass=function Ti(b){return b.__class__};var cn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(cn.needed){for(var b=0;b=cn.size?(It(rt>0),cn.needed+=rt,ut=D._malloc(rt),cn.temps.push(ut)):(ut=cn.buffer+cn.pos,cn.pos+=rt),ut},copy:function(b,k,Z){switch(Z>>>=0,k.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var ut=0;ut=Q);)++ht;if(ht-S>16&&y.subarray&&Se)return Se.decode(y.subarray(S,ht));for(var xt="";S>10,56320|1023&Le)}}else xt+=String.fromCharCode((31&At)<<6|Rt)}else xt+=String.fromCharCode(At)}return xt}function Ce(y,S){return y?ke(se,y,S):""}function ze(y,S,P,Q){if(!(Q>0))return 0;for(var ht=P,xt=P+Q-1,At=0;At=55296&&Rt<=57343&&(Rt=65536+((1023&Rt)<<10)|1023&y.charCodeAt(++At)),Rt<=127){if(P>=xt)break;S[P++]=Rt}else if(Rt<=2047){if(P+1>=xt)break;S[P++]=192|Rt>>6,S[P++]=128|63&Rt}else if(Rt<=65535){if(P+2>=xt)break;S[P++]=224|Rt>>12,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}else{if(P+3>=xt)break;S[P++]=240|Rt>>18,S[P++]=128|Rt>>12&63,S[P++]=128|Rt>>6&63,S[P++]=128|63&Rt}}return S[P]=0,P-ht}function an(y){for(var S=0,P=0;P=55296&&Q<=57343&&(Q=65536+((1023&Q)<<10)|1023&y.charCodeAt(++P)),Q<=127?++S:S+=Q<=2047?2:Q<=65535?3:4}return S}function un(y,S){return y%S>0&&(y+=S-y%S),y}function Xe(y){Tt=y,D.HEAP8=Yt=new Int8Array(y),D.HEAP16=pe=new Int16Array(y),D.HEAP32=qt=new Int32Array(y),D.HEAPU8=se=new Uint8Array(y),D.HEAPU16=new Uint16Array(y),D.HEAPU32=new Uint32Array(y),D.HEAPF32=new Float32Array(y),D.HEAPF64=Ve=new Float64Array(y)}var bn,oi=[],Ni=[],fi=[];var tn=0,yi=null;function On(y){tn++,D.monitorRunDependencies&&D.monitorRunDependencies(tn)}function He(y){if(tn--,D.monitorRunDependencies&&D.monitorRunDependencies(tn),0==tn&&yi){var S=yi;yi=null,S()}}function Tn(y){D.onAbort&&D.onAbort(y),xe(y="Aborted("+y+")"),me=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var S=new WebAssembly.RuntimeError(y);throw St(S),S}D.preloadedImages={},D.preloadedAudios={};var In;function Di(y){return y.startsWith("data:application/octet-stream;base64,")}function be(y){try{if(y==In&&$t)return new Uint8Array($t);throw"both async and sync fetching of the wasm failed"}catch(S){Tn(S)}}Di(In="graphvizlib.wasm")||(In=function wt(y){return D.locateFile?D.locateFile(y,dt):dt+y}(In));var sn,z,bt,$={161580:function(y,S){var P=Ce(y),Q=Ce(S);O.createPath("/",Ht.dirname(P)),O.writeFile(Ht.join("/",P),Q)}};function ct(y){for(;y.length>0;){var S=y.shift();if("function"!=typeof S){var P=S.func;"number"==typeof P?void 0===S.arg?A(P)():A(P)(S.arg):P(void 0===S.arg?null:S.arg)}else S(D)}}function A(y){return bn.get(y)}bt=function(){return performance.now()};function Pt(y){return qt[Ot()>>2]=y,y}var Ht={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,S){for(var P=0,Q=y.length-1;Q>=0;Q--){var ht=y[Q];"."===ht?y.splice(Q,1):".."===ht?(y.splice(Q,1),P++):P&&(y.splice(Q,1),P--)}if(S)for(;P;P--)y.unshift("..");return y},normalize:function(y){var S="/"===y.charAt(0),P="/"===y.substr(-1);return!(y=Ht.normalizeArray(y.split("/").filter(function(Q){return!!Q}),!S).join("/"))&&!S&&(y="."),y&&P&&(y+="/"),(S?"/":"")+y},dirname:function(y){var S=Ht.splitPath(y),P=S[0],Q=S[1];return P||Q?(Q&&(Q=Q.substr(0,Q.length-1)),P+Q):"."},basename:function(y){if("/"===y)return"/";var S=(y=(y=Ht.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===S?y:y.substr(S+1)},extname:function(y){return Ht.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return Ht.normalize(y.join("/"))},join2:function(y,S){return Ht.normalize(y+"/"+S)}};var pt={resolve:function(){for(var y="",S=!1,P=arguments.length-1;P>=-1&&!S;P--){var Q=P>=0?arguments[P]:O.cwd();if("string"!=typeof Q)throw new TypeError("Arguments to path.resolve must be strings");if(!Q)return"";y=Q+"/"+y,S="/"===Q.charAt(0)}return(S?"/":"")+(y=Ht.normalizeArray(y.split("/").filter(function(ht){return!!ht}),!S).join("/"))||"."},relative:function(y,S){function P(Le){for(var en=0;en=0&&""===Le[dn];dn--);return en>dn?[]:Le.slice(en,dn-en+1)}y=pt.resolve(y).substr(1),S=pt.resolve(S).substr(1);for(var Q=P(y.split("/")),ht=P(S.split("/")),xt=Math.min(Q.length,ht.length),At=xt,Rt=0;Rt0&&(ue(ke(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,S){null===S||10===S?(xe(ke(y.output,0)),y.output=[]):0!=S&&y.output.push(S)},flush:function(y){y.output&&y.output.length>0&&(xe(ke(y.output,0)),y.output=[])}}};function Wt(y){y=function zt(y,S){return Math.ceil(y/S)*S}(y,65536);var S=Ye(65536,y);return S?(function _t(y,S){se.fill(0,y,y+S)}(S,y),S):0}var Lt={ops_table:null,mount:function(y){return Lt.createNode(null,"/",16895,0)},createNode:function(y,S,P,Q){if(O.isBlkdev(P)||O.isFIFO(P))throw new O.ErrnoError(63);Lt.ops_table||(Lt.ops_table={dir:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr,lookup:Lt.node_ops.lookup,mknod:Lt.node_ops.mknod,rename:Lt.node_ops.rename,unlink:Lt.node_ops.unlink,rmdir:Lt.node_ops.rmdir,readdir:Lt.node_ops.readdir,symlink:Lt.node_ops.symlink},stream:{llseek:Lt.stream_ops.llseek}},file:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr},stream:{llseek:Lt.stream_ops.llseek,read:Lt.stream_ops.read,write:Lt.stream_ops.write,allocate:Lt.stream_ops.allocate,mmap:Lt.stream_ops.mmap,msync:Lt.stream_ops.msync}},link:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr,readlink:Lt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Lt.node_ops.getattr,setattr:Lt.node_ops.setattr},stream:O.chrdev_stream_ops}});var ht=O.createNode(y,S,P,Q);return O.isDir(ht.mode)?(ht.node_ops=Lt.ops_table.dir.node,ht.stream_ops=Lt.ops_table.dir.stream,ht.contents={}):O.isFile(ht.mode)?(ht.node_ops=Lt.ops_table.file.node,ht.stream_ops=Lt.ops_table.file.stream,ht.usedBytes=0,ht.contents=null):O.isLink(ht.mode)?(ht.node_ops=Lt.ops_table.link.node,ht.stream_ops=Lt.ops_table.link.stream):O.isChrdev(ht.mode)&&(ht.node_ops=Lt.ops_table.chrdev.node,ht.stream_ops=Lt.ops_table.chrdev.stream),ht.timestamp=Date.now(),y&&(y.contents[S]=ht,y.timestamp=ht.timestamp),ht},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,S){var P=y.contents?y.contents.length:0;if(!(P>=S)){S=Math.max(S,P*(P<1048576?2:1.125)>>>0),0!=P&&(S=Math.max(S,256));var ht=y.contents;y.contents=new Uint8Array(S),y.usedBytes>0&&y.contents.set(ht.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,S){if(y.usedBytes!=S)if(0==S)y.contents=null,y.usedBytes=0;else{var P=y.contents;y.contents=new Uint8Array(S),P&&y.contents.set(P.subarray(0,Math.min(S,y.usedBytes))),y.usedBytes=S}},node_ops:{getattr:function(y){var S={};return S.dev=O.isChrdev(y.mode)?y.id:1,S.ino=y.id,S.mode=y.mode,S.nlink=1,S.uid=0,S.gid=0,S.rdev=y.rdev,S.size=O.isDir(y.mode)?4096:O.isFile(y.mode)?y.usedBytes:O.isLink(y.mode)?y.link.length:0,S.atime=new Date(y.timestamp),S.mtime=new Date(y.timestamp),S.ctime=new Date(y.timestamp),S.blksize=4096,S.blocks=Math.ceil(S.size/S.blksize),S},setattr:function(y,S){void 0!==S.mode&&(y.mode=S.mode),void 0!==S.timestamp&&(y.timestamp=S.timestamp),void 0!==S.size&&Lt.resizeFileStorage(y,S.size)},lookup:function(y,S){throw O.genericErrors[44]},mknod:function(y,S,P,Q){return Lt.createNode(y,S,P,Q)},rename:function(y,S,P){if(O.isDir(y.mode)){var Q;try{Q=O.lookupNode(S,P)}catch{}if(Q)for(var ht in Q.contents)throw new O.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=P,S.contents[P]=y,S.timestamp=y.parent.timestamp,y.parent=S},unlink:function(y,S){delete y.contents[S],y.timestamp=Date.now()},rmdir:function(y,S){var P=O.lookupNode(y,S);for(var Q in P.contents)throw new O.ErrnoError(55);delete y.contents[S],y.timestamp=Date.now()},readdir:function(y){var S=[".",".."];for(var P in y.contents)!y.contents.hasOwnProperty(P)||S.push(P);return S},symlink:function(y,S,P){var Q=Lt.createNode(y,S,41471,0);return Q.link=P,Q},readlink:function(y){if(!O.isLink(y.mode))throw new O.ErrnoError(28);return y.link}},stream_ops:{read:function(y,S,P,Q,ht){var xt=y.node.contents;if(ht>=y.node.usedBytes)return 0;var At=Math.min(y.node.usedBytes-ht,Q);if(At>8&&xt.subarray)S.set(xt.subarray(ht,ht+At),P);else for(var Rt=0;Rt0||Q+P8)throw new O.ErrnoError(32);for(var ht=Ht.normalizeArray(y.split("/").filter(function(Ne){return!!Ne}),!1),xt=O.root,At="/",Rt=0;Rt40)throw new O.ErrnoError(32)}}return{path:At,node:xt}},getPath:function(y){for(var S;;){if(O.isRoot(y)){var P=y.mount.mountpoint;return S?"/"!==P[P.length-1]?P+"/"+S:P+S:P}S=S?y.name+"/"+S:y.name,y=y.parent}},hashName:function(y,S){for(var P=0,Q=0;Q>>0)%O.nameTable.length},hashAddNode:function(y){var S=O.hashName(y.parent.id,y.name);y.name_next=O.nameTable[S],O.nameTable[S]=y},hashRemoveNode:function(y){var S=O.hashName(y.parent.id,y.name);if(O.nameTable[S]===y)O.nameTable[S]=y.name_next;else for(var P=O.nameTable[S];P;){if(P.name_next===y){P.name_next=y.name_next;break}P=P.name_next}},lookupNode:function(y,S){var P=O.mayLookup(y);if(P)throw new O.ErrnoError(P,y);for(var Q=O.hashName(y.id,S),ht=O.nameTable[Q];ht;ht=ht.name_next)if(ht.parent.id===y.id&&ht.name===S)return ht;return O.lookup(y,S)},createNode:function(y,S,P,Q){var ht=new O.FSNode(y,S,P,Q);return O.hashAddNode(ht),ht},destroyNode:function(y){O.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var S=O.flagModes[y];if(typeof S>"u")throw new Error("Unknown file open mode: "+y);return S},flagsToPermissionString:function(y){var S=["r","w","rw"][3&y];return 512&y&&(S+="w"),S},nodePermissions:function(y,S){return O.ignorePermissions?0:S.includes("r")&&!(292&y.mode)||S.includes("w")&&!(146&y.mode)||S.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return O.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,S){try{return O.lookupNode(y,S),20}catch{}return O.nodePermissions(y,"wx")},mayDelete:function(y,S,P){var Q;try{Q=O.lookupNode(y,S)}catch(xt){return xt.errno}var ht=O.nodePermissions(y,"wx");if(ht)return ht;if(P){if(!O.isDir(Q.mode))return 54;if(O.isRoot(Q)||O.getPath(Q)===O.cwd())return 10}else if(O.isDir(Q.mode))return 31;return 0},mayOpen:function(y,S){return y?O.isLink(y.mode)?32:O.isDir(y.mode)&&("r"!==O.flagsToPermissionString(S)||512&S)?31:O.nodePermissions(y,O.flagsToPermissionString(S)):44},MAX_OPEN_FDS:4096,nextfd:function(y,S){S=S||O.MAX_OPEN_FDS;for(var P=y=y||0;P<=S;P++)if(!O.streams[P])return P;throw new O.ErrnoError(33)},getStream:function(y){return O.streams[y]},createStream:function(y,S,P){O.FSStream||(O.FSStream=function(){},O.FSStream.prototype={object:{get:function(){return this.node},set:function(At){this.node=At}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var Q=new O.FSStream;for(var ht in y)Q[ht]=y[ht];y=Q;var xt=O.nextfd(S,P);return y.fd=xt,O.streams[xt]=y,y},closeStream:function(y){O.streams[y]=null},chrdev_stream_ops:{open:function(y){var S=O.getDevice(y.node.rdev);y.stream_ops=S.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new O.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,S){return y<<8|S},registerDevice:function(y,S){O.devices[y]={stream_ops:S}},getDevice:function(y){return O.devices[y]},getMounts:function(y){for(var S=[],P=[y];P.length;){var Q=P.pop();S.push(Q),P.push.apply(P,Q.mounts)}return S},syncfs:function(y,S){"function"==typeof y&&(S=y,y=!1),O.syncFSRequests++,O.syncFSRequests>1&&xe("warning: "+O.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var P=O.getMounts(O.root.mount),Q=0;function ht(At){return O.syncFSRequests--,S(At)}function xt(At){if(At)return xt.errored?void 0:(xt.errored=!0,ht(At));++Q>=P.length&&ht(null)}P.forEach(function(At){if(!At.type.syncfs)return xt(null);At.type.syncfs(At,y,xt)})},mount:function(y,S,P){var xt,Q="/"===P,ht=!P;if(Q&&O.root)throw new O.ErrnoError(10);if(!Q&&!ht){var At=O.lookupPath(P,{follow_mount:!1});if(P=At.path,O.isMountpoint(xt=At.node))throw new O.ErrnoError(10);if(!O.isDir(xt.mode))throw new O.ErrnoError(54)}var Rt={type:y,opts:S,mountpoint:P,mounts:[]},te=y.mount(Rt);return te.mount=Rt,Rt.root=te,Q?O.root=te:xt&&(xt.mounted=Rt,xt.mount&&xt.mount.mounts.push(Rt)),te},unmount:function(y){var S=O.lookupPath(y,{follow_mount:!1});if(!O.isMountpoint(S.node))throw new O.ErrnoError(28);var P=S.node,Q=P.mounted,ht=O.getMounts(Q);Object.keys(O.nameTable).forEach(function(At){for(var Rt=O.nameTable[At];Rt;){var te=Rt.name_next;ht.includes(Rt.mount)&&O.destroyNode(Rt),Rt=te}}),P.mounted=null;var xt=P.mount.mounts.indexOf(Q);P.mount.mounts.splice(xt,1)},lookup:function(y,S){return y.node_ops.lookup(y,S)},mknod:function(y,S,P){var ht=O.lookupPath(y,{parent:!0}).node,xt=Ht.basename(y);if(!xt||"."===xt||".."===xt)throw new O.ErrnoError(28);var At=O.mayCreate(ht,xt);if(At)throw new O.ErrnoError(At);if(!ht.node_ops.mknod)throw new O.ErrnoError(63);return ht.node_ops.mknod(ht,xt,S,P)},create:function(y,S){return S=void 0!==S?S:438,S&=4095,O.mknod(y,S|=32768,0)},mkdir:function(y,S){return S=void 0!==S?S:511,S&=1023,O.mknod(y,S|=16384,0)},mkdirTree:function(y,S){for(var P=y.split("/"),Q="",ht=0;ht"u"&&(P=S,S=438),O.mknod(y,S|=8192,P)},symlink:function(y,S){if(!pt.resolve(y))throw new O.ErrnoError(44);var Q=O.lookupPath(S,{parent:!0}).node;if(!Q)throw new O.ErrnoError(44);var ht=Ht.basename(S),xt=O.mayCreate(Q,ht);if(xt)throw new O.ErrnoError(xt);if(!Q.node_ops.symlink)throw new O.ErrnoError(63);return Q.node_ops.symlink(Q,ht,y)},rename:function(y,S){var Rt,te,P=Ht.dirname(y),Q=Ht.dirname(S),ht=Ht.basename(y),xt=Ht.basename(S);if(Rt=O.lookupPath(y,{parent:!0}).node,te=O.lookupPath(S,{parent:!0}).node,!Rt||!te)throw new O.ErrnoError(44);if(Rt.mount!==te.mount)throw new O.ErrnoError(75);var dn,Le=O.lookupNode(Rt,ht),en=pt.relative(y,Q);if("."!==en.charAt(0))throw new O.ErrnoError(28);if("."!==(en=pt.relative(S,P)).charAt(0))throw new O.ErrnoError(55);try{dn=O.lookupNode(te,xt)}catch{}if(Le!==dn){var Ne=O.isDir(Le.mode),Ze=O.mayDelete(Rt,ht,Ne);if(Ze)throw new O.ErrnoError(Ze);if(Ze=dn?O.mayDelete(te,xt,Ne):O.mayCreate(te,xt))throw new O.ErrnoError(Ze);if(!Rt.node_ops.rename)throw new O.ErrnoError(63);if(O.isMountpoint(Le)||dn&&O.isMountpoint(dn))throw new O.ErrnoError(10);if(te!==Rt&&(Ze=O.nodePermissions(Rt,"w")))throw new O.ErrnoError(Ze);O.hashRemoveNode(Le);try{Rt.node_ops.rename(Le,te,xt)}catch(vn){throw vn}finally{O.hashAddNode(Le)}}},rmdir:function(y){var P=O.lookupPath(y,{parent:!0}).node,Q=Ht.basename(y),ht=O.lookupNode(P,Q),xt=O.mayDelete(P,Q,!0);if(xt)throw new O.ErrnoError(xt);if(!P.node_ops.rmdir)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.rmdir(P,Q),O.destroyNode(ht)},readdir:function(y){var P=O.lookupPath(y,{follow:!0}).node;if(!P.node_ops.readdir)throw new O.ErrnoError(54);return P.node_ops.readdir(P)},unlink:function(y){var P=O.lookupPath(y,{parent:!0}).node,Q=Ht.basename(y),ht=O.lookupNode(P,Q),xt=O.mayDelete(P,Q,!1);if(xt)throw new O.ErrnoError(xt);if(!P.node_ops.unlink)throw new O.ErrnoError(63);if(O.isMountpoint(ht))throw new O.ErrnoError(10);P.node_ops.unlink(P,Q),O.destroyNode(ht)},readlink:function(y){var P=O.lookupPath(y).node;if(!P)throw new O.ErrnoError(44);if(!P.node_ops.readlink)throw new O.ErrnoError(28);return pt.resolve(O.getPath(P.parent),P.node_ops.readlink(P))},stat:function(y,S){var Q=O.lookupPath(y,{follow:!S}).node;if(!Q)throw new O.ErrnoError(44);if(!Q.node_ops.getattr)throw new O.ErrnoError(63);return Q.node_ops.getattr(Q)},lstat:function(y){return O.stat(y,!0)},chmod:function(y,S,P){var Q;if(!(Q="string"==typeof y?O.lookupPath(y,{follow:!P}).node:y).node_ops.setattr)throw new O.ErrnoError(63);Q.node_ops.setattr(Q,{mode:4095&S|-4096&Q.mode,timestamp:Date.now()})},lchmod:function(y,S){O.chmod(y,S,!0)},fchmod:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);O.chmod(P.node,S)},chown:function(y,S,P,Q){var ht;if(!(ht="string"==typeof y?O.lookupPath(y,{follow:!Q}).node:y).node_ops.setattr)throw new O.ErrnoError(63);ht.node_ops.setattr(ht,{timestamp:Date.now()})},lchown:function(y,S,P){O.chown(y,S,P,!0)},fchown:function(y,S,P){var Q=O.getStream(y);if(!Q)throw new O.ErrnoError(8);O.chown(Q.node,S,P)},truncate:function(y,S){if(S<0)throw new O.ErrnoError(28);var P;if(!(P="string"==typeof y?O.lookupPath(y,{follow:!0}).node:y).node_ops.setattr)throw new O.ErrnoError(63);if(O.isDir(P.mode))throw new O.ErrnoError(31);if(!O.isFile(P.mode))throw new O.ErrnoError(28);var ht=O.nodePermissions(P,"w");if(ht)throw new O.ErrnoError(ht);P.node_ops.setattr(P,{size:S,timestamp:Date.now()})},ftruncate:function(y,S){var P=O.getStream(y);if(!P)throw new O.ErrnoError(8);if(0==(2097155&P.flags))throw new O.ErrnoError(28);O.truncate(P.node,S)},utime:function(y,S,P){var ht=O.lookupPath(y,{follow:!0}).node;ht.node_ops.setattr(ht,{timestamp:Math.max(S,P)})},open:function(y,S,P,Q,ht){if(""===y)throw new O.ErrnoError(44);var xt;if(P=typeof P>"u"?438:P,P=64&(S="string"==typeof S?O.modeStringToFlags(S):S)?4095&P|32768:0,"object"==typeof y)xt=y;else{y=Ht.normalize(y);try{xt=O.lookupPath(y,{follow:!(131072&S)}).node}catch{}}var Rt=!1;if(64&S)if(xt){if(128&S)throw new O.ErrnoError(20)}else xt=O.mknod(y,P,0),Rt=!0;if(!xt)throw new O.ErrnoError(44);if(O.isChrdev(xt.mode)&&(S&=-513),65536&S&&!O.isDir(xt.mode))throw new O.ErrnoError(54);if(!Rt){var te=O.mayOpen(xt,S);if(te)throw new O.ErrnoError(te)}512&S&&O.truncate(xt,0),S&=-131713;var Le=O.createStream({node:xt,path:O.getPath(xt),id:xt.id,flags:S,mode:xt.mode,seekable:!0,position:0,stream_ops:xt.stream_ops,node_ops:xt.node_ops,ungotten:[],error:!1},Q,ht);return Le.stream_ops.open&&Le.stream_ops.open(Le),D.logReadFiles&&!(1&S)&&(O.readFiles||(O.readFiles={}),y in O.readFiles||(O.readFiles[y]=1)),Le},close:function(y){if(O.isClosed(y))throw new O.ErrnoError(8);y.getdents&&(y.getdents=null);try{y.stream_ops.close&&y.stream_ops.close(y)}catch(S){throw S}finally{O.closeStream(y.fd)}y.fd=null},isClosed:function(y){return null===y.fd},llseek:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(!y.seekable||!y.stream_ops.llseek)throw new O.ErrnoError(70);if(0!=P&&1!=P&&2!=P)throw new O.ErrnoError(28);return y.position=y.stream_ops.llseek(y,S,P),y.ungotten=[],y.position},read:function(y,S,P,Q,ht){if(Q<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(1==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.read)throw new O.ErrnoError(28);var xt=typeof ht<"u";if(xt){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var At=y.stream_ops.read(y,S,P,Q,ht);return xt||(y.position+=At),At},write:function(y,S,P,Q,ht,xt){if(Q<0||ht<0)throw new O.ErrnoError(28);if(O.isClosed(y))throw new O.ErrnoError(8);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(O.isDir(y.node.mode))throw new O.ErrnoError(31);if(!y.stream_ops.write)throw new O.ErrnoError(28);y.seekable&&1024&y.flags&&O.llseek(y,0,2);var At=typeof ht<"u";if(At){if(!y.seekable)throw new O.ErrnoError(70)}else ht=y.position;var Rt=y.stream_ops.write(y,S,P,Q,ht,xt);return At||(y.position+=Rt),Rt},allocate:function(y,S,P){if(O.isClosed(y))throw new O.ErrnoError(8);if(S<0||P<=0)throw new O.ErrnoError(28);if(0==(2097155&y.flags))throw new O.ErrnoError(8);if(!O.isFile(y.node.mode)&&!O.isDir(y.node.mode))throw new O.ErrnoError(43);if(!y.stream_ops.allocate)throw new O.ErrnoError(138);y.stream_ops.allocate(y,S,P)},mmap:function(y,S,P,Q,ht,xt){if(0!=(2&ht)&&0==(2&xt)&&2!=(2097155&y.flags))throw new O.ErrnoError(2);if(1==(2097155&y.flags))throw new O.ErrnoError(2);if(!y.stream_ops.mmap)throw new O.ErrnoError(43);return y.stream_ops.mmap(y,S,P,Q,ht,xt)},msync:function(y,S,P,Q,ht){return y&&y.stream_ops.msync?y.stream_ops.msync(y,S,P,Q,ht):0},munmap:function(y){return 0},ioctl:function(y,S,P){if(!y.stream_ops.ioctl)throw new O.ErrnoError(59);return y.stream_ops.ioctl(y,S,P)},readFile:function(y,S){if((S=S||{}).flags=S.flags||0,S.encoding=S.encoding||"binary","utf8"!==S.encoding&&"binary"!==S.encoding)throw new Error('Invalid encoding type "'+S.encoding+'"');var P,Q=O.open(y,S.flags),xt=O.stat(y).size,At=new Uint8Array(xt);return O.read(Q,At,0,xt,0),"utf8"===S.encoding?P=ke(At,0):"binary"===S.encoding&&(P=At),O.close(Q),P},writeFile:function(y,S,P){(P=P||{}).flags=P.flags||577;var Q=O.open(y,P.flags,P.mode);if("string"==typeof S){var ht=new Uint8Array(an(S)+1),xt=ze(S,ht,0,ht.length);O.write(Q,ht,0,xt,void 0,P.canOwn)}else{if(!ArrayBuffer.isView(S))throw new Error("Unsupported data type");O.write(Q,S,0,S.byteLength,void 0,P.canOwn)}O.close(Q)},cwd:function(){return O.currentPath},chdir:function(y){var S=O.lookupPath(y,{follow:!0});if(null===S.node)throw new O.ErrnoError(44);if(!O.isDir(S.node.mode))throw new O.ErrnoError(54);var P=O.nodePermissions(S.node,"x");if(P)throw new O.ErrnoError(P);O.currentPath=S.path},createDefaultDirectories:function(){O.mkdir("/tmp"),O.mkdir("/home"),O.mkdir("/home/web_user")},createDefaultDevices:function(){O.mkdir("/dev"),O.registerDevice(O.makedev(1,3),{read:function(){return 0},write:function(S,P,Q,ht,xt){return ht}}),O.mkdev("/dev/null",O.makedev(1,3)),gt.register(O.makedev(5,0),gt.default_tty_ops),gt.register(O.makedev(6,0),gt.default_tty1_ops),O.mkdev("/dev/tty",O.makedev(5,0)),O.mkdev("/dev/tty1",O.makedev(6,0));var y=function J(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var y=new Uint8Array(1);return function(){return crypto.getRandomValues(y),y[0]}}return function(){Tn("randomDevice")}}();O.createDevice("/dev","random",y),O.createDevice("/dev","urandom",y),O.mkdir("/dev/shm"),O.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){O.mkdir("/proc");var y=O.mkdir("/proc/self");O.mkdir("/proc/self/fd"),O.mount({mount:function(){var S=O.createNode(y,"fd",16895,73);return S.node_ops={lookup:function(P,Q){var xt=O.getStream(+Q);if(!xt)throw new O.ErrnoError(8);var At={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return xt.path}}};return At.parent=At,At}},S}},{},"/proc/self/fd")},createStandardStreams:function(){D.stdin?O.createDevice("/dev","stdin",D.stdin):O.symlink("/dev/tty","/dev/stdin"),D.stdout?O.createDevice("/dev","stdout",null,D.stdout):O.symlink("/dev/tty","/dev/stdout"),D.stderr?O.createDevice("/dev","stderr",null,D.stderr):O.symlink("/dev/tty1","/dev/stderr"),O.open("/dev/stdin",0),O.open("/dev/stdout",1),O.open("/dev/stderr",1)},ensureErrnoError:function(){O.ErrnoError||(O.ErrnoError=function(S,P){this.node=P,this.setErrno=function(Q){this.errno=Q},this.setErrno(S),this.message="FS error"},O.ErrnoError.prototype=new Error,O.ErrnoError.prototype.constructor=O.ErrnoError,[44].forEach(function(y){O.genericErrors[y]=new O.ErrnoError(y),O.genericErrors[y].stack=""}))},staticInit:function(){O.ensureErrnoError(),O.nameTable=new Array(4096),O.mount(Lt,{},"/"),O.createDefaultDirectories(),O.createDefaultDevices(),O.createSpecialDirectories(),O.filesystems={MEMFS:Lt}},init:function(y,S,P){O.init.initialized=!0,O.ensureErrnoError(),D.stdin=y||D.stdin,D.stdout=S||D.stdout,D.stderr=P||D.stderr,O.createStandardStreams()},quit:function(){O.init.initialized=!1;var y=D._fflush;y&&y(0);for(var S=0;Sthis.length-1||Ne<0)){var Ze=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[Ze]}},xt.prototype.setDataGetter=function(Ne){this.getter=Ne},xt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",P,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+P+". Status: "+Ne.status);var vn,Ze=Number(Ne.getResponseHeader("Content-length")),hi=(vn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===vn,gr=(vn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===vn,Li=1048576;hi||(Li=Ze);var xi=this;xi.setDataGetter(function(Yi){var _r=Yi*Li,qn=(Yi+1)*Li-1;if(qn=Math.min(qn,Ze-1),typeof xi.chunks[Yi]>"u"&&(xi.chunks[Yi]=function(Yi,_r){if(Yi>_r)throw new Error("invalid range ("+Yi+", "+_r+") or no bytes requested!");if(_r>Ze-1)throw new Error("only "+Ze+" bytes available! programmer error!");var qn=new XMLHttpRequest;if(qn.open("GET",P,!1),Ze!==Li&&qn.setRequestHeader("Range","bytes="+Yi+"-"+_r),typeof Uint8Array<"u"&&(qn.responseType="arraybuffer"),qn.overrideMimeType&&qn.overrideMimeType("text/plain; charset=x-user-defined"),qn.send(null),!(qn.status>=200&&qn.status<300||304===qn.status))throw new Error("Couldn't load "+P+". Status: "+qn.status);return void 0!==qn.response?new Uint8Array(qn.response||[]):Bi(qn.responseText||"",!0)}(_r,qn)),typeof xi.chunks[Yi]>"u")throw new Error("doXHR failed!");return xi.chunks[Yi]}),(gr||!Ze)&&(Li=Ze=1,Ze=this.getter(0).length,Li=Ze,ue("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Ze,this._chunkSize=Li,this.lengthKnown=!0},typeof XMLHttpRequest<"u")throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Rt,te=O.createFile(y,S,Rt={isDevice:!1,url:P},Q,ht);Rt.contents?te.contents=Rt.contents:Rt.url&&(te.contents=null,te.url=Rt.url),Object.defineProperties(te,{usedBytes:{get:function(){return this.contents.length}}});var Le={};return Object.keys(te.stream_ops).forEach(function(dn){var Ne=te.stream_ops[dn];Le[dn]=function(){return O.forceLoadFile(te),Ne.apply(null,arguments)}}),Le.read=function(Ne,Ze,vn,hi,gr){O.forceLoadFile(te);var Li=Ne.node.contents;if(gr>=Li.length)return 0;var wr=Math.min(Li.length-gr,hi);if(Li.slice)for(var xi=0;xi>2]=Q.dev,qt[P+4>>2]=0,qt[P+8>>2]=Q.ino,qt[P+12>>2]=Q.mode,qt[P+16>>2]=Q.nlink,qt[P+20>>2]=Q.uid,qt[P+24>>2]=Q.gid,qt[P+28>>2]=Q.rdev,qt[P+32>>2]=0,z=[Q.size>>>0,(sn=Q.size,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[P+40>>2]=z[0],qt[P+44>>2]=z[1],qt[P+48>>2]=4096,qt[P+52>>2]=Q.blocks,qt[P+56>>2]=Q.atime.getTime()/1e3|0,qt[P+60>>2]=0,qt[P+64>>2]=Q.mtime.getTime()/1e3|0,qt[P+68>>2]=0,qt[P+72>>2]=Q.ctime.getTime()/1e3|0,qt[P+76>>2]=0,z=[Q.ino>>>0,(sn=Q.ino,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[P+80>>2]=z[0],qt[P+84>>2]=z[1],0},doMsync:function(y,S,P,Q,ht){var xt=se.slice(y,y+P);O.msync(S,xt,ht,P,Q)},doMkdir:function(y,S){return"/"===(y=Ht.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),O.mkdir(y,S,0),0},doMknod:function(y,S,P){switch(61440&S){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return O.mknod(y,S,P),0},doReadlink:function(y,S,P){if(P<=0)return-28;var Q=O.readlink(y),ht=Math.min(P,an(Q)),xt=Yt[S+ht];return function Ge(y,S,P){return ze(y,se,S,P)}(Q,S,P+1),Yt[S+ht]=xt,ht},doAccess:function(y,S){if(-8&S)return-28;var Q=O.lookupPath(y,{follow:!0}).node;if(!Q)return-44;var ht="";return 4&S&&(ht+="r"),2&S&&(ht+="w"),1&S&&(ht+="x"),ht&&O.nodePermissions(Q,ht)?-2:0},doDup:function(y,S,P){var Q=O.getStream(P);return Q&&O.close(Q),O.open(y,S,0,P,P).fd},doReadv:function(y,S,P,Q){for(var ht=0,xt=0;xt>2],te=O.read(y,Yt,qt[S+8*xt>>2],Rt,Q);if(te<0)return-1;if(ht+=te,te>2],qt[S+(8*xt+4)>>2],Q);if(te<0)return-1;ht+=te}return ht},varargs:void 0,get:function(){return re.varargs+=4,qt[re.varargs-4>>2]},getStr:function(y){return Ce(y)},getStreamFromFD:function(y){var S=O.getStream(y);if(!S)throw new O.ErrnoError(8);return S},get64:function(y,S){return y}};var Vn=[];function Qe(y){try{return Jt.grow(y-Tt.byteLength+65535>>>16),Xe(Jt.buffer),1}catch{}}var Cn={};function li(){if(!li.strings){var S={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Qt||"./this.program"};for(var P in Cn)void 0===Cn[P]?delete S[P]:S[P]=Cn[P];var Q=[];for(var P in S)Q.push(P+"="+S[P]);li.strings=Q}return li.strings}var Mn=function(y,S,P,Q){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=O.nextInode++,this.name=S,this.mode=P,this.node_ops={},this.stream_ops={},this.rdev=Q};function Bi(y,S,P){var Q=P>0?P:an(y)+1,ht=new Array(Q),xt=ze(y,ht,0,ht.length);return S&&(ht.length=xt),ht}Object.defineProperties(Mn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return O.isDir(this.mode)}},isDevice:{get:function(){return O.isChrdev(this.mode)}}}),O.FSNode=Mn,O.staticInit();var Ke={A:function jt(y,S){return function Ut(y,S){var P;if(0===y)P=Date.now();else{if(1!==y&&4!==y)return Pt(28),-1;P=bt()}return qt[S>>2]=P/1e3|0,qt[S+4>>2]=P%1e3*1e3*1e3|0,0}(y,S)},B:function Te(y,S){try{return y=re.getStr(y),re.doAccess(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},h:function ye(y,S,P){re.varargs=P;try{var Q=re.getStreamFromFD(y);switch(S){case 0:return(ht=re.get())<0?-28:O.open(Q.path,Q.flags,0,ht).fd;case 1:case 2:case 6:case 7:return 0;case 3:return Q.flags;case 4:var ht=re.get();return Q.flags|=ht,0;case 5:return ht=re.get(),pe[ht+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Pt(28),-1}}catch(Rt){if(typeof O>"u"||!(Rt instanceof O.ErrnoError))throw Rt;return-Rt.errno}},x:function je(y,S){try{var P=re.getStreamFromFD(y);return re.doStat(O.stat,P.path,S)}catch(Q){if(typeof O>"u"||!(Q instanceof O.ErrnoError))throw Q;return-Q.errno}},u:function Oe(y,S,P,Q){try{S=re.getStr(S);var ht=256&Q,xt=4096&Q;return Q&=-4353,S=re.calculateAt(y,S,xt),re.doStat(ht?O.lstat:O.stat,S,P)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},y:function Be(y,S,P){re.varargs=P;try{var Q=re.getStreamFromFD(y);switch(S){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return Q.tty?0:-59;case 21519:if(!Q.tty)return-59;var ht=re.get();return qt[ht>>2]=0,0;case 21520:return Q.tty?-28:-59;case 21531:return ht=re.get(),O.ioctl(Q,S,ht);default:Tn("bad ioctl syscall "+S)}}catch(xt){if(typeof O>"u"||!(xt instanceof O.ErrnoError))throw xt;return-xt.errno}},k:function he(y,S,P,Q,ht,xt){try{return function oe(y,S,P,Q,ht,xt){xt<<=12;var At,Rt=!1;if(0!=(16&Q)&&y%65536!=0)return-28;if(0!=(32&Q)){if(!(At=Wt(S)))return-48;Rt=!0}else{var te=O.getStream(ht);if(!te)return-8;var Le=O.mmap(te,y,S,xt,P,Q);At=Le.ptr,Rt=Le.allocated}return re.mappings[At]={malloc:At,len:S,allocated:Rt,fd:ht,prot:P,flags:Q,offset:xt},At}(y,S,P,Q,ht,xt)}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},j:function fn(y,S){try{return function Fe(y,S){var P=re.mappings[y];if(0===S||!P)return-28;if(S===P.len){var Q=O.getStream(P.fd);Q&&2&P.prot&&re.doMsync(y,Q,S,P.flags,P.offset),re.mappings[y]=null,P.allocated&&yt(P.malloc)}return 0}(y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},e:function mn(y,S,P){re.varargs=P;try{var Q=re.getStr(y),ht=P?re.get():0;return O.open(Q,S,ht).fd}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return-At.errno}},v:function Je(y,S){try{return y=re.getStr(y),re.doStat(O.stat,y,S)}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return-P.errno}},z:function $e(y){try{return y=re.getStr(y),O.unlink(y),0}catch(S){if(typeof O>"u"||!(S instanceof O.ErrnoError))throw S;return-S.errno}},r:function wn(){throw"longjmp"},q:function Zn(){Tn("")},C:function Ri(y,S,P){var Q=function Yn(y,S){var P;for(Vn.length=0,S>>=2;P=se[y++];){var Q=P<105;Q&&1&S&&S++,Vn.push(Q?Ve[S++>>1]:qt[S]),++S}return Vn}(S,P);return $[y].apply(null,Q)},o:function ce(y,S,P){se.copyWithin(y,S,S+P)},p:function _n(y){var S=se.length,P=2147483648;if((y>>>=0)>P)return!1;for(var Q=1;Q<=4;Q*=2){var ht=S*(1+.2/Q);if(ht=Math.min(ht,y+100663296),Qe(Math.min(P,un(Math.max(y,ht),65536))))return!0}return!1},s:function jn(y,S){var P=0;return li().forEach(function(Q,ht){var xt=S+P;qt[y+4*ht>>2]=xt,function _e(y,S,P){for(var Q=0;Q>0]=y.charCodeAt(Q);P||(Yt[S>>0]=0)}(Q,xt),P+=Q.length+1}),0},t:function En(y,S){var P=li();qt[y>>2]=P.length;var Q=0;return P.forEach(function(ht){Q+=ht.length+1}),qt[S>>2]=Q,0},a:function Pn(y){!function Hi(y,S){!function vi(y){(function Ei(){return Vt||!1})()||(D.onExit&&D.onExit(y),me=!0),Nt(y,new Me(y))}(y)}(y)},d:function Jn(y){try{var S=re.getStreamFromFD(y);return O.close(S),0}catch(P){if(typeof O>"u"||!(P instanceof O.ErrnoError))throw P;return P.errno}},i:function bi(y,S,P,Q){try{var ht=re.getStreamFromFD(y),xt=re.doReadv(ht,S,P);return qt[Q>>2]=xt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},n:function gn(y,S,P,Q,ht){try{var xt=re.getStreamFromFD(y),Rt=4294967296*P+(S>>>0),te=9007199254740992;return Rt<=-te||Rt>=te?-61:(O.llseek(xt,Rt,Q),z=[xt.position>>>0,(sn=xt.position,+Math.abs(sn)>=1?sn>0?(0|Math.min(+Math.floor(sn/4294967296),4294967295))>>>0:~~+Math.ceil((sn-+(~~sn>>>0))/4294967296)>>>0:0)],qt[ht>>2]=z[0],qt[ht+4>>2]=z[1],xt.getdents&&0===Rt&&0===Q&&(xt.getdents=null),0)}catch(Le){if(typeof O>"u"||!(Le instanceof O.ErrnoError))throw Le;return Le.errno}},g:function hn(y,S,P,Q){try{var ht=re.getStreamFromFD(y),xt=re.doWritev(ht,S,P);return qt[Q>>2]=xt,0}catch(At){if(typeof O>"u"||!(At instanceof O.ErrnoError))throw At;return At.errno}},c:function ci(){return Ue},w:function Ji(y){var S=Date.now();return qt[y>>2]=S/1e3|0,qt[y+4>>2]=S%1e3*1e3|0,0},l:function we(y,S,P,Q,ht,xt,At){var Rt=Bt();try{return A(y)(S,P,Q,ht,xt,At)}catch(te){if(ee(Rt),te!==te+0&&"longjmp"!==te)throw te;De(1,0)}},m:function on(y,S){var P=Bt();try{A(y)(S)}catch(Q){if(ee(P),Q!==Q+0&&"longjmp"!==Q)throw Q;De(1,0)}},b:function ui(y){!function(y){Ue=y}(y)},f:function zi(y){var S=Date.now()/1e3|0;return y&&(qt[y>>2]=S),S}};(function Hn(){var y={a:Ke};function S(At,Rt){D.asm=At.exports,Xe((Jt=D.asm.D).buffer),bn=D.asm.M,function Qi(y){Ni.unshift(y)}(D.asm.E),He()}function P(At){S(At.instance)}function Q(At){return function Fi(){return $t||"function"!=typeof fetch?Promise.resolve().then(function(){return be(In)}):fetch(In,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+In+"'";return y.arrayBuffer()}).catch(function(){return be(In)})}().then(function(Rt){return WebAssembly.instantiate(Rt,y)}).then(function(Rt){return Rt}).then(At,function(Rt){xe("failed to asynchronously prepare wasm: "+Rt),Tn(Rt)})}if(On(),D.instantiateWasm)try{return D.instantiateWasm(y,S)}catch(At){return xe("Module.instantiateWasm callback failed with error: "+At),!1}return function ht(){return $t||"function"!=typeof WebAssembly.instantiateStreaming||Di(In)||"function"!=typeof fetch?Q(P):fetch(In,{credentials:"same-origin"}).then(function(At){return WebAssembly.instantiateStreaming(At,y).then(P,function(te){return xe("wasm streaming compile failed: "+te),xe("falling back to ArrayBuffer instantiation"),Q(P)})})}().catch(St),{}})(),D.___wasm_call_ctors=function(){return(D.___wasm_call_ctors=D.asm.E).apply(null,arguments)};var _i=D._emscripten_bind_VoidPtr___destroy___0=function(){return(_i=D._emscripten_bind_VoidPtr___destroy___0=D.asm.F).apply(null,arguments)},Dn=D._emscripten_bind_Graphviz_Graphviz_2=function(){return(Dn=D._emscripten_bind_Graphviz_Graphviz_2=D.asm.G).apply(null,arguments)},b=D._emscripten_bind_Graphviz_version_0=function(){return(b=D._emscripten_bind_Graphviz_version_0=D.asm.H).apply(null,arguments)},k=D._emscripten_bind_Graphviz_lastError_0=function(){return(k=D._emscripten_bind_Graphviz_lastError_0=D.asm.I).apply(null,arguments)},Z=D._emscripten_bind_Graphviz_layout_3=function(){return(Z=D._emscripten_bind_Graphviz_layout_3=D.asm.J).apply(null,arguments)},rt=D._emscripten_bind_Graphviz_createFile_2=function(){return(rt=D._emscripten_bind_Graphviz_createFile_2=D.asm.K).apply(null,arguments)},ut=D._emscripten_bind_Graphviz___destroy___0=function(){return(ut=D._emscripten_bind_Graphviz___destroy___0=D.asm.L).apply(null,arguments)};D._malloc=function(){return(D._malloc=D.asm.N).apply(null,arguments)};var Ie,yt=D._free=function(){return(yt=D._free=D.asm.O).apply(null,arguments)},Ot=D.___errno_location=function(){return(Ot=D.___errno_location=D.asm.P).apply(null,arguments)},Bt=D.stackSave=function(){return(Bt=D.stackSave=D.asm.Q).apply(null,arguments)},ee=D.stackRestore=function(){return(ee=D.stackRestore=D.asm.R).apply(null,arguments)},De=D._setThrew=function(){return(De=D._setThrew=D.asm.S).apply(null,arguments)},Ye=D._memalign=function(){return(Ye=D._memalign=D.asm.T).apply(null,arguments)};function Me(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function Kn(y){function S(){Ie||(Ie=!0,D.calledRun=!0,!me&&(function Zi(){!D.noFSInit&&!O.init.initialized&&O.init(),O.ignorePermissions=!1,ct(Ni)}(),mt(D),D.onRuntimeInitialized&&D.onRuntimeInitialized(),function Pi(){if(D.postRun)for("function"==typeof D.postRun&&(D.postRun=[D.postRun]);D.postRun.length;)y=D.postRun.shift(),fi.unshift(y);var y;ct(fi)}()))}tn>0||(function er(){if(D.preRun)for("function"==typeof D.preRun&&(D.preRun=[D.preRun]);D.preRun.length;)y=D.preRun.shift(),oi.unshift(y);var y;ct(oi)}(),tn>0)||(D.setStatus?(D.setStatus("Running..."),setTimeout(function(){setTimeout(function(){D.setStatus("")},1),S()},1)):S())}if(yi=function y(){Ie||Kn(),Ie||(yi=y)},D.run=Kn,D.preInit)for("function"==typeof D.preInit&&(D.preInit=[D.preInit]);D.preInit.length>0;)D.preInit.pop()();function Wn(){}function Nn(y){return(y||Wn).__cache__}function Ci(y,S){var P=Nn(S),Q=P[y];return Q||((Q=Object.create((S||Wn).prototype)).ptr=y,P[y]=Q)}Kn(),(Wn.prototype=Object.create(Wn.prototype)).constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},D.WrapperObject=Wn,D.getCache=Nn,D.wrapPointer=Ci,D.castObject=function Ki(y,S){return Ci(y.ptr,S)},D.NULL=Ci(0),D.destroy=function Gn(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete Nn(y.__class__)[y.ptr]},D.compare=function va(y,S){return y.ptr===S.ptr},D.getPointer=function za(y){return y.ptr},D.getClass=function Mr(y){return y.__class__};var An={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(An.needed){for(var y=0;y=An.size?(ve(Q>0),An.needed+=Q,ht=D._malloc(Q),An.temps.push(ht)):(ht=An.buffer+An.pos,An.pos+=Q),ht},copy:function(y,S,P){switch(P>>>=0,S.BYTES_PER_ELEMENT){case 2:P>>>=1;break;case 4:P>>>=2;break;case 8:P>>>=3}for(var ht=0;ht\n\n')}}function st(H,j){var it=Y({images:[],files:[]},j);V(V([],it.files,!0),function et(H){return H.map(nt)}(it.images),!0).forEach(function(tt){return H.createFile(tt.path,tt.data)})}var X={layout:function(H,j,it,tt){return void 0===j&&(j="svg"),void 0===it&&(it="dot"),H?u(B,tt?.wasmFolder,tt?.wasmBinary).then(function(U){var D=new U.Graphviz(void 0!==tt?.yInvert&&tt?.yInvert,void 0!==tt?.nop?tt?.nop:0);st(D,tt);var mt=D.layout(H,j,it);if(U.destroy(D),!mt)throw new Error(U.Graphviz.prototype.lastError());return mt}):Promise.resolve("")},circo:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"circo",it)},dot:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"dot",it)},fdp:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"fdp",it)},sfdp:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"sfdp",it)},neato:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"neato",it)},osage:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"osage",it)},patchwork:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"patchwork",it)},twopi:function(H,j,it){return void 0===j&&(j="svg"),this.layout(H,j,"twopi",it)}},W=function(){function H(j){this._wasm=j}return H.prototype.layout=function(j,it,tt,U){if(void 0===it&&(it="svg"),void 0===tt&&(tt="dot"),!j)return"";var D=new this._wasm.Graphviz(U?.yInvert?1:0,U?.nop?U?.nop:0);st(D,U);var mt=D.layout(j,it,tt);if(this._wasm.destroy(D),!mt)throw new Error(this._wasm.Graphviz.prototype.lastError());return mt},H.prototype.circo=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"circo",tt)},H.prototype.dot=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"dot",tt)},H.prototype.fdp=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"fdp",tt)},H.prototype.sfdp=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"sfdp",tt)},H.prototype.neato=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"neato",tt)},H.prototype.osage=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"osage",tt)},H.prototype.patchwork=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"patchwork",tt)},H.prototype.twopi=function(j,it,tt){return void 0===it&&(it="svg"),this.layout(j,it,"twopi",tt)},H}();s.GraphvizSync=W,s.StackElement=m,s.StackParser=C,s.expatVersion=function I(H,j){return u(g,H,j).then(function(it){return it.CExpat.prototype.version()})},s.graphviz=X,s.graphvizSync=function at(H,j){return u(B,H,j).then(function(it){return new W(it)})},s.graphvizVersion=function K(H,j){return u(B,H,j).then(function(it){return it.Graphviz.prototype.version()})},s.parse=R,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(E)},62876:(w,E,s)=>{"use strict";s.r(E),s.d(E,{AdminModule:()=>Cy});var c={};s.r(c),s.d(c,{forceCenter:()=>sd,forceCollide:()=>Vo,forceLink:()=>Yo,forceManyBody:()=>Xo,forceRadial:()=>Md,forceSimulation:()=>Wo,forceX:()=>Nd,forceY:()=>Pd});var x={};s.r(x),s.d(x,{dispatch:()=>ba.Z});var _={};s.r(_),s.d(_,{interval:()=>Rd,now:()=>or.zO,timeout:()=>$a.Z,timer:()=>or.HT,timerFlush:()=>or.R8});var g=s(36895),p=s(94364),t=s(94650),d=s(77968),l=s(97392),h=s(61283),f=s(4235),u=s(89383);const m=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(d.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,m)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},dependencies:[g.PC,l.Hw,h.A,f.W,u.X$]}),n})();var L=s(71135);let I=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},dependencies:[L.L]}),n})();var R=s(95017),M=s(65412),F=s(30671),B=s(32080),Y=s(32105),V=s(4859),nt=s(51572),et=s(98380);function st(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function K(n,r){1&n&&t._UZ(0,"th",16)}function X(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function W(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function H(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,K,1,0,"th",11),t.YNc(10,X,2,1,"td",12),t.BQk(),t.YNc(11,W,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let j=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new F.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","","data-cy","confirm-delete-attr-definition-button",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,st,1,0,"mat-spinner",1),t.YNc(5,H,16,12,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[g.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,nt.Ou,et.w,u.X$]}),n})();var it=s(24006),tt=s(78372),U=s(63900),D=s(61135),mt=s(69751),St=s(38421),Mt=s(75797),Et=s(60515),Qt=s(25403),Nt=s(63269);function ft(...n){const r=(0,Nt.jO)(n),e=(0,Mt.k)(n);return e.length?new mt.y(i=>{let a=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{a=o=null});for(let v=0;!i.closed&&v{if(a[v].push(T),a.every(N=>N.length)){const N=a.map(G=>G.shift());i.next(r?r(...N):N),a.some((G,q)=>!G.length&&o[q])&&i.complete()}},()=>{o[v]=!0,!a[v].length&&i.complete()}));return()=>{a=o=null}}):Et.E}var dt=s(39646),wt=s(19516),Zt=s(3238),le=s(39349),ie=s(59549),ue=s(284),xe=s(84385),Ue=s(3848),Pe=s(23123);function It(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function $t(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let Vt=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new D.X(this.policy.role),this.objects=this.selectedRole.pipe((0,U.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"mat-form-field",1)(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,It,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA()(),t.TgZ(6,"mat-form-field")(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,$t,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA()(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA()()()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},dependencies:[g.sg,it.JJ,it.On,l.Hw,V.lW,ie.KE,Zt.ey,xe.gD,g.Ov,u.X$,Pe.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Jt(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function me(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index,v=t.oxw(2);return t.KtG(v.removePolicy(o))}),t.qZA(),t.YNc(2,Jt,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function ve(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"div",2),t.YNc(2,me,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4)(4,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeCollection())}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addPolicy())}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let Se=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,ve,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},dependencies:[g.sg,g.O5,l.Hw,V.lW,Vt,u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function ke(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function Ce(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index,v=t.oxw();return t.KtG(v.removeCollection(o))}),t.qZA(),t.YNc(2,ke,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let ze=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,an,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},dependencies:[g.sg,Ue.SP,Ue.uD,Ue.uX,ze,u.X$]}),n})();var un=s(10266),Tt=s(90455),Yt=s(4765);function se(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.attDef.unique=a)}),t._uU(3),t.ALo(4,"translate"),t.qZA()()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const pe=function(n){return{disable:n}};let qt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,se,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,pe,t.lcZ(1,1,i.attDef)))},dependencies:[g.O5,it.JJ,it.On,un.gM,Tt.Rr,u.X$,Yt.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})(),Ve=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Xe(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function bn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function oi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ni(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function fi(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function mi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ei(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function er(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Zi(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function Pi(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gi(n,r){if(1&n&&(t.TgZ(0,"div",8)(1,"form",9)(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,bn,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,oi,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field")(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,Ni,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field")(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,fi,2,2,"mat-option",15),t.qZA(),t.YNc(19,mi,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field")(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,Ei,2,2,"mat-option",15),t.qZA(),t.YNc(24,er,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field")(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,Zi,3,4,"mat-option",15),t.qZA(),t.YNc(29,Pi,3,3,"mat-error",11),t.qZA()(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t._UZ(32,"perun-web-apps-attribute-rights-tab-group",19),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(2),t.Q6J("collections",e.collections)}}let Qi=(()=>{class n{constructor(e,i,a,o,v,T,N){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=v,this.translate=T,this.uniqueAttPipe=N,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",it.kI.required],displayName:["",it.kI.required],description:["",it.kI.required],entity:["",it.kI.required],definitionType:["",it.kI.required],valueType:["",it.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.Array","java.util.LinkedHashMap"],this.attDef=new D.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,tt.b)(200)).subscribe(G=>{this.setAttribute(G)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,U.w)(e=>ft((0,dt.of)(e.id),(0,dt.of)(this.collections))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,U.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(it.QS),t.Y36(Y.H8),t.Y36(B.eE),t.Y36(B.V6),t.Y36(u.sK),t.Y36(wt.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([wt.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-attr-definition-button","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","data-cy","attribute-friendly-name-input","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","data-cy","attribute-display-name-input","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","data-cy","attribute-description-input","required","",3,"placeholder"],["formControlName","entity","data-cy","attribute-entity-input","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","data-cy","attribute-definition-type-input","required","",3,"placeholder"],["formControlName","valueType","data-cy","attribute-value-type-input","required","",3,"placeholder"],[3,"attDef"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xe,1,0,"mat-spinner",2),t.YNc(5,gi,33,32,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},dependencies:[g.sg,g.O5,Zt.ey,le.IC,ie.TO,ie.KE,ue.Nt,it._Y,it.Fj,it.JJ,it.JL,it.Q7,it.sg,it.u,V.lW,M.uh,M.xY,M.H8,xe.gD,nt.Ou,_e,qt,g.Ov,u.X$,Ve]}),n})();var Ee=s(9244),tn=s(10036);function yi(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function ji(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10)(5,"input",11),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.value=a)}),t.ALo(6,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let On=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=v,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,U.w)(e=>ft((0,dt.of)(e.id),(0,dt.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,U.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8),t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,yi,1,0,"mat-spinner",2),t.YNc(5,ji,7,7,"div",3),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},dependencies:[g.O5,ie.KE,ue.Nt,it.Fj,it.JJ,it.Q7,it.On,V.lW,M.uh,M.xY,M.H8,nt.Ou,et.w,u.X$]}),n})();var He=s(96308),Tn=s(36769),Bn=s(68675),Di=s(64425),In=s(37084),be=s(33604),Fi=s(56709),Hn=s(43532),sn=s(18750);function z(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24)(1,"mat-checkbox",25),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw(2);return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function ct(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function A(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"label")(2,"input",28),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))})("ngModelChange",function(a){const v=t.CHM(e).$implicit;return t.KtG(v[0]=a)}),t.qZA()()()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function bt(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function Dt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27)(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit,v=t.oxw(2);return t.KtG(v.onValueChange(o))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Pt(n,r){1&n&&t._UZ(0,"tr",30)}function Ut(n,r){1&n&&t._UZ(0,"tr",31)}function jt(n,r){if(1&n&&(t.TgZ(0,"div",10)(1,"perun-web-apps-table-wrapper",11)(2,"table",12),t.ynx(3,13),t.YNc(4,z,2,3,"th",14),t.YNc(5,$,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,ct,3,3,"th",17),t.YNc(8,A,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,bt,3,3,"th",17),t.YNc(11,Dt,2,1,"td",18),t.BQk(),t.YNc(12,Pt,1,0,"tr",20),t.YNc(13,Ut,1,0,"tr",21),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function Ht(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function J(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let pt=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=v,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new F.by,this.selection=new R.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=Ee.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new F.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(He.YE,7),t.Gf(be.Mw,5),t.Gf(Ee.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1)(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"div",6),t.YNc(16,jt,14,7,"div",7),t.YNc(17,Ht,1,0,"mat-spinner",8),t.YNc(18,J,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},dependencies:[g.O5,ue.Nt,it.Fj,it.JJ,it.On,V.lW,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,M.uh,M.xY,M.H8,nt.Ou,un.gM,et.w,Hn.M,sn.l,u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();var gt=s(60205);function _t(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function zt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Wt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const Lt=function(){return["id","name","enabled","script"]};function ae(n,r){if(1&n&&(t.TgZ(0,"div",11)(1,"form",12)(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,zt,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field")(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,Wt,3,3,"mat-error",1),t.qZA()(),t._UZ(11,"perun-web-apps-attribute-unique-toggle",15)(12,"perun-web-apps-attribute-rights-tab-group",16),t.ALo(13,"async"),t.TgZ(14,"mat-accordion")(15,"mat-expansion-panel",17)(16,"mat-expansion-panel-header")(17,"mat-panel-title"),t._uU(18),t.ALo(19,"translate"),t.qZA()(),t._UZ(20,"app-services-list",18),t.ALo(21,"async"),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(1),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(13,16,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(19,18,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(22,Lt))("services",t.lcZ(21,20,e.services$))}}function O(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.switchShowKeys())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_t,1,0,"mat-spinner",3),t.YNc(5,ae,22,23,"div",4),t.TgZ(6,"div",5),t.YNc(7,O,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCopy())}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(15),t.ALo(16,"translate"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function Te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"app-entityless-attribute-keys-list",20),t.NdJ("switchView",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.switchShowKeys())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let ye=(()=>{class n{constructor(e,i,a,o,v,T,N,G,q){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=v,this.attributesManager=T,this.serviceService=N,this.formBuilder=G,this.attributeRightsService=q,this.tableId=tn.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,it.kI.required],description:[this.attDef.description,it.kI.required]}),this.collections$=new D.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,Bn.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributePolicyCollections(this.attDef.id).subscribe(this.collections$)}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,U.w)(()=>(0,dt.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,U.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Di.TU),t.Y36(Y.H8),t.Y36(Y.KK),t.Y36(it.QS),t.Y36(B.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[3,"attDef"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,re,17,16,"div",1),t.YNc(2,Te,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},dependencies:[g.O5,le.IC,ie.TO,ie.KE,ue.Nt,it._Y,it.Fj,it.JJ,it.JL,it.Q7,it.sg,it.u,In.pp,In.ib,In.yz,In.yK,V.lW,M.uh,M.xY,M.H8,nt.Ou,_e,qt,pt,gt.Q,g.Ov,u.X$],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],data:{animation:[Tn.SG,Tn.GH,Tn.Ls]}}),n})();var je=s(70844),Oe=s(64597);let Be=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function oe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19)(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function he(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21)(1,"mat-checkbox",22),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.ALo(2,"multiWordDataCy"),t.ALo(3,"consentRelatedAttribute"),t.ALo(4,"translate"),t.ALo(5,"consentRelatedAttribute"),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q2q("data-cy","",t.lcZ(2,6,e.displayName),"-checkbox"),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(3,8,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(4,12,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(5,14,e.namespace,i.serviceEnabled,i.consentRequired))}}function Fe(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function fn(n,r){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function mn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function Je(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function $e(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function wn(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Zn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Vn(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function Yn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function Ri(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function ce(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function Qe(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function _n(n,r){1&n&&t._UZ(0,"tr",26)}function Cn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.onRowClick(o))}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function Qn(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function li(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let jn=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new R.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=Ee.f7,this.canBeSelected=v=>!this.consentRelatedPipe.transform(v.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new F.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){(0,Ee.O6)((0,Ee.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,Ee.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ee.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(e){if(!this.disableRouting){const i=(0,Ee.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(ye,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.UA),t.Y36(je.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ee.l9,7),t.Gf(He.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return i.exportData(o)}),t.TgZ(2,"div",2)(3,"table",3),t.ynx(4,4),t.YNc(5,oe,2,3,"th",5),t.YNc(6,he,6,18,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Fe,3,3,"th",8),t.YNc(9,fn,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,mn,3,3,"th",8),t.YNc(12,Je,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,$e,3,3,"th",8),t.YNc(15,wn,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,Zn,3,3,"th",8),t.YNc(18,Vn,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,Yn,3,3,"th",8),t.YNc(21,Ri,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,ce,3,3,"th",8),t.YNc(24,Qe,2,1,"td",11),t.BQk(),t.YNc(25,_n,1,0,"tr",16),t.YNc(26,Cn,1,2,"tr",17),t.qZA()()()(),t.YNc(27,Qn,3,3,"perun-web-apps-alert",18),t.YNc(28,li,3,3,"perun-web-apps-alert",18)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},dependencies:[g.O5,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,un.gM,et.w,sn.l,u.X$,Oe.R,Ve,Be,je.u],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();var En=s(96214),Pn=s(7434);function Jn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function bi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onImport())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function gn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function hn(n,r){1&n&&t._UZ(0,"mat-spinner",11)}function ci(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",12),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ji=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new R.Ov(!0,[]),this.filterValue="",this.tableId=tn.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,Ee.kZ)();e.width="650px",this.dialog.open(Qi,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,Ee.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(j,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,Ee.kZ)();e.width="700px",this.dialog.open(On,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Y.H8),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-attr-definition-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","data-cy","delete-attr-definition-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","data-cy","new-attr-definition-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-attr-definition-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Jn,3,3,"button",2),t.YNc(6,bi,3,3,"button",3),t.YNc(7,gn,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,hn,1,0,"mat-spinner",6),t.YNc(10,ci,1,5,"app-attr-def-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,jn,En.t,Pn.L,u.X$]}),n})(),ui=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[h.A]}),n})();var zi=s(9921);let Mn=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,zi.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},dependencies:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Ti=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},dependencies:[L.L]}),n})();var cn=s(71884),Bi=s(18505),Ke=s(47957),_i=s(71948),Dn=s(86257);function b(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function k(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function Z(n,r){if(1&n&&(t.TgZ(0,"mat-option",18)(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function rt(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function ut(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function yt(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Ot=(()=>{class n{constructor(e,i,a,o,v,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=v,this.notificator=T,this.searchField=new it.p4,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,tt.b)(400),(0,cn.x)(),(0,Bi.b)(()=>this.loading=!0),(0,U.w)(e=>this.usersService.findUsers(e)),(0,Bi.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const v of o)v.destination===this.destination&&(this.availableServices.includes(v.service.name)||this.availableServices.push(v.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(u.sK),t.Y36(Y.IQ),t.Y36(Y.KK),t.Y36(p.F0),t.Y36(B.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3)(6,"mat-step",4),t.YNc(7,b,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6)(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,k,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,Z,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA()(),t.TgZ(19,"div")(20,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateName(v))}),t._uU(21),t.ALo(22,"translate"),t.qZA()()(),t.TgZ(23,"mat-step",4),t.YNc(24,rt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6)(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))})("ngModelChange",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.notCompleted(v))})("ngModelChange",function(v){return i.destination=v}),t.ALo(27,"translate"),t.qZA()(),t.TgZ(28,"div")(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const v=t.MAs(5);return t.KtG(i.validateDestination(v))}),t._uU(33),t.ALo(34,"translate"),t.qZA()()(),t.TgZ(35,"mat-step"),t.YNc(36,ut,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(v){return i.chosenService=v}),t.YNc(38,yt,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div")(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA()()()()()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},dependencies:[g.sg,g.O5,Ke.XC,Ke.ZL,Zt.ey,ie.KE,ie.bx,ie.R9,ue.Nt,it.Fj,it.JJ,it.oH,it.On,V.lW,nt.Ou,_i.VQ,_i.U0,Dn.C0,Dn.VY,Dn.Vq,Dn.fd,g.Ov,u.X$]}),n})();function Bt(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function ee(n){this._context=n}function Ye(n,r){this._basis=new ee(n),this._beta=r}ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bt(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Ye.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const on=function n(r){function e(i){return 1===r?new ee(i):new Ye(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var we=s(77579),Ie=s(70655),Me=s(37340);function Kn(){}function Hi(n){return null==n?Kn:function(){return this.querySelector(n)}}function Wn(){return[]}function Nn(n){return null==n?Wn:function(){return this.querySelectorAll(n)}}function Ki(n){return function(){return this.matches(n)}}function va(n){return new Array(n.length)}function Mr(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function qi(n,r,e,i,a,o){for(var T,v=0,N=r.length,G=o.length;vr?1:n>=r?0:NaN}Mr.prototype={constructor:Mr,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Ze="http://www.w3.org/1999/xhtml";const vn={svg:"http://www.w3.org/2000/svg",xhtml:Ze,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hi(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),vn.hasOwnProperty(r)?{space:vn[r],local:n}:n}function gr(n){return function(){this.removeAttribute(n)}}function Li(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wr(n,r){return function(){this.setAttribute(n,r)}}function xi(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Yi(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function _r(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Gs(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function yc(n){return function(){this.style.removeProperty(n)}}function bc(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Tc(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Nr(n,r){return n.style.getPropertyValue(r)||Gs(n).getComputedStyle(n,null).getPropertyValue(r)}function wc(n){return function(){delete this[n]}}function Ac(n,r){return function(){this[n]=r}}function Sc(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Us(n){return n.trim().split(/^|\s+/)}function Ha(n){return n.classList||new zs(n)}function zs(n){this._node=n,this._names=Us(n.getAttribute("class")||"")}function Hs(n,r){for(var e=Ha(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Xs={},Ar=null;function nu(n,r,e){return n=$s(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function $s(n,r,e){return function(i){var a=Ar;Ar=i;try{n.call(this,this.__data__,r,e)}finally{Ar=a}}}function iu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function ru(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=Xt&&(Xt=Kt+1);!(Ae=vt[Xt])&&++Xt=0;)(v=i[a])&&(o&&4^v.compareDocumentPosition(o)&&o.parentNode.insertBefore(v,o),o=v);return this},sort:function xt(n){function r(lt,ot){return lt&&ot?n(lt.__data__,ot.__data__):!lt-!ot}n||(n=At);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?yc:"function"==typeof r?Tc:bc)(n,r,e??"")):Nr(this.node(),n)},property:function Ec(n,r){return arguments.length>1?this.each((null==r?wc:"function"==typeof r?Sc:Ac)(n,r)):this.node()[n]},classed:function Ic(n,r){var e=Us(n+"");if(arguments.length<2){for(var i=Ha(this.node()),a=-1,o=e.length;++a0)for(var N,i=n[0],a=r[0],o=n[e]-i,v=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(N=T/e)*o),this._beta*r[T]+(1-this._beta)*(a+N*v));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const uu=function n(r){function e(i){return 1===r?new xa(i):new to(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var Ya=Math.PI,Wa=2*Ya,Sr=1e-6,hu=Wa-Sr;function Xa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function eo(){return new Xa}Xa.prototype=eo.prototype={constructor:Xa,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,v=this._y1,T=(e=+e)-(n=+n),N=(i=+i)-(r=+r),G=o-n,q=v-r,lt=G*G+q*q;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(lt>Sr)if(Math.abs(q*T-N*G)>Sr&&a){var ot=e-o,Ct=i-v,kt=T*T+N*N,Ft=ot*ot+Ct*Ct,vt=Math.sqrt(kt),Gt=Math.sqrt(lt),Kt=a*Math.tan((Ya-Math.acos((kt+lt-Ft)/(2*vt*Gt)))/2),Xt=Kt/Gt,ge=Kt/vt;Math.abs(Xt-1)>Sr&&(this._+="L"+(n+Xt*G)+","+(r+Xt*q)),this._+="A"+a+","+a+",0,0,"+ +(q*ot>G*Ct)+","+(this._x1=n+ge*T)+","+(this._y1=r+ge*N)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var v=(e=+e)*Math.cos(i),T=e*Math.sin(i),N=n+v,G=r+T,q=1^o,lt=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+N+","+G:(Math.abs(this._x1-N)>Sr||Math.abs(this._y1-G)>Sr)&&(this._+="L"+N+","+G),e&&(lt<0&&(lt=lt%Wa+Wa),lt>hu?this._+="A"+e+","+e+",0,1,"+q+","+(n-v)+","+(r-T)+"A"+e+","+e+",0,1,"+q+","+(this._x1=N)+","+(this._y1=G):lt>Sr&&(this._+="A"+e+","+e+",0,"+ +(lt>=Ya)+","+q+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const du=eo;function ya(n){return function(){return n}}function no(n){this._context=n}function pu(n){return new no(n)}function fu(n){return n[0]}function mu(n){return n[1]}no.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var io=Math.PI;function ao(n){return(1-Math.cos(io*n))/2}var ba=s(25922),or=s(49194),$a=s(73339),_u=(0,ba.Z)("start","end","cancel","interrupt"),vu=[];function wa(n,r,e,i,a,o){var v=n.__transition;if(v){if(e in v)return}else n.__transition={};!function xu(n,r,e){var a,i=n.__transition;function v(G){var q,lt,ot,Ct;if(1!==e.state)return N();for(q in i)if((Ct=i[q]).name===e.name){if(3===Ct.state)return(0,$a.Z)(v);4===Ct.state?(Ct.state=6,Ct.timer.stop(),Ct.on.call("interrupt",n,n.__data__,Ct.index,Ct.group),delete i[q]):+q0)throw new Error("too late; already scheduled");return e}function lr(n,r){var e=tr(n,r);if(e.state>3)throw new Error("too late; already running");return e}function tr(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}function vr(n,r){return n=+n,r=+r,function(e){return n*(1-e)+r*e}}var ia,qa,ho,Aa,co=180/Math.PI,Ka={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uo(n,r,e,i,a,o){var v,T,N;return(v=Math.sqrt(n*n+r*r))&&(n/=v,r/=v),(N=n*e+r*i)&&(e-=n*N,i-=r*N),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,N/=T),n*i180?q+=360:q-G>180&&(G+=360),ot.push({i:lt.push(a(lt)+"rotate(",null,i)-2,x:vr(G,q)})):q&<.push(a(lt)+"rotate("+q+i)}(G.rotate,q.rotate,lt,ot),function T(G,q,lt,ot){G!==q?ot.push({i:lt.push(a(lt)+"skewX(",null,i)-2,x:vr(G,q)}):q&<.push(a(lt)+"skewX("+q+i)}(G.skewX,q.skewX,lt,ot),function N(G,q,lt,ot,Ct,kt){if(G!==lt||q!==ot){var Ft=Ct.push(a(Ct)+"scale(",null,",",null,")");kt.push({i:Ft-4,x:vr(G,lt)},{i:Ft-2,x:vr(q,ot)})}else(1!==lt||1!==ot)&&Ct.push(a(Ct)+"scale("+lt+","+ot+")")}(G.scaleX,G.scaleY,q.scaleX,q.scaleY,lt,ot),G=q=null,function(Ct){for(var vt,kt=-1,Ft=ot.length;++kt>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Ea(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Ea(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=ku.exec(n))?new Gi(r[1],r[2],r[3],1):(r=Iu.exec(n))?new Gi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=Ou.exec(n))?Ea(r[1],r[2],r[3],r[4]):(r=Mu.exec(n))?Ea(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Nu.exec(n))?bo(r[1],r[2]/100,r[3]/100,1):(r=Pu.exec(n))?bo(r[1],r[2]/100,r[3]/100,r[4]):mo.hasOwnProperty(n)?vo(mo[n]):"transparent"===n?new Gi(NaN,NaN,NaN,0):null}function vo(n){return new Gi(n>>16&255,n>>8&255,255&n,1)}function Ea(n,r,e,i){return i<=0&&(n=r=e=NaN),new Gi(n,r,e,i)}function Ru(n){return n instanceof ra||(n=oa(n)),n?new Gi((n=n.rgb()).r,n.g,n.b,n.opacity):new Gi}function Da(n,r,e,i){return 1===arguments.length?Ru(n):new Gi(n,r,e,i??1)}function Gi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function xo(){return"#"+ns(this.r)+ns(this.g)+ns(this.b)}function yo(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function ns(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function bo(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new ir(n,r,e,i)}function To(n){if(n instanceof ir)return new ir(n.h,n.s,n.l,n.opacity);if(n instanceof ra||(n=oa(n)),!n)return new ir;if(n instanceof ir)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),v=NaN,T=o-a,N=(o+a)/2;return T?(v=r===o?(e-i)/T+6*(e0&&N<1?0:v,new ir(v,T,N,n.opacity)}function ir(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function is(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Co(n,r,e,i,a){var o=n*n,v=o*n;return((1-3*n+3*o-v)*r+(4-6*o+3*v)*e+(1+3*n+3*o-3*v)*i+v*a)/6}function wo(n){return function(){return n}}function So(n,r){var e=r-n;return e?function Ao(n,r){return function(e){return n+e*r}}(n,e):wo(isNaN(n)?r:n)}es(ra,oa,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:go,formatHex:go,formatHsl:function Fu(){return To(this).formatHsl()},formatRgb:_o,toString:_o}),es(Gi,Da,fo(ra,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new Gi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Gi(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xo,formatHex:xo,formatRgb:yo,toString:yo})),es(ir,function Bu(n,r,e,i){return 1===arguments.length?To(n):new ir(n,r,e,i??1)},fo(ra,{brighter:function(n){return n=null==n?Sa:Math.pow(Sa,n),new ir(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new ir(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Gi(is(n>=240?n-240:n+120,a,i),is(n,a,i),is(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Eo=function n(r){var e=function Uu(n){return 1==(n=+n)?So:function(r,e){return e-r?function Gu(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):wo(isNaN(r)?e:r)}}(r);function i(a,o){var v=e((a=Da(a)).r,(o=Da(o)).r),T=e(a.g,o.g),N=e(a.b,o.b),G=So(a.opacity,o.opacity);return function(q){return a.r=v(q),a.g=T(q),a.b=N(q),a.opacity=G(q),a+""}}return i.gamma=n,i}(1);function Do(n){return function(r){var v,T,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(v=0;v=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Co((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),T[v]?T[v]+=o:T[++v]=o),(i=i[0])===(a=a[0])?T[v]?T[v]+=a:T[++v]=a:(T[++v]=null,N.push({i:v,x:vr(i,a)})),e=as.lastIndex;return e=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Ja:lr;return function(){var v=o(this,n),T=v.on;T!==i&&(a=(i=T).copy()).on(r,e),v.on=a}}var bh=na.prototype.constructor;function ko(n){return function(){this.style.removeProperty(n)}}function Dh(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Lh(n,r,e){var i,a;function o(){var v=r.apply(this,arguments);return v!==a&&(i=(a=v)&&Dh(n,v,e)),i}return o._value=r,o}function Nh(n){return function(r){this.textContent=n.call(this,r)}}function Ph(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Nh(a)),r}return i._value=n,i}var Zh=0;function cr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Io(){return++Zh}var Fr=na.prototype;cr.prototype=function Vh(n){return na().transition(n)}.prototype={constructor:cr,select:function xh(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=Hi(n));for(var i=this._groups,a=i.length,o=new Array(a),v=0;v2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[v]):o=!1;o&&delete n.__transition}}(this,n)})},na.prototype.transition=function zh(n){var r,e;n instanceof cr?(r=n._id,n=n._name):(r=Io(),(e=ss).time=(0,or.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o"u"}function id(n){if(Array.isArray(n)){for(var r=0,e=Array(n.length);r1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function La(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const Ro=Symbol("implicit");function os(){var n=new Map,r=[],e=[],i=Ro;function a(o){var v=o+"",T=n.get(v);if(!T){if(i!==Ro)return i;n.set(v,T=r.push(o))}return e[(T-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const v of o){const T=v+"";n.has(T)||n.set(T,r.push(v))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return os(r,e).unknown(i)},La.apply(a,arguments),a}var Br=s(59695);function sd(n,r){var e;function i(){var a,v,o=e.length,T=0,N=0;for(a=0;a=(lt=(T+G)/2))?T=lt:G=lt,(vt=e>=(ot=(N+q)/2))?N=ot:q=ot,a=o,!(o=o[Gt=vt<<1|Ft]))return a[Gt]=v,n;if(Ct=+n._x.call(null,o.data),kt=+n._y.call(null,o.data),r===Ct&&e===kt)return v.next=o,a?a[Gt]=v:n._root=v,n;do{a=a?a[Gt]=new Array(4):n._root=new Array(4),(Ft=r>=(lt=(T+G)/2))?T=lt:G=lt,(vt=e>=(ot=(N+q)/2))?N=ot:q=ot}while((Gt=vt<<1|Ft)==(Kt=(kt>=ot)<<1|Ct>=lt));return a[Kt]=o,a[Gt]=v,n}function ki(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function xd(n){return n[0]}function bd(n){return n[1]}function ls(n,r,e){var i=new cs(r??xd,e??bd,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function cs(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function Zo(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Ii=ls.prototype=cs.prototype;function Cd(n){return n.x+n.vx}function wd(n){return n.y+n.vy}function Vo(n){var r,e,i=1,a=1;function o(){for(var N,q,lt,ot,Ct,kt,Ft,G=r.length,vt=0;vtot+yn||AeCt+yn||delt.index){var Ln=ot-nn.x-nn.vx,kn=Ct-nn.y-nn.vy,$n=Ln*Ln+kn*kn;$nN.r&&(N.r=N[G].r)}function T(){if(r){var N,q,G=r.length;for(e=new Array(G),N=0;Nq&&(q=a),olt&&(lt=o));if(N>q||G>lt)return this;for(this.cover(N,G).cover(q,lt),e=0;en||n>=a||i>r||r>=o;)switch(G=(rq||(T=kt.y0)>lt||(N=kt.x1)=Gt)<<1|n>=vt)&&(kt=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Ft],ot[ot.length-1-Ft]=kt)}else{var Kt=n-+this._x.call(null,Ct.data),Xt=r-+this._y.call(null,Ct.data),ge=Kt*Kt+Xt*Xt;if(ge=(ot=(v+N)/2))?v=ot:N=ot,(Ft=lt>=(Ct=(T+G)/2))?T=Ct:G=Ct,r=e,!(e=e[vt=Ft<<1|kt]))return this;if(!e.length)break;(r[vt+1&3]||r[vt+2&3]||r[vt+3&3])&&(i=r,Gt=vt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[vt]=o:delete r[vt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[Gt]=e:this._root=e),this):(this._root=o,this)},Ii.removeAll=function fd(n){for(var r=0,e=n.length;r1?(null==Ft?T.remove(kt):T.set(kt,Ct(Ft)),r):T.get(kt)},find:function(kt,Ft,vt){var Xt,ge,Ae,de,nn,Gt=0,Kt=n.length;for(null==vt?vt=1/0:vt*=vt,Gt=0;Gt1?(G.on(kt,Ft),r):G.on(kt)}}}function Xo(){var n,r,e,a,i=ti(-30),o=1,v=1/0,T=.81;function N(ot){var Ct,kt=n.length,Ft=ls(n,Ld,kd).visitAfter(q);for(e=ot,Ct=0;Ct=v)){(ot.data!==r||ot.next)&&(0===vt&&(Xt+=(vt=xr())*vt),0===Gt&&(Xt+=(Gt=xr())*Gt),Xt{return(n=Zr||(Zr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Zr;var n})(),Vr=(()=>{return(n=Vr||(Vr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Vr;var n})();function cp(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(...G){const q=+new Date;!T&&!1===e.leading&&(T=q);const lt=r-(q-T);return i=this,a=G,lt<=0?(clearTimeout(v),v=null,T=q,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,lt)),o}}function up(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:cp(o.value,n,r)}),this[a]}}}}const Qo=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class hp{constructor(r,e,i){"string"==typeof r&&(r=Qo.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=Qo.find(i=>i.name===r)),os().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let pp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Gr=(()=>{return(n=Gr||(Gr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Gr;var n})();function Ur(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function Jo(n,r){return"number"==typeof r?n[r]:r}const Ko={dagre:class fp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class mp{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return{...i,position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}}};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(N=>N.id===e.source),a=r.nodes.find(N=>N.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class _p{constructor(){this.defaultSettings={orientation:Gr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Br.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(kt=>kt.id===e.source),a=r.nodes.find(kt=>kt.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",v="y"===o?"x":"y",T="y"===o?"height":"width",N=i.position[o]<=a.position[o]?-1:1,G={[v]:i.position[v],[o]:i.position[o]-N*(i.dimension[T]/2)},q={[v]:a.position[v],[o]:a.position[o]+N*(a.dimension[T]/2)},lt=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[G,{[v]:G[v],[o]:G[o]-N*lt},{[v]:q[v],[o]:q[o]+N*lt},q];const Ct=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return Ct&&(Ct.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Br.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=ur()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class vp{constructor(){this.defaultSettings={force:Wo().force("charge",Xo().strength(-150)).force("collide",Vo(5)),forceLink:Yo().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new we.x}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>({...e}))],edges:[...this.inputGraph.edges.map(e=>({...e}))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>({...e,source:Ur(e.source).id,target:Ur(e.target).id,points:[{x:Ur(e.source).x,y:Ur(e.source).y},{x:Ur(e.target).x,y:Ur(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class xp{constructor(){this.defaultSettings={force:(0,Fd.d3adaptor)({...x,...c,..._}).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new we.x}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>({...e,width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return{...e,source:i,target:a}}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>({...e,id:e.id||ur(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=Jo(r.nodes,e.source),a=Jo(r.nodes,e.target);return{...e,source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]}}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),o=i||r.groups.find(T=>T.id===e.source),v=a||r.groups.find(T=>T.id===e.target);return{...e,source:o.id,target:v.id,points:[o.bounds.rayIntersection(v.bounds.cx(),v.bounds.cy()),v.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]}})),this.outputGraph.clusters=r.groups.map((e,i)=>({...this.inputGraph.clusters[i],dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let qo=(()=>{class n{getLayout(e){if(Ko[e])return new Ko[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),yp=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),bp=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Zr.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Vr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new Oo.w0,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=v=>v.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${ur()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new pp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=uu.beta(1)),this.zone.run(()=>{this.dims=function dp({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new Oo.w0;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=ur()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=ur()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof mt.y?e:(0,dt.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Yh.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const v=this.graph.edgeLabels[o],T=o.replace(/[^\w-]*/g,""),N=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let G=this._oldLinks.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);const q=this.graph.edges.find(N?Ft=>`${Ft.source}${Ft.target}${Ft.id}`===T:Ft=>`${Ft.source}${Ft.target}`===T);G?G.data&&q&&q.data&&JSON.stringify(G.data)!==JSON.stringify(q.data)&&(G.data=q.data):G=q||v,G.oldLine=G.line;const lt=v.points,ot=this.generateLine(lt),Ct=Object.assign({},G);Ct.line=ot,Ct.points=lt,this.updateMidpointOnEdge(Ct,lt);const kt=lt[Math.floor(lt.length/2)];kt&&(Ct.textTransform=`translate(${kt.x||0},${kt.y||0})`),Ct.textAngle=0,Ct.oldLine||(Ct.oldLine=Ct.line),this.calcDominantBaseline(Ct),a.push(Ct)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const v=Object.assign({},o);return v.oldLine=o.line,v})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Vr.UpperLeft:return"";case Vr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let v=0;vi?T.position.x+T.dimension.width:i,o=T.position.y+T.dimension.height>o?T.position.y+T.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(v=>v.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch{return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let v;try{for(const T of i.getElementsByTagName("text")){const N=T.getBBox();v?(N.width>v.width&&(v.width=N.width),N.height>v.height&&(v.height=N.height)):v=N}}catch{return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:v.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(Ks(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(ao).duration(e?500:0).attr("d",a.line),Ks(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(ao).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const v=e.clientX,T=e.clientY,N=this.el.nativeElement.querySelector("svg"),G=N.querySelector("g.chart"),q=N.createSVGPoint();q.x=v,q.y=T;const lt=q.matrixTransform(G.getScreenCTM().inverse());this.pan(lt.x,lt.y,!0),this.zoom(a),this.pan(-lt.x,-lt.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=la(this.transformationMatrix,Fo(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=la(this.transformationMatrix,Fo((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=la(this.transformationMatrix,function td(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return qh(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const v of this.graph.edges)if((v.target===i.id||v.source===i.id||v.target.id===i.id||v.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,v),N=T instanceof mt.y?T:(0,dt.of)(T);this.graphSubscription.add(N.subscribe(G=>{this.graph=G,this.redrawEdge(v)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function nd(n){return function Po(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function ad(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new hp(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,v=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,v)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Zr.Horizontal:this.pan(a,0);break;case Zr.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,Mo.R)(window,"resize").pipe((0,tt.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(qo))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,Bd,5),t.Suo(a,Zd,5),t.Suo(a,Vd,5),t.Suo(a,Gd,5),t.Suo(a,Ud,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(zd,5),t.Gf(Hd,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:lp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,np,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,op,6,15,"g",3),t.qZA()()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},dependencies:[yp,g.O5,g.tP,g.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,Me.X$)("animationState",[(0,Me.eR)(":enter",[(0,Me.oB)({opacity:0}),(0,Me.jt)("500ms 100ms",(0,Me.oB)({opacity:1}))])])]},changeDetection:0}),(0,Ie.gn)([up(500)],n.prototype,"updateMinimap",null),n})(),Tp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[qo],imports:[[g.ez]]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[g.ez],Tp]}),n})();var tl=s(84080);s(52016),s(56758),s(37656),s(29132),s(18429);Math;function ua(n){return{type:n}}function ul(n,r){return nr?1:n>=r?0:NaN}function _s(n){let r=n,e=n;function i(v,T,N,G){for(null==N&&(N=0),null==G&&(G=v.length);N>>1;e(v[q],T)<0?N=q+1:G=q}return N}return 1===n.length&&(r=(v,T)=>n(v)-T,e=function Np(n){return(r,e)=>ul(n(r),e)}(n)),{left:i,center:function o(v,T,N,G){null==N&&(N=0),null==G&&(G=v.length);const q=i(v,T,N,G-1);return q>N&&r(v[q-1],T)>-r(v[q],T)?q-1:q},right:function a(v,T,N,G){for(null==N&&(N=0),null==G&&(G=v.length);N>>1;e(v[q],T)>0?G=q:N=q+1}return N}}}["w","e"].map(ua),["n","s"].map(ua),["n","w","e","s","nw","ne","sw","se"].map(ua);var vs=Math.sqrt(50),xs=Math.sqrt(10),ys=Math.sqrt(2);function bs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=vs?a*=10:o>=xs?a*=5:o>=ys&&(a*=2),r0))return N;do{N.push(G=new Date(+o)),r(o,T),n(o)}while(G=v)for(;n(v),!o(v);)v.setTime(v-1)},function(v,T){if(v>=v)if(T<0)for(;++T<=0;)for(;r(v,-1),!o(v););else for(;--T>=0;)for(;r(v,1),!o(v););})},e&&(a.count=function(o,v){return ws.setTime(+o),As.setTime(+v),n(ws),n(As),Math.floor(e(ws,As))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(v){return i(v)%o==0}:function(v){return a.count(0,v)%o==0}):a:null}),a}var Na=di(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Na.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?di(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Na:null};const Fp=Na;const ha=di(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*pr)},function(n,r){return(r-n)/pr},function(n){return n.getUTCSeconds()});const ml=di(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getMinutes()});const _l=di(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*pr-n.getMinutes()*Xi)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getHours()});const Pa=di(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Xi)/Dr,n=>n.getDate()-1);function Lr(n){return di(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Xi)/Ts})}var Fa=Lr(0),Ra=Lr(1),Yr=(Lr(2),Lr(3),Lr(4));const yl=(Lr(5),Lr(6),di(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var Ss=di(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});Ss.every=function(n){return isFinite(n=Math.floor(n))&&n>0?di(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const kr=Ss;const Gp=di(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Xi)},function(n,r){return(r-n)/Xi},function(n){return n.getUTCMinutes()});const Up=di(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*fr)},function(n,r){return(r-n)/fr},function(n){return n.getUTCHours()});const Es=di(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Dr},function(n){return n.getUTCDate()-1});function Ir(n){return di(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/Ts})}var Ds=Ir(0),Ba=Ir(1),Wr=(Ir(2),Ir(3),Ir(4));const Xp=(Ir(5),Ir(6),di(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var Ls=di(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});Ls.every=function(n){return isFinite(n=Math.floor(n))&&n>0?di(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Xr=Ls;function Al(n,r,e,i,a,o){const v=[[ha,1,pr],[ha,5,5e3],[ha,15,15e3],[ha,30,3e4],[o,1,Xi],[o,5,5*Xi],[o,15,15*Xi],[o,30,30*Xi],[a,1,fr],[a,3,3*fr],[a,6,6*fr],[a,12,12*fr],[i,1,Dr],[i,2,2*Dr],[e,1,Ts],[r,1,dl],[r,3,3*dl],[n,1,Cs]];function N(G,q,lt){const ot=Math.abs(q-G)/lt,Ct=_s(([,,vt])=>vt).right(v,ot);if(Ct===v.length)return n.every(bs(G/Cs,q/Cs,lt));if(0===Ct)return Fp.every(Math.max(bs(G,q,lt),1));const[kt,Ft]=v[ot/v[Ct-1][2][r.toLowerCase(),e]))}function tf(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.w=+i[0],e+i[0].length):-1}function ef(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.u=+i[0],e+i[0].length):-1}function nf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.U=+i[0],e+i[0].length):-1}function rf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.V=+i[0],e+i[0].length):-1}function af(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.W=+i[0],e+i[0].length):-1}function El(n,r,e){var i=pi.exec(r.slice(e,e+4));return i?(n.y=+i[0],e+i[0].length):-1}function Dl(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function sf(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function of(n,r,e){var i=pi.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function lf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Ll(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function cf(n,r,e){var i=pi.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function kl(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function uf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function hf(n,r,e){var i=pi.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function df(n,r,e){var i=pi.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function pf(n,r,e){var i=pi.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function ff(n,r,e){var i=Jp.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function mf(n,r,e){var i=pi.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function gf(n,r,e){var i=pi.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Il(n,r){return xn(n.getDate(),r,2)}function _f(n,r){return xn(n.getHours(),r,2)}function vf(n,r){return xn(n.getHours()%12||12,r,2)}function xf(n,r){return xn(1+Pa.count(kr(n),n),r,3)}function Ol(n,r){return xn(n.getMilliseconds(),r,3)}function yf(n,r){return Ol(n,r)+"000"}function bf(n,r){return xn(n.getMonth()+1,r,2)}function Tf(n,r){return xn(n.getMinutes(),r,2)}function Cf(n,r){return xn(n.getSeconds(),r,2)}function wf(n){var r=n.getDay();return 0===r?7:r}function Af(n,r){return xn(Fa.count(kr(n)-1,n),r,2)}function Ml(n){var r=n.getDay();return r>=4||0===r?Yr(n):Yr.ceil(n)}function Sf(n,r){return n=Ml(n),xn(Yr.count(kr(n),n)+(4===kr(n).getDay()),r,2)}function Ef(n){return n.getDay()}function Df(n,r){return xn(Ra.count(kr(n)-1,n),r,2)}function Lf(n,r){return xn(n.getFullYear()%100,r,2)}function kf(n,r){return xn((n=Ml(n)).getFullYear()%100,r,2)}function If(n,r){return xn(n.getFullYear()%1e4,r,4)}function Of(n,r){var e=n.getDay();return xn((n=e>=4||0===e?Yr(n):Yr.ceil(n)).getFullYear()%1e4,r,4)}function Mf(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+xn(r/60|0,"0",2)+xn(r%60,"0",2)}function Nl(n,r){return xn(n.getUTCDate(),r,2)}function Nf(n,r){return xn(n.getUTCHours(),r,2)}function Pf(n,r){return xn(n.getUTCHours()%12||12,r,2)}function Ff(n,r){return xn(1+Es.count(Xr(n),n),r,3)}function Pl(n,r){return xn(n.getUTCMilliseconds(),r,3)}function Rf(n,r){return Pl(n,r)+"000"}function Bf(n,r){return xn(n.getUTCMonth()+1,r,2)}function Zf(n,r){return xn(n.getUTCMinutes(),r,2)}function Vf(n,r){return xn(n.getUTCSeconds(),r,2)}function Gf(n){var r=n.getUTCDay();return 0===r?7:r}function Uf(n,r){return xn(Ds.count(Xr(n)-1,n),r,2)}function Fl(n){var r=n.getUTCDay();return r>=4||0===r?Wr(n):Wr.ceil(n)}function zf(n,r){return n=Fl(n),xn(Wr.count(Xr(n),n)+(4===Xr(n).getUTCDay()),r,2)}function Hf(n){return n.getUTCDay()}function Yf(n,r){return xn(Ba.count(Xr(n)-1,n),r,2)}function Wf(n,r){return xn(n.getUTCFullYear()%100,r,2)}function Xf(n,r){return xn((n=Fl(n)).getUTCFullYear()%100,r,2)}function $f(n,r){return xn(n.getUTCFullYear()%1e4,r,4)}function Qf(n,r){var e=n.getUTCDay();return xn((n=e>=4||0===e?Wr(n):Wr.ceil(n)).getUTCFullYear()%1e4,r,4)}function jf(){return"+0000"}function Rl(){return"%"}function Bl(n){return+n}function Zl(n){return Math.floor(+n/1e3)}!function tm(n){(function jp(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,v=n.shortDays,T=n.months,N=n.shortMonths,G=pa(a),q=fa(a),lt=pa(o),ot=fa(o),Ct=pa(v),kt=fa(v),Ft=pa(T),vt=fa(T),Gt=pa(N),Kt=fa(N),Xt={a:function ri(fe){return v[fe.getDay()]},A:function sr(fe){return o[fe.getDay()]},b:function ai(fe){return N[fe.getMonth()]},B:function si(fe){return T[fe.getMonth()]},c:null,d:Il,e:Il,f:yf,g:kf,G:Of,H:_f,I:vf,j:xf,L:Ol,m:bf,M:Tf,p:function Un(fe){return a[+(fe.getHours()>=12)]},q:function zn(fe){return 1+~~(fe.getMonth()/3)},Q:Bl,s:Zl,S:Cf,u:wf,U:Af,V:Sf,w:Ef,W:Df,x:null,X:null,y:Lf,Y:If,Z:Mf,"%":Rl},ge={a:function ga(fe){return v[fe.getUTCDay()]},A:function qr(fe){return o[fe.getUTCDay()]},b:function ta(fe){return N[fe.getUTCMonth()]},B:function ea(fe){return T[fe.getUTCMonth()]},c:null,d:Nl,e:Nl,f:Rf,g:Xf,G:Qf,H:Nf,I:Pf,j:Ff,L:Pl,m:Bf,M:Zf,p:function Si(fe){return a[+(fe.getUTCHours()>=12)]},q:function Ua(fe){return 1+~~(fe.getUTCMonth()/3)},Q:Bl,s:Zl,S:Vf,u:Gf,U:Uf,V:zf,w:Hf,W:Yf,x:null,X:null,y:Wf,Y:$f,Z:jf,"%":Rl},Ae={a:function Ln(fe,qe,pn){var ne=Ct.exec(qe.slice(pn));return ne?(fe.w=kt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},A:function kn(fe,qe,pn){var ne=lt.exec(qe.slice(pn));return ne?(fe.w=ot.get(ne[0].toLowerCase()),pn+ne[0].length):-1},b:function $n(fe,qe,pn){var ne=Gt.exec(qe.slice(pn));return ne?(fe.m=Kt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},B:function ei(fe,qe,pn){var ne=Ft.exec(qe.slice(pn));return ne?(fe.m=vt.get(ne[0].toLowerCase()),pn+ne[0].length):-1},c:function ni(fe,qe,pn){return ln(fe,r,qe,pn)},d:Ll,e:Ll,f:pf,g:Dl,G:El,H:kl,I:kl,j:cf,L:df,m:lf,M:uf,p:function yn(fe,qe,pn){var ne=G.exec(qe.slice(pn));return ne?(fe.p=q.get(ne[0].toLowerCase()),pn+ne[0].length):-1},q:of,Q:mf,s:gf,S:hf,u:ef,U:nf,V:rf,w:tf,W:af,x:function ar(fe,qe,pn){return ln(fe,e,qe,pn)},X:function ii(fe,qe,pn){return ln(fe,i,qe,pn)},y:Dl,Y:El,Z:sf,"%":ff};function de(fe,qe){return function(pn){var Mi,We,Rn,ne=[],Fn=-1,Sn=0,Oi=fe.length;for(pn instanceof Date||(pn=new Date(+pn));++Fn53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Oi=(Sn=Is(da(ne.y,0,1))).getUTCDay(),Sn=Oi>4||0===Oi?Ba.ceil(Sn):Ba(Sn),Sn=Es.offset(Sn,7*(ne.V-1)),ne.y=Sn.getUTCFullYear(),ne.m=Sn.getUTCMonth(),ne.d=Sn.getUTCDate()+(ne.w+6)%7):(Oi=(Sn=ks(da(ne.y,0,1))).getDay(),Sn=Oi>4||0===Oi?Ra.ceil(Sn):Ra(Sn),Sn=Pa.offset(Sn,7*(ne.V-1)),ne.y=Sn.getFullYear(),ne.m=Sn.getMonth(),ne.d=Sn.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Oi="Z"in ne?Is(da(ne.y,0,1)).getUTCDay():ks(da(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+7*ne.W-(Oi+5)%7:ne.w+7*ne.U-(Oi+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,Is(ne)):ks(ne)}}function ln(fe,qe,pn,ne){for(var Mi,We,Fn=0,Sn=qe.length,Oi=pn.length;Fn=Oi)return-1;if(37===(Mi=qe.charCodeAt(Fn++))){if(Mi=qe.charAt(Fn++),!(We=Ae[Mi in Sl?qe.charAt(Fn++):Mi])||(ne=We(fe,pn,ne))<0)return-1}else if(Mi!=pn.charCodeAt(ne++))return-1}return ne}return Xt.x=de(e,Xt),Xt.X=de(i,Xt),Xt.c=de(r,Xt),ge.x=de(e,ge),ge.X=de(i,ge),ge.c=de(r,ge),{format:function(fe){var qe=de(fe+="",Xt);return qe.toString=function(){return fe},qe},parse:function(fe){var qe=nn(fe+="",!1);return qe.toString=function(){return fe},qe},utcFormat:function(fe){var qe=de(fe+="",ge);return qe.toString=function(){return fe},qe},utcParse:function(fe){var qe=nn(fe+="",!0);return qe.toString=function(){return fe},qe}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),_s(ul),_s(function em(n){return null===n?NaN:+n}),s(6738),s(84067),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const wm=["caretElm"];function Am(n,r){}const Sm=function(n){return{model:n}};function Em(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Am,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,Sm,e.context))}}function Dm(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function n_(n,r,e){e=e||{};let i,a,o,v=null,T=0;function N(){T=!1===e.leading?0:+new Date,v=null,o=n.apply(i,a)}return function(){const G=+new Date;!T&&!1===e.leading&&(T=G);const q=r-(G-T);return i=this,a=arguments,q<=0?(clearTimeout(v),v=null,T=G,o=n.apply(i,a)):!v&&!1!==e.trailing&&(v=setTimeout(N,q)),o}}function i_(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:n_(o.value,n,r)}),this[a]}}}}var rn=(()=>{return(n=rn||(rn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",rn;var n})();function Jl(n,r,e){return e===rn.Top?n.top-7:e===rn.Bottom?n.top+n.height-r.height+7:e===rn.Center?n.top+n.height/2-r.height/2:void 0}function Kl(n,r,e){return e===rn.Left?n.left-7:e===rn.Right?n.left+n.width-r.width+7:e===rn.Center?n.left+n.width/2-r.width/2:void 0}class Ui{static calculateVerticalAlignment(r,e,i){let a=Jl(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===rn.Top&&(o=r.height/2-i.height/2+7),a===rn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===rn.Center&&(o=e.height/2-i.height/2);const v=Jl(r,e,a);return v+e.height>window.innerHeight&&(o+=v+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=Kl(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===rn.Left&&(o=r.width/2-i.width/2+7),a===rn.Right&&(o=e.width-r.width/2-i.width/2-7),a===rn.Center&&(o=e.width/2-i.width/2);const v=Kl(r,e,a);return v+e.width>window.innerWidth&&(o+=v+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===rn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===rn.Left&&r.left-e.width-a<0&&(o=!0),i===rn.Top&&r.top-e.height-a<0&&(o=!0),i===rn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=-7,v=Ui.calculateVerticalCaret(i,e,a,o)):r===rn.Left?(T=e.width,v=Ui.calculateVerticalCaret(i,e,a,o)):r===rn.Top?(v=e.height,T=Ui.calculateHorizontalCaret(i,e,a,o)):r===rn.Bottom&&(v=-7,T=Ui.calculateHorizontalCaret(i,e,a,o)),{top:v,left:T}}static positionContent(r,e,i,a,o){let v=0,T=0;return r===rn.Right?(T=i.left+i.width+a,v=Ui.calculateVerticalAlignment(i,e,o)):r===rn.Left?(T=i.left-e.width-a,v=Ui.calculateVerticalAlignment(i,e,o)):r===rn.Top?(v=i.top-e.height-a,T=Ui.calculateHorizontalAlignment(i,e,o)):r===rn.Bottom&&(v=i.top+i.height+a,T=Ui.calculateHorizontalAlignment(i,e,o)),{top:v,left:T}}static determinePlacement(r,e,i,a){if(Ui.shouldFlip(i,e,r,a)){if(r===rn.Right)return rn.Left;if(r===rn.Left)return rn.Right;if(r===rn.Top)return rn.Bottom;if(r===rn.Bottom)return rn.Top}return r}}let r_=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,g.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:v}=Ui.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${v}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:v,left:T}=Ui.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${v}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Ui.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(wm,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,Em,2,4,"span",3),t.YNc(5,Dm,1,1,"span",4),t.qZA()()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},dependencies:[g.O5,g.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,Ie.gn)([i_(100)],n.prototype,"onWindowResize",null),n})(),ql=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function s_(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),v=new tl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),T=new tl.C5(e),N=v.attach(T);return this.projectComponentBindings(N,i),N}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Ms=(()=>{class n extends class a_{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e={...this.defaults.inputs},i={...this.defaults.outputs};return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs={...e,...r.inputs}),i&&(r.outputs={...i,...r.outputs}),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=r_}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(ql))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ac=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[g.ez]]}),n})();var jr=(()=>{return(n=jr||(jr={})).popover="popover",n.tooltip="tooltip",jr;var n})(),Tr=(()=>{return(n=Tr||(Tr={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Tr;var n})();let Rs,Ps=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=rn.Top,this.tooltipAlignment=rn.Center,this.tooltipType=jr.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Tr.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.focus}get listensForHover(){return this.tooltipShowEvent===Tr.all||this.tooltipShowEvent===Tr.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Ms),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),sc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[ql,Ms],imports:[[g.ez]]}),n})();typeof window<"u"?Rs=window:typeof global<"u"&&(Rs=global);let $i=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[g.ez,ac,sc],g.ez,ac,sc]}),n})(),v_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),x_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),y_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),b_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),mc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})();Math;let Zs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),w_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,mc]]}),n})(),S_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),E_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i]]}),n})(),D_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[$i,Zs,fc]]}),n})(),k_=(()=>{class n{constructor(){!function L_(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[$i,v_,fc,x_,y_,b_,mc,w_,S_,Zs,E_,D_]}),n})();function I_(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function O_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function M_(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function N_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA()()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function P_(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16)(3,"textPath",17),t._uU(4),t.qZA()()()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const F_=function(n,r){return[n,r]};function R_(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,O_,5,4,"span",4),t.TgZ(10,"div",5)(11,"ngx-graph",6),t.YNc(12,M_,2,0,"ng-template",null,7,t.W1O),t.YNc(14,N_,4,9,"ng-template",null,8,t.W1O),t.YNc(16,P_,5,2,"ng-template",null,9,t.W1O),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,F_,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function B_(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Z_(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,B_,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function V_(n,r){if(1&n&&(t.YNc(0,R_,18,19,"div",1),t.YNc(1,Z_,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let G_=(()=>{class n{constructor(e,i,a,o,v,T,N,G,q){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=v,this.resourceManager=T,this.groupService=N,this.voService=G,this.translate=q,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=on,this.zoomToFit$=new we.x,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const v of i)o.id===v.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){const e=""+this.id().toString(),i=this.user.firstName??" "+this.user.lastName??"",a=this.localUser,o="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:e,label:i,tooltip:a,color:"#FFFFCC",tip:o});const T=""+this.id().toString(),N="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:T,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N}:{id:T,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:N});for(const G of this.facilities)this.serviceService.getAllRichDestinationsForFacility(G.id).subscribe(q=>{this.connectToService(G,q),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(v=>{const T=n.findConnectedGroups(o,v);if(0!==T.length)for(const N of T)this.connectToResource(e,N,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const v=n.findConnectedResources(o,a);for(const T of v)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(N=>{this.haveService(N)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const v=""+this.id().toString(),T=this.localFacility+": "+o.name,N=o.description,G="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:v,label:T,tooltip:N,color:"#FFCCFF",tip:G});const lt={source:v,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(lt)}this.voService.getVoById(e).subscribe(v=>{if(-1===this.findEntityInGraph("Vo: "+v.id.toString())){const N=this.id().toString(),G=this.localVo+": "+v.shortName,q=v.name,lt="Vo: "+v.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:q,color:"#E5FFCC",tip:lt});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const N=this.id().toString(),G=this.localGroup+": "+i.name,q=i.description,lt="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:q,color:"#CCE5FF",tip:lt});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+v.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const N={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(N)}else{const N=this.id().toString(),G=this.localResource+": "+a.name,q=a.description,lt="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:N,label:G,tooltip:q,color:"#FFCCCC",tip:lt});const Ct={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:N};this.hierarchialGraph.links.push(Ct);const kt={source:N,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(kt)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.IQ),t.Y36(Y.Fv),t.Y36(Y.uq),t.Y36(Y.KK),t.Y36(Y.xk),t.Y36(Y.ff),t.Y36(Y.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,I_,2,0,"div",1),t.YNc(4,V_,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},dependencies:[bp,g.O5,Ps,nt.Ou,u.X$]}),n})();var U_=s(25828),gc=s(69024),z_=s(29862),ma=s(16074),H_=s(31359);function Y_(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function W_(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span")(1,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editUser())}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA()(),t.TgZ(4,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.anonymizeUser())}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA()()()}}const X_=function(){return{color:"black"}},$_=function(n){return["/admin/users",n]};function Q_(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,W_,7,0,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,X_))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,$_,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let j_=(()=>{class n{constructor(e,i,a,o,v,T,N,G){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=v,this.authResolver=T,this.entityStorageService=N,this.router=G,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(a=>{this.user=a,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const o=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([o]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,Ee.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(z_.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,Ee.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ma.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.Fv),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb),t.Y36(p.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","user-name-link",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","","data-cy","edit-user-button",3,"click"],["mat-icon-button","",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Y_,1,0,"mat-spinner",1),t.YNc(3,Q_,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},dependencies:[g.O5,g.PC,p.yS,l.Hw,V.lW,nt.Ou,un.gM,h.A,f.W,u.X$,H_.d]}),n})();var J_=s(17755),K_=s(74837),q_=s(85985),tv=s(98973),ev=s(15935);function nv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onLoad())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function iv(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const rv=function(){return["id","name","type"]};function av(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",7),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,rv))("tableId",e.tableId)}}let sv=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=tn.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(v=>this.loadSuccess=v)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.KG),t.Y36(B.V6),t.Y36(u.sK),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,nv,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,iv,1,0,"mat-spinner",3),t.YNc(7,av,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,ev.D,Pn.L,u.X$]}),n})();var ov=s(6097),lv=s(97453),Ga=s(54004);function cv(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function uv(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function hv(n,r){if(1&n&&(t.TgZ(0,"div")(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,uv,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA()()()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let dv=(()=>{class n{constructor(e,i,a,o,v,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=v,this.notificator=T,this.extSources=[],v.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(N=>this.successMessage=N)}ngOnInit(){this.loading=!0,this.loginControl=new it.p4("",[it.kI.required,it.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new it.p4("",[it.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Bn.O)(""),(0,Ga.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,Bn.O)(""),(0,Ga.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KG),t.Y36(Y.Fv),t.Y36(u.sK),t.Y36(B.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,cv,1,0,"mat-spinner",2),t.YNc(5,hv,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4)(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},dependencies:[g.sg,g.O5,Ke.XC,Ke.ZL,Zt.ey,ie.TO,ie.KE,ue.Nt,it.Fj,it.JJ,it.Q7,it.oH,V.lW,M.uh,M.xY,M.H8,nt.Ou,g.Ov,u.X$],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var pv=s(80275);function fv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function mv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeIdentity())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function gv(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function _v(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let vv=(()=>{class n{constructor(e,i,a,o,v,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=v,this.authResolver=T,this.userExtSources=[],this.selection=new R.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=tn.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,Ee.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(dv,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,Ee.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(ma.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(B.d6),t.Y36(Y.tk),t.Y36(M.uw),t.Y36(p.gz),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,fv,3,3,"button",2),t.YNc(5,mv,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,gv,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,_v,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,En.t,Pn.L,pv.j,u.X$]}),n})();var xv=s(80774),yv=s(62109);function bv(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Tv=function(){return["id","name","vo","facility","description"]};function Cv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Tv))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let wv=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=tn.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,bv,1,0,"mat-spinner",3),t.YNc(7,Cv,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,nt.Ou,En.t,Pn.L,yv.C,u.X$]}),n})();var Av=s(61365),Sv=s(71103),Ev=s(53984);const Dv=["list"];function Lv(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function kv(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let Iv=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new R.Ov(!0,[]),this.tableId=tn.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,Ee.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,Ee.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Sv.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,Ee.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(ma.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ee.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Av.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(Y.H8),t.Y36(Y.Fv),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Dv,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Lv,1,0,"mat-spinner",6),t.YNc(25,kv,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,En.t,Ev.p,g.uU,u.X$]}),n})();var Ov=s(40009),Mv=s(90719);function Nv(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Pv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editService())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function Fv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.removeService())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}function Rv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const Bv=function(){return{color:"black"}},Zv=function(n){return["/admin/services",n]};function Vv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,Pv,3,0,"button",12),t.YNc(12,Fv,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA()()(),t.TgZ(16,"div",15)(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.changeServiceStatus())}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.propagationChange())}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Rv,3,3,"button",17),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,14,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(22,Bv)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,Zv,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,16,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,18,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,20,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let Gv=(()=>{class n{constructor(e,i,a,o,v,T,N,G,q,lt,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=v,this.sideMenuItemService=T,this.dialog=N,this.authResolver=G,this.translate=q,this.notificator=lt,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,Ee.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Ov.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,Ee.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Mv.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,Ee.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e,this.entityStorageService.setEntity({id:e.id,beanName:e.beanName});const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(p.F0),t.Y36(Y.WY),t.Y36(Y.KK),t.Y36(d.D),t.Y36(gc.V),t.Y36(M.uw),t.Y36(B.x4),t.Y36(u.sK),t.Y36(B.V6),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["data-cy","service-name-link","queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","data-cy","service-edit-button","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Nv,1,0,"mat-spinner",1),t.YNc(3,Vv,24,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,g.PC,p.yS,l.Hw,V.lW,nt.Ou,un.gM,Tt.Rr,h.A,f.W,u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"],data:{animation:[Tn.Ji]}}),n})(),Uv=(()=>{class n{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},dependencies:[L.L]}),n})();var zv=s(32076),Hv=s(24351),_c=s(54482),Yv=s(25032),Xv=s(86099),$v=s(57359);function jv(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function Jv(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function Kv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,Jv,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function qv(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let t0=(()=>{class n{constructor(e,i,a,o,v,T,N,G){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=v,this.consentHubService=T,this.notificator=N,this.translate=G,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,Hv.b)(zv.D),(0,Ga.U)(q=>q.id),function Wv(n,r){return(0,_c.e)((e,i)=>{const a=new Set;e.subscribe((0,Qt.x)(i,o=>{const v=n?n(o):o;a.has(v)||(a.add(v),i.next(o))})),r?.subscribe((0,Qt.x)(i,()=>a.clear(),Yv.Z))})}(),(0,Xv.z)(q=>this.consentHubService.getConsentHubByFacility(q)),function Qv(n,r){return(0,_c.e)((0,$v.U)(n,r,arguments.length>=2,!1,!0))}((q,lt)=>q||lt.enforceConsents,!1),(0,Bn.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,Ga.U)(q=>q.enabled),(0,Bn.O)(!0)),this.attrDefinitions=[],this.selection=new R.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KK),t.Y36(Y.H8),t.Y36(Y.IQ),t.Y36(Y.WY),t.Y36(B.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,jv,1,0,"mat-spinner",1),t.YNc(5,Kv,7,14,"div",2),t.YNc(6,qv,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,M.uh,M.xY,M.H8,nt.Ou,et.w,Pn.L,jn,g.Ov,u.X$]}),n})();function e0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function n0(n,r){1&n&&t._UZ(0,"th",15)}function r0(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function a0(n,r){1&n&&t._UZ(0,"tr",17)}function s0(n,r){1&n&&t._UZ(0,"tr",18)}function o0(n,r){if(1&n&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,n0,1,0,"th",11),t.YNc(10,r0,2,1,"td",12),t.BQk(),t.YNc(11,a0,1,0,"tr",13),t.YNc(12,s0,1,0,"tr",14),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let l0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=v,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new F.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Y.KK),t.Y36(B.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,e0,1,0,"mat-spinner",1),t.YNc(5,o0,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},dependencies:[g.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,nt.Ou,u.X$]}),n})();function c0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function u0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function h0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function d0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.refreshTable())}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let p0=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new R.Ov(!0,[]),this.attrDefinitions=[],this.tableId=tn.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,Ee.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(t0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ee.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(l0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.H8),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,c0,3,3,"button",2),t.YNc(6,u0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,h0,1,0,"mat-spinner",5),t.YNc(9,d0,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,jn,En.t,Pn.L,u.X$]}),n})();var f0=s(46597),m0=s(89466),g0=s(70242);function _0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function v0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function x0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function y0(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const b0=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function T0(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,b0))("tableId",e.tableId)}}let C0=(()=>{class n{constructor(e,i,a,o,v,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=v,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new R.Ov(!0,[]),this.tableId=tn.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,Ee.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(m0.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.KK),t.Y36(B.V6),t.Y36(u.sK),t.Y36(M.uw),t.Y36(B.x4),t.Y36(B.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,_0,3,4,"button",2),t.YNc(6,v0,3,4,"button",3),t.YNc(7,x0,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,y0,1,0,"mat-spinner",6),t.YNc(10,T0,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,g0.q,En.t,Pn.L,u.X$]}),n})();function w0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function A0(n,r){1&n&&t._UZ(0,"th",13)}function S0(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function E0(n,r){1&n&&t._UZ(0,"tr",15)}function D0(n,r){1&n&&t._UZ(0,"tr",16)}function L0(n,r){if(1&n&&(t.TgZ(0,"div",5)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,A0,1,0,"th",9),t.YNc(10,S0,2,1,"td",10),t.BQk(),t.YNc(11,E0,1,0,"tr",11),t.YNc(12,D0,1,0,"tr",12),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function k0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17)(1,"button",18),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(5),t.ALo(6,"translate"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let I0=(()=>{class n{constructor(e,i,a,o,v){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=v,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new F.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,w0,1,0,"mat-spinner",1),t.YNc(4,L0,13,9,"div",2),t.YNc(5,k0,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,M.uh,M.xY,M.H8,nt.Ou,u.X$]}),n})();function O0(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function M0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function N0(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function P0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,M0,3,3,"mat-error",3),t.YNc(12,N0,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field")(14,"mat-select",7),t.NdJ("valueChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.type=a)}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA()()()(),t.TgZ(21,"div",10)(22,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSubmit())}),t._uU(28),t.ALo(29,"translate"),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let F0=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.nameCtrl=new it.p4(null,[it.kI.required,it.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new it.p4(null,[it.kI.required,it.kI.pattern(Ee.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(B.V6),t.Y36(Y.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,O0,1,0,"mat-spinner",2),t.YNc(5,P0,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,Zt.ey,ie.TO,ie.KE,ue.Nt,it.Fj,it.JJ,it.Q7,it.oH,V.lW,M.uh,M.xY,M.H8,xe.gD,nt.Ou,un.gM,u.X$]}),n})();var R0=s(23256);function B0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Z0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeOwner())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function V0(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function G0(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let U0=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new R.Ov(!0,[]),this.filterValue="",this.tableId=tn.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,Ee.kZ)();e.width="400px",e.data={},this.dialog.open(F0,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,Ee.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(I0,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.aC),t.Y36(M.uw),t.Y36(B.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,B0,3,3,"button",2),t.YNc(6,Z0,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,V0,1,0,"mat-spinner",5),t.YNc(9,G0,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,En.t,Pn.L,R0.Q,u.X$]}),n})();var z0=s(74010);function H0(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function Y0(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let W0=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=tn.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.IQ),t.Y36(p.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,H0,1,0,"mat-spinner",3),t.YNc(7,Y0,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,nt.Ou,En.t,Pn.L,z0.X,u.X$]}),n})();var vc=s(64080),X0=s(24179),$0=s(62707),Q0=s(19191),j0=s(12651),J0=s(60526);function K0(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function q0(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.loadMember(a))}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function tx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function ex(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const nx=function(){return["id","recent","name","description","expiration","groupStatus"]};function ix(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return t.KtG(a.loadMember(a.selectedVo))}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,nx))}}const rx=function(n,r){return["/organizations",n,"members",r]};function ax(n,r){if(1&n&&(t.TgZ(0,"div")(1,"div",10)(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),t.qZA()(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ix,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("routerLink",t.WLB(11,rx,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function sx(n,r){if(1&n&&(t.YNc(0,ex,1,0,"mat-spinner",1),t.YNc(1,ax,12,14,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function ox(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function lx(n,r){1&n&&t._UZ(0,"mat-spinner")}function cx(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function ux(n,r){if(1&n&&(t.YNc(0,lx,1,0,"mat-spinner",4),t.YNc(1,cx,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function hx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function dx(n,r){1&n&&t._UZ(0,"mat-spinner")}function px(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function fx(n,r){if(1&n&&(t.YNc(0,dx,1,0,"mat-spinner",4),t.YNc(1,px,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function mx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function gx(n,r){1&n&&t._UZ(0,"mat-spinner")}function _x(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function vx(n,r){if(1&n&&(t.YNc(0,gx,1,0,"mat-spinner",4),t.YNc(1,_x,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function xx(n,r){1&n&&(t.TgZ(0,"mat-tab-group")(1,"mat-tab"),t.YNc(2,tx,2,3,"ng-template",8),t.YNc(3,sx,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,ox,2,3,"ng-template",8),t.YNc(6,ux,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,hx,2,3,"ng-template",8),t.YNc(9,fx,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,mx,2,3,"ng-template",8),t.YNc(12,vx,2,2,"ng-template",9),t.qZA()())}function yx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let bx=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.membersService.getRichMemberWithAttributes(i.id).subscribe(a=>{this.member=a,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[vc.r.MEMBER_DEF_GROUP_EXPIRATION,vc.r.MEMBER_GROUP_STATUS]).subscribe(o=>{this.groups=o,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.gz),t.Y36(Y.Fv),t.Y36(Y.uq),t.Y36(Y.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[3,"member","vo"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,K0,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,q0,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,xx,13,0,"mat-tab-group",4),t.YNc(7,yx,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},dependencies:[g.O5,p.yS,Ue.SP,Ue.uD,Ue.uX,Ue.Vc,nt.Ou,et.w,X0.W,$0.M,Q0.Y,j0.t,J0.b,u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),xc=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function Tx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function Cx(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function wx(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function Ax(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let Sx=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI),t.Y36(Di.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2)(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,Tx,2,3,"ng-template",4),t.YNc(13,Cx,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,wx,2,3,"ng-template",4),t.YNc(16,Ax,2,1,"ng-template",5),t.qZA()()(),t.TgZ(17,"div",6)(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA()()()()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},dependencies:[l.Hw,V.lW,Ue.SP,Ue.uD,Ue.uX,Ue.Vc,M.uh,M.xY,M.H8,u.X$,xc],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var Ex=s(98739),Dx=s(56451),Lx=s(62383);function kx(n,r){1&n&&(t.TgZ(0,"div",17),t._UZ(1,"mat-spinner",18),t.qZA())}function Ix(n,r){1&n&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function Ox(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Mx(n,r){1&n&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function Nx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function Px(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function Fx(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function Rx(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function Bx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function Zx(n,r){1&n&&(t.TgZ(0,"th",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function Vx(n,r){if(1&n&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function Gx(n,r){1&n&&t._UZ(0,"th",21)}function Ux(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",20)(1,"button",23),t.NdJ("click",function(){const o=t.CHM(e).$implicit,v=t.oxw();return t.KtG(v.viewDetails(o))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function zx(n,r){1&n&&t._UZ(0,"tr",24)}function Hx(n,r){1&n&&t._UZ(0,"tr",25)}function Yx(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let Wx=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=Ee.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,g.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,Dx.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,Bi.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new B.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}viewDetails(e){const i=(0,Ee.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(Sx,i)}exportData(e){(0,Ee.O6)((0,Ee.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.uw),t.Y36(B.ly),t.Y36(tn.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ee.l9,7),t.Gf(He.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[t._Bn([{provide:Ex.ye,useClass:B.Be}]),t.TTD],decls:28,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","","data-cy","audit-message-td",4,"matCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell","","data-cy","audit-message-td",1,"static-column-size"],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return i.exportData(o)}),t.YNc(3,kx,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,Ix,3,3,"th",5),t.YNc(8,Ox,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,Mx,3,3,"th",5),t.YNc(11,Nx,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,Px,3,3,"th",9),t.YNc(14,Fx,3,3,"td",10),t.BQk(),t.ynx(15,11),t.YNc(16,Rx,3,3,"th",9),t.YNc(17,Bx,2,1,"td",6),t.BQk(),t.ynx(18,12),t.YNc(19,Zx,3,3,"th",9),t.YNc(20,Vx,2,1,"td",6),t.BQk(),t.ynx(21,13),t.YNc(22,Gx,1,0,"th",9),t.YNc(23,Ux,4,3,"td",6),t.BQk(),t.YNc(24,zx,1,0,"tr",14),t.YNc(25,Hx,1,0,"tr",15),t.qZA()()(),t.YNc(26,Yx,3,3,"perun-web-apps-alert",16),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,9,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,11,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,13,i.dataSource.loading$)))},dependencies:[g.O5,V.lW,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,nt.Ou,et.w,sn.l,g.Ov,u.X$,Lx.M,xc]}),n})(),Xx=(()=>{class n{constructor(){this.tableId=tn.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},dependencies:[Wx,En.t,u.X$]}),n})();var $x=s(44850);let Qx=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(M.so),t.Y36(M.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1)(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"div",4)(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA()()()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},dependencies:[V.lW,M.uh,M.xY,M.H8,$x.d,et.w,u.X$]}),n})();function jx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Jx(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(a?T.selection.toggle(v):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function Kx(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function qx(n,r){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function ty(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function ey(n,r){if(1&n&&(t.TgZ(0,"td",22),t.ALo(1,"multiWordDataCy"),t._uU(2),t.qZA()),2&n){const e=r.$implicit;t.Q2q("data-cy","",t.lcZ(1,2,e.name),"-name-td"),t.xp6(2),t.hij(" ",e.name," ")}}function ny(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function iy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const v=t.CHM(e).$implicit,T=t.oxw();return t.KtG(T.changeEnforceFlag(v,a))}),t.qZA()()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function ry(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function ay(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",25),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function sy(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,ay,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function oy(n,r){1&n&&t._UZ(0,"tr",26)}function ly(n,r){1&n&&t._UZ(0,"tr",27)}function cy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function uy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}let hy=(()=>{class n{constructor(e,i,a,o,v){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=v,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new R.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=Ee.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new F.by(this.consentHubs),this.setDataSource()}exportData(e){(0,Ee.O6)((0,Ee.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,Ee.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ee.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,Ee.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(Qx,a).afterClosed().subscribe(v=>{v&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(N=>{this.notificator.showSuccess(N)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(B.UA),t.Y36(M.uw),t.Y36(B.V6),t.Y36(u.sK),t.Y36(Y.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ee.l9,7),t.Gf(He.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return i.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,jx,2,3,"th",4),t.YNc(5,Jx,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Kx,3,3,"th",7),t.YNc(8,qx,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ty,3,3,"th",7),t.YNc(11,ey,3,4,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,ny,3,3,"th",7),t.YNc(14,iy,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ry,3,3,"th",7),t.YNc(17,sy,2,1,"td",10),t.BQk(),t.YNc(18,oy,1,0,"tr",13),t.YNc(19,ly,1,0,"tr",14),t.qZA()()(),t.YNc(20,cy,3,3,"perun-web-apps-alert",15),t.YNc(21,uy,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},dependencies:[g.sg,g.O5,He.YE,He.nU,F.BZ,F.fO,F.as,F.w1,F.Dz,F.nj,F.ge,F.ev,F.XQ,F.Gk,Fi.oG,Tt.Rr,et.w,sn.l,u.X$,Oe.R]}),n})();function dy(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.CONSENT_HUBS.GLOBAL_DISABLED")," "))}function py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.evaluateConsents())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.globalForceConsents||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function fy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function my(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",11),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let gy=(()=>{class n{constructor(e,i,a,o,v,T){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.store=v,this.dialog=T,this.loading=!1,this.tableId=tn.HE,this.selection=new R.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.globalForceConsents=this.store.getProperty("enforce_consents"),this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,Ee.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(ma.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(Y.WY),t.Y36(B.x4),t.Y36(B.V6),t.Y36(u.sK),t.Y36(B.d6),t.Y36(M.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:12,vars:12,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[3,"refresh"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["alert_type","warn"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,dy,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(6,"span",3),t.ALo(7,"translate"),t.YNc(8,py,3,4,"button",4),t.qZA(),t.TgZ(9,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(10,fy,1,0,"mat-spinner",6),t.YNc(11,my,1,4,"app-perun-web-apps-consent-hubs-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(2),t.Q6J("ngIf",!i.globalForceConsents),t.xp6(2),t.s9C("matTooltip",t.lcZ(7,10,"ADMIN.CONSENT_HUBS.TOOLTIP")),t.Q6J("matTooltipDisabled",i.globalForceConsents),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},dependencies:[g.O5,V.lW,nt.Ou,un.gM,hy,et.w,En.t,Pn.L,u.X$]}),n})();var _y=s(57788),Vs=s(71992);const vy=[{path:"",component:C,canActivateChild:[Vs.a],children:[{path:"",component:I,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:Ji,data:{animation:"AdminAttributesPage"}},{path:"users",component:U_.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:U0,data:{animation:"AdminOwnersPage"}},{path:"services",component:xv.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:Xx,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ui,children:[{path:"",component:Ti,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:Mn,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Ot,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:G_,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:sv,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:gy,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:_y.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:j_,canActivateChild:[Vs.a],children:[{path:"",component:J_.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:bx,data:{animation:"UserAccountsPage"}},{path:"attributes",component:tv.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:K_.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:q_.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:vv,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:W0,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:wv,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:Iv,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:ov.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:lv.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:f0.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:Gv,canActivateChild:[Vs.a],children:[{path:"",component:Uv,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:p0,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:C0,data:{animation:"ServiceDestinationsPage"}}]}];let xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[p.Bz.forChild(vy),p.Bz]}),n})();var yy=s(14264),by=s(63189),Ty=s(46374);let Cy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[Cp,k_,g.ez,xy,yy.m,by.r,be.ez,wt.d4,Ty.UsersModule]}),n})()},70242:(w,E,s)=>{"use strict";s.d(E,{q:()=>Qt});var c=s(96308),x=s(95017),_=s(30671),g=s(9244),p=s(32080),t=s(94650),d=s(36895),l=s(97392),h=s(56709),f=s(10266),u=s(98380),m=s(18750),C=s(89383);function L(Nt,ft){if(1&Nt){const dt=t.EpF();t.TgZ(0,"th",21)(1,"mat-checkbox",22),t.NdJ("change",function(Zt){t.CHM(dt);const le=t.oxw();return t.KtG(Zt?le.masterToggle():null)}),t.qZA()()}if(2&Nt){const dt=t.oxw();t.xp6(1),t.Q6J("aria-label",dt.checkboxLabel())("checked",dt.selection.hasValue()&&dt.isAllSelected())("indeterminate",dt.selection.hasValue()&&!dt.isAllSelected())}}function I(Nt,ft){if(1&Nt){const dt=t.EpF();t.TgZ(0,"td",23)(1,"mat-checkbox",24),t.NdJ("change",function(Zt){const ie=t.CHM(dt).$implicit,ue=t.oxw();return t.KtG(Zt?ue.selection.toggle(ie):null)})("click",function(Zt){return Zt.stopPropagation()}),t.qZA()()}if(2&Nt){const dt=ft.$implicit,wt=t.oxw();t.xp6(1),t.Q6J("aria-label",wt.checkboxLabel(dt))("checked",wt.selection.isSelected(dt))}}function R(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function M(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.hij(" ",dt.id," ")}}function F(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function B(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.service.name)}}function Y(Nt,ft){1&Nt&&t._UZ(0,"th",28)}function V(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function nt(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t.YNc(1,V,3,3,"mat-icon",29),t.qZA()),2&Nt){const dt=ft.$implicit,wt=t.oxw();t.xp6(1),t.Q6J("ngIf",!wt.services.has(dt.service.id))}}function et(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function st(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.facility.name)}}function K(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function X(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.destination)}}function W(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function at(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.type.toUpperCase())}}function H(Nt,ft){1&Nt&&t._UZ(0,"th",28)}function j(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function it(Nt,ft){1&Nt&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Nt&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function tt(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t.YNc(1,j,3,3,"mat-icon",31),t.YNc(2,it,3,3,"mat-icon",31),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Q6J("ngIf",!dt.blocked),t.xp6(1),t.Q6J("ngIf",dt.blocked)}}function U(Nt,ft){1&Nt&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function D(Nt,ft){if(1&Nt&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Nt){const dt=ft.$implicit;t.xp6(1),t.Oqu(dt.propagationType)}}function mt(Nt,ft){1&Nt&&t._UZ(0,"tr",33)}function St(Nt,ft){1&Nt&&t._UZ(0,"tr",34)}function Mt(Nt,ft){1&Nt&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Et(Nt,ft){1&Nt&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Nt&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let Qt=(()=>{class Nt{constructor(dt,wt){this.authResolver=dt,this.tableCheckbox=wt,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=g.f7}set matSort(dt){this.sort=dt,this.setDataSource()}static getDataForColumn(dt,wt){switch(wt){case"destinationId":return dt.id.toString();case"service":return dt.service.name;case"facility":return dt.facility.name;case"destination":return dt.destination;case"type":return dt.type;case"status":return dt.blocked?"blocked":"allowed";case"propagationType":return dt.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(dt=>"destinationId"!==dt)),this.dataSource=new _.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportData(dt){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,Nt.getDataForColumn),dt)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(dt,wt)=>(0,g.Sd)(dt,wt,this.displayedColumns,Nt.getDataForColumn),this.dataSource.sortData=(dt,wt)=>(0,g.pR)(dt,wt,Nt.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(dt){return dt?`${this.selection.isSelected(dt)?"deselect":"select"} row ${dt.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Nt.\u0275fac=function(dt){return new(dt||Nt)(t.Y36(p.x4),t.Y36(p.UA))},Nt.\u0275cmp=t.Xpm({type:Nt,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(dt,wt){if(1&dt&&(t.Gf(g.l9,7),t.Gf(c.YE,7)),2&dt){let Zt;t.iGM(Zt=t.CRH())&&(wt.child=Zt.first),t.iGM(Zt=t.CRH())&&(wt.matSort=Zt.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(dt,wt){1&dt&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(le){return wt.exportData(le)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,L,2,3,"th",4),t.YNc(5,I,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,R,3,3,"th",7),t.YNc(8,M,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,F,3,3,"th",7),t.YNc(11,B,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Y,1,0,"th",12),t.YNc(14,nt,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,et,3,3,"th",7),t.YNc(17,st,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,K,3,3,"th",7),t.YNc(20,X,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,W,3,3,"th",7),t.YNc(23,at,2,1,"td",10),t.BQk(),t.ynx(24,16),t.YNc(25,H,1,0,"th",12),t.YNc(26,tt,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,U,3,3,"th",7),t.YNc(29,D,2,1,"td",10),t.BQk(),t.YNc(30,mt,1,0,"tr",18),t.YNc(31,St,1,0,"tr",19),t.qZA()()(),t.YNc(32,Mt,3,3,"perun-web-apps-alert",20),t.YNc(33,Et,3,3,"perun-web-apps-alert",20)),2&dt&&(t.Q6J("hidden",0===wt.dataSource.filteredData.length||0===wt.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",wt.pageSizeOptions)("dataLength",wt.dataSource.filteredData.length)("tableId",wt.tableId),t.xp6(1),t.Q6J("dataSource",wt.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",wt.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",wt.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===wt.dataSource.filteredData.length&&0!==wt.destinations.length),t.xp6(1),t.Q6J("ngIf",0===wt.destinations.length))},dependencies:[d.O5,l.Hw,c.YE,c.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,h.oG,f.gM,u.w,m.l,C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Nt})()},89466:(w,E,s)=>{"use strict";s.d(E,{u:()=>I});var c=s(32105),x=s(65412),_=s(30671),g=s(32080),p=s(94650),t=s(89383),d=s(36895),l=s(4859),h=s(51572),f=s(98380),u=s(70242);function m(R,M){1&R&&p._UZ(0,"mat-spinner",6)}function C(R,M){if(1&R&&p._UZ(0,"app-perun-web-apps-destination-list",11),2&R){const F=p.oxw(2);p.Q6J("destinations",F.destinations)("displayedColumns",F.displayedColumns)}}function L(R,M){if(1&R&&(p.TgZ(0,"div",7)(1,"perun-web-apps-alert",8),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.ALo(6,"translate"),p.qZA(),p.TgZ(7,"div",9),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),p.qZA()),2&R){const F=p.oxw();p.xp6(2),p.Oqu(p.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),p.xp6(3),p.Oqu(p.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),p.xp6(3),p.hij(" ",p.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),p.xp6(2),p.Q6J("ngIf",!F.loading)}}let I=(()=>{class R{constructor(F,B,Y,V,nt){this.dialogRef=F,this.data=B,this.notificator=Y,this.translate=V,this.serviceManager=nt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new _.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const F=this.destinations.pop();this.serviceManager.removeDestination(F.service.id,F.facility.id,F.destination,F.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return R.\u0275fac=function(F){return new(F||R)(p.Y36(x.so),p.Y36(x.WI),p.Y36(g.V6),p.Y36(t.sK),p.Y36(c.KK))},R.\u0275cmp=p.Xpm({type:R,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(F,B){1&F&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div"),p.YNc(4,m,1,0,"mat-spinner",1),p.YNc(5,L,11,10,"div",2),p.TgZ(6,"div",3)(7,"button",4),p.NdJ("click",function(){return B.onCancel()}),p._uU(8),p.ALo(9,"translate"),p.qZA(),p.TgZ(10,"button",5),p.NdJ("click",function(){return B.onConfirm()}),p._uU(11),p.ALo(12,"translate"),p.qZA()()()),2&F&&(p.xp6(1),p.Oqu(p.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),p.xp6(2),p.Tol(B.theme),p.xp6(1),p.Q6J("ngIf",B.loading),p.xp6(1),p.Q6J("ngIf",!B.loading),p.xp6(3),p.hij(" ",p.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),p.xp6(2),p.Q6J("disabled",B.loading),p.xp6(1),p.hij(" ",p.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},dependencies:[d.O5,l.lW,x.uh,x.xY,x.H8,h.Ou,f.w,u.q,t.X$]}),R})()},23256:(w,E,s)=>{"use strict";s.d(E,{Q:()=>X});var c=s(96308),x=s(95017),_=s(30671),g=s(9244),p=s(32080),t=s(94650),d=s(36895),l=s(56709),h=s(98380),f=s(18750),u=s(89383);function m(W,at){if(1&W){const H=t.EpF();t.TgZ(0,"th",16)(1,"mat-checkbox",17),t.NdJ("change",function(it){t.CHM(H);const tt=t.oxw();return t.KtG(it?tt.masterToggle():null)}),t.qZA()()}if(2&W){const H=t.oxw();t.xp6(1),t.Q6J("aria-label",H.checkboxLabel())("checked",H.selection.hasValue()&&H.isAllSelected())("indeterminate",H.selection.hasValue()&&!H.isAllSelected())}}function C(W,at){if(1&W){const H=t.EpF();t.TgZ(0,"td",18)(1,"mat-checkbox",19),t.NdJ("change",function(it){const U=t.CHM(H).$implicit,D=t.oxw();return t.KtG(it?D.selection.toggle(U):null)})("click",function(it){return it.stopPropagation()}),t.qZA()()}if(2&W){const H=at.$implicit,j=t.oxw();t.xp6(1),t.Q6J("aria-label",j.checkboxLabel(H))("checked",j.selection.isSelected(H))}}function L(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function I(W,at){if(1&W&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.hij(" ",H.id," ")}}function R(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function M(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.name)}}function F(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function B(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.contact)}}function Y(W,at){1&W&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function V(W,at){if(1&W&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&W){const H=at.$implicit;t.xp6(1),t.Oqu(H.type)}}function nt(W,at){1&W&&t._UZ(0,"tr",23)}function et(W,at){1&W&&t._UZ(0,"tr",24)}function st(W,at){1&W&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function K(W,at){1&W&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&W&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let X=(()=>{class W{constructor(H,j){this.authResolver=H,this.tableCheckbox=j,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=g.f7}set matSort(H){this.sort=H,this.setDataSource()}static getDataForColumn(H,j){switch(j){case"id":return H.id.toString();case"name":return H.name;case"contact":return H.contact;case"type":return H.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(H){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,W.getDataForColumn),H)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(H,j)=>(0,g.Sd)(H,j,this.displayedColumns,W.getDataForColumn),this.dataSource.sortData=(H,j)=>(0,g.pR)(H,j,W.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(H=>"id"!==H)),this.dataSource=new _.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return W.\u0275fac=function(H){return new(H||W)(t.Y36(p.x4),t.Y36(p.UA))},W.\u0275cmp=t.Xpm({type:W,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(H,j){if(1&H&&(t.Gf(g.l9,7),t.Gf(c.YE,7)),2&H){let it;t.iGM(it=t.CRH())&&(j.child=it.first),t.iGM(it=t.CRH())&&(j.matSort=it.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(H,j){1&H&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(tt){return j.exportData(tt)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,m,2,3,"th",4),t.YNc(5,C,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,L,3,3,"th",7),t.YNc(8,I,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,M,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,F,3,3,"th",7),t.YNc(14,B,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Y,3,3,"th",7),t.YNc(17,V,2,1,"td",10),t.BQk(),t.YNc(18,nt,1,0,"tr",13),t.YNc(19,et,1,0,"tr",14),t.qZA()()(),t.YNc(20,st,3,3,"perun-web-apps-alert",15),t.YNc(21,K,3,3,"perun-web-apps-alert",15)),2&H&&(t.Q6J("hidden",0===j.owners.length||0===j.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",j.tableId)("dataLength",j.dataSource.filteredData.length)("pageSizeOptions",j.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",j.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",j.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",j.displayedColumns),t.xp6(1),t.Q6J("ngIf",!j.owners.length),t.xp6(1),t.Q6J("ngIf",!j.dataSource.filteredData.length&&j.owners.length))},dependencies:[d.O5,l.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,c.YE,c.nU,h.w,f.l,u.X$]}),W})()},16087:(w,E,s)=>{"use strict";const c=s(34315),x=s(52872),_=s(60929);w.exports=function g(d,l){switch(x(d)){case"object":return function p(d,l){if("function"==typeof l)return l(d);if(l||_(d)){const h=new d.constructor;for(let f in d)h[f]=g(d[f],l);return h}return d}(d,l);case"array":return function t(d,l){const h=new d.constructor(d.length);for(let f=0;f{"use strict";var c=s(50623);function x(_){return!0===c(_)&&"[object Object]"===Object.prototype.toString.call(_)}w.exports=function(g){var p,t;return!(!1===x(g)||(p=g.constructor,"function"!=typeof p)||(t=p.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},52786:(w,E,s)=>{"use strict";s.d(E,{B8:()=>et,Il:()=>x,J5:()=>g,SU:()=>nt,Ss:()=>st,Ym:()=>j,ZP:()=>B,xV:()=>_});var c=s(68884);function x(){}var _=.7,g=1/_,p="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),f=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),u=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),m=new RegExp("^rgba\\("+[d,d,d,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,d,d]+"\\)$"),L=new RegExp("^hsla\\("+[t,d,d,t]+"\\)$"),I={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function R(){return this.rgb().formatHex()}function F(){return this.rgb().formatRgb()}function B(U){var D,mt;return U=(U+"").trim().toLowerCase(),(D=l.exec(U))?(mt=D[1].length,D=parseInt(D[1],16),6===mt?Y(D):3===mt?new st(D>>8&15|D>>4&240,D>>4&15|240&D,(15&D)<<4|15&D,1):8===mt?V(D>>24&255,D>>16&255,D>>8&255,(255&D)/255):4===mt?V(D>>12&15|D>>8&240,D>>8&15|D>>4&240,D>>4&15|240&D,((15&D)<<4|15&D)/255):null):(D=h.exec(U))?new st(D[1],D[2],D[3],1):(D=f.exec(U))?new st(255*D[1]/100,255*D[2]/100,255*D[3]/100,1):(D=u.exec(U))?V(D[1],D[2],D[3],D[4]):(D=m.exec(U))?V(255*D[1]/100,255*D[2]/100,255*D[3]/100,D[4]):(D=C.exec(U))?at(D[1],D[2]/100,D[3]/100,1):(D=L.exec(U))?at(D[1],D[2]/100,D[3]/100,D[4]):I.hasOwnProperty(U)?Y(I[U]):"transparent"===U?new st(NaN,NaN,NaN,0):null}function Y(U){return new st(U>>16&255,U>>8&255,255&U,1)}function V(U,D,mt,St){return St<=0&&(U=D=mt=NaN),new st(U,D,mt,St)}function nt(U){return U instanceof x||(U=B(U)),U?new st((U=U.rgb()).r,U.g,U.b,U.opacity):new st}function et(U,D,mt,St){return 1===arguments.length?nt(U):new st(U,D,mt,St??1)}function st(U,D,mt,St){this.r=+U,this.g=+D,this.b=+mt,this.opacity=+St}function K(){return"#"+W(this.r)+W(this.g)+W(this.b)}function X(){var U=this.opacity;return(1===(U=isNaN(U)?1:Math.max(0,Math.min(1,U)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===U?")":", "+U+")")}function W(U){return((U=Math.max(0,Math.min(255,Math.round(U)||0)))<16?"0":"")+U.toString(16)}function at(U,D,mt,St){return St<=0?U=D=mt=NaN:mt<=0||mt>=1?U=D=NaN:D<=0&&(U=NaN),new it(U,D,mt,St)}function H(U){if(U instanceof it)return new it(U.h,U.s,U.l,U.opacity);if(U instanceof x||(U=B(U)),!U)return new it;if(U instanceof it)return U;var D=(U=U.rgb()).r/255,mt=U.g/255,St=U.b/255,Mt=Math.min(D,mt,St),Et=Math.max(D,mt,St),Qt=NaN,Nt=Et-Mt,ft=(Et+Mt)/2;return Nt?(Qt=D===Et?(mt-St)/Nt+6*(mt0&&ft<1?0:Qt,new it(Qt,Nt,ft,U.opacity)}function j(U,D,mt,St){return 1===arguments.length?H(U):new it(U,D,mt,St??1)}function it(U,D,mt,St){this.h=+U,this.s=+D,this.l=+mt,this.opacity=+St}function tt(U,D,mt){return 255*(U<60?D+(mt-D)*U/60:U<180?mt:U<240?D+(mt-D)*(240-U)/60:D)}(0,c.Z)(x,B,{copy:function(U){return Object.assign(new this.constructor,this,U)},displayable:function(){return this.rgb().displayable()},hex:R,formatHex:R,formatHsl:function M(){return H(this).formatHsl()},formatRgb:F,toString:F}),(0,c.Z)(st,et,(0,c.l)(x,{brighter:function(U){return U=null==U?g:Math.pow(g,U),new st(this.r*U,this.g*U,this.b*U,this.opacity)},darker:function(U){return U=null==U?_:Math.pow(_,U),new st(this.r*U,this.g*U,this.b*U,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:K,formatHex:K,formatRgb:X,toString:X})),(0,c.Z)(it,j,(0,c.l)(x,{brighter:function(U){return U=null==U?g:Math.pow(g,U),new it(this.h,this.s,this.l*U,this.opacity)},darker:function(U){return U=null==U?_:Math.pow(_,U),new it(this.h,this.s,this.l*U,this.opacity)},rgb:function(){var U=this.h%360+360*(this.h<0),D=isNaN(U)||isNaN(this.s)?0:this.s,mt=this.l,St=mt+(mt<.5?mt:1-mt)*D,Mt=2*mt-St;return new st(tt(U>=240?U-240:U+120,Mt,St),tt(U,Mt,St),tt(U<120?U+240:U-120,Mt,St),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var U=this.opacity;return(1===(U=isNaN(U)?1:Math.max(0,Math.min(1,U)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===U?")":", "+U+")")}}))},68884:(w,E,s)=>{"use strict";function c(_,g,p){_.prototype=g.prototype=p,p.constructor=_}function x(_,g){var p=Object.create(_.prototype);for(var t in g)p[t]=g[t];return p}s.d(E,{Z:()=>c,l:()=>x})},25922:(w,E,s)=>{"use strict";s.d(E,{Z:()=>d});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(m+1),f=f.slice(0,m)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var m,f=0,u=l.length;f0)for(var m,C,f=new Array(m),u=0;u{"use strict";s.d(E,{Z:()=>g,D:()=>p});var c=s(52016);function _(t){t.preventDefault(),t.stopImmediatePropagation()}function g(t){var d=t.document.documentElement,l=(0,c.Z)(t).on("dragstart.drag",_,!0);"onselectstart"in d?l.on("selectstart.drag",_,!0):(d.__noselect=d.style.MozUserSelect,d.style.MozUserSelect="none")}function p(t,d){var l=t.document.documentElement,h=(0,c.Z)(t).on("dragstart.drag",null);d&&(h.on("click.drag",_,!0),setTimeout(function(){h.on("click.drag",null)},0)),"onselectstart"in l?h.on("selectstart.drag",null):(l.style.MozUserSelect=l.__noselect,delete l.__noselect)}},27065:(w,E,s)=>{"use strict";function _(g){return((g*=2)<=1?g*g*g:(g-=2)*g*g+2)/2}s.d(E,{tw:()=>_})},22910:(w,E,s)=>{"use strict";s.d(E,{WU:()=>_,ZP:()=>p,jH:()=>g});var x,_,g,c=s(4753);function p(t){return x=(0,c.Z)(t),_=x.format,g=x.formatPrefix,x}p({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(5326);function x(_){return(_=(0,c.V)(Math.abs(_)))?_[1]:NaN}},5326:(w,E,s)=>{"use strict";function c(_){return Math.abs(_=Math.round(_))>=1e21?_.toLocaleString("en").replace(/,/g,""):_.toString(10)}function x(_,g){if((p=(_=g?_.toExponential(g-1):_.toExponential()).indexOf("e"))<0)return null;var p,t=_.slice(0,p);return[t.length>1?t[0]+t.slice(2):t,+_.slice(p+1)]}s.d(E,{V:()=>x,Z:()=>c})},32517:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x,v:()=>_});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(g){if(!(p=c.exec(g)))throw new Error("invalid format: "+g);var p;return new _({fill:p[1],align:p[2],sign:p[3],symbol:p[4],zero:p[5],width:p[6],comma:p[7],precision:p[8]&&p[8].slice(1),trim:p[9],type:p[10]})}function _(g){this.fill=void 0===g.fill?" ":g.fill+"",this.align=void 0===g.align?">":g.align+"",this.sign=void 0===g.sign?"-":g.sign+"",this.symbol=void 0===g.symbol?"":g.symbol+"",this.zero=!!g.zero,this.width=void 0===g.width?void 0:+g.width,this.comma=!!g.comma,this.precision=void 0===g.precision?void 0:+g.precision,this.trim=!!g.trim,this.type=void 0===g.type?"":g.type+""}x.prototype=_.prototype,_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,E,s)=>{"use strict";s.r(E),s.d(E,{FormatSpecifier:()=>_.v,format:()=>c.WU,formatDefaultLocale:()=>c.ZP,formatLocale:()=>x.Z,formatPrefix:()=>c.jH,formatSpecifier:()=>_.Z,precisionFixed:()=>g.Z,precisionPrefix:()=>p.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),_=s(32517),g=s(78986),p=s(38914),t=s(65142)},4753:(w,E,s)=>{"use strict";s.d(E,{Z:()=>L});var d,c=s(68520),g=s(32517),t=s(5326);function h(I,R){var M=(0,t.V)(I,R);if(!M)return I+"";var F=M[0],B=M[1];return B<0?"0."+new Array(-B).join("0")+F:F.length>B+1?F.slice(0,B+1)+"."+F.slice(B+1):F+new Array(B-F.length+2).join("0")}const f={"%":(I,R)=>(100*I).toFixed(R),b:I=>Math.round(I).toString(2),c:I=>I+"",d:t.Z,e:(I,R)=>I.toExponential(R),f:(I,R)=>I.toFixed(R),g:(I,R)=>I.toPrecision(R),o:I=>Math.round(I).toString(8),p:(I,R)=>h(100*I,R),r:h,s:function l(I,R){var M=(0,t.V)(I,R);if(!M)return I+"";var F=M[0],B=M[1],Y=B-(d=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,V=F.length;return Y===V?F:Y>V?F+new Array(Y-V+1).join("0"):Y>0?F.slice(0,Y)+"."+F.slice(Y):"0."+new Array(1-Y).join("0")+(0,t.V)(I,Math.max(0,R+Y-1))[0]},X:I=>Math.round(I).toString(16).toUpperCase(),x:I=>Math.round(I).toString(16)};function u(I){return I}var m=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function L(I){var R=void 0===I.grouping||void 0===I.thousands?u:function x(I,R){return function(M,F){for(var B=M.length,Y=[],V=0,nt=I[0],et=0;B>0&&nt>0&&(et+nt+1>F&&(nt=Math.max(1,F-et)),Y.push(M.substring(B-=nt,B+nt)),!((et+=nt+1)>F));)nt=I[V=(V+1)%I.length];return Y.reverse().join(R)}}(m.call(I.grouping,Number),I.thousands+""),M=void 0===I.currency?"":I.currency[0]+"",F=void 0===I.currency?"":I.currency[1]+"",B=void 0===I.decimal?".":I.decimal+"",Y=void 0===I.numerals?u:function _(I){return function(R){return R.replace(/[0-9]/g,function(M){return I[+M]})}}(m.call(I.numerals,String)),V=void 0===I.percent?"%":I.percent+"",nt=void 0===I.minus?"\u2212":I.minus+"",et=void 0===I.nan?"NaN":I.nan+"";function st(X){var W=(X=(0,g.Z)(X)).fill,at=X.align,H=X.sign,j=X.symbol,it=X.zero,tt=X.width,U=X.comma,D=X.precision,mt=X.trim,St=X.type;"n"===St?(U=!0,St="g"):f[St]||(void 0===D&&(D=12),mt=!0,St="g"),(it||"0"===W&&"="===at)&&(it=!0,W="0",at="=");var Mt="$"===j?M:"#"===j&&/[boxX]/.test(St)?"0"+St.toLowerCase():"",Et="$"===j?F:/[%p]/.test(St)?V:"",Qt=f[St],Nt=/[defgprs%]/.test(St);function ft(dt){var le,ie,ue,wt=Mt,Zt=Et;if("c"===St)Zt=Qt(dt)+Zt,dt="";else{var xe=(dt=+dt)<0||1/dt<0;if(dt=isNaN(dt)?et:Qt(Math.abs(dt),D),mt&&(dt=function p(I){t:for(var B,R=I.length,M=1,F=-1;M0&&(F=0)}return F>0?I.slice(0,F)+I.slice(B+1):I}(dt)),xe&&0==+dt&&"+"!==H&&(xe=!1),wt=(xe?"("===H?H:nt:"-"===H||"("===H?"":H)+wt,Zt=("s"===St?C[8+d/3]:"")+Zt+(xe&&"("===H?")":""),Nt)for(le=-1,ie=dt.length;++le(ue=dt.charCodeAt(le))||ue>57){Zt=(46===ue?B+dt.slice(le+1):dt.slice(le))+Zt,dt=dt.slice(0,le);break}}U&&!it&&(dt=R(dt,1/0));var Ue=wt.length+dt.length+Zt.length,Pe=Ue>1)+wt+dt+Zt+Pe.slice(Ue);break;default:dt=Pe+wt+dt+Zt}return Y(dt)}return D=void 0===D?6:/[gprs]/.test(St)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D)),ft.toString=function(){return X+""},ft}return{format:st,formatPrefix:function K(X,W){var at=st(((X=(0,g.Z)(X)).type="f",X)),H=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(W)/3))),j=Math.pow(10,-H),it=C[8+H/3];return function(tt){return at(j*tt)+it}}}}},78986:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_){return Math.max(0,-(0,c.Z)(Math.abs(_)))}},38914:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_,g){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(g)/3)))-(0,c.Z)(Math.abs(_)))}},65142:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(68520);function x(_,g){return _=Math.abs(_),g=Math.abs(g)-_,Math.max(0,(0,c.Z)(g)-(0,c.Z)(_))+1}},9921:function(w,E,s){!function(c,x,_,g,p,t,d,l,h,f){"use strict";function u(J){if(J&&J.__esModule)return J;var pt=Object.create(null);return J&&Object.keys(J).forEach(function(gt){if("default"!==gt){var _t=Object.getOwnPropertyDescriptor(J,gt);Object.defineProperty(pt,gt,_t.get?_t:{enumerable:!0,get:function(){return J[gt]}})}}),pt.default=J,Object.freeze(pt)}var Dt,m=u(x);function C(J,pt,gt){return pt in J?Object.defineProperty(J,pt,{value:gt,enumerable:!0,configurable:!0,writable:!0}):J[pt]=gt,J}function L(J){return function I(J){if(Array.isArray(J))return F(J)}(J)||function R(J){if(typeof Symbol<"u"&&null!=J[Symbol.iterator]||null!=J["@@iterator"])return Array.from(J)}(J)||function M(J,pt){if(J){if("string"==typeof J)return F(J,pt);var gt=Object.prototype.toString.call(J).slice(8,-1);if("Object"===gt&&J.constructor&&(gt=J.constructor.name),"Map"===gt||"Set"===gt)return Array.from(J);if("Arguments"===gt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(gt))return F(J,pt)}}(J)||function B(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(J,pt){(null==pt||pt>J.length)&&(pt=J.length);for(var gt=0,_t=new Array(pt);gt1&&void 0!==arguments[1]?arguments[1]:0,gt=m.select(this),_t=J.attributes,zt=gt.node().attributes;if(zt)for(var Wt=0;Wt0?Cn.children[0].text:"")}null==ce.key&&(zt&&("ellipse"==_n||"polygon"==_n)&&(_n="path"),ce.key=_n+"-"+Qe)}function Oe(ce,Qe){ce.id=(Qe?Qe.id+".":"")+ce.key}function Be(ce){O[ce.id]=ce}function oe(ce,Qe){zt&&ce.id in re&&("polygon"==Qe.tag||"ellipse"==Qe.tag||"path"==Qe.tag)&&(Qe.tag!=ce.tag||"polygon"==ce.tag)&&("path"!=Qe.tag&&(ce.alternativeOld=Pe(Qe,ce)),"path"!=ce.tag&&(ce.alternativeNew=Pe(ce,Qe)))}function he(ce,Qe){if(_t&&Qe&&("path"==Qe.tag||ce.alternativeOld&&"path"==ce.alternativeOld.tag)){var _n=(ce.alternativeNew||ce).attributes.d;if(ce.alternativeOld)var Cn=et(ce.alternativeOld);else Cn=et(Qe);(ce.alternativeOld||(ce.alternativeOld={})).points=function ft(J,pt,gt,_t){for(var zt=J,Wt=zt.cloneNode(),Lt=zt.getTotalLength(),ae=(Wt.setAttribute("d",pt),Wt).getTotalLength(),O=[0],re=0,Te=_t?gt:gt/Math.max(Lt,ae);(re+=Te)<1;)O.push(re);return O.push(1),O.map(function(je){var Oe=zt.getPointAtLength(je*Lt),Be=Wt.getPointAtLength(je*ae);return[[Oe.x,Oe.y],[Be.x,Be.y]]})}(Cn,_n,Wt,Lt)}}function Fe(ce){var _n=arguments.length>2?arguments[2]:void 0;je(ce,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),Oe(ce,_n);var Qn=re[ce.id];Be(ce),oe(ce,Qn),he(ce,Qn);var li={};ce.children.forEach(function(jn){var En=jn.tag;("ellipse"==En||"polygon"==En)&&(En="path"),null==li[En]&&(li[En]=0),Fe(jn,li[En]++,ce)})}function Je(ce){(function fn(ce){if(ae&&ce.parent&&"node"==ce.parent.attributes.class&&"title"==ce.tag){if(ce.children.length>0)var Cn=ce.children[0].text;else Cn="";Te[Cn]=ce.parent}})(ce),function mn(ce){var _n=ce.tag;if(ae&&!re[ce.id]&&ce.parent&&Zt(ce)&&("path"==_n||"polygon"==_n)){if("polygon"==_n){var Qn=ce.parent.children.find(function(Mn){return"path"==Mn.tag});Qn&&(ce.totalLength=Qn.totalLength)}var jn=function ie(J){return function le(J){return"edge"==J.parent.attributes.class?J.parent:J.parent.parent.parent}(J).children.find(function(pt){return"title"==pt.tag})}(ce).children[0],En=jn.text.split("->");2!=En.length&&(En=jn.text.split("--"));var Pn=En[0],Jn=Te[Pn],bi=ye[Pn];if(bi){if((hn=Jn.children.findIndex(function(Mn,Ti){return"g"==Mn.tag}))>=0){var gn=Jn.children[hn].children.findIndex(function(Mn,Ti){return"a"==Mn.tag});Jn=Jn.children[hn].children[gn]}(hn=bi.children.findIndex(function(Mn,Ti){return"g"==Mn.tag}))>=0&&(gn=bi.children[hn].children.findIndex(function(Ti,cn){return"a"==Ti.tag}),bi=bi.children[hn].children[gn]);for(var ci=Jn.children,hn=0;hn0&&this._queue.shift().call(this)}function Pi(J,pt,gt,_t){var zt=[J*gt-(pt=-pt)*(_t=-_t),J*_t+pt*gt];return[J=zt[0],pt=-(pt=zt[1])]}function Ee(J,pt,gt,_t,zt,Wt,Lt){var O=V(Tn.call(this,Wt));J.data([O]),at.call(J.node(),O),tn(J,pt,gt,_t,zt,Wt,Lt)}function tn(J,pt,gt,_t,zt,Wt,Lt){var ae=Lt.shortening||0,ye=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],je=_t-pt,Oe=zt-gt,Be=Math.sqrt(je*je+Oe*Oe);if(0==Be)var oe=1,he=0;else oe=je/Be,he=Oe/Be;if(_t=pt+(Be-ae-10-.1)*oe,zt=gt+(Be-ae-10-.1)*he,Wt.URL||Wt.tooltip)var Fe=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),fn=Fe.selectWithoutDataPropagation("path"),mn=Fe.selectWithoutDataPropagation("polygon");else fn=J.selectWithoutDataPropagation("path"),mn=J.selectWithoutDataPropagation("polygon");var Je=f.path();Je.moveTo(pt,gt),Je.lineTo(_t,zt),fn.attr("d",Je),_t=pt+(Be-ae-10)*oe,zt=gt+(Be-ae-10)*he;for(var $e=0;$e b ["+pt+"]}","svg","dot"),O=(new window.DOMParser).parseFromString(Lt,"image/svg+xml");return m.select(document.createDocumentFragment()).append(function(){return O.documentElement}).select(".edge")}function In(J,pt,gt,_t,zt,Wt){var ae=V($.call(this,_t,zt));return J.data([ae]),at.call(J.node(),ae),be(J,pt,gt,zt),this}function be(J,pt,gt,_t,zt){if(_t.URL||_t.tooltip)var Wt=J.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else Wt=J;var Lt=Wt.selectAll("ellipse,polygon,path,polyline"),ae=J.selectWithoutDataPropagation("text");if(0!=Lt.size()){var O=Lt.node().getBBox();O.cx=O.x+O.width/2,O.cy=O.y+O.height/2}else 0!=ae.size()&&(O={x:+ae.attr("x"),y:+ae.attr("y"),width:0,height:0,cx:+ae.attr("x"),cy:+ae.attr("y")});return Lt.each(function(re,Te){var ye=m.select(this);if(ye.attr("cx"))ye.attr("cx",j(pt)).attr("cy",j(gt));else if(ye.attr("points")){var je=ye.attr("points").trim();ye.attr("points",function It(Wt,pt,gt){var zt,_t=(zt=Wt.split(" ")).map(function(Lt){return Lt.split(",")});return _t=zt.map(function(Lt){return[j(+pt+ +Lt.split(",")[0]),j(+gt+ +Lt.split(",")[1])]}),(zt=_t.map(function(Lt){return Lt.join(",")})).join(" ")}(je,pt-O.cx,gt-O.cy))}else{var Oe=ye.attr("d");ye.attr("d",function $t(J,pt,gt){(Wt=J.split(/[A-Z ]/)).shift();var _t=J.split(/[^[A-Z ]+/),Wt=(Wt.map(function(Lt){return Lt.split(",")}),Wt.map(function(Lt){return[j(+pt+ +Lt.split(",")[0]),j(+gt+ +Lt.split(",")[1])]}).map(function(Lt){return Lt.join(",")}));return _t.reduce(function(Lt,ae,O){return Lt.concat(ae,Wt[O])},[]).join("")}(Oe,pt-O.cx,gt-O.cy))}}),0!=ae.size()&&ae.attr("x",j(+ae.attr("x")+pt-O.cx)).attr("y",j(+ae.attr("y")+gt-O.cy)),this}function Hn(){if(!this._drawnNode)return this;var J=this._drawnNode.g;return J.empty()||J.remove(),this._drawnNode=null,this}function z(){return this._drawnNode?this._drawnNode.g:m.select(null)}function $(J,pt){for(var gt="",_t=0,zt=Object.keys(pt);_t"u"&&(Lt=!1),typeof SharedWorker>"u"&&(ae=!1),Lt||ae){var re=m.selectAll("script").filter(function(){return"javascript/worker"==m.select(this).attr("type")||m.select(this).attr("src")&&m.select(this).attr("src").match(/.*\/@hpcc-js\/wasm/)});0==re.size()?(console.warn('No script tag of type "javascript/worker" was found and "useWorker" is true. Not using web worker.'),Lt=!1,ae=!1):(this._vizURL=re.attr("src"),this._vizURL||(console.warn('No "src" attribute of was found on the "javascript/worker" script tag and "useWorker" is true. Not using web worker.'),Lt=!1,ae=!1))}if(ae){var Te="data:application/javascript;base64,"+btoa(ct.toString()+"("+bt.toString()+")()");this._worker=this._worker=new SharedWorker(Te),this._workerPort=this._worker.port,this._workerPortClose=this._worker.port.close.bind(this._workerPort),this._worker.port.start(),this._workerCallbacks=[]}else if(Lt){var ye=new Blob([ct.toString()+"("+A.toString()+")()"]),je=window.URL.createObjectURL(ye);this._worker=new Worker(je),this._workerPort=this._worker,this._workerPortClose=this._worker.terminate.bind(this._worker),this._workerCallbacks=[]}else l.graphvizVersion().then(function(Oe){gt._graphvizVersion=Oe}.bind(this));this._selection=J,this._active=!1,this._busy=!1,this._jobs=[],this._queue=[],this._keyModes=new Set(["title","id","tag-index","index"]),this._images=[],this._translation=void 0,this._scale=void 0,this._eventTypes=["initEnd","start","layoutStart","layoutEnd","dataExtractEnd","dataProcessPass1End","dataProcessPass2End","dataProcessEnd","renderStart","renderEnd","transitionStart","transitionEnd","restoreEnd","end","zoom"],this._dispatch=_.dispatch.apply(void 0,L(this._eventTypes)),Vt.call(this),J.node().__graphviz__=this}function Ut(J,pt){return m.select(J).graphviz(pt)}Pt.prototype=Ut.prototype=(C(Dt={constructor:Pt,engine:function se(J){return this._options.engine=J,this},addImage:function pe(J,pt,gt){return this._images.push({path:J,width:pt,height:gt}),this},keyMode:function qt(J){if(!this._keyModes.has(J))throw Error("Illegal keyMode: "+J);if(J!=this._options.keyMode&&null!=this._data)throw Error("Too late to change keyMode");return this._options.keyMode=J,this},fade:function Ve(J){return this._options.fade=J,this},tweenPaths:function Xe(J){return this._options.tweenPaths=J,this},tweenShapes:function bn(J){return this._options.tweenShapes=J,J&&(this._options.tweenPaths=!0),this},convertEqualSidedPolygons:function oi(J){return this._options.convertEqualSidedPolygons=J,this},tweenPrecision:function Ni(J){return this._options.tweenPrecision=J,this},growEnteringEdges:function fi(J){return this._options.growEnteringEdges=J,this},zoom:function it(J){return this._options.zoom=J,this._options.zoom&&!this._zoomBehavior?tt.call(this):!this._options.zoom&&this._zoomBehavior&&(this._zoomSelection.on(".zoom",null),this._zoomBehavior=null),this},resetZoom:function mt(J){var pt=this._zoomSelection;return J&&(pt=pt.transition(J)),pt.call(this._zoomBehavior.transform,this._originalTransform),this},zoomBehavior:function Et(){return this._zoomBehavior||null},zoomSelection:function Qt(){return this._zoomSelection||null},zoomScaleExtent:function St(J){return this._options.zoomScaleExtent=J,this},zoomTranslateExtent:function Mt(J){return this._options.zoomTranslateExtent=J,this},render:function ue(J){return this._busy?(this._queue.push(this.render.bind(this,J)),this):(this._dispatch.call("renderStart",this),this._transitionFactory?p.timeout(function(){this._transition=g.transition(this._transitionFactory()),xe.call(this,J)}.bind(this),0):xe.call(this,J),this)},layout:function me(J,pt,gt,_t){if(this._worker)Jt.call(this,{type:"layout",dot:J,engine:pt,options:gt},function(Wt){_t.call(this,Wt.data)});else try{var zt=this.layoutSync(J,"svg",pt,gt);_t.call(this,{type:"done",svg:zt})}catch(Wt){_t.call(this,{type:"error",error:Wt.message})}},dot:function ve(J,pt){var gt=this,_t=this._options.engine,zt=this._images;return this._dispatch.call("start",this),this._busy=!0,this._dispatch.call("layoutStart",this),this._worker||null!=this.layoutSync?(this.layout(J,_t,{images:zt},function(Lt){switch(Lt.type){case"error":if(!gt._onerror)throw Lt.error.message;gt._onerror(Lt.error);break;case"done":Se.call(this,Lt.svg,pt)}}),this):(this._afterInit=this.dot.bind(this,J,pt),this)},data:function dt(){return this._data||null},renderDot:function ke(J,pt){var gt=this;return this.dot(J,function _t(){gt.render(pt)}),this},transition:function Ce(J){return J instanceof Function?this._transitionFactory=J:this._transition=g.transition(J),this},active:function ze(J){var gt=this._selection.selectWithoutDataPropagation("svg");return 0!=gt.size()?g.active(gt.node(),J):null},options:function Ge(J){if(typeof J>"u")return Object.assign({},this._options);for(var pt=0,gt=Object.keys(J);pt2")(je)+" ",he+=Oe+" ".repeat(Wt-Oe.length),he+=h.format(" >5")(Be-gt)+" ","initEnd"!=Oe&&(he+=h.format(" >5")(Be-_t.start[oe])),"dataProcessEnd"==Oe&&(he+=" prepare "+h.format(" >5")(Be-_t.layoutEnd[oe])),"renderEnd"==Oe&&O._transition&&(he+=" transition start margin "+h.format(" >5")(O._transition.delay()-(Be-_t.renderStart[oe])),re=O._transition.delay(),Te=O._transition.duration()),"transitionStart"==Oe){var Fe=Be-_t.renderStart[oe];he+=" transition delay "+h.format(" >5")(Be-_t.renderStart[oe]),he+=" expected "+h.format(" >5")(re),he+=" diff "+h.format(" >5")(Fe-re)}if("transitionEnd"==Oe){var fn=Be-_t.transitionStart[oe];he+=" transition duration "+h.format(" >5")(fn),he+=" expected "+h.format(" >5")(Te),he+=" diff "+h.format(" >5")(fn-Te)}console.log(he),gt=Be}:null)},ae=0;ae5&&void 0!==arguments[5]?arguments[5]:{};if((zt=Object.assign({},zt)).style&&zt.style.includes("invis"))var Lt=m.select(null);else{var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ye=V(Tn.call(this,zt));Lt=re.append("g").data([ye]),at.call(Lt.node(),ye),Ee.call(this,Lt,J,pt,gt,_t,zt,Wt)}return this._drawnEdge={g:Lt,x1:J,y1:pt,x2:gt,y2:_t,attributes:zt},this},updateDrawnEdge:function Qi(J,pt,gt,_t){var zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},Wt=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Lt=this._drawnEdge.g;return zt=Object.assign(this._drawnEdge.attributes,zt),this._drawnEdge.x1=J,this._drawnEdge.y1=pt,this._drawnEdge.x2=gt,this._drawnEdge.y2=_t,!Lt.empty()||zt.style&&zt.style.includes("invis")||(Lt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Lt),Lt.empty()||Ee.call(this,Lt,J,pt,gt,_t,zt,Wt),this},moveDrawnEdgeEndPoint:function yi(J,pt){var gt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var _t=this._drawnEdge.g,zt=this._drawnEdge.x1,Wt=this._drawnEdge.y1,Lt=this._drawnEdge.attributes;return this._drawnEdge.x2=J,this._drawnEdge.y2=pt,tn(_t,zt,Wt,J,pt,Lt,gt),this},insertDrawnEdge:function On(J){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(J);var Wt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Lt=Wt.datum(),ae=this._extractData(pt,Lt.children.length,Wt.datum());return Lt.children.push(ae),X(pt,ae),this._drawnEdge=null,this},removeDrawnEdge:ji},"removeDrawnEdge",ji),C(Dt,"drawnEdgeSelection",He),C(Dt,"drawnEdgeSelection",He),C(Dt,"drawNode",function Bn(J,pt,gt){var _t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((_t=Object.assign({},_t)).style&&_t.style.includes("invis"))var Wt=m.select(null);else{var O=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Te=V($.call(this,gt,_t));Wt=O.append("g").data([Te]),at.call(Wt.node(),Te),In.call(this,Wt,J,pt,gt,_t,zt)}return this._drawnNode={g:Wt,nodeId:gt,x:J,y:pt,attributes:_t},this}),C(Dt,"updateDrawnNode",function Di(J,pt,gt){var _t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},zt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var Wt=this._drawnNode.g;return null==gt&&(gt=this._drawnNode.nodeId),_t=Object.assign(this._drawnNode.attributes,_t),this._drawnNode.nodeId=gt,this._drawnNode.x=J,this._drawnNode.y=pt,!Wt.empty()||_t.style&&_t.style.includes("invis")||(Wt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=Wt),Wt.empty()||In.call(this,Wt,J,pt,gt,_t,zt),this}),C(Dt,"moveDrawnNode",function Fi(J,pt){if(!this._drawnNode)throw Error("No node has been drawn");var gt=this._drawnNode.g,_t=this._drawnNode.attributes;return this._drawnNode.x=J,this._drawnNode.y=pt,gt.empty()||be(gt,J,pt,_t),this}),C(Dt,"insertDrawnNode",function sn(J){if(!this._drawnNode)throw Error("No node has been drawn");null==J&&(J=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var gt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(J),gt.URL||gt.tooltip){var Wt=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");Wt.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Lt=Wt.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Lt=pt.selectWithoutDataPropagation("text");Lt.text(gt.label||J);var re=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Te=re.datum(),ye=this._extractData(pt,Te.children.length,re.datum());return Te.children.push(ye),X(pt,ye),this._drawnNode=null,this}),C(Dt,"removeDrawnNode",Hn),C(Dt,"removeDrawnNode",Hn),C(Dt,"drawnNodeSelection",z),C(Dt,"drawnNodeSelection",z),C(Dt,"graphvizVersion",function Ue(){return this._graphvizVersion}),Dt),x.selection.prototype.graphviz=function jt(J){var pt=this.node().__graphviz__;return pt?(pt.options(J),p.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Pt(this,J),pt},x.selection.prototype.selectWithoutDataPropagation=function Ht(J){return m.select(this.size()>0?this.node().querySelector(J):null)},c.graphviz=Ut,Object.defineProperty(c,"__esModule",{value:!0})}(E,s(68557),s(75143),s(18429),s(65894),s(46176),s(46041),s(89397),s(41129),s(38184))},75143:(w,E,s)=>{"use strict";s.r(E),s.d(E,{dispatch:()=>d});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,f={};l=0&&(u=f.slice(m+1),f=f.slice(0,m)),f&&!h.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:u}})}function p(l,h){for(var m,f=0,u=l.length;f0)for(var m,C,f=new Array(m),u=0;u{"use strict";s.r(E),s.d(E,{interval:()=>nt,now:()=>m,timeout:()=>V,timer:()=>I,timerFlush:()=>R});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(et){setTimeout(et,17)};function m(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(et,st,K){var X=new L;return X.restart(et,st,K),X}function R(){m(),++c;for(var st,et=p;et;)(st=l-et._time)>=0&&et._call.call(null,st),et=et._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{R()}finally{c=0,function B(){for(var et,K,st=p,X=1/0;st;)st._call?(X>st._time&&(X=st._time),et=st,st=st._next):(K=st._next,st._next=null,st=et?et._next=K:p=K);t=et,Y(X)}(),l=0}}function F(){var et=f.now(),st=et-d;st>1e3&&(h-=st,d=et)}function Y(et){c||(x&&(x=clearTimeout(x)),et-l>24?(et<1/0&&(x=setTimeout(M,et-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}function V(et,st,K){var X=new L;return X.restart(W=>{X.stop(),et(W+st)},st=null==st?0:+st,K),X}function nt(et,st,K){var X=new L,W=st;return null==st?(X.restart(et,st,K),X):(X._restart=X.restart,X.restart=function(at,H,j){H=+H,j=null==j?m():+j,X._restart(function it(tt){tt+=W,X._restart(it,W+=H,j),at(tt)},H,j)},X.restart(et,st,K),X)}L.prototype=I.prototype={constructor:L,restart:function(et,st,K){if("function"!=typeof et)throw new TypeError("callback is not a function");K=(null==K?m():+K)+(null==st?0:+st),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=et,this._time=K,Y()},stop:function(){this._call&&(this._call=null,this._time=1/0,Y())}}},90268:(w,E,s)=>{"use strict";s.d(E,{M:()=>g,Z:()=>_});var c=s(37656),x=s(62681);function _(p,t){return((0,x.v)(t)?x.Z:g)(p,t)}function g(p,t){var u,d=t?t.length:0,l=p?Math.min(d,p.length):0,h=new Array(l),f=new Array(d);for(u=0;u{"use strict";function c(_,g,p,t,d){var l=_*_,h=l*_;return((1-3*_+3*l-h)*g+(4-6*l+3*h)*p+(1+3*_+3*l-3*h)*t+h*d)/6}function x(_){var g=_.length-1;return function(p){var t=p<=0?p=0:p>=1?(p=1,g-1):Math.floor(p*g),d=_[t],l=_[t+1];return c((p-t/g)*g,t>0?_[t-1]:2*d-l,d,l,tx,t:()=>c})},68523:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(16712);function x(_){var g=_.length;return function(p){var t=Math.floor(((p%=1)<0?++p:p)*g);return(0,c.t)((p-t/g)*g,_[(t+g-1)%g],_[t%g],_[(t+1)%g],_[(t+2)%g])}}},35147:(w,E,s)=>{"use strict";s.d(E,{ZP:()=>t,wx:()=>g,yi:()=>p});var c=s(47927);function x(d,l){return function(h){return d+h*l}}function g(d,l){var h=l-d;return h?x(d,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(d)?l:d)}function p(d){return 1==(d=+d)?t:function(l,h){return h-l?function _(d,l,h){return d=Math.pow(d,h),l=Math.pow(l,h)-d,h=1/h,function(f){return Math.pow(d+f*l,h)}}(l,h,d):(0,c.Z)(isNaN(l)?h:l)}}function t(d,l){var h=l-d;return h?x(d,h):(0,c.Z)(isNaN(d)?l:d)}},47927:(w,E,s)=>{"use strict";s.d(E,{Z:()=>c});const c=x=>()=>x},15629:(w,E,s)=>{"use strict";function c(x,_){var g=new Date;return x=+x,_=+_,function(p){return g.setTime(x*(1-p)+_*p),g}}s.d(E,{Z:()=>c})},46176:(w,E,s)=>{"use strict";s.r(E),s.d(E,{interpolate:()=>c.Z,interpolateArray:()=>x.Z,interpolateBasis:()=>_.Z,interpolateBasisClosed:()=>g.Z,interpolateCubehelix:()=>Ge,interpolateCubehelixLong:()=>an,interpolateDate:()=>p.Z,interpolateDiscrete:()=>t,interpolateHcl:()=>ue,interpolateHclLong:()=>xe,interpolateHsl:()=>B,interpolateHslLong:()=>Y,interpolateHue:()=>l,interpolateLab:()=>le,interpolateNumber:()=>h.Z,interpolateNumberArray:()=>f.Z,interpolateObject:()=>u.Z,interpolateRgb:()=>R.ZP,interpolateRgbBasis:()=>R.hD,interpolateRgbBasisClosed:()=>R.YD,interpolateRound:()=>m.Z,interpolateString:()=>C.Z,interpolateTransformCss:()=>L.Y,interpolateTransformSvg:()=>L.w,interpolateZoom:()=>I.Z,piecewise:()=>_e,quantize:()=>un});var c=s(37656),x=s(90268),_=s(16712),g=s(68523),p=s(15629);function t(Tt){var Yt=Tt.length;return function(se){return Tt[Math.max(0,Math.min(Yt-1,Math.floor(se*Yt)))]}}var d=s(35147);function l(Tt,Yt){var se=(0,d.wx)(+Tt,+Yt);return function(pe){var qt=se(pe);return qt-360*Math.floor(qt/360)}}var h=s(6738),f=s(62681),u=s(84858),m=s(84067),C=s(23096),L=s(75349),I=s(76257),R=s(86811),M=s(52786);function F(Tt){return function(Yt,se){var pe=Tt((Yt=(0,M.Ym)(Yt)).h,(se=(0,M.Ym)(se)).h),qt=(0,d.ZP)(Yt.s,se.s),Ve=(0,d.ZP)(Yt.l,se.l),Xe=(0,d.ZP)(Yt.opacity,se.opacity);return function(bn){return Yt.h=pe(bn),Yt.s=qt(bn),Yt.l=Ve(bn),Yt.opacity=Xe(bn),Yt+""}}}const B=F(d.wx);var Y=F(d.ZP),V=s(68884);const nt=Math.PI/180,et=180/Math.PI,K=.96422,W=.82521,at=4/29,H=6/29,j=3*H*H;function tt(Tt){if(Tt instanceof mt)return new mt(Tt.l,Tt.a,Tt.b,Tt.opacity);if(Tt instanceof wt)return Zt(Tt);Tt instanceof M.Ss||(Tt=(0,M.SU)(Tt));var Ve,Xe,Yt=Qt(Tt.r),se=Qt(Tt.g),pe=Qt(Tt.b),qt=St((.2225045*Yt+.7168786*se+.0606169*pe)/1);return Yt===se&&se===pe?Ve=Xe=qt:(Ve=St((.4360747*Yt+.3850649*se+.1430804*pe)/K),Xe=St((.0139322*Yt+.0971045*se+.7141733*pe)/W)),new mt(116*qt-16,500*(Ve-qt),200*(qt-Xe),Tt.opacity)}function D(Tt,Yt,se,pe){return 1===arguments.length?tt(Tt):new mt(Tt,Yt,se,pe??1)}function mt(Tt,Yt,se,pe){this.l=+Tt,this.a=+Yt,this.b=+se,this.opacity=+pe}function St(Tt){return Tt>.008856451679035631?Math.pow(Tt,1/3):Tt/j+at}function Mt(Tt){return Tt>H?Tt*Tt*Tt:j*(Tt-at)}function Et(Tt){return 255*(Tt<=.0031308?12.92*Tt:1.055*Math.pow(Tt,1/2.4)-.055)}function Qt(Tt){return(Tt/=255)<=.04045?Tt/12.92:Math.pow((Tt+.055)/1.055,2.4)}function Nt(Tt){if(Tt instanceof wt)return new wt(Tt.h,Tt.c,Tt.l,Tt.opacity);if(Tt instanceof mt||(Tt=tt(Tt)),0===Tt.a&&0===Tt.b)return new wt(NaN,0{"use strict";function c(x,_){return x=+x,_=+_,function(g){return x*(1-g)+_*g}}s.d(E,{Z:()=>c})},62681:(w,E,s)=>{"use strict";function c(_,g){g||(g=[]);var d,p=_?Math.min(g.length,_.length):0,t=g.slice();return function(l){for(d=0;dc,v:()=>x})},84858:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(37656);function x(_,g){var d,p={},t={};for(d in(null===_||"object"!=typeof _)&&(_={}),(null===g||"object"!=typeof g)&&(g={}),g)d in _?p[d]=(0,c.Z)(_[d],g[d]):t[d]=g[d];return function(l){for(d in p)t[d]=p[d](l);return t}}},86811:(w,E,s)=>{"use strict";s.d(E,{YD:()=>l,ZP:()=>p,hD:()=>d});var c=s(52786),x=s(16712),_=s(68523),g=s(35147);const p=function h(f){var u=(0,g.yi)(f);function m(C,L){var I=u((C=(0,c.B8)(C)).r,(L=(0,c.B8)(L)).r),R=u(C.g,L.g),M=u(C.b,L.b),F=(0,g.ZP)(C.opacity,L.opacity);return function(B){return C.r=I(B),C.g=R(B),C.b=M(B),C.opacity=F(B),C+""}}return m.gamma=h,m}(1);function t(h){return function(f){var I,R,u=f.length,m=new Array(u),C=new Array(u),L=new Array(u);for(I=0;I{"use strict";function c(x,_){return x=+x,_=+_,function(g){return Math.round(x*(1-g)+_*g)}}s.d(E,{Z:()=>c})},23096:(w,E,s)=>{"use strict";s.d(E,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(x.source,"g");function t(d,l){var f,u,m,h=x.lastIndex=_.lastIndex=0,C=-1,L=[],I=[];for(d+="",l+="";(f=x.exec(d))&&(u=_.exec(l));)(m=u.index)>h&&(m=l.slice(h,m),L[C]?L[C]+=m:L[++C]=m),(f=f[0])===(u=u[0])?L[C]?L[C]+=u:L[++C]=u:(L[++C]=null,I.push({i:C,x:(0,c.Z)(f,u)})),h=_.lastIndex;return h{"use strict";s.d(E,{Y:()=>h,w:()=>f});var p,c=s(6738),x=180/Math.PI,_={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function g(u,m,C,L,I,R){var M,F,B;return(M=Math.sqrt(u*u+m*m))&&(u/=M,m/=M),(B=u*C+m*L)&&(C-=u*B,L-=m*B),(F=Math.sqrt(C*C+L*L))&&(C/=F,L/=F,B/=F),u*L180?V+=360:V-Y>180&&(Y+=360),et.push({i:nt.push(I(nt)+"rotate(",null,L)-2,x:(0,c.Z)(Y,V)})):V&&nt.push(I(nt)+"rotate("+V+L)}(Y.rotate,V.rotate,nt,et),function F(Y,V,nt,et){Y!==V?et.push({i:nt.push(I(nt)+"skewX(",null,L)-2,x:(0,c.Z)(Y,V)}):V&&nt.push(I(nt)+"skewX("+V+L)}(Y.skewX,V.skewX,nt,et),function B(Y,V,nt,et,st,K){if(Y!==nt||V!==et){var X=st.push(I(st)+"scale(",null,",",null,")");K.push({i:X-4,x:(0,c.Z)(Y,nt)},{i:X-2,x:(0,c.Z)(V,et)})}else(1!==nt||1!==et)&&st.push(I(st)+"scale("+nt+","+et+")")}(Y.scaleX,Y.scaleY,V.scaleX,V.scaleY,nt,et),Y=V=null,function(st){for(var W,K=-1,X=et.length;++K{"use strict";s.d(E,{Z:()=>f});var c=s(52786),x=s(86811),_=s(90268),g=s(15629),p=s(6738),t=s(84858),d=s(23096),l=s(47927),h=s(62681);function f(u,m){var L,C=typeof m;return null==m||"boolean"===C?(0,l.Z)(m):("number"===C?p.Z:"string"===C?(L=(0,c.ZP)(m))?(m=L,x.ZP):d.Z:m instanceof c.ZP?x.ZP:m instanceof Date?g.Z:(0,h.v)(m)?h.Z:Array.isArray(m)?_.M:"function"!=typeof m.valueOf&&"function"!=typeof m.toString||isNaN(m)?t.Z:p.Z)(u,m)}},76257:(w,E,s)=>{"use strict";function x(t){return((t=Math.exp(t))+1/t)/2}s.d(E,{Z:()=>p});const p=function t(d,l,h){function f(u,m){var nt,et,C=u[0],L=u[1],I=u[2],F=m[2],B=m[0]-C,Y=m[1]-L,V=B*B+Y*Y;if(V<1e-12)et=Math.log(F/I)/d,nt=function(H){return[C+H*B,L+H*Y,I*Math.exp(d*H*et)]};else{var st=Math.sqrt(V),K=(F*F-I*I+h*V)/(2*I*l*st),X=(F*F-I*I-h*V)/(2*F*l*st),W=Math.log(Math.sqrt(K*K+1)-K),at=Math.log(Math.sqrt(X*X+1)-X);et=(at-W)/d,nt=function(H){var j=H*et,it=x(W),tt=I/(l*st)*(it*function g(t){return((t=Math.exp(2*t))-1)/(t+1)}(d*j+W)-function _(t){return((t=Math.exp(t))-1/t)/2}(W));return[C+tt*B,L+tt*Y,I*it/x(d*j+W)]}}return nt.duration=1e3*et*d/Math.SQRT2,nt}return f.rho=function(u){var m=Math.max(.001,+u),C=m*m;return t(m,C,C*C)},f}(Math.SQRT2,2,4)},38184:(w,E,s)=>{"use strict";s.r(E),s.d(E,{path:()=>d});const c=Math.PI,x=2*c,_=1e-6,g=x-_;function p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new p}p.prototype=t.prototype={constructor:p,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,f,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+f)+","+(this._y1=+u)},bezierCurveTo:function(l,h,f,u,m,C){this._+="C"+ +l+","+ +h+","+ +f+","+ +u+","+(this._x1=+m)+","+(this._y1=+C)},arcTo:function(l,h,f,u,m){var C=this._x1,L=this._y1,I=(f=+f)-(l=+l),R=(u=+u)-(h=+h),M=C-l,F=L-h,B=M*M+F*F;if((m=+m)<0)throw new Error("negative radius: "+m);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(B>_)if(Math.abs(F*I-R*M)>_&&m){var Y=f-C,V=u-L,nt=I*I+R*R,et=Y*Y+V*V,st=Math.sqrt(nt),K=Math.sqrt(B),X=m*Math.tan((c-Math.acos((nt+B-et)/(2*st*K)))/2),W=X/K,at=X/st;Math.abs(W-1)>_&&(this._+="L"+(l+W*M)+","+(h+W*F)),this._+="A"+m+","+m+",0,0,"+ +(F*Y>M*V)+","+(this._x1=l+at*I)+","+(this._y1=h+at*R)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,f,u,m,C){l=+l,h=+h,C=!!C;var L=(f=+f)*Math.cos(u),I=f*Math.sin(u),R=l+L,M=h+I,F=1^C,B=C?u-m:m-u;if(f<0)throw new Error("negative radius: "+f);null===this._x1?this._+="M"+R+","+M:(Math.abs(this._x1-R)>_||Math.abs(this._y1-M)>_)&&(this._+="L"+R+","+M),f&&(B<0&&(B=B%x+x),B>g?this._+="A"+f+","+f+",0,1,"+F+","+(l-L)+","+(h-I)+"A"+f+","+f+",0,1,"+F+","+(this._x1=R)+","+(this._y1=M):B>_&&(this._+="A"+f+","+f+",0,"+ +(B>=c)+","+F+","+(this._x1=l+f*Math.cos(m))+","+(this._y1=h+f*Math.sin(m))))},rect:function(l,h,f,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +f+"v"+ +u+"h"+-f+"Z"},toString:function(){return this._}};const d=t},34638:(w,E,s)=>{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(E,{Z:()=>c})},7500:(w,E,s)=>{"use strict";s.d(E,{Z:()=>p});var c=s(36175),x=s(53517);function _(t){return function(){var d=this.ownerDocument,l=this.namespaceURI;return l===x.P&&d.documentElement.namespaceURI===x.P?d.createElement(t):d.createElementNS(l,t)}}function g(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function p(t){var d=(0,c.Z)(t);return(d.local?g:_)(d)}},68557:(w,E,s)=>{"use strict";s.r(E),s.d(E,{create:()=>_,creator:()=>c.Z,local:()=>p,matcher:()=>d.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>f.Z,pointers:()=>m,select:()=>x.Z,selectAll:()=>I,selection:()=>L.ZP,selector:()=>R.Z,selectorAll:()=>M.Z,style:()=>F.S,window:()=>B.Z});var c=s(7500),x=s(52016);function _(Y){return(0,x.Z)((0,c.Z)(Y).call(document.documentElement))}var g=0;function p(){return new t}function t(){this._="@"+(++g).toString(36)}t.prototype=p.prototype={constructor:t,get:function(Y){for(var V=this._;!(V in Y);)if(!(Y=Y.parentNode))return;return Y[V]},set:function(Y,V){return Y[this._]=V},remove:function(Y){return this._ in Y&&delete Y[this._]},toString:function(){return this._}};var d=s(97905),l=s(36175),h=s(53517),f=s(29132),u=s(75819);function m(Y,V){return Y.target&&(Y=(0,u.Z)(Y),void 0===V&&(V=Y.currentTarget),Y=Y.touches||[Y]),Array.from(Y,nt=>(0,f.Z)(nt,V))}var C=s(34638),L=s(37853);function I(Y){return"string"==typeof Y?new L.Y1([document.querySelectorAll(Y)],[document.documentElement]):new L.Y1([null==Y?[]:(0,C.Z)(Y)],L.Jz)}var R=s(29742),M=s(32037),F=s(24476),B=s(2442)},97905:(w,E,s)=>{"use strict";function c(_){return function(){return this.matches(_)}}function x(_){return function(g){return g.matches(_)}}s.d(E,{P:()=>x,Z:()=>c})},36175:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(53517);function x(_){var g=_+="",p=g.indexOf(":");return p>=0&&"xmlns"!==(g=_.slice(0,p))&&(_=_.slice(p+1)),c.Z.hasOwnProperty(g)?{space:c.Z[g],local:_}:_}},53517:(w,E,s)=>{"use strict";s.d(E,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(75819);function x(_,g){if(_=(0,c.Z)(_),void 0===g&&(g=_.currentTarget),g){var p=g.ownerSVGElement||g;if(p.createSVGPoint){var t=p.createSVGPoint();return t.x=_.clientX,t.y=_.clientY,[(t=t.matrixTransform(g.getScreenCTM().inverse())).x,t.y]}if(g.getBoundingClientRect){var d=g.getBoundingClientRect();return[_.clientX-d.left-g.clientLeft,_.clientY-d.top-g.clientTop]}}return[_.pageX,_.pageY]}},52016:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(37853);function x(_){return"string"==typeof _?new c.Y1([[document.querySelector(_)]],[document.documentElement]):new c.Y1([[_]],c.Jz)}},37853:(w,E,s)=>{"use strict";s.d(E,{Y1:()=>be,ZP:()=>sn,Jz:()=>In});var c=s(29742),_=s(34638),g=s(32037),d=s(97905),l=Array.prototype.find;function f(){return this.firstElementChild}var m=Array.prototype.filter;function C(){return this.children}function M(z){return new Array(z.length)}function B(z,$){this.ownerDocument=z.ownerDocument,this.namespaceURI=z.namespaceURI,this._next=null,this._parent=z,this.__data__=$}function Y(z){return function(){return z}}function V(z,$,ct,A,bt,Dt){for(var Ut,Pt=0,jt=$.length,Ht=Dt.length;Pt$?1:z>=$?0:NaN}B.prototype={constructor:B,appendChild:function(z){return this._parent.insertBefore(z,this._next)},insertBefore:function(z,$){return this._parent.insertBefore(z,$)},querySelector:function(z){return this._parent.querySelector(z)},querySelectorAll:function(z){return this._parent.querySelectorAll(z)}};var Mt=s(36175);function Et(z){return function(){this.removeAttribute(z)}}function Qt(z){return function(){this.removeAttributeNS(z.space,z.local)}}function Nt(z,$){return function(){this.setAttribute(z,$)}}function ft(z,$){return function(){this.setAttributeNS(z.space,z.local,$)}}function dt(z,$){return function(){var ct=$.apply(this,arguments);null==ct?this.removeAttribute(z):this.setAttribute(z,ct)}}function wt(z,$){return function(){var ct=$.apply(this,arguments);null==ct?this.removeAttributeNS(z.space,z.local):this.setAttributeNS(z.space,z.local,ct)}}var le=s(24476);function ie(z){return function(){delete this[z]}}function ue(z,$){return function(){this[z]=$}}function xe(z,$){return function(){var ct=$.apply(this,arguments);null==ct?delete this[z]:this[z]=ct}}function Pe(z){return z.trim().split(/^|\s+/)}function It(z){return z.classList||new $t(z)}function $t(z){this._node=z,this._names=Pe(z.getAttribute("class")||"")}function Vt(z,$){for(var ct=It(z),A=-1,bt=$.length;++A=0&&(this._names.splice($,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(z){return this._names.indexOf(z)>=0}};var Xe=s(7500);function oi(){return null}function fi(){var z=this.parentNode;z&&z.removeChild(this)}function Ei(){var z=this.cloneNode(!1),$=this.parentNode;return $?$.insertBefore(z,this.nextSibling):z}function er(){var z=this.cloneNode(!0),$=this.parentNode;return $?$.insertBefore(z,this.nextSibling):z}function Qi(z){return z.trim().split(/^|\s+/).map(function($){var ct="",A=$.indexOf(".");return A>=0&&(ct=$.slice(A+1),$=$.slice(0,A)),{type:$,name:ct}})}function Ee(z){return function(){var $=this.__on;if($){for(var Dt,ct=0,A=-1,bt=$.length;ct=re&&(re=O+1);!(ye=Lt[re])&&++re=0;)(Pt=A[bt])&&(Dt&&4^Pt.compareDocumentPosition(Dt)&&Dt.parentNode.insertBefore(Pt,Dt),Dt=Pt);return this},sort:function H(z){function $(pt,gt){return pt&>?z(pt.__data__,gt.__data__):!pt-!gt}z||(z=j);for(var ct=this._groups,A=ct.length,bt=new Array(A),Dt=0;Dt1?this.each((null==$?ie:"function"==typeof $?xe:ue)(z,$)):this.node()[z]},classed:function ke(z,$){var ct=Pe(z+"");if(arguments.length<2){for(var A=It(this.node()),bt=-1,Dt=ct.length;++bt{"use strict";s.d(E,{S:()=>t,Z:()=>p});var c=s(2442);function x(d){return function(){this.style.removeProperty(d)}}function _(d,l,h){return function(){this.style.setProperty(d,l,h)}}function g(d,l,h){return function(){var f=l.apply(this,arguments);null==f?this.style.removeProperty(d):this.style.setProperty(d,f,h)}}function p(d,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?g:_)(d,l,h??"")):t(this.node(),d)}function t(d,l){return d.style.getPropertyValue(l)||(0,c.Z)(d).getComputedStyle(d,null).getPropertyValue(l)}},29742:(w,E,s)=>{"use strict";function c(){}function x(_){return null==_?c:function(){return this.querySelector(_)}}s.d(E,{Z:()=>x})},32037:(w,E,s)=>{"use strict";function c(){return[]}function x(_){return null==_?c:function(){return this.querySelectorAll(_)}}s.d(E,{Z:()=>x})},75819:(w,E,s)=>{"use strict";function c(x){let _;for(;_=x.sourceEvent;)x=_;return x}s.d(E,{Z:()=>c})},2442:(w,E,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(E,{Z:()=>c})},73339:(w,E,s)=>{"use strict";s.d(E,{Z:()=>x});var c=s(49194);function x(_,g,p){var t=new c.B7;return t.restart(function(d){t.stop(),_(d+g)},g=null==g?0:+g,p),t}},49194:(w,E,s)=>{"use strict";s.d(E,{B7:()=>L,HT:()=>I,R8:()=>R,zO:()=>m});var p,t,c=0,x=0,_=0,d=0,l=0,h=0,f="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(V){setTimeout(V,17)};function m(){return l||(u(C),l=f.now()+h)}function C(){l=0}function L(){this._call=this._time=this._next=null}function I(V,nt,et){var st=new L;return st.restart(V,nt,et),st}function R(){m(),++c;for(var nt,V=p;V;)(nt=l-V._time)>=0&&V._call.call(null,nt),V=V._next;--c}function M(){l=(d=f.now())+h,c=x=0;try{R()}finally{c=0,function B(){for(var V,et,nt=p,st=1/0;nt;)nt._call?(st>nt._time&&(st=nt._time),V=nt,nt=nt._next):(et=nt._next,nt._next=null,nt=V?V._next=et:p=et);t=V,Y(st)}(),l=0}}function F(){var V=f.now(),nt=V-d;nt>1e3&&(h-=nt,d=V)}function Y(V){c||(x&&(x=clearTimeout(x)),V-l>24?(V<1/0&&(x=setTimeout(M,V-f.now()-h)),_&&(_=clearInterval(_))):(_||(d=f.now(),_=setInterval(F,1e3)),c=1,u(M)))}L.prototype=I.prototype={constructor:L,restart:function(V,nt,et){if("function"!=typeof V)throw new TypeError("callback is not a function");et=(null==et?m():+et)+(null==nt?0:+nt),!this._next&&t!==this&&(t?t._next=this:p=this,t=this),this._call=V,this._time=et,Y()},stop:function(){this._call&&(this._call=null,this._time=1/0,Y())}}},18429:(w,E,s)=>{"use strict";s.r(E),s.d(E,{active:()=>sn,interrupt:()=>B,transition:()=>He});var c=s(37853),x=s(25922),_=s(49194),g=s(73339),p=(0,x.Z)("start","end","cancel","interrupt"),t=[];function L(z,$,ct,A,bt,Dt){var Pt=z.__transition;if(Pt){if(ct in Pt)return}else z.__transition={};!function F(z,$,ct){var bt,A=z.__transition;function Pt(Ht){var J,pt,gt,_t;if(1!==ct.state)return jt();for(J in A)if((_t=A[J]).name===ct.name){if(3===_t.state)return(0,g.Z)(Pt);4===_t.state?(_t.state=6,_t.timer.stop(),_t.on.call("interrupt",z,z.__data__,_t.index,_t.group),delete A[J]):+J<$&&(_t.state=6,_t.timer.stop(),_t.on.call("cancel",z,z.__data__,_t.index,_t.group),delete A[J])}if((0,g.Z)(function(){3===ct.state&&(ct.state=4,ct.timer.restart(Ut,ct.delay,ct.time),Ut(Ht))}),ct.state=2,ct.on.call("start",z,z.__data__,ct.index,ct.group),2===ct.state){for(ct.state=3,bt=new Array(gt=ct.tween.length),J=0,pt=-1;J0)throw new Error("too late; already scheduled");return ct}function R(z,$){var ct=M(z,$);if(ct.state>3)throw new Error("too late; already running");return ct}function M(z,$){var ct=z.__transition;if(!ct||!(ct=ct[$]))throw new Error("transition not found");return ct}function B(z,$){var A,bt,Pt,ct=z.__transition,Dt=!0;if(ct){for(Pt in $=null==$?null:$+"",ct)(A=ct[Pt]).name===$?(bt=A.state>2&&A.state<5,A.state=6,A.timer.stop(),A.on.call(bt?"interrupt":"cancel",z,z.__data__,A.index,A.group),delete ct[Pt]):Dt=!1;Dt&&delete z.__transition}}var V=s(75349),nt=s(36175);function et(z,$){var ct,A;return function(){var bt=R(this,z),Dt=bt.tween;if(Dt!==ct)for(var Pt=0,Ut=(A=ct=Dt).length;Pt=0&&($=$.slice(0,ct)),!$||"start"===$})}($)?I:R;return function(){var Pt=Dt(this,z),Ut=Pt.on;Ut!==A&&(bt=(A=Ut).copy()).on($,ct),Pt.on=bt}}var an=s(29742),un=s(32037),Yt=c.ZP.prototype.constructor,pe=s(24476);function Ve(z){return function(){this.style.removeProperty(z)}}function fi(z,$,ct){return function(A){this.style.setProperty(z,$.call(this,A),ct)}}function mi(z,$,ct){var A,bt;function Dt(){var Pt=$.apply(this,arguments);return Pt!==bt&&(A=(bt=Pt)&&fi(z,Pt,ct)),A}return Dt._value=$,Dt}function gi(z){return function($){this.textContent=z.call(this,$)}}function Qi(z){var $,ct;function A(){var bt=z.apply(this,arguments);return bt!==ct&&($=(ct=bt)&&gi(bt)),$}return A._value=z,A}var ji=0;function On(z,$,ct,A){this._groups=z,this._parents=$,this._name=ct,this._id=A}function He(z){return(0,c.ZP)().transition(z)}function Tn(){return++ji}var Bn=c.ZP.prototype;On.prototype=He.prototype={constructor:On,select:function _e(z){var $=this._name,ct=this._id;"function"!=typeof z&&(z=(0,an.Z)(z));for(var A=this._groups,bt=A.length,Dt=new Array(bt),Pt=0;Pt1&&A.name===$)return new On([[z]],Hn,$,+bt);return null}},46041:(w,E,s)=>{"use strict";s.r(E),s.d(E,{zoom:()=>Y,zoomIdentity:()=>f,zoomTransform:()=>u});var c=s(25922),x=s(56758),_=s(76257),g=s(52016),p=s(29132),t=s(18429);const d=V=>()=>V;function l(V,{sourceEvent:nt,target:et,transform:st,dispatch:K}){Object.defineProperties(this,{type:{value:V,enumerable:!0,configurable:!0},sourceEvent:{value:nt,enumerable:!0,configurable:!0},target:{value:et,enumerable:!0,configurable:!0},transform:{value:st,enumerable:!0,configurable:!0},_:{value:K}})}function h(V,nt,et){this.k=V,this.x=nt,this.y=et}h.prototype={constructor:h,scale:function(V){return 1===V?this:new h(this.k*V,this.x,this.y)},translate:function(V,nt){return 0===V&0===nt?this:new h(this.k,this.x+this.k*V,this.y+this.k*nt)},apply:function(V){return[V[0]*this.k+this.x,V[1]*this.k+this.y]},applyX:function(V){return V*this.k+this.x},applyY:function(V){return V*this.k+this.y},invert:function(V){return[(V[0]-this.x)/this.k,(V[1]-this.y)/this.k]},invertX:function(V){return(V-this.x)/this.k},invertY:function(V){return(V-this.y)/this.k},rescaleX:function(V){return V.copy().domain(V.range().map(this.invertX,this).map(V.invert,V))},rescaleY:function(V){return V.copy().domain(V.range().map(this.invertY,this).map(V.invert,V))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var f=new h(1,0,0);function u(V){for(;!V.__zoom;)if(!(V=V.parentNode))return f;return V.__zoom}function m(V){V.stopImmediatePropagation()}function C(V){V.preventDefault(),V.stopImmediatePropagation()}function L(V){return!(V.ctrlKey&&"wheel"!==V.type||V.button)}function I(){var V=this;return V instanceof SVGElement?(V=V.ownerSVGElement||V).hasAttribute("viewBox")?[[(V=V.viewBox.baseVal).x,V.y],[V.x+V.width,V.y+V.height]]:[[0,0],[V.width.baseVal.value,V.height.baseVal.value]]:[[0,0],[V.clientWidth,V.clientHeight]]}function R(){return this.__zoom||f}function M(V){return-V.deltaY*(1===V.deltaMode?.05:V.deltaMode?1:.002)*(V.ctrlKey?10:1)}function F(){return navigator.maxTouchPoints||"ontouchstart"in this}function B(V,nt,et){var st=V.invertX(nt[0][0])-et[0][0],K=V.invertX(nt[1][0])-et[1][0],X=V.invertY(nt[0][1])-et[0][1],W=V.invertY(nt[1][1])-et[1][1];return V.translate(K>st?(st+K)/2:Math.min(0,st)||Math.max(0,K),W>X?(X+W)/2:Math.min(0,X)||Math.max(0,W))}function Y(){var it,tt,U,V=L,nt=I,et=B,st=M,K=F,X=[0,1/0],W=[[-1/0,-1/0],[1/0,1/0]],at=250,H=_.Z,j=(0,c.Z)("start","zoom","end"),D=500,St=0,Mt=10;function Et(It){It.property("__zoom",R).on("wheel.zoom",le).on("mousedown.zoom",ie).on("dblclick.zoom",ue).filter(K).on("touchstart.zoom",xe).on("touchmove.zoom",Ue).on("touchend.zoom touchcancel.zoom",Pe).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Qt(It,$t){return($t=Math.max(X[0],Math.min(X[1],$t)))===It.k?It:new h($t,It.x,It.y)}function Nt(It,$t,Vt){var Jt=$t[0]-Vt[0]*It.k,me=$t[1]-Vt[1]*It.k;return Jt===It.x&&me===It.y?It:new h(It.k,Jt,me)}function ft(It){return[(+It[0][0]+ +It[1][0])/2,(+It[0][1]+ +It[1][1])/2]}function dt(It,$t,Vt,Jt){It.on("start.zoom",function(){wt(this,arguments).event(Jt).start()}).on("interrupt.zoom end.zoom",function(){wt(this,arguments).event(Jt).end()}).tween("zoom",function(){var me=this,ve=arguments,Se=wt(me,ve).event(Jt),ke=nt.apply(me,ve),Ce=null==Vt?ft(ke):"function"==typeof Vt?Vt.apply(me,ve):Vt,ze=Math.max(ke[1][0]-ke[0][0],ke[1][1]-ke[0][1]),Ge=me.__zoom,an="function"==typeof $t?$t.apply(me,ve):$t,_e=H(Ge.invert(Ce).concat(ze/Ge.k),an.invert(Ce).concat(ze/an.k));return function(un){if(1===un)un=an;else{var Tt=_e(un),Yt=ze/Tt[2];un=new h(Yt,Ce[0]-Tt[0]*Yt,Ce[1]-Tt[1]*Yt)}Se.zoom(null,un)}})}function wt(It,$t,Vt){return!Vt&&It.__zooming||new Zt(It,$t)}function Zt(It,$t){this.that=It,this.args=$t,this.active=0,this.sourceEvent=null,this.extent=nt.apply(It,$t),this.taps=0}function le(It,...$t){if(V.apply(this,arguments)){var Vt=wt(this,$t).event(It),Jt=this.__zoom,me=Math.max(X[0],Math.min(X[1],Jt.k*Math.pow(2,st.apply(this,arguments)))),ve=(0,p.Z)(It);if(Vt.wheel)(Vt.mouse[0][0]!==ve[0]||Vt.mouse[0][1]!==ve[1])&&(Vt.mouse[1]=Jt.invert(Vt.mouse[0]=ve)),clearTimeout(Vt.wheel);else{if(Jt.k===me)return;Vt.mouse=[ve,Jt.invert(ve)],(0,t.interrupt)(this),Vt.start()}C(It),Vt.wheel=setTimeout(Se,150),Vt.zoom("mouse",et(Nt(Qt(Jt,me),Vt.mouse[0],Vt.mouse[1]),Vt.extent,W))}function Se(){Vt.wheel=null,Vt.end()}}function ie(It,...$t){if(!U&&V.apply(this,arguments)){var Vt=wt(this,$t,!0).event(It),Jt=(0,g.Z)(It.view).on("mousemove.zoom",Ce,!0).on("mouseup.zoom",ze,!0),me=(0,p.Z)(It,ve),ve=It.currentTarget,Se=It.clientX,ke=It.clientY;(0,x.Z)(It.view),m(It),Vt.mouse=[me,this.__zoom.invert(me)],(0,t.interrupt)(this),Vt.start()}function Ce(Ge){if(C(Ge),!Vt.moved){var an=Ge.clientX-Se,_e=Ge.clientY-ke;Vt.moved=an*an+_e*_e>St}Vt.event(Ge).zoom("mouse",et(Nt(Vt.that.__zoom,Vt.mouse[0]=(0,p.Z)(Ge,ve),Vt.mouse[1]),Vt.extent,W))}function ze(Ge){Jt.on("mousemove.zoom mouseup.zoom",null),(0,x.D)(Ge.view,Vt.moved),C(Ge),Vt.event(Ge).end()}}function ue(It,...$t){if(V.apply(this,arguments)){var Vt=this.__zoom,Jt=(0,p.Z)(It.changedTouches?It.changedTouches[0]:It,this),me=Vt.invert(Jt),ve=Vt.k*(It.shiftKey?.5:2),Se=et(Nt(Qt(Vt,ve),Jt,me),nt.apply(this,$t),W);C(It),at>0?(0,g.Z)(this).transition().duration(at).call(dt,Se,Jt,It):(0,g.Z)(this).call(Et.transform,Se,Jt,It)}}function xe(It,...$t){if(V.apply(this,arguments)){var ve,Se,ke,Ce,Vt=It.touches,Jt=Vt.length,me=wt(this,$t,It.changedTouches.length===Jt).event(It);for(m(It),Se=0;Se{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,E,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function _(t){var d="greedy"===t.graph().acyclicer?x(t,function l(h){return function(f){return h.edge(f).weight}}(t)):function g(t){var d=[],l={},h={};return c.forEach(t.nodes(),function f(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(m){c.has(l,m.w)?d.push(m):f(m.w)}),delete l[u])}),d}(t);c.forEach(d,function(h){var f=t.edge(h);t.removeEdge(h),f.forwardName=h.name,f.reversed=!0,t.setEdge(h.w,h.v,f,c.uniqueId("rev"))})},undo:function p(t){c.forEach(t.edges(),function(d){var l=t.edge(d);if(l.reversed){t.removeEdge(d);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(d.w,d.v,l,h)}})}}},79999:(w,E,s)=>{var c=s(45760),x=s(11510);function g(p,t,d,l,h,f){var m=h[t][f-1],C=x.addDummyNode(p,"border",{width:0,height:0,rank:f,borderType:t},d);h[t][f]=C,p.setParent(C,l),m&&p.setEdge(m,C,{weight:1})}w.exports=function _(p){c.forEach(p.children(),function t(d){var l=p.children(d),h=p.node(d);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var f=h.minRank,u=h.maxRank+1;f{"use strict";var c=s(45760);function g(f){c.forEach(f.nodes(),function(u){p(f.node(u))}),c.forEach(f.edges(),function(u){p(f.edge(u))})}function p(f){var u=f.width;f.width=f.height,f.height=u}function d(f){f.y=-f.y}function h(f){var u=f.x;f.x=f.y,f.y=u}w.exports={adjust:function x(f){var u=f.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&g(f)},undo:function _(f){var u=f.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(f){c.forEach(f.nodes(),function(u){d(f.node(u))}),c.forEach(f.edges(),function(u){var m=f.edge(u);c.forEach(m.points,d),c.has(m,"y")&&d(m)})}(f),("lr"===u||"rl"===u)&&(function l(f){c.forEach(f.nodes(),function(u){h(f.node(u))}),c.forEach(f.edges(),function(u){var m=f.edge(u);c.forEach(m.points,h),c.has(m,"x")&&h(m)})}(f),g(f))}}},3226:w=>{function E(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,_){if("_next"!==x&&"_prev"!==x)return _}w.exports=E,E.prototype.dequeue=function(){var x=this._sentinel,_=x._prev;if(_!==x)return s(_),_},E.prototype.enqueue=function(x){var _=this._sentinel;x._prev&&x._next&&s(x),x._next=_._next,_._next._prev=x,_._next=x,x._prev=_},E.prototype.toString=function(){for(var x=[],_=this._sentinel,g=_._prev;g!==_;)x.push(JSON.stringify(g,c)),g=g._prev;return"["+x.join(", ")+"]"}},71914:(w,E,s)=>{var c=s(45760),x=s(11510),_=s(36456).Graph;w.exports={debugOrdering:function g(p){var t=x.buildLayerMatrix(p),d=new _({compound:!0,multigraph:!0}).setGraph({});return c.forEach(p.nodes(),function(l){d.setNode(l,{label:l}),d.setParent(l,"layer"+p.node(l).rank)}),c.forEach(p.edges(),function(l){d.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){d.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,m){return d.setEdge(u,m,{style:"invis"}),m})}),d}}},36456:(w,E,s)=>{var c;try{c=s(85510)}catch{}c||(c=window.graphlib),w.exports=c},67365:(w,E,s)=>{var c=s(45760),x=s(36456).Graph,_=s(3226);w.exports=function p(f,u){if(f.nodeCount()<=1)return[];var m=function l(f,u){var m=new x,C=0,L=0;c.forEach(f.nodes(),function(M){m.setNode(M,{v:M,in:0,out:0})}),c.forEach(f.edges(),function(M){var F=m.edge(M.v,M.w)||0,B=u(M);m.setEdge(M.v,M.w,F+B),L=Math.max(L,m.node(M.v).out+=B),C=Math.max(C,m.node(M.w).in+=B)});var I=c.range(L+C+3).map(function(){return new _}),R=C+1;return c.forEach(m.nodes(),function(M){h(I,R,m.node(M))}),{graph:m,buckets:I,zeroIdx:R}}(f,u||g),C=function t(f,u,m){for(var R,C=[],L=u[u.length-1],I=u[0];f.nodeCount();){for(;R=I.dequeue();)d(f,u,m,R);for(;R=L.dequeue();)d(f,u,m,R);if(f.nodeCount())for(var M=u.length-2;M>0;--M)if(R=u[M].dequeue()){C=C.concat(d(f,u,m,R,!0));break}}return C}(m.graph,m.buckets,m.zeroIdx);return c.flatten(c.map(C,function(L){return f.outEdges(L.v,L.w)}),!0)};var g=c.constant(1);function d(f,u,m,C,L){var I=L?[]:void 0;return c.forEach(f.inEdges(C.v),function(R){var M=f.edge(R),F=f.node(R.v);L&&I.push({v:R.v,w:R.w}),F.out-=M,h(u,m,F)}),c.forEach(f.outEdges(C.v),function(R){var M=f.edge(R),B=f.node(R.w);B.in-=M,h(u,m,B)}),f.removeNode(C.v),I}function h(f,u,m){m.out?m.in?f[m.out-m.in+u].enqueue(m):f[f.length-1].enqueue(m):f[0].enqueue(m)}},14850:(w,E,s)=>{"use strict";var c=s(45760),x=s(12234),_=s(91496),g=s(94124),p=s(11510).normalizeRanks,t=s(60162),d=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),f=s(83870),u=s(32974),m=s(78226),C=s(11510),L=s(36456).Graph;w.exports=function I(ft,dt){var wt=dt&&dt.debugTiming?C.time:C.notime;wt("layout",function(){var Zt=wt(" buildLayoutGraph",function(){return function X(ft){var dt=new L({multigraph:!0,compound:!0}),wt=Nt(ft.graph());return dt.setGraph(c.merge({},B,Qt(wt,F),c.pick(wt,Y))),c.forEach(ft.nodes(),function(Zt){var le=Nt(ft.node(Zt));dt.setNode(Zt,c.defaults(Qt(le,V),nt)),dt.setParent(Zt,ft.parent(Zt))}),c.forEach(ft.edges(),function(Zt){var le=Nt(ft.edge(Zt));dt.setEdge(Zt,c.merge({},st,Qt(le,et),c.pick(le,K)))}),dt}(ft)});wt(" runLayout",function(){!function R(ft,dt){dt(" makeSpaceForEdgeLabels",function(){!function W(ft){var dt=ft.graph();dt.ranksep/=2,c.forEach(ft.edges(),function(wt){var Zt=ft.edge(wt);Zt.minlen*=2,"c"!==Zt.labelpos.toLowerCase()&&("TB"===dt.rankdir||"BT"===dt.rankdir?Zt.width+=Zt.labeloffset:Zt.height+=Zt.labeloffset)})}(ft)}),dt(" removeSelfEdges",function(){!function St(ft){c.forEach(ft.edges(),function(dt){if(dt.v===dt.w){var wt=ft.node(dt.v);wt.selfEdges||(wt.selfEdges=[]),wt.selfEdges.push({e:dt,label:ft.edge(dt)}),ft.removeEdge(dt)}})}(ft)}),dt(" acyclic",function(){x.run(ft)}),dt(" nestingGraph.run",function(){l.run(ft)}),dt(" rank",function(){g(C.asNonCompoundGraph(ft))}),dt(" injectEdgeLabelProxies",function(){!function at(ft){c.forEach(ft.edges(),function(dt){var wt=ft.edge(dt);if(wt.width&&wt.height){var Zt=ft.node(dt.v),le=ft.node(dt.w);C.addDummyNode(ft,"edge-proxy",{rank:(le.rank-Zt.rank)/2+Zt.rank,e:dt},"_ep")}})}(ft)}),dt(" removeEmptyRanks",function(){d(ft)}),dt(" nestingGraph.cleanup",function(){l.cleanup(ft)}),dt(" normalizeRanks",function(){p(ft)}),dt(" assignRankMinMax",function(){!function H(ft){var dt=0;c.forEach(ft.nodes(),function(wt){var Zt=ft.node(wt);Zt.borderTop&&(Zt.minRank=ft.node(Zt.borderTop).rank,Zt.maxRank=ft.node(Zt.borderBottom).rank,dt=c.max(dt,Zt.maxRank))}),ft.graph().maxRank=dt}(ft)}),dt(" removeEdgeLabelProxies",function(){!function j(ft){c.forEach(ft.nodes(),function(dt){var wt=ft.node(dt);"edge-proxy"===wt.dummy&&(ft.edge(wt.e).labelRank=wt.rank,ft.removeNode(dt))})}(ft)}),dt(" normalize.run",function(){_.run(ft)}),dt(" parentDummyChains",function(){t(ft)}),dt(" addBorderSegments",function(){h(ft)}),dt(" order",function(){u(ft)}),dt(" insertSelfEdges",function(){!function Mt(ft){var dt=C.buildLayerMatrix(ft);c.forEach(dt,function(wt){var Zt=0;c.forEach(wt,function(le,ie){var ue=ft.node(le);ue.order=ie+Zt,c.forEach(ue.selfEdges,function(xe){C.addDummyNode(ft,"selfedge",{width:xe.label.width,height:xe.label.height,rank:ue.rank,order:ie+ ++Zt,e:xe.e,label:xe.label},"_se")}),delete ue.selfEdges})})}(ft)}),dt(" adjustCoordinateSystem",function(){f.adjust(ft)}),dt(" position",function(){m(ft)}),dt(" positionSelfEdges",function(){!function Et(ft){c.forEach(ft.nodes(),function(dt){var wt=ft.node(dt);if("selfedge"===wt.dummy){var Zt=ft.node(wt.e.v),le=Zt.x+Zt.width/2,ie=Zt.y,ue=wt.x-le,xe=Zt.height/2;ft.setEdge(wt.e,wt.label),ft.removeNode(dt),wt.label.points=[{x:le+2*ue/3,y:ie-xe},{x:le+5*ue/6,y:ie-xe},{x:le+ue,y:ie},{x:le+5*ue/6,y:ie+xe},{x:le+2*ue/3,y:ie+xe}],wt.label.x=wt.x,wt.label.y=wt.y}})}(ft)}),dt(" removeBorderNodes",function(){!function mt(ft){c.forEach(ft.nodes(),function(dt){if(ft.children(dt).length){var wt=ft.node(dt),Zt=ft.node(wt.borderTop),le=ft.node(wt.borderBottom),ie=ft.node(c.last(wt.borderLeft)),ue=ft.node(c.last(wt.borderRight));wt.width=Math.abs(ue.x-ie.x),wt.height=Math.abs(le.y-Zt.y),wt.x=ie.x+wt.width/2,wt.y=Zt.y+wt.height/2}}),c.forEach(ft.nodes(),function(dt){"border"===ft.node(dt).dummy&&ft.removeNode(dt)})}(ft)}),dt(" normalize.undo",function(){_.undo(ft)}),dt(" fixupEdgeLabelCoords",function(){!function U(ft){c.forEach(ft.edges(),function(dt){var wt=ft.edge(dt);if(c.has(wt,"x"))switch(("l"===wt.labelpos||"r"===wt.labelpos)&&(wt.width-=wt.labeloffset),wt.labelpos){case"l":wt.x-=wt.width/2+wt.labeloffset;break;case"r":wt.x+=wt.width/2+wt.labeloffset}})}(ft)}),dt(" undoCoordinateSystem",function(){f.undo(ft)}),dt(" translateGraph",function(){!function it(ft){var dt=Number.POSITIVE_INFINITY,wt=0,Zt=Number.POSITIVE_INFINITY,le=0,ie=ft.graph(),ue=ie.marginx||0,xe=ie.marginy||0;function Ue(Pe){var It=Pe.x,$t=Pe.y,Vt=Pe.width,Jt=Pe.height;dt=Math.min(dt,It-Vt/2),wt=Math.max(wt,It+Vt/2),Zt=Math.min(Zt,$t-Jt/2),le=Math.max(le,$t+Jt/2)}c.forEach(ft.nodes(),function(Pe){Ue(ft.node(Pe))}),c.forEach(ft.edges(),function(Pe){var It=ft.edge(Pe);c.has(It,"x")&&Ue(It)}),dt-=ue,Zt-=xe,c.forEach(ft.nodes(),function(Pe){var It=ft.node(Pe);It.x-=dt,It.y-=Zt}),c.forEach(ft.edges(),function(Pe){var It=ft.edge(Pe);c.forEach(It.points,function($t){$t.x-=dt,$t.y-=Zt}),c.has(It,"x")&&(It.x-=dt),c.has(It,"y")&&(It.y-=Zt)}),ie.width=wt-dt+ue,ie.height=le-Zt+xe}(ft)}),dt(" assignNodeIntersects",function(){!function tt(ft){c.forEach(ft.edges(),function(dt){var ie,ue,wt=ft.edge(dt),Zt=ft.node(dt.v),le=ft.node(dt.w);wt.points?(ie=wt.points[0],ue=wt.points[wt.points.length-1]):(wt.points=[],ie=le,ue=Zt),wt.points.unshift(C.intersectRect(Zt,ie)),wt.points.push(C.intersectRect(le,ue))})}(ft)}),dt(" reversePoints",function(){!function D(ft){c.forEach(ft.edges(),function(dt){var wt=ft.edge(dt);wt.reversed&&wt.points.reverse()})}(ft)}),dt(" acyclic.undo",function(){x.undo(ft)})}(Zt,wt)}),wt(" updateInputGraph",function(){!function M(ft,dt){c.forEach(ft.nodes(),function(wt){var Zt=ft.node(wt),le=dt.node(wt);Zt&&(Zt.x=le.x,Zt.y=le.y,dt.children(wt).length&&(Zt.width=le.width,Zt.height=le.height))}),c.forEach(ft.edges(),function(wt){var Zt=ft.edge(wt),le=dt.edge(wt);Zt.points=le.points,c.has(le,"x")&&(Zt.x=le.x,Zt.y=le.y)}),ft.graph().width=dt.graph().width,ft.graph().height=dt.graph().height}(ft,Zt)})})};var F=["nodesep","edgesep","ranksep","marginx","marginy"],B={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Y=["acyclicer","ranker","rankdir","align"],V=["width","height"],nt={width:0,height:0},et=["minlen","weight","width","height","labeloffset"],st={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];function Qt(ft,dt){return c.mapValues(c.pick(ft,dt),Number)}function Nt(ft){var dt={};return c.forEach(ft,function(wt,Zt){dt[Zt.toLowerCase()]=wt}),dt}},45760:(w,E,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch{}c||(c=window._),w.exports=c},1230:(w,E,s)=>{var c=s(45760),x=s(11510);function g(l,h,f,u,m,C,L){var I=l.children(L);if(I.length){var R=x.addBorderNode(l,"_bt"),M=x.addBorderNode(l,"_bb"),F=l.node(L);l.setParent(R,L),F.borderTop=R,l.setParent(M,L),F.borderBottom=M,c.forEach(I,function(B){g(l,h,f,u,m,C,B);var Y=l.node(B),V=Y.borderTop?Y.borderTop:B,nt=Y.borderBottom?Y.borderBottom:B,et=Y.borderTop?u:2*u,st=V!==nt?1:m-C[L]+1;l.setEdge(R,V,{weight:et,minlen:st,nestingEdge:!0}),l.setEdge(nt,M,{weight:et,minlen:st,nestingEdge:!0})}),l.parent(L)||l.setEdge(h,R,{weight:0,minlen:m+C[L]})}else L!==h&&l.setEdge(h,L,{weight:0,minlen:f})}w.exports={run:function _(l){var h=x.addDummyNode(l,"root",{},"_root"),f=function p(l){var h={};function f(u,m){var C=l.children(u);C&&C.length&&c.forEach(C,function(L){f(L,m+1)}),h[u]=m}return c.forEach(l.children(),function(u){f(u,1)}),h}(l),u=c.max(c.values(f))-1,m=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(L){l.edge(L).minlen*=m});var C=function t(l){return c.reduce(l.edges(),function(h,f){return h+l.edge(f).weight},0)}(l)+1;c.forEach(l.children(),function(L){g(l,h,m,C,u,f,L)}),l.graph().nodeRankFactor=m},cleanup:function d(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(f){l.edge(f).nestingEdge&&l.removeEdge(f)})}}},91496:(w,E,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function _(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(d){!function g(t,d){var l=d.v,h=t.node(l).rank,f=d.w,u=t.node(f).rank,m=d.name,C=t.edge(d),L=C.labelRank;if(u!==h+1){var I,R,M;for(t.removeEdge(d),M=0,++h;h{var c=s(45760);w.exports=function x(_,g,p){var d,t={};c.forEach(p,function(l){for(var f,u,h=_.parent(l);h;){if((f=_.parent(h))?(u=t[f],t[f]=h):(u=d,d=h),u&&u!==h)return void g.setEdge(u,h);h=f}})}},81323:(w,E,s)=>{var c=s(45760);w.exports=function x(_,g){return c.map(g,function(p){var t=_.inEdges(p);if(t.length){var d=c.reduce(t,function(l,h){var f=_.edge(h),u=_.node(h.v);return{sum:l.sum+f.weight*u.order,weight:l.weight+f.weight}},{sum:0,weight:0});return{v:p,barycenter:d.sum/d.weight,weight:d.weight}}return{v:p}})}},1686:(w,E,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function _(p,t,d){var l=function g(p){for(var t;p.hasNode(t=c.uniqueId("_root")););return t}(p),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(f){return p.node(f)});return c.forEach(p.nodes(),function(f){var u=p.node(f),m=p.parent(f);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(f),h.setParent(f,m||l),c.forEach(p[d](f),function(C){var L=C.v===f?C.w:C.v,I=h.edge(L,f),R=c.isUndefined(I)?0:I.weight;h.setEdge(L,f,{weight:p.edge(C).weight+R})}),c.has(u,"minRank")&&h.setNode(f,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,E,s)=>{"use strict";var c=s(45760);function _(g,p,t){for(var d=c.zipObject(t,c.map(t,function(C,L){return L})),l=c.flatten(c.map(p,function(C){return c.sortBy(c.map(g.outEdges(C),function(L){return{pos:d[L.w],weight:g.edge(L).weight}}),"pos")}),!0),h=1;h0;)L%2&&(I+=u[L+1]),u[L=L-1>>1]+=C.weight;m+=C.weight*I})),m}w.exports=function x(g,p){for(var t=0,d=1;d{"use strict";var c=s(45760),x=s(49402),_=s(18796),g=s(61057),p=s(1686),t=s(33034),d=s(36456).Graph,l=s(11510);function f(C,L,I){return c.map(L,function(R){return p(C,R,I)})}function u(C,L){var I=new d;c.forEach(C,function(R){var M=R.graph().root,F=g(R,M,I,L);c.forEach(F.vs,function(B,Y){R.node(B).order=Y}),t(R,I,F.vs)})}function m(C,L){c.forEach(L,function(I){c.forEach(I,function(R,M){C.node(R).order=M})})}w.exports=function h(C){var L=l.maxRank(C),I=f(C,c.range(1,L+1),"inEdges"),R=f(C,c.range(L-1,-1,-1),"outEdges"),M=x(C);m(C,M);for(var B,F=Number.POSITIVE_INFINITY,Y=0,V=0;V<4;++Y,++V){u(Y%2?I:R,Y%4>=2),M=l.buildLayerMatrix(C);var nt=_(C,M);nt{"use strict";var c=s(45760);w.exports=function x(_){var g={},p=c.filter(_.nodes(),function(f){return!_.children(f).length}),t=c.max(c.map(p,function(f){return _.node(f).rank})),d=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(p,function(f){return _.node(f).rank});return c.forEach(h,function l(f){if(!c.has(g,f)){g[f]=!0;var u=_.node(f);d[u.rank].push(f),c.forEach(_.successors(f),l)}}),d}},83826:(w,E,s)=>{"use strict";var c=s(45760);w.exports=function x(p,t){var d={};return c.forEach(p,function(h,f){var u=d[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:f};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var f=d[h.v],u=d[h.w];!c.isUndefined(f)&&!c.isUndefined(u)&&(u.indegree++,f.out.push(d[h.w]))}),function _(p){var t=[];function d(f){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(f.barycenter)||u.barycenter>=f.barycenter)&&function g(p,t){var d=0,l=0;p.weight&&(d+=p.barycenter*p.weight,l+=p.weight),t.weight&&(d+=t.barycenter*t.weight,l+=t.weight),p.vs=t.vs.concat(p.vs),p.barycenter=d/l,p.weight=l,p.i=Math.min(t.i,p.i),t.merged=!0}(f,u)}}function l(f){return function(u){u.in.push(f),0==--u.indegree&&p.push(u)}}for(;p.length;){var h=p.pop();t.push(h),c.forEach(h.in.reverse(),d(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(f){return!f.merged}),function(f){return c.pick(f,["vs","i","barycenter","weight"])})}(c.filter(d,function(h){return!h.indegree}))}},61057:(w,E,s)=>{var c=s(45760),x=s(81323),_=s(83826),g=s(93803);w.exports=function p(l,h,f,u){var m=l.children(h),C=l.node(h),L=C?C.borderLeft:void 0,I=C?C.borderRight:void 0,R={};L&&(m=c.filter(m,function(nt){return nt!==L&&nt!==I}));var M=x(l,m);c.forEach(M,function(nt){if(l.children(nt.v).length){var et=p(l,nt.v,f,u);R[nt.v]=et,c.has(et,"barycenter")&&function d(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(nt,et)}});var F=_(M,f);!function t(l,h){c.forEach(l,function(f){f.vs=c.flatten(f.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(F,R);var B=g(F,u);if(L&&(B.vs=c.flatten([L,B.vs,I],!0),l.predecessors(L).length)){var Y=l.node(l.predecessors(L)[0]),V=l.node(l.predecessors(I)[0]);c.has(B,"barycenter")||(B.barycenter=0,B.weight=0),B.barycenter=(B.barycenter*B.weight+Y.order+V.order)/(B.weight+2),B.weight+=2}return B}},93803:(w,E,s)=>{var c=s(45760),x=s(11510);function g(t,d,l){for(var h;d.length&&(h=c.last(d)).i<=l;)d.pop(),t.push(h.vs),l++;return l}w.exports=function _(t,d){var l=x.partition(t,function(R){return c.has(R,"barycenter")}),h=l.lhs,f=c.sortBy(l.rhs,function(R){return-R.i}),u=[],m=0,C=0,L=0;h.sort(function p(t){return function(d,l){return d.barycenterl.barycenter?1:t?l.i-d.i:d.i-l.i}}(!!d)),L=g(u,f,L),c.forEach(h,function(R){L+=R.vs.length,u.push(R.vs),m+=R.barycenter*R.weight,C+=R.weight,L=g(u,f,L)});var I={vs:c.flatten(u,!0)};return C&&(I.barycenter=m/C,I.weight=C),I}},60162:(w,E,s)=>{var c=s(45760);w.exports=function x(p){var t=function g(p){var t={},d=0;return c.forEach(p.children(),function l(h){var f=d;c.forEach(p.children(h),l),t[h]={low:f,lim:d++}}),t}(p);c.forEach(p.graph().dummyChains,function(d){for(var l=p.node(d),h=l.edgeObj,f=function _(p,t,d,l){var C,L,h=[],f=[],u=Math.min(t[d].low,t[l].low),m=Math.max(t[d].lim,t[l].lim);C=d;do{C=p.parent(C),h.push(C)}while(C&&(t[C].low>u||m>t[C].lim));for(L=C,C=l;(C=p.parent(C))!==L;)f.push(C);return{path:h.concat(f.reverse()),lca:L}}(p,t,h.v,h.w),u=f.path,m=f.lca,C=0,L=u[C],I=!0;d!==h.w;){if(l=p.node(d),I){for(;(L=u[C])!==m&&p.node(L).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,_=s(11510);function g(F,B){var Y={};return c.reduce(B,function V(nt,et){var st=0,K=0,X=nt.length,W=c.last(et);return c.forEach(et,function(at,H){var j=function t(F,B){if(F.node(B).dummy)return c.find(F.predecessors(B),function(Y){return F.node(Y).dummy})}(F,at),it=j?F.node(j).order:X;(j||at===W)&&(c.forEach(et.slice(K,H+1),function(tt){c.forEach(F.predecessors(tt),function(U){var D=F.node(U),mt=D.order;(mtW)&&d(Y,j,at)})})}return c.reduce(B,function nt(et,st){var X,K=-1,W=0;return c.forEach(st,function(at,H){if("border"===F.node(at).dummy){var j=F.predecessors(at);j.length&&(X=F.node(j[0]).order,V(st,W,H,K,X),W=H,K=X)}V(st,W,st.length,X,et.length)}),st}),Y}function d(F,B,Y){if(B>Y){var V=B;B=Y,Y=V}var nt=F[B];nt||(F[B]=nt={}),nt[Y]=!0}function l(F,B,Y){if(B>Y){var V=B;B=Y,Y=V}return c.has(F[B],Y)}function h(F,B,Y,V){var nt={},et={},st={};return c.forEach(B,function(K){c.forEach(K,function(X,W){nt[X]=X,et[X]=X,st[X]=W})}),c.forEach(B,function(K){var X=-1;c.forEach(K,function(W){var at=V(W);if(at.length)for(var H=((at=c.sortBy(at,function(U){return st[U]})).length-1)/2,j=Math.floor(H),it=Math.ceil(H);j<=it;++j){var tt=at[j];et[W]===W&&X{"use strict";var c=s(45760),x=s(11510),_=s(54058).positionX;w.exports=function g(t){(function p(t){var d=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(d,function(f){var u=c.max(c.map(f,function(m){return t.node(m).height}));c.forEach(f,function(m){t.node(m).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(_(t),function(d,l){t.node(l).x=d})}},96632:(w,E,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,_=s(1916).slack;function p(l,h){return c.forEach(l.nodes(),function f(u){c.forEach(h.nodeEdges(u),function(m){var C=m.v,L=u===C?m.w:C;!l.hasNode(L)&&!_(h,m)&&(l.setNode(L,{}),l.setEdge(u,L,{}),f(L))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(f){if(l.hasNode(f.v)!==l.hasNode(f.w))return _(h,f)})}function d(l,h,f){c.forEach(l.nodes(),function(u){h.node(u).rank+=f})}w.exports=function g(l){var m,C,h=new x({directed:!1}),f=l.nodes()[0],u=l.nodeCount();for(h.setNode(f,{});p(h,l){"use strict";var x=s(1916).longestPath,_=s(96632),g=s(63804);w.exports=function p(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){g(h)}(h);break;case"tight-tree":!function d(h){x(h),_(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,E,s)=>{"use strict";var c=s(45760),x=s(96632),_=s(1916).slack,g=s(1916).longestPath,p=s(36456).alg.preorder,t=s(36456).alg.postorder,d=s(11510).simplify;function l(Y){Y=d(Y),g(Y);var nt,V=x(Y);for(m(V),h(V,Y);nt=L(V);)R(V,Y,nt,I(V,Y,nt))}function h(Y,V){var nt=t(Y,Y.nodes());nt=nt.slice(0,nt.length-1),c.forEach(nt,function(et){!function f(Y,V,nt){var et=Y.node(nt);Y.edge(nt,et.parent).cutvalue=u(Y,V,nt)}(Y,V,et)})}function u(Y,V,nt){var st=Y.node(nt).parent,K=!0,X=V.edge(nt,st),W=0;return X||(K=!1,X=V.edge(st,nt)),W=X.weight,c.forEach(V.nodeEdges(nt),function(at){var H=at.v===nt,j=H?at.w:at.v;if(j!==st){var it=H===K,tt=V.edge(at).weight;if(W+=it?tt:-tt,function F(Y,V,nt){return Y.hasEdge(V,nt)}(Y,nt,j)){var U=Y.edge(nt,j).cutvalue;W+=it?-U:U}}}),W}function m(Y,V){arguments.length<2&&(V=Y.nodes()[0]),C(Y,{},1,V)}function C(Y,V,nt,et,st){var K=nt,X=Y.node(et);return V[et]=!0,c.forEach(Y.neighbors(et),function(W){c.has(V,W)||(nt=C(Y,V,nt,W,et))}),X.low=K,X.lim=nt++,st?X.parent=st:delete X.parent,nt}function L(Y){return c.find(Y.edges(),function(V){return Y.edge(V).cutvalue<0})}function I(Y,V,nt){var et=nt.v,st=nt.w;V.hasEdge(et,st)||(et=nt.w,st=nt.v);var K=Y.node(et),X=Y.node(st),W=K,at=!1;K.lim>X.lim&&(W=X,at=!0);var H=c.filter(V.edges(),function(j){return at===B(0,Y.node(j.v),W)&&at!==B(0,Y.node(j.w),W)});return c.minBy(H,function(j){return _(V,j)})}function R(Y,V,nt,et){Y.removeEdge(nt.v,nt.w),Y.setEdge(et.v,et.w,{}),m(Y),h(Y,V),function M(Y,V){var nt=c.find(Y.nodes(),function(st){return!V.node(st).parent}),et=p(Y,nt);et=et.slice(1),c.forEach(et,function(st){var K=Y.node(st).parent,X=V.edge(st,K),W=!1;X||(X=V.edge(K,st),W=!0),V.node(st).rank=V.node(K).rank+(W?X.minlen:-X.minlen)})}(Y,V)}function B(Y,V,nt){return nt.low<=V.lim&&V.lim<=nt.lim}w.exports=l,l.initLowLimValues=m,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=L,l.enterEdge=I,l.exchangeEdges=R},1916:(w,E,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(g){var p={};c.forEach(g.sources(),function t(d){var l=g.node(d);if(c.has(p,d))return l.rank;p[d]=!0;var h=c.min(c.map(g.outEdges(d),function(f){return t(f.w)-g.edge(f).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function _(g,p){return g.node(p.w).rank-g.node(p.v).rank-g.edge(p).minlen}}},11510:(w,E,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function _(M,F,B,Y){var V;do{V=c.uniqueId(Y)}while(M.hasNode(V));return B.dummy=F,M.setNode(V,B),V}function C(M){return c.max(c.map(M.nodes(),function(F){var B=M.node(F).rank;if(!c.isUndefined(B))return B}))}w.exports={addDummyNode:_,simplify:function g(M){var F=(new x).setGraph(M.graph());return c.forEach(M.nodes(),function(B){F.setNode(B,M.node(B))}),c.forEach(M.edges(),function(B){var Y=F.edge(B.v,B.w)||{weight:0,minlen:1},V=M.edge(B);F.setEdge(B.v,B.w,{weight:Y.weight+V.weight,minlen:Math.max(Y.minlen,V.minlen)})}),F},asNonCompoundGraph:function p(M){var F=new x({multigraph:M.isMultigraph()}).setGraph(M.graph());return c.forEach(M.nodes(),function(B){M.children(B).length||F.setNode(B,M.node(B))}),c.forEach(M.edges(),function(B){F.setEdge(B,M.edge(B))}),F},successorWeights:function t(M){var F=c.map(M.nodes(),function(B){var Y={};return c.forEach(M.outEdges(B),function(V){Y[V.w]=(Y[V.w]||0)+M.edge(V).weight}),Y});return c.zipObject(M.nodes(),F)},predecessorWeights:function d(M){var F=c.map(M.nodes(),function(B){var Y={};return c.forEach(M.inEdges(B),function(V){Y[V.v]=(Y[V.v]||0)+M.edge(V).weight}),Y});return c.zipObject(M.nodes(),F)},intersectRect:function l(M,F){var K,X,B=M.x,Y=M.y,V=F.x-B,nt=F.y-Y,et=M.width/2,st=M.height/2;if(!V&&!nt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(nt)*et>Math.abs(V)*st?(nt<0&&(st=-st),K=st*V/nt,X=st):(V<0&&(et=-et),K=et,X=et*nt/V),{x:B+K,y:Y+X}},buildLayerMatrix:function h(M){var F=c.map(c.range(C(M)+1),function(){return[]});return c.forEach(M.nodes(),function(B){var Y=M.node(B),V=Y.rank;c.isUndefined(V)||(F[V][Y.order]=B)}),F},normalizeRanks:function f(M){var F=c.min(c.map(M.nodes(),function(B){return M.node(B).rank}));c.forEach(M.nodes(),function(B){var Y=M.node(B);c.has(Y,"rank")&&(Y.rank-=F)})},removeEmptyRanks:function u(M){var F=c.min(c.map(M.nodes(),function(nt){return M.node(nt).rank})),B=[];c.forEach(M.nodes(),function(nt){var et=M.node(nt).rank-F;B[et]||(B[et]=[]),B[et].push(nt)});var Y=0,V=M.graph().nodeRankFactor;c.forEach(B,function(nt,et){c.isUndefined(nt)&&et%V!=0?--Y:Y&&c.forEach(nt,function(st){M.node(st).rank+=Y})})},addBorderNode:function m(M,F,B,Y){var V={width:0,height:0};return arguments.length>=4&&(V.rank=B,V.order=Y),_(M,"border",V,F)},maxRank:C,partition:function L(M,F){var B={lhs:[],rhs:[]};return c.forEach(M,function(Y){F(Y)?B.lhs.push(Y):B.rhs.push(Y)}),B},time:function I(M,F){var B=c.now();try{return F()}finally{console.log(M+" time: "+(c.now()-B)+"ms")}},notime:function R(M,F){return F()}}},28126:w=>{w.exports="0.8.5"},85510:(w,E,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,E,s)=>{var c=s(79138);w.exports=function x(_){var t,g={},p=[];function d(l){c.has(g,l)||(g[l]=!0,t.push(l),c.each(_.successors(l),d),c.each(_.predecessors(l),d))}return c.each(_.nodes(),function(l){t=[],d(l),t.length&&p.push(t)}),p}},22163:(w,E,s)=>{var c=s(79138);function _(g,p,t,d,l,h){c.has(d,p)||(d[p]=!0,t||h.push(p),c.each(l(p),function(f){_(g,f,t,d,l,h)}),t&&h.push(p))}w.exports=function x(g,p,t){c.isArray(p)||(p=[p]);var d=(g.isDirected()?g.successors:g.neighbors).bind(g),l=[],h={};return c.each(p,function(f){if(!g.hasNode(f))throw new Error("Graph does not have node: "+f);_(g,f,"post"===t,h,d,l)}),l}},25668:(w,E,s)=>{var c=s(61718),x=s(79138);w.exports=function _(g,p,t){return x.transform(g.nodes(),function(d,l){d[l]=c(g,l,p,t)},{})}},61718:(w,E,s)=>{var c=s(79138),x=s(31919);w.exports=function g(t,d,l,h){return function p(t,d,l,h){var m,C,f={},u=new x,L=function(I){var R=I.v!==m?I.v:I.w,M=f[R],F=l(I),B=C.distance+F;if(F<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+I+" Weight: "+F);B0&&(m=u.removeMin(),(C=f[m]).distance!==Number.POSITIVE_INFINITY);)h(m).forEach(L);return f}(t,String(d),l||_,h||function(f){return t.outEdges(f)})};var _=c.constant(1)},9611:(w,E,s)=>{var c=s(79138),x=s(73585);w.exports=function _(g){return c.filter(x(g),function(p){return p.length>1||1===p.length&&g.hasEdge(p[0],p[0])})}},22881:(w,E,s)=>{var c=s(79138);w.exports=function _(p,t,d){return function g(p,t,d){var l={},h=p.nodes();return h.forEach(function(f){l[f]={},l[f][f]={distance:0},h.forEach(function(u){f!==u&&(l[f][u]={distance:Number.POSITIVE_INFINITY})}),d(f).forEach(function(u){var m=u.v===f?u.w:u.v,C=t(u);l[f][m]={distance:C,predecessor:f}})}),h.forEach(function(f){var u=l[f];h.forEach(function(m){var C=l[m];h.forEach(function(L){var R=u[L],M=C[L],F=C[f].distance+R.distance;F{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,E,s)=>{var c=s(52180);w.exports=function x(_){try{c(_)}catch(g){if(g instanceof c.CycleException)return!1;throw g}return!0}},46694:(w,E,s)=>{var c=s(22163);w.exports=function x(_,g){return c(_,g,"post")}},5330:(w,E,s)=>{var c=s(22163);w.exports=function x(_,g){return c(_,g,"pre")}},46823:(w,E,s)=>{var c=s(79138),x=s(66568),_=s(31919);w.exports=function g(p,t){var f,d=new x,l={},h=new _;function u(C){var L=C.v===f?C.w:C.v,I=h.priority(L);if(void 0!==I){var R=t(C);R0;){if(f=h.removeMin(),c.has(l,f))d.setEdge(f,l[f]);else{if(m)throw new Error("Input graph is not connected: "+p);m=!0}p.nodeEdges(f).forEach(u)}return d}},73585:(w,E,s)=>{var c=s(79138);w.exports=function x(_){var g=0,p=[],t={},d=[];function l(h){var f=t[h]={onStack:!0,lowlink:g,index:g++};if(p.push(h),_.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(f.lowlink=Math.min(f.lowlink,t[C].index)):(l(C),f.lowlink=Math.min(f.lowlink,t[C].lowlink))}),f.lowlink===f.index){var m,u=[];do{m=p.pop(),t[m].onStack=!1,u.push(m)}while(h!==m);d.push(u)}}return _.nodes().forEach(function(h){c.has(t,h)||l(h)}),d}},52180:(w,E,s)=>{var c=s(79138);function x(g){var p={},t={},d=[];if(c.each(g.sinks(),function l(h){if(c.has(t,h))throw new _;c.has(p,h)||(t[h]=!0,p[h]=!0,c.each(g.predecessors(h),l),delete t[h],d.push(h))}),c.size(p)!==g.nodeCount())throw new _;return d}function _(){}w.exports=x,x.CycleException=_,_.prototype=new Error},31919:(w,E,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(_){return _.key})},x.prototype.has=function(_){return c.has(this._keyIndices,_)},x.prototype.priority=function(_){var g=this._keyIndices[_];if(void 0!==g)return this._arr[g].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(_,g){var p=this._keyIndices;if(_=String(_),!c.has(p,_)){var t=this._arr,d=t.length;return p[_]=d,t.push({key:_,priority:g}),this._decrease(d),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var _=this._arr.pop();return delete this._keyIndices[_.key],this._heapify(0),_.key},x.prototype.decrease=function(_,g){var p=this._keyIndices[_];if(g>this._arr[p].priority)throw new Error("New priority is greater than current priority. Key: "+_+" Old: "+this._arr[p].priority+" New: "+g);this._arr[p].priority=g,this._decrease(p)},x.prototype._heapify=function(_){var g=this._arr,p=2*_,t=p+1,d=_;p>1].priority{"use strict";var c=s(79138);w.exports=p;var _="\0";function p(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[_]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,m){u[m]?u[m]++:u[m]=1}function d(u,m){--u[m]||delete u[m]}function l(u,m,C,L){var I=""+m,R=""+C;if(!u&&I>R){var M=I;I=R,R=M}return I+"\x01"+R+"\x01"+(c.isUndefined(L)?"\0":L)}function h(u,m,C,L){var I=""+m,R=""+C;if(!u&&I>R){var M=I;I=R,R=M}var F={v:I,w:R};return L&&(F.name=L),F}function f(u,m){return l(u,m.v,m.w,m.name)}p.prototype._nodeCount=0,p.prototype._edgeCount=0,p.prototype.isDirected=function(){return this._isDirected},p.prototype.isMultigraph=function(){return this._isMultigraph},p.prototype.isCompound=function(){return this._isCompound},p.prototype.setGraph=function(u){return this._label=u,this},p.prototype.graph=function(){return this._label},p.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},p.prototype.nodeCount=function(){return this._nodeCount},p.prototype.nodes=function(){return c.keys(this._nodes)},p.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(m){return c.isEmpty(u._in[m])})},p.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(m){return c.isEmpty(u._out[m])})},p.prototype.setNodes=function(u,m){var C=arguments,L=this;return c.each(u,function(I){C.length>1?L.setNode(I,m):L.setNode(I)}),this},p.prototype.setNode=function(u,m){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=m),this):(this._nodes[u]=arguments.length>1?m:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=_,this._children[u]={},this._children[_][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},p.prototype.node=function(u){return this._nodes[u]},p.prototype.hasNode=function(u){return c.has(this._nodes,u)},p.prototype.removeNode=function(u){var m=this;if(c.has(this._nodes,u)){var C=function(L){m.removeEdge(m._edgeObjs[L])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(L){m.setParent(L)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},p.prototype.setParent=function(u,m){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(m))m=_;else{for(var C=m+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+m+" as parent of "+u+" would create a cycle");this.setNode(m)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=m,this._children[m][u]=!0,this},p.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},p.prototype.parent=function(u){if(this._isCompound){var m=this._parent[u];if(m!==_)return m}},p.prototype.children=function(u){if(c.isUndefined(u)&&(u=_),this._isCompound){var m=this._children[u];if(m)return c.keys(m)}else{if(u===_)return this.nodes();if(this.hasNode(u))return[]}},p.prototype.predecessors=function(u){var m=this._preds[u];if(m)return c.keys(m)},p.prototype.successors=function(u){var m=this._sucs[u];if(m)return c.keys(m)},p.prototype.neighbors=function(u){var m=this.predecessors(u);if(m)return c.union(m,this.successors(u))},p.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},p.prototype.filterNodes=function(u){var m=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});m.setGraph(this.graph());var C=this;c.each(this._nodes,function(R,M){u(M)&&m.setNode(M,R)}),c.each(this._edgeObjs,function(R){m.hasNode(R.v)&&m.hasNode(R.w)&&m.setEdge(R,C.edge(R))});var L={};function I(R){var M=C.parent(R);return void 0===M||m.hasNode(M)?(L[R]=M,M):M in L?L[M]:I(M)}return this._isCompound&&c.each(m.nodes(),function(R){m.setParent(R,I(R))}),m},p.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},p.prototype.edgeCount=function(){return this._edgeCount},p.prototype.edges=function(){return c.values(this._edgeObjs)},p.prototype.setPath=function(u,m){var C=this,L=arguments;return c.reduce(u,function(I,R){return L.length>1?C.setEdge(I,R,m):C.setEdge(I,R),R}),this},p.prototype.setEdge=function(){var u,m,C,L,I=!1,R=arguments[0];"object"==typeof R&&null!==R&&"v"in R?(u=R.v,m=R.w,C=R.name,2===arguments.length&&(L=arguments[1],I=!0)):(u=R,m=arguments[1],C=arguments[3],arguments.length>2&&(L=arguments[2],I=!0)),u=""+u,m=""+m,c.isUndefined(C)||(C=""+C);var M=l(this._isDirected,u,m,C);if(c.has(this._edgeLabels,M))return I&&(this._edgeLabels[M]=L),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(m),this._edgeLabels[M]=I?L:this._defaultEdgeLabelFn(u,m,C);var F=h(this._isDirected,u,m,C);return u=F.v,m=F.w,Object.freeze(F),this._edgeObjs[M]=F,t(this._preds[m],u),t(this._sucs[u],m),this._in[m][M]=F,this._out[u][M]=F,this._edgeCount++,this},p.prototype.edge=function(u,m,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,m,C);return this._edgeLabels[L]},p.prototype.hasEdge=function(u,m,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,m,C);return c.has(this._edgeLabels,L)},p.prototype.removeEdge=function(u,m,C){var L=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,u,m,C),I=this._edgeObjs[L];return I&&(u=I.v,m=I.w,delete this._edgeLabels[L],delete this._edgeObjs[L],d(this._preds[m],u),d(this._sucs[u],m),delete this._in[m][L],delete this._out[u][L],this._edgeCount--),this},p.prototype.inEdges=function(u,m){var C=this._in[u];if(C){var L=c.values(C);return m?c.filter(L,function(I){return I.v===m}):L}},p.prototype.outEdges=function(u,m){var C=this._out[u];if(C){var L=c.values(C);return m?c.filter(L,function(I){return I.w===m}):L}},p.prototype.nodeEdges=function(u,m){var C=this.inEdges(u,m);if(C)return C.concat(this.outEdges(u,m))}},51838:(w,E,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,E,s)=>{var c=s(79138),x=s(66568);function g(d){return c.map(d.nodes(),function(l){var h=d.node(l),f=d.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(f)||(u.parent=f),u})}function p(d){return c.map(d.edges(),function(l){var h=d.edge(l),f={v:l.v,w:l.w};return c.isUndefined(l.name)||(f.name=l.name),c.isUndefined(h)||(f.value=h),f})}w.exports={write:function _(d){var l={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:g(d),edges:p(d)};return c.isUndefined(d.graph())||(l.value=c.clone(d.graph())),l},read:function t(d){var l=new x(d.options).setGraph(d.value);return c.each(d.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(d.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,E,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch{}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var E=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(f){if(void 0===f)return"undefined";if(null===f)return"null";var u=typeof f;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function p(h,f){return"GeneratorFunction"===s(h)}(f)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(f))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(f))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(f){if(-1!==f.message.indexOf("callee"))return!0}return!1}(f))return"arguments";if(function _(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(f))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(f))return"error";if(function g(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(f))return"regexp";switch(s(f)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(f))return"generator";switch(u=E.call(f)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,E,s)=>{var _=s(53436)(s(12119),"DataView");w.exports=_},54994:(w,E,s)=>{var c=s(64312),x=s(46421),_=s(15764),g=s(18685),p=s(26676);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var c=s(41840),x=s(34378),_=s(54981),g=s(67343),p=s(98895);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Map");w.exports=_},99850:(w,E,s)=>{var c=s(10638),x=s(11184),_=s(70866),g=s(43771),p=s(51772);function t(d){var l=-1,h=null==d?0:d.length;for(this.clear();++l{var _=s(53436)(s(12119),"Promise");w.exports=_},46323:(w,E,s)=>{var _=s(53436)(s(12119),"Set");w.exports=_},58849:(w,E,s)=>{var c=s(99850),x=s(4600),_=s(31387);function g(p){var t=-1,d=null==p?0:p.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),_=s(64410),g=s(45576),p=s(22247),t=s(41585);function d(l){var h=this.__data__=new c(l);this.size=h.size}d.prototype.clear=x,d.prototype.delete=_,d.prototype.get=g,d.prototype.has=p,d.prototype.set=t,w.exports=d},60443:(w,E,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,E,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,E,s)=>{var _=s(53436)(s(12119),"WeakMap");w.exports=_},26999:w=>{w.exports=function E(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length;++x<_&&!1!==c(s[x],x,s););return s}},69779:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length,g=0,p=[];++x<_;){var t=s[x];c(t,x,s)&&(p[g++]=t)}return p}},61253:(w,E,s)=>{var c=s(14164);w.exports=function x(_,g){return!(null==_||!_.length)&&c(_,g,0)>-1}},37609:w=>{w.exports=function E(s,c,x){for(var _=-1,g=null==s?0:s.length;++_{var c=s(85334),x=s(77151),_=s(21503),g=s(80891),p=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(f,u){var m=_(f),C=!m&&x(f),L=!m&&!C&&g(f),I=!m&&!C&&!L&&t(f),R=m||C||L||I,M=R?c(f.length,String):[],F=M.length;for(var B in f)(u||l.call(f,B))&&(!R||!("length"==B||L&&("offset"==B||"parent"==B)||I&&("buffer"==B||"byteLength"==B||"byteOffset"==B)||p(B,F)))&&M.push(B);return M}},84633:w=>{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length,g=Array(_);++x<_;)g[x]=c(s[x],x,s);return g}},85059:w=>{w.exports=function E(s,c){for(var x=-1,_=c.length,g=s.length;++x<_;)s[g+x]=c[x];return s}},8745:w=>{w.exports=function E(s,c,x,_){var g=-1,p=null==s?0:s.length;for(_&&p&&(x=s[++g]);++g{w.exports=function E(s,c){for(var x=-1,_=null==s?0:s.length;++x<_;)if(c(s[x],x,s))return!0;return!1}},75481:(w,E,s)=>{var x=s(11847)("length");w.exports=x},49276:(w,E,s)=>{var c=s(85683),x=s(20217);w.exports=function _(g,p,t){(void 0!==t&&!x(g[p],t)||void 0===t&&!(p in g))&&c(g,p,t)}},89719:(w,E,s)=>{var c=s(85683),x=s(20217),g=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l){var h=t[d];(!g.call(t,d)||!x(h,l)||void 0===l&&!(d in t))&&c(t,d,l)}},43503:(w,E,s)=>{var c=s(20217);w.exports=function x(_,g){for(var p=_.length;p--;)if(c(_[p][0],g))return p;return-1}},94121:(w,E,s)=>{var c=s(31989),x=s(118);w.exports=function _(g,p){return g&&c(p,x(p),g)}},99287:(w,E,s)=>{var c=s(31989),x=s(16555);w.exports=function _(g,p){return g&&c(p,x(p),g)}},85683:(w,E,s)=>{var c=s(56713);w.exports=function x(_,g,p){"__proto__"==g&&c?c(_,g,{configurable:!0,enumerable:!0,value:p,writable:!0}):_[g]=p}},44462:(w,E,s)=>{var c=s(2858),x=s(96837),_=s(89719),g=s(94121),p=s(99287),t=s(19292),d=s(99454),l=s(84444),h=s(59905),f=s(47597),u=s(6967),m=s(28794),C=s(76782),L=s(37878),I=s(4264),R=s(21503),M=s(80891),F=s(13222),B=s(25940),Y=s(90799),V=s(118),nt=s(16555),X="[object Arguments]",it="[object Function]",mt="[object Object]",$t={};$t[X]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object DataView]"]=$t["[object Boolean]"]=$t["[object Date]"]=$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Map]"]=$t["[object Number]"]=$t[mt]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object Symbol]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Error]"]=$t[it]=$t["[object WeakMap]"]=!1,w.exports=function Vt(Jt,me,ve,Se,ke,Ce){var ze,Ge=1&me,an=2&me,_e=4&me;if(ve&&(ze=ke?ve(Jt,Se,ke,Ce):ve(Jt)),void 0!==ze)return ze;if(!B(Jt))return Jt;var un=R(Jt);if(un){if(ze=C(Jt),!Ge)return d(Jt,ze)}else{var Tt=m(Jt),Yt=Tt==it||"[object GeneratorFunction]"==Tt;if(M(Jt))return t(Jt,Ge);if(Tt==mt||Tt==X||Yt&&!ke){if(ze=an||Yt?{}:I(Jt),!Ge)return an?h(Jt,p(ze,Jt)):l(Jt,g(ze,Jt))}else{if(!$t[Tt])return ke?Jt:{};ze=L(Jt,Tt,Ge)}}Ce||(Ce=new c);var se=Ce.get(Jt);if(se)return se;Ce.set(Jt,ze),Y(Jt)?Jt.forEach(function(Ve){ze.add(Vt(Ve,me,ve,Ve,Jt,Ce))}):F(Jt)&&Jt.forEach(function(Ve,Xe){ze.set(Xe,Vt(Ve,me,ve,Xe,Jt,Ce))});var qt=un?void 0:(_e?an?u:f:an?nt:V)(Jt);return x(qt||Jt,function(Ve,Xe){qt&&(Ve=Jt[Xe=Ve]),_(ze,Xe,Vt(Ve,me,ve,Xe,Jt,Ce))}),ze}},78858:(w,E,s)=>{var c=s(25940),x=Object.create,_=function(){function g(){}return function(p){if(!c(p))return{};if(x)return x(p);g.prototype=p;var t=new g;return g.prototype=void 0,t}}();w.exports=_},43132:(w,E,s)=>{var c=s(45184),_=s(16539)(c);w.exports=_},67308:(w,E,s)=>{var c=s(44129);w.exports=function x(_,g,p){for(var t=-1,d=_.length;++t{var c=s(43132);w.exports=function x(_,g){var p=[];return c(_,function(t,d,l){g(t,d,l)&&p.push(t)}),p}},65317:w=>{w.exports=function E(s,c,x,_){for(var g=s.length,p=x+(_?1:-1);_?p--:++p{var c=s(85059),x=s(75039);w.exports=function _(g,p,t,d,l){var h=-1,f=g.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?p>1?_(u,p-1,t,d,l):c(l,u):d||(l[l.length]=u)}return l}},30755:(w,E,s)=>{var x=s(40456)();w.exports=x},45184:(w,E,s)=>{var c=s(30755),x=s(118);w.exports=function _(g,p){return g&&c(g,p,x)}},15456:(w,E,s)=>{var c=s(65456),x=s(68533);w.exports=function _(g,p){for(var t=0,d=(p=c(p,g)).length;null!=g&&t{var c=s(85059),x=s(21503);w.exports=function _(g,p,t){var d=p(g);return x(g)?d:c(d,t(g))}},93337:(w,E,s)=>{var c=s(60443),x=s(21318),_=s(92902),t=c?c.toStringTag:void 0;w.exports=function d(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):_(l)}},31100:w=>{w.exports=function E(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,_){return null!=x&&s.call(x,_)}},69989:w=>{w.exports=function E(s,c){return null!=s&&c in Object(s)}},14164:(w,E,s)=>{var c=s(65317),x=s(70968),_=s(24977);w.exports=function g(p,t,d){return t==t?_(p,t,d):c(p,x,d)}},60186:(w,E,s)=>{var c=s(93337),x=s(72671);w.exports=function g(p){return x(p)&&"[object Arguments]"==c(p)}},85740:(w,E,s)=>{var c=s(58325),x=s(72671);w.exports=function _(g,p,t,d,l){return g===p||(null==g||null==p||!x(g)&&!x(p)?g!=g&&p!=p:c(g,p,t,d,_,l))}},58325:(w,E,s)=>{var c=s(2858),x=s(63914),_=s(78583),g=s(32286),p=s(28794),t=s(21503),d=s(80891),l=s(48159),f="[object Arguments]",u="[object Array]",m="[object Object]",L=Object.prototype.hasOwnProperty;w.exports=function I(R,M,F,B,Y,V){var nt=t(R),et=t(M),st=nt?u:p(R),K=et?u:p(M),X=(st=st==f?m:st)==m,W=(K=K==f?m:K)==m,at=st==K;if(at&&d(R)){if(!d(M))return!1;nt=!0,X=!1}if(at&&!X)return V||(V=new c),nt||l(R)?x(R,M,F,B,Y,V):_(R,M,st,F,B,Y,V);if(!(1&F)){var H=X&&L.call(R,"__wrapped__"),j=W&&L.call(M,"__wrapped__");if(H||j){var it=H?R.value():R,tt=j?M.value():M;return V||(V=new c),Y(it,tt,F,B,V)}}return!!at&&(V||(V=new c),g(R,M,F,B,Y,V))}},97021:(w,E,s)=>{var c=s(28794),x=s(72671);w.exports=function g(p){return x(p)&&"[object Map]"==c(p)}},40431:(w,E,s)=>{var c=s(2858),x=s(85740);w.exports=function p(t,d,l,h){var f=l.length,u=f,m=!h;if(null==t)return!u;for(t=Object(t);f--;){var C=l[f];if(m&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++f{w.exports=function E(s){return s!=s}},37304:(w,E,s)=>{var c=s(75946),x=s(91943),_=s(25940),g=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function m(C){return!(!_(C)||x(C))&&(c(C)?u:t).test(g(C))}},771:(w,E,s)=>{var c=s(28794),x=s(72671);w.exports=function g(p){return x(p)&&"[object Set]"==c(p)}},1083:(w,E,s)=>{var c=s(93337),x=s(96231),_=s(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function H(j){return _(j)&&x(j.length)&&!!at[c(j)]}},96517:(w,E,s)=>{var c=s(98133),x=s(9458),_=s(32608),g=s(21503),p=s(87495);w.exports=function t(d){return"function"==typeof d?d:null==d?_:"object"==typeof d?g(d)?x(d[0],d[1]):c(d):p(d)}},81172:(w,E,s)=>{var c=s(45488),x=s(85491),g=Object.prototype.hasOwnProperty;w.exports=function p(t){if(!c(t))return x(t);var d=[];for(var l in Object(t))g.call(t,l)&&"constructor"!=l&&d.push(l);return d}},92809:(w,E,s)=>{var c=s(25940),x=s(45488),_=s(32158),p=Object.prototype.hasOwnProperty;w.exports=function t(d){if(!c(d))return _(d);var l=x(d),h=[];for(var f in d)"constructor"==f&&(l||!p.call(d,f))||h.push(f);return h}},99069:w=>{w.exports=function E(s,c){return s{var c=s(43132),x=s(56507);w.exports=function _(g,p){var t=-1,d=x(g)?Array(g.length):[];return c(g,function(l,h,f){d[++t]=p(l,h,f)}),d}},98133:(w,E,s)=>{var c=s(40431),x=s(22379),_=s(642);w.exports=function g(p){var t=x(p);return 1==t.length&&t[0][2]?_(t[0][0],t[0][1]):function(d){return d===p||c(d,p,t)}}},9458:(w,E,s)=>{var c=s(85740),x=s(8817),_=s(11172),g=s(45352),p=s(22442),t=s(642),d=s(68533);w.exports=function f(u,m){return g(u)&&p(m)?t(d(u),m):function(C){var L=x(C,u);return void 0===L&&L===m?_(C,u):c(m,L,3)}}},73842:(w,E,s)=>{var c=s(2858),x=s(49276),_=s(30755),g=s(33675),p=s(25940),t=s(16555),d=s(99351);w.exports=function l(h,f,u,m,C){h!==f&&_(f,function(L,I){if(C||(C=new c),p(L))g(h,f,I,u,l,m,C);else{var R=m?m(d(h,I),L,I+"",h,f,C):void 0;void 0===R&&(R=L),x(h,I,R)}},t)}},33675:(w,E,s)=>{var c=s(49276),x=s(19292),_=s(65208),g=s(99454),p=s(4264),t=s(77151),d=s(21503),l=s(92377),h=s(80891),f=s(75946),u=s(25940),m=s(97614),C=s(48159),L=s(99351),I=s(8067);w.exports=function R(M,F,B,Y,V,nt,et){var st=L(M,B),K=L(F,B),X=et.get(K);if(X)c(M,B,X);else{var W=nt?nt(st,K,B+"",M,F,et):void 0,at=void 0===W;if(at){var H=d(K),j=!H&&h(K),it=!H&&!j&&C(K);W=K,H||j||it?d(st)?W=st:l(st)?W=g(st):j?(at=!1,W=x(K,!0)):it?(at=!1,W=_(K,!0)):W=[]:m(K)||t(K)?(W=st,t(st)?W=I(st):(!u(st)||f(st))&&(W=p(K))):at=!1}at&&(et.set(K,W),V(W,K,Y,nt,et),et.delete(K)),c(M,B,W)}}},6119:(w,E,s)=>{var c=s(84633),x=s(15456),_=s(96517),g=s(92046),p=s(42061),t=s(85647),d=s(41215),l=s(32608),h=s(21503);w.exports=function f(u,m,C){m=m.length?c(m,function(R){return h(R)?function(M){return x(M,1===R.length?R[0]:R)}:R}):[l];var L=-1;m=c(m,t(_));var I=g(u,function(R,M,F){return{criteria:c(m,function(Y){return Y(R)}),index:++L,value:R}});return p(I,function(R,M){return d(R,M,C)})}},83021:(w,E,s)=>{var c=s(95495),x=s(11172);w.exports=function _(g,p){return c(g,p,function(t,d){return x(g,d)})}},95495:(w,E,s)=>{var c=s(15456),x=s(55963),_=s(65456);w.exports=function g(p,t,d){for(var l=-1,h=t.length,f={};++l{w.exports=function E(s){return function(c){return c?.[s]}}},39222:(w,E,s)=>{var c=s(15456);w.exports=function x(_){return function(g){return c(g,_)}}},16307:w=>{var E=Math.ceil,s=Math.max;w.exports=function c(x,_,g,p){for(var t=-1,d=s(E((_-x)/(g||1)),0),l=Array(d);d--;)l[p?d:++t]=x,x+=g;return l}},13570:w=>{w.exports=function E(s,c,x,_,g){return g(s,function(p,t,d){x=_?(_=!1,p):c(x,p,t,d)}),x}},23269:(w,E,s)=>{var c=s(32608),x=s(53983),_=s(72185);w.exports=function g(p,t){return _(x(p,t,c),p+"")}},55963:(w,E,s)=>{var c=s(89719),x=s(65456),_=s(58442),g=s(25940),p=s(68533);w.exports=function t(d,l,h,f){if(!g(d))return d;for(var u=-1,m=(l=x(l,d)).length,C=m-1,L=d;null!=L&&++u{var c=s(76684),x=s(56713),_=s(32608);w.exports=x?function(p,t){return x(p,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:_},42061:w=>{w.exports=function E(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function E(s,c){for(var x=-1,_=Array(s);++x{var c=s(60443),x=s(84633),_=s(21503),g=s(44129),t=c?c.prototype:void 0,d=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(_(h))return x(h,l)+"";if(g(h))return d?d.call(h):"";var f=h+"";return"0"==f&&1/h==-1/0?"-0":f}},83348:(w,E,s)=>{var c=s(42760),x=/^\s+/;w.exports=function _(g){return g&&g.slice(0,c(g)+1).replace(x,"")}},85647:w=>{w.exports=function E(s){return function(c){return s(c)}}},80707:(w,E,s)=>{var c=s(58849),x=s(61253),_=s(37609),g=s(25972),p=s(14575),t=s(24174);w.exports=function l(h,f,u){var m=-1,C=x,L=h.length,I=!0,R=[],M=R;if(u)I=!1,C=_;else if(L>=200){var F=f?null:p(h);if(F)return t(F);I=!1,C=g,M=new c}else M=f?[]:R;t:for(;++m{var c=s(84633);w.exports=function x(_,g){return c(g,function(p){return _[p]})}},38645:w=>{w.exports=function E(s,c,x){for(var _=-1,g=s.length,p=c.length,t={};++_{w.exports=function E(s,c){return s.has(c)}},21481:(w,E,s)=>{var c=s(32608);w.exports=function x(_){return"function"==typeof _?_:c}},65456:(w,E,s)=>{var c=s(21503),x=s(45352),_=s(32855),g=s(73943);w.exports=function p(t,d){return c(t)?t:x(t,d)?[t]:_(g(t))}},43362:(w,E,s)=>{var c=s(73457);w.exports=function x(_){var g=new _.constructor(_.byteLength);return new c(g).set(new c(_)),g}},19292:(w,E,s)=>{w=s.nmd(w);var c=s(12119),x=E&&!E.nodeType&&E,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x?c.Buffer:void 0,t=p?p.allocUnsafe:void 0;w.exports=function d(l,h){if(h)return l.slice();var f=l.length,u=t?t(f):new l.constructor(f);return l.copy(u),u}},17e3:(w,E,s)=>{var c=s(43362);w.exports=function x(_,g){var p=g?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.byteLength)}},74098:w=>{var E=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,E.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,E,s)=>{var c=s(60443),x=c?c.prototype:void 0,_=x?x.valueOf:void 0;w.exports=function g(p){return _?Object(_.call(p)):{}}},65208:(w,E,s)=>{var c=s(43362);w.exports=function x(_,g){var p=g?c(_.buffer):_.buffer;return new _.constructor(p,_.byteOffset,_.length)}},13443:(w,E,s)=>{var c=s(44129);w.exports=function x(_,g){if(_!==g){var p=void 0!==_,t=null===_,d=_==_,l=c(_),h=void 0!==g,f=null===g,u=g==g,m=c(g);if(!f&&!m&&!l&&_>g||l&&h&&u&&!f&&!m||t&&h&&u||!p&&u||!d)return 1;if(!t&&!l&&!m&&_{var c=s(13443);w.exports=function x(_,g,p){for(var t=-1,d=_.criteria,l=g.criteria,h=d.length,f=p.length;++t=f?u:u*("desc"==p[t]?-1:1)}return _.index-g.index}},99454:w=>{w.exports=function E(s,c){var x=-1,_=s.length;for(c||(c=Array(_));++x<_;)c[x]=s[x];return c}},31989:(w,E,s)=>{var c=s(89719),x=s(85683);w.exports=function _(g,p,t,d){var l=!t;t||(t={});for(var h=-1,f=p.length;++h{var c=s(31989),x=s(39383);w.exports=function _(g,p){return c(g,x(g),p)}},59905:(w,E,s)=>{var c=s(31989),x=s(53051);w.exports=function _(g,p){return c(g,x(g),p)}},24610:(w,E,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,E,s)=>{var c=s(23269),x=s(93342);w.exports=function _(g){return c(function(p,t){var d=-1,l=t.length,h=l>1?t[l-1]:void 0,f=l>2?t[2]:void 0;for(h=g.length>3&&"function"==typeof h?(l--,h):void 0,f&&x(t[0],t[1],f)&&(h=l<3?void 0:h,l=1),p=Object(p);++d{var c=s(56507);w.exports=function x(_,g){return function(p,t){if(null==p)return p;if(!c(p))return _(p,t);for(var d=p.length,l=g?d:-1,h=Object(p);(g?l--:++l{w.exports=function E(s){return function(c,x,_){for(var g=-1,p=Object(c),t=_(c),d=t.length;d--;){var l=t[s?d:++g];if(!1===x(p[l],l,p))break}return c}}},24653:(w,E,s)=>{var c=s(96517),x=s(56507),_=s(118);w.exports=function g(p){return function(t,d,l){var h=Object(t);if(!x(t)){var f=c(d,3);t=_(t),d=function(m){return f(h[m],m,h)}}var u=p(t,d,l);return u>-1?h[f?t[u]:u]:void 0}}},97509:(w,E,s)=>{var c=s(16307),x=s(93342),_=s(12232);w.exports=function g(p){return function(t,d,l){return l&&"number"!=typeof l&&x(t,d,l)&&(d=l=void 0),t=_(t),void 0===d?(d=t,t=0):d=_(d),l=void 0===l?t{var c=s(46323),x=s(12552),_=s(24174),p=c&&1/_(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=p},56713:(w,E,s)=>{var c=s(53436),x=function(){try{var _=c(Object,"defineProperty");return _({},"",{}),_}catch{}}();w.exports=x},63914:(w,E,s)=>{var c=s(58849),x=s(79503),_=s(25972);w.exports=function t(d,l,h,f,u,m){var C=1&h,L=d.length,I=l.length;if(L!=I&&!(C&&I>L))return!1;var R=m.get(d),M=m.get(l);if(R&&M)return R==l&&M==d;var F=-1,B=!0,Y=2&h?new c:void 0;for(m.set(d,l),m.set(l,d);++F{var c=s(60443),x=s(73457),_=s(20217),g=s(63914),p=s(83205),t=s(24174),Y=c?c.prototype:void 0,V=Y?Y.valueOf:void 0;w.exports=function nt(et,st,K,X,W,at,H){switch(K){case"[object DataView]":if(et.byteLength!=st.byteLength||et.byteOffset!=st.byteOffset)return!1;et=et.buffer,st=st.buffer;case"[object ArrayBuffer]":return!(et.byteLength!=st.byteLength||!at(new x(et),new x(st)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _(+et,+st);case"[object Error]":return et.name==st.name&&et.message==st.message;case"[object RegExp]":case"[object String]":return et==st+"";case"[object Map]":var j=p;case"[object Set]":if(j||(j=t),et.size!=st.size&&!(1&X))return!1;var tt=H.get(et);if(tt)return tt==st;X|=2,H.set(et,st);var U=g(j(et),j(st),X,W,at,H);return H.delete(et),U;case"[object Symbol]":if(V)return V.call(et)==V.call(st)}return!1}},32286:(w,E,s)=>{var c=s(47597),g=Object.prototype.hasOwnProperty;w.exports=function p(t,d,l,h,f,u){var m=1&l,C=c(t),L=C.length;if(L!=c(d).length&&!m)return!1;for(var M=L;M--;){var F=C[M];if(!(m?F in d:g.call(d,F)))return!1}var B=u.get(t),Y=u.get(d);if(B&&Y)return B==d&&Y==t;var V=!0;u.set(t,d),u.set(d,t);for(var nt=m;++M{var c=s(22274),x=s(53983),_=s(72185);w.exports=function g(p){return _(x(p,void 0,c),p+"")}},79122:w=>{var E="object"==typeof global&&global&&global.Object===Object&&global;w.exports=E},47597:(w,E,s)=>{var c=s(38247),x=s(39383),_=s(118);w.exports=function g(p){return c(p,_,x)}},6967:(w,E,s)=>{var c=s(38247),x=s(53051),_=s(16555);w.exports=function g(p){return c(p,_,x)}},54537:(w,E,s)=>{var c=s(23819);w.exports=function x(_,g){var p=_.__data__;return c(g)?p["string"==typeof g?"string":"hash"]:p.map}},22379:(w,E,s)=>{var c=s(22442),x=s(118);w.exports=function _(g){for(var p=x(g),t=p.length;t--;){var d=p[t],l=g[d];p[t]=[d,l,c(l)]}return p}},53436:(w,E,s)=>{var c=s(37304),x=s(51990);w.exports=function _(g,p){var t=x(g,p);return c(t)?t:void 0}},29519:(w,E,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,E,s)=>{var c=s(60443),x=Object.prototype,_=x.hasOwnProperty,g=x.toString,p=c?c.toStringTag:void 0;w.exports=function t(d){var l=_.call(d,p),h=d[p];try{d[p]=void 0;var f=!0}catch{}var u=g.call(d);return f&&(l?d[p]=h:delete d[p]),u}},39383:(w,E,s)=>{var c=s(69779),x=s(49975),g=Object.prototype.propertyIsEnumerable,p=Object.getOwnPropertySymbols;w.exports=p?function(d){return null==d?[]:(d=Object(d),c(p(d),function(l){return g.call(d,l)}))}:x},53051:(w,E,s)=>{var c=s(85059),x=s(29519),_=s(39383),g=s(49975);w.exports=Object.getOwnPropertySymbols?function(d){for(var l=[];d;)c(l,_(d)),d=x(d);return l}:g},28794:(w,E,s)=>{var c=s(37244),x=s(51501),_=s(44267),g=s(46323),p=s(24243),t=s(93337),d=s(52827),l="[object Map]",f="[object Promise]",u="[object Set]",m="[object WeakMap]",C="[object DataView]",L=d(c),I=d(x),R=d(_),M=d(g),F=d(p),B=t;(c&&B(new c(new ArrayBuffer(1)))!=C||x&&B(new x)!=l||_&&B(_.resolve())!=f||g&&B(new g)!=u||p&&B(new p)!=m)&&(B=function(Y){var V=t(Y),nt="[object Object]"==V?Y.constructor:void 0,et=nt?d(nt):"";if(et)switch(et){case L:return C;case I:return l;case R:return f;case M:return u;case F:return m}return V}),w.exports=B},51990:w=>{w.exports=function E(s,c){return s?.[c]}},47283:(w,E,s)=>{var c=s(65456),x=s(77151),_=s(21503),g=s(58442),p=s(96231),t=s(68533);w.exports=function d(l,h,f){for(var u=-1,m=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function d(l){return t.test(l)}},64312:(w,E,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function E(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,E,s)=>{var c=s(60862),g=Object.prototype.hasOwnProperty;w.exports=function p(t){var d=this.__data__;if(c){var l=d[t];return"__lodash_hash_undefined__"===l?void 0:l}return g.call(d,t)?d[t]:void 0}},18685:(w,E,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function g(p){var t=this.__data__;return c?void 0!==t[p]:_.call(t,p)}},26676:(w,E,s)=>{var c=s(60862);w.exports=function _(g,p){var t=this.__data__;return this.size+=this.has(g)?0:1,t[g]=c&&void 0===p?"__lodash_hash_undefined__":p,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var _=x.length,g=new x.constructor(_);return _&&"string"==typeof x[0]&&s.call(x,"index")&&(g.index=x.index,g.input=x.input),g}},37878:(w,E,s)=>{var c=s(43362),x=s(17e3),_=s(74098),g=s(62533),p=s(65208);w.exports=function K(X,W,at){var H=X.constructor;switch(W){case"[object ArrayBuffer]":return c(X);case"[object Boolean]":case"[object Date]":return new H(+X);case"[object DataView]":return x(X,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return p(X,at);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(X);case"[object RegExp]":return _(X);case"[object Symbol]":return g(X)}}},4264:(w,E,s)=>{var c=s(78858),x=s(29519),_=s(45488);w.exports=function g(p){return"function"!=typeof p.constructor||_(p)?{}:c(x(p))}},75039:(w,E,s)=>{var c=s(60443),x=s(77151),_=s(21503),g=c?c.isConcatSpreadable:void 0;w.exports=function p(t){return _(t)||x(t)||!!(g&&t&&t[g])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,_){var g=typeof x;return!!(_=_??9007199254740991)&&("number"==g||"symbol"!=g&&s.test(x))&&x>-1&&x%1==0&&x<_}},93342:(w,E,s)=>{var c=s(20217),x=s(56507),_=s(58442),g=s(25940);w.exports=function p(t,d,l){if(!g(l))return!1;var h=typeof d;return!!("number"==h?x(l)&&_(d,l.length):"string"==h&&d in l)&&c(l[d],t)}},45352:(w,E,s)=>{var c=s(21503),x=s(44129),_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/;w.exports=function p(t,d){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||g.test(t)||!_.test(t)||null!=d&&t in Object(d)}},23819:w=>{w.exports=function E(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,E,s)=>{var g,c=s(24610),x=(g=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"";w.exports=function _(g){return!!x&&x in g}},45488:w=>{var E=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||E)}},22442:(w,E,s)=>{var c=s(25940);w.exports=function x(_){return _==_&&!c(_)}},41840:w=>{w.exports=function E(){this.__data__=[],this.size=0}},34378:(w,E,s)=>{var c=s(43503),_=Array.prototype.splice;w.exports=function g(p){var t=this.__data__,d=c(t,p);return!(d<0||(d==t.length-1?t.pop():_.call(t,d,1),--this.size,0))}},54981:(w,E,s)=>{var c=s(43503);w.exports=function x(_){var g=this.__data__,p=c(g,_);return p<0?void 0:g[p][1]}},67343:(w,E,s)=>{var c=s(43503);w.exports=function x(_){return c(this.__data__,_)>-1}},98895:(w,E,s)=>{var c=s(43503);w.exports=function x(_,g){var p=this.__data__,t=c(p,_);return t<0?(++this.size,p.push([_,g])):p[t][1]=g,this}},10638:(w,E,s)=>{var c=s(54994),x=s(9215),_=s(51501);w.exports=function g(){this.size=0,this.__data__={hash:new c,map:new(_||x),string:new c}}},11184:(w,E,s)=>{var c=s(54537);w.exports=function x(_){var g=c(this,_).delete(_);return this.size-=g?1:0,g}},70866:(w,E,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).get(_)}},43771:(w,E,s)=>{var c=s(54537);w.exports=function x(_){return c(this,_).has(_)}},51772:(w,E,s)=>{var c=s(54537);w.exports=function x(_,g){var p=c(this,_),t=p.size;return p.set(_,g),this.size+=p.size==t?0:1,this}},83205:w=>{w.exports=function E(s){var c=-1,x=Array(s.size);return s.forEach(function(_,g){x[++c]=[g,_]}),x}},642:w=>{w.exports=function E(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,E,s)=>{var c=s(30535);w.exports=function _(g){var p=c(g,function(d){return 500===t.size&&t.clear(),d}),t=p.cache;return p}},60862:(w,E,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,E,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function E(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,E,s)=>{w=s.nmd(w);var c=s(79122),x=E&&!E.nodeType&&E,_=x&&w&&!w.nodeType&&w,p=_&&_.exports===x&&c.process,t=function(){try{return _&&_.require&&_.require("util").types||p&&p.binding&&p.binding("util")}catch{}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function E(s,c){return function(x){return s(c(x))}}},53983:(w,E,s)=>{var c=s(26999),x=Math.max;w.exports=function _(g,p,t){return p=x(void 0===p?g.length-1:p,0),function(){for(var d=arguments,l=-1,h=x(d.length-p,0),f=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,_=c||x||Function("return this")();w.exports=_},99351:w=>{w.exports=function E(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function E(s){return this.__data__.has(s)}},24174:w=>{w.exports=function E(s){var c=-1,x=Array(s.size);return s.forEach(function(_){x[++c]=_}),x}},72185:(w,E,s)=>{var c=s(69510),_=s(10029)(c);w.exports=_},10029:w=>{var c=Date.now;w.exports=function x(_){var g=0,p=0;return function(){var t=c(),d=16-(t-p);if(p=t,d>0){if(++g>=800)return arguments[0]}else g=0;return _.apply(void 0,arguments)}}},13720:(w,E,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function E(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function E(s){return this.__data__.get(s)}},22247:w=>{w.exports=function E(s){return this.__data__.has(s)}},41585:(w,E,s)=>{var c=s(9215),x=s(51501),_=s(99850);w.exports=function p(t,d){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,d]),this.size=++l.size,this;l=this.__data__=new _(h)}return l.set(t,d),this.size=l.size,this}},24977:w=>{w.exports=function E(s,c,x){for(var _=x-1,g=s.length;++_{var c=s(75481),x=s(77609),_=s(81149);w.exports=function g(p){return x(p)?_(p):c(p)}},32855:(w,E,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_=/\\(\\)?/g,g=c(function(p){var t=[];return 46===p.charCodeAt(0)&&t.push(""),p.replace(x,function(d,l,h,f){t.push(h?f.replace(_,"$1"):l||d)}),t});w.exports=g},68533:(w,E,s)=>{var c=s(44129);w.exports=function _(g){if("string"==typeof g||c(g))return g;var p=g+"";return"0"==p&&1/g==-1/0?"-0":p}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch{}try{return x+""}catch{}}return""}},42760:w=>{var E=/\s/;w.exports=function s(c){for(var x=c.length;x--&&E.test(c.charAt(x)););return x}},81149:w=>{var E="\\ud800-\\udfff",p="["+E+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",d="\\ud83c[\\udffb-\\udfff]",h="[^"+E+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+d+")?",L="[\\ufe0e\\ufe0f]?",R=L+C+"(?:\\u200d(?:"+[h,f,u].join("|")+")"+L+C+")*",M="(?:"+[h+t+"?",t,f,u,p].join("|")+")",F=RegExp(d+"(?="+d+")|"+M+R,"g");w.exports=function B(Y){for(var V=F.lastIndex=0;F.test(Y);)++V;return V}},11094:(w,E,s)=>{var c=s(44462);w.exports=function _(g){return c(g,4)}},90733:(w,E,s)=>{var c=s(44462);w.exports=function g(p){return c(p,5)}},76684:w=>{w.exports=function E(s){return function(){return s}}},28800:(w,E,s)=>{var c=s(23269),x=s(20217),_=s(93342),g=s(16555),p=Object.prototype,t=p.hasOwnProperty,d=c(function(l,h){l=Object(l);var f=-1,u=h.length,m=u>2?h[2]:void 0;for(m&&_(h[0],h[1],m)&&(u=1);++f{w.exports=s(89851)},20217:w=>{w.exports=function E(s,c){return s===c||s!=s&&c!=c}},35281:(w,E,s)=>{var c=s(69779),x=s(33609),_=s(96517),g=s(21503);w.exports=function p(t,d){return(g(t)?c:x)(t,_(d,3))}},62516:(w,E,s)=>{var _=s(24653)(s(36397));w.exports=_},36397:(w,E,s)=>{var c=s(65317),x=s(96517),_=s(44401),g=Math.max;w.exports=function p(t,d,l){var h=null==t?0:t.length;if(!h)return-1;var f=null==l?0:_(l);return f<0&&(f=g(h+f,0)),c(t,x(d,3),f)}},22274:(w,E,s)=>{var c=s(50686);w.exports=function x(_){return null!=_&&_.length?c(_,1):[]}},89851:(w,E,s)=>{var c=s(96837),x=s(43132),_=s(21481),g=s(21503);w.exports=function p(t,d){return(g(t)?c:x)(t,_(d))}},41176:(w,E,s)=>{var c=s(30755),x=s(21481),_=s(16555);w.exports=function g(p,t){return null==p?p:c(p,x(t),_)}},8817:(w,E,s)=>{var c=s(15456);w.exports=function x(_,g,p){var t=null==_?void 0:c(_,g);return void 0===t?p:t}},54842:(w,E,s)=>{var c=s(84781),x=s(47283);w.exports=function _(g,p){return null!=g&&x(g,p,c)}},11172:(w,E,s)=>{var c=s(69989),x=s(47283);w.exports=function _(g,p){return null!=g&&x(g,p,c)}},32608:w=>{w.exports=function E(s){return s}},77151:(w,E,s)=>{var c=s(60186),x=s(72671),_=Object.prototype,g=_.hasOwnProperty,p=_.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(d){return x(d)&&g.call(d,"callee")&&!p.call(d,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,E,s)=>{var c=s(75946),x=s(96231);w.exports=function _(g){return null!=g&&x(g.length)&&!c(g)}},92377:(w,E,s)=>{var c=s(56507),x=s(72671);w.exports=function _(g){return x(g)&&c(g)}},80891:(w,E,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),_=E&&!E.nodeType&&E,g=_&&w&&!w.nodeType&&w,t=g&&g.exports===_?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,E,s)=>{var c=s(81172),x=s(28794),_=s(77151),g=s(21503),p=s(56507),t=s(80891),d=s(45488),l=s(48159),m=Object.prototype.hasOwnProperty;w.exports=function C(L){if(null==L)return!0;if(p(L)&&(g(L)||"string"==typeof L||"function"==typeof L.splice||t(L)||l(L)||_(L)))return!L.length;var I=x(L);if("[object Map]"==I||"[object Set]"==I)return!L.size;if(d(L))return!c(L).length;for(var R in L)if(m.call(L,R))return!1;return!0}},75946:(w,E,s)=>{var c=s(93337),x=s(25940);w.exports=function d(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,E,s)=>{var c=s(97021),x=s(85647),_=s(73597),g=_&&_.isMap,p=g?x(g):c;w.exports=p},25940:w=>{w.exports=function E(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function E(s){return null!=s&&"object"==typeof s}},97614:(w,E,s)=>{var c=s(93337),x=s(29519),_=s(72671),d=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=d.call(Object);w.exports=function f(u){if(!_(u)||"[object Object]"!=c(u))return!1;var m=x(u);if(null===m)return!0;var C=l.call(m,"constructor")&&m.constructor;return"function"==typeof C&&C instanceof C&&d.call(C)==h}},90799:(w,E,s)=>{var c=s(771),x=s(85647),_=s(73597),g=_&&_.isSet,p=g?x(g):c;w.exports=p},30248:(w,E,s)=>{var c=s(93337),x=s(21503),_=s(72671);w.exports=function p(t){return"string"==typeof t||!x(t)&&_(t)&&"[object String]"==c(t)}},44129:(w,E,s)=>{var c=s(93337),x=s(72671);w.exports=function g(p){return"symbol"==typeof p||x(p)&&"[object Symbol]"==c(p)}},48159:(w,E,s)=>{var c=s(1083),x=s(85647),_=s(73597),g=_&&_.isTypedArray,p=g?x(g):c;w.exports=p},34235:w=>{w.exports=function E(s){return void 0===s}},118:(w,E,s)=>{var c=s(72271),x=s(81172),_=s(56507);w.exports=function g(p){return _(p)?c(p):x(p)}},16555:(w,E,s)=>{var c=s(72271),x=s(92809),_=s(56507);w.exports=function g(p){return _(p)?c(p,!0):x(p)}},25809:w=>{w.exports=function E(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,E,s)=>{var c=s(84633),x=s(96517),_=s(92046),g=s(21503);w.exports=function p(t,d){return(g(t)?c:_)(t,x(d,3))}},10203:(w,E,s)=>{var c=s(85683),x=s(45184),_=s(96517);w.exports=function g(p,t){var d={};return t=_(t,3),x(p,function(l,h,f){c(d,h,t(l,h,f))}),d}},18176:(w,E,s)=>{var c=s(67308),x=s(31100),_=s(32608);w.exports=function g(p){return p&&p.length?c(p,_,x):void 0}},30535:(w,E,s)=>{var c=s(99850);function _(g,p){if("function"!=typeof g||null!=p&&"function"!=typeof p)throw new TypeError("Expected a function");var t=function(){var d=arguments,l=p?p.apply(this,d):d[0],h=t.cache;if(h.has(l))return h.get(l);var f=g.apply(this,d);return t.cache=h.set(l,f)||h,f};return t.cache=new(_.Cache||c),t}_.Cache=c,w.exports=_},80567:(w,E,s)=>{var c=s(73842),_=s(84944)(function(g,p,t){c(g,p,t)});w.exports=_},29439:(w,E,s)=>{var c=s(67308),x=s(99069),_=s(32608);w.exports=function g(p){return p&&p.length?c(p,_,x):void 0}},29525:(w,E,s)=>{var c=s(67308),x=s(96517),_=s(99069);w.exports=function g(p,t){return p&&p.length?c(p,x(t,2),_):void 0}},12552:w=>{w.exports=function E(){}},31710:(w,E,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,E,s)=>{var c=s(83021),_=s(3975)(function(g,p){return null==g?{}:c(g,p)});w.exports=_},87495:(w,E,s)=>{var c=s(11847),x=s(39222),_=s(45352),g=s(68533);w.exports=function p(t){return _(t)?c(g(t)):x(t)}},90361:(w,E,s)=>{var x=s(97509)();w.exports=x},81337:(w,E,s)=>{var c=s(8745),x=s(43132),_=s(96517),g=s(13570),p=s(21503);w.exports=function t(d,l,h){var f=p(d)?c:g,u=arguments.length<3;return f(d,_(l,4),h,u,x)}},55637:(w,E,s)=>{var c=s(81172),x=s(28794),_=s(56507),g=s(30248),p=s(52315);w.exports=function l(h){if(null==h)return 0;if(_(h))return g(h)?p(h):h.length;var f=x(h);return"[object Map]"==f||"[object Set]"==f?h.size:c(h).length}},12906:(w,E,s)=>{var c=s(50686),x=s(6119),_=s(23269),g=s(93342),p=_(function(t,d){if(null==t)return[];var l=d.length;return l>1&&g(t,d[0],d[1])?d=[]:l>2&&g(d[0],d[1],d[2])&&(d=[d[0]]),x(t,c(d,1),[])});w.exports=p},49975:w=>{w.exports=function E(){return[]}},63580:w=>{w.exports=function E(){return!1}},12232:(w,E,s)=>{var c=s(51467),x=1/0;w.exports=function g(p){return p?(p=c(p))===x||p===-x?17976931348623157e292*(p<0?-1:1):p==p?p:0:0===p?p:0}},44401:(w,E,s)=>{var c=s(12232);w.exports=function x(_){var g=c(_),p=g%1;return g==g?p?g-p:g:0}},51467:(w,E,s)=>{var c=s(83348),x=s(25940),_=s(44129),p=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,d=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(f){if("number"==typeof f)return f;if(_(f))return NaN;if(x(f)){var u="function"==typeof f.valueOf?f.valueOf():f;f=x(u)?u+"":u}if("string"!=typeof f)return 0===f?f:+f;f=c(f);var m=t.test(f);return m||d.test(f)?l(f.slice(2),m?2:8):p.test(f)?NaN:+f}},8067:(w,E,s)=>{var c=s(31989),x=s(16555);w.exports=function _(g){return c(g,x(g))}},73943:(w,E,s)=>{var c=s(93935);w.exports=function x(_){return null==_?"":c(_)}},89416:(w,E,s)=>{var c=s(96837),x=s(78858),_=s(45184),g=s(96517),p=s(29519),t=s(21503),d=s(80891),l=s(75946),h=s(25940),f=s(48159);w.exports=function u(m,C,L){var I=t(m),R=I||d(m)||f(m);if(C=g(C,4),null==L){var M=m&&m.constructor;L=R?I?new M:[]:h(m)&&l(M)?x(p(m)):{}}return(R?c:_)(m,function(F,B,Y){return C(L,F,B,Y)}),L}},68921:(w,E,s)=>{var c=s(50686),x=s(23269),_=s(80707),g=s(92377),p=x(function(t){return _(c(t,1,g,!0))});w.exports=p},51541:(w,E,s)=>{var c=s(73943),x=0;w.exports=function _(g){var p=++x;return c(g)+p}},90377:(w,E,s)=>{var c=s(19179),x=s(118);w.exports=function _(g){return null==g?[]:c(g,x(g))}},21617:(w,E,s)=>{var c=s(89719),x=s(38645);w.exports=function _(g,p){return x(g||[],p||[],c)}},34315:(w,E,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function _(h,f){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const f=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(f):Buffer.from(f);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function p(h){const f=new h.constructor(h.byteLength);return new Uint8Array(f).set(new Uint8Array(h)),f}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,f){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function g(h){const f=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,f);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,E,s)=>{"use strict";function c(x){for(var _ in x)E.hasOwnProperty(_)||(E[_]=x[_])}Object.defineProperty(E,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,E,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(d){var l=p.call(this)||this,f=d;return f.trigger&&(l.trigger=f.trigger),f.kick&&(l.kick=f.kick),f.drag&&(l.drag=f.drag),f.on&&(l.on=f.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,p),t.prototype.trigger=function(d){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(d,l){return this},t}(x.Layout);E.LayoutAdaptor=_,E.adaptor=function g(p){return new _(p)}},83292:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(15675),x=s(76767);E.gridify=function _(t,d,l,h){t.cola.start(0,0,0,10,!1);var f=function g(t,d,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),d.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(typeof u.groups<"u"?u.groups.map(function(m){return t.length+m.id}):[]).concat(typeof u.leaves<"u"?u.leaves.map(function(m){return m.index}):[])}});var f=t.concat(d).map(function(u,m){return u.routerNode.id=m,u.routerNode});return new x.GridRouter(f,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return f.routeEdges(t.powerGraph.powerEdges,d,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},E.powerGraphGridLayout=function p(t,d,l){var h;t.nodes.forEach(function(C,L){return C.index=L}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){return L.padding=l})});var f=t.nodes.length,u=[],m=t.nodes.slice(0);return m.forEach(function(C,L){return C.index=L}),h.groups.forEach(function(C){var L=C.index=C.id+f;m.push(C),typeof C.leaves<"u"&&C.leaves.forEach(function(I){return u.push({source:L,target:I.index})}),typeof C.groups<"u"&&C.groups.forEach(function(I){return u.push({source:L,target:I.id+f})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(d).nodes(m).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(d).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(L){L.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(49346),x=s(22487);E.d3adaptor=function _(p){return!p||function g(p){return p.version&&null!==p.version.match(/^3\./)}(p)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(p)}},49346:function(w,E,s){"use strict";var p,c=this&&this.__extends||(p=function(t,d){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var f in h)h.hasOwnProperty(f)&&(l[f]=h[f])})(t,d)},function(t,d){function l(){this.constructor=t}p(t,d),t.prototype=null===d?Object.create(d):(l.prototype=d.prototype,new l)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(p){function t(){var d=p.call(this)||this;d.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;this.call(f)},d}return c(t,p),t.prototype.trigger=function(d){var l={type:x.EventType[d.type],alpha:d.alpha,stress:d.stress};this.event[l.type](l)},t.prototype.kick=function(){var d=this;d3.timer(function(){return p.prototype.tick.call(d)})},t.prototype.on=function(d,l){return this.event.on("string"==typeof d?d:x.EventType[d],l),this},t}(x.Layout);E.D3StyleLayoutAdaptor=_,E.d3adaptor=function g(){return new _}},22487:function(w,E,s){"use strict";var g,c=this&&this.__extends||(g=function(p,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,l){d.__proto__=l}||function(d,l){for(var h in l)l.hasOwnProperty(h)&&(d[h]=l[h])})(p,t)},function(p,t){function d(){this.constructor=p}g(p,t),p.prototype=null===t?Object.create(t):(d.prototype=t.prototype,new d)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(15675),_=function(g){function p(t){var d=g.call(this)||this;d.d3Context=t,d.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=d;return d.drag=function(){if(!f)var f=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return f;arguments[0].call(f)},d}return c(p,g),p.prototype.trigger=function(t){var d={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(d.type,d)},p.prototype.kick=function(){var t=this,d=this.d3Context.timer(function(){return g.prototype.tick.call(t)&&d.stop()})},p.prototype.on=function(t,d){return this.event.on("string"==typeof t?t:x.EventType[t],d),this},p}(x.Layout);E.D3StyleLayoutAdaptor=_},91786:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function _(){this.locks={}}return _.prototype.add=function(g,p){this.locks[g]=p},_.prototype.clear=function(){this.locks={}},_.prototype.isEmpty=function(){for(var g in this.locks)return!1;return!0},_.prototype.apply=function(g){for(var p in this.locks)g(Number(p),this.locks[p])},_}();E.Locks=s;var c=function(){function _(g,p,t){void 0===t&&(t=null),this.D=p,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=g,this.k=g.length;var d=this.n=g[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=d;l--;)for(h=d;--h>l;){var f=p[l][h];f>0&&f1e-9)break;var M=this.offsetDir();for(d=0;d1&&F>B||!isFinite(B)){for(d=0;d1&&(Y=1);var V=B*B,nt=2*Y*(F-B)/(V*F),et=F*F*F,st=2*-Y/(V*et);for(isFinite(nt)||console.log(nt),d=0;d0?j-(U+1)*X:j-(U-1)*X)&&R<=K&&(this.scaleSnapByMaxH?(this.g[d][m]+=u*at*R,this.H[d][m][m]+=u*at):(this.g[d][m]+=at*R,this.H[d][m][m]+=at))}this.locks.isEmpty()||this.locks.apply(function(mt,St){for(d=0;d0;)for(var l=p;l-- >0;)t(d,l)},_.prototype.matrixApply=function(g){_.mApply(this.k,this.n,g)},_.prototype.computeNextPosition=function(g,p){var t=this;this.computeDerivatives(g);var d=this.computeStepSize(this.g);if(this.stepAndProject(g,p,this.g,d),this.project){this.matrixApply(function(h,f){return t.e[h][f]=g[h][f]-p[h][f]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(g,p,this.e,l)}},_.prototype.run=function(g){for(var p=Number.MAX_VALUE,t=!1;!t&&g-- >0;){var d=this.rungeKutta();t=Math.abs(p/d-1)>16)/this.range},_.prototype.getNextBetween=function(g,p){return g+this.getNext()*(p-g)},_}();E.PseudoRandom=x},30225:function(w,E,s){"use strict";var tt,c=this&&this.__extends||(tt=function(U,D){return(tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(mt,St){mt.__proto__=St}||function(mt,St){for(var Mt in St)St.hasOwnProperty(Mt)&&(mt[Mt]=St[Mt])})(U,D)},function(U,D){function mt(){this.constructor=U}tt(U,D),U.prototype=null===D?Object.create(D):(mt.prototype=D.prototype,new mt)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(4068),_=function tt(){};E.Point=_;var g=function tt(U,D,mt,St){this.x1=U,this.y1=D,this.x2=mt,this.y2=St};E.LineSegment=g;var p=function(tt){function U(){return null!==tt&&tt.apply(this,arguments)||this}return c(U,tt),U}(_);function t(tt,U,D){return(U.x-tt.x)*(D.y-tt.y)-(D.x-tt.x)*(U.y-tt.y)}function d(tt,U,D){return t(tt,U,D)>0}function l(tt,U,D){return t(tt,U,D)<0}function C(tt,U){var D=U.slice(0);return D.push(U[0]),{rtan:L(tt,D),ltan:I(tt,D)}}function L(tt,U){var mt,St,Mt,Qt,D=U.length-1;if(l(tt,U[1],U[0])&&!d(tt,U[D-1],U[0]))return 0;for(mt=0,St=D;;){if(St-mt==1)return d(tt,U[mt],U[St])?mt:St;if((Qt=l(tt,U[(Mt=Math.floor((mt+St)/2))+1],U[Mt]))&&!d(tt,U[Mt-1],U[Mt]))return Mt;d(tt,U[mt+1],U[mt])?Qt||d(tt,U[mt],U[Mt])?St=Mt:mt=Mt:Qt&&l(tt,U[mt],U[Mt])?St=Mt:mt=Mt}}function I(tt,U){var mt,St,Mt,Qt,D=U.length-1;if(d(tt,U[D-1],U[0])&&!l(tt,U[1],U[0]))return 0;for(mt=0,St=D;;){if(St-mt==1)return l(tt,U[mt],U[St])?mt:St;if(Qt=l(tt,U[(Mt=Math.floor((mt+St)/2))+1],U[Mt]),d(tt,U[Mt-1],U[Mt])&&!Qt)return Mt;l(tt,U[mt+1],U[mt])?Qt?l(tt,U[mt],U[Mt])?St=Mt:mt=Mt:St=Mt:Qt?mt=Mt:d(tt,U[mt],U[Mt])?St=Mt:mt=Mt}}function R(tt,U,D,mt,St,Mt){var Et,Qt;Qt=mt(tt[Et=D(U[0],tt)],U);for(var Nt=!1;!Nt;){for(Nt=!0;Et===tt.length-1&&(Et=0),!St(U[Qt],tt[Et],tt[Et+1]);)++Et;for(;0===Qt&&(Qt=U.length-1),!Mt(tt[Et],U[Qt],U[Qt-1]);)--Qt,Nt=!1}return{t1:Et,t2:Qt}}function F(tt,U){return R(tt,U,L,I,d,l)}E.PolyPoint=p,E.isLeft=t,E.ConvexHull=function h(tt){var mt,U=tt.slice(0).sort(function(Zt,le){return Zt.x!==le.x?le.x-Zt.x:le.y-Zt.y}),D=tt.length,Mt=U[0].x;for(mt=1;mt=0&&U[mt].x===dt;mt--);for(Nt=mt+1,mt=Et;++mt<=Nt;)if(!(t(U[0],U[Nt],U[mt])>=0&&mt1&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],U[mt])>0);)Qt.length-=1;0!=mt&&Qt.push(U[mt])}ft!=Nt&&Qt.push(U[ft]);var wt=Qt.length;for(mt=Nt;--mt>=Et;)if(!(t(U[ft],U[Et],U[mt])>=0&&mt>Et)){for(;Qt.length>wt&&!(t(Qt[Qt.length-2],Qt[Qt.length-1],U[mt])>0);)Qt.length-=1;0!=mt&&Qt.push(U[mt])}}return Qt},E.clockwiseRadialSweep=function f(tt,U,D){U.slice(0).sort(function(mt,St){return Math.atan2(mt.y-tt.y,mt.x-tt.x)-Math.atan2(St.y-tt.y,St.x-tt.x)}).forEach(D)},E.tangent_PolyPolyC=R,E.LRtangent_PolyPolyC=function M(tt,U){var D=F(U,tt);return{t1:D.t2,t2:D.t1}},E.RLtangent_PolyPolyC=F,E.LLtangent_PolyPolyC=function B(tt,U){return R(tt,U,I,I,l,l)},E.RRtangent_PolyPolyC=function Y(tt,U){return R(tt,U,L,L,d,d)};var V=function tt(U,D){this.t1=U,this.t2=D};E.BiTangent=V;var nt=function tt(){};E.BiTangents=nt;var et=function(tt){function U(){return null!==tt&&tt.apply(this,arguments)||this}return c(U,tt),U}(_);E.TVGPoint=et;var st=function tt(U,D,mt,St){this.id=U,this.polyid=D,this.polyvertid=mt,this.p=St,St.vv=this};E.VisibilityVertex=st;var K=function(){function tt(U,D){this.source=U,this.target=D}return tt.prototype.length=function(){var U=this.source.p.x-this.target.p.x,D=this.source.p.y-this.target.p.y;return Math.sqrt(U*U+D*D)},tt}();E.VisibilityEdge=K;var X=function(){function tt(U,D){if(this.P=U,this.V=[],this.E=[],D)this.V=D.V.slice(0),this.E=D.E.slice(0);else{for(var mt=U.length,St=0;St0&&this.E.push(new K(Mt[Et-1].vv,Nt))}Mt.length>1&&this.E.push(new K(Mt[0].vv,Mt[Mt.length-1].vv))}for(St=0;St0)return!0;return!1},tt}();function W(tt,U){for(var D=[],mt=1,St=U.length;mt=0&&ie>=0&&ue<0&&xe>=0&&Ue>=0&&Pe<0?St.ll=new V(Mt,Et):le<=0&&ie<=0&&ue>0&&xe<=0&&Ue<=0&&Pe>0?St.rr=new V(Mt,Et):le<=0&&ie>0&&ue<=0&&xe>=0&&Ue<0&&Pe>=0?St.rl=new V(Mt,Et):le>=0&&ie<0&&ue>=0&&xe<=0&&Ue>0&&Pe<=0&&(St.lr=new V(Mt,Et))}return St}function j(tt,U){return!tt.every(function(D){return!function H(tt,U){for(var D=1,mt=U.length;D0)return!0}return!1}},76767:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(4068),x=s(98237),_=s(33858),g=function l(h,f,u){this.id=h,this.rect=f,this.children=u,this.leaf=typeof u>"u"||0===u.length};E.NodeWrapper=g;var p=function l(h,f,u,m,C){void 0===m&&(m=null),void 0===C&&(C=null),this.id=h,this.x=f,this.y=u,this.node=m,this.line=C};E.Vert=p;var t=function(){function l(h,f){this.s=h,this.t=f;var u=l.findMatch(h,f),m=f.slice(0).reverse(),C=l.findMatch(h,m);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=f.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,f){for(var u=h.length,m=f.length,C={length:0,si:-1,ti:-1},L=new Array(u),I=0;IC.length&&(C.length=M,C.si=I-M+1,C.ti=R-M+1)}else L[I][R]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();E.LongestCommonSubsequence=t;var d=function(){function l(h,f,u){var m=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(et,st){return new g(st,f.getBounds(et),f.getChildren(et))}),this.leaves=this.nodes.filter(function(et){return et.leaf}),this.groups=this.nodes.filter(function(et){return!et.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(et){return et.children.forEach(function(st){return m.nodes[st].parent=et})}),this.root={children:[]},this.nodes.forEach(function(et){typeof et.parent>"u"&&(et.parent=m.root,m.root.children.push(et.id)),et.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(et,st){return m.getDepth(et)-m.getDepth(st)}),this.backToFront.slice(0).reverse().filter(function(et){return!et.leaf}).forEach(function(et){var st=c.Rectangle.empty();et.children.forEach(function(K){return st=st.union(m.nodes[K].rect)}),et.rect=st.inflate(m.groupPadding)});var L=this.midPoints(this.cols.map(function(et){return et.pos})),I=this.midPoints(this.rows.map(function(et){return et.pos})),R=L[0],M=L[L.length-1],F=I[0],B=I[I.length-1],Y=this.rows.map(function(et){return{x1:R,x2:M,y1:et.pos,y2:et.pos}}).concat(I.map(function(et){return{x1:R,x2:M,y1:et,y2:et}})),V=this.cols.map(function(et){return{x1:et.pos,x2:et.pos,y1:F,y2:B}}).concat(L.map(function(et){return{x1:et,x2:et,y1:F,y2:B}})),nt=Y.concat(V);nt.forEach(function(et){return et.verts=[]}),this.verts=[],this.edges=[],Y.forEach(function(et){return V.forEach(function(st){var K=new p(m.verts.length,st.x1,et.y1);et.verts.push(K),st.verts.push(K),m.verts.push(K);for(var X=m.backToFront.length;X-- >0;){var W=m.backToFront[X],at=W.rect,H=Math.abs(K.x-at.cx()),j=Math.abs(K.y-at.cy());if(H0;){var m=u.filter(function(L){return L.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:m,pos:this.avg(m.map(function(L){return L.rect["c"+h]()}))};f.push(C),C.nodes.forEach(function(L){return u.splice(u.indexOf(L),1)})}return f.sort(function(L,I){return L.pos-I.pos}),f},l.prototype.getDepth=function(h){for(var f=0;h.parent!==this.root;)f++,h=h.parent;return f},l.prototype.midPoints=function(h){for(var f=h[1]-h[0],u=[h[0]-f/2],m=1;m.1)&&F.push(B={pos:R[0][f],segments:[]}),B.segments.push(R)}return F},l.nudgeSegs=function(h,f,u,m,C,L){var I=m.length;if(!(I<=1)){for(var R=m.map(function(W){return new x.Variable(W[0][h])}),M=[],F=0;F=0&&M.push(new x.Constraint(R[st],R[K],L))}new x.Solver(R,M).solve(),R.forEach(function(W,at){var H=m[at],j=W.position();H[0][h]=H[1][h]=j;var it=u[H.edgeid];H.i>0&&(it[H.i-1][1][h]=j),H.iMath.PI||C<-Math.PI)&&(C=m-u),C},l.isLeft=function(h,f,u){return(f.x-h.x)*(u.y-h.y)-(f.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var f={},u=0;u"u"&&(f[m.l]={}),f[m.l][m.r]=!0}return function(C,L){return typeof f[C]<"u"&&f[C][L]}},l.orderEdges=function(h){for(var f=[],u=0;u=C.length||I.ti+I.length>=L.length)){f.push({l:u,r:m});continue}I.si+I.length>=C.length||I.ti+I.length>=L.length?(R=C[I.si+1],F=C[I.si-1],M=L[I.ti-1]):(R=C[I.si+I.length-2],M=C[I.si+I.length],F=L[I.ti+I.length]),l.isLeft(R,M,F)?f.push({l:m,r:u}):f.push({l:u,r:m})}}return l.getOrder(f)},l.makeSegments=function(h){function f(M){return{x:M.x,y:M.y}}for(var m=[],C=f(h[0]),L=1;L1&&tt>1?1e3:0}).reverse().map(function(K){return u.verts[K]});return st.push(this.nodes[C.id].ports[0]),st.filter(function(K,X){return!(X0&&K.node===C&&st[X-1].node===C)})},l.getRoutePath=function(h,f,u,m){var I,R,M,it,tt,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var L=0;L0?R-=F/Math.abs(F)*f:M-=B/Math.abs(B)*f,C.routepath+="L "+R+" "+M+" ";var Y=h[L+1],V=Y[0].x,nt=Y[0].y;F=Y[1].x-V,B=Y[1].y-nt;var X,W,K=l.angleBetween2Lines(I,Y)<0?1:0;Math.abs(F)>0?(X=V+F/Math.abs(F)*f,W=nt):(X=V,W=nt+B/Math.abs(B)*f);var at=Math.abs(X-R),H=Math.abs(W-M);C.routepath+="A "+at+" "+H+" 0 0 "+K+" "+X+" "+W+" "}else{var j=[R,M];Math.abs(F)>0?(it=[R-=F/Math.abs(F)*m,M+u],tt=[R,M-u]):(it=[R+u,M-=B/Math.abs(B)*m],tt=[R-u,M]),C.routepath+="L "+R+" "+M+" ",m>0&&(C.arrowpath="M "+j[0]+" "+j[1]+" L "+it[0]+" "+it[1]+" L "+tt[0]+" "+tt[1])}}else F=(R=(I=h[0])[1].x)-I[0].x,B=(M=I[1].y)-I[0].y,j=[R,M],Math.abs(F)>0?(it=[R-=F/Math.abs(F)*m,M+u],tt=[R,M-u]):(it=[R+u,M-=B/Math.abs(B)*m],tt=[R-u,M]),C.routepath+="L "+R+" "+M+" ",m>0&&(C.arrowpath="M "+j[0]+" "+j[1]+" L "+it[0]+" "+it[1]+" L "+tt[0]+" "+tt[1]);return C},l}();E.GridRouter=d},30345:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;E.applyPacking=function c(_,g,p,L,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=g,m=p,I=(C=typeof C<"u"?C:1,L=typeof L<"u"?L:0,0),R=0,M=0,F=0,B=[];function et(W,at){B=[],I=0,R=0,F=0;for(var H=0;H=W.height&&B[j].x+B[j].width+W.width+10-at<=1e-4){H=B[j];break}B.push(W),void 0!==H?(W.x=H.x+H.width+10,W.y=H.bottom,W.space_left=W.height,W.bottom=W.y,H.space_left-=W.height+10,H.bottom+=W.height+10):(W.y=F,F+=W.height+10,W.x=0,W.bottom=W.y,W.space_left=W.height),W.y+W.height-R>-1e-4&&(R=W.y+W.height-0),W.x+W.width-I>-1e-4&&(I=W.x+W.width-0)}0!=_.length&&(function Y(W){W.forEach(function(H){!function at(H){var j=Number.MAX_VALUE,it=Number.MAX_VALUE,tt=0,U=0;H.array.forEach(function(D){var mt=typeof D.width<"u"?D.width:L,St=typeof D.height<"u"?D.height:L;mt/=2,St/=2,tt=Math.max(D.x+mt,tt),j=Math.min(D.x-mt,j),U=Math.max(D.y+St,U),it=Math.min(D.y-St,it)}),H.width=tt-j,H.height=U-it}(H)})}(_),function nt(W,at){var H=Number.POSITIVE_INFINITY,j=0;W.sort(function(ft,dt){return dt.height-ft.height});for(var it=Qt=M=W.reduce(function(ft,dt){return ft.widthM||Et>1e-4;){if(1!=St){var Qt=tt-(tt-it)/s_GOLDEN_SECTION;D=et(W,Qt)}if(0!=St){var Nt=it+(tt-it)/s_GOLDEN_SECTION;mt=et(W,Nt)}if(Mt=Math.abs(Qt-Nt),Et=Math.abs(D-mt),Dmt?(it=Qt,Qt=Nt,D=mt,St=1):(tt=Nt,Nt=Qt,mt=D,St=0),U++>100)break}et(W,j)}(_),l&&function V(W){W.forEach(function(at){var H={x:0,y:0};at.array.forEach(function(tt){H.x+=tt.x,H.y+=tt.y}),H.x/=at.array.length,H.y/=at.array.length;var it_x=at.x-(H.x-at.width/2)+u/2-I/2,it_y=at.y-(H.y-at.height/2)+m/2-R/2;at.array.forEach(function(tt){tt.x+=it_x,tt.y+=it_y})})}(_))},E.separateGraphs=function x(_,g){for(var p={},t={},d=[],l=0,h=0;h{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),_=s(91786),g=s(4068),p=s(33858),t=s(30225),d=s(30345);function h(u){return typeof u.leaves<"u"||typeof u.groups<"u"}(u=l=E.EventType||(E.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var f=function(){function u(){var m=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof m._linkType?m._linkType(C):0}}}return u.prototype.on=function(m,C){return this.event||(this.event={}),"string"==typeof m?this.event[l[m]]=C:this.event[m]=C,this},u.prototype.trigger=function(m){this.event&&typeof this.event[m.type]<"u"&&this.event[m.type](m)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha"u"||typeof L.py>"u")&&(L.px=L.x,L.py=L.y),this._descent.locks.add(I,[L.px,L.py]));var M=this._descent.rungeKutta();return 0===M?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=M),this._lastStress=M,this.updateNodePositions(),this.trigger({type:l.tick,alpha:this._alpha,stress:this._lastStress}),!1},u.prototype.updateNodePositions=function(){for(var L,m=this._descent.x[0],C=this._descent.x[1],I=this._nodes.length;I--;)(L=this._nodes[I]).x=m[I],L.y=C[I]},u.prototype.nodes=function(m){if(!m){if(0===this._nodes.length&&this._links.length>0){var C=0;this._links.forEach(function(I){C=Math.max(C,I.source,I.target)}),this._nodes=new Array(++C);for(var L=0;L"u"&&(L.padding=1),typeof L.leaves<"u"&&L.leaves.forEach(function(I,R){"number"==typeof I&&((L.leaves[R]=C._nodes[I]).parent=L)}),typeof L.groups<"u"&&L.groups.forEach(function(I,R){"number"==typeof I&&((L.groups[R]=C._groups[I]).parent=L)})}),this._rootGroup.leaves=this._nodes.filter(function(L){return typeof L.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(L){return typeof L.parent>"u"}),this):this._groups},u.prototype.powerGraphGroups=function(m){var C=c.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(C.groups),m(C),this},u.prototype.avoidOverlaps=function(m){return arguments.length?(this._avoidOverlaps=m,this):this._avoidOverlaps},u.prototype.handleDisconnected=function(m){return arguments.length?(this._handleDisconnected=m,this):this._handleDisconnected},u.prototype.flowLayout=function(m,C){return arguments.length||(m="y"),this._directedLinkConstraints={axis:m,getMinSeparation:"number"==typeof C?function(){return C}:C},this},u.prototype.links=function(m){return arguments.length?(this._links=m,this):this._links},u.prototype.constraints=function(m){return arguments.length?(this._constraints=m,this):this._constraints},u.prototype.distanceMatrix=function(m){return arguments.length?(this._distanceMatrix=m,this):this._distanceMatrix},u.prototype.size=function(m){return m?(this._canvasSize=m,this):this._canvasSize},u.prototype.defaultNodeSize=function(m){return m?(this._defaultNodeSize=m,this):this._defaultNodeSize},u.prototype.groupCompactness=function(m){return m?(this._groupCompactness=m,this):this._groupCompactness},u.prototype.linkDistance=function(m){return m?(this._linkDistance="function"==typeof m?m:+m,this._linkLengthCalculator=null,this):this._linkDistance},u.prototype.linkType=function(m){return this._linkType=m,this},u.prototype.convergenceThreshold=function(m){return m?(this._threshold="function"==typeof m?m:+m,this):this._threshold},u.prototype.alpha=function(m){return arguments.length?(m=+m,this._alpha?this._alpha=m>0?m:0:m>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=m}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(m){return"function"==typeof this._linkDistance?+this._linkDistance(m):this._linkDistance},u.setLinkLength=function(m,C){m.length=C},u.prototype.getLinkType=function(m){return"function"==typeof this._linkType?this._linkType(m):0},u.prototype.symmetricDiffLinkLengths=function(m,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return m*I.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(m,C){var L=this;return void 0===C&&(C=1),this.linkDistance(function(I){return m*I.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(L._links,L.linkAccessor,C)},this},u.prototype.start=function(m,C,L,I,R,M){var F=this;void 0===m&&(m=0),void 0===C&&(C=0),void 0===L&&(L=0),void 0===I&&(I=0),void 0===R&&(R=!0),void 0===M&&(M=!0);var j,V=this.nodes().length,nt=V+2*this._groups.length,st=this._canvasSize[0],K=this._canvasSize[1],X=new Array(nt),W=new Array(nt),at=null,H=this._avoidOverlaps;this._nodes.forEach(function(Mt,Et){Mt.index=Et,typeof Mt.x>"u"&&(Mt.x=st/2,Mt.y=K/2),X[Et]=Mt.x,W[Et]=Mt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?j=this._distanceMatrix:(j=new p.Calculator(nt,this._links,u.getSourceIndex,u.getTargetIndex,function(Mt){return F.getLinkLength(Mt)}).DistanceMatrix(),at=_.Descent.createSquareMatrix(nt,function(){return 2}),this._links.forEach(function(Mt){"number"==typeof Mt.source&&(Mt.source=F._nodes[Mt.source]),"number"==typeof Mt.target&&(Mt.target=F._nodes[Mt.target])}),this._links.forEach(function(Mt){var Et=u.getSourceIndex(Mt),Qt=u.getTargetIndex(Mt);at[Et][Qt]=at[Qt][Et]=Mt.weight||1}));var it=_.Descent.createSquareMatrix(nt,function(Mt,Et){return j[Mt][Et]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var B=V;this._groups.forEach(function(Et){(function(Et,Qt,Nt,ft){at[Et][Qt]=at[Qt][Et]=Nt,it[Et][Qt]=it[Qt][Et]=.1})(B,B+1,F._groupCompactness),X[B]=0,W[B++]=0,X[B]=0,W[B++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var U=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,U=U.concat(x.generateDirectedEdgeConstraints(V,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new _.Descent([X,W],it),this._descent.locks.clear(),B=0;B0&&(this._descent.project=new g.Projection(this._nodes,this._groups,this._rootGroup,U).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(st,K,M),this.avoidOverlaps(H),H&&(this._nodes.forEach(function(Mt,Et){Mt.x=X[Et],Mt.y=W[Et]}),this._descent.project=new g.Projection(this._nodes,this._groups,this._rootGroup,U,!0).projectFunctions(),this._nodes.forEach(function(Mt,Et){X[Et]=Mt.x,W[Et]=Mt.y})),this._descent.G=at,this._descent.run(L),I){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=V,this._descent.scaleSnapByMaxH=V!=nt;var St=_.Descent.createSquareMatrix(nt,function(Mt,Et){return Mt>=V||Et>=V?at[Mt][Et]:0});this._descent.G=St,this._descent.run(I)}return this.updateNodePositions(),this.separateOverlappingComponents(st,K,M),R?this.resume():this},u.prototype.initialLayout=function(m,C,L){if(this._groups.length>0&&m>0){var I=this._nodes.length,R=this._links.map(function(F){return{source:F.source.index,target:F.target.index}}),M=this._nodes.map(function(F){return{index:F.index}});this._groups.forEach(function(F,B){M.push({index:F.index=I+B})}),this._groups.forEach(function(F,B){typeof F.leaves<"u"&&F.leaves.forEach(function(Y){return R.push({source:F.index,target:Y.index})}),typeof F.groups<"u"&&F.groups.forEach(function(Y){return R.push({source:F.index,target:Y.index})})}),(new u).size(this.size()).nodes(M).links(R).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(m,0,0,0,!1),this._nodes.forEach(function(F){C[F.index]=M[F.index].x,L[F.index]=M[F.index].y})}else this._descent.run(m)},u.prototype.separateOverlappingComponents=function(m,C,L){var I=this;if(void 0===L&&(L=!0),!this._distanceMatrix&&this._handleDisconnected){var R=this._descent.x[0],M=this._descent.x[1];this._nodes.forEach(function(B,Y){B.x=R[Y],B.y=M[Y]});var F=d.separateGraphs(this._nodes,this._links);d.applyPacking(F,m,C,this._defaultNodeSize,1,L),this._nodes.forEach(function(B,Y){I._descent.x[0][Y]=B.x,I._descent.x[1][Y]=B.y,B.bounds&&(B.bounds.setXCentre(B.x),B.bounds.setYCentre(B.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(m){void 0===m&&(m=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-m).vertices()}))},u.prototype.routeEdge=function(m,C,L){void 0===C&&(C=5);var I=[],R=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),M={x:m.source.x,y:m.source.y},F={x:m.target.x,y:m.target.y},B=R.addPoint(M,m.source.index),Y=R.addPoint(F,m.target.index);R.addEdgeIfVisible(M,F,m.source.index,m.target.index),typeof L<"u"&&L(R);var K=new p.Calculator(R.V.length,R.E,function(it){return it.source.id},function(it){return it.target.id},function(it){return it.length()}).PathFromNodeToNode(B.id,Y.id);if(1===K.length||K.length===R.V.length){var X=g.makeEdgeBetween(m.source.innerBounds,m.target.innerBounds,C);I=[X.sourceIntersection,X.arrowStart]}else{for(var W=K.length-2,at=R.V[K[W]].p,H=R.V[K[0]].p,j=(I=[m.source.innerBounds.rayIntersection(at.x,at.y)],W);j>=0;--j)I.push(R.V[K[j]].p);I.push(g.makeEdgeTo(H,m.target.innerBounds,C))}return I},u.getSourceIndex=function(m){return"number"==typeof m.source?m.source:m.source.index},u.getTargetIndex=function(m){return"number"==typeof m.target?m.target:m.target.index},u.linkId=function(m){return u.getSourceIndex(m)+"-"+u.getTargetIndex(m)},u.dragStart=function(m){h(m)?u.storeOffset(m,u.dragOrigin(m)):(u.stopNode(m),m.fixed|=2)},u.stopNode=function(m){m.px=m.x,m.py=m.y},u.storeOffset=function(m,C){typeof m.leaves<"u"&&m.leaves.forEach(function(L){L.fixed|=2,u.stopNode(L),L._dragGroupOffsetX=L.x-C.x,L._dragGroupOffsetY=L.y-C.y}),typeof m.groups<"u"&&m.groups.forEach(function(L){return u.storeOffset(L,C)})},u.dragOrigin=function(m){return h(m)?{x:m.bounds.cx(),y:m.bounds.cy()}:m},u.drag=function(m,C){h(m)?(typeof m.leaves<"u"&&m.leaves.forEach(function(L){m.bounds.setXCentre(C.x),m.bounds.setYCentre(C.y),L.px=L._dragGroupOffsetX+C.x,L.py=L._dragGroupOffsetY+C.y}),typeof m.groups<"u"&&m.groups.forEach(function(L){return u.drag(L,C)})):(m.px=C.x,m.py=C.y)},u.dragEnd=function(m){h(m)?(typeof m.leaves<"u"&&m.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),typeof m.groups<"u"&&m.groups.forEach(u.dragEnd)):m.fixed&=-7},u.mouseOver=function(m){m.fixed|=4,m.px=m.x,m.py=m.y},u.mouseOut=function(m){m.fixed&=-5},u}();E.Layout=f},86461:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(33858),x=s(91786),_=s(4068),g=s(58802),p=function(){function h(f,u){this.source=f,this.target=u}return h.prototype.actualLength=function(f){var u=this;return Math.sqrt(f.reduce(function(m,C){var L=C[u.target]-C[u.source];return m+L*L},0))},h}();E.Link3D=p,E.Node3D=function h(f,u,m){void 0===f&&(f=0),void 0===u&&(u=0),void 0===m&&(m=0),this.x=f,this.y=u,this.z=m};var d=function(){function h(f,u,m){var C=this;void 0===m&&(m=1),this.nodes=f,this.links=u,this.idealLinkLength=m,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var L=0;L"u"&&(I[B]=Math.random())}C.result[0][R]=I.x,C.result[1][R]=I.y,C.result[2][R]=I.z})}return h.prototype.linkLength=function(f){return f.actualLength(this.result)},h.prototype.start=function(f){var u=this;void 0===f&&(f=100);var m=this.nodes.length,C=new l;this.useJaccardLinkLengths&&g.jaccardLinkLengths(this.links,C,1.5),this.links.forEach(function(B){return B.length*=u.idealLinkLength});var L=new c.Calculator(m,this.links,function(B){return B.source},function(B){return B.target},function(B){return B.length}).DistanceMatrix(),I=x.Descent.createSquareMatrix(m,function(B,Y){return L[B][Y]}),R=x.Descent.createSquareMatrix(m,function(){return 2});this.links.forEach(function(B){var Y=B.source,V=B.target;return R[Y][V]=R[V][Y]=1}),this.descent=new x.Descent(this.result,I),this.descent.threshold=.001,this.descent.G=R,this.constraints&&(this.descent.project=new _.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var M=0;M{"use strict";function s(l,h){var f={};for(var u in l)f[u]={};for(var u in h)f[u]={};return Object.keys(f).length}function c(l,h){var f=0;for(var u in l)typeof h[u]<"u"&&++f;return f}function _(l,h,f,u){var m=function x(l,h){var f={},u=function(m,C){typeof f[m]>"u"&&(f[m]={}),f[m][C]={}};return l.forEach(function(m){var C=h.getSourceIndex(m),L=h.getTargetIndex(m);u(C,L),u(L,C)}),f}(l,u);l.forEach(function(C){var L=m[u.getSourceIndex(C)],I=m[u.getTargetIndex(C)];u.setLength(C,1+h*f(L,I))})}function d(l,h,f){var u=[],m=0,C=[],L=[];function I(K){K.index=K.lowlink=m++,C.push(K),K.onStack=!0;for(var X=0,W=K.out;X"u"?(I(at),K.lowlink=Math.min(K.lowlink,at.lowlink)):at.onStack&&(K.lowlink=Math.min(K.lowlink,at.index))}if(K.lowlink===K.index){for(var H=[];C.length&&((at=C.pop()).onStack=!1,H.push(at),at!==K););L.push(H.map(function(j){return j.id}))}}for(var R=0;R"u"&&I(st)}return L}Object.defineProperty(E,"__esModule",{value:!0}),E.symmetricDiffLinkLengths=function g(l,h,f){void 0===f&&(f=1),_(l,f,function(u,m){return Math.sqrt(s(u,m)-c(u,m))},h)},E.jaccardLinkLengths=function p(l,h,f){void 0===f&&(f=1),_(l,f,function(u,m){return Math.min(Object.keys(u).length,Object.keys(m).length)<1.1?0:c(u,m)/s(u,m)},h)},E.generateDirectedEdgeConstraints=function t(l,h,f,u){var m=d(l,h,u),C={};m.forEach(function(I,R){return I.forEach(function(M){return C[M]=R})});var L=[];return h.forEach(function(I){var R=u.getSourceIndex(I),M=u.getTargetIndex(I);C[R]!==C[M]&&L.push({axis:f,left:R,right:M,gap:u.getMinSeparation(I)})}),L},E.stronglyConnectedComponents=d},33900:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function h(f,u,m){this.source=f,this.target=u,this.type=m};E.PowerEdge=s;var c=function(){function h(f,u,m,C){var L=this;if(this.linkAccessor=m,this.modules=new Array(f),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new p);for(var I=0;I=this.R))return this.merge(m.a,m.b,f),!0}},h.prototype.nEdges=function(f,u){var m=f.incoming.intersection(u.incoming),C=f.outgoing.intersection(u.outgoing);return this.R-m.count()-C.count()},h.prototype.getGroupHierarchy=function(f){var u=this,m=[];return x(this.roots[0],{},m),this.allEdges().forEach(function(I){var R=u.modules[I.source],M=u.modules[I.target];f.push(new s(typeof R.gid>"u"?I.source:m[R.gid],typeof M.gid>"u"?I.target:m[M.gid],I.type))}),m},h.prototype.allEdges=function(){var f=[];return h.getEdges(this.roots[0],f),f},h.getEdges=function(f,u){f.forAll(function(m){m.getEdges(u),h.getEdges(m.children,u)})},h}();function x(h,f,u){h.forAll(function(m){if(m.isLeaf())f.leaves||(f.leaves=[]),f.leaves.push(m.id);else{var C=f;if(m.gid=u.length,!m.isIsland()||m.isPredefined()){if(C={id:m.gid},m.isPredefined())for(var L in m.definition)C[L]=m.definition[L];f.groups||(f.groups=[]),f.groups.push(m.gid),u.push(C)}x(m.children,C,u)}})}E.Configuration=c;var _=function(){function h(f,u,m,C,L){void 0===u&&(u=new t),void 0===m&&(m=new t),void 0===C&&(C=new p),this.id=f,this.outgoing=u,this.incoming=m,this.children=C,this.definition=L}return h.prototype.getEdges=function(f){var u=this;this.outgoing.forAll(function(m,C){m.forAll(function(L){f.push(new s(u.id,L.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return typeof this.definition<"u"},h}();E.Module=_;var p=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(f){var u=new h;return u.table=function g(h,f){var u={};for(var m in h)m in f&&(u[m]=h[m]);return u}(this.table,f.table),u},h.prototype.intersectionCount=function(f){return this.intersection(f).count()},h.prototype.contains=function(f){return f in this.table},h.prototype.add=function(f){this.table[f.id]=f},h.prototype.remove=function(f){delete this.table[f.id]},h.prototype.forAll=function(f){for(var u in this.table)f(this.table[u])},h.prototype.modules=function(){var f=[];return this.forAll(function(u){u.isPredefined()||f.push(u)}),f},h}();E.ModuleSet=p;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(f){var u=!1;return this.forAllModules(function(m){!u&&m.id==f&&(u=!0)}),u},h.prototype.add=function(f,u){(f in this.sets?this.sets[f]:this.sets[f]=new p).add(u),++this.n},h.prototype.remove=function(f,u){var m=this.sets[f];m.remove(u),0===m.count()&&delete this.sets[f],--this.n},h.prototype.forAll=function(f){for(var u in this.sets)f(this.sets[u],Number(u))},h.prototype.forAllModules=function(f){this.forAll(function(u,m){return u.forAll(f)})},h.prototype.intersection=function(f){var u=new h;return this.forAll(function(m,C){if(C in f.sets){var L=m.intersection(f.sets[C]),I=L.count();I>0&&(u.sets[C]=L,u.n+=I)}}),u},h}();E.LinkSets=t,E.getGroups=function l(h,f,u,m){for(var L=new c(h.length,f,u,m);L.greedyMerge(););var I=[],R=L.getGroupHierarchy(I);return I.forEach(function(M){var F=function(B){var Y=M[B];"number"==typeof Y&&(M[B]=h[Y])};F("source"),F("target")}),{groups:R,powerEdges:I}}},88866:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function x(_){this.elem=_,this.subheaps=[]}return x.prototype.toString=function(_){for(var g="",p=!1,t=0;t0)}return null}}return p.prototype.clear=function(){this._root=null,this.size=0},p.prototype.find=function(t){for(var d=this._root;null!==d;){var l=this._comparator(t,d.data);if(0===l)return d.data;d=d.get_child(l>0)}return null},p.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},p.prototype.upperBound=function(t){var d=this._comparator;return this._bound(t,function l(h,f){return d(f,h)})},p.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},p.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},p.prototype.iterator=function(){return new x(this)},p.prototype.each=function(t){for(var l,d=this.iterator();null!==(l=d.next());)t(l)},p.prototype.reach=function(t){for(var l,d=this.iterator();null!==(l=d.prev());)t(l)},p.prototype._bound=function(t,d){for(var l=this._root,h=this.iterator();null!==l;){var f=this._comparator(t,l.data);if(0===f)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(f>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(d(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},p}();E.TreeBase=c;var x=function(){function p(t){this._tree=t,this._ancestors=[],this._cursor=null}return p.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},p.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===d)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},p.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var d;do{if(d=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===d)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},p.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},p.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},p}();E.Iterator=x;var _=function(){function p(t){this.data=t,this.left=null,this.right=null,this.red=!0}return p.prototype.get_child=function(t){return t?this.right:this.left},p.prototype.set_child=function(t,d){t?this.right=d:this.left=d},p}(),g=function(p){function t(d){var l=p.call(this)||this;return l._root=null,l._comparator=d,l.size=0,l}return s(t,p),t.prototype.insert=function(d){var l=!1;if(null===this._root)this._root=new _(d),l=!0,this.size++;else{var h=new _(void 0),f=!1,u=!1,m=null,C=h,L=null,I=this._root;for(C.right=this._root;;){if(null===I?(I=new _(d),L.set_child(f,I),l=!0,this.size++):t.is_red(I.left)&&t.is_red(I.right)&&(I.red=!0,I.left.red=!1,I.right.red=!1),t.is_red(I)&&t.is_red(L)){var R=C.right===m;I===L.get_child(u)?C.set_child(R,t.single_rotate(m,!u)):C.set_child(R,t.double_rotate(m,!u))}var M=this._comparator(I.data,d);if(0===M)break;u=f,null!==m&&(C=m),m=L,L=I,I=I.get_child(f=M<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(d){if(null===this._root)return!1;var l=new _(void 0),h=l;h.right=this._root;for(var f=null,u=null,m=null,C=!0;null!==h.get_child(C);){var L=C;u=f,f=h,h=h.get_child(C);var I=this._comparator(d,h.data);if(C=I>0,0===I&&(m=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var R=t.single_rotate(h,C);f.set_child(L,R),f=R}else if(!t.is_red(h.get_child(!C))){var M=f.get_child(!L);if(null!==M)if(t.is_red(M.get_child(!L))||t.is_red(M.get_child(L))){var F=u.right===f;t.is_red(M.get_child(L))?u.set_child(F,t.double_rotate(f,L)):t.is_red(M.get_child(!L))&&u.set_child(F,t.single_rotate(f,L));var B=u.get_child(F);B.red=!0,h.red=!0,B.left.red=!1,B.right.red=!1}else f.red=!1,M.red=!0,h.red=!0}}return null!==m&&(m.data=h.data,f.set_child(f.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==m},t.is_red=function(d){return null!==d&&d.red},t.single_rotate=function(d,l){var h=d.get_child(!l);return d.set_child(!l,h.get_child(l)),h.set_child(l,d),d.red=!0,h.red=!1,h},t.double_rotate=function(d,l){return d.set_child(!l,t.single_rotate(d.get_child(!l),!l)),t.single_rotate(d,l)},t}(c);E.RBTree=g},4068:function(w,E,s){"use strict";var K,c=this&&this.__extends||(K=function(X,W){return(K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,H){at.__proto__=H}||function(at,H){for(var j in H)H.hasOwnProperty(j)&&(at[j]=H[j])})(X,W)},function(X,W){function at(){this.constructor=X}K(X,W),X.prototype=null===W?Object.create(W):(at.prototype=W.prototype,new at)});Object.defineProperty(E,"__esModule",{value:!0});var x=s(98237),_=s(94655);function g(K){return K.bounds=typeof K.leaves<"u"?K.leaves.reduce(function(X,W){return W.bounds.union(X)},p.empty()):p.empty(),typeof K.groups<"u"&&(K.bounds=K.groups.reduce(function(X,W){return g(W).union(X)},K.bounds)),K.bounds=K.bounds.inflate(K.padding),K.bounds}E.computeGroupBounds=g;var p=function(){function K(X,W,at,H){this.x=X,this.X=W,this.y=at,this.Y=H}return K.empty=function(){return new K(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},K.prototype.cx=function(){return(this.x+this.X)/2},K.prototype.cy=function(){return(this.y+this.Y)/2},K.prototype.overlapX=function(X){var W=this.cx(),at=X.cx();return W<=at&&X.x0?at[0]:null},K.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},K.lineIntersection=function(X,W,at,H,j,it,tt,U){var D=at-X,mt=tt-j,St=H-W,Mt=U-it,Et=Mt*D-mt*St;if(0==Et)return null;var Qt=X-j,Nt=W-it,dt=(mt*Nt-Mt*Qt)/Et,Zt=(D*Nt-St*Qt)/Et;return dt>=0&&dt<=1&&Zt>=0&&Zt<=1?{x:X+dt*D,y:W+dt*St}:null},K.prototype.inflate=function(X){return new K(this.x-X,this.X+X,this.y-X,this.Y+X)},K}();E.Rectangle=p,E.makeEdgeBetween=function t(K,X,W){var at=K.rayIntersection(X.cx(),X.cy())||{x:K.cx(),y:K.cy()},H=X.rayIntersection(K.cx(),K.cy())||{x:X.cx(),y:X.cy()},j=H.x-at.x,it=H.y-at.y,tt=Math.sqrt(j*j+it*it),U=tt-W;return{sourceIntersection:at,targetIntersection:H,arrowStart:{x:at.x+U*j/tt,y:at.y+U*it/tt}}},E.makeEdgeTo=function d(K,X,W){var at=X.rayIntersection(K.x,K.y);at||(at={x:X.cx(),y:X.cy()});var H=at.x-K.x,j=at.y-K.y,it=Math.sqrt(H*H+j*j);return{x:at.x-W*H/it,y:at.y-W*j/it}};var l=function K(X,W,at){this.v=X,this.r=W,this.pos=at,this.prev=u(),this.next=u()},h=function K(X,W,at){this.isOpen=X,this.v=W,this.pos=at};function f(K,X){return K.pos>X.pos?1:K.pos0&&(K[at].insert(j),j[H].insert(K))};W("next","prev"),W("prev","next")}};function L(K,X,W,at){void 0===at&&(at=!1);var H=K.padding,j=typeof K.groups<"u"?K.groups.length:0,it=typeof K.leaves<"u"?K.leaves.length:0,tt=j?K.groups.reduce(function(ie,ue){return ie.concat(L(ue,X,W,!0))},[]):[],U=(at?2:0)+it+j,D=new Array(U),mt=new Array(U),St=0,Mt=function(ie,ue){mt[St]=ie,D[St++]=ue};if(at){var Et=K.bounds,Qt=X.getCentre(Et),Nt=X.getSize(Et)/2,ft=X.getOpen(Et),dt=X.getClose(Et),wt=Qt-Nt+H/2,Zt=Qt+Nt-H/2;K.minVar.desiredPosition=wt,Mt(X.makeRect(ft,dt,wt,H),K.minVar),K.maxVar.desiredPosition=Zt,Mt(X.makeRect(ft,dt,Zt,H),K.maxVar)}it&&K.leaves.forEach(function(ie){return Mt(ie.bounds,ie.variable)}),j&&K.groups.forEach(function(ie){var ue=ie.bounds;Mt(X.makeRect(X.getOpen(ue),X.getClose(ue),X.getCentre(ue),X.getSize(ue)),ie.minVar)});var le=I(mt,D,X,W);return j&&(D.forEach(function(ie){ie.cOut=[],ie.cIn=[]}),le.forEach(function(ie){ie.left.cOut.push(ie),ie.right.cIn.push(ie)}),K.groups.forEach(function(ie){var ue=(ie.padding-X.getSize(ie.bounds))/2;ie.minVar.cIn.forEach(function(xe){return xe.gap+=ue}),ie.minVar.cOut.forEach(function(xe){xe.left=ie.maxVar,xe.gap+=ue})})),tt.concat(le)}function I(K,X,W,at){var H,j=K.length,it=2*j;console.assert(X.length>=j);var tt=new Array(it);for(H=0;Htt[at]&&(tt[at]=U)}it=tt})}},K.prototype.createAlignment=function(X){var W=this,at=this.nodes[X.offsets[0].node].variable;this.makeFeasible(X);var H="x"===X.axis?this.xConstraints:this.yConstraints;X.offsets.slice(1).forEach(function(j){H.push(new x.Constraint(at,W.nodes[j.node].variable,j.offset,!0))})},K.prototype.createConstraints=function(X){var W=this,at=function(H){return typeof H.type>"u"||"separation"===H.type};this.xConstraints=X.filter(function(H){return"x"===H.axis&&at(H)}).map(function(H){return W.createSeparation(H)}),this.yConstraints=X.filter(function(H){return"y"===H.axis&&at(H)}).map(function(H){return W.createSeparation(H)}),X.filter(function(H){return"alignment"===H.type}).forEach(function(H){return W.createAlignment(H)})},K.prototype.setupVariablesAndBounds=function(X,W,at,H){this.nodes.forEach(function(j,it){j.fixed?(j.variable.weight=j.fixedWeight?j.fixedWeight:1e3,at[it]=H(j)):j.variable.weight=1;var tt=(j.width||0)/2,U=(j.height||0)/2,D=X[it],mt=W[it];j.bounds=new p(D-tt,D+tt,mt-U,mt+U)})},K.prototype.xProject=function(X,W,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(X,W,X,at,function(H){return H.px},this.xConstraints,Y,function(H){return H.bounds.setXCentre(at[H.variable.index]=H.variable.position())},function(H){var j=at[H.minVar.index]=H.minVar.position(),it=at[H.maxVar.index]=H.maxVar.position(),tt=H.padding/2;H.bounds.x=j-tt,H.bounds.X=it+tt})},K.prototype.yProject=function(X,W,at){!this.rootGroup&&!this.yConstraints||this.project(X,W,W,at,function(H){return H.py},this.yConstraints,V,function(H){return H.bounds.setYCentre(at[H.variable.index]=H.variable.position())},function(H){var j=at[H.minVar.index]=H.minVar.position(),it=at[H.maxVar.index]=H.maxVar.position(),tt=H.padding/2;H.bounds.y=j-tt,H.bounds.Y=it+tt})},K.prototype.projectFunctions=function(){var X=this;return[function(W,at,H){return X.xProject(W,at,H)},function(W,at,H){return X.yProject(W,at,H)}]},K.prototype.project=function(X,W,at,H,j,it,tt,U,D){this.setupVariablesAndBounds(X,W,H,j),this.rootGroup&&this.avoidOverlaps&&(g(this.rootGroup),it=it.concat(tt(this.rootGroup))),this.solve(this.variables,it,at,H),this.nodes.forEach(U),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(D),g(this.rootGroup))},K.prototype.solve=function(X,W,at,H){var j=new x.Solver(X,W);j.setStartingPositions(at),j.setDesiredPositions(H),j.solve()},K}();E.Projection=st},33858:(w,E,s)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var c=s(88866),x=function t(d,l){this.id=d,this.distance=l},_=function t(d){this.id=d,this.neighbours=[]},g=function t(d,l,h){this.node=d,this.prev=l,this.d=h},p=function(){function t(d,l,h,f,u){this.n=d,this.es=l,this.neighbours=new Array(this.n);for(var m=this.n;m--;)this.neighbours[m]=new _(m);for(m=this.es.length;m--;){var C=this.es[m],L=h(C),I=f(C),R=u(C);this.neighbours[L].neighbours.push(new x(I,R)),this.neighbours[I].neighbours.push(new x(L,R))}}return t.prototype.DistanceMatrix=function(){for(var d=new Array(this.n),l=0;lM&&(I.d=M,I.prev=C,h.reduceKey(I.q,I,function(B,Y){return B.q=Y}))}}return u},t}();E.Calculator=p},98237:(w,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var s=function(){function d(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return d.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},d.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},d}();E.PositionStats=s;var c=function(){function d(l,h,f,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=f,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=f,this.equality=u}return d.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},d}();E.Constraint=c;var x=function(){function d(l,h,f){void 0===h&&(h=1),void 0===f&&(f=1),this.desiredPosition=l,this.weight=h,this.scale=f,this.offset=0}return d.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},d.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},d.prototype.visitNeighbours=function(l,h){var f=function(u,m){return u.active&&l!==m&&h(u,m)};this.cOut.forEach(function(u){return f(u,u.right)}),this.cIn.forEach(function(u){return f(u,u.left)})},d}();E.Variable=x;var _=function(){function d(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return d.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},d.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},d.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},d.LAGRANGIAN_TOLERANCE=-1e-4,d.ZERO_UPPERBOUND=-1e-10,d}();E.Solver=p,E.removeOverlapInOneDimension=function t(d,l,h){for(var f=d.map(function(et){return new x(et.desiredCenter)}),u=[],m=d.length,C=0;C{c.r($),c.d($,{FacilitiesModule:()=>Yn});var _=c(36895),v=c(94364),z=c(86353),H=c(36769),ht=c(69024),f=c(32105),p=c(9244),d=c(32080),Q=c(16074),ft=c(54037),gt=c(22158),Tt=c(82722),t=c(94650),u=c(65412),St=c(77968),Ct=c(15003),R=c(97392),C=c(4859),T=c(51572),k=c(10266),W=c(61283),At=c(4235),h=c(89383);function It(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function bt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function yt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const vt=function(){return{color:"black"}},Et=function(i){return["/facilities",i]};function xt(i,a){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,bt,3,0,"button",10),t.YNc(11,yt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,vt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,Et,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Dt=(()=>{class i extends((0,gt.T)()){constructor(e,s,n,o,r,m,S,b,D){super(),this.dialog=e,this.facilityManager=s,this.route=n,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=m,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=D,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(n=>{this.facility=n,this.entityStorageService.setEntity({id:n.id,beanName:n.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:Q.Eg.FACILITY},this.dialog.open(Q.rd,e).afterClosed().subscribe(n=>{n&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(ft.Y,e).afterClosed().subscribe(n=>{n&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(v.gz),t.Y36(St.D),t.Y36(ht.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(Ct.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"facility-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,It,1,0,"mat-spinner",1),t.YNc(3,xt,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},dependencies:[_.O5,_.PC,v.yS,R.Hw,C.lW,T.Ou,k.gM,W.A,At.W,h.X$],data:{animation:[H.Ji]}}),i})();var X=c(71135);function Lt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ot(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Zt=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Lt,1,0,"mat-spinner",0),t.YNc(1,Ot,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,X.L]}),i})();var Rt=c(34904),Ft=c(37380),Nt=c(98918),kt=c(4675);let wt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[W.A],data:{animation:[H.Ji]}}),i})();function Yt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ut(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Mt=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Yt,1,0,"mat-spinner",0),t.YNc(1,Ut,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,X.L]}),i})();var w=c(3848),Jt=c(19191),Ht=c(12651);function Qt(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Gt(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function Pt(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function qt(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Vt(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Pt,3,6,"ng-template",1),t.YNc(2,qt,1,3,"ng-template",2),t.qZA())}let Bt=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Qt,2,3,"ng-template",1),t.YNc(7,Gt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Vt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[_.O5,w.SP,w.uD,w.uX,w.Vc,Jt.Y,Ht.t,h.X$]}),i})();var jt=c(60113),Kt=c(16500),$t=c(92090),zt=c(258),g=c(24006),Y=c(68675),U=c(54004),G=c(19516),tt=c(47957),et=c(3238),F=c(59549),P=c(284),L=c(56709),it=c(31359);function Wt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Xt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(n))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Wt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function te(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(n))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,te,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(n))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function ae(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ne(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ae,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function oe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Xt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(n))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ee,7,9,"mat-form-field",4),t.YNc(6,se,7,9,"mat-form-field",4),t.YNc(7,ne,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function le(i,a){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let ce=(()=>{class i{constructor(e,s,n,o,r,m,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=n,this.membersManager=o,this.namePipe=r,this.translate=m,this.entityStorageService=S,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(n=>this.namePipe.transform(n.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(G.dp),t.Y36(h.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,oe,8,7,"div",1),t.YNc(5,le,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[_.mk,_.sg,_.O5,tt.XC,tt.ZL,et.ey,F.KE,P.Nt,g.Fj,g.JJ,g.oH,L.oG,_.Ov,h.X$,it.d]}),i})();var st=c(28361);let at=(()=>{class i{constructor(e,s,n){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=n,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},dependencies:[st.s]}),i})();var E=c(10036),A=c(95017),re=c(89466),ue=c(84385);function pe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function de(i,a){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function me(i,a){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function _e(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function he(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function fe(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ge(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Te(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Se(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ge,3,3,"mat-error",13),t.YNc(3,Te,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ce(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=n)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Ae(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,de,3,3,"mat-option",10),t.YNc(8,me,3,3,"mat-option",11),t.YNc(9,_e,2,2,"mat-option",12),t.qZA(),t.YNc(10,he,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.getServices())})("ngModelChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=n)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=n)})("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,fe,2,2,"mat-option",12),t.qZA()(),t.YNc(18,Se,4,4,"mat-form-field",16),t.YNc(19,Ce,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=n)}),t.ALo(22,"translate"),t.YNc(23,Ae,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let be=(()=>{class i{constructor(e,s,n,o){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(f.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pe,1,0,"mat-spinner",1),t.YNc(5,Ie,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[_.sg,_.O5,et.ey,F.TO,F.KE,P.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,C.lW,L.oG,u.uh,u.xY,u.H8,ue.gD,T.Ou,h.X$],data:{animation:[H.BQ]}}),i})();var nt=c(70242),O=c(98380),Z=c(96214),x=c(7434);function ye(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function ve(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function Ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function xe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function De(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Le(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Oe(i,a){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let ot=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=n,this.translate=o,this.notificator=r,this.authResolver=m,this.serviceManager=S,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(be,e).afterClosed().subscribe(n=>{n&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(re.u,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(d.x4),t.Y36(f.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ye,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,ve,3,3,"button",3),t.YNc(7,Ee,3,4,"button",4),t.YNc(8,xe,5,4,"button",5),t.YNc(9,De,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,Le,1,0,"mat-spinner",7),t.YNc(12,Oe,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,R.Hw,C.lW,T.Ou,nt.q,O.w,Z.t,x.L,h.X$]}),i})();var q=c(23256);function Ze(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(n))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Fe=(()=>{class i{constructor(e,s,n,o,r,m){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=m,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.aC),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ze,1,0,"mat-spinner",1),t.YNc(5,Re,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,x.L,q.Q,h.X$]}),i})();var l=c(30671);function Ne(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ke(i,a){1&i&&t._UZ(0,"th",15)}function we(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ye(i,a){1&i&&t._UZ(0,"tr",17)}function Ue(i,a){1&i&&t._UZ(0,"tr",18)}function Me(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ke,1,0,"th",11),t.YNc(10,we,2,1,"td",12),t.BQk(),t.YNc(11,Ye,1,0,"tr",13),t.YNc(12,Ue,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Je=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){this.dataSource=new l.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ne,1,0,"mat-spinner",1),t.YNc(5,Me,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();function He(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function Qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Ge(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Pe(i,a){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let lt=(()=>{class i{constructor(e,s,n,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=n,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=E.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(n=>n.id)},this.dialog.open(Fe,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Je,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,He,3,3,"button",2),t.YNc(5,Qe,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,Ge,1,0,"mat-spinner",5),t.YNc(8,Pe,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,x.L,q.Q,h.X$]}),i})();var V=c(50301);function qe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ve(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Be(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function je(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ve,3,3,"mat-error",9),t.YNc(6,Be,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let Ke=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,n]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(n.substring(0,n.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const n of e)s=s.concat(this.parseHostName(n));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const n=e.value.split("\n");for(const o of n)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),n=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let m=0;m{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new l.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,$e,1,0,"mat-spinner",1),t.YNc(5,ei,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var I=c(96308),N=c(18750);function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",14)(1,"mat-checkbox",15),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return t.KtG(n?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ai(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",16)(1,"mat-checkbox",17),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(n?m.selection.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.qZA()()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ni(i,a){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function oi(i,a){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function li(i,a){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function ci(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.hostname)}}function ri(i,a){1&i&&t._UZ(0,"tr",21)}const ct=function(i,a){return["/facilities",i,"hosts",a]};function ui(i,a){if(1&i&&t._UZ(0,"tr",22),2&i){const e=a.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ct,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ct,s.facilityId,e.id))}}function pi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function di(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let rt=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,si,2,3,"th",4),t.YNc(5,ai,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ni,3,3,"th",7),t.YNc(8,oi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,li,3,3,"th",7),t.YNc(11,ci,2,1,"td",10),t.BQk(),t.YNc(12,ri,1,0,"tr",11),t.YNc(13,ui,1,8,"tr",12),t.qZA()()(),t.YNc(14,pi,3,3,"perun-web-apps-alert",13),t.YNc(15,di,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[_.O5,v.rH,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,V.YH,N.l,h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function mi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function _i(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function hi(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function fi(i,a){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let ut=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(Ke,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ii,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,mi,3,3,"button",2),t.YNc(6,_i,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,hi,1,0,"mat-spinner",5),t.YNc(9,fi,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,rt,Z.t,x.L,h.X$]}),i})();function gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return t.KtG(n?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Ti(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(n?m.selection.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.qZA()()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Si(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Ci(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ai(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ii(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function bi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function yi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function vi(i,a){1&i&&t._UZ(0,"tr",22)}function Ei(i,a){1&i&&t._UZ(0,"tr",23)}function xi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Di(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Li=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new l.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,gi,2,3,"th",4),t.YNc(5,Ti,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Si,3,3,"th",7),t.YNc(8,Ci,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ai,3,3,"th",7),t.YNc(11,Ii,3,3,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,bi,3,3,"th",7),t.YNc(14,yi,2,1,"td",10),t.BQk(),t.YNc(15,vi,1,0,"tr",12),t.YNc(16,Ei,1,0,"tr",13),t.qZA()()(),t.YNc(17,xi,3,3,"perun-web-apps-alert",14),t.YNc(18,Di,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[_.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$,it.d]}),i})();function Oi(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function Zi(i,a){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ri=(()=>{class i{constructor(e,s,n){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=n,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const n of s){let o;this.usersManager.getUserById(n.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([n,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Oi,1,0,"mat-spinner",3),t.YNc(8,Zi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,Li,Z.t,x.L,h.X$]}),i})();var Fi=c(33604),Ni=c(61365),ki=c(71103),pt=c(53984);const wi=["list"];function Yi(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ui(i,a){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Mi=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.attributesManager=s,this.facilityManager=n,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=E.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(Q.wA,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(ki.n,e).afterClosed().subscribe(n=>{"saved"===n&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Ni.k,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.H8),t.Y36(f.IQ),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(wi,5),2&e){let n;t.iGM(n=t.CRH())&&(s.list=n.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Yi,1,0,"mat-spinner",5),t.YNc(15,Ui,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,pt.p,h.X$]}),i})();function Ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return t.KtG(n?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Hi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(n?m.selection.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.qZA()()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Qi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Gi(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Pi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function qi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Vi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Bi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.description)}}function ji(i,a){1&i&&t._UZ(0,"tr",22)}function Ki(i,a){1&i&&t._UZ(0,"tr",23)}function $i(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Wi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Ji,2,3,"th",4),t.YNc(5,Hi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Qi,3,3,"th",7),t.YNc(8,Gi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Pi,3,3,"th",7),t.YNc(11,qi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Vi,3,3,"th",7),t.YNc(14,Bi,2,1,"td",10),t.BQk(),t.YNc(15,ji,1,0,"tr",12),t.YNc(16,Ki,1,0,"tr",13),t.qZA()()(),t.YNc(17,$i,3,3,"perun-web-apps-alert",14),t.YNc(18,zi,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[_.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$]}),i})();function Xi(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function ts(i,a){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let es=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,Xi,1,0,"mat-spinner",3),t.YNc(7,ts,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,Wi,Z.t,x.L,h.X$]}),i})();var is=c(20057),ss=c(49546);function as(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ns(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function os(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function ls(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function cs(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function rs(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function us(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function ps(i,a){1&i&&t._UZ(0,"tr",19)}function ds(i,a){1&i&&t._UZ(0,"tr",20)}function ms(i,a){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ns,3,3,"th",11),t.YNc(10,os,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ls,3,3,"th",11),t.YNc(13,cs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,rs,3,3,"th",11),t.YNc(16,us,3,4,"td",12),t.BQk(),t.YNc(17,ps,1,0,"tr",15),t.YNc(18,ds,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let dt=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.taskManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new l.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,as,1,0,"mat-spinner",1),t.YNc(5,ms,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.uU,h.X$]}),i})();var _s=c(62109);function hs(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function fs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(n))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(n))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(n))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,fs,4,9,"mat-checkbox",8),t.YNc(6,gs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.change(n))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Ts,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Cs=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=n,this.tasksManager=o,this.serviceManager=r,this.translate=m,this.notificator=S,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=E.$V,this.dataSource=new l.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.xk),t.Y36(f.Ob),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,hs,1,0,"mat-spinner",1),t.YNc(5,Ss,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[_.O5,C.lW,L.oG,u.uh,u.xY,u.H8,T.Ou,k.gM,_s.C,h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function As(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,a){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let bs=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.tasksManager=n,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(h.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Is,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[_.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var B=c(28255);let ys=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function vs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",18)(1,"mat-checkbox",19),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function Es(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",20)(1,"mat-checkbox",21),t.NdJ("click",function(n){return n.stopPropagation()})("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n&&m.selection.toggle(r),t.KtG(m.selectionChange.emit())}),t.qZA()()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function xs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Ds(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Ls(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Os(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Ds,2,1,"div",24),t.YNc(2,Ls,2,0,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Zs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Rs(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.service.name)}}function Fs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Ns(i,a){1&i&&(t.TgZ(0,"mat-icon",27),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function ks(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.YNc(2,Ns,3,3,"mat-icon",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function ws(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function Ys(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Us(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function Ms(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function Js(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Hs(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Ms,3,4,"div",24),t.YNc(2,Js,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function Qs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function Gs(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function Ps(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function qs(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Gs,3,4,"div",24),t.YNc(2,Ps,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Vs(i,a){1&i&&t._UZ(0,"tr",28)}const mt=function(i,a){return["/facilities",i,"services-status",a]};function Bs(i,a){if(1&i&&t._UZ(0,"tr",29),2&i){const e=a.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,mt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,mt,e.facility.id,e.taskId))}}function js(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ks(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let $s=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,_.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,_.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,_.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,_.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const n=s.trim().toLowerCase(),o=r=>{let m="";return Object.values(r).forEach(S=>{"object"!=typeof S?m=m+" "+String(S):null!==S&&(m=m+" "+o(S))}),m.trim().toLowerCase()};return o(e).includes(n)},this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,vs,2,3,"th",4),t.YNc(5,Es,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,xs,3,3,"th",7),t.YNc(8,Os,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Zs,3,3,"th",7),t.YNc(11,Rs,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Fs,3,3,"th",7),t.YNc(14,ks,3,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ws,3,3,"th",7),t.YNc(17,Ys,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,Us,3,3,"th",7),t.YNc(20,Hs,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,Qs,3,3,"th",7),t.YNc(23,qs,3,2,"td",10),t.BQk(),t.YNc(24,Vs,1,0,"tr",15),t.YNc(25,Bs,1,18,"tr",16),t.qZA()()(),t.YNc(26,js,3,3,"perun-web-apps-alert",17),t.YNc(27,Ks,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[_.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,k.gM,N.l,V.YH,_.uU,h.X$,ys],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ta(i,a){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function ea(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function ia(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function sa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let aa=(()=>{class i{constructor(e,s,n,o,r,m,S,b,D){this.tasksManager=e,this.servicesManager=s,this.notificator=n,this.translate=o,this.authResolver=r,this.facilityManager=m,this.resourcesManager=S,this.dialog=b,this.entityStorageService=D,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=E.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(y=>this.successFPMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(y=>this.successAllowMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(y=>this.successBlockMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(y=>this.successDeleteMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(y=>this.allreadyDeletedMessage=y)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(dt,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(bs,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(n=>n.id)).subscribe(n=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:n},this.dialog.open(Cs,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.Ob),t.Y36(f.KK),t.Y36(d.V6),t.Y36(h.sK),t.Y36(d.x4),t.Y36(f.IQ),t.Y36(f.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,zs,3,4,"button",2),t.YNc(6,Ws,3,4,"button",2),t.YNc(7,Xs,3,4,"button",3),t.YNc(8,ta,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,ea,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ia,1,0,"mat-spinner",9),t.YNc(17,sa,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,k.gM,B.VK,B.OP,B.p6,Z.t,x.L,$s,h.X$]}),i})();var na=c(25610),oa=c(76023);function la(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",20)(1,"mat-checkbox",21),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return t.KtG(n?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ca(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(n?m.selection.toggle(r):null)})("click",function(n){return n.stopPropagation()}),t.qZA()()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ra(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function ua(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function pa(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function da(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.destination.destination," ")}}function ma(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function _a(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function ha(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function fa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function ga(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function Ta(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Sa(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ca(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Aa(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Ia(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function ba(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function ya(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function va(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,ya,3,1,"span",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function Ea(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function xa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Da(i,a){1&i&&t._UZ(0,"tr",27)}function La(i,a){if(1&i&&t._UZ(0,"tr",28),2&i){const e=a.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Oa(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Za(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Ra=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,la,2,3,"th",4),t.YNc(5,ca,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ra,3,3,"th",7),t.YNc(8,ua,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,pa,3,3,"th",7),t.YNc(11,da,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,ma,3,3,"th",7),t.YNc(14,_a,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,ha,3,3,"th",7),t.YNc(17,fa,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,ga,3,3,"th",7),t.YNc(20,Ta,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Sa,3,3,"th",7),t.YNc(23,Ca,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Aa,3,3,"th",7),t.YNc(26,Ia,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,ba,3,3,"th",7),t.YNc(29,va,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,Ea,3,3,"th",7),t.YNc(32,xa,2,1,"td",8),t.BQk(),t.YNc(33,Da,1,0,"tr",17),t.YNc(34,La,1,6,"tr",18),t.qZA()()(),t.YNc(35,Oa,3,3,"perun-web-apps-alert",19),t.YNc(36,Za,3,3,"perun-web-apps-alert",19)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(31),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[_.sg,_.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.YE,I.nU,O.w,N.l,_.uU,h.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Fa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Na(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function ka(i,a){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let wa=(()=>{class i{constructor(e,s,n,o,r){this.route=e,this.taskManager=s,this.authResolver=n,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=E.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(dt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(f.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA()(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Fa,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,Na,1,0,"mat-spinner",5),t.YNc(9,ka,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,x.L,Ra,h.X$]}),i})();var Ya=c(20872);let Ua=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})(),Ma=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();function Ja(i,a){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function Ha(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Qa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ha,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let Ga=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilityService=n,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ja,3,3,"div",1),t.YNc(5,Qa,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,R.Hw,C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();var M=c(86257),J=c(37084),Pa=c(60205),qa=c(90439),Va=c(30540);const Ba=["stepper"];function ja(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Ka(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=n)}),t.qZA()}}function $a(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function za(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=n)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Wa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Xa=function(){return["select","id","name","enabled","description"]};function tn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(n))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(n))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,Xa))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function en(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function sn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(n))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function an(i,a){1&i&&t._UZ(0,"mat-spinner",28)}function nn(i,a){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function on(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,sn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,an,1,0,"mat-spinner",25),t.YNc(15,nn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function ln(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const cn=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function rn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(n){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=n)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function un(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function pn(i,a){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function dn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function mn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function hn(i,a){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,_n))("owners",e.owners)}}function fn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const gn=function(){return["id","name"]};function Tn(i,a){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,gn))("hosts",e.hosts)}}function Sn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const Cn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},bn=function(){return["id","vo","name","description"]},yn=function(){return["id","name","email","logins","organization"]};function vn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,mn,1,0,"mat-spinner",25),t.YNc(11,hn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,fn,1,0,"mat-spinner",25),t.YNc(22,Tn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const n=t.oxw(2);return t.KtG(n.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(n){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=n)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Sn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Cn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,An))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,In))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,bn))("displayedUserColumns",t.DdM(75,yn))}}function En(i,a){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,vn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function xn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Dn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Ln(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const n=t.oxw();return t.KtG(n.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let On=(()=>{class i{constructor(e,s,n,o,r,m,S,b,D,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=n,this.cd=o,this.dialog=r,this.notificator=m,this.translate=S,this.router=b,this.guiAuthResolver=D,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(K=>this.saveMsg=K),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(K=>this.removeMsg=K)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Ga,e).afterClosed().subscribe(n=>{n&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(m=>s.add(m))}),0===s.size)return;const n=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(m=>m.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(m=>m.id===r.id)<0));for(const r of this.services)n.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe(()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},()=>{this.processing=!1,s()})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const n of e)this.attributesPerService.get(n.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const n of this.attributes)s.has(n.id)&&this.filteredAttributes.push(n)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(n=>{this.services=n}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(n=>{this.servicesPerPackage.set(e[s].id,new Set([...n.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(n=>{n=n.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,n.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(n=>{this.servicesPerPackage.get(n.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(n=>!s.has(n)))}setIntersect(e,s){return new Set([...e].filter(n=>s.has(n)))}setSymDif(e,s){const n=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(n,o),m=this.setDiff(o,n);return new Set([...r,...m])}filterService(e,s){const n=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(m=>n.add(m))}return n}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(n=>n.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let n=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){n=!1;break}n&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ua,e).afterClosed().subscribe(n=>{n&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ma,e).afterClosed().subscribe(n=>{n&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.H8),t.Y36(f.KK),t.Y36(f.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(h.sK),t.Y36(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(Ba,5),2&e){let n;t.iGM(n=t.CRH())&&(s.stepper=n.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,ja,2,3,"ng-template",4),t.YNc(8,Ka,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,$a,2,3,"ng-template",4),t.YNc(11,za,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Wa,2,3,"ng-template",4),t.YNc(14,tn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,en,2,3,"ng-template",4),t.YNc(17,on,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,ln,2,3,"ng-template",4),t.YNc(20,rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,un,2,3,"ng-template",4),t.YNc(23,pn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,dn,2,3,"ng-template",4),t.YNc(26,En,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,xn,3,3,"button",11),t.YNc(32,Dn,3,7,"button",12),t.YNc(33,Ln,3,3,"button",13),t.qZA()()),2&e){const n=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==n&&0!==n.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex!==n.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex===n.steps.length-1)}},dependencies:[_.O5,R.Hw,C.lW,T.Ou,M.C0,M.VY,M.Vq,M.BY,J.pp,J.ib,J.yz,J.yK,st.s,nt.q,rt,Pa.Q,O.w,x.L,pt.p,q.Q,qa.F,Va.J,at,ot,lt,ut,h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),_t=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var j=c(71992);const Zn=[{path:"",component:z.P,canActivateChild:[j.a],children:[{path:"",component:z.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Dt,canActivateChild:[j.a],children:[{path:"",component:Zt,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Bt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:na._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ft.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:aa,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:wa,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:ce,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:ot,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ut,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Mi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:wt,children:[{path:"",component:Mt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:lt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:at,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:es,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ri,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:On,canActivate:[_t],canDeactivate:[_t]}]},{path:":facilityId/resources/:resourceId",component:Nt.b,canActivateChild:[j.a],children:[{path:"",component:kt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:$t.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:zt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ss.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:oa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Ya.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:jt.t,children:[{path:"",component:Kt.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:is.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(Zn),v.Bz]}),i})();var Fn=c(14264),Nn=c(63189),kn=c(46374),wn=c(62876);let Yn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[G.dp],imports:[_.ez,Rn,Fn.m,Nn.r,Fi.ez,G.d4,kn.UsersModule,wn.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/958.bcbf776bc83cdfbb.js b/dist/apps/admin-gui/958.bcbf776bc83cdfbb.js new file mode 100644 index 000000000..08f16c0f7 --- /dev/null +++ b/dist/apps/admin-gui/958.bcbf776bc83cdfbb.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[958],{12958:(Un,$,c)=>{c.r($),c.d($,{FacilitiesModule:()=>Yn});var _=c(36895),v=c(94364),z=c(86353),H=c(36769),ht=c(69024),f=c(32105),p=c(9244),d=c(32080),Q=c(74281),ft=c(54037),gt=c(22158),Tt=c(82722),t=c(94650),u=c(65412),St=c(77968),Ct=c(15003),R=c(97392),C=c(4859),T=c(51572),k=c(10266),X=c(61283),At=c(4235),h=c(89383);function It(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function bt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.editFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA()()}}function yt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.deleteFacility())}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA()()}}const vt=function(){return{color:"black"}},xt=function(i){return["/facilities",i]};function Et(i,n){if(1&i&&(t.TgZ(0,"div")(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6)(5,"div",7)(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,bt,3,0,"button",10),t.YNc(11,yt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA()()(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,vt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,xt,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Dt=(()=>{class i extends((0,gt.T)()){constructor(e,s,a,o,r,m,S,b,D){super(),this.dialog=e,this.facilityManager=s,this.route=a,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=m,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=D,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(a=>{this.facility=a,this.entityStorageService.setEntity({id:a.id,beanName:a.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:Q.Eg.FACILITY},this.dialog.open(Q.rd,e).afterClosed().subscribe(a=>{a&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(ft.Y,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(v.gz),t.Y36(St.D),t.Y36(ht.V),t.Y36(d.x4),t.Y36(v.F0),t.Y36(d.fb),t.Y36(Ct.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"facility-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,It,1,0,"mat-spinner",1),t.YNc(3,Et,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},dependencies:[_.O5,_.PC,v.yS,R.Hw,C.lW,T.Ou,k.gM,X.A,At.W,h.X$],data:{animation:[H.Ji]}}),i})();var W=c(71135);function Lt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ot(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Zt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Lt,1,0,"mat-spinner",0),t.YNc(1,Ot,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,W.L]}),i})();var Rt=c(34904),Ft=c(37380),Nt=c(98918),kt=c(4675);let wt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},dependencies:[X.A],data:{animation:[H.Ji]}}),i})();function Yt(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ut(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Mt=(()=>{class i{constructor(e,s,a,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=a,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Yt,1,0,"mat-spinner",0),t.YNc(1,Ut,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,W.L]}),i})();var w=c(3848),Jt=c(19191),Ht=c(12651);function Qt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Gt(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function Pt(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function qt(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Vt(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Pt,3,6,"ng-template",1),t.YNc(2,qt,1,3,"ng-template",2),t.qZA())}let Bt=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group")(5,"mat-tab"),t.YNc(6,Qt,2,3,"ng-template",1),t.YNc(7,Gt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Vt,3,0,"mat-tab",3),t.qZA()()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},dependencies:[_.O5,w.SP,w.uD,w.uX,w.Vc,Jt.Y,Ht.t,h.X$]}),i})();var jt=c(60113),Kt=c(16500),$t=c(92090),zt=c(258),g=c(24006),Y=c(68675),U=c(54004),G=c(19516),tt=c(47957),et=c(3238),F=c(59549),P=c(284),L=c(56709),it=c(31359);function Xt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedService(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Wt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",7),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedSerVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9)(5,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("NOT_SELECTED"))}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onSelectedService("ALL"))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Xt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function te(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedResource(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedResVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,te,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ie(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedGroup(o))}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6)(1,"input",12),t.NdJ("keyup",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updatedGroupVal(a))}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA()()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function ae(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit,r=t.oxw(3);return t.KtG(r.onSelectedMember(o))}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ne(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ae,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA()()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function oe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Wt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.onOfferAllServices(a))}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ee,7,9,"mat-form-field",4),t.YNc(6,se,7,9,"mat-form-field",4),t.YNc(7,ne,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function le(i,n){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let ce=(()=>{class i{constructor(e,s,a,o,r,m,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=a,this.membersManager=o,this.namePipe=r,this.translate=m,this.entityStorageService=S,this.serviceField=new g.p4,this.resourceField=new g.p4,this.groupField=new g.p4,this.memberField=new g.p4,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,Y.O)(""),(0,U.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(a=>a.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(a=>this.namePipe.transform(a.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(G.dp),t.Y36(h.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,oe,8,7,"div",1),t.YNc(5,le,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},dependencies:[_.mk,_.sg,_.O5,tt.XC,tt.ZL,et.ey,F.KE,P.Nt,g.Fj,g.JJ,g.oH,L.oG,_.Ov,h.X$,it.d]}),i})();var st=c(28361);let at=(()=>{class i{constructor(e,s,a){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=a,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},dependencies:[st.s]}),i})();var x=c(10036),A=c(95017),re=c(89466),ue=c(84385);function pe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function de(i,n){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function me(i,n){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function _e(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function he(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function fe(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ge(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Te(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Se(i,n){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ge,3,3,"mat-error",13),t.YNc(3,Te,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.useFacilityHost=a)}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Ae(i,n){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ie(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field")(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,de,3,3,"mat-option",10),t.YNc(8,me,3,3,"mat-option",11),t.YNc(9,_e,2,2,"mat-option",12),t.qZA(),t.YNc(10,he,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.getServices())})("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.servicesOnFacility=a)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field")(15,"mat-select",15),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedType=a)})("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.destinationControl.updateValueAndValidity())}),t.ALo(16,"translate"),t.YNc(17,fe,2,2,"mat-option",12),t.qZA()(),t.YNc(18,Se,4,4,"mat-form-field",16),t.YNc(19,Ce,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field")(21,"mat-select",18),t.NdJ("ngModelChange",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.selectedPropagation=a)}),t.ALo(22,"translate"),t.YNc(23,Ae,2,2,"mat-option",12),t.qZA()(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let be=(()=>{class i{constructor(e,s,a,o){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.p4(void 0,g.kI.required),this.destinationControl=new g.p4("",this.getDestinationValidator()),this.emailControl=new g.p4("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(f.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pe,1,0,"mat-spinner",1),t.YNc(5,Ie,27,30,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},dependencies:[_.sg,_.O5,et.ey,F.TO,F.KE,P.Nt,g.Fj,g.JJ,g.Q7,g.oH,g.On,C.lW,L.oG,u.uh,u.xY,u.H8,ue.gD,T.Ou,h.X$],data:{animation:[H.BQ]}}),i})();var nt=c(70242),O=c(98380),Z=c(96214),E=c(7434);function ye(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function ve(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function xe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeDestination())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ee(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAllow())}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function De(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onBlock())}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function Le(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Oe(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let ot=(()=>{class i{constructor(e,s,a,o,r,m,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=a,this.translate=o,this.notificator=r,this.authResolver=m,this.serviceManager=S,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(be,e).afterClosed().subscribe(a=>{a&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(re.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(d.x4),t.Y36(f.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ye,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,ve,3,3,"button",3),t.YNc(7,xe,3,4,"button",4),t.YNc(8,Ee,5,4,"button",5),t.YNc(9,De,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,Le,1,0,"mat-spinner",7),t.YNc(12,Oe,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,R.Hw,C.lW,T.Ou,nt.q,O.w,Z.t,E.L,h.X$]}),i})();var q=c(23256);function Ze(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7)(5,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onAdd())}),t._uU(9),t.ALo(10,"translate"),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Fe=(()=>{class i{constructor(e,s,a,o,r,m){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=m,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.aC),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ze,1,0,"mat-spinner",1),t.YNc(5,Re,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,E.L,q.Q,h.X$]}),i})();var l=c(30671);function Ne(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ke(i,n){1&i&&t._UZ(0,"th",15)}function we(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ye(i,n){1&i&&t._UZ(0,"tr",17)}function Ue(i,n){1&i&&t._UZ(0,"tr",18)}function Me(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ke,1,0,"th",11),t.YNc(10,we,2,1,"td",12),t.BQk(),t.YNc(11,Ye,1,0,"tr",13),t.YNc(12,Ue,1,0,"tr",14),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Je=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.notificator=a,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){this.dataSource=new l.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ne,1,0,"mat-spinner",1),t.YNc(5,Me,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();function He(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCreate())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function Qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemove())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Ge(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Pe(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let lt=(()=>{class i{constructor(e,s,a,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=a,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(a=>a.id)},this.dialog.open(Fe,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Je,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,He,3,3,"button",2),t.YNc(5,Qe,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,Ge,1,0,"mat-spinner",5),t.YNc(8,Pe,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,E.L,q.Q,h.X$]}),i})();var V=c(50301);function qe(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ve(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Be(i,n){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function je(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"mat-form-field")(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ve,3,3,"mat-error",9),t.YNc(6,Be,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let Ke=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,a]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(a.substring(0,a.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.p4("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const a of e)s=s.concat(this.parseHostName(a));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const a=e.value.split("\n");for(const o of a)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),a=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let m=0;m{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=a,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new l.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,$e,1,0,"mat-spinner",1),t.YNc(5,ei,13,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var I=c(96308),N=c(18750);function si(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",14)(1,"mat-checkbox",15),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ai(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",16)(1,"mat-checkbox",17),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ni(i,n){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function oi(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function li(i,n){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function ci(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.hostname)}}function ri(i,n){1&i&&t._UZ(0,"tr",21)}const ct=function(i,n){return["/facilities",i,"hosts",n]};function ui(i,n){if(1&i&&t._UZ(0,"tr",22),2&i){const e=n.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ct,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ct,s.facilityId,e.id))}}function pi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function di(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let rt=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,si,2,3,"th",4),t.YNc(5,ai,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ni,3,3,"th",7),t.YNc(8,oi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,li,3,3,"th",7),t.YNc(11,ci,2,1,"td",10),t.BQk(),t.YNc(12,ri,1,0,"tr",11),t.YNc(13,ui,1,8,"tr",12),t.qZA()()(),t.YNc(14,pi,3,3,"perun-web-apps-alert",13),t.YNc(15,di,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},dependencies:[_.O5,v.rH,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,V.YH,N.l,h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function mi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.addHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeHost())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function hi(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function fi(i,n){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let ut=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(Ke,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ii,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,mi,3,3,"button",2),t.YNc(6,_i,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,hi,1,0,"mat-spinner",5),t.YNc(9,fi,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,rt,Z.t,E.L,h.X$]}),i})();function gi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Ti(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Si(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Ci(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ai(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ii(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function bi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function yi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function vi(i,n){1&i&&t._UZ(0,"tr",22)}function xi(i,n){1&i&&t._UZ(0,"tr",23)}function Ei(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Di(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Li=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new l.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,gi,2,3,"th",4),t.YNc(5,Ti,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Si,3,3,"th",7),t.YNc(8,Ci,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ai,3,3,"th",7),t.YNc(11,Ii,3,3,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,bi,3,3,"th",7),t.YNc(14,yi,2,1,"td",10),t.BQk(),t.YNc(15,vi,1,0,"tr",12),t.YNc(16,xi,1,0,"tr",13),t.qZA()()(),t.YNc(17,Ei,3,3,"perun-web-apps-alert",14),t.YNc(18,Di,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},dependencies:[_.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$,it.d]}),i})();function Oi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function Zi(i,n){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ri=(()=>{class i{constructor(e,s,a){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=a,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const a of s){let o;this.usersManager.getUserById(a.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([a,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Oi,1,0,"mat-spinner",3),t.YNc(8,Zi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,Li,Z.t,E.L,h.X$]}),i})();var Fi=c(33604),Ni=c(61365),ki=c(71103),pt=c(53984);const wi=["list"];function Yi(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ui(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Mi=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.attributesManager=s,this.facilityManager=a,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(Q.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(ki.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Ni.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.H8),t.Y36(f.IQ),t.Y36(v.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(wi,5),2&e){let a;t.iGM(a=t.CRH())&&(s.list=a.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Yi,1,0,"mat-spinner",5),t.YNc(15,Ui,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,pt.p,h.X$]}),i})();function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",15)(1,"mat-checkbox",16),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Hi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",17)(1,"mat-checkbox",18),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Qi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Gi(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Pi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function qi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Vi(i,n){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Bi(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.description)}}function ji(i,n){1&i&&t._UZ(0,"tr",22)}function Ki(i,n){1&i&&t._UZ(0,"tr",23)}function $i(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zi(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Xi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Ji,2,3,"th",4),t.YNc(5,Hi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Qi,3,3,"th",7),t.YNc(8,Gi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Pi,3,3,"th",7),t.YNc(11,qi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Vi,3,3,"th",7),t.YNc(14,Bi,2,1,"td",10),t.BQk(),t.YNc(15,ji,1,0,"tr",12),t.YNc(16,Ki,1,0,"tr",13),t.qZA()()(),t.YNc(17,$i,3,3,"perun-web-apps-alert",14),t.YNc(18,zi,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},dependencies:[_.O5,I.YE,I.nU,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,L.oG,O.w,N.l,h.X$]}),i})();function Wi(i,n){1&i&&t._UZ(0,"mat-spinner",5)}function ts(i,n){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let es=(()=>{class i{constructor(e,s,a,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=a,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,Wi,1,0,"mat-spinner",3),t.YNc(7,ts,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,T.Ou,Xi,Z.t,E.L,h.X$]}),i})();var is=c(20057),ss=c(49546);function as(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function ns(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function os(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function ls(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function cs(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function rs(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function us(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function ps(i,n){1&i&&t._UZ(0,"tr",19)}function ds(i,n){1&i&&t._UZ(0,"tr",20)}function ms(i,n){if(1&i&&(t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ns,3,3,"th",11),t.YNc(10,os,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ls,3,3,"th",11),t.YNc(13,cs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,rs,3,3,"th",11),t.YNc(16,us,3,4,"td",12),t.BQk(),t.YNc(17,ps,1,0,"tr",15),t.YNc(18,ds,1,0,"tr",16),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let dt=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.taskManager=a,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new l.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,as,1,0,"mat-spinner",1),t.YNc(5,ms,19,9,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},dependencies:[_.O5,C.lW,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,u.uh,u.xY,u.H8,T.Ou,_.uU,h.X$]}),i})();var _s=c(62109);function hs(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.change(a))}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Ts(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.disableCheckboxes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ss(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7)(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,fs,4,9,"mat-checkbox",8),t.YNc(6,gs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.change(a))}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Ts,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Cs=(()=>{class i{constructor(e,s,a,o,r,m,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=a,this.tasksManager=o,this.serviceManager=r,this.translate=m,this.notificator=S,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new l.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.xk),t.Y36(f.Ob),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,hs,1,0,"mat-spinner",1),t.YNc(5,Ss,18,21,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},dependencies:[_.O5,C.lW,L.oG,u.uh,u.xY,u.H8,T.Ou,k.gM,_s.C,h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function As(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,n){1&i&&(t.TgZ(0,"div",7)(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let bs=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.tasksManager=a,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(h.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Is,4,3,"div",2),t.TgZ(6,"div",3)(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},dependencies:[_.O5,C.lW,u.uh,u.xY,u.H8,T.Ou,h.X$]}),i})();var B=c(28255);let ys=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18)(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return a&&o.masterToggle(),t.KtG(o.selectionChange.emit())}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function xs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20)(1,"mat-checkbox",21),t.NdJ("click",function(a){return a.stopPropagation()})("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return a&&m.selection.toggle(r),t.KtG(m.selectionChange.emit())}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function Es(i,n){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Ds(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Ls(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Os(i,n){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Ds,2,1,"div",24),t.YNc(2,Ls,2,0,"div",24),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Zs(i,n){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Rs(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.service.name)}}function Fs(i,n){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Ns(i,n){1&i&&(t.TgZ(0,"mat-icon",27),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&i&&t.Q6J("matTooltip",t.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_DESTINATIONS_TOOLTIP"))}function ks(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.YNc(2,Ns,3,3,"mat-icon",26),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," "),t.xp6(1),t.Q6J("ngIf",!e.hasDestinations)}}function ws(i,n){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function Ys(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Us(i,n){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function Ms(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function Js(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Hs(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Ms,3,4,"div",24),t.YNc(2,Js,3,3,"div",24),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function Qs(i,n){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function Gs(i,n){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function Ps(i,n){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function qs(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Gs,3,4,"div",24),t.YNc(2,Ps,3,3,"div",24),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Vs(i,n){1&i&&t._UZ(0,"tr",28)}const mt=function(i,n){return["/facilities",i,"services-status",n]};function Bs(i,n){if(1&i&&t._UZ(0,"tr",29),2&i){const e=n.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,mt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,mt,e.facility.id,e.taskId))}}function js(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ks(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let $s=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,_.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,_.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return e.task?.startTime?(0,_.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return e.task?.endTime?(0,_.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const a=s.trim().toLowerCase(),o=r=>{let m="";return Object.values(r).forEach(S=>{"object"!=typeof S?m=m+" "+String(S):null!==S&&(m=m+" "+o(S))}),m.trim().toLowerCase()};return o(e).includes(a)},this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["class","align-text-bottom ml-1",3,"matTooltip",4,"ngIf"],[1,"align-text-bottom","ml-1",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,vs,2,3,"th",4),t.YNc(5,xs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Es,3,3,"th",7),t.YNc(8,Os,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Zs,3,3,"th",7),t.YNc(11,Rs,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Fs,3,3,"th",7),t.YNc(14,ks,3,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ws,3,3,"th",7),t.YNc(17,Ys,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,Us,3,3,"th",7),t.YNc(20,Hs,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,Qs,3,3,"th",7),t.YNc(23,qs,3,2,"td",10),t.BQk(),t.YNc(24,Vs,1,0,"tr",15),t.YNc(25,Bs,1,18,"tr",16),t.qZA()()(),t.YNc(26,js,3,3,"perun-web-apps-alert",17),t.YNc(27,Ks,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},dependencies:[_.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,v.rH,I.YE,I.nU,O.w,R.Hw,k.gM,N.l,V.YH,_.uU,h.X$,ys],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function zs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.forcePropagation())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Xs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.allow())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.block())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function ta(i,n){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function ea(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResults())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function ia(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function sa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.selectionChanged())}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let aa=(()=>{class i{constructor(e,s,a,o,r,m,S,b,D){this.tasksManager=e,this.servicesManager=s,this.notificator=a,this.translate=o,this.authResolver=r,this.facilityManager=m,this.resourcesManager=S,this.dialog=b,this.entityStorageService=D,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(y=>this.successFPMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(y=>this.successAllowMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(y=>this.successBlockMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(y=>this.successDeleteMessage=y),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(y=>this.allreadyDeletedMessage=y)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(dt,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(bs,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(a=>a.id)).subscribe(a=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:a},this.dialog.open(Cs,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.Ob),t.Y36(f.KK),t.Y36(d.V6),t.Y36(h.sK),t.Y36(d.x4),t.Y36(f.IQ),t.Y36(f.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,zs,3,4,"button",2),t.YNc(6,Xs,3,4,"button",2),t.YNc(7,Ws,3,4,"button",3),t.YNc(8,ta,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,ea,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA()(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ia,1,0,"mat-spinner",9),t.YNc(17,sa,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,k.gM,B.VK,B.OP,B.p6,Z.t,E.L,$s,h.X$]}),i})();var na=c(25610),oa=c(76023);function la(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",20)(1,"mat-checkbox",21),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return t.KtG(a?o.masterToggle():null)}),t.qZA()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ca(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22)(1,"mat-checkbox",23),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,m=t.oxw();return t.KtG(a?m.selection.toggle(r):null)})("click",function(a){return a.stopPropagation()}),t.qZA()()}if(2&i){const e=n.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ra(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function ua(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function pa(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function da(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.destination," ")}}function ma(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function _a(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function ha(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function fa(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function ga(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function Ta(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Sa(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Ca(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Aa(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Ia(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function ba(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function ya(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e)}}function va(i,n){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,ya,3,1,"span",26),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function xa(i,n){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function Ea(i,n){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Da(i,n){1&i&&t._UZ(0,"tr",27)}function La(i,n){if(1&i&&t._UZ(0,"tr",28),2&i){const e=n.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Oa(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Za(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Ra=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}exportDisplayedData(e){const s=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,a=s+this.dataSource.paginator.pageSize;(0,p.O6)((0,p.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(s,a),this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(s.child=a.first),t.iGM(a=t.CRH())&&(s.matSort=a.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportDisplayedData",function(o){return s.exportDisplayedData(o)})("exportAllData",function(o){return s.exportAllData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,la,2,3,"th",4),t.YNc(5,ca,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ra,3,3,"th",7),t.YNc(8,ua,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,pa,3,3,"th",7),t.YNc(11,da,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,ma,3,3,"th",7),t.YNc(14,_a,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,ha,3,3,"th",7),t.YNc(17,fa,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,ga,3,3,"th",7),t.YNc(20,Ta,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Sa,3,3,"th",7),t.YNc(23,Ca,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Aa,3,3,"th",7),t.YNc(26,Ia,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,ba,3,3,"th",7),t.YNc(29,va,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,xa,3,3,"th",7),t.YNc(32,Ea,2,1,"td",8),t.BQk(),t.YNc(33,Da,1,0,"tr",17),t.YNc(34,La,1,6,"tr",18),t.qZA()()(),t.YNc(35,Oa,3,3,"perun-web-apps-alert",19),t.YNc(36,Za,3,3,"perun-web-apps-alert",19)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(31),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},dependencies:[_.sg,_.O5,L.oG,l.BZ,l.fO,l.as,l.w1,l.Dz,l.nj,l.ge,l.ev,l.XQ,l.Gk,I.YE,I.nU,O.w,N.l,_.uU,h.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Fa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.removeTaskResult())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Na(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function ka(i,n){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let wa=(()=>{class i{constructor(e,s,a,o,r){this.route=e,this.taskManager=s,this.authResolver=a,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(dt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(v.gz),t.Y36(f.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA()(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Fa,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,Na,1,0,"mat-spinner",5),t.YNc(9,ka,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,C.lW,T.Ou,Z.t,E.L,Ra,h.X$]}),i})();var Ya=c(20872);let Ua=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})(),Ma=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2)(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA()()()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},dependencies:[C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();function Ja(i,n){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function Ha(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onKeep())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5)(1,"button",6),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onCancel())}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onDelete())}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ha,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let Ga=(()=>{class i{constructor(e,s,a,o,r){this.dialogRef=e,this.data=s,this.facilityService=a,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div")(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ja,3,3,"div",1),t.YNc(5,Qa,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},dependencies:[_.O5,R.Hw,C.lW,u.uh,u.xY,u.H8,h.X$]}),i})();var M=c(86257),J=c(37084),Pa=c(60205),qa=c(90439),Va=c(30540);const Ba=["stepper"];function ja(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function Ka(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.owners=a)}),t.qZA()}}function $a(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function za(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.hosts=a)}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Xa(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Wa=function(){return["select","id","name","enabled","description"]};function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.applyFilter(a))}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.packagesSelected(a))}),t.qZA()(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.singleServiceSelected())}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,Wa))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function en(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function sn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.filterAttributes(a))}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function an(i,n){1&i&&t._UZ(0,"mat-spinner",28)}function nn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function on(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18)(7,"button",22),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onRemoveAttributes())}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onSaveAttributes())}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,sn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,an,1,0,"mat-spinner",25),t.YNc(15,nn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function ln(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const cn=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function rn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(a){t.CHM(e);const o=t.oxw();return t.KtG(o.destinations=a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function un(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function pn(i,n){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function dn(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function mn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function hn(i,n){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,_n))("owners",e.owners)}}function fn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const gn=function(){return["id","name"]};function Tn(i,n){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,gn))("hosts",e.hosts)}}function Sn(i,n){1&i&&t._UZ(0,"mat-spinner",28)}const Cn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},bn=function(){return["id","vo","name","description"]},yn=function(){return["id","name","email","logins","organization"]};function vn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",34)(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,mn,1,0,"mat-spinner",25),t.YNc(11,hn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34)(13,"mat-expansion-panel-header")(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA()(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,fn,1,0,"mat-spinner",25),t.YNc(22,Tn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34)(24,"mat-expansion-panel-header")(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA()(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getNonEmptyAttributes())}),t.TgZ(34,"mat-expansion-panel-header")(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA()(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(a){t.CHM(e);const o=t.oxw(2);return t.KtG(o.destinationServiceMissing=a)}),t.TgZ(44,"mat-expansion-panel-header")(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Sn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel")(55,"mat-expansion-panel-header")(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA()(),t._UZ(60,"app-managers-page",47),t.qZA()()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Cn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,An))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,In))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,bn))("displayedUserColumns",t.DdM(75,yn))}}function xn(i,n){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,vn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function En(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.back())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function Dn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.next())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Ln(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return t.KtG(a.onFinish())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let On=(()=>{class i{constructor(e,s,a,o,r,m,S,b,D,y){this.attributesManager=e,this.serviceManager=s,this.facilityService=a,this.cd=o,this.dialog=r,this.notificator=m,this.translate=S,this.router=b,this.guiAuthResolver=D,this.entityStorageService=y,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.p4(!1,g.kI.requiredTrue),this.attributesControl=new g.p4(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe(K=>this.saveMsg=K),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe(K=>this.removeMsg=K)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Ga,e).afterClosed().subscribe(a=>{a&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(m=>s.add(m))}),0===s.size)return;const a=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(m=>m.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(m=>m.id===r.id)<0));for(const r of this.services)a.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe(()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},()=>{this.processing=!1,s()})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const a of e)this.attributesPerService.get(a.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const a of this.attributes)s.has(a.id)&&this.filteredAttributes.push(a)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!Array.isArray(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(a=>{this.services=a}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(a=>{this.servicesPerPackage.set(e[s].id,new Set([...a.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(a=>{a=a.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,a.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(a=>{this.servicesPerPackage.get(a.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(a=>!s.has(a)))}setIntersect(e,s){return new Set([...e].filter(a=>s.has(a)))}setSymDif(e,s){const a=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(a,o),m=this.setDiff(o,a);return new Set([...r,...m])}filterService(e,s){const a=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(m=>a.add(m))}return a}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(a=>a.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let a=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){a=!1;break}a&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ua,e).afterClosed().subscribe(a=>{a&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ma,e).afterClosed().subscribe(a=>{a&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.H8),t.Y36(f.KK),t.Y36(f.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(h.sK),t.Y36(v.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(Ba,5),2&e){let a;t.iGM(a=t.CRH())&&(s.stepper=a.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,ja,2,3,"ng-template",4),t.YNc(8,Ka,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,$a,2,3,"ng-template",4),t.YNc(11,za,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Xa,2,3,"ng-template",4),t.YNc(14,tn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,en,2,3,"ng-template",4),t.YNc(17,on,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,ln,2,3,"ng-template",4),t.YNc(20,rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,un,2,3,"ng-template",4),t.YNc(23,pn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,dn,2,3,"ng-template",4),t.YNc(26,xn,4,4,"ng-template",5),t.qZA()(),t.TgZ(27,"div",9)(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,En,3,3,"button",11),t.YNc(32,Dn,3,7,"button",12),t.YNc(33,Ln,3,3,"button",13),t.qZA()()),2&e){const a=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==a&&0!==a.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex!==a.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==a&&a.selectedIndex===a.steps.length-1)}},dependencies:[_.O5,R.Hw,C.lW,T.Ou,M.C0,M.VY,M.Vq,M.BY,J.pp,J.ib,J.yz,J.yK,st.s,nt.q,rt,Pa.Q,O.w,E.L,pt.p,q.Q,qa.F,Va.J,at,ot,lt,ut,h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),_t=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(v.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var j=c(71992);const Zn=[{path:"",component:z.P,canActivateChild:[j.a],children:[{path:"",component:z.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Dt,canActivateChild:[j.a],children:[{path:"",component:Zt,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Bt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:na._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ft.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:aa,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:wa,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:ce,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:ot,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ut,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Mi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:wt,children:[{path:"",component:Mt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:lt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:at,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:es,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ri,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:On,canActivate:[_t],canDeactivate:[_t]}]},{path:":facilityId/resources/:resourceId",component:Nt.b,canActivateChild:[j.a],children:[{path:"",component:kt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:$t.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:zt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ss.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:oa.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:Ya.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:jt.t,children:[{path:"",component:Kt.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:is.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[v.Bz.forChild(Zn),v.Bz]}),i})();var Fn=c(14264),Nn=c(63189),kn=c(46374),wn=c(62876);let Yn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[G.dp],imports:[_.ez,Rn,Fn.m,Nn.r,Fi.ez,G.d4,kn.UsersModule,wn.AdminModule]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/969.4d1ca096cb0d6969.js b/dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js similarity index 99% rename from dist/apps/admin-gui/969.4d1ca096cb0d6969.js rename to dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js index 691d5716b..2246bc9a3 100644 --- a/dist/apps/admin-gui/969.4d1ca096cb0d6969.js +++ b/dist/apps/admin-gui/969.fc54f7aaea7c7fb1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[969],{61283:(W,x,i)=>{i.d(x,{A:()=>D});var e=i(36769),_=i(94650),S=i(94364);let D=(()=>{class a{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=_.Xpm({type:a,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,N){1&n&&(_.TgZ(0,"div"),_._UZ(1,"router-outlet",null,0),_.qZA())},dependencies:[S.lC],data:{animation:[e.Ji]}}),a})()},71103:(W,x,i)=>{i.d(x,{n:()=>m});var e=i(65412),_=i(95017),S=i(32080),D=i(32105),a=i(10036),n=(i(33604),i(94650)),N=i(89383),t=i(36895),U=i(4859),G=i(51572),C=i(98380),P=i(7434),E=i(53984);const Z=["list"];function F(g,I){1&g&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function A(g,I){1&g&&n._UZ(0,"mat-spinner",11)}function v(g,I){if(1&g&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&g){const p=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",p.attributes)("filterValue",p.filterValue)("inDialog",!0)("selection",p.selected)("tableId",p.tableId)}}let m=(()=>{class g{constructor(p,b,l,f,y){this.dialogRef=p,this.data=b,this.attributesManager=l,this.notificator=f,this.translate=y,this.attributes=[],this.selected=new _.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(B=>this.saveSuccessMessage=B)}ngOnInit(){const p=new Array;let b,l,f,y,B,J,h,M;switch(this.data.notEmptyAttributes.forEach(c=>{p.push(c.id)}),this.data.entity){case"member":b=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":f=this.data.entityId;break;case"group":y=this.data.entityId;break;case"resource":B=this.data.entityId;break;case"facility":J=this.data.entityId;break;case"host":h=this.data.entityId;break;case"ues":M=this.data.entityId}switch(this.data.secondEntity){case"member":b=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":f=this.data.secondEntityId;break;case"group":y=this.data.secondEntityId;break;case"resource":B=this.data.secondEntityId;break;case"facility":J=this.data.secondEntityId;break;case"host":h=this.data.secondEntityId;break;case"ues":M=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(b,l,f,y,B,J,h,M).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!p.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let p=!1;for(const b of this.selected.selected)"java.util.ArrayList"===b.type&&0===b.value.length&&(p=!0),void 0===b.value&&(p=!0);if(p)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(p){this.filterValue=p}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(p){return!this.data.secondEntity||p.entity===`${this.data.entity}_${this.data.secondEntity}`}}return g.\u0275fac=function(p){return new(p||g)(n.Y36(e.so),n.Y36(e.WI),n.Y36(D.H8),n.Y36(S.V6),n.Y36(N.sK))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-create-attribute-dialog"]],viewQuery:function(p,b){if(1&p&&n.Gf(Z,5),2&p){let l;n.iGM(l=n.CRH())&&(b.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(p,b){1&p&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(f){return b.applyFilter(f)}),n.qZA(),n.YNc(6,F,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,A,1,0,"mat-spinner",5),n.YNc(9,v,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return b.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return b.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&p&&(n.Tol(b.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",b.showError),n.xp6(2),n.Q6J("ngIf",b.loading),n.xp6(1),n.Q6J("ngIf",!b.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===b.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,U.lW,e.uh,e.xY,e.H8,G.Ou,C.w,P.L,E.p,N.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),g})()},61365:(W,x,i)=>{i.d(x,{k:()=>F});var e=i(65412),_=i(30671),S=i(32080),D=i(32105),a=i(94650),L=i(89383),n=i(36895),N=i(4859),t=i(51572);function U(A,v){1&A&&a._UZ(0,"mat-spinner",6)}function G(A,v){1&A&&a._UZ(0,"th",15)}function C(A,v){if(1&A&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&A){const m=v.$implicit;a.xp6(1),a.Oqu(m.displayName)}}function P(A,v){1&A&&a._UZ(0,"tr",17)}function E(A,v){1&A&&a._UZ(0,"tr",18)}function Z(A,v){if(1&A&&(a.TgZ(0,"div",7)(1,"div"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",8),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",9),a.ynx(8,10),a.YNc(9,G,1,0,"th",11),a.YNc(10,C,2,1,"td",12),a.BQk(),a.YNc(11,P,1,0,"tr",13),a.YNc(12,E,1,0,"tr",14),a.qZA()()),2&A){const m=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",m.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",m.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",m.displayedColumns)}}let F=(()=>{class A{constructor(m,g,I,p,b){this.dialogRef=m,this.data=g,this.notificator=I,this.translate=p,this.attributesManager=b,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new _.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const m=[];for(const I of this.data.attributes)m.push(I.id);const g={};switch(g[this.data.entity]=this.data.entityId,g.attributes=m,void 0!==this.data.secondEntity&&(g[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeGroupAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeUserAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,m).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})}}return A.\u0275fac=function(m){return new(m||A)(a.Y36(e.so),a.Y36(e.WI),a.Y36(S.V6),a.Y36(L.sK),a.Y36(D.H8))},A.\u0275cmp=a.Xpm({type:A,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(m,g){1&m&&(a.TgZ(0,"div")(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,U,1,0,"mat-spinner",1),a.YNc(5,Z,13,9,"div",2),a.TgZ(6,"div",3)(7,"button",4),a.NdJ("click",function(){return g.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return g.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA()()()),2&m&&(a.Tol(g.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.xp6(2),a.Q6J("ngIf",g.loading),a.xp6(1),a.Q6J("ngIf",!g.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.xp6(2),a.Q6J("disabled",g.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,N.lW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,e.uh,e.xY,e.H8,t.Ou,L.X$]}),A})()},95406:(W,x,i)=>{i.d(x,{r:()=>J});var e=i(94650),_=i(24006),S=i(9244),D=i(28499),a=i(32105),L=i(32080),n=i(10266),N=i(71948),t=i(13469),U=i(78372),G=i(95698),C=i(63900),P=i(54004),E=i(36895),Z=i(3238),F=i(59549),A=i(284),v=i(84385),m=i(89383);function g(h,M){if(1&h&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&h){const c=M.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function I(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function p(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function b(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function f(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function y(h,M){if(1&h&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let B=(()=>{class h{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,U.b)(500),(0,G.q)(1),(0,C.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,P.U)(R=>R?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,R){for(const w of o)"login"===w&&(c.login=R)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const R=[_.kI.required,_.kI.pattern("^[a-z][a-z0-9_-]+$"),_.kI.maxLength(15),_.kI.minLength(2)];(0,S.mH)(o,R,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(w){return o.onNamespaceChanged(w)}),e.YNc(6,g,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,I,3,3,"mat-error",5),e.YNc(13,p,3,3,"mat-error",5),e.YNc(14,b,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,f,3,3,"mat-error",5),e.YNc(17,y,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[E.sg,E.O5,Z.ey,F.TO,F.KE,F.hX,A.Nt,_.Fj,_.JJ,_.JL,_.Q7,_.sg,_.u,v.gD,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),h})(),J=(()=>{class h{constructor(c,o,R){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=R,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),R=this.formGroup.get("passwordAgainCtrl"),w=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,S.mH)(w,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),R.disable(),R.setValue(""),w.disable(),w.dirty||w.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,S.mH)(c,[_.kI.required],[(0,D.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,S.mH)(o,[]))}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv),e.Y36(L.F5))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(w){return o.onNamespaceChanged(w)})("parsedRulesChanged",function(w){return o.parsedRulesFunction(w)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[_.JJ,_.JL,_.sg,_.u,n.gM,N.VQ,N.U0,t.G,B,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),h})()},12651:(W,x,i)=>{i.d(x,{t:()=>I});var e=i(32105),_=i(95017),S=i(9244),D=i(71103),a=i(16074),L=i(61365),N=(i(33604),i(10036)),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(96214),Z=i(7434),F=i(53984),A=i(89383);const v=["list"];function m(p,b){1&p&&t._UZ(0,"mat-spinner",7)}function g(p,b){if(1&p&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&p){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let I=(()=>{class p{constructor(l,f){this.attributesManagerService=l,this.dialog=f,this.attributes=[],this.selection=new _.Ov(!0,[]),this.filterValue="",this.tableId=N.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,S.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(D.n,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(a.wA,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onDelete(){const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(L.k,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}}return p.\u0275fac=function(l){return new(l||p)(t.Y36(e.H8),t.Y36(U.uw))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,f){if(1&l&&t.Gf(v,5),2&l){let y;t.iGM(y=t.CRH())&&(f.list=y.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,f){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return f.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return f.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return f.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return f.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(B){return f.applyFilter(B)}),t.qZA(),t.YNc(11,m,1,0,"mat-spinner",5),t.YNc(12,g,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[G.O5,C.lW,P.Ou,E.t,Z.L,F.p,A.X$]}),p})()},19191:(W,x,i)=>{i.d(x,{Y:()=>K});var e=i(32105),S=(i(33604),i(95017)),D=i(61365),a=i(9244),L=i(16074),n=i(71103),N=i(64080),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(98380),Z=i(96214),F=i(7434),A=i(53984),v=i(82322),m=i(45703),g=i(42377),I=i(89383);let p=(()=>{class u{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=s=>(0,a.bD)(s.user)}ngOnInit(){this.members=this.members.sort(a.fx)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.memberSelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[g.i,I.X$]}),u})(),b=(()=>{class u{constructor(){this.facilitySelected=new t.vpe,this.nameFunction=s=>s.name}ngOnInit(){this.facilities=this.facilities.sort(a.aC)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.facilitySelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.facilities)("searchFunction",r.nameFunction)("mainTextFunction",r.nameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[g.i,I.X$]}),u})();var l=i(74250);const f=["list"];function y(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function B(u,O){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&u){const s=t.oxw();t.xp6(1),t.Oqu(s.noEntityMessage)}}function J(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("firstSelectedGroup",s.specificSecondEntity)("displayStatus",!0)("groups",s.entityValues)}}function h(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("resources",s.entityValues)}}function M(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("members",s.entityValues)}}function c(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("facilities",s.entityValues)}}function o(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("users",s.entityValues)}}function R(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function w(u,O){if(1&u&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&u){const s=t.oxw(2);t.Q6J("attributes",s.attributes)("filterValue",s.filterValue)("selection",s.selection)}}function Q(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,J,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,h,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,M,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.getAttributes(d.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onAdd(d.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onSave(d.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onDelete(d.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(d){t.CHM(s);const T=t.oxw();return t.KtG(T.applyFilter(d))}),t.qZA(),t.YNc(18,R,1,0,"mat-spinner",1),t.YNc(19,w,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&u){const s=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===s.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",s.innerLoading),t.xp6(1),t.Q6J("ngIf",!s.innerLoading)}}let K=(()=>{class u{constructor(s,r,d,T,V,Y){this.attributesManagerService=s,this.resourcesManagerService=r,this.facilitiesManagerService=d,this.groupsManagerService=T,this.membersManager=V,this.dialog=Y,this.entityValues=[],this.attributes=[],this.selection=new S.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const d=r.enrichedResource.resource;return d.status=r.status,d}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[N.r.MEMBER_CORE_ID]).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const d=r.enrichedGroup.group;return d.status=r.status,d}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let s=this.entityValues[0];const r=(0,a.vL)(this.entityKey());if(r)for(const d of this.entityValues)if(d.id===r[0]){s=d;break}this.specifySecondEntity(s)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(s){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(s){this.noEntityMessage=`No ${s} assigned`}onSave(s){this.list.updateMapAttributes();const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected},this.dialog.open(L.wA,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onDelete(s){const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(D.k,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onAdd(s){const r=(0,a.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}specifySecondEntity(s){s&&(this.specificSecondEntity=s,this.getAttributes(this.specificSecondEntity.id))}applyFilter(s){this.filterValue=s}}return u.\u0275fac=function(s){return new(s||u)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(U.uw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(s,r){if(1&s&&t.Gf(f,5),2&s){let d;t.iGM(d=t.CRH())&&(r.list=d.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(s,r){1&s&&(t.TgZ(0,"div",0),t.YNc(1,y,1,0,"mat-spinner",1),t.YNc(2,B,2,1,"perun-web-apps-alert",2),t.YNc(3,Q,20,19,"div",3),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[G.O5,C.lW,P.Ou,E.w,Z.t,F.L,A.p,v.h,m.L,p,b,l.S,I.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),u})()},71135:(W,x,i)=>{i.d(x,{L:()=>G});var e=i(94650),_=i(65412),S=i(94364),D=i(36895),a=i(97392),L=i(3238),n=i(89383),N=i(64597);function t(C,P){if(1&C&&(e.TgZ(0,"div",3)(1,"a",4),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&C){const E=P.$implicit;e.xp6(1),e.Gre("",E.style," item-itself"),e.Q6J("routerLink",E.url),e.uIk("data-cy",e.lcZ(2,7,e.lcZ(3,9,E.label))),e.xp6(3),e.Q6J("svgIcon",E.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,11,E.label)," ")}}function U(C,P){if(1&C&&(e.TgZ(0,"div",1),e.YNc(1,t,7,13,"div",2),e.qZA()),2&C){const E=e.oxw();e.xp6(1),e.Q6J("ngForOf",E.items)}}let G=(()=>{class C{constructor(E,Z){this.dialog=E,this.route=Z,this.size="large"}ngOnInit(){this.route.params.subscribe(E=>{this.voId=Number(E.voId)})}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(_.uw),e.Y36(S.gz))},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(E,Z){1&E&&e.YNc(0,U,2,1,"div",0),2&E&&e.Q6J("ngIf","small"===Z.size)},dependencies:[D.sg,D.O5,S.yS,a.Hw,L.wG,n.X$,N.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),C})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[969],{61283:(W,x,i)=>{i.d(x,{A:()=>D});var e=i(36769),_=i(94650),S=i(94364);let D=(()=>{class a{prepareRoute(n){return n?.activatedRouteData&&null!==n?.activatedRouteData.animation}}return a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=_.Xpm({type:a,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(n,N){1&n&&(_.TgZ(0,"div"),_._UZ(1,"router-outlet",null,0),_.qZA())},dependencies:[S.lC],data:{animation:[e.Ji]}}),a})()},71103:(W,x,i)=>{i.d(x,{n:()=>m});var e=i(65412),_=i(95017),S=i(32080),D=i(32105),a=i(10036),n=(i(33604),i(94650)),N=i(89383),t=i(36895),U=i(4859),G=i(51572),C=i(98380),P=i(7434),E=i(53984);const Z=["list"];function F(g,I){1&g&&(n.TgZ(0,"perun-web-apps-alert",10),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&g&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function A(g,I){1&g&&n._UZ(0,"mat-spinner",11)}function v(g,I){if(1&g&&n._UZ(0,"perun-web-apps-attributes-list",12,13),2&g){const p=n.oxw();n.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",p.attributes)("filterValue",p.filterValue)("inDialog",!0)("selection",p.selected)("tableId",p.tableId)}}let m=(()=>{class g{constructor(p,b,l,f,y){this.dialogRef=p,this.data=b,this.attributesManager=l,this.notificator=f,this.translate=y,this.attributes=[],this.selected=new _.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=a.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(B=>this.saveSuccessMessage=B)}ngOnInit(){const p=new Array;let b,l,f,y,B,J,h,M;switch(this.data.notEmptyAttributes.forEach(c=>{p.push(c.id)}),this.data.entity){case"member":b=this.data.entityId;break;case"user":l=this.data.entityId;break;case"vo":f=this.data.entityId;break;case"group":y=this.data.entityId;break;case"resource":B=this.data.entityId;break;case"facility":J=this.data.entityId;break;case"host":h=this.data.entityId;break;case"ues":M=this.data.entityId}switch(this.data.secondEntity){case"member":b=this.data.secondEntityId;break;case"user":l=this.data.secondEntityId;break;case"vo":f=this.data.secondEntityId;break;case"group":y=this.data.secondEntityId;break;case"resource":B=this.data.secondEntityId;break;case"facility":J=this.data.secondEntityId;break;case"host":h=this.data.secondEntityId;break;case"ues":M=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(b,l,f,y,B,J,h,M).subscribe(c=>{this.attributes=c,this.attributes=this.attributes.filter(o=>!p.includes(o.id)&&this.twoEntityValid(o)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let p=!1;for(const b of this.selected.selected)"java.util.ArrayList"===b.type&&0===b.value.length&&(p=!0),void 0===b.value&&(p=!0);if(p)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(p){this.filterValue=p}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(p){return!this.data.secondEntity||p.entity===`${this.data.entity}_${this.data.secondEntity}`}}return g.\u0275fac=function(p){return new(p||g)(n.Y36(e.so),n.Y36(e.WI),n.Y36(D.H8),n.Y36(S.V6),n.Y36(N.sK))},g.\u0275cmp=n.Xpm({type:g,selectors:[["app-create-attribute-dialog"]],viewQuery:function(p,b){if(1&p&&n.Gf(Z,5),2&p){let l;n.iGM(l=n.CRH())&&(b.list=l.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(p,b){1&p&&(n.TgZ(0,"div")(1,"div",0)(2,"h1",1),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"perun-web-apps-immediate-filter",2),n.NdJ("filter",function(f){return b.applyFilter(f)}),n.qZA(),n.YNc(6,F,3,3,"perun-web-apps-alert",3),n.qZA(),n.TgZ(7,"div",4),n.YNc(8,A,1,0,"mat-spinner",5),n.YNc(9,v,2,6,"perun-web-apps-attributes-list",6),n.qZA(),n.TgZ(10,"div",7)(11,"button",8),n.NdJ("click",function(){return b.onCancel()}),n._uU(12),n.ALo(13,"translate"),n.qZA(),n.TgZ(14,"button",9),n.NdJ("click",function(){return b.onSave()}),n._uU(15),n.ALo(16,"translate"),n.qZA()()()),2&p&&(n.Tol(b.data.style),n.xp6(3),n.Oqu(n.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),n.xp6(2),n.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),n.xp6(1),n.Q6J("ngIf",b.showError),n.xp6(2),n.Q6J("ngIf",b.loading),n.xp6(1),n.Q6J("ngIf",!b.loading),n.xp6(3),n.hij(" ",n.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===b.selected.selected.length),n.xp6(1),n.hij(" ",n.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},dependencies:[t.O5,U.lW,e.uh,e.xY,e.H8,G.Ou,C.w,P.L,E.p,N.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),g})()},61365:(W,x,i)=>{i.d(x,{k:()=>F});var e=i(65412),_=i(30671),S=i(32080),D=i(32105),a=i(94650),L=i(89383),n=i(36895),N=i(4859),t=i(51572);function U(A,v){1&A&&a._UZ(0,"mat-spinner",6)}function G(A,v){1&A&&a._UZ(0,"th",15)}function C(A,v){if(1&A&&(a.TgZ(0,"td",16),a._uU(1),a.qZA()),2&A){const m=v.$implicit;a.xp6(1),a.Oqu(m.displayName)}}function P(A,v){1&A&&a._UZ(0,"tr",17)}function E(A,v){1&A&&a._UZ(0,"tr",18)}function Z(A,v){if(1&A&&(a.TgZ(0,"div",7)(1,"div"),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.TgZ(4,"div",8),a._uU(5),a.ALo(6,"translate"),a.qZA(),a.TgZ(7,"table",9),a.ynx(8,10),a.YNc(9,G,1,0,"th",11),a.YNc(10,C,2,1,"td",12),a.BQk(),a.YNc(11,P,1,0,"tr",13),a.YNc(12,E,1,0,"tr",14),a.qZA()()),2&A){const m=a.oxw();a.xp6(2),a.hij(" ",a.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),a.xp6(3),a.hij(" ",a.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),a.xp6(2),a.Q6J("dataSource",m.dataSource),a.xp6(4),a.Q6J("matHeaderRowDef",m.displayedColumns),a.xp6(1),a.Q6J("matRowDefColumns",m.displayedColumns)}}let F=(()=>{class A{constructor(m,g,I,p,b){this.dialogRef=m,this.data=g,this.notificator=I,this.translate=p,this.attributesManager=b,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new _.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const m=[];for(const I of this.data.attributes)m.push(I.id);const g={};switch(g[this.data.entity]=this.data.entityId,g.attributes=m,void 0!==this.data.secondEntity&&(g[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeGroupAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeUserAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,m).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,m).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(m=>{this.notificator.showSuccess(m),this.dialogRef.close(!0)})}}return A.\u0275fac=function(m){return new(m||A)(a.Y36(e.so),a.Y36(e.WI),a.Y36(S.V6),a.Y36(L.sK),a.Y36(D.H8))},A.\u0275cmp=a.Xpm({type:A,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(m,g){1&m&&(a.TgZ(0,"div")(1,"h1",0),a._uU(2),a.ALo(3,"translate"),a.qZA(),a.YNc(4,U,1,0,"mat-spinner",1),a.YNc(5,Z,13,9,"div",2),a.TgZ(6,"div",3)(7,"button",4),a.NdJ("click",function(){return g.onCancel()}),a._uU(8),a.ALo(9,"translate"),a.qZA(),a.TgZ(10,"button",5),a.NdJ("click",function(){return g.onSubmit()}),a._uU(11),a.ALo(12,"translate"),a.qZA()()()),2&m&&(a.Tol(g.theme),a.xp6(2),a.Oqu(a.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),a.xp6(2),a.Q6J("ngIf",g.loading),a.xp6(1),a.Q6J("ngIf",!g.loading),a.xp6(3),a.hij(" ",a.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),a.xp6(2),a.Q6J("disabled",g.loading),a.xp6(1),a.hij(" ",a.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},dependencies:[n.O5,N.lW,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,e.uh,e.xY,e.H8,t.Ou,L.X$]}),A})()},95406:(W,x,i)=>{i.d(x,{r:()=>J});var e=i(94650),_=i(24006),S=i(9244),D=i(28499),a=i(32105),L=i(32080),n=i(10266),N=i(71948),t=i(13469),U=i(78372),G=i(95698),C=i(63900),P=i(54004),E=i(36895),Z=i(3238),F=i(59549),A=i(284),v=i(84385),m=i(89383);function g(h,M){if(1&h&&(e.TgZ(0,"mat-option",7),e._uU(1),e.qZA()),2&h){const c=M.$implicit;e.Q6J("value",c),e.xp6(1),e.hij(" ",c," ")}}function I(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.FIELD_EMPTY")))}function p(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_EXISTS")))}function b(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_FORMAT")))}function l(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_LONG")))}function f(h,M){1&h&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_SHORT")))}function y(h,M){if(1&h&&(e.TgZ(0,"span",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&h){const c=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"Not selected"===c.formGroup.get("namespaceCtrl").value?"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED":"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}let B=(()=>{class h{constructor(c,o){this.membersManagerService=c,this.usersManagerService=o,this.filteredNamespaces=null,this.namespaceChanged=new e.vpe,this.parsedRulesChanged=new e.vpe,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map}ngOnInit(){this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(c=>{this.namespaceRules=c,this.parseNamespaceRules()}),this.onNamespaceChanged("Not selected")}existingLoginValidator(){return c=>{let o=this.formGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,c.valueChanges.pipe((0,U.b)(500),(0,G.q)(1),(0,C.w)(()=>this.usersManagerService.isLoginAvailable(o,c.value).pipe((0,P.U)(R=>R?null:{loginExists:!0}))))}}parseNamespaceRules(){for(const c of this.namespaceRules)if(null===this.filteredNamespaces||!this.filteredNamespaces.includes(c.namespaceName)){this.namespaceOptions.push(c.namespaceName);const o={login:"disabled"};this.parseAttributes(o,c.requiredAttributes,"required"),this.parseAttributes(o,c.optionalAttributes,"optional"),this.parsedRules.set(c.namespaceName,o)}this.parsedRulesChanged.emit(this.parsedRules)}parseAttributes(c,o,R){for(const w of o)"login"===w&&(c.login=R)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("loginCtrl");if("Not selected"!==c)if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const R=[_.kI.required,_.kI.pattern("^[a-z][a-z0-9_-]+$"),_.kI.maxLength(15),_.kI.minLength(2)];(0,S.mH)(o,R,[this.existingLoginValidator()])}else o.disable(),o.setValue("");this.namespaceChanged.emit(c)}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-for-namespace"]],inputs:{formGroup:"formGroup",filteredNamespaces:"filteredNamespaces"},outputs:{namespaceChanged:"namespaceChanged",parsedRulesChanged:"parsedRulesChanged"},decls:18,vars:16,consts:[[1,"display-flex",3,"formGroup"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],[4,"ngIf"],["class","input-disabled",4,"ngIf"],[3,"value"],[1,"input-disabled"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"mat-form-field")(2,"mat-label"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-select",1),e.NdJ("valueChange",function(w){return o.onNamespaceChanged(w)}),e.YNc(6,g,2,2,"mat-option",2),e.qZA()(),e.TgZ(7,"mat-form-field",3)(8,"mat-label"),e._uU(9),e.ALo(10,"translate"),e.qZA(),e._UZ(11,"input",4),e.YNc(12,I,3,3,"mat-error",5),e.YNc(13,p,3,3,"mat-error",5),e.YNc(14,b,3,3,"mat-error",5),e.YNc(15,l,3,3,"mat-error",5),e.YNc(16,f,3,3,"mat-error",5),e.YNc(17,y,3,3,"span",6),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(3),e.Oqu(e.lcZ(4,12,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.NAMESPACE")),e.xp6(3),e.Q6J("ngForOf",o.namespaceOptions),e.xp6(1),e.Q6J("floatLabel",o.formGroup.get("loginCtrl").disabled?"always":null),e.xp6(2),e.Oqu(e.lcZ(10,14,"SHARED.COMPONENTS.LOGIN_FOR_NAMESPACE.LOGIN")),e.xp6(2),e.Q6J("hidden",o.formGroup.get("loginCtrl").disabled),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("required")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("loginExists")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("pattern")&&!o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("maxlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",o.formGroup.get("loginCtrl").disabled))},dependencies:[E.sg,E.O5,Z.ey,F.TO,F.KE,F.hX,A.Nt,_.Fj,_.JJ,_.JL,_.Q7,_.sg,_.u,v.gD,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}"]}),h})(),J=(()=>{class h{constructor(c,o,R){this.membersManagerService=c,this.usersManagerService=o,this.apiRequestConfiguration=R,this.filteredNamespace=null,this.parsedRulesOutput=new e.vpe,this.selectedNamespace=null,this.parsedRules=new Map}parsedRulesFunction(c){this.parsedRules=c,this.parsedRulesOutput.emit(c)}onNamespaceChanged(c){this.selectedNamespace=c.toLowerCase();const o=this.formGroup.get("passwordCtrl"),R=this.formGroup.get("passwordAgainCtrl"),w=this.formGroup.get("generatePasswordCtrl");"Not selected"!==c?((0,S.mH)(w,[]),this.passwordOptionChanged()):(o.disable(),o.setValue(""),R.disable(),R.setValue(""),w.disable(),w.dirty||w.setValue(!0))}passwordOptionChanged(){const c=this.formGroup.get("passwordCtrl"),o=this.formGroup.get("passwordAgainCtrl");this.formGroup.get("generatePasswordCtrl").value?(c.disable(),c.setValue(""),o.disable(),o.setValue("")):((0,S.mH)(c,[_.kI.required],[(0,D.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,S.mH)(o,[]))}}return h.\u0275fac=function(c){return new(c||h)(e.Y36(a.uq),e.Y36(a.Fv),e.Y36(L.F5))},h.\u0275cmp=e.Xpm({type:h,selectors:[["app-login-password-form-with-generate-option"]],inputs:{formGroup:"formGroup",filteredNamespace:"filteredNamespace"},outputs:{parsedRulesOutput:"parsedRulesOutput"},decls:12,vars:23,consts:[[1,"display-flex",3,"formGroup"],[3,"formGroup","filteredNamespaces","namespaceChanged","parsedRulesChanged"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[1,"display-flex"],[3,"formGroup","namespace","passwordRequired","tooltipPwdDisabledForNamespace"]],template:function(c,o){1&c&&(e.TgZ(0,"div",0)(1,"app-login-for-namespace",1),e.NdJ("namespaceChanged",function(w){return o.onNamespaceChanged(w)})("parsedRulesChanged",function(w){return o.parsedRulesFunction(w)}),e.qZA(),e.TgZ(2,"mat-radio-group",2),e.NdJ("ngModelChange",function(){return o.passwordOptionChanged()}),e.ALo(3,"translate"),e.TgZ(4,"mat-radio-button",3),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-radio-button",3),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"div",4),e._UZ(11,"perun-web-apps-password-form",5),e.qZA()()),2&c&&(e.Q6J("formGroup",o.formGroup),e.xp6(1),e.Q6J("formGroup",o.formGroup)("filteredNamespaces",o.filteredNamespace),e.xp6(1),e.s9C("matTooltip",e.lcZ(3,17,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),e.Q6J("matTooltipDisabled","Not selected"!==o.formGroup.get("namespaceCtrl").value),e.xp6(2),e.Q6J("checked",o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!0),e.xp6(1),e.hij(" ",e.lcZ(6,19,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),e.xp6(2),e.Q6J("checked",!o.formGroup.get("generatePasswordCtrl").value&&o.formGroup.get("generatePasswordCtrl").enabled)("value",!1),e.xp6(1),e.hij(" ",e.lcZ(9,21,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),e.xp6(2),e.ekj("input-disabled",o.formGroup.get("generatePasswordCtrl").value),e.xp6(1),e.Q6J("formGroup",o.formGroup)("namespace",o.selectedNamespace)("passwordRequired",!o.formGroup.get("generatePasswordCtrl").value)("tooltipPwdDisabledForNamespace",o.formGroup.get("generatePasswordCtrl").enabled))},dependencies:[_.JJ,_.JL,_.sg,_.u,n.gM,N.VQ,N.U0,t.G,B,m.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),h})()},12651:(W,x,i)=>{i.d(x,{t:()=>I});var e=i(32105),_=i(95017),S=i(9244),D=i(71103),a=i(74281),L=i(61365),N=(i(33604),i(10036)),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(96214),Z=i(7434),F=i(53984),A=i(89383);const v=["list"];function m(p,b){1&p&&t._UZ(0,"mat-spinner",7)}function g(p,b){if(1&p&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&p){const l=t.oxw();t.Q6J("attributes",l.attributes)("filterValue",l.filterValue)("selection",l.selection)("tableId",l.tableId)}}let I=(()=>{class p{constructor(l,f){this.attributesManagerService=l,this.dialog=f,this.attributes=[],this.selection=new _.Ov(!0,[]),this.filterValue="",this.tableId=N.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(l=>{this.attributes=l,this.selection.clear(),this.loading=!1})}}applyFilter(l){this.filterValue=l}onCreate(){const l=(0,S.kZ)();l.width="1050px",l.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(D.n,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(a.wA,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}onDelete(){const l=(0,S.kZ)();l.width="450px",l.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(L.k,l).afterClosed().subscribe(y=>{y&&this.refreshTable()})}}return p.\u0275fac=function(l){return new(l||p)(t.Y36(e.H8),t.Y36(U.uw))},p.\u0275cmp=t.Xpm({type:p,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(l,f){if(1&l&&t.Gf(v,5),2&l){let y;t.iGM(y=t.CRH())&&(f.list=y.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(l,f){1&l&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return f.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return f.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return f.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return f.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(B){return f.applyFilter(B)}),t.qZA(),t.YNc(11,m,1,0,"mat-spinner",5),t.YNc(12,g,2,4,"perun-web-apps-attributes-list",6)),2&l&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===f.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("ngIf",!f.loading))},dependencies:[G.O5,C.lW,P.Ou,E.t,Z.L,F.p,A.X$]}),p})()},19191:(W,x,i)=>{i.d(x,{Y:()=>K});var e=i(32105),S=(i(33604),i(95017)),D=i(61365),a=i(9244),L=i(74281),n=i(71103),N=i(64080),t=i(94650),U=i(65412),G=i(36895),C=i(4859),P=i(51572),E=i(98380),Z=i(96214),F=i(7434),A=i(53984),v=i(82322),m=i(45703),g=i(42377),I=i(89383);let p=(()=>{class u{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=s=>(0,a.bD)(s.user)}ngOnInit(){this.members=this.members.sort(a.fx)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.memberSelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.members)("searchFunction",r.memberFullNameFunction)("mainTextFunction",r.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},dependencies:[g.i,I.X$]}),u})(),b=(()=>{class u{constructor(){this.facilitySelected=new t.vpe,this.nameFunction=s=>s.name}ngOnInit(){this.facilities=this.facilities.sort(a.aC)}}return u.\u0275fac=function(s){return new(s||u)},u.\u0275cmp=t.Xpm({type:u,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(s,r){1&s&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return r.facilitySelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&s&&t.Q6J("entities",r.facilities)("searchFunction",r.nameFunction)("mainTextFunction",r.nameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},dependencies:[g.i,I.X$]}),u})();var l=i(74250);const f=["list"];function y(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function B(u,O){if(1&u&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&u){const s=t.oxw();t.xp6(1),t.Oqu(s.noEntityMessage)}}function J(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("firstSelectedGroup",s.specificSecondEntity)("displayStatus",!0)("groups",s.entityValues)}}function h(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("resources",s.entityValues)}}function M(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("members",s.entityValues)}}function c(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("facilities",s.entityValues)}}function o(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(d){t.CHM(s);const T=t.oxw(2);return t.KtG(T.specifySecondEntity(d))}),t.qZA()}if(2&u){const s=t.oxw(2);t.Q6J("users",s.entityValues)}}function R(u,O){1&u&&t._UZ(0,"mat-spinner",4)}function w(u,O){if(1&u&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&u){const s=t.oxw(2);t.Q6J("attributes",s.attributes)("filterValue",s.filterValue)("selection",s.selection)}}function Q(u,O){if(1&u){const s=t.EpF();t.TgZ(0,"div")(1,"div",6),t.YNc(2,J,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,h,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,M,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,c,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,o,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.getAttributes(d.specificSecondEntity.id))}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onAdd(d.specificSecondEntity.id))}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onSave(d.specificSecondEntity.id))}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(s);const d=t.oxw();return t.KtG(d.onDelete(d.specificSecondEntity.id))}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(d){t.CHM(s);const T=t.oxw();return t.KtG(T.applyFilter(d))}),t.qZA(),t.YNc(18,R,1,0,"mat-spinner",1),t.YNc(19,w,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&u){const s=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===s.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===s.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",s.innerLoading),t.xp6(1),t.Q6J("ngIf",!s.innerLoading)}}let K=(()=>{class u{constructor(s,r,d,T,V,Y){this.attributesManagerService=s,this.resourcesManagerService=r,this.facilitiesManagerService=d,this.groupsManagerService=T,this.membersManager=V,this.dialog=Y,this.entityValues=[],this.attributes=[],this.selection=new S.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const d=r.enrichedResource.resource;return d.status=r.status,d}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[N.r.MEMBER_CORE_ID]).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>r.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(s=>{this.entityValues=s.map(r=>{const d=r.enrichedGroup.group;return d.status=r.status,d}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(s=>{this.entityValues=s,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let s=this.entityValues[0];const r=(0,a.vL)(this.entityKey());if(r)for(const d of this.entityValues)if(d.id===r[0]){s=d;break}this.specifySecondEntity(s)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(s){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,s).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(s,this.firstEntityId).subscribe(r=>{this.attributes=r,this.innerLoading=!1})}}setMessages(s){this.noEntityMessage=`No ${s} assigned`}onSave(s){this.list.updateMapAttributes();const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected},this.dialog.open(L.wA,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onDelete(s){const r=(0,a.kZ)();r.width="450px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(D.k,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}onAdd(s){const r=(0,a.kZ)();r.width="1050px",r.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:s,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(n.n,r).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(s))})}specifySecondEntity(s){s&&(this.specificSecondEntity=s,this.getAttributes(this.specificSecondEntity.id))}applyFilter(s){this.filterValue=s}}return u.\u0275fac=function(s){return new(s||u)(t.Y36(e.H8),t.Y36(e.xk),t.Y36(e.IQ),t.Y36(e.ff),t.Y36(e.uq),t.Y36(U.uw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(s,r){if(1&s&&t.Gf(f,5),2&s){let d;t.iGM(d=t.CRH())&&(r.list=d.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(s,r){1&s&&(t.TgZ(0,"div",0),t.YNc(1,y,1,0,"mat-spinner",1),t.YNc(2,B,2,1,"perun-web-apps-alert",2),t.YNc(3,Q,20,19,"div",3),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngIf",r.loading),t.xp6(1),t.Q6J("ngIf",0===r.entityValues.length&&!r.loading),t.xp6(1),t.Q6J("ngIf",0!==r.entityValues.length))},dependencies:[G.O5,C.lW,P.Ou,E.w,Z.t,F.L,A.p,v.h,m.L,p,b,l.S,I.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),u})()},71135:(W,x,i)=>{i.d(x,{L:()=>G});var e=i(94650),_=i(65412),S=i(94364),D=i(36895),a=i(97392),L=i(3238),n=i(89383),N=i(64597);function t(C,P){if(1&C&&(e.TgZ(0,"div",3)(1,"a",4),e.ALo(2,"multiWordDataCy"),e.ALo(3,"translate"),e._UZ(4,"mat-icon",5),e._uU(5),e.ALo(6,"translate"),e.qZA()()),2&C){const E=P.$implicit;e.xp6(1),e.Gre("",E.style," item-itself"),e.Q6J("routerLink",E.url),e.uIk("data-cy",e.lcZ(2,7,e.lcZ(3,9,E.label))),e.xp6(3),e.Q6J("svgIcon",E.cssIcon),e.xp6(1),e.hij(" ",e.lcZ(6,11,E.label)," ")}}function U(C,P){if(1&C&&(e.TgZ(0,"div",1),e.YNc(1,t,7,13,"div",2),e.qZA()),2&C){const E=e.oxw();e.xp6(1),e.Q6J("ngForOf",E.items)}}let G=(()=>{class C{constructor(E,Z){this.dialog=E,this.route=Z,this.size="large"}ngOnInit(){this.route.params.subscribe(E=>{this.voId=Number(E.voId)})}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(_.uw),e.Y36(S.gz))},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(E,Z){1&E&&e.YNc(0,U,2,1,"div",0),2&E&&e.Q6J("ngIf","small"===Z.size)},dependencies:[D.sg,D.O5,S.yS,a.Hw,L.wG,n.X$,N.R],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),C})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json index 09047705b..110b4d83e 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"9.2.0"} +{"version":"9.3.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json index a7ebb424f..b7b4dd923 100644 --- a/dist/apps/admin-gui/assets/i18n/en.json +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -2772,7 +2772,10 @@ "TITLE": "The requested user (by Id or external identity) doesn't exist." }, "TABLE_OPTIONS": { - "EXPORT_TO_FILE": "Export to file" + "EXPORT_TO_FILE": "Export to file", + "ALL_DATA": "All data", + "DISPLAYED_DATA": "Displayed data", + "EXPORT_LOADING": "Exporting data..." }, "NOTIFICATOR": { "NOTIFICATION": { diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index aa1ecd3fe..24bffcb02 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -6,7 +6,7 @@ - + @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.9e353c86b1c3bd8d.js b/dist/apps/admin-gui/main.9e353c86b1c3bd8d.js deleted file mode 100644 index 37003b7c2..000000000 --- a/dist/apps/admin-gui/main.9e353c86b1c3bd8d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Je,pe,h)=>{"use strict";h.d(pe,{g:()=>_t});var e=h(32105),d=h(10036),A=h(94650),w=h(36895),g=h(3848),C=h(51572),T=h(64877),v=h(62109),R=h(62707),U=h(38383),_=h(74010),V=h(9244),Y=h(97392),X=h(4859),ne=h(10266),le=h(42377),te=h(64901),fe=h(89383);function ue(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),A.NdJ("entitySelected",function(oe){const ae=A.CHM(Z).$implicit;return A.KtG(ae[0]=oe.namespace+":"+oe.friendlyName)}),A.ALo(3,"translate"),A.ALo(4,"translate"),A.ALo(5,"translate"),A.qZA()(),A.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),A.NdJ("filter",function(oe){const ae=A.CHM(Z).$implicit;return A.KtG(ae[1]=oe)}),A.qZA()(),A.TgZ(8,"div",11)(9,"button",12),A.NdJ("click",function(){const ge=A.CHM(Z).$implicit,ae=A.oxw(2);return A.KtG(ae.removeOption(ge))}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA()()()()}if(2&Qe){const Z=A.oxw(2);A.xp6(2),A.Q6J("entities",Z.availableAttrDefs)("searchFunction",Z.nameFunction)("mainTextFunction",Z.nameFunction)("secondaryTextFunction",Z.secondaryTextFunction)("selectPlaceholder",A.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",A.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",A.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),A.xp6(5),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),A.xp6(2),A.s9C("matTooltip",A.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),A.Q6J("disabled",1===Z.options.length)}}function we(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"div",1),A.YNc(1,ue,13,18,"div",2),A.TgZ(2,"button",3),A.NdJ("click",function(){A.CHM(Z);const oe=A.oxw();return A.KtG(oe.addOption())}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",4),A.ALo(6,"translate"),A.TgZ(7,"button",5),A.NdJ("click",function(){A.CHM(Z);const oe=A.oxw();return A.KtG(oe.searchEntities())}),A.TgZ(8,"mat-icon"),A._uU(9,"search"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()()()}if(2&Qe){const Z=A.oxw();A.xp6(1),A.Q6J("ngForOf",Z.options),A.xp6(2),A.hij(" ",A.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),A.Q6J("matTooltipDisabled",!Z.emptySearchString()),A.xp6(2),A.Q6J("disabled",Z.emptySearchString()),A.xp6(3),A.hij(" ",A.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let E=(()=>{class Qe{constructor(){this.attributeSelected=new A.vpe,this.search=new A.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=Z=>Z.displayName,this.secondaryTextFunction=Z=>"#"+String(Z.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(Z=>Z.entity===this.attributesForEntity).sort(V.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(Z){this.options=this.options.filter(ve=>ve!==Z)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(Z=>0===Z[1].length)}searchEntities(){const Z={};this.options.forEach(ve=>{Z[ve[0]]=ve[1]}),this.search.emit(Z)}}return Qe.\u0275fac=function(Z){return new(Z||Qe)},Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[A.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(Z,ve){1&Z&&A.YNc(0,we,12,12,"div",0),2&Z&&A.Q6J("ngIf",void 0!==ve.options)},dependencies:[w.sg,w.O5,Y.Hw,X.lW,ne.gM,le.i,te.P,fe.X$]}),Qe})();function O(Qe,st){1&Qe&&(A._uU(0),A.ALo(1,"translate")),2&Qe&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function H(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(oe){A.CHM(Z);const ge=A.oxw(2);return A.KtG(ge.searchEntities(oe,"user"))}),A.qZA()}if(2&Qe){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","user")}}const W=function(){return["user","id","name"]};function $(Qe,st){if(1&Qe&&A._UZ(0,"app-users-list",9),2&Qe){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(3,W))("users",Z.entities)}}function de(Qe,st){if(1&Qe&&(A.YNc(0,H,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,$,1,4,"app-users-list",7)),2&Qe){const Z=A.oxw();A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function ye(Qe,st){1&Qe&&(A._uU(0),A.ALo(1,"translate")),2&Qe&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function xe(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"perun-web-apps-vo-search-select",13),A.NdJ("voSelected",function(oe){A.CHM(Z);const ge=A.oxw(2);return A.KtG(ge.voSelected(oe))}),A.qZA()}if(2&Qe){const Z=A.oxw(2);A.Q6J("vos",Z.vos)}}function Me(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(oe){A.CHM(Z);const ge=A.oxw(2);return A.KtG(ge.searchEntities(oe,"member"))}),A.qZA()}if(2&Qe){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","user")}}const Ze=function(){return["id","voId","userId","status"]};function se(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"perun-web-apps-members-list",14),A.NdJ("updateTable",function(){A.CHM(Z);const oe=A.oxw(2);return A.KtG(oe.searchEntities(oe.searchInput,"member"))}),A.qZA()}if(2&Qe){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(4,Ze))("disableExpirationChange",!0)("members",Z.entities)}}function ze(Qe,st){if(1&Qe&&(A.TgZ(0,"div",10),A.YNc(1,xe,1,1,"perun-web-apps-vo-search-select",11),A.qZA(),A.YNc(2,Me,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(3,se,1,5,"perun-web-apps-members-list",12)),2&Qe){const Z=A.oxw();A.xp6(1),A.Q6J("ngIf",Z.vos.length>0),A.xp6(1),A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function he(Qe,st){1&Qe&&(A._uU(0),A.ALo(1,"translate")),2&Qe&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function De(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(oe){A.CHM(Z);const ge=A.oxw(2);return A.KtG(ge.searchEntities(oe,"facility"))}),A.qZA()}if(2&Qe){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","facility")}}const j=function(){return["id","name","description"]};function P(Qe,st){if(1&Qe&&A._UZ(0,"perun-web-apps-facilities-list",16),2&Qe){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(3,j))("facilities",Z.entities)}}function G(Qe,st){if(1&Qe&&(A.YNc(0,De,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,P,1,4,"perun-web-apps-facilities-list",15)),2&Qe){const Z=A.oxw();A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function ce(Qe,st){1&Qe&&(A._uU(0),A.ALo(1,"translate")),2&Qe&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function q(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(oe){A.CHM(Z);const ge=A.oxw(2);return A.KtG(ge.searchEntities(oe,"resource"))}),A.qZA()}if(2&Qe){const Z=A.oxw(2);A.Q6J("attributes",Z.allAttrDefinitions)("attributesForEntity","resource")}}const Te=function(){return["id","name","description","voId","facilityId"]};function He(Qe,st){if(1&Qe&&A._UZ(0,"perun-web-apps-resources-list",18),2&Qe){const Z=A.oxw(2);A.Q6J("tableId",Z.tableId)("displayedColumns",A.DdM(3,Te))("resources",Z.entities)}}function dt(Qe,st){if(1&Qe&&(A.YNc(0,q,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,He,1,4,"perun-web-apps-resources-list",17)),2&Qe){const Z=A.oxw();A.Q6J("ngIf",!Z.loading),A.xp6(1),A.Q6J("ngIf",!Z.loadingEntityData)}}function et(Qe,st){1&Qe&&A._UZ(0,"mat-spinner",19)}let _t=(()=>{class Qe{constructor(Z,ve,oe){this.attributesManager=Z,this.searcher=ve,this.voService=oe,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=d.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Z=>{this.allAttrDefinitions=Z,this.loading=!1})}tabChanged(Z){switch(this.entities=[],Z){case 0:this.tableId=d.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=d.FF;break;case 2:this.tableId=d.$I;break;case 3:this.tableId=d.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(Z=>{this.vos=Z,this.selectedVo=Z[0],this.loadingEntityData=!1})}voSelected(Z){void 0!==Z&&(this.selectedVo=Z)}searchEntities(Z,ve){switch(this.searchInput=Z,this.loadingEntityData=!0,ve){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z.map(ve=>({facility:ve})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(Z=>{this.entities=Z,this.loadingEntityData=!1})}}return Qe.id="AdminSearcherComponent",Qe.\u0275fac=function(Z){return new(Z||Qe)(A.Y36(e.H8),A.Y36(e.t7),A.Y36(e.YF))},Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(Z,ve){2&Z&&A.ekj("router-component",ve.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(Z,ve){1&Z&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(ge){return ve.tabChanged(ge)}),A.TgZ(4,"mat-tab",2),A.YNc(5,O,2,3,"ng-template",3),A.YNc(6,de,2,2,"ng-template",4),A.qZA(),A.TgZ(7,"mat-tab"),A.YNc(8,ye,2,3,"ng-template",3),A.YNc(9,ze,4,3,"ng-template",4),A.qZA(),A.TgZ(10,"mat-tab"),A.YNc(11,he,2,3,"ng-template",3),A.YNc(12,G,2,2,"ng-template",4),A.qZA(),A.TgZ(13,"mat-tab"),A.YNc(14,ce,2,3,"ng-template",3),A.YNc(15,dt,2,2,"ng-template",4),A.qZA()(),A.YNc(16,et,1,0,"mat-spinner",5)),2&Z&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),A.xp6(15),A.Q6J("ngIf",ve.loading||ve.loadingEntityData))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,C.Ou,T.C,v.C,R.M,U.O,_.X,E,fe.X$]}),Qe})()},80774:(Je,pe,h)=>{"use strict";h.d(pe,{F:()=>E});var e=h(95017),d=h(32105),A=h(10036),w=h(9244),g=h(40009),C=h(90719),T=h(32080),v=h(94650),R=h(65412),U=h(36895),_=h(4859),V=h(51572),Y=h(60205),X=h(96214),ne=h(7434),le=h(89383);function te(O,H){if(1&O){const W=v.EpF();v.TgZ(0,"button",7),v.NdJ("click",function(){v.CHM(W);const de=v.oxw();return v.KtG(de.createService())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&O&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function fe(O,H){if(1&O){const W=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){v.CHM(W);const de=v.oxw();return v.KtG(de.deleteService())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&O){const W=v.oxw();v.Q6J("disabled",0===W.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function ue(O,H){1&O&&v._UZ(0,"mat-spinner",9)}function we(O,H){if(1&O&&v._UZ(0,"app-services-list",10),2&O){const W=v.oxw();v.Q6J("filterValue",W.filterValue)("selection",W.selection)("services",W.services)("tableId",W.tableId)}}let E=(()=>{class O{constructor(W,$,de){this.serviceManager=W,this.dialog=$,this.authResolver=de,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=A.NL}ngOnInit(){this.serviceManager.getServices().subscribe(W=>{this.services=W,this.refreshTable()})}createService(){const W=(0,w.kZ)();W.width="600px",W.data={theme:"admin-theme"},this.dialog.open(g.R,W).afterClosed().subscribe(de=>{de&&this.refreshTable()})}deleteService(){const W=(0,w.kZ)();W.width="600px",W.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(C.m,W).afterClosed().subscribe(de=>{de&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(W=>{this.services=W,this.selection.clear(),this.loading=!1})}applyFilter(W){this.filterValue=W}}return O.id="AdminServicesComponent",O.\u0275fac=function(W){return new(W||O)(v.Y36(d.KK),v.Y36(R.uw),v.Y36(T.x4))},O.\u0275cmp=v.Xpm({type:O,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(W,$){1&W&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return $.refreshTable()}),v.qZA(),v.YNc(5,te,3,3,"button",2),v.YNc(6,fe,3,4,"button",3),v.TgZ(7,"perun-web-apps-immediate-filter",4),v.NdJ("filter",function(ye){return $.applyFilter(ye)}),v.qZA(),v.YNc(8,ue,1,0,"mat-spinner",5),v.YNc(9,we,1,4,"app-services-list",6),v.qZA()),2&W&&(v.xp6(2),v.Oqu(v.lcZ(3,6,"ADMIN.SERVICES.TITLE")),v.xp6(3),v.Q6J("ngIf",$.authResolver.isPerunAdmin()),v.xp6(1),v.Q6J("ngIf",$.authResolver.isPerunAdmin()),v.xp6(1),v.Q6J("placeholder","ADMIN.SERVICES.FILTER"),v.xp6(1),v.Q6J("ngIf",$.loading),v.xp6(1),v.Q6J("ngIf",!$.loading))},dependencies:[U.O5,_.lW,V.Ou,Y.Q,X.t,ne.L,le.X$]}),O})()},25828:(Je,pe,h)=>{"use strict";h.d(pe,{t:()=>U});var e=h(10036),d=h(64080),A=h(32080),w=h(94650),g=h(56709),C=h(64901),T=h(88561),v=h(89383);const R=function(){return["user","id","name","email","logins","organization"]};let U=(()=>{class _{constructor(Y){this.storeService=Y,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[d.r.USER_DEF_ORGANIZATION,d.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(Y){this.searchString=Y}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return _.id="AdminUsersComponent",_.\u0275fac=function(Y){return new(Y||_)(w.Y36(A.d6))},_.\u0275cmp=w.Xpm({type:_,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(Y,X){2&Y&&w.ekj("router-component",X.true)},decls:8,vars:16,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo"]],template:function(Y,X){1&Y&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-debounce-filter",1),w.NdJ("filter",function(le){return X.onSearchByString(le)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return X.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&Y&&(w.xp6(1),w.Oqu(w.lcZ(2,11,"ADMIN.USERS.TITLE")),w.xp6(2),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",X.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",X.searchString)("attrNames",X.attributes)("displayedColumns",w.DdM(15,R))("tableId",X.tableId)("withoutVo",X.usersWithoutVo))},dependencies:[g.oG,C.P,T.M,v.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),_})()},72077:(Je,pe,h)=>{"use strict";h.d(pe,{y:()=>O});var e=h(32080),d=h(17445),A=h(80529),w=h(9244),g=h(94650),C=h(65412),T=h(4859),v=h(89383);let R=(()=>{class H{constructor($){this.dialogRef=$}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return H.\u0275fac=function($){return new($||H)(g.Y36(C.so))},H.\u0275cmp=g.Xpm({type:H,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function($,de){1&$&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1)(4,"div",2)(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",3)(9,"button",4),g.NdJ("click",function(){return de.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return de.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA()()()),2&$&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),g.xp6(5),g.hij(" ",g.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),g.xp6(4),g.hij(" ",g.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),g.xp6(3),g.hij(" ",g.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[T.lW,C.uh,C.xY,C.H8,v.X$]}),H})();var U=h(94364),_=h(39300);let V=(()=>{class H{constructor($,de){this.router=$,this.routeReuseStrategy=de;const ye=de;$.events.subscribe(xe=>{xe instanceof U.OD&&ye.setLastNavigationType("popstate"===xe.navigationTrigger?"back":"direct")})}init(){}}return H.\u0275fac=function($){return new($||H)(g.LFG(U.F0),g.LFG(U.wN))},H.\u0275prov=g.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();const Y=["footer"];function X(H,W){if(1&H&&(g.TgZ(0,"div",3)(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&H){const $=g.oxw();g.xp6(3),g.hij(" ",$.warningMessage,"\n")}}const ne=function(H,W){return{top:H,background:W}},le=function(H,W){return{"margin-top":H,"min-height":W}},te=function(H,W){return{"border-color":H,background:W}},fe=function(H){return{"background-color":H}},ue=function(H){return{"min-height":H}};function we(H,W){if(1&H&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),g._UZ(5,"app-side-menu",8),g.qZA()(),g.TgZ(6,"mat-sidenav-content",9)(7,"div",10),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,11),g._UZ(11,"perun-web-apps-footer"),g.qZA()()()),2&H){const $=g.MAs(3),de=g.oxw();g.Q6J("principal",de.principal)("ngStyle",g.WLB(12,ne,de.getNavMenuTop(),de.navBackgroundColor))("sideNav",$),g.xp6(1),g.Q6J("ngStyle",g.WLB(15,le,de.getSideNavMarginTop(),de.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",de.sidebarMode)("fixedTopGap",de.getTopGap())("ngStyle",g.WLB(18,te,de.sideBarBorderColor,de.sideMenubackgroundColor))("opened",!de.isMobile()),g.xp6(3),g.Q6J("sideNav",$),g.xp6(1),g.Q6J("ngStyle",g.VKq(21,fe,de.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(23,ue,de.contentInnerMinHeight))}}function E(H,W){1&H&&g._UZ(0,"perun-web-apps-login-screen-base",12),2&H&&g.Q6J("application","admin-gui")}let O=(()=>{class H{constructor($,de,ye,xe,Me,Ze,se){this.cache=$,this.store=de,this.http=ye,this.dialog=xe,this.router=Me,this.initAuth=Ze,this.cd=se,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("warning_message"),this.version=h(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=H.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,d.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,_.h)($=>$ instanceof U.OD)).subscribe($=>{this.updateInitAccessedPage($)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const $=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+$+"px - 112px)":"calc(100vh - "+$+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage($){$.url===sessionStorage.getItem("initPage")?("imperative"===$.navigationTrigger&&$.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===$.navigationTrigger&&($.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId($.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const $=new A.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:$}).subscribe(de=>{const ye=de.version;if(ye)if(this.version&&"SNAPSHOT"!==ye&&this.version!==ye){const xe=(0,w.kZ)();this.dialog.open(R,xe)}else this.version=ye})}}return H.minWidth=992,H.\u0275fac=function($){return new($||H)(g.Y36(V),g.Y36(e.d6),g.Y36(A.eN),g.Y36(C.uw),g.Y36(U.F0),g.Y36(e.v0),g.Y36(g.sBO))},H.\u0275cmp=g.Xpm({type:H,selectors:[["app-root"]],viewQuery:function($,de){if(1&$&&g.Gf(Y,5),2&$){let ye;g.iGM(ye=g.CRH())&&(de.footer=ye.first)}},hostBindings:function($,de){1&$&&g.NdJ("resize",function(xe){return de.getScreenSize(xe)},!1,g.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"principal","ngStyle","sideNav"],[3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function($,de){1&$&&(g.YNc(0,X,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,we,12,25,"ng-template",2),g.YNc(3,E,1,1,"ng-template",2)),2&$&&(g.Q6J("ngIf",de.displayWarning),g.xp6(1),g.Q6J("displayWarning",de.displayWarning),g.xp6(1),g.Q6J("ngIf",!de.isLoginScreenShow&&!de.isServiceAccess&&!de.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",de.isLoginScreenShow||de.isServiceAccess||de.isServiceLogin()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),H})()},77968:(Je,pe,h)=>{"use strict";h.d(pe,{D:()=>d});var e=h(94650);let d=(()=>{class A{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(g){this.homeItemsChange.emit(g)}setAccessMenuItems(g){this.accessItemsChange.emit(g)}setFacilityMenuItems(g){this.facilityItemsChange.emit(g)}setAdminItems(g){this.adminItemsChange.emit(g)}setUserItems(g){this.userItemsChange.emit(g)}reset(){this.resetChange.emit()}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},37380:(Je,pe,h)=>{"use strict";h.d(pe,{o:()=>fe});var e=h(32105),d=h(10036),A=h(32080),w=h(94650),g=h(36895),C=h(3238),T=h(59549),v=h(84385),R=h(51572),U=h(24179),_=h(96214),V=h(7434),Y=h(89383);function X(ue,we){if(1&ue&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&ue){const E=we.$implicit;w.Q6J("value",E.id),w.xp6(1),w.hij(" ",E.name," ")}}function ne(ue,we){1&ue&&w._UZ(0,"mat-spinner",10)}const le=function(){return["id","vo","name","description"]};function te(ue,we){if(1&ue&&w._UZ(0,"perun-web-apps-groups-list",11),2&ue){const E=w.oxw();w.Q6J("displayedColumns",w.DdM(6,le))("groups",E.groupsToShow)("disableMembers",!1)("filter",E.filterValue)("groupsToDisableRouting",E.groupsWithoutRouteAuth)("tableId",E.tableId)}}let fe=(()=>{class ue{constructor(E,O,H){this.facilityManager=E,this.authResolver=O,this.entityStorageService=H,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=d.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(E=>{this.vos=E,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(E=>E.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(E=>{this.facilityManager.getAllowedGroups(this.facility.id,E.id).subscribe(O=>{this.groups=this.groups.concat(O),this.groupsToShow=this.groups,this.setAuthRights(E,O),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(E,O){O.forEach(H=>{this.authResolver.isAuthorized("getGroupById_int_policy",[E,H])||this.groupsWithoutRouteAuth.add(H.id)})}applyFilter(E){this.filterValue=E}}return ue.id="FacilityAllowedGroupsComponent",ue.\u0275fac=function(E){return new(E||ue)(w.Y36(e.IQ),w.Y36(A.x4),w.Y36(A.fb))},ue.\u0275cmp=w.Xpm({type:ue,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(E,O){2&E&&w.ekj("router-component",O.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(E,O){1&E&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return O.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2)(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return O.showGroup()})("valueChange",function(W){return O.selected=W}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,X,2,2,"mat-option",5),w.qZA()(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(W){return O.applyFilter(W)}),w.qZA(),w.YNc(15,ne,1,0,"mat-spinner",7),w.YNc(16,te,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&E&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",O.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",O.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",O.loading),w.xp6(1),w.Q6J("ngIf",!O.loading))},dependencies:[g.sg,g.O5,C.ey,T.KE,T.hX,v.gD,R.Ou,U.W,_.t,V.L,Y.X$]}),ue})()},25610:(Je,pe,h)=>{"use strict";h.d(pe,{_:()=>W});var e=h(10036),d=h(32105),A=h(32080),w=h(64080),g=h(94650),C=h(36895),T=h(24006),v=h(51572),R=h(90455),U=h(96214),_=h(62707),V=h(45703),Y=h(64901),X=h(88561),ne=h(30540),le=h(97392),te=h(4859),fe=h(89383);let ue=(()=>{class ${constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return $.\u0275fac=function(ye){return new(ye||$)},$.\u0275cmp=g.Xpm({type:$,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(ye,xe){1&ye&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return xe.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA()(),g.TgZ(7,"button",0),g.NdJ("click",function(){return xe.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&ye&&(g.Gre("mr-2 ",xe.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",xe.filtersCount?"("+xe.filtersCount+")":null," "),g.xp6(3),g.Oqu(xe.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[le.Hw,te.lW,fe.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),$})();function we($,de){if(1&$){const ye=g.EpF();g.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(Me){g.CHM(ye);const Ze=g.oxw();return g.KtG(Ze.allowed=Me)})("change",function(){g.CHM(ye);const Me=g.oxw();return g.KtG(Me.changeFilter())}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(Me){g.CHM(ye);const Ze=g.oxw();return g.KtG(Ze.voSelected(Me))}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(Me){g.CHM(ye);const Ze=g.oxw();return g.KtG(Ze.resourceSelected(Me))}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(Me){g.CHM(ye);const Ze=g.oxw();return g.KtG(Ze.serviceSelected(Me))}),g.qZA()()()}if(2&$){const ye=g.oxw();g.xp6(2),g.Q6J("ngModel",ye.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,12,ye.toggle_messages[ye.allowed?1:0])),g.xp6(3),g.Q6J("vos",ye.vos)("vo",ye.selectedVo),g.xp6(1),g.Q6J("resources",ye.filteredResources)("displayStatus",!1)("resource",ye.selectedResource),g.xp6(1),g.Q6J("services",ye.filteredServices)("service",ye.selectedService)}}function E($,de){1&$&&g._UZ(0,"mat-spinner",15)}const O=function(){return["id","name","email","logins","organization"]};function H($,de){if(1&$&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&$){const ye=g.oxw();g.Q6J("attrNames",ye.attributes)("disableRouting",!ye.routeAuth)("displayedColumns",g.DdM(10,O))("onlyAllowed",ye.allowed)("facilityId",ye.facility.id)("searchString",ye.filterValue)("resourceId",-1===ye.selectedResource.id?null:ye.selectedResource.id)("serviceId",-1===ye.selectedService.id?null:ye.selectedService.id)("tableId",ye.tableId)("voId",-1===ye.selectedVo.id?null:ye.selectedVo.id)}}let W=(()=>{class ${constructor(ye,xe,Me,Ze,se,ze){this.facilityService=ye,this.serviceService=xe,this.resourceService=Me,this.authResolver=Ze,this.storeService=se,this.entityStorageService=ze,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(ye=>{this.resources=[this.emptyResource].concat(ye),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(xe=>{this.vos=[this.emptyVo].concat(xe),this.serviceService.getAssignedServices(this.facility.id).subscribe(Me=>{this.services=[this.emptyService].concat(Me),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ye){this.filterValue=ye}voSelected(ye){this.selectedVo.id!==ye.id&&(this.selectedVo=ye,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===ye.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(xe=>xe.voId===ye.id),this.serviceService.getAssignedServicesVo(this.facility.id,ye.id).subscribe(xe=>{this.filteredServices=[this.emptyService].concat(xe),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(ye){this.selectedResource.id!==ye.id&&(this.selectedResource=ye,this.selectedService=this.emptyService,-1===ye.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(ye.id).subscribe(xe=>{this.filteredServices=[this.emptyService].concat(xe),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(ye){this.selectedService=ye,this.changeFilter()}}return $.id="FacilityAllowedUsersComponent",$.\u0275fac=function(ye){return new(ye||$)(g.Y36(d.IQ),g.Y36(d.KK),g.Y36(d.xk),g.Y36(A.x4),g.Y36(A.d6),g.Y36(A.fb))},$.\u0275cmp=g.Xpm({type:$,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId"]],template:function(ye,xe){1&ye&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return xe.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(Ze){return xe.applyFilter(Ze)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(Ze){return xe.advancedFilter=Ze})("clearFilters",function(){return xe.clearFilters()}),g.qZA()(),g.YNc(8,we,12,14,"div",5),g.YNc(9,E,1,0,"mat-spinner",6),g.YNc(10,H,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&ye&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",xe.advancedFilter)("filtersCount",xe.filtersCount),g.xp6(1),g.Q6J("ngIf",xe.advancedFilter),g.xp6(1),g.Q6J("ngIf",xe.loading),g.xp6(1),g.Q6J("ngIf",!xe.loading))},dependencies:[C.O5,T.JJ,T.On,v.Ou,R.Rr,U.t,_.M,V.L,Y.P,X.M,ne.J,ue,fe.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),$})()},34904:(Je,pe,h)=>{"use strict";h.d(pe,{f:()=>xe});var e=h(95017),d=h(533),A=h(32105),w=h(24006),g=h(65412),C=h(32080),T=h(94650),v=h(89383),R=h(36895),U=h(59549),_=h(284),V=h(4859),Y=h(51572),X=h(62707);function ne(Me,Ze){1&Me&&T._UZ(0,"mat-spinner",5)}function le(Me,Ze){if(1&Me){const se=T.EpF();T.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),T.NdJ("voSelected",function(he){T.CHM(se);const De=T.oxw();return T.KtG(De.selectedVo=he)}),T.qZA(),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",8),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",9),T.ALo(10,"translate"),T.TgZ(11,"mat-error"),T._uU(12),T.ALo(13,"translate"),T.qZA()()()}if(2&Me){const se=T.oxw();T.xp6(1),T.Q6J("vos",se.vos),T.xp6(2),T.s9C("placeholder",T.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),T.Q6J("formControl",se.nameCtrl),T.xp6(3),T.hij(" ",T.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),T.xp6(3),T.s9C("placeholder",T.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),T.Q6J("formControl",se.descriptionCtrl),T.xp6(3),T.hij(" ",T.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let te=(()=>{class Me{constructor(se,ze,he,De,j,P){this.dialogRef=se,this.data=ze,this.notificator=he,this.voService=De,this.translate=j,this.resourcesManager=P,this.vos=[],this.selectedVo=null,j.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(G=>this.successMessage=G)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(se=>{this.vos=se,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Me.\u0275fac=function(se){return new(se||Me)(T.Y36(g.so),T.Y36(g.WI),T.Y36(C.V6),T.Y36(A.YF),T.Y36(v.sK),T.Y36(A.xk))},Me.\u0275cmp=T.Xpm({type:Me,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(se,ze){1&se&&(T.TgZ(0,"div"),T.YNc(1,ne,1,0,"mat-spinner",0),T.YNc(2,le,14,15,"div",1),T.TgZ(3,"div",2)(4,"button",3),T.NdJ("click",function(){return ze.onCancel()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"button",4),T.NdJ("click",function(){return ze.onSubmit()}),T._uU(8),T.ALo(9,"translate"),T.qZA()()()),2&se&&(T.Tol(ze.theme),T.xp6(1),T.Q6J("ngIf",ze.loading),T.xp6(1),T.Q6J("ngIf",!ze.loading),T.xp6(3),T.hij(" ",T.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),T.xp6(2),T.Q6J("disabled",ze.nameCtrl.invalid||ze.descriptionCtrl.invalid||null===ze.selectedVo||ze.loading),T.xp6(1),T.hij(" ",T.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[R.O5,U.TO,U.KE,_.Nt,w.Fj,w.JJ,w.Q7,w.oH,V.lW,g.xY,g.H8,Y.Ou,X.M,v.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Me})();var fe=h(10036),ue=h(9244),we=h(96214),E=h(7434),O=h(62109),H=h(30540);function W(Me,Ze){if(1&Me){const se=T.EpF();T.TgZ(0,"button",9),T.NdJ("click",function(){T.CHM(se);const he=T.oxw();return T.KtG(he.createResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Me&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function $(Me,Ze){if(1&Me){const se=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(se);const he=T.oxw();return T.KtG(he.removeResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Me){const se=T.oxw();T.Q6J("disabled",0===se.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function de(Me,Ze){1&Me&&T._UZ(0,"mat-spinner",11)}function ye(Me,Ze){if(1&Me&&T._UZ(0,"perun-web-apps-resources-list",12),2&Me){const se=T.oxw();T.Q6J("tableId",se.tableId)("filterValue",se.filterValue)("resources",se.resources)("selection",se.selected)("disableRouting",!se.routeAuth)("displayedColumns",se.displayedColumns)}}let xe=(()=>{class Me{constructor(se,ze,he,De,j){this.dialog=se,this.facilitiesManager=ze,this.servicesManager=he,this.authResolver=De,this.entityStorageService=j,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=fe.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(se=>{this.services=[this.emptyService].concat(se)}),this.refreshTable()}removeResource(){const se=(0,ue.kZ)();se.width="450px",se.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(d.f,se).afterClosed().subscribe(he=>{he&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(se=>{this.resources=se,this.selected.clear(),this.setAuthRights(),this.loading=!1}):this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(se=>{this.resources=se,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(se){this.filterValue=se}createResource(){const se=(0,ue.kZ)();se.width="1350px",se.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(te,se).afterClosed().subscribe(he=>{he&&this.refreshTable()})}serviceSelected(se){this.selectedService=se,this.refreshTable()}}return Me.id="FacilityResourcesComponent",Me.\u0275fac=function(se){return new(se||Me)(T.Y36(g.uw),T.Y36(A.IQ),T.Y36(A.KK),T.Y36(C.x4),T.Y36(C.fb))},Me.\u0275cmp=T.Xpm({type:Me,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(se,ze){2&se&&T.ekj("router-component",ze.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(se,ze){1&se&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),T.NdJ("refresh",function(){return ze.refreshTable()}),T.qZA(),T.YNc(6,W,3,3,"button",3),T.YNc(7,$,3,4,"button",4),T.TgZ(8,"perun-web-apps-service-search-select",5),T.NdJ("serviceSelected",function(De){return ze.serviceSelected(De)}),T.qZA(),T.TgZ(9,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(De){return ze.applyFilter(De)}),T.qZA()(),T.YNc(10,de,1,0,"mat-spinner",7),T.YNc(11,ye,1,6,"perun-web-apps-resources-list",8),T.qZA()),2&se&&(T.xp6(2),T.Oqu(T.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),T.xp6(4),T.Q6J("ngIf",ze.addAuth),T.xp6(1),T.Q6J("ngIf",ze.removeAuth),T.xp6(1),T.Q6J("services",ze.services)("service",ze.selectedService),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",ze.loading),T.xp6(1),T.Q6J("ngIf",!ze.loading))},dependencies:[R.O5,V.lW,Y.Ou,we.t,E.L,O.C,H.J,v.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),Me})()},86353:(Je,pe,h)=>{"use strict";h.d(pe,{P:()=>he});var e=h(32105),d=h(9244),A=h(10036),w=h(95017),g=h(65412),C=h(32080),T=h(24006),v=h(94650),R=h(89383),U=h(94364),_=h(36895),V=h(3238),Y=h(59549),X=h(284),ne=h(4859),le=h(84385),te=h(51572),fe=h(98380);function ue(De,j){1&De&&v._UZ(0,"mat-spinner",7)}function we(De,j){if(1&De){const P=v.EpF();v.TgZ(0,"mat-option",16),v.NdJ("click",function(){const q=v.CHM(P).$implicit,Te=v.oxw(2);return v.KtG(Te.srcFacility=q)}),v._uU(1),v.qZA()}if(2&De){const P=j.$implicit;v.Q6J("value",P),v.xp6(1),v.hij(" ",P.name," ")}}function E(De,j){if(1&De){const P=v.EpF();v.TgZ(0,"div",8)(1,"mat-form-field"),v._UZ(2,"input",9),v.ALo(3,"translate"),v.TgZ(4,"mat-error"),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"mat-form-field"),v._UZ(8,"input",10),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"mat-form-field")(11,"mat-select",11),v.ALo(12,"translate"),v.TgZ(13,"mat-option",12),v.NdJ("click",function(){v.CHM(P);const ce=v.oxw();return v.KtG(ce.srcFacility=null)}),v._uU(14),v.ALo(15,"translate"),v.qZA(),v.YNc(16,we,2,2,"mat-option",13),v.qZA()(),v.TgZ(17,"perun-web-apps-alert",14),v._UZ(18,"i",15),v.ALo(19,"translate"),v.qZA()()}if(2&De){const P=v.oxw();v.xp6(2),v.s9C("placeholder",v.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),v.Q6J("formControl",P.nameControl),v.xp6(3),v.Oqu(v.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),v.xp6(3),v.s9C("placeholder",v.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),v.Q6J("formControl",P.descControl),v.xp6(3),v.s9C("placeholder",v.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),v.xp6(3),v.hij(" ",v.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),v.xp6(2),v.Q6J("ngForOf",P.facilities),v.xp6(2),v.Q6J("innerHTML",v.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),v.oJD)}}let O=(()=>{class De{constructor(P,G,ce,q,Te,He,dt){this.dialogRef=P,this.data=G,this.facilitiesManager=ce,this.notificator=q,this.translate=Te,this.router=He,this.entityStorageService=dt,this.nameControl=new T.p4("",[T.kI.required]),this.descControl=new T.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(P=>{this.facilities=P,this.loading=!1},()=>this.loading=!1)}onCreate(P){this.loading=!0,this.configure=P,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(G=>{this.entityStorageService.setEntity({id:G.id,beanName:G.beanName}),sessionStorage.setItem("newFacilityId",String(G.id)),null!==this.srcFacility?this.copyFacilitySettings(G.id):this.handleSuccess(G.id)})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(P){this.facilitiesManager.copyAttributes(this.srcFacility.id,P).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,P).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,P).subscribe(()=>{this.handleSuccess(P)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(P){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",P.toString(),"configuration"]),this.dialogRef.close(!0)}}return De.\u0275fac=function(P){return new(P||De)(v.Y36(g.so),v.Y36(g.WI),v.Y36(e.IQ),v.Y36(C.V6),v.Y36(R.sK),v.Y36(U.F0),v.Y36(C.fb))},De.\u0275cmp=v.Xpm({type:De,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(P,G){1&P&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ue,1,0,"mat-spinner",1),v.YNc(5,E,20,21,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return G.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return G.onCreate(!1)}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",6),v.NdJ("click",function(){return G.onCreate(!0)}),v._uU(14),v.ALo(15,"translate"),v.qZA()()()),2&P&&(v.Tol(G.theme),v.xp6(2),v.Oqu(v.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),v.xp6(2),v.Q6J("ngIf",G.loading),v.xp6(1),v.Q6J("ngIf",!G.loading),v.xp6(3),v.hij(" ",v.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===G.nameControl.value.trim().length||G.loading),v.xp6(1),v.hij(" ",v.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),v.xp6(2),v.Q6J("disabled",0===G.nameControl.value.trim().length||!!G.srcFacility||G.loading),v.xp6(1),v.hij(" ",v.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[_.sg,_.O5,V.ey,Y.TO,Y.KE,X.Nt,T.Fj,T.JJ,T.Q7,T.oH,ne.lW,g.xY,g.H8,le.gD,te.Ou,fe.w,R.X$]}),De})();var H=h(54037),W=h(77968),$=h(97392),de=h(96214),ye=h(4235),xe=h(7434),Me=h(74010);function Ze(De,j){1&De&&v._UZ(0,"mat-spinner",9)}function se(De,j){if(1&De&&v._UZ(0,"perun-web-apps-facilities-list",10),2&De){const P=v.oxw();v.Q6J("tableId",P.tableId)("selection",P.selection)("filterValue",P.filterValue)("facilities",P.facilities)("recentIds",P.recentIds)}}const ze=function(){return{color:"black"}};let he=(()=>{class De{constructor(P,G,ce){this.facilityManager=P,this.sideMenuService=G,this.dialog=ce,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=A.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(P=>{this.selection.clear(),this.facilities=P,this.recentIds=(0,d.vL)("facilities"),this.loading=!1})}onCreate(){const P=(0,d.kZ)();P.width="800px",P.data={theme:"facility-theme"},this.dialog.open(O,P).afterClosed().subscribe(ce=>{ce&&(this.loading=!0,this.refreshTable())})}onDelete(){const P=(0,d.kZ)();P.width="500px",P.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(H.Y,P).afterClosed().subscribe(ce=>{ce&&this.refreshTable()})}applyFilter(P){this.filterValue=P}}return De.id="FacilitySelectPageComponent",De.\u0275fac=function(P){return new(P||De)(v.Y36(e.IQ),v.Y36(W.D),v.Y36(g.uw))},De.\u0275cmp=v.Xpm({type:De,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(P,G){2&P&&v.ekj("router-component",G.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(P,G){1&P&&(v.TgZ(0,"div",0),v._UZ(1,"perun-web-apps-back-button"),v.TgZ(2,"h1",1),v._UZ(3,"mat-icon",2),v._uU(4),v.ALo(5,"translate"),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return G.refreshTable()}),v.qZA(),v.TgZ(7,"button",4),v.NdJ("click",function(){return G.onCreate()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return G.onDelete()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"perun-web-apps-immediate-filter",6),v.NdJ("filter",function(q){return G.applyFilter(q)}),v.qZA(),v.YNc(14,Ze,1,0,"mat-spinner",7),v.YNc(15,se,1,5,"perun-web-apps-facilities-list",8),v.qZA()),2&P&&(v.xp6(3),v.Q6J("ngStyle",v.DdM(15,ze)),v.xp6(1),v.hij(" ",v.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),v.xp6(4),v.hij(" ",v.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),v.xp6(2),v.Q6J("disabled",0===G.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),v.xp6(2),v.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),v.xp6(1),v.Q6J("ngIf",G.loading),v.xp6(1),v.Q6J("ngIf",!G.loading))},dependencies:[_.O5,_.PC,$.Hw,ne.lW,te.Ou,de.t,ye.W,xe.L,Me.X,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),De})()},51076:(Je,pe,h)=>{"use strict";h.d(pe,{J:()=>fe});var e=h(65412),d=h(32080),A=h(32105),w=h(9244),g=h(24006),C=h(94650),T=h(89383),v=h(36895),R=h(3238),U=h(59549),_=h(284),V=h(4859),Y=h(84385),X=h(57706);let ne=(()=>{class ue{constructor(E){this.translateService=E,this.returnData=""}transform(E){switch(E){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(O=>{this.returnData=O});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(O=>{this.returnData=O});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(O=>{this.returnData=O});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(O=>{this.returnData=O});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(O=>{this.returnData=O});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(O=>{this.returnData=O});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(O=>{this.returnData=O});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(O=>{this.returnData=O});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(O=>{this.returnData=O});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(O=>{this.returnData=O});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(O=>{this.returnData=O});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(O=>{this.returnData=O});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(O=>{this.returnData=O});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(O=>{this.returnData=O});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(O=>{this.returnData=O});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(O=>{this.returnData=O});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(O=>{this.returnData=O});break;default:return E}return this.returnData}}return ue.\u0275fac=function(E){return new(E||ue)(C.Y36(T.sK,16))},ue.\u0275pipe=C.Yjl({name:"applicationFormWidgetDescription",type:ue,pure:!0}),ue})();function le(ue,we){if(1&ue&&(C.TgZ(0,"mat-option",9),C._uU(1),C.ALo(2,"applicationFormItemType"),C.qZA()),2&ue){const E=we.$implicit;C.Q6J("value",E),C.xp6(1),C.hij(" ",C.lcZ(2,2,E)," ")}}function te(ue,we){if(1&ue&&(C.TgZ(0,"mat-option",9),C._uU(1),C.qZA()),2&ue){const E=we.$implicit;C.Q6J("value",E),C.xp6(1),C.hij(" ",E," ")}}let fe=(()=>{class ue{constructor(E,O,H,W){this.dialogRef=E,this.data=O,this.translateService=H,this.store=W,this.languages=this.store.get("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(E=>{this.nameCtrl=new g.p4("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(E);for(const O of this.data.applicationFormItems)this.items.push(O.shortname),O.type===A.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(H=>H!==A.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=E})}cancel(){this.dialogRef.close(void 0)}submit(){const E=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,E])}createApplicationItem(){const E=(0,w.dv)(this.languages);E.id=this.data.fakeId,E.shortname=this.nameCtrl.value,E.type=this.selectedWidget;for(let O=0;O{"use strict";h.d(pe,{W:()=>V});var e=h(65412),d=h(32105),A=h(32080),w=h(94650),g=h(89383),C=h(36895),T=h(4859),v=h(51572),R=h(62707),U=h(82322);function _(Y,X){1&Y&&w._UZ(0,"mat-spinner",9)}let V=(()=>{class Y{constructor(ne,le,te,fe,ue,we,E,O,H){this.dialogRef=ne,this.voService=le,this.groupService=te,this.translateService=fe,this.registrarManager=ue,this.notificatorService=we,this.apiRequest=E,this.cd=O,this.data=H,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=W=>W.name,fe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(W=>this.successMessage=W),fe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(W=>this.privilegeMessage=W),fe.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(W=>this.noFormMessage=W)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(ne=>{this.vos=ne,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const le=ne.error;"FormNotExistsException"===le.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===le.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const le=ne.error;"FormNotExistsException"===le.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===le.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const le=ne.error;"FormNotExistsException"===le.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===le.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const le=ne.error;"FormNotExistsException"===le.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===le.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ne){this.selectedVo=ne,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ne=>{this.groups=ne}):this.groups=[],this.selectedGroup=null}}return Y.\u0275fac=function(ne){return new(ne||Y)(w.Y36(e.so),w.Y36(d.YF),w.Y36(d.ff),w.Y36(g.sK),w.Y36(d.tk),w.Y36(A.V6),w.Y36(A.F5),w.Y36(w.sBO),w.Y36(e.WI))},Y.\u0275cmp=w.Xpm({type:Y,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(ne,le){1&ne&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,_,1,0,"mat-spinner",1),w.TgZ(5,"div",2)(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(fe){return le.voSelected(fe)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(fe){return le.selectedGroup=fe}),w.qZA()(),w.TgZ(15,"div",6)(16,"button",7),w.NdJ("click",function(){return le.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return le.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA()()()),2&ne&&(w.Tol(le.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",le.loading),w.xp6(1),w.Q6J("hidden",le.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",le.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",le.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!le.selectedVo&&!le.selectedGroup||le.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[C.O5,T.lW,e.uh,e.xY,e.H8,v.Ou,R.M,U.h,g.X$]}),Y})()},40009:(Je,pe,h)=>{"use strict";h.d(pe,{R:()=>le});var e=h(65412),d=h(32080),A=h(24006),w=h(32105),g=h(94650),C=h(89383),T=h(36895),v=h(59549),R=h(284),U=h(4859),_=h(56709),V=h(51572);function Y(te,fe){1&te&&g._UZ(0,"mat-spinner",4)}function X(te,fe){if(1&te){const ue=g.EpF();g.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),g.NdJ("change",function(){g.CHM(ue);const E=g.oxw();return g.KtG(E.makePath())}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA()(),g.TgZ(7,"mat-form-field")(8,"input",7),g.NdJ("ngModelChange",function(E){g.CHM(ue);const O=g.oxw();return g.KtG(O.description=E)}),g.ALo(9,"translate"),g.qZA()(),g.TgZ(10,"mat-form-field"),g._UZ(11,"input",8),g.ALo(12,"translate"),g.TgZ(13,"mat-error"),g._uU(14),g.ALo(15,"translate"),g.qZA()(),g.TgZ(16,"mat-form-field"),g._UZ(17,"input",9),g.ALo(18,"translate"),g.TgZ(19,"mat-error"),g._uU(20),g.ALo(21,"translate"),g.qZA()(),g.TgZ(22,"mat-form-field"),g._UZ(23,"input",8),g.ALo(24,"translate"),g.TgZ(25,"mat-error"),g._uU(26),g.ALo(27,"translate"),g.qZA()(),g.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(E){g.CHM(ue);const O=g.oxw();return g.KtG(O.status=E)}),g._uU(32),g.ALo(33,"translate"),g.qZA()(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(E){g.CHM(ue);const O=g.oxw();return g.KtG(O.propagateExpiredMembers=E)}),g._uU(38),g.ALo(39,"translate"),g.qZA()()()}if(2&te){const ue=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",ue.nameControl),g.xp6(3),g.Oqu(g.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),g.xp6(3),g.s9C("placeholder",g.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),g.Q6J("ngModel",ue.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",ue.delayControl),g.xp6(3),g.Oqu(g.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),g.xp6(3),g.s9C("placeholder",g.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),g.Q6J("formControl",ue.recurrenceControl),g.xp6(3),g.Oqu(g.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),g.xp6(3),g.s9C("placeholder",g.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),g.Q6J("formControl",ue.pathControl),g.xp6(3),g.Oqu(g.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),g.xp6(3),g.hij("",g.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),g.xp6(2),g.Q6J("ngModel",ue.status),g.xp6(1),g.Oqu(g.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),g.xp6(3),g.hij("",g.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),g.xp6(2),g.Q6J("ngModel",ue.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ne(te,fe){if(1&te){const ue=g.EpF();g.TgZ(0,"div",12)(1,"button",13),g.NdJ("click",function(){g.CHM(ue);const E=g.oxw();return g.KtG(E.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(ue);const E=g.oxw();return g.KtG(E.asEdit?E.onEdit():E.onCreate())}),g._uU(5),g.qZA()()}if(2&te){const ue=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",ue.nameControl.invalid||ue.delayControl.invalid||ue.recurrenceControl.invalid||ue.pathControl.invalid),g.xp6(1),g.hij(" ",ue.buttonText," ")}}let le=(()=>{class te{constructor(ue,we,E,O,H){this.dialogRef=ue,this.data=we,this.serviceManager=E,this.notificator=O,this.translate=H,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new A.p4(10,[A.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new A.p4(2,[A.kI.pattern("^[0-9]*$")]),this.pathControl=new A.p4("",[A.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const ue="./".concat(this.nameControl.value);this.pathControl.setValue(ue)}}return te.\u0275fac=function(ue){return new(ue||te)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(d.V6),g.Y36(C.sK))},te.\u0275cmp=g.Xpm({type:te,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ue,we){1&ue&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,Y,1,0,"mat-spinner",1),g.YNc(4,X,40,46,"div",2),g.YNc(5,ne,6,5,"div",3),g.qZA()),2&ue&&(g.Tol(we.theme),g.xp6(2),g.Oqu(we.title),g.xp6(1),g.Q6J("ngIf",we.loading),g.xp6(1),g.Q6J("ngIf",!we.loading),g.xp6(1),g.Q6J("ngIf",!we.loading))},dependencies:[T.O5,v.TO,v.KE,R.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,U.lW,_.oG,e.uh,e.xY,e.H8,V.Ou,C.X$]}),te})()},81889:(Je,pe,h)=>{"use strict";h.d(pe,{y:()=>fe});var e=h(65412),d=h(32080),A=h(32105),w=h(24006),g=h(94650),C=h(89383),T=h(36895),v=h(59549),R=h(284),U=h(4859),_=h(56709),V=h(51572),Y=h(82322);function X(ue,we){1&ue&&g._UZ(0,"mat-spinner",3)}function ne(ue,we){if(1&ue){const E=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(H){g.CHM(E);const W=g.oxw(2);return g.KtG(W.asSubgroup=H)})("click",function(){g.CHM(E);const H=g.oxw(2);return g.KtG(H.loadVoGroups())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&ue){const E=g.oxw(2);g.Q6J("ngModel",E.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function le(ue,we){if(1&ue){const E=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(H){g.CHM(E);const W=g.oxw(2);return g.KtG(W.selectedParent=H)}),g.qZA()}if(2&ue){const E=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",E.voGroups)}}function te(ue,we){if(1&ue){const E=g.EpF();g.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"label",5),g._UZ(4,"input",6),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"mat-error"),g._uU(7),g.ALo(8,"translate"),g.qZA()(),g.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA()()(),g.YNc(14,ne,3,5,"mat-checkbox",9),g.YNc(15,le,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11)(17,"button",12),g.NdJ("click",function(){g.CHM(E);const H=g.oxw();return g.KtG(H.onCancel())}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){g.CHM(E);const H=g.oxw();return g.KtG(H.onSubmit())}),g._uU(21),g.ALo(22,"translate"),g.qZA()()()}if(2&ue){const E=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",E.nameControl),g.xp6(3),g.hij(" ",E.invalidNameMessage.length?E.invalidNameMessage:g.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),g.xp6(4),g.s9C("placeholder",g.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),g.Q6J("formControl",E.descriptionControl),g.xp6(3),g.Q6J("ngIf",E.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",E.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",E.nameControl.invalid||E.descriptionControl.invalid||E.asSubgroup&&null===E.selectedParent||E.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let fe=(()=>{class ue{constructor(E,O,H,W,$,de){this.dialogRef=E,this.data=O,this.groupService=H,this.translate=W,this.notificator=$,this.store=de,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameFunction=ye=>ye.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?W.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(ye=>this.title=ye):W.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(ye=>{this.title=ye+this.data.parentGroup.name}),W.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(ye=>this.successMessage=ye),W.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(ye=>this.successSubGroupMessage=ye)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.p4("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(E=>{this.voGroups=E.filter(O=>"members"!==O.name)})}}return ue.\u0275fac=function(E){return new(E||ue)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.ff),g.Y36(C.sK),g.Y36(d.V6),g.Y36(d.d6))},ue.\u0275cmp=g.Xpm({type:ue,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(E,O){1&E&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,X,1,0,"mat-spinner",1),g.YNc(4,te,23,20,"div",2),g.qZA()),2&E&&(g.xp6(1),g.Oqu(O.title),g.xp6(1),g.Tol(O.theme),g.xp6(1),g.Q6J("ngIf",O.loading),g.xp6(1),g.Q6J("ngIf",!O.loading))},dependencies:[T.O5,v.TO,v.KE,R.Nt,w.Fj,w.JJ,w.Q7,w.oH,w.On,U.lW,_.oG,e.uh,e.xY,e.H8,V.Ou,Y.h,C.X$]}),ue})()},54037:(Je,pe,h)=>{"use strict";h.d(pe,{Y:()=>v});var e=h(32105),d=h(65412),A=h(32080),w=h(30671),g=h(94650),C=h(89383),T=h(90995);let v=(()=>{class R{constructor(_,V,Y,X,ne){this.dialogRef=_,this.data=V,this.facilitiesManager=Y,this.notificator=X,this.translate=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new w.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(_){this.force=_.force,_.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(_){return new(_||R)(g.Y36(d.so),g.Y36(d.WI),g.Y36(e.IQ),g.Y36(A.V6),g.Y36(C.sK))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(X){return V.onSubmit(X)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","facilities")("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),R})()},41656:(Je,pe,h)=>{"use strict";h.d(pe,{P:()=>v});var e=h(65412),d=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let v=(()=>{class R{constructor(_,V,Y,X,ne){this.dialogRef=_,this.data=V,this.notificator=Y,this.translate=X,this.groupService=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const _=this.data.groups.map(V=>V.id);this.groupService.deleteGroups({groups:_,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(_){this.force=_.force,_.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(_){return new(_||R)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(C.sK),g.Y36(w.ff))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(X){return V.onSubmit(X)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","groups")("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),R})()},90719:(Je,pe,h)=>{"use strict";h.d(pe,{m:()=>v});var e=h(32105),d=h(65412),A=h(32080),w=h(30671),g=h(94650),C=h(89383),T=h(90995);let v=(()=>{class R{constructor(_,V,Y,X,ne){this.dialogRef=_,this.data=V,this.serviceManager=Y,this.notificator=X,this.translate=ne,this.dataSource=new w.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(_){this.force=_.force,_.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(_){return new(_||R)(g.Y36(d.so),g.Y36(d.WI),g.Y36(e.KK),g.Y36(A.V6),g.Y36(C.sK))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(X){return V.onSubmit(X)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","services")("anotherMessage",V.anotherMessage)("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),R})()},83491:(Je,pe,h)=>{"use strict";h.d(pe,{_:()=>ae});var e=h(65412),d=h(32105),A=h(9244),w=h(33604),g=h(32080),C=h(94650),T=h(89383),v=h(36895),R=h(3238),U=h(39349),_=h(59549),V=h(284),Y=h(24006),X=h(97392),ne=h(4859),le=h(3848),te=h(56709),fe=h(84385),ue=h(51572),we=h(10266),E=h(63312),O=h(52170);const H=["*"];let W=(()=>{class Oe{}return Oe.\u0275fac=function(me){return new(me||Oe)},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:H,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(me,N){1&me&&(C.F$t(),C.TgZ(0,"div",0)(1,"span",1),C._uU(2),C.qZA(),C.TgZ(3,"div",2),C.Hsn(4),C.qZA()(),C.TgZ(5,"div",3),C._UZ(6,"span",4),C.TgZ(7,"div",5),C._uU(8),C.qZA()()),2&me&&(C.xp6(2),C.hij("",N.label,":"),C.xp6(6),C.hij(" ",N.description," "))}}),Oe})();var $=h(57706);let de=(()=>{class Oe{constructor(me){this.translateService=me}transform(me){switch(me){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+me);default:return me}}}return Oe.\u0275fac=function(me){return new(me||Oe)(C.Y36(T.sK,16))},Oe.\u0275pipe=C.Yjl({name:"applicationFormItemDisabled",type:Oe,pure:!0}),Oe})(),ye=(()=>{class Oe{constructor(me){this.translateService=me}transform(me){switch(me){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+me);default:return me}}}return Oe.\u0275fac=function(me){return new(me||Oe)(C.Y36(T.sK,16))},Oe.\u0275pipe=C.Yjl({name:"applicationFormItemHidden",type:Oe,pure:!0}),Oe})();function xe(Oe,Q){1&Oe&&C._UZ(0,"mat-spinner",8)}function Me(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"section")(5,"mat-checkbox",22),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw(3);return C.KtG(r.applicationFormItem.updatable=L)}),C.qZA()()()()}if(2&Oe){const me=C.oxw(3);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),C.xp6(4),C.Q6J("ngModel",me.applicationFormItem.updatable)}}function Ze(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw(3);return C.KtG(r.applicationFormItem.federationAttribute=L)}),C.qZA()()()}if(2&Oe){const me=C.oxw(3);C.xp6(2),C.Q6J("ngModel",me.applicationFormItem.federationAttribute)}}function se(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"section")(5,"mat-checkbox",22),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.applicationFormItem.required=L)}),C.qZA()()(),C.YNc(6,Me,6,7,"div",17),C.TgZ(7,"app-edit-application-form-item-line",12),C.ALo(8,"translate"),C.ALo(9,"translate"),C.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),C.NdJ("itemSelected",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.applicationFormItem.perunSourceAttribute=L.value)}),C.qZA()()(),C.TgZ(12,"app-edit-application-form-item-line",12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),C.NdJ("itemSelected",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.applicationFormItem.perunDestinationAttribute=L.value)}),C.qZA()()(),C.TgZ(17,"app-edit-application-form-item-line",12),C.ALo(18,"translate"),C.ALo(19,"translate"),C.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),C.NdJ("itemSelected",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.changeFederationAttribute(L))}),C.qZA()(),C.YNc(22,Ze,3,1,"div",25),C.qZA()()}if(2&Oe){const me=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",C.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),C.xp6(4),C.Q6J("ngModel",me.applicationFormItem.required),C.xp6(1),C.Q6J("ngIf",me.typesWithUpdatable.indexOf(me.applicationFormItem.type)>-1),C.xp6(1),C.Q6J("description",C.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),C.xp6(4),C.Q6J("attributes",me.sourceAttributes)("selectedAttribute",me.applicationFormItem.perunSourceAttribute)("asGroup",!!me.data.group)("type",me.itemType.SOURCE),C.xp6(1),C.Q6J("description",C.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),C.xp6(4),C.Q6J("attributes",me.destinationAttributes)("selectedAttribute",me.applicationFormItem.perunDestinationAttribute)("asGroup",!!me.data.group)("type",me.itemType.DESTINATION),C.xp6(1),C.Q6J("description",C.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),C.xp6(4),C.Q6J("selectedAttribute",me.applicationFormItem.federationAttribute)("asGroup",!!me.data.group)("type",me.itemType.FEDERATION),C.xp6(1),C.Q6J("ngIf"," -- custom value -- "===me.federationAttributeDN)}}function ze(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"input",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.applicationFormItem.regex=L)}),C.qZA()()()()}if(2&Oe){const me=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),C.xp6(4),C.Q6J("ngModel",me.applicationFormItem.regex)}}function he(Oe,Q){if(1&Oe&&(C.TgZ(0,"mat-option",26),C._uU(1),C.ALo(2,"applicationFormItemDisabled"),C.qZA()),2&Oe){const me=Q.$implicit;C.Q6J("value",me),C.xp6(1),C.hij(" ",C.lcZ(2,2,me)," ")}}function De(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"perun-web-apps-app-form-item-search-select",27),C.NdJ("itemSelected",function(L){C.CHM(me);const r=C.oxw(3);return C.KtG(r.disabledDependencyItem=L)}),C.qZA()}if(2&Oe){const me=C.oxw(3);C.Q6J("item",me.disabledDependencyItem)("items",me.possibleDependencyItems)}}function j(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"mat-select",18),C.NdJ("valueChange",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.applicationFormItem.disabled=L)}),C.YNc(6,he,3,4,"mat-option",19),C.qZA()()(),C.TgZ(7,"app-edit-application-form-item-line",12),C.ALo(8,"translate"),C.ALo(9,"translate"),C.TgZ(10,"div",13),C.YNc(11,De,1,2,"perun-web-apps-app-form-item-search-select",20),C.qZA()()()}if(2&Oe){const me=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",C.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),C.xp6(4),C.Q6J("value",me.applicationFormItem.disabled),C.xp6(1),C.Q6J("ngForOf",me.disabledValues),C.xp6(1),C.Q6J("description",C.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",C.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),C.xp6(4),C.Q6J("ngIf",null!==me.disabledDependencyItem)}}function P(Oe,Q){if(1&Oe&&(C.TgZ(0,"mat-option",26),C._uU(1),C.ALo(2,"applicationFormItemHidden"),C.qZA()),2&Oe){const me=Q.$implicit;C.Q6J("value",me),C.xp6(1),C.hij(" ",C.lcZ(2,2,me)," ")}}function G(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"perun-web-apps-app-form-item-search-select",27),C.NdJ("itemSelected",function(L){C.CHM(me);const r=C.oxw(2);return C.KtG(r.hiddenDependencyItem=L)}),C.qZA()}if(2&Oe){const me=C.oxw(2);C.Q6J("item",me.hiddenDependencyItem)("items",me.possibleDependencyItems)}}function ce(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",28),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw().$implicit,s=C.oxw(2);return C.KtG(s.applicationFormItem.i18n[r].label=L)}),C.qZA()()()()}if(2&Oe){const me=C.oxw().$implicit,N=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",C.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),C.xp6(4),C.Q6J("cdkTextareaAutosize",!0)("ngModel",N.applicationFormItem.i18n[me].label)}}function q(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw().$implicit,s=C.oxw(2);return C.KtG(s.applicationFormItem.i18n[r].label=L)}),C.qZA()()(),C.TgZ(6,"app-edit-application-form-item-line",12),C.ALo(7,"translate"),C.ALo(8,"translate"),C.TgZ(9,"mat-form-field",13)(10,"textarea",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw().$implicit,s=C.oxw(2);return C.KtG(s.applicationFormItem.i18n[r].help=L)}),C.qZA()()(),C.TgZ(11,"app-edit-application-form-item-line",12),C.ALo(12,"translate"),C.ALo(13,"translate"),C.TgZ(14,"mat-form-field",13)(15,"textarea",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw().$implicit,s=C.oxw(2);return C.KtG(s.applicationFormItem.i18n[r].errorMessage=L)}),C.qZA()()()()}if(2&Oe){const me=C.oxw().$implicit,N=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",C.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),C.xp6(4),C.Q6J("ngModel",N.applicationFormItem.i18n[me].label),C.xp6(1),C.Q6J("description",C.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",C.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),C.xp6(4),C.Q6J("ngModel",N.applicationFormItem.i18n[me].help),C.xp6(1),C.Q6J("description",C.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",C.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),C.xp6(4),C.Q6J("ngModel",N.applicationFormItem.i18n[me].errorMessage)}}function Te(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw().$implicit,s=C.oxw(2);return C.KtG(s.applicationFormItem.i18n[r].label=L)}),C.qZA()()()()}if(2&Oe){const me=C.oxw().$implicit,N=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),C.xp6(4),C.Q6J("ngModel",N.applicationFormItem.i18n[me].label)}}function He(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div"),C._uU(1),C.ALo(2,"translate"),C.TgZ(3,"mat-form-field")(4,"input",14),C.NdJ("ngModelChange",function(L){const s=C.CHM(me).$implicit;return C.KtG(s[0]=L)}),C.qZA()(),C._uU(5),C.ALo(6,"translate"),C.TgZ(7,"mat-form-field")(8,"input",14),C.NdJ("ngModelChange",function(L){const s=C.CHM(me).$implicit;return C.KtG(s[1]=L)}),C.qZA()(),C.TgZ(9,"button",37),C.NdJ("click",function(){const r=C.CHM(me).$implicit,s=C.oxw(2).$implicit,m=C.oxw(2);return C.KtG(m.removeOption(r,s))}),C.ALo(10,"translate"),C.TgZ(11,"mat-icon"),C._uU(12,"clear"),C.qZA()()()}if(2&Oe){const me=Q.$implicit;C.xp6(1),C.hij(" ",C.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),C.xp6(3),C.Q6J("ngModel",me[0]),C.xp6(1),C.hij(" ",C.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),C.xp6(3),C.Q6J("ngModel",me[1]),C.xp6(1),C.s9C("matTooltip",C.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function dt(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div")(1,"div",29),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",30),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"div",31)(8,"button",32),C.NdJ("click",function(){C.CHM(me);const L=C.oxw().$implicit,r=C.oxw(2);return C.KtG(r.sortOptionsAZ(L))}),C.TgZ(9,"i",33),C._uU(10,"arrow_downward"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",34),C.NdJ("click",function(){C.CHM(me);const L=C.oxw().$implicit,r=C.oxw(2);return C.KtG(r.sortOptionsZA(L))}),C.TgZ(14,"i",33),C._uU(15,"arrow_upward"),C.qZA(),C._uU(16),C.ALo(17,"translate"),C.qZA()(),C.YNc(18,He,13,11,"div",35),C.TgZ(19,"button",36),C.NdJ("click",function(){C.CHM(me);const L=C.oxw().$implicit,r=C.oxw(2);return C.KtG(r.addOption(L))}),C._uU(20),C.ALo(21,"translate"),C.qZA()()}if(2&Oe){const me=C.oxw().$implicit,N=C.oxw(2);C.xp6(2),C.hij(" ",C.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),C.xp6(3),C.hij(" ",C.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),C.xp6(6),C.hij(" ",C.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),C.xp6(5),C.hij(" ",C.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),C.xp6(2),C.Q6J("ngForOf",N.options[me]),C.xp6(2),C.hij(" ",C.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const et=function(){return["HEADING","HTML_COMMENT"]},_t=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Qe=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},st=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function Z(Oe,Q){if(1&Oe&&(C.TgZ(0,"mat-tab",11),C.ALo(1,"translate"),C.ALo(2,"uppercase"),C.YNc(3,ce,6,8,"div",17),C.YNc(4,q,16,21,"div",17),C.YNc(5,Te,6,7,"div",17),C.YNc(6,dt,22,16,"div",17),C.qZA()),2&Oe){const me=Q.$implicit,N=C.oxw(2);C.s9C("label",C.lcZ(1,5,C.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+me))),C.xp6(3),C.Q6J("ngIf",N.isApplicationFormItemOfType(C.DdM(9,et))),C.xp6(1),C.Q6J("ngIf",N.isApplicationFormItemOfType(C.DdM(10,_t))),C.xp6(1),C.Q6J("ngIf",N.isApplicationFormItemOfType(C.DdM(11,Qe))),C.xp6(1),C.Q6J("ngIf",N.isApplicationFormItemOfType(C.DdM(12,st)))}}const ve=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},oe=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function ge(Oe,Q){if(1&Oe){const me=C.EpF();C.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),C.ALo(3,"translate"),C.TgZ(4,"app-edit-application-form-item-line",12),C.ALo(5,"translate"),C.ALo(6,"translate"),C.TgZ(7,"mat-form-field",13)(8,"input",14),C.NdJ("ngModelChange",function(L){C.CHM(me);const r=C.oxw();return C.KtG(r.applicationFormItem.shortname=L)}),C.qZA()()(),C.TgZ(9,"app-edit-application-form-item-line",12),C.ALo(10,"translate"),C.ALo(11,"translate"),C._uU(12),C.ALo(13,"applicationFormItemType"),C.qZA(),C.TgZ(14,"app-edit-application-form-item-line",12),C.ALo(15,"translate"),C.ALo(16,"translate"),C.TgZ(17,"section")(18,"mat-checkbox",15),C.NdJ("change",function(){C.CHM(me);const L=C.oxw();return C.KtG(L.onChangingType("INITIAL"))}),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-checkbox",16),C.NdJ("change",function(){C.CHM(me);const L=C.oxw();return C.KtG(L.onChangingType("EXTENSION"))}),C._uU(22),C.ALo(23,"translate"),C.qZA()()(),C.YNc(24,se,23,38,"div",17),C.YNc(25,ze,6,7,"div",17),C.YNc(26,j,12,15,"div",17),C.TgZ(27,"app-edit-application-form-item-line",12),C.ALo(28,"translate"),C.ALo(29,"translate"),C.TgZ(30,"mat-form-field",13)(31,"mat-select",18),C.NdJ("valueChange",function(L){C.CHM(me);const r=C.oxw();return C.KtG(r.applicationFormItem.hidden=L)}),C.YNc(32,P,3,4,"mat-option",19),C.qZA()()(),C.TgZ(33,"app-edit-application-form-item-line",12),C.ALo(34,"translate"),C.ALo(35,"translate"),C.TgZ(36,"div",13),C.YNc(37,G,1,2,"perun-web-apps-app-form-item-search-select",20),C.qZA()()(),C.YNc(38,Z,7,13,"mat-tab",21),C.qZA()()}if(2&Oe){const me=C.oxw();C.xp6(2),C.s9C("label",C.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),C.xp6(2),C.Q6J("description",C.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",C.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),C.xp6(4),C.Q6J("ngModel",me.applicationFormItem.shortname),C.xp6(1),C.Q6J("description",C.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",C.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),C.xp6(3),C.hij(" ",C.lcZ(13,34,me.applicationFormItem.type)," "),C.xp6(2),C.Q6J("description",C.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",C.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),C.xp6(4),C.Q6J("ngModel",me.applicationFormItem.applicationTypes.includes("INITIAL")),C.xp6(1),C.hij(" ",C.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),C.xp6(2),C.Q6J("ngModel",me.applicationFormItem.applicationTypes.includes("EXTENSION")),C.xp6(1),C.hij(" ",C.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),C.xp6(2),C.Q6J("ngIf",me.isApplicationFormItemOfType(C.DdM(52,ve))),C.xp6(1),C.Q6J("ngIf",me.isApplicationFormItemOfType(C.DdM(53,oe))),C.xp6(1),C.Q6J("ngIf",me.typesWithDisabled.indexOf(me.applicationFormItem.type)>-1),C.xp6(1),C.Q6J("description",C.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",C.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),C.xp6(4),C.Q6J("value",me.applicationFormItem.hidden),C.xp6(1),C.Q6J("ngForOf",me.hiddenValues),C.xp6(1),C.Q6J("description",C.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",C.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),C.xp6(4),C.Q6J("ngIf",null!==me.hiddenDependencyItem),C.xp6(1),C.Q6J("ngForOf",me.languages)}}let ae=(()=>{class Oe{constructor(me,N,L,r,s,m){this.dialogRef=me,this.data=N,this.attributesManager=L,this.translateService=r,this.store=s,this.cd=m,this.federationAttributeDN="",this.itemType=w.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(me=>me.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(me=>me.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,A.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(me=>{const N=this.filterAttributesForWidget(me);this.sourceAttributes=N.concat(this.findAttribute(me,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=N.concat(this.findAttribute(me,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(me){if(this.applicationFormItem.applicationTypes.includes(me)){const N=this.applicationFormItem.applicationTypes.indexOf(me);this.applicationFormItem.applicationTypes.splice(N,1)}else this.applicationFormItem.applicationTypes.push(me)}addOption(me){this.options[me].push(["",""])}removeOption(me,N){this.options[N]=this.options[N].filter(L=>!(L[0]===me[0]&&L[1]===me[1]))}sortOptionsAZ(me){this.options[me]=this.options[me].sort((N,L)=>N[1]>L[1]?1:N[1]N[1]>L[1]?-1:N[1]this.dependencyTypes.includes(me.type)).filter(me=>me.id!==this.data.applicationFormItem.id))}updateOption(me){let N="";if(this.options[me])for(const L of this.options[me])""!==L[0]&&""!==L[1]&&(N=""===N?L[0]+"#"+L[1]:N+"|"+L[0]+"#"+L[1]);this.applicationFormItem.i18n[me].options=N}updateOptions(){for(const me of this.languages)this.updateOption(me)}findAttribute(me,N){return me.find(L=>N.includes(L.friendlyName))}filterAttributesForWidget(me){return me.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?N=>N.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?N=>N.type.includes("ArrayList"):N=>!N.type.includes("ArrayList")&&!N.type.includes("LinkedHashMap"))}}return Oe.\u0275fac=function(me){return new(me||Oe)(C.Y36(e.so),C.Y36(e.WI),C.Y36(d.H8),C.Y36(T.sK),C.Y36(g.d6),C.Y36(C.sBO))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(me,N){1&me&&(C.TgZ(0,"div")(1,"div",0)(2,"h1",1),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.YNc(5,xe,1,0,"mat-spinner",2),C.YNc(6,ge,39,54,"div",3),C.TgZ(7,"div",4)(8,"button",5),C.NdJ("click",function(){return N.cancel()}),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"div",6),C.ALo(12,"translate"),C.TgZ(13,"button",7),C.NdJ("click",function(){return N.submit()}),C._uU(14),C.ALo(15,"translate"),C.qZA()()()()()),2&me&&(C.Gre("",N.theme," h-100"),C.xp6(3),C.AsE(" ",C.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",N.applicationFormItem.shortname," "),C.xp6(2),C.Q6J("ngIf",N.loading),C.xp6(1),C.Q6J("ngIf",!N.loading),C.xp6(3),C.hij(" ",C.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),C.Q6J("matTooltipDisabled",!N.applicationFormItem.required||""!==N.applicationFormItem.perunSourceAttribute||""!==N.applicationFormItem.federationAttribute||"ALWAYS"!==N.applicationFormItem.disabled&&"ALWAYS"!==N.applicationFormItem.hidden),C.xp6(2),C.Q6J("disabled",N.loading||N.applicationFormItem.required&&""===N.applicationFormItem.perunSourceAttribute&&""===N.applicationFormItem.federationAttribute&&("ALWAYS"===N.applicationFormItem.disabled||"ALWAYS"===N.applicationFormItem.hidden)),C.xp6(1),C.hij(" ",C.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[v.sg,v.O5,R.ey,U.IC,_.KE,V.Nt,Y.Fj,Y.JJ,Y.On,X.Hw,ne.lW,le.SP,le.uX,te.oG,e.uh,e.xY,e.H8,fe.gD,ue.Ou,we.gM,E.Y,O.$x,W,v.gd,T.X$,$.c,de,ye]}),Oe})()},19352:(Je,pe,h)=>{"use strict";h.d(pe,{H:()=>Ze});var e=h(32105),d=h(65412),A=h(32080),w=h(30671),g=h(9244),C=h(16074),T=h(36895),v=h(94650),R=h(89383),U=h(97392),_=h(4859),V=h(51572),Y=h(10266),X=h(31359);function ne(se,ze){1&se&&v._UZ(0,"mat-spinner",6)}function le(se,ze){1&se&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&se&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function te(se,ze){if(1&se&&(v.TgZ(0,"td",18),v._uU(1),v.qZA()),2&se){const he=ze.$implicit;v.xp6(1),v.Oqu(he.user.id)}}function fe(se,ze){1&se&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&se&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function ue(se,ze){if(1&se&&(v.TgZ(0,"td",18),v._uU(1),v.ALo(2,"userFullName"),v.qZA()),2&se){const he=ze.$implicit;v.xp6(1),v.Oqu(v.lcZ(2,1,he.user))}}function we(se,ze){1&se&&(v.TgZ(0,"th",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&se&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function E(se,ze){if(1&se){const he=v.EpF();v.TgZ(0,"button",20),v.NdJ("click",function(){v.CHM(he);const j=v.oxw().$implicit,P=v.oxw(2);return v.KtG(P.changeExpiration(j))}),v.TgZ(1,"mat-icon"),v._uU(2," today "),v.qZA()()}}function O(se,ze){if(1&se&&(v.TgZ(0,"td",18)(1,"span"),v._uU(2),v.qZA(),v.YNc(3,E,3,0,"button",19),v.qZA()),2&se){const he=ze.$implicit,De=v.oxw(2);v.xp6(2),v.Oqu(De.parseDate(he.validityTo)),v.xp6(1),v.Q6J("ngIf",De.isExpirationAuthorized(he))}}function H(se,ze){1&se&&v._UZ(0,"th",17)}function W(se,ze){1&se&&(v.TgZ(0,"mat-icon",25),v._uU(1,"clear"),v.qZA())}function $(se,ze){1&se&&(v.TgZ(0,"mat-icon"),v._uU(1,"settings_backup_restore"),v.qZA())}function de(se,ze){if(1&se){const he=v.EpF();v.TgZ(0,"td",18)(1,"div",21),v.ALo(2,"translate"),v.TgZ(3,"button",22),v.NdJ("click",function(){const P=v.CHM(he).$implicit,G=v.oxw(2);return v.KtG(G.markSponsor(P))}),v.YNc(4,W,2,0,"mat-icon",23),v.YNc(5,$,2,0,"mat-icon",24),v.qZA()()()}if(2&se){const he=ze.$implicit,De=v.oxw(2);v.xp6(1),v.s9C("matTooltip",v.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),v.Q6J("matTooltipDisabled",De.isRemoveAuthorized(he))("matTooltipPosition","above"),v.xp6(2),v.Q6J("disabled",!De.isRemoveAuthorized(he)),v.xp6(1),v.Q6J("ngIf",!De.sponsorsToRemove.has(he.user.id)),v.xp6(1),v.Q6J("ngIf",De.sponsorsToRemove.has(he.user.id))}}function ye(se,ze){1&se&&v._UZ(0,"tr",26)}function xe(se,ze){if(1&se&&v._UZ(0,"tr",27),2&se){const he=ze.$implicit,De=v.oxw(2);v.ekj("make-red",De.sponsorsToRemove.has(he.user.id))}}function Me(se,ze){if(1&se&&(v.TgZ(0,"div",7)(1,"table",8),v.ynx(2,9),v.YNc(3,le,3,3,"th",10),v.YNc(4,te,2,1,"td",11),v.BQk(),v.ynx(5,12),v.YNc(6,fe,3,3,"th",10),v.YNc(7,ue,3,3,"td",11),v.BQk(),v.ynx(8,13),v.YNc(9,we,3,3,"th",10),v.YNc(10,O,4,2,"td",11),v.BQk(),v.ynx(11,14),v.YNc(12,H,1,0,"th",10),v.YNc(13,de,6,8,"td",11),v.BQk(),v.YNc(14,ye,1,0,"tr",15),v.YNc(15,xe,1,2,"tr",16),v.qZA()()),2&se){const he=v.oxw();v.xp6(1),v.Q6J("dataSource",he.dataSource),v.xp6(13),v.Q6J("matHeaderRowDef",he.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",he.displayedColumns)}}let Ze=(()=>{class se{constructor(he,De,j,P,G,ce,q,Te){this.dialogRef=he,this.data=De,this.memberService=j,this.userService=P,this.notificator=G,this.authResolver=ce,this.translate=q,this.dialog=Te,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(he){this.sponsorsToRemove.has(he.user.id)?this.sponsorsToRemove.delete(he.user.id):this.sponsorsToRemove.add(he.user.id)}onSubmit(){this.loading=!0;const he=Array.from(this.sponsorsToRemove);this.removeSponsors(he)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(he){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[he.user])}isExpirationAuthorized(he){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[he.user,this.vo])}parseDate(he){return null===he?"Never expire":(0,T.p6)(he,"d.M.y","en")}changeExpiration(he){const De=(0,g.kZ)();De.width="400px",De.data={memberId:this.data.member.id,sponsor:he},this.dialog.open(C.hd,De).afterClosed().subscribe(P=>{P&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(G=>{this.sponsors=G,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(he){if(0===he.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const De=he.pop();this.memberService.removeSponsor(this.data.member.id,De).subscribe(()=>{this.removeSponsors(he)},()=>this.loading=!1)}}return se.\u0275fac=function(he){return new(he||se)(v.Y36(d.so),v.Y36(d.WI),v.Y36(e.uq),v.Y36(e.Fv),v.Y36(A.V6),v.Y36(A.x4),v.Y36(R.sK),v.Y36(d.uw))},se.\u0275cmp=v.Xpm({type:se,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(he,De){1&he&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div"),v.YNc(4,ne,1,0,"mat-spinner",1),v.YNc(5,Me,16,3,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return De.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return De.onSubmit()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&he&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),v.xp6(2),v.Tol(De.theme),v.xp6(1),v.Q6J("ngIf",De.loading),v.xp6(1),v.Q6J("ngIf",!De.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",De.loading||0===De.sponsorsToRemove.size),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[T.O5,U.Hw,_.lW,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,d.uh,d.xY,d.H8,V.Ou,Y.gM,R.X$,X.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),se})()},74414:(Je,pe,h)=>{"use strict";h.d(pe,{R:()=>E});var e=h(65412),d=h(24006),A=h(32105),w=h(32080),g=h(94650),C=h(89383),T=h(36895),v=h(3238),R=h(59549),U=h(284),_=h(4859),V=h(84385),Y=h(51572);function X(O,H){1&O&&g._UZ(0,"mat-spinner",6)}function ne(O,H){1&O&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&O&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function le(O,H){1&O&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&O&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function te(O,H){1&O&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&O&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function fe(O,H){1&O&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&O&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function ue(O,H){if(1&O&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&O){const W=H.$implicit;g.s9C("value",W),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+W)))}}function we(O,H){if(1&O){const W=g.EpF();g.TgZ(0,"div",7),g.YNc(1,ne,3,3,"div",8),g.YNc(2,le,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,te,3,3,"mat-error",11),g.qZA(),g.TgZ(7,"mat-form-field",9),g._UZ(8,"textarea",10),g.ALo(9,"translate"),g.YNc(10,fe,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9)(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(de){g.CHM(W);const ye=g.oxw();return g.KtG(ye.currentLanguage=de)}),g.YNc(16,ue,4,6,"mat-option",13),g.qZA()()()}if(2&O){const W=g.oxw();g.xp6(1),g.Q6J("ngIf",!W.data.groupId),g.xp6(1),g.Q6J("ngIf",W.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",W.name),g.xp6(2),g.Q6J("ngIf",W.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",W.emailForm),g.xp6(2),g.Q6J("ngIf",W.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",W.currentLanguage),g.xp6(1),g.Q6J("ngForOf",W.languages)}}let E=(()=>{class O{constructor(W,$,de,ye,xe,Me){this.dialogRef=W,this.data=$,this.registrarManager=de,this.notificator=ye,this.translate=xe,this.store=Me,this.emailForm=new d.p4("",[d.kI.required,d.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new d.p4("",d.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(W=>{this.notificator.showSuccess(W),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(W=>{this.notificator.showSuccess(W),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return O.\u0275fac=function(W){return new(W||O)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.tk),g.Y36(w.V6),g.Y36(C.sK),g.Y36(w.d6))},O.\u0275cmp=g.Xpm({type:O,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(W,$){1&W&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,X,1,0,"mat-spinner",1),g.YNc(5,we,17,17,"div",2),g.TgZ(6,"div",3)(7,"button",4),g.NdJ("click",function(){return $.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return $.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA()()()),2&W&&(g.Tol($.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",$.loading),g.xp6(1),g.Q6J("ngIf",!$.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",$.emailForm.invalid||$.name.invalid||$.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[T.sg,T.O5,v.ey,R.TO,R.KE,R.hX,U.Nt,d.Fj,d.JJ,d.Q7,d.oH,_.lW,e.uh,e.xY,e.H8,V.gD,Y.Ou,T.gd,C.X$]}),O})()},87842:(Je,pe,h)=>{"use strict";h.d(pe,{c:()=>de});var e=h(65412),d=h(24006),A=h(68675),w=h(54004),g=h(36769),C=h(32080),T=h(32105),v=h(94650),R=h(89383),U=h(36895),_=h(47957),V=h(3238),Y=h(59549),X=h(284),ne=h(4859),le=h(51572),te=h(10266),fe=h(71948),ue=h(98380);function we(ye,xe){1&ye&&(v.TgZ(0,"mat-radio-button",12),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ye&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function E(ye,xe){1&ye&&(v.TgZ(0,"mat-radio-button",13),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ye&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function O(ye,xe){1&ye&&(v.TgZ(0,"perun-web-apps-alert",14),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&ye&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function H(ye,xe){if(1&ye){const Me=v.EpF();v.TgZ(0,"mat-option",20),v.NdJ("click",function(){const ze=v.CHM(Me).$implicit,he=v.oxw(2);return v.KtG(he.selectedGroup=ze)}),v.TgZ(1,"span"),v._uU(2),v.qZA()()}if(2&ye){const Me=xe.$implicit;v.Q6J("value",Me),v.xp6(2),v.Oqu(Me.name)}}function W(ye,xe){if(1&ye){const Me=v.EpF();v.TgZ(0,"mat-form-field",15)(1,"input",16),v.NdJ("change",function(){v.CHM(Me);const se=v.oxw();return v.KtG(se.selectedGroup=null)}),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"mat-autocomplete",17,18),v.YNc(5,H,3,2,"mat-option",19),v.ALo(6,"async"),v.qZA()()}if(2&ye){const Me=v.MAs(4),Ze=v.oxw();v.Q6J("@openClose","toGroup"===Ze.moveOption?"open":"closed"),v.xp6(1),v.s9C("placeholder",v.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),v.Q6J("formControl",Ze.otherGroupsCtrl)("matAutocomplete",Me),v.xp6(2),v.Q6J("displayWith",Ze.displayFn),v.xp6(2),v.Q6J("ngForOf",v.lcZ(6,8,Ze.filteredGroups))}}function $(ye,xe){1&ye&&v._UZ(0,"mat-spinner",21)}let de=(()=>{class ye{constructor(Me,Ze,se,ze,he,De,j){this.dialogRef=Me,this.data=Ze,this.groupService=se,this.notificator=ze,this.translate=he,this.apiRequest=De,this.authResolver=j,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new d.p4(null,[d.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(P=>this.successMessage=P),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(P=>this.errorMessage=P)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Me=>{this.otherGroups=Me.filter(Ze=>Ze.id!==this.data.group.id&&"members"!==Ze.name&&this.canMove(Ze)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,A.O)(""),(0,w.U)(Ze=>Ze?this._filterGroups(Ze):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Me){return Me&&Me.name}canMove(Me){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Me,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Me])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},Me=>{this.notificator.showRPCError(Me,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Me){if("object"==typeof Me)return[];const Ze=Me.toLowerCase();return Me?this.otherGroups.filter(se=>se.name.toLowerCase().includes(Ze)):this.otherGroups}}return ye.\u0275fac=function(Me){return new(Me||ye)(v.Y36(e.so),v.Y36(e.WI),v.Y36(T.ff),v.Y36(C.V6),v.Y36(R.sK),v.Y36(C.F5),v.Y36(C.x4))},ye.\u0275cmp=v.Xpm({type:ye,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(Me,Ze){1&Me&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",1)(5,"p"),v._uU(6),v.ALo(7,"translate"),v.qZA(),v.TgZ(8,"mat-radio-group",2),v.NdJ("ngModelChange",function(ze){return Ze.moveOption=ze}),v.YNc(9,we,3,3,"mat-radio-button",3),v.YNc(10,E,3,3,"mat-radio-button",4),v.qZA(),v.YNc(11,O,3,3,"perun-web-apps-alert",5),v.YNc(12,W,7,10,"mat-form-field",6),v.qZA(),v.YNc(13,$,1,0,"mat-spinner",7),v.TgZ(14,"div",8)(15,"button",9),v.NdJ("click",function(){return Ze.close()}),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"span",10),v.ALo(19,"translate"),v.TgZ(20,"button",11),v.NdJ("click",function(){return Ze.confirm()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()()),2&Me&&(v.Tol(Ze.data.theme),v.xp6(2),v.AsE("",v.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Ze.data.group.name,""),v.xp6(4),v.hij(" ",v.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),v.xp6(2),v.Q6J("ngModel",Ze.moveOption),v.xp6(1),v.Q6J("ngIf",!Ze.toRootOptionDisabled),v.xp6(1),v.Q6J("ngIf",!Ze.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",Ze.toRootOptionDisabled&&Ze.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",!Ze.toGroupOptionDisabled),v.xp6(1),v.Q6J("ngIf",Ze.loading),v.xp6(3),v.hij(" ",v.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),v.Q6J("matTooltipDisabled",null!==Ze.selectedGroup||"toRoot"===Ze.moveOption)("matTooltipPosition","above"),v.xp6(2),v.Q6J("disabled",(Ze.otherGroupsCtrl.invalid||null===Ze.selectedGroup)&&"toRoot"!==Ze.moveOption||Ze.loading),v.xp6(1),v.hij(" ",v.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[U.sg,U.O5,_.XC,_.ZL,V.ey,Y.KE,X.Nt,d.Fj,d.JJ,d.Q7,d.oH,d.On,ne.lW,e.uh,e.xY,e.H8,le.Ou,te.gM,fe.VQ,fe.U0,ue.w,U.Ov,R.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),ye})()},58964:(Je,pe,h)=>{"use strict";h.d(pe,{m:()=>te});var e=h(65412),d=h(32105),A=h(32080),w=h(94650),g=h(89383),C=h(36895),T=h(3238),v=h(59549),R=h(4859),U=h(84385),_=h(51572);function V(fe,ue){1&fe&&w._UZ(0,"mat-spinner",7)}function Y(fe,ue){if(1&fe&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&fe){const we=ue.$implicit;w.Q6J("value",we),w.xp6(1),w.hij(" ",we.friendlyNameParameter," ")}}function X(fe,ue){if(1&fe&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&fe){const we=ue.$implicit;w.Q6J("value",we),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+we))," ")}}function ne(fe,ue){if(1&fe&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&fe){const we=ue.$implicit;w.Q6J("value",we),w.xp6(1),w.hij(" ",we," ")}}function le(fe,ue){if(1&fe){const we=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(O){w.CHM(we);const H=w.oxw();return w.KtG(H.selectedLogin=O)}),w.YNc(6,Y,2,2,"mat-option",10),w.qZA()(),w.TgZ(7,"mat-form-field")(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(O){w.CHM(we);const H=w.oxw();return w.KtG(H.selectedLang=O)}),w.YNc(12,X,4,6,"mat-option",10),w.qZA()(),w.TgZ(13,"mat-form-field")(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(O){w.CHM(we);const H=w.oxw();return w.KtG(H.selectedMail=O)}),w.YNc(18,ne,2,2,"mat-option",10),w.qZA()(),w.TgZ(19,"div",11)(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA()()()}if(2&fe){const we=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",we.selectedLogin),w.xp6(1),w.Q6J("ngForOf",we.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",we.selectedLang),w.xp6(1),w.Q6J("ngForOf",we.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",we.selectedMail),w.xp6(1),w.Q6J("ngForOf",we.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(we.selectedLogin.value)}}let te=(()=>{class fe{constructor(we,E,O,H,W,$,de){this.dialogRef=we,this.data=E,this.membersManagerService=O,this.attributesManagerService=H,this.store=W,this.translate=$,this.notificator=de,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],$.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(ye=>this.successMessage=ye)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const we=this.selectedLogin.friendlyNameParameter,O=window.location.href.split("/"),H=O[0]+"//"+O[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,we,this.pwdMails.get(this.selectedMail),this.selectedLang,H).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return fe.\u0275fac=function(we){return new(we||fe)(w.Y36(e.so),w.Y36(e.WI),w.Y36(d.uq),w.Y36(d.H8),w.Y36(A.d6),w.Y36(g.sK),w.Y36(A.V6))},fe.\u0275cmp=w.Xpm({type:fe,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(we,E){1&we&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,V,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,le,25,19,"div",3),w.TgZ(6,"div",4)(7,"button",5),w.NdJ("click",function(){return E.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return E.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA()()),2&we&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",E.loading),w.xp6(1),w.Q6J("ngIf",!E.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",E.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[C.sg,C.O5,T.ey,v.KE,v.hX,R.lW,e.uh,e.xY,e.H8,U.gD,_.Ou,C.gd,g.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),fe})()},53455:(Je,pe,h)=>{"use strict";h.d(pe,{X:()=>we});var e=h(65412),d=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(36895),v=h(4859),R=h(51572),U=h(31359);function _(E,O){1&E&&g._UZ(0,"th",13)}function V(E,O){if(1&E&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&E){const H=O.$implicit;g.xp6(1),g.Oqu(H.id)}}function Y(E,O){1&E&&g._UZ(0,"th",13)}function X(E,O){if(1&E&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&E){const H=O.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,H.user))}}function ne(E,O){1&E&&g._UZ(0,"tr",15)}function le(E,O){1&E&&g._UZ(0,"tr",16)}function te(E,O){if(1&E&&(g.TgZ(0,"div",4)(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",5),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",6),g.ynx(8,7),g.YNc(9,_,1,0,"th",8),g.YNc(10,V,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,Y,1,0,"th",8),g.YNc(13,X,3,3,"td",9),g.BQk(),g.YNc(14,ne,1,0,"tr",11),g.YNc(15,le,1,0,"tr",12),g.qZA()()),2&E){const H=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,H.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",H.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",H.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",H.displayedColumns)}}function fe(E,O){1&E&&g._UZ(0,"mat-spinner",17)}function ue(E,O){if(1&E){const H=g.EpF();g.TgZ(0,"div",18)(1,"button",19),g.NdJ("click",function(){g.CHM(H);const $=g.oxw();return g.KtG($.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){g.CHM(H);const $=g.oxw();return g.KtG($.onSubmit())}),g._uU(5),g.ALo(6,"translate"),g.qZA()()}if(2&E){const H=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,H.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let we=(()=>{class E{constructor(H,W,$,de,ye,xe){this.dialogRef=H,this.data=W,this.membersService=$,this.groupService=de,this.notificator=ye,this.translate=xe,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(H=>H.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(H=>H.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const H=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(H),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return E.\u0275fac=function(H){return new(H||E)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(A.V6),g.Y36(C.sK))},E.\u0275cmp=g.Xpm({type:E,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(H,W){1&H&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,te,16,9,"div",1),g.YNc(5,fe,1,0,"mat-spinner",2),g.YNc(6,ue,7,6,"div",3),g.qZA()),2&H&&(g.Tol(W.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!W.loading),g.xp6(1),g.Q6J("ngIf",W.loading),g.xp6(1),g.Q6J("ngIf",!W.loading))},dependencies:[T.O5,v.lW,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.uh,e.xY,e.H8,R.Ou,C.X$,U.d]}),E})()},533:(Je,pe,h)=>{"use strict";h.d(pe,{f:()=>v});var e=h(65412),d=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let v=(()=>{class R{constructor(_,V,Y,X,ne){this.dialogRef=_,this.data=V,this.notificator=Y,this.translate=X,this.resourcesManager=ne,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(_=>{this.loading=!1,this.notificator.showSuccess(_),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(_){_.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(_){return new(_||R)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(C.sK),g.Y36(w.xk))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(X){return V.onSubmit(X)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","resources")("disableForce",!0)("loading",V.loading))},dependencies:[T.e]}),R})()},11717:(Je,pe,h)=>{"use strict";h.d(pe,{o:()=>v});var e=h(65412),d=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let v=(()=>{class R{constructor(_,V,Y,X,ne){this.dialogRef=_,this.data=V,this.notificator=Y,this.voService=X,this.translate=ne,this.force=!1,this.displayedColumns=["name"],this.relations=[],ne.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(le=>this.successMessage=le)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(_){this.force=_.force,_.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(_){return new(_||R)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(w.YF),g.Y36(C.sK))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(X){return V.onSubmit(X)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","organizations")("loading",V.loading)("relations",V.relations))},dependencies:[T.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),R})()},1186:(Je,pe,h)=>{"use strict";h.d(pe,{E:()=>le});var e=h(65412),d=h(32105),A=h(94650),w=h(36895),g=h(3238),C=h(59549),T=h(284),v=h(24006),R=h(4859),U=h(84385),_=h(51572),V=h(89383);function Y(te,fe){1&te&&A._UZ(0,"mat-spinner",6)}function X(te,fe){if(1&te){const ue=A.EpF();A.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),A.NdJ("valueChange",function(E){A.CHM(ue);const O=A.oxw(2);return A.KtG(O.embeddedState=E)}),A.ALo(3,"translate"),A.TgZ(4,"mat-option",11),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"mat-option",12),A._uU(8),A.ALo(9,"translate"),A.qZA()()()()}if(2&te){const ue=A.oxw(2);A.xp6(2),A.MGl("placeholder","",A.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),A.Q6J("value",ue.embeddedState),A.xp6(3),A.Oqu(A.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ne(te,fe){if(1&te){const ue=A.EpF();A.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),A.NdJ("ngModelChange",function(E){A.CHM(ue);const O=A.oxw();return A.KtG(O.moduleName=E)}),A.ALo(3,"translate"),A.qZA()(),A.TgZ(4,"mat-form-field",9)(5,"mat-select",10),A.NdJ("valueChange",function(E){A.CHM(ue);const O=A.oxw();return A.KtG(O.initialState=E)}),A.ALo(6,"translate"),A.TgZ(7,"mat-option",11),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"mat-option",12),A._uU(11),A.ALo(12,"translate"),A.qZA()()(),A.TgZ(13,"mat-form-field",9)(14,"mat-select",10),A.NdJ("valueChange",function(E){A.CHM(ue);const O=A.oxw();return A.KtG(O.extensionState=E)}),A.ALo(15,"translate"),A.TgZ(16,"mat-option",11),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"mat-option",12),A._uU(20),A.ALo(21,"translate"),A.qZA()()(),A.YNc(22,X,10,10,"div",13),A.qZA()}if(2&te){const ue=A.oxw();A.xp6(2),A.s9C("placeholder",A.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),A.Q6J("ngModel",ue.moduleName),A.xp6(3),A.MGl("placeholder","",A.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),A.Q6J("value",ue.initialState),A.xp6(3),A.Oqu(A.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(3),A.MGl("placeholder","",A.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),A.Q6J("value",ue.extensionState),A.xp6(3),A.Oqu(A.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(2),A.Q6J("ngIf","group"===ue.entity&&ue.autoRegistrationEnabled)}}let le=(()=>{class te{constructor(ue,we,E){this.dialogRef=ue,this.data=we,this.registrarManager=E,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(ue=>{this.dialogRef.close(ue)},()=>this.loading=!1)}}return te.\u0275fac=function(ue){return new(ue||te)(A.Y36(e.so),A.Y36(e.WI),A.Y36(d.tk))},te.\u0275cmp=A.Xpm({type:te,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(ue,we){1&ue&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,Y,1,0,"mat-spinner",1),A.YNc(5,ne,23,25,"div",2),A.TgZ(6,"div",3)(7,"button",4),A.NdJ("click",function(){return we.onCancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return we.submit()}),A._uU(11),A.ALo(12,"translate"),A.qZA()()()),2&ue&&(A.Tol(we.theme),A.xp6(2),A.Oqu(A.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),A.xp6(2),A.Q6J("ngIf",we.loading),A.xp6(1),A.Q6J("ngIf",!we.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),A.xp6(2),A.Q6J("disabled",we.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[w.O5,g.ey,C.KE,T.Nt,v.Fj,v.JJ,v.On,R.lW,e.uh,e.xY,e.H8,U.gD,_.Ou,V.X$]}),te})()},34775:(Je,pe,h)=>{"use strict";h.d(pe,{_:()=>_n});var e=h(32105),d=h(94650),A=h(36895),w=h(97392),g=h(37084),C=h(51572),T=h(73546),v=h(98380),R=h(87831),U=h(24179),_=h(62109),V=h(38383),Y=h(74010),X=h(64877),ne=h(89383);function le(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function te(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function fe(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.SELF_IDENTITIES_"+wt.entityType)," ")}}const ue=function(){return["user","id","name"]};function we(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,fe,3,3,"div",2),d._UZ(2,"app-users-list",10),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,ue))("disableRouting",!0)("users",wt.users)}}function E(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,we,3,5,"div",2),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.users.length)}}function O(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getSelfData(bt.roles.get("SELF").get("User")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,te,1,0,"mat-spinner",1),d.YNc(8,E,2,1,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.SELF")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function H(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function W(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_VOS_"+wt.entityType)," ")}}const $=function(){return["id","name","shortName"]};function de(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,W,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",12),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,$))("vos",wt.vos)("disableRouting",!0)}}function ye(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_GROUPS_"+wt.entityType)," ")}}const xe=function(){return["id","vo","name","description"]};function Me(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div",13),d.YNc(1,ye,3,3,"div",2),d._UZ(2,"perun-web-apps-groups-list",14),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,xe))("groups",wt.groups)("disableRouting",!0)}}function Ze(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_RESOURCES_"+wt.entityType)," ")}}const se=function(){return["id","name","vo","facility","description"]};function ze(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div",13),d.YNc(1,Ze,3,3,"div",2),d._UZ(2,"perun-web-apps-resources-list",15),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("resources",wt.resources)("displayedColumns",d.DdM(4,se))("disableRouting",!0)}}function he(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(5);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.MEMBERSHIP_FACILITIES_"+wt.entityType)," ")}}const De=function(){return["id","name","description"]};function j(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div",13),d.YNc(1,he,3,3,"div",2),d._UZ(2,"perun-web-apps-facilities-list",16),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,De))("facilities",wt.facilities)("disableRouting",!0)}}function P(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,de,3,5,"div",2),d.YNc(2,Me,3,5,"div",11),d.YNc(3,ze,3,5,"div",11),d.YNc(4,j,3,5,"div",11),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.vos.length),d.xp6(1),d.Q6J("ngIf",wt.groups.length),d.xp6(1),d.Q6J("ngIf",wt.resources.length),d.xp6(1),d.Q6J("ngIf",wt.facilities.length)}}function G(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getMembershipData(bt.roles.get("MEMBERSHIP").get("Group"),bt.roles.get("MEMBERSHIP").get("Vo"),bt.roles.get("MEMBERSHIP").get("Resource"),bt.roles.get("MEMBERSHIP").get("Facility")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,H,1,0,"mat-spinner",1),d.YNc(8,P,5,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.MEMBERSHIP")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function ce(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function q(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div",20),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.Q6J("ngSwitch",wt.entityType),d.xp6(1),d.hij(" ",d.lcZ(2,2,"ROLES.GROUPADMIN_GROUPS_"+wt.entityType)," ")}}function Te(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,q,3,4,"div",18),d._UZ(2,"perun-web-apps-groups-list",19),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,xe))("groups",wt.groups)}}function He(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getGroups(bt.roles.get("GROUPADMIN").get("Group")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",17),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,ce,1,0,"mat-spinner",1),d.YNc(8,Te,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.GROUPADMIN")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function dt(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function et(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS_"+wt.entityType)," ")}}const _t=function(){return["id","recent","vo","name","description"]};function Qe(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,et,3,3,"div",2),d._UZ(2,"perun-web-apps-groups-list",19),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,_t))("groups",wt.groups)}}function st(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getGroups(bt.roles.get("GROUPOBSERVER").get("Group")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",17),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,dt,1,0,"mat-spinner",1),d.YNc(8,Qe,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.GROUPOBSERVER")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function Z(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function ve(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.VOADMIN_VOS_"+wt.entityType)," ")}}function oe(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,ve,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",22),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,$))("vos",wt.vos)}}function ge(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getVos(bt.roles.get("VOADMIN").get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",21),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,Z,1,0,"mat-spinner",1),d.YNc(8,oe,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.VOADMIN")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function ae(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function Oe(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.VOOBSERVER_VOS_"+wt.entityType)," ")}}function Q(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,Oe,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",22),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,$))("vos",wt.vos)}}function me(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getVos(bt.roles.get("VOOBSERVER").get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",21),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,ae,1,0,"mat-spinner",1),d.YNc(8,Q,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.VOOBSERVER")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function N(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function L(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS_"+wt.entityType)," ")}}function r(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div")(1,"div"),d.YNc(2,L,3,3,"div",2),d._UZ(3,"perun-web-apps-vos-list",22),d.qZA()()),2&Mt){const wt=d.oxw(3);d.xp6(2),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,$))("vos",wt.vos)}}function s(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getVos(bt.roles.get("TRUSTEDFACILITYADMIN").get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",21),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,N,1,0,"mat-spinner",1),d.YNc(8,r,4,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function m(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function l(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS_"+wt.entityType)," ")}}function o(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,l,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",22),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,$))("vos",wt.vos)}}function n(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getVos(bt.roles.get("TOPGROUPCREATOR").get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",21),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,m,1,0,"mat-spinner",1),d.YNc(8,o,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function t(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function i(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES_"+wt.entityType)," ")}}function a(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,i,3,3,"div",2),d._UZ(2,"perun-web-apps-resources-list",24),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("resources",wt.resources)("displayedColumns",d.DdM(4,se))("routingVo",!0)}}function c(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getResources(bt.roles.get("RESOURCEADMIN").get("Resource")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",23),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,t,1,0,"mat-spinner",1),d.YNc(8,a,3,5,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.RESOURCEADMIN")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function p(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function M(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES_"+wt.entityType)," ")}}function Ne(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,M,3,3,"div",2),d._UZ(2,"perun-web-apps-resources-list",24),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("resources",wt.resources)("displayedColumns",d.DdM(4,se))("routingVo",!0)}}function Pt(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getResources(bt.roles.get("RESOURCEOBSERVER").get("Resource")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",23),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,p,1,0,"mat-spinner",1),d.YNc(8,Ne,3,5,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function Ut(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function ln(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES_"+wt.entityType)," ")}}function xt(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,ln,3,3,"div",2),d._UZ(2,"perun-web-apps-resources-list",24),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("resources",wt.resources)("displayedColumns",d.DdM(4,se))("routingVo",!0)}}function gt(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getResources(bt.roles.get("RESOURCESELFSERVICE").get("Resource")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",23),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,Ut,1,0,"mat-spinner",1),d.YNc(8,xt,3,5,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function Ge(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function Ie(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES_"+wt.entityType)," ")}}function Xe(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,Ie,3,3,"div",2),d._UZ(2,"perun-web-apps-facilities-list",26),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,De))("facilities",wt.facilities)}}function Ke(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getFacilities(bt.roles.get("FACILITYADMIN").get("Facility")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",25),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,Ge,1,0,"mat-spinner",1),d.YNc(8,Xe,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.FACILITYADMIN")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function ke(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function Ae(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES_"+wt.entityType)," ")}}function Ee(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,Ae,3,3,"div",2),d._UZ(2,"perun-web-apps-facilities-list",26),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,De))("facilities",wt.facilities)}}function We(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getFacilities(bt.roles.get("FACILITYOBSERVER").get("Facility")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",25),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,ke,1,0,"mat-spinner",1),d.YNc(8,Ee,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.FACILITYOBSERVER")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function tt(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function ot(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS_"+wt.entityType)," ")}}const Re=function(){return["id","fullName","sponsored"]};function lt(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,ot,3,3,"div",2),d._UZ(2,"perun-web-apps-members-list",27),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,Re))("members",wt.members)}}function It(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getMembers(bt.roles.get("SPONSORSHIP").get("Member")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,tt,1,0,"mat-spinner",1),d.YNc(8,lt,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.SPONSORSHIP")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function jt(Mt,Jt){1&Mt&&d._UZ(0,"mat-spinner",4)}function sn(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt){const wt=d.oxw(4);d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.SPONSOR_VOS_"+wt.entityType)," ")}}function Kt(Mt,Jt){if(1&Mt&&(d.TgZ(0,"div"),d.YNc(1,sn,3,3,"div",2),d._UZ(2,"perun-web-apps-vos-list",22),d.qZA()),2&Mt){const wt=d.oxw(3);d.xp6(1),d.Q6J("ngIf",wt.showDescription),d.xp6(1),d.Q6J("displayedColumns",d.DdM(3,$))("vos",wt.vos)}}function on(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){d.CHM(wt);const bt=d.oxw(2);return d.KtG(bt.getVos(bt.roles.get("SPONSOR").get("Vo")))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()(),d.YNc(7,jt,1,0,"mat-spinner",1),d.YNc(8,Kt,3,4,"div",2),d.qZA()}if(2&Mt){const wt=d.oxw(2);d.xp6(5),d.Oqu(d.lcZ(6,3,"ROLES.SPONSOR")),d.xp6(2),d.Q6J("ngIf",wt.loading),d.xp6(1),d.Q6J("ngIf",!wt.loading)}}function fn(Mt,Jt){1&Mt&&(d.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()()()),2&Mt&&(d.xp6(5),d.Oqu(d.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function kt(Mt,Jt){1&Mt&&(d.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.ALo(6,"translate"),d.qZA()()()()),2&Mt&&(d.xp6(5),d.Oqu(d.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Rt(Mt,Jt){if(1&Mt&&(d.TgZ(0,"p",29),d._uU(1),d.qZA()),2&Mt){const wt=Jt.$implicit;d.xp6(1),d.AsE("",wt[0]," ids: ",wt[1],"")}}function Ct(Mt,Jt){if(1&Mt){const wt=d.EpF();d.TgZ(0,"mat-expansion-panel",7),d.NdJ("opened",function(){const at=d.CHM(wt).$implicit,qe=d.oxw(2);return d.KtG(qe.getInnerKeys(at))}),d.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),d._UZ(3,"mat-icon",8),d.TgZ(4,"p",9),d._uU(5),d.qZA()()(),d.YNc(6,Rt,2,2,"p",28),d.qZA()}if(2&Mt){const wt=Jt.$implicit,rt=d.oxw(2);d.xp6(5),d.Oqu(wt),d.xp6(1),d.Q6J("ngForOf",rt.currentIds)}}function Ft(Mt,Jt){if(1&Mt&&(d.TgZ(0,"mat-accordion"),d.YNc(1,O,9,5,"mat-expansion-panel",5),d.YNc(2,G,9,5,"mat-expansion-panel",5),d.YNc(3,He,9,5,"mat-expansion-panel",5),d.YNc(4,st,9,5,"mat-expansion-panel",5),d.YNc(5,ge,9,5,"mat-expansion-panel",5),d.YNc(6,me,9,5,"mat-expansion-panel",5),d.YNc(7,s,9,5,"mat-expansion-panel",5),d.YNc(8,n,9,5,"mat-expansion-panel",5),d.YNc(9,c,9,5,"mat-expansion-panel",5),d.YNc(10,Pt,9,5,"mat-expansion-panel",5),d.YNc(11,gt,9,5,"mat-expansion-panel",5),d.YNc(12,Ke,9,5,"mat-expansion-panel",5),d.YNc(13,We,9,5,"mat-expansion-panel",5),d.YNc(14,It,9,5,"mat-expansion-panel",5),d.YNc(15,on,9,5,"mat-expansion-panel",5),d.YNc(16,fn,7,3,"mat-expansion-panel",2),d.YNc(17,kt,7,3,"mat-expansion-panel",2),d.YNc(18,Ct,7,2,"mat-expansion-panel",6),d.qZA()),2&Mt){const wt=d.oxw();d.xp6(1),d.Q6J("ngIf",wt.roles.get("SELF")),d.xp6(1),d.Q6J("ngIf",wt.roles.get("MEMBERSHIP")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("GROUPADMIN")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("GROUPOBSERVER")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("VOADMIN")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("VOOBSERVER")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("TRUSTEDFACILITYADMIN")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("TOPGROUPCREATOR")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("RESOURCEADMIN")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("RESOURCEOBSERVER")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("RESOURCESELFSERVICE")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("FACILITYADMIN")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("FACILITYOBSERVER")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("SPONSORSHIP")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("SPONSOR")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("PERUNADMIN")),d.xp6(1),d.Q6J("ngIf",wt.roles.has("PERUNOBSERVER")),d.xp6(1),d.Q6J("ngForOf",wt.roleNames)}}function qt(Mt,Jt){1&Mt&&(d.TgZ(0,"perun-web-apps-alert",30),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&Mt&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}let _n=(()=>{class Mt{constructor(wt,rt,bt,at,qe,At,z){this.authzResolverService=wt,this.usersManagerService=rt,this.vosManagerService=bt,this.facilitiesManagerService=at,this.resourcesManagerService=qe,this.groupsManagerService=At,this.membersManagerService=z,this.roles=new Map,this.groups=[],this.vos=[],this.facilities=[],this.resources=[],this.members=[],this.users=[],this.currentIds=[]}getGroups(wt){this.loading=!0,this.groups=[],this.groupsManagerService.getGroupsByIds(wt).subscribe(rt=>{this.groups=rt,this.loading=!1})}getVos(wt){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(wt).subscribe(rt=>{this.vos=rt,this.loading=!1})}getFacilities(wt){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesByIds(wt).subscribe(rt=>{this.facilities=rt.map(bt=>({facility:bt})),this.loading=!1})}getResources(wt){this.loading=!0,this.resources=[],this.resourcesManagerService.getRichResourcesByIds(wt).subscribe(rt=>{this.resources=rt,this.loading=!1})}getMembers(wt){this.loading=!0,this.members=[],this.membersManagerService.getRichMembersByIds(wt).subscribe(rt=>{this.members=rt,this.loading=!1})}getSelfData(wt){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.entityId).subscribe(rt=>{this.vos=rt;const bt=[this.entityId].concat(wt);this.usersManagerService.getRichUsersByIds(bt).subscribe(at=>{this.users=at,this.loading=!1})})}getMembershipData(wt,rt,bt,at){this.loading=!0,this.vos=[],this.resources=[],this.groups=[],this.facilities=[],this.getResourcesIfArrayNotEmpty(bt).then(()=>this.getFacilitiesIfArrayNotEmpty(at).then(()=>this.getVosIfArrayNotEmpty(rt).then(()=>this.getGroupsIfArrayNotEmpty(wt).then(()=>this.loading=!1).catch(qe=>console.error(qe))).catch(qe=>console.error(qe))).catch(qe=>console.error(qe))).catch(qe=>console.error(qe))}getResourcesIfArrayNotEmpty(wt){return new Promise(rt=>{wt&&0!==wt.length?this.resourcesManagerService.getRichResourcesByIds(wt).subscribe(bt=>{this.resources=bt,rt()}):rt()})}getFacilitiesIfArrayNotEmpty(wt){return new Promise(rt=>{wt&&0!==wt.length?this.facilitiesManagerService.getFacilitiesByIds(wt).subscribe(bt=>{this.facilities=bt.map(at=>({facility:at})),rt()}):rt()})}getVosIfArrayNotEmpty(wt){return new Promise(rt=>{wt&&0!==wt.length?this.vosManagerService.getVosByIds(wt).subscribe(bt=>{this.vos=bt,rt()}):rt()})}getGroupsIfArrayNotEmpty(wt){return new Promise(rt=>{wt&&0!==wt.length?this.groupsManagerService.getGroupsByIds(wt).subscribe(bt=>{this.groups=bt,rt()}):rt()})}getInnerKeys(wt){if(this.roles.get(wt)){const rt=this.roles.get(wt).entries(),bt=[];let at=rt.next().value;for(;at;)bt.push(at),at=rt.next().value;this.currentIds=bt}else this.currentIds=[]}}return Mt.\u0275fac=function(wt){return new(wt||Mt)(d.Y36(e.Ct),d.Y36(e.Fv),d.Y36(e.YF),d.Y36(e.IQ),d.Y36(e.xk),d.Y36(e.ff),d.Y36(e.uq))},Mt.\u0275cmp=d.Xpm({type:Mt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{roles:"roles",outerLoading:"outerLoading",showDescription:"showDescription",roleNames:"roleNames",entityId:"entityId",entityType:"entityType"},decls:6,vars:6,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","disableRouting","users"],["class","mt-5",4,"ngIf"],[3,"displayedColumns","vos","disableRouting"],[1,"mt-5"],[3,"displayedColumns","groups","disableRouting"],[3,"resources","displayedColumns","disableRouting"],[3,"displayedColumns","facilities","disableRouting"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"ngSwitch",4,"ngIf"],[3,"displayedColumns","groups"],[3,"ngSwitch"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],[3,"displayedColumns","vos"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","displayedColumns","routingVo"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"displayedColumns","members"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"],["alert_type","warn"]],template:function(wt,rt){1&wt&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.YNc(3,le,1,0,"mat-spinner",1),d.YNc(4,Ft,19,18,"mat-accordion",2),d.YNc(5,qt,3,3,"perun-web-apps-alert",3)),2&wt&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"ROLES.TITLE")),d.xp6(2),d.Q6J("ngIf",rt.outerLoading),d.xp6(1),d.Q6J("ngIf",!rt.outerLoading&&rt.roles.size>0),d.xp6(1),d.Q6J("ngIf",!rt.outerLoading&&0===rt.roles.size))},dependencies:[A.sg,A.O5,A.RF,w.Hw,g.pp,g.ib,g.yz,g.yK,C.Ou,T.kc,v.w,R.Z,U.W,_.C,V.O,Y.X,X.C,ne.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),Mt})()},60205:(Je,pe,h)=>{"use strict";h.d(pe,{Q:()=>j});var e=h(94650),d=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(32080),T=h(36895),v=h(94364),R=h(97392),U=h(56709),_=h(10266),V=h(98380),Y=h(50301),X=h(18750),ne=h(89383);function le(P,G){if(1&P){const ce=e.EpF();e.TgZ(0,"th",18)(1,"mat-checkbox",19),e.NdJ("change",function(Te){e.CHM(ce);const He=e.oxw();return e.KtG(Te?He.masterToggle():null)}),e.qZA()()}if(2&P){const ce=e.oxw();e.xp6(1),e.Q6J("aria-label",ce.checkboxLabel())("checked",ce.selection.hasValue()&&ce.isAllSelected())("indeterminate",ce.selection.hasValue()&&!ce.isAllSelected())}}function te(P,G){if(1&P){const ce=e.EpF();e.TgZ(0,"td",20)(1,"mat-checkbox",21),e.NdJ("change",function(Te){const dt=e.CHM(ce).$implicit,et=e.oxw();return e.KtG(Te?et.selection.toggle(dt):null)})("click",function(Te){return Te.stopPropagation()}),e.ALo(2,"lowercase"),e.qZA()()}if(2&P){const ce=G.$implicit,q=e.oxw();e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,ce.name),"-checkbox"),e.Q6J("aria-label",q.checkboxLabel(ce))("checked",q.selection.isSelected(ce))}}function fe(P,G){1&P&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&P&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function ue(P,G){if(1&P&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&P){const ce=G.$implicit;e.xp6(1),e.Oqu(ce.id)}}function we(P,G){1&P&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&P&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function E(P,G){if(1&P&&(e.TgZ(0,"td",24),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&P){const ce=G.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,ce.name),"-name-td"),e.xp6(2),e.hij(" ",ce.name," ")}}function O(P,G){1&P&&e._UZ(0,"th",25)}function H(P,G){1&P&&(e.TgZ(0,"mat-icon",28),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&P&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function W(P,G){1&P&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&P&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function $(P,G){if(1&P&&(e.TgZ(0,"td",24),e.YNc(1,H,3,3,"mat-icon",26),e.YNc(2,W,3,3,"mat-icon",27),e.qZA()),2&P){const ce=G.$implicit;e.xp6(1),e.Q6J("ngIf",ce.enabled),e.xp6(1),e.Q6J("ngIf",!ce.enabled)}}function de(P,G){1&P&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&P&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function ye(P,G){if(1&P&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&P){const ce=G.$implicit;e.xp6(1),e.Oqu(ce.script)}}function xe(P,G){1&P&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&P&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function Me(P,G){if(1&P&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&P){const ce=G.$implicit;e.xp6(1),e.Oqu(ce.description)}}function Ze(P,G){1&P&&e._UZ(0,"tr",30)}const se=function(P){return["/admin/services",P]};function ze(P,G){if(1&P&&e._UZ(0,"tr",31),2&P){const ce=G.$implicit,q=e.oxw();e.ekj("cursor-pointer",!q.disableRouting)("disable-outline",q.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",q.disableRouting?null:e.VKq(6,se,ce.id))("routerLink",q.disableRouting?null:e.VKq(8,se,ce.id))}}function he(P,G){1&P&&(e.TgZ(0,"perun-web-apps-alert",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&P&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function De(P,G){1&P&&(e.TgZ(0,"perun-web-apps-alert",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&P&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let j=(()=>{class P{constructor(ce,q){this.authResolver=ce,this.tableCheckbox=q,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=g.f7}set matSort(ce){this.sort=ce,this.setDataSource()}static getDataForColumn(ce,q){switch(q){case"id":return ce.id.toString();case"name":return ce.name;case"enabled":return ce.enabled?"true":"false";case"script":return ce.script;case"description":return ce.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ce=>"id"!==ce)),this.dataSource=new A.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportData(ce){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,P.getDataForColumn),ce)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ce,q)=>(0,g.Sd)(ce,q,this.displayedColumns,P.getDataForColumn),this.dataSource.sortData=(ce,q)=>(0,g.pR)(ce,q,P.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(ce){return ce?`${this.selection.isSelected(ce)?"deselect":"select"} row ${ce.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return P.\u0275fac=function(ce){return new(ce||P)(e.Y36(C.x4),e.Y36(C.UA))},P.\u0275cmp=e.Xpm({type:P,selectors:[["app-services-list"]],viewQuery:function(ce,q){if(1&ce&&(e.Gf(g.l9,7),e.Gf(d.YE,7)),2&ce){let Te;e.iGM(Te=e.CRH())&&(q.child=Te.first),e.iGM(Te=e.CRH())&&(q.matSort=Te.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ce,q){1&ce&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(He){return q.exportData(He)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,le,2,3,"th",4),e.YNc(5,te,3,5,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,fe,3,3,"th",7),e.YNc(8,ue,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,we,3,3,"th",7),e.YNc(11,E,3,4,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,O,1,0,"th",12),e.YNc(14,$,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,de,3,3,"th",12),e.YNc(17,ye,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,xe,3,3,"th",7),e.YNc(20,Me,2,1,"td",10),e.BQk(),e.YNc(21,Ze,1,0,"tr",15),e.YNc(22,ze,1,10,"tr",16),e.qZA()()(),e.YNc(23,he,3,3,"perun-web-apps-alert",17),e.YNc(24,De,3,3,"perun-web-apps-alert",17)),2&ce&&(e.Q6J("hidden",void 0===q.services||0===q.services.length||0===q.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",q.pageSizeOptions)("dataLength",q.dataSource.filteredData.length)("tableId",q.tableId),e.xp6(1),e.Q6J("dataSource",q.dataSource),e.xp6(19),e.Q6J("matHeaderRowDef",q.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",q.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===q.dataSource.filteredData.length&&void 0!==q.services&&0!==q.services.length),e.xp6(1),e.Q6J("ngIf",void 0===q.services||0===q.services.length))},dependencies:[T.O5,v.rH,R.Hw,d.YE,d.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,U.oG,_.gM,V.w,Y.YH,X.l,T.i8,ne.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),P})()},64877:(Je,pe,h)=>{"use strict";h.d(pe,{C:()=>dt});var e=h(96308),d=h(30671),A=h(95017),w=h(9244),g=h(32080),C=h(94650),T=h(36895),v=h(97392),R=h(56709),U=h(10266),_=h(98380),V=h(50301),Y=h(18750),X=h(89383),ne=h(31359),le=h(16119),te=h(7598),fe=h(9954);function ue(et,_t){if(1&et){const Qe=C.EpF();C.TgZ(0,"mat-checkbox",21),C.NdJ("change",function(Z){C.CHM(Qe);const ve=C.oxw(2);return C.KtG(Z?ve.masterToggle():null)}),C.qZA()}if(2&et){const Qe=C.oxw(2);C.Q6J("aria-label",Qe.checkboxLabel())("checked",Qe.selection.hasValue()&&Qe.isAllSelected())("indeterminate",Qe.selection.hasValue()&&!Qe.isAllSelected())}}function we(et,_t){if(1&et&&(C.TgZ(0,"th",19),C.YNc(1,ue,1,3,"mat-checkbox",20),C.qZA()),2&et){const Qe=C.oxw();C.xp6(1),C.Q6J("ngIf",Qe.selection.isMultipleSelection())}}function E(et,_t){if(1&et){const Qe=C.EpF();C.TgZ(0,"td",22)(1,"mat-checkbox",23),C.NdJ("change",function(Z){const oe=C.CHM(Qe).$implicit,ge=C.oxw();return C.KtG(Z?ge.selection.toggle(oe):null)})("click",function(Z){return Z.stopPropagation()}),C.ALo(2,"lowercase"),C.qZA()()}if(2&et){const Qe=_t.$implicit,st=C.oxw();C.xp6(1),C.Q2q("data-cy","",C.lcZ(2,4,Qe.firstName),"-checkbox"),C.Q6J("aria-label",st.checkboxLabel(Qe))("checked",st.selection.isSelected(Qe))("disabled",st.disableSelf&&Qe.id===st.principalId&&!st.authResolver.isPerunAdmin())}}function O(et,_t){1&et&&C._UZ(0,"th",24)}function H(et,_t){1&et&&(C.TgZ(0,"mat-icon",28),C.ALo(1,"translate"),C._uU(2," account_circle "),C.qZA()),2&et&&C.s9C("matTooltip",C.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function W(et,_t){if(1&et&&(C._UZ(0,"mat-icon",29),C.ALo(1,"translate")),2&et){const Qe=C.oxw(2);C.s9C("matTooltip",C.lcZ(1,2,"MANAGERS_LIST.SERVICE")),C.Q6J("svgIcon",Qe.svgIcon)}}function $(et,_t){if(1&et&&(C.TgZ(0,"td",25),C.YNc(1,H,3,3,"mat-icon",26),C.YNc(2,W,2,4,"mat-icon",27),C.qZA()),2&et){const Qe=_t.$implicit;C.xp6(1),C.Q6J("ngIf",!Qe.serviceUser),C.xp6(1),C.Q6J("ngIf",Qe.serviceUser)}}function de(et,_t){1&et&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function ye(et,_t){if(1&et&&(C.TgZ(0,"td",25),C._uU(1),C.qZA()),2&et){const Qe=_t.$implicit;C.xp6(1),C.hij(" ",Qe.id," ")}}function xe(et,_t){1&et&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Me(et,_t){if(1&et&&(C.TgZ(0,"td",31),C.ALo(1,"lowercase"),C._uU(2),C.ALo(3,"userFullName"),C.qZA()),2&et){const Qe=_t.$implicit;C.Q2q("data-cy","",C.lcZ(1,2,Qe.firstName),"-firstName-td"),C.xp6(2),C.hij(" ",C.lcZ(3,4,Qe)," ")}}function Ze(et,_t){1&et&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function se(et,_t){if(1&et&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userVo"),C.qZA()),2&et){const Qe=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Qe))}}function ze(et,_t){1&et&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function he(et,_t){if(1&et&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userEmail"),C.qZA()),2&et){const Qe=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Qe))}}function De(et,_t){1&et&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function j(et,_t){if(1&et&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userLogins"),C.qZA()),2&et){const Qe=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Qe))}}function P(et,_t){1&et&&C._UZ(0,"tr",32)}const G=function(et){return["/admin/users",et]},ce=function(et){return["/myProfile/service-identities",et]};function q(et,_t){if(1&et&&C._UZ(0,"tr",33),2&et){const Qe=_t.$implicit,st=C.oxw();C.ekj("cursor-pointer",!st.disableRouting),C.Q6J("perunWebAppsForceRouterLink",st.disableRouting?null:st.routeToAdmin?C.VKq(4,G,Qe.id):C.VKq(6,ce,Qe.id))("perunWebAppsMiddleClickRouterLink",st.disableRouting?null:st.routeToAdmin?C.VKq(8,G,Qe.id):C.VKq(10,ce,Qe.id))}}function Te(et,_t){if(1&et&&(C.TgZ(0,"perun-web-apps-alert",34),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et){const Qe=C.oxw();C.xp6(1),C.hij(" ",Qe.noUsersFoundLabel?Qe.noUsersFoundLabel:C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function He(et,_t){1&et&&(C.TgZ(0,"perun-web-apps-alert",34),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&et&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let dt=(()=>{class et{constructor(Qe,st,Z){this.authResolver=Qe,this.tableCheckbox=st,this.storeService=Z,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=w.f7}set matSort(Qe){this.sort=Qe}static getDataForColumn(Qe,st){switch(st){case"id":return Qe.id.toString();case"user":return Qe.serviceUser?"true":"false";case"name":return Qe?Qe.lastName?Qe.lastName:Qe.firstName??"":"";case"organization":return(0,w.OV)(Qe);case"email":return(0,w.kN)(Qe);case"logins":return(0,w.lt)(Qe);default:return""}}static getExportDataForColumn(Qe,st){switch(st){case"id":return Qe.id.toString();case"user":return Qe.serviceUser?"service-user":"user";case"name":return Qe?(0,w.bD)(Qe):"";case"organization":return(0,w.OV)(Qe);case"email":return(0,w.kN)(Qe);case"logins":return(0,w.lt)(Qe);default:return""}}exportData(Qe){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,et.getExportDataForColumn),Qe)}setDataSource(){this.dataSource||(this.dataSource=new d.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Qe,st)=>(0,w.Sd)(Qe,st,this.displayedColumns,et.getDataForColumn),this.dataSource.sortData=(Qe,st)=>(0,w.pR)(Qe,st,et.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Qe=>"id"!==Qe)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Qe){return Qe?`${this.selection.isSelected(Qe)?"deselect":"select"} row ${Qe.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return et.\u0275fac=function(Qe){return new(Qe||et)(C.Y36(g.x4),C.Y36(g.UA),C.Y36(g.d6))},et.\u0275cmp=C.Xpm({type:et,selectors:[["app-users-list"]],viewQuery:function(Qe,st){if(1&Qe&&(C.Gf(w.l9,7),C.Gf(e.YE,7)),2&Qe){let Z;C.iGM(Z=C.CRH())&&(st.child=Z.first),C.iGM(Z=C.CRH())&&(st.matSort=Z.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[C.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Qe,st){1&Qe&&(C.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportData",function(ve){return st.exportData(ve)}),C.TgZ(2,"table",2),C.ynx(3,3),C.YNc(4,we,2,1,"th",4),C.YNc(5,E,3,6,"td",5),C.BQk(),C.ynx(6,6),C.YNc(7,O,1,0,"th",7),C.YNc(8,$,3,2,"td",8),C.BQk(),C.ynx(9,9),C.YNc(10,de,3,3,"th",10),C.YNc(11,ye,2,1,"td",8),C.BQk(),C.ynx(12,11),C.YNc(13,xe,3,3,"th",10),C.YNc(14,Me,4,6,"td",12),C.BQk(),C.ynx(15,13),C.YNc(16,Ze,3,3,"th",10),C.YNc(17,se,3,3,"td",12),C.BQk(),C.ynx(18,14),C.YNc(19,ze,3,3,"th",10),C.YNc(20,he,3,3,"td",12),C.BQk(),C.ynx(21,15),C.YNc(22,De,3,3,"th",10),C.YNc(23,j,3,3,"td",12),C.BQk(),C.YNc(24,P,1,0,"tr",16),C.YNc(25,q,1,12,"tr",17),C.qZA()()(),C.YNc(26,Te,3,3,"perun-web-apps-alert",18),C.YNc(27,He,3,3,"perun-web-apps-alert",18)),2&Qe&&(C.Q6J("hidden",0===st.users.length||!st.dataSource||0===st.dataSource.filteredData.length),C.xp6(1),C.Q6J("dataLength",st.dataSource.filteredData.length)("pageSizeOptions",st.pageSizeOptions)("tableId",st.tableId),C.xp6(1),C.Q6J("dataSource",st.dataSource),C.xp6(22),C.Q6J("matHeaderRowDef",st.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",st.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===st.users.length),C.xp6(1),C.Q6J("ngIf",0===st.dataSource.filteredData.length&&0!==st.users.length))},dependencies:[T.O5,v.Hw,e.YE,e.nU,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,R.oG,U.gM,_.w,V.Kd,V.YH,Y.l,T.i8,X.X$,ne.d,le.S,te.g,fe.Z],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),et})()},57706:(Je,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(94650),d=h(89383);let A=(()=>{class w{constructor(C){this.translateService=C,this.returnData=""}transform(C){switch(C){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(T=>{this.returnData=T});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(T=>{this.returnData=T});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(T=>{this.returnData=T});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(T=>{this.returnData=T});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(T=>{this.returnData=T});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(T=>{this.returnData=T});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(T=>{this.returnData=T});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(T=>{this.returnData=T});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(T=>{this.returnData=T});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(T=>{this.returnData=T});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(T=>{this.returnData=T});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(T=>{this.returnData=T});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(T=>{this.returnData=T});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(T=>{this.returnData=T});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(T=>{this.returnData=T});break;default:return C}return this.returnData}}return w.\u0275fac=function(C){return new(C||w)(e.Y36(d.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(Je,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(94650),d=h(89383);let A=(()=>{class w{constructor(C){this.translate=C,this.returnData=""}transform(C){switch(C){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(T=>{this.returnData=`done${T}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(T=>{this.returnData=`clear${T}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(T=>{this.returnData=`contact_mail ${T}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(T=>{this.returnData=`gavel${T}`});break;default:this.returnData=C}return this.returnData}}return w.\u0275fac=function(C){return new(C||w)(e.Y36(d.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(Je,pe,h)=>{"use strict";h.d(pe,{u:()=>A});var e=h(32080),d=h(94650);let A=(()=>{class w{constructor(C){this.storeService=C,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(C,T,v){return!!(this.storeService.get("enforce_consents")&&v&&T)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((U,_)=>U||C.startsWith(_),!1)}}return w.\u0275fac=function(C){return new(C||w)(d.Y36(e.d6,16))},w.\u0275pipe=d.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(Je,pe,h)=>{"use strict";h.d(pe,{A:()=>d});var e=h(94650);let d=(()=>{class A{transform(g){return g.substring(40)}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"extSourceType",type:A,pure:!0}),A})()},14264:(Je,pe,h)=>{"use strict";h.d(pe,{m:()=>Ee});var e=h(36895),d=h(94364),A=h(47957),w=h(4859),g=h(56709),C=h(3238),T=h(99602),v=h(65412),R=h(44850),U=h(37084),_=h(59549),V=h(97392),Y=h(284),X=h(98739),ne=h(73162),le=h(51572),te=h(71948),fe=h(84385),ue=h(23267),we=h(90455),E=h(17009),O=h(96308),H=h(30671),W=h(3848),$=h(10266),de=h(35423),ye=h(73546),xe=h(42673),Me=h(77331),Ze=h(28255),se=h(86257),ze=h(24006),he=h(73228),De=h(36769),j=h(32080),P=h(94650),G=h(50301),ce=h(89383);const q=["collapse"],Te=function(){return{color:"linkTextColor"}};function He(We,tt){1&We&&(P.TgZ(0,"mat-icon",14),P._uU(1,"keyboard_arrow_right"),P.qZA()),2&We&&P.Q6J("ngStyle",P.DdM(1,Te))}function dt(We,tt){1&We&&(P.TgZ(0,"mat-icon",14),P._uU(1,"keyboard_arrow_down"),P.qZA()),2&We&&P.Q6J("ngStyle",P.DdM(1,Te))}function et(We,tt){if(1&We&&(P.TgZ(0,"span",12),P.YNc(1,He,2,2,"mat-icon",13),P.YNc(2,dt,2,2,"mat-icon",13),P.qZA()),2&We){const ot=P.oxw().$implicit,Re=P.oxw(2);P.xp6(1),P.Q6J("ngIf",!Re.isActive(Re.currentUrl,ot.showChildrenRegex)),P.xp6(1),P.Q6J("ngIf",Re.isActive(Re.currentUrl,ot.showChildrenRegex))}}const _t=function(We,tt){return{color:We,"border-color":tt}};function Qe(We,tt){if(1&We){const ot=P.EpF();P.TgZ(0,"a",17),P.NdJ("click",function(){const It=P.CHM(ot).$implicit,jt=P.oxw(4);return P.KtG(jt.navigate(It.url))}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&We){const ot=tt.$implicit,Re=P.oxw(4);P.ekj("activated",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0===Re.item.activatedClass),P.Q6J("perunWebAppsMiddleClickRouterLink",ot.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",P.WLB(9,_t,Re.linkTextColor,Re.linkTextColor)),P.xp6(1),P.hij(" ",P.lcZ(2,7,ot.label)," ")}}function st(We,tt){if(1&We&&(P.TgZ(0,"div",15),P.YNc(1,Qe,3,12,"a",16),P.qZA()),2&We){const ot=P.oxw().$implicit;P.Q6J("@rollInOut",void 0),P.xp6(1),P.Q6J("ngForOf",null==ot?null:ot.children)}}function Z(We,tt){if(1&We){const ot=P.EpF();P.TgZ(0,"div")(1,"a",9),P.NdJ("click",function(){const It=P.CHM(ot).$implicit,jt=P.oxw(2);return P.KtG(jt.navigate(It.url))}),P._uU(2),P.ALo(3,"translate"),P.YNc(4,et,3,2,"span",10),P.qZA(),P.YNc(5,st,2,2,"div",11),P.qZA()}if(2&We){const ot=tt.$implicit,Re=P.oxw(2);P.xp6(1),P.ekj("activated",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0===Re.item.activatedClass),P.Q6J("perunWebAppsMiddleClickRouterLink",ot.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",P.WLB(11,_t,Re.linkTextColor,Re.linkTextColor)),P.xp6(1),P.hij(" ",P.lcZ(3,9,ot.label)," "),P.xp6(2),P.Q6J("ngIf",ot.children),P.xp6(1),P.Q6J("ngIf",Re.isActive(Re.currentUrl,ot.showChildrenRegex))}}function ve(We,tt){if(1&We&&(P.TgZ(0,"div"),P.YNc(1,Z,6,14,"div",8),P.qZA()),2&We){const ot=P.oxw();P.Q6J("@rollInOut",void 0),P.xp6(1),P.Q6J("ngForOf",ot.item.links)}}const oe=function(We,tt){return{background:We,"border-top":tt}},ge=function(We){return{color:We}},ae=function(){return{color:"currentColor"}},Oe=function(We){return{background:We}};let Q=(()=>{class We{constructor(ot,Re){this.router=ot,this.store=Re,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=ot.url,ot.events.subscribe(lt=>{lt instanceof d.m2&&(this.currentUrl=lt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(ot,Re){return new RegExp(Re).test(ot)}navigate(ot){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(ot)):this.router.navigate(ot)}}return We.\u0275fac=function(ot){return new(ot||We)(P.Y36(d.F0),P.Y36(j.d6))},We.\u0275cmp=P.Xpm({type:We,selectors:[["app-side-menu-item"]],viewQuery:function(ot,Re){if(1&ot&&P.Gf(q,5),2&ot){let lt;P.iGM(lt=P.CRH())&&(Re.collapseDiv=lt.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(ot,Re){1&ot&&(P.TgZ(0,"div",0)(1,"div",1),P.NdJ("click",function(){return Re.toggle()}),P.TgZ(2,"div",2)(3,"a",3)(4,"div"),P._UZ(5,"mat-icon",4),P.qZA(),P.TgZ(6,"div",5),P._uU(7),P.ALo(8,"translate"),P.qZA()()()(),P.TgZ(9,"div")(10,"div",6),P.YNc(11,ve,2,2,"div",7),P.qZA()()()),2&ot&&(P.xp6(1),P.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",P.WLB(18,oe,Re.item.backgroundColorCss,Re.index?Re.dividerStyle:"none")),P.xp6(1),P.Gre("entity-menu-item-link ",Re.item.labelClass,""),P.Q6J("perunWebAppsMiddleClickRouterLink",Re.item.baseLink),P.xp6(1),P.Q6J("ngStyle",P.VKq(21,ge,Re.item.textColorCss)),P.xp6(2),P.Q6J("ngStyle",P.DdM(23,ae))("svgIcon",Re.item.icon),P.xp6(2),P.Oqu(P.lcZ(8,16,Re.item.label)),P.xp6(2),P.Q6J("@openClose",Re.expanded?"open":"closed"),P.xp6(1),P.Gre("side-entity-menu ",Re.item.linksClass,""),P.Q6J("ngStyle",P.VKq(24,Oe,Re.linkBgColor)),P.xp6(1),P.Q6J("ngIf",Re.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,V.Hw,C.wG,G.YH,ce.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[De.BQ,De.Ly]}}),We})(),me=(()=>{class We{transform(ot){if(void 0===ot.value)return"";switch(ot.type){case"java.lang.String":return ot.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(ot.value);case"java.util.ArrayList":return this.whenValueIsArray(ot.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(ot.value)}}whenValueIsArray(ot){let Re="";return ot.forEach(function(lt){Re=Re.concat(lt+", ")}),Re}whenValueIsMap(ot){let Re="";return ot.forEach((lt,It)=>{Re=Re.concat(It+": "+lt+", ")}),Re}}return We.\u0275fac=function(ot){return new(ot||We)},We.\u0275pipe=P.Yjl({name:"anyToString",type:We,pure:!0}),We})();const N=["collapse"],L=function(){return{color:"linkTextColor"}};function r(We,tt){1&We&&(P.TgZ(0,"mat-icon",12),P._uU(1,"keyboard_arrow_right"),P.qZA()),2&We&&P.Q6J("ngStyle",P.DdM(1,L))}function s(We,tt){1&We&&(P.TgZ(0,"mat-icon",12),P._uU(1,"keyboard_arrow_down"),P.qZA()),2&We&&P.Q6J("ngStyle",P.DdM(1,L))}function m(We,tt){if(1&We&&(P.TgZ(0,"span",10),P.YNc(1,r,2,2,"mat-icon",11),P.YNc(2,s,2,2,"mat-icon",11),P.qZA()),2&We){const ot=P.oxw().$implicit,Re=P.oxw();P.xp6(1),P.Q6J("ngIf",!Re.isActive(Re.currentUrl,ot.showChildrenRegex)),P.xp6(1),P.Q6J("ngIf",Re.isActive(Re.currentUrl,ot.showChildrenRegex))}}const l=function(We,tt){return{color:We,"border-color":tt}};function o(We,tt){if(1&We){const ot=P.EpF();P.TgZ(0,"a",14),P.NdJ("click",function(){const It=P.CHM(ot).$implicit,jt=P.oxw(3);return P.KtG(jt.navigate(It.url))}),P._uU(1),P.ALo(2,"translate"),P.qZA()}if(2&We){const ot=tt.$implicit,Re=P.oxw(3);P.ekj("activated",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0===Re.item.activatedClass),P.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",P.WLB(9,l,Re.linkTextColor,Re.linkTextColor))("ngClass",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",ot.url),P.xp6(1),P.hij(" ",P.lcZ(2,7,ot.label)," ")}}function n(We,tt){if(1&We&&(P.TgZ(0,"div"),P.YNc(1,o,3,12,"a",13),P.qZA()),2&We){const ot=P.oxw().$implicit;P.Q6J("@rollInOut",void 0),P.xp6(1),P.Q6J("ngForOf",null==ot?null:ot.children)}}function t(We,tt){if(1&We){const ot=P.EpF();P.TgZ(0,"div")(1,"a",7),P.NdJ("click",function(){const It=P.CHM(ot).$implicit,jt=P.oxw();return P.KtG(jt.navigate(It.url))}),P._uU(2),P.ALo(3,"translate"),P.YNc(4,m,3,2,"span",8),P.qZA(),P.YNc(5,n,2,2,"div",9),P.qZA()}if(2&We){const ot=tt.$implicit,Re=P.oxw();P.xp6(1),P.ekj("activated",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0===Re.item.activatedClass),P.Q6J("perunWebAppsMiddleClickRouterLink",ot.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,ot.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",P.WLB(11,l,Re.linkTextColor,Re.linkTextColor)),P.xp6(1),P.hij(" ",P.lcZ(3,9,ot.label)," "),P.xp6(2),P.Q6J("ngIf",ot.children),P.xp6(1),P.Q6J("ngIf",Re.isActive(Re.currentUrl,ot.showChildrenRegex))}}const i=function(We){return{background:We}},a=function(We){return{color:We}},c=function(){return{color:"currentColor"}};let p=(()=>{class We{constructor(ot,Re){this.router=ot,this.store=Re,this.id="",this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.currentUrl=ot.url,ot.events.subscribe(lt=>{lt instanceof d.m2&&(this.currentUrl=lt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(ot,Re){return new RegExp(Re).test(ot)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(ot){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(ot)):this.router.navigate(ot)}}return We.\u0275fac=function(ot){return new(ot||We)(P.Y36(d.F0),P.Y36(j.d6))},We.\u0275cmp=P.Xpm({type:We,selectors:[["app-side-menu-root-item"]],viewQuery:function(ot,Re){if(1&ot&&P.Gf(N,5),2&ot){let lt;P.iGM(lt=P.CRH())&&(Re.collapseDiv=lt.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[P.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(ot,Re){1&ot&&(P.TgZ(0,"div",0)(1,"div",1),P.NdJ("click",function(){return Re.toggle()}),P.TgZ(2,"div")(3,"a",2)(4,"div"),P._UZ(5,"mat-icon",3),P.qZA(),P.TgZ(6,"div",4),P._uU(7),P.ALo(8,"translate"),P.qZA()()()(),P.TgZ(9,"div")(10,"div",5),P.YNc(11,t,6,14,"div",6),P.qZA()()()),2&ot&&(P.s9C("id",Re.id),P.xp6(1),P.ekj("root-header-activated",Re.isActive(Re.currentUrl,Re.item.baseColorClassRegex)),P.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",P.VKq(21,i,Re.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",Re.item.baseLink),P.xp6(1),P.Gre("entity-menu-item-link ",Re.item.labelClass,""),P.xp6(1),P.Q6J("ngStyle",P.VKq(23,a,Re.item.textColorCss)),P.xp6(2),P.Q6J("ngStyle",P.DdM(25,c))("svgIcon",Re.item.icon),P.xp6(2),P.Oqu(P.lcZ(8,19,Re.item.label)),P.xp6(2),P.Q6J("@openClose",Re.expanded?"open":"closed"),P.xp6(1),P.Gre("side-entity-menu ",Re.item.linksClass,""),P.Q6J("ngStyle",P.VKq(26,i,Re.linkBgColor)),P.xp6(1),P.Q6J("ngForOf",Re.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,V.Hw,C.wG,G.YH,ce.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[De.BQ,De.Ly]}}),We})();var M=h(73555),Ne=h(67376),Pt=h(63189),Ut=h(37677),ln=h(33604),xt=h(11243),gt=h(19516),Ge=h(33231),Ie=h(96338),Xe=h(9244),Ke=h(28499),ke=h(70844),Ae=h(16074);let Ee=(()=>{class We{constructor(ot){this.translate=ot,ot.addLangs(["en","cs"])}}return We.\u0275fac=function(ot){return new(ot||We)(P.LFG(ce.sK))},We.\u0275mod=P.oAB({type:We}),We.\u0275inj=P.cJS({providers:[me,Ut.A,ke.u],imports:[e.ez,d.Bz,A.Bb,Y.c,_.lN,ze.UX,ze.u5,V.Ps,ue.SJ,U.To,ce.aw.forChild({}),w.ot,O.JX,H.p0,W.Nh,de.dp,w.ot,g.p9,v.Is,fe.LD,E.ZX,le.Cq,ne.Cv,$.AV,we.rP,T.FA,C.XK,te.Fk,R.t,C.si,X.TU,ye.QW,se.T5,M._t,ye.QW,Me.Hi,Ze.Tx,Ne.Cl,Pt.r,xe.g,ln.ez,xt.r,gt.d4,Ge.Co,Ie.ie,Xe.Je,Ke.E3,Ae.jD,Ge.Co,A.Bb,Y.c,d.Bz,ze.UX,ze.u5,V.Ps,ue.SJ,ce.aw,O.JX,H.p0,W.Nh,de.dp,w.ot,g.p9,v.Is,fe.LD,E.ZX,le.Cq,ne.Cv,$.AV,we.rP,T.FA,C.XK,te.Fk,R.t,ye.QW,se.T5,C.si,X.TU,M._t,Me.Hi,Me.Hi,U.To,Ze.Tx,Ne.Cl,Ne.Cl,Ne.Cl,xt.r]}),We})();P.B6R(he.V,function(){return[e.sg,e.O5,Q,p]},[])},69024:(Je,pe,h)=>{"use strict";h.d(pe,{V:()=>v});var e=h(32080),d=h(32105),A=h(9244),w=h(19516),g=h(64080),C=h(94650),T=h(89383);let v=(()=>{class R{constructor(_,V,Y,X,ne,le,te,fe){this.translate=_,this.authResolver=V,this.store=Y,this.apiRequest=X,this.attributesManager=ne,this.notificator=le,this.guiAuthResolver=te,this.routePolicyService=fe,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(_){return{label:_.name,baseLink:[`/facilities/${_.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(_),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(_,V){const Y=(new w.r5).transform(_,V);return{label:_.name,baseLink:[Y],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(Y,V?"/organizations":"/facilities",_),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(_){return{label:_.name,baseLink:[`/organizations/${_.voId}/groups/${_.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(_),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(_,V=!1,Y=!1){return{label:_.name,baseLink:[`/organizations/${_.id}`],links:this.getVoLinks(_,Y),colorClass:"vo-item",icon:V?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(_){return{label:(0,A.bD)(_.user),baseLink:[`/organizations/${_.voId}/members/${_.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(_),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(_,V,Y){return{label:(0,A.bD)(_),baseLink:[V],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(_,V,Y),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(_){return{label:(0,A.bD)(_),baseLink:[`/myProfile/service-identities/${_.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${_.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${_.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${_.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(_){return{label:_.name,baseLink:[`/admin/services/${_.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${_.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${_.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${_.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(_,V){const Y=[];if(Y.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${_.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",_)&&Y.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${_.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",_)&&Y.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${_.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",_)){const X=[];this.routePolicyService.canNavigate("organizations-resources-preview",_)&&X.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${_.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",_)&&X.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${_.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",_)&&X.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${_.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),Y.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${_.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:X,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",_)&&Y.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${_.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",_)&&Y.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${_.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",_)&&Y.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${_.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",_)&&Y.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",_)&&Y.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${_.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",_)){const X=[];this.routePolicyService.canNavigate("organizations-settings-expiration",_)&&X.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${_.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",_)&&X.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${_.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",_)&&X.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${_.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",_)&&X.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${_.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",_)&&X.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${_.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",_)&&X.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${_.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",_)&&V&&X.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${_.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),Y.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${_.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:X,showChildrenRegex:"/organizations/\\d+/settings"})}return Y}getUserLinks(_,V,Y){const X=[];return X.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[V],activatedRegex:`${Y}$`}),X.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${V}/organizations`],activatedRegex:`${Y}/organizations`}),X.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${V}/groups`],activatedRegex:`${Y}/groups`}),X.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${V}/accounts`],activatedRegex:`${Y}/accounts`}),X.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${V}/identities`],activatedRegex:`${Y}/identities`}),X.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${V}/facilities`],activatedRegex:`${Y}/facilities`}),X.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${V}/resources`],activatedRegex:`${Y}/resources`}),X.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${V}/attributes`],activatedRegex:`${Y}/attributes`}),X.push({label:"MENU_ITEMS.USER.ROLES",url:[`${V}/roles`],activatedRegex:`^${V}/roles`}),X.push(_.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${V}/associated-users`],activatedRegex:`^${V}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${V}/service-identities`],activatedRegex:`^${V}/service-identities`}),X}getMemberLinks(_){const V=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${_.voId}/members/${_.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",_)&&V.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${_.voId}/members/${_.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",_)&&V.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${_.voId}/members/${_.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",_)&&V.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${_.voId}/members/${_.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",_)&&V.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${_.voId}/members/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),V}getFacilityLinks(_){const V=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${_.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",_)&&V.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${_.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",_)&&V.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${_.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",_)&&V.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${_.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",_)&&V.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${_.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",_)&&V.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${_.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",_)&&V.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${_.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",_)&&V.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",_.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",_)){const Y=[];this.routePolicyService.canNavigate("facilities-settings-owners",_)&&Y.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",_.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",_)&&Y.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",_.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",_)&&Y.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${_.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",_)&&Y.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",_.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),V.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",_.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:Y,showChildrenRegex:"/facilities/\\d+/settings"})}return V}getGroupLinks(_){const V=[],Y=[];return V.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${_.voId}/groups/${_.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",_)&&V.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${_.voId}/groups/${_.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",_)&&"members"!==_.name&&V.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${_.voId}/groups/${_.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",_)&&V.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${_.voId}/groups/${_.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",_)&&V.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",_)&&V.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${_.voId}/groups/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",_)&&V.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${_.voId}/groups/${_.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",_)&&V.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${_.voId}/groups/${_.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(_.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{Y.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${_.voId}/groups/${_.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},X=>{"HttpErrorResponse"!==X.name&&this.notificator.showRPCError(X)}),this.routePolicyService.canNavigate("groups-settings-managers",_)&&Y.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",_)&&Y.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${_.voId}/groups/${_.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",_)&&Y.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",_)&&Y.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",_)&&Y.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${_.voId}/groups/${_.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==Y.length&&V.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${_.voId}/groups/${_.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:Y,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),V}getResourceLinks(_,V,Y){const X=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[_],activatedRegex:`${V}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",Y)&&X.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[_,"groups"],activatedRegex:`${V}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",Y)&&X.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[_,"services"],activatedRegex:`${V}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",Y)&&X.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[_,"members"],activatedRegex:`${V}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",Y)&&X.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[_,"tags"],activatedRegex:`${V}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",Y)&&X.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[_,"attributes"],activatedRegex:`${V}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",Y)&&X.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[_,"settings"],activatedRegex:`${V}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[_,"settings","managers"],activatedRegex:`${V}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${V}/\\d+/resources/\\d+/settings`}),X}}return R.\u0275fac=function(_){return new(_||R)(C.LFG(T.sK),C.LFG(e.x4),C.LFG(e.d6),C.LFG(e.F5),C.LFG(d.H8),C.LFG(e.V6),C.LFG(e.x4),C.LFG(e.Ip))},R.\u0275prov=C.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})()},73228:(Je,pe,h)=>{"use strict";h.d(pe,{V:()=>le});var e=h(72077),d=h(69024),A=h(32080),w=h(36769),g=h(94650),C=h(77968);function T(te,fe){if(1&te&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&te){const ue=fe.$implicit,we=fe.index,E=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",we)("item",ue)("sideNav",E.sideNav)}}function v(te,fe){if(1&te&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&te){const ue=fe.$implicit,we=fe.index,E=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",we)("item",ue)("showLinks",we===E.accessItems.length-1)("sideNav",E.sideNav)}}function R(te,fe){if(1&te&&g._UZ(0,"app-side-menu-root-item",2),2&te){const ue=g.oxw();g.Q6J("id","facilities-item-btn")("item",ue.facilityItem)("sideNav",ue.sideNav)}}function U(te,fe){if(1&te&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&te){const ue=fe.$implicit,we=fe.index,E=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",we)("item",ue)("showLinks",we===E.facilityItems.length-1)("sideNav",E.sideNav)}}function _(te,fe){if(1&te&&(g.TgZ(0,"div"),g.YNc(1,U,2,5,"div",3),g.qZA()),2&te){const ue=g.oxw();g.xp6(1),g.Q6J("ngForOf",ue.facilityItems)}}function V(te,fe){if(1&te&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&te){const ue=fe.$implicit,we=fe.index,E=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",we)("item",ue)("showLinks",we===E.userItems.length-1)("sideNav",E.sideNav)}}function Y(te,fe){if(1&te&&g._UZ(0,"app-side-menu-root-item",7),2&te){const ue=g.oxw();g.Q6J("id","admin-item-btn")("item",ue.adminItem)("showOpen",ue.adminItemOpened)("sideNav",ue.sideNav)}}function X(te,fe){if(1&te&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&te){const ue=fe.$implicit,we=fe.index,E=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",we)("item",ue)("showLinks",!0)("sideNav",E.sideNav)}}function ne(te,fe){if(1&te&&(g.TgZ(0,"div"),g.YNc(1,X,2,5,"div",3),g.qZA()),2&te){const ue=g.oxw();g.xp6(1),g.Q6J("ngForOf",ue.adminItems)}}let le=(()=>{class te{constructor(ue,we,E){this.sideMenuService=ue,this.sideMenuItemService=we,this.authResolver=E,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(ue,we){return ue.label===we.label&&ue.labelClass===we.labelClass}static areSameLinks(ue,we){if(ue.links.length!==we.links.length)return!1;for(let E=0;Ewe.length?ue.length:we.length;for(let O=0;Oue.length-1)ue.push(we[O]);else{if(O>we.length-1){const H=ue.length;for(let W=0;W{this.setFacilityItems(ue)}),this.sideMenuService.accessItemsChange.subscribe(ue=>{this.setAccessItems(ue)}),this.sideMenuService.adminItemsChange.subscribe(ue=>{this.setAdminItems(ue)}),this.sideMenuService.userItemsChange.subscribe(ue=>{this.setUserItems(ue)}),this.sideMenuService.homeItemsChange.subscribe(ue=>{this.setHomeItems(ue)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,te.setNewItems(this.homeItems,[]),te.setNewItems(this.adminItems,[]),te.setNewItems(this.accessItems,[]),te.setNewItems(this.facilityItems,[]),te.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,te.setNewItems(this.adminItems,[]),te.setNewItems(this.accessItems,[]),te.setNewItems(this.facilityItems,[]),te.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,te.setNewItems(this.homeItems,[]),te.setNewItems(this.adminItems,[]),te.setNewItems(this.accessItems,[]),te.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,te.setNewItems(this.homeItems,[]),te.setNewItems(this.adminItems,[]),te.setNewItems(this.facilityItems,[]),te.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,te.setNewItems(this.homeItems,[]),te.setNewItems(this.accessItems,[]),te.setNewItems(this.facilityItems,[]),te.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,te.setNewItems(this.accessItems,[]),te.setNewItems(this.facilityItems,[]),te.setNewItems(this.adminItems,[])}setHomeItems(ue){this.resetExceptHome(),te.setNewItems(this.homeItems,ue)}setFacilityItems(ue){this.resetExceptFacility(),te.setNewItems(this.facilityItems,ue)}setAccessItems(ue){this.resetExceptAccess(),te.setNewItems(this.accessItems,ue)}setUserItems(ue){this.userItemOpened=0===ue.length,this.resetExceptUser(),te.setNewItems(this.userItems,ue)}setAdminItems(ue){this.adminItemOpened=0===ue.length,this.resetExceptAdmin(),te.setNewItems(this.adminItems,ue)}}return te.\u0275fac=function(ue){return new(ue||te)(g.Y36(C.D),g.Y36(d.V),g.Y36(A.x4))},te.\u0275cmp=g.Xpm({type:te,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],[3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],[3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"]],template:function(ue,we){1&ue&&(g.TgZ(0,"div",0)(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,T,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,v,2,5,"div",3),g.qZA(),g.YNc(7,R,1,3,"app-side-menu-root-item",5),g.YNc(8,_,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,V,2,5,"div",3),g.YNc(11,Y,1,4,"app-side-menu-root-item",8),g.YNc(12,ne,2,1,"div",6),g.qZA()()),2&ue&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",we.homeItem)("sideNav",we.sideNav),g.xp6(1),g.Q6J("ngForOf",we.homeItems),g.xp6(1),g.Q6J("item",we.accessItem)("id","access-item-btn")("sideNav",we.sideNav),g.xp6(2),g.Q6J("ngForOf",we.accessItems),g.xp6(1),g.Q6J("ngIf",we.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",we.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",we.userItem)("showOpen",we.userItemOpened)("sideNav",we.sideNav),g.xp6(1),g.Q6J("ngForOf",we.userItems),g.xp6(1),g.Q6J("ngIf",we.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",we.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[w.Ly]}}),te})()},86511:(Je,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(32080),d=h(94650),A=h(89383);let w=(()=>{class g{constructor(T,v){this.notificator=T,this.translate=v}setDialogRef(T){this.dialogRef=T}setType(T){this.entityType=T}getType(){return this.entityType}createCandidate(T){return{userExtSource:T.userExtSource,additionalUserExtSources:T.additionalUserExtSources,attributes:T.attributes,firstName:T.firstName,lastName:T.lastName,middleName:T.middleName,titleBefore:T.titleBefore,titleAfter:T.titleAfter,id:T.id}}getFormattedGroup(T){return{id:T.id,beanName:T.beanName,name:T.name,voId:T.voId}}success(T){this.notificator.showSuccess(this.translate.instant(T)),this.dialogRef.close(!0)}getCandidateWithError(T,v){const R=v.error,U=R.message.split(":").splice(1).join();return{candidate:T,errorName:R.name,errorMsg:U}}}return g.\u0275fac=function(T){return new(T||g)(d.LFG(e.V6),d.LFG(A.sK))},g.\u0275prov=d.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:(Je,pe,h)=>{"use strict";h.d(pe,{b:()=>Ge});var e=h(94650),d=h(73555),A=h(65412),w=h(4859),g=h(89383);let C=(()=>{class Ie{constructor(Ke){this.dialogRef=Ke}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Ie.\u0275fac=function(Ke){return new(Ke||Ie)(e.Y36(A.so))},Ie.\u0275cmp=e.Xpm({type:Ie,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Ke,ke){1&Ke&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return ke.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return ke.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&Ke&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[w.lW,A.uh,A.xY,A.H8,g.X$]}),Ie})();var T=h(32080),v=h(83491),R=h(9244),U=h(94364),_=h(36895),V=h(24006),Y=h(97392),X=h(30671),ne=h(51572),le=h(10266),te=h(98380),fe=h(21963),ue=h(28820),we=h(57706),E=h(64597);const O=["table"];function H(Ie,Xe){1&Ie&&e._UZ(0,"mat-spinner",3)}function W(Ie,Xe){1&Ie&&e._UZ(0,"th",24)}function $(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(Ke);const Ae=e.oxw(2);return e.KtG(Ae.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function de(Ie,Xe){1&Ie&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ye(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.AsE(" ",Ke.shortname,"",Ke.required?"*":""," ")}}function xe(Ie,Xe){1&Ie&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Me(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,Ke.type)," ")}}function Ze(Ie,Xe){1&Ie&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function se(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",ke.disabledTooltip(Ke)),e.xp6(3),e.hij(" ",ke.disabledHiddenDependency(Ke,Ke.disabled,Ke.disabledDependencyItemId)," ")}}function ze(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",28),e.YNc(1,se,5,2,"div",29),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==Ke.disabled)}}function he(Ie,Xe){1&Ie&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function De(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",ke.hiddenTooltip(Ke)),e.xp6(3),e.hij(" ",ke.disabledHiddenDependency(Ke,Ke.hidden,Ke.hiddenDependencyItemId)," ")}}function j(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",28),e.YNc(1,De,5,2,"div",29),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==Ke.hidden)}}function P(Ie,Xe){1&Ie&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function G(Ie,Xe){1&Ie&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function ce(Ie,Xe){1&Ie&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function q(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(2),e.hij(" ",Ke,"")}}function Te(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,q,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",ke.getLocalizedOptions(Ke)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function He(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",ke.getLocalizedLabel(Ke),e.oJD)}}function dt(Ie,Xe){if(1&Ie&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.hij(" ",Ke," ")}}function et(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,dt,2,1,"option",33),e.qZA()()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",ke.getLocalizedOptions(Ke))}}function _t(Ie,Xe){1&Ie&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Qe(Ie,Xe){if(1&Ie&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.hij(" ",Ke," ")}}function st(Ie,Xe){1&Ie&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Z(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(Ae){e.CHM(Ke);const Ee=e.oxw().$implicit,We=e.oxw(2);return e.KtG(We.mapForCombobox[Ee.id]=Ae)}),e.YNc(2,Qe,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,st,3,0,"div",29),e.qZA()}if(2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(1),e.Q6J("ngModel",ke.mapForCombobox[Ke.id]),e.xp6(1),e.Q6J("ngForOf",ke.getLocalizedOptions(Ke)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===ke.mapForCombobox[Ke.id])}}function ve(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(2),e.hij(" ",Ke," ")}}function oe(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,ve,3,1,"div",33),e.qZA()()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",ke.getLocalizedOptions(Ke))}}function ge(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(2),e.hij(" ",ke.getLocalizedLabel(Ke)," ")}}function ae(Ie,Xe){1&Ie&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&Ie&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Oe(Ie,Xe){if(1&Ie&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Ie){const Ke=e.oxw().$implicit,ke=e.oxw(2);e.xp6(2),e.hij(" ",ke.getLocalizedLabel(Ke)," ")}}function Q(Ie,Xe){1&Ie&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const me=function(){return["Example 1","Example 2"]},N=function(Ie){return{id:0,beanName:"Attribute",namespace:"",value:Ie}};function L(Ie,Xe){1&Ie&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Ie&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,N,e.DdM(1,me))))}const r=function(){return{key1:"value 1",key2:"value 2"}};function s(Ie,Xe){1&Ie&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Ie&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,N,e.DdM(1,r))))}function m(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",25),e.YNc(1,G,3,0,"div",29),e.YNc(2,ce,5,0,"div",29),e.YNc(3,Te,5,4,"div",29),e.YNc(4,He,2,1,"div",29),e.YNc(5,et,3,1,"div",29),e.YNc(6,_t,2,0,"div",29),e.YNc(7,Z,7,6,"div",29),e.YNc(8,oe,3,1,"div",29),e.YNc(9,ge,3,1,"div",29),e.YNc(10,ae,85,3,"div",29),e.YNc(11,Oe,3,1,"div",29),e.YNc(12,Q,10,0,"div",29),e.YNc(13,L,2,4,"div",29),e.YNc(14,s,2,4,"div",29),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===Ke.type||"VALIDATED_EMAIL"===Ke.type||"USERNAME"===Ke.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===Ke.type),e.xp6(1),e.Q6J("ngIf","RADIO"===Ke.type),e.xp6(1),e.Q6J("ngIf","HEADING"===Ke.type||"HTML_COMMENT"===Ke.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===Ke.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===Ke.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===Ke.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===Ke.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===Ke.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===Ke.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===Ke.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===Ke.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===Ke.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===Ke.type)}}function l(Ie,Xe){1&Ie&&e._UZ(0,"th",24)}function o(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(Ke);const Ae=e.oxw(3);return e.KtG(Ae.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&Ie&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",25),e.YNc(1,o,4,3,"button",86),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===Ke.type&&!Ke.forDelete)}}function t(Ie,Xe){1&Ie&&e._UZ(0,"th",24)}function i(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(Ke);const Ae=e.oxw().$implicit,Ee=e.oxw(2);return e.KtG(Ee.edit(Ae))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&Ie&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function a(Ie,Xe){1&Ie&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",25),e.YNc(1,i,4,3,"button",88),e.YNc(2,a,3,3,"div",89),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.Q6J("ngIf",!Ke.forDelete),e.xp6(1),e.Q6J("ngIf",Ke.forDelete)}}function p(Ie,Xe){1&Ie&&e._UZ(0,"th",24)}function M(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(Ke);const Ae=e.oxw().$implicit,Ee=e.oxw(2);return e.KtG(Ee.delete(Ae))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&Ie){const Ke=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,Ke.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function Ne(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(Ke);const Ae=e.oxw().$implicit,Ee=e.oxw(2);return e.KtG(Ee.restore(Ae))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&Ie&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function Pt(Ie,Xe){if(1&Ie&&(e.TgZ(0,"td",25),e.YNc(1,M,5,6,"button",92),e.YNc(2,Ne,4,3,"button",86),e.qZA()),2&Ie){const Ke=Xe.$implicit;e.xp6(1),e.Q6J("ngIf",!Ke.forDelete),e.xp6(1),e.Q6J("ngIf",Ke.forDelete)}}function Ut(Ie,Xe){1&Ie&&e._UZ(0,"tr",94)}function ln(Ie,Xe){if(1&Ie&&e._UZ(0,"tr",95),2&Ie){const Ke=Xe.$implicit,ke=e.oxw(2);e.ekj("make-green",Ke.id<=0)("make-red",Ke.forDelete)("make-yellow",-1!==ke.itemsChanged.indexOf(Ke.id)&&!Ke.forDelete&&Ke.id>0),e.Q6J("cdkDragData",Ke)}}function xt(Ie,Xe){if(1&Ie){const Ke=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(Ae){e.CHM(Ke);const Ee=e.oxw();return e.KtG(Ee.drop(Ae))}),e.ynx(5,9),e.YNc(6,W,1,0,"th",10),e.YNc(7,$,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,de,3,3,"th",10),e.YNc(10,ye,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,xe,3,3,"th",10),e.YNc(13,Me,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,Ze,3,3,"th",15),e.YNc(16,ze,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,he,3,3,"th",15),e.YNc(19,j,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,P,3,3,"th",10),e.YNc(22,m,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,c,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,p,1,0,"th",10),e.YNc(31,Pt,3,2,"td",11),e.BQk(),e.YNc(32,Ut,1,0,"tr",22),e.YNc(33,ln,1,7,"tr",23),e.qZA()()()()}if(2&Ie){const Ke=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",Ke.dragDisabled)("dataSource",Ke.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",Ke.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ke.displayedColumns)}}function gt(Ie,Xe){1&Ie&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ie&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Ge=(()=>{class Ie{constructor(Ke,ke,Ae,Ee){this.dialog=Ke,this.notificator=ke,this.router=Ae,this.translate=Ee,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(Ke,ke,Ae){let Ee="";if("IF_EMPTY"===ke||"IF_PREFILLED"===ke){const We=null===Ae?"":this.applicationFormItems.find(tt=>tt.id===Ae).shortname;Ee="IF_EMPTY"===ke?`(${this.ifEmpty} ${We})`:`(${this.ifPrefilled} ${We})`}return Ee}disabledTooltip(Ke){let ke;switch(Ke.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return ke=null===Ke.disabledDependencyItemId?"":this.applicationFormItems.find(Ae=>Ae.id===Ke.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${ke} ${this.isEmpty}`;case"IF_PREFILLED":return ke=null===Ke.disabledDependencyItemId?"":this.applicationFormItems.find(Ae=>Ae.id===Ke.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${ke} ${this.isPrefilled}`}}hiddenTooltip(Ke){let ke;switch(Ke.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return ke=null===Ke.hiddenDependencyItemId?"":this.applicationFormItems.find(Ae=>Ae.id===Ke.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${ke} ${this.isEmpty}`;case"IF_PREFILLED":return ke=null===Ke.hiddenDependencyItemId?"":this.applicationFormItems.find(Ae=>Ae.id===Ke.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${ke} ${this.isPrefilled}`}}edit(Ke){const ke=(0,R.kZ)();ke.width="600px",ke.height="600px",ke.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:Ke,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(v._,ke).afterClosed().subscribe(Ee=>{Ee&&(this.itemsChanged.push(Ke.id),this.applicationFormItemsChange.emit())})}delete(Ke){const ke=(0,R.kZ)();ke.width="500px",this.dialog.open(C,ke).afterClosed().subscribe(Ee=>{Ee&&(Ke.forDelete=!0,0===Ke.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(Ke),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(Ke){this.dragDisabled=!0;const ke=this.applicationFormItems.indexOf(Ke.item.data);(0,d.bA)(this.applicationFormItems,ke,Ke.currentIndex),this.itemsChanged.push(this.applicationFormItems[Ke.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(Ke){if(Ke.i18n[this.translate.getDefaultLang()]){const ke=Ke.i18n[this.translate.getDefaultLang()].options;if(null!==ke&&""!==ke){const Ae=[];for(const Ee of ke.split("|"))Ae.push(Ee.split("#")[1]);return Ae}}return[]}getLocalizedLabel(Ke){return Ke.i18n[this.translate.getDefaultLang()]?Ke.i18n[this.translate.getDefaultLang()].label:Ke.shortname}restore(Ke){Ke.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Ie.\u0275fac=function(Ke){return new(Ke||Ie)(e.Y36(A.uw),e.Y36(T.V6),e.Y36(U.F0),e.Y36(g.sK))},Ie.\u0275cmp=e.Xpm({type:Ie,selectors:[["app-application-form-list"]],viewQuery:function(Ke,ke){if(1&Ke&&e.Gf(O,5),2&Ke){let Ae;e.iGM(Ae=e.CRH())&&(ke.table=Ae.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(Ke,ke){1&Ke&&(e.YNc(0,H,1,0,"mat-spinner",0),e.YNc(1,xt,34,4,"div",1),e.YNc(2,gt,3,3,"perun-web-apps-alert",2)),2&Ke&&(e.Q6J("ngIf",ke.loading),e.xp6(1),e.Q6J("ngIf",0!==ke.applicationFormItems.length&&!ke.loading),e.xp6(1),e.Q6J("ngIf",0===ke.applicationFormItems.length&&!ke.loading))},dependencies:[_.sg,_.O5,V._Y,V.YN,V.Kr,V.EJ,V.JJ,V.JL,V.On,V.F,Y.Hw,X.BZ,X.fO,X.as,X.w1,X.Dz,X.nj,X.ge,X.ev,X.XQ,X.Gk,w.lW,ne.Ou,le.gM,d.Wj,d.Zt,te.w,fe.H,ue.$,g.X$,we.c,E.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ie})()},9146:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>i});var e=h(32105),d=h(9244),A=h(96308),w=h(32080),g=h(56451),C=h(18505),T=h(36895),v=h(94650),R=h(10036),U=h(94364),_=h(30671),V=h(51572),Y=h(98380),X=h(50301),ne=h(18750),le=h(97392),te=h(10266);function fe(a,c){1&a&&(v.TgZ(0,"div")(1,"mat-icon",1),v._uU(2,"arrow_right_alt"),v.qZA()())}function ue(a,c){1&a&&(v.TgZ(0,"div")(1,"mat-icon",2),v._uU(2,"restore"),v.qZA()())}function we(a,c){1&a&&(v.TgZ(0,"div")(1,"mat-icon",3),v._uU(2,"nat"),v.qZA()())}let E=(()=>{class a{}return a.\u0275fac=function(p){return new(p||a)},a.\u0275cmp=v.Xpm({type:a,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(p,M){1&p&&(v.TgZ(0,"div"),v.YNc(1,fe,3,0,"div",0),v.YNc(2,ue,3,0,"div",0),v.YNc(3,we,3,0,"div",0),v.qZA()),2&p&&(v.xp6(1),v.Q6J("ngIf","INITIAL"===M.applicationType),v.xp6(1),v.Q6J("ngIf","EXTENSION"===M.applicationType),v.xp6(1),v.Q6J("ngIf","EMBEDDED"===M.applicationType))},dependencies:[T.O5,le.Hw,te.gM]}),a})();var O=h(89383),H=h(43157),W=h(31359);function $(a,c){1&a&&(v.TgZ(0,"div",26),v._UZ(1,"mat-spinner",27),v.qZA())}function de(a,c){1&a&&(v.TgZ(0,"th",28),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function ye(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(p.id)}}function xe(a,c){1&a&&(v.TgZ(0,"th",28),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Me(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.ALo(2,"date"),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,p.createdAt,"d.M.y"))}}function Ze(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function se(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(p.vo.id)}}function ze(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function he(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(p.vo.name)}}function De(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function j(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.hij(" ",p.group?p.group.id:""," ")}}function P(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function G(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.hij(" ",p.group?p.group.name:""," ")}}function ce(a,c){1&a&&(v.TgZ(0,"th",28),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function q(a,c){if(1&a&&(v.TgZ(0,"td",29),v._UZ(1,"app-application-type-icon",31),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Q6J("applicationType",p.type)}}function Te(a,c){1&a&&(v.TgZ(0,"th",28),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function He(a,c){if(1&a&&(v.TgZ(0,"td",29),v._UZ(1,"span",32),v.ALo(2,"applicationState"),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Q6J("outerHTML",v.lcZ(2,1,p.state),v.oJD)}}function dt(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function et(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(p.extSourceName)}}function _t(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function Qe(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(p.extSourceType)}}function st(a,c){1&a&&(v.TgZ(0,"th",28),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function Z(a,c){if(1&a&&(v.TgZ(0,"div"),v._uU(1),v.qZA()),2&a){const p=v.oxw().$implicit;v.xp6(1),v.hij(" ",p.createdBy.slice(p.createdBy.lastIndexOf("=")+1,p.createdBy.length)," ")}}function ve(a,c){if(1&a&&(v._uU(0),v.ALo(1,"userFullName")),2&a){const p=v.oxw().$implicit;v.hij(" ",v.lcZ(1,1,p.user)," ")}}function oe(a,c){if(1&a&&(v.TgZ(0,"td",29),v.YNc(1,Z,2,1,"div",33),v.YNc(2,ve,2,3,"ng-template",null,34,v.W1O),v.qZA()),2&a){const p=c.$implicit,M=v.MAs(3);v.xp6(1),v.Q6J("ngIf",null===p.user)("ngIfElse",M)}}function ge(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function ae(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.hij(" ",p.createdBy.slice(p.createdBy.lastIndexOf("=")+1,p.createdBy.length)," ")}}function Oe(a,c){1&a&&(v.TgZ(0,"th",28),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function Q(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit,M=v.oxw();v.xp6(1),v.Oqu(M.getFriendlyName(p.modifiedBy))}}function me(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function N(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.ALo(2,"date"),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(v.xi3(2,1,p.modifiedAt,"d.M.y"))}}function L(a,c){1&a&&(v.TgZ(0,"th",30),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function r(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit;v.xp6(1),v.Oqu(p.fedInfo)}}function s(a,c){if(1&a&&(v.TgZ(0,"th",30),v._uU(1),v.qZA()),2&a){const p=v.oxw().$implicit;v.xp6(1),v.Oqu(p)}}function m(a,c){if(1&a&&(v.TgZ(0,"td",29),v._uU(1),v.qZA()),2&a){const p=c.$implicit,M=v.oxw().$implicit,Ne=v.oxw();v.xp6(1),v.hij(" ",Ne.getValue(p.formData,M)," ")}}function l(a,c){1&a&&(v.ynx(0,35),v.YNc(1,s,2,1,"th",9),v.YNc(2,m,2,1,"td",6),v.BQk()),2&a&&v.s9C("matColumnDef",c.$implicit)}function o(a,c){1&a&&v._UZ(0,"tr",36)}function n(a,c){if(1&a&&v._UZ(0,"tr",37),2&a){const p=c.$implicit,M=v.oxw();v.ekj("cursor-pointer",!M.disableRouting),v.Q6J("perunWebAppsMiddleClickRouterLink",M.selectApplication(p))("routerLink",M.selectApplication(p))}}function t(a,c){1&a&&(v.TgZ(0,"perun-web-apps-alert",38),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&a&&(v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let i=(()=>{class a{constructor(p,M,Ne){this.authResolver=p,this.tableConfigService=M,this.dynamicPaginatingService=Ne,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=d.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(p=>"id"!==p)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(p=>{if(p||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Ne=>!this.parsedColumns.includes(Ne)),this.parsedColumns=[];const M=this.dataSource.getData()[0];M&&this.parseColumns(M.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportData(p){(0,d.O6)((0,d.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),p)}selectApplication(p){return this.disableRouting?null:this.group?["/organizations",p.vo.id,"groups",this.group.id,"applications",p.id]:this.member?["/organizations",p.vo.id,"members",this.member.id,"applications",p.id]:["/organizations",p.vo.id,"applications",p.id]}getExportDataForColumn(p,M){switch(M){case"id":return p.id.toString();case"voId":return p.vo.id.toString();case"voName":return p.vo.name;case"groupId":return p.group?.id.toString()??"";case"groupName":return p.group?.name??"";case"type":return p.type;case"fedInfo":return p.fedInfo;case"formData":return this.stringify(p.formData);case"state":return p.state;case"extSourceName":return p.extSourceName;case"extSourceType":return p.extSourceType;case"user":return p.user?(0,d.bD)(p.user):"";case"createdBy":return p.createdBy;case"createdAt":return p.createdAt;case"modifiedBy":return p.modifiedBy;case"modifiedAt":return p.modifiedAt;default:return p[M]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(p){const M=p.lastIndexOf("/CN=");if(-1!==M){const Ne=p.slice(M+4,p.length).replace("/unstructuredName="," ");return-1!==Ne.lastIndexOf("\\")?p.slice(p.lastIndexOf("=")+1,p.length):Ne}return p}yearAgo(){const p=new Date;return p.setDate(p.getDate()-365),p}dateToString(p){return(0,T.p6)(p,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(p){const M=Pt=>Object.entries(Pt).reduce((Ut,[ln,xt])=>Ut[ln]instanceof Object?Ut[ln]=M(Ut[ln]):(null==xt||"null"===xt||0===xt.length||(Ut[ln]=xt),Ut),{});let Ne=JSON.stringify(M(p));return Ne=Ne.replace("{","["),Ne=Ne.replace("}","]"),Ne}getFormDataString(p){return this.stringify(p.formItem)}parseColumns(p){p.forEach(M=>{this.displayedColumns.includes(M.shortname)||this.displayedColumns.push(M.shortname),this.parsedColumns.includes(M.shortname)||this.parsedColumns.push(M.shortname)})}getValue(p,M){const Ne=p.filter(Pt=>Pt.shortname===M);return 0===Ne.length?"":Ne[0].value??Ne[0].prefilledValue}}return a.\u0275fac=function(p){return new(p||a)(v.Y36(w.x4),v.Y36(R.dB),v.Y36(w.ly))},a.\u0275cmp=v.Xpm({type:a,selectors:[["app-applications-dynamic-list"]],viewQuery:function(p,M){if(1&p&&(v.Gf(d.l9,7),v.Gf(A.YE,5)),2&p){let Ne;v.iGM(Ne=v.CRH())&&(M.child=Ne.first),v.iGM(Ne=v.CRH())&&(M.sort=Ne.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[v.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(p,M){1&p&&(v.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),v.NdJ("exportData",function(Pt){return M.exportData(Pt)}),v.YNc(2,$,2,0,"div",2),v.ALo(3,"async"),v.TgZ(4,"table",3),v.ynx(5,4),v.YNc(6,de,3,3,"th",5),v.YNc(7,ye,2,1,"td",6),v.BQk(),v.ynx(8,7),v.YNc(9,xe,3,3,"th",5),v.YNc(10,Me,3,4,"td",6),v.BQk(),v.ynx(11,8),v.YNc(12,Ze,3,3,"th",9),v.YNc(13,se,2,1,"td",6),v.BQk(),v.ynx(14,10),v.YNc(15,ze,3,3,"th",9),v.YNc(16,he,2,1,"td",6),v.BQk(),v.ynx(17,11),v.YNc(18,De,3,3,"th",9),v.YNc(19,j,2,1,"td",6),v.BQk(),v.ynx(20,12),v.YNc(21,P,3,3,"th",9),v.YNc(22,G,2,1,"td",6),v.BQk(),v.ynx(23,13),v.YNc(24,ce,3,3,"th",5),v.YNc(25,q,2,1,"td",6),v.BQk(),v.ynx(26,14),v.YNc(27,Te,3,3,"th",5),v.YNc(28,He,3,3,"td",6),v.BQk(),v.ynx(29,15),v.YNc(30,dt,3,3,"th",9),v.YNc(31,et,2,1,"td",6),v.BQk(),v.ynx(32,16),v.YNc(33,_t,3,3,"th",9),v.YNc(34,Qe,2,1,"td",6),v.BQk(),v.ynx(35,17),v.YNc(36,st,3,3,"th",5),v.YNc(37,oe,4,2,"td",6),v.BQk(),v.ynx(38,18),v.YNc(39,ge,3,3,"th",9),v.YNc(40,ae,2,1,"td",6),v.BQk(),v.ynx(41,19),v.YNc(42,Oe,3,3,"th",5),v.YNc(43,Q,2,1,"td",6),v.BQk(),v.ynx(44,20),v.YNc(45,me,3,3,"th",9),v.YNc(46,N,3,4,"td",6),v.BQk(),v.ynx(47,21),v.YNc(48,L,3,3,"th",9),v.YNc(49,r,2,1,"td",6),v.BQk(),v.YNc(50,l,3,1,"ng-container",22),v.YNc(51,o,1,0,"tr",23),v.YNc(52,n,1,4,"tr",24),v.qZA()()(),v.YNc(53,t,3,4,"perun-web-apps-alert",25),v.ALo(54,"async")),2&p&&(v.Q6J("hidden",0===M.dataSource.allObjectCount),v.xp6(1),v.Q6J("dataLength",M.dataSource.allObjectCount)("pageSizeOptions",M.pageSizeOptions)("tableId",M.tableId),v.xp6(1),v.Q6J("ngIf",v.lcZ(3,10,M.dataSource.loading$)),v.xp6(2),v.Q6J("dataSource",M.dataSource),v.xp6(46),v.Q6J("ngForOf",M.parsedColumns),v.xp6(1),v.Q6J("matHeaderRowDef",M.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",M.displayedColumns),v.xp6(1),v.Q6J("ngIf",0===M.dataSource.allObjectCount&&!1===v.lcZ(54,12,M.dataSource.loading$)))},dependencies:[T.sg,T.O5,U.rH,A.YE,A.nU,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,V.Ou,Y.w,X.YH,ne.l,E,T.Ov,T.uU,O.X$,H.h,W.d]}),a})()},45256:(Je,pe,h)=>{"use strict";h.d(pe,{k:()=>X});var e=h(95017),d=h(32105),A=h(64080),w=h(65412),g=h(32080),C=h(9244),T=h(86511),v=h(77579),R=h(56451),U=h(39646),_=h(63900),V=h(68675),Y=h(94650);let X=(()=>{class ne{constructor(te,fe,ue,we,E,O,H,W,$,de){this.data=te,this.dialogRef=fe,this.membersManagerService=ue,this.voService=we,this.registrarManager=E,this.groupService=O,this.store=H,this.guiAuthResolver=W,this.requestService=$,this.addMemberService=de,this.loading=!1,this.searcher=new v.x,this.members=this.searcher.pipe((0,_.w)(ye=>(0,R.T)((0,U.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,ye))),(0,V.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(te=>{this.addAuth=!!te.source.selected.every(fe=>fe.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const te=this.selection.selected.pop();te.member?this.addMember(te):te.richUser?this.addUser(te):te.candidate&&this.addCandidate(te)}invite(te){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const fe=this.selection.selected.pop();fe.richUser?this.inviteUser(fe,te):this.inviteCandidate(fe,te)}cancel(te){this.dialogRef.close(te)}addCandidate(te){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(te.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},fe=>{this.failed.push(this.addMemberService.getCandidateWithError(te,fe)),this.add()})}addMember(te){this.groupService.addMembers(this.data.group.id,[te.member.id]).subscribe(()=>{this.add()},fe=>{this.failed.push(this.addMemberService.getCandidateWithError(te,fe)),this.add()})}addUser(te){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:te.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},fe=>{this.failed.push(this.addMemberService.getCandidateWithError(te,fe)),this.add()})}inviteCandidate(te,fe){this.registrarManager.sendInvitationForGroup((0,C.Jc)(te.candidate),fe,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(fe)},ue=>{this.failed.push(this.addMemberService.getCandidateWithError(te,ue)),this.invite(fe)})}inviteUser(te,fe){this.registrarManager.sendInvitationGroupToExistingUser(te.richUser.id,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(fe)},ue=>{this.failed.push(this.addMemberService.getCandidateWithError(te,ue)),this.invite(fe)})}}return ne.\u0275fac=function(te){return new(te||ne)(Y.Y36(w.WI),Y.Y36(w.so),Y.Y36(d.uq),Y.Y36(d.YF),Y.Y36(d.tk),Y.Y36(d.ff),Y.Y36(g.d6),Y.Y36(g.x4),Y.Y36(g.F5),Y.Y36(T.A))},ne.\u0275cmp=Y.Xpm({type:ne,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(te,fe){1&te&&(Y.TgZ(0,"app-add-member-dialog",0),Y.NdJ("add",function(){return fe.add()})("cancel",function(we){return fe.cancel(we)})("invite",function(we){return fe.invite(we)})("search",function(we){return fe.searcher.next(we)}),Y.ALo(1,"async"),Y.qZA()),2&te&&Y.Q6J("loading",fe.loading)("languages",fe.languages)("manualAddingBlocked",fe.data.manualAddingBlocked)("addAuth",fe.addAuth)("inviteAuth",fe.inviteAuth)("failed",fe.failed)("members",Y.lcZ(1,9,fe.members))("selection",fe.selection)("theme","group-theme")}}),ne})()},51525:(Je,pe,h)=>{"use strict";h.d(pe,{H:()=>X});var e=h(65412),d=h(32105),A=h(32080),w=h(95017),g=h(9244),C=h(64080),T=h(86511),v=h(77579),R=h(56451),U=h(39646),_=h(63900),V=h(68675),Y=h(94650);let X=(()=>{class ne{constructor(te,fe,ue,we,E,O,H,W){this.data=te,this.dialogRef=fe,this.membersManagerService=ue,this.voService=we,this.registrarManager=E,this.store=O,this.requestService=H,this.addMemberService=W,this.loading=!1,this.searcher=new v.x,this.members=this.searcher.pipe((0,_.w)($=>(0,R.T)((0,U.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,$))),(0,V.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const te=this.selection.selected.pop();te.richUser?this.addUser(te):this.addCandidate(te)}invite(te){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const fe=this.selection.selected.pop();fe.richUser?this.inviteUser(fe,te):this.inviteCandidate(fe,te)}cancel(te){this.dialogRef.close(te)}addCandidate(te){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(te.candidate)}).subscribe(fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},fe=>{this.failed.push(this.addMemberService.getCandidateWithError(te,fe)),this.add()})}addUser(te){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:te.richUser.id}).subscribe(fe=>{this.membersManagerService.validateMemberAsync(fe.id).subscribe(),this.add()},fe=>{this.failed.push(this.addMemberService.getCandidateWithError(te,fe)),this.add()})}inviteCandidate(te,fe){this.registrarManager.sendInvitation((0,g.Jc)(te.candidate),fe,this.data.voId).subscribe(()=>{this.invite(fe)},ue=>{this.failed.push(this.addMemberService.getCandidateWithError(te,ue)),this.invite(fe)})}inviteUser(te,fe){this.registrarManager.sendInvitationToExistingUser(te.richUser.id,this.data.voId).subscribe(()=>{this.invite(fe)},ue=>{this.failed.push(this.addMemberService.getCandidateWithError(te,ue)),this.invite(fe)})}}return ne.\u0275fac=function(te){return new(te||ne)(Y.Y36(e.WI),Y.Y36(e.so),Y.Y36(d.uq),Y.Y36(d.YF),Y.Y36(d.tk),Y.Y36(A.d6),Y.Y36(A.F5),Y.Y36(T.A))},ne.\u0275cmp=Y.Xpm({type:ne,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(te,fe){1&te&&(Y.TgZ(0,"app-add-member-dialog",0),Y.NdJ("add",function(){return fe.add()})("cancel",function(we){return fe.cancel(we)})("invite",function(we){return fe.invite(we)})("search",function(we){return fe.searcher.next(we)}),Y.ALo(1,"async"),Y.qZA()),2&te&&Y.Q6J("loading",fe.loading)("languages",fe.languages)("failed",fe.failed)("members",Y.lcZ(1,6,fe.members))("selection",fe.selection)("theme","vo-theme")}}),ne})()},55857:(Je,pe,h)=>{"use strict";h.d(pe,{W:()=>fe});var e=h(32105),d=h(10036),A=h(32080),w=h(24006),g=h(36895),C=h(94650),T=h(3238),v=h(59549),R=h(4859),U=h(84385),_=h(96214),V=h(39798),Y=h(64901),X=h(9146),ne=h(89383);function le(ue,we){if(1&ue){const E=C.EpF();C.TgZ(0,"button",14),C.NdJ("click",function(){C.CHM(E);const H=C.oxw();return C.KtG(H.showAllDetails=!0)}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function te(ue,we){if(1&ue){const E=C.EpF();C.TgZ(0,"button",14),C.NdJ("click",function(){C.CHM(E);const H=C.oxw();return C.KtG(H.showAllDetails=!1)}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let fe=(()=>{class ue{constructor(E,O,H){this.registrarManager=E,this.guiAuthResolver=O,this.entityStorageService=H,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=d.Af,this.tableId=d.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.p4((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.p4((0,g.p6)(new Date,"yyyy-MM-dd","en-GB"))}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const E=new Date;return E.setDate(E.getDate()-365),E}applyFilter(E){this.filterValue=E}}return ue.id="GroupApplicationsComponent",ue.\u0275fac=function(E){return new(E||ue)(C.Y36(e.tk),C.Y36(A.x4),C.Y36(A.fb))},ue.\u0275cmp=C.Xpm({type:ue,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(E,O){2&E&&C.ekj("router-component",O.true)},decls:34,vars:38,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(E,O){1&E&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return O.refresh=!O.refresh}),C.qZA(),C.YNc(5,le,3,3,"button",2),C.YNc(6,te,3,3,"button",2),C.TgZ(7,"mat-form-field",3)(8,"mat-label"),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"mat-select",4),C.NdJ("selectionChange",function(){return O.select()})("valueChange",function(W){return O.state=W}),C.TgZ(12,"mat-option",5),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"mat-option",6),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"mat-option",7),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-option",8),C._uU(22),C.ALo(23,"translate"),C.qZA(),C.TgZ(24,"mat-option",9),C._uU(25),C.ALo(26,"translate"),C.qZA(),C.TgZ(27,"mat-option",10),C._uU(28),C.ALo(29,"translate"),C.qZA()()(),C.TgZ(30,"perun-web-apps-debounce-filter",11),C.NdJ("filter",function(W){return O.applyFilter(W)}),C.qZA(),C.TgZ(31,"perun-web-apps-date-range",12),C.NdJ("datePicker",function(){return O.select()}),C.qZA()(),C.TgZ(32,"div"),C._UZ(33,"app-applications-dynamic-list",13),C.qZA()),2&E&&(C.xp6(1),C.Oqu(C.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),C.xp6(4),C.Q6J("ngIf",!O.showAllDetails),C.xp6(1),C.Q6J("ngIf",O.showAllDetails),C.xp6(3),C.Oqu(C.lcZ(10,24,"APPLICATIONS_LIST.STATE")),C.xp6(2),C.Q6J("value",O.state),C.xp6(2),C.Oqu(C.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),C.xp6(3),C.Oqu(C.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),C.xp6(3),C.Oqu(C.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),C.xp6(3),C.Oqu(C.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),C.xp6(3),C.Oqu(C.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),C.xp6(3),C.Oqu(C.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),C.xp6(2),C.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),C.xp6(1),C.Q6J("endDate",O.endDate)("startDate",O.startDate),C.xp6(2),C.Q6J("tableId",O.showAllDetails?O.detailTableId:O.tableId)("searchString",O.filterValue)("displayedColumns",O.showAllDetails?O.detailedDisplayedColumns:O.displayedColumns)("states",O.currentStates)("dateFrom",O.startDate.value)("dateTo",O.endDate.value)("refreshTable",O.refresh)("group",O.group))},dependencies:[g.O5,T.ey,v.KE,v.hX,R.lW,U.gD,_.t,V.S,Y.P,X.S,ne.X$]}),ue})()},75234:(Je,pe,h)=>{"use strict";h.d(pe,{y:()=>P});var e=h(95017),d=h(32080),A=h(64080),w=h(53455),g=h(32105),C=h(10036),T=h(9244),v=h(74414),R=h(24006),U=h(45256),_=h(94650),V=h(65412),Y=h(36895),X=h(3238),ne=h(59549),le=h(4859),te=h(84385),fe=h(51572),ue=h(10266),we=h(98380),E=h(96214),O=h(64901),H=h(4811),W=h(89383),$=h(20551);let de=(()=>{class G{transform(q,Te){return!!("members"===q.name||(0,T.bx)(q)||"add"===Te&&(0,T.jh)(q.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275pipe=_.Yjl({name:"groupMembersActionButtonDisabled",type:G,pure:!0}),G})(),ye=(()=>{class G{transform(q,Te){return"members"===q.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,T.bx)(q)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Te&&(0,T.jh)(q.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return G.\u0275fac=function(q){return new(q||G)},G.\u0275pipe=_.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:G,pure:!0}),G})();function xe(G,ce){1&G&&(_.TgZ(0,"perun-web-apps-alert",14),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&G&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Me(G,ce){if(1&G){const q=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(q);const He=_.oxw();return _.KtG(He.onAddMember())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const q=_.oxw();_.Q6J("disabled",_.xi3(1,2,q.group,"add")),_.xp6(2),_.hij(" ",_.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Ze(G,ce){if(1&G){const q=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM(q);const He=_.oxw();return _.KtG(He.onInviteMember())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const q=_.oxw();_.Q6J("disabled",_.lcZ(1,2,q.group)),_.xp6(2),_.hij(" ",_.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function se(G,ce){if(1&G){const q=_.EpF();_.TgZ(0,"button",17),_.NdJ("click",function(){_.CHM(q);const He=_.oxw();return _.KtG(He.onRemoveMembers())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const q=_.oxw();_.Q6J("disabled",q.selection.isEmpty()||_.lcZ(1,2,q.group)),_.xp6(2),_.hij(" ",_.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function ze(G,ce){if(1&G&&(_.TgZ(0,"mat-option",18),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&G){const q=ce.$implicit;_.Q6J("value",q),_.xp6(1),_.Oqu(_.lcZ(2,2,q))}}function he(G,ce){if(1&G&&(_.TgZ(0,"mat-option",18),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&G){const q=ce.$implicit;_.Q6J("value",q),_.xp6(1),_.Oqu(_.lcZ(2,2,q))}}function De(G,ce){1&G&&_._UZ(0,"mat-spinner",19)}function j(G,ce){if(1&G&&_._UZ(0,"perun-web-apps-members-dynamic-list",20),2&G){const q=_.oxw();_.Q6J("attrNames",q.memberAttrNames)("groupId",q.group.id)("tableId",q.tableId)("displayedColumns",q.displayedColumns)("searchString",q.searchString)("updateTable",q.updateTable)("selectedGroupStatuses",q.selectedGroupStatuses)("selectedStatuses",q.selectedStatuses)("selection",q.selection)("voId",q.group.voId)("isMembersGroup","members"===q.group.name)}}let P=(()=>{class G{constructor(q,Te,He,dt,et,_t,Qe,st){this.groupService=q,this.dialog=Te,this.guiAuthResolver=He,this.storeService=dt,this.attributesManager=et,this.apiRequest=_t,this.notificator=Qe,this.entityStorageService=st,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=C.dI,this.memberAttrNames=[A.r.MEMBER_DEF_ORGANIZATION,A.r.MEMBER_DEF_MAIL,A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL,A.r.MEMBER_DEF_EXPIRATION,A.r.MEMBER_DEF_GROUP_EXPIRATION,A.r.MEMBER_LIFECYCLE_ALTERABLE],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new R.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new R.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id))}loadPage(q){this.groupService.getRichGroupByIdWithAttributesByNames(q,this.groupAttrNames).subscribe(Te=>{this.group=Te,this.synchEnabled=(0,T.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group])}onSearchByString(q){this.searchString=q,this.selection.clear()}onAddMember(){const q=(0,T.kZ)();q.width="1000px",q.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(U.k,q).afterClosed().subscribe(He=>{He&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const q=(0,T.kZ)();q.width="450px",q.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,q).afterClosed().subscribe(He=>{He&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const q=(0,T.kZ)();q.width="650px",q.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(v.R,q)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const q=this.statuses.value;return q?`${q[0]} ${q.length>1?"(+"+(q.length-1).toString()+" "+(2===q.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(q){return new Promise(Te=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(q,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(He=>{this.blockManualMemberAdding=null!==He.value,Te()},He=>{const dt=He.error;"PrivilegeException"!==dt.name&&this.notificator.showError(dt.name),Te()})})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return G.id="GroupMembersComponent",G.\u0275fac=function(q){return new(q||G)(_.Y36(g.ff),_.Y36(V.uw),_.Y36(d.x4),_.Y36(d.d6),_.Y36(g.H8),_.Y36(d.F5),_.Y36(d.V6),_.Y36(d.fb))},G.\u0275cmp=_.Xpm({type:G,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(q,Te){2&q&&_.ekj("router-component",Te.true)},decls:42,vars:55,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup"]],template:function(q,Te){1&q&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.YNc(3,xe,3,3,"perun-web-apps-alert",1),_.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),_.NdJ("click",function(){return Te.refreshTable()}),_.qZA(),_.TgZ(6,"span",4),_.ALo(7,"groupMembersActionButtonDisabled"),_.ALo(8,"translate"),_.ALo(9,"groupMembersActionButtonDisabledTooltip"),_.YNc(10,Me,4,7,"button",5),_.qZA(),_.TgZ(11,"span",4),_.ALo(12,"groupMembersActionButtonDisabled"),_.ALo(13,"translate"),_.ALo(14,"groupMembersActionButtonDisabledTooltip"),_.YNc(15,Ze,4,6,"button",6),_.qZA(),_.TgZ(16,"span",4),_.ALo(17,"groupMembersActionButtonDisabled"),_.ALo(18,"translate"),_.ALo(19,"groupMembersActionButtonDisabledTooltip"),_.YNc(20,se,4,6,"button",7),_.qZA(),_.TgZ(21,"mat-form-field",8)(22,"mat-label"),_._uU(23),_.ALo(24,"translate"),_.qZA(),_.TgZ(25,"mat-select",9),_.NdJ("closed",function(){return Te.changeVoStatuses()}),_.TgZ(26,"mat-select-trigger"),_._uU(27),_.ALo(28,"memberStatus"),_.qZA(),_.YNc(29,ze,3,4,"mat-option",10),_.qZA()(),_.TgZ(30,"mat-form-field",8)(31,"mat-label"),_._uU(32),_.ALo(33,"translate"),_.qZA(),_.TgZ(34,"mat-select",9),_.NdJ("closed",function(){return Te.changeGroupStatuses()}),_.TgZ(35,"mat-select-trigger"),_._uU(36),_.ALo(37,"memberStatus"),_.qZA(),_.YNc(38,he,3,4,"mat-option",10),_.qZA()(),_.TgZ(39,"perun-web-apps-debounce-filter",11),_.NdJ("filter",function(dt){return Te.onSearchByString(dt)}),_.qZA()(),_.YNc(40,De,1,0,"mat-spinner",12),_.YNc(41,j,1,11,"perun-web-apps-members-dynamic-list",13)),2&q&&(_.xp6(1),_.Oqu(_.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),_.xp6(2),_.Q6J("ngIf",Te.synchEnabled),_.xp6(3),_.s9C("matTooltip",_.lcZ(8,30,_.xi3(9,32,Te.group,"add"))),_.Q6J("matTooltipDisabled",!_.xi3(7,27,Te.group,"add"))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Te.addAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(13,37,_.lcZ(14,39,Te.group))),_.Q6J("matTooltipDisabled",!_.lcZ(12,35,Te.group))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Te.inviteAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(18,43,_.lcZ(19,45,Te.group))),_.Q6J("matTooltipDisabled",!_.lcZ(17,41,Te.group))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Te.removeAuth),_.xp6(3),_.Oqu(_.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),_.xp6(2),_.Q6J("formControl",Te.statuses),_.xp6(2),_.hij(" ",_.lcZ(28,49,Te.displaySelectedStatuses())," "),_.xp6(2),_.Q6J("ngForOf",Te.statusList),_.xp6(3),_.Oqu(_.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),_.xp6(2),_.Q6J("formControl",Te.groupStatuses),_.xp6(2),_.hij(" ",_.lcZ(37,53,Te.displaySelectedGroupStatuses())," "),_.xp6(2),_.Q6J("ngForOf",Te.groupStatusList),_.xp6(1),_.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),_.xp6(1),_.Q6J("ngIf",Te.loading),_.xp6(1),_.Q6J("ngIf",!Te.loading))},dependencies:[Y.sg,Y.O5,X.ey,ne.KE,ne.hX,R.JJ,R.oH,le.lW,te.gD,te.$L,fe.Ou,ue.gM,we.w,E.t,O.P,H.m,W.X$,$.l,de,ye],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),G})()},37240:(Je,pe,h)=>{"use strict";h.d(pe,{q:()=>Z});var e=h(95017),d=h(32105),A=h(10036),w=h(65412),g=h(32080),T=(h(33604),h(94650)),v=h(89383),R=h(36895),U=h(24006),_=h(4859),V=h(51572),Y=h(10266),X=h(90455),ne=h(86257),le=h(62109),te=h(64901);const fe=["list"],ue=["stepper"];function we(ve,oe){1&ve&&T._UZ(0,"mat-spinner",4)}function E(ve,oe){1&ve&&(T._uU(0),T.ALo(1,"translate")),2&ve&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function O(ve,oe){1&ve&&(T._uU(0),T.ALo(1,"translate")),2&ve&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const H=function(){return["select","id","name","facility","tags","description"]};function W(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),T.YNc(4,E,2,3,"ng-template",9),T.TgZ(5,"perun-web-apps-debounce-filter",10),T.NdJ("filter",function(Oe){T.CHM(ge);const Q=T.oxw();return T.KtG(Q.applyFilter(Oe))}),T.ALo(6,"translate"),T.qZA(),T._UZ(7,"perun-web-apps-resources-list",11,12),T.qZA(),T.TgZ(9,"mat-step"),T.YNc(10,O,2,3,"ng-template",9),T.TgZ(11,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.changeSubgroupsMessage())})("ngModelChange",function(Oe){T.CHM(ge);const Q=T.oxw();return T.KtG(Q.autoAssignSubgroups=Oe)}),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"div",14),T._UZ(15,"i",15),T.qZA(),T.TgZ(16,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.changeInactiveMessage())})("ngModelChange",function(Oe){T.CHM(ge);const Q=T.oxw();return T.KtG(Q.asActive=Oe)}),T._uU(17),T.ALo(18,"translate"),T.qZA(),T.TgZ(19,"div",14),T._uU(20),T.qZA(),T.TgZ(21,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.changeAsyncMessage())})("ngModelChange",function(Oe){T.CHM(ge);const Q=T.oxw();return T.KtG(Q.async=Oe)}),T._uU(22),T.ALo(23,"translate"),T.qZA(),T.TgZ(24,"div",14),T._uU(25),T.qZA()()()()}if(2&ve){const ge=T.MAs(8),ae=T.oxw();T.xp6(1),T.Q6J("linear",!0),T.xp6(2),T.Q6J("completed",0!==ae.selection.selected.length&&void 0!==ge&&ge.addAuth),T.xp6(2),T.s9C("placeholder",T.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),T.xp6(2),T.Q6J("filterValue",ae.filterValue)("groupToResource",ae.data.group)("disableRouting",!0)("resources",ae.resources)("selection",ae.selection)("displayedColumns",T.DdM(27,H))("tableId",ae.tableId),T.xp6(4),T.Q6J("ngModel",ae.autoAssignSubgroups),T.xp6(1),T.hij(" ",T.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),T.xp6(3),T.Q6J("innerHTML",ae.autoAssignHint,T.oJD),T.xp6(1),T.Q6J("ngModel",ae.asActive),T.xp6(1),T.hij(" ",T.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),T.xp6(3),T.hij(" ",ae.asActiveHint," "),T.xp6(1),T.Q6J("ngModel",ae.async),T.xp6(1),T.hij(" ",T.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),T.xp6(3),T.hij(" ",ae.asyncHint," ")}}function $(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw(2);return T.KtG(Oe.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&ve&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function de(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw(2);return T.KtG(Oe.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&ve){const ge=T.oxw(2);T.ekj("ml-2",void 0!==ge.stepper&&0!==ge.stepper.selectedIndex)("ml-auto",!(void 0!==ge.stepper&&0!==ge.stepper.selectedIndex)),T.Q6J("disabled",0===ge.selection.selected.length||void 0!==ge.list&&!ge.list.addAuth),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function ye(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw(2);return T.KtG(Oe.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&ve){const ge=T.oxw(2);T.Q6J("disabled",0===ge.selection.selected.length||ge.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function xe(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"div",16)(1,"button",17),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,$,3,3,"button",18),T.YNc(5,de,3,8,"button",19),T.TgZ(6,"span",20),T.ALo(7,"translate"),T.YNc(8,ye,3,4,"button",21),T.qZA()()}if(2&ve){const ge=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==ge.stepper&&0!==ge.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==ge.stepper&&ge.stepper.selectedIndex!==ge.stepper._steps.length-1),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),T.Q6J("matTooltipDisabled",void 0===ge.list||ge.list.addAuth),T.xp6(2),T.Q6J("ngIf",void 0!==ge.stepper&&ge.stepper.selectedIndex===ge.stepper._steps.length-1)}}let Me=(()=>{class ve{constructor(ge,ae,Oe,Q,me,N,L){this.dialogRef=ge,this.data=ae,this.notificator=Oe,this.translate=Q,this.resourcesManager=me,this.guiAuthResolver=N,this.cd=L,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=A.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(ge=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(ae=>{for(const Oe of ge)-1===ae.findIndex(Q=>Q.id===Oe.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Oe])&&this.resources.push(Oe);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ge){this.filterValue=ge}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ge=this.selection.selected.map(ae=>ae.id);this.resourcesManager.assignGroupToResources(this.data.group.id,ge,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(ae=>{this.notificator.showSuccess(ae),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return ve.\u0275fac=function(ge){return new(ge||ve)(T.Y36(w.so),T.Y36(w.WI),T.Y36(g.V6),T.Y36(v.sK),T.Y36(d.xk),T.Y36(g.x4),T.Y36(T.sBO))},ve.\u0275cmp=T.Xpm({type:ve,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(ge,ae){if(1&ge&&(T.Gf(fe,5),T.Gf(ue,5)),2&ge){let Oe;T.iGM(Oe=T.CRH())&&(ae.list=Oe.first),T.iGM(Oe=T.CRH())&&(ae.stepper=Oe.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ge,ae){1&ge&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,we,1,0,"mat-spinner",1),T.YNc(5,W,26,28,"div",2),T.YNc(6,xe,9,10,"div",3),T.qZA()),2&ge&&(T.Tol(ae.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",ae.loading),T.xp6(1),T.Q6J("ngIf",!ae.loading),T.xp6(1),T.Q6J("ngIf",!ae.loading&&void 0!==ae.stepper))},dependencies:[R.O5,U.JJ,U.On,_.lW,w.uh,w.xY,w.H8,V.Ou,Y.gM,X.Rr,ne.C0,ne.VY,ne.Vq,le.C,te.P,v.X$]}),ve})();var Ze=h(30671);function se(ve,oe){1&ve&&T._UZ(0,"mat-spinner",4)}function ze(ve,oe){1&ve&&T._UZ(0,"th",13)}function he(ve,oe){if(1&ve&&(T.TgZ(0,"td",14),T._uU(1),T.qZA()),2&ve){const ge=oe.$implicit;T.xp6(1),T.Oqu(ge.name)}}function De(ve,oe){1&ve&&T._UZ(0,"tr",15)}function j(ve,oe){1&ve&&T._UZ(0,"tr",16)}function P(ve,oe){if(1&ve&&(T.TgZ(0,"div",5)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",6),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",7),T.ynx(8,8),T.YNc(9,ze,1,0,"th",9),T.YNc(10,he,2,1,"td",10),T.BQk(),T.YNc(11,De,1,0,"tr",11),T.YNc(12,j,1,0,"tr",12),T.qZA()()),2&ve){const ge=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),T.xp6(2),T.Q6J("dataSource",ge.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",ge.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",ge.displayedColumns)}}function G(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"div",17)(1,"button",18),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",19),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.onSubmit())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&ve){const ge=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("disabled",ge.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let ce=(()=>{class ve{constructor(ge,ae,Oe,Q,me){this.dialogRef=ge,this.data=ae,this.notificator=Oe,this.translate=Q,this.resourcesManager=me,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Ze.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const ge=this.data.resources.map(ae=>ae.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,ge).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(ae=>{this.loading=!1,this.notificator.showSuccess(ae),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return ve.\u0275fac=function(ge){return new(ge||ve)(T.Y36(w.so),T.Y36(w.WI),T.Y36(g.V6),T.Y36(v.sK),T.Y36(d.xk))},ve.\u0275cmp=T.Xpm({type:ve,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(ge,ae){1&ge&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,se,1,0,"mat-spinner",1),T.YNc(5,P,13,9,"div",2),T.YNc(6,G,7,7,"div",3),T.qZA()),2&ge&&(T.Tol(ae.data.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",ae.loading),T.xp6(1),T.Q6J("ngIf",!ae.loading),T.xp6(1),T.Q6J("ngIf",!ae.loading))},dependencies:[R.O5,_.lW,Ze.BZ,Ze.fO,Ze.as,Ze.w1,Ze.Dz,Ze.nj,Ze.ge,Ze.ev,Ze.XQ,Ze.Gk,w.uh,w.xY,w.H8,V.Ou,v.X$]}),ve})();var q=h(9244),Te=h(96214),He=h(7434);const dt=["list"];function et(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.addResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&ve&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function _t(ve,oe){1&ve&&T._UZ(0,"mat-spinner",9)}const Qe=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function st(ve,oe){if(1&ve){const ge=T.EpF();T.TgZ(0,"perun-web-apps-resources-list",10,11),T.NdJ("refreshTable",function(){T.CHM(ge);const Oe=T.oxw();return T.KtG(Oe.refreshTable())}),T.qZA()}if(2&ve){const ge=T.oxw();T.Q6J("disableRouting",!ge.routingAuth)("filterValue",ge.filterValue)("resources",ge.resources)("routingVo",!0)("displayedColumns",T.DdM(10,Qe))("selection",ge.selected)("groupId",ge.group.id)("groupToResource",ge.group)("resourcesToDisableCheckbox",ge.resourcesToDisable)("tableId",ge.tableId)}}let Z=(()=>{class ve{constructor(ge,ae,Oe,Q,me){this.resourcesManager=ge,this.groupService=ae,this.dialog=Oe,this.guiAuthResolver=Q,this.entityStorageService=me,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=A.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(ge=>{this.resources=ge.map(ae=>{const Oe=ae.enrichedResource.resource;return Oe.facility=ae.facility,Oe.status=ae.status,Oe.resourceTags=ae.resourceTags,Oe.failureCause=ae.failureCause,Oe.sourceGroupId=ae.sourceGroupId,Oe}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(ae=>null!==ae.sourceGroupId).map(ae=>ae.id)),this.setAuthorization(),this.loading=!1})}applyFilter(ge){this.filterValue=ge}addResource(){const ge=(0,q.kZ)();ge.width="1000px",ge.data={theme:"group-theme",group:this.group},this.dialog.open(Me,ge).afterClosed().subscribe(Oe=>{Oe&&this.refreshTable()})}removeResource(){const ge=(0,q.kZ)();ge.width="450px",ge.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(ce,ge).afterClosed().subscribe(Oe=>{Oe&&(this.selected.clear(),this.refreshTable())})}}return ve.id="GroupResourcesComponent",ve.\u0275fac=function(ge){return new(ge||ve)(T.Y36(d.xk),T.Y36(d.ff),T.Y36(w.uw),T.Y36(g.x4),T.Y36(g.fb))},ve.\u0275cmp=T.Xpm({type:ve,selectors:[["app-group-resources"]],viewQuery:function(ge,ae){if(1&ge&&T.Gf(dt,5),2&ge){let Oe;T.iGM(Oe=T.CRH())&&(ae.list=Oe.first)}},hostVars:2,hostBindings:function(ge,ae){2&ge&&T.ekj("router-component",ae.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(ge,ae){1&ge&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return ae.refreshTable()}),T.qZA(),T.YNc(5,et,3,3,"button",2),T.TgZ(6,"span",3),T.ALo(7,"translate"),T.TgZ(8,"button",4),T.NdJ("click",function(){return ae.removeResource()}),T._uU(9),T.ALo(10,"translate"),T.qZA()(),T.TgZ(11,"perun-web-apps-immediate-filter",5),T.NdJ("filter",function(Q){return ae.applyFilter(Q)}),T.qZA(),T.YNc(12,_t,1,0,"mat-spinner",6),T.YNc(13,st,2,11,"perun-web-apps-resources-list",7),T.qZA()),2&ge&&(T.xp6(2),T.Oqu(T.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),T.xp6(3),T.Q6J("ngIf",ae.addAuth),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),T.Q6J("matTooltipDisabled",0===ae.selected.selected.length||void 0!==ae.list&&ae.list.removeAuth),T.xp6(2),T.Q6J("disabled",0===ae.selected.selected.length||void 0!==ae.list&&!ae.list.removeAuth),T.xp6(1),T.hij(" ",T.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",ae.loading),T.xp6(1),T.Q6J("ngIf",ae.resources&&!ae.loading))},dependencies:[R.O5,_.lW,V.Ou,Y.gM,Te.t,He.L,le.C,v.X$]}),ve})()},61639:(Je,pe,h)=>{"use strict";h.d(pe,{C:()=>g});var e=h(32105),d=h(32080),A=h(94650),w=h(34775);let g=(()=>{class C{constructor(v,R){this.authzResolverService=v,this.entityStorageService=R,this.roleNames=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"]}ngOnInit(){this.outerLoading=!0,this.groupId=this.entityStorageService.getEntity().id,this.authzResolverService.getGroupRoles(this.groupId).subscribe(v=>{this.roleNames=Object.keys(v).map(R=>R.toUpperCase()),this.prepareRoles(v),this.outerLoading=!1})}prepareRoles(v){this.roleNames.forEach(R=>{const U=new Map;Object.keys(v[R]).forEach(V=>{U.set(V,v[R][V])}),this.roles.set(R,U)}),this.roleNames=this.roleNames.filter(R=>!this.roleFilter.includes(R))}}return C.id="GroupRolesComponent",C.\u0275fac=function(v){return new(v||C)(A.Y36(e.Ct),A.Y36(d.fb))},C.\u0275cmp=A.Xpm({type:C,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(v,R){2&v&&A.ekj("router-component",R.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","entityType","showDescription"]],template:function(v,R){1&v&&A._UZ(0,"app-perun-web-apps-roles-page",0),2&v&&A.Q6J("outerLoading",R.outerLoading)("roles",R.roles)("roleNames",R.roleNames)("entityId",R.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[w._]}),C})()},14336:(Je,pe,h)=>{"use strict";h.d(pe,{Z:()=>ce});var e=h(32080),d=h(51076),A=h(83491),w=h(95502),g=h(1186),C=h(32105),T=h(9244),v=h(94650),R=h(65412),U=h(89383),_=h(94364),V=h(36895),Y=h(24006),X=h(97392),ne=h(4859),le=h(51572),te=h(10266),fe=h(90455),ue=h(44850),we=h(98380),E=h(96214),O=h(157);const H=["autoRegToggle"];function W(q,Te){1&q&&v._UZ(0,"mat-spinner",3)}function $(q,Te){if(1&q&&(v.TgZ(0,"span"),v._uU(1," , "),v.TgZ(2,"mat-icon",22),v._uU(3,"nat"),v.qZA(),v._uU(4),v.ALo(5,"translate"),v.ALo(6,"translate"),v.qZA()),2&q){const He=v.oxw(3);v.xp6(4),v.hij(" ",He.applicationForm.automaticApprovalEmbedded?v.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function de(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"div")(1,"mat-slide-toggle",23,24),v.NdJ("change",function(){v.CHM(He);const et=v.oxw(3);return v.KtG(et.updateAutoRegistration())}),v._uU(3),v.ALo(4,"translate"),v.qZA()()}if(2&q){const He=v.oxw(3);v.xp6(1),v.Q6J("disabled",!He.changeAutoRegistration)("ngModel",He.autoRegistrationEnabled),v.xp6(2),v.hij(" ",v.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function ye(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"button",25),v.NdJ("click",function(){v.CHM(He);const et=v.oxw(3);return v.KtG(et.settings())}),v.TgZ(1,"i",12),v._uU(2,"edit"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&q&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function xe(q,Te){if(1&q&&(v.TgZ(0,"div",15)(1,"div",16)(2,"div",17),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"div")(6,"span",17),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._uU(9,": "),v.TgZ(10,"mat-icon",18),v._uU(11,"arrow_right_alt"),v.qZA(),v._uU(12),v.ALo(13,"translate"),v.ALo(14,"translate"),v.TgZ(15,"mat-icon",19),v._uU(16,"restore"),v.qZA(),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"translate"),v.YNc(20,$,7,5,"span",2),v.qZA(),v.YNc(21,de,5,5,"div",2),v.qZA(),v.TgZ(22,"div",20),v.YNc(23,ye,5,3,"button",21),v.qZA()()),2&q){const He=v.oxw(2);v.xp6(1),v.Q6J("ngClass",He.autoRegistrationEnabled?"w-75":"w-50"),v.xp6(2),v.AsE(" ",v.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",He.applicationForm.moduleClassName," "),v.xp6(4),v.Oqu(v.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),v.xp6(5),v.hij(" ",He.applicationForm.automaticApproval?v.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),v.xp6(5),v.hij(" ",He.applicationForm.automaticApprovalExtension?v.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),v.xp6(3),v.Q6J("ngIf",He.autoRegistrationEnabled),v.xp6(1),v.Q6J("ngIf",He.voHasEmbeddedGroupApplication),v.xp6(2),v.Q6J("ngIf",He.editAuth)}}function Me(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"button",26),v.NdJ("click",function(){v.CHM(He);const et=v.oxw(2);return v.KtG(et.add())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&q&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Ze(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"button",27),v.NdJ("click",function(){v.CHM(He);const et=v.oxw(2);return v.KtG(et.save())}),v.TgZ(1,"i",12),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&q){const He=v.oxw(2);v.Q6J("disabled",!He.itemsChanged),v.xp6(3),v.hij(" ",v.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function se(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"button",28),v.NdJ("click",function(){v.CHM(He);const et=v.oxw(2);return v.KtG(et.copy())}),v.TgZ(1,"i",12),v._uU(2,"file_copy"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&q&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function ze(q,Te){1&q&&(v.TgZ(0,"perun-web-apps-alert",29),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&q&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const he=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},De=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function j(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"div"),v.YNc(1,xe,24,21,"div",4),v._UZ(2,"mat-divider",5),v.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),v.NdJ("refresh",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.updateFormItems())}),v.qZA(),v.YNc(5,Me,3,3,"button",8),v.YNc(6,Ze,5,4,"button",9),v.YNc(7,se,5,3,"button",10),v.TgZ(8,"button",11),v.NdJ("click",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.preview())}),v.TgZ(9,"i",12),v._uU(10,"search"),v.qZA(),v._uU(11),v.ALo(12,"translate"),v.qZA()(),v.YNc(13,ze,3,3,"perun-web-apps-alert",13),v.TgZ(14,"app-application-form-list",14),v.NdJ("applicationFormItemsChange",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.changeItems())}),v.qZA()()}if(2&q){const He=v.oxw();v.xp6(1),v.Q6J("ngIf",!He.loading),v.xp6(4),v.Q6J("ngIf",He.editAuth),v.xp6(1),v.Q6J("ngIf",He.editAuth),v.xp6(1),v.Q6J("ngIf",He.editAuth),v.xp6(4),v.hij(" ",v.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),v.xp6(2),v.Q6J("ngIf",He.editAuth),v.xp6(1),v.Q6J("applicationForm",He.applicationForm)("applicationFormItems",He.applicationFormItems)("loading",He.loading)("displayedColumns",He.editAuth?v.DdM(14,he):v.DdM(15,De))("refreshApplicationForm",He.refreshApplicationForm)("theme","group-theme")}}function P(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"button",32),v.NdJ("click",function(){v.CHM(He);const et=v.oxw(2);return v.KtG(et.createEmptyApplicationForm())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&q&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function G(q,Te){if(1&q&&(v.TgZ(0,"div")(1,"perun-web-apps-alert",30),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,P,3,3,"button",31),v.qZA()),2&q){const He=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),v.xp6(2),v.Q6J("ngIf",He.createEmptyForm)}}let ce=(()=>{class q{constructor(He,dt,et,_t,Qe,st,Z,ve,oe){this.registrarManager=He,this.dialog=dt,this.notificator=et,this.translate=_t,this.apiRequest=Qe,this.router=st,this.guiAuthResolver=Z,this.attributesManager=ve,this.entityStorageService=oe,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(He=>{this.applicationForm=He,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(dt=>{this.applicationFormItems=dt,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(et=>{this.voHasEmbeddedGroupApplication=null!==et.value,this.autoRegistrationEnabled=!!et.value,this.loading=!1})},()=>this.loading=!1)},He=>{const dt=He.error;"FormNotExistsException"===dt.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(dt)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let He=(0,T.kZ)();He.width="500px",He.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(d.J,He).afterClosed().subscribe(et=>{et&&(this.applicationFormItems=Object.assign([],et[0]),He=(0,T.kZ)(),He.width="600px",He.height="600px",He.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:et[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(A._,He),this.itemsChanged=!0)})}copy(){const He=(0,T.kZ)();He.width="500px",He.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,He).afterClosed().subscribe(et=>{et&&this.updateFormItems()})}settings(){const He=(0,T.kZ)();He.width="400px",He.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,He).afterClosed().subscribe(et=>{et&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(_t=>{this.notificator.showSuccess(_t)}),this.applicationForm=et)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(He=>{this.applicationFormItems=He,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let He=0;for(const dt of this.applicationFormItems)dt.ordnum=He,dt.forDelete||He++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(dt=>{this.notificator.showSuccess(dt)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(He=>{this.notificator.showSuccess(He)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(He=>{this.notificator.showSuccess(He)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return q.id="GroupSettingsApplicationFormComponent",q.\u0275fac=function(He){return new(He||q)(v.Y36(C.tk),v.Y36(R.uw),v.Y36(e.V6),v.Y36(U.sK),v.Y36(e.F5),v.Y36(_.F0),v.Y36(e.x4),v.Y36(C.H8),v.Y36(e.fb))},q.\u0275cmp=v.Xpm({type:q,selectors:[["app-group-settings-application-form"]],viewQuery:function(He,dt){if(1&He&&v.Gf(H,5),2&He){let et;v.iGM(et=v.CRH())&&(dt.autoRegToggle=et.first)}},hostVars:2,hostBindings:function(He,dt){2&He&&v.ekj("router-component",dt.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(He,dt){1&He&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,W,1,0,"mat-spinner",1),v.YNc(4,j,15,16,"div",2),v.YNc(5,G,5,4,"div",2)),2&He&&(v.xp6(1),v.hij(" ",v.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),v.xp6(2),v.Q6J("ngIf",dt.loading),v.xp6(1),v.Q6J("ngIf",!dt.noApplicationForm),v.xp6(1),v.Q6J("ngIf",!dt.loading&&dt.noApplicationForm))},dependencies:[V.mk,V.O5,Y.JJ,Y.On,X.Hw,ne.lW,le.Ou,te.gM,fe.Rr,ue.d,we.w,E.t,O.b,U.X$]}),q})()},15592:(Je,pe,h)=>{"use strict";h.d(pe,{u:()=>j});var e=h(81889),d=h(95017),A=h(41656),w=h(9244),g=h(32105),C=h(64080),T=h(10036),v=h(87842),R=h(32080),_=(h(33604),h(94650)),V=h(65412),Y=h(36895),X=h(24006),ne=h(4859),le=h(51572),te=h(10266),fe=h(90455),ue=h(24179),we=h(96214),E=h(58956),O=h(64901),H=h(89383);const W=["tree"],$=["list"],de=["toggle"];function ye(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"button",10),_.NdJ("click",function(){_.CHM(ce);const Te=_.oxw();return _.KtG(Te.onCreateGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&P&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function xe(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(ce);const Te=_.oxw();return _.KtG(Te.deleteGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&P){const ce=_.oxw();_.Q6J("disabled",0===ce.selected.selected.length||void 0!==ce.tree&&!ce.tree.removeAuth||void 0!==ce.list&&!ce.list.removeAuth),_.xp6(1),_.hij(" ",_.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Me(P,G){1&P&&_._UZ(0,"mat-spinner",12)}function Ze(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"perun-web-apps-groups-tree",16,17),_.NdJ("moveGroup",function(Te){_.CHM(ce);const He=_.oxw(2);return _.KtG(He.onMoveGroup(Te))})("refreshTable",function(){_.CHM(ce);const Te=_.oxw(2);return _.KtG(Te.refreshTable())}),_.qZA()}if(2&P){const ce=_.oxw(2);_.Q6J("disableRouting",!ce.routeAuth)("expandAll",ce.filtering)("groups",ce.groups)("hideCheckbox",!ce.deleteAuth)("filterValue",ce.filterValue)("selection",ce.selected)}}const se=function(){return["select","id","name","description","menu"]},ze=function(){return["id","name","description","menu"]};function he(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"perun-web-apps-groups-list",18,19),_.NdJ("moveGroup",function(Te){_.CHM(ce);const He=_.oxw(2);return _.KtG(He.onMoveGroup(Te))})("refreshTable",function(){_.CHM(ce);const Te=_.oxw(2);return _.KtG(Te.refreshTable())}),_.qZA()}if(2&P){const ce=_.oxw(2);_.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!ce.routeAuth)("displayedColumns",ce.deleteAuth?_.DdM(8,se):_.DdM(9,ze))("groups",ce.groups)("selection",ce.selected)("filter",ce.filterValue)("tableId",ce.tableId)}}function De(P,G){if(1&P&&(_.TgZ(0,"div",13),_.YNc(1,Ze,2,6,"perun-web-apps-groups-tree",14),_.YNc(2,he,2,10,"perun-web-apps-groups-list",15),_.qZA()),2&P){const ce=_.oxw();_.xp6(1),_.Q6J("ngIf",!ce.showGroupList),_.xp6(1),_.Q6J("ngIf",ce.showGroupList)}}let j=(()=>{class P{constructor(ce,q,Te,He){this.dialog=ce,this.groupService=q,this.guiAuthResolver=Te,this.entityStorageService=He,this.groups=[],this.selected=new d.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=T.bf,this.filterValue=""}onCreateGroup(){const ce=(0,w.kZ)();ce.width="450px",ce.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,ce).afterClosed().subscribe(Te=>{Te&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const ce=(0,w.kZ)();ce.width="450px",ce.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(A.P,ce).afterClosed().subscribe(Te=>{Te&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[C.r.GROUP_DEF_MAIL_FOOTER,C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(ce=>{this.groups=ce,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(ce){this.filterValue=ce,this.filtering=""!==ce}onMoveGroup(ce){const q=(0,w.kZ)();q.width="550px",q.data={group:ce,theme:"group-theme"},this.dialog.open(v.c,q).afterClosed().subscribe(He=>{He&&this.refreshTable()})}}return P.id="GroupSubgroupsComponent",P.\u0275fac=function(ce){return new(ce||P)(_.Y36(V.uw),_.Y36(g.ff),_.Y36(R.x4),_.Y36(R.fb))},P.\u0275cmp=_.Xpm({type:P,selectors:[["app-group-subgroups"]],viewQuery:function(ce,q){if(1&ce&&(_.Gf(W,5),_.Gf($,5),_.Gf(de,7)),2&ce){let Te;_.iGM(Te=_.CRH())&&(q.tree=Te.first),_.iGM(Te=_.CRH())&&(q.list=Te.first),_.iGM(Te=_.CRH())&&(q.toggle=Te.first)}},hostVars:2,hostBindings:function(ce,q){2&ce&&_.ekj("router-component",q.true)},decls:19,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],["tree",""],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable"],["list",""]],template:function(ce,q){if(1&ce&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return q.refreshTable()}),_.qZA(),_.YNc(5,ye,3,3,"button",2),_.TgZ(6,"span",3),_.ALo(7,"translate"),_.YNc(8,xe,3,4,"button",4),_.qZA(),_.TgZ(9,"perun-web-apps-debounce-filter",5),_.NdJ("filter",function(He){return q.applyFilter(He)}),_.qZA(),_.TgZ(10,"mat-slide-toggle",6,7),_.NdJ("change",function(){return q.selected.clear()})("ngModelChange",function(He){return q.showGroupList=He}),_._uU(12),_.ALo(13,"translate"),_.qZA(),_.TgZ(14,"label"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.YNc(17,Me,1,0,"mat-spinner",8),_.YNc(18,De,3,2,"div",9),_.qZA()),2&ce){const Te=_.MAs(11);_.xp6(2),_.Oqu(_.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),_.xp6(3),_.Q6J("ngIf",q.createAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),_.Q6J("matTooltipDisabled",void 0===q.tree&&void 0===q.list||void 0!==q.tree&&q.tree.removeAuth||void 0!==q.list&&q.list.removeAuth),_.xp6(2),_.Q6J("ngIf",q.deleteAuth),_.xp6(1),_.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),_.xp6(1),_.Q6J("ngModel",q.showGroupList),_.xp6(2),_.Oqu(_.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),_.xp6(2),_.uIk("for",Te.inputId),_.xp6(1),_.Oqu(_.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),_.xp6(2),_.Q6J("ngIf",q.loading),_.xp6(1),_.Q6J("ngIf",!q.loading)}},dependencies:[Y.O5,X.JJ,X.On,ne.lW,le.Ou,te.gM,fe.Rr,ue.W,we.t,E.I,O.P,H.X$]}),P})()},85243:(Je,pe,h)=>{"use strict";h.d(pe,{j:()=>ce});var e=h(32105),d=h(10036),A=h(95017),w=h(9244),g=h(65412),C=h(32080),T=h(64080),v=h(94650),R=h(89383),U=h(36895),_=h(4859),V=h(51572),Y=h(24179),X=h(7434);function ne(q,Te){1&q&&v._UZ(0,"mat-spinner",6)}function le(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"perun-web-apps-immediate-filter",7),v.NdJ("filter",function(et){v.CHM(He);const _t=v.oxw();return v.KtG(_t.applyFilter(et))}),v.qZA()}2&q&&v.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const te=function(){return["select","id","name","description"]};function fe(q,Te){if(1&q&&v._UZ(0,"perun-web-apps-groups-list",8),2&q){const He=v.oxw();v.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",v.DdM(8,te))("filter",He.filterValue)("groupsToDisableCheckbox",He.membersGroups)("disableRouting",!0)("groups",He.groups)("selection",He.selection)}}function ue(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"div",9)(1,"button",10),v.NdJ("click",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",11),v.NdJ("click",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.onAdd())}),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&q){const He=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),v.xp6(2),v.Q6J("disabled",0===He.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let we=(()=>{class q{constructor(He,dt,et,_t,Qe,st,Z){this.dialogRef=He,this.data=dt,this.groupManager=et,this.memberManager=_t,this.notificator=Qe,this.translate=st,this.authResolver=Z,this.loading=!1,this.groups=[],this.selection=new A.Ov(!0,[]),this.attrNames=[T.r.GROUP_SYNC_ENABLED,T.r.GROUP_LAST_SYNC_STATE,T.r.GROUP_LAST_SYNC_TIMESTAMP,T.r.GROUP_STRUCTURE_SYNC_ENABLED,T.r.GROUP_LAST_STRUCTURE_SYNC_STATE,T.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(He=>{this.member=He,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(dt=>{this.groups=dt.filter(et=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[et])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const He=this.selection.selected.map(dt=>dt.id);this.loading=!0,this.groupManager.addMember(He,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(He){this.filterValue=He}}return q.\u0275fac=function(He){return new(He||q)(v.Y36(g.so),v.Y36(g.WI),v.Y36(e.ff),v.Y36(e.uq),v.Y36(C.V6),v.Y36(R.sK),v.Y36(C.x4))},q.\u0275cmp=v.Xpm({type:q,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(He,dt){1&He&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ne,1,0,"mat-spinner",1),v.TgZ(5,"div",2),v.YNc(6,le,1,1,"perun-web-apps-immediate-filter",3),v.YNc(7,fe,1,9,"perun-web-apps-groups-list",4),v.qZA(),v.YNc(8,ue,7,7,"div",5),v.qZA()),2&He&&(v.Tol(dt.theme),v.xp6(2),v.Oqu(v.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),v.xp6(2),v.Q6J("ngIf",dt.loading),v.xp6(2),v.Q6J("ngIf",!dt.loading),v.xp6(1),v.Q6J("ngIf",!dt.loading),v.xp6(1),v.Q6J("ngIf",!dt.loading))},dependencies:[U.O5,_.lW,g.uh,g.xY,g.H8,V.Ou,Y.W,X.L,R.X$]}),q})();var E=h(30671);function O(q,Te){1&q&&v._UZ(0,"mat-spinner",6)}function H(q,Te){1&q&&v._UZ(0,"th",15)}function W(q,Te){if(1&q&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&q){const He=Te.$implicit;v.xp6(1),v.Oqu(He.name)}}function $(q,Te){1&q&&v._UZ(0,"tr",17)}function de(q,Te){1&q&&v._UZ(0,"tr",18)}function ye(q,Te){if(1&q&&(v.TgZ(0,"div",7)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",8),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"table",9),v.ynx(8,10),v.YNc(9,H,1,0,"th",11),v.YNc(10,W,2,1,"td",12),v.BQk(),v.YNc(11,$,1,0,"tr",13),v.YNc(12,de,1,0,"tr",14),v.qZA()()),2&q){const He=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),v.xp6(3),v.hij(" ",v.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),v.xp6(2),v.Q6J("dataSource",He.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",He.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",He.displayedColumns)}}let xe=(()=>{class q{constructor(He,dt,et,_t,Qe){this.dialogRef=He,this.data=dt,this.groupManager=et,this.notificator=_t,this.translate=Qe,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new E.by(this.data.groups)}onRemove(){this.loading=!0;const He=this.dataSource.data.map(dt=>dt.id);this.groupManager.removeMember(He,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return q.\u0275fac=function(He){return new(He||q)(v.Y36(g.so),v.Y36(g.WI),v.Y36(e.ff),v.Y36(C.V6),v.Y36(R.sK))},q.\u0275cmp=v.Xpm({type:q,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(He,dt){1&He&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,O,1,0,"mat-spinner",1),v.YNc(5,ye,13,9,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return dt.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return dt.onRemove()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&He&&(v.Tol(dt.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),v.xp6(2),v.Q6J("ngIf",dt.loading),v.xp6(1),v.Q6J("ngIf",!dt.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),v.xp6(2),v.Q6J("disabled",dt.loading),v.xp6(1),v.hij(" ",v.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[U.O5,_.lW,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,g.uh,g.xY,g.H8,V.Ou,R.X$]}),q})();h(33604);var Ze=h(94364),se=h(10266),ze=h(96214);const he=["list"];function De(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"button",8),v.NdJ("click",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.addGroup())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&q&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function j(q,Te){1&q&&v._UZ(0,"mat-spinner",9)}const P=function(){return["select","id","name","description","expiration","groupStatus"]};function G(q,Te){if(1&q){const He=v.EpF();v.TgZ(0,"perun-web-apps-groups-list",10,11),v.NdJ("refreshTable",function(){v.CHM(He);const et=v.oxw();return v.KtG(et.refreshTable())}),v.qZA()}if(2&q){const He=v.oxw();v.Q6J("displayedColumns",v.DdM(9,P))("authType","member-groups")("filter",He.filterValue)("memberId",He.memberId)("disableRouting",!He.routeAuth)("groups",He.groups)("memberGroupStatus",He.member.groupStatus)("selection",He.selection)("tableId",He.tableId)}}let ce=(()=>{class q{constructor(He,dt,et,_t,Qe){this.groupsService=He,this.route=dt,this.dialog=et,this.authResolver=_t,this.memberService=Qe,this.filterValue="",this.tableId=d.W1,this.selection=new A.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(He=>{this.memberId=Number(He.memberId),this.memberService.getMemberById(this.memberId).subscribe(dt=>{this.member=dt,this.groupsService.getAllGroups(this.member.voId).subscribe(et=>{this.allGroups=et,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[T.r.MEMBER_DEF_GROUP_EXPIRATION,T.r.MEMBER_GROUP_STATUS]).subscribe(He=>{this.selection.clear(),this.groups=He,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const He={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((dt,et)=>dt||this.authResolver.isAuthorized("addMember_Group_Member_policy",[et]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[He,this.groups[0]]))}addGroup(){const He=(0,w.kZ)();He.width="850px",He.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(et=>et.id)),theme:"member-theme"},this.dialog.open(we,He).afterClosed().subscribe(et=>{et&&this.refreshTable()})}removeGroup(){const He=(0,w.kZ)();He.width="650px",He.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(xe,He).afterClosed().subscribe(et=>{et&&this.refreshTable()})}applyFilter(He){this.filterValue=He}}return q.id="MemberGroupsComponent",q.\u0275fac=function(He){return new(He||q)(v.Y36(e.ff),v.Y36(Ze.gz),v.Y36(g.uw),v.Y36(C.x4),v.Y36(e.uq))},q.\u0275cmp=v.Xpm({type:q,selectors:[["app-member-groups"]],viewQuery:function(He,dt){if(1&He&&v.Gf(he,5),2&He){let et;v.iGM(et=v.CRH())&&(dt.list=et.first)}},hostVars:2,hostBindings:function(He,dt){2&He&&v.ekj("router-component",dt.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable"],["list",""]],template:function(He,dt){1&He&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"perun-web-apps-refresh-button",1),v.NdJ("refresh",function(){return dt.refreshTable()}),v.qZA(),v.YNc(4,De,3,3,"button",2),v.TgZ(5,"span",3),v.ALo(6,"translate"),v.TgZ(7,"button",4),v.NdJ("click",function(){return dt.removeGroup()}),v._uU(8),v.ALo(9,"translate"),v.qZA()(),v.TgZ(10,"perun-web-apps-immediate-filter",5),v.NdJ("filter",function(_t){return dt.applyFilter(_t)}),v.qZA(),v.YNc(11,j,1,0,"mat-spinner",6),v.YNc(12,G,2,10,"perun-web-apps-groups-list",7)),2&He&&(v.xp6(1),v.Oqu(v.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),v.xp6(3),v.Q6J("ngIf",dt.addAuth),v.xp6(1),v.s9C("matTooltip",v.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),v.Q6J("matTooltipDisabled",void 0===dt.list||void 0!==dt.list&&dt.list.removeAuth),v.xp6(2),v.Q6J("disabled",0===dt.selection.selected.length||void 0!==dt.list&&!dt.list.removeAuth),v.xp6(1),v.hij(" ",v.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),v.xp6(2),v.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),v.xp6(1),v.Q6J("ngIf",dt.loading),v.xp6(1),v.Q6J("ngIf",!dt.loading))},dependencies:[U.O5,_.lW,V.Ou,se.gM,Y.W,ze.t,X.L,R.X$]}),q})()},94856:(Je,pe,h)=>{"use strict";h.d(pe,{c:()=>ue});var e=h(32105),d=h(10036),A=h(24006),w=h(36895),g=h(32080),C=h(94650),T=h(3238),v=h(59549),R=h(4859),U=h(56709),_=h(84385),V=h(96214),Y=h(39798),X=h(64901),ne=h(9146),le=h(89383);function te(we,E){if(1&we){const O=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(O);const W=C.oxw();return C.KtG(W.showDetails(!0))}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&we&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function fe(we,E){if(1&we){const O=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(O);const W=C.oxw();return C.KtG(W.showDetails(!1))}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&we&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let ue=(()=>{class we{constructor(O,H){this.registrarManager=O,this.entityStorageService=H,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=d.Jf,this.tableId=d.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new A.p4((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new A.p4((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const O=new Date;return O.setDate(O.getDate()-365),O}showGroupApplications(O){this.showGroupApps=O.checked,this.currentColumns=this.refreshColumns()}showDetails(O){this.showAllDetails=O,this.currentColumns=this.refreshColumns()}applyFilter(O){this.filterValue=O}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(O=>"groupName"!==O&&"groupId"!==O):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(O=>"groupName"!==O)}}return we.id="VoApplicationsComponent",we.\u0275fac=function(O){return new(O||we)(C.Y36(e.tk),C.Y36(g.fb))},we.\u0275cmp=C.Xpm({type:we,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(O,H){2&O&&C.ekj("router-component",H.true)},decls:38,vars:43,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(O,H){1&O&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return H.refresh=!H.refresh}),C.qZA(),C.YNc(5,te,3,3,"button",2),C.YNc(6,fe,3,3,"button",2),C.TgZ(7,"mat-form-field",3)(8,"mat-label"),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"mat-select",4),C.NdJ("selectionChange",function(){return H.select()})("valueChange",function($){return H.state=$}),C.TgZ(12,"mat-option",5),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"mat-option",6),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"mat-option",7),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-option",8),C._uU(22),C.ALo(23,"translate"),C.qZA(),C.TgZ(24,"mat-option",9),C._uU(25),C.ALo(26,"translate"),C.qZA(),C.TgZ(27,"mat-option",10),C._uU(28),C.ALo(29,"translate"),C.qZA()()(),C.TgZ(30,"perun-web-apps-debounce-filter",11),C.NdJ("filter",function($){return H.applyFilter($)}),C.qZA(),C.TgZ(31,"perun-web-apps-date-range",12),C.NdJ("datePicker",function(){return H.select()}),C.qZA(),C.TgZ(32,"div")(33,"mat-checkbox",13),C.NdJ("change",function($){return H.showGroupApplications($)}),C._uU(34),C.ALo(35,"translate"),C.qZA()()(),C.TgZ(36,"div"),C._UZ(37,"app-applications-dynamic-list",14),C.qZA()),2&O&&(C.xp6(1),C.Oqu(C.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),C.xp6(4),C.Q6J("ngIf",!H.showAllDetails),C.xp6(1),C.Q6J("ngIf",H.showAllDetails),C.xp6(3),C.Oqu(C.lcZ(10,27,"APPLICATIONS_LIST.STATE")),C.xp6(2),C.Q6J("value",H.state),C.xp6(2),C.Oqu(C.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),C.xp6(3),C.Oqu(C.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),C.xp6(3),C.Oqu(C.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),C.xp6(3),C.Oqu(C.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),C.xp6(3),C.Oqu(C.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),C.xp6(3),C.Oqu(C.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),C.xp6(2),C.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),C.xp6(1),C.Q6J("endDate",H.endDate)("startDate",H.startDate),C.xp6(2),C.Q6J("checked",H.showGroupApps),C.xp6(1),C.hij(" ",C.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),C.xp6(3),C.Q6J("tableId",H.showAllDetails?H.detailTableId:H.tableId)("searchString",H.filterValue)("displayedColumns",H.currentColumns)("states",H.currentStates)("dateFrom",H.startDate.value)("dateTo",H.endDate.value)("includeGroupApps",H.showGroupApps)("refreshTable",H.refresh)("vo",H.vo))},dependencies:[w.O5,T.ey,v.KE,v.hX,R.lW,U.oG,_.gD,V.t,Y.S,X.P,ne.S,le.X$]}),we})()},4732:(Je,pe,h)=>{"use strict";h.d(pe,{G:()=>j});var e=h(81889),d=h(41656),A=h(95017),w=h(87842),g=h(9244),C=h(32105),T=h(10036),v=h(64080),R=h(32080),_=(h(33604),h(94650)),V=h(65412),Y=h(36895),X=h(24006),ne=h(4859),le=h(51572),te=h(10266),fe=h(90455),ue=h(98380),we=h(24179),E=h(96214),O=h(58956),H=h(64901),W=h(89383);const $=["toggle"],de=["tree"],ye=["list"];function xe(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(ce);const Te=_.oxw();return _.KtG(Te.onCreateGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&P&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Me(P,G){1&P&&_._UZ(0,"mat-spinner",12)}function Ze(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"perun-web-apps-groups-tree",16,17),_.NdJ("moveGroup",function(Te){_.CHM(ce);const He=_.oxw(2);return _.KtG(He.onMoveGroup(Te))})("refreshTable",function(){_.CHM(ce);const Te=_.oxw(2);return _.KtG(Te.loadAllGroups())}),_.qZA()}if(2&P){const ce=_.oxw(2);_.Q6J("expandAll",ce.filtering)("disableRouting",!ce.routeAuth)("groups",ce.groups)("selection",ce.selected)("filterValue",ce.filterValue)("vo",ce.vo)}}const se=function(){return["select","id","name","description","menu"]};function ze(P,G){if(1&P){const ce=_.EpF();_.TgZ(0,"perun-web-apps-groups-list",18,19),_.NdJ("refreshTable",function(){_.CHM(ce);const Te=_.oxw(2);return _.KtG(Te.loadAllGroups())})("moveGroup",function(Te){_.CHM(ce);const He=_.oxw(2);return _.KtG(He.onMoveGroup(Te))}),_.qZA()}if(2&P){const ce=_.oxw(2);_.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",_.DdM(8,se))("disableRouting",!ce.routeAuth)("groups",ce.groups)("selection",ce.selected)("filter",ce.filterValue)("tableId",ce.tableId)}}function he(P,G){if(1&P&&(_.TgZ(0,"div",13),_.YNc(1,Ze,2,6,"perun-web-apps-groups-tree",14),_.YNc(2,ze,2,9,"perun-web-apps-groups-list",15),_.qZA()),2&P){const ce=_.oxw();_.xp6(1),_.Q6J("ngIf",!ce.showGroupList),_.xp6(1),_.Q6J("ngIf",ce.showGroupList)}}function De(P,G){1&P&&(_.TgZ(0,"perun-web-apps-alert",20),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&P&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let j=(()=>{class P{constructor(ce,q,Te,He){this.dialog=ce,this.groupService=q,this.authResolver=Te,this.entityStorageService=He,this.groups=[],this.showGroupList=!1,this.selected=new A.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=T.rc}onCreateGroup(){const ce=(0,g.kZ)();ce.width="450px",ce.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,ce).afterClosed().subscribe(Te=>{Te&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){return this.tree?.removeAuth||this.list?.removeAuth}deleteGroup(){const ce=(0,g.kZ)();ce.width="450px",ce.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(d.P,ce).afterClosed().subscribe(Te=>{Te&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(ce){const q=(0,g.kZ)();q.width="550px",q.data={group:ce,theme:"vo-theme"},this.dialog.open(w.c,q).afterClosed().subscribe(He=>{He&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[v.r.GROUP_SYNC_ENABLED,v.r.GROUP_LAST_SYNC_STATE,v.r.GROUP_LAST_SYNC_TIMESTAMP,v.r.GROUP_STRUCTURE_SYNC_ENABLED,v.r.GROUP_LAST_STRUCTURE_SYNC_STATE,v.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(ce=>{this.groups=ce,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(ce){this.filterValue=ce,this.filtering=""!==ce}}return P.id="VoGroupsComponent",P.\u0275fac=function(ce){return new(ce||P)(_.Y36(V.uw),_.Y36(C.ff),_.Y36(R.x4),_.Y36(R.fb))},P.\u0275cmp=_.Xpm({type:P,selectors:[["app-vo-groups"]],viewQuery:function(ce,q){if(1&ce&&(_.Gf($,7),_.Gf(de,5),_.Gf(ye,5)),2&ce){let Te;_.iGM(Te=_.CRH())&&(q.toggle=Te.first),_.iGM(Te=_.CRH())&&(q.tree=Te.first),_.iGM(Te=_.CRH())&&(q.list=Te.first)}},hostVars:2,hostBindings:function(ce,q){2&ce&&_.ekj("router-component",q.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup",4,"ngIf"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup"],["list",""],["alert_type","warn"]],template:function(ce,q){if(1&ce&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return q.loadAllGroups()}),_.qZA(),_.YNc(5,xe,3,3,"button",2),_.TgZ(6,"span",3),_.ALo(7,"translate"),_.TgZ(8,"button",4),_.NdJ("click",function(){return q.deleteGroup()}),_._uU(9),_.ALo(10,"translate"),_.qZA()(),_.TgZ(11,"perun-web-apps-debounce-filter",5),_.NdJ("filter",function(He){return q.applyFilter(He)}),_.qZA(),_.TgZ(12,"mat-slide-toggle",6,7),_.NdJ("change",function(){return q.removeAllGroups()})("ngModelChange",function(He){return q.showGroupList=He}),_._uU(14),_.ALo(15,"translate"),_.qZA(),_.TgZ(16,"label"),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.YNc(19,Me,1,0,"mat-spinner",8),_.YNc(20,he,3,2,"div",9),_.YNc(21,De,3,3,"perun-web-apps-alert",10),_.qZA()),2&ce){const Te=_.MAs(13);_.xp6(2),_.Oqu(_.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),_.xp6(3),_.Q6J("ngIf",q.createAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),_.Q6J("matTooltipDisabled",void 0===q.tree&&void 0===q.list||q.disableTooltip()),_.xp6(2),_.Q6J("disabled",0===q.selected.selected.length||q.disableRemove()),_.xp6(1),_.hij(" ",_.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),_.xp6(2),_.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),_.xp6(1),_.Q6J("ngModel",q.showGroupList),_.xp6(2),_.Oqu(_.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),_.xp6(2),_.uIk("for",Te.inputId),_.xp6(1),_.Oqu(_.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),_.xp6(2),_.Q6J("ngIf",q.loading),_.xp6(1),_.Q6J("ngIf",!q.loading&&0!==q.groups.length),_.xp6(1),_.Q6J("ngIf",0===q.groups.length&&!q.loading)}},dependencies:[Y.O5,X.JJ,X.On,ne.lW,le.Ou,te.gM,fe.Rr,ue.w,we.W,E.t,O.I,H.P,W.X$]}),P})()},81847:(Je,pe,h)=>{"use strict";h.d(pe,{y:()=>se});var e=h(95017),d=h(32080),A=h(53455),w=h(32105),g=h(64080),C=h(24006),T=h(10036),v=h(9244),R=h(74414),U=h(51525),_=h(94650),V=h(65412),Y=h(36895),X=h(3238),ne=h(59549),le=h(4859),te=h(84385),fe=h(51572),ue=h(10266),we=h(96214),E=h(64901),O=h(4811),H=h(89383),W=h(20551);function $(ze,he){if(1&ze){const De=_.EpF();_.TgZ(0,"button",14),_.NdJ("click",function(){_.CHM(De);const P=_.oxw();return _.KtG(P.onAddMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&ze){const De=_.oxw();_.Q6J("disabled",De.blockManualMemberAdding),_.xp6(1),_.hij(" ",_.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function de(ze,he){if(1&ze){const De=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(De);const P=_.oxw();return _.KtG(P.onInviteMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&ze&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function ye(ze,he){if(1&ze){const De=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM(De);const P=_.oxw();return _.KtG(P.onRemoveMembers())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&ze){const De=_.oxw();_.Q6J("disabled",De.selection.isEmpty()),_.xp6(1),_.hij(" ",_.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function xe(ze,he){if(1&ze&&(_.TgZ(0,"mat-option",17),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&ze){const De=he.$implicit;_.Q6J("value",De),_.xp6(1),_.Oqu(_.lcZ(2,2,De))}}function Me(ze,he){1&ze&&_._UZ(0,"mat-spinner",18)}function Ze(ze,he){if(1&ze&&_._UZ(0,"perun-web-apps-members-dynamic-list",19),2&ze){const De=_.oxw();_.Q6J("attrNames",De.attrNames)("selection",De.selection)("tableId",De.tableId)("displayedColumns",De.displayedColumns)("updateTable",De.updateTable)("searchString",De.searchString)("selectedStatuses",De.selectedStatuses)("voId",De.vo.id)("isMembersGroup",!1)}}let se=(()=>{class ze{constructor(De,j,P,G,ce,q,Te){this.notificator=De,this.dialog=j,this.authzService=P,this.storeService=G,this.attributesManager=ce,this.apiRequest=q,this.entityStorageService=Te,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[g.r.MEMBER_DEF_ORGANIZATION,g.r.MEMBER_DEF_MAIL,g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL,g.r.MEMBER_DEF_EXPIRATION,g.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new C.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=T.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(De){this.searchString=De,this.selection.clear()}onAddMember(){const De=(0,v.kZ)();De.width="1000px",De.data={voId:this.vo.id},this.dialog.open(U.H,De).afterClosed().subscribe(P=>{P&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const De=(0,v.kZ)();De.width="450px",De.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(A.X,De).afterClosed().subscribe(P=>{P&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const De=(0,v.kZ)();De.width="650px",De.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(R.R,De)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const De=this.statuses.value;return De?`${De[0]} ${De.length>1?"(+"+(De.length-1).toString()+" "+(2===De.length?"other)":"others)"):""}`:""}isManualAddingBlocked(De){return new Promise(j=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(De,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(P=>{this.blockManualMemberAdding=null!==P.value,j()},P=>{const G=P.error;"PrivilegeException"!==G.name&&this.notificator.showError(G.name),j()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return ze.id="VoMembersComponent",ze.\u0275fac=function(De){return new(De||ze)(_.Y36(d.V6),_.Y36(V.uw),_.Y36(d.x4),_.Y36(d.d6),_.Y36(w.H8),_.Y36(d.F5),_.Y36(d.fb))},ze.\u0275cmp=_.Xpm({type:ze,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(De,j){2&De&&_.ekj("router-component",j.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(De,j){1&De&&(_.TgZ(0,"div",0)(1,"h1",1),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),_.NdJ("click",function(){return j.refreshTable()}),_.qZA(),_.TgZ(6,"div",4),_.ALo(7,"translate"),_.YNc(8,$,3,4,"button",5),_.qZA(),_.YNc(9,de,3,3,"button",6),_.YNc(10,ye,3,4,"button",7),_.TgZ(11,"mat-form-field",8)(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"mat-select",9),_.NdJ("closed",function(){return j.changeStatuses()}),_.TgZ(16,"mat-select-trigger"),_._uU(17),_.ALo(18,"memberStatus"),_.qZA(),_.YNc(19,xe,3,4,"mat-option",10),_.qZA()(),_.TgZ(20,"perun-web-apps-debounce-filter",11),_.NdJ("filter",function(G){return j.onSearchByString(G)}),_.qZA()(),_.YNc(21,Me,1,0,"mat-spinner",12),_.YNc(22,Ze,1,9,"perun-web-apps-members-dynamic-list",13),_.qZA()),2&De&&(_.xp6(2),_.Oqu(_.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),_.xp6(4),_.s9C("matTooltip",_.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),_.Q6J("matTooltipDisabled",!j.blockManualMemberAdding),_.xp6(2),_.Q6J("ngIf",j.addAuth),_.xp6(1),_.Q6J("ngIf",j.inviteAuth),_.xp6(1),_.Q6J("ngIf",j.removeAuth),_.xp6(3),_.Oqu(_.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),_.xp6(2),_.Q6J("formControl",j.statuses),_.xp6(2),_.hij(" ",_.lcZ(18,19,j.displaySelectedStatuses())," "),_.xp6(2),_.Q6J("ngForOf",j.statusList),_.xp6(1),_.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),_.xp6(1),_.Q6J("ngIf",j.loading),_.xp6(1),_.Q6J("ngIf",!j.loading))},dependencies:[Y.sg,Y.O5,X.ey,ne.KE,ne.hX,C.JJ,C.oH,le.lW,te.gD,te.$L,fe.Ou,ue.gM,we.t,E.P,O.m,H.X$,W.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),ze})()},68056:(Je,pe,h)=>{"use strict";h.d(pe,{z:()=>ue});var e=h(95017),d=h(32105),A=h(533),w=h(10036),g=h(9244),C=h(32080),T=h(94650),v=h(65412),R=h(36895),U=h(4859),_=h(51572),V=h(96214),Y=h(7434),X=h(62109),ne=h(89383);function le(we,E){if(1&we){const O=T.EpF();T.TgZ(0,"button",6),T.NdJ("click",function(){T.CHM(O);const W=T.oxw();return T.KtG(W.deleteSelectedResources())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&we){const O=T.oxw();T.Q6J("disabled",0===O.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function te(we,E){1&we&&T._UZ(0,"mat-spinner",7)}function fe(we,E){if(1&we&&T._UZ(0,"perun-web-apps-resources-list",8),2&we){const O=T.oxw();T.Q6J("disableRouting",!O.routeAuth)("filterValue",O.filterValue)("resources",O.resources)("routingVo",!0)("displayedColumns",O.displayedColumns)("selection",O.selected)("tableId",O.tableId)}}let ue=(()=>{class we{constructor(O,H,W,$){this.resourcesManager=O,this.dialog=H,this.authResolver=W,this.entityStorageService=$,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(O=>{this.resources=O,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(O){this.filterValue=O}deleteSelectedResources(){const O=(0,g.kZ)();O.width="450px",O.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(A.f,O).afterClosed().subscribe(W=>{W&&this.refreshTable()})}}return we.id="VoResourcesPreviewComponent",we.\u0275fac=function(O){return new(O||we)(T.Y36(d.xk),T.Y36(v.uw),T.Y36(C.x4),T.Y36(C.fb))},we.\u0275cmp=T.Xpm({type:we,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(O,H){2&O&&T.ekj("router-component",H.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(O,H){1&O&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return H.refreshTable()}),T.qZA(),T.YNc(5,le,3,4,"button",2),T.TgZ(6,"perun-web-apps-immediate-filter",3),T.NdJ("filter",function($){return H.applyFilter($)}),T.qZA(),T.YNc(7,te,1,0,"mat-spinner",4),T.YNc(8,fe,1,7,"perun-web-apps-resources-list",5),T.qZA()),2&O&&(T.xp6(2),T.Oqu(T.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),T.xp6(3),T.Q6J("ngIf",H.removeAuth),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",H.loading),T.xp6(1),T.Q6J("ngIf",!H.loading))},dependencies:[R.O5,U.lW,_.Ou,V.t,Y.L,X.C,ne.X$]}),we})()},24219:(Je,pe,h)=>{"use strict";h.d(pe,{z:()=>ve});var e=h(32080),d=h(32105),A=h(94650),w=h(36895),g=h(3848),C=h(98380),T=h(96214),v=h(30671),R=h(51572),U=h(44850),_=h(37084),V=h(89383);function Y(oe,ge){1&oe&&A._UZ(0,"mat-spinner",2)}function X(oe,ge){if(1&oe&&(A.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),A._uU(3," error "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"translate"),A.qZA()()),2&oe){const ae=A.oxw().$implicit,Oe=A.oxw(2);A.xp6(4),A.HOy(" ",Oe.getErrorCountStates(ae)," ",A.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",ae.taskList.length," ",A.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ne(oe,ge){1&oe&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function le(oe,ge){if(1&oe&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&oe){const ae=ge.$implicit;A.xp6(1),A.Oqu(ae.id)}}function te(oe,ge){1&oe&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function fe(oe,ge){if(1&oe&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&oe){const ae=ge.$implicit;A.xp6(1),A.Oqu(ae.service.name)}}function ue(oe,ge){1&oe&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function we(oe,ge){if(1&oe&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&oe){const ae=ge.$implicit;A.xp6(1),A.Oqu(ae.status)}}function E(oe,ge){1&oe&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function O(oe,ge){if(1&oe&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&oe){const ae=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ae.schedule,"d.M.y H:mm:ss")," ")}}function H(oe,ge){1&oe&&(A._uU(0),A.ALo(1,"translate")),2&oe&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function W(oe,ge){if(1&oe&&(A.TgZ(0,"td",24),A.YNc(1,O,3,4,"div",25),A.YNc(2,H,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&oe){const ae=ge.$implicit,Oe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",ae.schedule)("ngIfElse",Oe)}}function $(oe,ge){1&oe&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function de(oe,ge){if(1&oe&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&oe){const ae=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ae.schedule,"d.M.y H:mm:ss")," ")}}function ye(oe,ge){1&oe&&(A._uU(0),A.ALo(1,"translate")),2&oe&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function xe(oe,ge){if(1&oe&&(A.TgZ(0,"td",24),A.YNc(1,de,3,4,"div",25),A.YNc(2,ye,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&oe){const ae=ge.$implicit,Oe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",ae.startTime)("ngIfElse",Oe)}}function Me(oe,ge){1&oe&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Ze(oe,ge){if(1&oe&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&oe){const ae=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ae.schedule,"d.M.y H:mm:ss")," ")}}function se(oe,ge){1&oe&&(A._uU(0),A.ALo(1,"translate")),2&oe&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function ze(oe,ge){if(1&oe&&(A.TgZ(0,"td",24),A.YNc(1,Ze,3,4,"div",25),A.YNc(2,se,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&oe){const ae=ge.$implicit,Oe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",ae.endTime)("ngIfElse",Oe)}}function he(oe,ge){1&oe&&A._UZ(0,"tr",28)}const De=function(oe,ge,ae){return{redTableItem:oe,greenTableItem:ge,yellowTableItem:ae}};function j(oe,ge){if(1&oe&&A._UZ(0,"tr",29),2&oe){const ae=ge.$implicit;A.Q6J("ngClass",A.kEZ(1,De,"ERROR"===ae.status||"SENDERROR"===ae.status||"GENERROR"===ae.status,"DONE"===ae.status,"WARNING"===ae.status))}}function P(oe,ge){if(1&oe&&(A.TgZ(0,"table",12),A.ynx(1,13),A.YNc(2,ne,3,3,"th",14),A.YNc(3,le,2,1,"td",15),A.BQk(),A.ynx(4,16),A.YNc(5,te,3,3,"th",14),A.YNc(6,fe,2,1,"td",15),A.BQk(),A.ynx(7,17),A.YNc(8,ue,3,3,"th",14),A.YNc(9,we,2,1,"td",15),A.BQk(),A.ynx(10,18),A.YNc(11,E,3,3,"th",14),A.YNc(12,W,4,2,"td",15),A.BQk(),A.ynx(13,19),A.YNc(14,$,3,3,"th",14),A.YNc(15,xe,4,2,"td",15),A.BQk(),A.ynx(16,20),A.YNc(17,Me,3,3,"th",14),A.YNc(18,ze,4,2,"td",15),A.BQk(),A.YNc(19,he,1,0,"tr",21),A.YNc(20,j,1,5,"tr",22),A.qZA()),2&oe){const ae=A.oxw(2).$implicit,Oe=A.oxw(2);A.Q6J("dataSource",Oe.datasources[Oe.propagation.indexOf(ae)]),A.xp6(19),A.Q6J("matHeaderRowDef",Oe.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Oe.displayedColumns)}}function G(oe,ge){1&oe&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function ce(oe,ge){if(1&oe&&(A._UZ(0,"mat-divider"),A.YNc(1,P,21,3,"table",11),A.YNc(2,G,3,3,"div",8)),2&oe){const ae=A.oxw().$implicit;A.xp6(1),A.Q6J("ngIf",0!==ae.taskList.length),A.xp6(1),A.Q6J("ngIf",0===ae.taskList.length)}}function q(oe,ge){if(1&oe&&(A.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),A._UZ(3,"img",6),A.TgZ(4,"div",7),A._uU(5),A.qZA()(),A.YNc(6,X,7,8,"mat-panel-description",8),A.qZA(),A.YNc(7,ce,3,2,"ng-template",9),A.qZA()),2&oe){const ae=ge.$implicit,Oe=A.oxw(2);A.xp6(5),A.hij(" ",ae.resource.name," "),A.xp6(1),A.Q6J("ngIf",0!==Oe.getErrorCountStates(ae))}}function Te(oe,ge){if(1&oe&&(A.TgZ(0,"div",3)(1,"mat-accordion",4),A.YNc(2,q,8,2,"mat-expansion-panel",5),A.qZA()()),2&oe){const ae=A.oxw();A.xp6(2),A.Q6J("ngForOf",ae.propagation)}}let He=(()=>{class oe{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(ae){let Oe=0;for(const Q of ae.taskList)("ERROR"===Q.status||"GENERROR"===Q.status||"SENDERROR"===Q.status)&&Oe++;return Oe}getDataSource(){this.datasources=[];for(const ae of this.propagation)this.datasources.push(new v.by(ae.taskList))}ngOnChanges(){this.getDataSource()}}return oe.\u0275fac=function(ae){return new(ae||oe)},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[A.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(ae,Oe){1&ae&&(A.YNc(0,Y,1,0,"mat-spinner",0),A.YNc(1,Te,3,1,"div",1)),2&ae&&(A.Q6J("ngIf",Oe.loading),A.xp6(1),A.Q6J("ngIf",!Oe.loading))},dependencies:[w.mk,w.sg,w.O5,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,R.Ou,U.d,_.pp,_.ib,_.yz,_.yK,_.u4,_.HS,w.uU,V.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),oe})();function dt(oe,ge){if(1&oe&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",5),A._uU(3),A.qZA()),2&oe){const ae=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),A.xp6(3),A.Oqu(ae.errorPropagation.length)}}function et(oe,ge){1&oe&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function _t(oe,ge){if(1&oe&&(A.YNc(0,et,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&oe){const ae=A.oxw();A.Q6J("ngIf",!ae.loading&&0===ae.errorPropagation.length),A.xp6(1),A.Q6J("loading",ae.loading)("propagation",ae.errorPropagation)}}function Qe(oe,ge){if(1&oe&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",9),A._uU(3),A.qZA()),2&oe){const ae=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),A.xp6(3),A.Oqu(ae.okPropagation.length)}}function st(oe,ge){1&oe&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function Z(oe,ge){if(1&oe&&(A.YNc(0,st,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&oe){const ae=A.oxw();A.Q6J("ngIf",!ae.loading&&0===ae.okPropagation.length),A.xp6(1),A.Q6J("loading",ae.loading)("propagation",ae.okPropagation)}}let ve=(()=>{class oe{constructor(ae,Oe){this.taskService=ae,this.entityStorageService=Oe,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(ae=>{this.resourceStates=ae,this.okPropagation=[],this.errorPropagation=[];for(const Oe of ae){let Q=!0;for(const me of Oe.taskList)if("ERROR"===me.status||"GENERROR"===me.status||"SENDERROR"===me.status){Q=!1;break}Q?this.okPropagation.push(Oe):this.errorPropagation.push(Oe)}this.loading=!1},()=>this.loading=!1)}}return oe.id="VoResourcesStatesComponent",oe.\u0275fac=function(ae){return new(ae||oe)(A.Y36(d.Ob),A.Y36(e.fb))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(ae,Oe){2&ae&&A.ekj("router-component",Oe.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(ae,Oe){1&ae&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Oe.refreshTable()}),A.qZA(),A.TgZ(4,"mat-tab-group",2),A.NdJ("selectedIndexChange",function(me){return Oe.selectedIndex=me}),A.TgZ(5,"mat-tab"),A.YNc(6,dt,4,4,"ng-template",3),A.YNc(7,_t,2,3,"ng-template",4),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Qe,4,4,"ng-template",3),A.YNc(10,Z,2,3,"ng-template",4),A.qZA()()),2&ae&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),A.xp6(3),A.Q6J("selectedIndex",Oe.selectedIndex))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,C.w,T.t,He,V.X$]}),oe})()},10369:(Je,pe,h)=>{"use strict";h.d(pe,{w:()=>xe});var e=h(1186),d=h(32080),A=h(95502),w=h(51076),g=h(83491),C=h(32105),T=h(9244),v=h(94650),R=h(65412),U=h(89383),_=h(94364),V=h(36895),Y=h(97392),X=h(4859),ne=h(51572),le=h(10266),te=h(44850),fe=h(98380),ue=h(96214),we=h(157);function E(Me,Ze){1&Me&&v._UZ(0,"mat-spinner",13)}function O(Me,Ze){if(1&Me){const se=v.EpF();v.TgZ(0,"button",21),v.NdJ("click",function(){v.CHM(se);const he=v.oxw(2);return v.KtG(he.settings())}),v.TgZ(1,"i",10),v._uU(2,"edit"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&Me&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function H(Me,Ze){if(1&Me&&(v.TgZ(0,"div",14)(1,"div",15)(2,"div",16),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"div")(6,"span",16),v._uU(7),v.ALo(8,"translate"),v.qZA(),v._uU(9,": "),v.TgZ(10,"mat-icon",17),v._uU(11,"arrow_right_alt"),v.qZA(),v._uU(12),v.ALo(13,"translate"),v.ALo(14,"translate"),v.TgZ(15,"mat-icon",18),v._uU(16,"restore"),v.qZA(),v._uU(17),v.ALo(18,"translate"),v.ALo(19,"translate"),v.qZA()(),v.TgZ(20,"div",19),v.YNc(21,O,5,3,"button",20),v.qZA()()),2&Me){const se=v.oxw();v.xp6(3),v.AsE(" ",v.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",se.applicationForm.moduleClassName," "),v.xp6(4),v.Oqu(v.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),v.xp6(5),v.hij(" ",se.applicationForm.automaticApproval?v.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),v.xp6(5),v.hij(" ",se.applicationForm.automaticApprovalExtension?v.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):v.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),v.xp6(4),v.Q6J("ngIf",se.editAuth)}}function W(Me,Ze){if(1&Me){const se=v.EpF();v.TgZ(0,"button",22),v.NdJ("click",function(){v.CHM(se);const he=v.oxw();return v.KtG(he.add())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&Me&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function $(Me,Ze){if(1&Me){const se=v.EpF();v.TgZ(0,"button",23),v.NdJ("click",function(){v.CHM(se);const he=v.oxw();return v.KtG(he.save())}),v.TgZ(1,"i",10),v._uU(2,"save"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}if(2&Me){const se=v.oxw();v.Q6J("disabled",!se.itemsChanged),v.xp6(3),v.hij(" ",v.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function de(Me,Ze){if(1&Me){const se=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){v.CHM(se);const he=v.oxw();return v.KtG(he.copy())}),v.TgZ(1,"i",10),v._uU(2,"file_copy"),v.qZA(),v._uU(3),v.ALo(4,"translate"),v.qZA()}2&Me&&(v.xp6(3),v.hij(" ",v.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function ye(Me,Ze){1&Me&&(v.TgZ(0,"perun-web-apps-alert",25),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&Me&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let xe=(()=>{class Me{constructor(se,ze,he,De,j,P,G,ce){this.registrarManager=se,this.dialog=ze,this.notificator=he,this.translate=De,this.router=j,this.authResolver=P,this.voService=G,this.entityStorageService=ce,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(se=>{this.applicationForm=se,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(ze=>{this.applicationFormItems=ze,this.loading=!1})})}add(){let se=(0,T.kZ)();se.width="500px",se.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,se).afterClosed().subscribe(he=>{he&&(this.applicationFormItems=Object.assign([],he[0]),se=(0,T.kZ)(),se.width="600px",se.height="600px",se.data={voId:this.vo.id,applicationFormItem:he[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,se),this.itemsChanged=!0)})}copy(){const se=(0,T.kZ)();se.width="500px",se.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(A.W,se).afterClosed().subscribe(he=>{he&&this.updateFormItems()})}settings(){const se=(0,T.kZ)();se.width="400px",se.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,se).afterClosed().subscribe(he=>{he&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(De=>{this.notificator.showSuccess(De)}),this.applicationForm=he)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(se=>{this.applicationFormItems=se,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let se=0;for(const ze of this.applicationFormItems)ze.ordnum=se,ze.forDelete||se++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(ze=>{this.notificator.showSuccess(ze)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(se=>se.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return Me.id="VoSettingsApplicationFormComponent",Me.\u0275fac=function(se){return new(se||Me)(v.Y36(C.tk),v.Y36(R.uw),v.Y36(d.V6),v.Y36(U.sK),v.Y36(_.F0),v.Y36(d.x4),v.Y36(C.YF),v.Y36(d.fb))},Me.\u0275cmp=v.Xpm({type:Me,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(se,ze){2&se&&v.ekj("router-component",ze.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(se,ze){1&se&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,E,1,0,"mat-spinner",1),v.TgZ(4,"div"),v.YNc(5,H,22,18,"div",2),v._UZ(6,"mat-divider",3),v.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),v.NdJ("refresh",function(){return ze.updateFormItems()}),v.qZA(),v.YNc(9,W,3,3,"button",6),v.YNc(10,$,5,4,"button",7),v.YNc(11,de,5,3,"button",8),v.TgZ(12,"button",9),v.NdJ("click",function(){return ze.preview()}),v.TgZ(13,"i",10),v._uU(14,"search"),v.qZA(),v._uU(15),v.ALo(16,"translate"),v.qZA()(),v.YNc(17,ye,3,3,"perun-web-apps-alert",11),v.TgZ(18,"app-application-form-list",12),v.NdJ("applicationFormItemsChange",function(){return ze.changeItems()}),v.qZA()()),2&se&&(v.xp6(1),v.hij(" ",v.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),v.xp6(2),v.Q6J("ngIf",ze.loading),v.xp6(2),v.Q6J("ngIf",!ze.loading),v.xp6(4),v.Q6J("ngIf",ze.editAuth),v.xp6(1),v.Q6J("ngIf",ze.editAuth),v.xp6(1),v.Q6J("ngIf",ze.editAuth),v.xp6(4),v.hij(" ",v.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),v.xp6(2),v.Q6J("ngIf",ze.editAuth),v.xp6(1),v.Q6J("applicationForm",ze.applicationForm)("applicationFormItems",ze.applicationFormItems)("loading",ze.loading)("displayedColumns",ze.displayedColumns)("refreshApplicationForm",ze.refreshApplicationForm)("theme","vo-theme"))},dependencies:[V.O5,Y.Hw,X.lW,ne.Ou,le.gM,te.d,fe.w,ue.t,we.b,U.X$]}),Me})()},3246:(Je,pe,h)=>{"use strict";h.d(pe,{T:()=>rr});var e=h(32105),d=h(95017),A=h(10036),w=h(9244),g=h(65412),C=h(32080),T=h(24006),v=h(36895),R=h(45323),U=h(28499),_=h(94650),V=h(89383),Y=h(3238),X=h(59549),ne=h(284),le=h(97392),te=h(4859),fe=h(56709),ue=h(84385),we=h(51572),E=h(10266),O=h(71948),H=h(86257),W=h(98380),$=h(74250),de=h(99602);let ye=(()=>{class yt{constructor(){this.expiration="never",this.datePicker=new _.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const nt=new Date;this.minDate=new Date(nt.getFullYear(),nt.getMonth(),nt.getDate()),this.expirationControl.setValue((0,v.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,v.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,v.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return yt.\u0275fac=function(nt){return new(nt||yt)},yt.\u0275cmp=_.Xpm({type:yt,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(nt,Nt){if(1&nt){const je=_.EpF();_.TgZ(0,"mat-radio-group",0),_.NdJ("ngModelChange",function($e){return Nt.expiration=$e})("change",function(){return Nt.emitDate()}),_.TgZ(1,"mat-radio-button",1),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),_.NdJ("click",function(){_.CHM(je);const $e=_.MAs(12);return _.KtG($e.open())}),_.TgZ(6,"mat-label"),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.TgZ(9,"input",4),_.NdJ("dateChange",function(){return Nt.setExpiration()}),_.qZA(),_._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),_.qZA()()()}if(2&nt){const je=_.MAs(12);_.Q6J("ngModel",Nt.expiration),_.xp6(2),_.hij(" ",_.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),_.xp6(2),_.s9C("value",Nt.expirationControl.value),_.xp6(3),_.Oqu(_.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),_.xp6(2),_.Q6J("min",Nt.minDate)("formControl",Nt.expirationControl)("matDatepicker",je),_.xp6(1),_.Q6J("for",je)("disabled",!1),_.xp6(1),_.Q6J("disabled",!1)}},dependencies:[T.Fj,T.JJ,T.On,X.KE,X.hX,X.R9,T.oH,ne.Nt,de.Mq,de.hl,de.nW,O.VQ,O.U0,V.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),yt})();var xe=h(13469),Me=h(31359);const Ze=["stepper"];function se(yt,rn){1&yt&&(_.TgZ(0,"h1",4),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function ze(yt,rn){1&yt&&_._UZ(0,"mat-spinner",5)}function he(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function De(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function j(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function P(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function G(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function ce(yt,rn){if(1&yt&&(_.TgZ(0,"mat-option",35),_._uU(1),_.qZA()),2&yt){const nt=rn.$implicit;_.Q6J("value",nt),_.xp6(1),_.hij(" ",nt," ")}}function q(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function Te(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function He(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function dt(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function et(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div")(1,"perun-web-apps-user-search-select",36),_.NdJ("userSelected",function(je){_.CHM(nt);const Ht=_.oxw(2);return _.KtG(Ht.selectedSponsor=je)}),_.qZA()()}if(2&yt){const nt=_.oxw(2);_.xp6(1),_.Q6J("disableAutoSelect",!0)("users",nt.voSponsors)}}function _t(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),_.YNc(4,he,2,3,"ng-template",10),_.YNc(5,De,3,3,"perun-web-apps-alert",11),_.TgZ(6,"form",12)(7,"h5",13),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-form-field",14),_._UZ(11,"input",15),_.ALo(12,"translate"),_.YNc(13,j,3,3,"mat-error",16),_.qZA(),_.TgZ(14,"mat-form-field"),_._UZ(15,"input",17),_.ALo(16,"translate"),_.YNc(17,P,3,3,"mat-error",16),_.qZA(),_.TgZ(18,"mat-form-field"),_._UZ(19,"input",18),_.ALo(20,"translate"),_.qZA(),_.TgZ(21,"mat-form-field"),_._UZ(22,"input",19),_.ALo(23,"translate"),_.qZA()()(),_.TgZ(24,"mat-step",9),_.YNc(25,G,2,3,"ng-template",10),_.TgZ(26,"h5",13),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.TgZ(29,"form",20)(30,"mat-form-field")(31,"mat-select",21),_.NdJ("valueChange",function(je){_.CHM(nt);const Ht=_.oxw();return _.KtG(Ht.onNamespaceChanged(je))}),_.ALo(32,"translate"),_.YNc(33,ce,2,2,"mat-option",22),_.qZA(),_.YNc(34,q,3,3,"mat-error",16),_.qZA(),_.TgZ(35,"mat-form-field",23),_.ALo(36,"translate"),_._UZ(37,"input",24),_.ALo(38,"translate"),_.YNc(39,Te,3,3,"mat-error",16),_.qZA(),_.TgZ(40,"mat-form-field"),_._UZ(41,"input",25),_.ALo(42,"translate"),_.YNc(43,He,3,3,"mat-error",16),_.qZA(),_.TgZ(44,"span",23),_.ALo(45,"translate"),_.TgZ(46,"mat-checkbox",26),_.NdJ("change",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.passwordResetChange())}),_._uU(47),_.ALo(48,"translate"),_.qZA()(),_._UZ(49,"perun-web-apps-password-form",27),_.qZA()(),_.TgZ(50,"mat-step"),_.YNc(51,dt,2,3,"ng-template",10),_.TgZ(52,"div",28)(53,"h5",13),_._uU(54),_.ALo(55,"translate"),_.qZA(),_.TgZ(56,"div",14)(57,"h6"),_._uU(58),_.ALo(59,"translate"),_.qZA(),_.TgZ(60,"mat-radio-group",29),_.NdJ("ngModelChange",function(je){_.CHM(nt);const Ht=_.oxw();return _.KtG(Ht.sponsorType=je)}),_.TgZ(61,"span",30),_.ALo(62,"translate"),_.TgZ(63,"mat-radio-button",31),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.selectedSponsor=null)}),_._uU(64),_.ALo(65,"translate"),_.qZA()(),_.TgZ(66,"span",30),_.ALo(67,"translate"),_.TgZ(68,"mat-radio-button",32),_._uU(69),_.ALo(70,"translate"),_.qZA()()(),_.YNc(71,et,2,2,"div",16),_.qZA(),_.TgZ(72,"h6",14),_._uU(73),_.ALo(74,"translate"),_.qZA(),_.TgZ(75,"perun-web-apps-expiration-select",33),_.NdJ("datePicker",function(je){_.CHM(nt);const Ht=_.oxw();return _.KtG(Ht.setExpiration(je))}),_.qZA()()()()()}if(2&yt){const nt=_.oxw();_.xp6(1),_.Q6J("linear",!0),_.xp6(2),_.Q6J("stepControl",nt.userControl),_.xp6(2),_.Q6J("ngIf",nt.functionalityNotSupported),_.xp6(1),_.Q6J("formGroup",nt.userControl),_.xp6(2),_.hij(" ",_.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),_.xp6(3),_.s9C("placeholder",_.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),_.xp6(2),_.Q6J("ngIf",nt.userControl.hasError("required","firstName")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),_.xp6(2),_.Q6J("ngIf",nt.userControl.hasError("required","lastName")),_.xp6(2),_.s9C("placeholder",_.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),_.xp6(3),_.s9C("placeholder",_.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),_.xp6(2),_.Q6J("stepControl",nt.namespaceControl),_.xp6(3),_.Oqu(_.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),_.xp6(2),_.Q6J("formGroup",nt.namespaceControl),_.xp6(2),_.s9C("placeholder",_.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),_.xp6(2),_.Q6J("ngForOf",nt.namespaceOptions),_.xp6(1),_.Q6J("ngIf",nt.namespaceControl.hasError("required","namespace")),_.xp6(1),_.s9C("matTooltip",_.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),_.Q6J("matTooltipDisabled",nt.namespaceControl.get("login").enabled),_.xp6(2),_.s9C("placeholder",_.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),_.xp6(2),_.Q6J("ngIf",nt.namespaceControl.hasError("required","login")),_.xp6(2),_.s9C("placeholder",_.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),_.xp6(2),_.Q6J("ngIf",nt.namespaceControl.hasError("required","email")||nt.namespaceControl.hasError("pattern","email")),_.xp6(1),_.s9C("matTooltip",_.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),_.Q6J("matTooltipDisabled",nt.namespaceControl.get("passwordReset").enabled),_.xp6(3),_.hij("",_.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),_.xp6(2),_.Q6J("formGroup",nt.namespaceControl)("namespace",nt.selectedNamespace)("tooltipPwdViaEmail",nt.namespaceControl.get("passwordReset").value),_.xp6(5),_.Oqu(_.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),_.xp6(4),_.Oqu(_.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),_.xp6(2),_.Q6J("ngModel",nt.sponsorType),_.xp6(1),_.s9C("matTooltip",_.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),_.Q6J("matTooltipDisabled",nt.isSponsor),_.xp6(2),_.Q6J("disabled",!nt.isSponsor),_.xp6(1),_.hij(" ",_.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),_.Q6J("matTooltipDisabled",nt.isPerunAdmin),_.xp6(2),_.Q6J("disabled",!nt.isPerunAdmin),_.xp6(1),_.hij(" ",_.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),_.xp6(2),_.Q6J("ngIf","other"===nt.sponsorType),_.xp6(2),_.Oqu(_.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function Qe(yt,rn){if(1&yt&&(_.TgZ(0,"div",6)(1,"div",37)(2,"mat-icon",38),_._uU(3,"done"),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.TgZ(6,"i"),_._uU(7),_.ALo(8,"userFullName"),_.qZA(),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"div"),_._uU(12),_.ALo(13,"translate"),_.qZA(),_.TgZ(14,"div"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.TgZ(17,"perun-web-apps-alert",39),_._uU(18),_.ALo(19,"translate"),_.qZA()()),2&yt){const nt=_.oxw();_.xp6(4),_.hij(" ",_.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),_.xp6(3),_.Oqu(_.lcZ(8,10,nt.createdMember.user)),_.xp6(2),_.hij(" ",_.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),_.xp6(3),_.AsE("",_.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",nt.loginThatWasSet,""),_.xp6(3),_.AsE(" ",_.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",nt.namespaceControl.get("passwordCtrl").value," "),_.xp6(3),_.Oqu(_.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function st(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div",40)(1,"button",41),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA()()}2&yt&&(_.xp6(2),_.hij(" ",_.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function Z(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",41),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.stepperPrevious())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function ve(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",46),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.stepperNext())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&yt){const nt=_.oxw(2);_.ekj("ml-2",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)("ml-auto",!(void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)),_.Q6J("disabled",nt.getStepperNextConditions()),_.xp6(1),_.hij(" ",_.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function oe(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",47),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.onConfirm())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&yt){const nt=_.oxw(2);_.Q6J("disabled",null===nt.sponsorType||"other"===nt.sponsorType&&null===nt.selectedSponsor),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function ge(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div",40)(1,"button",42),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,Z,3,3,"button",43),_.YNc(5,ve,3,8,"button",44),_.YNc(6,oe,3,4,"button",45),_.qZA()}if(2&yt){const nt=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),_.xp6(2),_.Q6J("ngIf",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex!==nt.stepper._steps.length-1),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex===nt.stepper._steps.length-1)}}let ae=(()=>{class yt{constructor(nt,Nt,je,Ht,$e,vt,Gt,dn,yn,Wn,Kn){this.dialogRef=nt,this.data=Nt,this.membersService=je,this.apiRequestConfiguration=Ht,this.usersService=$e,this.store=vt,this.translator=Gt,this.authzService=dn,this.guiAuthResolver=yn,this.formBuilder=Wn,this.cd=Kn,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(nt,Nt,je){for(const Ht of Nt)switch(Ht){case"login":nt.login=je;break;case"password":nt.password=je}}onConfirm(){this.loading=!0;const nt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Nt=this.namespaceControl.get("namespace").value,je=this.parsedRules.get(Nt);"No namespace"!==Nt&&(nt.userData.namespace=Nt),"disabled"!==je.login&&(nt.userData.login=this.namespaceControl.get("login").value),"disabled"!==je.password&&(nt.sendActivationLink=this.namespaceControl.get("passwordReset").value,nt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(nt.validityTo=this.expiration),this.membersService.createSponsoredMember(nt).subscribe(Ht=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Ht,!!Ht&&!!Ht.userAttributes&&Ht.userAttributes.filter($e=>"login-namespace"===$e.baseFriendlyName).filter($e=>$e.friendlyNameParameter===Nt).filter($e=>null!==$e.value).forEach($e=>{this.loginThatWasSet=$e.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(nt){this.selectedNamespace=nt;const Nt=this.parsedRules.get(nt),je=this.namespaceControl.get("login"),Ht=this.namespaceControl.get("passwordCtrl"),$e=this.namespaceControl.get("passwordAgainCtrl"),vt=this.namespaceControl.get("passwordReset");"disabled"!==Nt.login?(0,w.mH)(je,"optional"===Nt.login?[]:[T.kI.required]):(je.disable(),je.setValue("")),"disabled"!==Nt.password?((0,w.mH)(Ht,"optional"===Nt.password?[]:[T.kI.required],[(0,U.yT)(nt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)($e,[]),(0,w.mH)(vt,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(Ht.disable(),Ht.setValue(""),$e.disable(),$e.setValue(""),vt.disable(),vt.setValue(!1))}passwordResetChange(){const nt=this.namespaceControl.get("passwordCtrl"),Nt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(nt.disable(),nt.setValue(""),Nt.disable(),Nt.setValue("")):(nt.enable(),Nt.enable())}setExpiration(nt){this.expiration="never"===nt?"never":(0,v.p6)(nt,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(R.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",T.kI.required],lastName:["",T.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",T.kI.required],login:["",[T.kI.required]],passwordCtrl:["",T.kI.required,[(0,U.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[T.kI.required,T.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(nt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(nt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const nt of this.namespaceRules){this.namespaceOptions.push(nt.namespaceName);const Nt={login:"disabled",password:"disabled"};yt.parseAttributes(Nt,nt.requiredAttributes,"required"),yt.parseAttributes(Nt,nt.optionalAttributes,"optional"),this.parsedRules.set(nt.namespaceName,Nt)}}}return yt.\u0275fac=function(nt){return new(nt||yt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(e.uq),_.Y36(C.F5),_.Y36(e.Fv),_.Y36(C.d6),_.Y36(V.sK),_.Y36(e.Ct),_.Y36(C.x4),_.Y36(T.QS),_.Y36(_.sBO))},yt.\u0275cmp=_.Xpm({type:yt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(nt,Nt){if(1&nt&&_.Gf(Ze,5),2&nt){let je;_.iGM(je=_.CRH())&&(Nt.stepper=je.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login","required","",3,"placeholder"],["matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["alert_type","error"],[3,"value"],[3,"disableAutoSelect","users","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(nt,Nt){1&nt&&(_.TgZ(0,"div"),_.YNc(1,se,3,3,"h1",0),_.YNc(2,ze,1,0,"mat-spinner",1),_.YNc(3,_t,76,80,"div",2),_.YNc(4,Qe,20,20,"div",2),_.YNc(5,st,4,3,"div",3),_.YNc(6,ge,7,6,"div",3),_.qZA()),2&nt&&(_.Tol(Nt.theme),_.xp6(1),_.Q6J("ngIf",!Nt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",Nt.loading),_.xp6(1),_.Q6J("ngIf",!Nt.loading&&!Nt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",!Nt.loading&&Nt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",Nt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",!Nt.loading&&!Nt.successfullyCreated))},dependencies:[v.sg,v.O5,Y.ey,X.TO,X.KE,ne.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,le.Hw,te.lW,fe.oG,g.uh,g.xY,g.H8,ue.gD,we.Ou,E.gM,O.VQ,O.U0,H.C0,H.VY,H.Vq,W.w,$.S,ye,xe.G,V.X$,Me.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),yt})();var Oe=h(64080),Q=h(28255),me=h(24179),N=h(7434),L=h(61150);const r=["stepper"];function s(yt,rn){1&yt&&_._UZ(0,"mat-spinner",4)}function m(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",29),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function o(yt,rn){if(1&yt&&(_.TgZ(0,"mat-option",30),_._uU(1),_.qZA()),2&yt){const nt=rn.$implicit;_.Q6J("value",nt),_.xp6(1),_.hij(" ",nt," ")}}function n(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(yt,rn){1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function i(yt,rn){if(1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function a(yt,rn){if(1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function c(yt,rn){if(1&yt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function p(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function M(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",31),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function Ne(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"mat-radio-group",32),_.NdJ("ngModelChange",function(je){_.CHM(nt);const Ht=_.oxw(3);return _.KtG(Ht.passwordReset=je)}),_.TgZ(1,"mat-radio-button",33),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-radio-button",34),_._uU(5),_.ALo(6,"translate"),_.qZA()()}if(2&yt){const nt=_.oxw(3);_.Q6J("ngModel",nt.passwordReset),_.xp6(2),_.hij(" ",_.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),_.xp6(3),_.hij(" ",_.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function Pt(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Ut(yt,rn){1&yt&&(_._uU(0),_.ALo(1,"translate")),2&yt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function ln(yt,rn){1&yt&&(_.TgZ(0,"div")(1,"perun-web-apps-alert",35),_._uU(2),_.ALo(3,"translate"),_.qZA()()),2&yt&&(_.xp6(2),_.Oqu(_.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function xt(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div")(1,"h5",36),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-create-group-form",37),_.NdJ("asSubgroupChanged",function(je){_.CHM(nt);const Ht=_.oxw(3);return _.KtG(Ht.asSubGroup=je)})("nameChanged",function(je){_.CHM(nt);const Ht=_.oxw(3);return _.KtG(Ht.name=je)})("descriptionChanged",function(je){_.CHM(nt);const Ht=_.oxw(3);return _.KtG(Ht.description=je)})("parentGroupChanged",function(je){_.CHM(nt);const Ht=_.oxw(3);return _.KtG(Ht.parentGroup=je)}),_.qZA()()}if(2&yt){const nt=_.oxw(3);_.xp6(2),_.hij(" ",_.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),_.xp6(2),_.Q6J("voGroups",nt.allVoGroups)}}const gt=function(){return["select","id","name","description"]};function Ge(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div")(1,"h5",36),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-immediate-filter",38),_.NdJ("filter",function(je){_.CHM(nt);const Ht=_.oxw(3);return _.KtG(Ht.applyFilter(je))}),_.qZA(),_._UZ(5,"perun-web-apps-groups-list",39),_.qZA()}if(2&yt){const nt=_.oxw(3);_.xp6(2),_.hij(" ",_.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),_.xp6(2),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),_.xp6(1),_.Q6J("groups",nt.assignableGroups)("selection",nt.selection)("disableRouting",!0)("displayedColumns",_.DdM(10,gt))("filter",nt.filterValue)("tableId",nt.tableId)}}function Ie(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),_.YNc(3,m,2,3,"ng-template",11),_.YNc(4,l,3,3,"perun-web-apps-alert",12),_.TgZ(5,"h5",13),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),_.ALo(11,"translate"),_.YNc(12,o,2,2,"mat-option",16),_.qZA(),_.YNc(13,n,3,3,"mat-error",7),_.qZA(),_.TgZ(14,"div"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.TgZ(17,"div",17),_._uU(18),_.qZA(),_.TgZ(19,"mat-form-field",18)(20,"mat-label"),_._uU(21),_.ALo(22,"translate"),_.qZA(),_.TgZ(23,"textarea",19),_._uU(24," "),_.qZA(),_.YNc(25,t,3,3,"mat-error",7),_.YNc(26,i,3,4,"mat-error",7),_.YNc(27,a,3,4,"mat-error",7),_.YNc(28,c,3,4,"mat-error",7),_.qZA()()(),_.TgZ(29,"mat-step"),_.YNc(30,p,2,3,"ng-template",11),_.TgZ(31,"div",13)(32,"h5",20),_._uU(33),_.ALo(34,"translate"),_.qZA(),_.YNc(35,M,3,3,"perun-web-apps-alert",21),_.YNc(36,Ne,7,7,"mat-radio-group",22),_.qZA()(),_.TgZ(37,"mat-step"),_.YNc(38,Pt,2,3,"ng-template",11),_.TgZ(39,"div",13)(40,"h5",20),_._uU(41),_.ALo(42,"translate"),_.qZA(),_.TgZ(43,"perun-web-apps-expiration-select",23),_.NdJ("datePicker",function(je){_.CHM(nt);const Ht=_.oxw(2);return _.KtG(Ht.setExpiration(je))}),_.qZA()()(),_.TgZ(44,"mat-step"),_.YNc(45,Ut,2,3,"ng-template",11),_.TgZ(46,"div",13)(47,"h5",20),_._uU(48),_.ALo(49,"translate"),_.qZA(),_.TgZ(50,"mat-radio-group",24),_.NdJ("change",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.groupAssigmentChanged())})("ngModelChange",function(je){_.CHM(nt);const Ht=_.oxw(2);return _.KtG(Ht.groupAssignment=je)}),_.TgZ(51,"mat-radio-button",25),_._uU(52),_.ALo(53,"translate"),_.qZA(),_.TgZ(54,"span",26),_.ALo(55,"translate"),_.TgZ(56,"mat-radio-button",27),_._uU(57),_.ALo(58,"translate"),_.qZA()(),_.TgZ(59,"span",26),_.ALo(60,"translate"),_.TgZ(61,"mat-radio-button",28),_._uU(62),_.ALo(63,"translate"),_.qZA()()()(),_.YNc(64,ln,4,3,"div",7),_.YNc(65,xt,5,4,"div",7),_.YNc(66,Ge,6,11,"div",7),_.qZA()()}if(2&yt){const nt=_.oxw(2);_.Q6J("linear",!0),_.xp6(2),_.Q6J("stepControl",nt.usersInfoFormGroup),_.xp6(2),_.Q6J("ngIf",nt.functionalityNotSupported),_.xp6(2),_.Oqu(_.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),_.xp6(2),_.Q6J("formGroup",nt.usersInfoFormGroup),_.xp6(2),_.s9C("placeholder",_.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),_.xp6(2),_.Q6J("ngForOf",nt.namespaceOptions),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("required","namespace")),_.xp6(2),_.Oqu(_.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),_.xp6(3),_.hij(" ",nt.getSelectedNamespaceRules().csvGenHeaderDescription," "),_.xp6(3),_.Oqu(_.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),_.xp6(2),_.s9C("placeholder",nt.getSelectedNamespaceRules().csvGenPlaceholder),_.xp6(2),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("required","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),_.xp6(5),_.hij(" ",_.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),_.xp6(2),_.Q6J("ngIf","No namespace"===nt.getSelectedNamespaceRules().namespaceName),_.xp6(1),_.Q6J("ngIf","No namespace"!==nt.getSelectedNamespaceRules().namespaceName),_.xp6(5),_.Oqu(_.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),_.xp6(2),_.Q6J("expiration",nt.expiration),_.xp6(5),_.Oqu(_.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),_.xp6(2),_.Q6J("ngModel",nt.groupAssignment),_.xp6(2),_.hij(" ",_.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),_.Q6J("matTooltipDisabled",!nt.manualMemberAddingBlocked&&nt.createGroupAuth),_.xp6(2),_.Q6J("disabled",nt.manualMemberAddingBlocked||!nt.createGroupAuth),_.xp6(1),_.hij(" ",_.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),_.Q6J("matTooltipDisabled",!nt.manualMemberAddingBlocked&&0!==nt.assignableGroups.length),_.xp6(2),_.Q6J("disabled",nt.manualMemberAddingBlocked||0===nt.assignableGroups.length),_.xp6(1),_.hij(" ",_.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),_.xp6(2),_.Q6J("ngIf","none"===nt.groupAssignment),_.xp6(1),_.Q6J("ngIf","new"===nt.groupAssignment),_.xp6(1),_.Q6J("ngIf","existing"===nt.groupAssignment)}}function Xe(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",41),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.Q6J("alert_type","success"),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function Ke(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",41),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.Q6J("alert_type","warn"),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function ke(yt,rn){if(1&yt&&(_.TgZ(0,"div"),_.YNc(1,Xe,3,4,"perun-web-apps-alert",40),_.YNc(2,Ke,3,4,"perun-web-apps-alert",40),_.qZA()),2&yt){const nt=_.oxw(2);_.xp6(1),_.Q6J("ngIf",!1===nt.finishedWithErrors),_.xp6(1),_.Q6J("ngIf",nt.finishedWithErrors)}}function Ae(yt,rn){if(1&yt&&(_.TgZ(0,"div",5),_.YNc(1,Ie,67,59,"mat-stepper",6),_.YNc(2,ke,3,2,"div",7),_.qZA()),2&yt){const nt=_.oxw();_.xp6(1),_.Q6J("ngIf","user-input"===nt.state),_.xp6(1),_.Q6J("ngIf","results"===nt.state)}}function Ee(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",47),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.stepperPrevious())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function We(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",48),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.stepperNext())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&yt){const nt=_.oxw(2);_.ekj("ml-2",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)("ml-auto",!(void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)),_.Q6J("disabled",nt.getStepperNextConditions()),_.xp6(1),_.hij(" ",_.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function tt(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",48),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.onSubmit())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&yt){const nt=_.oxw(2);_.Q6J("disabled",null===nt.groupAssignment||"existing"===nt.groupAssignment&&0===nt.selection.selected.length||"new"===nt.groupAssignment&&(0===nt.name.length||0===nt.description.length)||!0===nt.asSubGroup&&null===nt.parentGroup),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function ot(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div",42)(1,"button",43),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,Ee,3,3,"button",44),_.YNc(5,We,3,8,"button",45),_.YNc(6,tt,3,4,"button",46),_.qZA()}if(2&yt){const nt=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),_.xp6(2),_.Q6J("ngIf",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex!==nt.stepper._steps.length-1),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex===nt.stepper._steps.length-1)}}function Re(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"div",42)(1,"button",43),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onClose())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"button",49),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-menu",null,50)(9,"button",51),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.generatePdf())}),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"button",51),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.downloadCsv())}),_._uU(13),_.ALo(14,"translate"),_.qZA()()()}if(2&yt){const nt=_.MAs(8);_.xp6(2),_.hij(" ",_.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),_.xp6(2),_.Q6J("matMenuTriggerFor",nt),_.xp6(1),_.hij(" ",_.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),_.xp6(5),_.hij(" ",_.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),_.xp6(3),_.hij(" ",_.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let lt=(()=>{class yt{constructor(nt,Nt,je,Ht,$e,vt,Gt,dn,yn,Wn,Kn,ui){this.dialogRef=nt,this.data=Nt,this.store=je,this.membersService=Ht,this.notificator=$e,this.translate=vt,this.guiAuthResolver=Gt,this.groupsService=dn,this.attributesService=yn,this.formBuilder=Wn,this.sponsoredMembersPDFService=Kn,this.cd=ui,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new d.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=A.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[Oe.r.GROUP_SYNC_ENABLED,Oe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(nt){return nt.forEach(Nt=>{if("OK"!==Nt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",T.kI.required],sponsoredMembers:["",[T.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(nt=>{this.manualMemberAddingBlocked=(0,w.jh)(nt,Oe.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(Nt=>{this.allVoGroups=Nt.filter(je=>"members"!==je.name),this.assignableGroups=this.filterAssignableGroups(Nt),this.membersService.getAllNamespacesRules().subscribe(je=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(je),this.namespaceRules.forEach(Ht=>this.namespaceOptions.push(Ht.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(nt){this.expiration="never"===nt?"never":(0,v.p6)(nt,"yyyy-MM-dd","en-GB")}applyFilter(nt){this.filterValue=nt}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(nt=>{this.groupIds.push(nt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(nt=>{this.groupIds.push(nt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(nt=>nt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(nt=>nt.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,w.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}filterAssignableGroups(nt){const Nt=[];for(const je of nt)!(0,w.bx)(je)&&!(0,w.jh)(je.attributes,Oe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[je])&&Nt.push(je);return Nt}createOutputObjects(nt){let Nt="",je="",Ht="",$e="";const vt=[];return nt.forEach(Gt=>{Nt=Gt.name.replace(";"," ").split(";")[0],je=Gt.status,Ht=Gt.login?Gt.login:Ht,$e=Gt.password?Gt.password:$e;const dn={name:Nt,status:je,login:Ht,password:$e};Gt.note&&(dn.note=Gt.note),vt.push(dn)}),vt}onGenerate(){this.loading=!0;const nt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Nt=this.getSelectedNamespaceRules().csvGenHeader,je=[];for(const $e of nt){const vt=this.parseMemberLine($e);if("format"===vt||"email"===vt)return void(this.loading=!1);""!==vt&&je.push(vt)}const Ht={data:je,header:Nt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(Ht.groups=this.groupIds),"never"!==this.expiration&&(Ht.validityTo=(0,v.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Ht.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Ht).subscribe($e=>{this.state="results",this.finishedWithErrors=yt.didSomeGenerationFailed($e),this.loading=!1,this.resultData=$e},()=>this.loading=!1)}parseMemberLine(nt){const Nt=nt.trim();if(""===Nt)return"";const je=Nt.split(";"),Ht=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(je.length!==Ht.length)return"format";if("mail"===Ht[2].slice(Ht[2].length-4).toLowerCase()&&!je[2].trim().match(w.B2))return"email";if("login"===Ht[3]&&""===je[3].trim())return"login";let $e="";for(const vt of je)$e+=vt.trim()+";";return $e.slice(0,-1)}userInputValidator(){return nt=>{const Nt=nt.value.split("\n");for(const je of Nt){const Ht=this.parseMemberLine(je);if("format"===Ht)return{invalidFormat:{value:je}};if("email"===Ht)return{invalidEmail:{value:je}};if("login"===Ht)return{invalidLogin:{value:je}}}return null}}}return yt.\u0275fac=function(nt){return new(nt||yt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(C.d6),_.Y36(e.uq),_.Y36(C.V6),_.Y36(V.sK),_.Y36(C.x4),_.Y36(e.ff),_.Y36(e.H8),_.Y36(T.QS),_.Y36(C.HV),_.Y36(_.sBO))},yt.\u0275cmp=_.Xpm({type:yt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(nt,Nt){if(1&nt&&_.Gf(r,5),2&nt){let je;_.iGM(je=_.CRH())&&(Nt.stepper=je.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(nt,Nt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,s,1,0,"mat-spinner",1),_.YNc(5,Ae,3,2,"div",2),_.YNc(6,ot,7,6,"div",3),_.YNc(7,Re,15,13,"div",3),_.qZA()),2&nt&&(_.Tol(Nt.theme),_.xp6(2),_.Oqu(_.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),_.xp6(2),_.Q6J("ngIf",Nt.loading),_.xp6(1),_.Q6J("ngIf",!Nt.loading),_.xp6(1),_.Q6J("ngIf",!Nt.loading&&void 0!==Nt.stepper&&"results"!==Nt.state),_.xp6(1),_.Q6J("ngIf","results"===Nt.state))},dependencies:[v.sg,v.O5,Y.ey,X.TO,X.KE,X.hX,ne.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,te.lW,g.uh,g.xY,g.H8,ue.gD,we.Ou,E.gM,O.VQ,O.U0,H.C0,H.VY,H.Vq,Q.VK,Q.OP,Q.p6,W.w,me.W,N.L,ye,L.r,V.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),yt})();var It=h(38383);function jt(yt,rn){1&yt&&_._UZ(0,"mat-spinner",12)}const sn=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Kt(yt,rn){if(1&yt&&_._UZ(0,"perun-web-apps-members-list",13),2&yt){const nt=_.oxw();_.Q6J("disableRouting",!0)("hidden",nt.loading)("disableStatusChange",!0)("members",nt.members)("selection",nt.selection)("displayedColumns",_.DdM(7,sn))("tableId",nt.tableId)}}function on(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",14),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let fn=(()=>{class yt{constructor(nt,Nt,je,Ht,$e,vt){this.dialogRef=nt,this.data=Nt,this.store=je,this.membersService=Ht,this.notificator=$e,this.translate=vt,this.loading=!1,this.tableId=A.US,this.expiration="never",this.searchCtrl=new T.p4("",[T.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new d.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(nt){if(this.loading=!0,0===nt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Nt=nt.pop();Nt.sponsored?this.membersService.sponsorMember(Nt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(nt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(Nt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(nt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const nt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(nt)}setExpiration(nt){this.expiration="never"===nt?"never":(0,v.p6)(nt,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[Oe.r.MEMBER_DEF_EXPIRATION,Oe.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(Nt=>{this.members=Nt,this.loading=!1},()=>this.loading=!1))}}return yt.\u0275fac=function(nt){return new(nt||yt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(C.d6),_.Y36(e.uq),_.Y36(C.V6),_.Y36(V.sK))},yt.\u0275cmp=_.Xpm({type:yt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(nt,Nt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label")(7,"input",3),_.NdJ("keyup.enter",function(){return Nt.onSearchByString()}),_.ALo(8,"translate"),_.qZA()(),_.TgZ(9,"mat-error"),_._uU(10),_.ALo(11,"translate"),_.qZA()(),_.TgZ(12,"button",4),_.NdJ("click",function(){return Nt.onSearchByString()}),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.YNc(15,jt,1,0,"mat-spinner",5),_.YNc(16,Kt,1,8,"perun-web-apps-members-list",6),_.YNc(17,on,3,3,"perun-web-apps-alert",7),_.TgZ(18,"div"),_._UZ(19,"br"),_.TgZ(20,"h6"),_._uU(21),_.ALo(22,"translate"),_.qZA(),_.TgZ(23,"perun-web-apps-expiration-select",8),_.NdJ("datePicker",function(Ht){return Nt.setExpiration(Ht)}),_.qZA()()(),_.TgZ(24,"div",9)(25,"button",10),_.NdJ("click",function(){return Nt.onCancel()}),_._uU(26),_.ALo(27,"translate"),_.qZA(),_.TgZ(28,"button",11),_.NdJ("click",function(){return Nt.onSubmit()}),_._uU(29),_.ALo(30,"translate"),_.qZA()()()),2&nt&&(_.Tol(Nt.theme),_.xp6(2),_.Oqu(_.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),_.xp6(5),_.s9C("placeholder",_.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),_.Q6J("formControl",Nt.searchCtrl),_.xp6(3),_.hij(" ",_.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),_.xp6(2),_.Q6J("disabled",Nt.loading),_.xp6(1),_.hij(" ",_.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),_.xp6(2),_.Q6J("ngIf",Nt.loading),_.xp6(1),_.Q6J("ngIf",Nt.firstSearchDone),_.xp6(1),_.Q6J("ngIf",!Nt.firstSearchDone),_.xp6(4),_.Oqu(_.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),_.xp6(5),_.hij(" ",_.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),_.xp6(2),_.Q6J("disabled",Nt.loading||0===Nt.selection.selected.length),_.xp6(1),_.hij(" ",_.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[v.O5,X.TO,X.KE,ne.Nt,T.Fj,T.JJ,T.oH,te.lW,g.uh,g.xY,g.H8,we.Ou,W.w,It.O,ye,V.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),yt})();var kt=h(96308),Rt=h(30671),Ct=h(19352),Ft=h(58964),qt=h(94364),_n=h(50301),Mt=h(18750),Jt=h(20919),wt=h(5865);function rt(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"th",19)(1,"mat-checkbox",20),_.NdJ("change",function(je){_.CHM(nt);const Ht=_.oxw();return _.KtG(je?Ht.masterToggle():null)}),_.qZA()()}if(2&yt){const nt=_.oxw();_.xp6(1),_.Q6J("aria-label",nt.checkboxLabel())("checked",nt.selection.hasValue()&&nt.isAllSelected())("indeterminate",nt.selection.hasValue()&&!nt.isAllSelected())}}function bt(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"td",21)(1,"mat-checkbox",22),_.NdJ("change",function(je){const $e=_.CHM(nt).$implicit,vt=_.oxw();return _.KtG(je?vt.selection.toggle($e):null)})("click",function(je){return je.stopPropagation()}),_.qZA()()}if(2&yt){const nt=rn.$implicit,Nt=_.oxw();_.xp6(1),_.Q6J("aria-label",Nt.checkboxLabel(nt))("checked",Nt.selection.isSelected(nt))}}function at(yt,rn){1&yt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function qe(yt,rn){if(1&yt&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&yt){const nt=rn.$implicit;_.xp6(1),_.hij(" ",nt.member.id," ")}}function At(yt,rn){1&yt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function z(yt,rn){if(1&yt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"userFullName"),_.qZA()),2&yt){const nt=rn.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.member.user)," ")}}function Fe(yt,rn){1&yt&&(_.TgZ(0,"th",26),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function mt(yt,rn){if(1&yt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"memberEmail"),_.qZA()),2&yt){const nt=rn.$implicit;_.xp6(1),_.Oqu(_.lcZ(2,1,nt.member))}}function St(yt,rn){1&yt&&(_.TgZ(0,"th",26),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function en(yt,rn){if(1&yt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"memberLogins"),_.qZA()),2&yt){const nt=rn.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.member)," ")}}function vn(yt,rn){1&yt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function Un(yt,rn){if(1&yt&&(_.TgZ(0,"span"),_._uU(1),_.ALo(2,"userFullName"),_._UZ(3,"br"),_.qZA()),2&yt){const nt=rn.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.user),"")}}function Hn(yt,rn){if(1&yt&&(_.TgZ(0,"td",25),_.YNc(1,Un,4,3,"span",27),_.qZA()),2&yt){const nt=rn.$implicit;_.xp6(1),_.Q6J("ngForOf",nt.sponsors)}}function qn(yt,rn){1&yt&&_._UZ(0,"th",23)}function si(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"span",30),_.ALo(1,"translate"),_.TgZ(2,"button",31),_.NdJ("mouseenter",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.disableRouting=!0)})("mouseleave",function(){_.CHM(nt);const je=_.oxw(2);return _.KtG(je.disableRouting=je.routingStrategy)})("click",function(){_.CHM(nt);const je=_.oxw().$implicit,Ht=_.oxw();return _.KtG(Ht.resetPassword(je))}),_.TgZ(3,"mat-icon"),_._uU(4,"vpn_key"),_.qZA()()()}if(2&yt){const nt=_.oxw(2);_.Q6J("matTooltipPosition","above")("matTooltip",_.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),_.xp6(2),_.Q6J("disabled",nt.loading)}}function li(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"td",25)(1,"button",28),_.NdJ("click",function(){const Ht=_.CHM(nt).$implicit,$e=_.oxw();return _.KtG($e.showSponsors(Ht))})("mouseenter",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.disableRouting=!0)})("mouseleave",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.disableRouting=je.routingStrategy)}),_.TgZ(2,"mat-icon"),_._uU(3,"edit"),_.qZA()(),_.YNc(4,si,5,5,"span",29),_.qZA()}if(2&yt){const nt=rn.$implicit,Nt=_.oxw();_.xp6(4),_.Q6J("ngIf",Nt.passwdResetAuth(nt))}}function Zn(yt,rn){1&yt&&_._UZ(0,"tr",32)}const On=function(yt,rn){return["/organizations",yt,"members",rn]};function Yi(yt,rn){if(1&yt&&_._UZ(0,"tr",33),2&yt){const nt=rn.$implicit,Nt=_.oxw();_.ekj("cursor-pointer",!Nt.disableRouting)("disable-outline",Nt.disableRouting),_.Q6J("perunWebAppsMiddleClickRouterLink",Nt.disableRouting?null:_.WLB(6,On,nt.member.voId,nt.member.id))("routerLink",Nt.disableRouting?null:_.WLB(9,On,nt.member.voId,nt.member.id))}}function jn(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function zn(yt,rn){1&yt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let ki=(()=>{class yt{constructor(nt,Nt,je,Ht,$e){this.dialog=nt,this.authResolver=Nt,this.storeService=je,this.attributesManager=Ht,this.tableCheckbox=$e,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new _.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(nt){this.sort=nt}static getSortDataForColumn(nt,Nt){switch(Nt){case"id":return nt.member.id.toString();case"name":return nt.member.user?nt.member.user.lastName?nt.member.user.lastName:nt.member.user.firstName??"":"";case"sponsors":return nt.sponsors.length.toString();default:return""}}static getDataForColumn(nt,Nt){switch(Nt){case"id":return nt.member.id.toString();case"name":return nt.member.user?(0,w.bD)(nt.member.user):"";case"sponsors":return nt.sponsors.map(je=>(0,w.bD)(je.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(nt=>"id"!==nt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportData(nt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,yt.getDataForColumn),nt)}setDataSource(){this.dataSource||(this.dataSource=new Rt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(nt,Nt)=>(0,w.Sd)(nt,Nt,this.displayedColumns,yt.getDataForColumn),this.dataSource.sortData=(nt,Nt)=>(0,w.pR)(nt,Nt,yt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(nt){const Nt=(0,w.kZ)();Nt.width="650px",Nt.data={sponsors:nt.sponsors,member:nt.member,theme:"vo-theme"},this.dialog.open(Ct.H,Nt).afterClosed().subscribe(Ht=>{Ht&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(nt){return nt?`${this.selection.isSelected(nt)?"deselect":"select"} row ${nt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(nt){this.loading=!0;const Nt=this.storeService.get("password_namespace_attributes").map(je=>{const Ht=je.split(":");return Ht[Ht.length-1]});this.attributesManager.getLogins(nt.member.userId).subscribe(je=>{const Ht=je.filter(Gt=>Nt.includes(Gt.friendlyNameParameter)),$e=(0,w.kZ)();$e.width="400px",$e.data={userId:nt.member.userId,memberId:nt.member.id,logins:Ht},this.dialog.open(Ft.m,$e).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(nt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:nt.member.voId,beanName:"Vo"},nt.member])}}return yt.\u0275fac=function(nt){return new(nt||yt)(_.Y36(g.uw),_.Y36(C.x4),_.Y36(C.d6),_.Y36(e.H8),_.Y36(C.UA))},yt.\u0275cmp=_.Xpm({type:yt,selectors:[["app-sponsored-members-list"]],viewQuery:function(nt,Nt){if(1&nt&&(_.Gf(w.l9,7),_.Gf(kt.YE,7)),2&nt){let je;_.iGM(je=_.CRH())&&(Nt.child=je.first),_.iGM(je=_.CRH())&&(Nt.matSort=je.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[_.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(nt,Nt){1&nt&&(_.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),_.NdJ("exportData",function(Ht){return Nt.exportData(Ht)}),_.TgZ(2,"table",2),_.ynx(3,3),_.YNc(4,rt,2,3,"th",4),_.YNc(5,bt,2,2,"td",5),_.BQk(),_.ynx(6,6),_.YNc(7,at,3,3,"th",7),_.YNc(8,qe,2,1,"td",8),_.BQk(),_.ynx(9,9),_.YNc(10,At,3,3,"th",7),_.YNc(11,z,3,3,"td",10),_.BQk(),_.ynx(12,11),_.YNc(13,Fe,3,3,"th",12),_.YNc(14,mt,3,3,"td",10),_.BQk(),_.ynx(15,13),_.YNc(16,St,3,3,"th",12),_.YNc(17,en,3,3,"td",10),_.BQk(),_.ynx(18,14),_.YNc(19,vn,3,3,"th",7),_.YNc(20,Hn,2,1,"td",10),_.BQk(),_.ynx(21,15),_.YNc(22,qn,1,0,"th",7),_.YNc(23,li,5,1,"td",10),_.BQk(),_.YNc(24,Zn,1,0,"tr",16),_.YNc(25,Yi,1,12,"tr",17),_.qZA()()(),_.YNc(26,jn,3,3,"perun-web-apps-alert",18),_.YNc(27,zn,3,3,"perun-web-apps-alert",18)),2&nt&&(_.Q6J("hidden",0===Nt.dataSource.filteredData.length||0===Nt.sponsoredMembers.length),_.xp6(1),_.Q6J("pageSizeOptions",Nt.pageSizeOptions)("dataLength",Nt.dataSource.filteredData.length)("tableId",Nt.tableId),_.xp6(1),_.Q6J("dataSource",Nt.dataSource),_.xp6(22),_.Q6J("matHeaderRowDef",Nt.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",Nt.displayedColumns),_.xp6(1),_.Q6J("ngIf",0===Nt.dataSource.filteredData.length&&0!==Nt.sponsoredMembers.length),_.xp6(1),_.Q6J("ngIf",0===Nt.sponsoredMembers.length))},dependencies:[v.sg,v.O5,qt.rH,le.Hw,te.lW,kt.YE,kt.nU,Rt.BZ,Rt.fO,Rt.as,Rt.w1,Rt.Dz,Rt.nj,Rt.ge,Rt.ev,Rt.XQ,Rt.Gk,fe.oG,E.gM,W.w,_n.YH,Mt.l,V.X$,Me.d,Jt.D,wt.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),yt})();var Vi=h(96214);function Oi(yt,rn){if(1&yt&&(_.TgZ(0,"button",10),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&yt){const nt=_.oxw(),Nt=_.MAs(9);_.Q6J("disabled",nt.findSponsorsAuth&&0===nt.voSponsors.length)("matMenuTriggerFor",Nt),_.xp6(1),_.hij(" ",_.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function _i(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onCreate())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function gi(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onGenerate())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function Ir(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"button",12),_.NdJ("click",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.onSponsorExistingMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&yt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ir(yt,rn){1&yt&&_._UZ(0,"mat-spinner",13)}function fr(yt,rn){if(1&yt){const nt=_.EpF();_.TgZ(0,"app-sponsored-members-list",14),_.NdJ("refreshTable",function(){_.CHM(nt);const je=_.oxw();return _.KtG(je.refresh())}),_.qZA()}if(2&yt){const nt=_.oxw();_.Q6J("disableRouting",!nt.routeAuth)("selection",nt.selection)("filterValue",nt.searchString)("sponsoredMembers",nt.members)("tableId",nt.tableId)}}let rr=(()=>{class yt{constructor(nt,Nt,je,Ht,$e,vt){this.membersManager=nt,this.dialog=Nt,this.authResolver=je,this.storeService=Ht,this.authzResolver=$e,this.entityStorageService=vt,this.members=[],this.voSponsors=[],this.selection=new d.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=A.Bf,this.attrNames=[Oe.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights();const nt=["SPONSOR"],Nt=new Map;this.authResolver.setRolesAuthorization(nt,this.vo,Nt),this.findSponsorsAuth=Nt.get(nt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(R.u.SPONSOR,this.vo.id,"Vo",[Oe.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(Ht=>{this.voSponsors=Ht,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const nt=(0,w.kZ)();nt.width="620px",nt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(ae,nt).afterClosed().subscribe(je=>{je&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ht=>{this.storeService.setPerunPrincipal(Ht),this.refresh()}))})}onGenerate(){const nt=(0,w.kZ)();nt.width="750px",nt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(lt,nt).afterClosed().subscribe(je=>{je&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ht=>{this.storeService.setPerunPrincipal(Ht),this.refresh()}))})}onSponsorExistingMember(){const nt=(0,w.kZ)();nt.width="650px",nt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(fn,nt).afterClosed().subscribe(je=>{je&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ht=>{this.storeService.setPerunPrincipal(Ht),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(nt=>{this.selection.clear(),this.members=nt,this.setAuthRights(),this.loading=!1})}applyFilter(nt){this.searchString=nt}}return yt.id="VoSponsoredMembersComponent",yt.\u0275fac=function(nt){return new(nt||yt)(_.Y36(e.uq),_.Y36(g.uw),_.Y36(C.x4),_.Y36(C.d6),_.Y36(e.Ct),_.Y36(C.fb))},yt.\u0275cmp=_.Xpm({type:yt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(nt,Nt){2&nt&&_.ekj("router-component",Nt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(nt,Nt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return Nt.refresh()}),_.qZA(),_.TgZ(5,"span",2),_.ALo(6,"translate"),_.YNc(7,Oi,3,5,"button",3),_.qZA(),_.TgZ(8,"mat-menu",null,4),_.YNc(10,_i,3,3,"button",5),_.YNc(11,gi,3,3,"button",5),_.qZA(),_.YNc(12,Ir,3,3,"button",6),_.TgZ(13,"perun-web-apps-immediate-filter",7),_.NdJ("filter",function(Ht){return Nt.applyFilter(Ht)}),_.qZA(),_.YNc(14,ir,1,0,"mat-spinner",8),_.YNc(15,fr,1,5,"app-sponsored-members-list",9),_.qZA()),2&nt&&(_.xp6(2),_.Oqu(_.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),_.xp6(3),_.s9C("matTooltip",_.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),_.Q6J("matTooltipDisabled",!(Nt.findSponsorsAuth&&0===Nt.voSponsors.length)),_.xp6(2),_.Q6J("ngIf",Nt.createAuth||Nt.generateAuth),_.xp6(3),_.Q6J("ngIf",Nt.createAuth),_.xp6(1),_.Q6J("ngIf",Nt.generateAuth),_.xp6(1),_.Q6J("ngIf",Nt.setSponsorshipAuth),_.xp6(1),_.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),_.xp6(1),_.Q6J("ngIf",Nt.loading),_.xp6(1),_.Q6J("ngIf",!Nt.loading))},dependencies:[v.O5,te.lW,we.Ou,E.gM,Q.VK,Q.OP,Q.p6,ki,Vi.t,N.L,V.X$]}),yt})()},25309:(Je,pe,h)=>{"use strict";h.d(pe,{Y:()=>ze});var e=h(32105),d=h(9244),A=h(32080),w=h(11717),g=h(95017),C=h(65412),T=h(24006),v=h(94650),R=h(89383),U=h(94364),_=h(36895),V=h(59549),Y=h(284),X=h(4859),ne=h(51572),le=h(10266);function te(he,De){1&he&&v._UZ(0,"mat-spinner",3)}function fe(he,De){if(1&he){const j=v.EpF();v.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),v._UZ(3,"input",5),v.ALo(4,"translate"),v.TgZ(5,"mat-error"),v._uU(6),v.ALo(7,"translate"),v.qZA()(),v.TgZ(8,"mat-form-field"),v._UZ(9,"input",6),v.ALo(10,"translate"),v.TgZ(11,"mat-error"),v._uU(12),v.ALo(13,"translate"),v.qZA()()(),v.TgZ(14,"div",7)(15,"button",8),v.NdJ("click",function(){v.CHM(j);const G=v.oxw();return v.KtG(G.onCancel())}),v._uU(16),v.ALo(17,"translate"),v.qZA(),v.TgZ(18,"div",9),v.ALo(19,"translate"),v.TgZ(20,"button",10),v.NdJ("click",function(){v.CHM(j);const G=v.oxw();return v.KtG(G.onSubmit())}),v._uU(21),v.ALo(22,"translate"),v.qZA()()()()}if(2&he){const j=v.oxw();v.xp6(3),v.s9C("placeholder",v.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),v.Q6J("formControl",j.fullNameCtrl),v.xp6(3),v.hij(" ",v.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),v.xp6(3),v.s9C("placeholder",v.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),v.Q6J("formControl",j.shortNameCtrl),v.xp6(3),v.hij(" ",v.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),v.xp6(4),v.hij(" ",v.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),v.xp6(2),v.s9C("matTooltip",v.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),v.Q6J("matTooltipDisabled",j.shortNameCtrl.valid&&j.fullNameCtrl.valid),v.xp6(2),v.Q6J("disabled",j.shortNameCtrl.invalid||j.fullNameCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let ue=(()=>{class he{constructor(j,P,G,ce,q,Te){this.dialogRef=j,this.data=P,this.notificator=G,this.voService=ce,this.translate=q,this.router=Te,q.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(He=>this.successMessage=He)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern("^[\\w.-]+$"),T.kI.maxLength(33)]),this.fullNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(j=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",j.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return he.\u0275fac=function(j){return new(j||he)(v.Y36(C.so),v.Y36(C.WI),v.Y36(A.V6),v.Y36(e.YF),v.Y36(R.sK),v.Y36(U.F0))},he.\u0275cmp=v.Xpm({type:he,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(j,P){1&j&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,te,1,0,"mat-spinner",1),v.YNc(5,fe,23,25,"div",2),v.qZA()),2&j&&(v.Tol(P.theme),v.xp6(2),v.Oqu(v.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),v.xp6(2),v.Q6J("ngIf",P.loading),v.xp6(1),v.Q6J("ngIf",!P.loading))},dependencies:[_.O5,V.TO,V.KE,Y.Nt,T.Fj,T.JJ,T.Q7,T.oH,X.lW,C.uh,C.xY,C.H8,ne.Ou,le.gM,R.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),he})();var we=h(10036),E=h(77968),O=h(97392),H=h(87831),W=h(96214),$=h(4235),de=h(7434);function ye(he,De){if(1&he){const j=v.EpF();v.TgZ(0,"button",9),v.NdJ("click",function(){v.CHM(j);const G=v.oxw();return v.KtG(G.onCreateVo())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}2&he&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function xe(he,De){if(1&he){const j=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(j);const G=v.oxw();return v.KtG(G.onRemoveVo())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&he){const j=v.oxw();v.Q6J("disabled",0===j.selection.selected.length),v.xp6(1),v.hij(" ",v.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Me(he,De){1&he&&v._UZ(0,"mat-spinner",11)}function Ze(he,De){if(1&he&&v._UZ(0,"perun-web-apps-vos-list",12),2&he){const j=v.oxw();v.Q6J("tableId",j.tableId)("displayedColumns",j.displayedColumns)("filterValue",j.filterValue)("recentIds",j.recentIds)("selection",j.selection)("vos",j.vos)}}const se=function(){return{color:"black"}};let ze=(()=>{class he{constructor(j,P,G,ce,q,Te){this.sideMenuService=j,this.voService=P,this.guiAuthResolver=G,this.dialog=ce,this.notificator=q,this.apiRequest=Te,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=we.tw}ngOnInit(){this.loading=!0,this.selection=new g.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe(j=>{this.vos=j,this.recentIds=(0,d.vL)("vos"),this.loading=!1},j=>{const P=j.error;"PrivilegeException"===P.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(P)})}applyFilter(j){this.filterValue=j}onCreateVo(){const j=(0,d.kZ)();j.width="610px",j.data={theme:"vo-theme"},this.dialog.open(ue,j).afterClosed().subscribe(G=>{G&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const j=(0,d.kZ)();j.width="500px",j.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,j).afterClosed().subscribe(G=>{G&&this.refreshTable()})}}return he.id="VoSelectPageComponent",he.\u0275fac=function(j){return new(j||he)(v.Y36(E.D),v.Y36(e.YF),v.Y36(A.x4),v.Y36(C.uw),v.Y36(A.V6),v.Y36(A.F5))},he.\u0275cmp=v.Xpm({type:he,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(j,P){2&j&&v.ekj("router-component",P.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(j,P){1&j&&(v.TgZ(0,"div",0),v._UZ(1,"perun-web-apps-back-button"),v.TgZ(2,"h1",1),v._UZ(3,"mat-icon",2),v._uU(4),v.ALo(5,"translate"),v.qZA(),v.TgZ(6,"perun-web-apps-refresh-button",3),v.NdJ("refresh",function(){return P.refreshTable()}),v.qZA(),v.YNc(7,ye,3,3,"button",4),v.YNc(8,xe,3,4,"button",5),v.TgZ(9,"perun-web-apps-immediate-filter",6),v.NdJ("filter",function(ce){return P.applyFilter(ce)}),v.qZA(),v.YNc(10,Me,1,0,"mat-spinner",7),v.YNc(11,Ze,1,6,"perun-web-apps-vos-list",8),v.qZA()),2&j&&(v.xp6(3),v.Q6J("ngStyle",v.DdM(10,se)),v.xp6(1),v.hij(" ",v.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),v.xp6(3),v.Q6J("ngIf",P.createAuth),v.xp6(1),v.Q6J("ngIf",P.deleteAuth),v.xp6(1),v.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),v.xp6(1),v.Q6J("ngIf",P.loading),v.xp6(1),v.Q6J("ngIf",!P.loading))},dependencies:[_.O5,_.PC,O.Hw,X.lW,ne.Ou,H.Z,W.t,$.W,de.L,R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),he})()},33246:(Je,pe,h)=>{"use strict";var e=h(11481),d=h(94650),A=h(94364);let w=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(S,k){}}),J})();var g=h(32105),C=h(32080),T=h(9244),v=h(16074),R=h(77968),U=h(89383),_=h(65412),V=h(36895),Y=h(24006),X=h(97392),ne=h(23267),le=h(4859),te=h(56709),fe=h(51572),ue=h(10266),we=h(87831),E=h(24179),O=h(62109),H=h(74010);function W(J,I){1&J&&d._UZ(0,"mat-spinner",7)}const $=function(){return["id","recent","shortName","name"]};function de(J,I){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-vos-list",8),d.qZA()),2&J){const S=d.oxw(2);d.xp6(1),d.Q6J("pageSizeOptions",null)("displayedColumns",d.DdM(4,$))("recentIds",S.recentIds)("vos",S.objects)}}const ye=function(){return["id","recent","vo","name","description"]};function xe(J,I){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-groups-list",9),d.qZA()),2&J){const S=d.oxw(2);d.xp6(1),d.Q6J("pageSizeOptions",null)("displayedColumns",d.DdM(4,ye))("groups",S.objects)("recentIds",S.recentIds)}}const Me=function(){return["id","recent","name","vo","facility"]};function Ze(J,I){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-resources-list",10),d.qZA()),2&J){const S=d.oxw(2);d.xp6(1),d.Q6J("pageSizeOptions",null)("displayedColumns",d.DdM(5,Me))("resources",S.objects)("recentIds",S.recentIds)("routingVo",!0)}}const se=function(){return["id","recent","name","description"]};function ze(J,I){if(1&J&&(d.TgZ(0,"span"),d._UZ(1,"perun-web-apps-facilities-list",11),d.qZA()),2&J){const S=d.oxw(2);d.xp6(1),d.Q6J("displayedColumns",d.DdM(4,se))("facilities",S.objects)("pageSizeOptions",null)("recentIds",S.recentIds)}}function he(J,I){if(1&J&&(d.TgZ(0,"div"),d.YNc(1,de,2,5,"span",6),d.YNc(2,xe,2,5,"span",6),d.YNc(3,Ze,2,6,"span",6),d.YNc(4,ze,2,5,"span",6),d.qZA()),2&J){const S=d.oxw();d.xp6(1),d.Q6J("ngIf","Vo"===S.primaryObject),d.xp6(1),d.Q6J("ngIf","Group"===S.primaryObject),d.xp6(1),d.Q6J("ngIf","Resource"===S.primaryObject),d.xp6(1),d.Q6J("ngIf","Facility"===S.primaryObject)}}let De=(()=>{class J{constructor(S,k,Pe){this.authzResolver=S,this.guiAuthResolver=k,this.resourceService=Pe,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(S=>{this.objects=S,this.recentIds=(0,T.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(S=>{this.objects=S,this.recentIds=(0,T.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(S=>{this.objects=S,this.recentIds=(0,T.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(S=>{this.objects=S.map(k=>({facility:k})),this.recentIds=(0,T.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(g.Ct),d.Y36(C.x4),d.Y36(g.xk))},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0)(1,"div",1),d._UZ(2,"mat-icon",2),d._uU(3),d.ALo(4,"translate"),d.TgZ(5,"span",3),d.ALo(6,"translate"),d.TgZ(7,"mat-icon",4),d._uU(8,"info_outline"),d.qZA()()(),d.YNc(9,W,1,0,"mat-spinner",5),d.YNc(10,he,5,4,"div",6),d.qZA()),2&S&&(d.xp6(2),d.Q6J("svgIcon",k.svgIcon),d.xp6(1),d.hij(" ",d.lcZ(4,5,k.title)," "),d.xp6(2),d.s9C("matTooltip",d.lcZ(6,7,k.roleTooltipInfo)),d.xp6(4),d.Q6J("ngIf",k.loading),d.xp6(1),d.Q6J("ngIf",!k.loading))},dependencies:[V.O5,X.Hw,fe.Ou,ue.gM,we.Z,E.W,O.C,H.X,U.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),J})();var j=h(3238),P=h(98380);function G(J,I){1&J&&d._UZ(0,"mat-spinner",3)}function ce(J,I){1&J&&(d.TgZ(0,"perun-web-apps-alert",4),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function q(J,I){if(1&J&&(d.TgZ(0,"div",7)(1,"a",8)(2,"span",9),d._uU(3),d.qZA(),d._UZ(4,"mat-icon",10),d.TgZ(5,"p",11),d._uU(6),d.qZA()()()),2&J){const S=I.$implicit;d.xp6(1),d.Gre("",S.style," item-itself"),d.s9C("matTooltip",S.tooltip),d.Q6J("routerLink",S.url),d.xp6(2),d.Oqu(S.type),d.xp6(1),d.Q6J("svgIcon",S.cssIcon),d.xp6(2),d.Oqu(S.label)}}function Te(J,I){if(1&J&&(d.TgZ(0,"div",5),d.YNc(1,q,7,8,"div",6),d.qZA()),2&J){const S=d.oxw();d.xp6(1),d.Q6J("ngForOf",S.items)}}let He=(()=>{class J{constructor(S,k,Pe,it){this.vosManager=S,this.groupsManager=k,this.authResolver=Pe,this.facilitiesManager=it,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,T.j4)("recent");for(const S of this.recentItems)switch(S.type){case"Vo":this.vosIds.push(S.id);break;case"Group":this.groupsIds.push(S.id);break;case"Facility":this.facilitiesIds.push(S.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(S=>{this.vos=S,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(S=>{this.groups=S,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(S=>{this.facilities=S,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const S of this.recentItems)switch(S.type){case"Vo":{const k=this.vos.filter(Pe=>Pe.id===S.id)[0];k&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${k.id}`,label:k.name,tooltip:k.name,style:"vo-btn",type:"Organization"});break}case"Group":{const k=this.groups.filter(Pe=>Pe.id===S.id)[0];k&&this.items.push({cssIcon:"perun-group",url:`/organizations/${k.voId}/groups/${k.id}`,label:k.shortName,tooltip:`${S.voName} : ${k.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const k=this.facilities.filter(Pe=>Pe.id===S.id)[0];k&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${k.id}`,label:k.name,tooltip:k.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(g.YF),d.Y36(g.ff),d.Y36(C.x4),d.Y36(g.IQ))},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(S,k){1&S&&(d.YNc(0,G,1,0,"mat-spinner",0),d.YNc(1,ce,3,3,"perun-web-apps-alert",1),d.YNc(2,Te,2,1,"div",2)),2&S&&(d.Q6J("ngIf",k.loading),d.xp6(1),d.Q6J("ngIf",0===k.items.length&&!k.loading),d.xp6(1),d.Q6J("ngIf",k.items.length>0))},dependencies:[V.sg,V.O5,A.yS,X.Hw,fe.Ou,ue.gM,j.wG,P.w,U.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),J})();var dt=h(31359);function et(J,I){if(1&J){const S=d.EpF();d.TgZ(0,"div")(1,"mat-checkbox",8),d.NdJ("change",function(Pe){const Dt=d.CHM(S).$implicit,Ot=d.oxw();return d.KtG(Pe?Ot.changeRoleView(Dt):null)}),d._uU(2),d.ALo(3,"translate"),d.qZA()()}if(2&J){const S=I.$implicit,k=d.oxw();d.xp6(1),d.Q6J("checked",k.isRoleShowed(S)),d.xp6(1),d.Oqu(d.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+S))}}function _t(J,I){if(1&J){const S=d.EpF();d.TgZ(0,"button",15),d.NdJ("click",function(){d.CHM(S);const Pe=d.oxw(2);return d.KtG(Pe.rightSettingOpened=!0)}),d.TgZ(1,"mat-icon"),d._uU(2,"settings"),d.qZA()()}}function Qe(J,I){1&J&&(d.TgZ(0,"span"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function st(J,I){1&J&&(d.TgZ(0,"span"),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function Z(J,I){if(1&J){const S=d.EpF();d.TgZ(0,"button",23),d.NdJ("click",function(){d.CHM(S);const Pe=d.oxw(3);return d.KtG(Pe.goToUserProfile())}),d.TgZ(1,"mat-icon",24),d._uU(2,"exit_to_app"),d.qZA(),d._uU(3),d.ALo(4,"translate"),d.qZA()}if(2&J){const S=d.oxw(3);d.xp6(3),d.AsE("",d.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",S.userProfileName," ")}}const ve=function(){return["/myProfile"]};function oe(J,I){if(1&J&&(d.TgZ(0,"div")(1,"div",16)(2,"div",17),d._uU(3),d.ALo(4,"translate"),d.qZA(),d.TgZ(5,"div",18),d.YNc(6,Qe,3,3,"span",14),d.YNc(7,st,3,3,"span",14),d.qZA(),d.TgZ(8,"div",19)(9,"button",20),d._UZ(10,"mat-icon",21),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.YNc(13,Z,5,4,"button",22),d.qZA()()()),2&J){const S=d.oxw(2);d.xp6(3),d.hij(" ",d.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),d.xp6(3),d.Q6J("ngIf",!S.userProfileUrl),d.xp6(1),d.Q6J("ngIf",S.userProfileUrl),d.xp6(2),d.Q6J("routerLink",d.DdM(10,ve)),d.xp6(2),d.hij(" ",d.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),d.xp6(2),d.Q6J("ngIf",S.userProfileUrl)}}function ge(J,I){1&J&&(d.TgZ(0,"span")(1,"div",3),d._uU(2),d.ALo(3,"translate"),d.qZA(),d._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),d.qZA()),2&J&&(d.xp6(2),d.hij(" ",d.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function ae(J,I){1&J&&(d.TgZ(0,"div",27),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function Oe(J,I){if(1&J&&d._UZ(0,"app-perun-web-apps-dashboard-card",30),2&J){const S=d.oxw().$implicit,k=d.oxw(3);d.Q6J("roleName",S)("role",k.roles[S])}}function Q(J,I){if(1&J&&(d.TgZ(0,"div",28),d.YNc(1,Oe,1,2,"app-perun-web-apps-dashboard-card",29),d.qZA()),2&J){const S=I.$implicit,k=d.oxw(3);d.xp6(1),d.Q6J("ngIf",k.isRoleShowed(S))}}function me(J,I){if(1&J&&(d.TgZ(0,"div"),d.YNc(1,ge,5,3,"span",14),d.YNc(2,ae,3,3,"div",25),d.TgZ(3,"div"),d.YNc(4,Q,2,1,"div",26),d.qZA()()),2&J){const S=d.oxw(2);d.xp6(1),d.Q6J("ngIf",S.recentlyViewedShow),d.xp6(1),d.Q6J("ngIf",S.rolesToHide.toString()!==S.roleNames.toString()),d.xp6(2),d.Q6J("ngForOf",S.roleNames)}}function N(J,I){if(1&J&&(d.TgZ(0,"div",9)(1,"h1",10),d._UZ(2,"mat-icon",11),d.TgZ(3,"span",12),d._uU(4),d.ALo(5,"translate"),d.ALo(6,"userFullName"),d.qZA(),d.YNc(7,_t,3,0,"button",13),d.qZA(),d.YNc(8,oe,14,11,"div",14),d.YNc(9,me,5,3,"div",14),d.qZA()),2&J){const S=d.oxw();d.xp6(4),d.AsE("",d.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",d.lcZ(6,7,S.user),""),d.xp6(3),d.Q6J("ngIf",!S.isOnlySelfRole),d.xp6(1),d.Q6J("ngIf",S.isOnlySelfRole),d.xp6(1),d.Q6J("ngIf",!S.isOnlySelfRole)}}let L=(()=>{class J{constructor(S,k,Pe,it,Dt,Ot,Zt,Xt,pn,bn){this.userManager=S,this.storeService=k,this.sideMenuService=Pe,this.route=it,this.router=Dt,this.notificator=Ot,this.translateService=Zt,this.dialog=Xt,this.apiRequestConfiguration=pn,this.otherApplicationService=bn,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","FACILITYOBSERVER","RESOURCEOBSERVER"],Zt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(Ln=>this.mailSuccessMessage=Ln)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const S=Object.keys(this.roles);this.isOnlySelfRole=S.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(k=>S.includes(k)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(S){if(this.isRoleShowed(S)){const k=[];for(const Pe of this.roleNames)this.isRoleShowed(Pe)||k.push(Pe),Pe===S&&k.push(Pe);this.rolesToHide=k}else this.rolesToHide=this.rolesToHide.filter(k=>k!==S);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(S){return!this.rolesToHide.includes(S)}validatePreferredMailChange(){const S=this.route.snapshot.queryParamMap,k=S.get("token"),Pe=S.get("u");k&&Pe&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(k,Number.parseInt(Pe,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const it=(0,T.kZ)();it.width="600px",this.dialog.open(v.qD,it).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const S=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===S||S;const k=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===k?[]:k}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(g.Fv),d.Y36(C.d6),d.Y36(R.D),d.Y36(A.gz),d.Y36(A.F0),d.Y36(C.V6),d.Y36(U.sK),d.Y36(_.uw),d.Y36(C.F5),d.Y36(C.jq))},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(S,k){2&S&&d.ekj("router-component",k.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(S,k){1&S&&(d.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),d.NdJ("openedChange",function(it){return k.rightSettingOpened=it}),d.TgZ(2,"div",2)(3,"div",3),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"div")(7,"mat-checkbox",4),d.NdJ("ngModelChange",function(it){return k.recentlyViewedShow=it})("change",function(it){return it?k.recentlyViewedChanged():null}),d._uU(8),d.ALo(9,"translate"),d.qZA()(),d.TgZ(10,"div",5),d._uU(11),d.ALo(12,"translate"),d.qZA(),d.YNc(13,et,4,4,"div",6),d.qZA()(),d.TgZ(14,"mat-sidenav-content"),d.YNc(15,N,10,9,"div",7),d.qZA()()),2&S&&(d.xp6(1),d.Q6J("opened",k.rightSettingOpened),d.xp6(3),d.Oqu(d.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),d.xp6(3),d.Q6J("ngModel",k.recentlyViewedShow),d.xp6(1),d.Oqu(d.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),d.xp6(3),d.Oqu(d.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),d.xp6(2),d.Q6J("ngForOf",k.roleNames),d.xp6(2),d.Q6J("ngIf",void 0!==k.user))},dependencies:[V.sg,V.O5,A.rH,Y.JJ,Y.On,X.Hw,ne.JX,ne.TM,ne.Rh,le.lW,te.oG,De,He,U.X$,dt.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),J})();var r=h(4235);let s=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0),d._UZ(1,"perun-web-apps-back-button"),d.TgZ(2,"h1",1),d._uU(3),d.ALo(4,"translate"),d.qZA()()),2&S&&(d.xp6(3),d.Oqu(d.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[r.W,U.X$]}),J})();var m=h(33604),l=h(59549),o=h(284),n=h(63189);let t=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[V.ez,le.ot,X.Ps,A.Bz,m.ez,U.aw,l.lN,Y.UX,o.c,n.r]}),J})(),i=(()=>{class J{constructor(S,k){this.auth=S,this.router=k}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(C.e8),d.Y36(A.F0))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"button",4),d.NdJ("click",function(){return k.startAuth()}),d._uU(7),d.ALo(8,"translate"),d.TgZ(9,"mat-icon"),d._uU(10," login "),d.qZA()()()()()),2&S&&(d.xp6(4),d.hij(" ",d.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),d.xp6(3),d.hij(" ",d.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[le.lW,X.Hw,U.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),J})();var a=h(41619);function c(J,I){if(1&J&&(d.TgZ(0,"div",8),d._UZ(1,"div",9),d.qZA()),2&J){const S=d.oxw();d.xp6(1),d.Q6J("innerHTML",S.logo,d.oJD)}}function p(J,I){if(1&J&&(d.TgZ(0,"div",10),d._UZ(1,"div",11)(2,"mat-icon",12),d.qZA()),2&J){const S=d.oxw();d.xp6(1),d.Q6J("innerHTML",S.logo,d.oJD)}}const M=function(J){return{color:J}};function Ne(J,I){if(1&J&&(d.TgZ(0,"p",13),d._uU(1),d.qZA()),2&J){const S=d.oxw();d.Q6J("ngStyle",d.VKq(2,M,S.textColor)),d.xp6(1),d.hij(" ",S.headerTitle," ")}}const Pt=function(J,I){return{background:J,color:I}},Ut=function(J,I){return{"min-height":J,"background-color":I}};let ln=(()=>{class J{constructor(S,k,Pe,it){this.storeService=S,this.sanitizer=k,this.preferredLangService=Pe,this.translateService=it,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const S=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(S)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(C.d6),d.Y36(e.H7),d.Y36(C.BN),d.Y36(U.sK))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0),d.YNc(1,c,2,1,"div",1),d.YNc(2,p,3,1,"div",2),d.YNc(3,Ne,2,4,"p",3),d.qZA(),d.TgZ(4,"div",4)(5,"div",5)(6,"div",6),d._UZ(7,"router-outlet"),d.qZA(),d.TgZ(8,"div",7),d._UZ(9,"perun-web-apps-footer"),d.qZA()()()),2&S&&(d.Q6J("ngStyle",d.WLB(5,Pt,k.headerBackgroundColor,k.headerTextColor)),d.xp6(1),d.Q6J("ngIf","admin-gui"===k.application||"user-profile"===k.application||"consolidator"===k.application),d.xp6(1),d.Q6J("ngIf","publications"===k.application),d.xp6(1),d.Q6J("ngIf",!!k.headerTitle),d.xp6(2),d.Q6J("ngStyle",d.WLB(8,Ut,k.getContentInnerMinHeight(),k.contentBackgroundColor)))},dependencies:[V.O5,V.PC,X.Hw,A.lC,a.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),J})();function xt(J,I){1&J&&(d.TgZ(0,"perun-web-apps-alert",8),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Ge=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:m.t$},{path:"api-callback",component:w},{path:"login",component:i},{path:"service-access",component:(()=>{class J{constructor(S){this.authzService=S,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Y.p4(null,[Y.kI.required]),this.passwordCtrl=new Y.p4(null,[Y.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(S=>{sessionStorage.setItem("baPrincipal",JSON.stringify(S)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(g.Ct))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.YNc(6,xt,3,3,"perun-web-apps-alert",3),d.TgZ(7,"mat-form-field",4)(8,"mat-label"),d._uU(9),d.ALo(10,"translate"),d.qZA(),d._UZ(11,"input",5),d.TgZ(12,"mat-error"),d._uU(13),d.ALo(14,"translate"),d.qZA()(),d.TgZ(15,"mat-form-field",4)(16,"mat-label"),d._uU(17),d.ALo(18,"translate"),d.qZA(),d._UZ(19,"input",6),d.TgZ(20,"mat-error"),d._uU(21),d.ALo(22,"translate"),d.qZA()(),d.TgZ(23,"button",7),d.NdJ("click",function(){return k.startAuth()}),d._uU(24),d.ALo(25,"translate"),d.TgZ(26,"mat-icon"),d._uU(27," login "),d.qZA()()()()()),2&S&&(d.xp6(4),d.Oqu(d.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),d.xp6(2),d.Q6J("ngIf",k.wrongUsernameOrPassword),d.xp6(3),d.Oqu(d.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),d.xp6(2),d.Q6J("formControl",k.usernameCtrl),d.xp6(2),d.hij(" ",d.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),d.xp6(4),d.Oqu(d.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),d.xp6(2),d.Q6J("formControl",k.passwordCtrl)("type","password"),d.xp6(2),d.hij(" ",d.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),d.xp6(2),d.Q6J("disabled",k.usernameCtrl.invalid||k.passwordCtrl.invalid),d.xp6(1),d.hij(" ",d.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[V.O5,le.lW,X.Hw,l.TO,l.KE,l.hX,Y.Fj,Y.JJ,Y.Q7,Y.oH,o.Nt,P.w,U.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),J})()},{path:"organizations",loadChildren:()=>Promise.all([h.e(969),h.e(323),h.e(243),h.e(858)]).then(h.bind(h,60858)).then(J=>J.VosModule)},{path:"admin",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(876)]).then(h.bind(h,62876)).then(J=>J.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(876),h.e(243),h.e(958)]).then(h.bind(h,12958)).then(J=>J.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([h.e(969),h.e(374)]).then(h.bind(h,46374)).then(J=>J.UsersModule)},{path:"home",component:L},{path:"notAuthorized",component:m.y9},{path:"**",component:s}];let Ie=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[A.Bz.forRoot(Ge,{preloadingStrategy:A.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),A.Bz]}),J})();var Xe=h(72077),Ke=h(14264);class ke{constructor(I,S="/assets/i18n/",k=".json"){this.http=I,this.prefix=S,this.suffix=k}getTranslation(I){return this.http.get(`${this.prefix}${I}${this.suffix}`)}}var Ae=h(80529),Ee=h(37340);function tt(J){return new d.vHH(3e3,!1)}function Yi(){return typeof window<"u"&&typeof window.document<"u"}function jn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function zn(J){switch(J.length){case 0:return new Ee.ZN;case 1:return J[0];default:return new Ee.ZE(J)}}function ki(J,I,S,k,Pe=new Map,it=new Map){const Dt=[],Ot=[];let Zt=-1,Xt=null;if(k.forEach(pn=>{const bn=pn.get("offset"),Ln=bn==Zt,kn=Ln&&Xt||new Map;pn.forEach((Dn,Bn)=>{let ai=Bn,ii=Dn;if("offset"!==Bn)switch(ai=I.normalizePropertyName(ai,Dt),ii){case Ee.k1:ii=Pe.get(Bn);break;case Ee.l3:ii=it.get(Bn);break;default:ii=I.normalizeStyleValue(Bn,ai,ii,Dt)}kn.set(ai,ii)}),Ln||Ot.push(kn),Xt=kn,Zt=bn}),Dt.length)throw function z(J){return new d.vHH(3502,!1)}();return Ot}function Vi(J,I,S,k){switch(I){case"start":J.onStart(()=>k(S&&Oi(S,"start",J)));break;case"done":J.onDone(()=>k(S&&Oi(S,"done",J)));break;case"destroy":J.onDestroy(()=>k(S&&Oi(S,"destroy",J)))}}function Oi(J,I,S){const it=_i(J.element,J.triggerName,J.fromState,J.toState,I||J.phaseName,S.totalTime??J.totalTime,!!S.disabled),Dt=J._data;return null!=Dt&&(it._data=Dt),it}function _i(J,I,S,k,Pe="",it=0,Dt){return{element:J,triggerName:I,fromState:S,toState:k,phaseName:Pe,totalTime:it,disabled:!!Dt}}function gi(J,I,S){let k=J.get(I);return k||J.set(I,k=S),k}function Ir(J){const I=J.indexOf(":");return[J.substring(1,I),J.slice(I+1)]}let ir=(J,I)=>!1,fr=(J,I,S)=>[],rr=null;function yt(J){const I=J.parentNode||J.host;return I===rr?null:I}(jn()||typeof Element<"u")&&(Yi()?(rr=(()=>document.documentElement)(),ir=(J,I)=>{for(;I;){if(I===J)return!0;I=yt(I)}return!1}):ir=(J,I)=>J.contains(I),fr=(J,I,S)=>{if(S)return Array.from(J.querySelectorAll(I));const k=J.querySelector(I);return k?[k]:[]});let Nt=null,je=!1;const Gt=ir,dn=fr;let Wn=(()=>{class J{validateStyleProperty(S){return function Ht(J){Nt||(Nt=function vt(){return typeof document<"u"?document.body:null}()||{},je=!!Nt.style&&"WebkitAppearance"in Nt.style);let I=!0;return Nt.style&&!function nt(J){return"ebkit"==J.substring(1,6)}(J)&&(I=J in Nt.style,!I&&je&&(I="Webkit"+J.charAt(0).toUpperCase()+J.slice(1)in Nt.style)),I}(S)}matchesElement(S,k){return!1}containsElement(S,k){return Gt(S,k)}getParentElement(S){return yt(S)}query(S,k,Pe){return dn(S,k,Pe)}computeStyle(S,k,Pe){return Pe||""}animate(S,k,Pe,it,Dt,Ot=[],Zt){return new Ee.ZN(Pe,it)}}return J.\u0275fac=function(S){return new(S||J)},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})(),Kn=(()=>{class J{}return J.NOOP=new Wn,J})();const mr="ng-enter",Vr="ng-leave",Si="ng-trigger",Tr=".ng-trigger",gr="ng-animating",or=".ng-animating";function ar(J){if("number"==typeof J)return J;const I=J.match(/^(-?[\.\d]+)(m?s)/);return!I||I.length<2?0:sr(parseFloat(I[1]),I[2])}function sr(J,I){return"s"===I?1e3*J:J}function _r(J,I,S){return J.hasOwnProperty("duration")?J:function Ar(J,I,S){let Pe,it=0,Dt="";if("string"==typeof J){const Ot=J.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ot)return I.push(tt()),{duration:0,delay:0,easing:""};Pe=sr(parseFloat(Ot[1]),Ot[2]);const Zt=Ot[3];null!=Zt&&(it=sr(parseFloat(Zt),Ot[4]));const Xt=Ot[5];Xt&&(Dt=Xt)}else Pe=J;if(!S){let Ot=!1,Zt=I.length;Pe<0&&(I.push(function ot(){return new d.vHH(3100,!1)}()),Ot=!0),it<0&&(I.push(function Re(){return new d.vHH(3101,!1)}()),Ot=!0),Ot&&I.splice(Zt,0,tt())}return{duration:Pe,delay:it,easing:Dt}}(J,I,S)}function lr(J,I={}){return Object.keys(J).forEach(S=>{I[S]=J[S]}),I}function Fr(J){const I=new Map;return Object.keys(J).forEach(S=>{I.set(S,J[S])}),I}function $i(J,I=new Map,S){if(S)for(let[k,Pe]of S)I.set(k,Pe);for(let[k,Pe]of J)I.set(k,Pe);return I}function Ur(J,I,S){return S?I+":"+S+";":""}function Ki(J){let I="";for(let S=0;S{const it=er(Pe);S&&!S.has(Pe)&&S.set(Pe,J.style[it]),J.style[it]=k}),jn()&&Ki(J))}function Xi(J,I){J.style&&(I.forEach((S,k)=>{const Pe=er(k);J.style[Pe]=""}),jn()&&Ki(J))}function Yn(J){return Array.isArray(J)?1==J.length?J[0]:(0,Ee.vP)(J):J}const Jr=new RegExp("{{\\s*(.+?)\\s*}}","g");function yr(J){let I=[];if("string"==typeof J){let S;for(;S=Jr.exec(J);)I.push(S[1]);Jr.lastIndex=0}return I}function wi(J,I,S){const k=J.toString(),Pe=k.replace(Jr,(it,Dt)=>{let Ot=I[Dt];return null==Ot&&(S.push(function It(J){return new d.vHH(3003,!1)}()),Ot=""),Ot.toString()});return Pe==k?J:Pe}function jr(J){const I=[];let S=J.next();for(;!S.done;)I.push(S.value),S=J.next();return I}const lo=/-+([a-z0-9])/g;function er(J){return J.replace(lo,(...I)=>I[1].toUpperCase())}function Ai(J){return J.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Be(J,I,S){switch(I.type){case 7:return J.visitTrigger(I,S);case 0:return J.visitState(I,S);case 1:return J.visitTransition(I,S);case 2:return J.visitSequence(I,S);case 3:return J.visitGroup(I,S);case 4:return J.visitAnimate(I,S);case 5:return J.visitKeyframes(I,S);case 6:return J.visitStyle(I,S);case 8:return J.visitReference(I,S);case 9:return J.visitAnimateChild(I,S);case 10:return J.visitAnimateRef(I,S);case 11:return J.visitQuery(I,S);case 12:return J.visitStagger(I,S);default:throw function jt(J){return new d.vHH(3004,!1)}()}}function ft(J,I){return window.getComputedStyle(J)[I]}function Ci(J,I){const S=[];return"string"==typeof J?J.split(/\s*,\s*/).forEach(k=>function Jn(J,I,S){if(":"==J[0]){const Zt=function ci(J,I){switch(J){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(S,k)=>parseFloat(k)>parseFloat(S);case":decrement":return(S,k)=>parseFloat(k) *"}}(J,S);if("function"==typeof Zt)return void I.push(Zt);J=Zt}const k=J.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==k||k.length<4)return S.push(function rt(J){return new d.vHH(3015,!1)}()),I;const Pe=k[1],it=k[2],Dt=k[3];I.push(Fi(Pe,Dt));"<"==it[0]&&!("*"==Pe&&"*"==Dt)&&I.push(Fi(Dt,Pe))}(k,S,I)):S.push(J),S}const nn=new Set(["true","1"]),Rn=new Set(["false","0"]);function Fi(J,I){const S=nn.has(J)||Rn.has(J),k=nn.has(I)||Rn.has(I);return(Pe,it)=>{let Dt="*"==J||J==Pe,Ot="*"==I||I==it;return!Dt&&S&&"boolean"==typeof Pe&&(Dt=Pe?nn.has(J):Rn.has(J)),!Ot&&k&&"boolean"==typeof it&&(Ot=it?nn.has(I):Rn.has(I)),Dt&&Ot}}const hi=new RegExp("s*:selfs*,?","g");function wr(J,I,S,k){return new Ue(J).build(I,S,k)}class Ue{constructor(I){this._driver=I}build(I,S,k){const Pe=new pt(S);return this._resetContextStyleTimingState(Pe),Be(this,Yn(I),Pe)}_resetContextStyleTimingState(I){I.currentQuerySelector="",I.collectedStyles=new Map,I.collectedStyles.set("",new Map),I.currentTime=0}visitTrigger(I,S){let k=S.queryCount=0,Pe=S.depCount=0;const it=[],Dt=[];return"@"==I.name.charAt(0)&&S.errors.push(function Kt(){return new d.vHH(3006,!1)}()),I.definitions.forEach(Ot=>{if(this._resetContextStyleTimingState(S),0==Ot.type){const Zt=Ot,Xt=Zt.name;Xt.toString().split(/\s*,\s*/).forEach(pn=>{Zt.name=pn,it.push(this.visitState(Zt,S))}),Zt.name=Xt}else if(1==Ot.type){const Zt=this.visitTransition(Ot,S);k+=Zt.queryCount,Pe+=Zt.depCount,Dt.push(Zt)}else S.errors.push(function on(){return new d.vHH(3007,!1)}())}),{type:7,name:I.name,states:it,transitions:Dt,queryCount:k,depCount:Pe,options:null}}visitState(I,S){const k=this.visitStyle(I.styles,S),Pe=I.options&&I.options.params||null;if(k.containsDynamicStyles){const it=new Set,Dt=Pe||{};k.styles.forEach(Ot=>{Ot instanceof Map&&Ot.forEach(Zt=>{yr(Zt).forEach(Xt=>{Dt.hasOwnProperty(Xt)||it.add(Xt)})})}),it.size&&(jr(it.values()),S.errors.push(function fn(J,I){return new d.vHH(3008,!1)}()))}return{type:0,name:I.name,style:k,options:Pe?{params:Pe}:null}}visitTransition(I,S){S.queryCount=0,S.depCount=0;const k=Be(this,Yn(I.animation),S);return{type:1,matchers:Ci(I.expr,S.errors),animation:k,queryCount:S.queryCount,depCount:S.depCount,options:$n(I.options)}}visitSequence(I,S){return{type:2,steps:I.steps.map(k=>Be(this,k,S)),options:$n(I.options)}}visitGroup(I,S){const k=S.currentTime;let Pe=0;const it=I.steps.map(Dt=>{S.currentTime=k;const Ot=Be(this,Dt,S);return Pe=Math.max(Pe,S.currentTime),Ot});return S.currentTime=Pe,{type:3,steps:it,options:$n(I.options)}}visitAnimate(I,S){const k=function mn(J,I){if(J.hasOwnProperty("duration"))return J;if("number"==typeof J)return Qn(_r(J,I).duration,0,"");const S=J;if(S.split(/\s+/).some(it=>"{"==it.charAt(0)&&"{"==it.charAt(1))){const it=Qn(0,0,"");return it.dynamic=!0,it.strValue=S,it}const Pe=_r(S,I);return Qn(Pe.duration,Pe.delay,Pe.easing)}(I.timings,S.errors);S.currentAnimateTimings=k;let Pe,it=I.styles?I.styles:(0,Ee.oB)({});if(5==it.type)Pe=this.visitKeyframes(it,S);else{let Dt=I.styles,Ot=!1;if(!Dt){Ot=!0;const Xt={};k.easing&&(Xt.easing=k.easing),Dt=(0,Ee.oB)(Xt)}S.currentTime+=k.duration+k.delay;const Zt=this.visitStyle(Dt,S);Zt.isEmptyStep=Ot,Pe=Zt}return S.currentAnimateTimings=null,{type:4,timings:k,style:Pe,options:null}}visitStyle(I,S){const k=this._makeStyleAst(I,S);return this._validateStyleAst(k,S),k}_makeStyleAst(I,S){const k=[],Pe=Array.isArray(I.styles)?I.styles:[I.styles];for(let Ot of Pe)"string"==typeof Ot?Ot===Ee.l3?k.push(Ot):S.errors.push(new d.vHH(3002,!1)):k.push(Fr(Ot));let it=!1,Dt=null;return k.forEach(Ot=>{if(Ot instanceof Map&&(Ot.has("easing")&&(Dt=Ot.get("easing"),Ot.delete("easing")),!it))for(let Zt of Ot.values())if(Zt.toString().indexOf("{{")>=0){it=!0;break}}),{type:6,styles:k,easing:Dt,offset:I.offset,containsDynamicStyles:it,options:null}}_validateStyleAst(I,S){const k=S.currentAnimateTimings;let Pe=S.currentTime,it=S.currentTime;k&&it>0&&(it-=k.duration+k.delay),I.styles.forEach(Dt=>{"string"!=typeof Dt&&Dt.forEach((Ot,Zt)=>{const Xt=S.collectedStyles.get(S.currentQuerySelector),pn=Xt.get(Zt);let bn=!0;pn&&(it!=Pe&&it>=pn.startTime&&Pe<=pn.endTime&&(S.errors.push(function Ct(J,I,S,k,Pe){return new d.vHH(3010,!1)}()),bn=!1),it=pn.startTime),bn&&Xt.set(Zt,{startTime:it,endTime:Pe}),S.options&&function ta(J,I,S){const k=I.params||{},Pe=yr(J);Pe.length&&Pe.forEach(it=>{k.hasOwnProperty(it)||S.push(function lt(J){return new d.vHH(3001,!1)}())})}(Ot,S.options,S.errors)})})}visitKeyframes(I,S){const k={type:5,styles:[],options:null};if(!S.currentAnimateTimings)return S.errors.push(function Ft(){return new d.vHH(3011,!1)}()),k;let it=0;const Dt=[];let Ot=!1,Zt=!1,Xt=0;const pn=I.steps.map(ii=>{const Gi=this._makeStyleAst(ii,S);let nr=null!=Gi.offset?Gi.offset:function Qt(J){if("string"==typeof J)return null;let I=null;if(Array.isArray(J))J.forEach(S=>{if(S instanceof Map&&S.has("offset")){const k=S;I=parseFloat(k.get("offset")),k.delete("offset")}});else if(J instanceof Map&&J.has("offset")){const S=J;I=parseFloat(S.get("offset")),S.delete("offset")}return I}(Gi.styles),Ni=0;return null!=nr&&(it++,Ni=Gi.offset=nr),Zt=Zt||Ni<0||Ni>1,Ot=Ot||Ni0&&it{const nr=Ln>0?Gi==kn?1:Ln*Gi:Dt[Gi],Ni=nr*ai;S.currentTime=Dn+Bn.delay+Ni,Bn.duration=Ni,this._validateStyleAst(ii,S),ii.offset=nr,k.styles.push(ii)}),k}visitReference(I,S){return{type:8,animation:Be(this,Yn(I.animation),S),options:$n(I.options)}}visitAnimateChild(I,S){return S.depCount++,{type:9,options:$n(I.options)}}visitAnimateRef(I,S){return{type:10,animation:this.visitReference(I.animation,S),options:$n(I.options)}}visitQuery(I,S){const k=S.currentQuerySelector,Pe=I.options||{};S.queryCount++,S.currentQuery=I;const[it,Dt]=function Se(J){const I=!!J.split(/\s*,\s*/).find(S=>":self"==S);return I&&(J=J.replace(hi,"")),J=J.replace(/@\*/g,Tr).replace(/@\w+/g,S=>Tr+"-"+S.slice(1)).replace(/:animating/g,or),[J,I]}(I.selector);S.currentQuerySelector=k.length?k+" "+it:it,gi(S.collectedStyles,S.currentQuerySelector,new Map);const Ot=Be(this,Yn(I.animation),S);return S.currentQuery=null,S.currentQuerySelector=k,{type:11,selector:it,limit:Pe.limit||0,optional:!!Pe.optional,includeSelf:Dt,animation:Ot,originalSelector:I.selector,options:$n(I.options)}}visitStagger(I,S){S.currentQuery||S.errors.push(function Jt(){return new d.vHH(3013,!1)}());const k="full"===I.timings?{duration:0,delay:0,easing:"full"}:_r(I.timings,S.errors,!0);return{type:12,animation:Be(this,Yn(I.animation),S),timings:k,options:null}}}class pt{constructor(I){this.errors=I,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function $n(J){return J?(J=lr(J)).params&&(J.params=function be(J){return J?lr(J):null}(J.params)):J={},J}function Qn(J,I,S){return{duration:J,delay:I,easing:S}}function Li(J,I,S,k,Pe,it,Dt=null,Ot=!1){return{type:1,element:J,keyframes:I,preStyleProps:S,postStyleProps:k,duration:Pe,delay:it,totalTime:Pe+it,easing:Dt,subTimeline:Ot}}class Rr{constructor(){this._map=new Map}get(I){return this._map.get(I)||[]}append(I,S){let k=this._map.get(I);k||this._map.set(I,k=[]),k.push(...S)}has(I){return this._map.has(I)}clear(){this._map.clear()}}const qs=new RegExp(":enter","g"),Qs=new RegExp(":leave","g");function Ea(J,I,S,k,Pe,it=new Map,Dt=new Map,Ot,Zt,Xt=[]){return(new Ta).buildKeyframes(J,I,S,k,Pe,it,Dt,Ot,Zt,Xt)}class Ta{buildKeyframes(I,S,k,Pe,it,Dt,Ot,Zt,Xt,pn=[]){Xt=Xt||new Rr;const bn=new na(I,S,Xt,Pe,it,pn,[]);bn.options=Zt;const Ln=Zt.delay?ar(Zt.delay):0;bn.currentTimeline.delayNextStep(Ln),bn.currentTimeline.setStyles([Dt],null,bn.errors,Zt),Be(this,k,bn);const kn=bn.timelines.filter(Dn=>Dn.containsAnimation());if(kn.length&&Ot.size){let Dn;for(let Bn=kn.length-1;Bn>=0;Bn--){const ai=kn[Bn];if(ai.element===S){Dn=ai;break}}Dn&&!Dn.allowOnlyTimelineStyles()&&Dn.setStyles([Ot],null,bn.errors,Zt)}return kn.length?kn.map(Dn=>Dn.buildKeyframes()):[Li(S,[],[],[],0,Ln,"",!1)]}visitTrigger(I,S){}visitState(I,S){}visitTransition(I,S){}visitAnimateChild(I,S){const k=S.subInstructions.get(S.element);if(k){const Pe=S.createSubContext(I.options),it=S.currentTimeline.currentTime,Dt=this._visitSubInstructions(k,Pe,Pe.options);it!=Dt&&S.transformIntoNewTimeline(Dt)}S.previousNode=I}visitAnimateRef(I,S){const k=S.createSubContext(I.options);k.transformIntoNewTimeline(),this.visitReference(I.animation,k),S.transformIntoNewTimeline(k.currentTimeline.currentTime),S.previousNode=I}_visitSubInstructions(I,S,k){let it=S.currentTimeline.currentTime;const Dt=null!=k.duration?ar(k.duration):null,Ot=null!=k.delay?ar(k.delay):null;return 0!==Dt&&I.forEach(Zt=>{const Xt=S.appendInstructionToTimeline(Zt,Dt,Ot);it=Math.max(it,Xt.duration+Xt.delay)}),it}visitReference(I,S){S.updateOptions(I.options,!0),Be(this,I.animation,S),S.previousNode=I}visitSequence(I,S){const k=S.subContextCount;let Pe=S;const it=I.options;if(it&&(it.params||it.delay)&&(Pe=S.createSubContext(it),Pe.transformIntoNewTimeline(),null!=it.delay)){6==Pe.previousNode.type&&(Pe.currentTimeline.snapshotCurrentStyles(),Pe.previousNode=$r);const Dt=ar(it.delay);Pe.delayNextStep(Dt)}I.steps.length&&(I.steps.forEach(Dt=>Be(this,Dt,Pe)),Pe.currentTimeline.applyStylesToKeyframe(),Pe.subContextCount>k&&Pe.transformIntoNewTimeline()),S.previousNode=I}visitGroup(I,S){const k=[];let Pe=S.currentTimeline.currentTime;const it=I.options&&I.options.delay?ar(I.options.delay):0;I.steps.forEach(Dt=>{const Ot=S.createSubContext(I.options);it&&Ot.delayNextStep(it),Be(this,Dt,Ot),Pe=Math.max(Pe,Ot.currentTimeline.currentTime),k.push(Ot.currentTimeline)}),k.forEach(Dt=>S.currentTimeline.mergeTimelineCollectedStyles(Dt)),S.transformIntoNewTimeline(Pe),S.previousNode=I}_visitTiming(I,S){if(I.dynamic){const k=I.strValue;return _r(S.params?wi(k,S.params,S.errors):k,S.errors)}return{duration:I.duration,delay:I.delay,easing:I.easing}}visitAnimate(I,S){const k=S.currentAnimateTimings=this._visitTiming(I.timings,S),Pe=S.currentTimeline;k.delay&&(S.incrementTime(k.delay),Pe.snapshotCurrentStyles());const it=I.style;5==it.type?this.visitKeyframes(it,S):(S.incrementTime(k.duration),this.visitStyle(it,S),Pe.applyStylesToKeyframe()),S.currentAnimateTimings=null,S.previousNode=I}visitStyle(I,S){const k=S.currentTimeline,Pe=S.currentAnimateTimings;!Pe&&k.hasCurrentStyleProperties()&&k.forwardFrame();const it=Pe&&Pe.easing||I.easing;I.isEmptyStep?k.applyEmptyStep(it):k.setStyles(I.styles,it,S.errors,S.options),S.previousNode=I}visitKeyframes(I,S){const k=S.currentAnimateTimings,Pe=S.currentTimeline.duration,it=k.duration,Ot=S.createSubContext().currentTimeline;Ot.easing=k.easing,I.styles.forEach(Zt=>{Ot.forwardTime((Zt.offset||0)*it),Ot.setStyles(Zt.styles,Zt.easing,S.errors,S.options),Ot.applyStylesToKeyframe()}),S.currentTimeline.mergeTimelineCollectedStyles(Ot),S.transformIntoNewTimeline(Pe+it),S.previousNode=I}visitQuery(I,S){const k=S.currentTimeline.currentTime,Pe=I.options||{},it=Pe.delay?ar(Pe.delay):0;it&&(6===S.previousNode.type||0==k&&S.currentTimeline.hasCurrentStyleProperties())&&(S.currentTimeline.snapshotCurrentStyles(),S.previousNode=$r);let Dt=k;const Ot=S.invokeQuery(I.selector,I.originalSelector,I.limit,I.includeSelf,!!Pe.optional,S.errors);S.currentQueryTotal=Ot.length;let Zt=null;Ot.forEach((Xt,pn)=>{S.currentQueryIndex=pn;const bn=S.createSubContext(I.options,Xt);it&&bn.delayNextStep(it),Xt===S.element&&(Zt=bn.currentTimeline),Be(this,I.animation,bn),bn.currentTimeline.applyStylesToKeyframe(),Dt=Math.max(Dt,bn.currentTimeline.currentTime)}),S.currentQueryIndex=0,S.currentQueryTotal=0,S.transformIntoNewTimeline(Dt),Zt&&(S.currentTimeline.mergeTimelineCollectedStyles(Zt),S.currentTimeline.snapshotCurrentStyles()),S.previousNode=I}visitStagger(I,S){const k=S.parentContext,Pe=S.currentTimeline,it=I.timings,Dt=Math.abs(it.duration),Ot=Dt*(S.currentQueryTotal-1);let Zt=Dt*S.currentQueryIndex;switch(it.duration<0?"reverse":it.easing){case"reverse":Zt=Ot-Zt;break;case"full":Zt=k.currentStaggerTime}const pn=S.currentTimeline;Zt&&pn.delayNextStep(Zt);const bn=pn.currentTime;Be(this,I.animation,S),S.previousNode=I,k.currentStaggerTime=Pe.currentTime-bn+(Pe.startTime-k.currentTimeline.startTime)}}const $r={};class na{constructor(I,S,k,Pe,it,Dt,Ot,Zt){this._driver=I,this.element=S,this.subInstructions=k,this._enterClassName=Pe,this._leaveClassName=it,this.errors=Dt,this.timelines=Ot,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$r,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new Gr(this._driver,S,0),Ot.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(I,S){if(!I)return;const k=I;let Pe=this.options;null!=k.duration&&(Pe.duration=ar(k.duration)),null!=k.delay&&(Pe.delay=ar(k.delay));const it=k.params;if(it){let Dt=Pe.params;Dt||(Dt=this.options.params={}),Object.keys(it).forEach(Ot=>{(!S||!Dt.hasOwnProperty(Ot))&&(Dt[Ot]=wi(it[Ot],Dt,this.errors))})}}_copyOptions(){const I={};if(this.options){const S=this.options.params;if(S){const k=I.params={};Object.keys(S).forEach(Pe=>{k[Pe]=S[Pe]})}}return I}createSubContext(I=null,S,k){const Pe=S||this.element,it=new na(this._driver,Pe,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Pe,k||0));return it.previousNode=this.previousNode,it.currentAnimateTimings=this.currentAnimateTimings,it.options=this._copyOptions(),it.updateOptions(I),it.currentQueryIndex=this.currentQueryIndex,it.currentQueryTotal=this.currentQueryTotal,it.parentContext=this,this.subContextCount++,it}transformIntoNewTimeline(I){return this.previousNode=$r,this.currentTimeline=this.currentTimeline.fork(this.element,I),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(I,S,k){const Pe={duration:S??I.duration,delay:this.currentTimeline.currentTime+(k??0)+I.delay,easing:""},it=new ts(this._driver,I.element,I.keyframes,I.preStyleProps,I.postStyleProps,Pe,I.stretchStartingKeyframe);return this.timelines.push(it),Pe}incrementTime(I){this.currentTimeline.forwardTime(this.currentTimeline.duration+I)}delayNextStep(I){I>0&&this.currentTimeline.delayNextStep(I)}invokeQuery(I,S,k,Pe,it,Dt){let Ot=[];if(Pe&&Ot.push(this.element),I.length>0){I=(I=I.replace(qs,"."+this._enterClassName)).replace(Qs,"."+this._leaveClassName);let Xt=this._driver.query(this.element,I,1!=k);0!==k&&(Xt=k<0?Xt.slice(Xt.length+k,Xt.length):Xt.slice(0,k)),Ot.push(...Xt)}return!it&&0==Ot.length&&Dt.push(function wt(J){return new d.vHH(3014,!1)}()),Ot}}class Gr{constructor(I,S,k,Pe){this._driver=I,this.element=S,this.startTime=k,this._elementTimelineStylesLookup=Pe,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(S),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(S,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(I){const S=1===this._keyframes.size&&this._pendingStyles.size;this.duration||S?(this.forwardTime(this.currentTime+I),S&&this.snapshotCurrentStyles()):this.startTime+=I}fork(I,S){return this.applyStylesToKeyframe(),new Gr(this._driver,I,S||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(I){this.applyStylesToKeyframe(),this.duration=I,this._loadKeyframe()}_updateStyle(I,S){this._localTimelineStyles.set(I,S),this._globalTimelineStyles.set(I,S),this._styleSummary.set(I,{time:this.currentTime,value:S})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(I){I&&this._previousKeyframe.set("easing",I);for(let[S,k]of this._globalTimelineStyles)this._backFill.set(S,k||Ee.l3),this._currentKeyframe.set(S,Ee.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(I,S,k,Pe){S&&this._previousKeyframe.set("easing",S);const it=Pe&&Pe.params||{},Dt=function uo(J,I){const S=new Map;let k;return J.forEach(Pe=>{if("*"===Pe){k=k||I.keys();for(let it of k)S.set(it,Ee.l3)}else $i(Pe,S)}),S}(I,this._globalTimelineStyles);for(let[Zt,Xt]of Dt){const pn=wi(Xt,it,k);var Ot;this._pendingStyles.set(Zt,pn),this._localTimelineStyles.has(Zt)||this._backFill.set(Zt,null!==(Ot=this._globalTimelineStyles.get(Zt))&&void 0!==Ot?Ot:Ee.l3),this._updateStyle(Zt,pn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((I,S)=>{this._currentKeyframe.set(S,I)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((I,S)=>{this._currentKeyframe.has(S)||this._currentKeyframe.set(S,I)}))}snapshotCurrentStyles(){for(let[I,S]of this._localTimelineStyles)this._pendingStyles.set(I,S),this._updateStyle(I,S)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const I=[];for(let S in this._currentKeyframe)I.push(S);return I}mergeTimelineCollectedStyles(I){I._styleSummary.forEach((S,k)=>{const Pe=this._styleSummary.get(k);(!Pe||S.time>Pe.time)&&this._updateStyle(k,S.value)})}buildKeyframes(){this.applyStylesToKeyframe();const I=new Set,S=new Set,k=1===this._keyframes.size&&0===this.duration;let Pe=[];this._keyframes.forEach((Ot,Zt)=>{const Xt=$i(Ot,new Map,this._backFill);Xt.forEach((pn,bn)=>{pn===Ee.k1?I.add(bn):pn===Ee.l3&&S.add(bn)}),k||Xt.set("offset",Zt/this.duration),Pe.push(Xt)});const it=I.size?jr(I.values()):[],Dt=S.size?jr(S.values()):[];if(k){const Ot=Pe[0],Zt=new Map(Ot);Ot.set("offset",0),Zt.set("offset",1),Pe=[Ot,Zt]}return Li(this.element,Pe,it,Dt,this.duration,this.startTime,this.easing,!1)}}class ts extends Gr{constructor(I,S,k,Pe,it,Dt,Ot=!1){super(I,S,Dt.delay),this.keyframes=k,this.preStyleProps=Pe,this.postStyleProps=it,this._stretchStartingKeyframe=Ot,this.timings={duration:Dt.duration,delay:Dt.delay,easing:Dt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let I=this.keyframes,{delay:S,duration:k,easing:Pe}=this.timings;if(this._stretchStartingKeyframe&&S){const it=[],Dt=k+S,Ot=S/Dt,Zt=$i(I[0]);Zt.set("offset",0),it.push(Zt);const Xt=$i(I[0]);Xt.set("offset",xo(Ot)),it.push(Xt);const pn=I.length-1;for(let bn=1;bn<=pn;bn++){let Ln=$i(I[bn]);const kn=Ln.get("offset");Ln.set("offset",xo((S+kn*k)/Dt)),it.push(Ln)}k=Dt,S=0,Pe="",I=it}return Li(this.element,I,this.preStyleProps,this.postStyleProps,k,S,Pe,!0)}}function xo(J,I=3){const S=Math.pow(10,I-1);return Math.round(J*S)/S}class ia{}const ns=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ho extends ia{normalizePropertyName(I,S){return er(I)}normalizeStyleValue(I,S,k,Pe){let it="";const Dt=k.toString().trim();if(ns.has(S)&&0!==k&&"0"!==k)if("number"==typeof k)it="px";else{const Ot=k.match(/^[+-]?[\d\.]+([a-z]*)$/);Ot&&0==Ot[1].length&&Pe.push(function sn(J,I){return new d.vHH(3005,!1)}())}return Dt+it}}function ya(J,I,S,k,Pe,it,Dt,Ot,Zt,Xt,pn,bn,Ln){return{type:0,element:J,triggerName:I,isRemovalTransition:Pe,fromState:S,fromStyles:it,toState:k,toStyles:Dt,timelines:Ot,queriedElements:Zt,preStyleProps:Xt,postStyleProps:pn,totalTime:bn,errors:Ln}}const ra={};class Mi{constructor(I,S,k){this._triggerName=I,this.ast=S,this._stateStyles=k}match(I,S,k,Pe){return function pi(J,I,S,k,Pe){return J.some(it=>it(I,S,k,Pe))}(this.ast.matchers,I,S,k,Pe)}buildStyles(I,S,k){let Pe=this._stateStyles.get("*");return void 0!==I&&(Pe=this._stateStyles.get(I?.toString())||Pe),Pe?Pe.buildStyles(S,k):new Map}build(I,S,k,Pe,it,Dt,Ot,Zt,Xt,pn){var bn;const Ln=[],kn=this.ast.options&&this.ast.options.params||ra,Bn=this.buildStyles(k,Ot&&Ot.params||ra,Ln),ai=Zt&&Zt.params||ra,ii=this.buildStyles(Pe,ai,Ln),Gi=new Set,nr=new Map,Ni=new Map,Jo="void"===Pe,to={params:po(ai,kn),delay:null===(bn=this.ast.options)||void 0===bn?void 0:bn.delay},Zi=pn?[]:Ea(I,S,this.ast.animation,it,Dt,Bn,ii,to,Xt,Ln);let Cr=0;if(Zi.forEach(Br=>{Cr=Math.max(Br.duration+Br.delay,Cr)}),Ln.length)return ya(S,this._triggerName,k,Pe,Jo,Bn,ii,[],[],nr,Ni,Cr,Ln);Zi.forEach(Br=>{const fi=Br.element,Aa=gi(nr,fi,new Set);Br.preStyleProps.forEach(bo=>Aa.add(bo));const ja=gi(Ni,fi,new Set);Br.postStyleProps.forEach(bo=>ja.add(bo)),fi!==S&&Gi.add(fi)});const _a=jr(Gi.values());return ya(S,this._triggerName,k,Pe,Jo,Bn,ii,Zi,_a,nr,Ni,Cr)}}function po(J,I){const S=lr(I);for(const k in J)J.hasOwnProperty(k)&&null!=J[k]&&(S[k]=J[k]);return S}class is{constructor(I,S,k){this.styles=I,this.defaultParams=S,this.normalizer=k}buildStyles(I,S){const k=new Map,Pe=lr(this.defaultParams);return Object.keys(I).forEach(it=>{const Dt=I[it];null!==Dt&&(Pe[it]=Dt)}),this.styles.styles.forEach(it=>{"string"!=typeof it&&it.forEach((Dt,Ot)=>{Dt&&(Dt=wi(Dt,Pe,S));const Zt=this.normalizer.normalizePropertyName(Ot,S);Dt=this.normalizer.normalizeStyleValue(Ot,Zt,Dt,S),k.set(Zt,Dt)})}),k}}class el{constructor(I,S,k){this.name=I,this.ast=S,this._normalizer=k,this.transitionFactories=[],this.states=new Map,S.states.forEach(Pe=>{this.states.set(Pe.name,new is(Pe.style,Pe.options&&Pe.options.params||{},k))}),os(this.states,"true","1"),os(this.states,"false","0"),S.transitions.forEach(Pe=>{this.transitionFactories.push(new Mi(I,Pe,this.states))}),this.fallbackTransition=function tl(J,I,S){return new Mi(J,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Dt,Ot)=>!0],options:null,queryCount:0,depCount:0},I)}(I,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(I,S,k,Pe){return this.transitionFactories.find(Dt=>Dt.match(I,S,k,Pe))||null}matchStyles(I,S,k){return this.fallbackTransition.buildStyles(I,S,k)}}function os(J,I,S){J.has(I)?J.has(S)||J.set(S,J.get(I)):J.has(S)&&J.set(I,J.get(S))}const oa=new Rr;class qr{constructor(I,S,k){this.bodyNode=I,this._driver=S,this._normalizer=k,this._animations=new Map,this._playersById=new Map,this.players=[]}register(I,S){const k=[],it=wr(this._driver,S,k,[]);if(k.length)throw function Fe(J){return new d.vHH(3503,!1)}();this._animations.set(I,it)}_buildPlayer(I,S,k){const Pe=I.element,it=ki(0,this._normalizer,0,I.keyframes,S,k);return this._driver.animate(Pe,it,I.duration,I.delay,I.easing,[],!0)}create(I,S,k={}){const Pe=[],it=this._animations.get(I);let Dt;const Ot=new Map;if(it?(Dt=Ea(this._driver,S,it,mr,Vr,new Map,new Map,k,oa,Pe),Dt.forEach(pn=>{const bn=gi(Ot,pn.element,new Map);pn.postStyleProps.forEach(Ln=>bn.set(Ln,null))})):(Pe.push(function mt(){return new d.vHH(3300,!1)}()),Dt=[]),Pe.length)throw function St(J){return new d.vHH(3504,!1)}();Ot.forEach((pn,bn)=>{pn.forEach((Ln,kn)=>{pn.set(kn,this._driver.computeStyle(bn,kn,Ee.l3))})});const Xt=zn(Dt.map(pn=>{const bn=Ot.get(pn.element);return this._buildPlayer(pn,new Map,bn)}));return this._playersById.set(I,Xt),Xt.onDestroy(()=>this.destroy(I)),this.players.push(Xt),Xt}destroy(I){const S=this._getPlayer(I);S.destroy(),this._playersById.delete(I);const k=this.players.indexOf(S);k>=0&&this.players.splice(k,1)}_getPlayer(I){const S=this._playersById.get(I);if(!S)throw function en(J){return new d.vHH(3301,!1)}();return S}listen(I,S,k,Pe){const it=_i(S,"","","");return Vi(this._getPlayer(I),k,it,Pe),()=>{}}command(I,S,k,Pe){if("register"==k)return void this.register(I,Pe[0]);if("create"==k)return void this.create(I,S,Pe[0]||{});const it=this._getPlayer(I);switch(k){case"play":it.play();break;case"pause":it.pause();break;case"reset":it.reset();break;case"restart":it.restart();break;case"finish":it.finish();break;case"init":it.init();break;case"setPosition":it.setPosition(parseFloat(Pe[0]));break;case"destroy":this.destroy(I)}}}const So="ng-animate-queued",aa="ng-animate-disabled",il=[],Ma={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Po={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ui="__ng_removed";class sa{constructor(I,S=""){this.namespaceId=S;const k=I&&I.hasOwnProperty("value");if(this.value=function ca(J){return J??null}(k?I.value:I),k){const it=lr(I);delete it.value,this.options=it}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(I){const S=I.params;if(S){const k=this.options.params;Object.keys(S).forEach(Pe=>{null==k[Pe]&&(k[Pe]=S[Pe])})}}}const fo="void",xa=new sa(fo);class rl{constructor(I,S,k){this.id=I,this.hostElement=S,this._engine=k,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+I,ji(S,this._hostClassName)}listen(I,S,k,Pe){if(!this._triggers.has(S))throw function vn(J,I){return new d.vHH(3302,!1)}();if(null==k||0==k.length)throw function Un(J){return new d.vHH(3303,!1)}();if(!function ss(J){return"start"==J||"done"==J}(k))throw function Hn(J,I){return new d.vHH(3400,!1)}();const it=gi(this._elementListeners,I,[]),Dt={name:S,phase:k,callback:Pe};it.push(Dt);const Ot=gi(this._engine.statesByElement,I,new Map);return Ot.has(S)||(ji(I,Si),ji(I,Si+"-"+S),Ot.set(S,xa)),()=>{this._engine.afterFlush(()=>{const Zt=it.indexOf(Dt);Zt>=0&&it.splice(Zt,1),this._triggers.has(S)||Ot.delete(S)})}}register(I,S){return!this._triggers.has(I)&&(this._triggers.set(I,S),!0)}_getTrigger(I){const S=this._triggers.get(I);if(!S)throw function qn(J){return new d.vHH(3401,!1)}();return S}trigger(I,S,k,Pe=!0){const it=this._getTrigger(S),Dt=new mo(this.id,S,I);let Ot=this._engine.statesByElement.get(I);Ot||(ji(I,Si),ji(I,Si+"-"+S),this._engine.statesByElement.set(I,Ot=new Map));let Zt=Ot.get(S);const Xt=new sa(k,this.id);if(!(k&&k.hasOwnProperty("value"))&&Zt&&Xt.absorbOptions(Zt.options),Ot.set(S,Xt),Zt||(Zt=xa),Xt.value!==fo&&Zt.value===Xt.value){if(!function al(J,I){const S=Object.keys(J),k=Object.keys(I);if(S.length!=k.length)return!1;for(let Pe=0;Pe{Xi(I,ai),Di(I,ii)})}return}const Ln=gi(this._engine.playersByElement,I,[]);Ln.forEach(Bn=>{Bn.namespaceId==this.id&&Bn.triggerName==S&&Bn.queued&&Bn.destroy()});let kn=it.matchTransition(Zt.value,Xt.value,I,Xt.params),Dn=!1;if(!kn){if(!Pe)return;kn=it.fallbackTransition,Dn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:I,triggerName:S,transition:kn,fromState:Zt,toState:Xt,player:Dt,isFallbackTransition:Dn}),Dn||(ji(I,So),Dt.onStart(()=>{Sr(I,So)})),Dt.onDone(()=>{let Bn=this.players.indexOf(Dt);Bn>=0&&this.players.splice(Bn,1);const ai=this._engine.playersByElement.get(I);if(ai){let ii=ai.indexOf(Dt);ii>=0&&ai.splice(ii,1)}}),this.players.push(Dt),Ln.push(Dt),Dt}deregister(I){this._triggers.delete(I),this._engine.statesByElement.forEach(S=>S.delete(I)),this._elementListeners.forEach((S,k)=>{this._elementListeners.set(k,S.filter(Pe=>Pe.name!=I))})}clearElementCache(I){this._engine.statesByElement.delete(I),this._elementListeners.delete(I);const S=this._engine.playersByElement.get(I);S&&(S.forEach(k=>k.destroy()),this._engine.playersByElement.delete(I))}_signalRemovalForInnerTriggers(I,S){const k=this._engine.driver.query(I,Tr,!0);k.forEach(Pe=>{if(Pe[Ui])return;const it=this._engine.fetchNamespacesByElement(Pe);it.size?it.forEach(Dt=>Dt.triggerLeaveAnimation(Pe,S,!1,!0)):this.clearElementCache(Pe)}),this._engine.afterFlushAnimationsDone(()=>k.forEach(Pe=>this.clearElementCache(Pe)))}triggerLeaveAnimation(I,S,k,Pe){const it=this._engine.statesByElement.get(I),Dt=new Map;if(it){const Ot=[];if(it.forEach((Zt,Xt)=>{if(Dt.set(Xt,Zt.value),this._triggers.has(Xt)){const pn=this.trigger(I,Xt,fo,Pe);pn&&Ot.push(pn)}}),Ot.length)return this._engine.markElementAsRemoved(this.id,I,!0,S,Dt),k&&zn(Ot).onDone(()=>this._engine.processLeaveNode(I)),!0}return!1}prepareLeaveAnimationListeners(I){const S=this._elementListeners.get(I),k=this._engine.statesByElement.get(I);if(S&&k){const Pe=new Set;S.forEach(it=>{const Dt=it.name;if(Pe.has(Dt))return;Pe.add(Dt);const Zt=this._triggers.get(Dt).fallbackTransition,Xt=k.get(Dt)||xa,pn=new sa(fo),bn=new mo(this.id,Dt,I);this._engine.totalQueuedPlayers++,this._queue.push({element:I,triggerName:Dt,transition:Zt,fromState:Xt,toState:pn,player:bn,isFallbackTransition:!0})})}}removeNode(I,S){const k=this._engine;if(I.childElementCount&&this._signalRemovalForInnerTriggers(I,S),this.triggerLeaveAnimation(I,S,!0))return;let Pe=!1;if(k.totalAnimations){const it=k.players.length?k.playersByQueriedElement.get(I):[];if(it&&it.length)Pe=!0;else{let Dt=I;for(;Dt=Dt.parentNode;)if(k.statesByElement.get(Dt)){Pe=!0;break}}}if(this.prepareLeaveAnimationListeners(I),Pe)k.markElementAsRemoved(this.id,I,!1,S);else{const it=I[Ui];(!it||it===Ma)&&(k.afterFlush(()=>this.clearElementCache(I)),k.destroyInnerAnimations(I),k._onRemovalComplete(I,S))}}insertNode(I,S){ji(I,this._hostClassName)}drainQueuedTransitions(I){const S=[];return this._queue.forEach(k=>{const Pe=k.player;if(Pe.destroyed)return;const it=k.element,Dt=this._elementListeners.get(it);Dt&&Dt.forEach(Ot=>{if(Ot.name==k.triggerName){const Zt=_i(it,k.triggerName,k.fromState.value,k.toState.value);Zt._data=I,Vi(k.player,Ot.phase,Zt,Ot.callback)}}),Pe.markedForDestroy?this._engine.afterFlush(()=>{Pe.destroy()}):S.push(k)}),this._queue=[],S.sort((k,Pe)=>{const it=k.transition.ast.depCount,Dt=Pe.transition.ast.depCount;return 0==it||0==Dt?it-Dt:this._engine.driver.containsElement(k.element,Pe.element)?1:-1})}destroy(I){this.players.forEach(S=>S.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,I)}elementContainsData(I){let S=!1;return this._elementListeners.has(I)&&(S=!0),S=!!this._queue.find(k=>k.element===I)||S,S}}class la{constructor(I,S,k){this.bodyNode=I,this.driver=S,this._normalizer=k,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Pe,it)=>{}}_onRemovalComplete(I,S){this.onRemovalComplete(I,S)}get queuedPlayers(){const I=[];return this._namespaceList.forEach(S=>{S.players.forEach(k=>{k.queued&&I.push(k)})}),I}createNamespace(I,S){const k=new rl(I,S,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,S)?this._balanceNamespaceList(k,S):(this.newHostElements.set(S,k),this.collectEnterElement(S)),this._namespaceLookup[I]=k}_balanceNamespaceList(I,S){const k=this._namespaceList,Pe=this.namespacesByHostElement;if(k.length-1>=0){let Dt=!1,Ot=this.driver.getParentElement(S);for(;Ot;){const Zt=Pe.get(Ot);if(Zt){const Xt=k.indexOf(Zt);k.splice(Xt+1,0,I),Dt=!0;break}Ot=this.driver.getParentElement(Ot)}Dt||k.unshift(I)}else k.push(I);return Pe.set(S,I),I}register(I,S){let k=this._namespaceLookup[I];return k||(k=this.createNamespace(I,S)),k}registerTrigger(I,S,k){let Pe=this._namespaceLookup[I];Pe&&Pe.register(S,k)&&this.totalAnimations++}destroy(I,S){if(!I)return;const k=this._fetchNamespace(I);this.afterFlush(()=>{this.namespacesByHostElement.delete(k.hostElement),delete this._namespaceLookup[I];const Pe=this._namespaceList.indexOf(k);Pe>=0&&this._namespaceList.splice(Pe,1)}),this.afterFlushAnimationsDone(()=>k.destroy(S))}_fetchNamespace(I){return this._namespaceLookup[I]}fetchNamespacesByElement(I){const S=new Set,k=this.statesByElement.get(I);if(k)for(let Pe of k.values())if(Pe.namespaceId){const it=this._fetchNamespace(Pe.namespaceId);it&&S.add(it)}return S}trigger(I,S,k,Pe){if(Io(S)){const it=this._fetchNamespace(I);if(it)return it.trigger(S,k,Pe),!0}return!1}insertNode(I,S,k,Pe){if(!Io(S))return;const it=S[Ui];if(it&&it.setForRemoval){it.setForRemoval=!1,it.setForMove=!0;const Dt=this.collectedLeaveElements.indexOf(S);Dt>=0&&this.collectedLeaveElements.splice(Dt,1)}if(I){const Dt=this._fetchNamespace(I);Dt&&Dt.insertNode(S,k)}Pe&&this.collectEnterElement(S)}collectEnterElement(I){this.collectedEnterElements.push(I)}markElementAsDisabled(I,S){S?this.disabledNodes.has(I)||(this.disabledNodes.add(I),ji(I,aa)):this.disabledNodes.has(I)&&(this.disabledNodes.delete(I),Sr(I,aa))}removeNode(I,S,k,Pe){if(Io(S)){const it=I?this._fetchNamespace(I):null;if(it?it.removeNode(S,Pe):this.markElementAsRemoved(I,S,!1,Pe),k){const Dt=this.namespacesByHostElement.get(S);Dt&&Dt.id!==I&&Dt.removeNode(S,Pe)}}else this._onRemovalComplete(S,Pe)}markElementAsRemoved(I,S,k,Pe,it){this.collectedLeaveElements.push(S),S[Ui]={namespaceId:I,setForRemoval:Pe,hasAnimation:k,removedBeforeQueried:!1,previousTriggersValues:it}}listen(I,S,k,Pe,it){return Io(S)?this._fetchNamespace(I).listen(S,k,Pe,it):()=>{}}_buildInstruction(I,S,k,Pe,it){return I.transition.build(this.driver,I.element,I.fromState.value,I.toState.value,k,Pe,I.fromState.options,I.toState.options,S,it)}destroyInnerAnimations(I){let S=this.driver.query(I,Tr,!0);S.forEach(k=>this.destroyActiveAnimationsForElement(k)),0!=this.playersByQueriedElement.size&&(S=this.driver.query(I,or,!0),S.forEach(k=>this.finishActiveQueriedAnimationOnElement(k)))}destroyActiveAnimationsForElement(I){const S=this.playersByElement.get(I);S&&S.forEach(k=>{k.queued?k.markedForDestroy=!0:k.destroy()})}finishActiveQueriedAnimationOnElement(I){const S=this.playersByQueriedElement.get(I);S&&S.forEach(k=>k.finish())}whenRenderingDone(){return new Promise(I=>{if(this.players.length)return zn(this.players).onDone(()=>I());I()})}processLeaveNode(I){var S;const k=I[Ui];if(k&&k.setForRemoval){if(I[Ui]=Ma,k.namespaceId){this.destroyInnerAnimations(I);const Pe=this._fetchNamespace(k.namespaceId);Pe&&Pe.clearElementCache(I)}this._onRemovalComplete(I,k.setForRemoval)}null!==(S=I.classList)&&void 0!==S&&S.contains(aa)&&this.markElementAsDisabled(I,!1),this.driver.query(I,".ng-animate-disabled",!0).forEach(Pe=>{this.markElementAsDisabled(Pe,!1)})}flush(I=-1){let S=[];if(this.newHostElements.size&&(this.newHostElements.forEach((k,Pe)=>this._balanceNamespaceList(k,Pe)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let k=0;kk()),this._flushFns=[],this._whenQuietFns.length){const k=this._whenQuietFns;this._whenQuietFns=[],S.length?zn(S).onDone(()=>{k.forEach(Pe=>Pe())}):k.forEach(Pe=>Pe())}}reportError(I){throw function si(J){return new d.vHH(3402,!1)}()}_flushAnimations(I,S){const k=new Rr,Pe=[],it=new Map,Dt=[],Ot=new Map,Zt=new Map,Xt=new Map,pn=new Set;this.disabledNodes.forEach(Tn=>{pn.add(Tn);const wn=this.driver.query(Tn,".ng-animate-queued",!0);for(let Sn=0;Sn{const Sn=mr+Bn++;Dn.set(wn,Sn),Tn.forEach(Gn=>ji(Gn,Sn))});const ai=[],ii=new Set,Gi=new Set;for(let Tn=0;Tnii.add(Gn)):Gi.add(wn))}const nr=new Map,Ni=Hr(Ln,Array.from(ii));Ni.forEach((Tn,wn)=>{const Sn=Vr+Bn++;nr.set(wn,Sn),Tn.forEach(Gn=>ji(Gn,Sn))}),I.push(()=>{kn.forEach((Tn,wn)=>{const Sn=Dn.get(wn);Tn.forEach(Gn=>Sr(Gn,Sn))}),Ni.forEach((Tn,wn)=>{const Sn=nr.get(wn);Tn.forEach(Gn=>Sr(Gn,Sn))}),ai.forEach(Tn=>{this.processLeaveNode(Tn)})});const Jo=[],to=[];for(let Tn=this._namespaceList.length-1;Tn>=0;Tn--)this._namespaceList[Tn].drainQueuedTransitions(S).forEach(Sn=>{const Gn=Sn.player,Ti=Sn.element;if(Jo.push(Gn),this.collectedEnterElements.length){const zi=Ti[Ui];if(zi&&zi.setForMove){if(zi.previousTriggersValues&&zi.previousTriggersValues.has(Sn.triggerName)){const $o=zi.previousTriggersValues.get(Sn.triggerName),br=this.statesByElement.get(Sn.element);if(br&&br.has(Sn.triggerName)){const Ga=br.get(Sn.triggerName);Ga.value=$o,br.set(Sn.triggerName,Ga)}}return void Gn.destroy()}}const no=!bn||!this.driver.containsElement(bn,Ti),Dr=nr.get(Ti),Pr=Dn.get(Ti),mi=this._buildInstruction(Sn,k,Pr,Dr,no);if(mi.errors&&mi.errors.length)return void to.push(mi);if(no)return Gn.onStart(()=>Xi(Ti,mi.fromStyles)),Gn.onDestroy(()=>Di(Ti,mi.toStyles)),void Pe.push(Gn);if(Sn.isFallbackTransition)return Gn.onStart(()=>Xi(Ti,mi.fromStyles)),Gn.onDestroy(()=>Di(Ti,mi.toStyles)),void Pe.push(Gn);const bl=[];mi.timelines.forEach(zi=>{zi.stretchStartingKeyframe=!0,this.disabledNodes.has(zi.element)||bl.push(zi)}),mi.timelines=bl,k.append(Ti,mi.timelines),Dt.push({instruction:mi,player:Gn,element:Ti}),mi.queriedElements.forEach(zi=>gi(Ot,zi,[]).push(Gn)),mi.preStyleProps.forEach((zi,$o)=>{if(zi.size){let br=Zt.get($o);br||Zt.set($o,br=new Set),zi.forEach((Ga,Za)=>br.add(Za))}}),mi.postStyleProps.forEach((zi,$o)=>{let br=Xt.get($o);br||Xt.set($o,br=new Set),zi.forEach((Ga,Za)=>br.add(Za))})});if(to.length){const Tn=[];to.forEach(wn=>{Tn.push(function Zn(J,I){return new d.vHH(3505,!1)}())}),Jo.forEach(wn=>wn.destroy()),this.reportError(Tn)}const Zi=new Map,Cr=new Map;Dt.forEach(Tn=>{const wn=Tn.element;k.has(wn)&&(Cr.set(wn,wn),this._beforeAnimationBuild(Tn.player.namespaceId,Tn.instruction,Zi))}),Pe.forEach(Tn=>{const wn=Tn.element;this._getPreviousPlayers(wn,!1,Tn.namespaceId,Tn.triggerName,null).forEach(Gn=>{gi(Zi,wn,[]).push(Gn),Gn.destroy()})});const _a=ai.filter(Tn=>tr(Tn,Zt,Xt)),Br=new Map;Sa(Br,this.driver,Gi,Xt,Ee.l3).forEach(Tn=>{tr(Tn,Zt,Xt)&&_a.push(Tn)});const Aa=new Map;kn.forEach((Tn,wn)=>{Sa(Aa,this.driver,new Set(Tn),Zt,Ee.k1)}),_a.forEach(Tn=>{var wn,Sn;const Gn=Br.get(Tn),Ti=Aa.get(Tn);Br.set(Tn,new Map([...Array.from(null!==(wn=Gn?.entries())&&void 0!==wn?wn:[]),...Array.from(null!==(Sn=Ti?.entries())&&void 0!==Sn?Sn:[])]))});const ja=[],bo=[],Cl={};Dt.forEach(Tn=>{const{element:wn,player:Sn,instruction:Gn}=Tn;if(k.has(wn)){if(pn.has(wn))return Sn.onDestroy(()=>Di(wn,Gn.toStyles)),Sn.disabled=!0,Sn.overrideTotalTime(Gn.totalTime),void Pe.push(Sn);let Ti=Cl;if(Cr.size>1){let Dr=wn;const Pr=[];for(;Dr=Dr.parentNode;){const mi=Cr.get(Dr);if(mi){Ti=mi;break}Pr.push(Dr)}Pr.forEach(mi=>Cr.set(mi,Ti))}const no=this._buildAnimation(Sn.namespaceId,Gn,Zi,it,Aa,Br);if(Sn.setRealPlayer(no),Ti===Cl)ja.push(Sn);else{const Dr=this.playersByElement.get(Ti);Dr&&Dr.length&&(Sn.parentPlayer=zn(Dr)),Pe.push(Sn)}}else Xi(wn,Gn.fromStyles),Sn.onDestroy(()=>Di(wn,Gn.toStyles)),bo.push(Sn),pn.has(wn)&&Pe.push(Sn)}),bo.forEach(Tn=>{const wn=it.get(Tn.element);if(wn&&wn.length){const Sn=zn(wn);Tn.setRealPlayer(Sn)}}),Pe.forEach(Tn=>{Tn.parentPlayer?Tn.syncPlayerEvents(Tn.parentPlayer):Tn.destroy()});for(let Tn=0;Tn!no.destroyed);Ti.length?ol(this,wn,Ti):this.processLeaveNode(wn)}return ai.length=0,ja.forEach(Tn=>{this.players.push(Tn),Tn.onDone(()=>{Tn.destroy();const wn=this.players.indexOf(Tn);this.players.splice(wn,1)}),Tn.play()}),ja}elementContainsData(I,S){let k=!1;const Pe=S[Ui];return Pe&&Pe.setForRemoval&&(k=!0),this.playersByElement.has(S)&&(k=!0),this.playersByQueriedElement.has(S)&&(k=!0),this.statesByElement.has(S)&&(k=!0),this._fetchNamespace(I).elementContainsData(S)||k}afterFlush(I){this._flushFns.push(I)}afterFlushAnimationsDone(I){this._whenQuietFns.push(I)}_getPreviousPlayers(I,S,k,Pe,it){let Dt=[];if(S){const Ot=this.playersByQueriedElement.get(I);Ot&&(Dt=Ot)}else{const Ot=this.playersByElement.get(I);if(Ot){const Zt=!it||it==fo;Ot.forEach(Xt=>{Xt.queued||!Zt&&Xt.triggerName!=Pe||Dt.push(Xt)})}}return(k||Pe)&&(Dt=Dt.filter(Ot=>!(k&&k!=Ot.namespaceId||Pe&&Pe!=Ot.triggerName))),Dt}_beforeAnimationBuild(I,S,k){const it=S.element,Dt=S.isRemovalTransition?void 0:I,Ot=S.isRemovalTransition?void 0:S.triggerName;for(const Zt of S.timelines){const Xt=Zt.element,pn=Xt!==it,bn=gi(k,Xt,[]);this._getPreviousPlayers(Xt,pn,Dt,Ot,S.toState).forEach(kn=>{const Dn=kn.getRealPlayer();Dn.beforeDestroy&&Dn.beforeDestroy(),kn.destroy(),bn.push(kn)})}Xi(it,S.fromStyles)}_buildAnimation(I,S,k,Pe,it,Dt){const Ot=S.triggerName,Zt=S.element,Xt=[],pn=new Set,bn=new Set,Ln=S.timelines.map(Dn=>{const Bn=Dn.element;pn.add(Bn);const ai=Bn[Ui];if(ai&&ai.removedBeforeQueried)return new Ee.ZN(Dn.duration,Dn.delay);const ii=Bn!==Zt,Gi=function ls(J){const I=[];return Da(J,I),I}((k.get(Bn)||il).map(Zi=>Zi.getRealPlayer())).filter(Zi=>!!Zi.element&&Zi.element===Bn),nr=it.get(Bn),Ni=Dt.get(Bn),Jo=ki(0,this._normalizer,0,Dn.keyframes,nr,Ni),to=this._buildPlayer(Dn,Jo,Gi);if(Dn.subTimeline&&Pe&&bn.add(Bn),ii){const Zi=new mo(I,Ot,Bn);Zi.setRealPlayer(to),Xt.push(Zi)}return to});Xt.forEach(Dn=>{gi(this.playersByQueriedElement,Dn.element,[]).push(Dn),Dn.onDone(()=>function as(J,I,S){let k=J.get(I);if(k){if(k.length){const Pe=k.indexOf(S);k.splice(Pe,1)}0==k.length&&J.delete(I)}return k}(this.playersByQueriedElement,Dn.element,Dn))}),pn.forEach(Dn=>ji(Dn,gr));const kn=zn(Ln);return kn.onDestroy(()=>{pn.forEach(Dn=>Sr(Dn,gr)),Di(Zt,S.toStyles)}),bn.forEach(Dn=>{gi(Pe,Dn,[]).push(kn)}),kn}_buildPlayer(I,S,k){return S.length>0?this.driver.animate(I.element,S,I.duration,I.delay,I.easing,k):new Ee.ZN(I.duration,I.delay)}}class mo{constructor(I,S,k){this.namespaceId=I,this.triggerName=S,this.element=k,this._player=new Ee.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(I){this._containsRealPlayer||(this._player=I,this._queuedCallbacks.forEach((S,k)=>{S.forEach(Pe=>Vi(I,k,void 0,Pe))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(I.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(I){this.totalTime=I}syncPlayerEvents(I){const S=this._player;S.triggerCallback&&I.onStart(()=>S.triggerCallback("start")),I.onDone(()=>this.finish()),I.onDestroy(()=>this.destroy())}_queueEvent(I,S){gi(this._queuedCallbacks,I,[]).push(S)}onDone(I){this.queued&&this._queueEvent("done",I),this._player.onDone(I)}onStart(I){this.queued&&this._queueEvent("start",I),this._player.onStart(I)}onDestroy(I){this.queued&&this._queueEvent("destroy",I),this._player.onDestroy(I)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(I){this.queued||this._player.setPosition(I)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(I){const S=this._player;S.triggerCallback&&S.triggerCallback(I)}}function Io(J){return J&&1===J.nodeType}function Qr(J,I){const S=J.style.display;return J.style.display=I??"none",S}function Sa(J,I,S,k,Pe){const it=[];S.forEach(Zt=>it.push(Qr(Zt)));const Dt=[];k.forEach((Zt,Xt)=>{const pn=new Map;Zt.forEach(bn=>{const Ln=I.computeStyle(Xt,bn,Pe);pn.set(bn,Ln),(!Ln||0==Ln.length)&&(Xt[Ui]=Po,Dt.push(Xt))}),J.set(Xt,pn)});let Ot=0;return S.forEach(Zt=>Qr(Zt,it[Ot++])),Dt}function Hr(J,I){const S=new Map;if(J.forEach(Ot=>S.set(Ot,[])),0==I.length)return S;const Pe=new Set(I),it=new Map;function Dt(Ot){if(!Ot)return 1;let Zt=it.get(Ot);if(Zt)return Zt;const Xt=Ot.parentNode;return Zt=S.has(Xt)?Xt:Pe.has(Xt)?1:Dt(Xt),it.set(Ot,Zt),Zt}return I.forEach(Ot=>{const Zt=Dt(Ot);1!==Zt&&S.get(Zt).push(Ot)}),S}function ji(J,I){var S;null===(S=J.classList)||void 0===S||S.add(I)}function Sr(J,I){var S;null===(S=J.classList)||void 0===S||S.remove(I)}function ol(J,I,S){zn(S).onDone(()=>J.processLeaveNode(I))}function Da(J,I){for(let S=0;SPe.add(it)):I.set(J,k),S.delete(J),!0}class Ro{constructor(I,S,k){this.bodyNode=I,this._driver=S,this._normalizer=k,this._triggerCache={},this.onRemovalComplete=(Pe,it)=>{},this._transitionEngine=new la(I,S,k),this._timelineEngine=new qr(I,S,k),this._transitionEngine.onRemovalComplete=(Pe,it)=>this.onRemovalComplete(Pe,it)}registerTrigger(I,S,k,Pe,it){const Dt=I+"-"+Pe;let Ot=this._triggerCache[Dt];if(!Ot){const Zt=[],pn=wr(this._driver,it,Zt,[]);if(Zt.length)throw function At(J,I){return new d.vHH(3404,!1)}();Ot=function rs(J,I,S){return new el(J,I,S)}(Pe,pn,this._normalizer),this._triggerCache[Dt]=Ot}this._transitionEngine.registerTrigger(S,Pe,Ot)}register(I,S){this._transitionEngine.register(I,S)}destroy(I,S){this._transitionEngine.destroy(I,S)}onInsert(I,S,k,Pe){this._transitionEngine.insertNode(I,S,k,Pe)}onRemove(I,S,k,Pe){this._transitionEngine.removeNode(I,S,Pe||!1,k)}disableAnimations(I,S){this._transitionEngine.markElementAsDisabled(I,S)}process(I,S,k,Pe){if("@"==k.charAt(0)){const[it,Dt]=Ir(k);this._timelineEngine.command(it,S,Dt,Pe)}else this._transitionEngine.trigger(I,S,k,Pe)}listen(I,S,k,Pe,it){if("@"==k.charAt(0)){const[Dt,Ot]=Ir(k);return this._timelineEngine.listen(Dt,S,Ot,it)}return this._transitionEngine.listen(I,S,k,Pe,it)}flush(I=-1){this._transitionEngine.flush(I)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Oo=(()=>{class J{constructor(S,k,Pe){this._element=S,this._startStyles=k,this._endStyles=Pe,this._state=0;let it=J.initialStylesByElement.get(S);it||J.initialStylesByElement.set(S,it=new Map),this._initialStyles=it}start(){this._state<1&&(this._startStyles&&Di(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Di(this._element,this._initialStyles),this._endStyles&&(Di(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(J.initialStylesByElement.delete(this._element),this._startStyles&&(Xi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xi(this._element,this._endStyles),this._endStyles=null),Di(this._element,this._initialStyles),this._state=3)}}return J.initialStylesByElement=new WeakMap,J})();function Ho(J){let I=null;return J.forEach((S,k)=>{(function da(J){return"display"===J||"position"===J})(k)&&(I=I||new Map,I.set(k,S))}),I}class zr{constructor(I,S,k,Pe){this.element=I,this.keyframes=S,this.options=k,this._specialStyles=Pe,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=k.duration,this._delay=k.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(I=>I()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const I=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,I,this.options),this._finalKeyframe=I.length?I[I.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(I){const S=[];return I.forEach(k=>{S.push(Object.fromEntries(k))}),S}_triggerWebAnimation(I,S,k){return I.animate(this._convertKeyframesToObject(S),k)}onStart(I){this._originalOnStartFns.push(I),this._onStartFns.push(I)}onDone(I){this._originalOnDoneFns.push(I),this._onDoneFns.push(I)}onDestroy(I){this._onDestroyFns.push(I)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(I=>I()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(I=>I()),this._onDestroyFns=[])}setPosition(I){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=I*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const I=new Map;this.hasStarted()&&this._finalKeyframe.forEach((k,Pe)=>{"offset"!==Pe&&I.set(Pe,this._finished?k:ft(this.element,Pe))}),this.currentSnapshot=I}triggerCallback(I){const S="start"===I?this._onStartFns:this._onDoneFns;S.forEach(k=>k()),S.length=0}}class sl{validateStyleProperty(I){return!0}validateAnimatableStyleProperty(I){return!0}matchesElement(I,S){return!1}containsElement(I,S){return Gt(I,S)}getParentElement(I){return yt(I)}query(I,S,k){return dn(I,S,k)}computeStyle(I,S,k){return window.getComputedStyle(I)[S]}animate(I,S,k,Pe,it,Dt=[]){const Zt={duration:k,delay:Pe,fill:0==Pe?"both":"forwards"};it&&(Zt.easing=it);const Xt=new Map,pn=Dt.filter(kn=>kn instanceof zr);(function Ve(J,I){return 0===J||0===I})(k,Pe)&&pn.forEach(kn=>{kn.currentSnapshot.forEach((Dn,Bn)=>Xt.set(Bn,Dn))});let bn=function Yr(J){return J.length?J[0]instanceof Map?J:J.map(I=>Fr(I)):[]}(S).map(kn=>$i(kn));bn=function ht(J,I,S){if(S.size&&I.length){let k=I[0],Pe=[];if(S.forEach((it,Dt)=>{k.has(Dt)||Pe.push(Dt),k.set(Dt,it)}),Pe.length)for(let it=1;itDt.set(Ot,ft(J,Ot)))}}return I}(I,bn,Xt);const Ln=function Kr(J,I){let S=null,k=null;return Array.isArray(I)&&I.length?(S=Ho(I[0]),I.length>1&&(k=Ho(I[I.length-1]))):I instanceof Map&&(S=Ho(I)),S||k?new Oo(J,S,k):null}(I,bn);return new zr(I,bn,Zt,Ln)}}let cs=(()=>{class J extends Ee._j{constructor(S,k){super(),this._nextAnimationId=0,this._renderer=S.createRenderer(k.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(S){const k=this._nextAnimationId.toString();this._nextAnimationId++;const Pe=Array.isArray(S)?(0,Ee.vP)(S):S;return Pa(this._renderer,null,k,"register",[Pe]),new ds(k,this._renderer)}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(d.FYo),d.LFG(V.K0))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})();class ds extends Ee.LC{constructor(I,S){super(),this._id=I,this._renderer=S}create(I,S){return new us(this._id,I,S||{},this._renderer)}}class us{constructor(I,S,k,Pe){this.id=I,this.element=S,this._renderer=Pe,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",k)}_listen(I,S){return this._renderer.listen(this.element,`@@${this.id}:${I}`,S)}_command(I,...S){return Pa(this._renderer,this.element,this.id,I,S)}onDone(I){this._listen("done",I)}onStart(I){this._listen("start",I)}onDestroy(I){this._listen("destroy",I)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(I){this._command("setPosition",I)}getPosition(){var I,S;return null!==(I=null===(S=this._renderer.engine.players[+this.id])||void 0===S?void 0:S.getPosition())&&void 0!==I?I:0}}function Pa(J,I,S,k,Pe){return J.setProperty(I,`@@${S}:${k}`,Pe)}const Ei="@.disabled";let Bo=(()=>{class J{constructor(S,k,Pe){this.delegate=S,this.engine=k,this._zone=Pe,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),k.onRemovalComplete=(it,Dt)=>{const Ot=Dt?.parentNode(it);Ot&&Dt.removeChild(Ot,it)}}createRenderer(S,k){const it=this.delegate.createRenderer(S,k);if(!(S&&k&&k.data&&k.data.animation)){let pn=this._rendererCache.get(it);return pn||(pn=new Ia("",it,this.engine),this._rendererCache.set(it,pn)),pn}const Dt=k.id,Ot=k.id+"-"+this._currentId;this._currentId++,this.engine.register(Ot,S);const Zt=pn=>{Array.isArray(pn)?pn.forEach(Zt):this.engine.registerTrigger(Dt,Ot,S,pn.name,pn)};return k.data.animation.forEach(Zt),new No(this,Ot,it,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(S,k,Pe){S>=0&&Sk(Pe)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(it=>{const[Dt,Ot]=it;Dt(Ot)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([k,Pe]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(d.FYo),d.LFG(Ro),d.LFG(d.R0b))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})();class Ia{constructor(I,S,k){this.namespaceId=I,this.delegate=S,this.engine=k,this.destroyNode=this.delegate.destroyNode?Pe=>S.destroyNode(Pe):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(I,S){return this.delegate.createElement(I,S)}createComment(I){return this.delegate.createComment(I)}createText(I){return this.delegate.createText(I)}appendChild(I,S){this.delegate.appendChild(I,S),this.engine.onInsert(this.namespaceId,S,I,!1)}insertBefore(I,S,k,Pe=!0){this.delegate.insertBefore(I,S,k),this.engine.onInsert(this.namespaceId,S,I,Pe)}removeChild(I,S,k){this.engine.onRemove(this.namespaceId,S,this.delegate,k)}selectRootElement(I,S){return this.delegate.selectRootElement(I,S)}parentNode(I){return this.delegate.parentNode(I)}nextSibling(I){return this.delegate.nextSibling(I)}setAttribute(I,S,k,Pe){this.delegate.setAttribute(I,S,k,Pe)}removeAttribute(I,S,k){this.delegate.removeAttribute(I,S,k)}addClass(I,S){this.delegate.addClass(I,S)}removeClass(I,S){this.delegate.removeClass(I,S)}setStyle(I,S,k,Pe){this.delegate.setStyle(I,S,k,Pe)}removeStyle(I,S,k){this.delegate.removeStyle(I,S,k)}setProperty(I,S,k){"@"==S.charAt(0)&&S==Ei?this.disableAnimations(I,!!k):this.delegate.setProperty(I,S,k)}setValue(I,S){this.delegate.setValue(I,S)}listen(I,S,k){return this.delegate.listen(I,S,k)}disableAnimations(I,S){this.engine.disableAnimations(I,S)}}class No extends Ia{constructor(I,S,k,Pe){super(S,k,Pe),this.factory=I,this.namespaceId=S}setProperty(I,S,k){"@"==S.charAt(0)?"."==S.charAt(1)&&S==Ei?this.disableAnimations(I,k=void 0===k||!!k):this.engine.process(this.namespaceId,I,S.slice(1),k):this.delegate.setProperty(I,S,k)}listen(I,S,k){if("@"==S.charAt(0)){const Pe=function ko(J){switch(J){case"body":return document.body;case"document":return document;case"window":return window;default:return J}}(I);let it=S.slice(1),Dt="";return"@"!=it.charAt(0)&&([it,Dt]=function go(J){const I=J.indexOf(".");return[J.substring(0,I),J.slice(I+1)]}(it)),this.engine.listen(this.namespaceId,Pe,it,Dt,Ot=>{this.factory.scheduleListenerCallback(Ot._data||-1,k,Ot)})}return this.delegate.listen(I,S,k)}}const ps=[{provide:Ee._j,useClass:cs},{provide:ia,useFactory:function Ra(){return new ho}},{provide:Ro,useClass:(()=>{class J extends Ro{constructor(S,k,Pe,it){super(S.body,k,Pe)}ngOnDestroy(){this.flush()}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(V.K0),d.LFG(Kn),d.LFG(ia),d.LFG(d.z2F))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})()},{provide:d.FYo,useFactory:function hs(J,I,S){return new Bo(J,I,S)},deps:[e.se,Ro,d.R0b]}],Vo=[{provide:Kn,useFactory:()=>new sl},{provide:d.QbO,useValue:"BrowserAnimations"},...ps],Fo=[{provide:Kn,useClass:Wn},{provide:d.QbO,useValue:"NoopAnimations"},...ps];let _o=(()=>{class J{static withConfig(S){return{ngModule:J,providers:S.disableAnimations?Fo:Vo}}}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({providers:Vo,imports:[e.b2]}),J})(),ha=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({providers:[C.e8],imports:[V.ez]}),J})();var Ao=h(81847),Ul=h(4732),cl=h(94856),ti=h(55857),jl=h(37240),Gl=h(15592),Zl=h(75234),zl=h(37380),dl=h(34904),Wl=h(85243),ul=h(68056),Uo=h(24219),Yl=h(25828),hl=h(10369),xi=h(14336),jo=h(25309),Go=h(86353),Jl=h(3246),pl=h(57788),dr=h(80774),ee=h(25610),ie=h(61639);let _e=(()=>{class J{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Ao.y.id,Ul.G.id,cl.c.id,ul.z.id,Uo.z.id,hl.w.id,Jl.T.id,Zl.y.id,Gl.u.id,jl.q.id,ie.C.id,ti.W.id,xi.Z.id,zl.o.id,dl.f.id,ee._.id,Wl.j.id,Yl.t.id,pl.g.id,dr.F.id,jo.Y.id,Go.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(S,k){return S.routeConfig===k.routeConfig}retrieve(S){const k=this.getKey(S);return this.handlers.has(k)?this.handlers.get(k).routeHandle:null}shouldAttach(S){if(!this.isUserNavigatingBack||!S.component)return!1;const k=this.handlers.get(this.getKey(S));return k&&this.getCurrentTimestamp()-k.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(S),{routeHandle:k,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(S){this.isUserNavigatingBack="back"===S}getComponentId(S){return S.id}getKey(S){return S.pathFromRoot.map(k=>k.url.map(Pe=>Pe.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return J.\u0275fac=function(S){return new(S||J)},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac}),J})();const Le=new d.OlP("perun-api-service");let ut=(()=>{class J{constructor(S,k,Pe,it,Dt){this.http=S,this.storeService=k,this.authzSevice=Pe,this.titleService=it,this.utilsService=Dt}initializeColors(S,k){return new Promise(Pe=>{k.forEach(it=>{const Dt=this.storeService.get("theme",it.configValue);document.documentElement.style.setProperty(it.cssVariable,Dt)}),S.forEach(it=>{const Dt=this.storeService.get("theme",it.configValue);document.documentElement.style.setProperty(it.cssVariable,Dt),this.setEntityTheme(it.entity,Dt)}),Pe()})}setEntityTheme(S,k){const Pe=function Tt(J){return[Lt(tinycolor(J).lighten(52),"50"),Lt(tinycolor(J).lighten(37),"100"),Lt(tinycolor(J).lighten(26),"200"),Lt(tinycolor(J).lighten(12),"300"),Lt(tinycolor(J).lighten(6),"400"),Lt(tinycolor(J),"500"),Lt(tinycolor(J).darken(6),"600"),Lt(tinycolor(J).darken(12),"700"),Lt(tinycolor(J).darken(18),"800"),Lt(tinycolor(J).darken(24),"900"),Lt(tinycolor(J).lighten(50).saturate(30),"A100"),Lt(tinycolor(J).lighten(30).saturate(30),"A200"),Lt(tinycolor(J).lighten(10).saturate(15),"A400"),Lt(tinycolor(J).lighten(5).saturate(5),"A700")]}(k);for(const it of Pe){const Zt=`--${S}-theme-primary-contrast-${it.name}`,Xt=it.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${S}-theme-primary-${it.name}`,`${it.red},${it.green},${it.blue}`),document.documentElement.style.setProperty(Zt,Xt)}}loadAppDefaultConfig(){return new Promise(S=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(k=>{this.storeService.setDefaultConfig(k),S()})})}loadAppInstanceConfig(){return new Promise(S=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(k=>{this.storeService.setInstanceConfig(k);const Pe=document.location.hostname;k?.brandings?.[Pe]&&this.storeService.setBanding(Pe),S()},()=>{S()})})}getNoCacheHeaders(){return new Ae.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(S=>{const k=document.querySelector("link[rel*='icon']")||document.createElement("link");k.type="image/x-icon",k.rel="shortcut icon",k.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(k),S()})}setApiUrl(){return new Promise(S=>{let k=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(k=k.replace("oauth","ba")),this.authzSevice.configuration.basePath=k,this.titleService.setTitle(this.storeService.get("document_title","en")),S()})}loadAppsConfig(){return new Promise((S,k)=>{this.utilsService.getAppsConfig().subscribe(Pe=>{this.storeService.setAppsConfig(Pe),S()},Pe=>k(Pe))})}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(Ae.eN),d.LFG(C.d6),d.LFG(g.Ct),d.LFG(e.Dx),d.LFG(g.FW))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Lt(J,I){const S=tinycolor(J),k=S.toRgb();return{name:I,hex:S.toHexString(),darkContrast:S.isLight(),red:k.r,green:k.g,blue:k.b}}let Yt=(()=>{class J{constructor(S,k){this.data=S,this.location=k}redirect(){this.location.go("/"),location.reload()}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(_.WI),d.Y36(V.Ye))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(S,k){1&S&&(d.TgZ(0,"h2"),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"p"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"div")(7,"button",0),d.NdJ("click",function(){return k.redirect()}),d._uU(8),d.ALo(9,"translate"),d.qZA()()),2&S&&(d.xp6(1),d.hij(" ",d.lcZ(2,3,k.data.title),"\n"),d.xp6(3),d.hij(" ",d.lcZ(5,5,k.data.message),"\n"),d.xp6(4),d.hij(" ",d.lcZ(9,7,k.data.action)," "))},dependencies:[U.X$]}),J})(),un=(()=>{class J{constructor(S,k){this.dialogRef=S,this.data=k}refresh(){location.reload()}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(_.so),d.Y36(_.WI))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(S,k){1&S&&(d.TgZ(0,"h2"),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"p"),d._uU(4),d.ALo(5,"translate"),d.qZA(),d.TgZ(6,"div")(7,"button",0),d.NdJ("click",function(){return k.refresh()}),d._uU(8),d.ALo(9,"translate"),d.qZA()()),2&S&&(d.xp6(1),d.hij(" ",d.lcZ(2,3,k.data.title),"\n"),d.xp6(3),d.hij(" ",d.lcZ(5,5,k.data.message),"\n"),d.xp6(4),d.hij(" ",d.lcZ(9,7,k.data.action)," "))},dependencies:[U.X$]}),J})(),Cn=(()=>{class J{constructor(S,k,Pe,it,Dt,Ot){this.initAuthService=S,this.appConfigService=k,this.authzSevice=Pe,this.dialog=it,this.location=Dt,this.guiAuthResolver=Ot,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(S=>{if("Invalid path"!==S)throw console.error(S),this.location.go("/"),location.reload(),S;this.handleErr(S)}).then(S=>S?this.initAuthService.loadPrincipal().catch(k=>this.handleErr(k)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(S){const k=(0,T.kZ)();throw"Invalid path"===S?(k.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Yt,k)):(k.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===S.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":S.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(un,k)),console.error(S),S}loadPolicies(){return new Promise((S,k)=>{this.authzSevice.getAllPolicies().subscribe(Pe=>{this.guiAuthResolver.setPerunPolicies(Pe),S()},Pe=>k(Pe))})}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(C.v0),d.LFG(ut),d.LFG(g.Ct),d.LFG(_.uw),d.LFG(V.Ye),d.LFG(C.x4))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),gn=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[V.ez,_.Is,le.ot,U.aw]}),J})();var Mn=h(40445),ri=h(84080),oi=h(83353),bi=h(21281),Bi=h(77579),qi=h(56451),vi=h(54968),Zo=h(69751),ur=h(66406),zo=h(39646),ms=h(95698),Hh=h(54482),Oa=h(72733),gs=h(22529),Xr=h(82722),$c=h(28746),qc=h(71345);const $l=new d.OlP("SMOOTH_SCROLL_OPTIONS");let Ha=(()=>{class J{constructor(S,k,Pe){this._document=S,this._platform=k,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...Pe}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(S,k,Pe){S.scrollLeft=k,S.scrollTop=Pe}_getElement(S,k){return"string"==typeof S?(k||this._document).querySelector(S):(0,bi.fI)(S)}_initSmoothScroll(S){return this._onGoingScrolls.has(S)&&this._onGoingScrolls.get(S).next(),this._onGoingScrolls.set(S,new Bi.x).get(S)}_isFinished(S,k,Pe){return S.currentX!==S.x||S.currentY!==S.y||(k.next(),Pe(),!1)}_interrupted(S,k){return(0,qi.T)((0,vi.R)(S,"wheel",{passive:!0,capture:!0}),(0,vi.R)(S,"touchmove",{passive:!0,capture:!0}),k).pipe((0,ms.q)(1))}_destroy(S,k){k.complete(),this._onGoingScrolls.delete(S)}_step(S){return new Zo.y(k=>{let Pe=(this._now()-S.startTime)/S.duration;Pe=Pe>1?1:Pe;const it=S.easing(Pe);S.currentX=S.startX+(S.x-S.startX)*it,S.currentY=S.startY+(S.y-S.startY)*it,this._scrollElement(S.scrollable,S.currentX,S.currentY),ur.Z.schedule(()=>k.next(S))})}_applyScrollToOptions(S,k){if(!k.duration)return this._scrollElement(S,k.left,k.top),Promise.resolve();const Pe=this._initSmoothScroll(S),it={scrollable:S,startTime:this._now(),startX:S.scrollLeft,startY:S.scrollTop,x:null==k.left?S.scrollLeft:~~k.left,y:null==k.top?S.scrollTop:~~k.top,duration:k.duration,easing:qc(k.easing.x1,k.easing.y1,k.easing.x2,k.easing.y2)};return new Promise(Dt=>{(0,zo.of)(null).pipe(function fl(J,I=1/0,S){return I=(I||0)<1?1/0:I,(0,Hh.e)((k,Pe)=>(0,Oa.p)(k,Pe,J,I,void 0,!0,S))}(()=>this._step(it).pipe((0,gs.o)(Ot=>this._isFinished(Ot,Pe,Dt)))),(0,Xr.R)(this._interrupted(S,Pe)),(0,$c.x)(()=>this._destroy(S,Pe))).subscribe()})}scrollTo(S,k){if((0,V.NF)(this._platform)){const Pe=this._getElement(S),it="rtl"===getComputedStyle(Pe).direction,Dt=(0,oi._i)(),Ot={...this._defaultOptions,...k,left:k.left??(it?k.end:k.start),right:k.right??(it?k.start:k.end)};return null!=Ot.bottom&&(Ot.top=Pe.scrollHeight-Pe.clientHeight-Ot.bottom),it&&0!==Dt?(null!=Ot.left&&(Ot.right=Pe.scrollWidth-Pe.clientWidth-Ot.left),2===Dt?Ot.left=Ot.right:1===Dt&&(Ot.left=Ot.right?-Ot.right:Ot.right)):null!=Ot.right&&(Ot.left=Pe.scrollWidth-Pe.clientWidth-Ot.right),this._applyScrollToOptions(Pe,Ot)}return Promise.resolve()}scrollToElement(S,k,Pe={}){const it=this._getElement(S),Dt=this._getElement(k,it),Ot={...Pe,left:Dt.offsetLeft+(Pe.left||0),top:Dt.offsetTop+(Pe.top||0)};return Dt?this.scrollTo(it,Ot):Promise.resolve()}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(V.K0),d.LFG(d.Lbi),d.LFG($l,8))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),Qc=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({}),J})();var Pi=h(61135),ql=h(50727),Ql=h(60515),Ri=h(18505),Qi=h(54004),_s=h(63900),Kl=h(78372),ml=h(71884);function pa(...J){const I=J.length;if(0===I)throw new Error("list of properties cannot be empty.");return(0,Qi.U)(S=>{let k=S;for(let Pe=0;Pe{J.onselectstart=()=>!1})}function fa(J){return(0,Ri.b)(()=>{J.onselectstart=null})}function Co(){return(0,Ri.b)(J=>J.stopPropagation())}function nc(J,I){return J.clientX>=I.left&&J.clientX<=I.left+I.width&&J.clientY>=I.top&&J.clientY<=I.top+I.height}let Cs=(()=>{class J{constructor(S){this.viewPort=S,this.nativeElement=S.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var S;return(null===(S=this.contentWrapperElement)||void 0===S?void 0:S.clientHeight)||0}get contentWidth(){var S;return(null===(S=this.contentWrapperElement)||void 0===S?void 0:S.clientWidth)||0}activatePointerEvents(S,k){this.hovered=new Zo.y(Pe=>{const it=(0,vi.R)(this.nativeElement,"mousemove",{passive:!0}),Dt=S?it:it.pipe(Co()),Ot=(0,vi.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Qi.U)(()=>!1));(0,qi.T)(Dt,Ot).pipe((0,Ri.b)(Zt=>Pe.next(Zt)),(0,Xr.R)(k)).subscribe()}),this.clicked=new Zo.y(Pe=>{const it=(0,vi.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Ri.b)(Ot=>Pe.next(Ot))),Dt=(0,vi.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Ri.b)(()=>Pe.next(!1)));it.pipe((0,_s.w)(()=>Dt),(0,Xr.R)(k)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(S){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${S}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(S){this.nativeElement.scrollTop=S}scrollXTo(S){this.nativeElement.scrollLeft=S}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.SBq))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollViewport",""]]}),J})(),Lr=(()=>{class J{}return J.\u0275fac=function(S){return new(S||J)},J.\u0275dir=d.lG2({type:J}),J})();const td=new d.OlP("NG_SCROLLBAR_OPTIONS"),ic={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let rc=(()=>{class J{constructor(S){this.globalOptions=S?{...ic,...S}:ic,this.rtlScrollAxisType=(0,oi._i)()}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(td,8))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),nd=(()=>{class J{constructor(S,k,Pe){this.document=S,this.manager=k,this.platform=Pe,this._scrollbarSize=new Pi.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),Pe.isBrowser&&(0,vi.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,Kl.b)(this.manager.globalOptions.windowResizeDebounce),(0,Qi.U)(()=>this.getNativeScrollbarSize()),(0,ml.x)(),(0,Ri.b)(it=>this._scrollbarSize.next(it))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const S=this.document.createElement("div");S.className="ng-scrollbar-measure",S.style.left="0px",S.style.overflow="scroll",S.style.position="fixed",S.style.top="-9999px",this.document.body.appendChild(S);const k=S.getBoundingClientRect().right;return this.document.body.removeChild(S),k}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(V.K0),d.LFG(rc),d.LFG(oi.t4))},J.\u0275prov=d.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),bs=(()=>{class J{constructor(S,k,Pe){this.renderer=k,this.hideNativeScrollbar=Pe,this._subscriber=ql.w0.EMPTY,this._subscriber=Pe.scrollbarSize.subscribe(it=>{this.renderer.setStyle(S.nativeElement,"--native-scrollbar-size",`-${it}px`,d.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.SBq),d.Y36(d.Qsj),d.Y36(nd))},J.\u0275dir=d.lG2({type:J,selectors:[["","hideNativeScrollbar",""]]}),J})(),oc=(()=>{class J{constructor(S){this.el=S}set ngAttr(S){for(const[k,Pe]of Object.entries(S))this.el.nativeElement.setAttribute(k,Pe)}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.SBq))},J.\u0275dir=d.lG2({type:J,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),J})(),id=(()=>{class J{constructor(S,k,Pe){if(this.zone=S,this.platform=k,this.scrollbar=Pe,this._disabled=!1,this._currentSubscription=null,this.event=new d.vpe,!Pe)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(S){this._debounce=(0,bi.su)(S),this._subscribe()}get disabled(){return this._disabled}set disabled(S){this._disabled=(0,bi.Ig)(S),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const S=new Zo.y(k=>{this._resizeObserver=new ResizeObserver(Pe=>k.next(Pe)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?S.pipe((0,Kl.b)(this._debounce)):S).subscribe(this.event)})}}_unsubscribe(){var S,k;null===(S=this._resizeObserver)||void 0===S||S.disconnect(),null===(k=this._currentSubscription)||void 0===k||k.unsubscribe()}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.R0b),d.Y36(oi.t4),d.Y36(Lr))},J.\u0275dir=d.lG2({type:J,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),J})(),vs=(()=>{class J{constructor(S,k,Pe){this.cmp=S,this.trackElement=k,this.document=Pe}get clicked(){const S=(0,vi.R)(this.trackElement,"mousedown",{passive:!0}).pipe(Co(),Wo(this.document)),k=(0,vi.R)(this.document,"mouseup",{passive:!0}).pipe(Co(),fa(this.document),(0,_s.w)(()=>Ql.E));return(0,qi.T)(S,k)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(S,k,Pe){return(0,zo.of)(S).pipe(pa(this.pageProperty),(0,Qi.U)(it=>(it-this.offset-k/2)/this.size*Pe),(0,Ri.b)(it=>{this.cmp.scrollTo({...this.mapToScrollToOption(it),duration:(0,bi.su)(this.cmp.trackClickScrollDuration)})}))}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(Lr),d.Y36(HTMLElement),d.Y36(Document))},J.\u0275dir=d.lG2({type:J}),J})(),ac=(()=>{class J extends vs{constructor(S,k,Pe){super(S,k.nativeElement,Pe),this.cmp=S,this.document=Pe}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(S){return{left:S}}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(Lr),d.Y36(d.SBq),d.Y36(V.K0))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarTrackX",""]],features:[d.qOj]}),J})(),Es=(()=>{class J extends vs{constructor(S,k,Pe){super(S,k.nativeElement,Pe),this.cmp=S,this.document=Pe}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(S){return{top:S}}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(Lr),d.Y36(d.SBq),d.Y36(V.K0))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarTrackY",""]],features:[d.qOj]}),J})(),rd=(()=>{class J{constructor(S,k,Pe,it){this.cmp=S,this.track=k,this.thumbElement=Pe,this.document=it,this._dragging=new Bi.x,this.dragging=this._dragging.pipe((0,ml.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,vi.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(Co())}update(){const S=function gl(J,I,S){return Math.max(~~(J/I*J),S)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),k=function od(J,I,S){return J*S/I}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ur.Z.schedule(()=>this.updateStyles(this.handleDirection(k,this.trackMax),S))}dragged(S){let k,Pe;const it=(0,zo.of)(S).pipe(Wo(this.document),(0,Ri.b)(()=>{k=this.trackMax,Pe=this.viewportScrollMax,this.setDragging(!0)})),Dt=(0,vi.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Co()),Ot=(0,vi.R)(this.document,"mouseup",{capture:!0}).pipe(Co(),fa(this.document),(0,Ri.b)(()=>this.setDragging(!1)));return it.pipe(pa(this.pageProperty),(0,Qi.U)(Zt=>Zt-this.dragStartOffset),(0,Ba.z)(Zt=>Dt.pipe(pa(this.clientProperty),(0,Qi.U)(Xt=>Xt-this.track.offset),(0,Qi.U)(Xt=>Pe*(Xt-Zt)/k),(0,Qi.U)(Xt=>this.handleDrag(Xt,Pe)),(0,Ri.b)(Xt=>this.scrollTo(Xt)),(0,Xr.R)(Ot))))}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(Lr),d.Y36(vs),d.Y36(HTMLElement),d.Y36(Document))},J.\u0275dir=d.lG2({type:J,outputs:{dragging:"dragging"}}),J})(),_l=(()=>{class J extends rd{constructor(S,k,Pe,it,Dt){super(S,k,Pe.nativeElement,it),this.cmp=S,this.track=k,this.element=Pe,this.document=it,this.dir=Dt}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(S,k){this.thumbElement.style.width=`${k}px`,this.thumbElement.style.transform=`translate3d(${S}px, 0, 0)`}handleDrag(S,k){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return S-k;if(2===this.cmp.manager.rtlScrollAxisType)return k-S}return S}handleDirection(S,k){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-S;if(0===this.cmp.manager.rtlScrollAxisType)return S-k}return S}setDragging(S){this.cmp.setDragging({horizontalDragging:S})}scrollTo(S){this.cmp.viewport.scrollXTo(S)}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(Lr),d.Y36(ac),d.Y36(d.SBq),d.Y36(V.K0),d.Y36(Mn.Is))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarThumbX",""]],features:[d.qOj]}),J})(),Va=(()=>{class J extends rd{constructor(S,k,Pe,it){super(S,k,Pe.nativeElement,it),this.cmp=S,this.track=k,this.element=Pe,this.document=it}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(S,k){this.thumbElement.style.height=`${k}px`,this.thumbElement.style.transform=`translate3d(0px, ${S}px, 0)`}handleDrag(S){return S}handleDirection(S){return S}setDragging(S){this.cmp.setDragging({verticalDragging:S})}scrollTo(S){this.cmp.viewport.scrollYTo(S)}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(Lr),d.Y36(Es),d.Y36(d.SBq),d.Y36(V.K0))},J.\u0275dir=d.lG2({type:J,selectors:[["","scrollbarThumbY",""]],features:[d.qOj]}),J})(),Ts=(()=>{class J{constructor(S,k,Pe,it,Dt){this.el=S,this.cmp=k,this.platform=Pe,this.document=it,this.zone=Dt,this.destroyed=new Bi.x}activatePointerEvents(){let S,k,Pe;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Bi.x,this.viewportThumbClicked=new Bi.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),S=this.viewportThumbClicked,k=this.viewportTrackClicked,Pe=this.cmp.viewport.hovered.pipe((0,Qi.U)(it=>!!it&&nc(it,this.el.getBoundingClientRect())),(0,ml.x)(),(0,Ri.b)(it=>this.document.onselectstart=it?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Ri.b)(it=>{it?nc(it,this.thumb.clientRect)?this.viewportThumbClicked.next(it):nc(it,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(it)):this.cmp.setClicked(!1)}),(0,Xr.R)(this.destroyed)).subscribe()):(S=this.thumb.clicked,k=this.track.clicked,Pe=this.hovered),(0,qi.T)(Pe.pipe((0,Ri.b)(it=>this.setHovered(it))),S.pipe((0,_s.w)(it=>this.thumb.dragged(it))),k.pipe((0,_s.w)(it=>this.track.onTrackClicked(it,this.thumb.size,this.viewportScrollSize))))}get hovered(){const S=(0,vi.R)(this.el,"mouseenter",{passive:!0}).pipe(Co(),(0,Qi.U)(()=>!0)),k=(0,vi.R)(this.el,"mouseleave",{passive:!0}).pipe(Co(),(0,Qi.U)(()=>!1));return(0,qi.T)(S,k)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,Xr.R)(this.destroyed)).subscribe(),(0,qi.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Ri.b)(()=>{var S;return null===(S=this.thumb)||void 0===S?void 0:S.update()}),(0,Xr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(HTMLElement),d.Y36(Lr),d.Y36(oi.t4),d.Y36(Document),d.Y36(d.R0b))},J.\u0275dir=d.lG2({type:J}),J})(),ma=(()=>{class J extends Ts{constructor(S,k,Pe,it,Dt){super(S.nativeElement,k,Pe,it,Dt),this.cmp=k,this.platform=Pe,this.document=it,this.zone=Dt}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(S){this.cmp.setHovered({verticalHovered:S})}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.SBq),d.Y36(Lr),d.Y36(oi.t4),d.Y36(V.K0),d.Y36(d.R0b))},J.\u0275cmp=d.Xpm({type:J,selectors:[["scrollbar-y"]],viewQuery:function(S,k){if(1&S&&(d.Gf(Es,7),d.Gf(Va,7)),2&S){let Pe;d.iGM(Pe=d.CRH())&&(k.track=Pe.first),d.iGM(Pe=d.CRH())&&(k.thumb=Pe.first)}},hostVars:2,hostBindings:function(S,k){2&S&&d.ekj("scrollbar-control",!0)},features:[d.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(S,k){1&S&&(d.TgZ(0,"div",0),d._UZ(1,"div",1),d.qZA()),2&S&&(d.Gre("ng-scrollbar-track ",k.cmp.trackClass,""),d.xp6(1),d.Gre("ng-scrollbar-thumb ",k.cmp.thumbClass,""))},dependencies:[Va,Es],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),J})(),ad=(()=>{class J extends Ts{constructor(S,k,Pe,it,Dt){super(S.nativeElement,k,Pe,it,Dt),this.cmp=k,this.platform=Pe,this.document=it,this.zone=Dt}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(S){this.cmp.setHovered({horizontalHovered:S})}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.SBq),d.Y36(Lr),d.Y36(oi.t4),d.Y36(V.K0),d.Y36(d.R0b))},J.\u0275cmp=d.Xpm({type:J,selectors:[["scrollbar-x"]],viewQuery:function(S,k){if(1&S&&(d.Gf(ac,7),d.Gf(_l,7)),2&S){let Pe;d.iGM(Pe=d.CRH())&&(k.track=Pe.first),d.iGM(Pe=d.CRH())&&(k.thumb=Pe.first)}},hostVars:2,hostBindings:function(S,k){2&S&&d.ekj("scrollbar-control",!0)},features:[d.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(S,k){1&S&&(d.TgZ(0,"div",0),d._UZ(1,"div",1),d.qZA()),2&S&&(d.Gre("ng-scrollbar-track ",k.cmp.trackClass,""),d.xp6(1),d.Gre("ng-scrollbar-thumb ",k.cmp.thumbClass,""))},dependencies:[_l,ac],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),J})(),sd=(()=>{class J{constructor(S,k,Pe,it,Dt,Ot){this.el=S,this.zone=k,this.changeDetectorRef=Pe,this.dir=it,this.smoothScroll=Dt,this.manager=Ot,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new d.vpe,this.state={},this.destroyed=new Bi.x}get disabled(){return this._disabled}set disabled(S){this._disabled=(0,bi.Ig)(S)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(S){this._sensorDisabled=(0,bi.Ig)(S)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(S){this._pointerEventsDisabled=(0,bi.Ig)(S)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(S){this._viewportPropagateMouseMove=(0,bi.Ig)(S)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(S){this._autoHeightDisabled=(0,bi.Ig)(S)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(S){this._autoWidthDisabled=(0,bi.Ig)(S)}get nativeElement(){return this.el.nativeElement}updateState(){let S=!1,k=!1,Pe=!1,it=!1;("all"===this.track||"vertical"===this.track)&&(Pe=this.viewport.scrollHeight>this.viewport.clientHeight,S="always"===this.visibility||Pe),("all"===this.track||"horizontal"===this.track)&&(it=this.viewport.scrollWidth>this.viewport.clientWidth,k="always"===this.visibility||it),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:S,horizontalUsed:k,isVerticallyScrollable:Pe,isHorizontallyScrollable:it})}setState(S){this.state={...this.state,...S},this.changeDetectorRef.detectChanges()}getScrolledByDirection(S){let k;return this.scrolled.pipe((0,Ri.b)(Pe=>k=Pe),pa("target",S),(0,Xl.G)(),(0,Na.h)(([Pe,it])=>Pe!==it),(0,Qi.U)(()=>k))}setHovered(S){this.zone.run(()=>this.setState({...S}))}setDragging(S){this.zone.run(()=>this.setState({...S}))}setClicked(S){this.zone.run(()=>this.setState({scrollbarClicked:S}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let S=(0,vi.R)(this.viewport.nativeElement,"scroll",{passive:!0});S=this.scrollAuditTime?S.pipe((0,Kc.e)(this.scrollAuditTime)):S,this.scrolled=S.pipe((0,Xr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(S){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Ri.b)(()=>this.update()),(0,Xr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(S){return this.smoothScroll.scrollTo(this.viewport.nativeElement,S)}scrollToElement(S,k){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,S,k)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(d.sBO),d.Y36(Mn.Is),d.Y36(Ha),d.Y36(rc))},J.\u0275cmp=d.Xpm({type:J,selectors:[["ng-scrollbar"]],contentQueries:function(S,k,Pe){if(1&S&&d.Suo(Pe,Cs,7),2&S){let it;d.iGM(it=d.CRH())&&(k.customViewPort=it.first)}},viewQuery:function(S,k){if(1&S&&(d.Gf(ec,5,d.SBq),d.Gf(ka,5,d.SBq),d.Gf(Cs,7)),2&S){let Pe;d.iGM(Pe=d.CRH())&&(k.scrollbarY=Pe.first),d.iGM(Pe=d.CRH())&&(k.scrollbarX=Pe.first),d.iGM(Pe=d.CRH())&&(k.defaultViewPort=Pe.first)}},hostVars:2,hostBindings:function(S,k){2&S&&d.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[d._Bn([{provide:Lr,useExisting:J}]),d.TTD],ngContentSelectors:ed,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(S,k){1&S&&(d.F$t(),d.TgZ(0,"div",0)(1,"div",1),d.NdJ("resizeSensor",function(){return k.update()}),d.TgZ(2,"div",2)(3,"div"),d.Hsn(4),d.qZA()()(),d.YNc(5,Xc,3,2,"ng-container",3),d.qZA()),2&S&&(d.Q6J("ngAttr",k.state),d.xp6(1),d.Q6J("sensorDebounce",k.sensorDebounce)("sensorDisabled",k.sensorDisabled),d.xp6(4),d.Q6J("ngIf",!k.disabled))},dependencies:[V.O5,Cs,bs,oc,id,ma,ad],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),J})(),Lh=(()=>{class J{static withConfig(S){return{ngModule:J,providers:[{provide:td,useValue:S}]}}}return J.\u0275fac=function(S){return new(S||J)},J.\u0275mod=d.oAB({type:J}),J.\u0275inj=d.cJS({imports:[V.ez,Mn.vT,ri.eL,oi.ud,Qc]}),J})();var Fa=h(51214),Ua=h(67376),Al=h(22465);function sc(J,I){if(1&J&&(d.TgZ(0,"div",9),d._UZ(1,"perun-web-apps-notification",10),d.qZA()),2&J){const S=I.$implicit;d.xp6(1),d.Q6J("data",S)("inDialog",!0)}}function lc(J,I){if(1&J&&(d.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),d.YNc(2,sc,2,2,"div",8),d.qZA()()),2&J){const S=d.oxw();d.xp6(2),d.Q6J("cdkVirtualForOf",S.notifications)}}function Yo(J,I){1&J&&(d.TgZ(0,"perun-web-apps-alert",11),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&J&&(d.xp6(1),d.Oqu(d.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let ld=(()=>{class J{constructor(S,k){this.dialogRef=S,this.notificationStorageService=k}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(_.so),d.Y36(C.SZ))},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(S,k){1&S&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.YNc(3,lc,3,1,"div",1),d.YNc(4,Yo,3,3,"perun-web-apps-alert",2),d.TgZ(5,"div",3)(6,"button",4),d.NdJ("click",function(){return k.onClear()}),d._uU(7),d.ALo(8,"translate"),d.qZA(),d.TgZ(9,"button",5),d.NdJ("click",function(){return k.onCancel()}),d._uU(10),d.ALo(11,"translate"),d.qZA()()),2&S&&(d.xp6(1),d.Oqu(d.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),d.xp6(2),d.Q6J("ngIf",0!==k.notifications.length),d.xp6(1),d.Q6J("ngIf",0===k.notifications.length),d.xp6(3),d.hij(" ",d.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),d.xp6(3),d.hij(" ",d.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},dependencies:[V.O5,le.lW,_.uh,_.H8,Ua.xd,Ua.x0,Ua.N7,P.w,Al.c,U.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),J})();var cd=h(42673),dd=h(52314);function ud(J,I){1&J&&(d.TgZ(0,"div",10)(1,"span",11),d._uU(2," ~ \u{1f5f2}\xa0 "),d.qZA(),d.TgZ(3,"span",12),d._uU(4," DEVEL "),d.qZA(),d.TgZ(5,"span",11),d._uU(6," \xa0\u{1f5f2} ~ "),d.qZA()())}const ys=function(J){return{color:J}},eo=function(){return["/home"]};let ga=(()=>{class J{constructor(S,k,Pe,it,Dt,Ot,Zt,Xt,pn,bn){this.storeService=S,this.authService=k,this.authzResolverService=Pe,this.dialog=it,this.notificator=Dt,this.translateService=Ot,this.store=Zt,this.sanitizer=Xt,this.notificationStorageService=pn,this.otherApplicationService=bn,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.profileLabel=this.storeService.get("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const S=(0,T.kZ)();S.width="520px",this.dialog.open(ld,S)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(C.d6),d.Y36(C.e8),d.Y36(g.Ct),d.Y36(_.uw),d.Y36(C.V6),d.Y36(U.sK),d.Y36(C.d6),d.Y36(e.H7),d.Y36(C.SZ),d.Y36(C.jq))},J.\u0275cmp=d.Xpm({type:J,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:13,vars:28,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0)(1,"button",1),d.NdJ("click",function(){return k.sideNav.toggle()}),d.TgZ(2,"mat-icon",2),d._uU(3," menu "),d.qZA()(),d.TgZ(4,"a",3),d._UZ(5,"div",4),d.qZA()(),d.YNc(6,ud,7,0,"div",5),d.TgZ(7,"div",6)(8,"button",7),d.NdJ("click",function(){return k.showNotificationHistory()}),d.ALo(9,"translate"),d.TgZ(10,"mat-icon",8),d._uU(11),d.qZA()(),d._UZ(12,"perun-web-apps-header-menu",9),d.qZA()),2&S&&(d.Q6J("ngStyle",d.VKq(19,ys,k.navTextColor)),d.xp6(2),d.Q6J("ngStyle",d.VKq(21,ys,k.iconColor)),d.xp6(2),d.Q6J("routerLink",d.DdM(23,eo)),d.xp6(1),d.Q6J("innerHTML",k.logo,d.oJD),d.xp6(1),d.Q6J("ngIf",k.isDevel),d.xp6(1),d.Q6J("ngStyle",d.VKq(24,ys,k.navTextColor)),d.xp6(1),d.Q6J("matTooltip",d.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),d.xp6(2),d.s9C("matBadge",k.getNewNotificationsCount()>5?"5+":k.getNewNotificationsCount()),d.Q6J("ngStyle",d.VKq(26,ys,k.iconColor))("matBadgeHidden",0===k.getNewNotificationsCount()),d.xp6(1),d.hij(" ",k.getNewNotificationsCount()?"notifications_active":"notifications"," "),d.xp6(1),d.Q6J("iconColor",k.iconColor)("label",k.profileLabel)("textColor",k.navTextColor)("logoutEnabled",k.logoutEnabled)("url",k.profileUrl)("user",k.principal.user))},dependencies:[V.O5,V.PC,A.yS,X.Hw,le.lW,ue.gM,cd.k,dd.X,U.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),J})();var hd=h(73228),pd=h(36769);function fd(J,I){if(1&J){const S=d.EpF();d.TgZ(0,"div")(1,"perun-web-apps-notification",2),d.NdJ("closeNotification",function(){const it=d.CHM(S).index,Dt=d.oxw();return d.KtG(Dt.removeNotification(it))}),d.qZA()()}if(2&J){const S=I.$implicit;d.Q6J("@flyInOut",void 0),d.xp6(1),d.Q6J("data",S)("newNotification",!0)}}const md=function(J){return{top:J}};let gd=(()=>{class J{constructor(S,k){this.notificator=S,this.notificationStorageService=k,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Pe=>{this.processNotification(Pe)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(S){this.notifications.splice(S,1)}processNotification(S){this.notifications.push(S),this.notificationStorageService.storeNotification(S)}}return J.\u0275fac=function(S){return new(S||J)(d.Y36(C.V6),d.Y36(C.SZ))},J.\u0275cmp=d.Xpm({type:J,selectors:[["perun-web-apps-notificator"]],hostBindings:function(S,k){1&S&&d.NdJ("resize",function(it){return k.getScreenSize(it)},!1,d.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(S,k){1&S&&(d.TgZ(0,"div",0),d.YNc(1,fd,2,3,"div",1),d.qZA()),2&S&&(d.Q6J("ngStyle",d.VKq(2,md,k.getNotificatorTop())),d.xp6(1),d.Q6J("ngForOf",k.notifications))},dependencies:[V.sg,V.PC,Al.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[pd.Pd]}}),J})();const _d={provide:Ae.TP,useExisting:(0,d.Gpc)(()=>C.yC),multi:!0};function cc(J){return new ke(J,"./assets/i18n/",".json")}function Ad(J){const I={basePath:J.get("api_url")};return new g.VK(I)}const Cd=J=>()=>J.initialize();let bd=(()=>{class J{constructor(S,k){this.customIconService=S,this.translate=k,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return J.\u0275fac=function(S){return new(S||J)(d.LFG(C.EB),d.LFG(U.sK))},J.\u0275mod=d.oAB({type:J,bootstrap:[Xe.y]}),J.\u0275inj=d.cJS({providers:[Cn,{provide:d.ip1,useFactory:Cd,multi:!0,deps:[Cn]},{provide:g.VK,useFactory:Ad,deps:[C.d6]},{provide:A.wN,useClass:_e},C.EB,{provide:Le,useClass:C.sM},C.yC,_d,{provide:Fa.Hy,useFactory:()=>localStorage}],imports:[_o,e.b2,Ae.JF,Ke.m,ha,Ie,X.Ps,gn,U.aw.forRoot({loader:{provide:U.Zw,useFactory:cc,deps:[Ae.eN]}}),g.au,m.ez,t,Lh.withConfig({autoWidthDisabled:!1,visibility:"hover"}),Fa.zr.forRoot()]}),J})();d.B6R(Xe.y,function(){return[V.O5,V.PC,ga,A.lC,X.Hw,hd.V,ne.JX,ne.TM,ne.Rh,a.$,gd,ln,sd]},[]),(0,d.G48)(),e.q6().bootstrapModule(bd).catch(J=>console.error(J))},11243:(Je,pe,h)=>{"use strict";h.d(pe,{r:()=>A});var e=h(36895),d=h(94650);let A=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=d.oAB({type:w}),w.\u0275inj=d.cJS({imports:[e.ez]}),w})()},6335:(Je,pe,h)=>{"use strict";h.d(pe,{Ng:()=>w,Rc:()=>d,pI:()=>A});var e=h(94650);const d="GUI_CONFIG.PREF_PAGE_SIZE",A="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(T){return localStorage.getItem(T)}getNumber(T){return parseInt(localStorage.getItem(T),10)}setNumber(T,v){localStorage.setItem(T,v.toString())}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:(Je,pe,h)=>{"use strict";h.d(pe,{$I:()=>jt,$V:()=>Ne,$t:()=>Kt,AA:()=>U,Ad:()=>se,Af:()=>H,Aj:()=>Ze,BV:()=>we,Bf:()=>t,CE:()=>Ge,CP:()=>w,Cf:()=>He,DR:()=>me,FF:()=>It,H2:()=>X,HC:()=>j,HE:()=>ot,Hi:()=>de,Is:()=>Ie,It:()=>m,Iz:()=>s,JO:()=>L,Jf:()=>ye,KE:()=>P,M8:()=>ke,NG:()=>Z,NL:()=>ae,O7:()=>W,O9:()=>ve,RS:()=>De,S7:()=>Pt,Sb:()=>G,US:()=>p,VR:()=>_,W1:()=>xe,Wv:()=>fe,XH:()=>sn,YF:()=>T,_7:()=>ce,_c:()=>Ee,aL:()=>Q,bf:()=>q,cL:()=>he,d7:()=>oe,dB:()=>A,dI:()=>le,dK:()=>We,e5:()=>n,ee:()=>lt,eq:()=>st,g:()=>Ae,gB:()=>$,gG:()=>M,gc:()=>v,iQ:()=>o,j1:()=>te,kO:()=>Oe,kZ:()=>ze,nT:()=>C,oK:()=>r,qV:()=>E,qy:()=>ue,rF:()=>Me,rc:()=>Te,tY:()=>O,tw:()=>g,uC:()=>N,uI:()=>on,uM:()=>V,v1:()=>R,vq:()=>ge,xt:()=>ne,xx:()=>Y,yW:()=>tt,z6:()=>l,zW:()=>xt,zp:()=>c});var e=h(6335),d=h(94650);let A=(()=>{class fn{constructor(Rt){this.guiConfigService=Rt}getTablePageSize(Rt){const Ct=this.guiConfigService.getNumber(e.pI+Rt);if(!isNaN(Ct))return Ct;const Ft=this.guiConfigService.getNumber(e.Rc);return isNaN(Ft)?10:Ft}setTablePageSize(Rt,Ct){this.guiConfigService.setNumber(e.pI+Rt,Ct)}}return fn.\u0275fac=function(Rt){return new(Rt||fn)(d.LFG(e.Ng))},fn.\u0275prov=d.Yz7({token:fn,factory:fn.\u0275fac,providedIn:"root"}),fn})();const w="0",g="1",C="2",T="3",v="4",R="5",U="6",_="7",V="8",Y="9",X="10",ne="11",le="12",te="13",fe="14",ue="15",we="16",E="17",O="18",H="19",W="20",$="21",de="22",ye="23",xe="24",Me="25",Ze="26",se="27",ze="28",he="29",De="30",j="31",P="32",G="33",ce="34",q="35",Te="36",He="37",st="42",Z="43",ve="44",oe="45",ge="46",ae="47",Oe="48",Q="49",me="50",N="51",L="52",r="53",s="54",m="55",l="56",o="57",n="58",t="59",c="62",p="63",M="64",Ne="65",Pt="66",xt="69",Ge="71",Ie="72",ke="75",Ae="76",Ee="77",We="78",tt="79",ot="80",lt="82",It="83",jt="84",sn="85",Kt="86",on="87"},36769:(Je,pe,h)=>{"use strict";h.d(pe,{Ji:()=>g,Pd:()=>A,BQ:()=>d,Ly:()=>w,GH:()=>v,Ls:()=>R,SG:()=>T,es:()=>C});var e=h(37340);const d=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),A=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),w=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),g=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),C=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),T=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),v=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),R=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},33604:(Je,pe,h)=>{"use strict";h.d(pe,{Mw:()=>P.M,qG:()=>Q.qG,Sx:()=>ae.S,y9:()=>me,Nj:()=>_t.N,ez:()=>De,t$:()=>st});var e=h(36895),d=h(56709),A=h(30671),w=h(89383),g=h(94364),C=h(96308),T=h(98739),v=h(51572),R=h(63189),U=h(97392),_=h(28255),V=h(4859),Y=h(10266),X=h(59549),ne=h(24006),le=h(284),te=h(77331),fe=h(73555),ue=h(3238),we=h(19516),E=h(64425),O=h(35423),H=h(99602),W=h(71948),$=h(84385),de=h(33231),ye=h(67376),xe=h(65412),Me=h(9244),Ze=h(57882),se=h(94650);let ze=(()=>{class N extends ue.LF{format(r,s){return"input"===s?`${r.getDate().toString()}.${(r.getMonth()+1).toString()}.${r.getFullYear()}`:r.toDateString()}}return N.\u0275fac=function(){let L;return function(s){return(L||(L=se.n5z(N)))(s||N)}}(),N.\u0275prov=se.Yz7({token:N,factory:N.\u0275fac}),N})();const he={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let De=(()=>{class N{}return N.\u0275fac=function(r){return new(r||N)},N.\u0275mod=se.oAB({type:N}),N.\u0275inj=se.cJS({providers:[{provide:ue._A,useClass:ze},{provide:ue.sG,useValue:he}],imports:[e.ez,d.p9,A.p0,ne.u5,te.Hi,fe._t,w.aw,g.Bz,C.JX,T.TU,v.Cq,R.r,U.Ps,_.Tx,V.ot,Y.AV,X.lN,ne.UX,le.c,ue.si,we.d4,E.Iq,O.dp,H.FA,W.Fk,ue.Ng,$.LD,de.Co,ye.Cl,xe.Is,Me.Je,Ze.C]}),N})();h(53984);var P=h(43532),_t=(h(38719),h(21963),h(28820),h(63167),h(62109),h(22465),h(80275),h(53599)),Qe=h(32080);let st=(()=>{class N{constructor(r,s,m,l){this.router=r,this.route=s,this.location=m,this.forceRoute=l}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(r=>{this.router.navigate([r.redirectTo])}):this.location.back()}}return N.\u0275fac=function(r){return new(r||N)(se.Y36(g.F0),se.Y36(g.gz),se.Y36(e.Ye),se.Y36(Qe.xw))},N.\u0275cmp=se.Xpm({type:N,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(r,s){}}),N})();h(24179),h(58956),h(41619),h(61150);var ae=h(63312),Q=(h(52314),h(52170));let me=(()=>{class N{constructor(r){this.router=r}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return N.\u0275fac=function(r){return new(r||N)(se.Y36(g.F0))},N.\u0275cmp=se.Xpm({type:N,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(r,s){1&r&&(se.TgZ(0,"div",0)(1,"h1",1),se._uU(2),se.ALo(3,"translate"),se.qZA(),se.TgZ(4,"div"),se._uU(5),se.ALo(6,"translate"),se.qZA(),se.TgZ(7,"button",2),se.NdJ("click",function(){return s.redirectToHome()}),se._uU(8),se.ALo(9,"translate"),se.qZA()()),2&r&&(se.xp6(2),se.Oqu(se.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),se.xp6(3),se.Oqu(se.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),se.xp6(3),se.hij(" ",se.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[V.lW,w.X$]}),N})()},63312:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>g,Y:()=>C});var e=h(94650),A=(h(32105),h(89383)),w=h(42377);const g={};let C=(()=>{class T{constructor(R){this.translate=R,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=U=>U===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):U.shortname,this.secondaryFunction=U=>U===g?"":U.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(U.id),this.searchFunction=U=>U===g?"":U.shortname+String(U.id)}}return T.\u0275fac=function(R){return new(R||T)(e.Y36(A.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,U){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(V){return U.itemSelected.emit(V)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",U.items)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.secondaryFunction)("entity",U.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[w.i,A.X$]}),T})()},38719:(Je,pe,h)=>{"use strict";h.d(pe,{u:()=>U});var e=h(94650),d=h(9244),A=h(36895),w=h(56709),g=h(24006),C=h(59549),T=h(64597);function v(_,V){if(1&_){const Y=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(Y);const ne=e.oxw();return e.KtG(ne._sendEventToParent())})("ngModelChange",function(ne){e.CHM(Y);const le=e.oxw();return e.KtG(le.attribute.value=ne)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&_){const Y=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,Y.attribute.displayName),"-value"),e.Q6J("ngModel",Y.attribute.value)}}function R(_,V){if(1&_&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&_){const Y=e.oxw();e.xp6(1),e.Oqu(Y.attribute.value)}}let U=(()=>{class _{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,d.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return _.\u0275fac=function(Y){return new(Y||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(Y,X){1&Y&&(e.TgZ(0,"div"),e.YNc(1,v,2,4,"mat-checkbox",0),e.YNc(2,R,2,1,"mat-label",1),e.qZA()),2&Y&&(e.xp6(1),e.Q6J("ngIf",!X.readonly),e.xp6(1),e.Q6J("ngIf",X.readonly))},dependencies:[A.O5,w.oG,g.JJ,g.On,C.hX,T.R]}),_})()},21963:(Je,pe,h)=>{"use strict";h.d(pe,{H:()=>O});var e=h(94650),d=h(29521),A=h(73555),w=h(16074),g=h(9244),C=h(65412),T=h(36895),v=h(77331),R=h(97392),U=h(4859),_=h(10266),V=h(59549),Y=h(284);function X(H,W){if(1&H){const $=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM($);const ye=e.oxw(2);return e.KtG(ye.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function ne(H,W){if(1&H){const $=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM($);const ye=e.oxw().$implicit,xe=e.oxw();return e.KtG(xe.edit(ye))}),e._uU(1,"edit"),e.qZA()}}function le(H,W){if(1&H){const $=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM($);const ye=e.oxw().$implicit,xe=e.oxw();return e.KtG(xe.remove(ye))}),e._uU(1,"cancel"),e.qZA()}}function te(H,W){if(1&H){const $=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const xe=e.CHM($).$implicit,Me=e.oxw();return Me.remove(xe),e.KtG(Me._sendEventToParent())}),e.YNc(1,X,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const xe=e.CHM($).$implicit,Me=e.oxw();return e.KtG(Me.readonly&&void 0!==Me.attribute.displayName&&Me.showValue(xe,Me.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,ne,2,0,"mat-icon",7),e.YNc(5,le,2,0,"mat-icon",8),e.qZA()}if(2&H){const $=W.$implicit,de=e.oxw();e.Q6J("selectable",de.selectable)("cdkDragData",$)("removable",de.removable),e.xp6(1),e.Q6J("ngIf",de.removable),e.xp6(1),e.ekj("cursor-pointer",de.readonly&&void 0!==de.attribute.displayName),e.xp6(1),e.hij(" ",$," "),e.xp6(1),e.Q6J("ngIf",de.removable),e.xp6(1),e.Q6J("ngIf",de.removable)}}function fe(H,W){1&H&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function ue(H,W){1&H&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function we(H,W){if(1&H){const $=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM($);const ye=e.oxw();return e.KtG(ye.onShowChange())}),e.YNc(3,fe,2,0,"mat-icon",15),e.YNc(4,ue,2,0,"mat-icon",15),e.qZA()()()}if(2&H){const $=e.oxw();e.xp6(1),e.Q6J("matTooltip",$.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!$.showMore),e.xp6(1),e.Q6J("ngIf",$.showMore)}}function E(H,W){if(1&H){const $=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(ye){e.CHM($);const xe=e.oxw();return e.KtG(xe.add(ye))})("change",function(){e.CHM($);const ye=e.oxw();return e.KtG(ye._sendEventToParent())}),e.qZA()()}if(2&H){const $=e.oxw(),de=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",de)("matChipInputSeparatorKeyCodes",$.separatorKeysCodes)("matChipInputAddOnBlur",$.addOnBlur)}}let O=(()=>{class H{constructor($,de){this.dialog=$,this.changeDetector=de,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[d.K5,d.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,g.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,g.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add($){const de=$.input,ye=$.value;(ye||"").trim()&&(this.attribute.value.push(ye.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),de&&(de.value=""),this.sendEventToParent.emit()}remove($){const de=(0,g.kZ)();de.width="400px",de.data={name:$},this.dialog.open(w.Wr,de).afterClosed().subscribe(xe=>{if(xe){const Me=this.attribute.value.indexOf($);this.attribute.value.splice(Me,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop($){this.dragDisabled=!0,(0,A.bA)(this.attribute.value,$.previousIndex,$.currentIndex),this.values=this.attribute.value}edit($){const de=this.attribute.value.indexOf($),ye=(0,g.kZ)();ye.width="600px",ye.data={attribute:this.attribute,index:de},this.dialog.open(w.r2,ye).afterClosed().subscribe(Me=>{Me&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue($,de){const ye=(0,g.kZ)();ye.width="350px",ye.data={value:$,title:de},this.dialog.open(w.mk,ye)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return H.\u0275fac=function($){return new($||H)(e.Y36(C.uw),e.Y36(e.sBO))},H.\u0275cmp=e.Xpm({type:H,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function($,de){1&$&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(xe){return de.drop(xe),de._sendEventToParent()}),e.YNc(3,te,6,9,"mat-chip",2),e.YNc(4,we,5,4,"div",3),e.YNc(5,E,2,3,"mat-form-field",3),e.qZA()()),2&$&&(e.xp6(1),e.Q6J("cdkDropListDisabled",de.dragDisabled),e.xp6(2),e.Q6J("ngForOf",de.values.slice(0,de.itemsShown)),e.xp6(1),e.Q6J("ngIf",de.values.length>de.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!de.readonly))},dependencies:[T.sg,T.O5,v.qn,v.HS,v.oH,A.Wj,A.Zt,R.Hw,U.lW,_.gM,V.KE,Y.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),H})()},28820:(Je,pe,h)=>{"use strict";h.d(pe,{$:()=>fe});var e=h(16074),d=h(9244),A=h(94650),w=h(65412),g=h(36895),C=h(24006),T=h(97392),v=h(4859),R=h(10266),U=h(59549),_=h(284);function V(ue,we){if(1&ue){const E=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(E);const H=A.oxw().index,W=A.oxw();return A.KtG(W.removeValue(H))}),A.TgZ(1,"mat-icon"),A._uU(2," indeterminate_check_box "),A.qZA()()}}function Y(ue,we){if(1&ue){const E=A.EpF();A.TgZ(0,"div",9)(1,"mat-form-field",10),A._UZ(2,"label",11),A.TgZ(3,"input",12),A.NdJ("click",function(){const W=A.CHM(E).index,$=A.oxw();return A.KtG($.readonly&&$.attribute.displayName&&$.showValue($.keys[W],$.attribute.displayName))})("ngModelChange",function(H){const $=A.CHM(E).index,de=A.oxw();return A.KtG(de.keys[$]=H)}),A.qZA()(),A.TgZ(4,"mat-form-field",10),A._UZ(5,"label",11),A.TgZ(6,"input",13),A.NdJ("click",function(){const W=A.CHM(E).$implicit,$=A.oxw();return A.KtG($.readonly&&void 0!==$.attribute.displayName&&$.showValue(W,$.attribute.displayName))})("ngModelChange",function(H){const $=A.CHM(E).index,de=A.oxw();return A.KtG(de.values[$]=H)}),A.qZA()(),A.YNc(7,V,3,0,"button",14),A.qZA()}if(2&ue){const E=we.index,O=A.oxw();A.xp6(1),A.s9C("appearance",O.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",O.attribute.id,"-key-",E,""),A.xp6(1),A.ekj("cursor-pointer",O.readonly&&void 0!==O.attribute.displayName),A.hYB("id","",O.attribute.id,"-key-",E,""),A.MGl("name","key-",E,""),A.Q6J("ngModel",O.keys[E])("readonly",O.readonly),A.xp6(1),A.s9C("appearance",O.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",O.attribute.id,"-value-",E,""),A.xp6(1),A.ekj("cursor-pointer",O.readonly&&void 0!==O.attribute.displayName),A.MGl("name","value-",E,""),A.hYB("id","",O.attribute.id,"-value-",E,""),A.Q6J("readonly",O.readonly)("ngModel",O.values[E]),A.xp6(1),A.Q6J("ngIf",!O.readonly)}}function X(ue,we){1&ue&&(A.TgZ(0,"mat-icon"),A._uU(1,"more_horiz"),A.qZA())}function ne(ue,we){1&ue&&(A.TgZ(0,"mat-icon"),A._uU(1,"keyboard_arrow_up"),A.qZA())}function le(ue,we){if(1&ue){const E=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(E);const H=A.oxw();return A.KtG(H.onShowChange())}),A.YNc(1,X,2,0,"mat-icon",17),A.YNc(2,ne,2,0,"mat-icon",17),A.qZA()}if(2&ue){const E=A.oxw();A.xp6(1),A.Q6J("ngIf",!E.showMore),A.xp6(1),A.Q6J("ngIf",E.showMore)}}function te(ue,we){if(1&ue){const E=A.EpF();A.TgZ(0,"button",18),A.NdJ("click",function(){A.CHM(E);const H=A.oxw();return A.KtG(H.addValue())}),A.TgZ(1,"mat-icon"),A._uU(2," add_box "),A.qZA()()}}let fe=(()=>{class ue{constructor(E){this.dialog=E,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const E=new Map(Object.entries(this.attribute.value));for(const[O,H]of E.entries())this.keys.push(O),this.values.push(H)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,d.Hm)(this.attribute))}customTrackBy(E){return E}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(E){this.keys.splice(E,1),this.values.splice(E,1)}updateAttribute(){const E={};for(let O=0;OO.defaultItemsShown),A.xp6(1),A.Q6J("ngIf",!O.readonly))},dependencies:[g.sg,g.O5,C._Y,C.Fj,C.JJ,C.JL,C.Q7,C.On,C.F,T.Hw,v.lW,R.gM,U.KE,_.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),ue})()},63167:(Je,pe,h)=>{"use strict";h.d(pe,{_:()=>R});var e=h(94650),d=h(9244),A=h(16074),w=h(65412),g=h(24006),C=h(59549),T=h(284),v=h(64597);let R=(()=>{class U{constructor(V){this.dialog=V,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,d.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(V,Y){const X=(0,d.kZ)();X.width="350px",X.data={value:V,title:Y},this.dialog.open(A.mk,X)}}return U.\u0275fac=function(V){return new(V||U)(e.Y36(w.uw))},U.\u0275cmp=e.Xpm({type:U,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(V,Y){1&V&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return Y.readonly&&void 0!==Y.value&&Y.showValue(Y.value,Y.attribute.displayName)})("ngModelChange",function(ne){return Y.attribute.value=ne})("keydown",function(){return Y._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&V&&(e.s9C("appearance",Y.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",Y.readonly&&void 0!==Y.value),e.Q2q("data-cy","",e.lcZ(2,6,Y.attribute.displayName),"-value"),e.Q6J("readonly",Y.readonly)("ngModel",Y.attribute.value))},dependencies:[g.Fj,g.JJ,g.On,C.KE,T.Nt,v.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),U})()},43532:(Je,pe,h)=>{"use strict";h.d(pe,{M:()=>we});var e=h(94650),d=h(28820),A=h(36895),w=h(38719),g=h(21963),C=h(63167),T=h(9244),v=h(16074),R=h(65412),U=h(24006),_=h(59549),V=h(284);let Y=(()=>{class E{constructor(H){this.dialog=H,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,T.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(H){const W=(0,T.kZ)();W.width="350px",W.data={value:H.value,title:H.displayName},this.dialog.open(v.mk,W)}}return E.\u0275fac=function(H){return new(H||E)(e.Y36(R.uw))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(H,W){1&H&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return W.readonly&&void 0!==W.attribute.value&&W.showValue(W.attribute)})("ngModelChange",function(de){return W.attribute.value=de})("keydown",function(){return W._sendEventToParent()}),e.qZA()()),2&H&&(e.s9C("appearance",W.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.value),e.Q6J("readonly",W.readonly)("ngModel",W.attribute.value))},dependencies:[U.Fj,U.wV,U.JJ,U.On,_.KE,V.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),E})();const X=["map"];function ne(E,O){if(1&E){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const $=e.oxw();return e.KtG($._sendEventToParent2())}),e.qZA()}if(2&E){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function le(E,O){if(1&E){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const $=e.oxw();return e.KtG($._sendEventToParent2())}),e.qZA()}if(2&E){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function te(E,O){if(1&E&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&E){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function fe(E,O){if(1&E){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const $=e.oxw();return e.KtG($._sendEventToParent2())}),e.qZA()}if(2&E){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}function ue(E,O){if(1&E){const H=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(H);const $=e.oxw();return e.KtG($._sendEventToParent2())}),e.qZA()}if(2&E){const H=e.oxw();e.Q6J("attribute",H.attribute)("readonly",H.readonly)}}let we=(()=>{class E{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return E.\u0275fac=function(H){return new(H||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(H,W){if(1&H&&e.Gf(X,5),2&H){let $;e.iGM($=e.CRH())&&(W.mapComponent=$.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(H,W){1&H&&(e.TgZ(0,"div"),e.YNc(1,ne,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,le,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return W._sendEventToParent2()}),e.YNc(4,te,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,fe,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,ue,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&H&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===W.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===W.attribute.type||"java.lang.LargeString"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===W.attribute.type))},dependencies:[A.O5,w.u,g.H,d.$,C._,Y]}),E})()},53984:(Je,pe,h)=>{"use strict";h.d(pe,{p:()=>Ze});var e=h(96308),d=h(30671),A=h(95017),w=h(43532),g=h(9244),C=h(32080),T=h(94650),v=h(36895),R=h(56709),U=h(98380),_=h(10266),V=h(18750),Y=h(89383);let X=(()=>{class se{transform(he){return"virt"===he.namespace.split(":")[4]}}return se.\u0275fac=function(he){return new(he||se)},se.\u0275pipe=T.Yjl({name:"isVirtualAttribute",type:se,pure:!0}),se})();var ne=h(64597);function le(se,ze){if(1&se){const he=T.EpF();T.TgZ(0,"th",17)(1,"mat-checkbox",18),T.NdJ("change",function(j){T.CHM(he);const P=T.oxw();return T.KtG(j?P.masterToggle():null)}),T.qZA()()}if(2&se){const he=T.oxw();T.xp6(1),T.Q6J("checked",he.selection.hasValue()&&he.isAllSelected())("indeterminate",he.selection.hasValue()&&!he.isAllSelected())("aria-label",he.checkboxLabel())}}function te(se,ze){if(1&se){const he=T.EpF();T.TgZ(0,"td",19)(1,"mat-checkbox",20),T.NdJ("click",function(j){return j.stopPropagation()})("change",function(j){const G=T.CHM(he).$implicit,ce=T.oxw();return T.KtG(j?ce.selection.toggle(G):null)}),T.ALo(2,"multiWordDataCy"),T.ALo(3,"isVirtualAttribute"),T.qZA()()}if(2&se){const he=ze.$implicit,De=T.oxw();T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,4,he.displayName),"-checkbox"),T.Q6J("checked",De.selection.isSelected(he))("disabled",T.lcZ(3,6,he)||!he.writable)("aria-label",De.checkboxLabel(he))}}function fe(se,ze){1&se&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&se&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function ue(se,ze){if(1&se&&(T.TgZ(0,"td",22),T._uU(1),T.qZA()),2&se){const he=ze.$implicit;T.xp6(1),T.Oqu(he.id)}}function we(se,ze){1&se&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&se&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function E(se,ze){if(1&se&&(T.TgZ(0,"td",23)(1,"div",24),T._uU(2),T.qZA()()),2&se){const he=ze.$implicit,De=T.oxw();T.xp6(1),T.s9C("matTooltip",De.getAttributeFullName(he)),T.xp6(1),T.hij(" ",he.displayName," ")}}function O(se,ze){1&se&&(T.TgZ(0,"th",25),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&se&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function H(se,ze){if(1&se){const he=T.EpF();T.TgZ(0,"td",23)(1,"perun-web-apps-attribute-value",26),T.NdJ("sendEventToParent2",function(){const P=T.CHM(he).$implicit,G=T.oxw();return T.KtG(G.onValueChange(P))}),T.qZA()()}if(2&se){const he=ze.$implicit,De=T.oxw();T.xp6(1),T.Q6J("attribute",he)("readonly",De.readonly||!he.writable)}}function W(se,ze){1&se&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&se&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function $(se,ze){if(1&se&&(T.TgZ(0,"td",23),T._uU(1),T.qZA()),2&se){const he=ze.$implicit;T.xp6(1),T.Oqu(he.description)}}function de(se,ze){1&se&&T._UZ(0,"tr",27)}function ye(se,ze){if(1&se&&(T._UZ(0,"tr",28),T.ALo(1,"translate")),2&se){const he=ze.$implicit,De=T.oxw();T.s9C("matTooltip",T.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),T.Q6J("matTooltipPosition","before")("matTooltipDisabled",he.writable||De.readonly)}}function xe(se,ze){1&se&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&se&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Me(se,ze){if(1&se&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&se){const he=T.oxw();T.xp6(1),T.hij(" ",T.lcZ(2,1,he.emptyListText),"\n")}}let Ze=(()=>{class se{constructor(he,De){this.authResolver=he,this.tableCheckbox=De,this.attributes=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=g.f7}set matSort(he){this.sort=he,this.setDataSource()}static canBeSelected(he){return!(0,g.Hm)(he)&&he.writable}static getDataForColumn(he,De){switch(De){case"id":return he.id.toString();case"displayName":return he.displayName;case"description":return he.description;case"value":return JSON.stringify(he.value);case"urn":return he.namespace+":"+he.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(he=>"id"!==he)),this.dataSource=new d.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(he){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,se.getDataForColumn),he)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(he=>!this.hiddenColumns.includes(he)),this.dataSource&&(this.dataSource.filterPredicate=(he,De)=>(0,g.Sd)(he,De,this.displayedColumns.concat("urn"),se.getDataForColumn),this.dataSource.sortData=(he,De)=>(0,g.pR)(he,De,se.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,se.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,se.canBeSelected)}checkboxLabel(he){return he?`${this.selection.isSelected(he)?"deselect":"select"} row ${he.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const he of this.items.toArray())"java.util.LinkedHashMap"===he.attribute.type&&he.updateMapAttribute()}onValueChange(he){se.canBeSelected(he)&&this.selection.select(he)}getAttributeFullName(he){return`${he.namespace}:${he.friendlyName}`}}return se.\u0275fac=function(he){return new(he||se)(T.Y36(C.x4),T.Y36(C.UA))},se.\u0275cmp=T.Xpm({type:se,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(he,De){if(1&he&&(T.Gf(g.l9,7),T.Gf(e.YE,7),T.Gf(w.M,5)),2&he){let j;T.iGM(j=T.CRH())&&(De.child=j.first),T.iGM(j=T.CRH())&&(De.matSort=j.first),T.iGM(j=T.CRH())&&(De.items=j)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[T.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(he,De){1&he&&(T.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),T.NdJ("exportData",function(P){return De.exportData(P)}),T.TgZ(2,"table",2),T.ynx(3,3),T.YNc(4,le,2,3,"th",4),T.YNc(5,te,4,8,"td",5),T.BQk(),T.ynx(6,6),T.YNc(7,fe,3,3,"th",7),T.YNc(8,ue,2,1,"td",8),T.BQk(),T.ynx(9,9),T.YNc(10,we,3,3,"th",7),T.YNc(11,E,3,2,"td",10),T.BQk(),T.ynx(12,11),T.YNc(13,O,3,3,"th",12),T.YNc(14,H,2,2,"td",10),T.BQk(),T.ynx(15,13),T.YNc(16,W,3,3,"th",7),T.YNc(17,$,2,1,"td",10),T.BQk(),T.YNc(18,de,1,0,"tr",14),T.YNc(19,ye,2,5,"tr",15),T.qZA()()(),T.YNc(20,xe,3,3,"perun-web-apps-alert",16),T.YNc(21,Me,3,3,"perun-web-apps-alert",16)),2&he&&(T.Q6J("hidden",0===De.dataSource.filteredData.length),T.xp6(1),T.Q6J("tableId",De.tableId)("dataLength",De.dataSource.filteredData.length)("pageSizeOptions",De.pageSizeOptions),T.xp6(1),T.Q6J("dataSource",De.dataSource),T.xp6(16),T.Q6J("matHeaderRowDef",De.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",De.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===De.dataSource.filteredData.length&&0!==De.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",0===De.dataSource.data.length))},dependencies:[v.O5,R.oG,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.YE,e.nU,U.w,_.gM,V.l,w.M,Y.X$,X,ne.R],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),se})()},4235:(Je,pe,h)=>{"use strict";h.d(pe,{W:()=>R});var e=h(32080),d=h(94650),A=h(36895),w=h(97392),g=h(4859),C=h(10266),T=h(89383);const v=function(U){return{color:U}};let R=(()=>{class U{constructor(V,Y){this.location=V,this.storeService=Y}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return U.\u0275fac=function(V){return new(V||U)(d.Y36(A.Ye),d.Y36(e.d6))},U.\u0275cmp=d.Xpm({type:U,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(V,Y){1&V&&(d.TgZ(0,"button",0),d.NdJ("click",function(){return Y.goBack()}),d.ALo(1,"translate"),d.TgZ(2,"mat-icon",1),d._uU(3,"arrow_right_alt"),d.qZA()()),2&V&&(d.s9C("matTooltip",d.lcZ(1,2,"Back")),d.Q6J("ngStyle",d.VKq(4,v,Y.backButtonColor)))},dependencies:[A.PC,w.Hw,g.lW,C.gM,T.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),U})()},61150:(Je,pe,h)=>{"use strict";h.d(pe,{r:()=>V});var e=h(94650),d=h(24006),A=h(32080),w=h(36895),g=h(56709),C=h(59549),T=h(284),v=h(82322),R=h(89383);function U(Y,X){if(1&Y){const ne=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(ne);const te=e.oxw();return e.KtG(te.emitAsSubGroup())})("ngModelChange",function(te){e.CHM(ne);const fe=e.oxw();return e.KtG(fe.asSubgroup=te)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&Y){const ne=e.oxw();e.Q6J("labelPosition","before")("ngModel",ne.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function _(Y,X){if(1&Y){const ne=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(te){e.CHM(ne);const fe=e.oxw();return e.KtG(fe.emitParentGroup(te))}),e.qZA()}if(2&Y){const ne=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ne.voGroups)}}let V=(()=>{class Y{constructor(ne){this.store=ne,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new d.p4("",[d.kI.required,d.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),d.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new d.p4("",[d.kI.required,d.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ne=>"members"!==ne.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ne){this.selectedParent=ne,this.parentGroupChanged.emit(ne)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return Y.\u0275fac=function(ne){return new(ne||Y)(e.Y36(A.d6))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(ne,le){1&ne&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return le.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return le.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,U,3,5,"mat-checkbox",5),e.YNc(16,_,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&ne&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",le.nameControl),e.xp6(3),e.hij(" ",le.invalidNameMessage.length?le.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",le.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",le.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",le.asSubgroup))},dependencies:[w.O5,g.oG,d.Fj,d.JJ,d.Q7,d.On,C.TO,C.KE,d.oH,T.Nt,v.h,R.X$]}),Y})()},39798:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>T});var e=h(94650),d=h(24006),A=h(59549),w=h(284),g=h(99602),C=h(89383);let T=(()=>{class v{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return v.\u0275fac=function(U){return new(U||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(U,_){if(1&U){const V=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(V);const X=e.MAs(7);return e.KtG(X.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return _.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(V);const X=e.MAs(15);return e.KtG(X.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return _.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&U){const V=e.MAs(7),Y=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",V)("min",_.startMinDate)("max",_.startMaxDate)("formControl",_.startDate),e.xp6(1),e.Q6J("for",V),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",Y)("min",_.endMinDate)("max",_.endMaxDate)("formControl",_.endDate),e.xp6(1),e.Q6J("for",Y)}},dependencies:[d.Fj,d.JJ,A.KE,A.hX,A.R9,d.oH,w.Nt,g.Mq,g.hl,g.nW,C.X$]}),v})()},64901:(Je,pe,h)=>{"use strict";h.d(pe,{P:()=>_});var e=h(94650),d=h(54968),A=h(54004),w=h(78372),g=h(71884),C=h(24006),T=h(59549),v=h(284),R=h(89383);const U=["input"];let _=(()=>{class V{constructor(){this.autoFocus=!1,this.control=new C.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,d.R)(this.input.nativeElement,"keyup").pipe((0,A.U)(X=>X.target.value),(0,w.b)(500),(0,g.x)()).subscribe(X=>{this.control.invalid||this.filter.emit(X)})}}return V.\u0275fac=function(X){return new(X||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(X,ne){if(1&X&&e.Gf(U,7),2&X){let le;e.iGM(le=e.CRH())&&(ne.input=le.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(X,ne){1&X&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&X&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ne.placeholder)),e.Q6J("formControl",ne.control),e.xp6(4),e.hij(" ",ne.error," "))},dependencies:[C.Fj,C.JJ,T.TO,T.KE,C.oH,v.Nt,R.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),V})()},42377:(Je,pe,h)=>{"use strict";h.d(pe,{i:()=>ue});var e=h(94650),d=h(24006),A=h(4707),w=h(77579),g=h(71884),C=h(82722),T=h(36895),v=h(59549),R=h(3238),U=h(84385),_=h(33231),V=h(67376);const Y=["scrollViewport"];function X(we,E){if(1&we&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&we){const O=e.oxw();e.xp6(1),e.hij(" ",O.multipleSelectedText()," ")}}function ne(we,E){if(1&we&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&we){const O=e.oxw(2);e.Tol(O.colorByStatus(null==O.entitiesCtrl?null:O.entitiesCtrl.value)),e.xp6(1),e.hij(" ",O.statusTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)?"("+O.statusTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)+")":""," ")}}function le(we,E){if(1&we&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ne,2,4,"span",10),e.qZA()),2&we){const O=e.oxw();e.Q6J("value",null==O.entitiesCtrl?null:O.entitiesCtrl.value),e.xp6(1),e.hij(" ",O.mainTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(O.secondaryTextFunction(null==O.entitiesCtrl?null:O.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",O.displayStatus)}}function te(we,E){if(1&we&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&we){const O=e.oxw().$implicit,H=e.oxw();e.Tol(H.colorByStatus(O)),e.xp6(1),e.hij(" ",H.statusTextFunction(O)?"("+H.statusTextFunction(O)+")":""," ")}}function fe(we,E){if(1&we&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,te,2,4,"span",10),e.qZA()),2&we){const O=E.$implicit,H=e.oxw();e.Tol(H.theme),e.Q6J("value",O),e.xp6(1),e.hij(" ",H.mainTextFunction(O)," "),e.xp6(2),e.Oqu(H.secondaryTextFunction(O)),e.xp6(1),e.Q6J("ngIf",H.displayStatus)}}let ue=(()=>{class we{constructor(O){this.cd=O,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.entitySelected=new e.vpe,this.entitiesCtrl=new d.p4,this.entityFilterCtrl=new d.p4,this.filteredEntities=new A.t(1),this._onDestroy=new w.x,this.entitiesLen=0,this.mainTextFunction=H=>JSON.stringify(H),this.secondaryTextFunction=H=>"#".concat(String(H.id),H.description?" ".concat(H.description):""),this.statusTextFunction=H=>H.status}ngOnInit(){this.entitiesCtrl.valueChanges.pipe((0,g.x)()).subscribe(O=>this.entitySelected.emit(O)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(O=>this.entitiesLen=O.length),this.entityFilterCtrl.valueChanges.pipe((0,C.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(O){switch(O.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(O){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),O.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(O){return O.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let O=48*this.entitiesLen;return O>192&&(O=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),O}multipleSelectedText(){const O=this.entitiesCtrl.value;if(O&&0!==O.length)return O.length===this.entities.length?"ALL":O.length>1?this.mainTextFunction(O[0])+` + ${O.length-1} other(s)`:this.mainTextFunction(O[0])+" "+this.secondaryTextFunction(O[0])}filterEntites(){if(!this.entities)return;let O=this.entityFilterCtrl.value;if(!O)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();O=this.normalize(O),this.filteredEntities.next(this.entities.filter(H=>this.normalize(this.searchFunction(H)).includes(O))),this.cd.detectChanges()}}return we.\u0275fac=function(O){return new(O||we)(e.Y36(e.sBO))},we.\u0275cmp=e.Xpm({type:we,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(O,H){if(1&O&&e.Gf(Y,5),2&O){let W;e.iGM(W=e.CRH())&&(H.scrollViewport=W.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],["data-cy","search-select-input",3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(O,H){1&O&&(e.TgZ(0,"mat-form-field",0)(1,"mat-select",1),e.NdJ("openedChange",function(){return H.openChange()}),e.YNc(2,X,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,le,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,fe,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA()()()),2&O&&(e.xp6(1),e.s9C("placeholder",H.selectPlaceholder),e.Q6J("formControl",H.entitiesCtrl)("multiple",H.multiple),e.xp6(1),e.Q6J("ngIf",H.multiple),e.xp6(2),e.s9C("placeholderLabel",H.findPlaceholder),e.s9C("noEntriesFoundLabel",H.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",H.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==H.entitiesCtrl?null:H.entitiesCtrl.value),e.xp6(1),e.Udp("height",H.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,H.filteredEntities)))},dependencies:[T.O5,d.JJ,v.KE,d.oH,R.ey,U.gD,U.$L,_.nu,V.xd,V.x0,V.N7,T.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),we})()},74010:(Je,pe,h)=>{"use strict";h.d(pe,{X:()=>Z});var e=h(96308),d=h(30671),A=h(9244),w=h(32080),g=h(94650),C=h(36895),T=h(56709),v=h(94364),R=h(98380),U=h(18750),_=h(50301),V=h(10441),Y=h(24006),X=h(97392),ne=h(4859),le=h(10266);function te(ve,oe){if(1&ve&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&ve){const ge=oe.$implicit,ae=g.oxw();g.xp6(1),g.hij(" ",ge[ae.paramName]," ")}}function fe(ve,oe){1&ve&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function ue(ve,oe){1&ve&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function we(ve,oe){if(1&ve){const ge=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){g.CHM(ge);const Oe=g.oxw();return g.KtG(Oe.onShowChange())}),g.YNc(1,fe,2,0,"mat-icon",8),g.YNc(2,ue,2,0,"mat-icon",8),g.qZA()}if(2&ve){const ge=g.oxw();g.xp6(1),g.Q6J("ngIf",!ge.showMore),g.xp6(1),g.Q6J("ngIf",ge.showMore)}}let E=(()=>{class ve{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return ve.\u0275fac=function(ge){return new(ge||ve)},ve.\u0275cmp=g.Xpm({type:ve,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[g.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(ge,ae){1&ge&&(g.TgZ(0,"form",0)(1,"div",1)(2,"div",2),g.YNc(3,te,2,1,"div",3),g.qZA(),g.TgZ(4,"div")(5,"span",4),g.YNc(6,we,3,2,"button",5),g.qZA()()()()),2&ge&&(g.xp6(3),g.Q6J("ngForOf",ae.objects.slice(0,ae.itemsShown)),g.xp6(2),g.Q6J("matTooltip",ae.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",ae.objects.length>ae.defaultItemsShown))},dependencies:[C.sg,C.O5,Y._Y,Y.JL,Y.F,X.Hw,ne.lW,le.gM]}),ve})();var O=h(89383),H=h(53561);let W=(()=>{class ve{transform(ge,ae,Oe){return ge.filter(Q=>Q[Oe].includes(ae)).filter((Q,me,N)=>N.findIndex(L=>L[Oe]===Q[Oe])===me)}}return ve.\u0275fac=function(ge){return new(ge||ve)},ve.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:ve,pure:!0}),ve})();function $(ve,oe){1&ve&&g._UZ(0,"th",20)}function de(ve,oe){if(1&ve){const ge=g.EpF();g.TgZ(0,"td",21)(1,"mat-checkbox",22),g.NdJ("change",function(Oe){const me=g.CHM(ge).$implicit,N=g.oxw();return g.KtG(Oe?N.selection.toggle(me):null)})("click",function(Oe){return Oe.stopPropagation()}),g.qZA()()}if(2&ve){const ge=oe.$implicit,ae=g.oxw();g.xp6(1),g.Q2q("data-cy","",ge.facility.name,"-checkbox"),g.Q6J("aria-label",ae.checkboxLabel(ge))("checked",ae.selection.isSelected(ge))}}function ye(ve,oe){1&ve&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function xe(ve,oe){if(1&ve&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&ve){const ge=oe.$implicit;g.xp6(1),g.hij(" ",ge.facility.id," ")}}function Me(ve,oe){1&ve&&g._UZ(0,"th",25)}function Ze(ve,oe){if(1&ve&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&ve){const ge=oe.$implicit,ae=g.oxw();g.xp6(1),g.Q6J("id",ge.facility.id)("recentIds",ae.recentIds)}}function se(ve,oe){1&ve&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function ze(ve,oe){if(1&ve&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&ve){const ge=oe.$implicit;g.uIk("data-cy",ge.facility.name),g.xp6(1),g.hij(" ",ge.facility.name," ")}}function he(ve,oe){1&ve&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function De(ve,oe){if(1&ve&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&ve){const ge=oe.$implicit;g.xp6(1),g.Oqu(ge.facility.description)}}function j(ve,oe){1&ve&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function P(ve,oe){if(1&ve&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&ve){const ge=oe.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,ge.owners))}}function G(ve,oe){1&ve&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function ce(ve,oe){if(1&ve){const ge=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(ge);const Oe=g.oxw();return g.KtG(Oe.localDisableRouting=!0)})("mouseleave",function(){g.CHM(ge);const Oe=g.oxw();return g.KtG(Oe.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&ve){const ge=oe.$implicit,ae=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,ge.destinations,ae.filterValue,"destination"))("paramName","destination")}}function q(ve,oe){1&ve&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function Te(ve,oe){if(1&ve){const ge=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(ge);const Oe=g.oxw();return g.KtG(Oe.localDisableRouting=!0)})("mouseleave",function(){g.CHM(ge);const Oe=g.oxw();return g.KtG(Oe.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&ve){const ge=oe.$implicit,ae=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,ge.hosts,ae.filterValue,"hostname"))("paramName","hostname")}}function He(ve,oe){1&ve&&g._UZ(0,"tr",29)}const dt=function(ve){return["/facilities",ve]},et=function(){return[]};function _t(ve,oe){if(1&ve&&g._UZ(0,"tr",30),2&ve){const ge=oe.$implicit,ae=g.oxw();g.ekj("cursor-pointer",!ae.disableRouting)("disable-outline",ae.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(6,dt,ge.facility.id))("routerLink",ae.disableRouting||ae.localDisableRouting?g.DdM(8,et):g.VKq(9,dt,ge.facility.id))}}function Qe(ve,oe){1&ve&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function st(ve,oe){1&ve&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Z=(()=>{class ve{constructor(ge){this.authResolver=ge,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=A.f7,this.disableRouting=!1,this.getDataForColumnFun=(ae,Oe)=>ve.getDataForColumn(ae,Oe,this.recentIds)}set matSort(ge){this.sort=ge}static getDataForColumn(ge,ae,Oe){switch(ae){case"id":return ge.facility.id.toString();case"name":return ge.facility.name;case"description":return ge.facility.description;case"technicalOwners":return(0,A.te)(ge.owners);case"recent":return Oe&&Oe.includes(ge.facility.id)?"#".repeat(Oe.indexOf(ge.facility.id)):ge.name;case"destinations":return ge.destinations.map(Q=>Q.destination).join(" ; ");case"hosts":return ge.hosts.map(Q=>Q.hostname).join(" ; ");default:return ge[ae]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ge=>"id"!==ge)),this.setDataSource()}exportData(ge){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),ge)}setDataSource(){this.dataSource||(this.dataSource=new d.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(ge,ae)=>(0,A.Sd)(ge,ae,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(ge,ae)=>(0,A.pR)(ge,ae,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(ge=>this.selection.select(ge))}checkboxLabel(ge){return ge?`${this.selection.isSelected(ge)?"deselect":"select"} row ${ge.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return ve.\u0275fac=function(ge){return new(ge||ve)(g.Y36(w.x4))},ve.\u0275cmp=g.Xpm({type:ve,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(ge,ae){if(1&ge&&(g.Gf(A.l9,7),g.Gf(e.YE,7)),2&ge){let Oe;g.iGM(Oe=g.CRH())&&(ae.child=Oe.first),g.iGM(Oe=g.CRH())&&(ae.matSort=Oe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ge,ae){1&ge&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(Q){return ae.exportData(Q)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,$,1,0,"th",4),g.YNc(5,de,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ye,3,3,"th",7),g.YNc(8,xe,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Me,1,0,"th",10),g.YNc(11,Ze,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,se,3,3,"th",7),g.YNc(14,ze,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,he,3,3,"th",10),g.YNc(17,De,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,j,3,3,"th",10),g.YNc(20,P,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,G,3,3,"th",10),g.YNc(23,ce,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,q,3,3,"th",10),g.YNc(26,Te,3,6,"td",11),g.BQk(),g.YNc(27,He,1,0,"tr",17),g.YNc(28,_t,1,11,"tr",18),g.qZA()()(),g.YNc(29,Qe,3,3,"perun-web-apps-alert",19),g.YNc(30,st,3,3,"perun-web-apps-alert",19)),2&ge&&(g.Q6J("hidden",!ae.dataSource||0===ae.dataSource.filteredData.length||0===ae.facilities.length),g.xp6(1),g.Q6J("tableId",ae.tableId)("dataLength",ae.dataSource.filteredData.length)("pageSizeOptions",ae.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",ae.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",ae.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",ae.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===ae.dataSource.filteredData.length&&0!==ae.facilities.length),g.xp6(1),g.Q6J("ngIf",0===ae.facilities.length))},dependencies:[C.O5,T.oG,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,v.rH,e.YE,e.nU,R.w,U.l,_.YH,V.W,E,O.X$,H.J,W],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),ve})()},13449:(Je,pe,h)=>{"use strict";h.d(pe,{i:()=>E});var e=h(94650),d=h(32080),A=h(36895),w=h(97392),g=h(28255),C=h(4859),T=h(10266),v=h(64425),R=h(89383),U=h(29218),_=h(45942),V=h(28764);function Y(O,H){if(1&O){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(W);const de=e.oxw(2);return e.KtG(de.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&O){const W=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,W.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,W.group)),e.xp6(2),e.Tol(e.lcZ(6,13,W.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,W.group)," ")}}function X(O,H){if(1&O){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const de=e.oxw(2);return e.KtG(de.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&O){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function ne(O,H){if(1&O){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const de=e.oxw(2);return e.KtG(de.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&O){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function le(O,H){if(1&O&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,Y,9,17,"span",4),e.YNc(6,X,5,5,"span",4),e.YNc(7,ne,5,5,"span",4),e.qZA()),2&O){const W=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",W.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",W.syncAuth),e.xp6(1),e.Q6J("ngIf",W.moveAuth),e.xp6(1),e.Q6J("ngIf",W.editAuth)}}function te(O,H){if(1&O){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const de=e.oxw(2);return e.KtG(de.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&O){const W=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,W.group)),e.xp6(2),e.Tol(e.lcZ(3,8,W.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,W.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,W.group)))}}function fe(O,H){if(1&O){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const de=e.oxw(2);return e.KtG(de.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&O){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function ue(O,H){if(1&O){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const de=e.oxw(2);return e.KtG(de.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&O){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function we(O,H){if(1&O&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,te,10,16,"button",10),e.YNc(13,fe,6,4,"button",10),e.YNc(14,ue,6,4,"button",10),e.qZA()()),2&O){const W=e.MAs(5),$=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",W),e.xp6(5),e.Q6J("cdkCopyToClipboard",$.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",$.syncAuth),e.xp6(1),e.Q6J("ngIf",$.moveAuth),e.xp6(1),e.Q6J("ngIf",$.editAuth)}}let E=(()=>{class O{constructor(W){this.authResolver=W,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return O.\u0275fac=function(W){return new(W||O)(e.Y36(d.x4))},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(W,$){1&W&&(e.YNc(0,le,8,8,"div",0),e.YNc(1,we,15,8,"div",1)),2&W&&(e.Q6J("ngIf",$.displayButtons),e.xp6(1),e.Q6J("ngIf",!$.displayButtons))},dependencies:[A.O5,w.Hw,g.VK,g.OP,g.p6,C.lW,T.gM,v.i3,R.X$,U.J,_.r,V.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),O})()},8223:(Je,pe,h)=>{"use strict";h.d(pe,{x:()=>Y});var e=h(94650),d=h(9244),A=h(16074),w=h(65412),g=h(36895),C=h(97392),T=h(10266),v=h(89383);function R(X,ne){if(1&X){const le=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(le);const fe=e.oxw();return e.KtG(fe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}2&X&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function U(X,ne){if(1&X){const le=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(le);const fe=e.oxw();return e.KtG(fe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}2&X&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function _(X,ne){if(1&X){const le=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(le);const fe=e.oxw();return e.KtG(fe.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&X){const le=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",le.failureCause,"")}}function V(X,ne){1&X&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&X&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let Y=(()=>{class X{constructor(le){this.dialog=le,this.status="",this.statusChange=new e.vpe}changeStatus(){const le=(0,d.kZ)();le.width="500px",le.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A.Qu,le).afterClosed().subscribe(fe=>{fe&&this.statusChange.emit()})}}return X.\u0275fac=function(le){return new(le||X)(e.Y36(w.uw))},X.\u0275cmp=e.Xpm({type:X,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(le,te){1&le&&(e.TgZ(0,"div",0),e.YNc(1,R,4,3,"span",1),e.YNc(2,U,4,3,"span",1),e.YNc(3,_,4,4,"span",1),e.YNc(4,V,4,3,"span",2),e.qZA()),2&le&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===te.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===te.status),e.xp6(1),e.Q6J("ngIf","FAILED"===te.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===te.status))},dependencies:[g.O5,C.Hw,T.gM,v.X$]}),X})()},82322:(Je,pe,h)=>{"use strict";h.d(pe,{h:()=>g});var e=h(94650),d=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=v=>v.name}ngOnInit(){this.groups=this.groups.sort(d.aC)}}return C.\u0275fac=function(v){return new(v||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){if(1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return R.groupSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v){let U;e.Q6J("entities",R.groups)("entity",null!==(U=R.firstSelectedGroup)&&void 0!==U?U:null)("displayStatus",R.displayStatus)("disableAutoSelect",R.disableAutoSelect)("mainTextFunction",R.nameFunction)("searchFunction",R.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[A.i,w.X$]}),C})()},24179:(Je,pe,h)=>{"use strict";h.d(pe,{W:()=>r});var e=h(94650),d=h(16074),A=h(32105),w=h(32080),g=h(9244),C=h(96308),T=h(30671),v=h(95017),R=h(36895),U=h(65412),_=h(56709),V=h(98380),Y=h(97392),X=h(4859),ne=h(10266),le=h(18750),te=h(13449),fe=h(50301),ue=h(10441),we=h(8223),E=h(89383),O=h(21757);let H=(()=>{class s{transform(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}}return s.\u0275fac=function(l){return new(l||s)},s.\u0275pipe=e.Yjl({name:"groupExpiration",type:s,pure:!0}),s})();var W=h(82514),$=h(62383);function de(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(n){e.CHM(l);const t=e.oxw(2);return e.KtG(n?t.masterToggle():null)}),e.qZA()}if(2&s){const l=e.oxw(2);e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function ye(s,m){if(1&s&&(e.TgZ(0,"th",24),e.YNc(1,de,1,3,"mat-checkbox",25),e.qZA()),2&s){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!l.disableHeadCheckbox)}}function xe(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"td",27)(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(n){const i=e.CHM(l).$implicit,a=e.oxw();return e.KtG(n?a.itemSelectionToggle(i):null)})("click",function(n){return n.stopPropagation()}),e.qZA()()()}if(2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,o.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!o.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",o.checkboxLabel(l))("checked",o.selection.isSelected(l))("disabled","members"===l.name&&o.disableMembers||o.disableSelect(l))}}function Me(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function Ze(s,m){if(1&s&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(l.id)}}function se(s,m){1&s&&e._UZ(0,"th",32)}function ze(s,m){if(1&s&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.Q6J("recentIds",o.recentIds)("id",l.id)}}function he(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function De(s,m){if(1&s&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.hij(" ",o.voNames.get(l.voId)," ")}}function j(s,m){1&s&&e._UZ(0,"th",32)}function P(s,m){1&s&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function G(s,m){1&s&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function ce(s,m){if(1&s&&(e.TgZ(0,"td",33),e.YNc(1,P,3,3,"mat-icon",35),e.YNc(2,G,3,3,"mat-icon",35),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function q(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function Te(s,m){if(1&s&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&s){const l=m.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function He(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function dt(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"td",37)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=n.disableRouting)})("statusChange",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.refreshTable.emit())}),e.qZA()()}if(2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("resourceId",o.resourceId)("failureCause",l.failureCause)("status",l.status)}}function et(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function _t(s,m){if(1&s&&(e.TgZ(0,"td",33)(1,"i",39),e.ALo(2,"groupStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA()()()),2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,o.getStatusAttribute(l)),""),e.s9C("matTooltip",o.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,o.getStatusAttribute(l))," ")}}function Qe(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function st(s,m){if(1&s&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(l.description)}}function Z(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function ve(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const n=e.oxw().$implicit,t=e.oxw();return e.KtG(t.changeExpiration(n))})("mouseenter",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disabledRouting=n.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function oe(s,m){if(1&s&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,ve,3,0,"button",40),e.qZA()),2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",o.canManageGroup(l))}}function ge(s,m){1&s&&e._UZ(0,"th",32)}function ae(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"td",33)(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=n.disableRouting)})("moveGroup",function(){const t=e.CHM(l).$implicit,i=e.oxw();return e.KtG(i.onMoveGroup(t))})("changeNameDescription",function(){const t=e.CHM(l).$implicit,i=e.oxw();return e.KtG(i.onChangeNameDescription(t))})("syncGroup",function(){const t=e.CHM(l).$implicit,i=e.oxw();return e.KtG(i.onSyncDetail(t))}),e.qZA()()}if(2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",o.displayButtons)("group",l)}}function Oe(s,m){1&s&&e._UZ(0,"tr",43)}const Q=function(s,m){return["/organizations",s,"groups",m]};function me(s,m){if(1&s&&e._UZ(0,"tr",44),2&s){const l=m.$implicit,o=e.oxw();e.ekj("cursor-pointer",!o.disableRouting&&!o.groupsToDisableRouting.has(l.id))("disable-outline",o.disabledRouting||o.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",o.disabledRouting||o.groupsToDisableRouting.has(l.id)?null:e.WLB(6,Q,l.voId,l.id))("perunWebAppsForceRouterLink",o.disabledRouting||o.groupsToDisableRouting.has(l.id)?null:e.WLB(9,Q,l.voId,l.id))}}function N(s,m){if(1&s&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s){const l=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,l.noGroupsAlert),"\n")}}function L(s,m){1&s&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let r=(()=>{class s{constructor(l,o,n,t,i){this.dialog=l,this.authResolver=o,this.voService=n,this.tableCheckbox=t,this.changeDetector=i,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new v.Ov(!0,[]),this.displayedColumns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.filter="",this.disableRouting=!1,this.pageSizeOptions=g.f7,this.recentIds=[],this.resourceId=null,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.refreshTable=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.hasMembersGroup=!1,this.getDataForColumnFun=(a,c)=>s.getDataForColumn(a,c,this.voNames),this.getSortDataForColumnFun=(a,c)=>s.getSortDataForColumn(a,c,this.voNames,this.recentIds),this.canBeSelected=a=>!("members"===a.name&&this.disableMembers||this.disableSelect(a))}set matSort(l){this.sort=l}static getDataForColumn(l,o,n){switch(o){case"id":return l.id.toString();case"vo":return n.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const t=(0,g.x2)(l);return(0,g.sG)(t)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[o]}}static getSortDataForColumn(l,o,n,t){switch(o){case"id":return l.id.toString();case"vo":return n.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const i=(0,g.x2)(l);return i&&"never"!==i.toLowerCase()?(0,R.p6)(i,"yyyy.MM.dd","en"):i}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[o]}}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnChanges(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const l of this.groups)if("members"===l.name)return!0;return!1}exportData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new T.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,o)=>(0,g.Sd)(l,o,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,o)=>(0,g.pR)(l,o,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(l){return this.disableGroups&&(this.groupsToDisableCheckbox.has(l.id)||(0,g.bx)(l))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.shouldHideButtons(),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l),this.changeDetector.detectChanges())}onMoveGroup(l){this.moveGroup.emit(l)}onSyncDetail(l){const o=(0,g.kZ)();o.data={groupId:l.id,theme:this.theme},this.dialog.open(d.Bp,o)}onChangeNameDescription(l){const o=(0,g.kZ)();o.data={theme:"group-theme",group:l,dialogType:d.Eg.GROUP},this.dialog.open(d.rd,o).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,o)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[o]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,o)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[o]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,o)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,o]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,o)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[o]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,o)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,o]),!0):void 0}itemSelectionToggle(l){this.selection.toggle(l),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(l){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(l)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":l.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.displayedColumns.includes("vo")&&(this.groups.forEach(l=>{this.voIds.has(l.voId)||this.voIds.add(l.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(l=>{l.forEach(o=>{this.voNames.set(o.id,o.name)})}))}changeExpiration(l){const o=l.attributes.find(i=>"groupMembershipExpiration"===i.baseFriendlyName),n=(0,g.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:l.id,expirationAttr:o,status:this.getStatusAttribute(l)},this.dialog.open(d.u3,n).afterClosed().subscribe(i=>{i.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const o=l.attributes.find(n=>"groupStatus"===n.baseFriendlyName);return o?.value?o.value:""}}return s.\u0275fac=function(l){return new(l||s)(e.Y36(U.uw),e.Y36(w.x4),e.Y36(A.YF),e.Y36(w.UA),e.Y36(e.sBO))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,o){if(1&l&&(e.Gf(g.l9,7),e.Gf(C.YE,7)),2&l){let n;e.iGM(n=e.CRH())&&(o.child=n.first),e.iGM(n=e.CRH())&&(o.matSort=n.first)}},hostBindings:function(l,o){1&l&&e.NdJ("resize",function(t){return o.shouldHideButtons(t)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",noGroupsAlert:"noGroupsAlert"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(l,o){1&l&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(t){return o.exportData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ye,2,1,"th",4),e.YNc(5,xe,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Me,3,3,"th",7),e.YNc(8,Ze,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,se,1,0,"th",10),e.YNc(11,ze,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,he,3,3,"th",7),e.YNc(14,De,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,j,1,0,"th",10),e.YNc(17,ce,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,q,3,3,"th",7),e.YNc(20,Te,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,He,3,3,"th",7),e.YNc(23,dt,2,5,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,et,3,3,"th",7),e.YNc(26,_t,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Qe,3,3,"th",7),e.YNc(29,st,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,Z,3,3,"th",7),e.YNc(32,oe,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,ge,1,0,"th",10),e.YNc(35,ae,2,3,"td",11),e.BQk(),e.YNc(36,Oe,1,0,"tr",21),e.YNc(37,me,1,12,"tr",22),e.qZA()()(),e.YNc(38,N,3,3,"perun-web-apps-alert",23),e.YNc(39,L,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===o.groups.length||!o.dataSource||0===o.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions)("tableId",o.tableId),e.xp6(1),e.Q6J("dataSource",o.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",o.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",o.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===o.groups.length),e.xp6(1),e.Q6J("ngIf",0===o.dataSource.filteredData.length&&0!==o.groups.length))},dependencies:[R.O5,_.oG,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,C.YE,C.nU,V.w,Y.Hw,X.lW,ne.gM,le.l,te.i,fe.Kd,fe.YH,ue.W,we.x,E.X$,O.f,H,W.F,$.M],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),s})()},58956:(Je,pe,h)=>{"use strict";h.d(pe,{I:()=>Me});var e=h(94650),d=h(35423),A=h(57851),w=h(95017);class g{constructor(se){this.id=se.id,this.name=se.name,this.parentGroupId=se.parentGroupId,this.voId=se.voId,this.shortName=se.shortName,this.description=se.description,this.attributes=se.attributes,this.beanName=se.beanName}addChild(se){null==this.children?this.children=[se]:this.children.push(se)}}var C=h(9244),T=h(16074),v=h(32080),R=h(65412),U=h(36895),_=h(56709),V=h(94364),Y=h(98380),X=h(97392),ne=h(4859),le=h(10266),te=h(67376),fe=h(13449),ue=h(89383);const we=["scrollViewport"];function E(Ze,se){if(1&Ze){const ze=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(ze);const De=e.oxw().$implicit,j=e.oxw(2);return e.KtG(j.itemSelectionToggle(De))}),e.qZA()}if(2&Ze){const ze=e.oxw().$implicit,he=e.oxw(2);e.Q2q("data-cy","",ze.name,"-checkbox"),e.Q6J("disabled","members"===ze.fullName)("checked",he.selection.isSelected(ze))("indeterminate",he.descendantsPartiallySelected(ze))}}function O(Ze,se){if(1&Ze&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ze){const ze=e.oxw().$implicit,he=e.oxw(2);e.xp6(1),e.hij(" ",he.treeControl.isExpanded(ze)?"expand_more":"chevron_right"," ")}}function H(Ze,se){if(1&Ze&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ze){const ze=e.oxw().$implicit;e.xp6(1),e.hij(" #",ze.id," ")}}const W=function(Ze,se){return["/organizations",Ze,"groups",se]};function $(Ze,se){if(1&Ze){const ze=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,E,1,4,"mat-checkbox",7),e.TgZ(3,"a",8)(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(ze);const De=e.oxw(2);return e.KtG(De.disableRouting=!0)})("mouseleave",function(){e.CHM(ze);const De=e.oxw(2);return e.KtG(De.disableRouting=!1)})("click",function(){const j=e.CHM(ze).$implicit,P=e.oxw(2);return e.KtG(P.treeControl.toggle(j))}),e.YNc(5,O,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,H,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const j=e.CHM(ze).$implicit,P=e.oxw(2);return e.KtG(P.onMoveGroup(j))})("syncGroup",function(){const j=e.CHM(ze).$implicit,P=e.oxw(2);return e.KtG(P.onSyncDetail(j))})("changeNameDescription",function(){const j=e.CHM(ze).$implicit,P=e.oxw(2);return e.KtG(P.onChangeNameDescription(j))}),e.qZA()()(),e.BQk()}if(2&Ze){const ze=se.$implicit,he=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*ze.level+"px"),e.xp6(1),e.Q6J("ngIf",!he.hideCheckbox),e.xp6(1),e.Q6J("routerLink",he.disableRouting?null:e.WLB(15,W,ze.voId,ze.id)),e.xp6(1),e.Q6J("disabled",!ze.expandable),e.uIk("aria-label","toggle "+ze.name),e.xp6(1),e.Q6J("ngIf",ze.expandable),e.xp6(2),e.uIk("data-cy",ze.name),e.xp6(1),e.hij(" ",ze.name," "),e.xp6(1),e.Q6J("ngIf",he.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",ze.description),e.xp6(1),e.hij(" ",ze.description," "),e.xp6(2),e.Q6J("disabled","members"===ze.fullName)("displayButtons",he.displayButtons)("group",ze)}}const de=function(Ze){return{height:Ze}};function ye(Ze,se){if(1&Ze&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,$,16,18,"ng-container",5),e.qZA()()),2&Ze){const ze=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,de,ze.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",ze.dataSource)}}function xe(Ze,se){1&Ze&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Me=(()=>{class Ze{constructor(ze,he,De){this.cd=ze,this.dialog=he,this.authResolver=De,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new A.C2(j=>j.level,j=>j.expandable),this.hasChild=(j,P)=>P.expandable,this.getLevel=j=>j.level,this.transformer=(j,P)=>({expandable:!!j.children&&j.children.length>0,name:j.shortName,fullName:j.name,parentGroupId:j.parentGroupId,level:P,id:j.id,voId:j.voId,attributes:j.attributes,beanName:j.beanName,description:j.description}),this.treeFlattener=new d.JZ(this.transformer,j=>j.level,j=>j.expandable,j=>j.children),this.dataSource=new d.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(ze=>ze.name?.toLowerCase().includes(this.filterValue.toLowerCase())||ze.description?.toLowerCase().includes(this.filterValue.toLowerCase())||ze.id.toString().includes(this.filterValue.toLowerCase())||ze.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const ze of this.filteredGroups)ze.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,C.oU)(ze.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(ze){const he=(0,C.kZ)();he.data={groupId:ze.id,theme:this.theme},this.dialog.open(T.Bp,he)}onChangeNameDescription(ze){const he=(0,C.kZ)();he.data={theme:"group-theme",group:ze,dialogType:T.Eg.GROUP},this.dialog.open(T.rd,he).afterClosed().subscribe(j=>{j&&this.refreshTable.emit()})}createGroupTrees(ze){const he=new Map;for(const P of ze)he.set(P.id,new g(P));const De=new Set;he.forEach((P,G,ce)=>{const q=ce.get(P.parentGroupId);void 0!==q&&(q.addChild(P),ce.set(P.parentGroupId,q)),null!==P.parentGroupId&&void 0===q&&De.add(P.id)});const j=[];he.forEach(P=>{(null===P.parentGroupId||De.has(P.id))&&j.push(P)}),this.dataSource.data=j,this.cd.detectChanges()}getParentNode(ze){const he=this.getLevel(ze);if(he<1)return null;for(let j=this.treeControl.dataNodes.indexOf(ze)-1;j>=0;j--){const P=this.treeControl.dataNodes[j];if(this.getLevel(P)this.selection.isSelected(P));he&&!j&&this.selection.deselect(ze)}checkAllParentsSelection(ze){let he=this.getParentNode(ze);for(;he;)this.checkRootNodeSelection(he),he=this.getParentNode(he);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(ze){return this.treeControl.getDescendants(ze).some(j=>this.selection.isSelected(j))&&!this.selection.isSelected(ze)}itemSelectionToggle(ze){this.selection.toggle(ze);const he=this.treeControl.getDescendants(ze);this.selection.isSelected(ze)?this.selection.select(...he):this.selection.deselect(...he),he.every(De=>this.selection.isSelected(De)),this.checkAllParentsSelection(ze)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(ze,he)=>ze&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,he]):(ze,he)=>ze&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[he]),!0)}onMoveGroup(ze){this.moveGroup.emit(ze)}getTreeViewHeight(){let ze=0;this.scrollViewport&&(ze=this.scrollViewport.getDataLength());let he=48*ze;return he>672&&(he=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(he)+"px"}}return Ze.\u0275fac=function(ze){return new(ze||Ze)(e.Y36(e.sBO),e.Y36(R.uw),e.Y36(v.x4))},Ze.\u0275cmp=e.Xpm({type:Ze,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(ze,he){if(1&ze&&e.Gf(we,5),2&ze){let De;e.iGM(De=e.CRH())&&(he.scrollViewport=De.first)}},hostBindings:function(ze,he){1&ze&&e.NdJ("resize",function(j){return he.shouldHideButtons(j)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],["queryParamsHandling","merge",1,"group-item-content","text-format",3,"routerLink"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(ze,he){1&ze&&(e.YNc(0,ye,4,6,"div",0),e.YNc(1,xe,3,3,"perun-web-apps-alert",1)),2&ze&&(e.Q6J("ngIf",0!==he.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===he.filteredGroups.length))},dependencies:[U.O5,U.PC,_.oG,V.yS,Y.w,X.Hw,ne.lW,le.gM,te.xd,te.x0,te.N7,fe.i,ue.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Ze})()},52314:(Je,pe,h)=>{"use strict";h.d(pe,{X:()=>Y});var e=h(32080),d=h(94650),A=h(36895),w=h(97392),g=h(28255),C=h(4859),T=h(10266),v=h(89383);const R=function(X){return{color:X}};function U(X,ne){if(1&X&&(d.TgZ(0,"button",8),d.ALo(1,"translate"),d.TgZ(2,"mat-icon",4),d._uU(3," apps "),d.qZA()()),2&X){const le=d.oxw(),te=d.MAs(2);d.Q6J("matMenuTriggerFor",te)("matTooltip",d.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),d.xp6(2),d.Q6J("ngStyle",d.VKq(5,R,le.iconColor))}}function _(X,ne){if(1&X&&(d.TgZ(0,"span",9),d._uU(1),d.qZA()),2&X){const le=d.oxw();d.Q6J("ngStyle",d.VKq(6,R,le.textColor)),d.xp6(1),d.xDo(" ",le.user.titleBefore," ",le.user.firstName," ",le.user.middleName," ",le.user.lastName," ",le.user.titleAfter," ")}}function V(X,ne){if(1&X){const le=d.EpF();d.TgZ(0,"button",2),d.NdJ("click",function(){d.CHM(le);const fe=d.oxw();return d.KtG(fe.onLogOut())}),d._uU(1),d.ALo(2,"translate"),d.qZA()}2&X&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"NAV.LOGOUT")," "))}let Y=(()=>{class X{constructor(le){this.authService=le}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return X.\u0275fac=function(le){return new(le||X)(d.Y36(e.e8))},X.\u0275cmp=d.Xpm({type:X,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(le,te){if(1&le&&(d.YNc(0,U,4,7,"button",0),d.TgZ(1,"mat-menu",null,1)(3,"button",2),d.NdJ("click",function(){return te.redirectToUrl()}),d.TgZ(4,"span"),d._uU(5),d.qZA()()(),d.TgZ(6,"button",3)(7,"mat-icon",4),d._uU(8," person "),d.qZA(),d.YNc(9,_,2,8,"span",5),d.qZA(),d.TgZ(10,"mat-menu",null,6),d.YNc(12,V,3,3,"button",7),d.qZA()),2&le){const fe=d.MAs(11);d.Q6J("ngIf",te.url),d.xp6(5),d.Oqu(te.label),d.xp6(1),d.Q6J("matMenuTriggerFor",fe),d.xp6(1),d.Q6J("ngStyle",d.VKq(6,R,te.iconColor)),d.xp6(2),d.Q6J("ngIf",null!==te.user),d.xp6(3),d.Q6J("ngIf",te.logoutEnabled)}},dependencies:[A.O5,A.PC,w.Hw,g.VK,g.OP,g.p6,C.lW,T.gM,v.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),X})()},7434:(Je,pe,h)=>{"use strict";h.d(pe,{L:()=>U});var e=h(94650),d=h(24006),A=h(36895),w=h(59549),g=h(284),C=h(50301),T=h(89383);function v(_,V){if(1&_&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&_){const Y=e.oxw();e.s9C("placeholder",e.lcZ(1,2,Y.placeholder)),e.Q6J("formControl",Y.formControl)}}function R(_,V){if(1&_&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&_){const Y=e.oxw();e.s9C("placeholder",e.lcZ(1,2,Y.placeholder)),e.Q6J("formControl",Y.formControl)}}let U=(()=>{class _{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new d.p4}ngOnInit(){this.formControl.valueChanges.subscribe(Y=>{let X=Y.trim();X=X.toLowerCase(),this.filter.emit(X)})}}return _.\u0275fac=function(Y){return new(Y||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(Y,X){1&Y&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,v,2,4,"input",1),e.YNc(2,R,2,4,"input",2),e.qZA()),2&Y&&(e.xp6(1),e.Q6J("ngIf",X.autoFocus),e.xp6(1),e.Q6J("ngIf",!X.autoFocus))},dependencies:[A.O5,d.Fj,d.JJ,w.KE,d.oH,g.Nt,C.hT,T.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),_})()},4811:(Je,pe,h)=>{"use strict";h.d(pe,{m:()=>N});var e=h(16074),d=h(32080),A=h(9244),w=h(96308),g=h(56451),C=h(18505),T=h(94650),v=h(65412),R=h(10036),U=h(36895),_=h(56709),V=h(30671),Y=h(94364),X=h(51572),ne=h(98380),le=h(97392),te=h(10266),fe=h(18750),ue=h(50301),we=h(89383),E=h(31359),O=h(69773),H=h(21757),W=h(12856),$=h(20919),de=h(5865),ye=h(82514),xe=h(96974),Me=h(38993),Ze=h(86349);function se(L,r){1&L&&(T.TgZ(0,"div",22),T._UZ(1,"mat-spinner",23),T.qZA())}function ze(L,r){if(1&L){const s=T.EpF();T.TgZ(0,"th",24)(1,"mat-checkbox",25),T.NdJ("change",function(l){T.CHM(s);const o=T.oxw();return T.KtG(l?o.masterToggle():null)}),T.qZA()()}if(2&L){const s=T.oxw();T.xp6(1),T.Q6J("aria-label",s.checkboxLabel())("checked",s.selection.hasValue()&&s.isAllSelected())("indeterminate",s.selection.hasValue()&&!s.isAllSelected())}}function he(L,r){if(1&L){const s=T.EpF();T.TgZ(0,"td",26)(1,"mat-checkbox",27),T.NdJ("change",function(l){const n=T.CHM(s).$implicit,t=T.oxw();return T.KtG(l?t.selection.toggle(n):null)})("click",function(l){return l.stopPropagation()}),T.ALo(2,"lowercase"),T.ALo(3,"memberStatusDisabled"),T.ALo(4,"memberCheckboxLabel"),T.qZA()()}if(2&L){const s=r.$implicit,m=T.oxw();T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,5,s.user.firstName),"-checkbox"),T.Q6J("aria-label",m.checkboxLabel(s))("checked",m.selection.isSelected(s))("disabled",T.xi3(3,7,s,m.groupId))("matTooltip",T.xi3(4,10,s,m.groupId))}}function De(L,r){1&L&&(T.TgZ(0,"th",28),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ID")))}function j(L,r){if(1&L&&(T.TgZ(0,"td",29),T._uU(1),T.qZA()),2&L){const s=r.$implicit;T.xp6(1),T.Oqu(s.id)}}function P(L,r){1&L&&T._UZ(0,"th",28)}function G(L,r){if(1&L){const s=T.EpF();T.TgZ(0,"mat-icon",32),T.NdJ("click",function(l){T.CHM(s);const o=T.oxw().$implicit,n=T.oxw();return T.KtG(n.viewMemberGroupTree(l,o))}),T.ALo(1,"translate"),T._uU(2,"transfer_within_a_station"),T.qZA()}2&L&&T.Q6J("matTooltip",T.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function ce(L,r){if(1&L&&(T.TgZ(0,"td",30),T.YNc(1,G,3,3,"mat-icon",31),T.qZA()),2&L){const s=r.$implicit;T.xp6(1),T.Q6J("ngIf","DIRECT"!==s.membershipType)}}function q(L,r){1&L&&(T.TgZ(0,"th",28),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Te(L,r){if(1&L&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&L){const s=r.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,s.user))}}function He(L,r){1&L&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function dt(L,r){if(1&L){const s=T.EpF();T.TgZ(0,"td",30)(1,"i",34),T.NdJ("click",function(l){const n=T.CHM(s).$implicit,t=T.oxw();return T.KtG(t.changeStatus(l,n))}),T.ALo(2,"memberStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&L){const s=r.$implicit;T.xp6(1),T.Gre("material-icons ",T.lcZ(2,5,s),""),T.s9C("matTooltip",T.xi3(3,7,s,!1)),T.xp6(4),T.hij(" ",T.lcZ(6,10,s.status)," ")}}function et(L,r){1&L&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function _t(L,r){if(1&L){const s=T.EpF();T.TgZ(0,"td",30)(1,"i",34),T.NdJ("click",function(l){const n=T.CHM(s).$implicit,t=T.oxw();return T.KtG(t.changeStatus(l,n,t.groupId))}),T.ALo(2,"groupStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&L){const s=r.$implicit,m=T.oxw();T.xp6(1),T.Gre("material-icons ",T.Dn7(2,5,s.groupStatus,"INDIRECT"===s.membershipType,m.isMembersGroup),""),T.s9C("matTooltip",T.Dn7(3,9,s,!0,m.isMembersGroup)),T.xp6(4),T.hij(" ",T.lcZ(6,13,s.groupStatus)," ")}}function Qe(L,r){1&L&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function st(L,r){if(1&L&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberOrganization"),T.qZA()),2&L){const s=r.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,s))}}function Z(L,r){1&L&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function ve(L,r){if(1&L&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&L){const s=r.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,s))}}function oe(L,r){1&L&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function ge(L,r){if(1&L&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&L){const s=r.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,s))}}function ae(L,r){1&L&&T._UZ(0,"tr",35)}const Oe=function(L,r){return["/organizations",L,"members",r]};function Q(L,r){if(1&L&&T._UZ(0,"tr",36),2&L){const s=r.$implicit,m=T.oxw();T.ekj("cursor-pointer",m.dataSource.routeAuth)("italic_font","INDIRECT"===s.membershipType)("disable-outline",!m.dataSource.routeAuth),T.Q6J("perunWebAppsMiddleClickRouterLink",m.dataSource.routeAuth?T.WLB(8,Oe,s.voId,s.id):null)("routerLink",m.dataSource.routeAuth?T.WLB(11,Oe,s.voId,s.id):null)}}function me(L,r){1&L&&(T.TgZ(0,"perun-web-apps-alert",37),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&L&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let N=(()=>{class L{constructor(s,m,l,o,n){this.dialog=s,this.authResolver=m,this.tableCheckbox=l,this.tableConfigService=o,this.dynamicPaginatingService=n,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=A.f7,this.canBeSelected=t=>!(0,A.im)(t)}static getExportDataForColumn(s,m){switch(m){case"id":return s.id.toString();case"fullName":return s.user?(0,A.bD)(s.user):"";case"status":return s.status;case"groupStatus":return s.groupStatus;case"organization":return(0,A.Gw)(s);case"email":return(0,A.g$)(s);case"logins":return(0,A.lt)(s);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(s=>"id"!==s)),this.dataSource=new d.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(s=>{this.canBeSelected(s)&&this.selection.select(s)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(l=>this.canBeSelected(l)).length}checkboxLabel(s){return s?`${this.selection.isSelected(s)?"deselect":"select"} row ${s.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(s,m,l){if(s.stopPropagation(),this.isMembersGroup&&l)return;const o=(0,A.zr)(m);if("INDIRECT"===o&&l||!l&&"UNALTERABLE"===o)return;const n=(0,A.kZ)();n.width="500px",n.data={member:m,voId:this.voId,groupId:l};const t=l?m.groupStatus:m.status;this.dialog.open(e.pf,n).afterClosed().subscribe(a=>{if(a){const c=l?a.groupStatus:a.status;"VALID"===t&&("EXPIRED"===c||"DISABLED"===c)||"VALID"===c?(l?m.groupStatus=c:m.status=c,this.changeExpiration(m,l)):this.loadMembersPage()}})}changeExpiration(s,m){const l=s.memberAttributes.find(m?t=>"groupMembershipExpiration"===t.friendlyName:t=>"membershipExpiration"===t.friendlyName),o=(0,A.kZ)();let n;o.width="400px",o.data={voId:this.voId,groupId:m,memberId:s.id,expirationAttr:l,status:m?s.groupStatus:s.status,statusChanged:!0},n=this.dialog.open(m?e.u3:e.kZ,o),n.afterClosed().subscribe(()=>{this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportData(s){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,L.getExportDataForColumn),s)}viewMemberGroupTree(s,m){s.stopPropagation();const l=(0,A.kZ)();l.width="800px",l.data={member:m,groupId:this.groupId},this.dialog.open(e.jd,l)}}return L.\u0275fac=function(s){return new(s||L)(T.Y36(v.uw),T.Y36(d.x4),T.Y36(d.UA),T.Y36(R.dB),T.Y36(d.ly))},L.\u0275cmp=T.Xpm({type:L,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(s,m){if(1&s&&(T.Gf(A.l9,7),T.Gf(w.YE,5)),2&s){let l;T.iGM(l=T.CRH())&&(m.child=l.first),T.iGM(l=T.CRH())&&(m.sort=l.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup"},features:[T.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(s,m){1&s&&(T.TgZ(0,"div",0),T.ALo(1,"async"),T.TgZ(2,"perun-web-apps-table-wrapper",1),T.NdJ("exportData",function(o){return m.exportData(o)}),T.YNc(3,se,2,0,"div",2),T.ALo(4,"async"),T.TgZ(5,"table",3),T.ynx(6,4),T.YNc(7,ze,2,3,"th",5),T.YNc(8,he,5,13,"td",6),T.BQk(),T.ynx(9,7),T.YNc(10,De,3,3,"th",8),T.YNc(11,j,2,1,"td",9),T.BQk(),T.ynx(12,10),T.YNc(13,P,1,0,"th",8),T.YNc(14,ce,2,1,"td",11),T.BQk(),T.ynx(15,12),T.YNc(16,q,3,3,"th",8),T.YNc(17,Te,3,3,"td",11),T.BQk(),T.ynx(18,13),T.YNc(19,He,3,3,"th",14),T.YNc(20,dt,7,12,"td",11),T.BQk(),T.ynx(21,15),T.YNc(22,et,3,3,"th",14),T.YNc(23,_t,7,15,"td",11),T.BQk(),T.ynx(24,16),T.YNc(25,Qe,3,3,"th",14),T.YNc(26,st,3,3,"td",11),T.BQk(),T.ynx(27,17),T.YNc(28,Z,3,3,"th",14),T.YNc(29,ve,3,3,"td",11),T.BQk(),T.ynx(30,18),T.YNc(31,oe,3,3,"th",14),T.YNc(32,ge,3,3,"td",11),T.BQk(),T.YNc(33,ae,1,0,"tr",19),T.YNc(34,Q,1,14,"tr",20),T.qZA()()(),T.YNc(35,me,3,3,"perun-web-apps-alert",21),T.ALo(36,"async")),2&s&&(T.Q6J("hidden",0===m.dataSource.allObjectCount&&!1===T.lcZ(1,9,m.dataSource.loading$)),T.xp6(2),T.Q6J("tableId",m.tableId)("dataLength",m.dataSource.allObjectCount)("pageSizeOptions",m.pageSizeOptions),T.xp6(1),T.Q6J("ngIf",T.lcZ(4,11,m.dataSource.loading$)),T.xp6(2),T.Q6J("dataSource",m.dataSource),T.xp6(28),T.Q6J("matHeaderRowDef",m.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",m.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===m.dataSource.allObjectCount&&!1===T.lcZ(36,13,m.dataSource.loading$)))},dependencies:[U.O5,_.oG,V.BZ,V.fO,V.as,V.w1,V.Dz,V.nj,V.ge,V.ev,V.XQ,V.Gk,Y.rH,w.YE,w.nU,X.Ou,ne.w,le.Hw,te.gM,fe.l,ue.YH,U.Ov,U.i8,we.X$,E.d,O.u,H.f,W.i,$.D,de.p,ye.F,xe.M,Me.n,Ze.A],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),L})()},38383:(Je,pe,h)=>{"use strict";h.d(pe,{O:()=>r});var e=h(94650),d=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(16074),T=h(32080),v=h(65412),R=h(94364),U=h(36895),_=h(56709),V=h(98380),Y=h(97392),X=h(10266),ne=h(18750),le=h(50301),te=h(89383),fe=h(31359),ue=h(69773),we=h(21757),E=h(12856),O=h(20919),H=h(5865),W=h(82514),$=h(96974);function de(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"th",26)(1,"mat-checkbox",27),e.NdJ("change",function(n){e.CHM(l);const t=e.oxw();return e.KtG(n?t.masterToggle():null)}),e.qZA()()}if(2&s){const l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function ye(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"td",28)(1,"mat-checkbox",29),e.NdJ("change",function(n){const i=e.CHM(l).$implicit,a=e.oxw();return e.KtG(n?a.selection.toggle(i):null)})("click",function(n){return n.stopPropagation()}),e.ALo(2,"translate"),e.qZA()()}if(2&s){const l=m.$implicit,o=e.oxw();e.xp6(1),e.Q6J("aria-label",o.checkboxLabel(l))("checked",o.selection.isSelected(l))("disabled","DIRECT"!==l.membershipType)("matTooltip","DIRECT"!==l.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function xe(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Me(s,m){if(1&s&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(l.id)}}function Ze(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function se(s,m){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(l.voId)}}function ze(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function he(s,m){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(l.userId)}}function De(s,m){1&s&&e._UZ(0,"th",30)}function j(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(l);const n=e.oxw().$implicit,t=e.oxw();return e.KtG(t.viewMemberGroupTree(n))})("mouseenter",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disableRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disableRouting=n.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&s&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function P(s,m){if(1&s&&(e.TgZ(0,"td",32),e.YNc(1,j,3,3,"mat-icon",33),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==l.membershipType)}}function G(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function ce(s,m){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l.user))}}function q(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Te(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"td",32)(1,"i",35),e.NdJ("click",function(n){const i=e.CHM(l).$implicit,a=e.oxw();return e.KtG(a.changeStatus(n,i))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const l=m.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,l),""),e.s9C("matTooltip",e.xi3(3,7,l,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,l.status)," ")}}function He(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function dt(s,m){if(1&s){const l=e.EpF();e.TgZ(0,"td",32)(1,"i",35),e.NdJ("click",function(n){const i=e.CHM(l).$implicit,a=e.oxw();return e.KtG(a.changeStatus(n,i))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&s){const l=m.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,l.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,l,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,l.groupStatus)," ")}}function et(s,m){1&s&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function _t(s,m){1&s&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function Qe(s,m){if(1&s&&(e.TgZ(0,"td",37),e.YNc(1,_t,2,0,"mat-icon",38),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Q6J("ngIf",l.sponsored)}}function st(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Z(s,m){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function ve(s,m){1&s&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function oe(s,m){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function ge(s,m){1&s&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function ae(s,m){if(1&s&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&s){const l=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function Oe(s,m){1&s&&e._UZ(0,"tr",40)}const Q=function(s,m){return["/organizations",s,"members",m]};function me(s,m){if(1&s&&e._UZ(0,"tr",41),2&s){const l=m.$implicit,o=e.oxw();e.ekj("cursor-pointer",!o.disabledRouting)("disable-outline",o.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",o.disableRouting?null:e.WLB(6,Q,l.voId,l.id))("routerLink",o.disableRouting?null:e.WLB(9,Q,l.voId,l.id))}}function N(s,m){1&s&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function L(s,m){1&s&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let r=(()=>{class s{constructor(l,o,n,t){this.dialog=l,this.authResolver=o,this.tableCheckbox=n,this.route=t,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=g.f7,this.getExportDataForColumnFun=(i,a)=>s.getExportDataForColumn(i,a,this.showGroupStatuses),this.getSortDataForColumnFun=(i,a)=>s.getSortDataForColumn(i,a,this.showGroupStatuses),this.canBeSelected=i=>"DIRECT"===i.membershipType}set matSort(l){this.sort=l}static getFilterDataForColumn(l,o){switch(o){case"fullName":return l.user?(0,g.bD)(l.user):"";case"email":return(0,g.g$)(l);case"logins":return(0,g.lt)(l);default:return""}}static getExportDataForColumn(l,o,n){switch(o){case"id":return l.id.toString();case"fullName":return l.user?(0,g.bD)(l.user):"";case"status":return n?l.groupStatus:l.status;case"organization":return(0,g.Gw)(l);case"email":return(0,g.g$)(l);case"logins":return(0,g.lt)(l);default:return""}}static getSortDataForColumn(l,o,n){switch(o){case"id":return l.id.toString();case"fullName":return l.user?l.user.lastName?l.user.lastName:l.user.firstName??"":"";case"status":return n?l.groupStatus:l.status;case"organization":return(0,g.Gw)(l);case"email":return(0,g.g$)(l);default:return""}}exportData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,o)=>(0,g.Sd)(l,o,this.displayedColumns,s.getFilterDataForColumn),this.dataSource.sortData=(l,o)=>(0,g.pR)(l,o,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(l=>{l.groupId&&(this.groupId=Number(l.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(l,o){if(l.stopPropagation(),!this.disableStatusChange){const n=(0,g.kZ)();n.width="500px",n.data={member:o,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(C.pf,n).afterClosed().subscribe(i=>{i&&this.updateTable.emit(!0)})}}viewMemberGroupTree(l){const o=(0,g.kZ)();o.width="800px",o.data={member:l,groupId:this.groupId},this.dialog.open(C.jd,o)}}return s.\u0275fac=function(l){return new(l||s)(e.Y36(v.uw),e.Y36(T.x4),e.Y36(T.UA),e.Y36(R.gz))},s.\u0275cmp=e.Xpm({type:s,selectors:[["perun-web-apps-members-list"]],viewQuery:function(l,o){if(1&l&&(e.Gf(g.l9,7),e.Gf(d.YE,7)),2&l){let n;e.iGM(n=e.CRH())&&(o.child=n.first),e.iGM(n=e.CRH())&&(o.matSort=n.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(l,o){1&l&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(t){return o.exportData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,de,2,3,"th",4),e.YNc(5,ye,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,xe,3,3,"th",7),e.YNc(8,Me,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Ze,3,3,"th",7),e.YNc(11,se,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,ze,3,3,"th",7),e.YNc(14,he,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,De,1,0,"th",7),e.YNc(17,P,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,G,3,3,"th",7),e.YNc(20,ce,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,q,3,3,"th",7),e.YNc(23,Te,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,He,3,3,"th",7),e.YNc(26,dt,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,et,3,3,"th",17),e.YNc(29,Qe,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,st,3,3,"th",7),e.YNc(32,Z,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,ve,3,3,"th",7),e.YNc(35,oe,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,ge,3,3,"th",22),e.YNc(38,ae,3,3,"td",10),e.BQk(),e.YNc(39,Oe,1,0,"tr",23),e.YNc(40,me,1,12,"tr",24),e.qZA()()(),e.YNc(41,N,3,3,"perun-web-apps-alert",25),e.YNc(42,L,3,3,"perun-web-apps-alert",25)),2&l&&(e.Q6J("hidden",0===o.members.length||!o.dataSource||0===o.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",o.dataSource.filteredData.length)("tableId",o.tableId)("pageSizeOptions",o.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",o.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",o.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",o.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==o.members.length&&0===o.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===o.members.length))},dependencies:[U.O5,_.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,R.rH,d.YE,d.nU,V.w,Y.Hw,X.gM,ne.l,le.YH,te.X$,fe.d,ue.u,we.f,E.i,O.D,H.p,W.F,$.M],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})()},22465:(Je,pe,h)=>{"use strict";h.d(pe,{c:()=>_});var e=h(94650),d=h(32080),A=h(9244),w=h(16074),g=h(65412),C=h(36895),T=h(97392),v=h(89383);function R(V,Y){if(1&V&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&V){const X=e.oxw();e.xp6(2),e.Oqu(X.data.icon)}}function U(V,Y){if(1&V&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&V){const X=e.oxw();e.xp6(1),e.hij(" ",X.showTimestamp()," ")}}let _=(()=>{class V{constructor(X,ne){this.dialog=X,this.notificationStorageService=ne,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const X=(0,A.kZ)();X.width="550px",X.data=this.data,X.autoFocus=!1,this.dialog.open(w.FM,X).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,A.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[X,ne]=this.data.timeStamp.split(":");return ne.length<2?X+":0"+ne:this.data.timeStamp}}return V.\u0275fac=function(X){return new(X||V)(e.Y36(g.uw),e.Y36(d.SZ))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(X,ne){1&X&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return ne.alreadyClosed||ne.waiting?"":ne.closeSelf()}),e.YNc(2,R,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,U,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ne.waiting=!0,ne.doAction()}),e._uU(8),e.qZA()()()),2&X&&(e.Gre("notification ",ne.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ne.data.type)("success","success"===ne.data.type),e.xp6(2),e.Q6J("ngIf",null!==ne.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ne.data.title)," "),e.xp6(2),e.Q6J("ngIf",ne.inDialog),e.xp6(1),e.Q6J("hidden",ne.alreadyPressed),e.xp6(1),e.hij(" ",ne.data.actionText," "))},dependencies:[C.O5,T.Hw,v.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),V})()},53599:(Je,pe,h)=>{"use strict";h.d(pe,{N:()=>de});var e=h(94650),d=h(32105),A=h(32080),w=h(30671),g=h(9244),C=h(16074),T=h(65412),v=h(94364),R=h(36895),U=h(96308),_=h(98380),V=h(4859),Y=h(89383),X=h(34447);function ne(ye,xe){1&ye&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function le(ye,xe){1&ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function te(ye,xe){if(1&ye&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ye){const Me=xe.$implicit;e.xp6(1),e.Oqu(Me.friendlyNameParameter)}}function fe(ye,xe){1&ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function ue(ye,xe){if(1&ye&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ye){const Me=xe.$implicit;e.xp6(1),e.Oqu(Me.value)}}function we(ye,xe){1&ye&&e._UZ(0,"th",16)}function E(ye,xe){if(1&ye){const Me=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const ze=e.CHM(Me).$implicit,he=e.oxw();return e.KtG(he.resetPassword(ze.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ye){const Me=xe.$implicit,Ze=e.oxw();e.xp6(1),e.Q6J("disabled",!Ze.logins.includes(Me)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function O(ye,xe){1&ye&&e._UZ(0,"th",16)}function H(ye,xe){if(1&ye){const Me=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const ze=e.CHM(Me).$implicit,he=e.oxw();return e.KtG(he.changePassword(ze))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ye){const Me=xe.$implicit,Ze=e.oxw();e.xp6(1),e.Q6J("disabled",!Ze.logins.includes(Me)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function W(ye,xe){1&ye&&e._UZ(0,"tr",22)}function $(ye,xe){1&ye&&e._UZ(0,"tr",23)}let de=(()=>{class ye{constructor(Me,Ze,se,ze,he,De,j){this.attributesManagerService=Me,this.store=Ze,this.dialog=se,this.route=ze,this.router=he,this.otherApplicationService=De,this.entityStorageService=j,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.get("password_namespace_attributes").map(Me=>{const Ze=Me.split(":");return Ze[Ze.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(Me=>{if(this.logins=Me.filter(Ze=>this.nameSpaces.includes(Ze.friendlyNameParameter)),this.filteredNamespaces.emit(Me.map(Ze=>Ze.friendlyNameParameter)),this.dataSource=new w.by(Me),!this.authenticationPage){const se=this.route.snapshot.queryParamMap.get("namespace");if(se){const ze=this.logins.find(he=>he.friendlyNameParameter===se);ze&&this.changePassword(ze)}}})}resetPassword(Me){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",Me),"_blank")}changePassword(Me){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:Me.friendlyNameParameter},queryParamsHandling:"merge"});const Ze=(0,g.kZ)();Ze.width="600px",Ze.data={login:String(Me.value),namespace:Me.friendlyName.split(":")[1]},this.dialog.open(C.xF,Ze).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return ye.\u0275fac=function(Me){return new(Me||ye)(e.Y36(d.H8),e.Y36(A.d6),e.Y36(T.uw),e.Y36(v.gz),e.Y36(v.F0),e.Y36(A.jq),e.Y36(A.fb))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(Me,Ze){1&Me&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,ne,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,le,4,5,"th",7),e.YNc(11,te,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,fe,4,5,"th",7),e.YNc(14,ue,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,we,1,0,"th",7),e.YNc(17,E,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,O,1,0,"th",7),e.YNc(20,H,5,6,"td",12),e.BQk(),e.YNc(21,W,1,0,"tr",14),e.YNc(22,$,1,0,"tr",15),e.qZA()()()()),2&Me&&(e.xp6(1),e.hij(" ",Ze.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!Ze.logins.length&&!Ze.authenticationPage),e.xp6(4),e.Q6J("dataSource",Ze.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",Ze.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ze.displayedColumns))},dependencies:[R.O5,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,U.YE,_.w,V.lW,Y.X$,X.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ye})()},41619:(Je,pe,h)=>{"use strict";h.d(pe,{$:()=>he});var e=h(32080),d=h(32105),A=h(94650),w=h(65412),g=h(89383),C=h(36895),T=h(24006),v=h(4859),R=h(59549),U=h(284);function _(De,j){1&De&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&De&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let V=(()=>{class De{constructor(P,G,ce,q,Te){this.dialogRef=P,this.translate=G,this.notificator=ce,this.rtMessages=q,this.storeService=Te,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(P=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(P.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",h(4147).i8)}close(){this.dialogRef.close()}}return De.\u0275fac=function(P){return new(P||De)(A.Y36(w.so),A.Y36(g.sK),A.Y36(e.V6),A.Y36(d.Hr),A.Y36(e.d6))},De.\u0275cmp=A.Xpm({type:De,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(P,G){if(1&P&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"input",2,3),A.NdJ("ngModelChange",function(q){return G.subject=q}),A.qZA(),A.YNc(10,_,3,3,"mat-error",4),A.qZA(),A.TgZ(11,"mat-form-field")(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"textarea",5),A.NdJ("ngModelChange",function(q){return G.message=q}),A.ALo(16,"translate"),A._uU(17," "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"div",6)(22,"div",7)(23,"button",8),A.NdJ("click",function(){return G.close()}),A._uU(24),A.ALo(25,"translate"),A.qZA(),A.TgZ(26,"button",9),A.NdJ("click",function(){return G.sendBugReport()}),A._uU(27),A.ALo(28,"translate"),A.qZA()()()),2&P){const ce=A.MAs(9);A.xp6(1),A.Oqu(A.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),A.xp6(5),A.Oqu(A.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),A.xp6(2),A.Q6J("ngModel",G.subject),A.xp6(2),A.Q6J("ngIf",ce.invalid),A.xp6(3),A.Oqu(A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),A.Q6J("ngModel",G.message),A.xp6(4),A.Oqu(A.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),A.xp6(5),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),A.xp6(2),A.Q6J("disabled",ce.invalid),A.xp6(1),A.hij(" ",A.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[C.O5,T.Fj,T.JJ,T.Q7,T.On,v.lW,R.TO,R.KE,R.bx,R.hX,U.Nt,w.uh,w.xY,w.H8,g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),De})();var Y=h(9244);let X=(()=>{class De{transform(P,G,ce){return P[`${ce}_${G}`]}}return De.\u0275fac=function(P){return new(P||De)},De.\u0275pipe=A.Yjl({name:"localisedText",type:De,pure:!0}),De})(),ne=(()=>{class De{transform(P,G){return P["link_"+G]||P.link_en}}return De.\u0275fac=function(P){return new(P||De)},De.\u0275pipe=A.Yjl({name:"localisedLink",type:De,pure:!0}),De})(),le=(()=>{class De{transform(P){return P.includes("/")?P:"/assets/config/"+P}}return De.\u0275fac=function(P){return new(P||De)},De.\u0275pipe=A.Yjl({name:"footerLogoPath",type:De,pure:!0}),De})();function te(De,j){if(1&De&&(A.TgZ(0,"a",13),A.ALo(1,"localisedLink"),A._UZ(2,"img",14),A.ALo(3,"footerLogoPath"),A.qZA()),2&De){const P=A.oxw().$implicit,G=A.oxw(3);A.Q6J("href",A.xi3(1,2,P,G.language),A.LSH),A.xp6(2),A.s9C("src",A.lcZ(3,5,P.logo),A.LSH)}}function fe(De,j){if(1&De&&(A.TgZ(0,"span"),A._UZ(1,"img",14),A.ALo(2,"footerLogoPath"),A.qZA()),2&De){const P=A.oxw().$implicit;A.xp6(1),A.s9C("src",A.lcZ(2,1,P.logo),A.LSH)}}function ue(De,j){if(1&De&&(A.TgZ(0,"div"),A.YNc(1,te,4,7,"a",11),A.ALo(2,"localisedLink"),A.YNc(3,fe,3,3,"span",12),A.ALo(4,"localisedLink"),A.qZA()),2&De){const P=j.$implicit,G=A.oxw(3);A.xp6(1),A.Q6J("ngIf",A.xi3(2,2,P,G.language)),A.xp6(2),A.Q6J("ngIf",!A.xi3(4,5,P,G.language))}}const we=function(De){return{"min-height":De}};function E(De,j){if(1&De&&(A.TgZ(0,"div",10),A.YNc(1,ue,5,8,"div",5),A.qZA()),2&De){const P=A.oxw().$implicit,G=A.oxw();A.Q6J("ngStyle",A.VKq(2,we,G.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",P.elements)}}const O=function(De){return{color:De}};function H(De,j){if(1&De&&(A.TgZ(0,"i",20),A._uU(1),A.qZA()),2&De){const P=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(2,O,G.linksTextColor)),A.xp6(1),A.hij(" ",P.icon," ")}}function W(De,j){if(1&De){const P=A.EpF();A.TgZ(0,"span",21),A.NdJ("click",function(){A.CHM(P);const ce=A.oxw().$implicit,q=A.oxw(3);return A.KtG(q.openDialog(ce.dialog))}),A._uU(1),A.ALo(2,"localisedText"),A.qZA()}if(2&De){const P=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,O,G.linksTextColor)),A.xp6(1),A.hij("",A.Dn7(2,2,P,G.language,"label")," ")}}function $(De,j){if(1&De&&(A.TgZ(0,"a",22),A.ALo(1,"localisedLink"),A._uU(2),A.ALo(3,"localisedText"),A.qZA()),2&De){const P=A.oxw().$implicit,G=A.oxw(3);A.Q6J("href",A.xi3(1,3,P,G.language),A.LSH)("ngStyle",A.VKq(10,O,G.linksTextColor)),A.xp6(2),A.Oqu(A.Dn7(3,6,P,G.language,"label"))}}function de(De,j){if(1&De&&(A.TgZ(0,"span",10),A._uU(1),A.ALo(2,"localisedText"),A.qZA()),2&De){const P=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,O,G.linksTextColor)),A.xp6(1),A.Oqu(A.Dn7(2,2,P,G.language,"label"))}}function ye(De,j){if(1&De&&(A.TgZ(0,"div",16),A.YNc(1,H,2,4,"i",17),A.YNc(2,W,3,8,"span",18),A.YNc(3,$,4,12,"a",19),A.ALo(4,"localisedLink"),A.YNc(5,de,3,8,"span",9),A.ALo(6,"localisedLink"),A.qZA()),2&De){const P=j.$implicit,G=A.oxw(3);A.xp6(1),A.Q6J("ngIf",P.icon),A.xp6(1),A.Q6J("ngIf",P.dialog),A.xp6(1),A.Q6J("ngIf",A.xi3(4,4,P,G.language)&&!P.dialog),A.xp6(2),A.Q6J("ngIf",!A.xi3(6,7,P,G.language)&&!P.dialog)}}const xe=function(De){return{height:De}};function Me(De,j){if(1&De&&(A.TgZ(0,"div",10),A.YNc(1,ye,7,10,"div",15),A.qZA()),2&De){const P=A.oxw().$implicit,G=A.oxw();A.Q6J("ngStyle",A.VKq(2,xe,G.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",P.elements)}}function Ze(De,j){if(1&De&&(A.TgZ(0,"div",7)(1,"h6",8),A._uU(2),A.ALo(3,"localisedText"),A.qZA(),A.YNc(4,E,2,4,"div",9),A.YNc(5,Me,2,4,"div",9),A.qZA()),2&De){const P=j.$implicit,G=A.oxw();A.ekj("my-auto",G.containsLogos),A.xp6(1),A.Q6J("ngStyle",A.VKq(10,O,G.headersTextColor)),A.xp6(1),A.hij(" ",A.Dn7(3,6,P,G.language,"title")," "),A.xp6(2),A.Q6J("ngIf",P.logos),A.xp6(1),A.Q6J("ngIf",P.elements&&!P.logos)}}function se(De,j){if(1&De&&(A.TgZ(0,"span")(1,"a",6),A._uU(2),A.qZA()()),2&De){const P=j.$implicit,G=j.index,ce=A.oxw();A.xp6(1),A.Q6J("href",P.url,A.LSH)("ngStyle",A.VKq(3,O,ce.copyrightTextColor)),A.xp6(1),A.Oqu(G?", "+P.name:P.name)}}const ze=function(De){return{background:De}};let he=(()=>{class De{constructor(P,G,ce){this.storeService=P,this.translateService=G,this.dialog=ce,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(P=>{this.language=P.lang}),this.version=h(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const P of this.footerColumns)P.logos?this.containsLogos=!0:25*P.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*P.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(P){const G=(0,Y.kZ)();"reportIssue"===P&&(G.width="550px",this.dialog.open(V,G))}}return De.\u0275fac=function(P){return new(P||De)(A.Y36(e.d6),A.Y36(g.sK),A.Y36(w.uw))},De.\u0275cmp=A.Xpm({type:De,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(P,G){1&P&&(A.TgZ(0,"footer",0)(1,"div",1),A.YNc(2,Ze,6,12,"div",2),A.qZA(),A._UZ(3,"hr",3),A.TgZ(4,"div",4),A._uU(5),A.YNc(6,se,3,5,"span",5),A._uU(7," Version "),A.TgZ(8,"a",6),A._uU(9),A.qZA()()()),2&P&&(A.Q6J("ngStyle",A.VKq(8,ze,G.bgColor)),A.xp6(2),A.Q6J("ngForOf",G.footerColumns),A.xp6(2),A.Q6J("ngStyle",A.VKq(10,O,G.copyrightTextColor)),A.xp6(1),A.hij(" \xa9 ",G.currentYear," Copyright: "),A.xp6(1),A.Q6J("ngForOf",G.copyrightItems),A.xp6(2),A.Q6J("href",G.githubRepository,A.LSH)("ngStyle",A.VKq(12,O,G.copyrightTextColor)),A.xp6(1),A.Oqu(G.version))},dependencies:[C.sg,C.O5,C.PC,X,ne,le],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),De})()},10441:(Je,pe,h)=>{"use strict";h.d(pe,{W:()=>T});var e=h(94650),d=h(36895),A=h(97392),w=h(10266),g=h(89383);function C(v,R){1&v&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&v&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let T=(()=>{class v{constructor(){this.recentIds=[]}}return v.\u0275fac=function(U){return new(U||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(U,_){1&U&&e.YNc(0,C,3,3,"mat-icon",0),2&U&&e.Q6J("ngIf",_.recentIds.indexOf(_.id)>-1)},dependencies:[d.O5,A.Hw,w.gM,g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),v})()},96214:(Je,pe,h)=>{"use strict";h.d(pe,{t:()=>C});var e=h(94650),d=h(97392),A=h(4859),w=h(10266),g=h(89383);let C=(()=>{class T{constructor(){this.refresh=new e.vpe}onClickbutton(R){this.refresh.emit(R)}}return T.\u0275fac=function(R){return new(R||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(R,U){1&R&&(e.TgZ(0,"button",0),e.NdJ("click",function(V){return U.onClickbutton(V)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&R&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",U.disabled),e.xp6(2),e.s9C("svgIcon",U.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[d.Hw,A.lW,w.gM,g.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),T})()},45703:(Je,pe,h)=>{"use strict";h.d(pe,{L:()=>g});var e=h(94650),d=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=v=>v.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(d.aC)}}return C.\u0275fac=function(v){return new(v||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:15,consts:[[3,"entity","entities","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return R.resourceSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entity",R.resource)("entities",R.resources)("displayStatus",R.displayStatus)("searchFunction",R.nameFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.secondaryFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[A.i,w.X$]}),C})()},62109:(Je,pe,h)=>{"use strict";h.d(pe,{C:()=>ge});var e=h(94650),d=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(32080),T=h(36895),v=h(56709),R=h(94364),U=h(98380),_=h(97392),V=h(10266),Y=h(18750),X=h(50301),ne=h(10441),le=h(8223),te=h(89383);let fe=(()=>{class ae{transform(Q){if(null==Q)return null;let N="";return Q.forEach(function(L){N=N.concat(L.tagName)}),N}}return ae.\u0275fac=function(Q){return new(Q||ae)},ae.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:ae,pure:!0}),ae})();var ue=h(82895);function we(ae,Oe){if(1&ae){const Q=e.EpF();e.TgZ(0,"th",24)(1,"mat-checkbox",25),e.NdJ("change",function(N){e.CHM(Q);const L=e.oxw();return e.KtG(N?L.masterToggle():null)}),e.qZA()()}if(2&ae){const Q=e.oxw();e.xp6(1),e.Q6J("aria-label",Q.checkboxLabel())("checked",Q.selection.hasValue()&&Q.isAllSelected())("indeterminate",Q.selection.hasValue()&&!Q.isAllSelected())}}function E(ae,Oe){if(1&ae){const Q=e.EpF();e.TgZ(0,"td",26)(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function(N){const r=e.CHM(Q).$implicit,s=e.oxw();return e.KtG(N?s.itemSelectionToggle(r):null)})("click",function(N){return N.stopPropagation()}),e.qZA()()()}if(2&ae){const Q=Oe.$implicit,me=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!me.disableSelect(Q)),e.xp6(2),e.Q2q("data-cy","",Q.name,"-checkbox"),e.Q6J("aria-label",me.checkboxLabel(Q))("checked",me.selection.isSelected(Q))("disabled",me.disableSelect(Q))}}function O(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function H(ae,Oe){if(1&ae&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Oqu(Q.id)}}function W(ae,Oe){1&ae&&e._UZ(0,"th",31)}function $(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&ae){const Q=Oe.$implicit,me=e.oxw();e.xp6(1),e.Q6J("recentIds",me.recentIds)("id",Q.id)}}function de(ae,Oe){1&ae&&e._UZ(0,"th",31)}function ye(ae,Oe){1&ae&&(e.TgZ(0,"mat-icon",35),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&ae&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function xe(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e.YNc(1,ye,3,3,"mat-icon",34),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Q6J("ngIf",Q.sourceGroupId)}}function Me(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function Ze(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.uIk("data-cy",Q.name),e.xp6(1),e.hij(" ",Q.name," ")}}function se(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function ze(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Oqu(Q.vo.name)}}function he(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function De(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Oqu(Q.voId)}}function j(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function P(ae,Oe){if(1&ae){const Q=e.EpF();e.TgZ(0,"td",32)(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){e.CHM(Q);const N=e.oxw();return e.KtG(N.disabledRouting=!0)})("mouseleave",function(){e.CHM(Q);const N=e.oxw();return e.KtG(N.disabledRouting=N.disableRouting)})("statusChange",function(){e.CHM(Q);const N=e.oxw();return e.KtG(N.refreshTable.emit())}),e.qZA()()}if(2&ae){const Q=Oe.$implicit,me=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",Q.id)("groupId",me.groupId)("failureCause",Q.failureCause)("status",Q.status)}}function G(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function ce(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Oqu(Q.facility.name)}}function q(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function Te(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Oqu(Q.facilityId)}}function He(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function dt(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,Q.resourceTags)," ")}}function et(ae,Oe){1&ae&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function _t(ae,Oe){if(1&ae&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&ae){const Q=Oe.$implicit;e.xp6(1),e.Oqu(Q.description)}}function Qe(ae,Oe){1&ae&&e._UZ(0,"tr",37)}const st=function(ae){return[ae]};function Z(ae,Oe){if(1&ae&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&ae){const Q=Oe.$implicit,me=e.oxw();e.ekj("cursor-pointer",!me.disableRouting)("disable-outline",me.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,st,me.disabledRouting?null:e.xi3(1,6,Q,me.routingVo)))("routerLink",me.disabledRouting?null:e.xi3(2,9,Q,me.routingVo))}}function ve(ae,Oe){1&ae&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function oe(ae,Oe){1&ae&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ae&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let ge=(()=>{class ae{constructor(Q,me){this.guiAuthResolver=Q,this.tableCheckbox=me,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=g.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(N,L)=>ae.getDataForColumn(N,L,this.recentIds),this.canBeSelected=N=>!this.disableSelect(N)}set matSort(Q){this.sort=Q}static getDataForColumn(Q,me,N){switch(me){case"id":return Q.id.toString();case"vo":return Q.vo.name;case"name":return Q.name;case"facility":return Q.facility.name;case"description":return Q.description;case"recent":return N&&N.includes(Q.id)?"#".repeat(N.indexOf(Q.id)):Q.name;case"tags":{if(!Q.resourceTags)return Q[me];let r="";return Q.resourceTags.forEach(function(s){r=r.concat(s.tagName)}),r}case"status":return Q.status;case"uuid":return Q.uuid;default:return Q[me]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Q=>"id"!==Q)),this.setDataSource(),this.setAuth()}exportData(Q){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Q)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Q,me)=>(0,g.Sd)(Q,me,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Q,me)=>(0,g.pR)(Q,me,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const Q=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(Q),Q}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(Q){return Q?`${this.selection.isSelected(Q)?"deselect":"select"} row ${Q.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const Q=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((me,N)=>me&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",Q.concat([N])),!0),this.addAuth=this.selection.selected.reduce((me,N)=>me&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",Q.concat([N])),!0)}itemSelectionToggle(Q){this.selection.toggle(Q),this.setAuth()}disableSelect(Q){return this.resourcesToDisableCheckbox.has(Q.id)}}return ae.\u0275fac=function(Q){return new(Q||ae)(e.Y36(C.x4),e.Y36(C.UA))},ae.\u0275cmp=e.Xpm({type:ae,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(Q,me){if(1&Q&&(e.Gf(g.l9,7),e.Gf(d.YE,7)),2&Q){let N;e.iGM(N=e.CRH())&&(me.child=N.first),e.iGM(N=e.CRH())&&(me.matSort=N.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Q,me){1&Q&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(L){return me.exportData(L)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,we,2,3,"th",4),e.YNc(5,E,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,O,3,3,"th",7),e.YNc(8,H,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,W,1,0,"th",10),e.YNc(11,$,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,de,1,0,"th",10),e.YNc(14,xe,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Me,3,3,"th",7),e.YNc(17,Ze,2,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,se,3,3,"th",7),e.YNc(20,ze,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,he,3,3,"th",7),e.YNc(23,De,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,j,3,3,"th",7),e.YNc(26,P,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,G,3,3,"th",7),e.YNc(29,ce,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,q,3,3,"th",7),e.YNc(32,Te,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,He,3,3,"th",7),e.YNc(35,dt,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,et,3,3,"th",7),e.YNc(38,_t,2,1,"td",11),e.BQk(),e.YNc(39,Qe,1,0,"tr",21),e.YNc(40,Z,3,14,"tr",22),e.qZA()()(),e.YNc(41,ve,3,3,"perun-web-apps-alert",23),e.YNc(42,oe,3,3,"perun-web-apps-alert",23)),2&Q&&(e.Q6J("hidden",0===me.dataSource.filteredData.length||0===me.resources.length),e.xp6(1),e.Q6J("dataLength",me.dataSource.filteredData.length)("tableId",me.tableId)("pageSizeOptions",me.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",me.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",me.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",me.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===me.dataSource.filteredData.length&&0!==me.resources.length),e.xp6(1),e.Q6J("ngIf",0===me.resources.length))},dependencies:[T.O5,v.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,R.rH,d.YE,d.nU,U.w,_.Hw,V.gM,Y.l,X.YH,ne.W,le.x,te.X$,fe,ue.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ae})()},52170:(Je,pe,h)=>{"use strict";h.d(pe,{$x:()=>C,qG:()=>g});var e=h(94650),d=h(89383),A=h(42377);class w{constructor(v,R){this.value=R,this.displayName=v}}var g=(()=>{return(T=g||(g={}))[T.SOURCE=0]="SOURCE",T[T.DESTINATION=1]="DESTINATION",T[T.FEDERATION=2]="FEDERATION",g;var T})();let C=(()=>{class T{constructor(R){this.translateService=R,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=U=>U.displayName,this.shortNameFunction=()=>null,this.searchFunction=U=>U.displayName}static getDefinition(R){const U=R.namespace.split(":");return null===U[4]?"null":U[4]}ngOnInit(){this.type===g.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{const U=new w(R,"");this.items.push(U),this.item=U});for(const R of this.attributes){const U=new w(R.friendlyName+" ("+R.entity+" / "+T.getDefinition(R)+")",R.namespace+":"+R.friendlyName);U.value===this.selectedAttribute&&(this.item=U),("user"===R.entity.toLowerCase()||"member"===R.entity.toLowerCase()||"vo"===R.entity.toLowerCase()&&this.type===g.SOURCE||"group"===R.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(U)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{this.items.push(new w(R,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(U=>{this.items.push(new w(U,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const R of this.items)if(R.value===this.selectedAttribute)return void(this.item=R);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(R){R.sort((U,_)=>""===U.value?-1:""===_.value?1:U.displayName.localeCompare(_.displayName))}}return T.\u0275fac=function(R){return new(R||T)(e.Y36(d.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,U){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(V){return U.itemSelected.emit(V)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",U.items)("entity",U.item)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[A.i,d.X$]}),T})()},30540:(Je,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(94650),d=h(42377),A=h(89383);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=T=>T.name,this.secondaryFunction=()=>"",this.searchFunction=T=>T.name}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(T,v){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(U){return v.serviceSelected.emit(U)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entity",v.service)("entities",v.services)("multiple",v.multiple)("disableAutoSelect",v.disableAutoSelect)("searchFunction",v.searchFunction)("mainTextFunction",v.nameFunction)("secondaryTextFunction",v.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",v.theme)},dependencies:[d.i,A.X$]}),g})()},80275:(Je,pe,h)=>{"use strict";h.d(pe,{j:()=>De});var e=h(95017),d=h(96308),A=h(30671),w=h(32080),g=h(9244),C=h(94650),T=h(94364),v=h(36895),R=h(56709),U=h(98380),_=h(10266),V=h(18750),Y=h(50301),X=h(89383);let ne=(()=>{class j{transform(G){return G.find(q=>"mail"===q.friendlyName)?.value??""}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275pipe=C.Yjl({name:"getMailFromAttributes",type:j,pure:!0}),j})();var le=h(34447);function te(j,P){1&j&&C._UZ(0,"th",18)}function fe(j,P){if(1&j){const G=C.EpF();C.TgZ(0,"td",19)(1,"span",20),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.TgZ(4,"mat-checkbox",21),C.NdJ("change",function(q){const He=C.CHM(G).$implicit,dt=C.oxw();return C.KtG(q?dt.selection.toggle(He):null)})("click",function(q){return q.stopPropagation()}),C.qZA()()()}if(2&j){const G=P.$implicit,ce=C.oxw();C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,C.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),C.Q6J("matTooltipPosition","above")("matTooltipDisabled",!G.userExtSource.persistent),C.xp6(3),C.Q6J("aria-label",ce.checkboxLabel(G))("checked",ce.selection.isSelected(G))("disabled",G.userExtSource.persistent)}}function ue(j,P){1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function we(j,P){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=P.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.id," ")}}function E(j,P){1&j&&(C.TgZ(0,"th",24),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function O(j,P){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.ALo(2,"getMailFromAttributes"),C.qZA()),2&j){const G=P.$implicit;C.xp6(1),C.hij(" ",C.lcZ(2,1,G.attributes)," ")}}function H(j,P){if(1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j){const G=C.oxw();C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,G.extSourceNameHeader?G.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function W(j,P){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=P.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.extSource.name," ")}}function $(j,P){if(1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j){const G=C.oxw();C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,G.loginHeader?G.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function de(j,P){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=P.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.login," ")}}function ye(j,P){1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function xe(j,P){if(1&j&&(C.TgZ(0,"td",25),C._uU(1),C.ALo(2,"date"),C.qZA()),2&j){const G=P.$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,G.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Me(j,P){1&j&&C._UZ(0,"tr",26)}const Ze=function(j,P){return["/admin","users",j,"identities",P]};function se(j,P){if(1&j&&C._UZ(0,"tr",27),2&j){const G=P.$implicit,ce=C.oxw();C.ekj("cursor-pointer",!ce.disableRouting)("disable-outline",ce.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",ce.disableRouting?null:C.WLB(6,Ze,ce.userId,G.userExtSource.id))("routerLink",ce.disableRouting?null:C.WLB(9,Ze,ce.userId,G.userExtSource.id))}}function ze(j,P){1&j&&(C.TgZ(0,"perun-web-apps-alert",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(j,P){1&j&&(C.TgZ(0,"perun-web-apps-alert",28),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let De=(()=>{class j{constructor(G,ce){this.route=G,this.authResolver=ce,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(G){this.sort=G,this.setDataSource()}static getDataForColumn(G,ce){switch(ce){case"id":return G.userExtSource.id.toString();case"mail":{const q=G.attributes.find(Te=>"mail"===Te.friendlyName);return q?q.value:"N/A"}case"extSourceName":return G.userExtSource.extSource.name;case"login":return G.userExtSource.login;case"lastAccess":return G.userExtSource.lastAccess.split(".")[0];default:return G[ce]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(G=>{this.userId=Number(G.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(G=>"id"!==G)),this.dataSource=new A.by(this.userExtSources),this.setDataSource()}exportData(G){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,j.getDataForColumn),G)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(G,ce)=>(0,g.Sd)(G,ce,this.displayedColumns,j.getDataForColumn),this.dataSource.sortData=(G,ce)=>(0,g.pR)(G,ce,j.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(G){return`${this.selection.isSelected(G.userExtSource)?"deselect":"select"} row ${G.userExtSource.id+1}`}}return j.\u0275fac=function(G){return new(G||j)(C.Y36(T.gz),C.Y36(w.x4))},j.\u0275cmp=C.Xpm({type:j,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(G,ce){if(1&G&&(C.Gf(g.l9,7),C.Gf(d.YE,7)),2&G){let q;C.iGM(q=C.CRH())&&(ce.child=q.first),C.iGM(q=C.CRH())&&(ce.matSort=q.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[C.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(G,ce){1&G&&(C.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportData",function(Te){return ce.exportData(Te)}),C.TgZ(2,"table",2),C.ynx(3,3),C.YNc(4,te,1,0,"th",4),C.YNc(5,fe,5,10,"td",5),C.BQk(),C.ynx(6,6),C.YNc(7,ue,4,5,"th",7),C.YNc(8,we,2,1,"td",8),C.BQk(),C.ynx(9,9),C.YNc(10,E,4,5,"th",10),C.YNc(11,O,3,3,"td",8),C.BQk(),C.ynx(12,11),C.YNc(13,H,4,5,"th",7),C.YNc(14,W,2,1,"td",8),C.BQk(),C.ynx(15,12),C.YNc(16,$,4,5,"th",7),C.YNc(17,de,2,1,"td",8),C.BQk(),C.ynx(18,13),C.YNc(19,ye,4,5,"th",7),C.YNc(20,xe,3,4,"td",14),C.BQk(),C.YNc(21,Me,1,0,"tr",15),C.YNc(22,se,1,12,"tr",16),C.qZA()()(),C.YNc(23,ze,3,3,"perun-web-apps-alert",17),C.YNc(24,he,4,5,"perun-web-apps-alert",17)),2&G&&(C.Q6J("hidden",0===ce.userExtSources.length||0===ce.dataSource.filteredData.length),C.xp6(1),C.Q6J("tableId",ce.tableId)("dataLength",ce.dataSource.filteredData.length)("pageSizeOptions",ce.pageSizeOptions),C.xp6(1),C.Q6J("dataSource",ce.dataSource),C.xp6(19),C.Q6J("matHeaderRowDef",ce.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",ce.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===ce.dataSource.filteredData.length&&0!==ce.userExtSources.length),C.xp6(1),C.Q6J("ngIf",0===ce.userExtSources.length))},dependencies:[v.O5,R.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,T.rH,d.YE,d.nU,U.w,_.gM,V.l,Y.YH,v.uU,X.X$,ne,le.a],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),j})()},74250:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(94650),d=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=d.bD}ngOnInit(){this.users=this.users.sort(d.fx)}}return C.\u0275fac=function(v){return new(v||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return R.userSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entities",R.users)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.userFullNameFunction)("mainTextFunction",R.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[A.i,w.X$]}),C})()},88561:(Je,pe,h)=>{"use strict";h.d(pe,{M:()=>Qe});var e=h(95017),d=h(9244),A=h(96308),w=h(32080),g=h(56451),C=h(18505),T=h(94650),v=h(10036),R=h(36895),U=h(56709),_=h(30671),V=h(51572),Y=h(98380),X=h(97392),ne=h(10266),le=h(18750),te=h(50301),fe=h(89383),ue=h(31359),we=h(16119),E=h(7598),O=h(9954);function H(st,Z){1&st&&(T.TgZ(0,"div",20),T._UZ(1,"mat-spinner",21),T.qZA())}function W(st,Z){if(1&st){const ve=T.EpF();T.TgZ(0,"mat-checkbox",24),T.NdJ("change",function(ge){T.CHM(ve);const ae=T.oxw(2);return T.KtG(ge?ae.masterToggle():null)}),T.qZA()}if(2&st){const ve=T.oxw(2);T.Q6J("aria-label",ve.checkboxLabel())("checked",ve.selection.hasValue()&&ve.isAllSelected())("indeterminate",ve.selection.hasValue()&&!ve.isAllSelected())}}function $(st,Z){if(1&st&&(T.TgZ(0,"th",22),T.YNc(1,W,1,3,"mat-checkbox",23),T.qZA()),2&st){const ve=T.oxw();T.xp6(1),T.Q6J("ngIf",ve.selection.isMultipleSelection())}}function de(st,Z){if(1&st){const ve=T.EpF();T.TgZ(0,"td",25)(1,"mat-checkbox",26),T.NdJ("change",function(ge){const Oe=T.CHM(ve).$implicit,Q=T.oxw();return T.KtG(ge?Q.selection.toggle(Oe):null)})("click",function(ge){return ge.stopPropagation()}),T.qZA()()}if(2&st){const ve=Z.$implicit,oe=T.oxw();T.xp6(1),T.Q6J("aria-label",oe.checkboxLabel(ve))("checked",oe.selection.isSelected(ve))}}function ye(st,Z){1&st&&T._UZ(0,"th",27)}function xe(st,Z){1&st&&(T.TgZ(0,"mat-icon",31),T.ALo(1,"translate"),T._uU(2," account_circle "),T.qZA()),2&st&&T.s9C("matTooltip",T.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Me(st,Z){if(1&st&&(T._UZ(0,"mat-icon",32),T.ALo(1,"translate")),2&st){const ve=T.oxw(2);T.s9C("matTooltip",T.lcZ(1,2,"MANAGERS_LIST.SERVICE")),T.Q6J("svgIcon",ve.svgIcon)}}function Ze(st,Z){if(1&st&&(T.TgZ(0,"td",28),T.YNc(1,xe,3,3,"mat-icon",29),T.YNc(2,Me,2,4,"mat-icon",30),T.qZA()),2&st){const ve=Z.$implicit;T.xp6(1),T.Q6J("ngIf",!ve.serviceUser),T.xp6(1),T.Q6J("ngIf",ve.serviceUser)}}function se(st,Z){1&st&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&st&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function ze(st,Z){if(1&st&&(T.TgZ(0,"td",28),T._uU(1),T.qZA()),2&st){const ve=Z.$implicit;T.xp6(1),T.hij(" ",ve.id," ")}}function he(st,Z){1&st&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&st&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function De(st,Z){if(1&st&&(T.TgZ(0,"td",34),T.ALo(1,"lowercase"),T._uU(2),T.ALo(3,"userFullName"),T.qZA()),2&st){const ve=Z.$implicit;T.Q2q("data-cy","",T.lcZ(1,2,ve.firstName),"-td"),T.xp6(2),T.hij(" ",T.lcZ(3,4,ve)," ")}}function j(st,Z){1&st&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&st&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function P(st,Z){if(1&st&&(T.TgZ(0,"td",34),T._uU(1),T.ALo(2,"userVo"),T.qZA()),2&st){const ve=Z.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,ve))}}function G(st,Z){1&st&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&st&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function ce(st,Z){if(1&st&&(T.TgZ(0,"td",34),T._uU(1),T.ALo(2,"userEmail"),T.qZA()),2&st){const ve=Z.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,ve))}}function q(st,Z){1&st&&(T.TgZ(0,"th",27),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&st&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function Te(st,Z){if(1&st&&(T.TgZ(0,"td",34),T._uU(1),T.ALo(2,"userLogins"),T.qZA()),2&st){const ve=Z.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,ve))}}function He(st,Z){1&st&&T._UZ(0,"tr",35)}const dt=function(st){return["/admin/users",st]};function et(st,Z){if(1&st&&T._UZ(0,"tr",36),2&st){const ve=Z.$implicit,oe=T.oxw();T.ekj("cursor-pointer",!oe.disableRouting),T.Q6J("perunWebAppsForceRouterLink",oe.disableRouting?null:T.VKq(4,dt,ve.id))("perunWebAppsMiddleClickRouterLink",oe.disableRouting?null:T.VKq(6,dt,ve.id))}}function _t(st,Z){1&st&&(T.TgZ(0,"perun-web-apps-alert",37),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&st&&(T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let Qe=(()=>{class st{constructor(ve,oe,ge,ae){this.authResolver=ve,this.tableCheckbox=oe,this.tableConfigService=ge,this.dynamicPaginatingService=ae,this.selection=new e.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.svgIcon="perun-service-identity-black",this.pageSizeOptions=d.f7}static getExportDataForColumn(ve,oe){switch(oe){case"id":return ve.id.toString();case"user":return ve.serviceUser?"service-user":"user";case"name":return ve?(0,d.bD)(ve):"";case"organization":return(0,d.OV)(ve);case"email":return(0,d.kN)(ve);case"logins":return(0,d.lt)(ve);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ve=>"id"!==ve)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(ve=>this.selection.select(ve))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(ve){return ve?`${this.selection.isSelected(ve)?"deselect":"select"} row ${ve.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}exportData(ve){(0,d.O6)((0,d.Xn)(this.dataSource.getData(),this.displayedColumns,st.getExportDataForColumn),ve)}}return st.\u0275fac=function(ve){return new(ve||st)(T.Y36(w.x4),T.Y36(w.UA),T.Y36(v.dB),T.Y36(w.ly))},st.\u0275cmp=T.Xpm({type:st,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(ve,oe){if(1&ve&&(T.Gf(d.l9,7),T.Gf(A.YE,5)),2&ve){let ge;T.iGM(ge=T.CRH())&&(oe.child=ge.first),T.iGM(ge=T.CRH())&&(oe.sort=ge.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed"},features:[T.TTD],decls:31,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(ve,oe){1&ve&&(T.TgZ(0,"div",0),T.ALo(1,"async"),T.TgZ(2,"perun-web-apps-table-wrapper",1),T.NdJ("exportData",function(ae){return oe.exportData(ae)}),T.YNc(3,H,2,0,"div",2),T.ALo(4,"async"),T.TgZ(5,"table",3),T.ynx(6,4),T.YNc(7,$,2,1,"th",5),T.YNc(8,de,2,2,"td",6),T.BQk(),T.ynx(9,7),T.YNc(10,ye,1,0,"th",8),T.YNc(11,Ze,3,2,"td",9),T.BQk(),T.ynx(12,10),T.YNc(13,se,3,3,"th",11),T.YNc(14,ze,2,1,"td",9),T.BQk(),T.ynx(15,12),T.YNc(16,he,3,3,"th",11),T.YNc(17,De,4,6,"td",13),T.BQk(),T.ynx(18,14),T.YNc(19,j,3,3,"th",8),T.YNc(20,P,3,3,"td",13),T.BQk(),T.ynx(21,15),T.YNc(22,G,3,3,"th",8),T.YNc(23,ce,3,3,"td",13),T.BQk(),T.ynx(24,16),T.YNc(25,q,3,3,"th",8),T.YNc(26,Te,3,3,"td",13),T.BQk(),T.YNc(27,He,1,0,"tr",17),T.YNc(28,et,1,8,"tr",18),T.qZA()()(),T.YNc(29,_t,3,4,"perun-web-apps-alert",19),T.ALo(30,"async")),2&ve&&(T.Q6J("hidden",0===oe.dataSource.allObjectCount&&!1===T.lcZ(1,9,oe.dataSource.loading$)),T.xp6(2),T.Q6J("tableId",oe.tableId)("dataLength",oe.dataSource.allObjectCount)("pageSizeOptions",oe.pageSizeOptions),T.xp6(1),T.Q6J("ngIf",T.lcZ(4,11,oe.dataSource.loading$)),T.xp6(2),T.Q6J("dataSource",oe.dataSource),T.xp6(22),T.Q6J("matHeaderRowDef",oe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",oe.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===oe.dataSource.allObjectCount&&!1===T.lcZ(30,13,oe.dataSource.loading$)))},dependencies:[R.O5,U.oG,_.BZ,_.fO,_.as,_.w1,_.Dz,_.nj,_.ge,_.ev,_.XQ,_.Gk,A.YE,A.nU,V.Ou,Y.w,X.Hw,ne.gM,le.l,te.Kd,te.YH,R.Ov,R.i8,fe.X$,ue.d,we.S,E.g,O.Z],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),st})()},62707:(Je,pe,h)=>{"use strict";h.d(pe,{M:()=>g});var e=h(94650),d=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.voSelected=new e.vpe,this.nameFunction=v=>v.name,this.shortNameFunction=v=>v.shortName,this.searchFunction=v=>v.name+v.shortName+String(v.id)}ngOnChanges(){this.vos.sort(d.aC),this.vo||(this.vo=this.vos[0])}}return C.\u0275fac=function(v){return new(v||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(v,R){1&v&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return R.voSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&v&&e.Q6J("entity",R.vo)("entities",R.vos)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[A.i,w.X$]}),C})()},87831:(Je,pe,h)=>{"use strict";h.d(pe,{Z:()=>ze});var e=h(96308),d=h(30671),A=h(9244),w=h(32080),g=h(94650),C=h(36895),T=h(56709),v=h(98380),R=h(97392),U=h(18750),_=h(50301),V=h(10441),Y=h(89383);function X(he,De){1&he&&g._UZ(0,"th",19)}function ne(he,De){if(1&he){const j=g.EpF();g.TgZ(0,"td",20)(1,"mat-checkbox",21),g.NdJ("change",function(G){const q=g.CHM(j).$implicit,Te=g.oxw();return g.KtG(G?Te.selection.toggle(q):null)})("click",function(G){return G.stopPropagation()}),g.qZA()()}if(2&he){const j=De.$implicit,P=g.oxw();g.xp6(1),g.Q6J("aria-label",P.checkboxLabel(j))("checked",P.selection.isSelected(j))}}function le(he,De){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function te(he,De){if(1&he&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&he){const j=De.$implicit;let P;g.xp6(1),g.Oqu(null!==(P=j.id)&&void 0!==P?P:j.vo.id)}}function fe(he,De){1&he&&g._UZ(0,"th",24)}function ue(he,De){if(1&he&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&he){const j=De.$implicit,P=g.oxw();let G;g.xp6(1),g.Q6J("recentIds",P.recentIds)("id",null!==(G=j.id)&&void 0!==G?G:j.vo.id)}}function we(he,De){1&he&&g._UZ(0,"th",24)}function E(he,De){1&he&&g._UZ(0,"mat-icon",28),2&he&&g.Q6J("svgIcon","perun-hierarchical-vo")}function O(he,De){if(1&he&&(g.TgZ(0,"td",25),g.YNc(1,E,1,1,"mat-icon",27),g.qZA()),2&he){const j=De.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==j||null==j.memberVos?null:j.memberVos.length))}}function H(he,De){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function W(he,De){if(1&he&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&he){const j=De.$implicit;let P,G;g.uIk("data-cy",null!==(P=j.shortName)&&void 0!==P?P:j.vo.shortName),g.xp6(1),g.hij(" ",null!==(G=j.shortName)&&void 0!==G?G:j.vo.shortName," ")}}function $(he,De){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function de(he,De){if(1&he&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&he){const j=De.$implicit;let P;g.xp6(1),g.Oqu(null!==(P=j.name)&&void 0!==P?P:j.vo.name)}}function ye(he,De){1&he&&g._UZ(0,"tr",29)}const xe=function(he){return["/organizations",he]};function Me(he,De){if(1&he&&g._UZ(0,"tr",30),2&he){const j=De.$implicit,P=g.oxw();let G,ce;g.ekj("disable-outline",P.disableRouting)("cursor-pointer",!P.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",P.disableRouting?null:g.VKq(6,xe,null!==(G=j.id)&&void 0!==G?G:j.vo.id))("perunWebAppsForceRouterLink",P.disableRouting?null:g.VKq(8,xe,null!==(ce=j.id)&&void 0!==ce?ce:j.vo.id))}}function Ze(he,De){1&he&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function se(he,De){1&he&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let ze=(()=>{class he{constructor(j){this.authResolver=j,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.getDataForColumnFun=(P,G)=>he.getDataForColumn(P,G,this.recentIds)}set matSort(j){this.sort=j}static getDataForColumn(j,P,G){switch(he.isEnrichedVo(j)&&(j=j.vo),P){case"id":return j.id.toString();case"shortName":return j.shortName;case"name":return j.name;case"recent":return G&&G.includes(j.id)?"#".repeat(G.indexOf(j.id)):j.name;default:return j[P]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(j=>"id"!==j)),this.setDataSource()}exportData(j){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),j)}setDataSource(){this.dataSource||(this.dataSource=new d.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(j,P)=>(0,A.Sd)(j,P,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(j,P)=>(0,A.pR)(j,P,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(j){return`${this.selection.isSelected(j)?"deselect":"select"} row ${j.id+1}`}}return he.isEnrichedVo=De=>void 0!==De.vo,he.\u0275fac=function(j){return new(j||he)(g.Y36(w.x4))},he.\u0275cmp=g.Xpm({type:he,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(j,P){if(1&j&&(g.Gf(A.l9,7),g.Gf(e.YE,7)),2&j){let G;g.iGM(G=g.CRH())&&(P.child=G.first),g.iGM(G=g.CRH())&&(P.matSort=G.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(j,P){1&j&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(ce){return P.exportData(ce)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,X,1,0,"th",4),g.YNc(5,ne,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,le,3,3,"th",7),g.YNc(8,te,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,fe,1,0,"th",10),g.YNc(11,ue,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,we,1,0,"th",10),g.YNc(14,O,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,H,3,3,"th",7),g.YNc(17,W,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,$,3,3,"th",7),g.YNc(20,de,2,1,"td",11),g.BQk(),g.YNc(21,ye,1,0,"tr",15),g.YNc(22,Me,1,10,"tr",16),g.qZA()()(),g.YNc(23,Ze,3,3,"perun-web-apps-alert",17),g.YNc(24,se,3,3,"perun-web-apps-alert",18)),2&j&&(g.Q6J("hidden",0===P.dataSource.filteredData.length||0===P.vos.length),g.xp6(1),g.Q6J("dataLength",P.dataSource.filteredData.length)("tableId",P.tableId)("pageSizeOptions",P.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",P.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",P.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",P.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===P.dataSource.filteredData.length&&0!==P.vos.length),g.xp6(1),g.Q6J("ngIf",0===P.vos.length))},dependencies:[C.O5,T.oG,d.BZ,d.fO,d.as,d.w1,d.Dz,d.nj,d.ge,d.ev,d.XQ,d.Gk,e.YE,e.nU,v.w,R.Hw,U.l,_.Kd,_.YH,V.W,Y.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),he})()},16074:(Je,pe,h)=>{"use strict";h.d(pe,{GI:()=>Nt,Wr:()=>xt,r2:()=>ln,gr:()=>Xe,u3:()=>vn,Qu:()=>rn,pf:()=>he,xF:()=>Zn,hd:()=>Vi,kZ:()=>jn,wA:()=>Ut,rd:()=>et,Eg:()=>dt,Bp:()=>ge,qD:()=>at,jd:()=>bt,FM:()=>L,jD:()=>O,Lc:()=>i,mk:()=>c,Ts:()=>jt});var e=h(36895),d=h(89383),A=h(30671),w=h(65412),g=h(4859),C=h(59549),T=h(24006),v=h(284),R=h(51572),U=h(71948),_=h(99602),V=h(64425),Y=h(97392),X=h(19516),ne=h(63189),le=h(94364),te=h(35423),fe=h(84385),ue=h(28499),we=h(57882),E=h(94650);let O=(()=>{class je{}return je.\u0275fac=function($e){return new($e||je)},je.\u0275mod=E.oAB({type:je}),je.\u0275inj=E.cJS({imports:[e.ez,d.aw,A.p0,w.Is,g.ot,C.lN,T.u5,v.c,R.Cq,U.Fk,_.FA,T.UX,V.Iq,Y.Ps,X.d4,ne.r,le.Bz,te.dp,fe.LD,ue.E3,we.C]}),je})();var H=h(32105),W=h(32080),$=h(3238),de=h(20551);function ye(je,Ht){1&je&&E._UZ(0,"mat-spinner",6)}function xe(je,Ht){if(1&je&&(E.TgZ(0,"mat-option",17),E._uU(1),E.ALo(2,"memberStatus"),E.qZA()),2&je){const $e=Ht.$implicit;E.Q6J("value",$e),E.xp6(1),E.Oqu(E.lcZ(2,2,$e))}}function Me(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"mat-form-field",14)(1,"mat-label"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-select",15),E.NdJ("selectionChange",function(Gt){E.CHM($e);const dn=E.oxw(3);return E.KtG(dn.changeStatus(Gt))}),E.YNc(5,xe,3,4,"mat-option",16),E.qZA()()}if(2&je){const $e=E.oxw(3);E.xp6(2),E.Oqu(E.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),E.xp6(3),E.Q6J("ngForOf",$e.allStatuses)}}function Ze(je,Ht){if(1&je&&(E.TgZ(0,"div",8),E._uU(1),E.ALo(2,"translate"),E.YNc(3,Me,6,4,"mat-form-field",13),E.qZA()),2&je){const $e=E.oxw(2);E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),E.xp6(2),E.Q6J("ngIf",!$e.loading)}}function se(je,Ht){if(1&je&&(E.TgZ(0,"div",8),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"memberStatus"),E.qZA()),2&je){const $e=E.oxw(2);E.xp6(1),E.AsE(" ",E.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",E.lcZ(3,4,$e.allStatuses[0])," ")}}function ze(je,Ht){if(1&je&&(E.TgZ(0,"div",7)(1,"div",8),E._uU(2),E.ALo(3,"translate"),E.ALo(4,"memberStatus"),E.qZA(),E.TgZ(5,"div",9),E._uU(6),E.qZA(),E.YNc(7,Ze,4,4,"div",10),E.YNc(8,se,4,6,"div",10),E.TgZ(9,"div",11),E._UZ(10,"i",12),E.qZA()()),2&je){const $e=E.oxw();E.xp6(2),E.AsE(" ",E.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",E.lcZ(4,8,$e.actualStatus)," "),E.xp6(4),E.Oqu($e.description),E.xp6(1),E.Q6J("ngIf",$e.allStatuses.length>1),E.xp6(1),E.Q6J("ngIf",1===$e.allStatuses.length),E.xp6(2),E.Q6J("innerHTML",$e.changeMessage,E.oJD)}}let he=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn){this.dialogRef=$e,this.data=vt,this.memberManager=Gt,this.groupsManager=dn,this.notificatorService=yn,this.translate=Wn,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter($e=>$e!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus($e){this.selectedStatus=$e.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe($e=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(vt=>{this.notificatorService.showSuccess(vt),this.dialogRef.close($e)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe($e=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(vt=>{this.notificatorService.showSuccess(vt),this.dialogRef.close($e)})},()=>this.loading=!1)}changeStatusMessage($e,vt){if("VALID"===$e)switch(vt){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(vt){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.uq),E.Y36(H.ff),E.Y36(W.V6),E.Y36(d.sK))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ye,1,0,"mat-spinner",1),E.YNc(5,ze,11,10,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return vt.cancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return vt.submit()}),E._uU(11),E.qZA()()()),2&$e&&(E.Tol(vt.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),E.xp6(2),E.Q6J("disabled",vt.loading||!vt.selectedStatus),E.xp6(1),E.hij(" ",vt.submitButtonText," "))},dependencies:[e.sg,e.O5,w.uh,w.xY,w.H8,g.lW,C.KE,C.hX,R.Ou,fe.gD,$.ey,d.X$,de.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),je})();function De(je,Ht){1&je&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function j(je,Ht){1&je&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function P(je,Ht){1&je&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function G(je,Ht){1&je&&(E.TgZ(0,"h1",7),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function ce(je,Ht){1&je&&E._UZ(0,"mat-spinner",8)}function q(je,Ht){if(1&je&&(E.TgZ(0,"mat-form-field"),E._UZ(1,"input",13),E.ALo(2,"translate"),E.qZA()),2&je){const $e=E.oxw(2);E.xp6(1),E.MGl("placeholder","",E.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),E.Q6J("value",$e.shortName)}}function Te(je,Ht){if(1&je&&(E.TgZ(0,"mat-form-field",14),E._UZ(1,"textarea",15),E.ALo(2,"translate"),E.qZA()),2&je){const $e=E.oxw(2);E.xp6(1),E.MGl("placeholder","",E.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),E.Q6J("formControl",$e.descriptionCtrl)}}function He(je,Ht){if(1&je&&(E.TgZ(0,"div",9),E.YNc(1,q,3,4,"mat-form-field",10),E.TgZ(2,"mat-form-field"),E._UZ(3,"input",11),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA()(),E.YNc(8,Te,3,4,"mat-form-field",12),E.qZA()),2&je){const $e=E.oxw();E.xp6(1),E.Q6J("ngIf",2===$e.dialogType),E.xp6(2),E.MGl("placeholder","",E.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),E.Q6J("formControl",$e.nameCtrl),E.xp6(3),E.hij(" ",$e.invalidNameMessage.length?$e.invalidNameMessage:E.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),E.xp6(2),E.Q6J("ngIf",2!==$e.dialogType)}}var dt=(()=>{return(je=dt||(dt={}))[je.FACILITY=0]="FACILITY",je[je.RESOURCE=1]="RESOURCE",je[je.VO=2]="VO",je[je.GROUP=3]="GROUP",dt;var je})();let et=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn,Kn,ui,Ji){this.dialogRef=$e,this.data=vt,this.notificator=Gt,this.translateService=dn,this.facilitiesManager=yn,this.resourcesManager=Wn,this.groupsManager=Kn,this.vosManager=ui,this.store=Ji,this.invalidNameMessage=this.data.dialogType===dt.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===dt.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case dt.FACILITY:this.nameCtrl=new T.p4(this.data.facility.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.facility.description);break;case dt.RESOURCE:this.nameCtrl=new T.p4(this.data.resource.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new T.p4(this.data.resource.description);break;case dt.GROUP:{const $e=this.data.group.name.split(":");this.nameCtrl=new T.p4($e[$e.length-1],[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.pattern(this.secondaryRegex),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.group.description);break}case dt.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new T.p4(this.data.vo.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case dt.FACILITY:this.editFacility();break;case dt.RESOURCE:this.editResource();break;case dt.GROUP:this.editGroup();break;case dt.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe($e=>{const vt=$e;vt.name=this.nameCtrl.value,vt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:vt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Gt=>{this.notificator.showSuccess(Gt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(W.V6),E.Y36(d.sK),E.Y36(H.IQ),E.Y36(H.xk),E.Y36(H.ff),E.Y36(H.YF),E.Y36(W.d6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div"),E.YNc(1,De,3,3,"h1",0),E.YNc(2,j,3,3,"h1",0),E.YNc(3,P,3,3,"h1",0),E.YNc(4,G,3,3,"h1",0),E.TgZ(5,"div",1),E.YNc(6,ce,1,0,"mat-spinner",2),E.YNc(7,He,9,9,"div",3),E.qZA(),E.TgZ(8,"div",4)(9,"button",5),E.NdJ("click",function(){return vt.cancel()}),E._uU(10),E.ALo(11,"translate"),E.qZA(),E.TgZ(12,"button",6),E.NdJ("click",function(){return vt.submit()}),E._uU(13),E.ALo(14,"translate"),E.qZA()()()),2&$e&&(E.Tol(vt.theme),E.xp6(1),E.Q6J("ngIf",0===vt.dialogType),E.xp6(1),E.Q6J("ngIf",1===vt.dialogType),E.xp6(1),E.Q6J("ngIf",2===vt.dialogType),E.xp6(1),E.Q6J("ngIf",3===vt.dialogType),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(3),E.hij(" ",E.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),E.xp6(2),E.Q6J("disabled",vt.loading||vt.nameCtrl.invalid||vt.descriptionCtrl.invalid),E.xp6(1),E.hij(" ",E.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,T.Fj,T.JJ,T.Q7,v.Nt,R.Ou,T.oH,d.X$]}),je})();var _t=h(64080),Qe=h(9244);function st(je,Ht){1&je&&E._UZ(0,"mat-spinner",8)}function Z(je,Ht){if(1&je&&(E.TgZ(0,"div",9)(1,"span"),E._uU(2),E.ALo(3,"translate"),E.TgZ(4,"b"),E._uU(5),E.qZA()(),E._UZ(6,"br"),E.TgZ(7,"span"),E._uU(8),E.ALo(9,"translate"),E.TgZ(10,"b"),E._uU(11),E.ALo(12,"translate"),E.qZA()(),E._UZ(13,"br"),E.TgZ(14,"span"),E._uU(15),E.ALo(16,"translate"),E.TgZ(17,"b"),E._uU(18),E.ALo(19,"translate"),E.qZA()(),E._UZ(20,"br"),E.TgZ(21,"span"),E._uU(22),E.ALo(23,"translate"),E.TgZ(24,"b"),E._uU(25),E.ALo(26,"translate"),E.qZA()()()),2&je){const $e=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),E.xp6(3),E.Oqu($e.group.name),E.xp6(3),E.hij(" ",E.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),E.xp6(3),E.Oqu(E.lcZ(12,12,$e.getSynchronizationType())),E.xp6(4),E.hij(" ",E.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),E.xp6(3),E.Oqu(E.lcZ(19,16,$e.getLastSyncState())),E.xp6(4),E.hij(" ",E.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),E.xp6(3),E.Oqu(E.lcZ(26,20,$e.getLastSyncTime()))}}function ve(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onForceStructure())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("disabled",$e.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function oe(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onForce())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("disabled",$e.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let ge=(()=>{class je{constructor($e,vt,Gt,dn){this.dialogRef=$e,this.data=vt,this.groupService=Gt,this.notificator=dn,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[_t.r.GROUP_SYNC_ENABLED,_t.r.GROUP_LAST_SYNC_STATE,_t.r.GROUP_LAST_SYNC_TIMESTAMP,_t.r.GROUP_STRUCTURE_SYNC_ENABLED,_t.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_t.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe($e=>{this.group=$e,this.syncEnabled=(0,Qe.IL)(this.group.attributes,_t.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,Qe.IL)(this.group.attributes,_t.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,Qe.IL)(this.group.attributes,_t.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,Qe.IL)(this.group.attributes,_t.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,Qe.IL)(this.group.attributes,_t.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,Qe.IL)(this.group.attributes,_t.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.ff),E.Y36(W.V6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,st,1,0,"mat-spinner",1),E.YNc(5,Z,27,22,"div",2),E.TgZ(6,"div",3)(7,"div",4)(8,"button",5),E.NdJ("click",function(){return vt.refresh()}),E.TgZ(9,"mat-icon"),E._uU(10,"refresh"),E.qZA()(),E.YNc(11,ve,3,4,"button",6),E.YNc(12,oe,3,4,"button",6),E.TgZ(13,"button",7),E.NdJ("click",function(){return vt.onCancel()}),E._uU(14),E.ALo(15,"translate"),E.qZA()()()()),2&$e&&(E.Tol(vt.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(6),E.Q6J("ngIf",vt.isStructured()),E.xp6(1),E.Q6J("ngIf",vt.isBasic()||vt.isStructured()),E.xp6(2),E.hij(" ",E.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,R.Ou,Y.Hw,d.X$]}),je})();function ae(je,Ht){1&je&&E._UZ(0,"mat-spinner",7)}function Oe(je,Ht){1&je&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Q(je,Ht){1&je&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function me(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"input",9,10),E.NdJ("ngModelChange",function(Gt){E.CHM($e);const dn=E.oxw();return E.KtG(dn.subject=Gt)}),E.qZA(),E.YNc(7,Oe,3,3,"mat-error",11),E.qZA(),E.TgZ(8,"mat-form-field")(9,"mat-label"),E._uU(10),E.ALo(11,"translate"),E.qZA(),E.TgZ(12,"textarea",12,13),E.NdJ("ngModelChange",function(Gt){E.CHM($e);const dn=E.oxw();return E.KtG(dn.message=Gt)}),E.ALo(14,"translate"),E._uU(15," "),E.qZA(),E.YNc(16,Q,3,3,"mat-error",11),E.qZA()()}if(2&je){const $e=E.MAs(6),vt=E.MAs(13),Gt=E.oxw();E.xp6(3),E.Oqu(E.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),E.xp6(2),E.Q6J("ngModel",Gt.subject),E.xp6(2),E.Q6J("ngIf",$e.invalid),E.xp6(3),E.Oqu(E.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),E.xp6(2),E.s9C("placeholder",E.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),E.Q6J("ngModel",Gt.message),E.xp6(4),E.Q6J("ngIf",vt.invalid)}}let N=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn){this.dialogRef=$e,this.translate=vt,this.notificator=Gt,this.rtMessages=dn,this.data=yn,this.storeService=Wn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe($e=>{this.dialogRef.afterClosed().subscribe(()=>{const vt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),$e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(vt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const $e=this.storeService.get("config");let vt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(vt=vt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),vt=vt.concat(this.data.error.message,"\n","Perun instance: ",$e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Gt=/"password":".+?"/;let dn=JSON.stringify(this.data.error.payload);dn=dn.replace(Gt,'"password":"####"'),vt=vt.concat("Payload:\n"+dn+"\n\n")}return vt=vt.concat("Sent from new Perun Gui, version: ",h(4147).i8),vt.split("\n").join("\n ")}parseMethod($e){return $e&&this.methodRegexp.exec($e)[1]}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(d.sK),E.Y36(W.V6),E.Y36(H.Hr),E.Y36(w.WI),E.Y36(W.d6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,ae,1,0,"mat-spinner",1),E.YNc(4,me,17,13,"div",2),E.TgZ(5,"div",3)(6,"div",4)(7,"button",5),E.NdJ("click",function(){return vt.dialogRef.close()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",6),E.NdJ("click",function(){return vt.sendBugReport()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&$e&&(E.xp6(1),E.Oqu(E.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(4),E.hij(" ",E.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),E.xp6(2),E.Q6J("disabled",""===vt.message||""===vt.subject||vt.loading),E.xp6(1),E.hij(" ",E.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,C.hX,T.Fj,T.JJ,T.Q7,T.On,v.Nt,R.Ou,d.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),je})(),L=(()=>{class je{constructor($e,vt,Gt){this.dialogRef=$e,this.dialog=vt,this.data=Gt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const $e=(0,Qe.kZ)();$e.width="550px",$e.data={error:this.data.error},$e.autoFocus=!1,this.dialog.open(N,$e)}),this.dialogRef.close()}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.uw),E.Y36(w.WI))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.qZA(),E.TgZ(2,"div",1),E._uU(3),E.qZA(),E.TgZ(4,"div",2)(5,"div",3)(6,"button",4),E.NdJ("click",function(){return vt.onBugReportClick()}),E._uU(7),E.ALo(8,"translate"),E.qZA(),E.TgZ(9,"button",5),E.NdJ("click",function(){return vt.onCloseClick()}),E._uU(10),E.ALo(11,"translate"),E.qZA()()()),2&$e&&(E.xp6(1),E.Oqu(vt.data.title),E.xp6(2),E.hij(" ",vt.data.description,"\n"),E.xp6(3),E.Q6J("hidden","error"!==vt.data.type),E.xp6(1),E.hij(" ",E.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),E.xp6(3),E.hij(" ",E.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,d.X$]}),je})();var r=h(34447);function s(je,Ht){1&je&&E._UZ(0,"mat-spinner",3)}function m(je,Ht){1&je&&E._UZ(0,"th",15)}function l(je,Ht){if(1&je&&(E.TgZ(0,"td",16),E._uU(1),E.qZA()),2&je){const $e=Ht.$implicit;E.xp6(1),E.hij(" ",$e.userExtSource.extSource.name," ")}}function o(je,Ht){1&je&&E._UZ(0,"tr",17)}function n(je,Ht){1&je&&E._UZ(0,"tr",18)}function t(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"div")(1,"div",4)(2,"p"),E._uU(3),E.ALo(4,"translate"),E.ALo(5,"customTranslate"),E.qZA(),E.TgZ(6,"div",5),E._uU(7),E.ALo(8,"translate"),E.ALo(9,"customTranslate"),E.qZA(),E.TgZ(10,"table",6),E.ynx(11,7),E.YNc(12,m,1,0,"th",8),E.YNc(13,l,2,1,"td",9),E.BQk(),E.YNc(14,o,1,0,"tr",10),E.YNc(15,n,1,0,"tr",11),E.qZA()(),E.TgZ(16,"div",12)(17,"button",13),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onCancel())}),E._uU(18),E.ALo(19,"translate"),E.ALo(20,"customTranslate"),E.qZA(),E.TgZ(21,"button",14),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onSubmit())}),E._uU(22),E.ALo(23,"translate"),E.ALo(24,"customTranslate"),E.qZA()()()}if(2&je){const $e=E.oxw();E.xp6(3),E.hij(" ",E.lcZ(4,7,E.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),E.xp6(4),E.hij(" ",E.lcZ(8,11,E.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),E.xp6(3),E.Q6J("dataSource",$e.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",$e.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",$e.displayedColumns),E.xp6(3),E.hij(" ",E.lcZ(19,15,E.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),E.xp6(4),E.hij(" ",E.lcZ(23,19,E.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let i=(()=>{class je{constructor($e,vt,Gt,dn,yn){this.dialogRef=$e,this.data=vt,this.usersManagerService=Gt,this.translate=dn,this.notificator=yn,this.force=!1,this.displayedColumns=["name"],dn.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Wn=>this.successMessage=Wn)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.Fv),E.Y36(d.sK),E.Y36(W.V6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.TgZ(4,"div"),E.YNc(5,s,1,0,"mat-spinner",1),E.YNc(6,t,25,23,"div",2),E.qZA()),2&$e&&(E.xp6(1),E.hij(" ",E.lcZ(2,6,E.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),E.xp6(3),E.Tol(vt.theme),E.xp6(1),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,R.Ou,d.X$,r.a]}),je})();var a=h(39349);let c=(()=>{class je{constructor($e,vt){this.dialogRef=$e,this.data=vt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.qZA(),E.TgZ(2,"div",1)(3,"textarea",2),E._uU(4),E.qZA()(),E.TgZ(5,"div",3)(6,"button",4),E.NdJ("click",function(){return vt.onCancel()}),E._uU(7),E.ALo(8,"translate"),E.qZA(),E.TgZ(9,"button",5),E._uU(10),E.ALo(11,"translate"),E.qZA()()),2&$e&&(E.xp6(1),E.Oqu(vt.title),E.xp6(3),E.Oqu(vt.value),E.xp6(3),E.hij(" ",E.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),E.xp6(2),E.Q6J("cdkCopyToClipboard",vt.value),E.xp6(1),E.hij(" ",E.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,a.IC,v.Nt,V.i3,d.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),je})();function p(je,Ht){1&je&&E._UZ(0,"th",12)}function M(je,Ht){if(1&je&&(E.TgZ(0,"td",13),E._uU(1),E.qZA()),2&je){const $e=Ht.$implicit;E.xp6(1),E.Oqu($e.displayName)}}function Ne(je,Ht){1&je&&E._UZ(0,"tr",14)}function Pt(je,Ht){1&je&&E._UZ(0,"tr",15)}let Ut=(()=>{class je{constructor($e,vt,Gt,dn,yn){this.dialogRef=$e,this.data=vt,this.notificator=Gt,this.translate=dn,this.attributesManager=yn,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe($e=>{this.notificator.showSuccess($e),this.dialogRef.close(!0)})}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(W.V6),E.Y36(d.sK),E.Y36(H.H8))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"div"),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"div",2),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"table",3),E.ynx(11,4),E.YNc(12,p,1,0,"th",5),E.YNc(13,M,2,1,"td",6),E.BQk(),E.YNc(14,Ne,1,0,"tr",7),E.YNc(15,Pt,1,0,"tr",8),E.qZA()(),E.TgZ(16,"div",9)(17,"button",10),E.NdJ("click",function(){return vt.onCancel()}),E._uU(18),E.ALo(19,"translate"),E.qZA(),E.TgZ(20,"button",11),E.NdJ("click",function(){return vt.onSubmit()}),E._uU(21),E.ALo(22,"translate"),E.qZA()()),2&$e&&(E.xp6(1),E.Oqu(E.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),E.xp6(4),E.hij(" ",E.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),E.xp6(3),E.hij(" ",E.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),E.xp6(2),E.Q6J("dataSource",vt.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",vt.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",vt.displayedColumns),E.xp6(3),E.hij(" ",E.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),E.xp6(3),E.hij(" ",E.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,d.X$]}),je})(),ln=(()=>{class je{constructor($e,vt){this.dialogRef=$e,this.data=vt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h5",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),E.NdJ("ngModelChange",function(dn){return vt.attributeValue=dn}),E.qZA()()(),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return vt.cancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return vt.submit()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()),2&$e&&(E.xp6(1),E.hij(" ",E.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),E.xp6(4),E.Q6J("ngModel",vt.attributeValue),E.xp6(3),E.hij(" ",E.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),E.xp6(3),E.hij(" ",E.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,C.KE,T.Fj,T.JJ,T.On,a.IC,v.Nt,d.X$]}),je})(),xt=(()=>{class je{constructor($e,vt){this.dialogRef=$e,this.data=vt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h5",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"div"),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"div",2),E._uU(8),E.qZA()(),E.TgZ(9,"div",3)(10,"button",4),E.NdJ("click",function(){return vt.cancel()}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"button",5),E.NdJ("click",function(){return vt.submit()}),E._uU(14),E.ALo(15,"translate"),E.qZA()()),2&$e&&(E.xp6(1),E.hij(" ",E.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),E.xp6(4),E.hij(" ",E.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),E.xp6(3),E.hij(" ",vt.data.name," "),E.xp6(3),E.hij(" ",E.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),E.xp6(3),E.hij(" ",E.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,d.X$]}),je})();var gt=h(98380);function Ge(je,Ht){if(1&je&&(E.TgZ(0,"perun-web-apps-alert",9),E._uU(1),E.qZA()),2&je){const $e=E.oxw();E.xp6(1),E.Oqu($e.pendingEmailsMessage)}}function Ie(je,Ht){1&je&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,E.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Xe=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn){this.dialogRef=$e,this.data=vt,this.translate=Gt,this.notificator=dn,this.usersManagerService=yn,this.authService=Wn,this.pendingMails=[],Gt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(Kn=>this.successMessage=Kn),Gt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(Kn=>this.pendingEmailsMessageStart=Kn),Gt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(Kn=>this.pendingEmailsMessageEnd=Kn)}ngOnInit(){this.emailControl=new T.p4(null,[T.kI.required,T.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe($e=>{this.pendingMails=$e.filter((Gt,dn,yn)=>dn===yn.indexOf(Gt));let vt="";this.pendingMails.forEach(Gt=>vt+=`${Gt===this.pendingMails[0]?"":", "}${Gt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+vt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const vt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",vt[0]+"//"+vt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(d.sK),E.Y36(W.V6),E.Y36(H.Fv),E.Y36(W.e8))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.ALo(3,"customTranslate"),E.qZA(),E.TgZ(4,"div",1),E.YNc(5,Ge,2,1,"perun-web-apps-alert",2),E.TgZ(6,"mat-form-field",3)(7,"label",3),E._UZ(8,"input",4),E.ALo(9,"translate"),E.ALo(10,"customTranslate"),E.qZA(),E.YNc(11,Ie,4,5,"mat-error",5),E.qZA()(),E.TgZ(12,"div",6)(13,"button",7),E.NdJ("click",function(){return vt.onCancel()}),E._uU(14),E.ALo(15,"translate"),E.ALo(16,"customTranslate"),E.qZA(),E.TgZ(17,"button",8),E.NdJ("click",function(){return vt.onSubmit()}),E._uU(18),E.ALo(19,"translate"),E.ALo(20,"customTranslate"),E.qZA()()),2&$e&&(E.xp6(1),E.Oqu(E.lcZ(2,8,E.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),E.xp6(4),E.Q6J("ngIf",vt.pendingMails.length),E.xp6(3),E.s9C("placeholder",E.lcZ(9,12,E.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),E.Q6J("formControl",vt.emailControl),E.xp6(3),E.Q6J("ngIf",vt.emailControl.invalid),E.xp6(3),E.hij(" ",E.lcZ(15,16,E.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),E.xp6(3),E.Q6J("disabled",!vt.emailControl.valid),E.xp6(1),E.hij(" ",E.lcZ(19,20,E.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,T.Fj,T.JJ,T.Q7,v.Nt,T.oH,gt.w,d.X$,r.a]}),je})();function Ke(je,Ht){1&je&&E._UZ(0,"mat-spinner",7)}function ke(je,Ht){1&je&&(E.TgZ(0,"div",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function Ae(je,Ht){1&je&&E._UZ(0,"th",18)}function Ee(je,Ht){if(1&je&&(E.TgZ(0,"td",19),E._uU(1),E.qZA()),2&je){const $e=Ht.$implicit;E.xp6(1),E.Oqu($e)}}function We(je,Ht){1&je&&E._UZ(0,"tr",20)}function tt(je,Ht){1&je&&E._UZ(0,"tr",21)}function ot(je,Ht){if(1&je&&(E.TgZ(0,"perun-web-apps-alert",22),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je){const $e=E.oxw(2);E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,$e.data.alert)," ")}}function Re(je,Ht){if(1&je&&(E.TgZ(0,"div",8)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ke,3,3,"div",9),E.TgZ(5,"table",10),E.ynx(6,11),E.YNc(7,Ae,1,0,"th",12),E.YNc(8,Ee,2,1,"td",13),E.BQk(),E.YNc(9,We,1,0,"tr",14),E.YNc(10,tt,1,0,"tr",15),E.qZA(),E.YNc(11,ot,3,4,"perun-web-apps-alert",16),E.qZA()),2&je){const $e=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,6,$e.data.description)," "),E.xp6(2),E.Q6J("ngIf",$e.data.showAsk),E.xp6(1),E.Q6J("dataSource",$e.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",$e.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",$e.displayedColumns),E.xp6(1),E.Q6J("ngIf",$e.data.alert)}}function lt(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onSubmit())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("disabled",$e.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function It(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onSubmit())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("disabled",$e.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let jt=(()=>{class je{constructor($e,vt){this.dialogRef=$e,this.data=vt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Ke,1,0,"mat-spinner",1),E.YNc(5,Re,12,8,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return vt.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.YNc(10,lt,3,4,"button",5),E.YNc(11,It,3,4,"button",6),E.qZA()()),2&$e&&(E.Tol(vt.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,vt.data.title)),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),E.xp6(2),E.Q6J("ngIf","remove"===vt.data.type),E.xp6(1),E.Q6J("ngIf","confirmation"===vt.data.type))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,R.Ou,gt.w,d.X$]}),je})();var sn=h(57851);let Kt=(()=>{class je{transform($e){const vt=$e.split(":");return vt[vt.length-1]}}return je.\u0275fac=function($e){return new($e||je)},je.\u0275pipe=E.Yjl({name:"parseGroupName",type:je,pure:!0}),je})();function on(je,Ht){1&je&&E._UZ(0,"mat-spinner",7)}function fn(je,Ht){1&je&&(E.TgZ(0,"perun-web-apps-alert"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function kt(je,Ht){1&je&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Rt(je,Ht){1&je&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Ct=function(je){return{"min-width":je}};function Ft(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),E.NdJ("click",function(){const dn=E.CHM($e).$implicit,yn=E.oxw(3);return E.KtG(yn.navigate(dn.id,dn.include))}),E._UZ(3,"button",19),E.TgZ(4,"div",20)(5,"span"),E._uU(6),E.ALo(7,"parseGroupName"),E.qZA(),E.YNc(8,kt,3,3,"span",21),E.YNc(9,Rt,3,3,"span",21),E.qZA(),E.TgZ(10,"span",22),E._uU(11),E.qZA()()()()}if(2&je){const $e=Ht.$implicit,vt=E.oxw(3);E.xp6(2),E.ekj("cursor-pointer",$e.direct||$e.include)("act-disabled",!$e.direct&&!$e.include),E.xp6(2),E.Q6J("ngStyle",E.VKq(11,Ct,vt.getMinWidth($e.level))),E.xp6(2),E.Oqu(E.lcZ(7,9,$e.name)),E.xp6(2),E.Q6J("ngIf",$e.direct),E.xp6(1),E.Q6J("ngIf",$e.include),E.xp6(2),E.Oqu($e.description)}}function qt(je,Ht){1&je&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function _n(je,Ht){1&je&&(E.TgZ(0,"span",23),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Mt(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),E._uU(5),E.qZA()(),E.TgZ(6,"div",18),E.NdJ("click",function(){const dn=E.CHM($e).$implicit,yn=E.oxw(3);return E.KtG(yn.navigate(dn.id,dn.include))}),E.TgZ(7,"div",20)(8,"span"),E._uU(9),E.ALo(10,"parseGroupName"),E.qZA(),E.YNc(11,qt,3,3,"span",21),E.YNc(12,_n,3,3,"span",21),E.qZA(),E.TgZ(13,"span",22),E._uU(14),E.qZA()()(),E.TgZ(15,"ul"),E.GkF(16,26),E.qZA()()()}if(2&je){const $e=Ht.$implicit,vt=E.oxw(3);E.xp6(3),E.uIk("aria-label","Toggle "+$e.name),E.xp6(2),E.hij(" ",vt.treeControl.isExpanded($e)?"expand_more":"chevron_right"," "),E.xp6(1),E.ekj("cursor-pointer",$e.direct||$e.include)("act-disabled",!$e.direct&&!$e.include),E.xp6(1),E.Q6J("ngStyle",E.VKq(15,Ct,vt.getMinWidth($e.level))),E.xp6(2),E.Oqu(E.lcZ(10,13,$e.name)),E.xp6(2),E.Q6J("ngIf",$e.direct),E.xp6(1),E.Q6J("ngIf",$e.include),E.xp6(2),E.Oqu($e.description),E.xp6(1),E.ekj("example-tree-invisible",!vt.treeControl.isExpanded($e))}}function Jt(je,Ht){if(1&je&&(E.TgZ(0,"mat-tree",13),E.YNc(1,Ft,12,13,"mat-tree-node",14),E.YNc(2,Mt,17,17,"mat-nested-tree-node",15),E.qZA()),2&je){const $e=E.oxw(2);E.Q6J("dataSource",$e.dataSource)("treeControl",$e.treeControl),E.xp6(2),E.Q6J("matTreeNodeDefWhen",$e.hasChild)}}function wt(je,Ht){if(1&je&&(E.TgZ(0,"div",8)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-form-field",9),E._UZ(5,"input",10),E.ALo(6,"translate"),E.qZA(),E.YNc(7,fn,3,3,"perun-web-apps-alert",11),E.YNc(8,Jt,3,3,"mat-tree",12),E.qZA()),2&je){const $e=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),E.xp6(3),E.s9C("placeholder",E.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),E.Q6J("formControl",$e.formControl),E.xp6(2),E.Q6J("ngIf",!$e.dataSource.data.length),E.xp6(1),E.Q6J("ngIf",$e.dataSource.data.length)}}const rt=function(je){return{name:je}};let bt=(()=>{class je{constructor($e,vt,Gt){this.dialogRef=$e,this.data=vt,this.groupsManagerService=Gt,this.treeControl=new sn.VY(dn=>dn.children),this.dataSource=new te.WX,this.formControl=new T.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(dn,yn)=>!!yn.children&&yn.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe($e=>{this.paths=$e,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe($e=>{const vt=$e.trim().toLowerCase(),Gt=this.paths.filter(dn=>dn.filter(yn=>yn.name.includes(vt)).length);this.createGroupTree(Gt),this.dataSource.data=this.groupTree}),this.userName=(0,Qe.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate($e,vt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${$e}${vt?"/settings/relations":""}`,"_blank")}getMinWidth($e){return String(400-40*$e)+"px"}recursiveSearch($e,vt,Gt){for(const yn of $e)if(yn.name===vt[Gt].name)return vt.length===Gt+1?(yn.direct=!0,$e):(yn.children=vt[++Gt].name.includes(vt[Gt-1].name)?this.recursiveSearch(yn.children,vt,Gt):[{name:vt[Gt].name,id:vt[Gt-1].id,description:vt[Gt].description,direct:!1,include:!0,level:Gt,children:[]}].concat(yn.children),$e);return $e.push({name:vt[Gt].name,id:vt[Gt].id,description:vt[Gt].description,direct:!1,include:!1,level:Gt,children:[]}),this.recursiveSearch($e,vt,Gt)}createGroupTree($e){this.groupTree=[],$e.forEach(vt=>{this.groupTree=this.recursiveSearch(this.groupTree,vt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.ff))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function($e,vt){1&$e&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,on,1,0,"mat-spinner",2),E.YNc(5,wt,9,9,"div",3),E.TgZ(6,"div",4)(7,"div",5)(8,"button",6),E.NdJ("click",function(){return vt.onCancel()}),E._uU(9),E.ALo(10,"translate"),E.qZA()()()()),2&$e&&(E.xp6(2),E.hij(" ",E.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",E.VKq(9,rt,vt.userName))," "),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(4),E.hij(" ",E.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,w.uh,w.xY,w.H8,g.lW,C.KE,T.Fj,T.JJ,v.Nt,R.Ou,T.oH,Y.Hw,gt.w,te.GZ,te.fQ,te.eu,te.gi,te.uo,te.Ar,d.X$,Kt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),je})(),at=(()=>{class je{constructor($e,vt){this.dialogRef=$e,this.router=vt}onClose(){this.router.navigate([]),this.dialogRef.close()}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(le.F0))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),E._uU(5),E.ALo(6,"translate"),E.qZA()(),E.TgZ(7,"div",3)(8,"button",4),E.NdJ("click",function(){return vt.onClose()}),E._uU(9),E.ALo(10,"translate"),E.qZA()()),2&$e&&(E.xp6(1),E.hij(" ",E.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),E.xp6(4),E.Oqu(E.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),E.xp6(4),E.hij(" ",E.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,gt.w,d.X$]}),je})();var qe=h(62383);function At(je,Ht){1&je&&(E.TgZ(0,"mat-radio-button",16),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function z(je,Ht){1&je&&(E.TgZ(0,"mat-radio-button",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Fe(je,Ht){1&je&&(E.TgZ(0,"perun-web-apps-alert",18),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let mt=(()=>{class je{constructor($e){this.dialogRef=$e,this.canExtendMembership=!1,this.expirationChanged=new E.vpe,this.statusChange=new E.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const $e=new Date;this.currentDate=(0,e.p6)(new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate($e){return(0,e.p6)($e,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function($e,vt){if(1&$e){const Gt=E.EpF();E.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),E._uU(4),E.ALo(5,"translate"),E.qZA(),E._uU(6),E.ALo(7,"parseDate"),E.qZA(),E.TgZ(8,"p")(9,"strong"),E._uU(10),E.ALo(11,"translate"),E.qZA(),E._uU(12),E.ALo(13,"parseDate"),E.qZA(),E.TgZ(14,"mat-radio-group",2),E.NdJ("ngModelChange",function(yn){return vt.newExpiration=yn}),E.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),E.NdJ("click",function(){E.CHM(Gt);const yn=E.MAs(23);return E.KtG(yn.open())}),E.TgZ(17,"mat-label"),E._uU(18),E.ALo(19,"translate"),E.qZA(),E.TgZ(20,"input",5),E.NdJ("dateChange",function(){return vt.setExpiration()}),E.qZA(),E._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),E.qZA()(),E.YNc(24,At,3,3,"mat-radio-button",9),E.YNc(25,z,3,3,"mat-radio-button",10),E.TgZ(26,"mat-radio-button",11),E._uU(27),E.ALo(28,"translate"),E.qZA()(),E.YNc(29,Fe,3,3,"perun-web-apps-alert",12),E.qZA(),E.TgZ(30,"div",13)(31,"button",14),E.NdJ("click",function(){return vt.onCancel()}),E._uU(32),E.ALo(33,"translate"),E.qZA(),E.TgZ(34,"button",15),E.NdJ("click",function(){return vt.onChange()}),E._uU(35),E.ALo(36,"translate"),E.qZA()()()}if(2&$e){const Gt=E.MAs(23);E.xp6(4),E.Oqu(E.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),E.xp6(2),E.hij(" ",E.lcZ(7,23,vt.currentExpiration)," "),E.xp6(4),E.Oqu(E.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),E.xp6(2),E.hij(" ",vt.newExpiration?E.lcZ(13,27,vt.newExpiration):"never"," "),E.xp6(2),E.Q6J("ngModel",vt.newExpiration),E.xp6(1),E.s9C("value",vt.expirationControl.value),E.xp6(3),E.Oqu(E.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),E.xp6(2),E.Q6J("min",vt.minDate)("max",vt.maxDate)("formControl",vt.expirationControl)("matDatepicker",Gt),E.xp6(1),E.Q6J("for",Gt)("disabled",!1),E.xp6(1),E.Q6J("disabled",!1),E.xp6(2),E.Q6J("ngIf",vt.canExtendMembership&&"vo"===vt.mode),E.xp6(1),E.Q6J("ngIf",vt.canExtendMembership&&"group"===vt.mode),E.xp6(2),E.hij(" ",E.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),E.xp6(2),E.Q6J("ngIf","EXPIRED"===vt.status&&("never"===vt.newExpiration||vt.parseDate(vt.expirationControl.value)>vt.currentDate)),E.xp6(3),E.hij(" ",E.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),E.xp6(2),E.Q6J("disabled",vt.expirationControl.invalid),E.xp6(1),E.hij(" ",E.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,w.xY,w.H8,g.lW,C.KE,C.hX,C.R9,T.Fj,T.JJ,T.On,v.Nt,U.VQ,U.U0,_.Mq,_.hl,_.nW,T.oH,gt.w,d.X$,qe.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),je})();function St(je,Ht){1&je&&E._UZ(0,"mat-spinner",4)}function en(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"perun-web-apps-change-expiration-dialog",5),E.NdJ("statusChange",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.changeStatus=!0)})("expirationChanged",function(Gt){E.CHM($e);const dn=E.oxw();return E.KtG(dn.onExpirationChanged(Gt))}),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("minDate",$e.minDate)("maxDate",$e.maxDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("canExtendMembership",$e.canExtendMembership)("mode","group")("status",$e.status)}}let vn=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn,Kn){this.dialogRef=$e,this.data=vt,this.attributesManagerService=Gt,this.memberManager=dn,this.groupManager=yn,this.translate=Wn,this.notificator=Kn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Wn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(ui=>this.successMessage=ui)}ngOnInit(){this.status=this.data.status,this.loading=!0;const $e=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date($e.getFullYear(),$e.getMonth(),$e.getDate()):this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)($e,"yyyy-MM-dd","en"),this.maxDate=$e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,_t.r.GROUP_DEF_EXPIRATION_RULES).subscribe(vt=>{null!==vt.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(Gt=>{this.canExtendMembership=!!Gt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged($e){this.loading=!0,"groupRules"===$e?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===$e?null:$e,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(vt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Gt=>{this.notificator.showSuccess(Gt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:vt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.H8),E.Y36(H.uq),E.Y36(H.ff),E.Y36(d.sK),E.Y36(W.V6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,St,1,0,"mat-spinner",2),E.YNc(5,en,1,7,"perun-web-apps-change-expiration-dialog",3),E.qZA()),2&$e&&(E.xp6(2),E.Oqu(E.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading))},dependencies:[e.O5,w.uh,R.Ou,mt,d.X$]}),je})();var Un=h(13469);function Hn(je,Ht){1&je&&(E.TgZ(0,"mat-error"),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function qn(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),E._uU(4),E.ALo(5,"translate"),E.qZA(),E._UZ(6,"input",7),E.TgZ(7,"mat-icon",8),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.showOldPassword=!Gt.showOldPassword)}),E._uU(8),E.qZA(),E.YNc(9,Hn,3,3,"mat-error",9),E.qZA(),E._UZ(10,"perun-web-apps-password-form",10),E.qZA()()}if(2&je){const $e=E.oxw();E.Q6J("formGroup",$e.formGroup),E.xp6(4),E.Oqu(E.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),E.xp6(2),E.Q6J("type",$e.showOldPassword?"text":"password"),E.xp6(2),E.hij(" ",$e.showOldPassword?"visibility_off":"visibility"," "),E.xp6(1),E.Q6J("ngIf",$e.oldPwd.hasError("required")),E.xp6(1),E.Q6J("formGroup",$e.formGroup)("namespace",$e.data.namespace)}}function si(je,Ht){1&je&&E._UZ(0,"mat-spinner",11)}function li(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"div",12)(1,"div",13)(2,"button",14),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.close())}),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"button",15),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.changePassword())}),E._uU(6),E.ALo(7,"translate"),E.qZA()()()}if(2&je){const $e=E.oxw();E.xp6(3),E.hij(" ",E.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),E.xp6(2),E.Q6J("disabled",$e.formGroup.invalid||$e.formGroup.pending),E.xp6(1),E.hij(" ",E.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Zn=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn,Kn){this.dialogRef=$e,this.data=vt,this._formBuilder=Gt,this.usersManagerService=dn,this.apiRequestConfiguration=yn,this.notificator=Wn,this.translate=Kn,this.showOldPassword=!1,Kn.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(ui=>this.successMessage=ui)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",T.kI.required],passwordCtrl:["",T.kI.required,[(0,ue.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Qe.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(T.QS),E.Y36(H.Fv),E.Y36(W.F5),E.Y36(W.V6),E.Y36(d.sK))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div",1),E.YNc(4,qn,11,9,"form",2),E.YNc(5,si,1,0,"mat-spinner",3),E.qZA(),E.YNc(6,li,8,7,"div",4)),2&$e&&(E.xp6(1),E.Oqu(E.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),E.xp6(3),E.Q6J("ngIf",!vt.loading),E.xp6(1),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,C.hX,C.R9,T._Y,T.Fj,T.JJ,T.JL,T.Q7,v.Nt,R.Ou,T.sg,T.u,Y.Hw,Un.G,d.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),je})();function On(je,Ht){1&je&&E._UZ(0,"mat-spinner",4)}function Yi(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"perun-web-apps-change-expiration-dialog",5),E.NdJ("statusChange",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.changeStatus=!0)})("expirationChanged",function(Gt){E.CHM($e);const dn=E.oxw();return E.KtG(dn.onExpirationChanged(Gt))}),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("minDate",$e.minDate)("maxDate",$e.maxDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("canExtendMembership",$e.canExtendMembership)("mode","vo")("status",$e.status)}}let jn=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn){this.dialogRef=$e,this.data=vt,this.attributesManagerService=Gt,this.memberManager=dn,this.translate=yn,this.notificator=Wn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,yn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Kn=>this.successMessage=Kn)}ngOnInit(){this.status=this.data.status,this.loading=!0;const $e=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date($e.getFullYear(),$e.getMonth(),$e.getDate()):this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)($e,"yyyy-MM-dd","en"),this.maxDate=$e):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,_t.r.VO_DEF_EXPIRATION_RULES).subscribe(vt=>{null!==vt.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(Gt=>{this.canExtendMembership=!!Gt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged($e){this.loading=!0,"voRules"===$e?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===$e?null:$e,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(vt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Gt=>{this.notificator.showSuccess(Gt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:vt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.H8),E.Y36(H.uq),E.Y36(d.sK),E.Y36(W.V6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,On,1,0,"mat-spinner",2),E.YNc(5,Yi,1,7,"perun-web-apps-change-expiration-dialog",3),E.qZA()),2&$e&&(E.xp6(2),E.Oqu(E.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading))},dependencies:[e.O5,w.uh,R.Ou,mt,d.X$]}),je})();function zn(je,Ht){1&je&&E._UZ(0,"mat-spinner",4)}function ki(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"perun-web-apps-change-expiration-dialog",5),E.NdJ("expirationChanged",function(Gt){E.CHM($e);const dn=E.oxw();return E.KtG(dn.onExpirationChanged(Gt))}),E.qZA()}if(2&je){const $e=E.oxw();E.Q6J("minDate",$e.minDate)("currentExpiration",$e.currentExpiration)("newExpiration",$e.newExpiration)("mode","sponsor")}}let Vi=(()=>{class je{constructor($e,vt,Gt,dn,yn,Wn,Kn){this.dialogRef=$e,this.data=vt,this.attributesManagerService=Gt,this.memberManager=dn,this.groupManager=yn,this.translate=Wn,this.notificator=Kn,this.loading=!1,Wn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(ui=>this.successMessage=ui)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const $e=new Date;this.minDate=new Date($e.getFullYear(),$e.getMonth(),$e.getDate()),this.loading=!1}onExpirationChanged($e){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===$e?null:$e).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.H8),E.Y36(H.uq),E.Y36(H.ff),E.Y36(d.sK),E.Y36(W.V6))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div",0)(1,"h1",1),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,zn,1,0,"mat-spinner",2),E.YNc(5,ki,1,4,"perun-web-apps-change-expiration-dialog",3),E.qZA()),2&$e&&(E.xp6(2),E.Oqu(E.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading))},dependencies:[e.O5,w.uh,R.Ou,mt,d.X$]}),je})();function Oi(je,Ht){1&je&&E._UZ(0,"mat-spinner",4)}function _i(je,Ht){1&je&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function gi(je,Ht){1&je&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Ir(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"mat-radio-group",12),E.NdJ("ngModelChange",function(Gt){E.CHM($e);const dn=E.oxw(2);return E.KtG(dn.asyncValidation=Gt)}),E.TgZ(1,"span",13),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"mat-radio-button",14),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"mat-radio-button",14),E._uU(8),E.ALo(9,"translate"),E.qZA()()}if(2&je){const $e=E.oxw(2);E.Q6J("ngModel",$e.asyncValidation),E.xp6(2),E.hij(" ",E.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),E.xp6(2),E.Q6J("value",!1),E.xp6(1),E.hij(" ",E.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),E.xp6(2),E.Q6J("value",!0),E.xp6(1),E.hij(" ",E.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ir(je,Ht){1&je&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function fr(je,Ht){1&je&&(E.TgZ(0,"span",11),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&je&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function rr(je,Ht){if(1&je&&(E.TgZ(0,"div",5)(1,"p",6),E._uU(2),E.TgZ(3,"span",7),E._uU(4),E.qZA(),E._uU(5),E.TgZ(6,"span",7),E._uU(7),E.qZA()(),E.TgZ(8,"p")(9,"strong",8),E._uU(10),E.ALo(11,"translate"),E.qZA(),E._uU(12),E.qZA(),E.TgZ(13,"p")(14,"strong",8),E._uU(15),E.ALo(16,"translate"),E.qZA(),E._uU(17),E.qZA(),E.YNc(18,_i,3,3,"span",9),E.YNc(19,gi,3,3,"span",9),E.YNc(20,Ir,10,12,"mat-radio-group",10),E.YNc(21,ir,3,3,"span",9),E.YNc(22,fr,3,3,"span",9),E.qZA()),2&je){const $e=E.oxw();E.xp6(2),E.hij(" ",$e.group.name," "),E.xp6(2),E.hij("#",$e.group.id,""),E.xp6(1),E.hij(" - ",$e.resource.name," "),E.xp6(2),E.hij("#",$e.resource.id,""),E.xp6(3),E.hij(" ",E.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),E.xp6(2),E.hij(" ",$e.status," "),E.xp6(3),E.hij(" ",E.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),E.xp6(2),E.hij(" ",$e.getReversedStatus()," "),E.xp6(1),E.Q6J("ngIf","INACTIVE"===$e.status||"FAILED"===$e.status),E.xp6(1),E.Q6J("ngIf","ACTIVE"===$e.status),E.xp6(1),E.Q6J("ngIf","INACTIVE"===$e.status||"FAILED"===$e.status),E.xp6(1),E.Q6J("ngIf",("INACTIVE"===$e.status||"FAILED"===$e.status)&&!1===$e.asyncValidation),E.xp6(1),E.Q6J("ngIf",("INACTIVE"===$e.status||"FAILED"===$e.status)&&!0===$e.asyncValidation)}}function yt(je,Ht){if(1&je){const $e=E.EpF();E.TgZ(0,"div",15)(1,"button",16),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onCancel())}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",17),E.NdJ("click",function(){E.CHM($e);const Gt=E.oxw();return E.KtG(Gt.onSubmit())}),E._uU(5),E.ALo(6,"translate"),E.qZA()()}if(2&je){const $e=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),E.xp6(2),E.Q6J("disabled",$e.loading),E.xp6(1),E.hij(" ",E.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===$e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let rn=(()=>{class je{constructor($e,vt,Gt,dn){this.dialogRef=$e,this.data=vt,this.resourceService=Gt,this.groupService=dn,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe($e=>{this.resource=$e,this.groupService.getGroupById(this.data.groupId).subscribe(vt=>{this.group=vt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(H.xk),E.Y36(H.ff))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Oi,1,0,"mat-spinner",1),E.YNc(5,rr,23,17,"div",2),E.YNc(6,yt,7,7,"div",3),E.qZA()),2&$e&&(E.Tol(vt.theme),E.xp6(2),E.hij(" ",E.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),E.xp6(2),E.Q6J("ngIf",vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading),E.xp6(1),E.Q6J("ngIf",!vt.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,T.JJ,T.On,R.Ou,U.VQ,U.U0,d.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),je})();var nt=h(90995);let Nt=(()=>{class je{constructor($e,vt,Gt,dn,yn){this.dialogRef=$e,this.data=vt,this.notificator=Gt,this.usersService=dn,this.translate=yn,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit($e){this.force=$e.force,$e.deleted?this.anonymizeUser():this.onCancel()}}return je.\u0275fac=function($e){return new($e||je)(E.Y36(w.so),E.Y36(w.WI),E.Y36(W.V6),E.Y36(H.Fv),E.Y36(d.sK))},je.\u0275cmp=E.Xpm({type:je,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function($e,vt){1&$e&&(E.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),E.NdJ("deleted",function(dn){return vt.onSubmit(dn)}),E.qZA()()),2&$e&&(E.Tol(vt.theme),E.xp6(1),E.Q6J("entityNames",vt.dataSource)("entityType","user")("relations",vt.relations)("loading",vt.loading)("anonymize",!0))},dependencies:[nt.e]}),je})()},90995:(Je,pe,h)=>{"use strict";h.d(pe,{e:()=>De});var e=h(94650),d=h(24006),A=h(30671),w=h(36895),g=h(65412),C=h(4859),T=h(59549),v=h(284),R=h(51572),U=h(97392),_=h(98380),V=h(96338),Y=h(89383),X=h(31359);let ne=(()=>{class j{constructor(G){this.translate=G}transform(G){return this.translate.instant(G?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return j.\u0275fac=function(G){return new(G||j)(e.Y36(Y.sK,16))},j.\u0275pipe=e.Yjl({name:"deleteDialogType",type:j,pure:!0}),j})();function le(j,P){1&j&&e._UZ(0,"mat-spinner",2)}const te=function(j){return{action:j}};function fe(j,P){if(1&j&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,te,e.lcZ(3,9,G.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",G.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",G.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function ue(j,P){if(1&j&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,te,e.lcZ(3,5,G.anonymize)))," ",G.entityType," ? ")}}function we(j,P){1&j&&e._UZ(0,"th",18)}function E(j,P){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const G=P.$implicit,ce=e.oxw(2);e.xp6(1),e.hij(" ",ce.anonymize?e.lcZ(2,1,G):G.name," ")}}function O(j,P){1&j&&e._UZ(0,"tr",20)}function H(j,P){1&j&&e._UZ(0,"tr",21)}function W(j,P){if(1&j){const G=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(G);const q=e.oxw(2);return e.KtG(q.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&j){const G=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,te,e.lcZ(5,5,e.lcZ(6,7,G.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const $=function(){return["name"]};function de(j,P){if(1&j){const G=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,fe,10,19,"div",5),e.YNc(8,ue,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,we,1,0,"th",8),e.YNc(12,E,3,3,"td",9),e.BQk(),e.YNc(13,O,1,0,"tr",10),e.YNc(14,H,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(G);const q=e.oxw();return e.KtG(q.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(G);const q=e.oxw();return e.KtG(q.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,W,8,13,"button",15),e.qZA()()}if(2&j){const G=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,te,e.lcZ(4,13,e.lcZ(5,15,G.anonymize))))," ",G.entityType," "),e.xp6(5),e.Q6J("ngIf",!G.disableForce),e.xp6(1),e.Q6J("ngIf",G.disableForce),e.xp6(1),e.Q6J("dataSource",G.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,$)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,$)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,te,e.lcZ(22,22,e.lcZ(23,24,G.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!G.disableForce)}}function ye(j,P){if(1&j&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&j){const G=P.$implicit;e.xp6(4),e.hij(" ",G," ")}}function xe(j,P){if(1&j&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.hij(" ",G.anotherMessage," ")}}function Me(j,P){1&j&&e._UZ(0,"th",18)}function Ze(j,P){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const G=P.$implicit,ce=e.oxw(2);e.xp6(1),e.hij(" ",ce.anonymize?e.lcZ(2,1,G):G.name," ")}}function se(j,P){1&j&&e._UZ(0,"tr",20)}function ze(j,P){1&j&&e._UZ(0,"tr",21)}function he(j,P){if(1&j){const G=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,ye,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,xe,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,Me,1,0,"th",8),e.YNc(21,Ze,3,3,"td",9),e.BQk(),e.YNc(22,se,1,0,"tr",10),e.YNc(23,ze,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(G);const q=e.oxw();return e.KtG(q.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(G);const q=e.oxw();return e.KtG(q.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&j){const G=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,te,e.lcZ(4,20,e.lcZ(5,22,G.anonymize))))," ",G.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",G.relations),e.xp6(1),e.Q6J("ngIf",G.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,te,e.lcZ(17,31,G.anonymize)))," ",G.entityType," ? "),e.xp6(3),e.Q6J("dataSource",G.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,$)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,$)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,te,e.lcZ(27,36,e.lcZ(28,38,G.anonymize))))),e.Q6J("formControl",G.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",G.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,te,e.lcZ(38,45,e.lcZ(39,47,G.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let De=(()=>{class j{constructor(){this.entityNames=new A.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new d.p4("",[d.kI.required,d.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275cmp=e.Xpm({type:j,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(G,ce){1&G&&(e.YNc(0,le,1,0,"mat-spinner",0),e.YNc(1,de,25,32,"div",1),e.YNc(2,he,41,61,"div",1)),2&G&&(e.Q6J("ngIf",ce.loading),e.xp6(1),e.Q6J("ngIf",!ce.force&&!ce.loading),e.xp6(1),e.Q6J("ngIf",ce.force&&!ce.loading))},dependencies:[w.sg,w.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,g.uh,g.xY,g.H8,C.lW,T.KE,d.Fj,d.JJ,v.Nt,R.Ou,d.oH,U.Hw,_.w,V.i$,V.Tg,w.gd,w.rS,Y.X$,X.d,ne],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),j})()},50301:(Je,pe,h)=>{"use strict";h.d(pe,{hT:()=>d,Kd:()=>w,YH:()=>g});var e=h(94650);let d=(()=>{class C{constructor(v){this.elementRef=v}ngOnInit(){this.elementRef.nativeElement.focus()}}return C.\u0275fac=function(v){return new(v||C)(e.Y36(e.SBq))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsAutoFocus",""]]}),C})();var A=h(32080);let w=(()=>{class C{constructor(v){this.router=v}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return C.\u0275fac=function(v){return new(v||C)(e.Y36(A.xw))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(v,R){1&v&&e.NdJ("click",function(){return R.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),C})(),g=(()=>{class C{onClick(v){if(1===v.button&&null!=this.perunWebAppsMiddleClickRouterLink){const R=this.perunWebAppsMiddleClickRouterLink.join("/"),U=location.search;window.open(R+U)}}}return C.\u0275fac=function(v){return new(v||C)},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(v,R){1&v&&e.NdJ("mouseup",function(_){return R.onClick(_)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),C})()},45323:(Je,pe,h)=>{"use strict";h.d(pe,{u:()=>e});var e=(()=>{return(d=e||(e={})).PERUNADMIN="PERUNADMIN",d.PERUNOBSERVER="PERUNOBSERVER",d.VOADMIN="VOADMIN",d.GROUPADMIN="GROUPADMIN",d.GROUPOBSERVER="GROUPOBSERVER",d.SELF="SELF",d.FACILITYADMIN="FACILITYADMIN",d.FACILITIYOBSERVER="FACILITYOBSERVER",d.RESOURCEADMIN="RESOURCEADMIN",d.RESOURCESELFSERVICE="RESOURCESELFSERVICE",d.REGISTRAR="REGISTRAR",d.ENGINE="ENGINE",d.RPC="RPC",d.NOTIFICATIONS="NOTIFICATIONS",d.SERVICEUSER="SERVICEUSER",d.SPONSOR="SPONSOR",d.VOOBSERVER="VOOBSERVER",d.TOPGROUPCREATOR="TOPGROUPCREATOR",d.SECURITYADMIN="SECURITYADMIN",d.CABINETADMIN="CABINETADMIN",d.UNKNOWNROLENAME="UNKNOWNROLENAME",d.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",d.UNKNOWN="UNKNOWN",d.MEMBERSHIP="MEMBERSHIP",e;var d})()},28499:(Je,pe,h)=>{"use strict";h.d(pe,{E3:()=>_,yT:()=>V.y});var e=h(36895),d=h(59549),A=h(10266),w=h(24006),g=h(284),C=h(89383),T=h(51572),v=h(97392),R=h(63189),U=h(94650);let _=(()=>{class X{}return X.\u0275fac=function(le){return new(le||X)},X.\u0275mod=U.oAB({type:X}),X.\u0275inj=U.cJS({imports:[e.ez,d.lN,A.AV,w.UX,g.c,C.aw,T.Cq,v.Ps,R.r]}),X})();var V=h(47549);h(13469)},13469:(Je,pe,h)=>{"use strict";h.d(pe,{G:()=>we});var e=h(47549),d=h(32080),A=h(32105),w=h(94650),g=h(89383),C=h(36895),T=h(59549),v=h(10266),R=h(24006),U=h(284),_=h(51572),V=h(97392),Y=h(98380);function X(E,O){1&E&&w._UZ(0,"mat-spinner",12),2&E&&w.Q6J("diameter",18)}function ne(E,O){if(1&E&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&E){const H=w.oxw();w.Q6J("matTooltip",H.getErrorTooltip())("matTooltipDisabled",!H.formGroup.get("passwordCtrl").hasError("backendError"))}}function le(E,O){1&E&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&E&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function te(E,O){if(1&E&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&E){const H=w.oxw();w.Q6J("matTooltip",H.getErrorTooltip()),w.xp6(1),w.Oqu(H.getErrorTooltip())}}function fe(E,O){1&E&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&E&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ue(E,O){1&E&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&E&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let we=(()=>{class E{constructor(H,W,$){this.translator=H,this.usersManagerService=W,this.store=$,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(H=>{const W=H.userAttributes.find($=>"preferredLanguage"===$.friendlyName);this.language=W?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let H=this.formGroup.get("passwordCtrl").getError("backendError");return H&&(H=H.replace(":null","")),H}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(H=>H.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(H=>"default"===H.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return E.\u0275fac=function(H){return new(H||E)(w.Y36(g.sK),w.Y36(A.Fv),w.Y36(d.d6))},E.\u0275cmp=w.Xpm({type:E,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(H,W){1&H&&(w.TgZ(0,"div",0)(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,X,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return W.showNewPassword=!W.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,ne,2,2,"mat-icon",5),w.YNc(8,le,3,3,"mat-error",6),w.YNc(9,te,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8)(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return W.showPasswordConfirm=!W.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,fe,3,3,"mat-error",6),w.YNc(18,ue,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA()()),2&H&&(w.Q6J("formGroup",W.formGroup),w.xp6(1),w.Q6J("matTooltip",W.getPasswordDisabledTooltip())("matTooltipDisabled",W.formGroup.get("passwordCtrl").enabled||W.tooltipPwdDisabledForNamespace),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",W.showNewPassword?"text":"password")("required",W.passwordRequired)("errorStateMatcher",W.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",W.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").dirty&&null!==W.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",W.showPasswordConfirm?"text":"password")("required",W.passwordRequired),w.xp6(2),w.hij(" ",W.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",W.passwordRequirement,w.oJD))},dependencies:[C.O5,T.TO,T.KE,T.hX,T.R9,v.gM,R.Fj,R.JJ,R.JL,R.Q7,R.sg,R.u,U.Nt,_.Ou,V.Hw,Y.w,g.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),E})()},47549:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>C,y:()=>T});var e=h(82805),d=h(39646),A=h(63900),w=h(54004),g=h(70262);class C{isErrorState(R){return!(!R?.invalid||!R?.dirty)}}const T=(v,R,U,_=500)=>V=>(0,e.H)(_).pipe((0,A.w)(()=>(U.dontHandleErrorForNext(),v&&"No namespace"!==v?R.checkPasswordStrength({password:V.value,namespace:v}):(0,d.of)(null))),(0,w.U)(()=>null),(0,g.K)(Y=>{const X=Y.error,ne={backendError:X.message.substring(X.message.indexOf(":")+1)};return(0,d.of)(ne)}))},32105:(Je,pe,h)=>{"use strict";h.d(pe,{au:()=>me,sY:()=>he,H8:()=>T,jw:()=>v,Ct:()=>R,VK:()=>C,WY:()=>_,KG:()=>Y,IQ:()=>X,ff:()=>le,uq:()=>fe,aC:()=>ue,Hr:()=>we,tk:()=>E,xk:()=>O,t7:()=>H,KK:()=>W,Ob:()=>$,Dy:()=>ge,Fv:()=>de,FW:()=>ye,YF:()=>xe});var e=h(80529);class d{encodeKey(L){return encodeURIComponent(L)}encodeValue(L){return encodeURIComponent(L)}decodeKey(L){return decodeURIComponent(L)}decodeValue(L){return decodeURIComponent(L)}}var A=h(94650);const w=new A.OlP("basePath");class C{constructor(L={}){this.apiKeys=L.apiKeys,this.username=L.username,this.password=L.password,this.accessToken=L.accessToken,this.basePath=L.basePath,this.withCredentials=L.withCredentials,this.encoder=L.encoder,this.credentials=L.credentials?L.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(L){if(0===L.length)return;const r=L.find(s=>this.isJsonMime(s));return void 0===r?L[0]:r}selectHeaderAccept(L){if(0===L.length)return;const r=L.find(s=>this.isJsonMime(s));return void 0===r?L[0]:r}isJsonMime(L){const r=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==L&&(r.test(L)||"application/json-patch+json"===L.toLowerCase())}lookupCredential(L){const r=this.credentials[L];return"function"==typeof r?r():r}}let T=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}convertAttributeToNonunique(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}convertAttributeToUnique(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}createAttributeDefinition(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteAttributeDefinition(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteAttributeDefinitions(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"attributes[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllAttributeDefinitions(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAttribute(r,s,m,l,o,n,t,i,a,c,p,M="body",Ne=!1,Pt){let Ut=new e.LE({encoder:this.encoder});null!=r&&(Ut=this.addToHttpParams(Ut,r,"attributeName")),null!=s&&(Ut=this.addToHttpParams(Ut,s,"attributeId")),null!=m&&(Ut=this.addToHttpParams(Ut,m,"facility")),null!=l&&(Ut=this.addToHttpParams(Ut,l,"user")),null!=o&&(Ut=this.addToHttpParams(Ut,o,"vo")),null!=n&&(Ut=this.addToHttpParams(Ut,n,"resource")),null!=t&&(Ut=this.addToHttpParams(Ut,t,"member")),null!=i&&(Ut=this.addToHttpParams(Ut,i,"group")),null!=a&&(Ut=this.addToHttpParams(Ut,a,"host")),null!=c&&(Ut=this.addToHttpParams(Ut,c,"userExtSource")),null!=p&&(Ut=this.addToHttpParams(Ut,p,"key"));let xt,ln=this.defaultHeaders;xt=this.configuration.lookupCredential("BasicAuth"),xt&&(ln=ln.set("Authorization","Basic "+xt)),xt=this.configuration.lookupCredential("BearerAuth"),xt&&(ln=ln.set("Authorization","Bearer "+xt));let gt=Pt&&Pt.httpHeaderAccept;void 0===gt&&(gt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==gt&&(ln=ln.set("Accept",gt));let Ge=Pt&&Pt.context;void 0===Ge&&(Ge=new e.qT);let Ie="json";return gt&&(Ie=gt.startsWith("text")?"text":this.configuration.isJsonMime(gt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Ge,params:Ut,responseType:Ie,withCredentials:this.configuration.withCredentials,headers:ln,observe:M,reportProgress:Ne})}getAttributeDefinitionById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAttributeDefinitionByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAttributeDefinitionsByNamespace(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"namespace"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAttributeModulesDependenciesForAttributeGraphText(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==s)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"format")),null!=s&&(n=this.addToHttpParams(n,s,"attrName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAttributeModulesDependenciesGraphText(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"format"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAttributePolicyCollections(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAttributeRights(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAttributesDefinitionWithRights(r,s,m,l,o,n,t,i,a="body",c=!1,p){let M=new e.LE({encoder:this.encoder});null!=r&&(M=this.addToHttpParams(M,r,"member")),null!=s&&(M=this.addToHttpParams(M,s,"user")),null!=m&&(M=this.addToHttpParams(M,m,"vo")),null!=l&&(M=this.addToHttpParams(M,l,"group")),null!=o&&(M=this.addToHttpParams(M,o,"resource")),null!=n&&(M=this.addToHttpParams(M,n,"facility")),null!=t&&(M=this.addToHttpParams(M,t,"host")),null!=i&&(M=this.addToHttpParams(M,i,"userExtSource"));let Pt,Ne=this.defaultHeaders;Pt=this.configuration.lookupCredential("BasicAuth"),Pt&&(Ne=Ne.set("Authorization","Basic "+Pt)),Pt=this.configuration.lookupCredential("BearerAuth"),Pt&&(Ne=Ne.set("Authorization","Bearer "+Pt));let Ut=p&&p.httpHeaderAccept;void 0===Ut&&(Ut=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ut&&(Ne=Ne.set("Accept",Ut));let ln=p&&p.context;void 0===ln&&(ln=new e.qT);let xt="json";return Ut&&(xt=Ut.startsWith("text")?"text":this.configuration.isJsonMime(Ut)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ln,params:M,responseType:xt,withCredentials:this.configuration.withCredentials,headers:Ne,observe:a,reportProgress:c})}getEntitylessAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getEntitylessAttributesByKey(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"key"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getEntitylessAttributesByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attrName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getEntitylessAttributesWithKeys(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attrName")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"keys[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getEntitylessKeys(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilityAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilityAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilityResourceUserMemberAttributes(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==m)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),null!=m&&(i=this.addToHttpParams(i,m,"user")),null!=l&&(i=this.addToHttpParams(i,l,"member"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getFacilityUserAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupResourceAttributeById(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==m)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getGroupResourceAttributeByName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==m)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getGroupResourceAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getHostAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getHostAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getHostAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHostAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getLogins(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getLogins.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMemberAndUserAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMemberAndUserAttributesByNames(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==m)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrNames[]")}),null!=m&&(t=this.addToHttpParams(t,m,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMemberAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMemberAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMemberAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMemberGroupAndUserAttributesByNames(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==m)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group")),m&&m.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getMemberGroupAttributeById(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==m)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=m&&(t=this.addToHttpParams(t,m,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberGroupAttributeByName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==m)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=m&&(t=this.addToHttpParams(t,m,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberGroupAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMemberGroupAttributesByNames(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==m)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberResourceAndUserFacilityAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==m)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberResourceAndUserFacilityAttributesByNames(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==m)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),m&&m.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getMemberResourceAttributeById(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==m)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberResourceAttributeByName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==m)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberResourceAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesDefinition(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRequiredAttributesFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRequiredAttributesFacilityService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesFacilityServices(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesGroupResourceService(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==m)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getRequiredAttributesHostService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==s)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"host"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"workWithUserAttributes"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesMemberGroup(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=m&&(t=this.addToHttpParams(t,m,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getRequiredAttributesMemberGroupResourceService(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==m)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=s&&(a=this.addToHttpParams(a,s,"resource")),null!=m&&(a=this.addToHttpParams(a,m,"group")),null!=l&&(a=this.addToHttpParams(a,l,"member")),null!=o&&(a=this.addToHttpParams(a,o,"workWithUserAttributes"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getRequiredAttributesMemberGroupService(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==m)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"group")),null!=m&&(i=this.addToHttpParams(i,m,"member")),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRequiredAttributesMemberResource(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getRequiredAttributesMemberResourceService(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==m)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),null!=m&&(i=this.addToHttpParams(i,m,"member")),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRequiredAttributesResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRequiredAttributesResourceService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesResourceServices(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRequiredAttributesUserFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRequiredAttributesVoService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourceAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceGroupAndGroupAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==m)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"resource")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=m&&(t=this.addToHttpParams(t,m,"workWithGroupAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getResourceGroupAndGroupAttributesByNames(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==m)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group")),m&&m.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getResourceGroupAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceGroupMemberAttributesByNames(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==m)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group")),null!=m&&(i=this.addToHttpParams(i,m,"member")),l&&l.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getUserAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUserAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserExtSourceAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserExtSourceAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserExtSourceAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUserExtSourceAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserFacilityAttributeById(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==m)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=m&&(t=this.addToHttpParams(t,m,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getUserFacilityAttributeByName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==m)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=m&&(t=this.addToHttpParams(t,m,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getUserFacilityAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getVoAttributeById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getVoAttributeByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"attributeName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getVoAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(r,s,m,l,o,n,t="body",i=!1,a){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==m)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"facility")),null!=s&&(c=this.addToHttpParams(c,s,"resource")),null!=m&&(c=this.addToHttpParams(c,m,"group")),null!=l&&(c=this.addToHttpParams(c,l,"user")),null!=o&&(c=this.addToHttpParams(c,o,"member")),n&&n.forEach(ln=>{c=this.addToHttpParams(c,ln,"attributes[]")});let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Ne=a&&a.httpHeaderAccept;void 0===Ne&&(Ne=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ne&&(p=p.set("Accept",Ne));let Pt=a&&a.context;void 0===Pt&&(Pt=new e.qT);let Ut="json";return Ne&&(Ut=Ne.startsWith("text")?"text":this.configuration.isJsonMime(Ne)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:Pt,params:c,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}removeAttributesForFacilityResourceUserMember(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==m)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"facility")),null!=s&&(a=this.addToHttpParams(a,s,"resource")),null!=m&&(a=this.addToHttpParams(a,m,"user")),null!=l&&(a=this.addToHttpParams(a,l,"member")),o&&o.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"attributes[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}removeEntitylessAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"key")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupResourceAttribute(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==m)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeGroupResourceAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==m)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeGroupResourceAttributesWorkWithGroupAttributes(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==m)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),m&&m.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attributes[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeHostAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeHostAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"host")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeMemberAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeMemberAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==m)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attributes[]")}),null!=m&&(t=this.addToHttpParams(t,m,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeMemberGroupAttribute(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==m)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=m&&(t=this.addToHttpParams(t,m,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeMemberGroupAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==m)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeMemberGroupAttributesWorkWithUserAttributes(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==m)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"group")),m&&m.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attributes[]")}),null!=l&&(i=this.addToHttpParams(i,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeMemberResourceAttribute(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==m)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeMemberResourceAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==m)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeResourceAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeResourceAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUesAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUserAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUserAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUserExtSourceAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userExtSource")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUserFacilityAttribute(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==m)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=m&&(t=this.addToHttpParams(t,m,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeUserFacilityAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==m)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeVoAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"attribute"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeVoAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}setAttributePolicyCollections(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setAttributeRights(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setEntitylessAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setFacilityAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setFacilityAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setFacilityResourceGroupUserMemberAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setFacilityResourceUserMemberAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setFacilityUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setGroupAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setGroupAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setGroupResourceAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setGroupResourceAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setHostAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setHostAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberGroupAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberGroupAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberGroupWithUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberResourceAndUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberResourceAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberResourceAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setMemberWithUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setResourceAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setResourceAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setResourceGroupAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setResourceGroupWithGroupAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setUserAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setUserExtSourceAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setUserExtSourceAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setUserFacilityAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setUserFacilityAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setVoAttribute(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setVoAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateAttributeDefinition(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),v=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}auditMessagesManagerLog(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"msg"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}createAuditerConsumer(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllAuditerConsumers(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAuditerMessagesCount(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getLastMessageId(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getMessages(r,s="body",m=!1,l){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMessagesByCount(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMessagesPage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}pollConsumerMessages(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}setLastProcessedId(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==s)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consumerName")),null!=s&&(n=this.addToHttpParams(n,s,"lastProcessedId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),R=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}getAllPolicies(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllRolesManagementRules(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAuthzAdminGroups(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==m)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"role")),null!=s&&(t=this.addToHttpParams(t,s,"complementaryObjectId")),null!=m&&(t=this.addToHttpParams(t,m,"complementaryObjectName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getAuthzRichAdmins(r,s,m,l,o,n,t="body",i=!1,a){if(null==r)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==m)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"role")),null!=s&&(c=this.addToHttpParams(c,s,"complementaryObjectId")),null!=m&&(c=this.addToHttpParams(c,m,"complementaryObjectName")),l&&l.forEach(ln=>{c=this.addToHttpParams(c,ln,"specificAttributes")}),null!=o&&(c=this.addToHttpParams(c,o,"allUserAttributes")),null!=n&&(c=this.addToHttpParams(c,n,"onlyDirectAdmins"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Ne=a&&a.httpHeaderAccept;void 0===Ne&&(Ne=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ne&&(p=p.set("Accept",Ne));let Pt=a&&a.context;void 0===Pt&&(Pt=new e.qT);let Ut="json";return Ne&&(Ut=Ne.startsWith("text")?"text":this.configuration.isJsonMime(Ne)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:Pt,params:c,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}getFacilitiesWhereUserIsInRoles(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupRoleNames(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupRoles(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupsWhereUserIsInRoles(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getLoggedUser(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getMembersWhereUserIsInRoles(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getPerunPrincipal(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPrincipalRoleNames(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getResourcesWhereUserIsInRoles(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserRoleNames(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUserRoles(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVosWhereUserIsInRoles(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"user")),r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}isFacilityAdmin(r,s="body",m=!1,l){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}isGroupAdmin(r,s="body",m=!1,l){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}isPerunAdmin(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}isVoAdmin(r,s="body",m=!1,l){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}keepAlive(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}loadAuthorizationComponents(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}setRoleWithGroupComplementaryObject(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setRoleWithUserComplementaryObject(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}unsetRoleWithGroupComplementaryObject(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}unsetRoleWithUserComplementaryObject(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),_=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}changeConsentStatus(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consent")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}evaluateConsentsForConsentHub(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}evaluateConsentsForService(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllConsentHubs(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllConsents(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getConsentById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getConsentForUserAndConsentHub(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==s)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==m)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"consentHub")),null!=m&&(t=this.addToHttpParams(t,m,"status"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getConsentHubByFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getConsentHubById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getConsentHubByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getConsentsForConsentHub(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getConsentsForConsentHubWithStatus(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"consentHub")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getConsentsForUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getConsentsForUserAndConsentHub(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==s)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"consentHub"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getConsentsForUserWithStatus(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}updateConsentHub(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),Y=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addExtSourceWithGroupSource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addExtSourceWithVoSource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createExtSourceFromExtSourceObject(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createExtSourceWithNameType(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==s)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteExtSource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getExtSourceById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getExtSourceByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getExtSources(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getGroupExtSources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoExtSources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}loadExtSourcesDefinitions(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}removeExtSourceWithGroupSource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeExtSourceWithVoSource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==s)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"source"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),X=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addFacilityAdminGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityAdminGroupByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityAdminUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityAdminUserByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityOwner(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityOwnerByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addFacilityOwnerByOwnerName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addHost(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==s)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addHostByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==s)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"hostname"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addHosts(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==s)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addHostsByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==s)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}assignSecurityTeam(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}assignSecurityTeamByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyAttributesByDestinationName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyAttributesBySourceDestinationNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyAttributesBySourceName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyManagers(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyManagersByDestinationName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyManagersBySourceDestinationNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyManagersBySourceName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyOwners(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyOwnersByDestinationName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacility")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyOwnersBySourceDestinationNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==s)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacilityName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyOwnersBySourceName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==s)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"srcFacilityName")),null!=s&&(n=this.addToHttpParams(n,s,"destFacility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteFacilityByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllFacilities(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllowedGroups(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=m&&(t=this.addToHttpParams(t,m,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getAllowedGroupsByFacilityName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=m&&(t=this.addToHttpParams(t,m,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getAllowedRichGroupsWithAttributes(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")}),null!=m&&(i=this.addToHttpParams(i,m,"vo")),null!=l&&(i=this.addToHttpParams(i,l,"service"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllowedRichGroupsWithAttributesByFacilityName(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")}),null!=m&&(i=this.addToHttpParams(i,m,"vo")),null!=l&&(i=this.addToHttpParams(i,l,"service"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllowedUsersOfFacility(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=m&&(t=this.addToHttpParams(t,m,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getAllowedUsersOfFacilityByFacilityName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=m&&(t=this.addToHttpParams(t,m,"service"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getAllowedVos(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllowedVosByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedFacilitiesByGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedFacilitiesByMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedFacilitiesByService(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedFacilitiesByUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedResourcesByAssignedServiceForFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAssignedResourcesForFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedResourcesForFacilityByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichResourcesForFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichResourcesForFacilityAndService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAssignedRichResourcesForFacilityByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedSecurityTeams(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedSecurityTeamsByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedUsers(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAssignedUsersByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getBansForFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facilityId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getBansForUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getEnrichedFacilities(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getEnrichedHosts(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilitiesByAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=s&&(n=this.addToHttpParams(n,s,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilitiesByDestination(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilitiesByHostName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilitiesByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilitiesCount(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getFacilitiesWhereUserIsAdmin(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityAdminGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityAdminUsers(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilityAdminUsersByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilityBan(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacilityBanById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityForHost(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityOwners(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityOwnersByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHostById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getHostById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHosts(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHostsByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHostsByHostname(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHostsCount(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getHostsCountByFacilityName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getOwnerFacilities(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichFacilities(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}removeBanByUserIdFacilityId(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityAdminGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityAdminGroupByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityAdminUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityAdminUserByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityBanById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeFacilityOwner(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityOwnerByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeFacilityOwnerByOwnerName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==s)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"owner"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeHost(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter host was null or undefined when calling removeHost.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeHostByHostname(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeHosts(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==s)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeHostsByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==s)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeSecurityTeam(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeSecurityTeamByFacilityName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==s)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"securityTeam"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}setFacilityBan(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateFacilityBan(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),le=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling addMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addMembers(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==s)throw new Error("Required parameter members was null or undefined when calling addMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}allowGroupToHierarchicalVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}canExtendMembershipInGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createGroupUnion(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==s)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=s&&(n=this.addToHttpParams(n,s,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createGroupWithParentGroupNameDescription(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==s)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==m)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"parentGroup")),null!=s&&(t=this.addToHttpParams(t,s,"name")),null!=m&&(t=this.addToHttpParams(t,m,"description"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}createGroupWithVoNameDescription(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==s)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==m)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"name")),null!=m&&(t=this.addToHttpParams(t,m,"description"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}deleteGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}disallowGroupToHierarchicalVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}extendMembershipInGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}forceAllSubGroupsSynchronization(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}forceGroupStructureSynchronization(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}forceGroupSynchronization(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllAllowedGroupsToHierarchicalVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllGroupsFromAllVos(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllMemberGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllRichGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"attrNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllRichGroupsWithAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==s)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupMemberById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupMembersCount(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupMembersCountsByGroupStatus(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupMembersCountsByVoStatus(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupRichMembersByIds(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==s)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==m)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"members[]")}),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getGroupUnions(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==s)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"reverseDirection"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupsByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupsPage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getGroupsWhereMemberIsActive(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getIndirectMembershipPaths(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMemberGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMemberRichGroupsWithAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRichGroupByIdWithAttributesByNames(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"groupId")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getSubgroupsPage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getVoAllAllowedGroupsToHierarchicalVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}isAllowedGroupToHierarchicalVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}isGroupMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let n=new e.LE({encoder:this.encoder});null!=s&&(n=this.addToHttpParams(n,s,"destinationGroup")),null!=r&&(n=this.addToHttpParams(n,r,"movingGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupUnion(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==s)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resultGroup")),null!=s&&(n=this.addToHttpParams(n,s,"operandGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeMember.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeMembers(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==s)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}setGroupsMemberStatus(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==s)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==m)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"group")),null!=m&&(t=this.addToHttpParams(t,m,"status"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}updateGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),fe=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}canExtendMembership(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}createMemberForCandidate(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createMemberForUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createMemberFromExtSource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createSpecificMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createSponsoredMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createSponsoredMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createSponsoredMembersFromCSV(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"members[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}extendMembership(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}findCompleteRichMembersByAttributes(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrsNames[]")}),null!=s&&(t=this.addToHttpParams(t,s,"searchString")),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"allowedStatuses[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}findCompleteRichMembersForGroup(r,s,m,l,o,n,t="body",i=!1,a){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==m)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"group")),s&&s.forEach(ln=>{c=this.addToHttpParams(c,ln,"attrsNames[]")}),o&&o.forEach(ln=>{c=this.addToHttpParams(c,ln,"allowedStatuses[]")}),n&&n.forEach(ln=>{c=this.addToHttpParams(c,ln,"allowedGroupStatuses[]")}),null!=m&&(c=this.addToHttpParams(c,m,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"lookingInParentGroup"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Ne=a&&a.httpHeaderAccept;void 0===Ne&&(Ne=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ne&&(p=p.set("Accept",Ne));let Pt=a&&a.context;void 0===Pt&&(Pt=new e.qT);let Ut="json";return Ne&&(Ut=Ne.startsWith("text")?"text":this.configuration.isJsonMime(Ne)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:Pt,params:c,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}findCompleteRichMembersForVo(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==m)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrsNames[]")}),l&&l.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"allowedStatuses[]")}),null!=m&&(i=this.addToHttpParams(i,m,"searchString"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}findMembersInVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}findSponsoredCompleteRichMembersForVo(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==s)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==m)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrsNames[]")}),null!=m&&(i=this.addToHttpParams(i,m,"searchString")),null!=l&&(i=this.addToHttpParams(i,l,"onlySponsored"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getAllMembers(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllNamespacesRules(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllSponsoredMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllSponsoredMembersAndTheirSponsors(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getCompleteRichMembersForGroup(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==s)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),m&&m.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"allowedStatuses[]")}),l&&l.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"allowedGroupStatuses[]")}),null!=s&&(a=this.addToHttpParams(a,s,"lookingInParentGroup")),o&&o.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"attrsNames[]")});let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getCompleteRichMembersForGroupResource(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==m)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),null!=s&&(i=this.addToHttpParams(i,s,"resource")),m&&m.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrsNames[]")}),l&&l.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"allowedStatuses[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getCompleteRichMembersForVo(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"allowedStatuses[]")}),m&&m.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrsNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberByExtSourceNameAndExtLogin(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==m)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"extLogin")),null!=m&&(t=this.addToHttpParams(t,m,"extSourceName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getMemberById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMemberByUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMembers(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMembersByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMembersByUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMembersCount(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMembersPage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getMembersWithStatusCount(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==s)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRichMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichMemberWithAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichMembersByIds(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"ids[]")}),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRichMembersNoUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getSponsoredMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getSponsoredMembersAndTheirSponsors(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getSponsorsByMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getSponsorsByVo(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==m)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"extSourceName")),null!=m&&(i=this.addToHttpParams(i,m,"extLogin")),l&&l.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}moveMembership(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==s)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==m)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"sourceUser")),null!=m&&(t=this.addToHttpParams(t,m,"targetUser"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}removeSponsor(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"sponsor"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}sendAccountActivationLinkEmail(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==m)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"member")),null!=s&&(i=this.addToHttpParams(i,s,"namespace")),null!=m&&(i=this.addToHttpParams(i,m,"emailAttributeURN")),null!=l&&(i=this.addToHttpParams(i,l,"language"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sendPasswordResetLinkEmail(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==m)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"member")),null!=s&&(a=this.addToHttpParams(a,s,"namespace")),null!=m&&(a=this.addToHttpParams(a,m,"emailAttributeURN")),null!=l&&(a=this.addToHttpParams(a,l,"language")),null!=o&&(a=this.addToHttpParams(a,o,"baseUrl"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}setSponsoredMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setSponsorshipForMember(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"sponsoredMember")),null!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=m&&(t=this.addToHttpParams(t,m,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}setStatus(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==s)throw new Error("Required parameter status was null or undefined when calling setStatus.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"status"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}sponsorMember(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=m&&(t=this.addToHttpParams(t,m,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}updateSponsorshipValidity(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==s)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"member")),null!=s&&(t=this.addToHttpParams(t,s,"sponsor")),null!=m&&(t=this.addToHttpParams(t,m,"validityTo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}validateMemberAsync(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),ue=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}createOwner(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteOwner(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"owner")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAllOwners(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getOwnerById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getOwnerByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),we=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}sentMessageToRTWithMemberQueue(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==m)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"memberId")),null!=s&&(i=this.addToHttpParams(i,s,"queue")),null!=m&&(i=this.addToHttpParams(i,m,"subject")),null!=l&&(i=this.addToHttpParams(i,l,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sentMessageToRTWithQueue(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==m)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"queue")),null!=s&&(t=this.addToHttpParams(t,s,"subject")),null!=m&&(t=this.addToHttpParams(t,m,"text"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}sentMessageToRTWithVo(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==m)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"voId")),null!=s&&(t=this.addToHttpParams(t,s,"subject")),null!=m&&(t=this.addToHttpParams(t,m,"text"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}sentMessageToRTWithVoQueue(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==m)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"voId")),null!=s&&(i=this.addToHttpParams(i,s,"queue")),null!=m&&(i=this.addToHttpParams(i,m,"subject")),null!=l&&(i=this.addToHttpParams(i,l,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),E=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addApplicationMailForGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}addApplicationMailForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}addGroupsToAutoRegistration(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}approveApplication(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}checkForSimilarRichIdentities(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}checkForSimilarUsersWithAuthInfo(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}consolidate(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}consolidateIdentityUsingToken(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}copyFormFromGroupToGroup(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyFormFromGroupToVo(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyFormFromVoToGroup(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyFormFromVoToVo(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyMailsFromGroupToGroup(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyMailsFromGroupToVo(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromGroup")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyMailsFromVoToGroup(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyMailsFromVoToVo(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"fromVo")),null!=s&&(n=this.addToHttpParams(n,s,"toVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createApplicationFormInGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}createApplicationFormInVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteApplication(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteApplicationMailForGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==s)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteApplicationMailForVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==s)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"id"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteGroupsFromAutoRegistration(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getApplicationById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getApplicationDataById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getApplicationMailsForGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getApplicationMailsForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getApplicationsForGroup(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"group")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"state[]")}),null!=m&&(i=this.addToHttpParams(i,m,"dateFrom")),null!=l&&(i=this.addToHttpParams(i,l,"dateTo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getApplicationsForMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getApplicationsForVo(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"state[]")}),null!=m&&(i=this.addToHttpParams(i,m,"dateFrom")),null!=l&&(i=this.addToHttpParams(i,l,"dateTo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getApplicationsPage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getConsolidatorToken(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getFormItemsForGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFormItemsForGroupWithType(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFormItemsForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFormItemsForVoWithType(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"type"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupApplicationForm(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupsToAutoRegistration(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoApplicationForm(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}rejectApplication(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),null!=s&&(n=this.addToHttpParams(n,s,"reason"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}sendInvitation(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let i=new e.LE({encoder:this.encoder});null!=m&&(i=this.addToHttpParams(i,m,"voId")),null!=l&&(i=this.addToHttpParams(i,l,"name")),null!=r&&(i=this.addToHttpParams(i,r,"email")),null!=s&&(i=this.addToHttpParams(i,s,"language"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}sendInvitationForGroup(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==s)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new e.LE({encoder:this.encoder});null!=m&&(a=this.addToHttpParams(a,m,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"groupId")),null!=o&&(a=this.addToHttpParams(a,o,"name")),null!=r&&(a=this.addToHttpParams(a,r,"email")),null!=s&&(a=this.addToHttpParams(a,s,"language"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}sendInvitationGroupToExistingUser(r,s,m,l="body",o=!1,n){let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"userId")),null!=s&&(t=this.addToHttpParams(t,s,"voId")),null!=m&&(t=this.addToHttpParams(t,m,"groupId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}sendInvitationToExistingUser(r,s,m="body",l=!1,o){let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"userId")),null!=s&&(n=this.addToHttpParams(n,s,"voId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}sendMessage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}setSendingEnabled(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}submitApplication(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateApplicationMail(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateForm(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateFormItemData(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateFormItemsData(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateFormItemsForGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateFormItemsForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}verifyApplication(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),O=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}activateGroupResourceAssignment(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),null!=s&&(t=this.addToHttpParams(t,s,"resource")),null!=m&&(t=this.addToHttpParams(t,m,"async"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}addAdminToGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addAdminToUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addResourceSelfServiceGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addResourceSelfServiceUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}allowGroupsToResources(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});r&&r.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"groups[]")}),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"resources[]")}),null!=m&&(t=this.addToHttpParams(t,m,"async"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}assignGroupToResource(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),null!=s&&(a=this.addToHttpParams(a,s,"resource")),null!=m&&(a=this.addToHttpParams(a,m,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=o&&(a=this.addToHttpParams(a,o,"autoAssignSubgroups"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignGroupToResources(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"group")),s&&s.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"resources[]")}),null!=m&&(a=this.addToHttpParams(a,m,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=o&&(a=this.addToHttpParams(a,o,"autoAssignSubgroups"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignGroupsToResource(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new e.LE({encoder:this.encoder});r&&r.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"groups[]")}),null!=s&&(a=this.addToHttpParams(a,s,"resource")),null!=m&&(a=this.addToHttpParams(a,m,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=o&&(a=this.addToHttpParams(a,o,"autoAssignSubgroups"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}assignResourceTagToResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}assignService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling assignService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}assignServices(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==s)throw new Error("Required parameter services was null or undefined when calling assignServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}assignServicesPackage(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==s)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}copyResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createResource(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==m)throw new Error("Required parameter name was null or undefined when calling createResource.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"facility")),null!=m&&(i=this.addToHttpParams(i,m,"name")),null!=l&&(i=this.addToHttpParams(i,l,"description"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}createResourceTagWithResourceTag(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createResourceTagWithTagName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"tagName")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deactivateGroupResourceAssignment(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteAllResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteAllResourcesTagsForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}deleteResourceTag(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getAdminGroups(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAdmins(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"onlyDirectAdmins"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAllResourcesByResourceTag(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getAllResourcesTagsForResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllResourcesTagsForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllResourcesWhereUserIsAdmin(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllowedMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllowedResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllowedUsersOfResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedGroups(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"member"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAssignedMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedMembersWithStatus(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedResourcesWithGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedResourcesWithMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedResourcesWithStatus(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichMembers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichResourcesWithGroup(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichResourcesWithMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichResourcesWithMemberService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAssignedServicesToResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getBansForMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getBansForResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getEnrichedResourceById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"id")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getEnrichedResourcesForFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getEnrichedResourcesForVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupAssignments(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getMailingServiceRichResourcesWithMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourceAssignments(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceBan(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourceBanById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourceById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourceByName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==m)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=m&&(t=this.addToHttpParams(t,m,"name"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourcesByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourcesCountForAll(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getResourcesCountForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getResourcesFromVoWhereUserIsAdmin(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getResourcesWhereGroupIsAdmin(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==m)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=m&&(t=this.addToHttpParams(t,m,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getResourcesWhereUserIsAdmin(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==m)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"facility")),null!=s&&(t=this.addToHttpParams(t,s,"vo")),null!=m&&(t=this.addToHttpParams(t,m,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getRichAdmins(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==s)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==m)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"resource")),s&&s.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"specificAttributes")}),null!=m&&(i=this.addToHttpParams(i,m,"allUserAttributes")),null!=l&&(i=this.addToHttpParams(i,l,"onlyDirectAdmins"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getRichResourceById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichResourcesByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling getVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeAllResourceTagsFromResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeBanByMemberAndResource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupAdminResource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupFromResource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupFromResources(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeGroupsFromResource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeResourceBanById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeResourceSelfServiceGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"group"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeResourceSelfServiceUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeResourceTagFromResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}removeService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==s)throw new Error("Required parameter service was null or undefined when calling removeService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeServices(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==s)throw new Error("Required parameter services was null or undefined when calling removeServices.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeServicesPackage(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==s)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"servicesPackage"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUserAdminResource(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"resource")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}setResourceBan(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}unallowGroupsFromResources(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==s)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let n=new e.LE({encoder:this.encoder});r&&r.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}updateResource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateResourceBan(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateResourceTag(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),H=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}getAttributesMatchResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getAttributesResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getFacilities(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getMembersByUserAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getUsersSearcher(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),W=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addDestination(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==m)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"service")),null!=s&&(a=this.addToHttpParams(a,s,"facility")),null!=m&&(a=this.addToHttpParams(a,m,"destination")),null!=l&&(a=this.addToHttpParams(a,l,"type")),null!=o&&(a=this.addToHttpParams(a,o,"propagationType"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}addDestinationToMultipleServices(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}addDestinationsDefinedByHostsOnFacilityWithFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addDestinationsForAllServicesOnFacility(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==m)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"destination")),null!=m&&(i=this.addToHttpParams(i,m,"type")),null!=l&&(i=this.addToHttpParams(i,l,"propagationType"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}addRequiredAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addRequiredAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addServiceToServicesPackage(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==s)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}blockAllServicesOnDestinationById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}blockAllServicesOnDestinationByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==s)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=s&&(n=this.addToHttpParams(n,s,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}blockAllServicesOnFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}blockServiceOnDestination(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}blockServiceOnDestinationWithNameAndType(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==m)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"destination")),null!=m&&(t=this.addToHttpParams(t,m,"destinationType"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}blockServiceOnFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createService(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==s)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==m)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"name")),null!=s&&(t=this.addToHttpParams(t,s,"description")),null!=m&&(t=this.addToHttpParams(t,m,"script"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}createServiceWithService(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createServicesPackage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createServicesPackageByNameAndDescription(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==s)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"description"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteService(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling deleteService.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteServicesPackage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}forceServicePropagation(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAllDestinations(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getAllRichDestinationsForFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllRichDestinationsForService(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedResources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedServices(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedServicesVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"facility")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getDataWithGroups(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getDataWithVos(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getDestinationById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getDestinations(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getDestinationsCount(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getFacilitiesDestinations(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityAssignedServicesForGUI(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFlatData(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getHashedDataWithGroups(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=m&&(t=this.addToHttpParams(t,m,"consentEval"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getHashedHierarchicalData(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"facility")),null!=m&&(t=this.addToHttpParams(t,m,"consentEval"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getHierarchicalData(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getRichDestinations(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getServiceById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServiceByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServices(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getServicesBlockedOnDestination(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServicesBlockedOnFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServicesByAttributeDefinition(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServicesFromServicesPackage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServicesPackageById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServicesPackageByName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getServicesPackages(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}isServiceBlockedOnDestination(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}isServiceBlockedOnFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}planServicePropagation(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeAllDestinations(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeAllRequiredAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeDestination(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==m)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"service")),null!=s&&(i=this.addToHttpParams(i,s,"facility")),null!=m&&(i=this.addToHttpParams(i,m,"destination")),null!=l&&(i=this.addToHttpParams(i,l,"type"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}removeRequiredAttribute(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"attributeId"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeRequiredAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeServiceFromServicesPackage(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==s)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"servicesPackage")),null!=s&&(n=this.addToHttpParams(n,s,"service"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}unblockAllServicesOnDestinationById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}unblockAllServicesOnDestinationByName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==s)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"destination")),null!=s&&(n=this.addToHttpParams(n,s,"destinationType"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}unblockAllServicesOnFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}unblockServiceOnDestinationById(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}unblockServiceOnDestinationByName(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==m)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"service")),null!=s&&(t=this.addToHttpParams(t,s,"destination")),null!=m&&(t=this.addToHttpParams(t,m,"destinationType"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}unblockServiceOnFacility(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}updateService(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateServicesPackage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),$=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}countTasks(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}deleteTask(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteTaskResultById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteTaskResultsIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteTaskResultsNames(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getAllFacilitiesStates(r,s="body",m=!1,l){let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAllResourcesState(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"voId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityServicesState(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getFacilityState(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getTask(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getTaskById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getTaskResultById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"taskResult"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getTaskResults(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getTaskResultsByTask(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getTaskResultsForDestinations(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"destinations[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getTaskResultsForGUIByTask(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getTaskResultsForGUIByTaskAndDestination(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==s)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"task")),null!=s&&(n=this.addToHttpParams(n,s,"destination"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}isThereSuchTask(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"service")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}listAllTasks(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}listAllTasksForFacility(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}suspendTasksPropagation(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"suspend"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),de=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addSpecificUserOwner(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==s)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addUserExtSource(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}anonymizeUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}changeNonAuthzPasswordByToken(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}changePasswordForLogin(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}changePasswordForUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}checkPasswordResetRequestByTokenIsValid(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}checkPasswordStrength(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createAlternativePassword(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}createServiceUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteAlternativePassword(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==m)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"loginNamespace")),null!=m&&(t=this.addToHttpParams(t,m,"passwordId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}deletePasswordForLogin(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deletePasswordForUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}deleteUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}findRichUsers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}findRichUsersWithAttributes(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"searchString")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrsNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}findUsers(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}generateAccountForName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"namespace")),null!=s&&(n=this.addToHttpParams(n,s,"name"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAllRichUsersWithAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"includedSpecificUsers"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getAssignedRichResourcesForUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getGroupsForFacilityWhereUserIsActive(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==s)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"facility"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupsForResourceWhereUserIsActive(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==s)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"resource"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==s)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"vo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getGroupsWhereUserIsAdmin(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getPendingPreferredEmailChanges(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichUserExtSources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichUserWithAttributes(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichUsersByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichUsersWithAttributesByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichUsersWithoutVoWithAttributes(r,s="body",m=!1,l){let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"attrsNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getSpecificUsersByUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getSponsorsForMember(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"member")),s&&s.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getSponsorsForMemberByVoAndLogin(r,s,m,l,o="body",n=!1,t){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==m)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let i=new e.LE({encoder:this.encoder});null!=r&&(i=this.addToHttpParams(i,r,"vo")),null!=s&&(i=this.addToHttpParams(i,s,"extSourceName")),null!=m&&(i=this.addToHttpParams(i,m,"extLogin")),l&&l.forEach(Pt=>{i=this.addToHttpParams(i,Pt,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(a=a.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let Ne="json";return p&&(Ne=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:M,params:i,responseType:Ne,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:n})}getUserByExtSourceNameAndExtLogin(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==s)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extLogin")),null!=s&&(n=this.addToHttpParams(n,s,"extSourceName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getUserById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUserExtSourceByExtLoginAndExtSourceName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==s)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"extSourceName")),null!=s&&(n=this.addToHttpParams(n,s,"extSourceLogin"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserExtSourceById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUserExtSourceByUniqueAttributeValueAndAttributeId(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeId")),null!=s&&(n=this.addToHttpParams(n,s,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==s)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"attributeName")),null!=s&&(n=this.addToHttpParams(n,s,"attributeValue"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getUserExtSources(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUserExtSourcesByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUsers(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getUsersByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUsersBySpecificUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"specificUser"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getUsersPage(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}getVosWhereUserIsAdmin(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVosWhereUserIsMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}isLoginAvailable(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==s)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"loginNamespace")),null!=s&&(n=this.addToHttpParams(n,s,"login"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}loginExist(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeSpecificUserOwner(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==s)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"specificUser"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeUserExtSource(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==s)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"userExtSource")),null!=m&&(t=this.addToHttpParams(t,m,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}requestPreferredEmailChange(r,s,m,l,o,n,t="body",i=!1,a){if(null==r)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==s)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new e.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=s&&(c=this.addToHttpParams(c,s,"email")),null!=m&&(c=this.addToHttpParams(c,m,"lang")),null!=l&&(c=this.addToHttpParams(c,l,"linkPath")),null!=o&&(c=this.addToHttpParams(c,o,"customUrl")),null!=n&&(c=this.addToHttpParams(c,n,"idpFilter"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let Ne=a&&a.httpHeaderAccept;void 0===Ne&&(Ne=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ne&&(p=p.set("Accept",Ne));let Pt=a&&a.context;void 0===Pt&&(Pt=new e.qT);let Ut="json";return Ne&&(Ut=Ne.startsWith("text")?"text":this.configuration.isJsonMime(Ne)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:Pt,params:c,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:i})}reservePasswordForLogin(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}reservePasswordForUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}reserveRandomPassword(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}setLogin(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==s)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==m)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"user")),null!=s&&(t=this.addToHttpParams(t,s,"login")),null!=m&&(t=this.addToHttpParams(t,m,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}updateUser(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateUserExtSourceLastAccess(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}validatePasswordForLogin(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"login")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}validatePasswordForUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==s)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"user")),null!=s&&(n=this.addToHttpParams(n,s,"namespace"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}validatePreferredEmailChangeWithToken(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==s)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"token")),null!=s&&(n=this.addToHttpParams(n,s,"u"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),ye=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}getAppsConfig(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getGuiConfiguration(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunRPCVersion(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunStatistics(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunStatus(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getPerunSystemTimeInMillis(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),xe=(()=>{class N{constructor(r,s,m){this.httpClient=r,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,m&&(this.configuration=m),"string"!=typeof this.configuration.basePath&&("string"!=typeof s&&(s=this.basePath),this.configuration.basePath=s),this.encoder=this.configuration.encoder||new d}addToHttpParams(r,s,m){return"object"!=typeof s||s instanceof Date?this.addToHttpParamsRecursive(r,s,m):this.addToHttpParamsRecursive(r,s)}addToHttpParamsRecursive(r,s,m){if(null==s)return r;if("object"==typeof s)if(Array.isArray(s))s.forEach(l=>r=this.addToHttpParamsRecursive(r,l,m));else if(s instanceof Date){if(null==m)throw Error("key may not be null if value is Date");r=r.append(m,s.toISOString().substr(0,10))}else Object.keys(s).forEach(l=>r=this.addToHttpParamsRecursive(r,s[l],null!=m?`${m}.${l}`:l));else{if(null==m)throw Error("key may not be null if value is not object or array");r=r.append(m,s)}return r}addMemberVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addSponsorRoleToGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addSponsorRoleToUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addVoAdminGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}addVoAdminUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createVoWithName(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==s)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"name")),null!=s&&(n=this.addToHttpParams(n,s,"shortName"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}createVoWithVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}deleteVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"force"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}findCandidates(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"id")),null!=s&&(t=this.addToHttpParams(t,s,"searchString")),null!=m&&(t=this.addToHttpParams(t,m,"maxNumOfResults"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}findCandidatesForGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==s)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"group")),null!=s&&(n=this.addToHttpParams(n,s,"searchString"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getAllVos(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getCompleteCandidatesForGroup(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==m)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"group")),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrNames[]")}),null!=m&&(t=this.addToHttpParams(t,m,"searchString"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getCompleteCandidatesForVo(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==m)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),s&&s.forEach(Ne=>{t=this.addToHttpParams(t,Ne,"attrNames[]")}),null!=m&&(t=this.addToHttpParams(t,m,"searchString"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getEnrichedVoById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMemberVos(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getMyEnrichedVos(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getMyVos(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}getParentVos(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getRichAdminsForVo(r,s,m,l,o,n="body",t=!1,i){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==m)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new e.LE({encoder:this.encoder});null!=r&&(a=this.addToHttpParams(a,r,"vo")),null!=s&&(a=this.addToHttpParams(a,s,"role")),m&&m.forEach(Ut=>{a=this.addToHttpParams(a,Ut,"specificAttributes")}),null!=l&&(a=this.addToHttpParams(a,l,"allUserAttributes")),null!=o&&(a=this.addToHttpParams(a,o,"onlyDirectAdmins"));let p,c=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(c=c.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(c=c.set("Authorization","Bearer "+p));let M=i&&i.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(c=c.set("Accept",M));let Ne=i&&i.context;void 0===Ne&&(Ne=new e.qT);let Pt="json";return M&&(Pt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:Ne,params:a,responseType:Pt,withCredentials:this.configuration.withCredentials,headers:c,observe:n,reportProgress:t})}getVoAdminGroups(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"role"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}getVoAdminUsers(r,s,m,l="body",o=!1,n){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==s)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==m)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=r&&(t=this.addToHttpParams(t,r,"vo")),null!=s&&(t=this.addToHttpParams(t,s,"role")),null!=m&&(t=this.addToHttpParams(t,m,"onlyDirectAdmins"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let c=n&&n.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(i=i.set("Accept",c));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return c&&(M=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:i,observe:l,reportProgress:o})}getVoBanById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoBanForMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoBansForVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoById(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter id was null or undefined when calling getVoById.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoByShortName(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"shortName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVoMembersCountsByStatus(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVosByIds(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let o=new e.LE({encoder:this.encoder});r&&r.forEach(p=>{o=this.addToHttpParams(o,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}getVosCount(r="body",s=!1,m){let o,l=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(l=l.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(l=l.set("Authorization","Bearer "+o));let n=m&&m.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=m&&m.context;void 0===t&&(t=new e.qT);let i="json";return n&&(i=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:i,withCredentials:this.configuration.withCredentials,headers:l,observe:r,reportProgress:s})}removeMemberVo(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==s)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"memberVo"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeSponsorRoleFromGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeSponsorRoleFromUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeVoAdminGroup(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==s)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"authorizedGroup"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeVoAdminUser(r,s,m="body",l=!1,o){if(null==r)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=r&&(n=this.addToHttpParams(n,r,"vo")),null!=s&&(n=this.addToHttpParams(n,s,"user"));let i,t=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(t=t.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(t=t.set("Authorization","Bearer "+i));let a=o&&o.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=o&&o.context;void 0===c&&(c=new e.qT);let p="json";return a&&(p=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:c,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:m,reportProgress:l})}removeVoBan(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}removeVoBanForMember(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let o=new e.LE({encoder:this.encoder});null!=r&&(o=this.addToHttpParams(o,r,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(n=n.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return i&&(c=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:a,params:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:n,observe:s,reportProgress:m})}setVoBan(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}updateVo(r,s="body",m=!1,l){if(null==r)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let n,o=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(o=o.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(o=o.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(o=o.set("Accept",t));let i=l&&l.context;void 0===i&&(i=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(o=o.set("Content-Type",c));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,r,{context:i,responseType:p,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:m})}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},N.\u0275prov=A.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const he={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},ge={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let me=(()=>{class N{constructor(r,s){if(r)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!s)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(r){return{ngModule:N,providers:[{provide:C,useFactory:r}]}}}return N.\u0275fac=function(r){return new(r||N)(A.LFG(N,12),A.LFG(e.eN,8))},N.\u0275mod=A.oAB({type:N}),N.\u0275inj=A.cJS({}),N})()},19516:(Je,pe,h)=>{"use strict";h.d(pe,{bY:()=>te.b,r5:()=>C.r,d4:()=>A,dp:()=>w.d});var e=h(36895),d=h(94650);let A=(()=>{class fe{}return fe.\u0275fac=function(we){return new(we||fe)},fe.\u0275mod=d.oAB({type:fe}),fe.\u0275inj=d.cJS({imports:[e.ez]}),fe})();var w=h(31359),C=(h(34447),h(82895)),te=(h(69773),h(12856),h(20919),h(5865),h(38993),h(86349),h(53561),h(16119),h(7598),h(9954),h(4765))},34447:(Je,pe,h)=>{"use strict";h.d(pe,{a:()=>w});var e=h(32080),d=h(94650),A=h(89383);let w=(()=>{class g{constructor(T,v){this.translate=T,this.storage=v}transform(T,v="en"){const R=this.storage.get("custom_labels");if(R)for(const U of R)if(U.label===T)return U[v];return T}}return g.\u0275fac=function(T){return new(T||g)(d.Y36(A.sK,16),d.Y36(e.d6,16))},g.\u0275pipe=d.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},4765:(Je,pe,h)=>{"use strict";h.d(pe,{b:()=>d});var e=h(94650);let d=(()=>{class A{transform(g){return g.namespace.includes("virt")||g.namespace.includes("core")||g.namespace.includes("entityless")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:A,pure:!0}),A})()},82895:(Je,pe,h)=>{"use strict";h.d(pe,{r:()=>d});var e=h(94650);let d=(()=>{class A{transform(g,C){return C?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"getResourceRoute",type:A,pure:!0}),A})()},82514:(Je,pe,h)=>{"use strict";h.d(pe,{F:()=>d});var e=h(94650);let d=(()=>{class A{transform(g,C,T){let v;switch(g){case"VALID":v="green";break;case"INVALID":v="red";break;default:v=""}return`${v}${T||C?" cursor-default":""}`}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:A,pure:!0}),A})()},28764:(Je,pe,h)=>{"use strict";h.d(pe,{F:()=>w});var e=h(9244),d=h(64080),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const v=(0,e.IL)(T.attributes,d.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(T.attributes,d.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=R.value;if("true"===v.value){const V=(0,e.IL)(T.attributes,d.r.GROUP_LAST_SYNC_STATE),Y=(0,e.IL)(T.attributes,d.r.GROUP_LAST_SYNC_TIMESTAMP),X=V.value,ne=Y.value;return null!=X&&X.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}if(U){const V=(0,e.IL)(T.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_STATE),Y=(0,e.IL)(T.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),X=V.value,ne=Y.value;return null!=X&&X.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}return""}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:(Je,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(64080),d=h(9244),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"";const v=(0,d.IL)(T.attributes,e.r.GROUP_SYNC_ENABLED),R=(0,d.IL)(T.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"";const U=R.value;if("true"===v.value){const V=(0,d.IL)(T.attributes,e.r.GROUP_LAST_SYNC_STATE),Y=(0,d.IL)(T.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),X=V.value,ne=Y.value;return null!=X&&X.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}if(U){const V=(0,d.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),Y=(0,d.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),X=V.value,ne=Y.value;return null!=X&&X.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:(Je,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(9244),d=h(64080),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const v=(0,e.IL)(T.attributes,d.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(T.attributes,d.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===v&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=R.value;if("true"===v.value){const V=(0,e.IL)(T.attributes,d.r.GROUP_LAST_SYNC_STATE),Y=(0,e.IL)(T.attributes,d.r.GROUP_LAST_SYNC_TIMESTAMP),X=V.value,ne=Y.value;return null!=X&&X.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ne&&ne.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(U){const V=(0,e.IL)(T.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_STATE),Y=(0,e.IL)(T.attributes,d.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),X=V.value,ne=Y.value;return null!=X&&X.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ne&&ne.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},86349:(Je,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(9244),d=h(94650),A=h(89383);let w=(()=>{class g{constructor(T){this.translate=T}transform(T,v){const R=(0,e.zr)(T);return"INDIRECT"===R?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):v||"UNALTERABLE"!==R?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return g.\u0275fac=function(T){return new(T||g)(d.Y36(A.sK,16))},g.\u0275pipe=d.Yjl({name:"memberCheckboxLabel",type:g,pure:!0}),g})()},20919:(Je,pe,h)=>{"use strict";h.d(pe,{D:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.g$)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(Je,pe,h)=>{"use strict";h.d(pe,{p:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.lt)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(Je,pe,h)=>{"use strict";h.d(pe,{M:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.Gw)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},38993:(Je,pe,h)=>{"use strict";h.d(pe,{n:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C,T){const v=(0,e.zr)(C);return"INDIRECT"===v||!T&&"UNALTERABLE"===v}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"memberStatusDisabled",type:w,pure:!0}),w})()},69773:(Je,pe,h)=>{"use strict";h.d(pe,{u:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){const T=(0,e.zr)(C);let v;switch(C.status){case"VALID":v="green";break;case"INVALID":v="red";break;case"DISABLED":v="black";break;default:return""}return`${v}${"UNALTERABLE"===T?" cursor-default":""}`}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"memberStatusIconColor",type:w,pure:!0}),w})()},21757:(Je,pe,h)=>{"use strict";h.d(pe,{f:()=>d});var e=h(94650);let d=(()=>{class A{transform(g){switch(g){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return g}}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:A,pure:!0}),A})()},12856:(Je,pe,h)=>{"use strict";h.d(pe,{i:()=>w});var e=h(9244),d=h(94650),A=h(89383);let w=(()=>{class g{constructor(T){this.translate=T}transform(T,v,R){let U=null,_=null;T.memberAttributes&&(U=T.memberAttributes.find(X=>"membershipExpiration"===X.friendlyName),_=T.memberAttributes.find(X=>"groupMembershipExpiration"===X.friendlyName));let V="";V=v?`\n Group status: ${(0,e.Oe)(T.groupStatus)}\n Expiration: ${_?.value??"never"}`:T.memberAttributes?`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}\n Expiration: ${U?.value??"never"}`:`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}`;const Y=(0,e.zr)(T);return R?V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===Y&&v?V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!v&&"UNALTERABLE"===Y&&(V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),V}}return g.\u0275fac=function(T){return new(T||g)(d.Y36(A.sK,16))},g.\u0275pipe=d.Yjl({name:"memberStatusTooltip",type:g,pure:!0}),g})()},20551:(Je,pe,h)=>{"use strict";h.d(pe,{l:()=>d});var e=h(94650);let d=(()=>{class A{transform(g){return g.replace("VALID","ACTIVE")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"memberStatus",type:A,pure:!0}),A})()},64597:(Je,pe,h)=>{"use strict";h.d(pe,{R:()=>d});var e=h(94650);let d=(()=>{class A{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:A,pure:!0}),A})()},62383:(Je,pe,h)=>{"use strict";h.d(pe,{M:()=>A});var e=h(36895),d=h(94650);let A=(()=>{class w{transform(C,T){return"voRules"===C?"Vo rules":"groupRules"===C?"Group rules":C&&"never"!==C.toLowerCase()?(0,e.p6)(C.replace(" ","T"),"d.M.yyyy "+(T?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:(Je,pe,h)=>{"use strict";h.d(pe,{J:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.te)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.kN)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(Je,pe,h)=>{"use strict";h.d(pe,{d:()=>d});var e=h(94650);let d=(()=>{class A{transform(g){return[g.titleBefore,g.firstName,g.middleName,g.lastName,g.titleAfter].join(" ")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"userFullName",type:A,pure:!0}),A})()},7598:(Je,pe,h)=>{"use strict";h.d(pe,{g:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.$0)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(Je,pe,h)=>{"use strict";h.d(pe,{Z:()=>A});var e=h(9244),d=h(94650);let A=(()=>{class w{transform(C){return(0,e.OV)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=d.Yjl({name:"userVo",type:w,pure:!0}),w})()},32080:(Je,pe,h)=>{"use strict";h.d(pe,{yC:()=>ye,F5:()=>$,sM:()=>Ze,eE:()=>ge,e8:()=>_,EB:()=>fe,Be:()=>et,Hy:()=>P,ly:()=>he,fb:()=>_t,xw:()=>se,x4:()=>w,v0:()=>X,SZ:()=>xe,V6:()=>de,jq:()=>He,BN:()=>G,Ip:()=>st,HV:()=>Te,d6:()=>v,UA:()=>ze});var e=h(32105),d=h(45323),A=h(94650);let w=(()=>{class ae{constructor(Q){this.authzSevice=Q,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(Q){this.principal=Q,this.initData(Q)}setPerunPolicies(Q){this.perunPolicies=Q}getPerunPolicies(){return this.perunPolicies}isAuthorized(Q,me){if(null===this.principal.roles)return!1;const N=this.fetchPolicyWithAllIncludedPolicies(Q);let L=[];for(const s of N)L=L.concat(s.perunRoles);const r=this.fetchAllRelatedObjects(me);return this.resolveAuthorization(L,r)}principalHasRole(Q,me,N){let L=me;return me.startsWith("Rich")&&(L=me.substring(4)),!(!this.principal.roles[Q]||!this.principal.roles[Q][L])&&this.principal.roles[Q][L].includes(Number(N.toString()))}canManageFacilities(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER,d.u.FACILITYADMIN,d.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(d.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.VOADMIN)}isThisVoAdminOrObserver(Q){return this.editableVos.includes(Number(Q.toString()))||this.observableVos.includes(Number(Q.toString()))||this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER)}isThisVoAdmin(Q){return this.editableVos.includes(Q)||this.principalRoles.has(d.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(d.u.SPONSOR)}isThisGroupAdmin(Q){return this.editableGroups.includes(Q)||this.principalRoles.has(d.u.PERUNADMIN)}isGroupAdminInThisVo(Q){return this.hasGroupInTheseVos.includes(Q)}isFacilityAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.FACILITYADMIN)}isThisFacilityAdmin(Q){return this.editableFacilities.includes(Q)||this.principalRoles.has(d.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(d.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.VOOBSERVER,d.u.PERUNOBSERVER)}isThisVoObserver(Q){return this.hasAtLeastOne(d.u.PERUNADMIN,d.u.PERUNOBSERVER)||this.observableVos.includes(Q)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((Q,me)=>{this.authzSevice.getAllRolesManagementRules().subscribe(N=>{this.allRolesManagementRules=N,Q()},N=>me(N))})}assignAvailableRoles(Q,me){this.allRolesManagementRules.forEach(N=>{N.primaryObject===me&&Q.push(N.roleName)}),Q.sort(),"Vo"===me&&this.voCustomSort(Q)}isManagerPagePrivileged(Q){const me=[];let N=Q.beanName;N.startsWith("Rich")&&(N=N.substring(4)),this.assignAvailableRoles(me,N);const L=new Map;this.setRolesAuthorization(me,Q,L);for(const r of L.values())if(r.readAuth||r.manageAuth)return!0;return!1}setRolesAuthorization(Q,me,N){for(const L of Q){let r=[],s=[],m=[];for(const i of this.allRolesManagementRules)if(i.roleName===L){r=r.concat(i.privilegedRolesToRead),s=s.concat(i.privilegedRolesToManage);for(const a of Object.keys(i.entitiesToManage))m="User"===a?[a].concat(m):m.concat(a);break}const l=this.fetchAllRelatedObjects([me]),o=this.resolveAuthorization(r,l),n=this.resolveAuthorization(s,l);N.set(L,{readAuth:o,manageAuth:n,modes:m})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(Q){for(const me of this.allRolesManagementRules)if(me.roleName===Q)return me.primaryObject;return""}resolveAuthorization(Q,me){for(const N of Q){let L=!0;for(const r of Object.keys(N)){const s=N[r];if(null===s)this.principalRoles.has(r)||(L=!1);else if(me[s]){for(const m of me[s])if(!this.principalHasRole(r,s,m)){L=!1;break}}else L=!1;if(!L)break}if(L)return!0}return!1}getPerunPolicy(Q){for(const me of this.perunPolicies)if(me.policyName===Q)return me;return null}fetchAllRelatedObjects(Q){const me={};for(const N of Q){let L=N.beanName;switch(N.beanName.startsWith("Rich")&&(L=N.beanName.substring(4)),me[L]?me[L].push(N.id):me[L]=[N.id],L){case"Member":me.User?me.User.push(N.userId):me.User=[N.userId],me.Vo?me.Vo.push(N.voId):me.Vo=[N.voId];break;case"Group":case"ResourceTag":me.Vo?me.Vo.push(N.voId):me.Vo=[N.voId];break;case"Resource":me.Facility?me.Facility.push(N.facilityId):me.Facility=[N.facilityId],me.Vo?me.Vo.push(N.voId):me.Vo=[N.voId]}}return me}fetchPolicyWithAllIncludedPolicies(Q){const me=new Map;let N=[];for(N.push(Q);0!==N.length;){const r=N.shift();if(me.has(r))continue;const s=this.getPerunPolicy(r);if(!s)return[];me.set(r,s),N=N.concat(s.includePolicies)}const L=[];for(const r of me.values())L.push(r);return L}voCustomSort(Q){for(let me=0;me{class ae{constructor(){this.branding=""}setInstanceConfig(Q){this.instanceConfig=Q}setDefaultConfig(Q){this.defaultConfig=Q}getAppsConfig(){return this.appsConfig}setAppsConfig(Q){this.appsConfig=Q}setPerunPrincipal(Q){this.principal=Q}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(Q){this.initialPageId=Q}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(Q){this.branding=Q}skipOidc(){return this.getProperty("skip_oidc")}getProperty(Q){const me=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let N=null;for(const L of me)L&&!N&&(N=L[Q]);return N}get(...Q){let me;if(""!==this.branding){const N=this.instanceConfig.brandings[this.branding];for(let L=0;L{class ae{constructor(Q,me,N,L,r){this.injector=Q,this.store=me,this.dialog=N,this.route=L,this.oauthService=r,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const Q=this.setIdpFilter(),L=.5+.25*Math.random(),r=Q?{acr_values:Q}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt?r.prompt+=" login":r.prompt="login",r.max_age="0"),"Linker"===this.store.getProperty("application")){r.prompt?r.prompt+=" login":r.prompt="login";const s=(0,T.O5)("idphint",location.search.substring(1));s&&(r.idphint=s)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:L,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:r}}setIdpFilter(){const Q=location.search.substring(1).split("&");this.filterShortname=null;const me=this.store.get("oidc_client","filters");if(!me)return null;let N=null;return Q.forEach(L=>{const r=L.split("=");"idpFilter"===r[0]&&me[r[1]]&&(this.filterShortname=r[1],N=me[r[1]])}),me.default&&!N?(this.filterShortname="default",me.default):N}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const Q=location.pathname,me=location.search.substring(1);return"/api-callback"===Q?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(Q,me).then(N=>N?this.startRefreshToken():new Promise(L=>L(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(Q=>!!Q&&(this.oauthService.events.pipe((0,g.h)(me=>"token_expires"===me.type&&"access_token"===me.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const Q=sessionStorage.getItem("mfa_route");if(Q)return this.router.navigate([Q],{replaceUrl:!0});let me=sessionStorage.getItem("auth:redirect");const N=sessionStorage.getItem("auth:queryParams");let L=[];N&&(L=N.split("&"));const r={};return L.forEach(s=>{const m=s.split("=");r[m[0]]=m[1]}),(!me||"/login"===me)&&(me="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),r.idpFilter&&(this.filterShortname=String(r.idpFilter)),this.router.navigate([me],{queryParams:r,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(Q=>Q instanceof C.m2)).subscribe(()=>{const Q={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===Q.idpFilter?{}:Q,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(Q){const me=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===Q)return!0;for(const N of me)if(Q.startsWith(N))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(Q,me){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(N=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",me),localStorage.removeItem("access_token"),!1):!!N||(this.isPotentiallyValidPath(Q)?(sessionStorage.setItem("auth:redirect",Q),sessionStorage.setItem("auth:queryParams",me),!1):new Promise((L,r)=>r("Invalid path"))))}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(A.zs3),A.LFG(v),A.LFG(R.uw),A.LFG(C.gz),A.LFG(U.Ct))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var V=h(89383);let Y=(()=>{class ae{constructor(Q){this.dialogRef=Q}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.Y36(R.so))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(Q,me){1&Q&&(A.TgZ(0,"h2",0),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Q&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[R.xY,V.X$]}),ae})(),X=(()=>{class ae{constructor(Q,me,N,L,r,s){this.authService=Q,this.storeService=me,this.authResolver=N,this.authzService=L,this.dialog=r,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(Q){this.loginScreenShown=Q}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(Q=>Q(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(Q=>{if(null===Q.user){const me=(0,T.kZ)();this.dialog.open(Y,me)}else{this.storeService.setPerunPrincipal(Q),this.authResolver.init(Q);const me=localStorage.getItem("routeAuthGuard");me&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([me]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(Q=>{this.storeService.setPerunPrincipal(Q)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(Q=>{Q()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const Q=location.search.substr(1).split("&"),me={};for(const N of Q){const L=N.split("=");me[L[0]]=L[1]}return void this.router.navigate(["login"],{queryParams:me,queryParamsHandling:"merge"})}}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(_),A.LFG(v),A.LFG(w),A.LFG(e.Ct),A.LFG(R.uw),A.LFG(C.F0))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var ne=h(97392),le=h(11481);let fe=(()=>{class ae{constructor(Q,me){this.matIconRegistry=Q,this.domSanitizer=me,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(Q=>{this.matIconRegistry.addSvgIcon(Q.name,this.domSanitizer.bypassSecurityTrustResourceUrl(Q.url))})}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(ne.jv),A.LFG(le.H7))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})();var ue=h(80529),we=h(62843),E=h(28746),O=h(18505),H=h(4859);let W=(()=>{class ae{constructor(Q){this.dialogRef=Q}close(){this.dialogRef.close(!0)}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.Y36(R.so))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(Q,me){1&Q&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",2)(7,"div",3)(8,"button",4),A.NdJ("click",function(){return me.close()}),A._uU(9),A.ALo(10,"translate"),A.qZA()()()),2&Q&&(A.xp6(1),A.Oqu(A.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),A.xp6(5),A.hij(" ",A.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[R.uh,R.xY,R.H8,H.lW,V.X$]}),ae})(),$=(()=>{class ae{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const Q=this.handleNextError;return this.handleNextError=!0,Q}}return ae.\u0275fac=function(Q){return new(Q||ae)},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),de=(()=>{class ae{constructor(Q){this.translate=Q,this.addNotification=new A.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(Q,me=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===Q.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===Q.name?me:me+"\n"+Q.name,Q,Q.message)}showRouteError(){const Q=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),me=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(Q,null,me)}showError(Q,me,N,L,r){this.addNotification.emit({type:"error",error:me,description:N,title:Q,actionText:void 0===L&&void 0!==N?this.getDefaultActionMessage():L,delay:this.defaultErrorDelayMs,icon:"error_outline",action:r,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(Q,me,N,L){this.addNotification.emit({type:"success",description:me,title:Q,actionText:void 0===N&&void 0!==me?this.getDefaultActionMessage():N,delay:this.defaultSuccessDelayMs,icon:"done",action:L,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(V.sK))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),ye=(()=>{class ae{constructor(Q,me,N,L,r,s){this.authService=Q,this.apiRequestConfiguration=me,this.notificator=N,this.store=L,this.dialog=r,this.initAuthService=s}intercept(Q,me){const N=this.store.get("api_url");if(Q.url.includes("i18n")&&(Q=Q.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==N&&this.isCallToPerunApi(Q.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=(0,T.kZ)();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(W,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,E.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?Q=Q.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(Q.url)&&(Q=Q.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const L=this.apiRequestConfiguration.shouldHandleError(),r="POST"===Q.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(Q.url);return me.handle(Q).pipe((0,O.b)(s=>{s instanceof ue.Zn&&r&&this.initAuthService.loadPrincipal()},s=>{const m=this.formatErrors(s,Q);return void 0===m?(0,we._)(s):L?void this.notificator.showRPCError(m):(0,we._)(m)}))}isCallToPerunApi(Q){return Q.startsWith(this.store.get("api_url"))}formatErrors(Q,me){let N;console.error(Q);const L=Q.error;if(L.errorId&&(N=L),void 0!==N)return N.urlWithParams=me.urlWithParams,N.call=me.url,N.payload=me.body,N}isNotConsolidatorOrLinker(){const Q=this.store.getProperty("application");return!("Linker"===Q||"Consolidator"===Q)}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(_),A.LFG($),A.LFG(de),A.LFG(v),A.LFG(R.uw),A.LFG(X))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),xe=(()=>{class ae{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(Q){this.newNotificationsCount++,this.notificationData.push(Q)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return ae.\u0275fac=function(Q){return new(Q||ae)},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var Me=h(70262);let Ze=(()=>{class ae{constructor(Q,me,N,L){this.http=Q,this.notificator=me,this.authService=N,this.storeService=L}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let Q=new ue.WM;return Q=Q.set("Authorization",this.authService.getAuthorizationHeaderValue()),Q}get(Q,me=!0){const N=`${this.getApiUrl()}${Q}`;return this.http.get(N,{headers:this.getHeaders()}).pipe((0,Me.K)(L=>this.formatErrors(L,N,null,me)))}put(Q,me={},N=!0){const L=`${this.getApiUrl()}${Q}`,r=JSON.stringify(me);return this.http.put(L,r,{headers:this.getHeaders()}).pipe((0,Me.K)(s=>this.formatErrors(s,L,r,N)))}post(Q,me={},N=!0){const L=`${this.getApiUrl()}${Q}`,r=JSON.stringify(me);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(L,r,{headers:s}).pipe((0,Me.K)(m=>this.formatErrors(m,L,r,N)))}delete(Q,me=!0){const N=`${this.getApiUrl()}${Q}`;return this.http.delete(N,{headers:this.getHeaders()}).pipe((0,Me.K)(L=>this.formatErrors(L,N,null,me)))}formatErrors(Q,me,N,L){const r=Q.error;return r.call=me,r.payload=N,L&&this.notificator.showRPCError(Q.error),(0,we._)(r)}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(ue.eN),A.LFG(de),A.LFG(_),A.LFG(v))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),se=(()=>{class ae{constructor(Q){this.router=Q,this.lastState="forward",this.history=new Set,Q.events.subscribe(me=>{me instanceof C.OD&&("popstate"===me.navigationTrigger?this.history.has(me.restoredState.navigationId)?(this.lastState="back",this.history.delete(me.restoredState.navigationId)):(this.lastState="forward",this.history.add(me.id)):(this.history.add(me.id),this.lastState="forward"))})}forceNavigate(Q,me){if(null===Q)return;let N="";Q.forEach(L=>N+="/"+L),N.length>0&&(N=N.substring(1)),void 0===me&&(me={}),me.queryParams={redirectTo:N},this.router.navigate(["redirect"],me)}getLastState(){return this.lastState}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(C.F0))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),ze=(()=>{class ae{isAllSelectedWithDisabledCheckbox(Q,me,N,L,r,s,m,l){return this.numSelected=Q,this.numCanBeSelected=0,this.pageStart=r*N,this.pageEnd=this.pageStart+N,this.pageIterator=0,this.dataLength=""===me?s.data.length:s.filteredData.length,L||(this.modulo=this.dataLength%N,this.pageEnd=0===this.modulo?this.pageStart+N:this.pageStart+this.modulo),s.sortData(s.filteredData,m).forEach(o=>{this.pageStart<=this.pageIterator&&this.pageIterator{l?o(n)&&this.pageStart<=this.pageIterator&&this.pageIterator{class ae{constructor(Q,me,N,L){this.membersService=Q,this.usersService=me,this.auditMessagesManagerService=N,this.registrarService=L}getMembers(Q,me,N,L,r,s,m,l,o,n){return this.membersService.getMembersPage({vo:Q,attrNames:me,query:{pageSize:r,offset:L*r,order:N,sortColumn:s,statuses:m,searchString:l,groupId:o,groupStatuses:n}})}getUsers(Q,me,N,L,r,s,m,l,o,n,t,i){return this.usersService.getUsersPage({attrNames:Q,query:{offset:L*N,pageSize:L,order:me,sortColumn:r,searchString:s,withoutVo:m,facilityId:l,voId:o,resourceId:n,serviceId:t,onlyAllowed:i}})}getAuditMessages(Q,me,N){return this.auditMessagesManagerService.getMessagesPage({query:{offset:N*me,pageSize:N,order:Q}})}getApplications(Q,me,N,L,r,s,m,l,o,n,t,i,a){return this.registrarService.getApplicationsPage({vo:t,query:{pageSize:Q,offset:me*Q,order:N,sortColumn:L,searchString:s,includeGroupApplications:r,getDetails:a,states:m,dateFrom:l,dateTo:o,userId:n,groupId:i}})}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(e.uq),A.LFG(e.Fv),A.LFG(e.jw),A.LFG(e.tk))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var De=h(61135),j=h(39646);class P{constructor(Oe,Q){this.dynamicPaginatingService=Oe,this.authzService=Q,this.allObjectCount=0,this.routeAuth=!0,this.dataSubject=new De.X([]),this.loadingSubject=new De.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(Oe,Q,me,N,L,r,s,m,l,o){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const n=this.latestQueryTime;this.dynamicPaginatingService.getMembers(Oe,Q,me,N,L,r,s,m,l,o).pipe((0,Me.K)(()=>(0,j.of)([])),(0,E.x)(()=>this.loadingSubject.next(!1))).subscribe(t=>{if(this.latestQueryTime<=n){const i=t.data;null!==i&&0!==i.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:Oe},i[0]])),this.allObjectCount=t.totalCount,this.dataSubject.next(i)}})}loadUsers(Oe,Q,me,N,L,r,s,m,l,o,n,t){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const i=this.latestQueryTime;this.dynamicPaginatingService.getUsers(Oe,N,me,Q,L,r,s,m,l,o,n,t).pipe((0,Me.K)(()=>(0,j.of)([])),(0,E.x)(()=>this.loadingSubject.next(!1))).subscribe(a=>{if(this.latestQueryTime<=i){const c=a.data;this.allObjectCount=a.totalCount,this.dataSubject.next(c)}})}loadAuditMessages(Oe,Q,me){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const N=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(me,Q,Oe).pipe((0,Me.K)(()=>(0,j.of)([])),(0,E.x)(()=>this.loadingSubject.next(!1))).subscribe(L=>{if(this.latestQueryTime<=N){const r=L.data;this.allObjectCount=L.totalCount,this.dataSubject.next(r)}})}loadApplications(Oe,Q,me,N,L,r,s,m,l,o,n,t,i){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const a=this.latestQueryTime;this.dynamicPaginatingService.getApplications(Oe,Q,me,N,r,L,s,m,l,o,t,n,i??!1).pipe((0,Me.K)(()=>(0,j.of)([])),(0,E.x)(()=>this.loadingSubject.next(!1))).subscribe(c=>{if(this.latestQueryTime<=a){const p=c.data;if(null!==p&&0!==p.length){const M=p;this.routeAuth=M[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[M[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[M[0].vo])}this.allObjectCount=c.totalCount,this.dataSubject.next(p)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let G=(()=>{class ae{constructor(Q,me){this.route=Q,this.store=me}getPreferredLanguage(Q){const me=this.store.get("supported_languages"),N=navigator.languages.map(s=>s.split("-")[0]),L=location.search.substring(1).split("&");let r=null;for(const s of L){const m=s.split("=");"lang"===m[0]&&(r=m[1])}return r&&me.includes(r)?r:Q&&me.includes(Q)?Q:N&&me.includes(N[0])?N[0]:"en"}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(C.gz),A.LFG(v))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var ce=h(15861);let q=(()=>{class ae{generatePdf(Q){var me=this;return(0,ce.Z)(function*(){yield me.loadPdfMake(),me.pdfMake.createPdf(Q).open()})()}loadPdfMake(){var Q=this;return(0,ce.Z)(function*(){if(!Q.pdfMake){const me=yield h.e(641).then(h.t.bind(h,54641,23)),N=yield h.e(493).then(h.t.bind(h,58493,19));Q.pdfMake=me.default,Q.pdfMake.vfs=N.default.pdfMake.vfs}})()}}return ae.\u0275fac=function(Q){return new(Q||ae)},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),Te=(()=>{class ae{constructor(Q){this.pdfService=Q}static generateTableForUser(Q){const me=Q.name.replace(";"," ").split(";")[0];return"OK"!==Q.status?this.generateErrorRowForUser(me,Q.status):ae.generateRowForUser(me,Q.login,Q.password)}static generateErrorRowForUser(Q,me){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:Q,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:me,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(Q,me,N){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[ae.generateNameCell(Q),{},ae.getPasswordLabelCell(),ae.generatePasswordCell(N)],[ae.getLoginLabelCell(),ae.generateLoginCell(me),{},{}]]}}}static generateNameCell(Q){return{text:Q,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(Q){return{text:Q??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(Q){return{text:Q??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(Q){var me=this;return(0,ce.Z)(function*(){const N=[];for(const r of Q)N.push(ae.generateTableForUser(r));return me.pdfService.generatePdf({content:N})})()}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(q))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})(),He=(()=>{class ae{constructor(Q){this.storeService=Q}static getBrandContainingDomain(Q,me){for(const N of Q)if(N.newApps.admin===me||N.newApps.profile===me||N.newApps.pwdReset===me||N.newApps.consolidator===me||N.newApps.linker===me)return N;return Q[0]}getUrlForOtherApplication(Q,me){const L=window.location.href.split("/"),r=L[0]+"//"+L[2],s=ae.getBrandContainingDomain(this.storeService.getAppsConfig().brands,r);let m;if(s.newApps[Q])m=s.newApps[Q],"pwdReset"===Q&&(m+=`?login-namespace=${me}`);else switch(m=s.oldGuiDomain+"/fed",Q){case"admin":m+="/gui/";break;case"profile":m+="/profile/";break;case"pwdReset":m+=`/pwd-reset/?login-namespace=${me}`}return m}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(v))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var dt=h(98739);let et=(()=>{class ae extends dt.ye{constructor(){super(...arguments),this.getRangeLabel=function(Q,me,N){let L;return L=N<1e3?String(N):N<1e4?"1 000":N<1e5?"10 000":"100 000",`${Q*me+1} \u2013 ${(Q+1)*me} of ${L} +`}}}return ae.\u0275fac=function(){let Oe;return function(me){return(Oe||(Oe=A.n5z(ae)))(me||ae)}}(),ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac}),ae})(),_t=(()=>{class ae{setEntity(Q){this.entity=Q}getEntity(){return this.entity}}return ae.\u0275fac=function(Q){return new(Q||ae)},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var Qe=h(64080);let st=(()=>{class ae{constructor(Q,me,N,L,r){this.authResolver=Q,this.attributesManager=me,this.notificator=N,this.apiRequest=L,this.router=r,this.routePolicies=new Map([["organizations",s=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[s])],["organizations-members",s=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[s])],["organizations-groups",s=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[s])],["organizations-resources",s=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[s])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[s])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[s])],["organizations-resources-preview",s=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[s])],["organizations-resources-tags",s=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[s])],["organizations-resources-states",s=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[s])],["organizations-applications",s=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[s])],["organizations-sponsoredMembers",s=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[s])],["organizations-serviceAccounts",s=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[s])],["organizations-attributes",s=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[s])],["organizations-statistics",s=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[s])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[s])],["organizations-settings",s=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[s])||this.authResolver.isManagerPagePrivileged(s)||this.authResolver.isThisVoAdminOrObserver(s.id)],["organizations-settings-expiration",s=>this.authResolver.isThisVoAdminOrObserver(s.id)],["organizations-settings-managers",s=>this.authResolver.isManagerPagePrivileged(s)],["organizations-settings-applicationForm",s=>this.authResolver.isThisVoAdminOrObserver(s.id)],["organizations-settings-notifications",s=>this.authResolver.isThisVoAdminOrObserver(s.id)],["organizations-settings-extsources",s=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[s])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",s=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[s])],["members-groups",s=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[s])],["members-applications",s=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[s])],["members-resources",s=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[s])],["members-attributes",s=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[s])],["groups",s=>this.authResolver.isAuthorized("getGroupById_int_policy",[s])],["groups-members",s=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[s])],["groups-subgroups",s=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[s])],["groups-resources",s=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[s])],["groups-applications",s=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[s])],["groups-attributes",s=>this.authResolver.isAuthorized("getGroupById_int_policy",[s])],["groups-statistics",s=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[s])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[s])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[s])],["groups-roles",s=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[s])],["groups-settings",s=>this.authResolver.isManagerPagePrivileged(s)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[s])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[s])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[s])],["groups-settings-managers",s=>this.authResolver.isManagerPagePrivileged(s)],["groups-settings-applicationForm",s=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[s])],["groups-settings-notifications",s=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[s])],["groups-settings-relations",s=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[s])],["groups-settings-extsources",s=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[s])],["groups-settings-expiration",s=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(s.id,Qe.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",s=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[s])],["resources-groups",s=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[s])],["resources-services",s=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[s])],["resources-members",s=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[s])],["resources-tags",s=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[s])],["resources-attributes",s=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[s])],["resources-settings",s=>this.authResolver.isManagerPagePrivileged(s)],["resources-settings-managers",s=>this.authResolver.isManagerPagePrivileged(s)],["facilities",s=>this.authResolver.isAuthorized("getFacilityById_int_policy",[s])],["facilities-resources",s=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[s])],["facilities-allowed-users",s=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[s])],["facilities-allowed-groups",s=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[s])],["facilities-services-status",s=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[s])],["services-status",s=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[s])],["facilities-services-destinations",s=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[s])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",s=>this.authResolver.isAuthorized("getFacilityById_int_policy",[s])],["facilities-settings",s=>this.authResolver.isAuthorized("getOwners_Facility_policy",[s])||this.authResolver.isManagerPagePrivileged(s)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[s])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[s])],["facilities-settings-owners",s=>this.authResolver.isAuthorized("getOwners_Facility_policy",[s])],["facilities-settings-managers",s=>this.authResolver.isManagerPagePrivileged(s)],["facilities-settings-security-teams",s=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[s])],["facilities-settings-blacklist",s=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[s])]])}canNavigate(Q,me){if(Q.startsWith("admin")||Q.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===Q&&-1===me.id)return this.authResolver.canManageFacilities();const N=this.routePolicies.get(Q);return!N||N(me)}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(w),A.LFG(e.H8),A.LFG(de),A.LFG($),A.LFG(C.F0))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})();var Z=h(54004),ve=h(63900),oe=h(4707);let ge=(()=>{class ae{constructor(Q){this.authService=Q,this.roleWithObjects$=new oe.t(1),this.authService.getAllRolesManagementRules().pipe((0,Z.U)(me=>me.filter(N=>N.assignableToAttributes)),(0,ve.w)(me=>{const N=new Map;return me.map(L=>N.set(L.roleName,["None",...Object.keys(L.assignedObjects)])),(0,j.of)(new Map([...N.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return this.roleWithObjects$.pipe((0,ve.w)(Q=>(0,j.of)(Array.from(Q.keys()))))}getObjects(Q){return this.roleWithObjects$.pipe((0,ve.w)(me=>(0,j.of)(me.get(Q))))}filterNullInPolicy(){return function(Q){return Q.pipe((0,Z.U)(me=>(me.forEach(N=>N.policies=N.policies.filter(L=>null!==L.role&&null!==L.object)),me)))}}addAttributeId(){return function(Q){return Q.pipe((0,Z.U)(([me,N])=>(N.forEach(L=>L.attributeId=me),N)))}}}return ae.\u0275fac=function(Q){return new(Q||ae)(A.LFG(e.Ct))},ae.\u0275prov=A.Yz7({token:ae,factory:ae.\u0275fac,providedIn:"root"}),ae})()},64080:(Je,pe,h)=>{"use strict";h.d(pe,{r:()=>e});let e=(()=>{class d{}return d.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",d.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",d.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",d.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",d.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",d.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",d.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",d.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",d.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",d.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",d.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",d.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",d.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",d.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",d.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",d.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",d.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",d.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",d.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",d.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",d.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",d.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",d.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",d.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",d.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",d.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",d.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",d})()},9244:(Je,pe,h)=>{"use strict";h.d(pe,{dN:()=>_,Je:()=>v,f7:()=>R.f7,l9:()=>U.l,sF:()=>R.sF,XI:()=>R.XI,Xd:()=>R.Xd,aC:()=>R.aC,fx:()=>R.fx,dv:()=>R.dv,i5:()=>R.i5,Sd:()=>R.Sd,pR:()=>R.pR,ys:()=>R.ys,O6:()=>R.O6,B2:()=>R.B2,mH:()=>R.mH,MX:()=>R.MX,oU:()=>R.oU,IL:()=>R.IL,Jc:()=>R.Jc,Xn:()=>R.Xn,kZ:()=>R.kZ,v$:()=>R.v$,x2:()=>R.x2,vL:()=>R.vL,j4:()=>R.j4,jh:()=>R.jh,bx:()=>R.bx,im:()=>R.im,zr:()=>R.zr,Hm:()=>R.Hm,Cz:()=>R.Cz,sG:()=>R.sG,g$:()=>R.g$,bD:()=>R.bD,lt:()=>R.lt,Oe:()=>R.Oe,hu:()=>R.hu,Gw:()=>R.Gw,O5:()=>R.O5,te:()=>R.te,kN:()=>R.kN,$0:()=>R.$0,OV:()=>R.OV});var e=h(98739),d=h(28255),A=h(97392),w=h(4859),g=h(89383),C=h(36895),T=h(94650);let v=(()=>{class V{}return V.\u0275fac=function(X){return new(X||V)},V.\u0275mod=T.oAB({type:V}),V.\u0275inj=T.cJS({imports:[e.TU,d.Tx,A.Ps,w.ot,g.aw,C.ez]}),V})();var R=h(17218),U=h(18750);class _{static passwordMatchValidator(Y){const X=Y.get("passwordCtrl").value,ne=Y.get("passwordAgainCtrl").value;return Y.get("passwordAgainCtrl").setErrors(X!==ne?{noPasswordMatch:!0}:null),null}static patternValidator(Y){return X=>{if(!X.value)return null;let ne=0;for(const le of Y)ne+=le.test(X.value)?1:0;return ne>=3?null:{isWeak:!0}}}}},17218:(Je,pe,h)=>{"use strict";h.d(pe,{$0:()=>_,B2:()=>v,Cz:()=>le,Gw:()=>dt,Hm:()=>Te,IL:()=>se,Jc:()=>ze,MX:()=>Me,O5:()=>r,O6:()=>ge,OV:()=>xe,Oe:()=>He,Sd:()=>Z,XI:()=>$,Xd:()=>Oe,Xn:()=>oe,aC:()=>ae,bD:()=>X,bx:()=>L,dv:()=>q,f7:()=>T,fx:()=>Q,g$:()=>R,hu:()=>ne,i5:()=>G,im:()=>s,j4:()=>H,jh:()=>N,kN:()=>U,kZ:()=>ce,lt:()=>V,mH:()=>me,oU:()=>Ze,pR:()=>st,sF:()=>W,sG:()=>_t,te:()=>fe,v$:()=>he,vL:()=>O,x2:()=>et,ys:()=>ue,zr:()=>m});var e=h(15861),d=h(65412),A=h(36895),w=h(94327),C=h(64080);const T=[5,10,25,100],v=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function R(l){let o="";return l?.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(o=n.value)}),o&&0===o.length&&null!==l.memberAttributes&&l.memberAttributes.forEach(n=>{"mail"===n.friendlyName&&null!==n.value&&(o=n.value)}),o}function U(l){let o="";return l&&l.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(o=n.value)}),o}function _(l){let o="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{o=o.concat(n.friendlyNameParameter,": ",n.value,", ")}),o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function V(l){let o="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{o=o.concat(n.friendlyNameParameter,": ",n.value,", ")}),o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function X(l){let o="";return null!==l.titleBefore&&(o+=l.titleBefore+" "),null!==l.firstName&&(o+=l.firstName+" "),null!==l.middleName&&(o+=l.middleName+" "),null!==l.lastName&&(o+=l.lastName+" "),null!==l.titleAfter&&(o+=l.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function ne(l){let o="";return null!==l.firstName&&(o+=l.firstName+" "),null!==l.middleName&&(o+=l.middleName+" "),null!==l.lastName&&(o+=l.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function le(l){let o="";return l.split(/(?=[A-Z])/g).forEach(t=>{o=o.concat(t.toLowerCase()),o=o.concat(" ")}),o=o.charAt(0).toUpperCase()+o.slice(1,o.length-1),o}function fe(l){let o="";for(const n of l)"technical"===n.type&&(o+=n.name+", ");return o.endsWith(", ")&&(o=o.substring(0,o.length-2)),o}function ue(l,o){return we.apply(this,arguments)}function we(){return(we=(0,e.Z)(function*(l,o){yield E(l),o()})).apply(this,arguments)}function E(l){return new Promise(o=>setTimeout(o,l))}function O(l){return JSON.parse(localStorage.getItem(l))||[]}function H(l){return JSON.parse(localStorage.getItem(l))||[]}function W(l,o){if(null===localStorage.getItem(l)){const n=[];n.unshift(o.id),localStorage.setItem(l,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(l)),t=function ye(l,o){for(let n=0;n0&&n.splice(t,1),0!==t&&n.unshift(o.id),n.length>5&&n.pop(),localStorage.setItem(l,JSON.stringify(n))}}function $(l,o){if(null===localStorage.getItem("recent")){let n;n="Group"===l.beanName?[{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:o}]:[{id:l.id,name:l.name,type:l.beanName,voId:l.voId}],localStorage.setItem("recent",JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===l.beanName?{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:o}:{id:l.id,name:l.name,type:l.beanName,voId:l.voId};const i=function de(l,o){for(let n=0;n0&&n.splice(i,1),0!==i&&n.unshift(t),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function xe(l){let o="";return l&&l.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(o=n.value)}),o}function Me(l){return l.filter(o=>!o.namespace.includes("def:core"))}function Ze(l,o){const n=o.find(t=>t.id===l);return n?n.parentGroupId?Ze(n.parentGroupId,o).concat(n):[n]:[]}function se(l,o){for(const n of l)if(n.namespace+":"+n.friendlyName===o)return n;return null}function ze(l){return null!=l.attributes["urn:perun:member:attribute-def:def:mail"]?l.attributes["urn:perun:member:attribute-def:def:mail"]:null!=l.attributes["urn:perun:user:attribute-def:def:preferredMail"]?l.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function he(l){return l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function De(l){if(l.includes("/CN=")){const o=l.split("/");for(const n of o)if(n.startsWith("CN="))return j(n.substring(3))}return l}(l.userExtSource.extSource.name):l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function P(l){switch(l){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return l}}(l.userExtSource.extSource.name):l.userExtSource.extSource.name}function j(l){return decodeURIComponent(l.replace(/\\x/g,"%"))}function G(l=["en","cs"]){const o={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return l.forEach(n=>{o.message[n]={locale:n,htmlFormat:!1,subject:"",text:""},o.htmlMessage[n]={locale:n,htmlFormat:!0,subject:"",text:""}}),o}function ce(){const l=new d.vA;return l.disableClose=!0,l.autoFocus=!1,l}function q(l){const o={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const n of l)o.i18n[n]={locale:n,errorMessage:"",help:"",label:"",options:""};return o}function Te(l){return"virt"===l.namespace.split(":")[4]}function He(l,o){return"valid"!==l.toLowerCase()||o&&"valid"!==l.toLowerCase()?l:"ACTIVE"}function dt(l){let o="";return l?.memberAttributes.forEach(n=>{"organization"===n.friendlyName&&null!==n.value&&(o=n.value)}),0===o.length&&l?.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(o=n.value)}),o}function et(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}function _t(l){return l&&"never"!==l.toLowerCase()?(0,A.p6)(l,"d.M.yyyy","en"):l}const Qe=new Intl.Collator("cs",{numeric:!0});function st(l,o,n){const t=o.active,i=o.direction;return t&&""!==i?l.sort((a,c)=>{const p=n(a,t),M=n(c,t);return Qe.compare(p,M)*("asc"===i?1:-1)}):l}function Z(l,o,n,t,i){o=o.toLowerCase();let a="";return n.forEach(c=>{a+=";"+t(l,c)}),i&&(a+=";"+t(l,"uuid")),a.toLowerCase().includes(o)}function oe(l,o,n){const t=[],i=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(a=>!i.includes(a)),l.forEach(a=>{const c={};o.forEach(p=>{c[p]=(n(a,p)??"").split('"').join("''").trim()}),t.push(c)}),t}function ge(l,o="csv",n="export"){if("csv"===o){const t=(M,Ne)=>null===Ne?"":Ne,i=Object.keys(l[0]),a=l.map(M=>i.map(Ne=>JSON.stringify(M[Ne],t)).join(","));a.unshift(i.join(",").split(" ").join("_").split('"').join("''"));const c=a.join("\r\n"),p=new Blob([c],{type:"text/csv"});(0,w.saveAs)(p,`${n}.${o}`)}}function ae(l,o){return l.name.toLowerCase()>o.name.toLowerCase()?1:l.name.toLowerCase()===o.name.toLowerCase()?0:-1}function Oe(l,o){return l.displayName.toLowerCase()>o.displayName.toLowerCase()?1:l.displayName.toLowerCase()===o.displayName.toLowerCase()?0:-1}function Q(l,o){let n,t;return l.user?(n=l.user.lastName?l.user.lastName:l.user.firstName??"",t=o.user.lastName?o.user.lastName:o.user.firstName??""):(n=l.lastName?l.lastName:l.firstName??"",t=o.lastName?o.lastName:o.firstName??""),n>t?1:n===t?0:-1}function me(l,o,n=[]){l.enable(),l.clearValidators(),l.clearAsyncValidators(),l.setValidators(o),l.setAsyncValidators(n),l.updateValueAndValidity()}function N(l,o){return!!l&&l.some(n=>n.namespace+":"+n.friendlyName===o&&null!==n.value&&"true"===String(n.value))}function L(l){return N(l.attributes,C.r.GROUP_SYNC_ENABLED)||N(l.attributes,C.r.GROUP_STRUCTURE_SYNC_ENABLED)}function r(l,o){const n=o.split("&");for(const t of n){const[i,a]=t.split("=");if(i.includes(l))return a}return""}function s(l){if("INDIRECT"===l.membershipType)return!0;const o=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return!!o&&!o.value}function m(l){if("INDIRECT"===l.membershipType)return"INDIRECT";const o=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return o?o.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Je,pe,h)=>{"use strict";h.d(pe,{l:()=>X});var e=h(94650),d=h(98739),A=h(17218),w=h(10036),g=h(36895),C=h(28255),T=h(97392),v=h(4859),R=h(89383);let U=(()=>{class ne{constructor(){this.exportData=new e.vpe}}return ne.\u0275fac=function(te){return new(te||ne)},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(te,fe){if(1&te&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",5),e.NdJ("click",function(){return fe.exportData.emit("csv")}),e._uU(12,"Csv"),e.qZA()()()),2&te){const ue=e.MAs(5),we=e.MAs(10);e.xp6(1),e.Q6J("matMenuTriggerFor",ue),e.xp6(5),e.Q6J("matMenuTriggerFor",we),e.xp6(1),e.hij(" ",e.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},dependencies:[C.VK,C.OP,C.p6,T.Hw,v.lW,R.X$]}),ne})();function _(ne,le){if(1&ne){const te=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(ue){e.CHM(te);const we=e.oxw();return e.KtG(we.exportData.emit(ue))}),e.qZA()}}function V(ne,le){if(1&ne){const te=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(ue){e.CHM(te);const we=e.oxw();return e.KtG(we.exportData.emit(ue))}),e.qZA()}}const Y=["*"];let X=(()=>{class ne{constructor(te){this.tableConfigService=te,this.hideExport=!1,this.pageSizeOptions=A.f7,this.dataLength=0,this.exportData=new e.vpe,this.pageSize=5}set matPaginator(te){this.paginator=te}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(te){this.pageSize=te.pageSize,this.tableConfigService.setTablePageSize(this.tableId,te.pageSize)}pageChangedBottom(te){this.paginator.pageSize=te.pageSize,this.paginator.pageIndex=te.pageIndex,this.paginator.page.emit(te),this.pageSize=te.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,te.pageSize)}}return ne.\u0275fac=function(te){return new(te||ne)(e.Y36(w.dB))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(te,fe){if(1&te&&e.Gf(d.NW,7),2&te){let ue;e.iGM(ue=e.CRH())&&(fe.matPaginator=ue.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:Y,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(te,fe){1&te&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),e.NdJ("page",function(we){return fe.pageChangedTop(we)}),e.qZA(),e.YNc(3,_,1,0,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1)(7,"mat-paginator",5),e.NdJ("page",function(we){return fe.pageChangedBottom(we)}),e.qZA(),e.YNc(8,V,1,0,"perun-web-apps-table-options",3),e.qZA()()),2&te&&(e.xp6(2),e.Q6J("length",fe.dataLength)("pageSizeOptions",fe.pageSizeOptions)("pageSize",fe.pageSize),e.xp6(1),e.Q6J("ngIf",!fe.hideExport),e.xp6(4),e.Q6J("length",fe.paginator.length)("pageIndex",fe.paginator.pageIndex)("pageSizeOptions",fe.paginator.pageSizeOptions)("pageSize",fe.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!fe.hideExport))},dependencies:[d.NW,g.O5,U]}),ne})()},98380:(Je,pe,h)=>{"use strict";h.d(pe,{w:()=>R});var e=h(94650),d=h(97392),A=h(36895);function w(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function C(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function T(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const v=["*"];let R=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275cmp=e.Xpm({type:U,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:v,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(V,Y){1&V&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,w,2,0,"mat-icon",1),e.YNc(2,g,2,0,"mat-icon",1),e.YNc(3,C,2,0,"mat-icon",1),e.YNc(4,T,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&V&&(e.ekj("warn-alert","warn"===Y.alert_type)("error-alert","error"===Y.alert_type)("success-alert","success"===Y.alert_type)("info-alert","info"===Y.alert_type),e.xp6(1),e.Q6J("ngIf","info"===Y.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===Y.alert_type),e.xp6(1),e.Q6J("ngIf","error"===Y.alert_type),e.xp6(1),e.Q6J("ngIf","success"===Y.alert_type))},dependencies:[d.Hw,A.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),U})()},63189:(Je,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(97392),d=h(36895),A=h(94650);let w=(()=>{class g{}return g.\u0275fac=function(T){return new(T||g)},g.\u0275mod=A.oAB({type:g}),g.\u0275inj=A.cJS({imports:[e.Ps,d.ez]}),g})()},57882:(Je,pe,h)=>{"use strict";h.d(pe,{C:()=>m});var e=h(36895),d=h(4859),A=h(73546),w=h(56709),g=h(65412),C=h(44850),T=h(37084),v=h(59549),R=h(94650),U=h(3238);let ze=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=R.oAB({type:l}),l.\u0275inj=R.cJS({imports:[U.uc,U.BQ,U.uc,U.BQ]}),l})();var De=h(97392),j=h(284),P=h(51572),G=h(86257),ce=h(30671),q=h(67376),Te=h(24006),He=h(99602),dt=h(23267),et=h(96338),_t=h(28255);let ae=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=R.oAB({type:l}),l.\u0275inj=R.cJS({imports:[U.BQ,U.BQ]}),l})();var Oe=h(96308),Q=h(98739),me=h(10266),N=h(84385),L=h(3848),r=h(90455),s=h(77331);let m=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=R.oAB({type:l}),l.\u0275inj=R.cJS({imports:[e.ez,A.QW,C.t,T.To,d.ot,ze,w.p9,De.Ps,ce.p0,g.Is,P.Cq,v.lN,j.c,q.Cl,Te.u5,Te.UX,G.T5,He.FA,U.XK,dt.SJ,et.ie,_t.Tx,ae,Oe.JX,Q.TU,me.AV,N.LD,U.si,ce.p0,r.rP,s.Hi,A.QW,C.t,T.To,d.ot,ze,w.p9,De.Ps,ce.p0,g.Is,P.Cq,v.lN,j.c,q.Cl,Te.u5,Te.UX,G.T5,He.FA,U.XK,dt.SJ,et.ie,_t.Tx,ae,Oe.JX,Q.TU,me.AV,N.LD,U.si,L.Nh,r.rP,s.Hi]}),l})()},71345:Je=>{var w=.1,g="function"==typeof Float32Array;function C(X,ne){return 1-3*ne+3*X}function T(X,ne){return 3*ne-6*X}function v(X){return 3*X}function R(X,ne,le){return((C(ne,le)*X+T(ne,le))*X+v(ne))*X}function U(X,ne,le){return 3*C(ne,le)*X*X+2*T(ne,le)*X+v(ne)}function Y(X){return X}Je.exports=function(ne,le,te,fe){if(!(0<=ne&&ne<=1&&0<=te&&te<=1))throw new Error("bezier x values must be in [0, 1] range");if(ne===le&&te===fe)return Y;for(var ue=g?new Float32Array(11):new Array(11),we=0;we<11;++we)ue[we]=R(we*w,ne,te);return function(H){return 0===H?0:1===H?1:R(function E(O){for(var H=0,W=1;10!==W&&ue[W]<=O;++W)H+=w;--W;var ye=H+(O-ue[W])/(ue[W+1]-ue[W])*w,xe=U(ye,ne,te);return xe>=.001?function V(X,ne,le,te){for(var fe=0;fe<4;++fe){var ue=U(ne,le,te);if(0===ue)return ne;ne-=(R(ne,le,te)-X)/ue}return ne}(O,ye,ne,te):0===xe?ye:function _(X,ne,le,te,fe){var ue,we,E=0;do{(ue=R(we=ne+(le-ne)/2,te,fe)-X)>0?le=we:ne=we}while(Math.abs(ue)>1e-7&&++E<10);return we}(O,H,H+w,ne,te)}(H),le,fe)}}},1302:function(Je,pe,h){var e;!function(d,A){var w={};!function(d){"use strict";d.__esModule=!0,d.digestLength=32,d.blockSize=64;var A=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function w(Y,X,ne,le,te){for(var fe,ue,we,E,O,H,W,$,de,ye,xe,Me,Ze;te>=64;){for(fe=X[0],ue=X[1],we=X[2],E=X[3],O=X[4],H=X[5],W=X[6],$=X[7],ye=0;ye<16;ye++)Y[ye]=(255&ne[xe=le+4*ye])<<24|(255&ne[xe+1])<<16|(255&ne[xe+2])<<8|255&ne[xe+3];for(ye=16;ye<64;ye++)Y[ye]=((Me=((de=Y[ye-2])>>>17|de<<15)^(de>>>19|de<<13)^de>>>10)+Y[ye-7]|0)+((Ze=((de=Y[ye-15])>>>7|de<<25)^(de>>>18|de<<14)^de>>>3)+Y[ye-16]|0);for(ye=0;ye<64;ye++)Me=(((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&H^~O&W)|0)+($+(A[ye]+Y[ye]|0)|0)|0,Ze=((fe>>>2|fe<<30)^(fe>>>13|fe<<19)^(fe>>>22|fe<<10))+(fe&ue^fe&we^ue&we)|0,$=W,W=H,H=O,O=E+Me|0,E=we,we=ue,ue=fe,fe=Me+Ze|0;X[0]+=fe,X[1]+=ue,X[2]+=we,X[3]+=E,X[4]+=O,X[5]+=H,X[6]+=W,X[7]+=$,le+=64,te-=64}return le}var g=function(){function Y(){this.digestLength=d.digestLength,this.blockSize=d.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return Y.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},Y.prototype.clean=function(){for(var X=0;X0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=X[le++],ne--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(le=w(this.temp,this.state,X,le,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=X[le++],ne--;return this},Y.prototype.finish=function(X){if(!this.finished){var ne=this.bytesHashed,le=this.bufferLength,te=ne/536870912|0,fe=ne<<3,ue=ne%64<56?64:128;this.buffer[le]=128;for(var we=le+1;we>>24&255,this.buffer[ue-7]=te>>>16&255,this.buffer[ue-6]=te>>>8&255,this.buffer[ue-5]=te>>>0&255,this.buffer[ue-4]=fe>>>24&255,this.buffer[ue-3]=fe>>>16&255,this.buffer[ue-2]=fe>>>8&255,this.buffer[ue-1]=fe>>>0&255,w(this.temp,this.state,this.buffer,0,ue),this.finished=!0}for(we=0;we<8;we++)X[4*we+0]=this.state[we]>>>24&255,X[4*we+1]=this.state[we]>>>16&255,X[4*we+2]=this.state[we]>>>8&255,X[4*we+3]=this.state[we]>>>0&255;return this},Y.prototype.digest=function(){var X=new Uint8Array(this.digestLength);return this.finish(X),X},Y.prototype._saveState=function(X){for(var ne=0;nethis.blockSize)(new g).update(X).finish(ne).clean();else for(var le=0;le1&&X.update(Y),ne&&X.update(ne),X.update(le),X.finish(Y),le[0]++}d.HMAC=C,d.hash=T,d.default=T,d.hmac=v;var U=new Uint8Array(d.digestLength);d.hkdf=function _(Y,X,ne,le){void 0===X&&(X=U),void 0===le&&(le=32);for(var te=new Uint8Array([1]),fe=v(X,Y),ue=new C(fe),we=new Uint8Array(ue.digestLength),E=we.length,O=new Uint8Array(le),H=0;H>>24&255,ue[1]=W>>>16&255,ue[2]=W>>>8&255,ue[3]=W>>>0&255,te.reset(),te.update(X),te.update(ue),te.finish(E);for(var $=0;$=_.status}function C(U){try{U.dispatchEvent(new MouseEvent("click"))}catch{var _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),U.dispatchEvent(_)}}var T="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,v=T.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),R=T.saveAs||("object"!=typeof window||window!==T?function(){}:"download"in HTMLAnchorElement.prototype&&!v?function(U,_,V){var Y=T.URL||T.webkitURL,X=document.createElement("a");X.download=_=_||U.name||"download",X.rel="noopener","string"==typeof U?(X.href=U,X.origin===location.origin?C(X):g(X.href)?w(U,_,V):C(X,X.target="_blank")):(X.href=Y.createObjectURL(U),setTimeout(function(){Y.revokeObjectURL(X.href)},4e4),setTimeout(function(){C(X)},0))}:"msSaveOrOpenBlob"in navigator?function(U,_,V){if(_=_||U.name||"download","string"!=typeof U)navigator.msSaveOrOpenBlob(function A(U,_){return typeof _>"u"?_={autoBom:!1}:"object"!=typeof _&&(console.warn("Deprecated: Expected third argument to be a object"),_={autoBom:!_}),_.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(U.type)?new Blob(["\ufeff",U],{type:U.type}):U}(U,V),_);else if(g(U))w(U,_,V);else{var Y=document.createElement("a");Y.href=U,Y.target="_blank",setTimeout(function(){C(Y)})}}:function(U,_,V,Y){if((Y=Y||open("","_blank"))&&(Y.document.title=Y.document.body.innerText="downloading..."),"string"==typeof U)return w(U,_,V);var X="application/octet-stream"===U.type,ne=/constructor/i.test(T.HTMLElement)||T.safari,le=/CriOS\/[\d]+/.test(navigator.userAgent);if((le||X&&ne||v)&&typeof FileReader<"u"){var te=new FileReader;te.onloadend=function(){var we=te.result;we=le?we:we.replace(/^data:[^;]*;/,"data:attachment/file;"),Y?Y.location.href=we:location=we,Y=null},te.readAsDataURL(U)}else{var fe=T.URL||T.webkitURL,ue=fe.createObjectURL(U);Y?Y.location=ue:location.href=ue,Y=null,setTimeout(function(){fe.revokeObjectURL(ue)},4e4)}});T.saveAs=R.saveAs=R,Je.exports=R}.apply(pe,[]))&&(Je.exports=d)},61135:(Je,pe,h)=>{"use strict";h.d(pe,{X:()=>d});var e=h(77579);class d extends e.x{constructor(w){super(),this._value=w}get value(){return this.getValue()}_subscribe(w){const g=super._subscribe(w);return!g.closed&&w.next(this._value),g}getValue(){const{hasError:w,thrownError:g,_value:C}=this;if(w)throw g;return this._throwIfClosed(),C}next(w){super.next(this._value=w)}}},69751:(Je,pe,h)=>{"use strict";h.d(pe,{y:()=>v});var e=h(70930),d=h(50727),A=h(48822),w=h(89635),g=h(42416),C=h(30576),T=h(72806);let v=(()=>{class V{constructor(X){X&&(this._subscribe=X)}lift(X){const ne=new V;return ne.source=this,ne.operator=X,ne}subscribe(X,ne,le){const te=function _(V){return V&&V instanceof e.Lv||function U(V){return V&&(0,C.m)(V.next)&&(0,C.m)(V.error)&&(0,C.m)(V.complete)}(V)&&(0,d.Nn)(V)}(X)?X:new e.Hp(X,ne,le);return(0,T.x)(()=>{const{operator:fe,source:ue}=this;te.add(fe?fe.call(te,ue):ue?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(X){try{return this._subscribe(X)}catch(ne){X.error(ne)}}forEach(X,ne){return new(ne=R(ne))((le,te)=>{const fe=new e.Hp({next:ue=>{try{X(ue)}catch(we){te(we),fe.unsubscribe()}},error:te,complete:le});this.subscribe(fe)})}_subscribe(X){var ne;return null===(ne=this.source)||void 0===ne?void 0:ne.subscribe(X)}[A.L](){return this}pipe(...X){return(0,w.U)(X)(this)}toPromise(X){return new(X=R(X))((ne,le)=>{let te;this.subscribe(fe=>te=fe,fe=>le(fe),()=>ne(te))})}}return V.create=Y=>new V(Y),V})();function R(V){var Y;return null!==(Y=V??g.v.Promise)&&void 0!==Y?Y:Promise}},4707:(Je,pe,h)=>{"use strict";h.d(pe,{t:()=>A});var e=h(77579),d=h(26063);class A extends e.x{constructor(g=1/0,C=1/0,T=d.l){super(),this._bufferSize=g,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,g),this._windowTime=Math.max(1,C)}next(g){const{isStopped:C,_buffer:T,_infiniteTimeWindow:v,_timestampProvider:R,_windowTime:U}=this;C||(T.push(g),!v&&T.push(R.now()+U)),this._trimBuffer(),super.next(g)}_subscribe(g){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(g),{_infiniteTimeWindow:T,_buffer:v}=this,R=v.slice();for(let U=0;U{"use strict";h.d(pe,{x:()=>T});var e=h(69751),d=h(50727);const w=(0,h(83888).d)(R=>function(){R(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var g=h(38737),C=h(72806);let T=(()=>{class R extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_){const V=new v(this,this);return V.operator=_,V}_throwIfClosed(){if(this.closed)throw new w}next(_){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const V of this.currentObservers)V.next(_)}})}error(_){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_;const{observers:V}=this;for(;V.length;)V.shift().error(_)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_}=this;for(;_.length;)_.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _;return(null===(_=this.observers)||void 0===_?void 0:_.length)>0}_trySubscribe(_){return this._throwIfClosed(),super._trySubscribe(_)}_subscribe(_){return this._throwIfClosed(),this._checkFinalizedStatuses(_),this._innerSubscribe(_)}_innerSubscribe(_){const{hasError:V,isStopped:Y,observers:X}=this;return V||Y?d.Lc:(this.currentObservers=null,X.push(_),new d.w0(()=>{this.currentObservers=null,(0,g.P)(X,_)}))}_checkFinalizedStatuses(_){const{hasError:V,thrownError:Y,isStopped:X}=this;V?_.error(Y):X&&_.complete()}asObservable(){const _=new e.y;return _.source=this,_}}return R.create=(U,_)=>new v(U,_),R})();class v extends T{constructor(U,_){super(),this.destination=U,this.source=_}next(U){var _,V;null===(V=null===(_=this.destination)||void 0===_?void 0:_.next)||void 0===V||V.call(_,U)}error(U){var _,V;null===(V=null===(_=this.destination)||void 0===_?void 0:_.error)||void 0===V||V.call(_,U)}complete(){var U,_;null===(_=null===(U=this.destination)||void 0===U?void 0:U.complete)||void 0===_||_.call(U)}_subscribe(U){var _,V;return null!==(V=null===(_=this.source)||void 0===_?void 0:_.subscribe(U))&&void 0!==V?V:d.Lc}}},70930:(Je,pe,h)=>{"use strict";h.d(pe,{Hp:()=>le,Lv:()=>V});var e=h(30576),d=h(50727),A=h(42416),w=h(87849),g=h(25032);const C=R("C",void 0,void 0);function R(E,O,H){return{kind:E,value:O,error:H}}var U=h(43410),_=h(72806);class V extends d.w0{constructor(O){super(),this.isStopped=!1,O?(this.destination=O,(0,d.Nn)(O)&&O.add(this)):this.destination=we}static create(O,H,W){return new le(O,H,W)}next(O){this.isStopped?ue(function v(E){return R("N",E,void 0)}(O),this):this._next(O)}error(O){this.isStopped?ue(function T(E){return R("E",void 0,E)}(O),this):(this.isStopped=!0,this._error(O))}complete(){this.isStopped?ue(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(O){this.destination.next(O)}_error(O){try{this.destination.error(O)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Y=Function.prototype.bind;function X(E,O){return Y.call(E,O)}class ne{constructor(O){this.partialObserver=O}next(O){const{partialObserver:H}=this;if(H.next)try{H.next(O)}catch(W){te(W)}}error(O){const{partialObserver:H}=this;if(H.error)try{H.error(O)}catch(W){te(W)}else te(O)}complete(){const{partialObserver:O}=this;if(O.complete)try{O.complete()}catch(H){te(H)}}}class le extends V{constructor(O,H,W){let $;if(super(),(0,e.m)(O)||!O)$={next:O??void 0,error:H??void 0,complete:W??void 0};else{let de;this&&A.v.useDeprecatedNextContext?(de=Object.create(O),de.unsubscribe=()=>this.unsubscribe(),$={next:O.next&&X(O.next,de),error:O.error&&X(O.error,de),complete:O.complete&&X(O.complete,de)}):$=O}this.destination=new ne($)}}function te(E){A.v.useDeprecatedSynchronousErrorHandling?(0,_.O)(E):(0,w.h)(E)}function ue(E,O){const{onStoppedNotification:H}=A.v;H&&U.z.setTimeout(()=>H(E,O))}const we={closed:!0,next:g.Z,error:function fe(E){throw E},complete:g.Z}},50727:(Je,pe,h)=>{"use strict";h.d(pe,{Lc:()=>C,w0:()=>g,Nn:()=>T});var e=h(30576);const A=(0,h(83888).d)(R=>function(_){R(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((V,Y)=>`${Y+1}) ${V.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_});var w=h(38737);class g{constructor(U){this.initialTeardown=U,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let U;if(!this.closed){this.closed=!0;const{_parentage:_}=this;if(_)if(this._parentage=null,Array.isArray(_))for(const X of _)X.remove(this);else _.remove(this);const{initialTeardown:V}=this;if((0,e.m)(V))try{V()}catch(X){U=X instanceof A?X.errors:[X]}const{_finalizers:Y}=this;if(Y){this._finalizers=null;for(const X of Y)try{v(X)}catch(ne){U=U??[],ne instanceof A?U=[...U,...ne.errors]:U.push(ne)}}if(U)throw new A(U)}}add(U){var _;if(U&&U!==this)if(this.closed)v(U);else{if(U instanceof g){if(U.closed||U._hasParent(this))return;U._addParent(this)}(this._finalizers=null!==(_=this._finalizers)&&void 0!==_?_:[]).push(U)}}_hasParent(U){const{_parentage:_}=this;return _===U||Array.isArray(_)&&_.includes(U)}_addParent(U){const{_parentage:_}=this;this._parentage=Array.isArray(_)?(_.push(U),_):_?[_,U]:U}_removeParent(U){const{_parentage:_}=this;_===U?this._parentage=null:Array.isArray(_)&&(0,w.P)(_,U)}remove(U){const{_finalizers:_}=this;_&&(0,w.P)(_,U),U instanceof g&&U._removeParent(this)}}g.EMPTY=(()=>{const R=new g;return R.closed=!0,R})();const C=g.EMPTY;function T(R){return R instanceof g||R&&"closed"in R&&(0,e.m)(R.remove)&&(0,e.m)(R.add)&&(0,e.m)(R.unsubscribe)}function v(R){(0,e.m)(R)?R():R.unsubscribe()}},42416:(Je,pe,h)=>{"use strict";h.d(pe,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},39841:(Je,pe,h)=>{"use strict";h.d(pe,{a:()=>U});var e=h(69751),d=h(54742),A=h(32076),w=h(44671),g=h(83268),C=h(63269),T=h(31810),v=h(25403),R=h(39672);function U(...Y){const X=(0,C.yG)(Y),ne=(0,C.jO)(Y),{args:le,keys:te}=(0,d.D)(Y);if(0===le.length)return(0,A.D)([],X);const fe=new e.y(function _(Y,X,ne=w.y){return le=>{V(X,()=>{const{length:te}=Y,fe=new Array(te);let ue=te,we=te;for(let E=0;E{const O=(0,A.D)(Y[E],X);let H=!1;O.subscribe((0,v.x)(le,W=>{fe[E]=W,H||(H=!0,we--),we||le.next(ne(fe.slice()))},()=>{--ue||le.complete()}))},le)},le)}}(le,X,te?ue=>(0,T.n)(te,ue):w.y));return ne?fe.pipe((0,g.Z)(ne)):fe}function V(Y,X,ne){Y?(0,R.f)(ne,Y,X):X()}},97272:(Je,pe,h)=>{"use strict";h.d(pe,{z:()=>g});var e=h(8189),A=h(63269),w=h(32076);function g(...C){return function d(){return(0,e.J)(1)}()((0,w.D)(C,(0,A.yG)(C)))}},49770:(Je,pe,h)=>{"use strict";h.d(pe,{P:()=>A});var e=h(69751),d=h(38421);function A(w){return new e.y(g=>{(0,d.Xf)(w()).subscribe(g)})}},60515:(Je,pe,h)=>{"use strict";h.d(pe,{E:()=>d});const d=new(h(69751).y)(g=>g.complete())},4128:(Je,pe,h)=>{"use strict";h.d(pe,{D:()=>v});var e=h(69751),d=h(54742),A=h(38421),w=h(63269),g=h(25403),C=h(83268),T=h(31810);function v(...R){const U=(0,w.jO)(R),{args:_,keys:V}=(0,d.D)(R),Y=new e.y(X=>{const{length:ne}=_;if(!ne)return void X.complete();const le=new Array(ne);let te=ne,fe=ne;for(let ue=0;ue{we||(we=!0,fe--),le[ue]=E},()=>te--,void 0,()=>{(!te||!we)&&(fe||X.next(V?(0,T.n)(V,le):le),X.complete())}))}});return U?Y.pipe((0,C.Z)(U)):Y}},32076:(Je,pe,h)=>{"use strict";h.d(pe,{D:()=>W});var e=h(38421),d=h(39672),A=h(54482),w=h(25403);function g($,de=0){return(0,A.e)((ye,xe)=>{ye.subscribe((0,w.x)(xe,Me=>(0,d.f)(xe,$,()=>xe.next(Me),de),()=>(0,d.f)(xe,$,()=>xe.complete(),de),Me=>(0,d.f)(xe,$,()=>xe.error(Me),de)))})}function C($,de=0){return(0,A.e)((ye,xe)=>{xe.add($.schedule(()=>ye.subscribe(xe),de))})}var R=h(69751),_=h(2202),V=h(30576);function X($,de){if(!$)throw new Error("Iterable cannot be null");return new R.y(ye=>{(0,d.f)(ye,de,()=>{const xe=$[Symbol.asyncIterator]();(0,d.f)(ye,de,()=>{xe.next().then(Me=>{Me.done?ye.complete():ye.next(Me.value)})},0,!0)})})}var ne=h(93670),le=h(28239),te=h(81144),fe=h(26495),ue=h(12206),we=h(44532),E=h(53260);function W($,de){return de?function H($,de){if(null!=$){if((0,ne.c)($))return function T($,de){return(0,e.Xf)($).pipe(C(de),g(de))}($,de);if((0,te.z)($))return function U($,de){return new R.y(ye=>{let xe=0;return de.schedule(function(){xe===$.length?ye.complete():(ye.next($[xe++]),ye.closed||this.schedule())})})}($,de);if((0,le.t)($))return function v($,de){return(0,e.Xf)($).pipe(C(de),g(de))}($,de);if((0,ue.D)($))return X($,de);if((0,fe.T)($))return function Y($,de){return new R.y(ye=>{let xe;return(0,d.f)(ye,de,()=>{xe=$[_.h](),(0,d.f)(ye,de,()=>{let Me,Ze;try{({value:Me,done:Ze}=xe.next())}catch(se){return void ye.error(se)}Ze?ye.complete():ye.next(Me)},0,!0)}),()=>(0,V.m)(xe?.return)&&xe.return()})}($,de);if((0,E.L)($))return function O($,de){return X((0,E.Q)($),de)}($,de)}throw(0,we.z)($)}($,de):(0,e.Xf)($)}},54968:(Je,pe,h)=>{"use strict";h.d(pe,{R:()=>U});var e=h(38421),d=h(69751),A=h(86099),w=h(81144),g=h(30576),C=h(83268);const T=["addListener","removeListener"],v=["addEventListener","removeEventListener"],R=["on","off"];function U(ne,le,te,fe){if((0,g.m)(te)&&(fe=te,te=void 0),fe)return U(ne,le,te).pipe((0,C.Z)(fe));const[ue,we]=function X(ne){return(0,g.m)(ne.addEventListener)&&(0,g.m)(ne.removeEventListener)}(ne)?v.map(E=>O=>ne[E](le,O,te)):function V(ne){return(0,g.m)(ne.addListener)&&(0,g.m)(ne.removeListener)}(ne)?T.map(_(ne,le)):function Y(ne){return(0,g.m)(ne.on)&&(0,g.m)(ne.off)}(ne)?R.map(_(ne,le)):[];if(!ue&&(0,w.z)(ne))return(0,A.z)(E=>U(E,le,te))((0,e.Xf)(ne));if(!ue)throw new TypeError("Invalid event target");return new d.y(E=>{const O=(...H)=>E.next(1we(O)})}function _(ne,le){return te=>fe=>ne[te](le,fe)}},38421:(Je,pe,h)=>{"use strict";h.d(pe,{Xf:()=>Y});var e=h(70655),d=h(81144),A=h(28239),w=h(69751),g=h(93670),C=h(12206),T=h(44532),v=h(26495),R=h(53260),U=h(30576),_=h(87849),V=h(48822);function Y(E){if(E instanceof w.y)return E;if(null!=E){if((0,g.c)(E))return function X(E){return new w.y(O=>{const H=E[V.L]();if((0,U.m)(H.subscribe))return H.subscribe(O);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(E);if((0,d.z)(E))return function ne(E){return new w.y(O=>{for(let H=0;H{E.then(H=>{O.closed||(O.next(H),O.complete())},H=>O.error(H)).then(null,_.h)})}(E);if((0,C.D)(E))return fe(E);if((0,v.T)(E))return function te(E){return new w.y(O=>{for(const H of E)if(O.next(H),O.closed)return;O.complete()})}(E);if((0,R.L)(E))return function ue(E){return fe((0,R.Q)(E))}(E)}throw(0,T.z)(E)}function fe(E){return new w.y(O=>{(function we(E,O){var H,W,$,de;return(0,e.mG)(this,void 0,void 0,function*(){try{for(H=(0,e.KL)(E);!(W=yield H.next()).done;)if(O.next(W.value),O.closed)return}catch(ye){$={error:ye}}finally{try{W&&!W.done&&(de=H.return)&&(yield de.call(H))}finally{if($)throw $.error}}O.complete()})})(E,O).catch(H=>O.error(H))})}},17445:(Je,pe,h)=>{"use strict";h.d(pe,{F:()=>A});var e=h(34986),d=h(82805);function A(w=0,g=e.z){return w<0&&(w=0),(0,d.H)(w,w,g)}},56451:(Je,pe,h)=>{"use strict";h.d(pe,{T:()=>C});var e=h(8189),d=h(38421),A=h(60515),w=h(63269),g=h(32076);function C(...T){const v=(0,w.yG)(T),R=(0,w._6)(T,1/0),U=T;return U.length?1===U.length?(0,d.Xf)(U[0]):(0,e.J)(R)((0,g.D)(U,v)):A.E}},39646:(Je,pe,h)=>{"use strict";h.d(pe,{of:()=>A});var e=h(63269),d=h(32076);function A(...w){const g=(0,e.yG)(w);return(0,d.D)(w,g)}},54355:(Je,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(69751),d=h(38421),A=h(75797),w=h(25403);function g(...T){return 1===(T=(0,A.k)(T)).length?(0,d.Xf)(T[0]):new e.y(function C(T){return v=>{let R=[];for(let U=0;R&&!v.closed&&U{if(R){for(let V=0;V{"use strict";h.d(pe,{_:()=>A});var e=h(69751),d=h(30576);function A(w,g){const C=(0,d.m)(w)?w:()=>w,T=v=>v.error(C());return new e.y(g?v=>g.schedule(T,0,v):T)}},82805:(Je,pe,h)=>{"use strict";h.d(pe,{H:()=>g});var e=h(69751),d=h(34986),A=h(93532),w=h(51165);function g(C=0,T,v=d.P){let R=-1;return null!=T&&((0,A.K)(T)?v=T:R=T),new e.y(U=>{let _=(0,w.q)(C)?+C-v.now():C;_<0&&(_=0);let V=0;return v.schedule(function(){U.closed||(U.next(V++),0<=R?this.schedule(void 0,R):U.complete())},_)})}},25403:(Je,pe,h)=>{"use strict";h.d(pe,{x:()=>d});var e=h(70930);function d(w,g,C,T,v){return new A(w,g,C,T,v)}class A extends e.Lv{constructor(g,C,T,v,R,U){super(g),this.onFinalize=R,this.shouldUnsubscribe=U,this._next=C?function(_){try{C(_)}catch(V){g.error(V)}}:super._next,this._error=v?function(_){try{v(_)}catch(V){g.error(V)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(_){g.error(_)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var g;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(g=this.onFinalize)||void 0===g||g.call(this))}}}},23601:(Je,pe,h)=>{"use strict";h.d(pe,{e:()=>T});var e=h(34986),d=h(54482),A=h(38421),w=h(25403),C=h(82805);function T(v,R=e.z){return function g(v){return(0,d.e)((R,U)=>{let _=!1,V=null,Y=null,X=!1;const ne=()=>{if(Y?.unsubscribe(),Y=null,_){_=!1;const te=V;V=null,U.next(te)}X&&U.complete()},le=()=>{Y=null,X&&U.complete()};R.subscribe((0,w.x)(U,te=>{_=!0,V=te,Y||(0,A.Xf)(v(te)).subscribe(Y=(0,w.x)(U,ne,le))},()=>{X=!0,(!_||!Y||Y.closed)&&U.complete()}))})}(()=>(0,C.H)(v,R))}},70262:(Je,pe,h)=>{"use strict";h.d(pe,{K:()=>w});var e=h(38421),d=h(25403),A=h(54482);function w(g){return(0,A.e)((C,T)=>{let U,v=null,R=!1;v=C.subscribe((0,d.x)(T,void 0,void 0,_=>{U=(0,e.Xf)(g(_,w(g)(C))),v?(v.unsubscribe(),v=null,U.subscribe(T)):R=!0})),R&&(v.unsubscribe(),v=null,U.subscribe(T))})}},24351:(Je,pe,h)=>{"use strict";h.d(pe,{b:()=>A});var e=h(86099),d=h(30576);function A(w,g){return(0,d.m)(g)?(0,e.z)(w,g,1):(0,e.z)(w,1)}},78372:(Je,pe,h)=>{"use strict";h.d(pe,{b:()=>w});var e=h(34986),d=h(54482),A=h(25403);function w(g,C=e.z){return(0,d.e)((T,v)=>{let R=null,U=null,_=null;const V=()=>{if(R){R.unsubscribe(),R=null;const X=U;U=null,v.next(X)}};function Y(){const X=_+g,ne=C.now();if(ne{U=X,_=C.now(),R||(R=C.schedule(Y,g),v.add(R))},()=>{V(),v.complete()},void 0,()=>{U=R=null}))})}},46590:(Je,pe,h)=>{"use strict";h.d(pe,{d:()=>A});var e=h(54482),d=h(25403);function A(w){return(0,e.e)((g,C)=>{let T=!1;g.subscribe((0,d.x)(C,v=>{T=!0,C.next(v)},()=>{T||C.next(w),C.complete()}))})}},91005:(Je,pe,h)=>{"use strict";h.d(pe,{g:()=>V});var e=h(34986),d=h(97272),A=h(95698),w=h(54482),g=h(25403),C=h(25032),v=h(69718),R=h(86099);function U(Y,X){return X?ne=>(0,d.z)(X.pipe((0,A.q)(1),function T(){return(0,w.e)((Y,X)=>{Y.subscribe((0,g.x)(X,C.Z))})}()),ne.pipe(U(Y))):(0,R.z)((ne,le)=>Y(ne,le).pipe((0,A.q)(1),(0,v.h)(ne)))}var _=h(82805);function V(Y,X=e.z){const ne=(0,_.H)(Y,X);return U(()=>ne)}},71884:(Je,pe,h)=>{"use strict";h.d(pe,{x:()=>w});var e=h(44671),d=h(54482),A=h(25403);function w(C,T=e.y){return C=C??g,(0,d.e)((v,R)=>{let U,_=!0;v.subscribe((0,A.x)(R,V=>{const Y=T(V);(_||!C(U,Y))&&(_=!1,U=Y,R.next(V))}))})}function g(C,T){return C===T}},39300:(Je,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(54482),d=h(25403);function A(w,g){return(0,e.e)((C,T)=>{let v=0;C.subscribe((0,d.x)(T,R=>w.call(g,R,v++)&&T.next(R)))})}},28746:(Je,pe,h)=>{"use strict";h.d(pe,{x:()=>d});var e=h(54482);function d(A){return(0,e.e)((w,g)=>{try{w.subscribe(g)}finally{g.add(A)}})}},50590:(Je,pe,h)=>{"use strict";h.d(pe,{P:()=>T});var e=h(86805),d=h(39300),A=h(95698),w=h(46590),g=h(18068),C=h(44671);function T(v,R){const U=arguments.length>=2;return _=>_.pipe(v?(0,d.h)((V,Y)=>v(V,Y,_)):C.y,(0,A.q)(1),U?(0,w.d)(R):(0,g.T)(()=>new e.K))}},54004:(Je,pe,h)=>{"use strict";h.d(pe,{U:()=>A});var e=h(54482),d=h(25403);function A(w,g){return(0,e.e)((C,T)=>{let v=0;C.subscribe((0,d.x)(T,R=>{T.next(w.call(g,R,v++))}))})}},69718:(Je,pe,h)=>{"use strict";h.d(pe,{h:()=>d});var e=h(54004);function d(A){return(0,e.U)(()=>A)}},8189:(Je,pe,h)=>{"use strict";h.d(pe,{J:()=>A});var e=h(86099),d=h(44671);function A(w=1/0){return(0,e.z)(d.y,w)}},72733:(Je,pe,h)=>{"use strict";h.d(pe,{p:()=>w});var e=h(38421),d=h(39672),A=h(25403);function w(g,C,T,v,R,U,_,V){const Y=[];let X=0,ne=0,le=!1;const te=()=>{le&&!Y.length&&!X&&C.complete()},fe=we=>X{U&&C.next(we),X++;let E=!1;(0,e.Xf)(T(we,ne++)).subscribe((0,A.x)(C,O=>{R?.(O),U?fe(O):C.next(O)},()=>{E=!0},void 0,()=>{if(E)try{for(X--;Y.length&&Xue(O)):ue(O)}te()}catch(O){C.error(O)}}))};return g.subscribe((0,A.x)(C,fe,()=>{le=!0,te()})),()=>{V?.()}}},86099:(Je,pe,h)=>{"use strict";h.d(pe,{z:()=>C});var e=h(54004),d=h(38421),A=h(54482),w=h(72733),g=h(30576);function C(T,v,R=1/0){return(0,g.m)(v)?C((U,_)=>(0,e.U)((V,Y)=>v(U,V,_,Y))((0,d.Xf)(T(U,_))),R):("number"==typeof v&&(R=v),(0,A.e)((U,_)=>(0,w.p)(U,_,T,R)))}},11520:(Je,pe,h)=>{"use strict";h.d(pe,{G:()=>A});var e=h(54482),d=h(25403);function A(){return(0,e.e)((w,g)=>{let C,T=!1;w.subscribe((0,d.x)(g,v=>{const R=C;C=v,T&&g.next([R,v]),T=!0}))})}},57359:(Je,pe,h)=>{"use strict";h.d(pe,{U:()=>d});var e=h(25403);function d(A,w,g,C,T){return(v,R)=>{let U=g,_=w,V=0;v.subscribe((0,e.x)(R,Y=>{const X=V++;_=U?A(_,Y,X):(U=!0,Y),C&&R.next(_)},T&&(()=>{U&&R.next(_),R.complete()})))}}},13099:(Je,pe,h)=>{"use strict";h.d(pe,{B:()=>g});var e=h(38421),d=h(77579),A=h(70930),w=h(54482);function g(T={}){const{connector:v=(()=>new d.x),resetOnError:R=!0,resetOnComplete:U=!0,resetOnRefCountZero:_=!0}=T;return V=>{let Y,X,ne,le=0,te=!1,fe=!1;const ue=()=>{X?.unsubscribe(),X=void 0},we=()=>{ue(),Y=ne=void 0,te=fe=!1},E=()=>{const O=Y;we(),O?.unsubscribe()};return(0,w.e)((O,H)=>{le++,!fe&&!te&&ue();const W=ne=ne??v();H.add(()=>{le--,0===le&&!fe&&!te&&(X=C(E,_))}),W.subscribe(H),!Y&&le>0&&(Y=new A.Hp({next:$=>W.next($),error:$=>{fe=!0,ue(),X=C(we,R,$),W.error($)},complete:()=>{te=!0,ue(),X=C(we,U),W.complete()}}),(0,e.Xf)(O).subscribe(Y))})(V)}}function C(T,v,...R){if(!0===v)return void T();if(!1===v)return;const U=new A.Hp({next:()=>{U.unsubscribe(),T()}});return v(...R).subscribe(U)}},34782:(Je,pe,h)=>{"use strict";h.d(pe,{d:()=>A});var e=h(4707),d=h(13099);function A(w,g,C){let T,v=!1;return w&&"object"==typeof w?({bufferSize:T=1/0,windowTime:g=1/0,refCount:v=!1,scheduler:C}=w):T=w??1/0,(0,d.B)({connector:()=>new e.t(T,g,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:v})}},35684:(Je,pe,h)=>{"use strict";h.d(pe,{T:()=>d});var e=h(39300);function d(A){return(0,e.h)((w,g)=>A<=g)}},68675:(Je,pe,h)=>{"use strict";h.d(pe,{O:()=>w});var e=h(97272),d=h(63269),A=h(54482);function w(...g){const C=(0,d.yG)(g);return(0,A.e)((T,v)=>{(C?(0,e.z)(g,T,C):(0,e.z)(g,T)).subscribe(v)})}},63900:(Je,pe,h)=>{"use strict";h.d(pe,{w:()=>w});var e=h(38421),d=h(54482),A=h(25403);function w(g,C){return(0,d.e)((T,v)=>{let R=null,U=0,_=!1;const V=()=>_&&!R&&v.complete();T.subscribe((0,A.x)(v,Y=>{R?.unsubscribe();let X=0;const ne=U++;(0,e.Xf)(g(Y,ne)).subscribe(R=(0,A.x)(v,le=>v.next(C?C(Y,le,ne,X++):le),()=>{R=null,V()}))},()=>{_=!0,V()}))})}},95698:(Je,pe,h)=>{"use strict";h.d(pe,{q:()=>w});var e=h(60515),d=h(54482),A=h(25403);function w(g){return g<=0?()=>e.E:(0,d.e)((C,T)=>{let v=0;C.subscribe((0,A.x)(T,R=>{++v<=g&&(T.next(R),g<=v&&T.complete())}))})}},82722:(Je,pe,h)=>{"use strict";h.d(pe,{R:()=>g});var e=h(54482),d=h(25403),A=h(38421),w=h(25032);function g(C){return(0,e.e)((T,v)=>{(0,A.Xf)(C).subscribe((0,d.x)(v,()=>v.complete(),w.Z)),!v.closed&&T.subscribe(v)})}},22529:(Je,pe,h)=>{"use strict";h.d(pe,{o:()=>A});var e=h(54482),d=h(25403);function A(w,g=!1){return(0,e.e)((C,T)=>{let v=0;C.subscribe((0,d.x)(T,R=>{const U=w(R,v++);(U||g)&&T.next(R),!U&&T.complete()}))})}},18505:(Je,pe,h)=>{"use strict";h.d(pe,{b:()=>g});var e=h(30576),d=h(54482),A=h(25403),w=h(44671);function g(C,T,v){const R=(0,e.m)(C)||T||v?{next:C,error:T,complete:v}:C;return R?(0,d.e)((U,_)=>{var V;null===(V=R.subscribe)||void 0===V||V.call(R);let Y=!0;U.subscribe((0,A.x)(_,X=>{var ne;null===(ne=R.next)||void 0===ne||ne.call(R,X),_.next(X)},()=>{var X;Y=!1,null===(X=R.complete)||void 0===X||X.call(R),_.complete()},X=>{var ne;Y=!1,null===(ne=R.error)||void 0===ne||ne.call(R,X),_.error(X)},()=>{var X,ne;Y&&(null===(X=R.unsubscribe)||void 0===X||X.call(R)),null===(ne=R.finalize)||void 0===ne||ne.call(R)}))}):w.y}},18068:(Je,pe,h)=>{"use strict";h.d(pe,{T:()=>w});var e=h(86805),d=h(54482),A=h(25403);function w(C=g){return(0,d.e)((T,v)=>{let R=!1;T.subscribe((0,A.x)(v,U=>{R=!0,v.next(U)},()=>R?v.complete():v.error(C())))})}function g(){return new e.K}},17414:(Je,pe,h)=>{"use strict";h.d(pe,{V:()=>R});var e=h(34986),d=h(51165),A=h(54482),w=h(38421),g=h(83888),C=h(25403),T=h(39672);const v=(0,g.d)(_=>function(Y=null){_(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Y});function R(_,V){const{first:Y,each:X,with:ne=U,scheduler:le=V??e.z,meta:te=null}=(0,d.q)(_)?{first:_}:"number"==typeof _?{each:_}:_;if(null==Y&&null==X)throw new TypeError("No timeout provided.");return(0,A.e)((fe,ue)=>{let we,E,O=null,H=0;const W=$=>{E=(0,T.f)(ue,le,()=>{try{we.unsubscribe(),(0,w.Xf)(ne({meta:te,lastValue:O,seen:H})).subscribe(ue)}catch(de){ue.error(de)}},$)};we=fe.subscribe((0,C.x)(ue,$=>{E?.unsubscribe(),H++,ue.next(O=$),X>0&&W(X)},void 0,void 0,()=>{E?.closed||E?.unsubscribe(),O=null})),!H&&W(null!=Y?"number"==typeof Y?Y:+Y-le.now():X)})}function U(_){throw new v(_)}},84408:(Je,pe,h)=>{"use strict";h.d(pe,{o:()=>g});var e=h(50727);class d extends e.w0{constructor(T,v){super()}schedule(T,v=0){return this}}const A={setInterval(C,T,...v){const{delegate:R}=A;return R?.setInterval?R.setInterval(C,T,...v):setInterval(C,T,...v)},clearInterval(C){const{delegate:T}=A;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var w=h(38737);class g extends d{constructor(T,v){super(T,v),this.scheduler=T,this.work=v,this.pending=!1}schedule(T,v=0){if(this.closed)return this;this.state=T;const R=this.id,U=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(U,R,v)),this.pending=!0,this.delay=v,this.id=this.id||this.requestAsyncId(U,this.id,v),this}requestAsyncId(T,v,R=0){return A.setInterval(T.flush.bind(T,this),R)}recycleAsyncId(T,v,R=0){if(null!=R&&this.delay===R&&!1===this.pending)return v;A.clearInterval(v)}execute(T,v){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(T,v);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,v){let U,R=!1;try{this.work(T)}catch(_){R=!0,U=_||new Error("Scheduled action threw falsy error")}if(R)return this.unsubscribe(),U}unsubscribe(){if(!this.closed){const{id:T,scheduler:v}=this,{actions:R}=v;this.work=this.state=this.scheduler=null,this.pending=!1,(0,w.P)(R,this),null!=T&&(this.id=this.recycleAsyncId(v,T,null)),this.delay=null,super.unsubscribe()}}}},97565:(Je,pe,h)=>{"use strict";h.d(pe,{v:()=>A});var e=h(26063);class d{constructor(g,C=d.now){this.schedulerActionCtor=g,this.now=C}schedule(g,C=0,T){return new this.schedulerActionCtor(this,g).schedule(T,C)}}d.now=e.l.now;class A extends d{constructor(g,C=d.now){super(g,C),this.actions=[],this._active=!1,this._scheduled=void 0}flush(g){const{actions:C}=this;if(this._active)return void C.push(g);let T;this._active=!0;do{if(T=g.execute(g.state,g.delay))break}while(g=C.shift());if(this._active=!1,T){for(;g=C.shift();)g.unsubscribe();throw T}}}},66406:(Je,pe,h)=>{"use strict";h.d(pe,{Z:()=>T});var e=h(84408),d=h(50727);const A={schedule(R){let U=requestAnimationFrame,_=cancelAnimationFrame;const{delegate:V}=A;V&&(U=V.requestAnimationFrame,_=V.cancelAnimationFrame);const Y=U(X=>{_=void 0,R(X)});return new d.w0(()=>_?.(Y))},requestAnimationFrame(...R){const{delegate:U}=A;return(U?.requestAnimationFrame||requestAnimationFrame)(...R)},cancelAnimationFrame(...R){const{delegate:U}=A;return(U?.cancelAnimationFrame||cancelAnimationFrame)(...R)},delegate:void 0};var g=h(97565);const T=new class C extends g.v{flush(U){this._active=!0;const _=this._scheduled;this._scheduled=void 0;const{actions:V}=this;let Y;U=U||V.shift();do{if(Y=U.execute(U.state,U.delay))break}while((U=V[0])&&U.id===_&&V.shift());if(this._active=!1,Y){for(;(U=V[0])&&U.id===_&&V.shift();)U.unsubscribe();throw Y}}}(class w extends e.o{constructor(U,_){super(U,_),this.scheduler=U,this.work=_}requestAsyncId(U,_,V=0){return null!==V&&V>0?super.requestAsyncId(U,_,V):(U.actions.push(this),U._scheduled||(U._scheduled=A.requestAnimationFrame(()=>U.flush(void 0))))}recycleAsyncId(U,_,V=0){if(null!=V&&V>0||null==V&&this.delay>0)return super.recycleAsyncId(U,_,V);U.actions.some(Y=>Y.id===_)||(A.cancelAnimationFrame(_),U._scheduled=void 0)}})},53101:(Je,pe,h)=>{"use strict";h.d(pe,{E:()=>X});var e=h(84408);let A,d=1;const w={};function g(le){return le in w&&(delete w[le],!0)}const C={setImmediate(le){const te=d++;return w[te]=!0,A||(A=Promise.resolve()),A.then(()=>g(te)&&le()),te},clearImmediate(le){g(le)}},{setImmediate:v,clearImmediate:R}=C,U={setImmediate(...le){const{delegate:te}=U;return(te?.setImmediate||v)(...le)},clearImmediate(le){const{delegate:te}=U;return(te?.clearImmediate||R)(le)},delegate:void 0};var V=h(97565);const X=new class Y extends V.v{flush(te){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:ue}=this;let we;te=te||ue.shift();do{if(we=te.execute(te.state,te.delay))break}while((te=ue[0])&&te.id===fe&&ue.shift());if(this._active=!1,we){for(;(te=ue[0])&&te.id===fe&&ue.shift();)te.unsubscribe();throw we}}}(class _ extends e.o{constructor(te,fe){super(te,fe),this.scheduler=te,this.work=fe}requestAsyncId(te,fe,ue=0){return null!==ue&&ue>0?super.requestAsyncId(te,fe,ue):(te.actions.push(this),te._scheduled||(te._scheduled=U.setImmediate(te.flush.bind(te,void 0))))}recycleAsyncId(te,fe,ue=0){if(null!=ue&&ue>0||null==ue&&this.delay>0)return super.recycleAsyncId(te,fe,ue);te.actions.some(we=>we.id===fe)||(U.clearImmediate(fe),te._scheduled=void 0)}})},34986:(Je,pe,h)=>{"use strict";h.d(pe,{P:()=>w,z:()=>A});var e=h(84408);const A=new(h(97565).v)(e.o),w=A},26063:(Je,pe,h)=>{"use strict";h.d(pe,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Je,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e={setTimeout(d,A,...w){const{delegate:g}=e;return g?.setTimeout?g.setTimeout(d,A,...w):setTimeout(d,A,...w)},clearTimeout(d){const{delegate:A}=e;return(A?.clearTimeout||clearTimeout)(d)},delegate:void 0}},2202:(Je,pe,h)=>{"use strict";h.d(pe,{h:()=>d});const d=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Je,pe,h)=>{"use strict";h.d(pe,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Je,pe,h)=>{"use strict";h.d(pe,{K:()=>d});const d=(0,h(83888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Je,pe,h)=>{"use strict";h.d(pe,{_6:()=>C,jO:()=>w,yG:()=>g});var e=h(30576),d=h(93532);function A(T){return T[T.length-1]}function w(T){return(0,e.m)(A(T))?T.pop():void 0}function g(T){return(0,d.K)(A(T))?T.pop():void 0}function C(T,v){return"number"==typeof A(T)?T.pop():v}},54742:(Je,pe,h)=>{"use strict";h.d(pe,{D:()=>g});const{isArray:e}=Array,{getPrototypeOf:d,prototype:A,keys:w}=Object;function g(T){if(1===T.length){const v=T[0];if(e(v))return{args:v,keys:null};if(function C(T){return T&&"object"==typeof T&&d(T)===A}(v)){const R=w(v);return{args:R.map(U=>v[U]),keys:R}}}return{args:T,keys:null}}},75797:(Je,pe,h)=>{"use strict";h.d(pe,{k:()=>d});const{isArray:e}=Array;function d(A){return 1===A.length&&e(A[0])?A[0]:A}},38737:(Je,pe,h)=>{"use strict";function e(d,A){if(d){const w=d.indexOf(A);0<=w&&d.splice(w,1)}}h.d(pe,{P:()=>e})},83888:(Je,pe,h)=>{"use strict";function e(d){const w=d(g=>{Error.call(g),g.stack=(new Error).stack});return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}h.d(pe,{d:()=>e})},31810:(Je,pe,h)=>{"use strict";function e(d,A){return d.reduce((w,g,C)=>(w[g]=A[C],w),{})}h.d(pe,{n:()=>e})},72806:(Je,pe,h)=>{"use strict";h.d(pe,{O:()=>w,x:()=>A});var e=h(42416);let d=null;function A(g){if(e.v.useDeprecatedSynchronousErrorHandling){const C=!d;if(C&&(d={errorThrown:!1,error:null}),g(),C){const{errorThrown:T,error:v}=d;if(d=null,T)throw v}}else g()}function w(g){e.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=g)}},39672:(Je,pe,h)=>{"use strict";function e(d,A,w,g=0,C=!1){const T=A.schedule(function(){w(),C?d.add(this.schedule(null,g)):this.unsubscribe()},g);if(d.add(T),!C)return T}h.d(pe,{f:()=>e})},44671:(Je,pe,h)=>{"use strict";function e(d){return d}h.d(pe,{y:()=>e})},81144:(Je,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e=d=>d&&"number"==typeof d.length&&"function"!=typeof d},12206:(Je,pe,h)=>{"use strict";h.d(pe,{D:()=>d});var e=h(30576);function d(A){return Symbol.asyncIterator&&(0,e.m)(A?.[Symbol.asyncIterator])}},51165:(Je,pe,h)=>{"use strict";function e(d){return d instanceof Date&&!isNaN(d)}h.d(pe,{q:()=>e})},30576:(Je,pe,h)=>{"use strict";function e(d){return"function"==typeof d}h.d(pe,{m:()=>e})},93670:(Je,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(48822),d=h(30576);function A(w){return(0,d.m)(w[e.L])}},26495:(Je,pe,h)=>{"use strict";h.d(pe,{T:()=>A});var e=h(2202),d=h(30576);function A(w){return(0,d.m)(w?.[e.h])}},45191:(Je,pe,h)=>{"use strict";h.d(pe,{b:()=>A});var e=h(69751),d=h(30576);function A(w){return!!w&&(w instanceof e.y||(0,d.m)(w.lift)&&(0,d.m)(w.subscribe))}},28239:(Je,pe,h)=>{"use strict";h.d(pe,{t:()=>d});var e=h(30576);function d(A){return(0,e.m)(A?.then)}},53260:(Je,pe,h)=>{"use strict";h.d(pe,{L:()=>w,Q:()=>A});var e=h(70655),d=h(30576);function A(g){return(0,e.FC)(this,arguments,function*(){const T=g.getReader();try{for(;;){const{value:v,done:R}=yield(0,e.qq)(T.read());if(R)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(v)}}finally{T.releaseLock()}})}function w(g){return(0,d.m)(g?.getReader)}},93532:(Je,pe,h)=>{"use strict";h.d(pe,{K:()=>d});var e=h(30576);function d(A){return A&&(0,e.m)(A.schedule)}},54482:(Je,pe,h)=>{"use strict";h.d(pe,{A:()=>d,e:()=>A});var e=h(30576);function d(w){return(0,e.m)(w?.lift)}function A(w){return g=>{if(d(g))return g.lift(function(C){try{return w(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Je,pe,h)=>{"use strict";h.d(pe,{Z:()=>w});var e=h(54004);const{isArray:d}=Array;function w(g){return(0,e.U)(C=>function A(g,C){return d(C)?g(...C):g(C)}(g,C))}},25032:(Je,pe,h)=>{"use strict";function e(){}h.d(pe,{Z:()=>e})},89635:(Je,pe,h)=>{"use strict";h.d(pe,{U:()=>A,z:()=>d});var e=h(44671);function d(...w){return A(w)}function A(w){return 0===w.length?e.y:1===w.length?w[0]:function(C){return w.reduce((T,v)=>v(T),C)}}},87849:(Je,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(42416),d=h(43410);function A(w){d.z.setTimeout(()=>{const{onUnhandledError:g}=e.v;if(!g)throw w;g(w)})}},44532:(Je,pe,h)=>{"use strict";function e(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}h.d(pe,{z:()=>e})},70655:(Je,pe,h)=>{"use strict";function g(xe,Me,Ze,se){var De,ze=arguments.length,he=ze<3?Me:null===se?se=Object.getOwnPropertyDescriptor(Me,Ze):se;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(xe,Me,Ze,se);else for(var j=xe.length-1;j>=0;j--)(De=xe[j])&&(he=(ze<3?De(he):ze>3?De(Me,Ze,he):De(Me,Ze))||he);return ze>3&&he&&Object.defineProperty(Me,Ze,he),he}function v(xe,Me,Ze,se){return new(Ze||(Ze=Promise))(function(he,De){function j(ce){try{G(se.next(ce))}catch(q){De(q)}}function P(ce){try{G(se.throw(ce))}catch(q){De(q)}}function G(ce){ce.done?he(ce.value):function ze(he){return he instanceof Ze?he:new Ze(function(De){De(he)})}(ce.value).then(j,P)}G((se=se.apply(xe,Me||[])).next())})}function te(xe){return this instanceof te?(this.v=xe,this):new te(xe)}function fe(xe,Me,Ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,se=Ze.apply(xe,Me||[]),he=[];return ze={},De("next"),De("throw"),De("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function De(Te){se[Te]&&(ze[Te]=function(He){return new Promise(function(dt,et){he.push([Te,He,dt,et])>1||j(Te,He)})})}function j(Te,He){try{!function P(Te){Te.value instanceof te?Promise.resolve(Te.value.v).then(G,ce):q(he[0][2],Te)}(se[Te](He))}catch(dt){q(he[0][3],dt)}}function G(Te){j("next",Te)}function ce(Te){j("throw",Te)}function q(Te,He){Te(He),he.shift(),he.length&&j(he[0][0],he[0][1])}}function we(xe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,Me=xe[Symbol.asyncIterator];return Me?Me.call(xe):(xe=function V(xe){var Me="function"==typeof Symbol&&Symbol.iterator,Ze=Me&&xe[Me],se=0;if(Ze)return Ze.call(xe);if(xe&&"number"==typeof xe.length)return{next:function(){return xe&&se>=xe.length&&(xe=void 0),{value:xe&&xe[se++],done:!xe}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}(xe),Ze={},se("next"),se("throw"),se("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze);function se(he){Ze[he]=xe[he]&&function(De){return new Promise(function(j,P){!function ze(he,De,j,P){Promise.resolve(P).then(function(G){he({value:G,done:j})},De)}(j,P,(De=xe[he](De)).done,De.value)})}}}h.d(pe,{FC:()=>fe,KL:()=>we,gn:()=>g,mG:()=>v,qq:()=>te})},37340:(Je,pe,h)=>{"use strict";h.d(pe,{F4:()=>U,IO:()=>ne,LC:()=>d,SB:()=>R,X$:()=>w,ZE:()=>ue,ZN:()=>fe,_j:()=>e,eR:()=>_,jt:()=>g,k1:()=>we,l3:()=>A,oB:()=>v,pV:()=>Y,ru:()=>C,vP:()=>T});class e{}class d{}const A="*";function w(E,O){return{type:7,name:E,definitions:O,options:{}}}function g(E,O=null){return{type:4,styles:O,timings:E}}function C(E,O=null){return{type:3,steps:E,options:O}}function T(E,O=null){return{type:2,steps:E,options:O}}function v(E){return{type:6,styles:E,offset:null}}function R(E,O,H){return{type:0,name:E,styles:O,options:H}}function U(E){return{type:5,steps:E}}function _(E,O,H=null){return{type:1,expr:E,animation:O,options:H}}function Y(E=null){return{type:9,options:E}}function ne(E,O,H=null){return{type:11,selector:E,animation:O,options:H}}function te(E){Promise.resolve(null).then(E)}class fe{constructor(O=0,H=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=O+H}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}onStart(O){this._originalOnStartFns.push(O),this._onStartFns.push(O)}onDone(O){this._originalOnDoneFns.push(O),this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){te(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(O=>O()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(O){this._position=this.totalTime?O*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(O){const H="start"==O?this._onStartFns:this._onDoneFns;H.forEach(W=>W()),H.length=0}}class ue{constructor(O){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=O;let H=0,W=0,$=0;const de=this.players.length;0==de?te(()=>this._onFinish()):this.players.forEach(ye=>{ye.onDone(()=>{++H==de&&this._onFinish()}),ye.onDestroy(()=>{++W==de&&this._onDestroy()}),ye.onStart(()=>{++$==de&&this._onStart()})}),this.totalTime=this.players.reduce((ye,xe)=>Math.max(ye,xe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}init(){this.players.forEach(O=>O.init())}onStart(O){this._onStartFns.push(O)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(O=>O()),this._onStartFns=[])}onDone(O){this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(O=>O.play())}pause(){this.players.forEach(O=>O.pause())}restart(){this.players.forEach(O=>O.restart())}finish(){this._onFinish(),this.players.forEach(O=>O.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(O=>O.destroy()),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}reset(){this.players.forEach(O=>O.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(O){const H=O*this.totalTime;this.players.forEach(W=>{const $=W.totalTime?Math.min(1,H/W.totalTime):1;W.setPosition($)})}getPosition(){const O=this.players.reduce((H,W)=>null===H||W.totalTime>H.totalTime?W:H,null);return null!=O?O.getPosition():0}beforeDestroy(){this.players.forEach(O=>{O.beforeDestroy&&O.beforeDestroy()})}triggerCallback(O){const H="start"==O?this._onStartFns:this._onDoneFns;H.forEach(W=>W()),H.length=0}}const we="!"},12687:(Je,pe,h)=>{"use strict";h.d(pe,{$s:()=>xe,Em:()=>he,Kd:()=>c,X6:()=>L,ic:()=>j,kH:()=>Ut,mK:()=>ge,qV:()=>oe,qm:()=>Ge,rt:()=>Ie,s1:()=>ze,tE:()=>Pt,yG:()=>r});var e=h(36895),d=h(94650),A=h(83353),w=h(77579),g=h(50727),C=h(61135),T=h(39646),v=h(29521),R=h(18505),U=h(78372),_=h(39300),V=h(54004),Y=h(95698),X=h(35684),ne=h(71884),le=h(82722),te=h(21281),fe=h(49643),ue=h(62289);function H(Xe,Ke){return(Xe.getAttribute(Ke)||"").match(/\S+/g)||[]}const $="cdk-describedby-message",de="cdk-describedby-host";let ye=0,xe=(()=>{class Xe{constructor(ke,Ae){this._platform=Ae,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ye++,this._document=ke,this._id=(0,d.f3M)(d.AFp)+"-"+ye++}describe(ke,Ae,Ee){if(!this._canBeDescribed(ke,Ae))return;const We=Me(Ae,Ee);"string"!=typeof Ae?(Ze(Ae,this._id),this._messageRegistry.set(We,{messageElement:Ae,referenceCount:0})):this._messageRegistry.has(We)||this._createMessageElement(Ae,Ee),this._isElementDescribedByMessage(ke,We)||this._addMessageReference(ke,We)}removeDescription(ke,Ae,Ee){var We;if(!Ae||!this._isElementNode(ke))return;const tt=Me(Ae,Ee);if(this._isElementDescribedByMessage(ke,tt)&&this._removeMessageReference(ke,tt),"string"==typeof Ae){const ot=this._messageRegistry.get(tt);ot&&0===ot.referenceCount&&this._deleteMessageElement(tt)}0===(null===(We=this._messagesContainer)||void 0===We?void 0:We.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var ke;const Ae=this._document.querySelectorAll(`[${de}="${this._id}"]`);for(let Ee=0;Ee0!=Ee.indexOf($));ke.setAttribute("aria-describedby",Ae.join(" "))}_addMessageReference(ke,Ae){const Ee=this._messageRegistry.get(Ae);(function E(Xe,Ke,ke){const Ae=H(Xe,Ke);Ae.some(Ee=>Ee.trim()==ke.trim())||(Ae.push(ke.trim()),Xe.setAttribute(Ke,Ae.join(" ")))})(ke,"aria-describedby",Ee.messageElement.id),ke.setAttribute(de,this._id),Ee.referenceCount++}_removeMessageReference(ke,Ae){const Ee=this._messageRegistry.get(Ae);Ee.referenceCount--,function O(Xe,Ke,ke){const Ee=H(Xe,Ke).filter(We=>We!=ke.trim());Ee.length?Xe.setAttribute(Ke,Ee.join(" ")):Xe.removeAttribute(Ke)}(ke,"aria-describedby",Ee.messageElement.id),ke.removeAttribute(de)}_isElementDescribedByMessage(ke,Ae){const Ee=H(ke,"aria-describedby"),We=this._messageRegistry.get(Ae),tt=We&&We.messageElement.id;return!!tt&&-1!=Ee.indexOf(tt)}_canBeDescribed(ke,Ae){if(!this._isElementNode(ke))return!1;if(Ae&&"object"==typeof Ae)return!0;const Ee=null==Ae?"":`${Ae}`.trim(),We=ke.getAttribute("aria-label");return!(!Ee||We&&We.trim()===Ee)}_isElementNode(ke){return ke.nodeType===this._document.ELEMENT_NODE}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.LFG(e.K0),d.LFG(A.t4))},Xe.\u0275prov=d.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();function Me(Xe,Ke){return"string"==typeof Xe?`${Ke||""}/${Xe}`:Xe}function Ze(Xe,Ke){Xe.id||(Xe.id=`${$}-${Ke}-${ye++}`)}class se{constructor(Ke){this._items=Ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.x,this._typeaheadSubscription=g.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=ke=>ke.disabled,this._pressedLetters=[],this.tabOut=new w.x,this.change=new w.x,Ke instanceof d.n_E&&Ke.changes.subscribe(ke=>{if(this._activeItem){const Ee=ke.toArray().indexOf(this._activeItem);Ee>-1&&Ee!==this._activeItemIndex&&(this._activeItemIndex=Ee)}})}skipPredicate(Ke){return this._skipPredicateFn=Ke,this}withWrap(Ke=!0){return this._wrap=Ke,this}withVerticalOrientation(Ke=!0){return this._vertical=Ke,this}withHorizontalOrientation(Ke){return this._horizontal=Ke,this}withAllowedModifierKeys(Ke){return this._allowedModifierKeys=Ke,this}withTypeAhead(Ke=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(ke=>this._pressedLetters.push(ke)),(0,U.b)(Ke),(0,_.h)(()=>this._pressedLetters.length>0),(0,V.U)(()=>this._pressedLetters.join(""))).subscribe(ke=>{const Ae=this._getItemsArray();for(let Ee=1;Ee!Ke[We]||this._allowedModifierKeys.indexOf(We)>-1);switch(ke){case v.Mf:return void this.tabOut.next();case v.JH:if(this._vertical&&Ee){this.setNextItemActive();break}return;case v.LH:if(this._vertical&&Ee){this.setPreviousItemActive();break}return;case v.SV:if(this._horizontal&&Ee){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case v.oh:if(this._horizontal&&Ee){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case v.Sd:if(this._homeAndEnd&&Ee){this.setFirstItemActive();break}return;case v.uR:if(this._homeAndEnd&&Ee){this.setLastItemActive();break}return;default:return void((Ee||(0,v.Vb)(Ke,"shiftKey"))&&(Ke.key&&1===Ke.key.length?this._letterKeyStream.next(Ke.key.toLocaleUpperCase()):(ke>=v.A&&ke<=v.Z||ke>=v.xE&&ke<=v.aO)&&this._letterKeyStream.next(String.fromCharCode(ke))))}this._pressedLetters=[],Ke.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(Ke){const ke=this._getItemsArray(),Ae="number"==typeof Ke?Ke:ke.indexOf(Ke);this._activeItem=ke[Ae]??null,this._activeItemIndex=Ae}_setActiveItemByDelta(Ke){this._wrap?this._setActiveInWrapMode(Ke):this._setActiveInDefaultMode(Ke)}_setActiveInWrapMode(Ke){const ke=this._getItemsArray();for(let Ae=1;Ae<=ke.length;Ae++){const Ee=(this._activeItemIndex+Ke*Ae+ke.length)%ke.length;if(!this._skipPredicateFn(ke[Ee]))return void this.setActiveItem(Ee)}}_setActiveInDefaultMode(Ke){this._setActiveItemByIndex(this._activeItemIndex+Ke,Ke)}_setActiveItemByIndex(Ke,ke){const Ae=this._getItemsArray();if(Ae[Ke]){for(;this._skipPredicateFn(Ae[Ke]);)if(!Ae[Ke+=ke])return;this.setActiveItem(Ke)}}_getItemsArray(){return this._items instanceof d.n_E?this._items.toArray():this._items}}class ze extends se{setActiveItem(Ke){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ke),this.activeItem&&this.activeItem.setActiveStyles()}}class he extends se{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ke){return this._origin=Ke,this}setActiveItem(Ke){super.setActiveItem(Ke),this.activeItem&&this.activeItem.focus(this._origin)}}let j=(()=>{class Xe{constructor(ke){this._platform=ke}isDisabled(ke){return ke.hasAttribute("disabled")}isVisible(ke){return function G(Xe){return!!(Xe.offsetWidth||Xe.offsetHeight||"function"==typeof Xe.getClientRects&&Xe.getClientRects().length)}(ke)&&"visible"===getComputedStyle(ke).visibility}isTabbable(ke){if(!this._platform.isBrowser)return!1;const Ae=function P(Xe){try{return Xe.frameElement}catch{return null}}(function Z(Xe){return Xe.ownerDocument&&Xe.ownerDocument.defaultView||window}(ke));if(Ae&&(-1===_t(Ae)||!this.isVisible(Ae)))return!1;let Ee=ke.nodeName.toLowerCase(),We=_t(ke);return ke.hasAttribute("contenteditable")?-1!==We:!("iframe"===Ee||"object"===Ee||this._platform.WEBKIT&&this._platform.IOS&&!function Qe(Xe){let Ke=Xe.nodeName.toLowerCase(),ke="input"===Ke&&Xe.type;return"text"===ke||"password"===ke||"select"===Ke||"textarea"===Ke}(ke))&&("audio"===Ee?!!ke.hasAttribute("controls")&&-1!==We:"video"===Ee?-1!==We&&(null!==We||this._platform.FIREFOX||ke.hasAttribute("controls")):ke.tabIndex>=0)}isFocusable(ke,Ae){return function st(Xe){return!function q(Xe){return function He(Xe){return"input"==Xe.nodeName.toLowerCase()}(Xe)&&"hidden"==Xe.type}(Xe)&&(function ce(Xe){let Ke=Xe.nodeName.toLowerCase();return"input"===Ke||"select"===Ke||"button"===Ke||"textarea"===Ke}(Xe)||function Te(Xe){return function dt(Xe){return"a"==Xe.nodeName.toLowerCase()}(Xe)&&Xe.hasAttribute("href")}(Xe)||Xe.hasAttribute("contenteditable")||et(Xe))}(ke)&&!this.isDisabled(ke)&&(Ae?.ignoreVisibility||this.isVisible(ke))}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.LFG(A.t4))},Xe.\u0275prov=d.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();function et(Xe){if(!Xe.hasAttribute("tabindex")||void 0===Xe.tabIndex)return!1;let Ke=Xe.getAttribute("tabindex");return!(!Ke||isNaN(parseInt(Ke,10)))}function _t(Xe){if(!et(Xe))return null;const Ke=parseInt(Xe.getAttribute("tabindex")||"",10);return isNaN(Ke)?-1:Ke}class ve{constructor(Ke,ke,Ae,Ee,We=!1){this._element=Ke,this._checker=ke,this._ngZone=Ae,this._document=Ee,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,We||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ke){this._enabled=Ke,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ke,this._startAnchor),this._toggleAnchorTabIndex(Ke,this._endAnchor))}destroy(){const Ke=this._startAnchor,ke=this._endAnchor;Ke&&(Ke.removeEventListener("focus",this.startAnchorListener),Ke.remove()),ke&&(ke.removeEventListener("focus",this.endAnchorListener),ke.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(Ke){return new Promise(ke=>{this._executeOnStable(()=>ke(this.focusInitialElement(Ke)))})}focusFirstTabbableElementWhenReady(Ke){return new Promise(ke=>{this._executeOnStable(()=>ke(this.focusFirstTabbableElement(Ke)))})}focusLastTabbableElementWhenReady(Ke){return new Promise(ke=>{this._executeOnStable(()=>ke(this.focusLastTabbableElement(Ke)))})}_getRegionBoundary(Ke){const ke=this._element.querySelectorAll(`[cdk-focus-region-${Ke}], [cdkFocusRegion${Ke}], [cdk-focus-${Ke}]`);return"start"==Ke?ke.length?ke[0]:this._getFirstTabbableElement(this._element):ke.length?ke[ke.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ke){const ke=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(ke){if(!this._checker.isFocusable(ke)){const Ae=this._getFirstTabbableElement(ke);return Ae?.focus(Ke),!!Ae}return ke.focus(Ke),!0}return this.focusFirstTabbableElement(Ke)}focusFirstTabbableElement(Ke){const ke=this._getRegionBoundary("start");return ke&&ke.focus(Ke),!!ke}focusLastTabbableElement(Ke){const ke=this._getRegionBoundary("end");return ke&&ke.focus(Ke),!!ke}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ke){if(this._checker.isFocusable(Ke)&&this._checker.isTabbable(Ke))return Ke;const ke=Ke.children;for(let Ae=0;Ae=0;Ae--){const Ee=ke[Ae].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(ke[Ae]):null;if(Ee)return Ee}return null}_createAnchor(){const Ke=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ke),Ke.classList.add("cdk-visually-hidden"),Ke.classList.add("cdk-focus-trap-anchor"),Ke.setAttribute("aria-hidden","true"),Ke}_toggleAnchorTabIndex(Ke,ke){Ke?ke.setAttribute("tabindex","0"):ke.removeAttribute("tabindex")}toggleAnchors(Ke){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ke,this._startAnchor),this._toggleAnchorTabIndex(Ke,this._endAnchor))}_executeOnStable(Ke){this._ngZone.isStable?Ke():this._ngZone.onStable.pipe((0,Y.q)(1)).subscribe(Ke)}}let oe=(()=>{class Xe{constructor(ke,Ae,Ee){this._checker=ke,this._ngZone=Ae,this._document=Ee}create(ke,Ae=!1){return new ve(ke,this._checker,this._ngZone,this._document,Ae)}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.LFG(j),d.LFG(d.R0b),d.LFG(e.K0))},Xe.\u0275prov=d.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),ge=(()=>{class Xe{constructor(ke,Ae,Ee){this._elementRef=ke,this._focusTrapFactory=Ae,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(ke){this.focusTrap.enabled=(0,te.Ig)(ke)}get autoCapture(){return this._autoCapture}set autoCapture(ke){this._autoCapture=(0,te.Ig)(ke)}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(ke){const Ae=ke.autoCapture;Ae&&!Ae.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.Y36(d.SBq),d.Y36(oe),d.Y36(e.K0))},Xe.\u0275dir=d.lG2({type:Xe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[d.TTD]}),Xe})();function L(Xe){return 0===Xe.buttons||0===Xe.offsetX&&0===Xe.offsetY}function r(Xe){const Ke=Xe.touches&&Xe.touches[0]||Xe.changedTouches&&Xe.changedTouches[0];return!(!Ke||-1!==Ke.identifier||null!=Ke.radiusX&&1!==Ke.radiusX||null!=Ke.radiusY&&1!==Ke.radiusY)}const s=new d.OlP("cdk-input-modality-detector-options"),m={ignoreKeys:[v.zL,v.jx,v.b2,v.MW,v.JU]},o=(0,A.i$)({passive:!0,capture:!0});let n=(()=>{class Xe{constructor(ke,Ae,Ee,We){this._platform=ke,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=tt=>{var ot,Re;null!==(ot=this._options)&&void 0!==ot&&null!==(Re=ot.ignoreKeys)&&void 0!==Re&&Re.some(lt=>lt===tt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(tt))},this._onMousedown=tt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(L(tt)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(tt))},this._onTouchstart=tt=>{r(tt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(tt))},this._options={...m,...We},this.modalityDetected=this._modality.pipe((0,X.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ne.x)()),ke.isBrowser&&Ae.runOutsideAngular(()=>{Ee.addEventListener("keydown",this._onKeydown,o),Ee.addEventListener("mousedown",this._onMousedown,o),Ee.addEventListener("touchstart",this._onTouchstart,o)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,o),document.removeEventListener("mousedown",this._onMousedown,o),document.removeEventListener("touchstart",this._onTouchstart,o))}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.LFG(A.t4),d.LFG(d.R0b),d.LFG(e.K0),d.LFG(s,8))},Xe.\u0275prov=d.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})();const t=new d.OlP("liveAnnouncerElement",{providedIn:"root",factory:function i(){return null}}),a=new d.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let c=(()=>{class Xe{constructor(ke,Ae,Ee,We){this._ngZone=Ae,this._defaultOptions=We,this._document=Ee,this._liveElement=ke||this._createLiveElement()}announce(ke,...Ae){const Ee=this._defaultOptions;let We,tt;return 1===Ae.length&&"number"==typeof Ae[0]?tt=Ae[0]:[We,tt]=Ae,this.clear(),clearTimeout(this._previousTimeout),We||(We=Ee&&Ee.politeness?Ee.politeness:"polite"),null==tt&&Ee&&(tt=Ee.duration),this._liveElement.setAttribute("aria-live",We),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ot=>this._currentResolve=ot)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=ke,"number"==typeof tt&&(this._previousTimeout=setTimeout(()=>this.clear(),tt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var ke,Ae;clearTimeout(this._previousTimeout),null===(ke=this._liveElement)||void 0===ke||ke.remove(),this._liveElement=null,null===(Ae=this._currentResolve)||void 0===Ae||Ae.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const ke="cdk-live-announcer-element",Ae=this._document.getElementsByClassName(ke),Ee=this._document.createElement("div");for(let We=0;We{class Xe{constructor(ke,Ae,Ee,We,tt){this._ngZone=ke,this._platform=Ae,this._inputModalityDetector=Ee,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 w.x,this._rootNodeFocusAndBlurListener=ot=>{for(let lt=(0,A.sA)(ot);lt;lt=lt.parentElement)"focus"===ot.type?this._onFocus(ot,lt):this._onBlur(ot,lt)},this._document=We,this._detectionMode=tt?.detectionMode||0}monitor(ke,Ae=!1){const Ee=(0,te.fI)(ke);if(!this._platform.isBrowser||1!==Ee.nodeType)return(0,T.of)(null);const We=(0,A.kV)(Ee)||this._getDocument(),tt=this._elementInfo.get(Ee);if(tt)return Ae&&(tt.checkChildren=!0),tt.subject;const ot={checkChildren:Ae,subject:new w.x,rootNode:We};return this._elementInfo.set(Ee,ot),this._registerGlobalListeners(ot),ot.subject}stopMonitoring(ke){const Ae=(0,te.fI)(ke),Ee=this._elementInfo.get(Ae);Ee&&(Ee.subject.complete(),this._setClasses(Ae),this._elementInfo.delete(Ae),this._removeGlobalListeners(Ee))}focusVia(ke,Ae,Ee){const We=(0,te.fI)(ke);We===this._getDocument().activeElement?this._getClosestElementsInfo(We).forEach(([ot,Re])=>this._originChanged(ot,Ae,Re)):(this._setOrigin(Ae),"function"==typeof We.focus&&We.focus(Ee))}ngOnDestroy(){this._elementInfo.forEach((ke,Ae)=>this.stopMonitoring(Ae))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(ke){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ke)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ke&&this._isLastInteractionFromInputLabel(ke)?"mouse":"program"}_shouldBeAttributedToTouch(ke){return 1===this._detectionMode||!(null==ke||!ke.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(ke,Ae){ke.classList.toggle("cdk-focused",!!Ae),ke.classList.toggle("cdk-touch-focused","touch"===Ae),ke.classList.toggle("cdk-keyboard-focused","keyboard"===Ae),ke.classList.toggle("cdk-mouse-focused","mouse"===Ae),ke.classList.toggle("cdk-program-focused","program"===Ae)}_setOrigin(ke,Ae=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ke,this._originFromTouchInteraction="touch"===ke&&Ae,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ke,Ae){const Ee=this._elementInfo.get(Ae),We=(0,A.sA)(ke);!Ee||!Ee.checkChildren&&Ae!==We||this._originChanged(Ae,this._getFocusOrigin(We),Ee)}_onBlur(ke,Ae){const Ee=this._elementInfo.get(Ae);!Ee||Ee.checkChildren&&ke.relatedTarget instanceof Node&&Ae.contains(ke.relatedTarget)||(this._setClasses(Ae),this._emitOrigin(Ee,null))}_emitOrigin(ke,Ae){ke.subject.observers.length&&this._ngZone.run(()=>ke.subject.next(Ae))}_registerGlobalListeners(ke){if(!this._platform.isBrowser)return;const Ae=ke.rootNode,Ee=this._rootNodeFocusListenerCount.get(Ae)||0;Ee||this._ngZone.runOutsideAngular(()=>{Ae.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),Ae.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ne)}),this._rootNodeFocusListenerCount.set(Ae,Ee+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,le.R)(this._stopInputModalityDetector)).subscribe(We=>{this._setOrigin(We,!0)}))}_removeGlobalListeners(ke){const Ae=ke.rootNode;if(this._rootNodeFocusListenerCount.has(Ae)){const Ee=this._rootNodeFocusListenerCount.get(Ae);Ee>1?this._rootNodeFocusListenerCount.set(Ae,Ee-1):(Ae.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ne),Ae.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ne),this._rootNodeFocusListenerCount.delete(Ae))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ke,Ae,Ee){this._setClasses(ke,Ae),this._emitOrigin(Ee,Ae),this._lastFocusOrigin=Ae}_getClosestElementsInfo(ke){const Ae=[];return this._elementInfo.forEach((Ee,We)=>{(We===ke||Ee.checkChildren&&We.contains(ke))&&Ae.push([We,Ee])}),Ae}_isLastInteractionFromInputLabel(ke){const{_mostRecentTarget:Ae,mostRecentModality:Ee}=this._inputModalityDetector;if("mouse"!==Ee||!Ae||Ae===ke||"INPUT"!==ke.nodeName&&"TEXTAREA"!==ke.nodeName||ke.disabled)return!1;const We=ke.labels;if(We)for(let tt=0;tt{class Xe{constructor(ke,Ae){this._elementRef=ke,this._focusMonitor=Ae,this.cdkFocusChange=new d.vpe}ngAfterViewInit(){const ke=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ke,1===ke.nodeType&&ke.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Ae=>this.cdkFocusChange.emit(Ae))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.Y36(d.SBq),d.Y36(Pt))},Xe.\u0275dir=d.lG2({type:Xe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Xe})();const ln="cdk-high-contrast-black-on-white",xt="cdk-high-contrast-white-on-black",gt="cdk-high-contrast-active";let Ge=(()=>{class Xe{constructor(ke,Ae){this._platform=ke,this._document=Ae,this._breakpointSubscription=(0,d.f3M)(ue.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const ke=this._document.createElement("div");ke.style.backgroundColor="rgb(1,2,3)",ke.style.position="absolute",this._document.body.appendChild(ke);const Ae=this._document.defaultView||window,Ee=Ae&&Ae.getComputedStyle?Ae.getComputedStyle(ke):null,We=(Ee&&Ee.backgroundColor||"").replace(/ /g,"");switch(ke.remove(),We){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 ke=this._document.body.classList;ke.remove(gt,ln,xt),this._hasCheckedHighContrastMode=!0;const Ae=this.getHighContrastMode();1===Ae?ke.add(gt,ln):2===Ae&&ke.add(gt,xt)}}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.LFG(A.t4),d.LFG(e.K0))},Xe.\u0275prov=d.Yz7({token:Xe,factory:Xe.\u0275fac,providedIn:"root"}),Xe})(),Ie=(()=>{class Xe{constructor(ke){ke._applyBodyHighContrastModeCssClasses()}}return Xe.\u0275fac=function(ke){return new(ke||Xe)(d.LFG(Ge))},Xe.\u0275mod=d.oAB({type:Xe}),Xe.\u0275inj=d.cJS({imports:[fe.Q8]}),Xe})()},40445:(Je,pe,h)=>{"use strict";h.d(pe,{Is:()=>T,vT:()=>R});var e=h(94650),d=h(36895);const A=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(d.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class U{constructor(V){if(this.value="ltr",this.change=new e.vpe,V){const X=V.documentElement?V.documentElement.dir:null;this.value=function C(U){var _;const V=U?.toLowerCase()||"";return"auto"===V&&typeof navigator<"u"&&null!==(_=navigator)&&void 0!==_&&_.language?g.test(navigator.language)?"rtl":"ltr":"rtl"===V?"rtl":"ltr"}((V.body?V.body.dir:null)||X||"ltr")}}ngOnDestroy(){this.change.complete()}}return U.\u0275fac=function(V){return new(V||U)(e.LFG(A,8))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),R=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({}),U})()},64425:(Je,pe,h)=>{"use strict";h.d(pe,{Iq:()=>T,TU:()=>w,i3:()=>C});var e=h(36895),d=h(94650);class A{constructor(R,U){this._document=U;const _=this._textarea=this._document.createElement("textarea"),V=_.style;V.position="fixed",V.top=V.opacity="0",V.left="-999em",_.setAttribute("aria-hidden","true"),_.value=R,_.readOnly=!0,this._document.body.appendChild(_)}copy(){const R=this._textarea;let U=!1;try{if(R){const _=this._document.activeElement;R.select(),R.setSelectionRange(0,R.value.length),U=this._document.execCommand("copy"),_&&_.focus()}}catch{}return U}destroy(){const R=this._textarea;R&&(R.remove(),this._textarea=void 0)}}let w=(()=>{class v{constructor(U){this._document=U}copy(U){const _=this.beginCopy(U),V=_.copy();return _.destroy(),V}beginCopy(U){return new A(U,this._document)}}return v.\u0275fac=function(U){return new(U||v)(d.LFG(e.K0))},v.\u0275prov=d.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"}),v})();const g=new d.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let C=(()=>{class v{constructor(U,_,V){this._clipboard=U,this._ngZone=_,this.text="",this.attempts=1,this.copied=new d.vpe,this._pending=new Set,V&&null!=V.attempts&&(this.attempts=V.attempts)}copy(U=this.attempts){if(U>1){let _=U;const V=this._clipboard.beginCopy(this.text);this._pending.add(V);const Y=()=>{const X=V.copy();X||!--_||this._destroyed?(this._currentTimeout=null,this._pending.delete(V),V.destroy(),this.copied.emit(X)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(Y,1))};Y()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(U=>U.destroy()),this._pending.clear(),this._destroyed=!0}}return v.\u0275fac=function(U){return new(U||v)(d.Y36(w),d.Y36(d.R0b),d.Y36(g,8))},v.\u0275dir=d.lG2({type:v,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(U,_){1&U&&d.NdJ("click",function(){return _.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),v})(),T=(()=>{class v{}return v.\u0275fac=function(U){return new(U||v)},v.\u0275mod=d.oAB({type:v}),v.\u0275inj=d.cJS({}),v})()},21281:(Je,pe,h)=>{"use strict";h.d(pe,{Eq:()=>g,HM:()=>C,Ig:()=>d,du:()=>v,fI:()=>T,su:()=>A,t6:()=>w});var e=h(94650);function d(R){return null!=R&&"false"!=`${R}`}function A(R,U=0){return w(R)?Number(R):U}function w(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function g(R){return Array.isArray(R)?R:[R]}function C(R){return null==R?"":"string"==typeof R?R:`${R}px`}function T(R){return R instanceof e.SBq?R.nativeElement:R}function v(R,U=/\s+/){const _=[];if(null!=R){const V=Array.isArray(R)?R:`${R}`.split(U);for(const Y of V){const X=`${Y}`.trim();X&&_.push(X)}}return _}},95017:(Je,pe,h)=>{"use strict";h.d(pe,{A8:()=>V,Ov:()=>U,P3:()=>T,Z9:()=>C,eX:()=>R,k:()=>Y,o2:()=>g,yy:()=>v});var e=h(45191),d=h(39646),A=h(77579),w=h(94650);class g{}function C(X){return X&&"function"==typeof X.connect}class T extends g{constructor(ne){super(),this._data=ne}connect(){return(0,e.b)(this._data)?this._data:(0,d.of)(this._data)}disconnect(){}}class v{applyChanges(ne,le,te,fe,ue){ne.forEachOperation((we,E,O)=>{let H,W;if(null==we.previousIndex){const de=te(we,E,O);H=le.createEmbeddedView(de.templateRef,de.context,de.index),W=1}else null==O?(le.remove(E),W=3):(H=le.get(E),le.move(H,O),W=2);var $;ue&&ue({context:null===($=H)||void 0===$?void 0:$.context,operation:W,record:we})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ne,le,te,fe,ue){ne.forEachOperation((we,E,O)=>{let H,W;var $;null==we.previousIndex?(H=this._insertView(()=>te(we,E,O),O,le,fe(we)),W=H?1:0):null==O?(this._detachAndCacheView(E,le),W=3):(H=this._moveView(E,O,le,fe(we)),W=2),ue&&ue({context:null===($=H)||void 0===$?void 0:$.context,operation:W,record:we})})}detach(){for(const ne of this._viewCache)ne.destroy();this._viewCache=[]}_insertView(ne,le,te,fe){const ue=this._insertViewFromCache(le,te);if(ue)return void(ue.context.$implicit=fe);const we=ne();return te.createEmbeddedView(we.templateRef,we.context,we.index)}_detachAndCacheView(ne,le){const te=le.detach(ne);this._maybeCacheView(te,le)}_moveView(ne,le,te,fe){const ue=te.get(ne);return te.move(ue,le),ue.context.$implicit=fe,ue}_maybeCacheView(ne,le){if(this._viewCache.lengththis._markSelected(ue)):this._markSelected(le[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ne){this._verifyValueAssignment(ne),ne.forEach(te=>this._markSelected(te));const le=this._hasQueuedChanges();return this._emitChangeEvent(),le}deselect(...ne){this._verifyValueAssignment(ne),ne.forEach(te=>this._unmarkSelected(te));const le=this._hasQueuedChanges();return this._emitChangeEvent(),le}setSelection(...ne){this._verifyValueAssignment(ne);const le=this.selected,te=new Set(ne);ne.forEach(ue=>this._markSelected(ue)),le.filter(ue=>!te.has(ue)).forEach(ue=>this._unmarkSelected(ue));const fe=this._hasQueuedChanges();return this._emitChangeEvent(),fe}toggle(ne){return this.isSelected(ne)?this.deselect(ne):this.select(ne)}clear(ne=!0){this._unmarkAll();const le=this._hasQueuedChanges();return ne&&this._emitChangeEvent(),le}isSelected(ne){if(this.compareWith){for(const le of this._selection)if(this.compareWith(le,ne))return!0;return!1}return this._selection.has(ne)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ne){this._multiple&&this.selected&&this._selected.sort(ne)}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(ne){this.isSelected(ne)||(this._multiple||this._unmarkAll(),this.isSelected(ne)||this._selection.add(ne),this._emitChanges&&this._selectedToEmit.push(ne))}_unmarkSelected(ne){this.isSelected(ne)&&(this._selection.delete(ne),this._emitChanges&&this._deselectedToEmit.push(ne))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ne=>this._unmarkSelected(ne))}_verifyValueAssignment(ne){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let V=(()=>{class X{constructor(){this._listeners=[]}notify(le,te){for(let fe of this._listeners)fe(le,te)}listen(le){return this._listeners.push(le),()=>{this._listeners=this._listeners.filter(te=>le!==te)}}ngOnDestroy(){this._listeners=[]}}return X.\u0275fac=function(le){return new(le||X)},X.\u0275prov=w.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const Y=new w.OlP("_ViewRepeater")},73555:(Je,pe,h)=>{"use strict";h.d(pe,{Wj:()=>Ne,Zt:()=>Xe,_t:()=>Ke,bA:()=>Z});var e=h(94650),d=h(36895),A=h(67376),w=h(83353),g=h(21281),C=h(12687),T=h(77579),v=h(50727),R=h(17445),U=h(66406),_=h(69751),V=h(56451),Y=h(82722),X=h(68675),ne=h(54004),le=h(95698),te=h(18505),fe=h(63900),ue=h(40445);function we(ke,Ae,Ee){for(let We in Ae)if(Ae.hasOwnProperty(We)){const tt=Ae[We];tt?ke.setProperty(We,tt,null!=Ee&&Ee.has(We)?"important":""):ke.removeProperty(We)}return ke}function E(ke,Ae){const Ee=Ae?"":"none";we(ke.style,{"touch-action":Ae?"":"none","-webkit-user-drag":Ae?"":"none","-webkit-tap-highlight-color":Ae?"":"transparent","user-select":Ee,"-ms-user-select":Ee,"-webkit-user-select":Ee,"-moz-user-select":Ee})}function O(ke,Ae,Ee){we(ke.style,{position:Ae?"":"fixed",top:Ae?"":"0",opacity:Ae?"":"0",left:Ae?"":"-999em"},Ee)}function H(ke,Ae){return Ae&&"none"!=Ae?ke+" "+Ae:ke}function W(ke){const Ae=ke.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(ke)*Ae}function de(ke,Ae){return ke.getPropertyValue(Ae).split(",").map(We=>We.trim())}function ye(ke){const Ae=ke.getBoundingClientRect();return{top:Ae.top,right:Ae.right,bottom:Ae.bottom,left:Ae.left,width:Ae.width,height:Ae.height,x:Ae.x,y:Ae.y}}function xe(ke,Ae,Ee){const{top:We,bottom:tt,left:ot,right:Re}=ke;return Ee>=We&&Ee<=tt&&Ae>=ot&&Ae<=Re}function Me(ke,Ae,Ee){ke.top+=Ae,ke.bottom=ke.top+ke.height,ke.left+=Ee,ke.right=ke.left+ke.width}function Ze(ke,Ae,Ee,We){const{top:tt,right:ot,bottom:Re,left:lt,width:It,height:jt}=ke,sn=It*Ae,Kt=jt*Ae;return We>tt-Kt&&Welt-sn&&Ee{this.positions.set(Ee,{scrollPosition:{top:Ee.scrollTop,left:Ee.scrollLeft},clientRect:ye(Ee)})})}handleScroll(Ae){const Ee=(0,w.sA)(Ae),We=this.positions.get(Ee);if(!We)return null;const tt=We.scrollPosition;let ot,Re;if(Ee===this._document){const jt=this.getViewportScrollPosition();ot=jt.top,Re=jt.left}else ot=Ee.scrollTop,Re=Ee.scrollLeft;const lt=tt.top-ot,It=tt.left-Re;return this.positions.forEach((jt,sn)=>{jt.clientRect&&Ee!==sn&&Ee.contains(sn)&&Me(jt.clientRect,lt,It)}),tt.top=ot,tt.left=Re,{top:lt,left:It}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function ze(ke){const Ae=ke.cloneNode(!0),Ee=Ae.querySelectorAll("[id]"),We=ke.nodeName.toLowerCase();Ae.removeAttribute("id");for(let tt=0;tt{if(this.beforeStarted.next(),this._handles.length){const It=this._getTargetHandle(lt);It&&!this._disabledHandles.has(It)&&!this.disabled&&this._initializeDragSequence(It,lt)}else this.disabled||this._initializeDragSequence(this._rootElement,lt)},this._pointerMove=lt=>{const It=this._getPointerPositionOnPage(lt);if(!this._hasStartedDragging){if(Math.abs(It.x-this._pickupPositionOnPage.x)+Math.abs(It.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const fn=Date.now()>=this._dragStartTime+this._getDragStartDelay(lt),kt=this._dropContainer;if(!fn)return void this._endDragSequence(lt);(!kt||!kt.isDragging()&&!kt.isReceiving())&&(lt.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(lt)))}return}lt.preventDefault();const jt=this._getConstrainedPointerPosition(It);if(this._hasMoved=!0,this._lastKnownPointerPosition=It,this._updatePointerDirectionDelta(jt),this._dropContainer)this._updateActiveDropContainer(jt,It);else{const sn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Kt=this._activeTransform;Kt.x=jt.x-sn.x+this._passiveTransform.x,Kt.y=jt.y-sn.y+this._passiveTransform.y,this._applyRootElementTransform(Kt.x,Kt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:jt,event:lt,distance:this._getDragDistance(jt),delta:this._pointerDirectionDelta})})},this._pointerUp=lt=>{this._endDragSequence(lt)},this._nativeDragStart=lt=>{if(this._handles.length){const It=this._getTargetHandle(lt);It&&!this._disabledHandles.has(It)&&!this.disabled&<.preventDefault()}else this.disabled||lt.preventDefault()},this.withRootElement(Ae).withParent(Ee.parentDragRef||null),this._parentPositions=new se(We),Re.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(Ae){const Ee=(0,g.Ig)(Ae);Ee!==this._disabled&&(this._disabled=Ee,this._toggleNativeDragInteractions(),this._handles.forEach(We=>E(We,Ee)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(Ae){this._handles=Ae.map(We=>(0,g.fI)(We)),this._handles.forEach(We=>E(We,this.disabled)),this._toggleNativeDragInteractions();const Ee=new Set;return this._disabledHandles.forEach(We=>{this._handles.indexOf(We)>-1&&Ee.add(We)}),this._disabledHandles=Ee,this}withPreviewTemplate(Ae){return this._previewTemplate=Ae,this}withPlaceholderTemplate(Ae){return this._placeholderTemplate=Ae,this}withRootElement(Ae){const Ee=(0,g.fI)(Ae);return Ee!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{Ee.addEventListener("mousedown",this._pointerDown,ce),Ee.addEventListener("touchstart",this._pointerDown,G),Ee.addEventListener("dragstart",this._nativeDragStart,ce)}),this._initialTransform=void 0,this._rootElement=Ee),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(Ae){return this._boundaryElement=Ae?(0,g.fI)(Ae):null,this._resizeSubscription.unsubscribe(),Ae&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(Ae){return this._parentDragRef=Ae,this}dispose(){var Ae,Ee;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(Ee=this._rootElement)||void 0===Ee||Ee.remove()),null===(Ae=this._anchor)||void 0===Ae||Ae.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(Ae){!this._disabledHandles.has(Ae)&&this._handles.indexOf(Ae)>-1&&(this._disabledHandles.add(Ae),E(Ae,!0))}enableHandle(Ae){this._disabledHandles.has(Ae)&&(this._disabledHandles.delete(Ae),E(Ae,this.disabled))}withDirection(Ae){return this._direction=Ae,this}_withDropContainer(Ae){this._dropContainer=Ae}getFreeDragPosition(){const Ae=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:Ae.x,y:Ae.y}}setFreeDragPosition(Ae){return this._activeTransform={x:0,y:0},this._passiveTransform.x=Ae.x,this._passiveTransform.y=Ae.y,this._dropContainer||this._applyRootElementTransform(Ae.x,Ae.y),this}withPreviewContainer(Ae){return this._previewContainer=Ae,this}_sortFromLastPointerPosition(){const Ae=this._lastKnownPointerPosition;Ae&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(Ae),Ae)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var Ae,Ee;null===(Ae=this._preview)||void 0===Ae||Ae.remove(),null===(Ee=this._previewRef)||void 0===Ee||Ee.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var Ae,Ee;null===(Ae=this._placeholder)||void 0===Ae||Ae.remove(),null===(Ee=this._placeholderRef)||void 0===Ee||Ee.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(Ae){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:Ae}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(Ae),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const Ee=this._getPointerPositionOnPage(Ae);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(Ee),dropPoint:Ee,event:Ae})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(Ae){_t(Ae)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const Ee=this._dropContainer;if(Ee){const We=this._rootElement,tt=We.parentNode,ot=this._placeholder=this._createPlaceholderElement(),Re=this._anchor=this._anchor||this._document.createComment(""),lt=this._getShadowRoot();tt.insertBefore(Re,We),this._initialTransform=We.style.transform||"",this._preview=this._createPreviewElement(),O(We,!1,Te),this._document.body.appendChild(tt.replaceChild(ot,We)),this._getPreviewInsertionPoint(tt,lt).appendChild(this._preview),this.started.next({source:this,event:Ae}),Ee.start(),this._initialContainer=Ee,this._initialIndex=Ee.getItemIndex(this)}else this.started.next({source:this,event:Ae}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(Ee?Ee.getScrollableParents():[])}_initializeDragSequence(Ae,Ee){this._parentDragRef&&Ee.stopPropagation();const We=this.isDragging(),tt=_t(Ee),ot=!tt&&0!==Ee.button,Re=this._rootElement,lt=(0,w.sA)(Ee),It=!tt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),jt=tt?(0,C.yG)(Ee):(0,C.X6)(Ee);if(lt&<.draggable&&"mousedown"===Ee.type&&Ee.preventDefault(),We||ot||It||jt)return;if(this._handles.length){const on=Re.style;this._rootElementTapHighlight=on.webkitTapHighlightColor||"",on.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(on=>this._updateOnScroll(on)),this._boundaryElement&&(this._boundaryRect=ye(this._boundaryElement));const sn=this._previewTemplate;this._pickupPositionInElement=sn&&sn.template&&!sn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,Ae,Ee);const Kt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(Ee);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Kt.x,y:Kt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,Ee)}_cleanupDragArtifacts(Ae){O(this._rootElement,!0,Te),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const Ee=this._dropContainer,We=Ee.getItemIndex(this),tt=this._getPointerPositionOnPage(Ae),ot=this._getDragDistance(tt),Re=Ee._isOverContainer(tt.x,tt.y);this.ended.next({source:this,distance:ot,dropPoint:tt,event:Ae}),this.dropped.next({item:this,currentIndex:We,previousIndex:this._initialIndex,container:Ee,previousContainer:this._initialContainer,isPointerOverContainer:Re,distance:ot,dropPoint:tt,event:Ae}),Ee.drop(this,We,this._initialIndex,this._initialContainer,Re,ot,tt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:Ae,y:Ee},{x:We,y:tt}){let ot=this._initialContainer._getSiblingContainerFromPosition(this,Ae,Ee);!ot&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(Ae,Ee)&&(ot=this._initialContainer),ot&&ot!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ot,this._dropContainer.enter(this,Ae,Ee,ot===this._initialContainer&&ot.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ot,currentIndex:ot.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(We,tt),this._dropContainer._sortItem(this,Ae,Ee,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(Ae,Ee):this._applyPreviewTransform(Ae-this._pickupPositionInElement.x,Ee-this._pickupPositionInElement.y))}_createPreviewElement(){const Ae=this._previewTemplate,Ee=this.previewClass,We=Ae?Ae.template:null;let tt;if(We&&Ae){const ot=Ae.matchSize?this._initialClientRect:null,Re=Ae.viewContainer.createEmbeddedView(We,Ae.context);Re.detectChanges(),tt=Qe(Re,this._document),this._previewRef=Re,Ae.matchSize?st(tt,ot):tt.style.transform=dt(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else tt=ze(this._rootElement),st(tt,this._initialClientRect),this._initialTransform&&(tt.style.transform=this._initialTransform);return we(tt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Te),E(tt,!1),tt.classList.add("cdk-drag-preview"),tt.setAttribute("dir",this._direction),Ee&&(Array.isArray(Ee)?Ee.forEach(ot=>tt.classList.add(ot)):tt.classList.add(Ee)),tt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const Ae=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(Ae.left,Ae.top);const Ee=function $(ke){const Ae=getComputedStyle(ke),Ee=de(Ae,"transition-property"),We=Ee.find(lt=>"transform"===lt||"all"===lt);if(!We)return 0;const tt=Ee.indexOf(We),ot=de(Ae,"transition-duration"),Re=de(Ae,"transition-delay");return W(ot[tt])+W(Re[tt])}(this._preview);return 0===Ee?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(We=>{const tt=Re=>{var lt;(!Re||(0,w.sA)(Re)===this._preview&&"transform"===Re.propertyName)&&(null===(lt=this._preview)||void 0===lt||lt.removeEventListener("transitionend",tt),We(),clearTimeout(ot))},ot=setTimeout(tt,1.5*Ee);this._preview.addEventListener("transitionend",tt)}))}_createPlaceholderElement(){const Ae=this._placeholderTemplate,Ee=Ae?Ae.template:null;let We;return Ee?(this._placeholderRef=Ae.viewContainer.createEmbeddedView(Ee,Ae.context),this._placeholderRef.detectChanges(),We=Qe(this._placeholderRef,this._document)):We=ze(this._rootElement),We.style.pointerEvents="none",We.classList.add("cdk-drag-placeholder"),We}_getPointerPositionInElement(Ae,Ee,We){const tt=Ee===this._rootElement?null:Ee,ot=tt?tt.getBoundingClientRect():Ae,Re=_t(We)?We.targetTouches[0]:We,lt=this._getViewportScrollPosition();return{x:ot.left-Ae.left+(Re.pageX-ot.left-lt.left),y:ot.top-Ae.top+(Re.pageY-ot.top-lt.top)}}_getPointerPositionOnPage(Ae){const Ee=this._getViewportScrollPosition(),We=_t(Ae)?Ae.touches[0]||Ae.changedTouches[0]||{pageX:0,pageY:0}:Ae,tt=We.pageX-Ee.left,ot=We.pageY-Ee.top;if(this._ownerSVGElement){const Re=this._ownerSVGElement.getScreenCTM();if(Re){const lt=this._ownerSVGElement.createSVGPoint();return lt.x=tt,lt.y=ot,lt.matrixTransform(Re.inverse())}}return{x:tt,y:ot}}_getConstrainedPointerPosition(Ae){const Ee=this._dropContainer?this._dropContainer.lockAxis:null;let{x:We,y:tt}=this.constrainPosition?this.constrainPosition(Ae,this,this._initialClientRect,this._pickupPositionInElement):Ae;if("x"===this.lockAxis||"x"===Ee?tt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===Ee)&&(We=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ot,y:Re}=this._pickupPositionInElement,lt=this._boundaryRect,{width:It,height:jt}=this._getPreviewRect(),sn=lt.top+Re,Kt=lt.bottom-(jt-Re);We=et(We,lt.left+ot,lt.right-(It-ot)),tt=et(tt,sn,Kt)}return{x:We,y:tt}}_updatePointerDirectionDelta(Ae){const{x:Ee,y:We}=Ae,tt=this._pointerDirectionDelta,ot=this._pointerPositionAtLastDirectionChange,Re=Math.abs(Ee-ot.x),lt=Math.abs(We-ot.y);return Re>this._config.pointerDirectionChangeThreshold&&(tt.x=Ee>ot.x?1:-1,ot.x=Ee),lt>this._config.pointerDirectionChangeThreshold&&(tt.y=We>ot.y?1:-1,ot.y=We),tt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const Ae=this._handles.length>0||!this.isDragging();Ae!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=Ae,E(this._rootElement,Ae))}_removeRootElementListeners(Ae){Ae.removeEventListener("mousedown",this._pointerDown,ce),Ae.removeEventListener("touchstart",this._pointerDown,G),Ae.removeEventListener("dragstart",this._nativeDragStart,ce)}_applyRootElementTransform(Ae,Ee){const We=dt(Ae,Ee),tt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=tt.transform&&"none"!=tt.transform?tt.transform:""),tt.transform=H(We,this._initialTransform)}_applyPreviewTransform(Ae,Ee){var We;const tt=null!==(We=this._previewTemplate)&&void 0!==We&&We.template?void 0:this._initialTransform,ot=dt(Ae,Ee);this._preview.style.transform=H(ot,tt)}_getDragDistance(Ae){const Ee=this._pickupPositionOnPage;return Ee?{x:Ae.x-Ee.x,y:Ae.y-Ee.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:Ae,y:Ee}=this._passiveTransform;if(0===Ae&&0===Ee||this.isDragging()||!this._boundaryElement)return;const We=this._rootElement.getBoundingClientRect(),tt=this._boundaryElement.getBoundingClientRect();if(0===tt.width&&0===tt.height||0===We.width&&0===We.height)return;const ot=tt.left-We.left,Re=We.right-tt.right,lt=tt.top-We.top,It=We.bottom-tt.bottom;tt.width>We.width?(ot>0&&(Ae+=ot),Re>0&&(Ae-=Re)):Ae=0,tt.height>We.height?(lt>0&&(Ee+=lt),It>0&&(Ee-=It)):Ee=0,(Ae!==this._passiveTransform.x||Ee!==this._passiveTransform.y)&&this.setFreeDragPosition({y:Ee,x:Ae})}_getDragStartDelay(Ae){const Ee=this.dragStartDelay;return"number"==typeof Ee?Ee:_t(Ae)?Ee.touch:Ee?Ee.mouse:0}_updateOnScroll(Ae){const Ee=this._parentPositions.handleScroll(Ae);if(Ee){const We=(0,w.sA)(Ae);this._boundaryRect&&We!==this._boundaryElement&&We.contains(this._boundaryElement)&&Me(this._boundaryRect,Ee.top,Ee.left),this._pickupPositionOnPage.x+=Ee.left,this._pickupPositionOnPage.y+=Ee.top,this._dropContainer||(this._activeTransform.x-=Ee.left,this._activeTransform.y-=Ee.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var Ae;return(null===(Ae=this._parentPositions.positions.get(this._document))||void 0===Ae?void 0:Ae.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(Ae,Ee){const We=this._previewContainer||"global";if("parent"===We)return Ae;if("global"===We){const tt=this._document;return Ee||tt.fullscreenElement||tt.webkitFullscreenElement||tt.mozFullScreenElement||tt.msFullscreenElement||tt.body}return(0,g.fI)(We)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(Ae){return this._handles.find(Ee=>Ae.target&&(Ae.target===Ee||Ee.contains(Ae.target)))}}function dt(ke,Ae){return`translate3d(${Math.round(ke)}px, ${Math.round(Ae)}px, 0)`}function et(ke,Ae,Ee){return Math.max(Ae,Math.min(Ee,ke))}function _t(ke){return"t"===ke.type[0]}function Qe(ke,Ae){const Ee=ke.rootNodes;if(1===Ee.length&&Ee[0].nodeType===Ae.ELEMENT_NODE)return Ee[0];const We=Ae.createElement("div");return Ee.forEach(tt=>We.appendChild(tt)),We}function st(ke,Ae){ke.style.width=`${Ae.width}px`,ke.style.height=`${Ae.height}px`,ke.style.transform=dt(Ae.left,Ae.top)}function Z(ke,Ae,Ee){const We=ge(Ae,ke.length-1),tt=ge(Ee,ke.length-1);if(We===tt)return;const ot=ke[We],Re=tt0)return null;const lt="horizontal"===this.orientation,It=ot.findIndex(Ct=>Ct.drag===Ae),jt=ot[Re],Kt=jt.clientRect,on=It>Re?1:-1,fn=this._getItemOffsetPx(ot[It].clientRect,Kt,on),kt=this._getSiblingOffsetPx(It,ot,on),Rt=ot.slice();return Z(ot,It,Re),ot.forEach((Ct,Ft)=>{if(Rt[Ft]===Ct)return;const qt=Ct.drag===Ae,_n=qt?fn:kt,Mt=qt?Ae.getPlaceholderElement():Ct.drag.getRootElement();Ct.offset+=_n,lt?(Mt.style.transform=H(`translate3d(${Math.round(Ct.offset)}px, 0, 0)`,Ct.initialTransform),Me(Ct.clientRect,0,_n)):(Mt.style.transform=H(`translate3d(0, ${Math.round(Ct.offset)}px, 0)`,Ct.initialTransform),Me(Ct.clientRect,_n,0))}),this._previousSwap.overlaps=xe(Kt,Ee,We),this._previousSwap.drag=jt.drag,this._previousSwap.delta=lt?tt.x:tt.y,{previousIndex:It,currentIndex:Re}}enter(Ae,Ee,We,tt){const ot=null==tt||tt<0?this._getItemIndexFromPointerPosition(Ae,Ee,We):tt,Re=this._activeDraggables,lt=Re.indexOf(Ae),It=Ae.getPlaceholderElement();let jt=Re[ot];if(jt===Ae&&(jt=Re[ot+1]),!jt&&(null==ot||-1===ot||ot-1&&Re.splice(lt,1),jt&&!this._dragDropRegistry.isDragging(jt)){const sn=jt.getRootElement();sn.parentElement.insertBefore(It,sn),Re.splice(ot,0,Ae)}else(0,g.fI)(this._element).appendChild(It),Re.push(Ae);It.style.transform="",this._cacheItemPositions()}withItems(Ae){this._activeDraggables=Ae.slice(),this._cacheItemPositions()}withSortPredicate(Ae){this._sortPredicate=Ae}reset(){this._activeDraggables.forEach(Ae=>{const Ee=Ae.getRootElement();if(Ee){var We;const tt=null===(We=this._itemPositions.find(ot=>ot.drag===Ae))||void 0===We?void 0:We.initialTransform;Ee.style.transform=tt||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(Ae){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(We=>We.drag===Ae)}updateOnScroll(Ae,Ee){this._itemPositions.forEach(({clientRect:We})=>{Me(We,Ae,Ee)}),this._itemPositions.forEach(({drag:We})=>{this._dragDropRegistry.isDragging(We)&&We._sortFromLastPointerPosition()})}_cacheItemPositions(){const Ae="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(Ee=>{const We=Ee.getVisibleElement();return{drag:Ee,offset:0,initialTransform:We.style.transform||"",clientRect:ye(We)}}).sort((Ee,We)=>Ae?Ee.clientRect.left-We.clientRect.left:Ee.clientRect.top-We.clientRect.top)}_getItemOffsetPx(Ae,Ee,We){const tt="horizontal"===this.orientation;let ot=tt?Ee.left-Ae.left:Ee.top-Ae.top;return-1===We&&(ot+=tt?Ee.width-Ae.width:Ee.height-Ae.height),ot}_getSiblingOffsetPx(Ae,Ee,We){const tt="horizontal"===this.orientation,ot=Ee[Ae].clientRect,Re=Ee[Ae+-1*We];let lt=ot[tt?"width":"height"]*We;if(Re){const It=tt?"left":"top",jt=tt?"right":"bottom";-1===We?lt-=Re.clientRect[It]-ot[jt]:lt+=ot[It]-Re.clientRect[jt]}return lt}_shouldEnterAsFirstChild(Ae,Ee){if(!this._activeDraggables.length)return!1;const We=this._itemPositions,tt="horizontal"===this.orientation;if(We[0].drag!==this._activeDraggables[0]){const Re=We[We.length-1].clientRect;return tt?Ae>=Re.right:Ee>=Re.bottom}{const Re=We[0].clientRect;return tt?Ae<=Re.left:Ee<=Re.top}}_getItemIndexFromPointerPosition(Ae,Ee,We,tt){const ot="horizontal"===this.orientation,Re=this._itemPositions.findIndex(({drag:lt,clientRect:It})=>{if(lt===Ae)return!1;if(tt){const jt=ot?tt.x:tt.y;if(lt===this._previousSwap.drag&&this._previousSwap.overlaps&&jt===this._previousSwap.delta)return!1}return ot?Ee>=Math.floor(It.left)&&Ee=Math.floor(It.top)&&We!0,this.sortPredicate=()=>!0,this.beforeStarted=new T.x,this.entered=new T.x,this.exited=new T.x,this.dropped=new T.x,this.sorted=new T.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=v.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new T.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,R.F)(0,U.Z).pipe((0,Y.R)(this._stopScrollTimers)).subscribe(()=>{const Re=this._scrollNode,lt=this.autoScrollStep;1===this._verticalScrollDirection?Re.scrollBy(0,-lt):2===this._verticalScrollDirection&&Re.scrollBy(0,lt),1===this._horizontalScrollDirection?Re.scrollBy(-lt,0):2===this._horizontalScrollDirection&&Re.scrollBy(lt,0)})},this.element=(0,g.fI)(Ae),this._document=We,this.withScrollableParents([this.element]),Ee.registerDropContainer(this),this._parentPositions=new se(We),this._sortStrategy=new ae(this.element,Ee),this._sortStrategy.withSortPredicate((Re,lt)=>this.sortPredicate(Re,lt,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(Ae,Ee,We,tt){this._draggingStarted(),null==tt&&this.sortingDisabled&&(tt=this._draggables.indexOf(Ae)),this._sortStrategy.enter(Ae,Ee,We,tt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:Ae,container:this,currentIndex:this.getItemIndex(Ae)})}exit(Ae){this._reset(),this.exited.next({item:Ae,container:this})}drop(Ae,Ee,We,tt,ot,Re,lt,It={}){this._reset(),this.dropped.next({item:Ae,currentIndex:Ee,previousIndex:We,container:this,previousContainer:tt,isPointerOverContainer:ot,distance:Re,dropPoint:lt,event:It})}withItems(Ae){const Ee=this._draggables;return this._draggables=Ae,Ae.forEach(We=>We._withDropContainer(this)),this.isDragging()&&(Ee.filter(tt=>tt.isDragging()).every(tt=>-1===Ae.indexOf(tt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(Ae){return this._sortStrategy.direction=Ae,this}connectedTo(Ae){return this._siblings=Ae.slice(),this}withOrientation(Ae){return this._sortStrategy.orientation=Ae,this}withScrollableParents(Ae){const Ee=(0,g.fI)(this.element);return this._scrollableElements=-1===Ae.indexOf(Ee)?[Ee,...Ae]:Ae.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(Ae){return this._isDragging?this._sortStrategy.getItemIndex(Ae):this._draggables.indexOf(Ae)}isReceiving(){return this._activeSiblings.size>0}_sortItem(Ae,Ee,We,tt){if(this.sortingDisabled||!this._clientRect||!Ze(this._clientRect,.05,Ee,We))return;const ot=this._sortStrategy.sort(Ae,Ee,We,tt);ot&&this.sorted.next({previousIndex:ot.previousIndex,currentIndex:ot.currentIndex,container:this,item:Ae})}_startScrollingIfNecessary(Ae,Ee){if(this.autoScrollDisabled)return;let We,tt=0,ot=0;if(this._parentPositions.positions.forEach((Re,lt)=>{lt===this._document||!Re.clientRect||We||Ze(Re.clientRect,.05,Ae,Ee)&&([tt,ot]=function r(ke,Ae,Ee,We){const tt=N(Ae,We),ot=L(Ae,Ee);let Re=0,lt=0;if(tt){const It=ke.scrollTop;1===tt?It>0&&(Re=1):ke.scrollHeight-It>ke.clientHeight&&(Re=2)}if(ot){const It=ke.scrollLeft;1===ot?It>0&&(lt=1):ke.scrollWidth-It>ke.clientWidth&&(lt=2)}return[Re,lt]}(lt,Re.clientRect,Ae,Ee),(tt||ot)&&(We=lt))}),!tt&&!ot){const{width:Re,height:lt}=this._viewportRuler.getViewportSize(),It={width:Re,height:lt,top:0,right:Re,bottom:lt,left:0};tt=N(It,Ee),ot=L(It,Ae),We=window}We&&(tt!==this._verticalScrollDirection||ot!==this._horizontalScrollDirection||We!==this._scrollNode)&&(this._verticalScrollDirection=tt,this._horizontalScrollDirection=ot,this._scrollNode=We,(tt||ot)&&We?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const Ae=(0,g.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=Ae.msScrollSnapType||Ae.scrollSnapType||"",Ae.scrollSnapType=Ae.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const Ae=(0,g.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(Ae).clientRect}_reset(){this._isDragging=!1;const Ae=(0,g.fI)(this.element).style;Ae.scrollSnapType=Ae.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(Ee=>Ee._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(Ae,Ee){return null!=this._clientRect&&xe(this._clientRect,Ae,Ee)}_getSiblingContainerFromPosition(Ae,Ee,We){return this._siblings.find(tt=>tt._canReceive(Ae,Ee,We))}_canReceive(Ae,Ee,We){if(!this._clientRect||!xe(this._clientRect,Ee,We)||!this.enterPredicate(Ae,this))return!1;const tt=this._getShadowRoot().elementFromPoint(Ee,We);if(!tt)return!1;const ot=(0,g.fI)(this.element);return tt===ot||ot.contains(tt)}_startReceiving(Ae,Ee){const We=this._activeSiblings;!We.has(Ae)&&Ee.every(tt=>this.enterPredicate(tt,this)||this._draggables.indexOf(tt)>-1)&&(We.add(Ae),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(Ae){this._activeSiblings.delete(Ae),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Ae=>{if(this.isDragging()){const Ee=this._parentPositions.handleScroll(Ae);Ee&&this._sortStrategy.updateOnScroll(Ee.top,Ee.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const Ae=(0,w.kV)((0,g.fI)(this.element));this._cachedShadowRoot=Ae||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const Ae=this._sortStrategy.getActiveItemsSnapshot().filter(Ee=>Ee.isDragging());this._siblings.forEach(Ee=>Ee._startReceiving(this,Ae))}}function N(ke,Ae){const{top:Ee,bottom:We,height:tt}=ke,ot=.05*tt;return Ae>=Ee-ot&&Ae<=Ee+ot?1:Ae>=We-ot&&Ae<=We+ot?2:0}function L(ke,Ae){const{left:Ee,right:We,width:tt}=ke,ot=.05*tt;return Ae>=Ee-ot&&Ae<=Ee+ot?1:Ae>=We-ot&&Ae<=We+ot?2:0}const s=(0,w.i$)({passive:!1,capture:!0});let m=(()=>{class ke{constructor(Ee,We){this._ngZone=Ee,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=tt=>tt.isDragging(),this.pointerMove=new T.x,this.pointerUp=new T.x,this.scroll=new T.x,this._preventDefaultWhileDragging=tt=>{this._activeDragInstances.length>0&&tt.preventDefault()},this._persistentTouchmoveListener=tt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&tt.preventDefault(),this.pointerMove.next(tt))},this._document=We}registerDropContainer(Ee){this._dropInstances.has(Ee)||this._dropInstances.add(Ee)}registerDragItem(Ee){this._dragInstances.add(Ee),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,s)})}removeDropContainer(Ee){this._dropInstances.delete(Ee)}removeDragItem(Ee){this._dragInstances.delete(Ee),this.stopDragging(Ee),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,s)}startDragging(Ee,We){if(!(this._activeDragInstances.indexOf(Ee)>-1)&&(this._activeDragInstances.push(Ee),1===this._activeDragInstances.length)){const tt=We.type.startsWith("touch");this._globalListeners.set(tt?"touchend":"mouseup",{handler:ot=>this.pointerUp.next(ot),options:!0}).set("scroll",{handler:ot=>this.scroll.next(ot),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:s}),tt||this._globalListeners.set("mousemove",{handler:ot=>this.pointerMove.next(ot),options:s}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ot,Re)=>{this._document.addEventListener(Re,ot.handler,ot.options)})})}}stopDragging(Ee){const We=this._activeDragInstances.indexOf(Ee);We>-1&&(this._activeDragInstances.splice(We,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(Ee){return this._activeDragInstances.indexOf(Ee)>-1}scrolled(Ee){const We=[this.scroll];return Ee&&Ee!==this._document&&We.push(new _.y(tt=>this._ngZone.runOutsideAngular(()=>{const Re=lt=>{this._activeDragInstances.length&&tt.next(lt)};return Ee.addEventListener("scroll",Re,!0),()=>{Ee.removeEventListener("scroll",Re,!0)}}))),(0,V.T)(...We)}ngOnDestroy(){this._dragInstances.forEach(Ee=>this.removeDragItem(Ee)),this._dropInstances.forEach(Ee=>this.removeDropContainer(Ee)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((Ee,We)=>{this._document.removeEventListener(We,Ee.handler,Ee.options)}),this._globalListeners.clear()}}return ke.\u0275fac=function(Ee){return new(Ee||ke)(e.LFG(e.R0b),e.LFG(d.K0))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const l={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let o=(()=>{class ke{constructor(Ee,We,tt,ot){this._document=Ee,this._ngZone=We,this._viewportRuler=tt,this._dragDropRegistry=ot}createDrag(Ee,We=l){return new He(Ee,We,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(Ee){return new me(Ee,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return ke.\u0275fac=function(Ee){return new(Ee||ke)(e.LFG(d.K0),e.LFG(e.R0b),e.LFG(A.rL),e.LFG(m))},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const n=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),a=new e.OlP("CDK_DRAG_CONFIG");let p=0;const M=new e.OlP("CdkDropList");let Ne=(()=>{class ke{constructor(Ee,We,tt,ot,Re,lt,It){this.element=Ee,this._changeDetectorRef=tt,this._scrollDispatcher=ot,this._dir=Re,this._group=lt,this._destroyed=new T.x,this.connectedTo=[],this.id="cdk-drop-list-"+p++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=We.createDropList(Ee),this._dropListRef.data=this,It&&this._assignDefaults(It),this._dropListRef.enterPredicate=(jt,sn)=>this.enterPredicate(jt.data,sn.data),this._dropListRef.sortPredicate=(jt,sn,Kt)=>this.sortPredicate(jt,sn.data,Kt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),ke._dropLists.push(this),lt&<._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(Ee){this._dropListRef.disabled=this._disabled=(0,g.Ig)(Ee)}addItem(Ee){this._unsortedItems.add(Ee),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(Ee){this._unsortedItems.delete(Ee),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((Ee,We)=>Ee._dragRef.getVisibleElement().compareDocumentPosition(We._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const Ee=ke._dropLists.indexOf(this);Ee>-1&&ke._dropLists.splice(Ee,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(Ee){this._dir&&this._dir.change.pipe((0,X.O)(this._dir.value),(0,Y.R)(this._destroyed)).subscribe(We=>Ee.withDirection(We)),Ee.beforeStarted.subscribe(()=>{const We=(0,g.Eq)(this.connectedTo).map(tt=>"string"==typeof tt?ke._dropLists.find(Re=>Re.id===tt):tt);if(this._group&&this._group._items.forEach(tt=>{-1===We.indexOf(tt)&&We.push(tt)}),!this._scrollableParentsResolved){const tt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ot=>ot.getElementRef().nativeElement);this._dropListRef.withScrollableParents(tt),this._scrollableParentsResolved=!0}Ee.disabled=this.disabled,Ee.lockAxis=this.lockAxis,Ee.sortingDisabled=(0,g.Ig)(this.sortingDisabled),Ee.autoScrollDisabled=(0,g.Ig)(this.autoScrollDisabled),Ee.autoScrollStep=(0,g.su)(this.autoScrollStep,2),Ee.connectedTo(We.filter(tt=>tt&&tt!==this).map(tt=>tt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(Ee){Ee.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),Ee.entered.subscribe(We=>{this.entered.emit({container:this,item:We.item.data,currentIndex:We.currentIndex})}),Ee.exited.subscribe(We=>{this.exited.emit({container:this,item:We.item.data}),this._changeDetectorRef.markForCheck()}),Ee.sorted.subscribe(We=>{this.sorted.emit({previousIndex:We.previousIndex,currentIndex:We.currentIndex,container:this,item:We.item.data})}),Ee.dropped.subscribe(We=>{this.dropped.emit({previousIndex:We.previousIndex,currentIndex:We.currentIndex,previousContainer:We.previousContainer.data,container:We.container.data,item:We.item.data,isPointerOverContainer:We.isPointerOverContainer,distance:We.distance,dropPoint:We.dropPoint,event:We.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(Ee){const{lockAxis:We,draggingDisabled:tt,sortingDisabled:ot,listAutoScrollDisabled:Re,listOrientation:lt}=Ee;this.disabled=tt??!1,this.sortingDisabled=ot??!1,this.autoScrollDisabled=Re??!1,this.orientation=lt||"vertical",We&&(this.lockAxis=We)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(Ee=>Ee._dragRef))}}return ke._dropLists=[],ke.\u0275fac=function(Ee){return new(Ee||ke)(e.Y36(e.SBq),e.Y36(o),e.Y36(e.sBO),e.Y36(A.mF),e.Y36(ue.Is,8),e.Y36(t,12),e.Y36(a,8))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(Ee,We){2&Ee&&(e.uIk("id",We.id),e.ekj("cdk-drop-list-disabled",We.disabled)("cdk-drop-list-dragging",We._dropListRef.isDragging())("cdk-drop-list-receiving",We._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:M,useExisting:ke}])]}),ke})();const Pt=new e.OlP("CdkDragHandle"),ln=new e.OlP("CdkDragPlaceholder"),gt=new e.OlP("CdkDragPreview");let Xe=(()=>{class ke{constructor(Ee,We,tt,ot,Re,lt,It,jt,sn,Kt,on){this.element=Ee,this.dropContainer=We,this._ngZone=ot,this._viewContainerRef=Re,this._dir=It,this._changeDetectorRef=sn,this._selfHandle=Kt,this._parentDrag=on,this._destroyed=new T.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new _.y(fn=>{const kt=this._dragRef.moved.pipe((0,ne.U)(Rt=>({source:this,pointerPosition:Rt.pointerPosition,event:Rt.event,delta:Rt.delta,distance:Rt.distance}))).subscribe(fn);return()=>{kt.unsubscribe()}}),this._dragRef=jt.createDrag(Ee,{dragStartThreshold:lt&&null!=lt.dragStartThreshold?lt.dragStartThreshold:5,pointerDirectionChangeThreshold:lt&&null!=lt.pointerDirectionChangeThreshold?lt.pointerDirectionChangeThreshold:5,zIndex:lt?.zIndex}),this._dragRef.data=this,ke._dragInstances.push(this),lt&&this._assignDefaults(lt),We&&(this._dragRef._withDropContainer(We._dropListRef),We.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(Ee){this._disabled=(0,g.Ig)(Ee),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(Ee){this._dragRef.setFreeDragPosition(Ee)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,le.q)(1),(0,Y.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(Ee){const We=Ee.rootElementSelector,tt=Ee.freeDragPosition;We&&!We.firstChange&&this._updateRootElement(),tt&&!tt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const Ee=ke._dragInstances.indexOf(this);Ee>-1&&ke._dragInstances.splice(Ee,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const Ee=this.element.nativeElement;let We=Ee;var tt;this.rootElementSelector&&(We=void 0!==Ee.closest?Ee.closest(this.rootElementSelector):null===(tt=Ee.parentElement)||void 0===tt?void 0:tt.closest(this.rootElementSelector)),this._dragRef.withRootElement(We||Ee)}_getBoundaryElement(){const Ee=this.boundaryElement;return Ee?"string"==typeof Ee?this.element.nativeElement.closest(Ee):(0,g.fI)(Ee):null}_syncInputs(Ee){Ee.beforeStarted.subscribe(()=>{if(!Ee.isDragging()){const We=this._dir,tt=this.dragStartDelay,ot=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Re=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;Ee.disabled=this.disabled,Ee.lockAxis=this.lockAxis,Ee.dragStartDelay="object"==typeof tt&&tt?tt:(0,g.su)(tt),Ee.constrainPosition=this.constrainPosition,Ee.previewClass=this.previewClass,Ee.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ot).withPreviewTemplate(Re).withPreviewContainer(this.previewContainer||"global"),We&&Ee.withDirection(We.value)}}),Ee.beforeStarted.pipe((0,le.q)(1)).subscribe(()=>{if(this._parentDrag)return void Ee.withParent(this._parentDrag._dragRef);let We=this.element.nativeElement.parentElement;for(;We;){if(We.classList.contains("cdk-drag")){var tt;Ee.withParent((null===(tt=ke._dragInstances.find(ot=>ot.element.nativeElement===We))||void 0===tt?void 0:tt._dragRef)||null);break}We=We.parentElement}})}_handleEvents(Ee){Ee.started.subscribe(We=>{this.started.emit({source:this,event:We.event}),this._changeDetectorRef.markForCheck()}),Ee.released.subscribe(We=>{this.released.emit({source:this,event:We.event})}),Ee.ended.subscribe(We=>{this.ended.emit({source:this,distance:We.distance,dropPoint:We.dropPoint,event:We.event}),this._changeDetectorRef.markForCheck()}),Ee.entered.subscribe(We=>{this.entered.emit({container:We.container.data,item:this,currentIndex:We.currentIndex})}),Ee.exited.subscribe(We=>{this.exited.emit({container:We.container.data,item:this})}),Ee.dropped.subscribe(We=>{this.dropped.emit({previousIndex:We.previousIndex,currentIndex:We.currentIndex,previousContainer:We.previousContainer.data,container:We.container.data,isPointerOverContainer:We.isPointerOverContainer,item:this,distance:We.distance,dropPoint:We.dropPoint,event:We.event})})}_assignDefaults(Ee){const{lockAxis:We,dragStartDelay:tt,constrainPosition:ot,previewClass:Re,boundaryElement:lt,draggingDisabled:It,rootElementSelector:jt,previewContainer:sn}=Ee;this.disabled=It??!1,this.dragStartDelay=tt||0,We&&(this.lockAxis=We),ot&&(this.constrainPosition=ot),Re&&(this.previewClass=Re),lt&&(this.boundaryElement=lt),jt&&(this.rootElementSelector=jt),sn&&(this.previewContainer=sn)}_setupHandlesListener(){this._handles.changes.pipe((0,X.O)(this._handles),(0,te.b)(Ee=>{const We=Ee.filter(tt=>tt._parentDrag===this).map(tt=>tt.element);this._selfHandle&&this.rootElementSelector&&We.push(this.element),this._dragRef.withHandles(We)}),(0,fe.w)(Ee=>(0,V.T)(...Ee.map(We=>We._stateChanges.pipe((0,X.O)(We))))),(0,Y.R)(this._destroyed)).subscribe(Ee=>{const We=this._dragRef,tt=Ee.element.nativeElement;Ee.disabled?We.disableHandle(tt):We.enableHandle(tt)})}}return ke._dragInstances=[],ke.\u0275fac=function(Ee){return new(Ee||ke)(e.Y36(e.SBq),e.Y36(M,12),e.Y36(d.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(a,8),e.Y36(ue.Is,8),e.Y36(o),e.Y36(e.sBO),e.Y36(Pt,10),e.Y36(n,12))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","cdkDrag",""]],contentQueries:function(Ee,We,tt){if(1&Ee&&(e.Suo(tt,gt,5),e.Suo(tt,ln,5),e.Suo(tt,Pt,5)),2&Ee){let ot;e.iGM(ot=e.CRH())&&(We._previewTemplate=ot.first),e.iGM(ot=e.CRH())&&(We._placeholderTemplate=ot.first),e.iGM(ot=e.CRH())&&(We._handles=ot)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(Ee,We){2&Ee&&e.ekj("cdk-drag-disabled",We.disabled)("cdk-drag-dragging",We._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:n,useExisting:ke}]),e.TTD]}),ke})(),Ke=(()=>{class ke{}return ke.\u0275fac=function(Ee){return new(Ee||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({providers:[o],imports:[A.ZD]}),ke})()},29521:(Je,pe,h)=>{"use strict";h.d(pe,{A:()=>q,JH:()=>we,JU:()=>C,K5:()=>g,Ku:()=>Y,LH:()=>fe,L_:()=>V,MW:()=>a,Mf:()=>A,OC:()=>mt,SV:()=>ue,Sd:()=>le,VM:()=>X,Vb:()=>Yi,Z:()=>i,ZH:()=>d,aO:()=>De,b2:()=>On,hY:()=>_,jx:()=>T,oh:()=>te,uR:()=>ne,xE:()=>$,yY:()=>W,zL:()=>v});const d=8,A=9,g=13,C=16,T=17,v=18,_=27,V=32,Y=33,X=34,ne=35,le=36,te=37,fe=38,ue=39,we=40,W=46,$=48,De=57,q=65,i=90,a=91,mt=188,On=224;function Yi(jn,...zn){return zn.length?zn.some(ki=>jn[ki]):jn.altKey||jn.shiftKey||jn.ctrlKey||jn.metaKey}},62289:(Je,pe,h)=>{"use strict";h.d(pe,{Yg:()=>we,u3:()=>O});var e=h(94650),d=h(21281),A=h(77579),w=h(39841),g=h(97272),C=h(69751),T=h(95698),v=h(35684),R=h(78372),U=h(54004),_=h(68675),V=h(82722),Y=h(83353);const ne=new Set;let le,te=(()=>{class H{constructor($){this._platform=$,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ue}matchMedia($){return(this._platform.WEBKIT||this._platform.BLINK)&&function fe(H){if(!ne.has(H))try{le||(le=document.createElement("style"),le.setAttribute("type","text/css"),document.head.appendChild(le)),le.sheet&&(le.sheet.insertRule(`@media ${H} {body{ }}`,0),ne.add(H))}catch(W){console.error(W)}}($),this._matchMedia($)}}return H.\u0275fac=function($){return new($||H)(e.LFG(Y.t4))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function ue(H){return{matches:"all"===H||""===H,media:H,addListener:()=>{},removeListener:()=>{}}}let we=(()=>{class H{constructor($,de){this._mediaMatcher=$,this._zone=de,this._queries=new Map,this._destroySubject=new A.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched($){return E((0,d.Eq)($)).some(ye=>this._registerQuery(ye).mql.matches)}observe($){const ye=E((0,d.Eq)($)).map(Me=>this._registerQuery(Me).observable);let xe=(0,w.a)(ye);return xe=(0,g.z)(xe.pipe((0,T.q)(1)),xe.pipe((0,v.T)(1),(0,R.b)(0))),xe.pipe((0,U.U)(Me=>{const Ze={matches:!1,breakpoints:{}};return Me.forEach(({matches:se,query:ze})=>{Ze.matches=Ze.matches||se,Ze.breakpoints[ze]=se}),Ze}))}_registerQuery($){if(this._queries.has($))return this._queries.get($);const de=this._mediaMatcher.matchMedia($),xe={observable:new C.y(Me=>{const Ze=se=>this._zone.run(()=>Me.next(se));return de.addListener(Ze),()=>{de.removeListener(Ze)}}).pipe((0,_.O)(de),(0,U.U)(({matches:Me})=>({query:$,matches:Me})),(0,V.R)(this._destroySubject)),mql:de};return this._queries.set($,xe),xe}}return H.\u0275fac=function($){return new($||H)(e.LFG(te),e.LFG(e.R0b))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();function E(H){return H.map(W=>W.split(",")).reduce((W,$)=>W.concat($)).map(W=>W.trim())}const O={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)"}},49643:(Je,pe,h)=>{"use strict";h.d(pe,{Q8:()=>R,wD:()=>v});var e=h(21281),d=h(94650),A=h(69751),w=h(77579),g=h(78372);let C=(()=>{class U{create(V){return typeof MutationObserver>"u"?null:new MutationObserver(V)}}return U.\u0275fac=function(V){return new(V||U)},U.\u0275prov=d.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),T=(()=>{class U{constructor(V){this._mutationObserverFactory=V,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((V,Y)=>this._cleanupObserver(Y))}observe(V){const Y=(0,e.fI)(V);return new A.y(X=>{const le=this._observeElement(Y).subscribe(X);return()=>{le.unsubscribe(),this._unobserveElement(Y)}})}_observeElement(V){if(this._observedElements.has(V))this._observedElements.get(V).count++;else{const Y=new w.x,X=this._mutationObserverFactory.create(ne=>Y.next(ne));X&&X.observe(V,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(V,{observer:X,stream:Y,count:1})}return this._observedElements.get(V).stream}_unobserveElement(V){this._observedElements.has(V)&&(this._observedElements.get(V).count--,this._observedElements.get(V).count||this._cleanupObserver(V))}_cleanupObserver(V){if(this._observedElements.has(V)){const{observer:Y,stream:X}=this._observedElements.get(V);Y&&Y.disconnect(),X.complete(),this._observedElements.delete(V)}}}return U.\u0275fac=function(V){return new(V||U)(d.LFG(C))},U.\u0275prov=d.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),v=(()=>{class U{constructor(V,Y,X){this._contentObserver=V,this._elementRef=Y,this._ngZone=X,this.event=new d.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,e.Ig)(V),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(V){this._debounce=(0,e.su)(V),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const V=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?V.pipe((0,g.b)(this.debounce)):V).subscribe(this.event)})}_unsubscribe(){var V;null===(V=this._currentSubscription)||void 0===V||V.unsubscribe()}}return U.\u0275fac=function(V){return new(V||U)(d.Y36(T),d.Y36(d.SBq),d.Y36(d.R0b))},U.\u0275dir=d.lG2({type:U,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),U})(),R=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=d.oAB({type:U}),U.\u0275inj=d.cJS({providers:[C]}),U})()},98184:(Je,pe,h)=>{"use strict";h.d(pe,{Iu:()=>De,U8:()=>me,X_:()=>W,Xj:()=>he,_G:()=>G,aV:()=>Z,pI:()=>ae,xu:()=>ge});var e=h(67376),d=h(36895),A=h(94650),w=h(21281),g=h(83353),C=h(40445),T=h(84080),v=h(77579),R=h(50727),U=h(56451),_=h(95698),V=h(82722),Y=h(22529),X=h(29521);const ne=(0,g.Mq)();class le{constructor(r,s){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=s}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=(0,w.HM)(-this._previousScrollPosition.left),r.style.top=(0,w.HM)(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,m=r.style,l=this._document.body.style,o=m.scrollBehavior||"",n=l.scrollBehavior||"";this._isEnabled=!1,m.left=this._previousHTMLStyles.left,m.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),ne&&(m.scrollBehavior=l.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ne&&(m.scrollBehavior=o,l.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const s=this._document.body,m=this._viewportRuler.getViewportSize();return s.scrollHeight>m.height||s.scrollWidth>m.width}}class fe{constructor(r,s,m,l){this._scrollDispatcher=r,this._ngZone=s,this._viewportRuler=m,this._config=l,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const s=this._viewportRuler.getViewportScrollPosition().top;Math.abs(s-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ue{enable(){}disable(){}attach(){}}function we(L,r){return r.some(s=>L.bottoms.bottom||L.rights.right)}function E(L,r){return r.some(s=>L.tops.bottom||L.lefts.right)}class O{constructor(r,s,m,l){this._scrollDispatcher=r,this._viewportRuler=s,this._ngZone=m,this._config=l,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 s=this._overlayRef.overlayElement.getBoundingClientRect(),{width:m,height:l}=this._viewportRuler.getViewportSize();we(s,[{width:m,height:l,bottom:l,right:m,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 H=(()=>{class L{constructor(s,m,l,o){this._scrollDispatcher=s,this._viewportRuler=m,this._ngZone=l,this.noop=()=>new ue,this.close=n=>new fe(this._scrollDispatcher,this._ngZone,this._viewportRuler,n),this.block=()=>new le(this._viewportRuler,this._document),this.reposition=n=>new O(this._scrollDispatcher,this._viewportRuler,this._ngZone,n),this._document=o}}return L.\u0275fac=function(s){return new(s||L)(A.LFG(e.mF),A.LFG(e.rL),A.LFG(A.R0b),A.LFG(d.K0))},L.\u0275prov=A.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();class W{constructor(r){if(this.scrollStrategy=new ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const s=Object.keys(r);for(const m of s)void 0!==r[m]&&(this[m]=r[m])}}}class ye{constructor(r,s){this.connectionPair=r,this.scrollableViewProperties=s}}let Ze=(()=>{class L{constructor(s){this._attachedOverlays=[],this._document=s}ngOnDestroy(){this.detach()}add(s){this.remove(s),this._attachedOverlays.push(s)}remove(s){const m=this._attachedOverlays.indexOf(s);m>-1&&this._attachedOverlays.splice(m,1),0===this._attachedOverlays.length&&this.detach()}}return L.\u0275fac=function(s){return new(s||L)(A.LFG(d.K0))},L.\u0275prov=A.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),se=(()=>{class L extends Ze{constructor(s,m){super(s),this._ngZone=m,this._keydownListener=l=>{const o=this._attachedOverlays;for(let n=o.length-1;n>-1;n--)if(o[n]._keydownEvents.observers.length>0){const t=o[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(l)):t.next(l);break}}}add(s){super.add(s),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 L.\u0275fac=function(s){return new(s||L)(A.LFG(d.K0),A.LFG(A.R0b,8))},L.\u0275prov=A.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),ze=(()=>{class L extends Ze{constructor(s,m,l){super(s),this._platform=m,this._ngZone=l,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=(0,g.sA)(o)},this._clickListener=o=>{const n=(0,g.sA)(o),t="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const c=i[a];if(c._outsidePointerEvents.observers.length<1||!c.hasAttached())continue;if(c.overlayElement.contains(n)||c.overlayElement.contains(t))break;const p=c._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(o)):p.next(o)}}}add(s){if(super.add(s),!this._isAttached){const m=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(m)):this._addEventListeners(m),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=m.style.cursor,m.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const s=this._document.body;s.removeEventListener("pointerdown",this._pointerDownListener,!0),s.removeEventListener("click",this._clickListener,!0),s.removeEventListener("auxclick",this._clickListener,!0),s.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(s.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(s){s.addEventListener("pointerdown",this._pointerDownListener,!0),s.addEventListener("click",this._clickListener,!0),s.addEventListener("auxclick",this._clickListener,!0),s.addEventListener("contextmenu",this._clickListener,!0)}}return L.\u0275fac=function(s){return new(s||L)(A.LFG(d.K0),A.LFG(g.t4),A.LFG(A.R0b,8))},L.\u0275prov=A.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),he=(()=>{class L{constructor(s,m){this._platform=m,this._document=s}ngOnDestroy(){var s;null===(s=this._containerElement)||void 0===s||s.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const s="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const l=this._document.querySelectorAll(`.${s}[platform="server"], .${s}[platform="test"]`);for(let o=0;othis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new v.x,this._outsidePointerEvents=new v.x,l.scrollStrategy&&(this._scrollStrategy=l.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=l.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const s=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,_.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),"function"==typeof s?.onDestroy&&s.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),s}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var r;const s=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),null===(r=this._host)||void 0===r||r.remove(),this._previousHostParent=this._pane=this._host=null,s&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=(0,w.HM)(this._config.width),r.height=(0,w.HM)(this._config.height),r.minWidth=(0,w.HM)(this._config.minWidth),r.minHeight=(0,w.HM)(this._config.minHeight),r.maxWidth=(0,w.HM)(this._config.maxWidth),r.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,s,m){const l=(0,w.Eq)(s||[]).filter(o=>!!o);l.length&&(m?r.classList.add(...l):r.classList.remove(...l))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe((0,V.R)((0,U.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const j="cdk-overlay-connected-position-bounding-box",P=/([A-Za-z%]+)$/;class G{constructor(r,s,m,l,o){this._viewportRuler=s,this._document=m,this._platform=l,this._overlayContainer=o,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=R.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(j),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,s=this._overlayRect,m=this._viewportRect,l=this._containerRect,o=[];let n;for(let t of this._preferredPositions){let i=this._getOriginPoint(r,l,t),a=this._getOverlayPoint(i,s,t),c=this._getOverlayFit(a,s,m,t);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,i);this._canFitWithFlexibleDimensions(c,a,m)?o.push({position:t,origin:i,overlayRect:s,boundingBoxRect:this._calculateBoundingBoxRect(i,t)}):(!n||n.overlayFit.visibleAreai&&(i=c,t=a)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ce(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(j),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const s=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,s)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,s,m){let l,o;if("center"==m.originX)l=r.left+r.width/2;else{const n=this._isRtl()?r.right:r.left,t=this._isRtl()?r.left:r.right;l="start"==m.originX?n:t}return s.left<0&&(l-=s.left),o="center"==m.originY?r.top+r.height/2:"top"==m.originY?r.top:r.bottom,s.top<0&&(o-=s.top),{x:l,y:o}}_getOverlayPoint(r,s,m){let l,o;return l="center"==m.overlayX?-s.width/2:"start"===m.overlayX?this._isRtl()?-s.width:0:this._isRtl()?0:-s.width,o="center"==m.overlayY?-s.height/2:"top"==m.overlayY?0:-s.height,{x:r.x+l,y:r.y+o}}_getOverlayFit(r,s,m,l){const o=Te(s);let{x:n,y:t}=r,i=this._getOffset(l,"x"),a=this._getOffset(l,"y");i&&(n+=i),a&&(t+=a);let M=0-t,Ne=t+o.height-m.height,Pt=this._subtractOverflows(o.width,0-n,n+o.width-m.width),Ut=this._subtractOverflows(o.height,M,Ne),ln=Pt*Ut;return{visibleArea:ln,isCompletelyWithinViewport:o.width*o.height===ln,fitsInViewportVertically:Ut===o.height,fitsInViewportHorizontally:Pt==o.width}}_canFitWithFlexibleDimensions(r,s,m){if(this._hasFlexibleDimensions){const l=m.bottom-s.y,o=m.right-s.x,n=q(this._overlayRef.getConfig().minHeight),t=q(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=t&&t<=o;return(r.fitsInViewportVertically||null!=n&&n<=l)&&a}return!1}_pushOverlayOnScreen(r,s,m){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const l=Te(s),o=this._viewportRect,n=Math.max(r.x+l.width-o.width,0),t=Math.max(r.y+l.height-o.height,0),i=Math.max(o.top-m.top-r.y,0),a=Math.max(o.left-m.left-r.x,0);let c=0,p=0;return c=l.width<=o.width?a||-n:r.xPt&&!this._isInitialRender&&!this._growAfterOpen&&(n=r.y-Pt/2)}if("end"===s.overlayX&&!l||"start"===s.overlayX&&l)M=m.width-r.x+this._viewportMargin,c=r.x-this._viewportMargin;else if("start"===s.overlayX&&!l||"end"===s.overlayX&&l)p=r.x,c=m.right-r.x;else{const Ne=Math.min(m.right-r.x+m.left,r.x),Pt=this._lastBoundingBoxSize.width;c=2*Ne,p=r.x-Ne,c>Pt&&!this._isInitialRender&&!this._growAfterOpen&&(p=r.x-Pt/2)}return{top:n,left:p,bottom:t,right:M,width:c,height:o}}_setBoundingBoxStyles(r,s){const m=this._calculateBoundingBoxRect(r,s);!this._isInitialRender&&!this._growAfterOpen&&(m.height=Math.min(m.height,this._lastBoundingBoxSize.height),m.width=Math.min(m.width,this._lastBoundingBoxSize.width));const l={};if(this._hasExactPosition())l.top=l.left="0",l.bottom=l.right=l.maxHeight=l.maxWidth="",l.width=l.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;l.height=(0,w.HM)(m.height),l.top=(0,w.HM)(m.top),l.bottom=(0,w.HM)(m.bottom),l.width=(0,w.HM)(m.width),l.left=(0,w.HM)(m.left),l.right=(0,w.HM)(m.right),l.alignItems="center"===s.overlayX?"center":"end"===s.overlayX?"flex-end":"flex-start",l.justifyContent="center"===s.overlayY?"center":"bottom"===s.overlayY?"flex-end":"flex-start",o&&(l.maxHeight=(0,w.HM)(o)),n&&(l.maxWidth=(0,w.HM)(n))}this._lastBoundingBoxSize=m,ce(this._boundingBox.style,l)}_resetBoundingBoxStyles(){ce(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ce(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,s){const m={},l=this._hasExactPosition(),o=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(l){const c=this._viewportRuler.getViewportScrollPosition();ce(m,this._getExactOverlayY(s,r,c)),ce(m,this._getExactOverlayX(s,r,c))}else m.position="static";let t="",i=this._getOffset(s,"x"),a=this._getOffset(s,"y");i&&(t+=`translateX(${i}px) `),a&&(t+=`translateY(${a}px)`),m.transform=t.trim(),n.maxHeight&&(l?m.maxHeight=(0,w.HM)(n.maxHeight):o&&(m.maxHeight="")),n.maxWidth&&(l?m.maxWidth=(0,w.HM)(n.maxWidth):o&&(m.maxWidth="")),ce(this._pane.style,m)}_getExactOverlayY(r,s,m){let l={top:"",bottom:""},o=this._getOverlayPoint(s,this._overlayRect,r);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,m)),"bottom"===r.overlayY?l.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":l.top=(0,w.HM)(o.y),l}_getExactOverlayX(r,s,m){let n,l={left:"",right:""},o=this._getOverlayPoint(s,this._overlayRect,r);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,m)),n=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===n?l.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":l.left=(0,w.HM)(o.x),l}_getScrollVisibility(){const r=this._getOriginRect(),s=this._pane.getBoundingClientRect(),m=this._scrollables.map(l=>l.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:E(r,m),isOriginOutsideView:we(r,m),isOverlayClipped:E(s,m),isOverlayOutsideView:we(s,m)}}_subtractOverflows(r,...s){return s.reduce((m,l)=>m-Math.max(l,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,s=this._document.documentElement.clientHeight,m=this._viewportRuler.getViewportScrollPosition();return{top:m.top+this._viewportMargin,left:m.left+this._viewportMargin,right:m.left+r-this._viewportMargin,bottom:m.top+s-this._viewportMargin,width:r-2*this._viewportMargin,height:s-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,s){return"x"===s?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&(0,w.Eq)(r).forEach(s=>{""!==s&&-1===this._appliedPanelClasses.indexOf(s)&&(this._appliedPanelClasses.push(s),this._pane.classList.add(s))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof A.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const s=r.width||0,m=r.height||0;return{top:r.y,bottom:r.y+m,left:r.x,right:r.x+s,height:m,width:s}}}function ce(L,r){for(let s in r)r.hasOwnProperty(s)&&(L[s]=r[s]);return L}function q(L){if("number"!=typeof L&&null!=L){const[r,s]=L.split(P);return s&&"px"!==s?null:parseFloat(r)}return L||null}function Te(L){return{top:Math.floor(L.top),right:Math.floor(L.right),bottom:Math.floor(L.bottom),left:Math.floor(L.left),width:Math.floor(L.width),height:Math.floor(L.height)}}const et="cdk-global-overlay-wrapper";class _t{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const s=r.getConfig();this._overlayRef=r,this._width&&!s.width&&r.updateSize({width:this._width}),this._height&&!s.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(et),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement.style,m=this._overlayRef.getConfig(),{width:l,height:o,maxWidth:n,maxHeight:t}=m,i=!("100%"!==l&&"100vw"!==l||n&&"100%"!==n&&"100vw"!==n),a=!("100%"!==o&&"100vh"!==o||t&&"100%"!==t&&"100vh"!==t),c=this._xPosition,p=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let Ne="",Pt="",Ut="";i?Ut="flex-start":"center"===c?(Ut="center",M?Pt=p:Ne=p):M?"left"===c||"end"===c?(Ut="flex-end",Ne=p):("right"===c||"start"===c)&&(Ut="flex-start",Pt=p):"left"===c||"start"===c?(Ut="flex-start",Ne=p):("right"===c||"end"===c)&&(Ut="flex-end",Pt=p),r.position=this._cssPosition,r.marginLeft=i?"0":Ne,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":Pt,s.justifyContent=Ut,s.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,s=this._overlayRef.hostElement,m=s.style;s.classList.remove(et),m.justifyContent=m.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Qe=(()=>{class L{constructor(s,m,l,o){this._viewportRuler=s,this._document=m,this._platform=l,this._overlayContainer=o}global(){return new _t}flexibleConnectedTo(s){return new G(s,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return L.\u0275fac=function(s){return new(s||L)(A.LFG(e.rL),A.LFG(d.K0),A.LFG(g.t4),A.LFG(he))},L.\u0275prov=A.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),st=0,Z=(()=>{class L{constructor(s,m,l,o,n,t,i,a,c,p,M,Ne){this.scrollStrategies=s,this._overlayContainer=m,this._componentFactoryResolver=l,this._positionBuilder=o,this._keyboardDispatcher=n,this._injector=t,this._ngZone=i,this._document=a,this._directionality=c,this._location=p,this._outsideClickDispatcher=M,this._animationsModuleType=Ne}create(s){const m=this._createHostElement(),l=this._createPaneElement(m),o=this._createPortalOutlet(l),n=new W(s);return n.direction=n.direction||this._directionality.value,new De(o,m,l,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(s){const m=this._document.createElement("div");return m.id="cdk-overlay-"+st++,m.classList.add("cdk-overlay-pane"),s.appendChild(m),m}_createHostElement(){const s=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(s),s}_createPortalOutlet(s){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new T.u0(s,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return L.\u0275fac=function(s){return new(s||L)(A.LFG(H),A.LFG(he),A.LFG(A._Vd),A.LFG(Qe),A.LFG(se),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(d.K0),A.LFG(C.Is),A.LFG(d.Ye),A.LFG(ze),A.LFG(A.QbO,8))},L.\u0275prov=A.Yz7({token:L,factory:L.\u0275fac}),L})();const ve=[{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"}],oe=new A.OlP("cdk-connected-overlay-scroll-strategy");let ge=(()=>{class L{constructor(s){this.elementRef=s}}return L.\u0275fac=function(s){return new(s||L)(A.Y36(A.SBq))},L.\u0275dir=A.lG2({type:L,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),L})(),ae=(()=>{class L{constructor(s,m,l,o,n){this._overlay=s,this._dir=n,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w0.EMPTY,this._attachSubscription=R.w0.EMPTY,this._detachSubscription=R.w0.EMPTY,this._positionSubscription=R.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new T.UE(m,l),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(s){this._offsetX=s,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(s){this._offsetY=s,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(s){this._hasBackdrop=(0,w.Ig)(s)}get lockPosition(){return this._lockPosition}set lockPosition(s){this._lockPosition=(0,w.Ig)(s)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(s){this._flexibleDimensions=(0,w.Ig)(s)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(s){this._growAfterOpen=(0,w.Ig)(s)}get push(){return this._push}set push(s){this._push=(0,w.Ig)(s)}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(s){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),s.origin&&this.open&&this._position.apply()),s.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ve);const s=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=s.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=s.detachments().subscribe(()=>this.detach.emit()),s.keydownEvents().subscribe(m=>{this.overlayKeydown.next(m),m.keyCode===X.hY&&!this.disableClose&&!(0,X.Vb)(m)&&(m.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(m=>{this.overlayOutsideClick.next(m)})}_buildConfig(){const s=this._position=this.positionStrategy||this._createPositionStrategy(),m=new W({direction:this._dir,positionStrategy:s,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(m.width=this.width),(this.height||0===this.height)&&(m.height=this.height),(this.minWidth||0===this.minWidth)&&(m.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(m.minHeight=this.minHeight),this.backdropClass&&(m.backdropClass=this.backdropClass),this.panelClass&&(m.panelClass=this.panelClass),m}_updatePositionStrategy(s){const m=this.positions.map(l=>({originX:l.originX,originY:l.originY,overlayX:l.overlayX,overlayY:l.overlayY,offsetX:l.offsetX||this.offsetX,offsetY:l.offsetY||this.offsetY,panelClass:l.panelClass||void 0}));return s.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(m).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const s=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(s),s}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof ge?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(s=>{this.backdropClick.emit(s)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,Y.o)(()=>this.positionChange.observers.length>0)).subscribe(s=>{this.positionChange.emit(s),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return L.\u0275fac=function(s){return new(s||L)(A.Y36(Z),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(oe),A.Y36(C.Is,8))},L.\u0275dir=A.lG2({type:L,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:[A.TTD]}),L})();const Q={provide:oe,deps:[Z],useFactory:function Oe(L){return()=>L.scrollStrategies.reposition()}};let me=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275mod=A.oAB({type:L}),L.\u0275inj=A.cJS({providers:[Z,Q],imports:[C.vT,T.eL,e.Cl,e.Cl]}),L})()},83353:(Je,pe,h)=>{"use strict";h.d(pe,{Mq:()=>X,Oy:()=>E,_i:()=>ne,ht:()=>ue,i$:()=>_,kV:()=>fe,qK:()=>v,sA:()=>we,t4:()=>w,ud:()=>g});var e=h(94650),d=h(36895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let C,w=(()=>{class O{constructor(W){this._platformId=W,this.isBrowser=this._platformId?(0,d.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&&!A)&&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 O.\u0275fac=function(W){return new(W||O)(e.LFG(e.Lbi))},O.\u0275prov=e.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),g=(()=>{class O{}return O.\u0275fac=function(W){return new(W||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({}),O})();const T=["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(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let O=document.createElement("input");return C=new Set(T.filter(H=>(O.setAttribute("type",H),O.type===H))),C}let R,V,Y,le;function _(O){return function U(){if(null==R&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?O:!!O.capture}function X(){if(null==Y){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Y=!1,Y;if("scrollBehavior"in document.documentElement.style)Y=!0;else{const O=Element.prototype.scrollTo;Y=!!O&&!/\{\s*\[native code\]\s*\}/.test(O.toString())}}return Y}function ne(){if("object"!=typeof document||!document)return 0;if(null==V){const O=document.createElement("div"),H=O.style;O.dir="rtl",H.width="1px",H.overflow="auto",H.visibility="hidden",H.pointerEvents="none",H.position="absolute";const W=document.createElement("div"),$=W.style;$.width="2px",$.height="1px",O.appendChild(W),document.body.appendChild(O),V=0,0===O.scrollLeft&&(O.scrollLeft=1,V=0===O.scrollLeft?1:2),O.remove()}return V}function fe(O){if(function te(){if(null==le){const O=typeof document<"u"?document.head:null;le=!(!O||!O.createShadowRoot&&!O.attachShadow)}return le}()){const H=O.getRootNode?O.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&H instanceof ShadowRoot)return H}return null}function ue(){let O=typeof document<"u"&&document?document.activeElement:null;for(;O&&O.shadowRoot;){const H=O.shadowRoot.activeElement;if(H===O)break;O=H}return O}function we(O){return O.composedPath?O.composedPath()[0]:O.target}function E(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Je,pe,h)=>{"use strict";h.d(pe,{C5:()=>U,Pl:()=>ue,UE:()=>_,eL:()=>E,en:()=>Y,ig:()=>te,u0:()=>ne});var e=h(94650),d=h(36895);class R{attach(W){return this._attachedHost=W,W.attach(this)}detach(){let W=this._attachedHost;null!=W&&(this._attachedHost=null,W.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(W){this._attachedHost=W}}class U extends R{constructor(W,$,de,ye){super(),this.component=W,this.viewContainerRef=$,this.injector=de,this.componentFactoryResolver=ye}}class _ extends R{constructor(W,$,de,ye){super(),this.templateRef=W,this.viewContainerRef=$,this.context=de,this.injector=ye}get origin(){return this.templateRef.elementRef}attach(W,$=this.context){return this.context=$,super.attach(W)}detach(){return this.context=void 0,super.detach()}}class V extends R{constructor(W){super(),this.element=W instanceof e.SBq?W.nativeElement:W}}class Y{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(W){return W instanceof U?(this._attachedPortal=W,this.attachComponentPortal(W)):W instanceof _?(this._attachedPortal=W,this.attachTemplatePortal(W)):this.attachDomPortal&&W instanceof V?(this._attachedPortal=W,this.attachDomPortal(W)):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(W){this._disposeFn=W}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ne extends Y{constructor(W,$,de,ye,xe){super(),this.outletElement=W,this._componentFactoryResolver=$,this._appRef=de,this._defaultInjector=ye,this.attachDomPortal=Me=>{const Ze=Me.element,se=this._document.createComment("dom-portal");Ze.parentNode.insertBefore(se,Ze),this.outletElement.appendChild(Ze),this._attachedPortal=Me,super.setDisposeFn(()=>{se.parentNode&&se.parentNode.replaceChild(Ze,se)})},this._document=xe}attachComponentPortal(W){const de=(W.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(W.component);let ye;return W.viewContainerRef?(ye=W.viewContainerRef.createComponent(de,W.viewContainerRef.length,W.injector||W.viewContainerRef.injector),this.setDisposeFn(()=>ye.destroy())):(ye=de.create(W.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ye.hostView),ye.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ye)),this._attachedPortal=W,ye}attachTemplatePortal(W){let $=W.viewContainerRef,de=$.createEmbeddedView(W.templateRef,W.context,{injector:W.injector});return de.rootNodes.forEach(ye=>this.outletElement.appendChild(ye)),de.detectChanges(),this.setDisposeFn(()=>{let ye=$.indexOf(de);-1!==ye&&$.remove(ye)}),this._attachedPortal=W,de}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(W){return W.hostView.rootNodes[0]}}let te=(()=>{class H extends _{constructor($,de){super($,de)}}return H.\u0275fac=function($){return new($||H)(e.Y36(e.Rgc),e.Y36(e.s_b))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),H})(),ue=(()=>{class H extends Y{constructor($,de,ye){super(),this._componentFactoryResolver=$,this._viewContainerRef=de,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=xe=>{const Me=xe.element,Ze=this._document.createComment("dom-portal");xe.setAttachedHost(this),Me.parentNode.insertBefore(Ze,Me),this._getRootNode().appendChild(Me),this._attachedPortal=xe,super.setDisposeFn(()=>{Ze.parentNode&&Ze.parentNode.replaceChild(Me,Ze)})},this._document=ye}get portal(){return this._attachedPortal}set portal($){this.hasAttached()&&!$&&!this._isInitialized||(this.hasAttached()&&super.detach(),$&&super.attach($),this._attachedPortal=$||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal($){$.setAttachedHost(this);const de=null!=$.viewContainerRef?$.viewContainerRef:this._viewContainerRef,xe=($.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory($.component),Me=de.createComponent(xe,de.length,$.injector||de.injector);return de!==this._viewContainerRef&&this._getRootNode().appendChild(Me.hostView.rootNodes[0]),super.setDisposeFn(()=>Me.destroy()),this._attachedPortal=$,this._attachedRef=Me,this.attached.emit(Me),Me}attachTemplatePortal($){$.setAttachedHost(this);const de=this._viewContainerRef.createEmbeddedView($.templateRef,$.context,{injector:$.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=$,this._attachedRef=de,this.attached.emit(de),de}_getRootNode(){const $=this._viewContainerRef.element.nativeElement;return $.nodeType===$.ELEMENT_NODE?$:$.parentNode}}return H.\u0275fac=function($){return new($||H)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(d.K0))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),H})(),E=(()=>{class H{}return H.\u0275fac=function($){return new($||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})()},67376:(Je,pe,h)=>{"use strict";h.d(pe,{Cl:()=>_t,N7:()=>ce,PQ:()=>se,ZD:()=>et,mF:()=>Ze,rL:()=>he,x0:()=>Te,xd:()=>xe});var e=h(21281),d=h(94650),A=h(77579),w=h(39646),g=h(69751),C=h(54968),T=h(66406),v=h(53101),R=h(50727),U=h(45191),_=h(71884),V=h(23601),Y=h(39300),X=h(82722),ne=h(68675),le=h(11520),te=h(63900),fe=h(34782),ue=h(83353),we=h(36895),E=h(40445),O=h(95017);const H=["contentWrapper"],W=["*"],$=new d.OlP("VIRTUAL_SCROLL_STRATEGY");class de{constructor(st,Z,ve){this._scrolledIndexChange=new A.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,_.x)()),this._viewport=null,this._itemSize=st,this._minBufferPx=Z,this._maxBufferPx=ve}attach(st){this._viewport=st,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(st,Z,ve){this._itemSize=st,this._minBufferPx=Z,this._maxBufferPx=ve,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(st,Z){this._viewport&&this._viewport.scrollToOffset(st*this._itemSize,Z)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const st=this._viewport.getRenderedRange(),Z={start:st.start,end:st.end},ve=this._viewport.getViewportSize(),oe=this._viewport.getDataLength();let ge=this._viewport.measureScrollOffset(),ae=this._itemSize>0?ge/this._itemSize:0;if(Z.end>oe){const Q=Math.ceil(ve/this._itemSize),me=Math.max(0,Math.min(ae,oe-Q));ae!=me&&(ae=me,ge=me*this._itemSize,Z.start=Math.floor(ae)),Z.end=Math.max(0,Math.min(oe,Z.start+Q))}const Oe=ge-Z.start*this._itemSize;if(Oe0&&(Z.end=Math.min(oe,Z.end+me),Z.start=Math.max(0,Math.floor(ae-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Z),this._viewport.setRenderedContentOffset(this._itemSize*Z.start),this._scrolledIndexChange.next(Math.floor(ae))}}function ye(Qe){return Qe._scrollStrategy}let xe=(()=>{class Qe{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new de(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(Z){this._itemSize=(0,e.su)(Z)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Z){this._minBufferPx=(0,e.su)(Z)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Z){this._maxBufferPx=(0,e.su)(Z)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Qe.\u0275fac=function(Z){return new(Z||Qe)},Qe.\u0275dir=d.lG2({type:Qe,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[d._Bn([{provide:$,useFactory:ye,deps:[(0,d.Gpc)(()=>Qe)]}]),d.TTD]}),Qe})(),Ze=(()=>{class Qe{constructor(Z,ve,oe){this._ngZone=Z,this._platform=ve,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=oe}register(Z){this.scrollContainers.has(Z)||this.scrollContainers.set(Z,Z.elementScrolled().subscribe(()=>this._scrolled.next(Z)))}deregister(Z){const ve=this.scrollContainers.get(Z);ve&&(ve.unsubscribe(),this.scrollContainers.delete(Z))}scrolled(Z=20){return this._platform.isBrowser?new g.y(ve=>{this._globalSubscription||this._addGlobalListener();const oe=Z>0?this._scrolled.pipe((0,V.e)(Z)).subscribe(ve):this._scrolled.subscribe(ve);return this._scrolledCount++,()=>{oe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Z,ve)=>this.deregister(ve)),this._scrolled.complete()}ancestorScrolled(Z,ve){const oe=this.getAncestorScrollContainers(Z);return this.scrolled(ve).pipe((0,Y.h)(ge=>!ge||oe.indexOf(ge)>-1))}getAncestorScrollContainers(Z){const ve=[];return this.scrollContainers.forEach((oe,ge)=>{this._scrollableContainsElement(ge,Z)&&ve.push(ge)}),ve}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Z,ve){let oe=(0,e.fI)(ve),ge=Z.getElementRef().nativeElement;do{if(oe==ge)return!0}while(oe=oe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Z=this._getWindow();return(0,C.R)(Z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(d.LFG(d.R0b),d.LFG(ue.t4),d.LFG(we.K0,8))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),se=(()=>{class Qe{constructor(Z,ve,oe,ge){this.elementRef=Z,this.scrollDispatcher=ve,this.ngZone=oe,this.dir=ge,this._destroyed=new A.x,this._elementScrolled=new g.y(ae=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,X.R)(this._destroyed)).subscribe(ae)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Z){const ve=this.elementRef.nativeElement,oe=this.dir&&"rtl"==this.dir.value;null==Z.left&&(Z.left=oe?Z.end:Z.start),null==Z.right&&(Z.right=oe?Z.start:Z.end),null!=Z.bottom&&(Z.top=ve.scrollHeight-ve.clientHeight-Z.bottom),oe&&0!=(0,ue._i)()?(null!=Z.left&&(Z.right=ve.scrollWidth-ve.clientWidth-Z.left),2==(0,ue._i)()?Z.left=Z.right:1==(0,ue._i)()&&(Z.left=Z.right?-Z.right:Z.right)):null!=Z.right&&(Z.left=ve.scrollWidth-ve.clientWidth-Z.right),this._applyScrollToOptions(Z)}_applyScrollToOptions(Z){const ve=this.elementRef.nativeElement;(0,ue.Mq)()?ve.scrollTo(Z):(null!=Z.top&&(ve.scrollTop=Z.top),null!=Z.left&&(ve.scrollLeft=Z.left))}measureScrollOffset(Z){const ve="left",ge=this.elementRef.nativeElement;if("top"==Z)return ge.scrollTop;if("bottom"==Z)return ge.scrollHeight-ge.clientHeight-ge.scrollTop;const ae=this.dir&&"rtl"==this.dir.value;return"start"==Z?Z=ae?"right":ve:"end"==Z&&(Z=ae?ve:"right"),ae&&2==(0,ue._i)()?Z==ve?ge.scrollWidth-ge.clientWidth-ge.scrollLeft:ge.scrollLeft:ae&&1==(0,ue._i)()?Z==ve?ge.scrollLeft+ge.scrollWidth-ge.clientWidth:-ge.scrollLeft:Z==ve?ge.scrollLeft:ge.scrollWidth-ge.clientWidth-ge.scrollLeft}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(d.Y36(d.SBq),d.Y36(Ze),d.Y36(d.R0b),d.Y36(E.Is,8))},Qe.\u0275dir=d.lG2({type:Qe,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Qe})(),he=(()=>{class Qe{constructor(Z,ve,oe){this._platform=Z,this._change=new A.x,this._changeListener=ge=>{this._change.next(ge)},this._document=oe,ve.runOutsideAngular(()=>{if(Z.isBrowser){const ge=this._getWindow();ge.addEventListener("resize",this._changeListener),ge.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:ve,height:oe}=this.getViewportSize();return{top:Z.top,left:Z.left,bottom:Z.top+oe,right:Z.left+ve,height:oe,width:ve}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Z=this._document,ve=this._getWindow(),oe=Z.documentElement,ge=oe.getBoundingClientRect();return{top:-ge.top||Z.body.scrollTop||ve.scrollY||oe.scrollTop||0,left:-ge.left||Z.body.scrollLeft||ve.scrollX||oe.scrollLeft||0}}change(Z=20){return Z>0?this._change.pipe((0,V.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 Qe.\u0275fac=function(Z){return new(Z||Qe)(d.LFG(ue.t4),d.LFG(d.R0b),d.LFG(we.K0,8))},Qe.\u0275prov=d.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const De=new d.OlP("VIRTUAL_SCROLLABLE");let j=(()=>{class Qe extends se{constructor(Z,ve,oe,ge){super(Z,ve,oe,ge)}measureViewportSize(Z){const ve=this.elementRef.nativeElement;return"horizontal"===Z?ve.clientWidth:ve.clientHeight}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(d.Y36(d.SBq),d.Y36(Ze),d.Y36(d.R0b),d.Y36(E.Is,8))},Qe.\u0275dir=d.lG2({type:Qe,features:[d.qOj]}),Qe})();const G=typeof requestAnimationFrame<"u"?T.Z:v.E;let ce=(()=>{class Qe extends j{constructor(Z,ve,oe,ge,ae,Oe,Q,me){super(Z,Oe,oe,ae),this.elementRef=Z,this._changeDetectorRef=ve,this._scrollStrategy=ge,this.scrollable=me,this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(N=>this._scrollStrategy.scrolledIndexChange.subscribe(L=>Promise.resolve().then(()=>this.ngZone.run(()=>N.next(L))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=R.w0.EMPTY,this._viewportChanges=Q.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(Z){this._orientation!==Z&&(this._orientation=Z,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Z){this._appendOnly=(0,e.Ig)(Z)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,ne.O)(null),(0,V.e)(0,G)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Z){this.ngZone.runOutsideAngular(()=>{this._forOf=Z,this._forOf.dataStream.pipe((0,X.R)(this._detachedSubject)).subscribe(ve=>{const oe=ve.length;oe!==this._dataLength&&(this._dataLength=oe,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(Z){return this.getElementRef().nativeElement.getBoundingClientRect()[Z]}setTotalContentSize(Z){this._totalContentSize!==Z&&(this._totalContentSize=Z,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Z){(function P(Qe,st){return Qe.start==st.start&&Qe.end==st.end})(this._renderedRange,Z)||(this.appendOnly&&(Z={start:0,end:Math.max(this._renderedRange.end,Z.end)}),this._renderedRangeSubject.next(this._renderedRange=Z),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Z,ve="to-start"){Z=this.appendOnly&&"to-start"===ve?0:Z;const ge="horizontal"==this.orientation,ae=ge?"X":"Y";let Q=`translate${ae}(${Number((ge&&this.dir&&"rtl"==this.dir.value?-1:1)*Z)}px)`;this._renderedContentOffset=Z,"to-end"===ve&&(Q+=` translate${ae}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Q&&(this._renderedContentTransform=Q,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Z,ve="auto"){const oe={behavior:ve};"horizontal"===this.orientation?oe.start=Z:oe.top=Z,this.scrollable.scrollTo(oe)}scrollToIndex(Z,ve="auto"){this._scrollStrategy.scrollToIndex(Z,ve)}measureScrollOffset(Z){let ve;return ve=this.scrollable==this?oe=>super.measureScrollOffset(oe):oe=>this.scrollable.measureScrollOffset(oe),Math.max(0,ve(Z??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(Z){var ve;let oe;const Oe="rtl"==(null===(ve=this.dir)||void 0===ve?void 0:ve.value);oe="start"==Z?Oe?"right":"left":"end"==Z?Oe?"left":"right":Z||("horizontal"===this.orientation?"left":"top");const Q=this.scrollable.measureBoundingClientRectWithScrollOffset(oe);return this.elementRef.nativeElement.getBoundingClientRect()[oe]-Q}measureRenderedContentSize(){const Z=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Z.offsetWidth:Z.offsetHeight}measureRangeSize(Z){return this._forOf?this._forOf.measureRangeSize(Z,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(Z){Z&&this._runAfterChangeDetection.push(Z),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const Z=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const ve of Z)ve()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(d.R0b),d.Y36($,8),d.Y36(E.Is,8),d.Y36(Ze),d.Y36(he),d.Y36(De,8))},Qe.\u0275cmp=d.Xpm({type:Qe,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Z,ve){if(1&Z&&d.Gf(H,7),2&Z){let oe;d.iGM(oe=d.CRH())&&(ve._contentWrapper=oe.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Z,ve){2&Z&&d.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===ve.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==ve.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[d._Bn([{provide:se,useFactory:(st,Z)=>st||Z,deps:[j,Qe]}]),d.qOj],ngContentSelectors:W,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Z,ve){1&Z&&(d.F$t(),d.TgZ(0,"div",0,1),d.Hsn(2),d.qZA(),d._UZ(3,"div",2)),2&Z&&(d.xp6(3),d.Udp("width",ve._totalContentWidth)("height",ve._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Qe})();function q(Qe,st,Z){if(!Z.getBoundingClientRect)return 0;const oe=Z.getBoundingClientRect();return"horizontal"===Qe?"start"===st?oe.left:oe.right:"start"===st?oe.top:oe.bottom}let Te=(()=>{class Qe{constructor(Z,ve,oe,ge,ae,Oe){this._viewContainerRef=Z,this._template=ve,this._differs=oe,this._viewRepeater=ge,this._viewport=ae,this.viewChange=new A.x,this._dataSourceChanges=new A.x,this.dataStream=this._dataSourceChanges.pipe((0,ne.O)(null),(0,le.G)(),(0,te.w)(([Q,me])=>this._changeDataSource(Q,me)),(0,fe.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new A.x,this.dataStream.subscribe(Q=>{this._data=Q,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,X.R)(this._destroyed)).subscribe(Q=>{this._renderedRange=Q,this.viewChange.observers.length&&Oe.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Z){this._cdkVirtualForOf=Z,(0,O.Z9)(Z)?this._dataSourceChanges.next(Z):this._dataSourceChanges.next(new O.P3((0,U.b)(Z)?Z:Array.from(Z||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Z){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Z?(ve,oe)=>Z(ve+(this._renderedRange?this._renderedRange.start:0),oe):void 0}set cdkVirtualForTemplate(Z){Z&&(this._needsUpdate=!0,this._template=Z)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Z){this._viewRepeater.viewCacheSize=(0,e.su)(Z)}measureRangeSize(Z,ve){if(Z.start>=Z.end)return 0;const oe=Z.start-this._renderedRange.start,ge=Z.end-Z.start;let ae,Oe;for(let Q=0;Q-1;Q--){const me=this._viewContainerRef.get(Q+oe);if(me&&me.rootNodes.length){Oe=me.rootNodes[me.rootNodes.length-1];break}}return ae&&Oe?q(ve,"end",Oe)-q(ve,"start",ae):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Z=this._differ.diff(this._renderedItems);Z?this._applyChanges(Z):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((Z,ve)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Z,ve):ve)),this._needsUpdate=!0)}_changeDataSource(Z,ve){return Z&&Z.disconnect(this),this._needsUpdate=!0,ve?ve.connect(this):(0,w.of)()}_updateContext(){const Z=this._data.length;let ve=this._viewContainerRef.length;for(;ve--;){const oe=this._viewContainerRef.get(ve);oe.context.index=this._renderedRange.start+ve,oe.context.count=Z,this._updateComputedContextProperties(oe.context),oe.detectChanges()}}_applyChanges(Z){this._viewRepeater.applyChanges(Z,this._viewContainerRef,(ge,ae,Oe)=>this._getEmbeddedViewArgs(ge,Oe),ge=>ge.item),Z.forEachIdentityChange(ge=>{this._viewContainerRef.get(ge.currentIndex).context.$implicit=ge.item});const ve=this._data.length;let oe=this._viewContainerRef.length;for(;oe--;){const ge=this._viewContainerRef.get(oe);ge.context.index=this._renderedRange.start+oe,ge.context.count=ve,this._updateComputedContextProperties(ge.context)}}_updateComputedContextProperties(Z){Z.first=0===Z.index,Z.last=Z.index===Z.count-1,Z.even=Z.index%2==0,Z.odd=!Z.even}_getEmbeddedViewArgs(Z,ve){return{templateRef:this._template,context:{$implicit:Z.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:ve}}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(d.Y36(d.s_b),d.Y36(d.Rgc),d.Y36(d.ZZ4),d.Y36(O.k),d.Y36(ce,4),d.Y36(d.R0b))},Qe.\u0275dir=d.lG2({type:Qe,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[d._Bn([{provide:O.k,useClass:O.eX}])]}),Qe})(),et=(()=>{class Qe{}return Qe.\u0275fac=function(Z){return new(Z||Qe)},Qe.\u0275mod=d.oAB({type:Qe}),Qe.\u0275inj=d.cJS({}),Qe})(),_t=(()=>{class Qe{}return Qe.\u0275fac=function(Z){return new(Z||Qe)},Qe.\u0275mod=d.oAB({type:Qe}),Qe.\u0275inj=d.cJS({imports:[E.vT,et,E.vT,et]}),Qe})()},39349:(Je,pe,h)=>{"use strict";h.d(pe,{IC:()=>Y,Ky:()=>X,Lq:()=>_});var e=h(83353),d=h(94650),A=h(21281),w=h(60515),g=h(77579),C=h(54968),T=h(23601),v=h(82722),R=h(36895);const U=(0,e.i$)({passive:!0});let _=(()=>{class ne{constructor(te,fe){this._platform=te,this._ngZone=fe,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return w.E;const fe=(0,A.fI)(te),ue=this._monitoredElements.get(fe);if(ue)return ue.subject;const we=new g.x,E="cdk-text-field-autofilled",O=H=>{"cdk-text-field-autofill-start"!==H.animationName||fe.classList.contains(E)?"cdk-text-field-autofill-end"===H.animationName&&fe.classList.contains(E)&&(fe.classList.remove(E),this._ngZone.run(()=>we.next({target:H.target,isAutofilled:!1}))):(fe.classList.add(E),this._ngZone.run(()=>we.next({target:H.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{fe.addEventListener("animationstart",O,U),fe.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(fe,{subject:we,unlisten:()=>{fe.removeEventListener("animationstart",O,U)}}),we}stopMonitoring(te){const fe=(0,A.fI)(te),ue=this._monitoredElements.get(fe);ue&&(ue.unlisten(),ue.subject.complete(),fe.classList.remove("cdk-text-field-autofill-monitored"),fe.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(fe))}ngOnDestroy(){this._monitoredElements.forEach((te,fe)=>this.stopMonitoring(fe))}}return ne.\u0275fac=function(te){return new(te||ne)(d.LFG(e.t4),d.LFG(d.R0b))},ne.\u0275prov=d.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),Y=(()=>{class ne{constructor(te,fe,ue,we){this._elementRef=te,this._platform=fe,this._ngZone=ue,this._destroyed=new g.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=E=>{this._hasFocus="focus"===E.type},this._document=we,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(te){this._minRows=(0,A.su)(te),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(te){this._maxRows=(0,A.su)(te),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(te){te=(0,A.Ig)(te),this._enabled!==te&&((this._enabled=te)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(te){this._cachedPlaceholderHeight=void 0,te?this._textareaElement.setAttribute("placeholder",te):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const te=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.minHeight=te)}_setMaxHeight(){const te=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.maxHeight=te)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();(0,C.R)(te,"resize").pipe((0,T.e)(16),(0,v.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let te=this._textareaElement.cloneNode(!1);te.rows=1,te.style.position="absolute",te.style.visibility="hidden",te.style.border="none",te.style.padding="0",te.style.height="",te.style.minHeight="",te.style.maxHeight="",te.style.overflow="hidden",this._textareaElement.parentNode.appendChild(te),this._cachedLineHeight=te.clientHeight,te.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const te=this._textareaElement,fe=te.style.marginBottom||"",ue=this._platform.FIREFOX,we=ue&&this._hasFocus,E=ue?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";we&&(te.style.marginBottom=`${te.clientHeight}px`),te.classList.add(E);const O=te.scrollHeight-4;return te.classList.remove(E),we&&(te.style.marginBottom=fe),O}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const te=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=te}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(te=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const fe=this._elementRef.nativeElement,ue=fe.value;if(!te&&this._minRows===this._previousMinRows&&ue===this._previousValue)return;const we=this._measureScrollHeight(),E=Math.max(we,this._cachedPlaceholderHeight||0);fe.style.height=`${E}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(fe)):setTimeout(()=>this._scrollToCaretPosition(fe))}),this._previousValue=ue,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(te){const{selectionStart:fe,selectionEnd:ue}=te;!this._destroyed.isStopped&&this._hasFocus&&te.setSelectionRange(fe,ue)}}return ne.\u0275fac=function(te){return new(te||ne)(d.Y36(d.SBq),d.Y36(e.t4),d.Y36(d.R0b),d.Y36(R.K0,8))},ne.\u0275dir=d.lG2({type:ne,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(te,fe){1&te&&d.NdJ("input",function(){return fe._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ne})(),X=(()=>{class ne{}return ne.\u0275fac=function(te){return new(te||ne)},ne.\u0275mod=d.oAB({type:ne}),ne.\u0275inj=d.cJS({}),ne})()},57851:(Je,pe,h)=>{"use strict";h.d(pe,{C2:()=>Y,HI:()=>ne,Hs:()=>$,Ud:()=>se,VY:()=>X,XJ:()=>Ze,Xx:()=>xe,_0:()=>W,cu:()=>le,nZ:()=>he,rO:()=>fe});var e=h(95017),d=h(45191),A=h(77579),w=h(61135),g=h(39646),C=h(95698),T=h(39300),v=h(82722),R=h(94650),U=h(21281),_=h(40445);class V{constructor(){this.expansionModel=new e.Ov(!0)}toggle(j){this.expansionModel.toggle(this._trackByValue(j))}expand(j){this.expansionModel.select(this._trackByValue(j))}collapse(j){this.expansionModel.deselect(this._trackByValue(j))}isExpanded(j){return this.expansionModel.isSelected(this._trackByValue(j))}toggleDescendants(j){this.expansionModel.isSelected(this._trackByValue(j))?this.collapseDescendants(j):this.expandDescendants(j)}collapseAll(){this.expansionModel.clear()}expandDescendants(j){let P=[j];P.push(...this.getDescendants(j)),this.expansionModel.select(...P.map(G=>this._trackByValue(G)))}collapseDescendants(j){let P=[j];P.push(...this.getDescendants(j)),this.expansionModel.deselect(...P.map(G=>this._trackByValue(G)))}_trackByValue(j){return this.trackBy?this.trackBy(j):j}}class Y extends V{constructor(j,P,G){super(),this.getLevel=j,this.isExpandable=P,this.options=G,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(j){const G=[];for(let ce=this.dataNodes.indexOf(j)+1;cethis._trackByValue(j)))}}class X extends V{constructor(j,P){super(),this.getChildren=j,this.options=P,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const j=this.dataNodes.reduce((P,G)=>[...P,...this.getDescendants(G),G],[]);this.expansionModel.select(...j.map(P=>this._trackByValue(P)))}getDescendants(j){const P=[];return this._getDescendants(P,j),P.splice(1)}_getDescendants(j,P){j.push(P);const G=this.getChildren(P);Array.isArray(G)?G.forEach(ce=>this._getDescendants(j,ce)):(0,d.b)(G)&&G.pipe((0,C.q)(1),(0,T.h)(Boolean)).subscribe(ce=>{for(const q of ce)this._getDescendants(j,q)})}}const ne=new R.OlP("CDK_TREE_NODE_OUTLET_NODE");let le=(()=>{class De{constructor(P,G){this.viewContainer=P,this._node=G}}return De.\u0275fac=function(P){return new(P||De)(R.Y36(R.s_b),R.Y36(ne,8))},De.\u0275dir=R.lG2({type:De,selectors:[["","cdkTreeNodeOutlet",""]]}),De})();class te{constructor(j){this.$implicit=j}}let fe=(()=>{class De{constructor(P){this.template=P}}return De.\u0275fac=function(P){return new(P||De)(R.Y36(R.Rgc))},De.\u0275dir=R.lG2({type:De,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),De})(),W=(()=>{class De{constructor(P,G){this._differs=P,this._changeDetectorRef=G,this._onDestroy=new A.x,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(P){this._dataSource!==P&&this._switchDataSource(P)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const P=this._nodeDefs.filter(G=>!G.when);this._defaultNodeDef=P[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(P){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),P||this._nodeOutlet.viewContainer.clear(),this._dataSource=P,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let P;(0,e.Z9)(this._dataSource)?P=this._dataSource.connect(this):(0,d.b)(this._dataSource)?P=this._dataSource:Array.isArray(this._dataSource)&&(P=(0,g.of)(this._dataSource)),P&&(this._dataSubscription=P.pipe((0,v.R)(this._onDestroy)).subscribe(G=>this.renderNodeChanges(G)))}renderNodeChanges(P,G=this._dataDiffer,ce=this._nodeOutlet.viewContainer,q){const Te=G.diff(P);!Te||(Te.forEachOperation((He,dt,et)=>{if(null==He.previousIndex)this.insertNode(P[et],et,ce,q);else if(null==et)ce.remove(dt),this._levels.delete(He.item);else{const _t=ce.get(dt);ce.move(_t,et)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(P,G){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(q=>q.when&&q.when(G,P))||this._defaultNodeDef}insertNode(P,G,ce,q){const Te=this._getNodeDef(P,G),He=new te(P);He.level=this.treeControl.getLevel?this.treeControl.getLevel(P):typeof q<"u"&&this._levels.has(q)?this._levels.get(q)+1:0,this._levels.set(P,He.level),(ce||this._nodeOutlet.viewContainer).createEmbeddedView(Te.template,He,G),$.mostRecentTreeNode&&($.mostRecentTreeNode.data=P)}}return De.\u0275fac=function(P){return new(P||De)(R.Y36(R.ZZ4),R.Y36(R.sBO))},De.\u0275cmp=R.Xpm({type:De,selectors:[["cdk-tree"]],contentQueries:function(P,G,ce){if(1&P&&R.Suo(ce,fe,5),2&P){let q;R.iGM(q=R.CRH())&&(G._nodeDefs=q)}},viewQuery:function(P,G){if(1&P&&R.Gf(le,7),2&P){let ce;R.iGM(ce=R.CRH())&&(G._nodeOutlet=ce.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(P,G){1&P&&R.GkF(0,0)},dependencies:[le],encapsulation:2}),De})(),$=(()=>{class De{constructor(P,G){this._elementRef=P,this._tree=G,this._destroyed=new A.x,this._dataChanges=new A.x,De.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(P){this._elementRef.nativeElement.setAttribute("role",P)}get data(){return this._data}set data(P){P!==this._data&&(this._data=P,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function de(De){let j=De.parentElement;for(;j&&!ye(j);)j=j.parentElement;return j?j.classList.contains("cdk-nested-tree-node")?(0,U.su)(j.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){De.mostRecentTreeNode===this&&(De.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return De.mostRecentTreeNode=null,De.\u0275fac=function(P){return new(P||De)(R.Y36(R.SBq),R.Y36(W))},De.\u0275dir=R.lG2({type:De,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(P,G){2&P&&R.uIk("aria-expanded",G.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),De})();function ye(De){const j=De.classList;return!!(null!=j&&j.contains("cdk-nested-tree-node")||null!=j&&j.contains("cdk-tree"))}let xe=(()=>{class De extends ${constructor(P,G,ce){super(P,G),this._differs=ce}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const P=this._tree.treeControl.getChildren(this.data);Array.isArray(P)?this.updateChildrenNodes(P):(0,d.b)(P)&&P.pipe((0,v.R)(this._destroyed)).subscribe(G=>this.updateChildrenNodes(G)),this.nodeOutlet.changes.pipe((0,v.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(P){const G=this._getNodeOutlet();P&&(this._children=P),G&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,G.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const P=this._getNodeOutlet();P&&(P.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const P=this.nodeOutlet;return P&&P.find(G=>!G._node||G._node===this)}}return De.\u0275fac=function(P){return new(P||De)(R.Y36(R.SBq),R.Y36(W),R.Y36(R.ZZ4))},De.\u0275dir=R.lG2({type:De,selectors:[["cdk-nested-tree-node"]],contentQueries:function(P,G,ce){if(1&P&&R.Suo(ce,le,5),2&P){let q;R.iGM(q=R.CRH())&&(G.nodeOutlet=q)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[R._Bn([{provide:$,useExisting:De},{provide:ne,useExisting:De}]),R.qOj]}),De})();const Me=/([A-Za-z%]+)$/;let Ze=(()=>{class De{constructor(P,G,ce,q){this._treeNode=P,this._tree=G,this._element=ce,this._dir=q,this._destroyed=new A.x,this.indentUnits="px",this._indent=40,this._setPadding(),q&&q.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),P._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(P){this._setLevelInput(P)}get indent(){return this._indent}set indent(P){this._setIndentInput(P)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const P=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,G=this._level??P;return"number"==typeof G?`${G*this._indent}${this.indentUnits}`:null}_setPadding(P=!1){const G=this._paddingIndent();if(G!==this._currentPadding||P){const ce=this._element.nativeElement,q=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Te="paddingLeft"===q?"paddingRight":"paddingLeft";ce.style[q]=G||"",ce.style[Te]="",this._currentPadding=G}}_setLevelInput(P){this._level=(0,U.su)(P,null),this._setPadding()}_setIndentInput(P){let G=P,ce="px";if("string"==typeof P){const q=P.split(Me);G=q[0],ce=q[1]||ce}this.indentUnits=ce,this._indent=(0,U.su)(G),this._setPadding()}}return De.\u0275fac=function(P){return new(P||De)(R.Y36($),R.Y36(W),R.Y36(R.SBq),R.Y36(_.Is,8))},De.\u0275dir=R.lG2({type:De,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),De})(),se=(()=>{class De{constructor(P,G){this._tree=P,this._treeNode=G,this._recursive=!1}get recursive(){return this._recursive}set recursive(P){this._recursive=(0,U.Ig)(P)}_toggle(P){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),P.stopPropagation()}}return De.\u0275fac=function(P){return new(P||De)(R.Y36(W),R.Y36($))},De.\u0275dir=R.lG2({type:De,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(P,G){1&P&&R.NdJ("click",function(q){return G._toggle(q)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),De})(),he=(()=>{class De{}return De.\u0275fac=function(P){return new(P||De)},De.\u0275mod=R.oAB({type:De}),De.\u0275inj=R.cJS({}),De})()},36895:(Je,pe,h)=>{"use strict";h.d(pe,{Do:()=>we,ED:()=>gi,EM:()=>yr,HT:()=>g,JF:()=>Ai,K0:()=>T,Mx:()=>vn,NF:()=>Di,O5:()=>jn,Ov:()=>vt,PC:()=>rr,PM:()=>Xi,RF:()=>Oi,S$:()=>te,V_:()=>U,Ye:()=>E,b0:()=>ue,bD:()=>yi,ez:()=>Yr,gd:()=>Wn,i8:()=>Gt,mk:()=>Un,n9:()=>_i,p6:()=>a,q:()=>A,rS:()=>yn,sg:()=>Zn,tP:()=>yt,uU:()=>ui,w_:()=>C});var e=h(94650);let d=null;function A(){return d}function g(Ve){d||(d=Ve)}class C{}const T=new e.OlP("DocumentToken");let v=(()=>{class Ve{historyGo(Be){throw new Error("Not implemented")}}return Ve.\u0275fac=function(Be){return new(Be||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return function R(){return(0,e.LFG)(_)}()},providedIn:"platform"}),Ve})();const U=new e.OlP("Location Initialized");let _=(()=>{class Ve extends v{constructor(Be){super(),this._doc=Be,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(Be){const ft=A().getGlobalEventTarget(this._doc,"window");return ft.addEventListener("popstate",Be,!1),()=>ft.removeEventListener("popstate",Be)}onHashChange(Be){const ft=A().getGlobalEventTarget(this._doc,"window");return ft.addEventListener("hashchange",Be,!1),()=>ft.removeEventListener("hashchange",Be)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Be){this.location.pathname=Be}pushState(Be,ft,Bt){V()?this._history.pushState(Be,ft,Bt):this.location.hash=Bt}replaceState(Be,ft,Bt){V()?this._history.replaceState(Be,ft,Bt):this.location.hash=Bt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Be=0){this._history.go(Be)}getState(){return this._history.state}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.LFG(T))},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return function Y(){return new _((0,e.LFG)(T))}()},providedIn:"platform"}),Ve})();function V(){return!!window.history.pushState}function X(Ve,ht){if(0==Ve.length)return ht;if(0==ht.length)return Ve;let Be=0;return Ve.endsWith("/")&&Be++,ht.startsWith("/")&&Be++,2==Be?Ve+ht.substring(1):1==Be?Ve+ht:Ve+"/"+ht}function ne(Ve){const ht=Ve.match(/#|\?|$/),Be=ht&&ht.index||Ve.length;return Ve.slice(0,Be-("/"===Ve[Be-1]?1:0))+Ve.slice(Be)}function le(Ve){return Ve&&"?"!==Ve[0]?"?"+Ve:Ve}let te=(()=>{class Ve{historyGo(Be){throw new Error("Not implemented")}}return Ve.\u0275fac=function(Be){return new(Be||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return(0,e.f3M)(ue)},providedIn:"root"}),Ve})();const fe=new e.OlP("appBaseHref");let ue=(()=>{class Ve extends te{constructor(Be,ft){var Bt,$t,Wt;super(),this._platformLocation=Be,this._removeListenerFns=[],this._baseHref=null!==(Bt=null!==($t=ft??this._platformLocation.getBaseHrefFromDOM())&&void 0!==$t?$t:null===(Wt=(0,e.f3M)(T).location)||void 0===Wt?void 0:Wt.origin)&&void 0!==Bt?Bt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Be){this._removeListenerFns.push(this._platformLocation.onPopState(Be),this._platformLocation.onHashChange(Be))}getBaseHref(){return this._baseHref}prepareExternalUrl(Be){return X(this._baseHref,Be)}path(Be=!1){const ft=this._platformLocation.pathname+le(this._platformLocation.search),Bt=this._platformLocation.hash;return Bt&&Be?`${ft}${Bt}`:ft}pushState(Be,ft,Bt,$t){const Wt=this.prepareExternalUrl(Bt+le($t));this._platformLocation.pushState(Be,ft,Wt)}replaceState(Be,ft,Bt,$t){const Wt=this.prepareExternalUrl(Bt+le($t));this._platformLocation.replaceState(Be,ft,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Be=0){var ft,Bt;null===(ft=(Bt=this._platformLocation).historyGo)||void 0===ft||ft.call(Bt,Be)}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.LFG(v),e.LFG(fe,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),we=(()=>{class Ve extends te{constructor(Be,ft){super(),this._platformLocation=Be,this._baseHref="",this._removeListenerFns=[],null!=ft&&(this._baseHref=ft)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Be){this._removeListenerFns.push(this._platformLocation.onPopState(Be),this._platformLocation.onHashChange(Be))}getBaseHref(){return this._baseHref}path(Be=!1){let ft=this._platformLocation.hash;return null==ft&&(ft="#"),ft.length>0?ft.substring(1):ft}prepareExternalUrl(Be){const ft=X(this._baseHref,Be);return ft.length>0?"#"+ft:ft}pushState(Be,ft,Bt,$t){let Wt=this.prepareExternalUrl(Bt+le($t));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.pushState(Be,ft,Wt)}replaceState(Be,ft,Bt,$t){let Wt=this.prepareExternalUrl(Bt+le($t));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.replaceState(Be,ft,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Be=0){var ft,Bt;null===(ft=(Bt=this._platformLocation).historyGo)||void 0===ft||ft.call(Bt,Be)}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.LFG(v),e.LFG(fe,8))},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac}),Ve})(),E=(()=>{class Ve{constructor(Be){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Be;const ft=this._locationStrategy.getBaseHref();this._baseHref=ne(W(ft)),this._locationStrategy.onPopState(Bt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Bt.state,type:Bt.type})})}ngOnDestroy(){var Be;null===(Be=this._urlChangeSubscription)||void 0===Be||Be.unsubscribe(),this._urlChangeListeners=[]}path(Be=!1){return this.normalize(this._locationStrategy.path(Be))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Be,ft=""){return this.path()==this.normalize(Be+le(ft))}normalize(Be){return Ve.stripTrailingSlash(function H(Ve,ht){return Ve&&ht.startsWith(Ve)?ht.substring(Ve.length):ht}(this._baseHref,W(Be)))}prepareExternalUrl(Be){return Be&&"/"!==Be[0]&&(Be="/"+Be),this._locationStrategy.prepareExternalUrl(Be)}go(Be,ft="",Bt=null){this._locationStrategy.pushState(Bt,"",Be,ft),this._notifyUrlChangeListeners(this.prepareExternalUrl(Be+le(ft)),Bt)}replaceState(Be,ft="",Bt=null){this._locationStrategy.replaceState(Bt,"",Be,ft),this._notifyUrlChangeListeners(this.prepareExternalUrl(Be+le(ft)),Bt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Be=0){var ft,Bt;null===(ft=(Bt=this._locationStrategy).historyGo)||void 0===ft||ft.call(Bt,Be)}onUrlChange(Be){return this._urlChangeListeners.push(Be),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ft=>{this._notifyUrlChangeListeners(ft.url,ft.state)})),()=>{const ft=this._urlChangeListeners.indexOf(Be);var Bt;this._urlChangeListeners.splice(ft,1),0===this._urlChangeListeners.length&&(null===(Bt=this._urlChangeSubscription)||void 0===Bt||Bt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Be="",ft){this._urlChangeListeners.forEach(Bt=>Bt(Be,ft))}subscribe(Be,ft,Bt){return this._subject.subscribe({next:Be,error:ft,complete:Bt})}}return Ve.normalizeQueryParams=le,Ve.joinWithSlash=X,Ve.stripTrailingSlash=ne,Ve.\u0275fac=function(Be){return new(Be||Ve)(e.LFG(te))},Ve.\u0275prov=e.Yz7({token:Ve,factory:function(){return function O(){return new E((0,e.LFG)(te))}()},providedIn:"root"}),Ve})();function W(Ve){return Ve.replace(/\/index.html$/,"")}var xe=(()=>((xe=xe||{})[xe.Format=0]="Format",xe[xe.Standalone=1]="Standalone",xe))(),Me=(()=>((Me=Me||{})[Me.Narrow=0]="Narrow",Me[Me.Abbreviated=1]="Abbreviated",Me[Me.Wide=2]="Wide",Me[Me.Short=3]="Short",Me))(),Ze=(()=>((Ze=Ze||{})[Ze.Short=0]="Short",Ze[Ze.Medium=1]="Medium",Ze[Ze.Long=2]="Long",Ze[Ze.Full=3]="Full",Ze))(),se=(()=>((se=se||{})[se.Decimal=0]="Decimal",se[se.Group=1]="Group",se[se.List=2]="List",se[se.PercentSign=3]="PercentSign",se[se.PlusSign=4]="PlusSign",se[se.MinusSign=5]="MinusSign",se[se.Exponential=6]="Exponential",se[se.SuperscriptingExponent=7]="SuperscriptingExponent",se[se.PerMille=8]="PerMille",se[se.Infinity=9]="Infinity",se[se.NaN=10]="NaN",se[se.TimeSeparator=11]="TimeSeparator",se[se.CurrencyDecimal=12]="CurrencyDecimal",se[se.CurrencyGroup=13]="CurrencyGroup",se))();function Te(Ve,ht){return me((0,e.cg1)(Ve)[e.wAp.DateFormat],ht)}function He(Ve,ht){return me((0,e.cg1)(Ve)[e.wAp.TimeFormat],ht)}function dt(Ve,ht){return me((0,e.cg1)(Ve)[e.wAp.DateTimeFormat],ht)}function et(Ve,ht){const Be=(0,e.cg1)(Ve),ft=Be[e.wAp.NumberSymbols][ht];if(typeof ft>"u"){if(ht===se.CurrencyDecimal)return Be[e.wAp.NumberSymbols][se.Decimal];if(ht===se.CurrencyGroup)return Be[e.wAp.NumberSymbols][se.Group]}return ft}function ge(Ve){if(!Ve[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ve[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function me(Ve,ht){for(let Be=ht;Be>-1;Be--)if(typeof Ve[Be]<"u")return Ve[Be];throw new Error("Locale data API: locale data undefined")}function N(Ve){const[ht,Be]=Ve.split(":");return{hours:+ht,minutes:+Be}}const m=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,l={},o=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var n=(()=>((n=n||{})[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),i=(()=>((i=i||{})[i.DayPeriods=0]="DayPeriods",i[i.Days=1]="Days",i[i.Months=2]="Months",i[i.Eras=3]="Eras",i))();function a(Ve,ht,Be,ft){let Bt=function It(Ve){if(sn(Ve))return Ve;if("number"==typeof Ve&&!isNaN(Ve))return new Date(Ve);if("string"==typeof Ve){if(Ve=Ve.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ve)){const[Bt,$t=1,Wt=1]=Ve.split("-").map(An=>+An);return c(Bt,$t-1,Wt)}const Be=parseFloat(Ve);if(!isNaN(Ve-Be))return new Date(Be);let ft;if(ft=Ve.match(m))return function jt(Ve){const ht=new Date(0);let Be=0,ft=0;const Bt=Ve[8]?ht.setUTCFullYear:ht.setFullYear,$t=Ve[8]?ht.setUTCHours:ht.setHours;Ve[9]&&(Be=Number(Ve[9]+Ve[10]),ft=Number(Ve[9]+Ve[11])),Bt.call(ht,Number(Ve[1]),Number(Ve[2])-1,Number(Ve[3]));const Wt=Number(Ve[4]||0)-Be,An=Number(Ve[5]||0)-ft,ni=Number(Ve[6]||0),ei=Math.floor(1e3*parseFloat("0."+(Ve[7]||0)));return $t.call(ht,Wt,An,ni,ei),ht}(ft)}const ht=new Date(Ve);if(!sn(ht))throw new Error(`Unable to convert "${Ve}" into a date`);return ht}(Ve);ht=p(Be,ht)||ht;let An,Wt=[];for(;ht;){if(An=o.exec(ht),!An){Wt.push(ht);break}{Wt=Wt.concat(An.slice(1));const Xn=Wt.pop();if(!Xn)break;ht=Xn}}let ni=Bt.getTimezoneOffset();ft&&(ni=ot(ft,ni),Bt=function lt(Ve,ht,Be){const ft=Be?-1:1,Bt=Ve.getTimezoneOffset();return function Re(Ve,ht){return(Ve=new Date(Ve.getTime())).setMinutes(Ve.getMinutes()+ht),Ve}(Ve,ft*(ot(ht,Bt)-Bt))}(Bt,ft,!0));let ei="";return Wt.forEach(Xn=>{const Nn=function tt(Ve){if(We[Ve])return We[Ve];let ht;switch(Ve){case"G":case"GG":case"GGG":ht=xt(i.Eras,Me.Abbreviated);break;case"GGGG":ht=xt(i.Eras,Me.Wide);break;case"GGGGG":ht=xt(i.Eras,Me.Narrow);break;case"y":ht=Ut(t.FullYear,1,0,!1,!0);break;case"yy":ht=Ut(t.FullYear,2,0,!0,!0);break;case"yyy":ht=Ut(t.FullYear,3,0,!1,!0);break;case"yyyy":ht=Ut(t.FullYear,4,0,!1,!0);break;case"Y":ht=Ee(1);break;case"YY":ht=Ee(2,!0);break;case"YYY":ht=Ee(3);break;case"YYYY":ht=Ee(4);break;case"M":case"L":ht=Ut(t.Month,1,1);break;case"MM":case"LL":ht=Ut(t.Month,2,1);break;case"MMM":ht=xt(i.Months,Me.Abbreviated);break;case"MMMM":ht=xt(i.Months,Me.Wide);break;case"MMMMM":ht=xt(i.Months,Me.Narrow);break;case"LLL":ht=xt(i.Months,Me.Abbreviated,xe.Standalone);break;case"LLLL":ht=xt(i.Months,Me.Wide,xe.Standalone);break;case"LLLLL":ht=xt(i.Months,Me.Narrow,xe.Standalone);break;case"w":ht=Ae(1);break;case"ww":ht=Ae(2);break;case"W":ht=Ae(1,!0);break;case"d":ht=Ut(t.Date,1);break;case"dd":ht=Ut(t.Date,2);break;case"c":case"cc":ht=Ut(t.Day,1);break;case"ccc":ht=xt(i.Days,Me.Abbreviated,xe.Standalone);break;case"cccc":ht=xt(i.Days,Me.Wide,xe.Standalone);break;case"ccccc":ht=xt(i.Days,Me.Narrow,xe.Standalone);break;case"cccccc":ht=xt(i.Days,Me.Short,xe.Standalone);break;case"E":case"EE":case"EEE":ht=xt(i.Days,Me.Abbreviated);break;case"EEEE":ht=xt(i.Days,Me.Wide);break;case"EEEEE":ht=xt(i.Days,Me.Narrow);break;case"EEEEEE":ht=xt(i.Days,Me.Short);break;case"a":case"aa":case"aaa":ht=xt(i.DayPeriods,Me.Abbreviated);break;case"aaaa":ht=xt(i.DayPeriods,Me.Wide);break;case"aaaaa":ht=xt(i.DayPeriods,Me.Narrow);break;case"b":case"bb":case"bbb":ht=xt(i.DayPeriods,Me.Abbreviated,xe.Standalone,!0);break;case"bbbb":ht=xt(i.DayPeriods,Me.Wide,xe.Standalone,!0);break;case"bbbbb":ht=xt(i.DayPeriods,Me.Narrow,xe.Standalone,!0);break;case"B":case"BB":case"BBB":ht=xt(i.DayPeriods,Me.Abbreviated,xe.Format,!0);break;case"BBBB":ht=xt(i.DayPeriods,Me.Wide,xe.Format,!0);break;case"BBBBB":ht=xt(i.DayPeriods,Me.Narrow,xe.Format,!0);break;case"h":ht=Ut(t.Hours,1,-12);break;case"hh":ht=Ut(t.Hours,2,-12);break;case"H":ht=Ut(t.Hours,1);break;case"HH":ht=Ut(t.Hours,2);break;case"m":ht=Ut(t.Minutes,1);break;case"mm":ht=Ut(t.Minutes,2);break;case"s":ht=Ut(t.Seconds,1);break;case"ss":ht=Ut(t.Seconds,2);break;case"S":ht=Ut(t.FractionalSeconds,1);break;case"SS":ht=Ut(t.FractionalSeconds,2);break;case"SSS":ht=Ut(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ht=Ge(n.Short);break;case"ZZZZZ":ht=Ge(n.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ht=Ge(n.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ht=Ge(n.Long);break;default:return null}return We[Ve]=ht,ht}(Xn);ei+=Nn?Nn(Bt,Be,ni):"''"===Xn?"'":Xn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ei}function c(Ve,ht,Be){const ft=new Date(0);return ft.setFullYear(Ve,ht,Be),ft.setHours(0,0,0),ft}function p(Ve,ht){const Be=function he(Ve){return(0,e.cg1)(Ve)[e.wAp.LocaleId]}(Ve);if(l[Be]=l[Be]||{},l[Be][ht])return l[Be][ht];let ft="";switch(ht){case"shortDate":ft=Te(Ve,Ze.Short);break;case"mediumDate":ft=Te(Ve,Ze.Medium);break;case"longDate":ft=Te(Ve,Ze.Long);break;case"fullDate":ft=Te(Ve,Ze.Full);break;case"shortTime":ft=He(Ve,Ze.Short);break;case"mediumTime":ft=He(Ve,Ze.Medium);break;case"longTime":ft=He(Ve,Ze.Long);break;case"fullTime":ft=He(Ve,Ze.Full);break;case"short":const Bt=p(Ve,"shortTime"),$t=p(Ve,"shortDate");ft=M(dt(Ve,Ze.Short),[Bt,$t]);break;case"medium":const Wt=p(Ve,"mediumTime"),An=p(Ve,"mediumDate");ft=M(dt(Ve,Ze.Medium),[Wt,An]);break;case"long":const ni=p(Ve,"longTime"),ei=p(Ve,"longDate");ft=M(dt(Ve,Ze.Long),[ni,ei]);break;case"full":const Xn=p(Ve,"fullTime"),Nn=p(Ve,"fullDate");ft=M(dt(Ve,Ze.Full),[Xn,Nn])}return ft&&(l[Be][ht]=ft),ft}function M(Ve,ht){return ht&&(Ve=Ve.replace(/\{([^}]+)}/g,function(Be,ft){return null!=ht&&ft in ht?ht[ft]:Be})),Ve}function Ne(Ve,ht,Be="-",ft,Bt){let $t="";(Ve<0||Bt&&Ve<=0)&&(Bt?Ve=1-Ve:(Ve=-Ve,$t=Be));let Wt=String(Ve);for(;Wt.length0||An>-Be)&&(An+=Be),Ve===t.Hours)0===An&&-12===Be&&(An=12);else if(Ve===t.FractionalSeconds)return function Pt(Ve,ht){return Ne(Ve,3).substring(0,ht)}(An,ht);const ni=et(Wt,se.MinusSign);return Ne(An,ht,ni,ft,Bt)}}function xt(Ve,ht,Be=xe.Format,ft=!1){return function(Bt,$t){return function gt(Ve,ht,Be,ft,Bt,$t){switch(Be){case i.Months:return function P(Ve,ht,Be){const ft=(0,e.cg1)(Ve),$t=me([ft[e.wAp.MonthsFormat],ft[e.wAp.MonthsStandalone]],ht);return me($t,Be)}(ht,Bt,ft)[Ve.getMonth()];case i.Days:return function j(Ve,ht,Be){const ft=(0,e.cg1)(Ve),$t=me([ft[e.wAp.DaysFormat],ft[e.wAp.DaysStandalone]],ht);return me($t,Be)}(ht,Bt,ft)[Ve.getDay()];case i.DayPeriods:const Wt=Ve.getHours(),An=Ve.getMinutes();if($t){const ei=function ae(Ve){const ht=(0,e.cg1)(Ve);return ge(ht),(ht[e.wAp.ExtraData][2]||[]).map(ft=>"string"==typeof ft?N(ft):[N(ft[0]),N(ft[1])])}(ht),Xn=function Oe(Ve,ht,Be){const ft=(0,e.cg1)(Ve);ge(ft);const $t=me([ft[e.wAp.ExtraData][0],ft[e.wAp.ExtraData][1]],ht)||[];return me($t,Be)||[]}(ht,Bt,ft),Nn=ei.findIndex(Ci=>{if(Array.isArray(Ci)){const[Jn,ci]=Ci,nn=Wt>=Jn.hours&&An>=Jn.minutes,Rn=Wt0?Math.floor(Bt/60):Math.ceil(Bt/60);switch(Ve){case n.Short:return(Bt>=0?"+":"")+Ne(Wt,2,$t)+Ne(Math.abs(Bt%60),2,$t);case n.ShortGMT:return"GMT"+(Bt>=0?"+":"")+Ne(Wt,1,$t);case n.Long:return"GMT"+(Bt>=0?"+":"")+Ne(Wt,2,$t)+":"+Ne(Math.abs(Bt%60),2,$t);case n.Extended:return 0===ft?"Z":(Bt>=0?"+":"")+Ne(Wt,2,$t)+":"+Ne(Math.abs(Bt%60),2,$t);default:throw new Error(`Unknown zone width "${Ve}"`)}}}function ke(Ve){return c(Ve.getFullYear(),Ve.getMonth(),Ve.getDate()+(4-Ve.getDay()))}function Ae(Ve,ht=!1){return function(Be,ft){let Bt;if(ht){const $t=new Date(Be.getFullYear(),Be.getMonth(),1).getDay()-1,Wt=Be.getDate();Bt=1+Math.floor((Wt+$t)/7)}else{const $t=ke(Be),Wt=function Ke(Ve){const ht=c(Ve,0,1).getDay();return c(Ve,0,1+(ht<=4?4:11)-ht)}($t.getFullYear()),An=$t.getTime()-Wt.getTime();Bt=1+Math.round(An/6048e5)}return Ne(Bt,Ve,et(ft,se.MinusSign))}}function Ee(Ve,ht=!1){return function(Be,ft){return Ne(ke(Be).getFullYear(),Ve,et(ft,se.MinusSign),ht)}}const We={};function ot(Ve,ht){Ve=Ve.replace(/:/g,"");const Be=Date.parse("Jan 01, 1970 00:00:00 "+Ve)/6e4;return isNaN(Be)?ht:Be}function sn(Ve){return Ve instanceof Date&&!isNaN(Ve.valueOf())}function vn(Ve,ht){ht=encodeURIComponent(ht);for(const Be of Ve.split(";")){const ft=Be.indexOf("="),[Bt,$t]=-1==ft?[Be,""]:[Be.slice(0,ft),Be.slice(ft+1)];if(Bt.trim()===ht)return decodeURIComponent($t)}return null}let Un=(()=>{class Ve{constructor(Be,ft,Bt,$t){this._iterableDiffers=Be,this._keyValueDiffers=ft,this._ngEl=Bt,this._renderer=$t,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Be){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Be?Be.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Be){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Be?Be.split(/\s+/):Be,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Be=this._iterableDiffer.diff(this._rawClass);Be&&this._applyIterableChanges(Be)}else if(this._keyValueDiffer){const Be=this._keyValueDiffer.diff(this._rawClass);Be&&this._applyKeyValueChanges(Be)}}_applyKeyValueChanges(Be){Be.forEachAddedItem(ft=>this._toggleClass(ft.key,ft.currentValue)),Be.forEachChangedItem(ft=>this._toggleClass(ft.key,ft.currentValue)),Be.forEachRemovedItem(ft=>{ft.previousValue&&this._toggleClass(ft.key,!1)})}_applyIterableChanges(Be){Be.forEachAddedItem(ft=>{if("string"!=typeof ft.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(ft.item)}`);this._toggleClass(ft.item,!0)}),Be.forEachRemovedItem(ft=>this._toggleClass(ft.item,!1))}_applyClasses(Be){Be&&(Array.isArray(Be)||Be instanceof Set?Be.forEach(ft=>this._toggleClass(ft,!0)):Object.keys(Be).forEach(ft=>this._toggleClass(ft,!!Be[ft])))}_removeClasses(Be){Be&&(Array.isArray(Be)||Be instanceof Set?Be.forEach(ft=>this._toggleClass(ft,!1)):Object.keys(Be).forEach(ft=>this._toggleClass(ft,!1)))}_toggleClass(Be,ft){(Be=Be.trim())&&Be.split(/\s+/g).forEach(Bt=>{ft?this._renderer.addClass(this._ngEl.nativeElement,Bt):this._renderer.removeClass(this._ngEl.nativeElement,Bt)})}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ve})();class li{constructor(ht,Be,ft,Bt){this.$implicit=ht,this.ngForOf=Be,this.index=ft,this.count=Bt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Zn=(()=>{class Ve{constructor(Be,ft,Bt){this._viewContainer=Be,this._template=ft,this._differs=Bt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Be){this._ngForOf=Be,this._ngForOfDirty=!0}set ngForTrackBy(Be){this._trackByFn=Be}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Be){Be&&(this._template=Be)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Be=this._ngForOf;!this._differ&&Be&&(this._differ=this._differs.find(Be).create(this.ngForTrackBy))}if(this._differ){const Be=this._differ.diff(this._ngForOf);Be&&this._applyChanges(Be)}}_applyChanges(Be){const ft=this._viewContainer;Be.forEachOperation((Bt,$t,Wt)=>{if(null==Bt.previousIndex)ft.createEmbeddedView(this._template,new li(Bt.item,this._ngForOf,-1,-1),null===Wt?void 0:Wt);else if(null==Wt)ft.remove(null===$t?void 0:$t);else if(null!==$t){const An=ft.get($t);ft.move(An,Wt),On(An,Bt)}});for(let Bt=0,$t=ft.length;Bt<$t;Bt++){const An=ft.get(Bt).context;An.index=Bt,An.count=$t,An.ngForOf=this._ngForOf}Be.forEachIdentityChange(Bt=>{On(ft.get(Bt.currentIndex),Bt)})}static ngTemplateContextGuard(Be,ft){return!0}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ve})();function On(Ve,ht){Ve.context.$implicit=ht.item}let jn=(()=>{class Ve{constructor(Be,ft){this._viewContainer=Be,this._context=new zn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ft}set ngIf(Be){this._context.$implicit=this._context.ngIf=Be,this._updateView()}set ngIfThen(Be){ki("ngIfThen",Be),this._thenTemplateRef=Be,this._thenViewRef=null,this._updateView()}set ngIfElse(Be){ki("ngIfElse",Be),this._elseTemplateRef=Be,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Be,ft){return!0}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ve})();class zn{constructor(){this.$implicit=null,this.ngIf=null}}function ki(Ve,ht){if(ht&&!ht.createEmbeddedView)throw new Error(`${Ve} must be a TemplateRef, but received '${(0,e.AaK)(ht)}'.`)}class Vi{constructor(ht,Be){this._viewContainerRef=ht,this._templateRef=Be,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ht){ht&&!this._created?this.create():!ht&&this._created&&this.destroy()}}let Oi=(()=>{class Ve{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Be){this._ngSwitch=Be,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Be){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Be)}_matchCase(Be){const ft=Be==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ft,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ft}_updateDefaultCases(Be){if(this._defaultViews&&Be!==this._defaultUsed){this._defaultUsed=Be;for(let ft=0;ft{class Ve{constructor(Be,ft,Bt){this.ngSwitch=Bt,Bt._addCase(),this._view=new Vi(Be,ft)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Oi,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ve})(),gi=(()=>{class Ve{constructor(Be,ft,Bt){Bt._addDefault(new Vi(Be,ft))}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Oi,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ve})(),rr=(()=>{class Ve{constructor(Be,ft,Bt){this._ngEl=Be,this._differs=ft,this._renderer=Bt,this._ngStyle=null,this._differ=null}set ngStyle(Be){this._ngStyle=Be,!this._differ&&Be&&(this._differ=this._differs.find(Be).create())}ngDoCheck(){if(this._differ){const Be=this._differ.diff(this._ngStyle);Be&&this._applyChanges(Be)}}_setStyle(Be,ft){const[Bt,$t]=Be.split("."),Wt=-1===Bt.indexOf("-")?void 0:e.JOm.DashCase;null!=ft?this._renderer.setStyle(this._ngEl.nativeElement,Bt,$t?`${ft}${$t}`:ft,Wt):this._renderer.removeStyle(this._ngEl.nativeElement,Bt,Wt)}_applyChanges(Be){Be.forEachRemovedItem(ft=>this._setStyle(ft.key,null)),Be.forEachAddedItem(ft=>this._setStyle(ft.key,ft.currentValue)),Be.forEachChangedItem(ft=>this._setStyle(ft.key,ft.currentValue))}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ve})(),yt=(()=>{class Ve{constructor(Be){this._viewContainerRef=Be,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Be){if(Be.ngTemplateOutlet||Be.ngTemplateOutletInjector){const ft=this._viewContainerRef;if(this._viewRef&&ft.remove(ft.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Bt,ngTemplateOutletContext:$t,ngTemplateOutletInjector:Wt}=this;this._viewRef=ft.createEmbeddedView(Bt,$t,Wt?{injector:Wt}:void 0)}else this._viewRef=null}else this._viewRef&&Be.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.s_b))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),Ve})();function nt(Ve,ht){return new e.vHH(2100,!1)}class Nt{createSubscription(ht,Be){return ht.subscribe({next:Be,error:ft=>{throw ft}})}dispose(ht){ht.unsubscribe()}}class je{createSubscription(ht,Be){return ht.then(Be,ft=>{throw ft})}dispose(ht){}}const Ht=new je,$e=new Nt;let vt=(()=>{class Ve{constructor(Be){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Be}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Be){return this._obj?Be!==this._obj?(this._dispose(),this.transform(Be)):this._latestValue:(Be&&this._subscribe(Be),this._latestValue)}_subscribe(Be){this._obj=Be,this._strategy=this._selectStrategy(Be),this._subscription=this._strategy.createSubscription(Be,ft=>this._updateLatestValue(Be,ft))}_selectStrategy(Be){if((0,e.QGY)(Be))return Ht;if((0,e.F4k)(Be))return $e;throw nt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Be,ft){Be===this._obj&&(this._latestValue=ft,this._ref.markForCheck())}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.sBO,16))},Ve.\u0275pipe=e.Yjl({name:"async",type:Ve,pure:!1,standalone:!0}),Ve})(),Gt=(()=>{class Ve{transform(Be){if(null==Be)return null;if("string"!=typeof Be)throw nt();return Be.toLowerCase()}}return Ve.\u0275fac=function(Be){return new(Be||Ve)},Ve.\u0275pipe=e.Yjl({name:"lowercase",type:Ve,pure:!0,standalone:!0}),Ve})();const dn=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let yn=(()=>{class Ve{transform(Be){if(null==Be)return null;if("string"!=typeof Be)throw nt();return Be.replace(dn,ft=>ft[0].toUpperCase()+ft.slice(1).toLowerCase())}}return Ve.\u0275fac=function(Be){return new(Be||Ve)},Ve.\u0275pipe=e.Yjl({name:"titlecase",type:Ve,pure:!0,standalone:!0}),Ve})(),Wn=(()=>{class Ve{transform(Be){if(null==Be)return null;if("string"!=typeof Be)throw nt();return Be.toUpperCase()}}return Ve.\u0275fac=function(Be){return new(Be||Ve)},Ve.\u0275pipe=e.Yjl({name:"uppercase",type:Ve,pure:!0,standalone:!0}),Ve})();const Kn=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let ui=(()=>{class Ve{constructor(Be,ft){this.locale=Be,this.defaultTimezone=ft}transform(Be,ft="mediumDate",Bt,$t){if(null==Be||""===Be||Be!=Be)return null;try{var Wt;return a(Be,ft,$t||this.locale,null!==(Wt=Bt??this.defaultTimezone)&&void 0!==Wt?Wt:void 0)}catch(An){throw nt()}}}return Ve.\u0275fac=function(Be){return new(Be||Ve)(e.Y36(e.soG,16),e.Y36(Kn,24))},Ve.\u0275pipe=e.Yjl({name:"date",type:Ve,pure:!0,standalone:!0}),Ve})(),Yr=(()=>{class Ve{}return Ve.\u0275fac=function(Be){return new(Be||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({}),Ve})();const yi="browser";function Di(Ve){return Ve===yi}function Xi(Ve){return"server"===Ve}let yr=(()=>{class Ve{}return Ve.\u0275prov=(0,e.Yz7)({token:Ve,providedIn:"root",factory:()=>new wi((0,e.LFG)(T),window)}),Ve})();class wi{constructor(ht,Be){this.document=ht,this.window=Be,this.offset=()=>[0,0]}setOffset(ht){this.offset=Array.isArray(ht)?()=>ht:ht}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ht){this.supportsScrolling()&&this.window.scrollTo(ht[0],ht[1])}scrollToAnchor(ht){if(!this.supportsScrolling())return;const Be=function lo(Ve,ht){const Be=Ve.getElementById(ht)||Ve.getElementsByName(ht)[0];if(Be)return Be;if("function"==typeof Ve.createTreeWalker&&Ve.body&&(Ve.body.createShadowRoot||Ve.body.attachShadow)){const ft=Ve.createTreeWalker(Ve.body,NodeFilter.SHOW_ELEMENT);let Bt=ft.currentNode;for(;Bt;){const $t=Bt.shadowRoot;if($t){const Wt=$t.getElementById(ht)||$t.querySelector(`[name="${ht}"]`);if(Wt)return Wt}Bt=ft.nextNode()}}return null}(this.document,ht);Be&&(this.scrollToElement(Be),Be.focus())}setHistoryScrollRestoration(ht){if(this.supportScrollRestoration()){const Be=this.window.history;Be&&Be.scrollRestoration&&(Be.scrollRestoration=ht)}}scrollToElement(ht){const Be=ht.getBoundingClientRect(),ft=Be.left+this.window.pageXOffset,Bt=Be.top+this.window.pageYOffset,$t=this.offset();this.window.scrollTo(ft-$t[0],Bt-$t[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ht=jr(this.window.history)||jr(Object.getPrototypeOf(this.window.history));return!(!ht||!ht.writable&&!ht.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function jr(Ve){return Object.getOwnPropertyDescriptor(Ve,"scrollRestoration")}class Ai{}},80529:(Je,pe,h)=>{"use strict";h.d(pe,{JF:()=>s,LE:()=>fe,TP:()=>j,WM:()=>U,Zn:()=>Ze,eN:()=>he,qT:()=>we});var e=h(36895),d=h(94650),A=h(39646),w=h(69751),g=h(24351),C=h(39300),T=h(54004);class v{}class R{}class U{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const a=t.slice(0,i),c=a.toLowerCase(),p=t.slice(i+1).trim();this.maybeSetNormalizedName(a,c),this.headers.has(c)?this.headers.get(c).push(p):this.headers.set(c,[p])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let i=n[t];const a=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(a,i),this.maybeSetNormalizedName(t,a))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new U;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const a=("a"===n.op?this.headers.get(t):void 0)||[];a.push(...i),this.headers.set(t,a);break;case"d":const c=n.value;if(c){let p=this.headers.get(t);if(!p)return;p=p.filter(M=>-1===c.indexOf(M)),0===p.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,p)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class V{encodeKey(n){return le(n)}encodeValue(n){return le(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const X=/%(\d[a-f0-9])/gi,ne={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function le(o){return encodeURIComponent(o).replace(X,(n,t)=>{var i;return null!==(i=ne[t])&&void 0!==i?i:n})}function te(o){return`${o}`}class fe{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new V,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Y(o,n){const t=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(a=>{const c=a.indexOf("="),[p,M]=-1==c?[n.decodeKey(a),""]:[n.decodeKey(a.slice(0,c)),n.decodeValue(a.slice(c+1))],Ne=t.get(p)||[];Ne.push(M),t.set(p,Ne)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],a=Array.isArray(i)?i.map(te):[te(i)];this.map.set(t,a)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const a=n[i];Array.isArray(a)?a.forEach(c=>{t.push({param:i,value:c,op:"a"})}):t.push({param:i,value:a,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new fe({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(te(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const a=i.indexOf(te(n.value));-1!==a&&i.splice(a,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class we{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function O(o){return typeof ArrayBuffer<"u"&&o instanceof ArrayBuffer}function H(o){return typeof Blob<"u"&&o instanceof Blob}function W(o){return typeof FormData<"u"&&o instanceof FormData}class de{constructor(n,t,i,a){let c;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function E(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||a?(this.body=void 0!==i?i:null,c=a):c=i,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new U),this.context||(this.context=new we),this.params){const p=this.params.toString();if(0===p.length)this.urlWithParams=t;else{const M=t.indexOf("?");this.urlWithParams=t+(-1===M?"?":Mxt.set(gt,n.setHeaders[gt]),Pt)),n.setParams&&(Ut=Object.keys(n.setParams).reduce((xt,gt)=>xt.set(gt,n.setParams[gt]),Ut)),new de(i,a,p,{params:Ut,headers:Pt,context:ln,reportProgress:Ne,responseType:c,withCredentials:M})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class xe{constructor(n,t=200,i="OK"){this.headers=n.headers||new U,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Me extends xe{constructor(n={}){super(n),this.type=ye.ResponseHeader}clone(n={}){return new Me({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ze extends xe{constructor(n={}){super(n),this.type=ye.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ze({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class se extends xe{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function ze(o,n){return{body:n,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials}}let he=(()=>{class o{constructor(t){this.handler=t}request(t,i,a={}){let c;if(t instanceof de)c=t;else{let Ne,Pt;Ne=a.headers instanceof U?a.headers:new U(a.headers),a.params&&(Pt=a.params instanceof fe?a.params:new fe({fromObject:a.params})),c=new de(t,i,void 0!==a.body?a.body:null,{headers:Ne,context:a.context,params:Pt,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}const p=(0,A.of)(c).pipe((0,g.b)(Ne=>this.handler.handle(Ne)));if(t instanceof de||"events"===a.observe)return p;const M=p.pipe((0,C.h)(Ne=>Ne instanceof Ze));switch(a.observe||"body"){case"body":switch(c.responseType){case"arraybuffer":return M.pipe((0,T.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ne.body}));case"blob":return M.pipe((0,T.U)(Ne=>{if(null!==Ne.body&&!(Ne.body instanceof Blob))throw new Error("Response is not a Blob.");return Ne.body}));case"text":return M.pipe((0,T.U)(Ne=>{if(null!==Ne.body&&"string"!=typeof Ne.body)throw new Error("Response is not a string.");return Ne.body}));default:return M.pipe((0,T.U)(Ne=>Ne.body))}case"response":return M;default:throw new Error(`Unreachable: unhandled observe type ${a.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new fe).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,a={}){return this.request("PATCH",t,ze(a,i))}post(t,i,a={}){return this.request("POST",t,ze(a,i))}put(t,i,a={}){return this.request("PUT",t,ze(a,i))}}return o.\u0275fac=function(t){return new(t||o)(d.LFG(v))},o.\u0275prov=d.Yz7({token:o,factory:o.\u0275fac}),o})();class De{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const j=new d.OlP("HTTP_INTERCEPTORS");let P=(()=>{class o{intercept(t,i){return i.handle(t)}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=d.Yz7({token:o,factory:o.\u0275fac}),o})();const st=/^\)\]\}',?\n/;let ve=(()=>{class o{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(i=>{const a=this.xhrFactory.build();if(a.open(t.method,t.urlWithParams),t.withCredentials&&(a.withCredentials=!0),t.headers.forEach((gt,Ge)=>a.setRequestHeader(gt,Ge.join(","))),t.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const gt=t.detectContentTypeHeader();null!==gt&&a.setRequestHeader("Content-Type",gt)}if(t.responseType){const gt=t.responseType.toLowerCase();a.responseType="json"!==gt?gt:"text"}const c=t.serializeBody();let p=null;const M=()=>{if(null!==p)return p;const gt=a.statusText||"OK",Ge=new U(a.getAllResponseHeaders()),Ie=function Z(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}(a)||t.url;return p=new Me({headers:Ge,status:a.status,statusText:gt,url:Ie}),p},Ne=()=>{let{headers:gt,status:Ge,statusText:Ie,url:Xe}=M(),Ke=null;204!==Ge&&(Ke=typeof a.response>"u"?a.responseText:a.response),0===Ge&&(Ge=Ke?200:0);let ke=Ge>=200&&Ge<300;if("json"===t.responseType&&"string"==typeof Ke){const Ae=Ke;Ke=Ke.replace(st,"");try{Ke=""!==Ke?JSON.parse(Ke):null}catch(Ee){Ke=Ae,ke&&(ke=!1,Ke={error:Ee,text:Ke})}}ke?(i.next(new Ze({body:Ke,headers:gt,status:Ge,statusText:Ie,url:Xe||void 0})),i.complete()):i.error(new se({error:Ke,headers:gt,status:Ge,statusText:Ie,url:Xe||void 0}))},Pt=gt=>{const{url:Ge}=M(),Ie=new se({error:gt,status:a.status||0,statusText:a.statusText||"Unknown Error",url:Ge||void 0});i.error(Ie)};let Ut=!1;const ln=gt=>{Ut||(i.next(M()),Ut=!0);let Ge={type:ye.DownloadProgress,loaded:gt.loaded};gt.lengthComputable&&(Ge.total=gt.total),"text"===t.responseType&&!!a.responseText&&(Ge.partialText=a.responseText),i.next(Ge)},xt=gt=>{let Ge={type:ye.UploadProgress,loaded:gt.loaded};gt.lengthComputable&&(Ge.total=gt.total),i.next(Ge)};return a.addEventListener("load",Ne),a.addEventListener("error",Pt),a.addEventListener("timeout",Pt),a.addEventListener("abort",Pt),t.reportProgress&&(a.addEventListener("progress",ln),null!==c&&a.upload&&a.upload.addEventListener("progress",xt)),a.send(c),i.next({type:ye.Sent}),()=>{a.removeEventListener("error",Pt),a.removeEventListener("abort",Pt),a.removeEventListener("load",Ne),a.removeEventListener("timeout",Pt),t.reportProgress&&(a.removeEventListener("progress",ln),null!==c&&a.upload&&a.upload.removeEventListener("progress",xt)),a.readyState!==a.DONE&&a.abort()}})}}return o.\u0275fac=function(t){return new(t||o)(d.LFG(e.JF))},o.\u0275prov=d.Yz7({token:o,factory:o.\u0275fac}),o})();const oe=new d.OlP("XSRF_COOKIE_NAME"),ge=new d.OlP("XSRF_HEADER_NAME");class ae{}let Oe=(()=>{class o{constructor(t,i,a){this.doc=t,this.platform=i,this.cookieName=a,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return o.\u0275fac=function(t){return new(t||o)(d.LFG(e.K0),d.LFG(d.Lbi),d.LFG(oe))},o.\u0275prov=d.Yz7({token:o,factory:o.\u0275fac}),o})(),Q=(()=>{class o{constructor(t,i){this.tokenService=t,this.headerName=i}intercept(t,i){const a=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||a.startsWith("http://")||a.startsWith("https://"))return i.handle(t);const c=this.tokenService.getToken();return null!==c&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,c)})),i.handle(t)}}return o.\u0275fac=function(t){return new(t||o)(d.LFG(ae),d.LFG(ge))},o.\u0275prov=d.Yz7({token:o,factory:o.\u0275fac}),o})(),me=(()=>{class o{constructor(t,i){this.backend=t,this.injector=i,this.chain=null}handle(t){if(null===this.chain){const i=this.injector.get(j,[]);this.chain=i.reduceRight((a,c)=>new De(a,c),this.backend)}return this.chain.handle(t)}}return o.\u0275fac=function(t){return new(t||o)(d.LFG(R),d.LFG(d.zs3))},o.\u0275prov=d.Yz7({token:o,factory:o.\u0275fac}),o})(),r=(()=>{class o{static disable(){return{ngModule:o,providers:[{provide:Q,useClass:P}]}}static withOptions(t={}){return{ngModule:o,providers:[t.cookieName?{provide:oe,useValue:t.cookieName}:[],t.headerName?{provide:ge,useValue:t.headerName}:[]]}}}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=d.oAB({type:o}),o.\u0275inj=d.cJS({providers:[Q,{provide:j,useExisting:Q,multi:!0},{provide:ae,useClass:Oe},{provide:oe,useValue:"XSRF-TOKEN"},{provide:ge,useValue:"X-XSRF-TOKEN"}]}),o})(),s=(()=>{class o{}return o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=d.oAB({type:o}),o.\u0275inj=d.cJS({providers:[he,{provide:v,useClass:me},ve,{provide:R,useExisting:ve}],imports:[r.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),o})()},94650:(Je,pe,h)=>{"use strict";h.d(pe,{$8M:()=>Fo,$Z:()=>Fp,AFp:()=>qg,ALo:()=>fg,AaK:()=>v,AsE:()=>Vu,B6R:()=>Xe,BQk:()=>Pc,CHM:()=>Fi,CRH:()=>Mg,CZH:()=>Gc,CqO:()=>Of,D6c:()=>jT,DdM:()=>og,Dn7:()=>_g,EJc:()=>iT,EiD:()=>Cr,EpF:()=>If,F$t:()=>kf,F4k:()=>Rf,FYo:()=>Gh,FiY:()=>Ba,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Du,Gpc:()=>_,Gre:()=>hm,HOy:()=>Uu,Hsn:()=>Vf,Ikx:()=>Gu,JOm:()=>vo,JVY:()=>pd,Jf7:()=>tp,KtG:()=>Hi,L6k:()=>fd,LAX:()=>gd,LFG:()=>Pi,LSH:()=>bo,Lbi:()=>XE,Lck:()=>Kv,MAs:()=>Pf,MGl:()=>Ic,MMx:()=>Xu,NdJ:()=>Iu,O4$:()=>po,OlP:()=>ti,Oqu:()=>ku,PXZ:()=>AT,Q2q:()=>wu,Q6J:()=>Mu,QGY:()=>Pu,QP$:()=>Js,QbO:()=>eT,Qsj:()=>U_,R0b:()=>kr,RDi:()=>od,Rgc:()=>Vl,SBq:()=>El,Sil:()=>oT,Suo:()=>wg,TTD:()=>gr,TgZ:()=>xc,Tol:()=>em,Udp:()=>Lu,VKq:()=>ag,W1O:()=>Pg,WFA:()=>Ru,WLB:()=>sg,XFs:()=>Q,Xpm:()=>Ie,Xts:()=>mi,Y36:()=>Ps,YKP:()=>Qm,YNc:()=>Df,Yjl:()=>ot,Yz7:()=>He,ZZ4:()=>Th,_Bn:()=>qm,_UZ:()=>Su,_Vd:()=>vl,_c5:()=>FT,_uU:()=>sm,aQg:()=>yh,c2e:()=>tT,cJS:()=>et,cg1:()=>zu,d8E:()=>Zu,dDg:()=>fT,dqk:()=>i,eBb:()=>md,eFA:()=>c_,ekj:()=>Bu,eoX:()=>a_,evT:()=>np,f3M:()=>Ql,g9A:()=>Kg,h0i:()=>Ws,hGG:()=>UT,hYB:()=>Hu,hij:()=>Oc,iGM:()=>Tg,ifc:()=>t,ip1:()=>$g,kEZ:()=>lg,kL8:()=>Em,kcU:()=>rs,lG2:()=>tt,lcZ:()=>mg,lnq:()=>Fu,lqb:()=>Wa,lri:()=>r_,mCW:()=>S,n5z:()=>Ra,n_E:()=>kc,oAB:()=>Ae,oJD:()=>Aa,oxw:()=>Nf,pB0:()=>_d,q3G:()=>fi,qLn:()=>Tl,qOj:()=>vu,qZA:()=>Sc,qzn:()=>ga,rWj:()=>o_,s9C:()=>Ou,sBO:()=>wT,sIi:()=>Pl,s_b:()=>Fc,soG:()=>Zc,tb:()=>Xg,tp0:()=>Na,uIk:()=>yu,vHH:()=>ne,vpe:()=>Mo,wAp:()=>Pn,xDo:()=>ju,xi3:()=>gg,xp6:()=>xp,ynx:()=>Dc,z2F:()=>zc,z3N:()=>eo,zSh:()=>Ed,zs3:()=>Ja});var e=h(77579),d=h(50727),A=h(69751),w=h(56451),g=h(13099);function C(u){for(let f in u)if(u[f]===C)return f;throw Error("Could not find renamed property on target object.")}function T(u,f){for(const b in f)f.hasOwnProperty(b)&&!u.hasOwnProperty(b)&&(u[b]=f[b])}function v(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(v).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const b=f.indexOf("\n");return-1===b?f:f.substring(0,b)}function R(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const U=C({__forward_ref__:C});function _(u){return u.__forward_ref__=_,u.toString=function(){return v(this())},u}function V(u){return Y(u)?u():u}function Y(u){return"function"==typeof u&&u.hasOwnProperty(U)&&u.__forward_ref__===_}class ne extends Error{constructor(f,b){super(function le(u,f){return`NG0${Math.abs(u)}${f?": "+f.trim():""}`}(f,b)),this.code=f}}function te(u){return"string"==typeof u?u:null==u?"":String(u)}function O(u,f){throw new ne(-201,!1)}function P(u,f){null==u&&function G(u,f,b,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${b} ${y} ${f} <=Actual]`))}(f,u,null,"!=")}function He(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function et(u){return{providers:u.providers||[],imports:u.imports||[]}}function _t(u){return Qe(u,oe)||Qe(u,ae)}function Qe(u,f){return u.hasOwnProperty(f)?u[f]:null}function ve(u){return u&&(u.hasOwnProperty(ge)||u.hasOwnProperty(Oe))?u[ge]:null}const oe=C({\u0275prov:C}),ge=C({\u0275inj:C}),ae=C({ngInjectableDef:C}),Oe=C({ngInjectorDef:C});var Q=(()=>((Q=Q||{})[Q.Default=0]="Default",Q[Q.Host=1]="Host",Q[Q.Self=2]="Self",Q[Q.SkipSelf=4]="SkipSelf",Q[Q.Optional=8]="Optional",Q))();let me;function L(u){const f=me;return me=u,f}function r(u,f,b){const y=_t(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:b&Q.Optional?null:void 0!==f?f:void O(v(u))}function m(u){return{toString:u}.toString()}var l=(()=>((l=l||{})[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l))(),t=(()=>{return(u=t||(t={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",t;var u})();const i=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),p={},M=[],Ne=C({\u0275cmp:C}),Pt=C({\u0275dir:C}),Ut=C({\u0275pipe:C}),ln=C({\u0275mod:C}),xt=C({\u0275fac:C}),gt=C({__NG_ELEMENT_ID__:C});let Ge=0;function Ie(u){return m(()=>{const b=!0===u.standalone,y={},x={type:u.type,providersResolver:null,decls:u.decls,vars:u.vars,factory:null,template:u.template||null,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,standalone:b,dependencies:b&&u.dependencies||null,getStandaloneInjector:null,selectors:u.selectors||M,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c"+Ge++,styles:u.styles||M,_:null,setInput:null,schemas:u.schemas||null,tView:null},D=u.dependencies,B=u.features;return x.inputs=We(u.inputs,y),x.outputs=We(u.outputs),B&&B.forEach(re=>re(x)),x.directiveDefs=D?()=>("function"==typeof D?D():D).map(Ke).filter(ke):null,x.pipeDefs=D?()=>("function"==typeof D?D():D).map(It).filter(ke):null,x})}function Xe(u,f,b){const y=u.\u0275cmp;y.directiveDefs=()=>("function"==typeof f?f():f).map(Ke),y.pipeDefs=()=>("function"==typeof b?b():b).map(It)}function Ke(u){return Re(u)||lt(u)}function ke(u){return null!==u}function Ae(u){return m(()=>({type:u.type,bootstrap:u.bootstrap||M,declarations:u.declarations||M,imports:u.imports||M,exports:u.exports||M,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function We(u,f){if(null==u)return p;const b={};for(const y in u)if(u.hasOwnProperty(y)){let x=u[y],D=x;Array.isArray(x)&&(D=x[1],x=x[0]),b[x]=y,f&&(f[x]=D)}return b}const tt=Ie;function ot(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function Re(u){return u[Ne]||null}function lt(u){return u[Pt]||null}function It(u){return u[Ut]||null}function jt(u,f){const b=u[ln]||null;if(!b&&!0===f)throw new Error(`Type ${v(u)} does not have '\u0275mod' property.`);return b}const z=18;function jn(u){return Array.isArray(u)&&"object"==typeof u[1]}function zn(u){return Array.isArray(u)&&!0===u[1]}function ki(u){return 0!=(8&u.flags)}function Vi(u){return 2==(2&u.flags)}function Oi(u){return 1==(1&u.flags)}function _i(u){return null!==u.template}function gi(u){return 0!=(256&u[2])}function Si(u,f){return u.hasOwnProperty(xt)?u[xt]:null}class Tr{constructor(f,b,y){this.previousValue=f,this.currentValue=b,this.firstChange=y}isFirstChange(){return this.firstChange}}function gr(){return or}function or(u){return u.type.prototype.ngOnChanges&&(u.setInput=sr),ar}function ar(){const u=Ar(this),f=u?.current;if(f){const b=u.previous;if(b===p)u.previous=f;else for(let y in f)b[y]=f[y];u.current=null,this.ngOnChanges(f)}}function sr(u,f,b,y){const x=Ar(u)||function lr(u,f){return u[_r]=f}(u,{previous:p,current:null}),D=x.current||(x.current={}),B=x.previous,re=this.declaredInputs[b],Ce=B[re];D[re]=new Tr(Ce&&Ce.currentValue,f,B===p),u[y]=f}gr.ngInherit=!0;const _r="__ngSimpleChanges__";function Ar(u){return u[_r]||null}function Yn(u){for(;Array.isArray(u);)u=u[0];return u}function yr(u,f){return Yn(f[u])}function wi(u,f){return Yn(f[u.index])}function lo(u,f){return u.data[f]}function er(u,f){return u[f]}function Ai(u,f){const b=f[u];return jn(b)?b:b[0]}function Ve(u){return 4==(4&u[2])}function ht(u){return 64==(64&u[2])}function ft(u,f){return null==f?null:u[f]}function Bt(u){u[z]=0}function $t(u,f){u[5]+=f;let b=u,y=u[3];for(;null!==y&&(1===f&&1===b[5]||-1===f&&0===b[5]);)y[5]+=f,b=y,y=y[3]}const Wt={lFrame:ia(null),bindingsEnabled:!0};function Ci(){return Wt.bindingsEnabled}function nn(){return Wt.lFrame.lView}function Rn(){return Wt.lFrame.tView}function Fi(u){return Wt.lFrame.contextLView=u,u[8]}function Hi(u){return Wt.lFrame.contextLView=null,u}function hi(){let u=wr();for(;null!==u&&64===u.type;)u=u.parent;return u}function wr(){return Wt.lFrame.currentTNode}function Ue(u,f){const b=Wt.lFrame;b.currentTNode=u,b.isParent=f}function Se(){return Wt.lFrame.isParent}function be(){Wt.lFrame.isParent=!1}function Qn(){const u=Wt.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function Li(){return Wt.lFrame.bindingIndex}function co(){return Wt.lFrame.bindingIndex++}function Or(u){const f=Wt.lFrame,b=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,b}function Qs(u,f){const b=Wt.lFrame;b.bindingIndex=b.bindingRootIndex=u,Ta(f)}function Ta(u){Wt.lFrame.currentDirectiveIndex=u}function $r(u){const f=Wt.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function na(){return Wt.lFrame.currentQueryIndex}function Gr(u){Wt.lFrame.currentQueryIndex=u}function ts(u){const f=u[1];return 2===f.type?f.declTNode:1===f.type?u[6]:null}function xo(u,f,b){if(b&Q.SkipSelf){let x=f,D=u;for(;!(x=x.parent,null!==x||b&Q.Host||(x=ts(D),null===x||(D=D[15],10&x.type))););if(null===x)return!1;f=x,u=D}const y=Wt.lFrame=Ks();return y.currentTNode=f,y.lView=u,!0}function uo(u){const f=Ks(),b=u[1];Wt.lFrame=f,f.currentTNode=b.firstChild,f.lView=u,f.tView=b,f.contextLView=u,f.bindingIndex=b.bindingStartIndex,f.inI18n=!1}function Ks(){const u=Wt.lFrame,f=null===u?null:u.child;return null===f?ia(u):f}function ia(u){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function Xs(){const u=Wt.lFrame;return Wt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const ns=Xs;function ho(){const u=Xs();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function Mi(){return Wt.lFrame.selectedIndex}function xr(u){Wt.lFrame.selectedIndex=u}function pi(){const u=Wt.lFrame;return lo(u.tView,u.selectedIndex)}function po(){Wt.lFrame.currentNamespace="svg"}function rs(){!function el(){Wt.lFrame.currentNamespace=null}()}function oa(u,f){for(let b=f.directiveStart,y=f.directiveEnd;b=y)break}else f[Ce]<0&&(u[z]+=65536),(re>11>16&&(3&u[2])===f){u[2]+=2048;try{D.call(re)}finally{}}}else try{D.call(re)}finally{}}class Do{constructor(f,b,y){this.factory=f,this.resolving=!1,this.canSeeViewProviders=b,this.injectImpl=y}}function la(u,f,b){let y=0;for(;yf){B=D-1;break}}}for(;D>16}(u),y=f;for(;b>0;)y=y[15],b--;return y}let ji=!0;function Sr(u){const f=ji;return ji=u,f}let al=0;const tr={};function Kr(u,f){const b=Ho(u,f);if(-1!==b)return b;const y=f[1];y.firstCreatePass&&(u.injectorIndex=f.length,Oo(y.data,u),Oo(f,null),Oo(y.blueprint,null));const x=da(u,f),D=u.injectorIndex;if(ss(x)){const B=Qr(x),re=Hr(x,f),Ce=re[1].data;for(let Ye=0;Ye<8;Ye++)f[D+Ye]=re[B+Ye]|Ce[B+Ye]}return f[D+8]=x,D}function Oo(u,f){u.push(0,0,0,0,0,0,0,0,f)}function Ho(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function da(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let b=0,y=null,x=f;for(;null!==x;){if(y=Vo(x),null===y)return-1;if(b++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|b<<16}return-1}function zr(u,f,b){!function Ro(u,f,b){let y;"string"==typeof b?y=b.charCodeAt(0)||0:b.hasOwnProperty(gt)&&(y=b[gt]),null==y&&(y=b[gt]=al++);const x=255&y;f.data[u+(x>>5)]|=1<=0?255&f:ll:f}(b);if("function"==typeof D){if(!xo(f,u,y))return y&Q.Host?cs(x,0,y):ds(f,b,y,x);try{const B=D(y);if(null!=B||y&Q.Optional)return B;O()}finally{ns()}}else if("number"==typeof D){let B=null,re=Ho(u,f),Ce=-1,Ye=y&Q.Host?f[16][6]:null;for((-1===re||y&Q.SkipSelf)&&(Ce=-1===re?da(u,f):f[re+8],-1!==Ce&&ko(y,!1)?(B=f[1],re=Qr(Ce),f=Hr(Ce,f)):re=-1);-1!==re;){const ct=f[1];if(No(D,re,ct.data)){const Et=Lo(re,f,b,B,y,Ye);if(Et!==tr)return Et}Ce=f[re+8],-1!==Ce&&ko(y,f[1].data[re+8]===Ye)&&No(D,re,f)?(B=ct,re=Qr(Ce),f=Hr(Ce,f)):re=-1}}return x}function Lo(u,f,b,y,x,D){const B=f[1],re=B.data[u+8],ct=Ei(re,B,b,null==y?Vi(re)&&ji:y!=B&&0!=(3&re.type),x&Q.Host&&D===re);return null!==ct?Bo(f,B,ct,re):tr}function Ei(u,f,b,y,x){const D=u.providerIndexes,B=f.data,re=1048575&D,Ce=u.directiveStart,ct=D>>20,Vt=x?re+ct:u.directiveEnd;for(let zt=y?re:re+ct;zt=Ce&&tn.type===b)return zt}if(x){const zt=B[Ce];if(zt&&_i(zt)&&zt.type===b)return Ce}return null}function Bo(u,f,b,y){let x=u[b];const D=f.data;if(function il(u){return u instanceof Do}(x)){const B=x;B.resolving&&function ue(u,f){const b=f?`. Dependency path: ${f.join(" > ")} > ${u}`:"";throw new ne(-200,`Circular dependency in DI detected for ${u}${b}`)}(function fe(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():te(u)}(D[b]));const re=Sr(B.canSeeViewProviders);B.resolving=!0;const Ce=B.injectImpl?L(B.injectImpl):null;xo(u,y,Q.Default);try{x=u[b]=B.factory(void 0,D,u,y),f.firstCreatePass&&b>=y.directiveStart&&function os(u,f,b){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:D}=f.type.prototype;if(y){const B=or(f);(b.preOrderHooks||(b.preOrderHooks=[])).push(u,B),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(u,B)}x&&(b.preOrderHooks||(b.preOrderHooks=[])).push(0-u,x),D&&((b.preOrderHooks||(b.preOrderHooks=[])).push(u,D),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(u,D))}(b,D[b],f)}finally{null!==Ce&&L(Ce),Sr(re),B.resolving=!1,ns()}}return x}function No(u,f,b){return!!(b[f+(u>>5)]&1<{const f=u.prototype.constructor,b=f[xt]||hs(f),y=Object.prototype;let x=Object.getPrototypeOf(u.prototype).constructor;for(;x&&x!==y;){const D=x[xt]||hs(x);if(D&&D!==b)return D;x=Object.getPrototypeOf(x)}return D=>new D})}function hs(u){return Y(u)?()=>{const f=hs(V(u));return f&&f()}:Si(u)}function Vo(u){const f=u[1],b=f.type;return 2===b?f.declTNode:1===b?u[6]:null}function Fo(u){return function sl(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const b=u.attrs;if(b){const y=b.length;let x=0;for(;x{const y=function ha(u){return function(...b){if(u){const y=u(...b);for(const x in y)this[x]=y[x]}}}(f);function x(...D){if(this instanceof x)return y.apply(this,D),this;const B=new x(...D);return re.annotation=B,re;function re(Ce,Ye,ct){const Et=Ce.hasOwnProperty(cr)?Ce[cr]:Object.defineProperty(Ce,cr,{value:[]})[cr];for(;Et.length<=ct;)Et.push(null);return(Et[ct]=Et[ct]||[]).push(B),Ce}}return b&&(x.prototype=Object.create(b.prototype)),x.prototype.ngMetadataName=u,x.annotationCls=x,x})}class ti{constructor(f,b){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=He({token:this,providedIn:b.providedIn||"root",factory:b.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function dr(u,f){void 0===f&&(f=u);for(let b=0;bArray.isArray(b)?ee(b,f):f(b))}function ie(u,f,b){f>=u.length?u.push(b):u.splice(f,0,b)}function F(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function _e(u,f){const b=[];for(let y=0;y=0?u[1|y]=b:(y=~y,function Tt(u,f,b,y){let x=u.length;if(x==f)u.push(b,y);else if(1===x)u.push(y,u[0]),u[0]=b;else{for(x--,u.push(u[x-1],u[x]);x>f;)u[x]=u[x-2],x--;u[f]=b,u[f+1]=y}}(u,y,f,b)),y}function gn(u,f){const b=Mn(u,f);if(b>=0)return u[1|b]}function Mn(u,f){return function oi(u,f,b){let y=0,x=u.length>>b;for(;x!==y;){const D=y+(x-y>>1),B=u[D<f?x=D:y=D+1}return~(x<u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Va}())||void 0===f?void 0:f.createHTML(u))||u}function Al(u){var f;return(null===(f=function Ua(){if(void 0===Fa&&(Fa=null,i.trustedTypes))try{Fa=i.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Fa}())||void 0===f?void 0:f.createHTML(u))||u}class Yo{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ld extends Yo{getTypeName(){return"HTML"}}class cd extends Yo{getTypeName(){return"Style"}}class dd extends Yo{getTypeName(){return"Script"}}class ud extends Yo{getTypeName(){return"URL"}}class ys extends Yo{getTypeName(){return"ResourceURL"}}function eo(u){return u instanceof Yo?u.changingThisBreaksApplicationSecurity:u}function ga(u,f){const b=function hd(u){return u instanceof Yo&&u.getTypeName()||null}(u);if(null!=b&&b!==f){if("ResourceURL"===b&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${b} (see https://g.co/ng/security#xss)`)}return b===f}function pd(u){return new ld(u)}function fd(u){return new cd(u)}function md(u){return new dd(u)}function gd(u){return new ud(u)}function _d(u){return new ys(u)}class Ad{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const b=(new window.DOMParser).parseFromString(ma(f),"text/html").body;return null===b?this.inertDocumentHelper.getInertBodyElement(f):(b.removeChild(b.firstChild),b)}catch{return null}}}class Cd{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const b=this.inertDocument.createElement("html");this.inertDocument.appendChild(b);const y=this.inertDocument.createElement("body");b.appendChild(y)}}getInertBodyElement(f){const b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=ma(f),b;const y=this.inertDocument.createElement("body");return y.innerHTML=ma(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(f){const b=f.attributes;for(let x=b.length-1;0S(f.trim())).join(", ")),this.buf.push(" ",B,'="',to(Ce),'"')}var u;return this.buf.push(">"),!0}endElement(f){const b=f.nodeName.toLowerCase();Ln.hasOwnProperty(b)&&!Dt.hasOwnProperty(b)&&(this.buf.push(""))}chars(f){this.buf.push(to(f))}checkClobberedElement(f,b){if(b&&(f.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return b}}const Ni=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jo=/([^\#-~ |!])/g;function to(u){return u.replace(/&/g,"&").replace(Ni,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(Jo,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let Zi;function Cr(u,f){let b=null;try{Zi=Zi||function cc(u){const f=new Cd(u);return function bd(){try{return!!(new window.DOMParser).parseFromString(ma(""),"text/html")}catch{return!1}}()?new Ad(f):f}(u);let y=f?String(f):"";b=Zi.getInertBodyElement(y);let x=5,D=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=D,D=b.innerHTML,b=Zi.getInertBodyElement(y)}while(y!==D);return ma((new nr).sanitizeChildren(_a(b)||b))}finally{if(b){const y=_a(b)||b;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function _a(u){return"content"in u&&function Br(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var fi=(()=>((fi=fi||{})[fi.NONE=0]="NONE",fi[fi.HTML=1]="HTML",fi[fi.STYLE=2]="STYLE",fi[fi.SCRIPT=3]="SCRIPT",fi[fi.URL=4]="URL",fi[fi.RESOURCE_URL=5]="RESOURCE_URL",fi))();function Aa(u){const f=Pr();return f?Al(f.sanitize(fi.HTML,u)||""):ga(u,"HTML")?Al(eo(u)):Cr(function _l(){return void 0!==gl?gl:typeof document<"u"?document:void 0}(),te(u))}function bo(u){const f=Pr();return f?f.sanitize(fi.URL,u)||"":ga(u,"URL")?eo(u):S(te(u))}function Pr(){const u=nn();return u&&u[12]}const mi=new ti("ENVIRONMENT_INITIALIZER"),bl=new ti("INJECTOR",-1),dc=new ti("INJECTOR_DEF_TYPES");class zi{get(f,b=Oa){if(b===Oa){const y=new Error(`NullInjectorError: No provider for ${v(f)}!`);throw y.name="NullInjectorError",y}return b}}function $o(...u){return{\u0275providers:br(0,u)}}function br(u,...f){const b=[],y=new Set;let x;return ee(f,D=>{const B=D;Za(B,b,[],y)&&(x||(x=[]),x.push(B))}),void 0!==x&&Ga(x,b),b}function Ga(u,f){for(let b=0;b{f.push(D)})}}function Za(u,f,b,y){if(!(u=V(u)))return!1;let x=null,D=ve(u);const B=!D&&Re(u);if(D||B){if(B&&!B.standalone)return!1;x=u}else{const Ce=u.ngModule;if(D=ve(Ce),!D)return!1;x=Ce}const re=y.has(x);if(B){if(re)return!1;if(y.add(x),B.dependencies){const Ce="function"==typeof B.dependencies?B.dependencies():B.dependencies;for(const Ye of Ce)Za(Ye,f,b,y)}}else{if(!D)return!1;{if(null!=D.imports&&!re){let Ye;y.add(x);try{ee(D.imports,ct=>{Za(ct,f,b,y)&&(Ye||(Ye=[]),Ye.push(ct))})}finally{}void 0!==Ye&&Ga(Ye,f)}if(!re){const Ye=Si(x)||(()=>new x);f.push({provide:x,useFactory:Ye,deps:M},{provide:dc,useValue:x,multi:!0},{provide:mi,useValue:()=>Pi(x),multi:!0})}const Ce=D.providers;null==Ce||re||ee(Ce,ct=>{f.push(ct)})}}return x!==u&&void 0!==u.providers}const x_=C({provide:String,useValue:C});function vd(u){return null!==u&&"object"==typeof u&&x_ in u}function za(u){return"function"==typeof u}const Ed=new ti("Set Injector scope."),uc={},D_={};let Td;function hc(){return void 0===Td&&(Td=new zi),Td}class Wa{}class Vh extends Wa{constructor(f,b,y,x){super(),this.parent=b,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wd(f,B=>this.processProvider(B)),this.records.set(bl,ws(void 0,this)),x.has("environment")&&this.records.set(Wa,ws(void 0,this));const D=this.records.get(Ed);null!=D&&"string"==typeof D.value&&this.scopes.add(D.value),this.injectorDefTypes=new Set(this.get(dc.multi,M,Q.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const b=La(this),y=L(void 0);try{return f()}finally{La(b),L(y)}}get(f,b=Oa,y=Q.Default){this.assertNotDestroyed();const x=La(this),D=L(void 0);try{if(!(y&Q.SkipSelf)){let re=this.records.get(f);if(void 0===re){const Ce=function H_(u){return"function"==typeof u||"object"==typeof u&&u instanceof ti}(f)&&_t(f);re=Ce&&this.injectableDefInScope(Ce)?ws(yd(f),uc):null,this.records.set(f,re)}if(null!=re)return this.hydrate(f,re)}return(y&Q.Self?hc():this.parent).get(f,b=y&Q.Optional&&b===Oa?null:b)}catch(B){if("NullInjectorError"===B.name){if((B[gs]=B[gs]||[]).unshift(v(f)),x)throw B;return function Kl(u,f,b,y){const x=u[gs];throw f[$l]&&x.unshift(f[$l]),u.message=function ml(u,f,b,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let x=v(f);if(Array.isArray(f))x=f.map(v).join(" -> ");else if("object"==typeof f){let D=[];for(let B in f)if(f.hasOwnProperty(B)){let re=f[B];D.push(B+":"+("string"==typeof re?JSON.stringify(re):v(re)))}x=`{${D.join(", ")}}`}return`${b}${y?"("+y+")":""}[${x}]: ${u.replace($c,"\n ")}`}("\n"+u.message,x,b,y),u.ngTokenPath=x,u[gs]=null,u}(B,f,"R3InjectorError",this.source)}throw B}finally{L(D),La(x)}}resolveInjectorInitializers(){const f=La(this),b=L(void 0);try{const y=this.get(mi.multi,M,Q.Self);for(const x of y)x()}finally{La(f),L(b)}}toString(){const f=[],b=this.records;for(const y of b.keys())f.push(v(y));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processProvider(f){let b=za(f=V(f))?f:V(f&&f.provide);const y=function I_(u){return vd(u)?ws(void 0,u.useValue):ws(Fh(u),uc)}(f);if(za(f)||!0!==f.multi)this.records.get(b);else{let x=this.records.get(b);x||(x=ws(void 0,uc,!0),x.factory=()=>Ri(x.multi),this.records.set(b,x)),b=f,x.multi.push(f)}this.records.set(b,y)}hydrate(f,b){return b.value===uc&&(b.value=D_,b.value=b.factory()),"object"==typeof b.value&&b.value&&function O_(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(b.value)&&this._ngOnDestroyHooks.add(b.value),b.value}injectableDefInScope(f){if(!f.providedIn)return!1;const b=V(f.providedIn);return"string"==typeof b?"any"===b||this.scopes.has(b):this.injectorDefTypes.has(b)}}function yd(u){const f=_t(u),b=null!==f?f.factory:Si(u);if(null!==b)return b;if(u instanceof ti)throw new ne(204,!1);if(u instanceof Function)return function P_(u){const f=u.length;if(f>0)throw _e(f,"?"),new ne(204,!1);const b=function st(u){const f=u&&(u[oe]||u[ae]);if(f){const b=function Z(u){if(u.hasOwnProperty("name"))return u.name;const f=(""+u).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${b}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${b}" class.`),f}return null}(u);return null!==b?()=>b.factory(u):()=>new u}(u);throw new ne(204,!1)}function Fh(u,f,b){let y;if(za(u)){const x=V(u);return Si(x)||yd(x)}if(vd(u))y=()=>V(u.useValue);else if(function kh(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Ri(u.deps||[]));else if(function Nh(u){return!(!u||!u.useExisting)}(u))y=()=>Pi(V(u.useExisting));else{const x=V(u&&(u.useClass||u.provide));if(!function R_(u){return!!u.deps}(u))return Si(x)||yd(x);y=()=>new x(...Ri(u.deps))}return y}function ws(u,f,b=!1){return{factory:u,value:f,multi:b?[]:void 0}}function L_(u){return!!u.\u0275providers}function wd(u,f){for(const b of u)Array.isArray(b)?wd(b,f):L_(b)?wd(b.\u0275providers,f):f(b)}class Uh{}class k_{resolveComponentFactory(f){throw function N_(u){const f=Error(`No component factory found for ${v(u)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=u,f}(f)}}let vl=(()=>{class u{}return u.NULL=new k_,u})();function V_(){return Ms(hi(),nn())}function Ms(u,f){return new El(wi(u,f))}let El=(()=>{class u{constructor(b){this.nativeElement=b}}return u.__NG_ELEMENT_ID__=V_,u})();function F_(u){return u instanceof El?u.nativeElement:u}class Gh{}let U_=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function j_(){const u=nn(),b=Ai(hi().index,u);return(jn(b)?b:u)[11]}(),u})(),G_=(()=>{class u{}return u.\u0275prov=He({token:u,providedIn:"root",factory:()=>null}),u})();class Zh{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const Z_=new Zh("14.1.2"),Md={};function Id(u){return u.ngOriginalError}class Tl{constructor(){this._console=console}handleError(f){const b=this._findOriginalError(f);this._console.error("ERROR",f),b&&this._console.error("ORIGINAL ERROR",b)}_findOriginalError(f){let b=f&&Id(f);for(;b&&Id(b);)b=Id(b);return b||null}}const Rd=new Map;let nA=0;const Hd="__ngContext__";function hr(u,f){jn(f)?(u[Hd]=f[20],function rA(u){Rd.set(u[20],u)}(f)):u[Hd]=f}function yl(u){const f=u[Hd];return"number"==typeof f?function qh(u){return Rd.get(u)||null}(f):f||null}function Ld(u){const f=yl(u);return f?jn(f)?f:f.lView:null}const pA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(i))();function tp(u){return u.ownerDocument.defaultView}function np(u){return u.ownerDocument}function qo(u){return u instanceof Function?u():u}var vo=(()=>((vo=vo||{})[vo.Important=1]="Important",vo[vo.DashCase=2]="DashCase",vo))();function Nd(u,f){return undefined(u,f)}function wl(u){const f=u[3];return zn(f)?f[3]:f}function kd(u){return ap(u[13])}function Vd(u){return ap(u[4])}function ap(u){for(;null!==u&&!zn(u);)u=u[4];return u}function Ss(u,f,b,y,x){if(null!=y){let D,B=!1;zn(y)?D=y:jn(y)&&(B=!0,y=y[0]);const re=Yn(y);0===u&&null!==b?null==x?hp(f,b,re):Ya(f,b,re,x||null,!0):1===u&&null!==b?Ya(f,b,re,x||null,!0):2===u?function Cp(u,f,b){const y=pc(u,f);y&&function DA(u,f,b,y){u.removeChild(f,b,y)}(u,y,f,b)}(f,re,B):3===u&&f.destroyNode(re),null!=D&&function RA(u,f,b,y,x){const D=b[7];D!==Yn(b)&&Ss(f,u,y,D,x);for(let re=10;re0&&(u[b-1][4]=y[4]);const D=F(u,10+f);!function vA(u,f){Ml(u,f,f[11],2,null,null),f[0]=null,f[6]=null}(y[1],y);const B=D[19];null!==B&&B.detachView(D[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function cp(u,f){if(!(128&f[2])){const b=f[11];b.destroyNode&&Ml(u,f,b,3,null,null),function yA(u){let f=u[13];if(!f)return Gd(u[1],u);for(;f;){let b=null;if(jn(f))b=f[13];else{const y=f[10];y&&(b=y)}if(!b){for(;f&&!f[4]&&f!==u;)jn(f)&&Gd(f[1],f),f=f[3];null===f&&(f=u),jn(f)&&Gd(f[1],f),b=f&&f[4]}f=b}}(f)}}function Gd(u,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function SA(u,f){let b;if(null!=u&&null!=(b=u.destroyHooks))for(let y=0;y=0?y[x=Ye]():y[x=-Ye].unsubscribe(),D+=2}else{const B=y[x=b[D+1]];b[D].call(B)}if(null!==y){for(let D=x+1;DD?"":x[Et+1].toLowerCase();const zt=8&y?Vt:null;if(zt&&-1!==Ep(zt,Ye,0)||2&y&&Ye!==Vt){if(io(y))return!1;B=!0}}}}else{if(!B&&!io(y)&&!io(Ce))return!1;if(B&&io(Ce))continue;B=!1,y=Ce|1&y}}return io(y)||B}function io(u){return 0==(1&u)}function NA(u,f,b,y){if(null===f)return-1;let x=0;if(y||!b){let D=!1;for(;x-1)for(b++;b0?'="'+re+'"':"")+"]"}else 8&y?x+="."+B:4&y&&(x+=" "+B);else""!==x&&!io(B)&&(f+=Mp(D,x),x=""),y=B,D=D||!io(y);b++}return""!==x&&(f+=Mp(D,x)),f}const Vn={};function xp(u){Sp(Rn(),nn(),Mi()+u,!1)}function Sp(u,f,b,y){if(!y)if(3==(3&f[2])){const D=u.preOrderCheckHooks;null!==D&&qr(f,D,b)}else{const D=u.preOrderHooks;null!==D&&So(f,D,0,b)}xr(b)}function Rp(u,f=null,b=null,y){const x=Op(u,f,b,y);return x.resolveInjectorInitializers(),x}function Op(u,f=null,b=null,y,x=new Set){const D=[b||M,$o(u)];return y=y||("object"==typeof u?void 0:v(u)),new Vh(D,f||hc(),y||null,x)}let Ja=(()=>{class u{static create(b,y){if(Array.isArray(b))return Rp({name:""},y,b,"");{var x;const D=null!==(x=b.name)&&void 0!==x?x:"";return Rp({name:D},b.parent,b.providers,D)}}}return u.THROW_IF_NOT_FOUND=Oa,u.NULL=new zi,u.\u0275prov=He({token:u,providedIn:"any",factory:()=>Pi(bl)}),u.__NG_ELEMENT_ID__=-1,u})();function Ps(u,f=Q.Default){const b=nn();return null===b?Pi(u,f):us(hi(),b,V(u),f)}function Fp(){throw new Error("invalid")}function _c(u,f){return u<<17|f<<2}function ro(u){return u>>17&32767}function Kd(u){return 2|u}function Qo(u){return(131068&u)>>2}function Xd(u,f){return-131069&u|f<<2}function eu(u){return 1|u}function Qp(u,f){const b=u.contentQueries;if(null!==b)for(let y=0;y22&&Sp(u,f,22,!1),b(y,x)}finally{xr(D)}}function Xp(u,f,b){if(ki(f)){const x=f.directiveEnd;for(let D=f.directiveStart;D0;){const b=u[--f];if("number"==typeof b&&b<0)return b}return 0})(re)!=Ce&&re.push(Ce),re.push(y,x,B)}}function lf(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function cf(u,f){f.flags|=2,(u.components||(u.components=[])).push(f.index)}function HC(u,f,b){if(b){if(f.exportAs)for(let y=0;y0&&mu(b)}}function mu(u){for(let y=kd(u);null!==y;y=Vd(y))for(let x=10;x0&&mu(D)}const b=u[1].components;if(null!==b)for(let y=0;y0&&mu(x)}}function UC(u,f){const b=Ai(f,u),y=b[1];(function jC(u,f){for(let b=f.length;bPromise.resolve(null))();function mf(u){return u[7]||(u[7]=[])}function gf(u){return u.cleanup||(u.cleanup=[])}function _f(u,f,b){return(null===u||_i(u))&&(b=function ta(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(b[f.index])),b[11]}function Af(u,f){const b=u[9],y=b?b.get(Tl,null):null;y&&y.handleError(f)}function Cu(u,f,b,y,x){for(let D=0;D-1&&(jd(f,y),F(b,y))}this._attachedToViewContainer=!1}cp(this._lView[1],this._lView)}onDestroy(f){tf(this._lView[1],this._lView,null,f)}markForCheck(){gu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _u(u,f,b){const y=f[10];y.begin&&y.begin();try{xl(u,f,u.template,b)}catch(x){throw Af(f,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ne(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function TA(u,f){Ml(u,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ne(902,!1);this._appRef=f}}class zC extends Sl{constructor(f){super(f),this._view=f}detectChanges(){ff(this._view)}checkNoChanges(){}get context(){return null}}class bu extends vl{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const b=Re(f);return new Dl(b,this.ngModule)}}function Cf(u){const f=[];for(let b in u)u.hasOwnProperty(b)&&f.push({propName:u[b],templateName:b});return f}class YC{constructor(f,b){this.injector=f,this.parentInjector=b}get(f,b,y){const x=this.injector.get(f,Md,y);return x!==Md||b===Md?x:this.parentInjector.get(f,b,y)}}class Dl extends Uh{constructor(f,b){super(),this.componentDef=f,this.ngModule=b,this.componentType=f.type,this.selector=function GA(u){return u.map(jA).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!b}get inputs(){return Cf(this.componentDef.inputs)}get outputs(){return Cf(this.componentDef.outputs)}create(f,b,y,x){var D;let B=(x=x||this.ngModule)instanceof Wa?x:null===(D=x)||void 0===D?void 0:D.injector;B&&null!==this.componentDef.getStandaloneInjector&&(B=this.componentDef.getStandaloneInjector(B)||B);const re=B?new YC(f,B):f,Ce=re.get(Gh,null);if(null===Ce)throw new ne(407,!1);const Ye=re.get(G_,null),ct=Ce.createRenderer(null,this.componentDef),Et=this.componentDef.selectors[0][0]||"div",Vt=y?function yC(u,f,b){return u.selectRootElement(f,b===t.ShadowDom)}(ct,y,this.componentDef.encapsulation):Ud(Ce.createRenderer(null,this.componentDef),Et,function WC(u){const f=u.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(Et)),zt=this.componentDef.onPush?288:272,tn=function KC(u,f){return{components:[],scheduler:u||pA,clean:ZC,playerHandler:f||null,flags:0}}(),cn=hu(0,null,null,1,0,null,null,null,null,null),hn=bc(null,cn,tn,zt,null,null,Ce,ct,Ye,re,null);let En,xn;uo(hn);try{const an=function qC(u,f,b,y,x,D){const B=b[1];b[22]=u;const Ce=Is(B,22,2,"#host",null),Ye=Ce.mergedAttrs=f.hostAttrs;null!==Ye&&(Tc(Ce,Ye,!0),null!==u&&(la(x,u,Ye),null!==Ce.classes&&Yd(x,u,Ce.classes),null!==Ce.styles&&vp(x,u,Ce.styles)));const ct=y.createRenderer(u,f),Et=bc(b,ef(f),null,f.onPush?32:16,b[22],Ce,y,ct,D||null,null,null);return B.firstCreatePass&&(zr(Kr(Ce,b),B,f.type),cf(B,Ce),df(Ce,b.length,1)),Ec(b,Et),b[22]=Et}(Vt,this.componentDef,hn,Ce,ct);if(Vt)if(y)la(ct,Vt,["ng-version",Z_.full]);else{const{attrs:In,classes:Fn}=function ZA(u){const f=[],b=[];let y=1,x=2;for(;y0&&Yd(ct,Vt,Fn.join(" "))}if(xn=lo(cn,22),void 0!==b){const In=xn.projection=[];for(let Fn=0;Fn=0;y--){const x=u[y];x.hostVars=f+=x.hostVars,x.hostAttrs=ca(x.hostAttrs,b=ca(b,x.hostAttrs))}}(y)}function Eu(u){return u===p?{}:u===M?[]:u}function tb(u,f){const b=u.viewQuery;u.viewQuery=b?(y,x)=>{f(y,x),b(y,x)}:f}function nb(u,f){const b=u.contentQueries;u.contentQueries=b?(y,x,D)=>{f(y,x,D),b(y,x,D)}:f}function ib(u,f){const b=u.hostBindings;u.hostBindings=b?(y,x)=>{f(y,x),b(y,x)}:f}let wc=null;function $a(){if(!wc){const u=i.Symbol;if(u&&u.iterator)wc=u.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let b=0;bre(Yn(Fn[y.index])):y.index;let In=null;if(!re&&Ce&&(In=function gb(u,f,b,y){const x=u.cleanup;if(null!=x)for(let D=0;DCe?re[Ce]:null}"string"==typeof B&&(D+=2)}return null}(u,f,x,y.index)),null!==In)(In.__ngLastListenerFn__||In).__ngNextListenerFn__=D,In.__ngLastListenerFn__=D,zt=!1;else{D=Bf(y,f,Et,D,!1);const Fn=b.listen(En,x,D);Vt.push(D,Fn),ct&&ct.push(x,an,xn,xn+1)}}else D=Bf(y,f,Et,D,!1);const tn=y.outputs;let cn;if(zt&&null!==tn&&(cn=tn[x])){const hn=cn.length;if(hn)for(let En=0;En0;)f=f[15],u--;return f}(u,Wt.lFrame.contextLView))[8]}(u)}function _b(u,f){let b=null;const y=function kA(u){const f=u.attrs;if(null!=f){const b=f.indexOf(5);if(0==(1&b))return f[b+1]}return null}(u);for(let x=0;x=0}const Wi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jf(u){return u.substring(Wi.key,Wi.keyEnd)}function $f(u,f){const b=Wi.textEnd;return b===f?-1:(f=Wi.keyEnd=function yb(u,f,b){for(;f32;)f++;return f}(u,Wi.key=f,b),js(u,f,b))}function js(u,f,b){for(;f=0;b=$f(f,b))Cn(u,Jf(f),!0)}function oo(u,f,b,y){const x=nn(),D=Rn(),B=Or(2);D.firstUpdatePass&&nm(D,u,B,y),f!==Vn&&pr(x,B,f)&&rm(D,D.data[Mi()],x,x[11],u,x[B+1]=function Hb(u,f){return null==u||("string"==typeof f?u+=f:"object"==typeof u&&(u=v(eo(u)))),u}(f,b),y,B)}function ao(u,f,b,y){const x=Rn(),D=Or(2);x.firstUpdatePass&&nm(x,null,D,y);const B=nn();if(b!==Vn&&pr(B,D,b)){const re=x.data[Mi()];if(am(re,y)&&!tm(x,D)){let Ce=y?re.classesWithoutHost:re.stylesWithoutHost;null!==Ce&&(b=R(Ce,b||"")),xu(x,re,B,b,y)}else!function Ob(u,f,b,y,x,D,B,re){x===Vn&&(x=M);let Ce=0,Ye=0,ct=0=u.expandoStartIndex}function nm(u,f,b,y){const x=u.data;if(null===x[b+1]){const D=x[Mi()],B=tm(u,b);am(D,y)&&null===f&&!B&&(f=!1),f=function Sb(u,f,b,y){const x=$r(u);let D=y?f.residualClasses:f.residualStyles;if(null===x)0===(y?f.classBindings:f.styleBindings)&&(b=Rl(b=Nu(null,u,f,b,y),f.attrs,y),D=null);else{const B=f.directiveStylingLast;if(-1===B||u[B]!==x)if(b=Nu(x,u,f,b,y),null===D){let Ce=function Db(u,f,b){const y=b?f.classBindings:f.styleBindings;if(0!==Qo(y))return u[ro(y)]}(u,f,y);void 0!==Ce&&Array.isArray(Ce)&&(Ce=Nu(null,u,f,Ce[1],y),Ce=Rl(Ce,f.attrs,y),function Pb(u,f,b,y){u[ro(b?f.classBindings:f.styleBindings)]=y}(u,f,y,Ce))}else D=function Ib(u,f,b){let y;const x=f.directiveEnd;for(let D=1+f.directiveStylingLast;D0)&&(Ye=!0)}else ct=b;if(x)if(0!==Ce){const Vt=ro(u[re+1]);u[y+1]=_c(Vt,re),0!==Vt&&(u[Vt+1]=Xd(u[Vt+1],y)),u[re+1]=function cC(u,f){return 131071&u|f<<17}(u[re+1],y)}else u[y+1]=_c(re,0),0!==re&&(u[re+1]=Xd(u[re+1],y)),re=y;else u[y+1]=_c(Ce,0),0===re?re=y:u[Ce+1]=Xd(u[Ce+1],y),Ce=y;Ye&&(u[y+1]=Kd(u[y+1])),Yf(u,ct,y,!0),Yf(u,ct,y,!1),function Cb(u,f,b,y,x){const D=x?u.residualClasses:u.residualStyles;null!=D&&"string"==typeof f&&Mn(D,f)>=0&&(b[y+1]=eu(b[y+1]))}(f,ct,u,y,D),B=_c(re,Ce),D?f.classBindings=B:f.styleBindings=B}(x,D,f,b,B,y)}}function Nu(u,f,b,y,x){let D=null;const B=b.directiveEnd;let re=b.directiveStylingLast;for(-1===re?re=b.directiveStart:re++;re0;){const Ce=u[x],Ye=Array.isArray(Ce),ct=Ye?Ce[1]:Ce,Et=null===ct;let Vt=b[x+1];Vt===Vn&&(Vt=Et?M:void 0);let zt=Et?gn(Vt,y):ct===y?Vt:void 0;if(Ye&&!Rc(zt)&&(zt=gn(Ce,y)),Rc(zt)&&(re=zt,B))return re;const tn=u[x+1];x=B?ro(tn):Qo(tn)}if(null!==f){let Ce=D?f.residualClasses:f.residualStyles;null!=Ce&&(re=gn(Ce,y))}return re}function Rc(u){return void 0!==u}function am(u,f){return 0!=(u.flags&(f?16:32))}function sm(u,f=""){const b=nn(),y=Rn(),x=u+22,D=y.firstCreatePass?Is(y,x,1,f,null):y.data[x],B=b[x]=function Fd(u,f){return u.createText(f)}(b[11],f);fc(y,b,B,D),Ue(D,!1)}function ku(u){return Oc("",u,""),ku}function Oc(u,f,b){const y=nn(),x=Hs(y,u,f,b);return x!==Vn&&Ko(y,Mi(),x),Oc}function Vu(u,f,b,y,x){const D=nn(),B=Ls(D,u,f,b,y,x);return B!==Vn&&Ko(D,Mi(),B),Vu}function Fu(u,f,b,y,x,D,B){const re=nn(),Ce=function Bs(u,f,b,y,x,D,B,re){const Ye=Mc(u,Li(),b,x,B);return Or(3),Ye?f+te(b)+y+te(x)+D+te(B)+re:Vn}(re,u,f,b,y,x,D,B);return Ce!==Vn&&Ko(re,Mi(),Ce),Fu}function Uu(u,f,b,y,x,D,B,re,Ce){const Ye=nn(),ct=function Ns(u,f,b,y,x,D,B,re,Ce,Ye){const Et=Wr(u,Li(),b,x,B,Ce);return Or(4),Et?f+te(b)+y+te(x)+D+te(B)+re+te(Ce)+Ye:Vn}(Ye,u,f,b,y,x,D,B,re,Ce);return ct!==Vn&&Ko(Ye,Mi(),ct),Uu}function ju(u,f,b,y,x,D,B,re,Ce,Ye,ct){const Et=nn(),Vt=function ks(u,f,b,y,x,D,B,re,Ce,Ye,ct,Et){const Vt=Li();let zt=Wr(u,Vt,b,x,B,Ce);return zt=pr(u,Vt+4,ct)||zt,Or(5),zt?f+te(b)+y+te(x)+D+te(B)+re+te(Ce)+Ye+te(ct)+Et:Vn}(Et,u,f,b,y,x,D,B,re,Ce,Ye,ct);return Vt!==Vn&&Ko(Et,Mi(),Vt),ju}function hm(u,f,b){ao(Cn,wo,Hs(nn(),u,f,b),!0)}function Gu(u,f,b){const y=nn();return pr(y,co(),f)&&Nr(Rn(),pi(),y,u,f,y[11],b,!0),Gu}function Zu(u,f,b){const y=nn();if(pr(y,co(),f)){const D=Rn(),B=pi();Nr(D,B,y,u,f,_f($r(D.data),B,y),b,!0)}return Zu}const Qa=void 0;var Xb=["en",[["a","p"],["AM","PM"],Qa],[["AM","PM"],Qa,Qa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qa,"{1} 'at' {0}",Qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(u){const b=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===b&&0===y?1:5}];let Gs={};function zu(u){const f=function ev(u){return u.toLowerCase().replace(/_/g,"-")}(u);let b=Tm(f);if(b)return b;const y=f.split("-")[0];if(b=Tm(y),b)return b;if("en"===y)return Xb;throw new ne(701,!1)}function Em(u){return zu(u)[Pn.PluralCase]}function Tm(u){return u in Gs||(Gs[u]=i.ng&&i.ng.common&&i.ng.common.locales&&i.ng.common.locales[u]),Gs[u]}var Pn=(()=>((Pn=Pn||{})[Pn.LocaleId=0]="LocaleId",Pn[Pn.DayPeriodsFormat=1]="DayPeriodsFormat",Pn[Pn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pn[Pn.DaysFormat=3]="DaysFormat",Pn[Pn.DaysStandalone=4]="DaysStandalone",Pn[Pn.MonthsFormat=5]="MonthsFormat",Pn[Pn.MonthsStandalone=6]="MonthsStandalone",Pn[Pn.Eras=7]="Eras",Pn[Pn.FirstDayOfWeek=8]="FirstDayOfWeek",Pn[Pn.WeekendRange=9]="WeekendRange",Pn[Pn.DateFormat=10]="DateFormat",Pn[Pn.TimeFormat=11]="TimeFormat",Pn[Pn.DateTimeFormat=12]="DateTimeFormat",Pn[Pn.NumberSymbols=13]="NumberSymbols",Pn[Pn.NumberFormats=14]="NumberFormats",Pn[Pn.CurrencyCode=15]="CurrencyCode",Pn[Pn.CurrencySymbol=16]="CurrencySymbol",Pn[Pn.CurrencyName=17]="CurrencyName",Pn[Pn.Currencies=18]="Currencies",Pn[Pn.Directionality=19]="Directionality",Pn[Pn.PluralCase=20]="PluralCase",Pn[Pn.ExtraData=21]="ExtraData",Pn))();const Zs="en-US";let ym=Zs;function Ju(u,f,b,y,x){if(u=V(u),Array.isArray(u))for(let D=0;D>20;if(za(u)||!u.multi){const zt=new Do(Ce,x,Ps),tn=qu(re,f,x?ct:ct+Vt,Et);-1===tn?(zr(Kr(Ye,B),D,re),$u(D,u,f.length),f.push(re),Ye.directiveStart++,Ye.directiveEnd++,x&&(Ye.providerIndexes+=1048576),b.push(zt),B.push(zt)):(b[tn]=zt,B[tn]=zt)}else{const zt=qu(re,f,ct+Vt,Et),tn=qu(re,f,ct,ct+Vt),cn=zt>=0&&b[zt],hn=tn>=0&&b[tn];if(x&&!hn||!x&&!cn){zr(Kr(Ye,B),D,re);const En=function Qv(u,f,b,y,x){const D=new Do(u,b,Ps);return D.multi=[],D.index=f,D.componentProviders=0,$m(D,x,y&&!b),D}(x?qv:$v,b.length,x,y,Ce);!x&&hn&&(b[tn].providerFactory=En),$u(D,u,f.length,0),f.push(re),Ye.directiveStart++,Ye.directiveEnd++,x&&(Ye.providerIndexes+=1048576),b.push(En),B.push(En)}else $u(D,u,zt>-1?zt:tn,$m(b[x?tn:zt],Ce,!x&&y));!x&&y&&hn&&b[tn].componentProviders++}}}function $u(u,f,b,y){const x=za(f),D=function S_(u){return!!u.useClass}(f);if(x||D){const Ce=(D?V(f.useClass):f).prototype.ngOnDestroy;if(Ce){const Ye=u.destroyHooks||(u.destroyHooks=[]);if(!x&&f.multi){const ct=Ye.indexOf(b);-1===ct?Ye.push(b,[y,Ce]):Ye[ct+1].push(y,Ce)}else Ye.push(b,Ce)}}}function $m(u,f,b){return b&&u.componentProviders++,u.multi.push(f)-1}function qu(u,f,b,y){for(let x=b;x{b.providersResolver=(y,x)=>function Jv(u,f,b){const y=Rn();if(y.firstCreatePass){const x=_i(u);Ju(b,y.data,y.blueprint,x,!0),Ju(f,y.data,y.blueprint,x,!1)}}(y,x?x(u):u,f)}}class Ws{}class Qm{}function Kv(u,f){return new Km(u,f??null)}class Km extends Ws{constructor(f,b){super(),this._parent=b,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bu(this);const y=jt(f);this._bootstrapComponents=qo(y.bootstrap),this._r3Injector=Op(f,b,[{provide:Ws,useValue:this},{provide:vl,useValue:this.componentFactoryResolver}],v(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(b=>b()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Ku extends Qm{constructor(f){super(),this.moduleType=f}create(f){return new Km(this.moduleType,f)}}class Xv extends Ws{constructor(f,b,y){super(),this.componentFactoryResolver=new bu(this),this.instance=null;const x=new Vh([...f,{provide:Ws,useValue:this},{provide:vl,useValue:this.componentFactoryResolver}],b||hc(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function Xu(u,f,b=null){return new Xv(u,f,b).injector}function og(u,f,b){const y=Qn()+u,x=nn();return x[y]===Vn?To(x,y,b?f.call(b):f()):function Il(u,f){return u[f]}(x,y)}function ag(u,f,b,y){return cg(nn(),Qn(),u,f,b,y)}function sg(u,f,b,y,x){return dg(nn(),Qn(),u,f,b,y,x)}function lg(u,f,b,y,x,D){return ug(nn(),Qn(),u,f,b,y,x,D)}function Nl(u,f){const b=u[f];return b===Vn?void 0:b}function cg(u,f,b,y,x,D){const B=f+b;return pr(u,B,x)?To(u,B+1,D?y.call(D,x):y(x)):Nl(u,B+1)}function dg(u,f,b,y,x,D,B){const re=f+b;return qa(u,re,x,D)?To(u,re+2,B?y.call(B,x,D):y(x,D)):Nl(u,re+2)}function ug(u,f,b,y,x,D,B,re){const Ce=f+b;return Mc(u,Ce,x,D,B)?To(u,Ce+3,re?y.call(re,x,D,B):y(x,D,B)):Nl(u,Ce+3)}function fg(u,f){const b=Rn();let y;const x=u+22;b.firstCreatePass?(y=function gE(u,f){if(f)for(let b=f.length-1;b>=0;b--){const y=f[b];if(u===y.name)return y}}(f,b.pipeRegistry),b.data[x]=y,y.onDestroy&&(b.destroyHooks||(b.destroyHooks=[])).push(x,y.onDestroy)):y=b.data[x];const D=y.factory||(y.factory=Si(y.type)),B=L(Ps);try{const re=Sr(!1),Ce=D();return Sr(re),function pb(u,f,b,y){b>=u.data.length&&(u.data[b]=null,u.blueprint[b]=null),f[b]=y}(b,nn(),x,Ce),Ce}finally{L(B)}}function mg(u,f,b){const y=u+22,x=nn(),D=er(x,y);return kl(x,y)?cg(x,Qn(),f,D.transform,b,D):D.transform(b)}function gg(u,f,b,y){const x=u+22,D=nn(),B=er(D,x);return kl(D,x)?dg(D,Qn(),f,B.transform,b,y,B):B.transform(b,y)}function _g(u,f,b,y,x){const D=u+22,B=nn(),re=er(B,D);return kl(B,D)?ug(B,Qn(),f,re.transform,b,y,x,re):re.transform(b,y,x)}function kl(u,f){return u[1].data[f].pure}function th(u){return f=>{setTimeout(u,void 0,f)}}const Mo=class CE extends e.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,b,y){let x=f,D=b||(()=>null),B=y;if(f&&"object"==typeof f){var re,Ce,Ye;const Et=f;x=null===(re=Et.next)||void 0===re?void 0:re.bind(Et),D=null===(Ce=Et.error)||void 0===Ce?void 0:Ce.bind(Et),B=null===(Ye=Et.complete)||void 0===Ye?void 0:Ye.bind(Et)}this.__isAsync&&(D=th(D),x&&(x=th(x)),B&&(B=th(B)));const ct=super.subscribe({next:x,error:D,complete:B});return f instanceof d.w0&&f.add(ct),ct}};function bE(){return this._results[$a()]()}class kc{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const b=$a(),y=kc.prototype;y[b]||(y[b]=bE)}get changes(){return this._changes||(this._changes=new Mo)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,b){return this._results.reduce(f,b)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,b){const y=this;y.dirty=!1;const x=dr(f);(this._changesDetected=!function pl(u,f,b){if(u.length!==f.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=TE,u})();const vE=Vl,EE=class extends vE{constructor(f,b,y){super(),this._declarationLView=f,this._declarationTContainer=b,this.elementRef=y}createEmbeddedView(f,b){const y=this._declarationTContainer.tViews,x=bc(this._declarationLView,y,f,16,null,y.declTNode,null,null,null,null,b||null);x[17]=this._declarationLView[this._declarationTContainer.index];const B=this._declarationLView[19];return null!==B&&(x[19]=B.createEmbeddedView(y)),vc(y,x,f),new Sl(x)}};function TE(){return Vc(hi(),nn())}function Vc(u,f){return 4&u.type?new EE(f,u,Ms(u,f)):null}let Fc=(()=>{class u{}return u.__NG_ELEMENT_ID__=yE,u})();function yE(){return bg(hi(),nn())}const wE=Fc,Ag=class extends wE{constructor(f,b,y){super(),this._lContainer=f,this._hostTNode=b,this._hostLView=y}get element(){return Ms(this._hostTNode,this._hostLView)}get injector(){return new go(this._hostTNode,this._hostLView)}get parentInjector(){const f=da(this._hostTNode,this._hostLView);if(ss(f)){const b=Hr(f,this._hostLView),y=Qr(f);return new go(b[1].data[y+8],b)}return new go(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const b=Cg(this._lContainer);return null!==b&&b[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,b,y){let x,D;"number"==typeof y?x=y:null!=y&&(x=y.index,D=y.injector);const B=f.createEmbeddedView(b||{},D);return this.insert(B,x),B}createComponent(f,b,y,x,D){const B=f&&!function Go(u){return"function"==typeof u}(f);let re;if(B)re=b;else{const Et=b||{};re=Et.index,y=Et.injector,x=Et.projectableNodes,D=Et.environmentInjector||Et.ngModuleRef}const Ce=B?f:new Dl(Re(f)),Ye=y||this.parentInjector;if(!D&&null==Ce.ngModule){const Vt=(B?Ye:this.parentInjector).get(Wa,null);Vt&&(D=Vt)}const ct=Ce.create(Ye,x,void 0,D);return this.insert(ct.hostView,re),ct}insert(f,b){const y=f._lView,x=y[1];if(function Be(u){return zn(u[3])}(y)){const ct=this.indexOf(f);if(-1!==ct)this.detach(ct);else{const Et=y[3],Vt=new Ag(Et,Et[6],Et[3]);Vt.detach(Vt.indexOf(f))}}const D=this._adjustIndex(b),B=this._lContainer;!function wA(u,f,b,y){const x=10+y,D=b.length;y>0&&(b[x-1][4]=f),y0)y.push(B[re/2]);else{const Ye=D[re+1],ct=f[-Ce];for(let Et=10;Et{class u{constructor(b){this.appInits=b,this.resolve=jc,this.reject=jc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const b=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{D.subscribe({complete:re,error:Ce})});b.push(B)}}Promise.all(b).then(()=>{y()}).catch(x=>{this.reject(x)}),0===b.length&&y(),this.initialized=!0}}return u.\u0275fac=function(b){return new(b||u)(Pi($g,8))},u.\u0275prov=He({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const qg=new ti("AppId",{providedIn:"root",factory:function Qg(){return`${hh()}${hh()}${hh()}`}});function hh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Kg=new ti("Platform Initializer"),XE=new ti("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ti("appBootstrapListener"),eT=new ti("AnimationModuleType");let tT=(()=>{class u{log(b){console.log(b)}warn(b){console.warn(b)}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=He({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();const Zc=new ti("LocaleId",{providedIn:"root",factory:()=>Ql(Zc,Q.Optional|Q.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||Zs}()}),iT=new ti("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(f,b){this.ngModuleFactory=f,this.componentFactories=b}}let oT=(()=>{class u{compileModuleSync(b){return new Ku(b)}compileModuleAsync(b){return Promise.resolve(this.compileModuleSync(b))}compileModuleAndAllComponentsSync(b){const y=this.compileModuleSync(b),D=qo(jt(b).declarations).reduce((B,re)=>{const Ce=Re(re);return Ce&&B.push(new Dl(Ce)),B},[]);return new rT(y,D)}compileModuleAndAllComponentsAsync(b){return Promise.resolve(this.compileModuleAndAllComponentsSync(b))}clearCache(){}clearCacheFor(b){}getModuleId(b){}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=He({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const lT=(()=>Promise.resolve(0))();function ph(u){typeof Zone>"u"?lT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class kr{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mo(!1),this.onMicrotaskEmpty=new Mo(!1),this.onStable=new Mo(!1),this.onError=new Mo(!1),typeof Zone>"u")throw new ne(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const D=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new D("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&b,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function cT(){let u=i.requestAnimationFrame,f=i.cancelAnimationFrame;if(typeof Zone<"u"&&u&&f){const b=u[Zone.__symbol__("OriginalDelegate")];b&&(u=b);const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function hT(u){const f=()=>{!function uT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(i,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,mh(u),u.isCheckStableRunning=!0,fh(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),mh(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(b,y,x,D,B,re)=>{try{return n_(u),b.invokeTask(x,D,B,re)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===D.type||u.shouldCoalesceRunChangeDetection)&&f(),i_(u)}},onInvoke:(b,y,x,D,B,re,Ce)=>{try{return n_(u),b.invoke(x,D,B,re,Ce)}finally{u.shouldCoalesceRunChangeDetection&&f(),i_(u)}},onHasTask:(b,y,x,D)=>{b.hasTask(x,D),y===x&&("microTask"==D.change?(u._hasPendingMicrotasks=D.microTask,mh(u),fh(u)):"macroTask"==D.change&&(u.hasPendingMacrotasks=D.macroTask))},onHandleError:(b,y,x,D)=>(b.handleError(x,D),u.runOutsideAngular(()=>u.onError.emit(D)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!kr.isInAngularZone())throw new ne(909,!1)}static assertNotInAngularZone(){if(kr.isInAngularZone())throw new ne(909,!1)}run(f,b,y){return this._inner.run(f,b,y)}runTask(f,b,y,x){const D=this._inner,B=D.scheduleEventTask("NgZoneEvent: "+x,f,dT,jc,jc);try{return D.runTask(B,b,y)}finally{D.cancelTask(B)}}runGuarded(f,b,y){return this._inner.runGuarded(f,b,y)}runOutsideAngular(f){return this._outer.run(f)}}const dT={};function fh(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function mh(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function n_(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function i_(u){u._nesting--,fh(u)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mo,this.onMicrotaskEmpty=new Mo,this.onStable=new Mo,this.onError=new Mo}run(f,b,y){return f.apply(b,y)}runGuarded(f,b,y){return f.apply(b,y)}runOutsideAngular(f){return f()}runTask(f,b,y,x){return f.apply(b,y)}}const r_=new ti(""),o_=new ti("");let gh,fT=(()=>{class u{constructor(b,y,x){this._ngZone=b,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gh||(function mT(u){gh=u}(x),x.addToWindow(y)),this._watchAngularEvents(),b.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{kr.assertNotInAngularZone(),ph(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ph(()=>{for(;0!==this._callbacks.length;){let b=this._callbacks.pop();clearTimeout(b.timeoutId),b.doneCb(this._didWork)}this._didWork=!1});else{let b=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(b)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(b=>({source:b.source,creationLocation:b.creationLocation,data:b.data})):[]}addCallback(b,y,x){let D=-1;y&&y>0&&(D=setTimeout(()=>{this._callbacks=this._callbacks.filter(B=>B.timeoutId!==D),b(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:b,timeoutId:D,updateCb:x})}whenStable(b,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(b,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(b){this.registry.registerApplication(b,this)}unregisterApplication(b){this.registry.unregisterApplication(b)}findProviders(b,y,x){return[]}}return u.\u0275fac=function(b){return new(b||u)(Pi(kr),Pi(a_),Pi(o_))},u.\u0275prov=He({token:u,factory:u.\u0275fac}),u})(),a_=(()=>{class u{constructor(){this._applications=new Map}registerApplication(b,y){this._applications.set(b,y)}unregisterApplication(b){this._applications.delete(b)}unregisterAllApplications(){this._applications.clear()}getTestability(b){return this._applications.get(b)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(b,y=!0){var x,D;return null!==(x=null===(D=gh)||void 0===D?void 0:D.findTestabilityInTree(this,b,y))&&void 0!==x?x:null}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=He({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})(),va=null;const s_=new ti("AllowMultipleToken"),_h=new ti("PlatformDestroyListeners");class AT{constructor(f,b){this.name=f,this.token=b}}function c_(u,f,b=[]){const y=`Platform: ${f}`,x=new ti(y);return(D=[])=>{let B=Ah();if(!B||B.injector.get(s_,!1)){const re=[...b,...D,{provide:x,useValue:!0}];u?u(re):function CT(u){if(va&&!va.get(s_,!1))throw new ne(400,!1);va=u;const f=u.get(u_);(function l_(u){const f=u.get(Kg,null);f&&f.forEach(b=>b())})(u)}(function d_(u=[],f){return Ja.create({name:f,providers:[{provide:Ed,useValue:"platform"},{provide:_h,useValue:new Set([()=>va=null])},...u]})}(re,y))}return function vT(u){const f=Ah();if(!f)throw new ne(401,!1);return f}()}}function Ah(){var u,f;return null!==(u=null===(f=va)||void 0===f?void 0:f.get(u_))&&void 0!==u?u:null}let u_=(()=>{class u{constructor(b){this._injector=b,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(b,y){const x=function ET(u,f){let b;return b="noop"===u?new pT:("zone.js"===u?void 0:u)||new kr(f),b}(y?.ngZone,function h_(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!u||!u.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!u||!u.ngZoneRunCoalescing)||!1}}(y)),D=[{provide:kr,useValue:x}];return x.run(()=>{const B=Ja.create({providers:D,parent:this.injector,name:b.moduleType.name}),re=b.create(B),Ce=re.injector.get(Tl,null);if(!Ce)throw new ne(402,!1);return x.runOutsideAngular(()=>{const Ye=x.onError.subscribe({next:ct=>{Ce.handleError(ct)}});re.onDestroy(()=>{Wc(this._modules,re),Ye.unsubscribe()})}),function p_(u,f,b){try{const y=b();return Pu(y)?y.catch(x=>{throw f.runOutsideAngular(()=>u.handleError(x)),x}):y}catch(y){throw f.runOutsideAngular(()=>u.handleError(y)),y}}(Ce,x,()=>{const Ye=re.injector.get(Gc);return Ye.runInitializers(),Ye.donePromise.then(()=>(function wm(u){P(u,"Expected localeId to be defined"),"string"==typeof u&&(ym=u.toLowerCase().replace(/_/g,"-"))}(re.injector.get(Zc,Zs)||Zs),this._moduleDoBootstrap(re),re))})})}bootstrapModule(b,y=[]){const x=f_({},y);return function gT(u,f,b){const y=new Ku(b);return Promise.resolve(y)}(0,0,b).then(D=>this.bootstrapModuleFactory(D,x))}_moduleDoBootstrap(b){const y=b.injector.get(zc);if(b._bootstrapComponents.length>0)b._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!b.instance.ngDoBootstrap)throw new ne(403,!1);b.instance.ngDoBootstrap(y)}this._modules.push(b)}onDestroy(b){this._destroyListeners.push(b)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const b=this._injector.get(_h,null);b&&(b.forEach(y=>y()),b.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(b){return new(b||u)(Pi(Ja))},u.\u0275prov=He({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();function f_(u,f){return Array.isArray(f)?f.reduce(f_,u):{...u,...f}}let zc=(()=>{class u{constructor(b,y,x){this._zone=b,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const D=new A.y(re=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{re.next(this._stable),re.complete()})}),B=new A.y(re=>{let Ce;this._zone.runOutsideAngular(()=>{Ce=this._zone.onStable.subscribe(()=>{kr.assertNotInAngularZone(),ph(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,re.next(!0))})})});const Ye=this._zone.onUnstable.subscribe(()=>{kr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{re.next(!1)}))});return()=>{Ce.unsubscribe(),Ye.unsubscribe()}});this.isStable=(0,w.T)(D,B.pipe((0,g.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(b,y){const x=b instanceof Uh;if(!this._injector.get(Gc).done)throw!x&&Js(b),new ne(405,false);let B;B=x?b:this._injector.get(vl).resolveComponentFactory(b),this.componentTypes.push(B.componentType);const re=function _T(u){return u.isBoundToModule}(B)?void 0:this._injector.get(Ws),Ye=B.create(Ja.NULL,[],y||B.selector,re),ct=Ye.location.nativeElement,Et=Ye.injector.get(r_,null);return Et?.registerApplication(ct),Ye.onDestroy(()=>{this.detachView(Ye.hostView),Wc(this.components,Ye),Et?.unregisterApplication(ct)}),this._loadComponent(Ye),Ye}tick(){if(this._runningTick)throw new ne(101,!1);try{this._runningTick=!0;for(let b of this._views)b.detectChanges()}catch(b){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(b))}finally{this._runningTick=!1}}attachView(b){const y=b;this._views.push(y),y.attachToAppRef(this)}detachView(b){const y=b;Wc(this._views,y),y.detachFromAppRef()}_loadComponent(b){this.attachView(b.hostView),this.tick(),this.components.push(b),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(x=>x(b))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(b=>b()),this._views.slice().forEach(b=>b.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(b){return this._destroyListeners.push(b),()=>Wc(this._destroyListeners,b)}destroy(){if(this._destroyed)throw new ne(406,!1);const b=this._injector;b.destroy&&!b.destroyed&&b.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return u.\u0275fac=function(b){return new(b||u)(Pi(kr),Pi(Wa),Pi(Tl))},u.\u0275prov=He({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Wc(u,f){const b=u.indexOf(f);b>-1&&u.splice(b,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class u{}return u.__NG_ELEMENT_ID__=MT,u})();function MT(u){return function xT(u,f,b){if(Vi(u)&&!b){const y=Ai(u.index,f);return new Sl(y,y)}return 47&u.type?new Sl(f[16],f):null}(hi(),nn(),16==(16&u))}class v_{constructor(){}supports(f){return Pl(f)}create(f){return new OT(f)}}const RT=(u,f)=>f;class OT{constructor(f){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||RT}forEachItem(f){let b;for(b=this._itHead;null!==b;b=b._next)f(b)}forEachOperation(f){let b=this._itHead,y=this._removalsHead,x=0,D=null;for(;b||y;){const B=!y||b&&b.currentIndex{B=this._trackByFn(x,re),null!==b&&Object.is(b.trackById,B)?(y&&(b=this._verifyReinsertion(b,re,B,x)),Object.is(b.item,re)||this._addIdentityChange(b,re)):(b=this._mismatch(b,re,B,x),y=!0),b=b._next,x++}),this.length=x;return this._truncate(b),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,b,y,x){let D;return null===f?D=this._itTail:(D=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(f.item,b)||this._addIdentityChange(f,b),this._reinsertAfter(f,D,x)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(f.item,b)||this._addIdentityChange(f,b),this._moveAfter(f,D,x)):f=this._addAfter(new HT(b,y),D,x),f}_verifyReinsertion(f,b,y,x){let D=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==D?f=this._reinsertAfter(D,f._prev,x):f.currentIndex!=x&&(f.currentIndex=x,this._addToMoves(f,x)),f}_truncate(f){for(;null!==f;){const b=f._next;this._addToRemovals(this._unlink(f)),f=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(f,b,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const x=f._prevRemoved,D=f._nextRemoved;return null===x?this._removalsHead=D:x._nextRemoved=D,null===D?this._removalsTail=x:D._prevRemoved=x,this._insertAfter(f,b,y),this._addToMoves(f,y),f}_moveAfter(f,b,y){return this._unlink(f),this._insertAfter(f,b,y),this._addToMoves(f,y),f}_addAfter(f,b,y){return this._insertAfter(f,b,y),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,b,y){const x=null===b?this._itHead:b._next;return f._next=x,f._prev=b,null===x?this._itTail=f:x._prev=f,null===b?this._itHead=f:b._next=f,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(f),f.currentIndex=y,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const b=f._prev,y=f._next;return null===b?this._itHead=y:b._next=y,null===y?this._itTail=b:y._prev=b,f}_addToMoves(f,b){return f.previousIndex===b||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,b){return f.item=b,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class HT{constructor(f,b){this.item=f,this.trackById=b,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class LT{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,b){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===b||b<=y.currentIndex)&&Object.is(y.trackById,f))return y;return null}remove(f){const b=f._prevDup,y=f._nextDup;return null===b?this._head=y:b._nextDup=y,null===y?this._tail=b:y._prevDup=b,null===this._head}}class E_{constructor(){this.map=new Map}put(f){const b=f.trackById;let y=this.map.get(b);y||(y=new LT,this.map.set(b,y)),y.add(f)}get(f,b){const x=this.map.get(f);return x?x.get(f,b):null}remove(f){const b=f.trackById;return this.map.get(b).remove(f)&&this.map.delete(b),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(u,f,b){const y=u.previousIndex;if(null===y)return y;let x=0;return b&&y{if(b&&b.key===x)this._maybeAddToChanges(b,y),this._appendAfter=b,b=b._next;else{const D=this._getOrCreateRecordForKey(x,y);b=this._insertBeforeOrAppend(b,D)}}),b){b._prev&&(b._prev._next=null),this._removalsHead=b;for(let y=b;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,b){if(f){const y=f._prev;return b._next=f,b._prev=y,f._prev=b,y&&(y._next=b),f===this._mapHead&&(this._mapHead=b),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b,this._appendAfter=b,null}_getOrCreateRecordForKey(f,b){if(this._records.has(f)){const x=this._records.get(f);this._maybeAddToChanges(x,b);const D=x._prev,B=x._next;return D&&(D._next=B),B&&(B._prev=D),x._next=null,x._prev=null,x}const y=new NT(f);return this._records.set(f,y),y.currentValue=b,this._addToAdditions(y),y}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,b){Object.is(b,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=b,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,b){f instanceof Map?f.forEach(b):Object.keys(f).forEach(y=>b(f[y],y))}}class NT{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function w_(){return new Th([new v_])}let Th=(()=>{class u{constructor(b){this.factories=b}static create(b,y){if(null!=y){const x=y.factories.slice();b=b.concat(x)}return new u(b)}static extend(b){return{provide:u,useFactory:y=>u.create(b,y||w_()),deps:[[u,new Na,new Ba]]}}find(b){const y=this.factories.find(x=>x.supports(b));if(null!=y)return y;throw new ne(901,!1)}}return u.\u0275prov=He({token:u,providedIn:"root",factory:w_}),u})();function M_(){return new yh([new y_])}let yh=(()=>{class u{constructor(b){this.factories=b}static create(b,y){if(y){const x=y.factories.slice();b=b.concat(x)}return new u(b)}static extend(b){return{provide:u,useFactory:y=>u.create(b,y||M_()),deps:[[u,new Na,new Ba]]}}find(b){const y=this.factories.find(x=>x.supports(b));if(y)return y;throw new ne(901,!1)}}return u.\u0275prov=He({token:u,providedIn:"root",factory:M_}),u})();const FT=c_(null,"core",[]);let UT=(()=>{class u{constructor(b){}}return u.\u0275fac=function(b){return new(b||u)(Pi(zc))},u.\u0275mod=Ae({type:u}),u.\u0275inj=et({}),u})();function jT(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}},24006:(Je,pe,h)=>{"use strict";h.d(pe,{Cf:()=>fe,EJ:()=>Ar,F:()=>si,Fj:()=>X,JJ:()=>me,JL:()=>N,JU:()=>v,Kr:()=>Ki,NI:()=>On,On:()=>rr,Q7:()=>er,QS:()=>wr,UX:()=>Jn,YN:()=>lr,Zs:()=>Ai,_Y:()=>yt,a5:()=>ge,c5:()=>An,kI:()=>E,oH:()=>Kn,p4:()=>Yi,sg:()=>Ji,u:()=>or,u5:()=>Ci,wV:()=>nt});var e=h(94650),d=h(36895),A=h(32076),w=h(4128),g=h(54004);let C=(()=>{class Ue{constructor(be,pt){this._renderer=be,this._elementRef=pt,this.onChange=Qt=>{},this.onTouched=()=>{}}setProperty(be,pt){this._renderer.setProperty(this._elementRef.nativeElement,be,pt)}registerOnTouched(be){this.onTouched=be}registerOnChange(be){this.onChange=be}setDisabledState(be){this.setProperty("disabled",be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ue.\u0275dir=e.lG2({type:Ue}),Ue})(),T=(()=>{class Ue extends C{}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,features:[e.qOj]}),Ue})();const v=new e.OlP("NgValueAccessor"),_={provide:v,useExisting:(0,e.Gpc)(()=>X),multi:!0},Y=new e.OlP("CompositionEventMode");let X=(()=>{class Ue extends C{constructor(be,pt,Qt){super(be,pt),this._compositionMode=Qt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function V(){const Ue=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(Ue.toLowerCase())}())}writeValue(be){this.setProperty("value",be??"")}_handleInput(be){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(be)}_compositionStart(){this._composing=!0}_compositionEnd(be){this._composing=!1,this._compositionMode&&this.onChange(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(Y,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(be,pt){1&be&&e.NdJ("input",function(mn){return pt._handleInput(mn.target.value)})("blur",function(){return pt.onTouched()})("compositionstart",function(){return pt._compositionStart()})("compositionend",function(mn){return pt._compositionEnd(mn.target.value)})},features:[e._Bn([_]),e.qOj]}),Ue})();function le(Ue){return null==Ue||("string"==typeof Ue||Array.isArray(Ue))&&0===Ue.length}function te(Ue){return null!=Ue&&"number"==typeof Ue.length}const fe=new e.OlP("NgValidators"),ue=new e.OlP("NgAsyncValidators"),we=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class E{static min(Se){return function O(Ue){return Se=>{if(le(Se.value)||le(Ue))return null;const be=parseFloat(Se.value);return!isNaN(be)&&be{if(le(Se.value)||le(Ue))return null;const be=parseFloat(Se.value);return!isNaN(be)&&be>Ue?{max:{max:Ue,actual:Se.value}}:null}}(Se)}static required(Se){return W(Se)}static requiredTrue(Se){return $(Se)}static email(Se){return function de(Ue){return le(Ue.value)||we.test(Ue.value)?null:{email:!0}}(Se)}static minLength(Se){return function ye(Ue){return Se=>le(Se.value)||!te(Se.value)?null:Se.value.lengthte(Se.value)&&Se.value.length>Ue?{maxlength:{requiredLength:Ue,actualLength:Se.value.length}}:null}(Se)}static pattern(Se){return Me(Se)}static nullValidator(Se){return null}static compose(Se){return G(Se)}static composeAsync(Se){return q(Se)}}function W(Ue){return le(Ue.value)?{required:!0}:null}function $(Ue){return!0===Ue.value?null:{required:!0}}function Me(Ue){if(!Ue)return Ze;let Se,be;return"string"==typeof Ue?(be="","^"!==Ue.charAt(0)&&(be+="^"),be+=Ue,"$"!==Ue.charAt(Ue.length-1)&&(be+="$"),Se=new RegExp(be)):(be=Ue.toString(),Se=Ue),pt=>{if(le(pt.value))return null;const Qt=pt.value;return Se.test(Qt)?null:{pattern:{requiredPattern:be,actualValue:Qt}}}}function Ze(Ue){return null}function se(Ue){return null!=Ue}function ze(Ue){return(0,e.QGY)(Ue)?(0,A.D)(Ue):Ue}function he(Ue){let Se={};return Ue.forEach(be=>{Se=null!=be?{...Se,...be}:Se}),0===Object.keys(Se).length?null:Se}function De(Ue,Se){return Se.map(be=>be(Ue))}function P(Ue){return Ue.map(Se=>function j(Ue){return!Ue.validate}(Se)?Se:be=>Se.validate(be))}function G(Ue){if(!Ue)return null;const Se=Ue.filter(se);return 0==Se.length?null:function(be){return he(De(be,Se))}}function ce(Ue){return null!=Ue?G(P(Ue)):null}function q(Ue){if(!Ue)return null;const Se=Ue.filter(se);return 0==Se.length?null:function(be){const pt=De(be,Se).map(ze);return(0,w.D)(pt).pipe((0,g.U)(he))}}function Te(Ue){return null!=Ue?q(P(Ue)):null}function He(Ue,Se){return null===Ue?[Se]:Array.isArray(Ue)?[...Ue,Se]:[Ue,Se]}function dt(Ue){return Ue._rawValidators}function et(Ue){return Ue._rawAsyncValidators}function _t(Ue){return Ue?Array.isArray(Ue)?Ue:[Ue]:[]}function Qe(Ue,Se){return Array.isArray(Ue)?Ue.includes(Se):Ue===Se}function st(Ue,Se){const be=_t(Se);return _t(Ue).forEach(Qt=>{Qe(be,Qt)||be.push(Qt)}),be}function Z(Ue,Se){return _t(Se).filter(be=>!Qe(Ue,be))}class ve{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Se){this._rawValidators=Se||[],this._composedValidatorFn=ce(this._rawValidators)}_setAsyncValidators(Se){this._rawAsyncValidators=Se||[],this._composedAsyncValidatorFn=Te(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Se){this._onDestroyCallbacks.push(Se)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Se=>Se()),this._onDestroyCallbacks=[]}reset(Se){this.control&&this.control.reset(Se)}hasError(Se,be){return!!this.control&&this.control.hasError(Se,be)}getError(Se,be){return this.control?this.control.getError(Se,be):null}}class oe extends ve{get formDirective(){return null}get path(){return null}}class ge extends ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ae{constructor(Se){this._cd=Se}get isTouched(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.touched)}get isUntouched(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.untouched)}get isPristine(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.pristine)}get isDirty(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.dirty)}get isValid(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.valid)}get isInvalid(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.invalid)}get isPending(){var Se,be;return!(null===(Se=this._cd)||void 0===Se||null===(be=Se.control)||void 0===be||!be.pending)}get isSubmitted(){var Se;return!(null===(Se=this._cd)||void 0===Se||!Se.submitted)}}let me=(()=>{class Ue extends ae{constructor(be){super(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(ge,2))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(be,pt){2&be&&e.ekj("ng-untouched",pt.isUntouched)("ng-touched",pt.isTouched)("ng-pristine",pt.isPristine)("ng-dirty",pt.isDirty)("ng-valid",pt.isValid)("ng-invalid",pt.isInvalid)("ng-pending",pt.isPending)},features:[e.qOj]}),Ue})(),N=(()=>{class Ue extends ae{constructor(be){super(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(oe,10))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(be,pt){2&be&&e.ekj("ng-untouched",pt.isUntouched)("ng-touched",pt.isTouched)("ng-pristine",pt.isPristine)("ng-dirty",pt.isDirty)("ng-valid",pt.isValid)("ng-invalid",pt.isInvalid)("ng-pending",pt.isPending)("ng-submitted",pt.isSubmitted)},features:[e.qOj]}),Ue})();const gt="VALID",Ge="INVALID",Ie="PENDING",Xe="DISABLED";function Ke(Ue){return(We(Ue)?Ue.validators:Ue)||null}function ke(Ue){return Array.isArray(Ue)?ce(Ue):Ue||null}function Ae(Ue,Se){return(We(Se)?Se.asyncValidators:Ue)||null}function Ee(Ue){return Array.isArray(Ue)?Te(Ue):Ue||null}function We(Ue){return null!=Ue&&!Array.isArray(Ue)&&"object"==typeof Ue}function tt(Ue,Se,be){const pt=Ue.controls;if(!(Se?Object.keys(pt):pt).length)throw new e.vHH(1e3,"");if(!pt[be])throw new e.vHH(1001,"")}function ot(Ue,Se,be){Ue._forEachChild((pt,Qt)=>{if(void 0===be[Qt])throw new e.vHH(1002,"")})}class Re{constructor(Se,be){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Se,this._rawAsyncValidators=be,this._composedValidatorFn=ke(this._rawValidators),this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Se){this._rawValidators=this._composedValidatorFn=Se}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Se){this._rawAsyncValidators=this._composedAsyncValidatorFn=Se}get parent(){return this._parent}get valid(){return this.status===gt}get invalid(){return this.status===Ge}get pending(){return this.status==Ie}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Se){this._rawValidators=Se,this._composedValidatorFn=ke(Se)}setAsyncValidators(Se){this._rawAsyncValidators=Se,this._composedAsyncValidatorFn=Ee(Se)}addValidators(Se){this.setValidators(st(Se,this._rawValidators))}addAsyncValidators(Se){this.setAsyncValidators(st(Se,this._rawAsyncValidators))}removeValidators(Se){this.setValidators(Z(Se,this._rawValidators))}removeAsyncValidators(Se){this.setAsyncValidators(Z(Se,this._rawAsyncValidators))}hasValidator(Se){return Qe(this._rawValidators,Se)}hasAsyncValidator(Se){return Qe(this._rawAsyncValidators,Se)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Se={}){this.touched=!0,this._parent&&!Se.onlySelf&&this._parent.markAsTouched(Se)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Se=>Se.markAllAsTouched())}markAsUntouched(Se={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(be=>{be.markAsUntouched({onlySelf:!0})}),this._parent&&!Se.onlySelf&&this._parent._updateTouched(Se)}markAsDirty(Se={}){this.pristine=!1,this._parent&&!Se.onlySelf&&this._parent.markAsDirty(Se)}markAsPristine(Se={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(be=>{be.markAsPristine({onlySelf:!0})}),this._parent&&!Se.onlySelf&&this._parent._updatePristine(Se)}markAsPending(Se={}){this.status=Ie,!1!==Se.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Se.onlySelf&&this._parent.markAsPending(Se)}disable(Se={}){const be=this._parentMarkedDirty(Se.onlySelf);this.status=Xe,this.errors=null,this._forEachChild(pt=>{pt.disable({...Se,onlySelf:!0})}),this._updateValue(),!1!==Se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Se,skipPristineCheck:be}),this._onDisabledChange.forEach(pt=>pt(!0))}enable(Se={}){const be=this._parentMarkedDirty(Se.onlySelf);this.status=gt,this._forEachChild(pt=>{pt.enable({...Se,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Se.emitEvent}),this._updateAncestors({...Se,skipPristineCheck:be}),this._onDisabledChange.forEach(pt=>pt(!1))}_updateAncestors(Se){this._parent&&!Se.onlySelf&&(this._parent.updateValueAndValidity(Se),Se.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Se){this._parent=Se}getRawValue(){return this.value}updateValueAndValidity(Se={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gt||this.status===Ie)&&this._runAsyncValidator(Se.emitEvent)),!1!==Se.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Se.onlySelf&&this._parent.updateValueAndValidity(Se)}_updateTreeValidity(Se={emitEvent:!0}){this._forEachChild(be=>be._updateTreeValidity(Se)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Se.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:gt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Se){if(this.asyncValidator){this.status=Ie,this._hasOwnPendingAsyncValidator=!0;const be=ze(this.asyncValidator(this));this._asyncValidationSubscription=be.subscribe(pt=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(pt,{emitEvent:Se})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Se,be={}){this.errors=Se,this._updateControlsErrors(!1!==be.emitEvent)}get(Se){let be=Se;return null==be||(Array.isArray(be)||(be=be.split(".")),0===be.length)?null:be.reduce((pt,Qt)=>pt&&pt._find(Qt),this)}getError(Se,be){const pt=be?this.get(be):this;return pt&&pt.errors?pt.errors[Se]:null}hasError(Se,be){return!!this.getError(Se,be)}get root(){let Se=this;for(;Se._parent;)Se=Se._parent;return Se}_updateControlsErrors(Se){this.status=this._calculateStatus(),Se&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Se)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?Ge:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ie)?Ie:this._anyControlsHaveStatus(Ge)?Ge:gt}_anyControlsHaveStatus(Se){return this._anyControls(be=>be.status===Se)}_anyControlsDirty(){return this._anyControls(Se=>Se.dirty)}_anyControlsTouched(){return this._anyControls(Se=>Se.touched)}_updatePristine(Se={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Se.onlySelf&&this._parent._updatePristine(Se)}_updateTouched(Se={}){this.touched=this._anyControlsTouched(),this._parent&&!Se.onlySelf&&this._parent._updateTouched(Se)}_registerOnCollectionChange(Se){this._onCollectionChange=Se}_setUpdateStrategy(Se){We(Se)&&null!=Se.updateOn&&(this._updateOn=Se.updateOn)}_parentMarkedDirty(Se){return!Se&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Se){return null}}class lt extends Re{constructor(Se,be,pt){super(Ke(be),Ae(pt,be)),this.controls=Se,this._initObservables(),this._setUpdateStrategy(be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Se,be){return this.controls[Se]?this.controls[Se]:(this.controls[Se]=be,be.setParent(this),be._registerOnCollectionChange(this._onCollectionChange),be)}addControl(Se,be,pt={}){this.registerControl(Se,be),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}removeControl(Se,be={}){this.controls[Se]&&this.controls[Se]._registerOnCollectionChange(()=>{}),delete this.controls[Se],this.updateValueAndValidity({emitEvent:be.emitEvent}),this._onCollectionChange()}setControl(Se,be,pt={}){this.controls[Se]&&this.controls[Se]._registerOnCollectionChange(()=>{}),delete this.controls[Se],be&&this.registerControl(Se,be),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}contains(Se){return this.controls.hasOwnProperty(Se)&&this.controls[Se].enabled}setValue(Se,be={}){ot(this,0,Se),Object.keys(Se).forEach(pt=>{tt(this,!0,pt),this.controls[pt].setValue(Se[pt],{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be)}patchValue(Se,be={}){null!=Se&&(Object.keys(Se).forEach(pt=>{const Qt=this.controls[pt];Qt&&Qt.patchValue(Se[pt],{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be))}reset(Se={},be={}){this._forEachChild((pt,Qt)=>{pt.reset(Se[Qt],{onlySelf:!0,emitEvent:be.emitEvent})}),this._updatePristine(be),this._updateTouched(be),this.updateValueAndValidity(be)}getRawValue(){return this._reduceChildren({},(Se,be,pt)=>(Se[pt]=be.getRawValue(),Se))}_syncPendingControls(){let Se=this._reduceChildren(!1,(be,pt)=>!!pt._syncPendingControls()||be);return Se&&this.updateValueAndValidity({onlySelf:!0}),Se}_forEachChild(Se){Object.keys(this.controls).forEach(be=>{const pt=this.controls[be];pt&&Se(pt,be)})}_setUpControls(){this._forEachChild(Se=>{Se.setParent(this),Se._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Se){for(const[be,pt]of Object.entries(this.controls))if(this.contains(be)&&Se(pt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(be,pt,Qt)=>((pt.enabled||this.disabled)&&(be[Qt]=pt.value),be))}_reduceChildren(Se,be){let pt=Se;return this._forEachChild((Qt,mn)=>{pt=be(pt,Qt,mn)}),pt}_allControlsDisabled(){for(const Se of Object.keys(this.controls))if(this.controls[Se].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Se){return this.controls.hasOwnProperty(Se)?this.controls[Se]:null}}function on(Ue,Se){return[...Se.path,Ue]}function fn(Ue,Se){var be,pt;Ft(Ue,Se),Se.valueAccessor.writeValue(Ue.value),Ue.disabled&&(null===(be=(pt=Se.valueAccessor).setDisabledState)||void 0===be||be.call(pt,!0)),function _n(Ue,Se){Se.valueAccessor.registerOnChange(be=>{Ue._pendingValue=be,Ue._pendingChange=!0,Ue._pendingDirty=!0,"change"===Ue.updateOn&&Jt(Ue,Se)})}(Ue,Se),function wt(Ue,Se){const be=(pt,Qt)=>{Se.valueAccessor.writeValue(pt),Qt&&Se.viewToModelUpdate(pt)};Ue.registerOnChange(be),Se._registerOnDestroy(()=>{Ue._unregisterOnChange(be)})}(Ue,Se),function Mt(Ue,Se){Se.valueAccessor.registerOnTouched(()=>{Ue._pendingTouched=!0,"blur"===Ue.updateOn&&Ue._pendingChange&&Jt(Ue,Se),"submit"!==Ue.updateOn&&Ue.markAsTouched()})}(Ue,Se),function Ct(Ue,Se){if(Se.valueAccessor.setDisabledState){const be=pt=>{Se.valueAccessor.setDisabledState(pt)};Ue.registerOnDisabledChange(be),Se._registerOnDestroy(()=>{Ue._unregisterOnDisabledChange(be)})}}(Ue,Se)}function kt(Ue,Se,be=!0){const pt=()=>{};Se.valueAccessor&&(Se.valueAccessor.registerOnChange(pt),Se.valueAccessor.registerOnTouched(pt)),qt(Ue,Se),Ue&&(Se._invokeOnDestroyCallbacks(),Ue._registerOnCollectionChange(()=>{}))}function Rt(Ue,Se){Ue.forEach(be=>{be.registerOnValidatorChange&&be.registerOnValidatorChange(Se)})}function Ft(Ue,Se){const be=dt(Ue);null!==Se.validator?Ue.setValidators(He(be,Se.validator)):"function"==typeof be&&Ue.setValidators([be]);const pt=et(Ue);null!==Se.asyncValidator?Ue.setAsyncValidators(He(pt,Se.asyncValidator)):"function"==typeof pt&&Ue.setAsyncValidators([pt]);const Qt=()=>Ue.updateValueAndValidity();Rt(Se._rawValidators,Qt),Rt(Se._rawAsyncValidators,Qt)}function qt(Ue,Se){let be=!1;if(null!==Ue){if(null!==Se.validator){const Qt=dt(Ue);if(Array.isArray(Qt)&&Qt.length>0){const mn=Qt.filter($n=>$n!==Se.validator);mn.length!==Qt.length&&(be=!0,Ue.setValidators(mn))}}if(null!==Se.asyncValidator){const Qt=et(Ue);if(Array.isArray(Qt)&&Qt.length>0){const mn=Qt.filter($n=>$n!==Se.asyncValidator);mn.length!==Qt.length&&(be=!0,Ue.setAsyncValidators(mn))}}}const pt=()=>{};return Rt(Se._rawValidators,pt),Rt(Se._rawAsyncValidators,pt),be}function Jt(Ue,Se){Ue._pendingDirty&&Ue.markAsDirty(),Ue.setValue(Ue._pendingValue,{emitModelToViewChange:!1}),Se.viewToModelUpdate(Ue._pendingValue),Ue._pendingChange=!1}function rt(Ue,Se){Ft(Ue,Se)}function Fe(Ue,Se){if(!Ue.hasOwnProperty("model"))return!1;const be=Ue.model;return!!be.isFirstChange()||!Object.is(Se,be.currentValue)}function St(Ue,Se){Ue._syncPendingControls(),Se.forEach(be=>{const pt=be.control;"submit"===pt.updateOn&&pt._pendingChange&&(be.viewToModelUpdate(pt._pendingValue),pt._pendingChange=!1)})}function en(Ue,Se){if(!Se)return null;let be,pt,Qt;return Array.isArray(Se),Se.forEach(mn=>{mn.constructor===X?be=mn:function mt(Ue){return Object.getPrototypeOf(Ue.constructor)===T}(mn)?pt=mn:Qt=mn}),Qt||pt||be||null}const Hn={provide:oe,useExisting:(0,e.Gpc)(()=>si)},qn=(()=>Promise.resolve(null))();let si=(()=>{class Ue extends oe{constructor(be,pt){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new lt({},ce(be),Te(pt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(be){qn.then(()=>{const pt=this._findContainer(be.path);be.control=pt.registerControl(be.name,be.control),fn(be.control,be),be.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(be)})}getControl(be){return this.form.get(be.path)}removeControl(be){qn.then(()=>{const pt=this._findContainer(be.path);pt&&pt.removeControl(be.name),this._directives.delete(be)})}addFormGroup(be){qn.then(()=>{const pt=this._findContainer(be.path),Qt=new lt({});rt(Qt,be),pt.registerControl(be.name,Qt),Qt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(be){qn.then(()=>{const pt=this._findContainer(be.path);pt&&pt.removeControl(be.name)})}getFormGroup(be){return this.form.get(be.path)}updateModel(be,pt){qn.then(()=>{this.form.get(be.path).setValue(pt)})}setValue(be){this.control.setValue(be)}onSubmit(be){return this.submitted=!0,St(this.form,this._directives),this.ngSubmit.emit(be),!1}onReset(){this.resetForm()}resetForm(be){this.form.reset(be),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(be){return be.pop(),be.length?this.form.get(be):this.form}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(fe,10),e.Y36(ue,10))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(be,pt){1&be&&e.NdJ("submit",function(mn){return pt.onSubmit(mn)})("reset",function(){return pt.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Hn]),e.qOj]}),Ue})();function li(Ue,Se){const be=Ue.indexOf(Se);be>-1&&Ue.splice(be,1)}function Zn(Ue){return"object"==typeof Ue&&null!==Ue&&2===Object.keys(Ue).length&&"value"in Ue&&"disabled"in Ue}const On=class extends Re{constructor(Se=null,be,pt){super(Ke(be),Ae(pt,be)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Se),this._setUpdateStrategy(be),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),We(be)&&(be.nonNullable||be.initialValueIsDefault)&&(this.defaultValue=Zn(Se)?Se.value:Se)}setValue(Se,be={}){this.value=this._pendingValue=Se,this._onChange.length&&!1!==be.emitModelToViewChange&&this._onChange.forEach(pt=>pt(this.value,!1!==be.emitViewToModelChange)),this.updateValueAndValidity(be)}patchValue(Se,be={}){this.setValue(Se,be)}reset(Se=this.defaultValue,be={}){this._applyFormState(Se),this.markAsPristine(be),this.markAsUntouched(be),this.setValue(this.value,be),this._pendingChange=!1}_updateValue(){}_anyControls(Se){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Se){this._onChange.push(Se)}_unregisterOnChange(Se){li(this._onChange,Se)}registerOnDisabledChange(Se){this._onDisabledChange.push(Se)}_unregisterOnDisabledChange(Se){li(this._onDisabledChange,Se)}_forEachChild(Se){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Se){Zn(Se)?(this.value=this._pendingValue=Se.value,Se.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Se}},Yi=On,ir={provide:ge,useExisting:(0,e.Gpc)(()=>rr)},fr=(()=>Promise.resolve(null))();let rr=(()=>{class Ue extends ge{constructor(be,pt,Qt,mn,$n){super(),this._changeDetectorRef=$n,this.control=new On,this._registered=!1,this.update=new e.vpe,this._parent=be,this._setValidators(pt),this._setAsyncValidators(Qt),this.valueAccessor=en(0,mn)}ngOnChanges(be){if(this._checkForErrors(),!this._registered||"name"in be){if(this._registered&&(this._checkName(),this.formDirective)){const pt=be.name.previousValue;this.formDirective.removeControl({name:pt,path:this._getPath(pt)})}this._setUpControl()}"isDisabled"in be&&this._updateDisabled(be),Fe(be,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){fn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(be){fr.then(()=>{var pt;this.control.setValue(be,{emitViewToModelChange:!1}),null===(pt=this._changeDetectorRef)||void 0===pt||pt.markForCheck()})}_updateDisabled(be){const pt=be.isDisabled.currentValue,Qt=0!==pt&&(0,e.D6c)(pt);fr.then(()=>{var mn;Qt&&!this.control.disabled?this.control.disable():!Qt&&this.control.disabled&&this.control.enable(),null===(mn=this._changeDetectorRef)||void 0===mn||mn.markForCheck()})}_getPath(be){return this._parent?on(be,this._parent):[be]}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(oe,9),e.Y36(fe,10),e.Y36(ue,10),e.Y36(v,10),e.Y36(e.sBO,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([ir]),e.qOj,e.TTD]}),Ue})(),yt=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ue})();const rn={provide:v,useExisting:(0,e.Gpc)(()=>nt),multi:!0};let nt=(()=>{class Ue extends T{writeValue(be){this.setProperty("value",be??"")}registerOnChange(be){this.onChange=pt=>{be(""==pt?null:parseFloat(pt))}}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(be,pt){1&be&&e.NdJ("input",function(mn){return pt.onChange(mn.target.value)})("blur",function(){return pt.onTouched()})},features:[e._Bn([rn]),e.qOj]}),Ue})(),Ht=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({}),Ue})();const yn=new e.OlP("NgModelWithFormControlWarning"),Wn={provide:ge,useExisting:(0,e.Gpc)(()=>Kn)};let Kn=(()=>{class Ue extends ge{constructor(be,pt,Qt,mn){super(),this._ngModelWarningConfig=mn,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(be),this._setAsyncValidators(pt),this.valueAccessor=en(0,Qt)}set isDisabled(be){}ngOnChanges(be){if(this._isControlChanged(be)){const pt=be.form.previousValue;pt&&kt(pt,this,!1),fn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Fe(be,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&kt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}_isControlChanged(be){return be.hasOwnProperty("form")}}return Ue._ngModelWarningSentOnce=!1,Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(fe,10),e.Y36(ue,10),e.Y36(v,10),e.Y36(yn,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Wn]),e.qOj,e.TTD]}),Ue})();const ui={provide:oe,useExisting:(0,e.Gpc)(()=>Ji)};let Ji=(()=>{class Ue extends oe{constructor(be,pt){super(),this.validators=be,this.asyncValidators=pt,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(be),this._setAsyncValidators(pt)}ngOnChanges(be){this._checkFormPresent(),be.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(qt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(be){const pt=this.form.get(be.path);return fn(pt,be),pt.updateValueAndValidity({emitEvent:!1}),this.directives.push(be),pt}getControl(be){return this.form.get(be.path)}removeControl(be){kt(be.control||null,be,!1),function vn(Ue,Se){const be=Ue.indexOf(Se);be>-1&&Ue.splice(be,1)}(this.directives,be)}addFormGroup(be){this._setUpFormContainer(be)}removeFormGroup(be){this._cleanUpFormContainer(be)}getFormGroup(be){return this.form.get(be.path)}addFormArray(be){this._setUpFormContainer(be)}removeFormArray(be){this._cleanUpFormContainer(be)}getFormArray(be){return this.form.get(be.path)}updateModel(be,pt){this.form.get(be.path).setValue(pt)}onSubmit(be){return this.submitted=!0,St(this.form,this.directives),this.ngSubmit.emit(be),!1}onReset(){this.resetForm()}resetForm(be){this.form.reset(be),this.submitted=!1}_updateDomValue(){this.directives.forEach(be=>{const pt=be.control,Qt=this.form.get(be.path);pt!==Qt&&(kt(pt||null,be),(Ue=>Ue instanceof On)(Qt)&&(fn(Qt,be),be.control=Qt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(be){const pt=this.form.get(be.path);rt(pt,be),pt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(be){if(this.form){const pt=this.form.get(be.path);pt&&function bt(Ue,Se){return qt(Ue,Se)}(pt,be)&&pt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ft(this.form,this),this._oldForm&&qt(this._oldForm,this)}_checkFormPresent(){}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(fe,10),e.Y36(ue,10))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formGroup",""]],hostBindings:function(be,pt){1&be&&e.NdJ("submit",function(mn){return pt.onSubmit(mn)})("reset",function(){return pt.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([ui]),e.qOj,e.TTD]}),Ue})();const gr={provide:ge,useExisting:(0,e.Gpc)(()=>or)};let or=(()=>{class Ue extends ge{constructor(be,pt,Qt,mn,$n){super(),this._ngModelWarningConfig=$n,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=be,this._setValidators(pt),this._setAsyncValidators(Qt),this.valueAccessor=en(0,mn)}set isDisabled(be){}ngOnChanges(be){this._added||this._setUpControl(),Fe(be,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(be){this.viewModel=be,this.update.emit(be)}get path(){return on(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ue._ngModelWarningSentOnce=!1,Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(oe,13),e.Y36(fe,10),e.Y36(ue,10),e.Y36(v,10),e.Y36(yn,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([gr]),e.qOj,e.TTD]}),Ue})();const ar={provide:v,useExisting:(0,e.Gpc)(()=>Ar),multi:!0};function sr(Ue,Se){return null==Ue?`${Se}`:(Se&&"object"==typeof Se&&(Se="Object"),`${Ue}: ${Se}`.slice(0,50))}let Ar=(()=>{class Ue extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(be){this._compareWith=be}writeValue(be){this.value=be;const Qt=sr(this._getOptionId(be),be);this.setProperty("value",Qt)}registerOnChange(be){this.onChange=pt=>{this.value=this._getOptionValue(pt),be(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(be){for(const pt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(pt),be))return pt;return null}_getOptionValue(be){const pt=function _r(Ue){return Ue.split(":")[0]}(be);return this._optionMap.has(pt)?this._optionMap.get(pt):be}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(be,pt){1&be&&e.NdJ("change",function(mn){return pt.onChange(mn.target.value)})("blur",function(){return pt.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([ar]),e.qOj]}),Ue})(),lr=(()=>{class Ue{constructor(be,pt,Qt){this._element=be,this._renderer=pt,this._select=Qt,this._select&&(this.id=this._select._registerOption())}set ngValue(be){null!=this._select&&(this._select._optionMap.set(this.id,be),this._setElementValue(sr(this.id,be)),this._select.writeValue(this._select.value))}set value(be){this._setElementValue(be),this._select&&this._select.writeValue(this._select.value)}_setElementValue(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ar,9))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ue})();const Fr={provide:v,useExisting:(0,e.Gpc)(()=>Ur),multi:!0};function Yr(Ue,Se){return null==Ue?`${Se}`:("string"==typeof Se&&(Se=`'${Se}'`),Se&&"object"==typeof Se&&(Se="Object"),`${Ue}: ${Se}`.slice(0,50))}let Ur=(()=>{class Ue extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(be){this._compareWith=be}writeValue(be){let pt;if(this.value=be,Array.isArray(be)){const Qt=be.map(mn=>this._getOptionId(mn));pt=(mn,$n)=>{mn._setSelected(Qt.indexOf($n.toString())>-1)}}else pt=(Qt,mn)=>{Qt._setSelected(!1)};this._optionMap.forEach(pt)}registerOnChange(be){this.onChange=pt=>{const Qt=[],mn=pt.selectedOptions;if(void 0!==mn){const $n=mn;for(let Qn=0;Qn<$n.length;Qn++){const Rr=this._getOptionValue($n[Qn].value);Qt.push(Rr)}}else{const $n=pt.options;for(let Qn=0;Qn<$n.length;Qn++){const Li=$n[Qn];if(Li.selected){const Rr=this._getOptionValue(Li.value);Qt.push(Rr)}}}this.value=Qt,be(Qt)}}_registerOption(be){const pt=(this._idCounter++).toString();return this._optionMap.set(pt,be),pt}_getOptionId(be){for(const pt of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(pt)._value,be))return pt;return null}_getOptionValue(be){const pt=function yi(Ue){return Ue.split(":")[0]}(be);return this._optionMap.has(pt)?this._optionMap.get(pt)._value:be}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(be,pt){1&be&&e.NdJ("change",function(mn){return pt.onChange(mn.target)})("blur",function(){return pt.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([Fr]),e.qOj]}),Ue})(),Ki=(()=>{class Ue{constructor(be,pt,Qt){this._element=be,this._renderer=pt,this._select=Qt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(be){null!=this._select&&(this._value=be,this._setElementValue(Yr(this.id,be)),this._select.writeValue(this._select.value))}set value(be){this._select?(this._value=be,this._setElementValue(Yr(this.id,be)),this._select.writeValue(this._select.value)):this._setElementValue(be)}_setElementValue(be){this._renderer.setProperty(this._element.nativeElement,"value",be)}_setSelected(be){this._renderer.setProperty(this._element.nativeElement,"selected",be)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ue.\u0275fac=function(be){return new(be||Ue)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ur,9))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ue})(),Yn=(()=>{class Ue{constructor(){this._validator=Ze}ngOnChanges(be){if(this.inputName in be){const pt=this.normalizeInput(be[this.inputName].currentValue);this._enabled=this.enabled(pt),this._validator=this._enabled?this.createValidator(pt):Ze,this._onChange&&this._onChange()}}validate(be){return this._validator(be)}registerOnValidatorChange(be){this._onChange=be}enabled(be){return null!=be}}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275dir=e.lG2({type:Ue,features:[e.TTD]}),Ue})();const jr={provide:fe,useExisting:(0,e.Gpc)(()=>er),multi:!0},lo={provide:fe,useExisting:(0,e.Gpc)(()=>Ai),multi:!0};let er=(()=>{class Ue extends Yn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=be=>W}enabled(be){return be}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(be,pt){2&be&&e.uIk("required",pt._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([jr]),e.qOj]}),Ue})(),Ai=(()=>{class Ue extends er{constructor(){super(...arguments),this.createValidator=be=>$}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(be,pt){2&be&&e.uIk("required",pt._enabled?"":null)},features:[e._Bn([lo]),e.qOj]}),Ue})();const Wt={provide:fe,useExisting:(0,e.Gpc)(()=>An),multi:!0};let An=(()=>{class Ue extends Yn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=be=>be,this.createValidator=be=>Me(be)}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(be,pt){2&be&&e.uIk("pattern",pt._enabled?pt.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([Wt]),e.qOj]}),Ue})(),Nn=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({imports:[Ht]}),Ue})(),Ci=(()=>{class Ue{}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({imports:[Nn]}),Ue})(),Jn=(()=>{class Ue{static withConfig(be){return{ngModule:Ue,providers:[{provide:yn,useValue:be.warnOnNgModelWithFormControl}]}}}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({imports:[Nn]}),Ue})();class ci extends Re{constructor(Se,be,pt){super(Ke(be),Ae(pt,be)),this.controls=Se,this._initObservables(),this._setUpdateStrategy(be),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Se){return this.controls[this._adjustIndex(Se)]}push(Se,be={}){this.controls.push(Se),this._registerControl(Se),this.updateValueAndValidity({emitEvent:be.emitEvent}),this._onCollectionChange()}insert(Se,be,pt={}){this.controls.splice(Se,0,be),this._registerControl(be),this.updateValueAndValidity({emitEvent:pt.emitEvent})}removeAt(Se,be={}){let pt=this._adjustIndex(Se);pt<0&&(pt=0),this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),this.controls.splice(pt,1),this.updateValueAndValidity({emitEvent:be.emitEvent})}setControl(Se,be,pt={}){let Qt=this._adjustIndex(Se);Qt<0&&(Qt=0),this.controls[Qt]&&this.controls[Qt]._registerOnCollectionChange(()=>{}),this.controls.splice(Qt,1),be&&(this.controls.splice(Qt,0,be),this._registerControl(be)),this.updateValueAndValidity({emitEvent:pt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Se,be={}){ot(this,0,Se),Se.forEach((pt,Qt)=>{tt(this,!1,Qt),this.at(Qt).setValue(pt,{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be)}patchValue(Se,be={}){null!=Se&&(Se.forEach((pt,Qt)=>{this.at(Qt)&&this.at(Qt).patchValue(pt,{onlySelf:!0,emitEvent:be.emitEvent})}),this.updateValueAndValidity(be))}reset(Se=[],be={}){this._forEachChild((pt,Qt)=>{pt.reset(Se[Qt],{onlySelf:!0,emitEvent:be.emitEvent})}),this._updatePristine(be),this._updateTouched(be),this.updateValueAndValidity(be)}getRawValue(){return this.controls.map(Se=>Se.getRawValue())}clear(Se={}){this.controls.length<1||(this._forEachChild(be=>be._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Se.emitEvent}))}_adjustIndex(Se){return Se<0?Se+this.length:Se}_syncPendingControls(){let Se=this.controls.reduce((be,pt)=>!!pt._syncPendingControls()||be,!1);return Se&&this.updateValueAndValidity({onlySelf:!0}),Se}_forEachChild(Se){this.controls.forEach((be,pt)=>{Se(be,pt)})}_updateValue(){this.value=this.controls.filter(Se=>Se.enabled||this.disabled).map(Se=>Se.value)}_anyControls(Se){return this.controls.some(be=>be.enabled&&Se(be))}_setUpControls(){this._forEachChild(Se=>this._registerControl(Se))}_allControlsDisabled(){for(const Se of this.controls)if(Se.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Se){Se.setParent(this),Se._registerOnCollectionChange(this._onCollectionChange)}_find(Se){var be;return null!==(be=this.at(Se))&&void 0!==be?be:null}}function Fi(Ue){return!!Ue&&(void 0!==Ue.asyncValidators||void 0!==Ue.validators||void 0!==Ue.updateOn)}let Hi=(()=>{class Ue{constructor(){this.useNonNullable=!1}get nonNullable(){const be=new Ue;return be.useNonNullable=!0,be}group(be,pt=null){const Qt=this._reduceControls(be);let mn={};return Fi(pt)?mn=pt:null!==pt&&(mn.validators=pt.validator,mn.asyncValidators=pt.asyncValidator),new lt(Qt,mn)}control(be,pt,Qt){let mn={};return this.useNonNullable?(Fi(pt)?mn=pt:(mn.validators=pt,mn.asyncValidators=Qt),new On(be,{...mn,nonNullable:!0})):new On(be,pt,Qt)}array(be,pt,Qt){const mn=be.map($n=>this._createControl($n));return new ci(mn,pt,Qt)}_reduceControls(be){const pt={};return Object.keys(be).forEach(Qt=>{pt[Qt]=this._createControl(be[Qt])}),pt}_createControl(be){return be instanceof On||be instanceof Re?be:Array.isArray(be)?this.control(be[0],be.length>1?be[1]:null,be.length>2?be[2]:null):this.control(be)}}return Ue.\u0275fac=function(be){return new(be||Ue)},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:Jn}),Ue})(),wr=(()=>{class Ue extends Hi{group(be,pt=null){return super.group(be,pt)}control(be,pt,Qt){return super.control(be,pt,Qt)}array(be,pt,Qt){return super.array(be,pt,Qt)}}return Ue.\u0275fac=function(){let Se;return function(pt){return(Se||(Se=e.n5z(Ue)))(pt||Ue)}}(),Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:Jn}),Ue})()},47957:(Je,pe,h)=>{"use strict";h.d(pe,{Bb:()=>st,XC:()=>P,ZL:()=>Qe});var e=h(12687),d=h(21281),A=h(83353),w=h(94650),g=h(3238),C=h(50727),T=h(77579),v=h(49770),R=h(56451),U=h(39646),_=h(54968),V=h(36895),Y=h(98184),X=h(67376),ne=h(40445),le=h(29521),te=h(84080),fe=h(24006),ue=h(59549),we=h(68675),E=h(63900),O=h(95698),H=h(39300),W=h(54004),$=h(18505),de=h(91005);const ye=["panel"];function xe(Z,ve){if(1&Z&&(w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA()),2&Z){const oe=ve.id,ge=w.oxw();w.Q6J("id",ge.id)("ngClass",ge._classList),w.uIk("aria-label",ge.ariaLabel||null)("aria-labelledby",ge._getPanelAriaLabelledby(oe))}}const Me=["*"];let Ze=0;class se{constructor(ve,oe){this.source=ve,this.option=oe}}const ze=(0,g.Kr)(class{}),he=new w.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function De(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let j=(()=>{class Z extends ze{constructor(oe,ge,ae,Oe){super(),this._changeDetectorRef=oe,this._elementRef=ge,this._activeOptionChanges=C.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new w.vpe,this.opened=new w.vpe,this.closed=new w.vpe,this.optionActivated=new w.vpe,this._classList={},this.id="mat-autocomplete-"+Ze++,this.inertGroups=Oe?.SAFARI||!1,this._autoActiveFirstOption=!!ae.autoActiveFirstOption,this._autoSelectActiveOption=!!ae.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(oe){this._autoActiveFirstOption=(0,d.Ig)(oe)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(oe){this._autoSelectActiveOption=(0,d.Ig)(oe)}set classList(oe){this._classList=oe&&oe.length?(0,d.du)(oe).reduce((ge,ae)=>(ge[ae]=!0,ge),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(oe=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[oe]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(oe){this.panel&&(this.panel.nativeElement.scrollTop=oe)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(oe){const ge=new se(this,oe);this.optionSelected.emit(ge)}_getPanelAriaLabelledby(oe){return this.ariaLabel?null:this.ariaLabelledby?(oe?oe+" ":"")+this.ariaLabelledby:oe}_setVisibilityClasses(oe){oe[this._visibleClass]=this.showPanel,oe[this._hiddenClass]=!this.showPanel}}return Z.\u0275fac=function(oe){return new(oe||Z)(w.Y36(w.sBO),w.Y36(w.SBq),w.Y36(he),w.Y36(A.t4))},Z.\u0275dir=w.lG2({type:Z,viewQuery:function(oe,ge){if(1&oe&&(w.Gf(w.Rgc,7),w.Gf(ye,5)),2&oe){let ae;w.iGM(ae=w.CRH())&&(ge.template=ae.first),w.iGM(ae=w.CRH())&&(ge.panel=ae.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[w.qOj]}),Z})(),P=(()=>{class Z extends j{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Z.\u0275fac=function(){let ve;return function(ge){return(ve||(ve=w.n5z(Z)))(ge||Z)}}(),Z.\u0275cmp=w.Xpm({type:Z,selectors:[["mat-autocomplete"]],contentQueries:function(oe,ge,ae){if(1&oe&&(w.Suo(ae,g.K7,5),w.Suo(ae,g.ey,5)),2&oe){let Oe;w.iGM(Oe=w.CRH())&&(ge.optionGroups=Oe),w.iGM(Oe=w.CRH())&&(ge.options=Oe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[w._Bn([{provide:g.HF,useExisting:Z}]),w.qOj],ngContentSelectors:Me,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(oe,ge){1&oe&&(w.F$t(),w.YNc(0,xe,3,4,"ng-template"))},dependencies:[V.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Z})();const q=new w.OlP("mat-autocomplete-scroll-strategy"),He={provide:q,deps:[Y.aV],useFactory:function Te(Z){return()=>Z.scrollStrategies.reposition()}},dt={provide:fe.JU,useExisting:(0,w.Gpc)(()=>Qe),multi:!0};let _t=(()=>{class Z{constructor(oe,ge,ae,Oe,Q,me,N,L,r,s,m){this._element=oe,this._overlay=ge,this._viewContainerRef=ae,this._zone=Oe,this._changeDetectorRef=Q,this._dir=N,this._formField=L,this._document=r,this._viewportRuler=s,this._defaults=m,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=C.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new T.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,v.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,we.O)(l),(0,E.w)(()=>(0,R.T)(...l.map(o=>o.onSelectionChange)))):this._zone.onStable.pipe((0,O.q)(1),(0,E.w)(()=>this.optionSelections))}),this._scrollStrategy=me}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(oe){this._autocompleteDisabled=(0,d.Ig)(oe)}ngAfterViewInit(){const oe=this._getWindow();typeof oe<"u"&&this._zone.runOutsideAngular(()=>oe.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(oe){oe.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const oe=this._getWindow();typeof oe<"u"&&oe.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,H.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,H.h)(()=>this._overlayAttached)):(0,U.of)()).pipe((0,W.U)(oe=>oe instanceof g.rN?oe:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,_.R)(this._document,"click"),(0,_.R)(this._document,"auxclick"),(0,_.R)(this._document,"touchend")).pipe((0,H.h)(oe=>{const ge=(0,A.sA)(oe),ae=this._formField?this._formField._elementRef.nativeElement:null,Oe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&ge!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ae||!ae.contains(ge))&&(!Oe||!Oe.contains(ge))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(ge)}))}writeValue(oe){Promise.resolve(null).then(()=>this._assignOptionValue(oe))}registerOnChange(oe){this._onChange=oe}registerOnTouched(oe){this._onTouched=oe}setDisabledState(oe){this._element.nativeElement.disabled=oe}_handleKeydown(oe){const ge=oe.keyCode,ae=(0,le.Vb)(oe);if(ge===le.hY&&!ae&&oe.preventDefault(),this.activeOption&&ge===le.K5&&this.panelOpen&&!ae)this.activeOption._selectViaInteraction(),this._resetActiveItem(),oe.preventDefault();else if(this.autocomplete){const Oe=this.autocomplete._keyManager.activeItem,Q=ge===le.LH||ge===le.JH;ge===le.Mf||Q&&!ae&&this.panelOpen?this.autocomplete._keyManager.onKeydown(oe):Q&&this._canOpen()&&this.openPanel(),(Q||this.autocomplete._keyManager.activeItem!==Oe)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(oe){let ge=oe.target,ae=ge.value;"number"===ge.type&&(ae=""==ae?null:parseFloat(ae)),this._previousValue!==ae&&(this._previousValue=ae,this._pendingAutoselectedOption=null,this._onChange(ae),this._canOpen()&&this._document.activeElement===oe.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(oe=!1){this._formField&&"auto"===this._formField.floatLabel&&(oe?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const oe=this._zone.onStable.pipe((0,O.q)(1)),ge=this.autocomplete.options.changes.pipe((0,$.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,de.g)(0));return(0,R.T)(oe,ge).pipe((0,E.w)(()=>(this._zone.run(()=>{const ae=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),ae!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,O.q)(1)).subscribe(ae=>this._setValueAndClose(ae))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(oe){const ge=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(oe):oe;this._updateNativeInputValue(ge??"")}_updateNativeInputValue(oe){this._formField?this._formField._control.value=oe:this._element.nativeElement.value=oe,this._previousValue=oe}_setValueAndClose(oe){const ge=oe?oe.source:this._pendingAutoselectedOption;ge&&(this._clearPreviousSelectedOption(ge),this._assignOptionValue(ge.value),this._onChange(ge.value),this.autocomplete._emitSelectEvent(ge),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(oe){this.autocomplete.options.forEach(ge=>{ge!==oe&&ge.selected&&ge.deselect()})}_attachOverlay(){let oe=this._overlayRef;var ge;oe?(this._positionStrategy.setOrigin(this._getConnectedElement()),oe.updateSize({width:this._getPanelWidth()})):(this._portal=new te.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(ge=this._formField)||void 0===ge?void 0:ge.getLabelId()}),oe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=oe,this._handleOverlayEvents(oe),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&oe&&oe.updateSize({width:this._getPanelWidth()})})),oe&&!oe.hasAttached()&&(oe.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ae=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ae!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var oe;return new Y.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(oe=this._defaults)||void 0===oe?void 0:oe.overlayPanelClass})}_getOverlayPosition(){const oe=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(oe),this._positionStrategy=oe,oe}_setStrategyPositions(oe){const ge=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ae=this._aboveClass,Oe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ae},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ae}];let Q;Q="above"===this.position?Oe:"below"===this.position?ge:[...ge,...Oe],oe.withPositions(Q)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const oe=this.autocomplete;oe.autoActiveFirstOption?oe._keyManager.setFirstItemActive():oe._keyManager.setActiveItem(-1)}_canOpen(){const oe=this._element.nativeElement;return!oe.readOnly&&!oe.disabled&&!this._autocompleteDisabled}_getWindow(){var oe;return(null===(oe=this._document)||void 0===oe?void 0:oe.defaultView)||window}_scrollToOption(oe){const ge=this.autocomplete,ae=(0,g.CB)(oe,ge.options,ge.optionGroups);if(0===oe&&1===ae)ge._setScrollTop(0);else if(ge.panel){const Oe=ge.options.toArray()[oe];if(Oe){const Q=Oe._getHostElement(),me=(0,g.jH)(Q.offsetTop,Q.offsetHeight,ge._getScrollTop(),ge.panel.nativeElement.offsetHeight);ge._setScrollTop(me)}}}_handleOverlayEvents(oe){oe.keydownEvents().subscribe(ge=>{var ae;(ge.keyCode===le.hY&&!(0,le.Vb)(ge)||ge.keyCode===le.LH&&(0,le.Vb)(ge,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(ae=this._valueBeforeAutoSelection)&&void 0!==ae?ae:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),ge.stopPropagation(),ge.preventDefault())}),oe.outsidePointerEvents().subscribe()}}return Z.\u0275fac=function(oe){return new(oe||Z)(w.Y36(w.SBq),w.Y36(Y.aV),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(q),w.Y36(ne.Is,8),w.Y36(ue.G_,9),w.Y36(V.K0,8),w.Y36(X.rL),w.Y36(he,8))},Z.\u0275dir=w.lG2({type:Z,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[w.TTD]}),Z})(),Qe=(()=>{class Z extends _t{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Z.\u0275fac=function(){let ve;return function(ge){return(ve||(ve=w.n5z(Z)))(ge||Z)}}(),Z.\u0275dir=w.lG2({type:Z,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(oe,ge){1&oe&&w.NdJ("focusin",function(){return ge._handleFocus()})("blur",function(){return ge._onTouched()})("input",function(Oe){return ge._handleInput(Oe)})("keydown",function(Oe){return ge._handleKeydown(Oe)})("click",function(){return ge._handleClick()}),2&oe&&w.uIk("autocomplete",ge.autocompleteAttribute)("role",ge.autocompleteDisabled?null:"combobox")("aria-autocomplete",ge.autocompleteDisabled?null:"list")("aria-activedescendant",ge.panelOpen&&ge.activeOption?ge.activeOption.id:null)("aria-expanded",ge.autocompleteDisabled?null:ge.panelOpen.toString())("aria-owns",ge.autocompleteDisabled||!ge.panelOpen||null==ge.autocomplete?null:ge.autocomplete.id)("aria-haspopup",ge.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[w._Bn([dt]),w.qOj]}),Z})(),st=(()=>{class Z{}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275mod=w.oAB({type:Z}),Z.\u0275inj=w.cJS({providers:[He],imports:[Y.U8,g.Ng,g.BQ,V.ez,X.ZD,g.Ng,g.BQ]}),Z})()},42673:(Je,pe,h)=>{"use strict";h.d(pe,{g:()=>R,k:()=>v});var e=h(94650),d=h(3238),A=h(12687),w=h(21281);let g=0;const C=(0,d.Id)(class{}),T="mat-badge-content";let v=(()=>{class U extends C{constructor(V,Y,X,ne,le){super(),this._ngZone=V,this._elementRef=Y,this._ariaDescriber=X,this._renderer=ne,this._animationMode=le,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=g++,this._isInitialized=!1}get color(){return this._color}set color(V){this._setColor(V),this._color=V}get overlap(){return this._overlap}set overlap(V){this._overlap=(0,w.Ig)(V)}get content(){return this._content}set content(V){this._updateRenderedContent(V)}get description(){return this._description}set description(V){this._updateHostAriaDescription(V)}get hidden(){return this._hidden}set hidden(V){this._hidden=(0,w.Ig)(V)}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 V=this._renderer.createElement("span"),Y="mat-badge-active";return V.setAttribute("id",`mat-badge-content-${this._id}`),V.setAttribute("aria-hidden","true"),V.classList.add(T),"NoopAnimations"===this._animationMode&&V.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(V),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{V.classList.add(Y)})}):V.classList.add(Y),V}_updateRenderedContent(V){const Y=`${V??""}`.trim();this._isInitialized&&Y&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=Y),this._content=Y}_updateHostAriaDescription(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),V&&this._ariaDescriber.describe(this._elementRef.nativeElement,V),this._description=V}_setColor(V){const Y=this._elementRef.nativeElement.classList;Y.remove(`mat-badge-${this._color}`),V&&Y.add(`mat-badge-${V}`)}_clearExistingBadges(){const V=this._elementRef.nativeElement.querySelectorAll(`:scope > .${T}`);for(const Y of Array.from(V))Y!==this._badgeElement&&Y.remove()}}return U.\u0275fac=function(V){return new(V||U)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(A.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(V,Y){2&V&&e.ekj("mat-badge-overlap",Y.overlap)("mat-badge-above",Y.isAbove())("mat-badge-below",!Y.isAbove())("mat-badge-before",!Y.isAfter())("mat-badge-after",Y.isAfter())("mat-badge-small","small"===Y.size)("mat-badge-medium","medium"===Y.size)("mat-badge-large","large"===Y.size)("mat-badge-hidden",Y.hidden||!Y.content)("mat-badge-disabled",Y.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:[e.qOj]}),U})(),R=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[A.rt,d.BQ,d.BQ]}),U})()},4859:(Je,pe,h)=>{"use strict";h.d(pe,{lW:()=>U,ot:()=>V});var e=h(94650),d=h(3238),A=h(12687);const w=["mat-button",""],g=["*"],v=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],R=(0,d.pj)((0,d.Id)((0,d.Kr)(class{constructor(Y){this._elementRef=Y}})));let U=(()=>{class Y extends R{constructor(ne,le,te){super(ne),this._focusMonitor=le,this._animationMode=te,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const fe of v)this._hasHostAttributes(fe)&&this._getHostElement().classList.add(fe);ne.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(ne,le){ne?this._focusMonitor.focusVia(this._getHostElement(),ne,le):this._getHostElement().focus(le)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ne){return ne.some(le=>this._getHostElement().hasAttribute(le))}}return Y.\u0275fac=function(ne){return new(ne||Y)(e.Y36(e.SBq),e.Y36(A.tE),e.Y36(e.QbO,8))},Y.\u0275cmp=e.Xpm({type:Y,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(ne,le){if(1&ne&&e.Gf(d.wG,5),2&ne){let te;e.iGM(te=e.CRH())&&(le.ripple=te.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ne,le){2&ne&&(e.uIk("disabled",le.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===le._animationMode)("mat-button-disabled",le.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:g,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(ne,le){1&ne&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&ne&&(e.xp6(2),e.ekj("mat-button-ripple-round",le.isRoundButton||le.isIconButton),e.Q6J("matRippleDisabled",le._isRippleDisabled())("matRippleCentered",le.isIconButton)("matRippleTrigger",le._getHostElement()))},dependencies:[d.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),Y})(),V=(()=>{class Y{}return Y.\u0275fac=function(ne){return new(ne||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[d.si,d.BQ,d.BQ]}),Y})()},73546:(Je,pe,h)=>{"use strict";h.d(pe,{$j:()=>_,QW:()=>H,a8:()=>we,dk:()=>E,dn:()=>R,kc:()=>ue,n5:()=>U});var e=h(94650),d=h(3238);const A=["*",[["mat-card-footer"]]],w=["*","mat-card-footer"],g=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],C=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let R=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),W})(),U=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),W})(),_=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),W})(),ue=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275dir=e.lG2({type:W,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),W})(),we=(()=>{class W{constructor(de){this._animationMode=de}}return W.\u0275fac=function(de){return new(de||W)(e.Y36(e.QbO,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(de,ye){2&de&&e.ekj("_mat-animation-noopable","NoopAnimations"===ye._animationMode)},exportAs:["matCard"],ngContentSelectors:w,decls:2,vars:0,template:function(de,ye){1&de&&(e.F$t(A),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),W})(),E=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:C,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(de,ye){1&de&&(e.F$t(g),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),W})(),H=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[d.BQ,d.BQ]}),W})()},56709:(Je,pe,h)=>{"use strict";h.d(pe,{oG:()=>ue,p9:()=>H});var e=h(12687),d=h(21281),A=h(94650),w=h(24006),g=h(3238),C=h(49643);const T=["input"],v=["label"],R=function(W){return{enterDuration:W}},U=["*"],_=new A.OlP("mat-checkbox-default-options",{providedIn:"root",factory:V});function V(){return{color:"accent",clickAction:"check-indeterminate"}}let Y=0;const X=V(),ne={provide:w.JU,useExisting:(0,A.Gpc)(()=>ue),multi:!0};class le{}const te=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(W){this._elementRef=W}}))));let fe=(()=>{class W extends te{constructor(de,ye,xe,Me,Ze,se,ze){super(ye),this._changeDetectorRef=xe,this._ngZone=Me,this._animationMode=se,this._options=ze,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new A.vpe,this.indeterminateChange=new A.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||X,this.color=this.defaultColor=this._options.color||X.color,this.tabIndex=parseInt(Ze)||0,this.id=this._uniqueId=`${de}${++Y}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(de){this._required=(0,d.Ig)(de)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(de){const ye=(0,d.Ig)(de);ye!=this.checked&&(this._checked=ye,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(de){const ye=(0,d.Ig)(de);ye!==this.disabled&&(this._disabled=ye,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(de){const ye=de!=this._indeterminate;this._indeterminate=(0,d.Ig)(de),ye&&(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(de){this.checked=!!de}registerOnChange(de){this._controlValueAccessorChangeFn=de}registerOnTouched(de){this._onTouched=de}setDisabledState(de){this.disabled=de}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(de){let ye=this._currentCheckState,xe=this._getAnimationTargetElement();if(ye!==de&&xe&&(this._currentAnimationClass&&xe.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ye,de),this._currentCheckState=de,this._currentAnimationClass.length>0)){xe.classList.add(this._currentAnimationClass);const Me=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{xe.classList.remove(Me)},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(){var de;const ye=null===(de=this._options)||void 0===de?void 0:de.clickAction;this.disabled||"noop"===ye?!this.disabled&&"noop"===ye&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ye&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(de){de.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(de,ye){if("NoopAnimations"===this._animationMode)return"";switch(de){case 0:if(1===ye)return this._animationClasses.uncheckedToChecked;if(3==ye)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===ye?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===ye?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===ye?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(de){const ye=this._inputElement;ye&&(ye.nativeElement.indeterminate=de)}}return W.\u0275fac=function(de){A.$Z()},W.\u0275dir=A.lG2({type:W,viewQuery:function(de,ye){if(1&de&&(A.Gf(T,5),A.Gf(v,5),A.Gf(g.wG,5)),2&de){let xe;A.iGM(xe=A.CRH())&&(ye._inputElement=xe.first),A.iGM(xe=A.CRH())&&(ye._labelElement=xe.first),A.iGM(xe=A.CRH())&&(ye.ripple=xe.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:[A.qOj]}),W})(),ue=(()=>{class W extends fe{constructor(de,ye,xe,Me,Ze,se,ze){super("mat-checkbox-",de,ye,Me,Ze,se,ze),this._focusMonitor=xe,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(de){const ye=new le;return ye.source=this,ye.checked=de,ye}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(de=>{de||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(de){de.stopPropagation(),super._handleInputClick()}focus(de,ye){de?this._focusMonitor.focusVia(this._inputElement,de,ye):this._inputElement.nativeElement.focus(ye)}}return W.\u0275fac=function(de){return new(de||W)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(e.tE),A.Y36(A.R0b),A.$8M("tabindex"),A.Y36(A.QbO,8),A.Y36(_,8))},W.\u0275cmp=A.Xpm({type:W,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(de,ye){2&de&&(A.Ikx("id",ye.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),A.ekj("mat-checkbox-indeterminate",ye.indeterminate)("mat-checkbox-checked",ye.checked)("mat-checkbox-disabled",ye.disabled)("mat-checkbox-label-before","before"==ye.labelPosition)("_mat-animation-noopable","NoopAnimations"===ye._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[A._Bn([ne]),A.qOj],ngContentSelectors:U,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(de,ye){if(1&de&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(Me){return ye._onInteractionEvent(Me)})("click",function(Me){return ye._onInputClick(Me)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.qZA(),A._UZ(7,"span",7),A.TgZ(8,"span",8),A.O4$(),A.TgZ(9,"svg",9),A._UZ(10,"path",10),A.qZA(),A.kcU(),A._UZ(11,"span",11),A.qZA()(),A.TgZ(12,"span",12,13),A.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),A.TgZ(14,"span",14),A._uU(15,"\xa0"),A.qZA(),A.Hsn(16),A.qZA()()),2&de){const xe=A.MAs(1),Me=A.MAs(13);A.uIk("for",ye.inputId),A.xp6(2),A.ekj("mat-checkbox-inner-container-no-side-margin",!Me.textContent||!Me.textContent.trim()),A.xp6(1),A.Q6J("id",ye.inputId)("required",ye.required)("checked",ye.checked)("disabled",ye.disabled)("tabIndex",ye.tabIndex),A.uIk("value",ye.value)("name",ye.name)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby)("aria-checked",ye._getAriaChecked())("aria-describedby",ye.ariaDescribedby),A.xp6(2),A.Q6J("matRippleTrigger",xe)("matRippleDisabled",ye._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",A.VKq(19,R,"NoopAnimations"===ye._animationMode?0:150))}},dependencies:[g.wG,C.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);position:relative}.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}.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%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),W})(),O=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275mod=A.oAB({type:W}),W.\u0275inj=A.cJS({}),W})(),H=(()=>{class W{}return W.\u0275fac=function(de){return new(de||W)},W.\u0275mod=A.oAB({type:W}),W.\u0275inj=A.cJS({imports:[g.si,g.BQ,C.Q8,O,g.BQ,O]}),W})()},77331:(Je,pe,h)=>{"use strict";h.d(pe,{HS:()=>de,Hi:()=>P,oH:()=>De,qn:()=>ze});var e=h(29521),d=h(94650),A=h(3238),w=h(21281),g=h(83353),C=h(36895),T=h(77579),v=h(56451),R=h(95698),U=h(82722),_=h(68675),V=h(12687),Y=h(40445),X=h(95017),ne=h(24006),le=h(59549);const te=["*"],ue=new d.OlP("MatChipRemove"),we=new d.OlP("MatChipAvatar"),E=new d.OlP("MatChipTrailingIcon");class O{constructor(ce){this._elementRef=ce}}const H=(0,A.sb)((0,A.pj)((0,A.Kr)(O),"primary"),-1);let de=(()=>{class G extends H{constructor(q,Te,He,dt,et,_t,Qe,st){super(q),this._ngZone=Te,this._changeDetectorRef=et,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new T.x,this._onBlur=new T.x,this.selectionChange=new d.vpe,this.destroyed=new d.vpe,this.removed=new d.vpe,this._addHostClassName(),this._chipRippleTarget=_t.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new A.IR(this,Te,this._chipRippleTarget,He),this._chipRipple.setupTriggerEvents(q),this.rippleConfig=dt||{},this._animationsDisabled="NoopAnimations"===Qe,this.tabIndex=null!=st&&parseInt(st)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(q){const Te=(0,w.Ig)(q);Te!==this._selected&&(this._selected=Te,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(q){this._value=q}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(q){this._selectable=(0,w.Ig)(q)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q)}get removable(){return this._removable}set removable(q){this._removable=(0,w.Ig)(q)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const q="mat-basic-chip",Te=this._elementRef.nativeElement;Te.hasAttribute(q)||Te.tagName.toLowerCase()===q?Te.classList.add(q):Te.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(q=!1){return this._selected=!this.selected,this._dispatchSelectionChange(q),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(q){this.disabled&&q.preventDefault()}_handleKeydown(q){if(!this.disabled)switch(q.keyCode){case e.yY:case e.ZH:this.remove(),q.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),q.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(q=!1){this.selectionChange.emit({source:this,isUserInput:q,selected:this._selected})}}return G.\u0275fac=function(q){return new(q||G)(d.Y36(d.SBq),d.Y36(d.R0b),d.Y36(g.t4),d.Y36(A.Y2,8),d.Y36(d.sBO),d.Y36(C.K0),d.Y36(d.QbO,8),d.$8M("tabindex"))},G.\u0275dir=d.lG2({type:G,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(q,Te,He){if(1&q&&(d.Suo(He,we,5),d.Suo(He,E,5),d.Suo(He,ue,5)),2&q){let dt;d.iGM(dt=d.CRH())&&(Te.avatar=dt.first),d.iGM(dt=d.CRH())&&(Te.trailingIcon=dt.first),d.iGM(dt=d.CRH())&&(Te.removeIcon=dt.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(q,Te){1&q&&d.NdJ("click",function(dt){return Te._handleClick(dt)})("keydown",function(dt){return Te._handleKeydown(dt)})("focus",function(){return Te.focus()})("blur",function(){return Te._blur()}),2&q&&(d.uIk("tabindex",Te.disabled?null:Te.tabIndex)("role",Te.role)("disabled",Te.disabled||null)("aria-disabled",Te.disabled.toString())("aria-selected",Te.ariaSelected),d.ekj("mat-chip-selected",Te.selected)("mat-chip-with-avatar",Te.avatar)("mat-chip-with-trailing-icon",Te.trailingIcon||Te.removeIcon)("mat-chip-disabled",Te.disabled)("_mat-animation-noopable",Te._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[d.qOj]}),G})();const xe=new d.OlP("mat-chips-default-options"),Me=(0,A.FD)(class{constructor(G,ce,q,Te){this._defaultErrorStateMatcher=G,this._parentForm=ce,this._parentFormGroup=q,this.ngControl=Te,this.stateChanges=new T.x}});let Ze=0;class se{constructor(ce,q){this.source=ce,this.value=q}}let ze=(()=>{class G extends Me{constructor(q,Te,He,dt,et,_t,Qe){super(_t,dt,et,Qe),this._elementRef=q,this._changeDetectorRef=Te,this._dir=He,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new T.x,this._uid="mat-chip-list-"+Ze++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(st,Z)=>st===Z,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new d.vpe,this.valueChange=new d.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var q,Te;return this.multiple?(null===(q=this._selectionModel)||void 0===q?void 0:q.selected)||[]:null===(Te=this._selectionModel)||void 0===Te?void 0:Te.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(q){this._explicitRole=q}get multiple(){return this._multiple}set multiple(q){this._multiple=(0,w.Ig)(q),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(q){this._compareWith=q,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(q){this.writeValue(q),this._value=q}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var q,Te,He,dt;return null!==(q=null!==(Te=this._required)&&void 0!==Te?Te:null===(He=this.ngControl)||void 0===He||null===(dt=He.control)||void 0===dt?void 0:dt.hasValidator(ne.kI.required))&&void 0!==q&&q}set required(q){this._required=(0,w.Ig)(q),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(q){this._placeholder=q,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q),this._syncChipsState()}get selectable(){return this._selectable}set selectable(q){this._selectable=(0,w.Ig)(q),this.chips&&this.chips.forEach(Te=>Te.chipListSelectable=this._selectable)}set tabIndex(q){this._userTabIndex=q,this._tabIndex=q}get chipSelectionChanges(){return(0,v.T)(...this.chips.map(q=>q.selectionChange))}get chipFocusChanges(){return(0,v.T)(...this.chips.map(q=>q._onFocus))}get chipBlurChanges(){return(0,v.T)(...this.chips.map(q=>q._onBlur))}get chipRemoveChanges(){return(0,v.T)(...this.chips.map(q=>q.destroyed))}ngAfterContentInit(){this._keyManager=new V.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,U.R)(this._destroyed)).subscribe(q=>this._keyManager.withHorizontalOrientation(q)),this._keyManager.tabOut.pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,_.O)(null),(0,U.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new X.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(q){this._chipInput=q,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",q.id)}setDescribedByIds(q){q.length?this._elementRef.nativeElement.setAttribute("aria-describedby",q.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(q){this.chips&&this._setSelectionByValue(q,!1)}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this.stateChanges.next()}onContainerClick(q){this._originatesFromChip(q)||this.focus()}focus(q){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(q),this.stateChanges.next()))}_focusInput(q){this._chipInput&&this._chipInput.focus(q)}_keydown(q){const Te=q.target;Te&&Te.classList.contains("mat-chip")&&(this._keyManager.onKeydown(q),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const q=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(q)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(q){return q>=0&&qHe.deselect()),Array.isArray(q))q.forEach(He=>this._selectValue(He,Te)),this._sortValues();else{const He=this._selectValue(q,Te);He&&Te&&this._keyManager.setActiveItem(He)}}_selectValue(q,Te=!0){const He=this.chips.find(dt=>null!=dt.value&&this._compareWith(dt.value,q));return He&&(Te?He.selectViaInteraction():He.select(),this._selectionModel.select(He)),He}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(q){this._selectionModel.clear(),this.chips.forEach(Te=>{Te!==q&&Te.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(q=>{q.selected&&this._selectionModel.select(q)}),this.stateChanges.next())}_propagateChanges(q){let Te=null;Te=Array.isArray(this.selected)?this.selected.map(He=>He.value):this.selected?this.selected.value:q,this._value=Te,this.change.emit(new se(this,Te)),this.valueChange.emit(Te),this._onChange(Te),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(q=>{q.source.selected?this._selectionModel.select(q.source):this._selectionModel.deselect(q.source),this.multiple||this.chips.forEach(Te=>{!this._selectionModel.isSelected(Te)&&Te.selected&&Te.deselect()}),q.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(q=>{let Te=this.chips.toArray().indexOf(q.chip);this._isValidIndex(Te)&&this._keyManager.updateActiveItem(Te),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(q=>{const Te=q.chip,He=this.chips.toArray().indexOf(q.chip);this._isValidIndex(He)&&Te._hasFocus&&(this._lastDestroyedChipIndex=He)})}_originatesFromChip(q){let Te=q.target;for(;Te&&Te!==this._elementRef.nativeElement;){if(Te.classList.contains("mat-chip"))return!0;Te=Te.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(q=>q._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(q=>{q._chipListDisabled=this._disabled,q._chipListMultiple=this.multiple})}}return G.\u0275fac=function(q){return new(q||G)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(Y.Is,8),d.Y36(ne.F,8),d.Y36(ne.sg,8),d.Y36(A.rD),d.Y36(ne.a5,10))},G.\u0275cmp=d.Xpm({type:G,selectors:[["mat-chip-list"]],contentQueries:function(q,Te,He){if(1&q&&d.Suo(He,de,5),2&q){let dt;d.iGM(dt=d.CRH())&&(Te.chips=dt)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(q,Te){1&q&&d.NdJ("focus",function(){return Te.focus()})("blur",function(){return Te._blur()})("keydown",function(dt){return Te._keydown(dt)}),2&q&&(d.Ikx("id",Te._uid),d.uIk("tabindex",Te.disabled?null:Te._tabIndex)("aria-required",Te.role?Te.required:null)("aria-disabled",Te.disabled.toString())("aria-invalid",Te.errorState)("aria-multiselectable",Te.multiple)("role",Te.role)("aria-orientation",Te.ariaOrientation),d.ekj("mat-chip-list-disabled",Te.disabled)("mat-chip-list-invalid",Te.errorState)("mat-chip-list-required",Te.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[d._Bn([{provide:le.Eo,useExisting:G}]),d.qOj],ngContentSelectors:te,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(q,Te){1&q&&(d.F$t(),d.TgZ(0,"div",0),d.Hsn(1),d.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),G})(),he=0,De=(()=>{class G{constructor(q,Te){this._elementRef=q,this._defaultOptions=Te,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new d.vpe,this.placeholder="",this.id="mat-chip-list-input-"+he++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(q){q&&(this._chipList=q,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(q){this._addOnBlur=(0,w.Ig)(q)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(q){this._disabled=(0,w.Ig)(q)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(q){if(q){if(q.keyCode===e.Mf&&!(0,e.Vb)(q,"shiftKey")&&this._chipList._allowFocusEscape(),q.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void q.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(q)}_keyup(q){!this._focusLastChipOnBackspace&&q.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,q.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(q){!this.inputElement.value&&!!q&&this._chipList._keydown(q),(!q||this._isSeparatorKey(q))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),q?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(q){this.inputElement.focus(q)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(q){return!(0,e.Vb)(q)&&new Set(this.separatorKeyCodes).has(q.keyCode)}}return G.\u0275fac=function(q){return new(q||G)(d.Y36(d.SBq),d.Y36(xe))},G.\u0275dir=d.lG2({type:G,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(q,Te){1&q&&d.NdJ("keydown",function(dt){return Te._keydown(dt)})("keyup",function(dt){return Te._keyup(dt)})("blur",function(){return Te._blur()})("focus",function(){return Te._focus()})("input",function(){return Te._onInput()}),2&q&&(d.Ikx("id",Te.id),d.uIk("disabled",Te.disabled||null)("placeholder",Te.placeholder||null)("aria-invalid",Te._chipList&&Te._chipList.ngControl?Te._chipList.ngControl.invalid:null)("aria-required",Te._chipList&&Te._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[d.TTD]}),G})(),P=(()=>{class G{}return G.\u0275fac=function(q){return new(q||G)},G.\u0275mod=d.oAB({type:G}),G.\u0275inj=d.cJS({providers:[A.rD,{provide:xe,useValue:{separatorKeyCodes:[e.K5]}}],imports:[A.BQ]}),G})()},3238:(Je,pe,h)=>{"use strict";h.d(pe,{yN:()=>fe,mZ:()=>ue,_A:()=>De,rD:()=>et,sG:()=>j,K7:()=>a,HF:()=>o,Y2:()=>L,BQ:()=>O,X2:()=>_t,uc:()=>Z,XK:()=>He,ey:()=>Pt,Ng:()=>xt,rN:()=>M,nP:()=>m,us:()=>l,wG:()=>r,si:()=>s,LF:()=>ce,IR:()=>me,CB:()=>Ut,jH:()=>ln,pj:()=>ye,Kr:()=>xe,Id:()=>de,FD:()=>Ze,dB:()=>se,sb:()=>Me,E0:()=>Qe});var e=h(94650),d=h(12687),A=h(40445),g=h(36895),C=h(83353),T=h(21281),v=h(69751),R=h(77579),U=h(68675),_=h(29521);function X(gt,Ge){if(1>&&e._UZ(0,"mat-pseudo-checkbox",4),2>){const Ie=e.oxw();e.Q6J("state",Ie.selected?"checked":"unchecked")("disabled",Ie.disabled)}}function ne(gt,Ge){if(1>&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2>){const Ie=e.oxw();e.xp6(1),e.hij("(",Ie.group.label,")")}}const le=["*"];let fe=(()=>{class gt{}return gt.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",gt.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",gt.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",gt.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",gt})(),ue=(()=>{class gt{}return gt.COMPLEX="375ms",gt.ENTERING="225ms",gt.EXITING="195ms",gt})();const E=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function we(){return!0}});let O=(()=>{class gt{constructor(Ie,Xe,Ke){this._sanityChecks=Xe,this._document=Ke,this._hasDoneGlobalChecks=!1,Ie._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Ie){return!(0,C.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Ie])}}return gt.\u0275fac=function(Ie){return new(Ie||gt)(e.LFG(d.qm),e.LFG(E,8),e.LFG(g.K0))},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({imports:[A.vT,A.vT]}),gt})();function de(gt){return class extends gt{constructor(...Ge){super(...Ge),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ge){this._disabled=(0,T.Ig)(Ge)}}}function ye(gt,Ge){return class extends gt{constructor(...Ie){super(...Ie),this.defaultColor=Ge,this.color=Ge}get color(){return this._color}set color(Ie){const Xe=Ie||this.defaultColor;Xe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Xe&&this._elementRef.nativeElement.classList.add(`mat-${Xe}`),this._color=Xe)}}}function xe(gt){return class extends gt{constructor(...Ge){super(...Ge),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ge){this._disableRipple=(0,T.Ig)(Ge)}}}function Me(gt,Ge=0){return class extends gt{constructor(...Ie){super(...Ie),this._tabIndex=Ge,this.defaultTabIndex=Ge}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Ie){this._tabIndex=null!=Ie?(0,T.su)(Ie):this.defaultTabIndex}}}function Ze(gt){return class extends gt{constructor(...Ge){super(...Ge),this.errorState=!1}updateErrorState(){const Ge=this.errorState,ke=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ke!==Ge&&(this.errorState=ke,this.stateChanges.next())}}}function se(gt){return class extends gt{constructor(...Ge){super(...Ge),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v.y(Ie=>{this._isInitialized?this._notifySubscriber(Ie):this._pendingSubscribers.push(Ie)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ge){Ge.next(),Ge.complete()}}}const ze=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function he(){return(0,e.f3M)(e.soG)}});class De{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Ge){return this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:null}deserialize(Ge){return null==Ge||this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:this.invalid()}setLocale(Ge){this.locale=Ge,this._localeChanges.next()}compareDate(Ge,Ie){return this.getYear(Ge)-this.getYear(Ie)||this.getMonth(Ge)-this.getMonth(Ie)||this.getDate(Ge)-this.getDate(Ie)}sameDate(Ge,Ie){if(Ge&&Ie){let Xe=this.isValid(Ge),Ke=this.isValid(Ie);return Xe&&Ke?!this.compareDate(Ge,Ie):Xe==Ke}return Ge==Ie}clampDate(Ge,Ie,Xe){return Ie&&this.compareDate(Ge,Ie)<0?Ie:Xe&&this.compareDate(Ge,Xe)>0?Xe:Ge}}const j=new e.OlP("mat-date-formats"),P=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function G(gt,Ge){const Ie=Array(gt);for(let Xe=0;Xe{class gt extends De{constructor(Ie,Xe){super(),this.useUtcForDisplay=!1,super.setLocale(Ie)}getYear(Ie){return Ie.getFullYear()}getMonth(Ie){return Ie.getMonth()}getDate(Ie){return Ie.getDate()}getDayOfWeek(Ie){return Ie.getDay()}getMonthNames(Ie){const Xe=new Intl.DateTimeFormat(this.locale,{month:Ie,timeZone:"utc"});return G(12,Ke=>this._format(Xe,new Date(2017,Ke,1)))}getDateNames(){const Ie=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return G(31,Xe=>this._format(Ie,new Date(2017,0,Xe+1)))}getDayOfWeekNames(Ie){const Xe=new Intl.DateTimeFormat(this.locale,{weekday:Ie,timeZone:"utc"});return G(7,Ke=>this._format(Xe,new Date(2017,0,Ke+1)))}getYearName(Ie){const Xe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Xe,Ie)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Ie){return this.getDate(this._createDateWithOverflow(this.getYear(Ie),this.getMonth(Ie)+1,0))}clone(Ie){return new Date(Ie.getTime())}createDate(Ie,Xe,Ke){let ke=this._createDateWithOverflow(Ie,Xe,Ke);return ke.getMonth(),ke}today(){return new Date}parse(Ie,Xe){return"number"==typeof Ie?new Date(Ie):Ie?new Date(Date.parse(Ie)):null}format(Ie,Xe){if(!this.isValid(Ie))throw Error("NativeDateAdapter: Cannot format invalid date.");const Ke=new Intl.DateTimeFormat(this.locale,{...Xe,timeZone:"utc"});return this._format(Ke,Ie)}addCalendarYears(Ie,Xe){return this.addCalendarMonths(Ie,12*Xe)}addCalendarMonths(Ie,Xe){let Ke=this._createDateWithOverflow(this.getYear(Ie),this.getMonth(Ie)+Xe,this.getDate(Ie));return this.getMonth(Ke)!=((this.getMonth(Ie)+Xe)%12+12)%12&&(Ke=this._createDateWithOverflow(this.getYear(Ke),this.getMonth(Ke),0)),Ke}addCalendarDays(Ie,Xe){return this._createDateWithOverflow(this.getYear(Ie),this.getMonth(Ie),this.getDate(Ie)+Xe)}toIso8601(Ie){return[Ie.getUTCFullYear(),this._2digit(Ie.getUTCMonth()+1),this._2digit(Ie.getUTCDate())].join("-")}deserialize(Ie){if("string"==typeof Ie){if(!Ie)return null;if(P.test(Ie)){let Xe=new Date(Ie);if(this.isValid(Xe))return Xe}}return super.deserialize(Ie)}isDateInstance(Ie){return Ie instanceof Date}isValid(Ie){return!isNaN(Ie.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Ie,Xe,Ke){const ke=new Date;return ke.setFullYear(Ie,Xe,Ke),ke.setHours(0,0,0,0),ke}_2digit(Ie){return("00"+Ie).slice(-2)}_format(Ie,Xe){const Ke=new Date;return Ke.setUTCFullYear(Xe.getFullYear(),Xe.getMonth(),Xe.getDate()),Ke.setUTCHours(Xe.getHours(),Xe.getMinutes(),Xe.getSeconds(),Xe.getMilliseconds()),Ie.format(Ke)}}return gt.\u0275fac=function(Ie){return new(Ie||gt)(e.LFG(ze,8),e.LFG(C.t4))},gt.\u0275prov=e.Yz7({token:gt,factory:gt.\u0275fac}),gt})();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 Te=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({providers:[{provide:De,useClass:ce}]}),gt})(),He=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({providers:[{provide:j,useValue:q}],imports:[Te]}),gt})(),et=(()=>{class gt{isErrorState(Ie,Xe){return!!(Ie&&Ie.invalid&&(Ie.touched||Xe&&Xe.submitted))}}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275prov=e.Yz7({token:gt,factory:gt.\u0275fac,providedIn:"root"}),gt})(),_t=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275dir=e.lG2({type:gt,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),gt})();function Qe(gt,Ge,Ie="mat"){gt.changes.pipe((0,U.O)(gt)).subscribe(({length:Xe})=>{st(Ge,`${Ie}-2-line`,!1),st(Ge,`${Ie}-3-line`,!1),st(Ge,`${Ie}-multi-line`,!1),2===Xe||3===Xe?st(Ge,`${Ie}-${Xe}-line`,!0):Xe>3&&st(Ge,`${Ie}-multi-line`,!0)})}function st(gt,Ge,Ie){gt.nativeElement.classList.toggle(Ge,Ie)}let Z=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({imports:[O,O]}),gt})();class ve{constructor(Ge,Ie,Xe,Ke=!1){this._renderer=Ge,this.element=Ie,this.config=Xe,this._animationForciblyDisabledThroughCss=Ke,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const oe={enterDuration:225,exitDuration:150},ae=(0,C.i$)({passive:!0}),Oe=["mousedown","touchstart"],Q=["mouseup","mouseleave","touchend","touchcancel"];class me{constructor(Ge,Ie,Xe,Ke){this._target=Ge,this._ngZone=Ie,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ke.isBrowser&&(this._containerElement=(0,T.fI)(Xe))}fadeInRipple(Ge,Ie,Xe={}){const Ke=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ke={...oe,...Xe.animation};Xe.centered&&(Ge=Ke.left+Ke.width/2,Ie=Ke.top+Ke.height/2);const Ae=Xe.radius||function N(gt,Ge,Ie){const Xe=Math.max(Math.abs(gt-Ie.left),Math.abs(gt-Ie.right)),Ke=Math.max(Math.abs(Ge-Ie.top),Math.abs(Ge-Ie.bottom));return Math.sqrt(Xe*Xe+Ke*Ke)}(Ge,Ie,Ke),Ee=Ge-Ke.left,We=Ie-Ke.top,tt=ke.enterDuration,ot=document.createElement("div");ot.classList.add("mat-ripple-element"),ot.style.left=Ee-Ae+"px",ot.style.top=We-Ae+"px",ot.style.height=2*Ae+"px",ot.style.width=2*Ae+"px",null!=Xe.color&&(ot.style.backgroundColor=Xe.color),ot.style.transitionDuration=`${tt}ms`,this._containerElement.appendChild(ot);const Re=window.getComputedStyle(ot),It=Re.transitionDuration,jt="none"===Re.transitionProperty||"0s"===It||"0s, 0s"===It,sn=new ve(this,ot,Xe,jt);ot.style.transform="scale3d(1, 1, 1)",sn.state=0,Xe.persistent||(this._mostRecentTransientRipple=sn);let Kt=null;return!jt&&(tt||ke.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const on=()=>this._finishRippleTransition(sn),fn=()=>this._destroyRipple(sn);ot.addEventListener("transitionend",on),ot.addEventListener("transitioncancel",fn),Kt={onTransitionEnd:on,onTransitionCancel:fn}}),this._activeRipples.set(sn,Kt),(jt||!tt)&&this._finishRippleTransition(sn),sn}fadeOutRipple(Ge){if(2===Ge.state||3===Ge.state)return;const Ie=Ge.element,Xe={...oe,...Ge.config.animation};Ie.style.transitionDuration=`${Xe.exitDuration}ms`,Ie.style.opacity="0",Ge.state=2,(Ge._animationForciblyDisabledThroughCss||!Xe.exitDuration)&&this._finishRippleTransition(Ge)}fadeOutAll(){this._getActiveRipples().forEach(Ge=>Ge.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Ge=>{Ge.config.persistent||Ge.fadeOut()})}setupTriggerEvents(Ge){const Ie=(0,T.fI)(Ge);!Ie||Ie===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ie,this._registerEvents(Oe))}handleEvent(Ge){"mousedown"===Ge.type?this._onMousedown(Ge):"touchstart"===Ge.type?this._onTouchStart(Ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Q),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Ge){0===Ge.state?this._startFadeOutTransition(Ge):2===Ge.state&&this._destroyRipple(Ge)}_startFadeOutTransition(Ge){const Ie=Ge===this._mostRecentTransientRipple,{persistent:Xe}=Ge.config;Ge.state=1,!Xe&&(!Ie||!this._isPointerDown)&&Ge.fadeOut()}_destroyRipple(Ge){var Ie;const Xe=null!==(Ie=this._activeRipples.get(Ge))&&void 0!==Ie?Ie:null;this._activeRipples.delete(Ge),this._activeRipples.size||(this._containerRect=null),Ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Ge.state=3,null!==Xe&&(Ge.element.removeEventListener("transitionend",Xe.onTransitionEnd),Ge.element.removeEventListener("transitioncancel",Xe.onTransitionCancel)),Ge.element.remove()}_onMousedown(Ge){const Ie=(0,d.X6)(Ge),Xe=this._lastTouchStartEvent&&Date.now(){!Ge.config.persistent&&(1===Ge.state||Ge.config.terminateOnPointerUp&&0===Ge.state)&&Ge.fadeOut()}))}_registerEvents(Ge){this._ngZone.runOutsideAngular(()=>{Ge.forEach(Ie=>{this._triggerElement.addEventListener(Ie,this,ae)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Oe.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,ae)}),this._pointerUpEventsRegistered&&Q.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,ae)}))}}const L=new e.OlP("mat-ripple-global-options");let r=(()=>{class gt{constructor(Ie,Xe,Ke,ke,Ae){this._elementRef=Ie,this._animationMode=Ae,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ke||{},this._rippleRenderer=new me(this,Xe,Ie,Ke)}get disabled(){return this._disabled}set disabled(Ie){Ie&&this.fadeOutAllNonPersistent(),this._disabled=Ie,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ie){this._trigger=Ie,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(Ie,Xe=0,Ke){return"number"==typeof Ie?this._rippleRenderer.fadeInRipple(Ie,Xe,{...this.rippleConfig,...Ke}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ie})}}return gt.\u0275fac=function(Ie){return new(Ie||gt)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(C.t4),e.Y36(L,8),e.Y36(e.QbO,8))},gt.\u0275dir=e.lG2({type:gt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ie,Xe){2&Ie&&e.ekj("mat-ripple-unbounded",Xe.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"]}),gt})(),s=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({imports:[O,O]}),gt})(),m=(()=>{class gt{constructor(Ie){this._animationMode=Ie,this.state="unchecked",this.disabled=!1}}return gt.\u0275fac=function(Ie){return new(Ie||gt)(e.Y36(e.QbO,8))},gt.\u0275cmp=e.Xpm({type:gt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Ie,Xe){2&Ie&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Xe.state)("mat-pseudo-checkbox-checked","checked"===Xe.state)("mat-pseudo-checkbox-disabled",Xe.disabled)("_mat-animation-noopable","NoopAnimations"===Xe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Ie,Xe){},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}),gt})(),l=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({imports:[O]}),gt})();const o=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),a=new e.OlP("MatOptgroup");let p=0;class M{constructor(Ge,Ie=!1){this.source=Ge,this.isUserInput=Ie}}let Ne=(()=>{class gt{constructor(Ie,Xe,Ke,ke){this._element=Ie,this._changeDetectorRef=Xe,this._parent=Ke,this.group=ke,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+p++,this.onSelectionChange=new e.vpe,this._stateChanges=new R.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(Ie){this._disabled=(0,T.Ig)(Ie)}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(Ie,Xe){const Ke=this._getHostElement();"function"==typeof Ke.focus&&Ke.focus(Xe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Ie){(Ie.keyCode===_.K5||Ie.keyCode===_.L_)&&!(0,_.Vb)(Ie)&&(this._selectViaInteraction(),Ie.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 Ie=this.viewValue;Ie!==this._mostRecentViewValue&&(this._mostRecentViewValue=Ie,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Ie=!1){this.onSelectionChange.emit(new M(this,Ie))}}return gt.\u0275fac=function(Ie){e.$Z()},gt.\u0275dir=e.lG2({type:gt,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),gt})(),Pt=(()=>{class gt extends Ne{constructor(Ie,Xe,Ke,ke){super(Ie,Xe,Ke,ke)}}return gt.\u0275fac=function(Ie){return new(Ie||gt)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(o,8),e.Y36(a,8))},gt.\u0275cmp=e.Xpm({type:gt,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Ie,Xe){1&Ie&&e.NdJ("click",function(){return Xe._selectViaInteraction()})("keydown",function(ke){return Xe._handleKeydown(ke)}),2&Ie&&(e.Ikx("id",Xe.id),e.uIk("tabindex",Xe._getTabIndex())("aria-selected",Xe._getAriaSelected())("aria-disabled",Xe.disabled.toString()),e.ekj("mat-selected",Xe.selected)("mat-option-multiple",Xe.multiple)("mat-active",Xe.active)("mat-option-disabled",Xe.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:le,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(Ie,Xe){1&Ie&&(e.F$t(),e.YNc(0,X,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ne,2,1,"span",2),e._UZ(4,"div",3)),2&Ie&&(e.Q6J("ngIf",Xe.multiple),e.xp6(3),e.Q6J("ngIf",Xe.group&&Xe.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Xe._getHostElement())("matRippleDisabled",Xe.disabled||Xe.disableRipple))},dependencies:[r,g.O5,m],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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}),gt})();function Ut(gt,Ge,Ie){if(Ie.length){let Xe=Ge.toArray(),Ke=Ie.toArray(),ke=0;for(let Ae=0;AeIe+Xe?Math.max(0,gt-Xe+Ge):Ie}let xt=(()=>{class gt{}return gt.\u0275fac=function(Ie){return new(Ie||gt)},gt.\u0275mod=e.oAB({type:gt}),gt.\u0275inj=e.cJS({imports:[s,g.ez,O,l]}),gt})()},99602:(Je,pe,h)=>{"use strict";h.d(pe,{FA:()=>at,Mq:()=>ot,hl:()=>Kt,nW:()=>fn});var e=h(12687),d=h(98184),A=h(84080),w=h(36895),g=h(94650),C=h(4859),T=h(67376),v=h(3238),R=h(77579),U=h(50727),_=h(56451),V=h(39646),Y=h(29521),X=h(40445),ne=h(95698),le=h(68675),te=h(39300),fe=h(21281),ue=h(83353),we=h(37340),E=h(24006),O=h(59549),H=h(284);const W=["mat-calendar-body",""];function $(qe,At){if(1&qe&&(g.TgZ(0,"tr",2)(1,"td",3),g._uU(2),g.qZA()()),2&qe){const z=g.oxw();g.xp6(1),g.Udp("padding-top",z._cellPadding)("padding-bottom",z._cellPadding),g.uIk("colspan",z.numCols),g.xp6(1),g.hij(" ",z.label," ")}}function de(qe,At){if(1&qe&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&qe){const z=g.oxw(2);g.Udp("padding-top",z._cellPadding)("padding-bottom",z._cellPadding),g.uIk("colspan",z._firstRowOffset),g.xp6(1),g.hij(" ",z._firstRowOffset>=z.labelMinRequiredCells?z.label:""," ")}}function ye(qe,At){if(1&qe){const z=g.EpF();g.TgZ(0,"td",7)(1,"button",8),g.NdJ("click",function(mt){const en=g.CHM(z).$implicit,vn=g.oxw(2);return g.KtG(vn._cellClicked(en,mt))})("focus",function(mt){const en=g.CHM(z).$implicit,vn=g.oxw(2);return g.KtG(vn._emitActiveDateChange(en,mt))}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA()()}if(2&qe){const z=At.$implicit,Fe=At.index,mt=g.oxw().index,St=g.oxw();g.Udp("width",St._cellWidth)("padding-top",St._cellPadding)("padding-bottom",St._cellPadding),g.uIk("data-mat-row",mt)("data-mat-col",Fe),g.xp6(1),g.ekj("mat-calendar-body-disabled",!z.enabled)("mat-calendar-body-active",St._isActiveCell(mt,Fe))("mat-calendar-body-range-start",St._isRangeStart(z.compareValue))("mat-calendar-body-range-end",St._isRangeEnd(z.compareValue))("mat-calendar-body-in-range",St._isInRange(z.compareValue))("mat-calendar-body-comparison-bridge-start",St._isComparisonBridgeStart(z.compareValue,mt,Fe))("mat-calendar-body-comparison-bridge-end",St._isComparisonBridgeEnd(z.compareValue,mt,Fe))("mat-calendar-body-comparison-start",St._isComparisonStart(z.compareValue))("mat-calendar-body-comparison-end",St._isComparisonEnd(z.compareValue))("mat-calendar-body-in-comparison-range",St._isInComparisonRange(z.compareValue))("mat-calendar-body-preview-start",St._isPreviewStart(z.compareValue))("mat-calendar-body-preview-end",St._isPreviewEnd(z.compareValue))("mat-calendar-body-in-preview",St._isInPreview(z.compareValue)),g.Q6J("ngClass",z.cssClasses)("tabindex",St._isActiveCell(mt,Fe)?0:-1),g.uIk("aria-label",z.ariaLabel)("aria-disabled",!z.enabled||null)("aria-pressed",St._isSelected(z.compareValue))("aria-current",St.todayValue===z.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",St._isSelected(z.compareValue))("mat-calendar-body-comparison-identical",St._isComparisonIdentical(z.compareValue))("mat-calendar-body-today",St.todayValue===z.compareValue),g.xp6(1),g.hij(" ",z.displayValue," ")}}function xe(qe,At){if(1&qe&&(g.TgZ(0,"tr",4),g.YNc(1,de,2,6,"td",5),g.YNc(2,ye,5,47,"td",6),g.qZA()),2&qe){const z=At.$implicit,Fe=At.index,mt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===Fe&&mt._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",z)}}function Me(qe,At){if(1&qe&&(g.TgZ(0,"th",5)(1,"span",6),g._uU(2),g.qZA(),g.TgZ(3,"span",7),g._uU(4),g.qZA()()),2&qe){const z=At.$implicit;g.xp6(2),g.Oqu(z.long),g.xp6(2),g.Oqu(z.narrow)}}const Ze=["*"];function se(qe,At){}function ze(qe,At){if(1&qe){const z=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("_userSelection",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St._dateSelected(mt))}),g.qZA()}if(2&qe){const z=g.oxw();g.Q6J("activeDate",z.activeDate)("selected",z.selected)("dateFilter",z.dateFilter)("maxDate",z.maxDate)("minDate",z.minDate)("dateClass",z.dateClass)("comparisonStart",z.comparisonStart)("comparisonEnd",z.comparisonEnd)}}function he(qe,At){if(1&qe){const z=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("monthSelected",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St._monthSelectedInYearView(mt))})("selectedChange",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St._goToDateInView(mt,"month"))}),g.qZA()}if(2&qe){const z=g.oxw();g.Q6J("activeDate",z.activeDate)("selected",z.selected)("dateFilter",z.dateFilter)("maxDate",z.maxDate)("minDate",z.minDate)("dateClass",z.dateClass)}}function De(qe,At){if(1&qe){const z=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("yearSelected",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St._yearSelectedInMultiYearView(mt))})("selectedChange",function(mt){g.CHM(z);const St=g.oxw();return g.KtG(St._goToDateInView(mt,"year"))}),g.qZA()}if(2&qe){const z=g.oxw();g.Q6J("activeDate",z.activeDate)("selected",z.selected)("dateFilter",z.dateFilter)("maxDate",z.maxDate)("minDate",z.minDate)("dateClass",z.dateClass)}}function j(qe,At){}const P=["button"];function G(qe,At){1&qe&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const ce=[[["","matDatepickerToggleIcon",""]]],q=["[matDatepickerToggleIcon]"];let _t=(()=>{class qe{constructor(){this.changes=new R.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(z,Fe){return`${z} \u2013 ${Fe}`}formatYearRangeLabel(z,Fe){return`${z} to ${Fe}`}}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275prov=g.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe})();class Qe{constructor(At,z,Fe,mt,St={},en=At,vn){this.value=At,this.displayValue=z,this.ariaLabel=Fe,this.enabled=mt,this.cssClasses=St,this.compareValue=en,this.rawValue=vn}}let st=(()=>{class qe{constructor(z,Fe){this._elementRef=z,this._ngZone=Fe,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new g.vpe,this.previewChange=new g.vpe,this.activeDateChange=new g.vpe,this._enterHandler=mt=>{if(this._skipNextFocus&&"focus"===mt.type)this._skipNextFocus=!1;else if(mt.target&&this.isRange){const St=this._getCellFromElement(mt.target);St&&this._ngZone.run(()=>this.previewChange.emit({value:St.enabled?St:null,event:mt}))}},this._leaveHandler=mt=>{null!==this.previewEnd&&this.isRange&&mt.target&&this._getCellFromElement(mt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:mt}))},Fe.runOutsideAngular(()=>{const mt=z.nativeElement;mt.addEventListener("mouseenter",this._enterHandler,!0),mt.addEventListener("focus",this._enterHandler,!0),mt.addEventListener("mouseleave",this._leaveHandler,!0),mt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(z,Fe){z.enabled&&this.selectedValueChange.emit({value:z.value,event:Fe})}_emitActiveDateChange(z,Fe){z.enabled&&this.activeDateChange.emit({value:z.value,event:Fe})}_isSelected(z){return this.startValue===z||this.endValue===z}ngOnChanges(z){const Fe=z.numCols,{rows:mt,numCols:St}=this;(z.rows||Fe)&&(this._firstRowOffset=mt&&mt.length&&mt[0].length?St-mt[0].length:0),(z.cellAspectRatio||Fe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/St+"%"),(Fe||!this._cellWidth)&&(this._cellWidth=100/St+"%")}ngOnDestroy(){const z=this._elementRef.nativeElement;z.removeEventListener("mouseenter",this._enterHandler,!0),z.removeEventListener("focus",this._enterHandler,!0),z.removeEventListener("mouseleave",this._leaveHandler,!0),z.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(z,Fe){let mt=z*this.numCols+Fe;return z&&(mt-=this._firstRowOffset),mt==this.activeCell}_focusActiveCell(z=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>{setTimeout(()=>{const Fe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Fe&&(z||(this._skipNextFocus=!0),Fe.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(z){return ve(z,this.startValue,this.endValue)}_isRangeEnd(z){return oe(z,this.startValue,this.endValue)}_isInRange(z){return ge(z,this.startValue,this.endValue,this.isRange)}_isComparisonStart(z){return ve(z,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(z,Fe,mt){if(!this._isComparisonStart(z)||this._isRangeStart(z)||!this._isInRange(z))return!1;let St=this.rows[Fe][mt-1];if(!St){const en=this.rows[Fe-1];St=en&&en[en.length-1]}return St&&!this._isRangeEnd(St.compareValue)}_isComparisonBridgeEnd(z,Fe,mt){if(!this._isComparisonEnd(z)||this._isRangeEnd(z)||!this._isInRange(z))return!1;let St=this.rows[Fe][mt+1];if(!St){const en=this.rows[Fe+1];St=en&&en[0]}return St&&!this._isRangeStart(St.compareValue)}_isComparisonEnd(z){return oe(z,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(z){return ge(z,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(z){return this.comparisonStart===this.comparisonEnd&&z===this.comparisonStart}_isPreviewStart(z){return ve(z,this.previewStart,this.previewEnd)}_isPreviewEnd(z){return oe(z,this.previewStart,this.previewEnd)}_isInPreview(z){return ge(z,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(z){let Fe;if(Z(z)?Fe=z:Z(z.parentNode)&&(Fe=z.parentNode),Fe){const mt=Fe.getAttribute("data-mat-row"),St=Fe.getAttribute("data-mat-col");if(mt&&St)return this.rows[parseInt(mt)][parseInt(St)]}return null}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(g.SBq),g.Y36(g.R0b))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:W,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(z,Fe){1&z&&(g.YNc(0,$,3,6,"tr",0),g.YNc(1,xe,3,2,"tr",1)),2&z&&(g.Q6J("ngIf",Fe._firstRowOffset=At&&qe===z}function ge(qe,At,z,Fe){return Fe&&null!==At&&null!==z&&At!==z&&qe>=At&&qe<=z}class ae{constructor(At,z){this.start=At,this.end=z}}let Oe=(()=>{class qe{constructor(z,Fe){this.selection=z,this._adapter=Fe,this._selectionChanged=new R.x,this.selectionChanged=this._selectionChanged,this.selection=z}updateSelection(z,Fe){const mt=this.selection;this.selection=z,this._selectionChanged.next({selection:z,source:Fe,oldValue:mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(z){return this._adapter.isDateInstance(z)&&this._adapter.isValid(z)}}return qe.\u0275fac=function(z){g.$Z()},qe.\u0275prov=g.Yz7({token:qe,factory:qe.\u0275fac}),qe})(),Q=(()=>{class qe extends Oe{constructor(z){super(null,z)}add(z){super.updateSelection(z,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const z=new qe(this._adapter);return z.updateSelection(this.selection,this),z}}return qe.\u0275fac=function(z){return new(z||qe)(g.LFG(v._A))},qe.\u0275prov=g.Yz7({token:qe,factory:qe.\u0275fac}),qe})();const L={provide:Oe,deps:[[new g.FiY,new g.tp0,Oe],v._A],useFactory:function N(qe,At){return qe||new Q(At)}},m=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let i=(()=>{class qe{constructor(z,Fe,mt,St,en){this._changeDetectorRef=z,this._dateFormats=Fe,this._dateAdapter=mt,this._dir=St,this._rangeStrategy=en,this._rerenderSubscription=U.w0.EMPTY,this.selectedChange=new g.vpe,this._userSelection=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(z){const Fe=this._activeDate,mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Fe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(z){this._selected=z instanceof ae?z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get maxDate(){return this._maxDate}set maxDate(z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,le.O)(null)).subscribe(()=>this._init())}ngOnChanges(z){const Fe=z.comparisonStart||z.comparisonEnd;Fe&&!Fe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(z){const Fe=z.value,mt=this._getDateFromDayOfMonth(Fe);let St,en;this._selected instanceof ae?(St=this._getDateInCurrentMonth(this._selected.start),en=this._getDateInCurrentMonth(this._selected.end)):St=en=this._getDateInCurrentMonth(this._selected),(St!==Fe||en!==Fe)&&this.selectedChange.emit(mt),this._userSelection.emit({value:mt,event:z.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(z){const mt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(z){const Fe=this._activeDate,mt=this._isRtl();switch(z.keyCode){case Y.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?1:-1);break;case Y.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?-1:1);break;case Y.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Y.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case Y.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Y.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case Y.Ku:this.activeDate=z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case Y.VM:this.activeDate=z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case Y.K5:case Y.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&z.preventDefault());case Y.hY:return void(null!=this._previewEnd&&!(0,Y.Vb)(z)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:z}),z.preventDefault(),z.stopPropagation()));default:return}this._dateAdapter.compareDate(Fe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),z.preventDefault()}_handleCalendarBodyKeyup(z){(z.keyCode===Y.L_||z.keyCode===Y.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:z}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let z=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(z)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(z){this._matCalendarBody._focusActiveCell(z)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:z,value:Fe}){if(this._rangeStrategy){const St=this._rangeStrategy.createPreview(Fe?Fe.rawValue:null,this.selected,z);this._previewStart=this._getCellCompareValue(St.start),this._previewEnd=this._getCellCompareValue(St.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(z){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),z)}_initWeekdays(){const z=this._dateAdapter.getFirstDayOfWeek(),Fe=this._dateAdapter.getDayOfWeekNames("narrow");let St=this._dateAdapter.getDayOfWeekNames("long").map((en,vn)=>({long:en,narrow:Fe[vn]}));this._weekdays=St.slice(z).concat(St.slice(0,z))}_createWeekCells(){const z=this._dateAdapter.getNumDaysInMonth(this.activeDate),Fe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let mt=0,St=this._firstWeekOffset;mt=0)&&(!this.maxDate||this._dateAdapter.compareDate(z,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(z))}_getDateInCurrentMonth(z){return z&&this._hasSameMonthAndYear(z,this.activeDate)?this._dateAdapter.getDate(z):null}_hasSameMonthAndYear(z,Fe){return!(!z||!Fe||this._dateAdapter.getMonth(z)!=this._dateAdapter.getMonth(Fe)||this._dateAdapter.getYear(z)!=this._dateAdapter.getYear(Fe))}_getCellCompareValue(z){if(z){const Fe=this._dateAdapter.getYear(z),mt=this._dateAdapter.getMonth(z),St=this._dateAdapter.getDate(z);return new Date(Fe,mt,St).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(z){z instanceof ae?(this._rangeStart=this._getCellCompareValue(z.start),this._rangeEnd=this._getCellCompareValue(z.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(z),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(z){return!this.dateFilter||this.dateFilter(z)}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(g.sBO),g.Y36(v.sG,8),g.Y36(v._A,8),g.Y36(X.Is,8),g.Y36(m,8))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-month-view"]],viewQuery:function(z,Fe){if(1&z&&g.Gf(st,5),2&z){let mt;g.iGM(mt=g.CRH())&&(Fe._matCalendarBody=mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[g.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(z,Fe){1&z&&(g.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),g.YNc(3,Me,5,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA()(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(St){return Fe._dateSelected(St)})("activeDateChange",function(St){return Fe._updateActiveDate(St)})("previewChange",function(St){return Fe._previewChanged(St)})("keyup",function(St){return Fe._handleCalendarBodyKeyup(St)})("keydown",function(St){return Fe._handleCalendarBodyKeydown(St)}),g.qZA()()),2&z&&(g.xp6(3),g.Q6J("ngForOf",Fe._weekdays),g.xp6(3),g.Q6J("label",Fe._monthLabel)("rows",Fe._weeks)("todayValue",Fe._todayDate)("startValue",Fe._rangeStart)("endValue",Fe._rangeEnd)("comparisonStart",Fe._comparisonRangeStart)("comparisonEnd",Fe._comparisonRangeEnd)("previewStart",Fe._previewStart)("previewEnd",Fe._previewEnd)("isRange",Fe._isRange)("labelMinRequiredCells",3)("activeCell",Fe._dateAdapter.getDate(Fe.activeDate)-1))},dependencies:[w.sg,st],encapsulation:2,changeDetection:0}),qe})();const a=24;let p=(()=>{class qe{constructor(z,Fe,mt){this._changeDetectorRef=z,this._dateAdapter=Fe,this._dir=mt,this._rerenderSubscription=U.w0.EMPTY,this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(z){let Fe=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),M(this._dateAdapter,Fe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(z){this._selected=z instanceof ae?z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z)),this._setSelectedYear(z)}get minDate(){return this._minDate}set minDate(z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get maxDate(){return this._maxDate}set maxDate(z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,le.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Fe=this._dateAdapter.getYear(this._activeDate)-Ne(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let mt=0,St=[];mtthis._createCellForYear(en))),St=[]);this._changeDetectorRef.markForCheck()}_yearSelected(z){const Fe=z.value,mt=this._dateAdapter.createDate(Fe,0,1),St=this._getDateFromYear(Fe);this.yearSelected.emit(mt),this.selectedChange.emit(St)}_updateActiveDate(z){const mt=this._activeDate;this.activeDate=this._getDateFromYear(z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(z){const Fe=this._activeDate,mt=this._isRtl();switch(z.keyCode){case Y.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?1:-1);break;case Y.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?-1:1);break;case Y.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case Y.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case Y.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Ne(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case Y.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a-Ne(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case Y.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,z.altKey?-240:-a);break;case Y.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,z.altKey?240:a);break;case Y.K5:case Y.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Fe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),z.preventDefault()}_handleCalendarBodyKeyup(z){(z.keyCode===Y.L_||z.keyCode===Y.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:z}),this._selectionKeyPressed=!1)}_getActiveCell(){return Ne(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(z){const Fe=this._dateAdapter.getMonth(this.activeDate),mt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(z,Fe,1));return this._dateAdapter.createDate(z,Fe,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForYear(z){const Fe=this._dateAdapter.createDate(z,0,1),mt=this._dateAdapter.getYearName(Fe),St=this.dateClass?this.dateClass(Fe,"multi-year"):void 0;return new Qe(z,mt,mt,this._shouldEnableYear(z),St)}_shouldEnableYear(z){if(null==z||this.maxDate&&z>this._dateAdapter.getYear(this.maxDate)||this.minDate&&z{class qe{constructor(z,Fe,mt,St){this._changeDetectorRef=z,this._dateFormats=Fe,this._dateAdapter=mt,this._dir=St,this._rerenderSubscription=U.w0.EMPTY,this.selectedChange=new g.vpe,this.monthSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(z){let Fe=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._dateAdapter.getYear(Fe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(z){this._selected=z instanceof ae?z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z)),this._setSelectedMonth(z)}get minDate(){return this._minDate}set minDate(z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get maxDate(){return this._maxDate}set maxDate(z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,le.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(z){const Fe=z.value,mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Fe,1);this.monthSelected.emit(mt);const St=this._getDateFromMonth(Fe);this.selectedChange.emit(St)}_updateActiveDate(z){const mt=this._activeDate;this.activeDate=this._getDateFromMonth(z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(z){const Fe=this._activeDate,mt=this._isRtl();switch(z.keyCode){case Y.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?1:-1);break;case Y.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?-1:1);break;case Y.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case Y.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case Y.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case Y.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case Y.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,z.altKey?-10:-1);break;case Y.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,z.altKey?10:1);break;case Y.K5:case Y.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Fe,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),z.preventDefault()}_handleCalendarBodyKeyup(z){(z.keyCode===Y.L_||z.keyCode===Y.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:z}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let z=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Fe=>Fe.map(mt=>this._createCellForMonth(mt,z[mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(z){return z&&this._dateAdapter.getYear(z)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(z):null}_getDateFromMonth(z){const Fe=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),z,1),mt=this._dateAdapter.getNumDaysInMonth(Fe);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),z,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForMonth(z,Fe){const mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),z,1),St=this._dateAdapter.format(mt,this._dateFormats.display.monthYearA11yLabel),en=this.dateClass?this.dateClass(mt,"year"):void 0;return new Qe(z,Fe.toLocaleUpperCase(),St,this._shouldEnableMonth(z),en)}_shouldEnableMonth(z){const Fe=this._dateAdapter.getYear(this.activeDate);if(null==z||this._isYearAndMonthAfterMaxDate(Fe,z)||this._isYearAndMonthBeforeMinDate(Fe,z))return!1;if(!this.dateFilter)return!0;for(let St=this._dateAdapter.createDate(Fe,z,1);this._dateAdapter.getMonth(St)==z;St=this._dateAdapter.addCalendarDays(St,1))if(this.dateFilter(St))return!0;return!1}_isYearAndMonthAfterMaxDate(z,Fe){if(this.maxDate){const mt=this._dateAdapter.getYear(this.maxDate),St=this._dateAdapter.getMonth(this.maxDate);return z>mt||z===mt&&Fe>St}return!1}_isYearAndMonthBeforeMinDate(z,Fe){if(this.minDate){const mt=this._dateAdapter.getYear(this.minDate),St=this._dateAdapter.getMonth(this.minDate);return z{class qe{constructor(z,Fe,mt,St,en){this._intl=z,this.calendar=Fe,this._dateAdapter=mt,this._dateFormats=St,this._buttonDescriptionId="mat-calendar-button-"+xt++,this.calendar.stateChanges.subscribe(()=>en.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Fe=this._dateAdapter.getYear(this.calendar.activeDate)-Ne(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),mt=Fe+a-1,St=this._dateAdapter.getYearName(this._dateAdapter.createDate(Fe,0,1)),en=this._dateAdapter.getYearName(this._dateAdapter.createDate(mt,0,1));return this._intl.formatYearRange(St,en)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-a)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:a)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(z,Fe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(z)==this._dateAdapter.getYear(Fe)&&this._dateAdapter.getMonth(z)==this._dateAdapter.getMonth(Fe):"year"==this.calendar.currentView?this._dateAdapter.getYear(z)==this._dateAdapter.getYear(Fe):M(this._dateAdapter,z,Fe,this.calendar.minDate,this.calendar.maxDate)}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(_t),g.Y36((0,g.Gpc)(()=>Ge)),g.Y36(v._A,8),g.Y36(v.sG,8),g.Y36(g.sBO))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Ze,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(z,Fe){1&z&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"button",2),g.NdJ("click",function(){return Fe.currentPeriodClicked()}),g.TgZ(3,"span"),g._uU(4),g.qZA(),g.O4$(),g.TgZ(5,"svg",3),g._UZ(6,"polygon",4),g.qZA()(),g.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return Fe.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return Fe.nextClicked()}),g.qZA()()()),2&z&&(g.xp6(2),g.uIk("aria-label",Fe.periodButtonLabel)("aria-describedby",Fe._buttonDescriptionId),g.xp6(1),g.uIk("id",Fe._buttonDescriptionId),g.xp6(1),g.Oqu(Fe.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==Fe.calendar.currentView),g.xp6(4),g.Q6J("disabled",!Fe.previousEnabled()),g.uIk("aria-label",Fe.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!Fe.nextEnabled()),g.uIk("aria-label",Fe.nextButtonLabel))},dependencies:[C.lW],encapsulation:2,changeDetection:0}),qe})(),Ge=(()=>{class qe{constructor(z,Fe,mt,St){this._dateAdapter=Fe,this._dateFormats=mt,this._changeDetectorRef=St,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this._userSelection=new g.vpe,this.stateChanges=new R.x,this._intlChanges=z.changes.subscribe(()=>{St.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get selected(){return this._selected}set selected(z){this._selected=z instanceof ae?z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get minDate(){return this._minDate}set minDate(z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get maxDate(){return this._maxDate}set maxDate(z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get activeDate(){return this._clampedActiveDate}set activeDate(z){this._clampedActiveDate=this._dateAdapter.clampDate(z,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(z){const Fe=this._currentView!==z?z:null;this._currentView=z,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Fe&&this.viewChanged.emit(Fe)}ngAfterContentInit(){this._calendarHeaderPortal=new A.C5(this.headerComponent||gt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(z){const Fe=z.minDate&&!this._dateAdapter.sameDate(z.minDate.previousValue,z.minDate.currentValue)?z.minDate:void 0,mt=z.maxDate&&!this._dateAdapter.sameDate(z.maxDate.previousValue,z.maxDate.currentValue)?z.maxDate:void 0,St=Fe||mt||z.dateFilter;if(St&&!St.firstChange){const en=this._getCurrentViewComponent();en&&(this._changeDetectorRef.detectChanges(),en._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(z){const Fe=z.value;(this.selected instanceof ae||Fe&&!this._dateAdapter.sameDate(Fe,this.selected))&&this.selectedChange.emit(Fe),this._userSelection.emit(z)}_yearSelectedInMultiYearView(z){this.yearSelected.emit(z)}_monthSelectedInYearView(z){this.monthSelected.emit(z)}_goToDateInView(z,Fe){this.activeDate=z,this.currentView=Fe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(_t),g.Y36(v._A,8),g.Y36(v.sG,8),g.Y36(g.sBO))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-calendar"]],viewQuery:function(z,Fe){if(1&z&&(g.Gf(i,5),g.Gf(ln,5),g.Gf(p,5)),2&z){let mt;g.iGM(mt=g.CRH())&&(Fe.monthView=mt.first),g.iGM(mt=g.CRH())&&(Fe.yearView=mt.first),g.iGM(mt=g.CRH())&&(Fe.multiYearView=mt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[g._Bn([L]),g.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(z,Fe){1&z&&(g.YNc(0,se,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,ze,1,8,"mat-month-view",2),g.YNc(3,he,1,6,"mat-year-view",3),g.YNc(4,De,1,6,"mat-multi-year-view",4),g.qZA()),2&z&&(g.Q6J("cdkPortalOutlet",Fe._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",Fe.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},dependencies:[w.RF,w.n9,e.kH,A.Pl,i,ln,p],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),qe})();const Ie={transformPanel:(0,we.X$)("transformPanel",[(0,we.eR)("void => enter-dropdown",(0,we.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,we.F4)([(0,we.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,we.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,we.eR)("void => enter-dialog",(0,we.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,we.F4)([(0,we.oB)({opacity:0,transform:"scale(0.7)"}),(0,we.oB)({transform:"none",opacity:1})]))),(0,we.eR)("* => void",(0,we.jt)("100ms linear",(0,we.oB)({opacity:0})))]),fadeInCalendar:(0,we.X$)("fadeInCalendar",[(0,we.SB)("void",(0,we.oB)({opacity:0})),(0,we.SB)("enter",(0,we.oB)({opacity:1})),(0,we.eR)("void => *",(0,we.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Xe=0;const Ke=new g.OlP("mat-datepicker-scroll-strategy"),Ae={provide:Ke,deps:[d.aV],useFactory:function ke(qe){return()=>qe.scrollStrategies.reposition()}},Ee=(0,v.pj)(class{constructor(qe){this._elementRef=qe}});let We=(()=>{class qe extends Ee{constructor(z,Fe,mt,St,en,vn){super(z),this._changeDetectorRef=Fe,this._globalModel=mt,this._dateAdapter=St,this._rangeSelectionStrategy=en,this._subscriptions=new U.w0,this._animationDone=new R.x,this._actionsPortal=null,this._closeButtonText=vn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(z){const Fe=this._model.selection,mt=z.value,St=Fe instanceof ae;if(St&&this._rangeSelectionStrategy){const en=this._rangeSelectionStrategy.selectionFinished(mt,Fe,z.event);this._model.updateSelection(en,this)}else mt&&(St||!this._dateAdapter.sameDate(mt,Fe))&&this._model.add(mt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(z,Fe){this._model=z?this._globalModel.clone():this._globalModel,this._actionsPortal=z,Fe&&this._changeDetectorRef.detectChanges()}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Oe),g.Y36(v._A),g.Y36(m,8),g.Y36(_t))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-datepicker-content"]],viewQuery:function(z,Fe){if(1&z&&g.Gf(Ge,5),2&z){let mt;g.iGM(mt=g.CRH())&&(Fe._calendar=mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(z,Fe){1&z&&g.WFA("@transformPanel.done",function(){return Fe._animationDone.next()}),2&z&&(g.d8E("@transformPanel",Fe._animationState),g.ekj("mat-datepicker-content-touch",Fe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[g.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(z,Fe){if(1&z&&(g.TgZ(0,"div",0)(1,"mat-calendar",1),g.NdJ("yearSelected",function(St){return Fe.datepicker._selectYear(St)})("monthSelected",function(St){return Fe.datepicker._selectMonth(St)})("viewChanged",function(St){return Fe.datepicker._viewChanged(St)})("_userSelection",function(St){return Fe._handleUserSelection(St)}),g.qZA(),g.YNc(2,j,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return Fe._closeButtonFocused=!0})("blur",function(){return Fe._closeButtonFocused=!1})("click",function(){return Fe.datepicker.close()}),g._uU(4),g.qZA()()),2&z){let mt;g.ekj("mat-datepicker-content-container-with-custom-header",Fe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Fe._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(mt=Fe._dialogLabelId)&&void 0!==mt?mt:void 0),g.xp6(1),g.Q6J("id",Fe.datepicker.id)("ngClass",Fe.datepicker.panelClass)("startAt",Fe.datepicker.startAt)("startView",Fe.datepicker.startView)("minDate",Fe.datepicker._getMinDate())("maxDate",Fe.datepicker._getMaxDate())("dateFilter",Fe.datepicker._getDateFilter())("headerComponent",Fe.datepicker.calendarHeaderComponent)("selected",Fe._getSelected())("dateClass",Fe.datepicker.dateClass)("comparisonStart",Fe.comparisonStart)("comparisonEnd",Fe.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",Fe._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!Fe._closeButtonFocused),g.Q6J("color",Fe.color||"primary"),g.xp6(1),g.Oqu(Fe._closeButtonText)}},dependencies:[w.mk,C.lW,e.mK,A.Pl,Ge],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Ie.transformPanel,Ie.fadeInCalendar]},changeDetection:0}),qe})(),tt=(()=>{class qe{constructor(z,Fe,mt,St,en,vn,Un){this._overlay=z,this._ngZone=Fe,this._viewContainerRef=mt,this._dateAdapter=en,this._dir=vn,this._model=Un,this._inputStateChanges=U.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this.openedStream=new g.vpe,this.closedStream=new g.vpe,this._opened=!1,this.id="mat-datepicker-"+Xe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new R.x,this._scrollStrategy=St}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(z){this._color=z}get touchUi(){return this._touchUi}set touchUi(z){this._touchUi=(0,fe.Ig)(z)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(z){const Fe=(0,fe.Ig)(z);Fe!==this._disabled&&(this._disabled=Fe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(z){this._restoreFocus=(0,fe.Ig)(z)}get panelClass(){return this._panelClass}set panelClass(z){this._panelClass=(0,fe.du)(z)}get opened(){return this._opened}set opened(z){(0,fe.Ig)(z)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(z){const Fe=z.xPosition||z.yPosition;if(Fe&&!Fe.firstChange&&this._overlayRef){const mt=this._overlayRef.getConfig().positionStrategy;mt instanceof d._G&&(this._setConnectedPositions(mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(z){this._model.add(z)}_selectYear(z){this.yearSelected.emit(z)}_selectMonth(z){this.monthSelected.emit(z)}_viewChanged(z){this.viewChanged.emit(z)}registerInput(z){return this._inputStateChanges.unsubscribe(),this.datepickerInput=z,this._inputStateChanges=z.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(z){var Fe;this._actionsPortal=z,null===(Fe=this._componentRef)||void 0===Fe||Fe.instance._assignActions(z,!0)}removeActions(z){var Fe;z===this._actionsPortal&&(this._actionsPortal=null,null===(Fe=this._componentRef)||void 0===Fe||Fe.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ue.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Fe=this._componentRef.instance;Fe._startExitAnimation(),Fe._animationDone.pipe((0,ne.q)(1)).subscribe(()=>this._destroyOverlay())}const z=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(z)):z()}_applyPendingSelection(){var z,Fe;null===(z=this._componentRef)||void 0===z||null===(Fe=z.instance)||void 0===Fe||Fe._applyPendingSelection()}_forwardContentValues(z){z.datepicker=this,z.color=this.color,z._dialogLabelId=this.datepickerInput.getOverlayLabelId(),z._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const z=this.touchUi,Fe=new A.C5(We,this._viewContainerRef),mt=this._overlayRef=this._overlay.create(new d.X_({positionStrategy:z?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[z?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:z?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(z?"dialog":"popup")}));this._getCloseStream(mt).subscribe(St=>{St&&St.preventDefault(),this.close()}),mt.keydownEvents().subscribe(St=>{const en=St.keyCode;(en===Y.LH||en===Y.JH||en===Y.oh||en===Y.SV||en===Y.Ku||en===Y.VM)&&St.preventDefault()}),this._componentRef=mt.attach(Fe),this._forwardContentValues(this._componentRef.instance),z||this._ngZone.onStable.pipe((0,ne.q)(1)).subscribe(()=>mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const z=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(z)}_setConnectedPositions(z){const Fe="end"===this.xPosition?"end":"start",mt="start"===Fe?"end":"start",St="above"===this.yPosition?"bottom":"top",en="top"===St?"bottom":"top";return z.withPositions([{originX:Fe,originY:en,overlayX:Fe,overlayY:St},{originX:Fe,originY:St,overlayX:Fe,overlayY:en},{originX:mt,originY:en,overlayX:mt,overlayY:St},{originX:mt,originY:St,overlayX:mt,overlayY:en}])}_getCloseStream(z){return(0,_.T)(z.backdropClick(),z.detachments(),z.keydownEvents().pipe((0,te.h)(Fe=>Fe.keyCode===Y.hY&&!(0,Y.Vb)(Fe)||this.datepickerInput&&(0,Y.Vb)(Fe,"altKey")&&Fe.keyCode===Y.LH)))}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(d.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(Ke),g.Y36(v._A,8),g.Y36(X.Is,8),g.Y36(Oe))},qe.\u0275dir=g.lG2({type:qe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[g.TTD]}),qe})(),ot=(()=>{class qe extends tt{}return qe.\u0275fac=function(){let At;return function(Fe){return(At||(At=g.n5z(qe)))(Fe||qe)}}(),qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([L,{provide:tt,useExisting:qe}]),g.qOj],decls:0,vars:0,template:function(z,Fe){},encapsulation:2,changeDetection:0}),qe})();class Re{constructor(At,z){this.target=At,this.targetElement=z,this.value=this.target.value}}let lt=(()=>{class qe{constructor(z,Fe,mt){this._elementRef=z,this._dateAdapter=Fe,this._dateFormats=mt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new R.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=U.w0.EMPTY,this._localeSubscription=U.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=St=>{const en=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value));return!en||this._matchesFilter(en)?null:{matDatepickerFilter:!0}},this._minValidator=St=>{const en=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value)),vn=this._getMinDate();return!vn||!en||this._dateAdapter.compareDate(vn,en)<=0?null:{matDatepickerMin:{min:vn,actual:en}}},this._maxValidator=St=>{const en=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value)),vn=this._getMaxDate();return!vn||!en||this._dateAdapter.compareDate(vn,en)>=0?null:{matDatepickerMax:{max:vn,actual:en}}},this._lastValueValid=!1,this._localeSubscription=Fe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(z){this._assignValueProgrammatically(z)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(z){const Fe=(0,fe.Ig)(z),mt=this._elementRef.nativeElement;this._disabled!==Fe&&(this._disabled=Fe,this.stateChanges.next(void 0)),Fe&&this._isInitialized&&mt.blur&&mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(z){this._model=z,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Fe=>{if(this._shouldHandleChangeEvent(Fe)){const mt=this._getValueFromModel(Fe.selection);this._lastValueValid=this._isValidValue(mt),this._cvaOnChange(mt),this._onTouched(),this._formatValue(mt),this.dateInput.emit(new Re(this,this._elementRef.nativeElement)),this.dateChange.emit(new Re(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(z){(function It(qe,At){const z=Object.keys(qe);for(let Fe of z){const{previousValue:mt,currentValue:St}=qe[Fe];if(!At.isDateInstance(mt)||!At.isDateInstance(St))return!0;if(!At.sameDate(mt,St))return!0}return!1})(z,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(z){this._validatorOnChange=z}validate(z){return this._validator?this._validator(z):null}writeValue(z){this._assignValueProgrammatically(z)}registerOnChange(z){this._cvaOnChange=z}registerOnTouched(z){this._onTouched=z}setDisabledState(z){this.disabled=z}_onKeydown(z){z.altKey&&z.keyCode===Y.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),z.preventDefault())}_onInput(z){const Fe=this._lastValueValid;let mt=this._dateAdapter.parse(z,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(mt),mt=this._dateAdapter.getValidDateOrNull(mt);const St=!this._dateAdapter.sameDate(mt,this.value);!mt||St?this._cvaOnChange(mt):(z&&!this.value&&this._cvaOnChange(mt),Fe!==this._lastValueValid&&this._validatorOnChange()),St&&(this._assignValue(mt),this.dateInput.emit(new Re(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Re(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(z){this._elementRef.nativeElement.value=null!=z?this._dateAdapter.format(z,this._dateFormats.display.dateInput):""}_assignValue(z){this._model?(this._assignValueToModel(z),this._pendingValue=null):this._pendingValue=z}_isValidValue(z){return!z||this._dateAdapter.isValid(z)}_parentDisabled(){return!1}_assignValueProgrammatically(z){z=this._dateAdapter.deserialize(z),this._lastValueValid=this._isValidValue(z),z=this._dateAdapter.getValidDateOrNull(z),this._assignValue(z),this._formatValue(z)}_matchesFilter(z){const Fe=this._getDateFilter();return!Fe||Fe(z)}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(g.SBq),g.Y36(v._A,8),g.Y36(v.sG,8))},qe.\u0275dir=g.lG2({type:qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),qe})();const jt={provide:E.JU,useExisting:(0,g.Gpc)(()=>Kt),multi:!0},sn={provide:E.Cf,useExisting:(0,g.Gpc)(()=>Kt),multi:!0};let Kt=(()=>{class qe extends lt{constructor(z,Fe,mt,St){super(z,Fe,mt),this._formField=St,this._closedSubscription=U.w0.EMPTY,this._validator=E.kI.compose(super._getValidators())}set matDatepicker(z){z&&(this._datepicker=z,this._closedSubscription=z.closedStream.subscribe(()=>this._onTouched()),this._registerModel(z.registerInput(this)))}get min(){return this._min}set min(z){const Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z));this._dateAdapter.sameDate(Fe,this._min)||(this._min=Fe,this._validatorOnChange())}get max(){return this._max}set max(z){const Fe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(z));this._dateAdapter.sameDate(Fe,this._max)||(this._max=Fe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(z){const Fe=this._matchesFilter(this.value);this._dateFilter=z,this._matchesFilter(this.value)!==Fe&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(z){return z}_assignValueToModel(z){this._model&&this._model.updateSelection(z,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(z){return z.source!==this}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(g.SBq),g.Y36(v._A,8),g.Y36(v.sG,8),g.Y36(O.G_,8))},qe.\u0275dir=g.lG2({type:qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(z,Fe){1&z&&g.NdJ("input",function(St){return Fe._onInput(St.target.value)})("change",function(){return Fe._onChange()})("blur",function(){return Fe._onBlur()})("keydown",function(St){return Fe._onKeydown(St)}),2&z&&(g.Ikx("disabled",Fe.disabled),g.uIk("aria-haspopup",Fe._datepicker?"dialog":null)("aria-owns",(null==Fe._datepicker?null:Fe._datepicker.opened)&&Fe._datepicker.id||null)("min",Fe.min?Fe._dateAdapter.toIso8601(Fe.min):null)("max",Fe.max?Fe._dateAdapter.toIso8601(Fe.max):null)("data-mat-calendar",Fe._datepicker?Fe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([jt,sn,{provide:H.Jk,useExisting:qe}]),g.qOj]}),qe})(),on=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275dir=g.lG2({type:qe,selectors:[["","matDatepickerToggleIcon",""]]}),qe})(),fn=(()=>{class qe{constructor(z,Fe,mt){this._intl=z,this._changeDetectorRef=Fe,this._stateChanges=U.w0.EMPTY;const St=Number(mt);this.tabIndex=St||0===St?St:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(z){this._disabled=(0,fe.Ig)(z)}ngOnChanges(z){z.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(z){this.datepicker&&!this.disabled&&(this.datepicker.open(),z.stopPropagation())}_watchStateChanges(){const z=this.datepicker?this.datepicker.stateChanges:(0,V.of)(),Fe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,V.of)(),mt=this.datepicker?(0,_.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,V.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,_.T)(this._intl.changes,z,Fe,mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return qe.\u0275fac=function(z){return new(z||qe)(g.Y36(_t),g.Y36(g.sBO),g.$8M("tabindex"))},qe.\u0275cmp=g.Xpm({type:qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(z,Fe,mt){if(1&z&&g.Suo(mt,on,5),2&z){let St;g.iGM(St=g.CRH())&&(Fe._customIcon=St.first)}},viewQuery:function(z,Fe){if(1&z&&g.Gf(P,5),2&z){let mt;g.iGM(mt=g.CRH())&&(Fe._button=mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(z,Fe){1&z&&g.NdJ("click",function(St){return Fe._open(St)}),2&z&&(g.uIk("tabindex",null)("data-mat-calendar",Fe.datepicker?Fe.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",Fe.datepicker&&Fe.datepicker.opened)("mat-accent",Fe.datepicker&&"accent"===Fe.datepicker.color)("mat-warn",Fe.datepicker&&"warn"===Fe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:q,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(z,Fe){1&z&&(g.F$t(ce),g.TgZ(0,"button",0,1),g.YNc(2,G,2,0,"svg",2),g.Hsn(3),g.qZA()),2&z&&(g.Q6J("disabled",Fe.disabled)("disableRipple",Fe.disableRipple),g.uIk("aria-haspopup",Fe.datepicker?"dialog":null)("aria-label",Fe.ariaLabel||Fe._intl.openCalendarLabel)("tabindex",Fe.disabled?-1:Fe.tabIndex),g.xp6(2),g.Q6J("ngIf",!Fe._customIcon))},dependencies:[w.O5,C.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),qe})(),at=(()=>{class qe{}return qe.\u0275fac=function(z){return new(z||qe)},qe.\u0275mod=g.oAB({type:qe}),qe.\u0275inj=g.cJS({providers:[_t,Ae],imports:[w.ez,C.ot,d.U8,e.rt,A.eL,v.BQ,T.ZD]}),qe})()},65412:(Je,pe,h)=>{"use strict";h.d(pe,{WI:()=>Te,uw:()=>ve,H8:()=>Q,vA:()=>j,xY:()=>Oe,Is:()=>N,so:()=>ce,uh:()=>ae});var e=h(12687),d=h(98184),A=h(83353),w=h(84080),g=h(36895),C=h(94650),T=h(29521),v=h(77579),R=h(49770),U=h(39646),_=h(40445),V=h(68675);function Y(L,r){}class X{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 le=(()=>{class L extends w.en{constructor(s,m,l,o,n,t,i,a){super(),this._elementRef=s,this._focusTrapFactory=m,this._config=o,this._interactivityChecker=n,this._ngZone=t,this._overlayRef=i,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=c=>{this._portalOutlet.hasAttached();const p=this._portalOutlet.attachDomPortal(c);return this._contentAttached(),p},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=l}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(s){this._portalOutlet.hasAttached();const m=this._portalOutlet.attachComponentPortal(s);return this._contentAttached(),m}attachTemplatePortal(s){this._portalOutlet.hasAttached();const m=this._portalOutlet.attachTemplatePortal(s);return this._contentAttached(),m}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(s,m){this._interactivityChecker.isFocusable(s)||(s.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const l=()=>{s.removeEventListener("blur",l),s.removeEventListener("mousedown",l),s.removeAttribute("tabindex")};s.addEventListener("blur",l),s.addEventListener("mousedown",l)})),s.focus(m)}_focusByCssSelector(s,m){let l=this._elementRef.nativeElement.querySelector(s);l&&this._forceFocus(l,m)}_trapFocus(){const s=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||s.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(m=>{m||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 s=this._config.restoreFocus;let m=null;if("string"==typeof s?m=this._document.querySelector(s):"boolean"==typeof s?m=s?this._elementFocusedBeforeDialogWasOpened:null:s&&(m=s),this._config.restoreFocus&&m&&"function"==typeof m.focus){const l=(0,A.ht)(),o=this._elementRef.nativeElement;(!l||l===this._document.body||l===o||o.contains(l))&&(this._focusMonitor?(this._focusMonitor.focusVia(m,this._closeInteractionType),this._closeInteractionType=null):m.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const s=this._elementRef.nativeElement,m=(0,A.ht)();return s===m||s.contains(m)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return L.\u0275fac=function(s){return new(s||L)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(X),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(d.Iu),C.Y36(e.tE))},L.\u0275cmp=C.Xpm({type:L,selectors:[["cdk-dialog-container"]],viewQuery:function(s,m){if(1&s&&C.Gf(w.Pl,7),2&s){let l;C.iGM(l=C.CRH())&&(m._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(s,m){2&s&&C.uIk("id",m._config.id||null)("role",m._config.role)("aria-modal",m._config.ariaModal)("aria-labelledby",m._config.ariaLabel?null:m._ariaLabelledBy)("aria-label",m._config.ariaLabel)("aria-describedby",m._config.ariaDescribedBy||null)},features:[C.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,m){1&s&&C.YNc(0,Y,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),L})();class te{constructor(r,s){this.overlayRef=r,this.config=s,this.closed=new v.x,this.disableClose=s.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(m=>{m.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(m)&&(m.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,s){if(this.containerInstance){const m=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this.overlayRef.dispose(),m.next(r),m.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",s=""){return this.overlayRef.updateSize({width:r,height:s}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const fe=new C.OlP("DialogScrollStrategy"),ue=new C.OlP("DialogData"),we=new C.OlP("DefaultDialogConfig"),O={provide:fe,deps:[d.aV],useFactory:function E(L){return()=>L.scrollStrategies.block()}};let H=0,W=(()=>{class L{constructor(s,m,l,o,n,t){this._overlay=s,this._injector=m,this._defaultOptions=l,this._parentDialog=o,this._overlayContainer=n,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(s,m){(m={...this._defaultOptions||new X,...m}).id=m.id||"cdk-dialog-"+H++,m.id&&this.getDialogById(m.id);const o=this._getOverlayConfig(m),n=this._overlay.create(o),t=new te(n,m),i=this._attachContainer(n,t,m);return t.containerInstance=i,this._attachDialogContent(s,t,i,m),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){$(this.openDialogs,s=>s.close())}getDialogById(s){return this.openDialogs.find(m=>m.id===s)}ngOnDestroy(){$(this._openDialogsAtThisLevel,s=>{!1===s.config.closeOnDestroy&&this._removeOpenDialog(s,!1)}),$(this._openDialogsAtThisLevel,s=>s.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(s){const m=new d.X_({positionStrategy:s.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:s.scrollStrategy||this._scrollStrategy(),panelClass:s.panelClass,hasBackdrop:s.hasBackdrop,direction:s.direction,minWidth:s.minWidth,minHeight:s.minHeight,maxWidth:s.maxWidth,maxHeight:s.maxHeight,width:s.width,height:s.height,disposeOnNavigation:s.closeOnNavigation});return s.backdropClass&&(m.backdropClass=s.backdropClass),m}_attachContainer(s,m,l){var o,n;const t=null!==(o=l.injector)&&void 0!==o?o:null===(n=l.viewContainerRef)||void 0===n?void 0:n.injector,i=[{provide:X,useValue:l},{provide:te,useValue:m},{provide:d.Iu,useValue:s}];let a;l.container?"function"==typeof l.container?a=l.container:(a=l.container.type,i.push(...l.container.providers(l))):a=le;const c=new w.C5(a,l.viewContainerRef,C.zs3.create({parent:t||this._injector,providers:i}),l.componentFactoryResolver);return s.attach(c).instance}_attachDialogContent(s,m,l,o){const n=this._createInjector(o,m,l);if(s instanceof C.Rgc){let t={$implicit:o.data,dialogRef:m};o.templateContext&&(t={...t,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),l.attachTemplatePortal(new w.UE(s,null,t,n))}else{const t=l.attachComponentPortal(new w.C5(s,o.viewContainerRef,n,o.componentFactoryResolver));m.componentInstance=t.instance}}_createInjector(s,m,l){const o=s&&s.viewContainerRef&&s.viewContainerRef.injector,n=[{provide:ue,useValue:s.data},{provide:te,useValue:m}];return s.providers&&("function"==typeof s.providers?n.push(...s.providers(m,s,l)):n.push(...s.providers)),s.direction&&(!o||!o.get(_.Is,null,C.XFs.Optional))&&n.push({provide:_.Is,useValue:{value:s.direction,change:(0,U.of)()}}),C.zs3.create({parent:s.injector||o||this._injector,providers:n})}_removeOpenDialog(s,m){const l=this.openDialogs.indexOf(s);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,n)=>{o?n.setAttribute("aria-hidden",o):n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),m&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const s=this._overlayContainer.getContainerElement();if(s.parentElement){const m=s.parentElement.children;for(let l=m.length-1;l>-1;l--){const o=m[l];o!==s&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return L.\u0275fac=function(s){return new(s||L)(C.LFG(d.aV),C.LFG(C.zs3),C.LFG(we,8),C.LFG(L,12),C.LFG(d.Xj),C.LFG(fe))},L.\u0275prov=C.Yz7({token:L,factory:L.\u0275fac}),L})();function $(L,r){let s=L.length;for(;s--;)r(L[s])}let de=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275mod=C.oAB({type:L}),L.\u0275inj=C.cJS({providers:[W,O],imports:[d.U8,w.eL,e.rt,w.eL]}),L})();var ye=h(3238),xe=h(56451),Me=h(39300),Ze=h(95698),se=h(37340);function ze(L,r){}const he={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},De={dialogContainer:(0,se.X$)("dialogContainer",[(0,se.SB)("void, exit",(0,se.oB)({opacity:0,transform:"scale(0.7)"})),(0,se.SB)("enter",(0,se.oB)({transform:"none"})),(0,se.eR)("* => enter",(0,se.ru)([(0,se.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,se.oB)({transform:"none",opacity:1})),(0,se.IO)("@*",(0,se.pV)(),{optional:!0})]),he),(0,se.eR)("* => void, * => exit",(0,se.ru)([(0,se.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,se.oB)({opacity:0})),(0,se.IO)("@*",(0,se.pV)(),{optional:!0})]),he)])};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=he.params.enterAnimationDuration,this.exitAnimationDuration=he.params.exitAnimationDuration}}let P=(()=>{class L extends le{constructor(s,m,l,o,n,t,i,a){super(s,m,l,o,n,t,i,a),this._animationStateChanged=new C.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(s){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:s})}}return L.\u0275fac=function(s){return new(s||L)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(j),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(d.Iu),C.Y36(e.tE))},L.\u0275cmp=C.Xpm({type:L,selectors:[["ng-component"]],features:[C.qOj],decls:0,vars:0,template:function(s,m){},encapsulation:2}),L})(),G=(()=>{class L extends P{constructor(s,m,l,o,n,t,i,a,c){super(s,m,l,o,n,t,i,c),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:s,totalTime:m}){"enter"===s?this._openAnimationDone(m):"exit"===s&&this._animationStateChanged.next({state:"closed",totalTime:m})}_onAnimationStart({toState:s,totalTime:m}){"enter"===s?this._animationStateChanged.next({state:"opening",totalTime:m}):("exit"===s||"void"===s)&&this._animationStateChanged.next({state:"closing",totalTime:m})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||he.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||he.params.exitAnimationDuration}}}}return L.\u0275fac=function(s){return new(s||L)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(j),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(d.Iu),C.Y36(C.sBO),C.Y36(e.tE))},L.\u0275cmp=C.Xpm({type:L,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(s,m){1&s&&C.WFA("@dialogContainer.start",function(o){return m._onAnimationStart(o)})("@dialogContainer.done",function(o){return m._onAnimationDone(o)}),2&s&&(C.Ikx("id",m._config.id),C.uIk("aria-modal",m._config.ariaModal)("role",m._config.role)("aria-labelledby",m._config.ariaLabel?null:m._ariaLabelledBy)("aria-label",m._config.ariaLabel)("aria-describedby",m._config.ariaDescribedBy||null),C.d8E("@dialogContainer",m._getAnimationState()))},features:[C.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(s,m){1&s&&C.YNc(0,ze,0,0,"ng-template",0)},dependencies:[w.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:[De.dialogContainer]}}),L})();class ce{constructor(r,s,m){this._ref=r,this._containerInstance=m,this._afterOpened=new v.x,this._beforeClosed=new v.x,this._state=0,this.disableClose=s.disableClose,this.id=r.id,m._animationStateChanged.pipe((0,Me.h)(l=>"opened"===l.state),(0,Ze.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),m._animationStateChanged.pipe((0,Me.h)(l=>"closed"===l.state),(0,Ze.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,xe.T)(this.backdropClick(),this.keydownEvents().pipe((0,Me.h)(l=>l.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(l)))).subscribe(l=>{this.disableClose||(l.preventDefault(),function q(L,r,s){L._closeInteractionType=r,L.close(s)}(this,"keydown"===l.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Me.h)(s=>"closing"===s.state),(0,Ze.q)(1)).subscribe(s=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.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(r){let s=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?s.left(r.left):s.right(r.right):s.centerHorizontally(),r&&(r.top||r.bottom)?r.top?s.top(r.top):s.bottom(r.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",s=""){return this._ref.updateSize(r,s),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Te=new C.OlP("MatDialogData"),He=new C.OlP("mat-dialog-default-options"),dt=new C.OlP("mat-dialog-scroll-strategy"),Qe={provide:dt,deps:[d.aV],useFactory:function _t(L){return()=>L.scrollStrategies.block()}};let st=0,Z=(()=>{class L{constructor(s,m,l,o,n,t,i,a,c,p){this._overlay=s,this._defaultOptions=l,this._parentDialog=o,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,R.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=t,this._dialog=m.get(W)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const s=this._parentDialog;return s?s._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(s,m){let l;(m={...this._defaultOptions||new j,...m}).id=m.id||`${this._idPrefix}${st++}`,m.scrollStrategy=m.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(s,{...m,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:j,useValue:m},{provide:X,useValue:m}]},templateContext:()=>({dialogRef:l}),providers:(n,t,i)=>{var a;return l=new this._dialogRefConstructor(n,m,i),l.updatePosition(null===(a=m)||void 0===a?void 0:a.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:l}]}});return l.componentInstance=o.componentInstance,this.openDialogs.push(l),this.afterOpened.next(l),l.afterClosed().subscribe(()=>{const n=this.openDialogs.indexOf(l);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||this._getAfterAllClosed().next())}),l}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(s){return this.openDialogs.find(m=>m.id===s)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(s){let m=s.length;for(;m--;)s[m].close()}}return L.\u0275fac=function(s){C.$Z()},L.\u0275prov=C.Yz7({token:L,factory:L.\u0275fac}),L})(),ve=(()=>{class L extends Z{constructor(s,m,l,o,n,t,i,a){super(s,m,o,t,i,n,ce,G,Te,a)}}return L.\u0275fac=function(s){return new(s||L)(C.LFG(d.aV),C.LFG(C.zs3),C.LFG(g.Ye,8),C.LFG(He,8),C.LFG(dt),C.LFG(L,12),C.LFG(d.Xj),C.LFG(C.QbO,8))},L.\u0275prov=C.Yz7({token:L,factory:L.\u0275fac}),L})(),oe=0,ae=(()=>{class L{constructor(s,m,l){this._dialogRef=s,this._elementRef=m,this._dialog=l,this.id="mat-dialog-title-"+oe++}ngOnInit(){this._dialogRef||(this._dialogRef=function me(L,r){let s=L.nativeElement.parentElement;for(;s&&!s.classList.contains("mat-dialog-container");)s=s.parentElement;return s?r.find(m=>m.id===s.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const s=this._dialogRef._containerInstance;s&&!s._ariaLabelledBy&&(s._ariaLabelledBy=this.id)})}}return L.\u0275fac=function(s){return new(s||L)(C.Y36(ce,8),C.Y36(C.SBq),C.Y36(ve))},L.\u0275dir=C.lG2({type:L,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(s,m){2&s&&C.Ikx("id",m.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),L})(),Oe=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=C.lG2({type:L,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),L})(),Q=(()=>{class L{constructor(){this.align="start"}}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=C.lG2({type:L,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(s,m){2&s&&C.ekj("mat-dialog-actions-align-center","center"===m.align)("mat-dialog-actions-align-end","end"===m.align)},inputs:{align:"align"}}),L})(),N=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275mod=C.oAB({type:L}),L.\u0275inj=C.cJS({providers:[ve,Qe],imports:[de,d.U8,w.eL,ye.BQ,ye.BQ]}),L})()},44850:(Je,pe,h)=>{"use strict";h.d(pe,{d:()=>w,t:()=>g});var e=h(94650),d=h(21281),A=h(3238);let w=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(v){this._vertical=(0,d.Ig)(v)}get inset(){return this._inset}set inset(v){this._inset=(0,d.Ig)(v)}}return C.\u0275fac=function(v){return new(v||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(v,R){2&v&&(e.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(v,R){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),C})(),g=(()=>{class C{}return C.\u0275fac=function(v){return new(v||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),C})()},37084:(Je,pe,h)=>{"use strict";h.d(pe,{pp:()=>Qe,To:()=>st,ib:()=>ce,HS:()=>j,u4:()=>et,yz:()=>dt,yK:()=>_t});var e=h(94650),d=h(95017),A=h(21281),w=h(77579),g=h(50727);let C=0;const T=new e.OlP("CdkAccordion");let v=(()=>{class Z{constructor(){this._stateChanges=new w.x,this._openCloseAllActions=new w.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(oe){this._multi=(0,A.Ig)(oe)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275dir=e.lG2({type:Z,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:T,useExisting:Z}]),e.TTD]}),Z})(),R=0,U=(()=>{class Z{constructor(oe,ge,ae){this.accordion=oe,this._changeDetectorRef=ge,this._expansionDispatcher=ae,this._openCloseAllSubscription=g.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+R++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ae.listen((Oe,Q)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Q&&this.id!==Oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(oe){oe=(0,A.Ig)(oe),this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,A.Ig)(oe)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(oe=>{this.disabled||(this.expanded=oe)})}}return Z.\u0275fac=function(oe){return new(oe||Z)(e.Y36(T,12),e.Y36(e.sBO),e.Y36(d.A8))},Z.\u0275dir=e.lG2({type:Z,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:T,useValue:void 0}])]}),Z})(),_=(()=>{class Z{}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275mod=e.oAB({type:Z}),Z.\u0275inj=e.cJS({}),Z})();var V=h(84080),Y=h(36895),X=h(3238),ne=h(12687),le=h(71884),te=h(68675),fe=h(39300),ue=h(95698),we=h(29521),E=h(60515),O=h(56451),H=h(37340);const W=["body"];function $(Z,ve){}const de=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ye=["mat-expansion-panel-header","*","mat-action-row"];function xe(Z,ve){if(1&Z&&e._UZ(0,"span",2),2&Z){const oe=e.oxw();e.Q6J("@indicatorRotate",oe._getExpandedState())}}const Me=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ze=["mat-panel-title","mat-panel-description","*"],se=new e.OlP("MAT_ACCORDION"),ze="225ms cubic-bezier(0.4,0.0,0.2,1)",he={indicatorRotate:(0,H.X$)("indicatorRotate",[(0,H.SB)("collapsed, void",(0,H.oB)({transform:"rotate(0deg)"})),(0,H.SB)("expanded",(0,H.oB)({transform:"rotate(180deg)"})),(0,H.eR)("expanded <=> collapsed, void => collapsed",(0,H.jt)(ze))]),bodyExpansion:(0,H.X$)("bodyExpansion",[(0,H.SB)("collapsed, void",(0,H.oB)({height:"0px",visibility:"hidden"})),(0,H.SB)("expanded",(0,H.oB)({height:"*",visibility:"visible"})),(0,H.eR)("expanded <=> collapsed, void => collapsed",(0,H.jt)(ze))])},De=new e.OlP("MAT_EXPANSION_PANEL");let j=(()=>{class Z{constructor(oe,ge){this._template=oe,this._expansionPanel=ge}}return Z.\u0275fac=function(oe){return new(oe||Z)(e.Y36(e.Rgc),e.Y36(De,8))},Z.\u0275dir=e.lG2({type:Z,selectors:[["ng-template","matExpansionPanelContent",""]]}),Z})(),P=0;const G=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ce=(()=>{class Z extends U{constructor(oe,ge,ae,Oe,Q,me,N){super(oe,ge,ae),this._viewContainerRef=Oe,this._animationMode=me,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new w.x,this._headerId="mat-expansion-panel-header-"+P++,this._bodyAnimationDone=new w.x,this.accordion=oe,this._document=Q,this._bodyAnimationDone.pipe((0,le.x)((L,r)=>L.fromState===r.fromState&&L.toState===r.toState)).subscribe(L=>{"void"!==L.fromState&&("expanded"===L.toState?this.afterExpand.emit():"collapsed"===L.toState&&this.afterCollapse.emit())}),N&&(this.hideToggle=N.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=(0,A.Ig)(oe)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,te.O)(null),(0,fe.h)(()=>this.expanded&&!this._portal),(0,ue.q)(1)).subscribe(()=>{this._portal=new V.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,ge=this._body.nativeElement;return oe===ge||ge.contains(oe)}return!1}}return Z.\u0275fac=function(oe){return new(oe||Z)(e.Y36(se,12),e.Y36(e.sBO),e.Y36(d.A8),e.Y36(e.s_b),e.Y36(Y.K0),e.Y36(e.QbO,8),e.Y36(G,8))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["mat-expansion-panel"]],contentQueries:function(oe,ge,ae){if(1&oe&&e.Suo(ae,j,5),2&oe){let Oe;e.iGM(Oe=e.CRH())&&(ge._lazyContent=Oe.first)}},viewQuery:function(oe,ge){if(1&oe&&e.Gf(W,5),2&oe){let ae;e.iGM(ae=e.CRH())&&(ge._body=ae.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(oe,ge){2&oe&&e.ekj("mat-expanded",ge.expanded)("_mat-animation-noopable","NoopAnimations"===ge._animationMode)("mat-expansion-panel-spacing",ge._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:se,useValue:void 0},{provide:De,useExisting:Z}]),e.qOj,e.TTD],ngContentSelectors:ye,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(oe,ge){1&oe&&(e.F$t(de),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Oe){return ge._bodyAnimationDone.next(Oe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,$,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&oe&&(e.xp6(1),e.Q6J("@bodyExpansion",ge._getExpandedState())("id",ge.id),e.uIk("aria-labelledby",ge._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",ge._portal))},dependencies:[V.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[he.bodyExpansion]},changeDetection:0}),Z})();class Te{}const He=(0,X.sb)(Te);let dt=(()=>{class Z extends He{constructor(oe,ge,ae,Oe,Q,me,N){super(),this.panel=oe,this._element=ge,this._focusMonitor=ae,this._changeDetectorRef=Oe,this._animationMode=me,this._parentChangeSubscription=g.w0.EMPTY;const L=oe.accordion?oe.accordion._stateChanges.pipe((0,fe.h)(r=>!(!r.hideToggle&&!r.togglePosition))):E.E;this.tabIndex=parseInt(N||"")||0,this._parentChangeSubscription=(0,O.T)(oe.opened,oe.closed,L,oe._inputChanges.pipe((0,fe.h)(r=>!!(r.hideToggle||r.disabled||r.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,fe.h)(()=>oe._containsFocus())).subscribe(()=>ae.focusVia(ge,"program")),Q&&(this.expandedHeight=Q.expandedHeight,this.collapsedHeight=Q.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case we.L_:case we.K5:(0,we.Vb)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,ge){oe?this._focusMonitor.focusVia(this._element,oe,ge):this._element.nativeElement.focus(ge)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Z.\u0275fac=function(oe){return new(oe||Z)(e.Y36(ce,1),e.Y36(e.SBq),e.Y36(ne.tE),e.Y36(e.sBO),e.Y36(G,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(oe,ge){1&oe&&e.NdJ("click",function(){return ge._toggle()})("keydown",function(Oe){return ge._keydown(Oe)}),2&oe&&(e.uIk("id",ge.panel._headerId)("tabindex",ge.tabIndex)("aria-controls",ge._getPanelId())("aria-expanded",ge._isExpanded())("aria-disabled",ge.panel.disabled),e.Udp("height",ge._getHeaderHeight()),e.ekj("mat-expanded",ge._isExpanded())("mat-expansion-toggle-indicator-after","after"===ge._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===ge._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===ge._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Ze,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(oe,ge){1&oe&&(e.F$t(Me),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,xe,1,1,"span",1)),2&oe&&(e.xp6(4),e.Q6J("ngIf",ge._showToggle()))},dependencies:[Y.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[he.indicatorRotate]},changeDetection:0}),Z})(),et=(()=>{class Z{}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275dir=e.lG2({type:Z,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Z})(),_t=(()=>{class Z{}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275dir=e.lG2({type:Z,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Z})(),Qe=(()=>{class Z extends v{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(oe){this._hideToggle=(0,A.Ig)(oe)}ngAfterContentInit(){this._headers.changes.pipe((0,te.O)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(ge=>ge.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ne.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Z.\u0275fac=function(){let ve;return function(ge){return(ve||(ve=e.n5z(Z)))(ge||Z)}}(),Z.\u0275dir=e.lG2({type:Z,selectors:[["mat-accordion"]],contentQueries:function(oe,ge,ae){if(1&oe&&e.Suo(ae,dt,5),2&oe){let Oe;e.iGM(Oe=e.CRH())&&(ge._headers=Oe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(oe,ge){2&oe&&e.ekj("mat-accordion-multi",ge.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:se,useExisting:Z}]),e.qOj]}),Z})(),st=(()=>{class Z{}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275mod=e.oAB({type:Z}),Z.\u0275inj=e.cJS({imports:[Y.ez,X.BQ,_,V.eL]}),Z})()},59549:(Je,pe,h)=>{"use strict";h.d(pe,{Eo:()=>j,G_:()=>Q,KE:()=>me,R9:()=>Z,TO:()=>he,UY:()=>et,bx:()=>He,hX:()=>dt,lN:()=>N});var e=h(49643),d=h(36895),A=h(94650),w=h(3238),g=h(40445),C=h(21281),T=h(77579),v=h(56451),R=h(54968),U=h(68675),_=h(82722),V=h(95698),Y=h(37340),X=h(83353);const ne=["connectionContainer"],le=["inputContainer"],te=["label"];function fe(L,r){1&L&&(A.ynx(0),A.TgZ(1,"div",14),A._UZ(2,"div",15)(3,"div",16)(4,"div",17),A.qZA(),A.TgZ(5,"div",18),A._UZ(6,"div",15)(7,"div",16)(8,"div",17),A.qZA(),A.BQk())}function ue(L,r){if(1&L){const s=A.EpF();A.TgZ(0,"div",19),A.NdJ("cdkObserveContent",function(){A.CHM(s);const l=A.oxw();return A.KtG(l.updateOutlineGap())}),A.Hsn(1,1),A.qZA()}if(2&L){const s=A.oxw();A.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)}}function we(L,r){if(1&L&&(A.ynx(0),A.Hsn(1,2),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.BQk()),2&L){const s=A.oxw(2);A.xp6(3),A.Oqu(s._control.placeholder)}}function E(L,r){1&L&&A.Hsn(0,3,["*ngSwitchCase","true"])}function O(L,r){1&L&&(A.TgZ(0,"span",23),A._uU(1," *"),A.qZA())}function H(L,r){if(1&L){const s=A.EpF();A.TgZ(0,"label",20,21),A.NdJ("cdkObserveContent",function(){A.CHM(s);const l=A.oxw();return A.KtG(l.updateOutlineGap())}),A.YNc(2,we,4,1,"ng-container",12),A.YNc(3,E,1,0,"ng-content",12),A.YNc(4,O,2,0,"span",22),A.qZA()}if(2&L){const s=A.oxw();A.ekj("mat-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-form-field-empty",s._control.empty&&!s._shouldAlwaysFloat())("mat-accent","accent"==s.color)("mat-warn","warn"==s.color),A.Q6J("cdkObserveContentDisabled","outline"!=s.appearance)("id",s._labelId)("ngSwitch",s._hasLabel()),A.uIk("for",s._control.id)("aria-owns",s._control.id),A.xp6(2),A.Q6J("ngSwitchCase",!1),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngIf",!s.hideRequiredMarker&&s._control.required&&!s._control.disabled)}}function W(L,r){1&L&&(A.TgZ(0,"div",24),A.Hsn(1,4),A.qZA())}function $(L,r){if(1&L&&(A.TgZ(0,"div",25),A._UZ(1,"span",26),A.qZA()),2&L){const s=A.oxw();A.xp6(1),A.ekj("mat-accent","accent"==s.color)("mat-warn","warn"==s.color)}}function de(L,r){if(1&L&&(A.TgZ(0,"div"),A.Hsn(1,5),A.qZA()),2&L){const s=A.oxw();A.Q6J("@transitionMessages",s._subscriptAnimationState)}}function ye(L,r){if(1&L&&(A.TgZ(0,"div",30),A._uU(1),A.qZA()),2&L){const s=A.oxw(2);A.Q6J("id",s._hintLabelId),A.xp6(1),A.Oqu(s.hintLabel)}}function xe(L,r){if(1&L&&(A.TgZ(0,"div",27),A.YNc(1,ye,2,2,"div",28),A.Hsn(2,6),A._UZ(3,"div",29),A.Hsn(4,7),A.qZA()),2&L){const s=A.oxw();A.Q6J("@transitionMessages",s._subscriptAnimationState),A.xp6(1),A.Q6J("ngIf",s.hintLabel)}}const Me=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ze=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let se=0;const ze=new A.OlP("MatError");let he=(()=>{class L{constructor(s,m){this.id="mat-error-"+se++,s||m.nativeElement.setAttribute("aria-live","polite")}}return L.\u0275fac=function(s){return new(s||L)(A.$8M("aria-live"),A.Y36(A.SBq))},L.\u0275dir=A.lG2({type:L,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(s,m){2&s&&A.uIk("id",m.id)},inputs:{id:"id"},features:[A._Bn([{provide:ze,useExisting:L}])]}),L})();const De={transitionMessages:(0,Y.X$)("transitionMessages",[(0,Y.SB)("enter",(0,Y.oB)({opacity:1,transform:"translateY(0%)"})),(0,Y.eR)("void => enter",[(0,Y.oB)({opacity:0,transform:"translateY(-5px)"}),(0,Y.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let j=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=A.lG2({type:L}),L})(),q=0;const Te=new A.OlP("MatHint");let He=(()=>{class L{constructor(){this.align="start",this.id="mat-hint-"+q++}}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=A.lG2({type:L,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(s,m){2&s&&(A.uIk("id",m.id)("align",null),A.ekj("mat-form-field-hint-end","end"===m.align))},inputs:{align:"align",id:"id"},features:[A._Bn([{provide:Te,useExisting:L}])]}),L})(),dt=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=A.lG2({type:L,selectors:[["mat-label"]]}),L})(),et=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=A.lG2({type:L,selectors:[["mat-placeholder"]]}),L})();const _t=new A.OlP("MatPrefix"),st=new A.OlP("MatSuffix");let Z=(()=>{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275dir=A.lG2({type:L,selectors:[["","matSuffix",""]],features:[A._Bn([{provide:st,useExisting:L}])]}),L})(),ve=0;const ae=(0,w.pj)(class{constructor(L){this._elementRef=L}},"primary"),Oe=new A.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Q=new A.OlP("MatFormField");let me=(()=>{class L extends ae{constructor(s,m,l,o,n,t,i){super(s),this._changeDetectorRef=m,this._dir=l,this._defaults=o,this._platform=n,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new T.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ve++,this._labelId="mat-form-field-label-"+ve++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=o?.appearance||"legacy",o&&(this._hideRequiredMarker=Boolean(o.hideRequiredMarker),o.color&&(this.color=this.defaultColor=o.color))}get appearance(){return this._appearance}set appearance(s){var m;const l=this._appearance;this._appearance=s||(null===(m=this._defaults)||void 0===m?void 0:m.appearance)||"legacy","outline"===this._appearance&&l!==s&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(s){this._hideRequiredMarker=(0,C.Ig)(s)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(s){this._hintLabel=s,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(s){s!==this._floatLabel&&(this._floatLabel=s||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(s){this._explicitFormFieldControl=s}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const s=this._control;s.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${s.controlType}`),s.stateChanges.pipe((0,U.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),s.ngControl&&s.ngControl.valueChanges&&s.ngControl.valueChanges.pipe((0,_.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,_.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,U.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,U.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,_.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(s){const m=this._control?this._control.ngControl:null;return m&&m[s]}_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,R.R)(this._label.nativeElement,"transitionend").pipe((0,V.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 s=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&s.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const m=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,l=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;m?s.push(m.id):this._hintLabel&&s.push(this._hintLabelId),l&&s.push(l.id)}else this._errorChildren&&s.push(...this._errorChildren.map(m=>m.id));this._control.setDescribedByIds(s)}}_validateControlChild(){}updateOutlineGap(){const s=this._label?this._label.nativeElement:null,m=this._connectionContainerRef.nativeElement,l=".mat-form-field-outline-start",o=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!s||!s.children.length||!s.textContent.trim()){const c=m.querySelectorAll(`${l}, ${o}`);for(let p=0;p0?.75*Pt+10:0}for(let c=0;c{class L{}return L.\u0275fac=function(s){return new(s||L)},L.\u0275mod=A.oAB({type:L}),L.\u0275inj=A.cJS({imports:[d.ez,w.BQ,e.Q8,w.BQ]}),L})()},97392:(Je,pe,h)=>{"use strict";h.d(pe,{Hw:()=>q,Ps:()=>Te,jv:()=>de});var e=h(94650),d=h(3238),A=h(21281),w=h(36895),g=h(39646),C=h(62843),T=h(4128),v=h(50727),R=h(18505),U=h(54004),_=h(70262),V=h(28746),Y=h(13099),X=h(95698),ne=h(80529),le=h(11481);const te=["*"];let fe;function we(He){var dt;return(null===(dt=function ue(){if(void 0===fe&&(fe=null,typeof window<"u")){const He=window;void 0!==He.trustedTypes&&(fe=He.trustedTypes.createPolicy("angular#components",{createHTML:dt=>dt}))}return fe}())||void 0===dt?void 0:dt.createHTML(He))||He}function E(He){return Error(`Unable to find icon with the name "${He}"`)}function H(He){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${He}".`)}function W(He){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${He}".`)}class ${constructor(dt,et,_t){this.url=dt,this.svgText=et,this.options=_t}}let de=(()=>{class He{constructor(et,_t,Qe,st){this._httpClient=et,this._sanitizer=_t,this._errorHandler=st,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","mat-ligature-font"],this._document=Qe}addSvgIcon(et,_t,Qe){return this.addSvgIconInNamespace("",et,_t,Qe)}addSvgIconLiteral(et,_t,Qe){return this.addSvgIconLiteralInNamespace("",et,_t,Qe)}addSvgIconInNamespace(et,_t,Qe,st){return this._addSvgIconConfig(et,_t,new $(Qe,null,st))}addSvgIconResolver(et){return this._resolvers.push(et),this}addSvgIconLiteralInNamespace(et,_t,Qe,st){const Z=this._sanitizer.sanitize(e.q3G.HTML,Qe);if(!Z)throw W(Qe);const ve=we(Z);return this._addSvgIconConfig(et,_t,new $("",ve,st))}addSvgIconSet(et,_t){return this.addSvgIconSetInNamespace("",et,_t)}addSvgIconSetLiteral(et,_t){return this.addSvgIconSetLiteralInNamespace("",et,_t)}addSvgIconSetInNamespace(et,_t,Qe){return this._addSvgIconSetConfig(et,new $(_t,null,Qe))}addSvgIconSetLiteralInNamespace(et,_t,Qe){const st=this._sanitizer.sanitize(e.q3G.HTML,_t);if(!st)throw W(_t);const Z=we(st);return this._addSvgIconSetConfig(et,new $("",Z,Qe))}registerFontClassAlias(et,_t=et){return this._fontCssClassesByAlias.set(et,_t),this}classNameForFontAlias(et){return this._fontCssClassesByAlias.get(et)||et}setDefaultFontSetClass(...et){return this._defaultFontSetClass=et,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(et){const _t=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,et);if(!_t)throw H(et);const Qe=this._cachedIconsByUrl.get(_t);return Qe?(0,g.of)(Me(Qe)):this._loadSvgIconFromConfig(new $(et,null)).pipe((0,R.b)(st=>this._cachedIconsByUrl.set(_t,st)),(0,U.U)(st=>Me(st)))}getNamedSvgIcon(et,_t=""){const Qe=Ze(_t,et);let st=this._svgIconConfigs.get(Qe);if(st)return this._getSvgFromConfig(st);if(st=this._getIconConfigFromResolvers(_t,et),st)return this._svgIconConfigs.set(Qe,st),this._getSvgFromConfig(st);const Z=this._iconSetConfigs.get(_t);return Z?this._getSvgFromIconSetConfigs(et,Z):(0,C._)(E(Qe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(et){return et.svgText?(0,g.of)(Me(this._svgElementFromConfig(et))):this._loadSvgIconFromConfig(et).pipe((0,U.U)(_t=>Me(_t)))}_getSvgFromIconSetConfigs(et,_t){const Qe=this._extractIconWithNameFromAnySet(et,_t);if(Qe)return(0,g.of)(Qe);const st=_t.filter(Z=>!Z.svgText).map(Z=>this._loadSvgIconSetFromConfig(Z).pipe((0,_.K)(ve=>{const ge=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Z.url)} failed: ${ve.message}`;return this._errorHandler.handleError(new Error(ge)),(0,g.of)(null)})));return(0,T.D)(st).pipe((0,U.U)(()=>{const Z=this._extractIconWithNameFromAnySet(et,_t);if(!Z)throw E(et);return Z}))}_extractIconWithNameFromAnySet(et,_t){for(let Qe=_t.length-1;Qe>=0;Qe--){const st=_t[Qe];if(st.svgText&&st.svgText.toString().indexOf(et)>-1){const Z=this._svgElementFromConfig(st),ve=this._extractSvgIconFromSet(Z,et,st.options);if(ve)return ve}}return null}_loadSvgIconFromConfig(et){return this._fetchIcon(et).pipe((0,R.b)(_t=>et.svgText=_t),(0,U.U)(()=>this._svgElementFromConfig(et)))}_loadSvgIconSetFromConfig(et){return et.svgText?(0,g.of)(null):this._fetchIcon(et).pipe((0,R.b)(_t=>et.svgText=_t))}_extractSvgIconFromSet(et,_t,Qe){const st=et.querySelector(`[id="${_t}"]`);if(!st)return null;const Z=st.cloneNode(!0);if(Z.removeAttribute("id"),"svg"===Z.nodeName.toLowerCase())return this._setSvgAttributes(Z,Qe);if("symbol"===Z.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Z),Qe);const ve=this._svgElementFromString(we(""));return ve.appendChild(Z),this._setSvgAttributes(ve,Qe)}_svgElementFromString(et){const _t=this._document.createElement("DIV");_t.innerHTML=et;const Qe=_t.querySelector("svg");if(!Qe)throw Error(" tag not found");return Qe}_toSvgElement(et){const _t=this._svgElementFromString(we("")),Qe=et.attributes;for(let st=0;stwe(ae)),(0,V.x)(()=>this._inProgressUrlFetches.delete(ve)),(0,Y.B)());return this._inProgressUrlFetches.set(ve,ge),ge}_addSvgIconConfig(et,_t,Qe){return this._svgIconConfigs.set(Ze(et,_t),Qe),this}_addSvgIconSetConfig(et,_t){const Qe=this._iconSetConfigs.get(et);return Qe?Qe.push(_t):this._iconSetConfigs.set(et,[_t]),this}_svgElementFromConfig(et){if(!et.svgElement){const _t=this._svgElementFromString(et.svgText);this._setSvgAttributes(_t,et.options),et.svgElement=_t}return et.svgElement}_getIconConfigFromResolvers(et,_t){for(let Qe=0;Qedt?dt.pathname+dt.search:""}}}),P=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],G=P.map(He=>`[${He}]`).join(", "),ce=/^url\(['"]?#(.*?)['"]?\)$/;let q=(()=>{class He extends ze{constructor(et,_t,Qe,st,Z,ve){super(et),this._iconRegistry=_t,this._location=st,this._errorHandler=Z,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=v.w0.EMPTY,ve&&(ve.color&&(this.color=this.defaultColor=ve.color),ve.fontSet&&(this.fontSet=ve.fontSet)),Qe||et.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(et){this._inline=(0,A.Ig)(et)}get svgIcon(){return this._svgIcon}set svgIcon(et){et!==this._svgIcon&&(et?this._updateSvgIcon(et):this._svgIcon&&this._clearSvgElement(),this._svgIcon=et)}get fontSet(){return this._fontSet}set fontSet(et){const _t=this._cleanupFontValue(et);_t!==this._fontSet&&(this._fontSet=_t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(et){const _t=this._cleanupFontValue(et);_t!==this._fontIcon&&(this._fontIcon=_t,this._updateFontIconClasses())}_splitIconName(et){if(!et)return["",""];const _t=et.split(":");switch(_t.length){case 1:return["",_t[0]];case 2:return _t;default:throw Error(`Invalid icon name: "${et}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const et=this._elementsWithExternalReferences;if(et&&et.size){const _t=this._location.getPathname();_t!==this._previousPath&&(this._previousPath=_t,this._prependPathToReferences(_t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(et){this._clearSvgElement();const _t=this._location.getPathname();this._previousPath=_t,this._cacheChildrenWithExternalReferences(et),this._prependPathToReferences(_t),this._elementRef.nativeElement.appendChild(et)}_clearSvgElement(){const et=this._elementRef.nativeElement;let _t=et.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();_t--;){const Qe=et.childNodes[_t];(1!==Qe.nodeType||"svg"===Qe.nodeName.toLowerCase())&&Qe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const et=this._elementRef.nativeElement,_t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Qe=>Qe.length>0);this._previousFontSetClass.forEach(Qe=>et.classList.remove(Qe)),_t.forEach(Qe=>et.classList.add(Qe)),this._previousFontSetClass=_t,this.fontIcon!==this._previousFontIconClass&&!_t.includes("mat-ligature-font")&&(this._previousFontIconClass&&et.classList.remove(this._previousFontIconClass),this.fontIcon&&et.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(et){return"string"==typeof et?et.trim().split(" ")[0]:et}_prependPathToReferences(et){const _t=this._elementsWithExternalReferences;_t&&_t.forEach((Qe,st)=>{Qe.forEach(Z=>{st.setAttribute(Z.name,`url('${et}#${Z.value}')`)})})}_cacheChildrenWithExternalReferences(et){const _t=et.querySelectorAll(G),Qe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let st=0;st<_t.length;st++)P.forEach(Z=>{const ve=_t[st],oe=ve.getAttribute(Z),ge=oe?oe.match(ce):null;if(ge){let ae=Qe.get(ve);ae||(ae=[],Qe.set(ve,ae)),ae.push({name:Z,value:ge[1]})}})}_updateSvgIcon(et){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),et){const[_t,Qe]=this._splitIconName(et);_t&&(this._svgNamespace=_t),Qe&&(this._svgName=Qe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Qe,_t).pipe((0,X.q)(1)).subscribe(st=>this._setSvgElement(st),st=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${_t}:${Qe}! ${st.message}`))})}}}return He.\u0275fac=function(et){return new(et||He)(e.Y36(e.SBq),e.Y36(de),e.$8M("aria-hidden"),e.Y36(De),e.Y36(e.qLn),e.Y36(he,8))},He.\u0275cmp=e.Xpm({type:He,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(et,_t){2&et&&(e.uIk("data-mat-icon-type",_t._usingFontIcon()?"font":"svg")("data-mat-icon-name",_t._svgName||_t.fontIcon)("data-mat-icon-namespace",_t._svgNamespace||_t.fontSet),e.ekj("mat-icon-inline",_t.inline)("mat-icon-no-color","primary"!==_t.color&&"accent"!==_t.color&&"warn"!==_t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:te,decls:1,vars:0,template:function(et,_t){1&et&&(e.F$t(),e.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),He})(),Te=(()=>{class He{}return He.\u0275fac=function(et){return new(et||He)},He.\u0275mod=e.oAB({type:He}),He.\u0275inj=e.cJS({imports:[d.BQ,d.BQ]}),He})()},284:(Je,pe,h)=>{"use strict";h.d(pe,{Jk:()=>U,Nt:()=>X,c:()=>ne});var e=h(21281),d=h(83353),A=h(39349),w=h(94650),g=h(24006),C=h(3238),T=h(59549),v=h(77579);const U=new w.OlP("MAT_INPUT_VALUE_ACCESSOR"),_=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let V=0;const Y=(0,C.FD)(class{constructor(le,te,fe,ue){this._defaultErrorStateMatcher=le,this._parentForm=te,this._parentFormGroup=fe,this.ngControl=ue,this.stateChanges=new v.x}});let X=(()=>{class le extends Y{constructor(fe,ue,we,E,O,H,W,$,de,ye){super(H,E,O,we),this._elementRef=fe,this._platform=ue,this._autofillMonitor=$,this._formField=ye,this._uid="mat-input-"+V++,this.focused=!1,this.stateChanges=new v.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(Ze=>(0,d.qK)().has(Ze)),this._iOSKeyupListener=Ze=>{const se=Ze.target;!se.value&&0===se.selectionStart&&0===se.selectionEnd&&(se.setSelectionRange(1,1),se.setSelectionRange(0,0))};const xe=this._elementRef.nativeElement,Me=xe.nodeName.toLowerCase();this._inputValueAccessor=W||xe,this._previousNativeValue=this.value,this.id=this.id,ue.IOS&&de.runOutsideAngular(()=>{fe.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Me,this._isTextarea="textarea"===Me,this._isInFormField=!!ye,this._isNativeSelect&&(this.controlType=xe.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(fe){this._disabled=(0,e.Ig)(fe),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(fe){this._id=fe||this._uid}get required(){var fe,ue,we,E;return null!==(fe=null!==(ue=this._required)&&void 0!==ue?ue:null===(we=this.ngControl)||void 0===we||null===(E=we.control)||void 0===E?void 0:E.hasValidator(g.kI.required))&&void 0!==fe&&fe}set required(fe){this._required=(0,e.Ig)(fe)}get type(){return this._type}set type(fe){this._type=fe||"text",this._validateType(),!this._isTextarea&&(0,d.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(fe){fe!==this.value&&(this._inputValueAccessor.value=fe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(fe){this._readonly=(0,e.Ig)(fe)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(fe=>{this.autofilled=fe.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(fe){this._elementRef.nativeElement.focus(fe)}_focusChanged(fe){fe!==this.focused&&(this.focused=fe,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var fe;const ue=this._formField,we=!ue||"legacy"!==ue.appearance||null!==(fe=ue._hasLabel)&&void 0!==fe&&fe.call(ue)?this.placeholder:null;if(we!==this._previousPlaceholder){const E=this._elementRef.nativeElement;this._previousPlaceholder=we,we?E.setAttribute("placeholder",we):E.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const fe=this._elementRef.nativeElement.value;this._previousNativeValue!==fe&&(this._previousNativeValue=fe,this.stateChanges.next())}_validateType(){_.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let fe=this._elementRef.nativeElement.validity;return fe&&fe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const fe=this._elementRef.nativeElement,ue=fe.options[0];return this.focused||fe.multiple||!this.empty||!!(fe.selectedIndex>-1&&ue&&ue.label)}return this.focused||!this.empty}setDescribedByIds(fe){fe.length?this._elementRef.nativeElement.setAttribute("aria-describedby",fe.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const fe=this._elementRef.nativeElement;return this._isNativeSelect&&(fe.multiple||fe.size>1)}}return le.\u0275fac=function(fe){return new(fe||le)(w.Y36(w.SBq),w.Y36(d.t4),w.Y36(g.a5,10),w.Y36(g.F,8),w.Y36(g.sg,8),w.Y36(C.rD),w.Y36(U,10),w.Y36(A.Lq),w.Y36(w.R0b),w.Y36(T.G_,8))},le.\u0275dir=w.lG2({type:le,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(fe,ue){1&fe&&w.NdJ("focus",function(){return ue._focusChanged(!0)})("blur",function(){return ue._focusChanged(!1)})("input",function(){return ue._onInput()}),2&fe&&(w.Ikx("disabled",ue.disabled)("required",ue.required),w.uIk("id",ue.id)("data-placeholder",ue.placeholder)("name",ue.name||null)("readonly",ue.readonly&&!ue._isNativeSelect||null)("aria-invalid",ue.empty&&ue.required?null:ue.errorState)("aria-required",ue.required),w.ekj("mat-input-server",ue._isServer)("mat-native-select-inline",ue._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:[w._Bn([{provide:T.Eo,useExisting:le}]),w.qOj,w.TTD]}),le})(),ne=(()=>{class le{}return le.\u0275fac=function(fe){return new(fe||le)},le.\u0275mod=w.oAB({type:le}),le.\u0275inj=w.cJS({providers:[C.rD],imports:[A.Ky,T.lN,C.BQ,A.Ky,T.lN]}),le})()},96338:(Je,pe,h)=>{"use strict";h.d(pe,{Tg:()=>Ze,i$:()=>de,ie:()=>G});var e=h(36895),d=h(94650),A=h(3238),w=h(21281),g=h(77579),C=h(82722),V=(h(68675),h(12687),h(95017),h(29521),h(24006),h(44850));const Y=["*"],ne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],le=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],E=(0,A.Id)((0,A.Kr)(class{})),O=(0,A.Kr)(class{}),H=new d.OlP("MatList"),W=new d.OlP("MatNavList");let de=(()=>{class ce extends E{constructor(Te){super(),this._elementRef=Te,this._stateChanges=new g.x,"action-list"===this._getListType()&&Te.nativeElement.classList.add("mat-action-list")}_getListType(){const Te=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Te?"list":"mat-action-list"===Te?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return ce.\u0275fac=function(Te){return new(Te||ce)(d.Y36(d.SBq))},ce.\u0275cmp=d.Xpm({type:ce,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[d._Bn([{provide:H,useExisting:ce}]),d.qOj,d.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(Te,He){1&Te&&(d.F$t(),d.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),ce})(),ye=(()=>{class ce{}return ce.\u0275fac=function(Te){return new(Te||ce)},ce.\u0275dir=d.lG2({type:ce,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),ce})(),xe=(()=>{class ce{}return ce.\u0275fac=function(Te){return new(Te||ce)},ce.\u0275dir=d.lG2({type:ce,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),ce})(),Ze=(()=>{class ce extends O{constructor(Te,He,dt,et){super(),this._element=Te,this._isInteractiveList=!1,this._destroyed=new g.x,this._disabled=!1,this._isInteractiveList=!!(dt||et&&"action-list"===et._getListType()),this._list=dt||et;const _t=this._getHostElement();"button"===_t.nodeName.toLowerCase()&&!_t.hasAttribute("type")&&_t.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>{He.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Te){this._disabled=(0,w.Ig)(Te)}ngAfterContentInit(){(0,A.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return ce.\u0275fac=function(Te){return new(Te||ce)(d.Y36(d.SBq),d.Y36(d.sBO),d.Y36(W,8),d.Y36(H,8))},ce.\u0275cmp=d.Xpm({type:ce,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Te,He,dt){if(1&Te&&(d.Suo(dt,ye,5),d.Suo(dt,xe,5),d.Suo(dt,A.X2,5)),2&Te){let et;d.iGM(et=d.CRH())&&(He._avatar=et.first),d.iGM(et=d.CRH())&&(He._icon=et.first),d.iGM(et=d.CRH())&&(He._lines=et)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Te,He){2&Te&&d.ekj("mat-list-item-disabled",He.disabled)("mat-list-item-with-avatar",He._avatar||He._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[d.qOj],ngContentSelectors:le,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(Te,He){1&Te&&(d.F$t(ne),d.TgZ(0,"span",0),d._UZ(1,"span",1),d.Hsn(2),d.TgZ(3,"span",2),d.Hsn(4,1),d.qZA(),d.Hsn(5,2),d.qZA()),2&Te&&(d.xp6(1),d.Q6J("matRippleTrigger",He._getHostElement())("matRippleDisabled",He._isRippleDisabled()))},dependencies:[A.wG],encapsulation:2,changeDetection:0}),ce})(),G=(()=>{class ce{}return ce.\u0275fac=function(Te){return new(Te||ce)},ce.\u0275mod=d.oAB({type:ce}),ce.\u0275inj=d.cJS({imports:[A.uc,A.si,A.BQ,A.us,e.ez,A.uc,A.BQ,A.us,V.t]}),ce})()},28255:(Je,pe,h)=>{"use strict";h.d(pe,{OP:()=>q,Tx:()=>Oe,VK:()=>_t,p6:()=>ae});var e=h(12687),d=h(21281),A=h(29521),w=h(94650),g=h(77579),C=h(50727),T=h(56451),v=h(39646),R=h(53101),U=h(68675),_=h(63900),V=h(95698),Y=h(82722),X=h(39300),ne=h(91005),le=h(37340),te=h(84080),fe=h(36895),ue=h(3238),we=h(40445),E=h(98184),O=h(83353),H=h(67376);const W=["mat-menu-item",""];function $(Q,me){1&Q&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const de=["*"];function ye(Q,me){if(1&Q){const N=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(r){w.CHM(N);const s=w.oxw();return w.KtG(s._handleKeydown(r))})("click",function(){w.CHM(N);const r=w.oxw();return w.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){w.CHM(N);const s=w.oxw();return w.KtG(s._onAnimationStart(r))})("@transformMenu.done",function(r){w.CHM(N);const s=w.oxw();return w.KtG(s._onAnimationDone(r))}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA()()}if(2&Q){const N=w.oxw();w.Q6J("id",N.panelId)("ngClass",N._classList)("@transformMenu",N._panelAnimationState),w.uIk("aria-label",N.ariaLabel||null)("aria-labelledby",N.ariaLabelledby||null)("aria-describedby",N.ariaDescribedby||null)}}const xe={transformMenu:(0,le.X$)("transformMenu",[(0,le.SB)("void",(0,le.oB)({opacity:0,transform:"scale(0.8)"})),(0,le.eR)("void => enter",(0,le.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,le.oB)({opacity:1,transform:"scale(1)"}))),(0,le.eR)("* => void",(0,le.jt)("100ms 25ms linear",(0,le.oB)({opacity:0})))]),fadeInItems:(0,le.X$)("fadeInItems",[(0,le.SB)("showing",(0,le.oB)({opacity:1})),(0,le.eR)("void => *",[(0,le.oB)({opacity:0}),(0,le.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},se=new w.OlP("MatMenuContent"),G=new w.OlP("MAT_MENU_PANEL"),ce=(0,ue.Kr)((0,ue.Id)(class{}));let q=(()=>{class Q extends ce{constructor(N,L,r,s,m){var l;super(),this._elementRef=N,this._document=L,this._focusMonitor=r,this._parentMenu=s,this._changeDetectorRef=m,this.role="menuitem",this._hovered=new g.x,this._focused=new g.x,this._highlighted=!1,this._triggersSubmenu=!1,null==s||null===(l=s.addItem)||void 0===l||l.call(s,this)}focus(N,L){this._focusMonitor&&N?this._focusMonitor.focusVia(this._getHostElement(),N,L):this._getHostElement().focus(L),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(N){this.disabled&&(N.preventDefault(),N.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var N;const L=this._elementRef.nativeElement.cloneNode(!0),r=L.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class Q{constructor(N,L,r,s){this._elementRef=N,this._ngZone=L,this._defaultOptions=r,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=C.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+dt++}get xPosition(){return this._xPosition}set xPosition(N){this._xPosition=N,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(N){this._yPosition=N,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(N){this._overlapTrigger=(0,d.Ig)(N)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(N){this._hasBackdrop=(0,d.Ig)(N)}set panelClass(N){const L=this._previousPanelClass;L&&L.length&&L.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=N,N&&N.length&&(N.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(N){this.panelClass=N}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,_.w)(N=>(0,T.T)(...N.map(L=>L._focused)))).subscribe(N=>this._keyManager.updateActiveItem(N)),this._directDescendantItems.changes.subscribe(N=>{var L;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(L=r.activeItem)&&void 0!==L&&L._hasFocus()){const s=N.toArray(),m=Math.max(0,Math.min(s.length-1,r.activeItemIndex||0));s[m]&&!s[m].disabled?r.setActiveItem(m):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,_.w)(L=>(0,T.T)(...L.map(r=>r._hovered))))}addItem(N){}removeItem(N){}_handleKeydown(N){const L=N.keyCode,r=this._keyManager;switch(L){case A.hY:(0,A.Vb)(N)||(N.preventDefault(),this.closed.emit("keydown"));break;case A.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case A.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(L===A.LH||L===A.JH)&&r.setFocusOrigin("keyboard"),void r.onKeydown(N)}N.stopPropagation()}focusFirstItem(N="program"){this._ngZone.onStable.pipe((0,V.q)(1)).subscribe(()=>{let L=null;if(this._directDescendantItems.length&&(L=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!L||!L.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(N).setFirstItemActive(),!r.activeItem&&L&&L.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(N){const L=Math.min(this._baseElevation+N,24),r=`${this._elevationPrefix}${L}`,s=Object.keys(this._classList).find(m=>m.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(N=this.xPosition,L=this.yPosition){var r;const s=this._classList;s["mat-menu-before"]="before"===N,s["mat-menu-after"]="after"===N,s["mat-menu-above"]="above"===L,s["mat-menu-below"]="below"===L,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(N){this._animationDone.next(N),this._isAnimating=!1}_onAnimationStart(N){this._isAnimating=!0,"enter"===N.toState&&0===this._keyManager.activeItemIndex&&(N.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,U.O)(this._allItems)).subscribe(N=>{this._directDescendantItems.reset(N.filter(L=>L._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Q.\u0275fac=function(N){return new(N||Q)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Te),w.Y36(w.sBO))},Q.\u0275dir=w.lG2({type:Q,contentQueries:function(N,L,r){if(1&N&&(w.Suo(r,se,5),w.Suo(r,q,5),w.Suo(r,q,4)),2&N){let s;w.iGM(s=w.CRH())&&(L.lazyContent=s.first),w.iGM(s=w.CRH())&&(L._allItems=s),w.iGM(s=w.CRH())&&(L.items=s)}},viewQuery:function(N,L){if(1&N&&w.Gf(w.Rgc,5),2&N){let r;w.iGM(r=w.CRH())&&(L.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Q})(),_t=(()=>{class Q extends et{constructor(N,L,r,s){super(N,L,r,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Q.\u0275fac=function(N){return new(N||Q)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Te),w.Y36(w.sBO))},Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(N,L){2&N&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:G,useExisting:Q}]),w.qOj],ngContentSelectors:de,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(N,L){1&N&&(w.F$t(),w.YNc(0,ye,3,6,"ng-template"))},dependencies:[fe.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[xe.transformMenu,xe.fadeInItems]},changeDetection:0}),Q})();const Qe=new w.OlP("mat-menu-scroll-strategy"),Z={provide:Qe,deps:[E.aV],useFactory:function st(Q){return()=>Q.scrollStrategies.reposition()}},oe=(0,O.i$)({passive:!0});let ge=(()=>{class Q{constructor(N,L,r,s,m,l,o,n,t){this._overlay=N,this._element=L,this._viewContainerRef=r,this._menuItemInstance=l,this._dir=o,this._focusMonitor=n,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w0.EMPTY,this._hoverSubscription=C.w0.EMPTY,this._menuCloseSubscription=C.w0.EMPTY,this._handleTouchStart=i=>{(0,e.yG)(i)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=m instanceof et?m:void 0,L.nativeElement.addEventListener("touchstart",this._handleTouchStart,oe),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(N){this.menu=N}get menu(){return this._menu}set menu(N){N!==this._menu&&(this._menu=N,this._menuCloseSubscription.unsubscribe(),N&&(this._menuCloseSubscription=N.close.subscribe(L=>{this._destroyMenu(L),("click"===L||"tab"===L)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(L)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,oe),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const N=this.menu;if(this._menuOpen||!N)return;const L=this._createOverlay(N),r=L.getConfig(),s=r.positionStrategy;this._setPosition(N,s),r.hasBackdrop=N.hasBackdrop??!this.triggersSubmenu(),L.attach(this._getPortal(N)),N.lazyContent&&N.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(N),N instanceof et&&(N._startAnimation(),N._directDescendantItems.changes.pipe((0,Y.R)(N.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){var N;null===(N=this.menu)||void 0===N||N.close.emit()}focus(N,L){this._focusMonitor&&N?this._focusMonitor.focusVia(this._element,N,L):this._element.nativeElement.focus(L)}updatePosition(){var N;null===(N=this._overlayRef)||void 0===N||N.updatePosition()}_destroyMenu(N){if(!this._overlayRef||!this.menuOpen)return;const L=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===N||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,L instanceof et?(L._resetAnimation(),L.lazyContent?L._animationDone.pipe((0,X.h)(s=>"void"===s.toState),(0,V.q)(1),(0,Y.R)(L.lazyContent._attached)).subscribe({next:()=>L.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==L||null===(r=L.lazyContent)||void 0===r||r.detach())}_initMenu(N){N.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,N.direction=this.dir,this._setMenuElevation(N),N.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(N){if(N.setElevation){let L=0,r=N.parentMenu;for(;r;)L++,r=r.parentMenu;N.setElevation(L)}}_setIsMenuOpen(N){this._menuOpen=N,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(N)}_createOverlay(N){if(!this._overlayRef){const L=this._getOverlayConfig(N);this._subscribeToPositions(N,L.positionStrategy),this._overlayRef=this._overlay.create(L),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(N){return new E.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:N.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:N.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(N,L){N.setPositionClasses&&L.positionChanges.subscribe(r=>{const s="start"===r.connectionPair.overlayX?"after":"before",m="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>N.setPositionClasses(s,m)):N.setPositionClasses(s,m)})}_setPosition(N,L){let[r,s]="before"===N.xPosition?["end","start"]:["start","end"],[m,l]="above"===N.yPosition?["bottom","top"]:["top","bottom"],[o,n]=[m,l],[t,i]=[r,s],a=0;if(this.triggersSubmenu()){if(i=r="before"===N.xPosition?"start":"end",s=t="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const c=this._parentMaterialMenu.items.first;this._parentInnerPadding=c?c._getHostElement().offsetTop:0}a="bottom"===m?this._parentInnerPadding:-this._parentInnerPadding}}else N.overlapTrigger||(o="top"===m?"bottom":"top",n="top"===l?"bottom":"top");L.withPositions([{originX:r,originY:o,overlayX:t,overlayY:m,offsetY:a},{originX:s,originY:o,overlayX:i,overlayY:m,offsetY:a},{originX:r,originY:n,overlayX:t,overlayY:l,offsetY:-a},{originX:s,originY:n,overlayX:i,overlayY:l,offsetY:-a}])}_menuClosingActions(){const N=this._overlayRef.backdropClick(),L=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,v.of)(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,X.h)(m=>m!==this._menuItemInstance),(0,X.h)(()=>this._menuOpen)):(0,v.of)();return(0,T.T)(N,r,s,L)}_handleMousedown(N){(0,e.X6)(N)||(this._openedBy=0===N.button?"mouse":void 0,this.triggersSubmenu()&&N.preventDefault())}_handleKeydown(N){const L=N.keyCode;(L===A.K5||L===A.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(L===A.SV&&"ltr"===this.dir||L===A.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(N){this.triggersSubmenu()?(N.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,X.h)(N=>N===this._menuItemInstance&&!N.disabled),(0,ne.g)(0,R.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof et&&this.menu._isAnimating?this.menu._animationDone.pipe((0,V.q)(1),(0,ne.g)(0,R.E),(0,Y.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(N){return(!this._portal||this._portal.templateRef!==N.templateRef)&&(this._portal=new te.UE(N.templateRef,this._viewContainerRef)),this._portal}}return Q.\u0275fac=function(N){return new(N||Q)(w.Y36(E.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(Qe),w.Y36(G,8),w.Y36(q,10),w.Y36(we.Is,8),w.Y36(e.tE),w.Y36(w.R0b))},Q.\u0275dir=w.lG2({type:Q,hostVars:3,hostBindings:function(N,L){1&N&&w.NdJ("click",function(s){return L._handleClick(s)})("mousedown",function(s){return L._handleMousedown(s)})("keydown",function(s){return L._handleKeydown(s)}),2&N&&w.uIk("aria-haspopup",L.menu?"menu":null)("aria-expanded",L.menuOpen||null)("aria-controls",L.menuOpen?L.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),Q})(),ae=(()=>{class Q extends ge{}return Q.\u0275fac=function(){let me;return function(L){return(me||(me=w.n5z(Q)))(L||Q)}}(),Q.\u0275dir=w.lG2({type:Q,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),Q})(),Oe=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275mod=w.oAB({type:Q}),Q.\u0275inj=w.cJS({providers:[Z],imports:[fe.ez,ue.BQ,ue.si,E.U8,H.ZD,ue.BQ]}),Q})()},98739:(Je,pe,h)=>{"use strict";h.d(pe,{NW:()=>W,TU:()=>$,ye:()=>le});var e=h(36895),d=h(94650),A=h(3238),w=h(4859),g=h(84385),C=h(10266),T=h(21281),v=h(77579),R=h(59549);function U(de,ye){if(1&de&&(d.TgZ(0,"mat-option",19),d._uU(1),d.qZA()),2&de){const xe=ye.$implicit;d.Q6J("value",xe),d.xp6(1),d.hij(" ",xe," ")}}function _(de,ye){if(1&de){const xe=d.EpF();d.TgZ(0,"mat-form-field",16)(1,"mat-select",17),d.NdJ("selectionChange",function(Ze){d.CHM(xe);const se=d.oxw(2);return d.KtG(se._changePageSize(Ze.value))}),d.YNc(2,U,2,2,"mat-option",18),d.qZA()()}if(2&de){const xe=d.oxw(2);d.Q6J("appearance",xe._formFieldAppearance)("color",xe.color),d.xp6(1),d.Q6J("value",xe.pageSize)("disabled",xe.disabled)("panelClass",xe.selectConfig.panelClass||"")("disableOptionCentering",xe.selectConfig.disableOptionCentering)("aria-label",xe._intl.itemsPerPageLabel),d.xp6(1),d.Q6J("ngForOf",xe._displayedPageSizeOptions)}}function V(de,ye){if(1&de&&(d.TgZ(0,"div",20),d._uU(1),d.qZA()),2&de){const xe=d.oxw(2);d.xp6(1),d.Oqu(xe.pageSize)}}function Y(de,ye){if(1&de&&(d.TgZ(0,"div",12)(1,"div",13),d._uU(2),d.qZA(),d.YNc(3,_,3,8,"mat-form-field",14),d.YNc(4,V,2,1,"div",15),d.qZA()),2&de){const xe=d.oxw();d.xp6(2),d.hij(" ",xe._intl.itemsPerPageLabel," "),d.xp6(1),d.Q6J("ngIf",xe._displayedPageSizeOptions.length>1),d.xp6(1),d.Q6J("ngIf",xe._displayedPageSizeOptions.length<=1)}}function X(de,ye){if(1&de){const xe=d.EpF();d.TgZ(0,"button",21),d.NdJ("click",function(){d.CHM(xe);const Ze=d.oxw();return d.KtG(Ze.firstPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",22),d.qZA()()}if(2&de){const xe=d.oxw();d.Q6J("matTooltip",xe._intl.firstPageLabel)("matTooltipDisabled",xe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",xe._previousButtonsDisabled()),d.uIk("aria-label",xe._intl.firstPageLabel)}}function ne(de,ye){if(1&de){const xe=d.EpF();d.O4$(),d.kcU(),d.TgZ(0,"button",23),d.NdJ("click",function(){d.CHM(xe);const Ze=d.oxw();return d.KtG(Ze.lastPage())}),d.O4$(),d.TgZ(1,"svg",7),d._UZ(2,"path",24),d.qZA()()}if(2&de){const xe=d.oxw();d.Q6J("matTooltip",xe._intl.lastPageLabel)("matTooltipDisabled",xe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",xe._nextButtonsDisabled()),d.uIk("aria-label",xe._intl.lastPageLabel)}}let le=(()=>{class de{constructor(){this.changes=new v.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(xe,Me,Ze)=>{if(0==Ze||0==Me)return`0 of ${Ze}`;const se=xe*Me;return`${se+1} \u2013 ${se<(Ze=Math.max(Ze,0))?Math.min(se+Me,Ze):se+Me} of ${Ze}`}}}return de.\u0275fac=function(xe){return new(xe||de)},de.\u0275prov=d.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const fe={provide:le,deps:[[new d.FiY,new d.tp0,le]],useFactory:function te(de){return de||new le}},E=new d.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),O=(0,A.Id)((0,A.dB)(class{}));let H=(()=>{class de extends O{constructor(xe,Me,Ze){if(super(),this._intl=xe,this._changeDetectorRef=Me,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new d.vpe,this._intlChanges=xe.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Ze){const{pageSize:se,pageSizeOptions:ze,hidePageSize:he,showFirstLastButtons:De}=Ze;null!=se&&(this._pageSize=se),null!=ze&&(this._pageSizeOptions=ze),null!=he&&(this._hidePageSize=he),null!=De&&(this._showFirstLastButtons=De)}}get pageIndex(){return this._pageIndex}set pageIndex(xe){this._pageIndex=Math.max((0,T.su)(xe),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(xe){this._length=(0,T.su)(xe),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(xe){this._pageSize=Math.max((0,T.su)(xe),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(xe){this._pageSizeOptions=(xe||[]).map(Me=>(0,T.su)(Me)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(xe){this._hidePageSize=(0,T.Ig)(xe)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(xe){this._showFirstLastButtons=(0,T.Ig)(xe)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const xe=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(xe)}previousPage(){if(!this.hasPreviousPage())return;const xe=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(xe)}firstPage(){if(!this.hasPreviousPage())return;const xe=this.pageIndex;this.pageIndex=0,this._emitPageEvent(xe)}lastPage(){if(!this.hasNextPage())return;const xe=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(xe)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const xe=this.getNumberOfPages()-1;return this.pageIndexxe-Me),this._changeDetectorRef.markForCheck())}_emitPageEvent(xe){this.page.emit({previousPageIndex:xe,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return de.\u0275fac=function(xe){d.$Z()},de.\u0275dir=d.lG2({type:de,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[d.qOj]}),de})(),W=(()=>{class de extends H{constructor(xe,Me,Ze){super(xe,Me,Ze),Ze&&null!=Ze.formFieldAppearance&&(this._formFieldAppearance=Ze.formFieldAppearance)}}return de.\u0275fac=function(xe){return new(xe||de)(d.Y36(le),d.Y36(d.sBO),d.Y36(E,8))},de.\u0275cmp=d.Xpm({type:de,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[d.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(xe,Me){1&xe&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,Y,5,3,"div",2),d.TgZ(3,"div",3)(4,"div",4),d._uU(5),d.qZA(),d.YNc(6,X,3,5,"button",5),d.TgZ(7,"button",6),d.NdJ("click",function(){return Me.previousPage()}),d.O4$(),d.TgZ(8,"svg",7),d._UZ(9,"path",8),d.qZA()(),d.kcU(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Me.nextPage()}),d.O4$(),d.TgZ(11,"svg",7),d._UZ(12,"path",10),d.qZA()(),d.YNc(13,ne,3,5,"button",11),d.qZA()()()),2&xe&&(d.xp6(2),d.Q6J("ngIf",!Me.hidePageSize),d.xp6(3),d.hij(" ",Me._intl.getRangeLabel(Me.pageIndex,Me.pageSize,Me.length)," "),d.xp6(1),d.Q6J("ngIf",Me.showFirstLastButtons),d.xp6(1),d.Q6J("matTooltip",Me._intl.previousPageLabel)("matTooltipDisabled",Me._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Me._previousButtonsDisabled()),d.uIk("aria-label",Me._intl.previousPageLabel),d.xp6(3),d.Q6J("matTooltip",Me._intl.nextPageLabel)("matTooltipDisabled",Me._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Me._nextButtonsDisabled()),d.uIk("aria-label",Me._intl.nextPageLabel),d.xp6(3),d.Q6J("ngIf",Me.showFirstLastButtons))},dependencies:[e.sg,e.O5,w.lW,R.KE,g.gD,A.ey,C.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),de})(),$=(()=>{class de{}return de.\u0275fac=function(xe){return new(xe||de)},de.\u0275mod=d.oAB({type:de}),de.\u0275inj=d.cJS({providers:[fe],imports:[e.ez,w.ot,g.LD,C.AV,A.BQ]}),de})()},73162:(Je,pe,h)=>{"use strict";h.d(pe,{Cv:()=>V});var e=h(94650),d=h(36895),A=h(3238);let V=(()=>{class Y{}return Y.\u0275fac=function(ne){return new(ne||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[d.ez,A.BQ,A.BQ]}),Y})()},51572:(Je,pe,h)=>{"use strict";h.d(pe,{Cq:()=>te,Ou:()=>le});var e=h(21281),d=h(83353),A=h(67376),w=h(36895),g=h(94650),C=h(3238),T=h(50727);function v(ue,we){if(1&ue&&(g.O4$(),g._UZ(0,"circle",4)),2&ue){const E=g.oxw(),O=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+E._spinnerAnimationLabel)("stroke-dashoffset",E._getStrokeDashOffset(),"px")("stroke-dasharray",E._getStrokeCircumference(),"px")("stroke-width",E._getCircleStrokeWidth(),"%")("transform-origin",E._getCircleTransformOrigin(O)),g.uIk("r",E._getCircleRadius())}}function R(ue,we){if(1&ue&&(g.O4$(),g._UZ(0,"circle",4)),2&ue){const E=g.oxw(),O=g.MAs(1);g.Udp("stroke-dashoffset",E._getStrokeDashOffset(),"px")("stroke-dasharray",E._getStrokeCircumference(),"px")("stroke-width",E._getCircleStrokeWidth(),"%")("transform-origin",E._getCircleTransformOrigin(O)),g.uIk("r",E._getCircleRadius())}}const V=(0,C.pj)(class{constructor(ue){this._elementRef=ue}},"primary"),Y=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function X(){return{diameter:100}}});class le extends V{constructor(we,E,O,H,W,$,de,ye){super(we),this._document=O,this._diameter=100,this._value=0,this._resizeSubscription=T.w0.EMPTY,this.mode="determinate";const xe=le._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),xe.has(O.head)||xe.set(O.head,new Set([100])),this._noopAnimations="NoopAnimations"===H&&!!W&&!W._forceAnimations,"mat-spinner"===we.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),W&&(W.color&&(this.color=this.defaultColor=W.color),W.diameter&&(this.diameter=W.diameter),W.strokeWidth&&(this.strokeWidth=W.strokeWidth)),E.isBrowser&&E.SAFARI&&de&&$&&ye&&(this._resizeSubscription=de.change(150).subscribe(()=>{"indeterminate"===this.mode&&ye.run(()=>$.markForCheck())}))}get diameter(){return this._diameter}set diameter(we){this._diameter=(0,e.su)(we),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(we){this._strokeWidth=(0,e.su)(we)}get value(){return"determinate"===this.mode?this._value:0}set value(we){this._value=Math.max(0,Math.min(100,(0,e.su)(we)))}ngOnInit(){const we=this._elementRef.nativeElement;this._styleRoot=(0,d.kV)(we)||this._document.head,this._attachStyleNode(),we.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const we=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${we} ${we}`}_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(we){var E;const O=50*(null!==(E=we.currentScale)&&void 0!==E?E:1);return`${O}% ${O}%`}_attachStyleNode(){const we=this._styleRoot,E=this._diameter,O=le._diameters;let H=O.get(we);if(!H||!H.has(E)){const W=this._document.createElement("style");W.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),W.textContent=this._getAnimationText(),we.appendChild(W),H||(H=new Set,O.set(we,H)),H.add(E)}}_getAnimationText(){const we=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*we).replace(/END_VALUE/g,""+.2*we).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}le._diameters=new WeakMap,le.\u0275fac=function(we){return new(we||le)(g.Y36(g.SBq),g.Y36(d.t4),g.Y36(w.K0,8),g.Y36(g.QbO,8),g.Y36(Y),g.Y36(g.sBO),g.Y36(A.rL),g.Y36(g.R0b))},le.\u0275cmp=g.Xpm({type:le,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(we,E){2&we&&(g.uIk("aria-valuemin","determinate"===E.mode?0:null)("aria-valuemax","determinate"===E.mode?100:null)("aria-valuenow","determinate"===E.mode?E.value:null)("mode",E.mode),g.Udp("width",E.diameter,"px")("height",E.diameter,"px"),g.ekj("_mat-animation-noopable",E._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.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(we,E){1&we&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,v,1,11,"circle",2),g.YNc(3,R,1,9,"circle",3),g.qZA()),2&we&&(g.Udp("width",E.diameter,"px")("height",E.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===E.mode),g.uIk("viewBox",E._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.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 te=(()=>{class ue{}return ue.\u0275fac=function(E){return new(E||ue)},ue.\u0275mod=g.oAB({type:ue}),ue.\u0275inj=g.cJS({imports:[C.BQ,w.ez,C.BQ]}),ue})()},71948:(Je,pe,h)=>{"use strict";h.d(pe,{Fk:()=>O,U0:()=>E,VQ:()=>te});var e=h(94650),d=h(3238),A=h(12687),w=h(21281),g=h(95017),C=h(24006);const T=["input"],v=function(H){return{enterDuration:H}},R=["*"],U=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function _(){return{color:"accent"}}});let V=0;const Y={provide:C.JU,useExisting:(0,e.Gpc)(()=>te),multi:!0};class X{constructor(W,$){this.source=W,this.value=$}}const ne=new e.OlP("MatRadioGroup");let le=(()=>{class H{constructor($){this._changeDetector=$,this._value=null,this._name="mat-radio-group-"+V++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name($){this._name=$,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition($){this._labelPosition="before"===$?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value($){this._value!==$&&(this._value=$,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected($){this._selected=$,this.value=$?$.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled($){this._disabled=(0,w.Ig)($),this._markRadiosForCheck()}get required(){return this._required}set required($){this._required=(0,w.Ig)($),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach($=>{$.name=this.name,$._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(de=>{de.checked=this.value===de.value,de.checked&&(this._selected=de)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new X(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach($=>$._markForCheck())}writeValue($){this.value=$,this._changeDetector.markForCheck()}registerOnChange($){this._controlValueAccessorChangeFn=$}registerOnTouched($){this.onTouched=$}setDisabledState($){this.disabled=$,this._changeDetector.markForCheck()}}return H.\u0275fac=function($){return new($||H)(e.Y36(e.sBO))},H.\u0275dir=e.lG2({type:H,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),H})(),te=(()=>{class H extends le{}return H.\u0275fac=function(){let W;return function(de){return(W||(W=e.n5z(H)))(de||H)}}(),H.\u0275dir=e.lG2({type:H,selectors:[["mat-radio-group"]],contentQueries:function($,de,ye){if(1&$&&e.Suo(ye,E,5),2&$){let xe;e.iGM(xe=e.CRH())&&(de._radios=xe)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([Y,{provide:ne,useExisting:H}]),e.qOj]}),H})();class fe{constructor(W){this._elementRef=W}}const ue=(0,d.Kr)((0,d.sb)(fe));let we=(()=>{class H extends ue{constructor($,de,ye,xe,Me,Ze,se,ze){super(de),this._changeDetector=ye,this._focusMonitor=xe,this._radioDispatcher=Me,this._providerOverride=se,this._uniqueId="mat-radio-"+ ++V,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=$,this._noopAnimations="NoopAnimations"===Ze,ze&&(this.tabIndex=(0,w.su)(ze,0)),this._removeUniqueSelectionListener=Me.listen((he,De)=>{he!==this.id&&De===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked($){const de=(0,w.Ig)($);this._checked!==de&&(this._checked=de,de&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!de&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),de&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value($){this._value!==$&&(this._value=$,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===$),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition($){this._labelPosition=$}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled($){this._setDisabled((0,w.Ig)($))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required($){this._required=(0,w.Ig)($)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color($){this._color=$}get inputId(){return`${this.id||this._uniqueId}-input`}focus($,de){de?this._focusMonitor.focusVia(this._inputElement,de,$):this._inputElement.nativeElement.focus($)}_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($=>{!$&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new X(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick($){$.stopPropagation()}_onInputInteraction($){if($.stopPropagation(),!this.checked&&!this.disabled){const de=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),de&&this.radioGroup._emitChangeEvent())}}_setDisabled($){this._disabled!==$&&(this._disabled=$,this._changeDetector.markForCheck())}_updateTabIndex(){const $=this.radioGroup;let de;if(de=$&&$.selected&&!this.disabled?$.selected===this?this.tabIndex:-1:this.tabIndex,de!==this._previousTabIndex){var ye;const xe=null===(ye=this._inputElement)||void 0===ye?void 0:ye.nativeElement;xe&&(xe.setAttribute("tabindex",de+""),this._previousTabIndex=de)}}}return H.\u0275fac=function($){e.$Z()},H.\u0275dir=e.lG2({type:H,viewQuery:function($,de){if(1&$&&e.Gf(T,5),2&$){let ye;e.iGM(ye=e.CRH())&&(de._inputElement=ye.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:[e.qOj]}),H})(),E=(()=>{class H extends we{constructor($,de,ye,xe,Me,Ze,se,ze){super($,de,ye,xe,Me,Ze,se,ze)}}return H.\u0275fac=function($){return new($||H)(e.Y36(ne,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(g.A8),e.Y36(e.QbO,8),e.Y36(U,8),e.$8M("tabindex"))},H.\u0275cmp=e.Xpm({type:H,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function($,de){1&$&&e.NdJ("focus",function(){return de._inputElement.nativeElement.focus()}),2&$&&(e.uIk("tabindex",null)("id",de.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",de.checked)("mat-radio-disabled",de.disabled)("_mat-animation-noopable",de._noopAnimations)("mat-primary","primary"===de.color)("mat-accent","accent"===de.color)("mat-warn","warn"===de.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:R,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($,de){if(1&$&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(xe){return de._onInputInteraction(xe)})("click",function(xe){return de._onInputClick(xe)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&$){const ye=e.MAs(1);e.uIk("for",de.inputId),e.xp6(5),e.Q6J("id",de.inputId)("checked",de.checked)("disabled",de.disabled)("required",de.required),e.uIk("name",de.name)("value",de.value)("aria-label",de.ariaLabel)("aria-labelledby",de.ariaLabelledby)("aria-describedby",de.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",ye)("matRippleDisabled",de._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,v,de._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==de.labelPosition)}},dependencies:[d.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}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),H})(),O=(()=>{class H{}return H.\u0275fac=function($){return new($||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[d.si,d.BQ,d.BQ]}),H})()},84385:(Je,pe,h)=>{"use strict";h.d(pe,{$L:()=>ae,LD:()=>me,gD:()=>Q});var e=h(98184),d=h(36895),A=h(94650),w=h(3238),g=h(59549),C=h(67376),T=h(12687),v=h(40445),R=h(21281),U=h(95017),_=h(29521),V=h(24006),Y=h(77579),X=h(49770),ne=h(56451),le=h(68675),te=h(63900),fe=h(95698),ue=h(39300),we=h(54004),E=h(71884),O=h(82722),H=h(37340);const W=["trigger"],$=["panel"];function de(N,L){if(1&N&&(A.TgZ(0,"span",8),A._uU(1),A.qZA()),2&N){const r=A.oxw();A.xp6(1),A.Oqu(r.placeholder)}}function ye(N,L){if(1&N&&(A.TgZ(0,"span",12),A._uU(1),A.qZA()),2&N){const r=A.oxw(2);A.xp6(1),A.Oqu(r.triggerValue)}}function xe(N,L){1&N&&A.Hsn(0,0,["*ngSwitchCase","true"])}function Me(N,L){if(1&N&&(A.TgZ(0,"span",9),A.YNc(1,ye,2,1,"span",10),A.YNc(2,xe,1,0,"ng-content",11),A.qZA()),2&N){const r=A.oxw();A.Q6J("ngSwitch",!!r.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function Ze(N,L){if(1&N){const r=A.EpF();A.TgZ(0,"div",13)(1,"div",14,15),A.NdJ("@transformPanel.done",function(m){A.CHM(r);const l=A.oxw();return A.KtG(l._panelDoneAnimatingStream.next(m.toState))})("keydown",function(m){A.CHM(r);const l=A.oxw();return A.KtG(l._handleKeydown(m))}),A.Hsn(3,1),A.qZA()()}if(2&N){const r=A.oxw();A.Q6J("@transformPanelWrap",void 0),A.xp6(1),A.Gre("mat-select-panel ",r._getPanelTheme(),""),A.Udp("transform-origin",r._transformOrigin)("font-size",r._triggerFontSize,"px"),A.Q6J("ngClass",r.panelClass)("@transformPanel",r.multiple?"showing-multiple":"showing"),A.uIk("id",r.id+"-panel")("aria-multiselectable",r.multiple)("aria-label",r.ariaLabel||null)("aria-labelledby",r._getPanelAriaLabelledby())}}const se=[[["mat-select-trigger"]],"*"],ze=["mat-select-trigger","*"],he={transformPanelWrap:(0,H.X$)("transformPanelWrap",[(0,H.eR)("* => void",(0,H.IO)("@transformPanel",[(0,H.pV)()],{optional:!0}))]),transformPanel:(0,H.X$)("transformPanel",[(0,H.SB)("void",(0,H.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,H.SB)("showing",(0,H.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,H.SB)("showing-multiple",(0,H.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,H.eR)("void => *",(0,H.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,H.eR)("* => void",(0,H.jt)("100ms 25ms linear",(0,H.oB)({opacity:0})))])};let G=0;const _t=new A.OlP("mat-select-scroll-strategy"),st=new A.OlP("MAT_SELECT_CONFIG"),Z={provide:_t,deps:[e.aV],useFactory:function Qe(N){return()=>N.scrollStrategies.reposition()}};class ve{constructor(L,r){this.source=L,this.value=r}}const oe=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(N,L,r,s,m){this._elementRef=N,this._defaultErrorStateMatcher=L,this._parentForm=r,this._parentFormGroup=s,this.ngControl=m,this.stateChanges=new Y.x}})))),ge=new A.OlP("MatSelectTrigger");let ae=(()=>{class N{}return N.\u0275fac=function(r){return new(r||N)},N.\u0275dir=A.lG2({type:N,selectors:[["mat-select-trigger"]],features:[A._Bn([{provide:ge,useExisting:N}])]}),N})(),Oe=(()=>{class N extends oe{constructor(r,s,m,l,o,n,t,i,a,c,p,M,Ne,Pt){var Ut,ln,xt;super(o,l,t,i,c),this._viewportRuler=r,this._changeDetectorRef=s,this._ngZone=m,this._dir=n,this._parentFormField=a,this._liveAnnouncer=Ne,this._defaultOptions=Pt,this._panelOpen=!1,this._compareWith=(gt,Ge)=>gt===Ge,this._uid="mat-select-"+G++,this._triggerAriaLabelledBy=null,this._destroy=new Y.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+G++,this._panelDoneAnimatingStream=new Y.x,this._overlayPanelClass=(null===(Ut=this._defaultOptions)||void 0===Ut?void 0:Ut.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(ln=null===(xt=this._defaultOptions)||void 0===xt?void 0:xt.disableOptionCentering)&&void 0!==ln&&ln,this.ariaLabel="",this.optionSelectionChanges=(0,X.P)(()=>{const gt=this.options;return gt?gt.changes.pipe((0,le.O)(gt),(0,te.w)(()=>(0,ne.T)(...gt.map(Ge=>Ge.onSelectionChange)))):this._ngZone.onStable.pipe((0,fe.q)(1),(0,te.w)(()=>this.optionSelectionChanges))}),this.openedChange=new A.vpe,this._openedStream=this.openedChange.pipe((0,ue.h)(gt=>gt),(0,we.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,ue.h)(gt=>!gt),(0,we.U)(()=>{})),this.selectionChange=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Pt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Pt.typeaheadDebounceInterval),this._scrollStrategyFactory=M,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(r){this._placeholder=r,this.stateChanges.next()}get required(){var r,s,m,l;return null!==(r=null!==(s=this._required)&&void 0!==s?s:null===(m=this.ngControl)||void 0===m||null===(l=m.control)||void 0===l?void 0:l.hasValidator(V.kI.required))&&void 0!==r&&r}set required(r){this._required=(0,R.Ig)(r),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(r){this._multiple=(0,R.Ig)(r)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(r){this._disableOptionCentering=(0,R.Ig)(r)}get compareWith(){return this._compareWith}set compareWith(r){this._compareWith=r,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(r){this._assignValue(r)&&this._onChange(r)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(r){this._typeaheadDebounceInterval=(0,R.su)(r)}get id(){return this._id}set id(r){this._id=r||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new U.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,E.x)(),(0,O.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,O.R)(this._destroy)).subscribe(r=>{r.added.forEach(s=>s.select()),r.removed.forEach(s=>s.deselect())}),this.options.changes.pipe((0,le.O)(null),(0,O.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const r=this._getTriggerAriaLabelledby(),s=this.ngControl;if(r!==this._triggerAriaLabelledBy){const m=this._elementRef.nativeElement;this._triggerAriaLabelledBy=r,r?m.setAttribute("aria-labelledby",r):m.removeAttribute("aria-labelledby")}s&&(this._previousControl!==s.control&&(void 0!==this._previousControl&&null!==s.disabled&&s.disabled!==this.disabled&&(this.disabled=s.disabled),this._previousControl=s.control),this.updateErrorState())}ngOnChanges(r){(r.disabled||r.userAriaDescribedBy)&&this.stateChanges.next(),r.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(r){this._assignValue(r)}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}setDisabledState(r){this.disabled=r,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var r,s;return this.multiple?(null===(r=this._selectionModel)||void 0===r?void 0:r.selected)||[]:null===(s=this._selectionModel)||void 0===s?void 0:s.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const r=this._selectionModel.selected.map(s=>s.viewValue);return this._isRtl()&&r.reverse(),r.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(r){this.disabled||(this.panelOpen?this._handleOpenKeydown(r):this._handleClosedKeydown(r))}_handleClosedKeydown(r){const s=r.keyCode,m=s===_.JH||s===_.LH||s===_.oh||s===_.SV,l=s===_.K5||s===_.L_,o=this._keyManager;if(!o.isTyping()&&l&&!(0,_.Vb)(r)||(this.multiple||r.altKey)&&m)r.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;o.onKeydown(r);const t=this.selected;t&&n!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(r){const s=this._keyManager,m=r.keyCode,l=m===_.JH||m===_.LH,o=s.isTyping();if(l&&r.altKey)r.preventDefault(),this.close();else if(o||m!==_.K5&&m!==_.L_||!s.activeItem||(0,_.Vb)(r))if(!o&&this._multiple&&m===_.A&&r.ctrlKey){r.preventDefault();const n=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(n?t.select():t.deselect())})}else{const n=s.activeItemIndex;s.onKeydown(r),this._multiple&&l&&r.shiftKey&&s.activeItem&&s.activeItemIndex!==n&&s.activeItem._selectViaInteraction()}else r.preventDefault(),s.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,fe.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(r){if(this._selectionModel.selected.forEach(s=>s.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&r)Array.isArray(r),r.forEach(s=>this._selectOptionByValue(s)),this._sortValues();else{const s=this._selectOptionByValue(r);s?this._keyManager.updateActiveItem(s):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(r){const s=this.options.find(m=>{if(this._selectionModel.isSelected(m))return!1;try{return null!=m.value&&this._compareWith(m.value,r)}catch{return!1}});return s&&this._selectionModel.select(s),s}_assignValue(r){return!!(r!==this._value||this._multiple&&Array.isArray(r))&&(this.options&&this._setSelectionByValue(r),this._value=r,!0)}_initKeyManager(){this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,O.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,O.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 r=(0,ne.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,O.R)(r)).subscribe(s=>{this._onSelect(s.source,s.isUserInput),s.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ne.T)(...this.options.map(s=>s._stateChanges)).pipe((0,O.R)(r)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(r,s){const m=this._selectionModel.isSelected(r);null!=r.value||this._multiple?(m!==r.selected&&(r.selected?this._selectionModel.select(r):this._selectionModel.deselect(r)),s&&this._keyManager.setActiveItem(r),this.multiple&&(this._sortValues(),s&&this.focus())):(r.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(r.value)),m!==this._selectionModel.isSelected(r)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const r=this.options.toArray();this._selectionModel.sort((s,m)=>this.sortComparator?this.sortComparator(s,m,r):r.indexOf(s)-r.indexOf(m)),this.stateChanges.next()}}_propagateChanges(r){let s=null;s=this.multiple?this.selected.map(m=>m.value):this.selected?this.selected.value:r,this._value=s,this.valueChange.emit(s),this._onChange(s),this.selectionChange.emit(this._getChangeEvent(s)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var r;return!this._panelOpen&&!this.disabled&&(null===(r=this.options)||void 0===r?void 0:r.length)>0}focus(r){this._elementRef.nativeElement.focus(r)}_getPanelAriaLabelledby(){var r;if(this.ariaLabel)return null;const s=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();return this.ariaLabelledby?(s?s+" ":"")+this.ariaLabelledby:s}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var r;if(this.ariaLabel)return null;const s=null===(r=this._parentFormField)||void 0===r?void 0:r.getLabelId();let m=(s?s+" ":"")+this._valueId;return this.ariaLabelledby&&(m+=" "+this.ariaLabelledby),m}_panelDoneAnimating(r){this.openedChange.emit(r)}setDescribedByIds(r){r.length?this._elementRef.nativeElement.setAttribute("aria-describedby",r.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return N.\u0275fac=function(r){return new(r||N)(A.Y36(C.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(w.rD),A.Y36(A.SBq),A.Y36(v.Is,8),A.Y36(V.F,8),A.Y36(V.sg,8),A.Y36(g.G_,8),A.Y36(V.a5,10),A.$8M("tabindex"),A.Y36(_t),A.Y36(T.Kd),A.Y36(st,8))},N.\u0275dir=A.lG2({type:N,viewQuery:function(r,s){if(1&r&&(A.Gf(W,5),A.Gf($,5),A.Gf(e.pI,5)),2&r){let m;A.iGM(m=A.CRH())&&(s.trigger=m.first),A.iGM(m=A.CRH())&&(s.panel=m.first),A.iGM(m=A.CRH())&&(s._overlayDir=m.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:[A.qOj,A.TTD]}),N})(),Q=(()=>{class N extends Oe{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(r,s,m){const l=this._getItemHeight();return Math.min(Math.max(0,l*r-s+l/2),m)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,O.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,fe.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(r){const s=(0,w.CB)(r,this.options,this.optionGroups),m=this._getItemHeight();this.panel.nativeElement.scrollTop=0===r&&1===s?0:(0,w.jH)((r+s)*m,m,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(r){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(r)}_getChangeEvent(r){return new ve(this,r)}_calculateOverlayOffsetX(){const r=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),s=this._viewportRuler.getViewportSize(),m=this._isRtl(),l=this.multiple?56:32;let o;if(this.multiple)o=40;else if(this.disableOptionCentering)o=16;else{let i=this._selectionModel.selected[0]||this.options.first;o=i&&i.group?32:16}m||(o*=-1);const n=0-(r.left+o-(m?l:0)),t=r.right+o-s.width+(m?0:l);n>0?o+=n+8:t>0&&(o-=t+8),this._overlayDir.offsetX=Math.round(o),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(r,s,m){const l=this._getItemHeight(),o=(l-this._triggerRect.height)/2,n=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?r*l:this._scrollTop===m?(r-(this._getItemCount()-n))*l+(l-(this._getItemCount()*l-256)%l):s-l/2,Math.round(-1*t-o))}_checkOverlayWithinViewport(r){const s=this._getItemHeight(),m=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,o=m.height-this._triggerRect.bottom-8,n=Math.abs(this._offsetY),i=Math.min(this._getItemCount()*s,256)-n-this._triggerRect.height;i>o?this._adjustPanelUp(i,o):n>l?this._adjustPanelDown(n,l,r):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(r,s){const m=Math.round(r-s);this._scrollTop-=m,this._offsetY-=m,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(r,s,m){const l=Math.round(r-s);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=m)return this._scrollTop=m,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const r=this._getItemHeight(),s=this._getItemCount(),m=Math.min(s*r,256),o=s*r-m;let n;n=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),n+=(0,w.CB)(n,this.options,this.optionGroups);const t=m/2;this._scrollTop=this._calculateOverlayScroll(n,t,o),this._offsetY=this._calculateOverlayOffsetY(n,t,o),this._checkOverlayWithinViewport(o)}_getOriginBasedOnOption(){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-s+r/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return N.\u0275fac=function(){let L;return function(s){return(L||(L=A.n5z(N)))(s||N)}}(),N.\u0275cmp=A.Xpm({type:N,selectors:[["mat-select"]],contentQueries:function(r,s,m){if(1&r&&(A.Suo(m,ge,5),A.Suo(m,w.ey,5),A.Suo(m,w.K7,5)),2&r){let l;A.iGM(l=A.CRH())&&(s.customTrigger=l.first),A.iGM(l=A.CRH())&&(s.options=l),A.iGM(l=A.CRH())&&(s.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(r,s){1&r&&A.NdJ("keydown",function(l){return s._handleKeydown(l)})("focus",function(){return s._onFocus()})("blur",function(){return s._onBlur()}),2&r&&(A.uIk("id",s.id)("tabindex",s.tabIndex)("aria-controls",s.panelOpen?s.id+"-panel":null)("aria-expanded",s.panelOpen)("aria-label",s.ariaLabel||null)("aria-required",s.required.toString())("aria-disabled",s.disabled.toString())("aria-invalid",s.errorState)("aria-activedescendant",s._getAriaActiveDescendant()),A.ekj("mat-select-disabled",s.disabled)("mat-select-invalid",s.errorState)("mat-select-required",s.required)("mat-select-empty",s.empty)("mat-select-multiple",s.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[A._Bn([{provide:g.Eo,useExisting:N},{provide:w.HF,useExisting:N}]),A.qOj],ngContentSelectors:ze,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(r,s){if(1&r&&(A.F$t(se),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return s.toggle()}),A.TgZ(3,"div",2),A.YNc(4,de,2,1,"span",3),A.YNc(5,Me,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.qZA()(),A.YNc(8,Ze,4,14,"ng-template",7),A.NdJ("backdropClick",function(){return s.close()})("attach",function(){return s._onAttached()})("detach",function(){return s.close()})),2&r){const m=A.MAs(1);A.uIk("aria-owns",s.panelOpen?s.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",s.empty),A.uIk("id",s._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(3),A.Q6J("cdkConnectedOverlayPanelClass",s._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",s._scrollStrategy)("cdkConnectedOverlayOrigin",m)("cdkConnectedOverlayOpen",s.panelOpen)("cdkConnectedOverlayPositions",s._positions)("cdkConnectedOverlayMinWidth",null==s._triggerRect?null:s._triggerRect.width)("cdkConnectedOverlayOffsetY",s._offsetY)}},dependencies:[d.mk,d.RF,d.n9,d.ED,e.pI,e.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:[he.transformPanelWrap,he.transformPanel]},changeDetection:0}),N})(),me=(()=>{class N{}return N.\u0275fac=function(r){return new(r||N)},N.\u0275mod=A.oAB({type:N}),N.\u0275inj=A.cJS({providers:[Z],imports:[d.ez,e.U8,w.Ng,w.BQ,C.ZD,g.lN,w.Ng,w.BQ]}),N})()},23267:(Je,pe,h)=>{"use strict";h.d(pe,{JX:()=>dt,Rh:()=>He,SJ:()=>_t,TM:()=>et});var e=h(67376),d=h(36895),A=h(94650),w=h(3238),g=h(12687),C=h(40445),T=h(21281),v=h(29521),R=h(83353),U=h(77579),_=h(54968),V=h(56451),Y=h(39300),X=h(54004),ne=h(69718),le=h(82722),te=h(71884),fe=h(95698),ue=h(68675),we=h(78372),E=h(37340);const O=["*"],H=["content"];function W(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(Z);const oe=A.oxw();return A.KtG(oe._onBackdropClicked())}),A.qZA()}if(2&Qe){const Z=A.oxw();A.ekj("mat-drawer-shown",Z._isShowingBackdrop())}}function $(Qe,st){1&Qe&&(A.TgZ(0,"mat-drawer-content"),A.Hsn(1,2),A.qZA())}const de=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ye=["mat-drawer","mat-drawer-content","*"];function xe(Qe,st){if(1&Qe){const Z=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(Z);const oe=A.oxw();return A.KtG(oe._onBackdropClicked())}),A.qZA()}if(2&Qe){const Z=A.oxw();A.ekj("mat-drawer-shown",Z._isShowingBackdrop())}}function Me(Qe,st){1&Qe&&(A.TgZ(0,"mat-sidenav-content"),A.Hsn(1,2),A.qZA())}const Ze=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],se=["mat-sidenav","mat-sidenav-content","*"],he={transformDrawer:(0,E.X$)("transform",[(0,E.SB)("open, open-instant",(0,E.oB)({transform:"none",visibility:"visible"})),(0,E.SB)("void",(0,E.oB)({"box-shadow":"none",visibility:"hidden"})),(0,E.eR)("void => open-instant",(0,E.jt)("0ms")),(0,E.eR)("void <=> open, open-instant => void",(0,E.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},j=new A.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function G(){return!1}}),P=new A.OlP("MAT_DRAWER_CONTAINER");let ce=(()=>{class Qe extends e.PQ{constructor(Z,ve,oe,ge,ae){super(oe,ge,ae),this._changeDetectorRef=Z,this._container=ve}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Te)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Z,ve){2&Z&&A.Udp("margin-left",ve._container._contentMargins.left,"px")("margin-right",ve._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Qe}]),A.qOj],ngContentSelectors:O,decls:1,vars:0,template:function(Z,ve){1&Z&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Qe})(),q=(()=>{class Qe{constructor(Z,ve,oe,ge,ae,Oe,Q,me){this._elementRef=Z,this._focusTrapFactory=ve,this._focusMonitor=oe,this._platform=ge,this._ngZone=ae,this._interactivityChecker=Oe,this._doc=Q,this._container=me,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U.x,this._animationEnd=new U.x,this._animationState="void",this.openedChange=new A.vpe(!0),this._openedStream=this.openedChange.pipe((0,Y.h)(N=>N),(0,X.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Y.h)(N=>N.fromState!==N.toState&&0===N.toState.indexOf("open")),(0,ne.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Y.h)(N=>!N),(0,X.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Y.h)(N=>N.fromState!==N.toState&&"void"===N.toState),(0,ne.h)(void 0)),this._destroyed=new U.x,this.onPositionChanged=new A.vpe,this._modeChanged=new U.x,this.openedChange.subscribe(N=>{N?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,_.R)(this._elementRef.nativeElement,"keydown").pipe((0,Y.h)(N=>N.keyCode===v.hY&&!this.disableClose&&!(0,v.Vb)(N)),(0,le.R)(this._destroyed)).subscribe(N=>this._ngZone.run(()=>{this.close(),N.stopPropagation(),N.preventDefault()}))}),this._animationEnd.pipe((0,te.x)((N,L)=>N.fromState===L.fromState&&N.toState===L.toState)).subscribe(N=>{const{fromState:L,toState:r}=N;(0===r.indexOf("open")&&"void"===L||"void"===r&&0===L.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Z){(Z="end"===Z?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Z),this._position=Z,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Z){this._mode=Z,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Z){this._disableClose=(0,T.Ig)(Z)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Z){("true"===Z||"false"===Z||null==Z)&&(Z=(0,T.Ig)(Z)),this._autoFocus=Z}get opened(){return this._opened}set opened(Z){this.toggle((0,T.Ig)(Z))}_forceFocus(Z,ve){this._interactivityChecker.isFocusable(Z)||(Z.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const oe=()=>{Z.removeEventListener("blur",oe),Z.removeEventListener("mousedown",oe),Z.removeAttribute("tabindex")};Z.addEventListener("blur",oe),Z.addEventListener("mousedown",oe)})),Z.focus(ve)}_focusByCssSelector(Z,ve){let oe=this._elementRef.nativeElement.querySelector(Z);oe&&this._forceFocus(oe,ve)}_takeFocus(){if(!this._focusTrap)return;const Z=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(ve=>{!ve&&"function"==typeof this._elementRef.nativeElement.focus&&Z.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Z){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Z):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Z=this._doc.activeElement;return!!Z&&this._elementRef.nativeElement.contains(Z)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var Z;this._focusTrap&&this._focusTrap.destroy(),null===(Z=this._anchor)||void 0===Z||Z.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Z){return this.toggle(!0,Z)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Z=!this.opened,ve){Z&&ve&&(this._openedVia=ve);const oe=this._setOpen(Z,!Z&&this._isFocusWithinDrawer(),this._openedVia||"program");return Z||(this._openedVia=null),oe}_setOpen(Z,ve,oe){return this._opened=Z,Z?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",ve&&this._restoreFocus(oe)),this._updateFocusTrapState(),new Promise(ge=>{this.openedChange.pipe((0,fe.q)(1)).subscribe(ae=>ge(ae?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Z){const ve=this._elementRef.nativeElement,oe=ve.parentNode;"end"===Z?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),oe.insertBefore(this._anchor,ve)),oe.appendChild(ve)):this._anchor&&this._anchor.parentNode.insertBefore(ve,this._anchor)}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(A.Y36(A.SBq),A.Y36(g.qV),A.Y36(g.tE),A.Y36(R.t4),A.Y36(A.R0b),A.Y36(g.ic),A.Y36(d.K0,8),A.Y36(P,8))},Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["mat-drawer"]],viewQuery:function(Z,ve){if(1&Z&&A.Gf(H,5),2&Z){let oe;A.iGM(oe=A.CRH())&&(ve._content=oe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Z,ve){1&Z&&A.WFA("@transform.start",function(ge){return ve._animationStarted.next(ge)})("@transform.done",function(ge){return ve._animationEnd.next(ge)}),2&Z&&(A.uIk("align",null),A.d8E("@transform",ve._animationState),A.ekj("mat-drawer-end","end"===ve.position)("mat-drawer-over","over"===ve.mode)("mat-drawer-push","push"===ve.mode)("mat-drawer-side","side"===ve.mode)("mat-drawer-opened",ve.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:O,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Z,ve){1&Z&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[he.transformDrawer]},changeDetection:0}),Qe})(),Te=(()=>{class Qe{constructor(Z,ve,oe,ge,ae,Oe=!1,Q){this._dir=Z,this._element=ve,this._ngZone=oe,this._changeDetectorRef=ge,this._animationMode=Q,this._drawers=new A.n_E,this.backdropClick=new A.vpe,this._destroyed=new U.x,this._doCheckSubject=new U.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U.x,Z&&Z.change.pipe((0,le.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),ae.change().pipe((0,le.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Oe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Z){this._autosize=(0,T.Ig)(Z)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Z){this._backdropOverride=null==Z?null:(0,T.Ig)(Z)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,ue.O)(this._allDrawers),(0,le.R)(this._destroyed)).subscribe(Z=>{this._drawers.reset(Z.filter(ve=>!ve._container||ve._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,ue.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Z=>{this._watchDrawerToggle(Z),this._watchDrawerPosition(Z),this._watchDrawerMode(Z)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,we.b)(10),(0,le.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Z=>Z.open())}close(){this._drawers.forEach(Z=>Z.close())}updateContentMargins(){let Z=0,ve=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Z+=this._left._getWidth();else if("push"==this._left.mode){const oe=this._left._getWidth();Z+=oe,ve-=oe}if(this._right&&this._right.opened)if("side"==this._right.mode)ve+=this._right._getWidth();else if("push"==this._right.mode){const oe=this._right._getWidth();ve+=oe,Z-=oe}Z=Z||null,ve=ve||null,(Z!==this._contentMargins.left||ve!==this._contentMargins.right)&&(this._contentMargins={left:Z,right:ve},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Z){Z._animationStarted.pipe((0,Y.h)(ve=>ve.fromState!==ve.toState),(0,le.R)(this._drawers.changes)).subscribe(ve=>{"open-instant"!==ve.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Z.mode&&Z.openedChange.pipe((0,le.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Z.opened))}_watchDrawerPosition(Z){!Z||Z.onPositionChanged.pipe((0,le.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,fe.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Z){Z&&Z._modeChanged.pipe((0,le.R)((0,V.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Z){const ve=this._element.nativeElement.classList,oe="mat-drawer-container-has-open";Z?ve.add(oe):ve.remove(oe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Z=>{"end"==Z.position?this._end=Z:this._start=Z}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Z=>Z&&!Z.disableClose&&this._canHaveBackdrop(Z)).forEach(Z=>Z._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Z){return"side"!==Z.mode||!!this._backdropOverride}_isDrawerOpen(Z){return null!=Z&&Z.opened}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(A.Y36(C.Is,8),A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(e.rL),A.Y36(j),A.Y36(A.QbO,8))},Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["mat-drawer-container"]],contentQueries:function(Z,ve,oe){if(1&Z&&(A.Suo(oe,ce,5),A.Suo(oe,q,5)),2&Z){let ge;A.iGM(ge=A.CRH())&&(ve._content=ge.first),A.iGM(ge=A.CRH())&&(ve._allDrawers=ge)}},viewQuery:function(Z,ve){if(1&Z&&A.Gf(ce,5),2&Z){let oe;A.iGM(oe=A.CRH())&&(ve._userContent=oe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Z,ve){2&Z&&A.ekj("mat-drawer-container-explicit-backdrop",ve._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[A._Bn([{provide:P,useExisting:Qe}])],ngContentSelectors:ye,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Z,ve){1&Z&&(A.F$t(de),A.YNc(0,W,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,$,2,0,"mat-drawer-content",1)),2&Z&&(A.Q6J("ngIf",ve.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!ve._content))},dependencies:[d.O5,ce],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Qe})(),He=(()=>{class Qe extends ce{constructor(Z,ve,oe,ge,ae){super(Z,ve,oe,ge,ae)}}return Qe.\u0275fac=function(Z){return new(Z||Qe)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>et)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Z,ve){2&Z&&A.Udp("margin-left",ve._container._contentMargins.left,"px")("margin-right",ve._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Qe}]),A.qOj],ngContentSelectors:O,decls:1,vars:0,template:function(Z,ve){1&Z&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Qe})(),dt=(()=>{class Qe extends q{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Z){this._fixedInViewport=(0,T.Ig)(Z)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Z){this._fixedTopGap=(0,T.su)(Z)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Z){this._fixedBottomGap=(0,T.su)(Z)}}return Qe.\u0275fac=function(){let st;return function(ve){return(st||(st=A.n5z(Qe)))(ve||Qe)}}(),Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Z,ve){2&Z&&(A.uIk("align",null),A.Udp("top",ve.fixedInViewport?ve.fixedTopGap:null,"px")("bottom",ve.fixedInViewport?ve.fixedBottomGap:null,"px"),A.ekj("mat-drawer-end","end"===ve.position)("mat-drawer-over","over"===ve.mode)("mat-drawer-push","push"===ve.mode)("mat-drawer-side","side"===ve.mode)("mat-drawer-opened",ve.opened)("mat-sidenav-fixed",ve.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[A.qOj],ngContentSelectors:O,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Z,ve){1&Z&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[he.transformDrawer]},changeDetection:0}),Qe})(),et=(()=>{class Qe extends Te{}return Qe.\u0275fac=function(){let st;return function(ve){return(st||(st=A.n5z(Qe)))(ve||Qe)}}(),Qe.\u0275cmp=A.Xpm({type:Qe,selectors:[["mat-sidenav-container"]],contentQueries:function(Z,ve,oe){if(1&Z&&(A.Suo(oe,He,5),A.Suo(oe,dt,5)),2&Z){let ge;A.iGM(ge=A.CRH())&&(ve._content=ge.first),A.iGM(ge=A.CRH())&&(ve._allDrawers=ge)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Z,ve){2&Z&&A.ekj("mat-drawer-container-explicit-backdrop",ve._backdropOverride)},exportAs:["matSidenavContainer"],features:[A._Bn([{provide:P,useExisting:Qe}]),A.qOj],ngContentSelectors:se,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Z,ve){1&Z&&(A.F$t(Ze),A.YNc(0,xe,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,Me,2,0,"mat-sidenav-content",1)),2&Z&&(A.Q6J("ngIf",ve.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!ve._content))},dependencies:[d.O5,He],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Qe})(),_t=(()=>{class Qe{}return Qe.\u0275fac=function(Z){return new(Z||Qe)},Qe.\u0275mod=A.oAB({type:Qe}),Qe.\u0275inj=A.cJS({imports:[d.ez,w.BQ,e.ZD,e.ZD,w.BQ]}),Qe})()},90455:(Je,pe,h)=>{"use strict";h.d(pe,{Rr:()=>le,rP:()=>we});var e=h(49643),d=h(94650),A=h(3238),w=h(12687),g=h(21281),C=h(24006);const T=["input"],v=function(E){return{enterDuration:E}},R=["*"],U=new d.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let _=0;const V={provide:C.JU,useExisting:(0,d.Gpc)(()=>le),multi:!0};class Y{constructor(O,H){this.source=O,this.checked=H}}const X=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor(E){this._elementRef=E}}))));let ne=(()=>{class E extends X{constructor(H,W,$,de,ye,xe,Me){super(H),this._focusMonitor=W,this._changeDetectorRef=$,this.defaults=ye,this._onChange=Ze=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new d.vpe,this.toggleChange=new d.vpe,this.tabIndex=parseInt(de)||0,this.color=this.defaultColor=ye.color||"accent",this._noopAnimations="NoopAnimations"===xe,this.id=this._uniqueId=`${Me}${++_}`}get required(){return this._required}set required(H){this._required=(0,g.Ig)(H)}get checked(){return this._checked}set checked(H){this._checked=(0,g.Ig)(H),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(H=>{"keyboard"===H||"program"===H?this._focused=!0:H||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(H){this.checked=!!H}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return E.\u0275fac=function(H){d.$Z()},E.\u0275dir=d.lG2({type:E,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[d.qOj]}),E})(),le=(()=>{class E extends ne{constructor(H,W,$,de,ye,xe){super(H,W,$,de,ye,xe,"mat-slide-toggle-")}_createChangeEvent(H){return new Y(this,H)}_onChangeEvent(H){H.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(H){H.stopPropagation()}focus(H,W){W?this._focusMonitor.focusVia(this._inputElement,W,H):this._inputElement.nativeElement.focus(H)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return E.\u0275fac=function(H){return new(H||E)(d.Y36(d.SBq),d.Y36(w.tE),d.Y36(d.sBO),d.$8M("tabindex"),d.Y36(U),d.Y36(d.QbO,8))},E.\u0275cmp=d.Xpm({type:E,selectors:[["mat-slide-toggle"]],viewQuery:function(H,W){if(1&H&&d.Gf(T,5),2&H){let $;d.iGM($=d.CRH())&&(W._inputElement=$.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(H,W){2&H&&(d.Ikx("id",W.id),d.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),d.ekj("mat-checked",W.checked)("mat-disabled",W.disabled)("mat-slide-toggle-label-before","before"==W.labelPosition)("_mat-animation-noopable",W._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[d._Bn([V]),d.qOj],ngContentSelectors:R,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(H,W){if(1&H&&(d.F$t(),d.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),d.NdJ("change",function(de){return W._onChangeEvent(de)})("click",function(de){return W._onInputClick(de)}),d.qZA(),d.TgZ(5,"span",5),d._UZ(6,"span",6),d.TgZ(7,"span",7),d._UZ(8,"span",8),d.qZA()()(),d.TgZ(9,"span",9,10),d.NdJ("cdkObserveContent",function(){return W._onLabelTextChange()}),d.TgZ(11,"span",11),d._uU(12,"\xa0"),d.qZA(),d.Hsn(13),d.qZA()()),2&H){const $=d.MAs(1),de=d.MAs(10);d.uIk("for",W.inputId),d.xp6(2),d.ekj("mat-slide-toggle-bar-no-side-margin",!de.textContent||!de.textContent.trim()),d.xp6(1),d.Q6J("id",W.inputId)("required",W.required)("tabIndex",W.tabIndex)("checked",W.checked)("disabled",W.disabled),d.uIk("name",W.name)("aria-checked",W.checked)("aria-label",W.ariaLabel)("aria-labelledby",W.ariaLabelledby)("aria-describedby",W.ariaDescribedby),d.xp6(4),d.Q6J("matRippleTrigger",$)("matRippleDisabled",W.disableRipple||W.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",d.VKq(18,v,W._noopAnimations?0:150))}},dependencies:[A.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),E})(),ue=(()=>{class E{}return E.\u0275fac=function(H){return new(H||E)},E.\u0275mod=d.oAB({type:E}),E.\u0275inj=d.cJS({}),E})(),we=(()=>{class E{}return E.\u0275fac=function(H){return new(H||E)},E.\u0275mod=d.oAB({type:E}),E.\u0275inj=d.cJS({imports:[ue,A.si,A.BQ,e.Q8,ue,A.BQ]}),E})()},17009:(Je,pe,h)=>{"use strict";h.d(pe,{ZX:()=>fe});var e=h(98184),d=h(84080),A=h(36895),w=h(94650),g=h(3238),C=h(4859);h(37340);let fe=(()=>{class H{}return H.\u0275fac=function($){return new($||H)},H.\u0275mod=w.oAB({type:H}),H.\u0275inj=w.cJS({imports:[e.U8,d.eL,A.ez,C.ot,g.BQ,g.BQ]}),H})()},96308:(Je,pe,h)=>{"use strict";h.d(pe,{JX:()=>xe,YE:()=>ue,nU:()=>ye});var e=h(94650),d=h(12687),A=h(21281),w=h(29521),g=h(3238),C=h(77579),T=h(56451),v=h(37340),R=h(36895);const U=["mat-sort-header",""];function _(Me,Ze){if(1&Me){const se=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(se);const he=e.oxw();return e.KtG(he._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(se);const he=e.oxw();return e.KtG(he._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&Me){const se=e.oxw();e.Q6J("@arrowOpacity",se._getArrowViewState())("@arrowPosition",se._getArrowViewState())("@allowChildren",se._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",se._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",se._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",se._getArrowDirectionState())}}const V=["*"],te=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),fe=(0,g.dB)((0,g.Id)(class{}));let ue=(()=>{class Me extends fe{constructor(se){super(),this._defaultOptions=se,this.sortables=new Map,this._stateChanges=new C.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(se){this._direction=se}get disableClear(){return this._disableClear}set disableClear(se){this._disableClear=(0,A.Ig)(se)}register(se){this.sortables.set(se.id,se)}deregister(se){this.sortables.delete(se.id)}sort(se){this.active!=se.id?(this.active=se.id,this.direction=se.start?se.start:this.start):this.direction=this.getNextSortDirection(se),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(se){var ze,he,De;if(!se)return"";const j=null!==(ze=null!==(he=se?.disableClear)&&void 0!==he?he:this.disableClear)&&void 0!==ze?ze:!(null===(De=this._defaultOptions)||void 0===De||!De.disableClear);let P=function we(Me,Ze){let se=["asc","desc"];return"desc"==Me&&se.reverse(),Ze||se.push(""),se}(se.start||this.start,j),G=P.indexOf(this.direction)+1;return G>=P.length&&(G=0),P[G]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Me.\u0275fac=function(se){return new(se||Me)(e.Y36(te,8))},Me.\u0275dir=e.lG2({type:Me,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),Me})();const E=g.mZ.ENTERING+" "+g.yN.STANDARD_CURVE,O={indicator:(0,v.X$)("indicator",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"translateY(0px)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"translateY(10px)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(E))]),leftPointer:(0,v.X$)("leftPointer",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"rotate(-45deg)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"rotate(45deg)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(E))]),rightPointer:(0,v.X$)("rightPointer",[(0,v.SB)("active-asc, asc",(0,v.oB)({transform:"rotate(45deg)"})),(0,v.SB)("active-desc, desc",(0,v.oB)({transform:"rotate(-45deg)"})),(0,v.eR)("active-asc <=> active-desc",(0,v.jt)(E))]),arrowOpacity:(0,v.X$)("arrowOpacity",[(0,v.SB)("desc-to-active, asc-to-active, active",(0,v.oB)({opacity:1})),(0,v.SB)("desc-to-hint, asc-to-hint, hint",(0,v.oB)({opacity:.54})),(0,v.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,v.oB)({opacity:0})),(0,v.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,v.jt)("0ms")),(0,v.eR)("* <=> *",(0,v.jt)(E))]),arrowPosition:(0,v.X$)("arrowPosition",[(0,v.eR)("* => desc-to-hint, * => desc-to-active",(0,v.jt)(E,(0,v.F4)([(0,v.oB)({transform:"translateY(-25%)"}),(0,v.oB)({transform:"translateY(0)"})]))),(0,v.eR)("* => hint-to-desc, * => active-to-desc",(0,v.jt)(E,(0,v.F4)([(0,v.oB)({transform:"translateY(0)"}),(0,v.oB)({transform:"translateY(25%)"})]))),(0,v.eR)("* => asc-to-hint, * => asc-to-active",(0,v.jt)(E,(0,v.F4)([(0,v.oB)({transform:"translateY(25%)"}),(0,v.oB)({transform:"translateY(0)"})]))),(0,v.eR)("* => hint-to-asc, * => active-to-asc",(0,v.jt)(E,(0,v.F4)([(0,v.oB)({transform:"translateY(0)"}),(0,v.oB)({transform:"translateY(-25%)"})]))),(0,v.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,v.oB)({transform:"translateY(0)"})),(0,v.SB)("hint-to-desc, active-to-desc, desc",(0,v.oB)({transform:"translateY(-25%)"})),(0,v.SB)("hint-to-asc, active-to-asc, asc",(0,v.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,v.X$)("allowChildren",[(0,v.eR)("* <=> *",[(0,v.IO)("@*",(0,v.pV)(),{optional:!0})])])};let H=(()=>{class Me{constructor(){this.changes=new C.x}}return Me.\u0275fac=function(se){return new(se||Me)},Me.\u0275prov=e.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"}),Me})();const $={provide:H,deps:[[new e.FiY,new e.tp0,H]],useFactory:function W(Me){return Me||new H}},de=(0,g.Id)(class{});let ye=(()=>{class Me extends de{constructor(se,ze,he,De,j,P,G,ce){super(),this._intl=se,this._changeDetectorRef=ze,this._sort=he,this._columnDef=De,this._focusMonitor=j,this._elementRef=P,this._ariaDescriber=G,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=ce&&ce.arrowPosition&&(this.arrowPosition=ce?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(se){this._updateSortActionDescription(se)}get disableClear(){return this._disableClear}set disableClear(se){this._disableClear=(0,A.Ig)(se)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(se=>{const ze=!!se;ze!==this._showIndicatorHint&&(this._setIndicatorHintVisible(ze),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(se){this._isDisabled()&&se||(this._showIndicatorHint=se,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(se){this._viewState=se||{},this._disableViewStateAnimation&&(this._viewState={toState:se.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(se){!this._isDisabled()&&(se.keyCode===w.L_||se.keyCode===w.K5)&&(se.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const se=this._viewState.fromState;return(se?`${se}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(se){var ze,he;this._sortButton&&(null===(ze=this._ariaDescriber)||void 0===ze||ze.removeDescription(this._sortButton,this._sortActionDescription),null===(he=this._ariaDescriber)||void 0===he||he.describe(this._sortButton,se)),this._sortActionDescription=se}_handleStateChanges(){this._rerenderSubscription=(0,T.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Me.\u0275fac=function(se){return new(se||Me)(e.Y36(H),e.Y36(e.sBO),e.Y36(ue,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(d.tE),e.Y36(e.SBq),e.Y36(d.$s,8),e.Y36(te,8))},Me.\u0275cmp=e.Xpm({type:Me,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(se,ze){1&se&&e.NdJ("click",function(){return ze._handleClick()})("keydown",function(De){return ze._handleKeydown(De)})("mouseenter",function(){return ze._setIndicatorHintVisible(!0)})("mouseleave",function(){return ze._setIndicatorHintVisible(!1)}),2&se&&(e.uIk("aria-sort",ze._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",ze._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:U,ngContentSelectors:V,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(se,ze){1&se&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,_,6,6,"div",2),e.qZA()),2&se&&(e.ekj("mat-sort-header-sorted",ze._isSorted())("mat-sort-header-position-before","before"===ze.arrowPosition),e.uIk("tabindex",ze._isDisabled()?null:0)("role",ze._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",ze._renderArrow()))},dependencies:[R.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[O.indicator,O.leftPointer,O.rightPointer,O.arrowOpacity,O.arrowPosition,O.allowChildren]},changeDetection:0}),Me})(),xe=(()=>{class Me{}return Me.\u0275fac=function(se){return new(se||Me)},Me.\u0275mod=e.oAB({type:Me}),Me.\u0275inj=e.cJS({providers:[$],imports:[R.ez,g.BQ]}),Me})()},86257:(Je,pe,h)=>{"use strict";h.d(pe,{C0:()=>M,BY:()=>p,VY:()=>r,Vq:()=>Ne,T5:()=>ln,fd:()=>Ut});var e=h(84080),d=h(12687),A=h(40445),w=h(21281),g=h(29521),C=h(94650),T=h(83353),v=h(77579),R=h(39646),U=h(68675),_=h(82722);function V(xt,gt){1&xt&&C.Hsn(0)}const Y=["*"];let X=(()=>{class xt{constructor(Ge){this._elementRef=Ge}focus(){this._elementRef.nativeElement.focus()}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(C.SBq))},xt.\u0275dir=C.lG2({type:xt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),xt})(),ne=(()=>{class xt{constructor(Ge){this.template=Ge}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(C.Rgc))},xt.\u0275dir=C.lG2({type:xt,selectors:[["","cdkStepLabel",""]]}),xt})(),le=0;const ue=new C.OlP("STEPPER_GLOBAL_OPTIONS");let we=(()=>{class xt{constructor(Ge,Ie){this._stepper=Ge,this.interacted=!1,this.interactedStream=new C.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Ie||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(Ge){this._editable=(0,w.Ig)(Ge)}get optional(){return this._optional}set optional(Ge){this._optional=(0,w.Ig)(Ge)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(Ge){this._completedOverride=(0,w.Ig)(Ge)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(Ge){this._customError=(0,w.Ig)(Ge)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var Ge;return null!==(Ge=this._stepperOptions.showError)&&void 0!==Ge?Ge:null!=this._customError}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36((0,C.Gpc)(()=>E)),C.Y36(ue,8))},xt.\u0275cmp=C.Xpm({type:xt,selectors:[["cdk-step"]],contentQueries:function(Ge,Ie,Xe){if(1&Ge&&C.Suo(Xe,ne,5),2&Ge){let Ke;C.iGM(Ke=C.CRH())&&(Ie.stepLabel=Ke.first)}},viewQuery:function(Ge,Ie){if(1&Ge&&C.Gf(C.Rgc,7),2&Ge){let Xe;C.iGM(Xe=C.CRH())&&(Ie.content=Xe.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[C.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(Ge,Ie){1&Ge&&(C.F$t(),C.YNc(0,V,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),xt})(),E=(()=>{class xt{constructor(Ge,Ie,Xe){this._dir=Ge,this._changeDetectorRef=Ie,this._elementRef=Xe,this._destroyed=new v.x,this.steps=new C.n_E,this._sortedHeaders=new C.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new C.vpe,this._orientation="horizontal",this._groupId=le++}get linear(){return this._linear}set linear(Ge){this._linear=(0,w.Ig)(Ge)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Ge){const Ie=(0,w.su)(Ge);var Xe;this.steps&&this._steps?(this._isValidIndex(Ie),null===(Xe=this.selected)||void 0===Xe||Xe._markAsInteracted(),this._selectedIndex!==Ie&&!this._anyControlsInvalidOrPending(Ie)&&(Ie>=this._selectedIndex||this.steps.toArray()[Ie].editable)&&this._updateSelectedItemIndex(Ie)):this._selectedIndex=Ie}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Ge){this.selectedIndex=Ge&&this.steps?this.steps.toArray().indexOf(Ge):-1}get orientation(){return this._orientation}set orientation(Ge){this._orientation=Ge,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Ge)}ngAfterContentInit(){this._steps.changes.pipe((0,U.O)(this._steps),(0,_.R)(this._destroyed)).subscribe(Ge=>{this.steps.reset(Ge.filter(Ie=>Ie._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,U.O)(this._stepHeader),(0,_.R)(this._destroyed)).subscribe(Ge=>{this._sortedHeaders.reset(Ge.toArray().sort((Ie,Xe)=>Ie._elementRef.nativeElement.compareDocumentPosition(Xe._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new d.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,U.O)(this._layoutDirection()),(0,_.R)(this._destroyed)).subscribe(Ge=>this._keyManager.withHorizontalOrientation(Ge)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Ge=>Ge.reset()),this._stateChanged()}_getStepLabelId(Ge){return`cdk-step-label-${this._groupId}-${Ge}`}_getStepContentId(Ge){return`cdk-step-content-${this._groupId}-${Ge}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Ge){const Ie=Ge-this._selectedIndex;return Ie<0?"rtl"===this._layoutDirection()?"next":"previous":Ie>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(Ge,Ie="number"){const Xe=this.steps.toArray()[Ge],Ke=this._isCurrentStep(Ge);return Xe._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Xe,Ke):this._getGuidelineLogic(Xe,Ke,Ie)}_getDefaultIndicatorLogic(Ge,Ie){return Ge._showError()&&Ge.hasError&&!Ie?"error":!Ge.completed||Ie?"number":Ge.editable?"edit":"done"}_getGuidelineLogic(Ge,Ie,Xe="number"){return Ge._showError()&&Ge.hasError&&!Ie?"error":Ge.completed&&!Ie?"done":Ge.completed&&Ie?Xe:Ge.editable&&Ie?"edit":Xe}_isCurrentStep(Ge){return this._selectedIndex===Ge}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(Ge){const Ie=this.steps.toArray();this.selectionChange.emit({selectedIndex:Ge,previouslySelectedIndex:this._selectedIndex,selectedStep:Ie[Ge],previouslySelectedStep:Ie[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(Ge):this._keyManager.updateActiveItem(Ge),this._selectedIndex=Ge,this._stateChanged()}_onKeydown(Ge){const Ie=(0,g.Vb)(Ge),Xe=Ge.keyCode,Ke=this._keyManager;null==Ke.activeItemIndex||Ie||Xe!==g.L_&&Xe!==g.K5?Ke.onKeydown(Ge):(this.selectedIndex=Ke.activeItemIndex,Ge.preventDefault())}_anyControlsInvalidOrPending(Ge){return!!(this._linear&&Ge>=0)&&this.steps.toArray().slice(0,Ge).some(Ie=>{const Xe=Ie.stepControl;return(Xe?Xe.invalid||Xe.pending||!Ie.interacted:!Ie.completed)&&!Ie.optional&&!Ie._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Ge=this._elementRef.nativeElement,Ie=(0,T.ht)();return Ge===Ie||Ge.contains(Ie)}_isValidIndex(Ge){return Ge>-1&&(!this.steps||Ge{class xt{constructor(Ge){this._stepper=Ge,this.type="button"}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(E))},xt.\u0275dir=C.lG2({type:xt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(Ge,Ie){1&Ge&&C.NdJ("click",function(){return Ie._stepper.previous()}),2&Ge&&C.Ikx("type",Ie.type)},inputs:{type:"type"}}),xt})(),W=(()=>{class xt{}return xt.\u0275fac=function(Ge){return new(Ge||xt)},xt.\u0275mod=C.oAB({type:xt}),xt.\u0275inj=C.cJS({imports:[A.vT]}),xt})();var $=h(36895),de=h(4859),ye=h(3238),xe=h(97392),Me=h(50727),Ze=h(63900),se=h(54004),ze=h(71884),he=h(37340);function De(xt,gt){if(1&xt&&C.GkF(0,8),2&xt){const Ge=C.oxw();C.Q6J("ngTemplateOutlet",Ge.iconOverrides[Ge.state])("ngTemplateOutletContext",Ge._getIconContext())}}function j(xt,gt){if(1&xt&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw(2);C.xp6(1),C.Oqu(Ge._getDefaultTextForState(Ge.state))}}function P(xt,gt){if(1&xt&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw(2);C.xp6(1),C.Oqu(Ge._intl.completedLabel)}}function G(xt,gt){if(1&xt&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw(2);C.xp6(1),C.Oqu(Ge._intl.editableLabel)}}function ce(xt,gt){if(1&xt&&(C.TgZ(0,"mat-icon",13),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw(2);C.xp6(1),C.Oqu(Ge._getDefaultTextForState(Ge.state))}}function q(xt,gt){if(1&xt&&(C.ynx(0,9),C.YNc(1,j,2,1,"span",10),C.YNc(2,P,2,1,"span",11),C.YNc(3,G,2,1,"span",11),C.YNc(4,ce,2,1,"mat-icon",12),C.BQk()),2&xt){const Ge=C.oxw();C.Q6J("ngSwitch",Ge.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===Ge.state),C.xp6(1),C.Q6J("ngIf","edit"===Ge.state)}}function Te(xt,gt){if(1&xt&&(C.TgZ(0,"div",15),C.GkF(1,16),C.qZA()),2&xt){const Ge=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",Ge._templateLabel().template)}}function He(xt,gt){if(1&xt&&(C.TgZ(0,"div",15),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw();C.xp6(1),C.Oqu(Ge.label)}}function dt(xt,gt){if(1&xt&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw();C.xp6(1),C.Oqu(Ge._intl.optionalLabel)}}function et(xt,gt){if(1&xt&&(C.TgZ(0,"div",18),C._uU(1),C.qZA()),2&xt){const Ge=C.oxw();C.xp6(1),C.Oqu(Ge.errorMessage)}}function _t(xt,gt){}function Qe(xt,gt){if(1&xt&&(C.Hsn(0),C.YNc(1,_t,0,0,"ng-template",0)),2&xt){const Ge=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",Ge._portal)}}const st=["*"];function Z(xt,gt){1&xt&&C._UZ(0,"div",11)}const ve=function(xt,gt){return{step:xt,i:gt}};function oe(xt,gt){if(1&xt&&(C.ynx(0),C.GkF(1,9),C.YNc(2,Z,1,0,"div",10),C.BQk()),2&xt){const Ge=gt.$implicit,Ie=gt.index,Xe=gt.last;C.oxw(2);const Ke=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Ke)("ngTemplateOutletContext",C.WLB(3,ve,Ge,Ie)),C.xp6(1),C.Q6J("ngIf",!Xe)}}const ge=function(xt){return{animationDuration:xt}},ae=function(xt,gt){return{value:xt,params:gt}};function Oe(xt,gt){if(1&xt){const Ge=C.EpF();C.TgZ(0,"div",12),C.NdJ("@horizontalStepTransition.done",function(Xe){C.CHM(Ge);const Ke=C.oxw(2);return C.KtG(Ke._animationDone.next(Xe))}),C.GkF(1,13),C.qZA()}if(2&xt){const Ge=gt.$implicit,Ie=gt.index,Xe=C.oxw(2);C.Q6J("@horizontalStepTransition",C.WLB(7,ae,Xe._getAnimationDirection(Ie),C.VKq(5,ge,Xe._getAnimationDuration())))("id",Xe._getStepContentId(Ie)),C.uIk("aria-labelledby",Xe._getStepLabelId(Ie))("aria-expanded",Xe.selectedIndex===Ie),C.xp6(1),C.Q6J("ngTemplateOutlet",Ge.content)}}function Q(xt,gt){if(1&xt&&(C.TgZ(0,"div",4)(1,"div",5),C.YNc(2,oe,3,6,"ng-container",6),C.qZA(),C.TgZ(3,"div",7),C.YNc(4,Oe,2,10,"div",8),C.qZA()()),2&xt){const Ge=C.oxw();C.xp6(2),C.Q6J("ngForOf",Ge.steps),C.xp6(2),C.Q6J("ngForOf",Ge.steps)}}function me(xt,gt){if(1&xt){const Ge=C.EpF();C.TgZ(0,"div",15),C.GkF(1,9),C.TgZ(2,"div",16)(3,"div",17),C.NdJ("@verticalStepTransition.done",function(Xe){C.CHM(Ge);const Ke=C.oxw(2);return C.KtG(Ke._animationDone.next(Xe))}),C.TgZ(4,"div",18),C.GkF(5,13),C.qZA()()()()}if(2&xt){const Ge=gt.$implicit,Ie=gt.index,Xe=gt.last,Ke=C.oxw(2),ke=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",ke)("ngTemplateOutletContext",C.WLB(9,ve,Ge,Ie)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Xe),C.xp6(1),C.Q6J("@verticalStepTransition",C.WLB(14,ae,Ke._getAnimationDirection(Ie),C.VKq(12,ge,Ke._getAnimationDuration())))("id",Ke._getStepContentId(Ie)),C.uIk("aria-labelledby",Ke._getStepLabelId(Ie))("aria-expanded",Ke.selectedIndex===Ie),C.xp6(2),C.Q6J("ngTemplateOutlet",Ge.content)}}function N(xt,gt){if(1&xt&&(C.ynx(0),C.YNc(1,me,6,17,"div",14),C.BQk()),2&xt){const Ge=C.oxw();C.xp6(1),C.Q6J("ngForOf",Ge.steps)}}function L(xt,gt){if(1&xt){const Ge=C.EpF();C.TgZ(0,"mat-step-header",19),C.NdJ("click",function(){const Ke=C.CHM(Ge).step;return C.KtG(Ke.select())})("keydown",function(Xe){C.CHM(Ge);const Ke=C.oxw();return C.KtG(Ke._onKeydown(Xe))}),C.qZA()}if(2&xt){const Ge=gt.step,Ie=gt.i,Xe=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Xe.orientation)("mat-vertical-stepper-header","vertical"===Xe.orientation),C.Q6J("tabIndex",Xe._getFocusIndex()===Ie?0:-1)("id",Xe._getStepLabelId(Ie))("index",Ie)("state",Xe._getIndicatorType(Ie,Ge.state))("label",Ge.stepLabel||Ge.label)("selected",Xe.selectedIndex===Ie)("active",Xe._stepIsNavigable(Ie,Ge))("optional",Ge.optional)("errorMessage",Ge.errorMessage)("iconOverrides",Xe._iconOverrides)("disableRipple",Xe.disableRipple||!Xe._stepIsNavigable(Ie,Ge))("color",Ge.color||Xe.color),C.uIk("aria-posinset",Ie+1)("aria-setsize",Xe.steps.length)("aria-controls",Xe._getStepContentId(Ie))("aria-selected",Xe.selectedIndex==Ie)("aria-label",Ge.ariaLabel||null)("aria-labelledby",!Ge.ariaLabel&&Ge.ariaLabelledby?Ge.ariaLabelledby:null)("aria-disabled",!Xe._stepIsNavigable(Ie,Ge)||null)}}let r=(()=>{class xt extends ne{}return xt.\u0275fac=function(){let gt;return function(Ie){return(gt||(gt=C.n5z(xt)))(Ie||xt)}}(),xt.\u0275dir=C.lG2({type:xt,selectors:[["","matStepLabel",""]],features:[C.qOj]}),xt})(),s=(()=>{class xt{constructor(){this.changes=new v.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return xt.\u0275fac=function(Ge){return new(Ge||xt)},xt.\u0275prov=C.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"}),xt})();const l={provide:s,deps:[[new C.FiY,new C.tp0,s]],useFactory:function m(xt){return xt||new s}},o=(0,ye.pj)(class extends X{constructor(gt){super(gt)}},"primary");let n=(()=>{class xt extends o{constructor(Ge,Ie,Xe,Ke){super(Xe),this._intl=Ge,this._focusMonitor=Ie,this._intlSubscription=Ge.changes.subscribe(()=>Ke.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ge,Ie){Ge?this._focusMonitor.focusVia(this._elementRef,Ge,Ie):this._elementRef.nativeElement.focus(Ie)}_stringLabel(){return this.label instanceof r?null:this.label}_templateLabel(){return this.label instanceof r?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(Ge){return"number"==Ge?`${this.index+1}`:"edit"==Ge?"create":"error"==Ge?"warning":Ge}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(s),C.Y36(d.tE),C.Y36(C.SBq),C.Y36(C.sBO))},xt.\u0275cmp=C.Xpm({type:xt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(Ge,Ie){1&Ge&&(C._UZ(0,"div",0),C.TgZ(1,"div")(2,"div",1),C.YNc(3,De,1,2,"ng-container",2),C.YNc(4,q,5,4,"ng-container",3),C.qZA()(),C.TgZ(5,"div",4),C.YNc(6,Te,2,1,"div",5),C.YNc(7,He,2,1,"div",5),C.YNc(8,dt,2,1,"div",6),C.YNc(9,et,2,1,"div",7),C.qZA()),2&Ge&&(C.Q6J("matRippleTrigger",Ie._getHostElement())("matRippleDisabled",Ie.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",Ie.state," mat-step-icon"),C.ekj("mat-step-icon-selected",Ie.selected),C.xp6(1),C.Q6J("ngSwitch",!(!Ie.iconOverrides||!Ie.iconOverrides[Ie.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",Ie.active)("mat-step-label-selected",Ie.selected)("mat-step-label-error","error"==Ie.state),C.xp6(1),C.Q6J("ngIf",Ie._templateLabel()),C.xp6(1),C.Q6J("ngIf",Ie._stringLabel()),C.xp6(1),C.Q6J("ngIf",Ie.optional&&"error"!=Ie.state),C.xp6(1),C.Q6J("ngIf","error"==Ie.state))},dependencies:[$.O5,$.tP,$.RF,$.n9,$.ED,xe.Hw,ye.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),xt})();const t="500ms",i="225ms",a={horizontalStepTransition:(0,he.X$)("horizontalStepTransition",[(0,he.SB)("previous",(0,he.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,he.SB)("current",(0,he.oB)({transform:"none",visibility:"inherit"})),(0,he.SB)("next",(0,he.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,he.eR)("* => *",(0,he.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,he.X$)("verticalStepTransition",[(0,he.SB)("previous",(0,he.oB)({height:"0px",visibility:"hidden"})),(0,he.SB)("next",(0,he.oB)({height:"0px",visibility:"hidden"})),(0,he.SB)("current",(0,he.oB)({height:"*",visibility:"inherit"})),(0,he.eR)("* <=> current",(0,he.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:i}})])};let c=(()=>{class xt{constructor(Ge){this.templateRef=Ge}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(C.Rgc))},xt.\u0275dir=C.lG2({type:xt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),xt})(),p=(()=>{class xt{constructor(Ge){this._template=Ge}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(C.Rgc))},xt.\u0275dir=C.lG2({type:xt,selectors:[["ng-template","matStepContent",""]]}),xt})(),M=(()=>{class xt extends we{constructor(Ge,Ie,Xe,Ke){super(Ge,Ke),this._errorStateMatcher=Ie,this._viewContainerRef=Xe,this._isSelected=Me.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Ze.w)(()=>this._stepper.selectionChange.pipe((0,se.U)(Ge=>Ge.selectedStep===this),(0,U.O)(this._stepper.selected===this)))).subscribe(Ge=>{Ge&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Ge,Ie){return this._errorStateMatcher.isErrorState(Ge,Ie)||!!(Ge&&Ge.invalid&&this.interacted)}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36((0,C.Gpc)(()=>Ne)),C.Y36(ye.rD,4),C.Y36(C.s_b),C.Y36(ue,8))},xt.\u0275cmp=C.Xpm({type:xt,selectors:[["mat-step"]],contentQueries:function(Ge,Ie,Xe){if(1&Ge&&(C.Suo(Xe,r,5),C.Suo(Xe,p,5)),2&Ge){let Ke;C.iGM(Ke=C.CRH())&&(Ie.stepLabel=Ke.first),C.iGM(Ke=C.CRH())&&(Ie._lazyContent=Ke.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:ye.rD,useExisting:xt},{provide:we,useExisting:xt}]),C.qOj],ngContentSelectors:st,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(Ge,Ie){1&Ge&&(C.F$t(),C.YNc(0,Qe,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),xt})(),Ne=(()=>{class xt extends E{constructor(Ge,Ie,Xe){super(Ge,Ie,Xe),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new v.x,this._animationDuration="";const Ke=Xe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===Ke?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(Ge){this._animationDuration=/^\d+$/.test(Ge)?Ge+"ms":Ge}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Ge,templateRef:Ie})=>this._iconOverrides[Ge]=Ie),this.steps.changes.pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,ze.x)((Ge,Ie)=>Ge.fromState===Ie.fromState&&Ge.toState===Ie.toState),(0,_.R)(this._destroyed)).subscribe(Ge=>{"current"===Ge.toState&&this.animationDone.emit()})}_stepIsNavigable(Ge,Ie){return Ie.completed||this.selectedIndex===Ge||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:i}}return xt.\u0275fac=function(Ge){return new(Ge||xt)(C.Y36(A.Is,8),C.Y36(C.sBO),C.Y36(C.SBq))},xt.\u0275cmp=C.Xpm({type:xt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(Ge,Ie,Xe){if(1&Ge&&(C.Suo(Xe,M,5),C.Suo(Xe,c,5)),2&Ge){let Ke;C.iGM(Ke=C.CRH())&&(Ie._steps=Ke),C.iGM(Ke=C.CRH())&&(Ie._icons=Ke)}},viewQuery:function(Ge,Ie){if(1&Ge&&C.Gf(n,5),2&Ge){let Xe;C.iGM(Xe=C.CRH())&&(Ie._stepHeader=Xe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(Ge,Ie){2&Ge&&(C.uIk("aria-orientation",Ie.orientation),C.ekj("mat-stepper-horizontal","horizontal"===Ie.orientation)("mat-stepper-vertical","vertical"===Ie.orientation)("mat-stepper-label-position-end","horizontal"===Ie.orientation&&"end"==Ie.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ie.orientation&&"bottom"==Ie.labelPosition)("mat-stepper-header-position-bottom","bottom"===Ie.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:E,useExisting:xt}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(Ge,Ie){1&Ge&&(C.ynx(0,0),C.YNc(1,Q,5,2,"div",1),C.YNc(2,N,2,1,"ng-container",2),C.BQk(),C.YNc(3,L,1,23,"ng-template",null,3,C.W1O)),2&Ge&&(C.Q6J("ngSwitch",Ie.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},dependencies:[$.sg,$.O5,$.tP,$.RF,$.n9,n],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[a.horizontalStepTransition,a.verticalStepTransition]},changeDetection:0}),xt})(),Ut=(()=>{class xt extends H{}return xt.\u0275fac=function(){let gt;return function(Ie){return(gt||(gt=C.n5z(xt)))(Ie||xt)}}(),xt.\u0275dir=C.lG2({type:xt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(Ge,Ie){2&Ge&&C.Ikx("type",Ie.type)},inputs:{type:"type"},features:[C.qOj]}),xt})(),ln=(()=>{class xt{}return xt.\u0275fac=function(Ge){return new(Ge||xt)},xt.\u0275mod=C.oAB({type:xt}),xt.\u0275inj=C.cJS({providers:[l,ye.rD],imports:[ye.BQ,$.ez,e.eL,de.ot,W,xe.Ps,ye.si,ye.BQ]}),xt})()},30671:(Je,pe,h)=>{"use strict";h.d(pe,{ev:()=>jt,Dz:()=>We,w1:()=>Re,ge:()=>lt,fO:()=>tt,XQ:()=>fn,as:()=>sn,Gk:()=>Rt,nj:()=>on,BZ:()=>Ee,by:()=>wt,p0:()=>_n});var e=h(94650),d=h(40445),A=h(21281),w=h(95017),g=h(83353),C=h(67376),T=h(36895),v=h(77579),R=h(32076),U=h(61135),_=h(45191),V=h(39646),Y=h(82722),X=h(95698);const ne=[[["caption"]],[["colgroup"],["col"]]],le=["caption","colgroup, col"];function ue(rt){return class extends rt{constructor(...bt){super(...bt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(bt){const at=this._sticky;this._sticky=(0,A.Ig)(bt),this._hasStickyChanged=at!==this._sticky}hasStickyChanged(){const bt=this._hasStickyChanged;return this._hasStickyChanged=!1,bt}resetStickyChanged(){this._hasStickyChanged=!1}}}const we=new e.OlP("CDK_TABLE");let O=(()=>{class rt{constructor(at){this.template=at}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkCellDef",""]]}),rt})(),H=(()=>{class rt{constructor(at){this.template=at}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkHeaderCellDef",""]]}),rt})(),W=(()=>{class rt{constructor(at){this.template=at}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkFooterCellDef",""]]}),rt})();class ${}const de=ue($);let ye=(()=>{class rt extends de{constructor(at){super(),this._table=at,this._stickyEnd=!1}get name(){return this._name}set name(at){this._setNameInput(at)}get stickyEnd(){return this._stickyEnd}set stickyEnd(at){const qe=this._stickyEnd;this._stickyEnd=(0,A.Ig)(at),this._hasStickyChanged=qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(at){at&&(this._name=at,this.cssClassFriendlyName=at.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(we,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkColumnDef",""]],contentQueries:function(at,qe,At){if(1&at&&(e.Suo(At,O,5),e.Suo(At,H,5),e.Suo(At,W,5)),2&at){let z;e.iGM(z=e.CRH())&&(qe.cell=z.first),e.iGM(z=e.CRH())&&(qe.headerCell=z.first),e.iGM(z=e.CRH())&&(qe.footerCell=z.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),e.qOj]}),rt})();class xe{constructor(bt,at){at.nativeElement.classList.add(...bt._columnCssClassName)}}let Me=(()=>{class rt extends xe{constructor(at,qe){super(at,qe)}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(ye),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),rt})(),se=(()=>{class rt extends xe{constructor(at,qe){var At;if(super(at,qe),1===(null===(At=at._table)||void 0===At?void 0:At._elementRef.nativeElement.nodeType)){const z=at._table._elementRef.nativeElement.getAttribute("role");qe.nativeElement.setAttribute("role","grid"===z||"treegrid"===z?"gridcell":"cell")}}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(ye),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),rt})();class ze{constructor(){this.tasks=[],this.endTasks=[]}}const he=new e.OlP("_COALESCED_STYLE_SCHEDULER");let De=(()=>{class rt{constructor(at){this._ngZone=at,this._currentSchedule=null,this._destroyed=new v.x}schedule(at){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(at)}scheduleEnd(at){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(at)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ze,this._getScheduleObservable().pipe((0,Y.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const at=this._currentSchedule;this._currentSchedule=new ze;for(const qe of at.tasks)qe();for(const qe of at.endTasks)qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,R.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,X.q)(1))}}return rt.\u0275fac=function(at){return new(at||rt)(e.LFG(e.R0b))},rt.\u0275prov=e.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),P=(()=>{class rt{constructor(at,qe){this.template=at,this._differs=qe}ngOnChanges(at){if(!this._columnsDiffer){const qe=at.columns&&at.columns.currentValue||[];this._columnsDiffer=this._differs.find(qe).create(),this._columnsDiffer.diff(qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(at){return this instanceof q?at.headerCell.template:this instanceof dt?at.footerCell.template:at.cell.template}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},rt.\u0275dir=e.lG2({type:rt,features:[e.TTD]}),rt})();class G extends P{}const ce=ue(G);let q=(()=>{class rt extends ce{constructor(at,qe,At){super(at,qe),this._table=At}ngOnChanges(at){super.ngOnChanges(at)}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(we,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),rt})();class Te extends P{}const He=ue(Te);let dt=(()=>{class rt extends He{constructor(at,qe,At){super(at,qe),this._table=At}ngOnChanges(at){super.ngOnChanges(at)}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(we,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),rt})(),et=(()=>{class rt extends P{constructor(at,qe,At){super(at,qe),this._table=At}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(we,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),rt})(),_t=(()=>{class rt{constructor(at){this._viewContainer=at,rt.mostRecentCellOutlet=this}ngOnDestroy(){rt.mostRecentCellOutlet===this&&(rt.mostRecentCellOutlet=null)}}return rt.mostRecentCellOutlet=null,rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.s_b))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkCellOutlet",""]]}),rt})(),Qe=(()=>{class rt{}return rt.\u0275fac=function(at){return new(at||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,qe){1&at&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Z=(()=>{class rt{}return rt.\u0275fac=function(at){return new(at||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,qe){1&at&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),ve=(()=>{class rt{constructor(at){this.templateRef=at,this._contentClassName="cdk-no-data-row"}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["ng-template","cdkNoDataRow",""]]}),rt})();const oe=["top","bottom","left","right"];class ge{constructor(bt,at,qe,At,z=!0,Fe=!0,mt){this._isNativeHtmlTable=bt,this._stickCellCss=at,this.direction=qe,this._coalescedStyleScheduler=At,this._isBrowser=z,this._needsPositionStickyOnElement=Fe,this._positionListener=mt,this._cachedCellWidths=[],this._borderCellCss={top:`${at}-border-elem-top`,bottom:`${at}-border-elem-bottom`,left:`${at}-border-elem-left`,right:`${at}-border-elem-right`}}clearStickyPositioning(bt,at){const qe=[];for(const At of bt)if(At.nodeType===At.ELEMENT_NODE){qe.push(At);for(let z=0;z{for(const At of qe)this._removeStickyStyle(At,at)})}updateStickyColumns(bt,at,qe,At=!0){if(!bt.length||!this._isBrowser||!at.some(Hn=>Hn)&&!qe.some(Hn=>Hn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const z=bt[0],Fe=z.children.length,mt=this._getCellWidths(z,At),St=this._getStickyStartColumnPositions(mt,at),en=this._getStickyEndColumnPositions(mt,qe),vn=at.lastIndexOf(!0),Un=qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Hn="rtl"===this.direction,qn=Hn?"right":"left",si=Hn?"left":"right";for(const li of bt)for(let Zn=0;Znat[Zn]?li:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Un?[]:mt.slice(Un).map((li,Zn)=>qe[Zn+Un]?li:null).reverse()}))})}stickRows(bt,at,qe){if(!this._isBrowser)return;const At="bottom"===qe?bt.slice().reverse():bt,z="bottom"===qe?at.slice().reverse():at,Fe=[],mt=[],St=[];for(let vn=0,Un=0;vn{for(let Hn=0;Hn{at.some(At=>!At)?this._removeStickyStyle(qe,["bottom"]):this._addStickyStyle(qe,"bottom",0,!1)})}_removeStickyStyle(bt,at){for(const At of at)bt.style[At]="",bt.classList.remove(this._borderCellCss[At]);oe.some(At=>-1===at.indexOf(At)&&bt.style[At])?bt.style.zIndex=this._getCalculatedZIndex(bt):(bt.style.zIndex="",this._needsPositionStickyOnElement&&(bt.style.position=""),bt.classList.remove(this._stickCellCss))}_addStickyStyle(bt,at,qe,At){bt.classList.add(this._stickCellCss),At&&bt.classList.add(this._borderCellCss[at]),bt.style[at]=`${qe}px`,bt.style.zIndex=this._getCalculatedZIndex(bt),this._needsPositionStickyOnElement&&(bt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(bt){const at={top:100,bottom:10,left:1,right:1};let qe=0;for(const At of oe)bt.style[At]&&(qe+=at[At]);return qe?`${qe}`:""}_getCellWidths(bt,at=!0){if(!at&&this._cachedCellWidths.length)return this._cachedCellWidths;const qe=[],At=bt.children;for(let z=0;z0;z--)at[z]&&(qe[z]=At,At+=bt[z]);return qe}}const m=new e.OlP("CDK_SPL");let o=(()=>{class rt{constructor(at,qe){this.viewContainer=at,this.elementRef=qe}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","rowOutlet",""]]}),rt})(),n=(()=>{class rt{constructor(at,qe){this.viewContainer=at,this.elementRef=qe}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","headerRowOutlet",""]]}),rt})(),t=(()=>{class rt{constructor(at,qe){this.viewContainer=at,this.elementRef=qe}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","footerRowOutlet",""]]}),rt})(),i=(()=>{class rt{constructor(at,qe){this.viewContainer=at,this.elementRef=qe}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","noDataRowOutlet",""]]}),rt})(),p=(()=>{class rt{constructor(at,qe,At,z,Fe,mt,St,en,vn,Un,Hn,qn){this._differs=at,this._changeDetectorRef=qe,this._elementRef=At,this._dir=Fe,this._platform=St,this._viewRepeater=en,this._coalescedStyleScheduler=vn,this._viewportRuler=Un,this._stickyPositioningListener=Hn,this._ngZone=qn,this._onDestroy=new v.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new U.X({start:0,end:Number.MAX_VALUE}),z||this._elementRef.nativeElement.setAttribute("role","table"),this._document=mt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(at){this._trackByFn=at}get dataSource(){return this._dataSource}set dataSource(at){this._dataSource!==at&&this._switchDataSource(at)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(at){this._multiTemplateDataRows=(0,A.Ig)(at),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(at){this._fixedLayout=(0,A.Ig)(at),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((at,qe)=>this.trackBy?this.trackBy(qe.dataIndex,qe.data):qe),this._viewportRuler.change().pipe((0,Y.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||qe,this._forceRecalculateCellWidths=qe,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(at=>{at.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const at=this._dataDiffer.diff(this._renderRows);if(!at)return this._updateNoDataRow(),void this.contentChanged.next();const qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(at,qe,(At,z,Fe)=>this._getEmbeddedViewArgs(At.item,Fe),At=>At.item.data,At=>{1===At.operation&&At.context&&this._renderCellTemplateForItem(At.record.item.rowDef,At.context)}),this._updateRowIndexContext(),at.forEachIdentityChange(At=>{qe.get(At.currentIndex).context.$implicit=At.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,X.q)(1),(0,Y.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(at){this._customColumnDefs.add(at)}removeColumnDef(at){this._customColumnDefs.delete(at)}addRowDef(at){this._customRowDefs.add(at)}removeRowDef(at){this._customRowDefs.delete(at)}addHeaderRowDef(at){this._customHeaderRowDefs.add(at),this._headerRowDefChanged=!0}removeHeaderRowDef(at){this._customHeaderRowDefs.delete(at),this._headerRowDefChanged=!0}addFooterRowDef(at){this._customFooterRowDefs.add(at),this._footerRowDefChanged=!0}removeFooterRowDef(at){this._customFooterRowDefs.delete(at),this._footerRowDefChanged=!0}setNoDataRow(at){this._customNoDataRow=at}updateStickyHeaderRowStyles(){const at=this._getRenderedRows(this._headerRowOutlet),At=this._elementRef.nativeElement.querySelector("thead");At&&(At.style.display=at.length?"":"none");const z=this._headerRowDefs.map(Fe=>Fe.sticky);this._stickyStyler.clearStickyPositioning(at,["top"]),this._stickyStyler.stickRows(at,z,"top"),this._headerRowDefs.forEach(Fe=>Fe.resetStickyChanged())}updateStickyFooterRowStyles(){const at=this._getRenderedRows(this._footerRowOutlet),At=this._elementRef.nativeElement.querySelector("tfoot");At&&(At.style.display=at.length?"":"none");const z=this._footerRowDefs.map(Fe=>Fe.sticky);this._stickyStyler.clearStickyPositioning(at,["bottom"]),this._stickyStyler.stickRows(at,z,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,z),this._footerRowDefs.forEach(Fe=>Fe.resetStickyChanged())}updateStickyColumnStyles(){const at=this._getRenderedRows(this._headerRowOutlet),qe=this._getRenderedRows(this._rowOutlet),At=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...at,...qe,...At],["left","right"]),this._stickyColumnStylesNeedReset=!1),at.forEach((z,Fe)=>{this._addStickyColumnStyles([z],this._headerRowDefs[Fe])}),this._rowDefs.forEach(z=>{const Fe=[];for(let mt=0;mt{this._addStickyColumnStyles([z],this._footerRowDefs[Fe])}),Array.from(this._columnDefsByName.values()).forEach(z=>z.resetStickyChanged())}_getAllRenderRows(){const at=[],qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let At=0;At{const mt=At&&At.has(Fe)?At.get(Fe):[];if(mt.length){const St=mt.shift();return St.dataIndex=qe,St}return{data:at,rowDef:Fe,dataIndex:qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),M(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(qe=>{this._columnDefsByName.has(qe.name),this._columnDefsByName.set(qe.name,qe)})}_cacheRowDefs(){this._headerRowDefs=M(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=M(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=M(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const at=this._rowDefs.filter(qe=>!qe.when);this._defaultRowDef=at[0]}_renderUpdatedColumns(){const at=(Fe,mt)=>Fe||!!mt.getColumnsDiff(),qe=this._rowDefs.reduce(at,!1);qe&&this._forceRenderDataRows();const At=this._headerRowDefs.reduce(at,!1);At&&this._forceRenderHeaderRows();const z=this._footerRowDefs.reduce(at,!1);return z&&this._forceRenderFooterRows(),qe||At||z}_switchDataSource(at){this._data=[],(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),at||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=at}_observeRenderChanges(){if(!this.dataSource)return;let at;(0,w.Z9)(this.dataSource)?at=this.dataSource.connect(this):(0,_.b)(this.dataSource)?at=this.dataSource:Array.isArray(this.dataSource)&&(at=(0,V.of)(this.dataSource)),this._renderChangeSubscription=at.pipe((0,Y.R)(this._onDestroy)).subscribe(qe=>{this._data=qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((at,qe)=>this._renderRow(this._headerRowOutlet,at,qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((at,qe)=>this._renderRow(this._footerRowOutlet,at,qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(at,qe){const At=Array.from(qe.columns||[]).map(mt=>this._columnDefsByName.get(mt)),z=At.map(mt=>mt.sticky),Fe=At.map(mt=>mt.stickyEnd);this._stickyStyler.updateStickyColumns(at,z,Fe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(at){const qe=[];for(let At=0;At!z.when||z.when(qe,at));else{let z=this._rowDefs.find(Fe=>Fe.when&&Fe.when(qe,at))||this._defaultRowDef;z&&At.push(z)}return At}_getEmbeddedViewArgs(at,qe){return{templateRef:at.rowDef.template,context:{$implicit:at.data},index:qe}}_renderRow(at,qe,At,z={}){const Fe=at.viewContainer.createEmbeddedView(qe.template,z,At);return this._renderCellTemplateForItem(qe,z),Fe}_renderCellTemplateForItem(at,qe){for(let At of this._getCellTemplates(at))_t.mostRecentCellOutlet&&_t.mostRecentCellOutlet._viewContainer.createEmbeddedView(At,qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const at=this._rowOutlet.viewContainer;for(let qe=0,At=at.length;qe{const At=this._columnDefsByName.get(qe);return at.extractCellTemplate(At)}):[]}_applyNativeTableSections(){const at=this._document.createDocumentFragment(),qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const At of qe){const z=this._document.createElement(At.tag);z.setAttribute("role","rowgroup");for(const Fe of At.outlets)z.appendChild(Fe.elementRef.nativeElement);at.appendChild(z)}this._elementRef.nativeElement.appendChild(at)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const at=(qe,At)=>qe||At.hasStickyChanged();this._headerRowDefs.reduce(at,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(at,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(at,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ge(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,V.of)()).pipe((0,Y.R)(this._onDestroy)).subscribe(qe=>{this._stickyStyler.direction=qe,this.updateStickyColumnStyles()})}_getOwnDefs(at){return at.filter(qe=>!qe._table||qe._table===this)}_updateNoDataRow(){const at=this._customNoDataRow||this._noDataRow;if(!at)return;const qe=0===this._rowOutlet.viewContainer.length;if(qe===this._isShowingNoDataRow)return;const At=this._noDataRowOutlet.viewContainer;if(qe){const z=At.createEmbeddedView(at.templateRef),Fe=z.rootNodes[0];1===z.rootNodes.length&&Fe?.nodeType===this._document.ELEMENT_NODE&&(Fe.setAttribute("role","row"),Fe.classList.add(at._contentClassName))}else At.clear();this._isShowingNoDataRow=qe}}return rt.\u0275fac=function(at){return new(at||rt)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(d.Is,8),e.Y36(T.K0),e.Y36(g.t4),e.Y36(w.k),e.Y36(he),e.Y36(C.rL),e.Y36(m,12),e.Y36(e.R0b,8))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(at,qe,At){if(1&at&&(e.Suo(At,ve,5),e.Suo(At,ye,5),e.Suo(At,et,5),e.Suo(At,q,5),e.Suo(At,dt,5)),2&at){let z;e.iGM(z=e.CRH())&&(qe._noDataRow=z.first),e.iGM(z=e.CRH())&&(qe._contentColumnDefs=z),e.iGM(z=e.CRH())&&(qe._contentRowDefs=z),e.iGM(z=e.CRH())&&(qe._contentHeaderRowDefs=z),e.iGM(z=e.CRH())&&(qe._contentFooterRowDefs=z)}},viewQuery:function(at,qe){if(1&at&&(e.Gf(o,7),e.Gf(n,7),e.Gf(t,7),e.Gf(i,7)),2&at){let At;e.iGM(At=e.CRH())&&(qe._rowOutlet=At.first),e.iGM(At=e.CRH())&&(qe._headerRowOutlet=At.first),e.iGM(At=e.CRH())&&(qe._footerRowOutlet=At.first),e.iGM(At=e.CRH())&&(qe._noDataRowOutlet=At.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(at,qe){2&at&&e.ekj("cdk-table-fixed-layout",qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:we,useExisting:rt},{provide:w.k,useClass:w.yy},{provide:he,useClass:De},{provide:m,useValue:null}])],ngContentSelectors:le,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(at,qe){1&at&&(e.F$t(ne),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[o,n,t,i],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),rt})();function M(rt,bt){return rt.concat(Array.from(bt))}let Ut=(()=>{class rt{}return rt.\u0275fac=function(at){return new(at||rt)},rt.\u0275mod=e.oAB({type:rt}),rt.\u0275inj=e.cJS({imports:[C.Cl]}),rt})();var ln=h(3238),xt=h(56451),gt=h(39841),Ge=h(54004);const Ie=[[["caption"]],[["colgroup"],["col"]]],Xe=["caption","colgroup, col"];let Ee=(()=>{class rt extends p{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(at,qe){2&at&&e.ekj("mat-table-fixed-layout",qe.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:w.k,useClass:w.yy},{provide:p,useExisting:rt},{provide:we,useExisting:rt},{provide:he,useClass:De},{provide:m,useValue:null}]),e.qOj],ngContentSelectors:Xe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(at,qe){1&at&&(e.F$t(Ie),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[o,n,t,i],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),rt})(),We=(()=>{class rt extends O{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:O,useExisting:rt}]),e.qOj]}),rt})(),tt=(()=>{class rt extends H{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:H,useExisting:rt}]),e.qOj]}),rt})(),Re=(()=>{class rt extends ye{get name(){return this._name}set name(at){this._setNameInput(at)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:ye,useExisting:rt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),e.qOj]}),rt})(),lt=(()=>{class rt extends Me{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),rt})(),jt=(()=>{class rt extends se{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),rt})(),sn=(()=>{class rt extends q{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:q,useExisting:rt}]),e.qOj]}),rt})(),on=(()=>{class rt extends et{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:et,useExisting:rt}]),e.qOj]}),rt})(),fn=(()=>{class rt extends Qe{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Qe,useExisting:rt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,qe){1&at&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Rt=(()=>{class rt extends Z{}return rt.\u0275fac=function(){let bt;return function(qe){return(bt||(bt=e.n5z(rt)))(qe||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Z,useExisting:rt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(at,qe){1&at&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),_n=(()=>{class rt{}return rt.\u0275fac=function(at){return new(at||rt)},rt.\u0275mod=e.oAB({type:rt}),rt.\u0275inj=e.cJS({imports:[Ut,ln.BQ,ln.BQ]}),rt})();class Jt extends w.o2{constructor(bt=[]){super(),this._renderData=new U.X([]),this._filter=new U.X(""),this._internalPageChanges=new v.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(at,qe)=>{const At=at[qe];if((0,A.t6)(At)){const z=Number(At);return z<9007199254740991?z:At}return At},this.sortData=(at,qe)=>{const At=qe.active,z=qe.direction;return At&&""!=z?at.sort((Fe,mt)=>{let St=this.sortingDataAccessor(Fe,At),en=this.sortingDataAccessor(mt,At);const vn=typeof St,Un=typeof en;vn!==Un&&("number"===vn&&(St+=""),"number"===Un&&(en+=""));let Hn=0;return null!=St&&null!=en?St>en?Hn=1:St{const At=Object.keys(at).reduce((Fe,mt)=>Fe+at[mt]+"\u25ec","").toLowerCase(),z=qe.trim().toLowerCase();return-1!=At.indexOf(z)},this._data=new U.X(bt),this._updateChangeSubscription()}get data(){return this._data.value}set data(bt){bt=Array.isArray(bt)?bt:[],this._data.next(bt),this._renderChangesSubscription||this._filterData(bt)}get filter(){return this._filter.value}set filter(bt){this._filter.next(bt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(bt){this._sort=bt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(bt){this._paginator=bt,this._updateChangeSubscription()}_updateChangeSubscription(){var bt;const at=this._sort?(0,xt.T)(this._sort.sortChange,this._sort.initialized):(0,V.of)(null),qe=this._paginator?(0,xt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,V.of)(null),z=(0,gt.a)([this._data,this._filter]).pipe((0,Ge.U)(([St])=>this._filterData(St))),Fe=(0,gt.a)([z,at]).pipe((0,Ge.U)(([St])=>this._orderData(St))),mt=(0,gt.a)([Fe,qe]).pipe((0,Ge.U)(([St])=>this._pageData(St)));null===(bt=this._renderChangesSubscription)||void 0===bt||bt.unsubscribe(),this._renderChangesSubscription=mt.subscribe(St=>this._renderData.next(St))}_filterData(bt){return this.filteredData=null==this.filter||""===this.filter?bt:bt.filter(at=>this.filterPredicate(at,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(bt){return this.sort?this.sortData(bt.slice(),this.sort):bt}_pageData(bt){if(!this.paginator)return bt;const at=this.paginator.pageIndex*this.paginator.pageSize;return bt.slice(at,at+this.paginator.pageSize)}_updatePaginator(bt){Promise.resolve().then(()=>{const at=this.paginator;if(at&&(at.length=bt,at.pageIndex>0)){const qe=Math.ceil(at.length/at.pageSize)-1||0,At=Math.min(at.pageIndex,qe);At!==at.pageIndex&&(at.pageIndex=At,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var bt;null===(bt=this._renderChangesSubscription)||void 0===bt||bt.unsubscribe(),this._renderChangesSubscription=null}}class wt extends Jt{}},3848:(Je,pe,h)=>{"use strict";h.d(pe,{Nh:()=>We,SP:()=>gt,Vc:()=>oe,uD:()=>Oe,uX:()=>N});var e=h(12687),d=h(49643),A=h(84080),w=h(36895),g=h(94650),C=h(3238),T=h(95698),v=h(68675),R=h(71884),U=h(82722),_=h(63900),V=h(35684),Y=h(77579),X=h(50727),ne=h(54968),le=h(39646),te=h(56451),fe=h(60515),ue=h(69751),we=h(82805),E=h(40445),O=h(37340),H=h(21281),W=h(67376),$=h(83353),de=h(29521);function ye(tt,ot){1&tt&&g.Hsn(0)}const xe=["*"];function Me(tt,ot){}const Ze=function(tt){return{animationDuration:tt}},se=function(tt,ot){return{value:tt,params:ot}},ze=["tabListContainer"],he=["tabList"],De=["tabListInner"],j=["nextPaginator"],P=["previousPaginator"],G=["tabBodyWrapper"],ce=["tabHeader"];function q(tt,ot){}function Te(tt,ot){if(1&tt&&g.YNc(0,q,0,0,"ng-template",10),2&tt){const Re=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",Re.templateLabel)}}function He(tt,ot){if(1&tt&&g._uU(0),2&tt){const Re=g.oxw().$implicit;g.Oqu(Re.textLabel)}}function dt(tt,ot){if(1&tt){const Re=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const It=g.CHM(Re),jt=It.$implicit,sn=It.index,Kt=g.oxw(),on=g.MAs(1);return g.KtG(Kt._handleClick(jt,on,sn))})("cdkFocusChange",function(It){const sn=g.CHM(Re).index,Kt=g.oxw();return g.KtG(Kt._tabFocusChanged(It,sn))}),g.TgZ(1,"div",7),g.YNc(2,Te,1,1,"ng-template",8),g.YNc(3,He,1,1,"ng-template",null,9,g.W1O),g.qZA()()}if(2&tt){const Re=ot.$implicit,lt=ot.index,It=g.MAs(4),jt=g.oxw();g.ekj("mat-tab-label-active",jt.selectedIndex===lt),g.Q6J("id",jt._getTabLabelId(lt))("ngClass",Re.labelClass)("disabled",Re.disabled)("matRippleDisabled",Re.disabled||jt.disableRipple),g.uIk("tabIndex",jt._getTabIndex(Re,lt))("aria-posinset",lt+1)("aria-setsize",jt._tabs.length)("aria-controls",jt._getTabContentId(lt))("aria-selected",jt.selectedIndex===lt)("aria-label",Re.ariaLabel||null)("aria-labelledby",!Re.ariaLabel&&Re.ariaLabelledby?Re.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",Re.templateLabel)("ngIfElse",It)}}function et(tt,ot){if(1&tt){const Re=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){g.CHM(Re);const It=g.oxw();return g.KtG(It._removeTabBodyWrapperHeight())})("_onCentering",function(It){g.CHM(Re);const jt=g.oxw();return g.KtG(jt._setTabBodyWrapperHeight(It))}),g.qZA()}if(2&tt){const Re=ot.$implicit,lt=ot.index,It=g.oxw();g.ekj("mat-tab-body-active",It.selectedIndex===lt),g.Q6J("id",It._getTabContentId(lt))("ngClass",Re.bodyClass)("content",Re.content)("position",Re.position)("origin",Re.origin)("animationDuration",It.animationDuration)("preserveContent",It.preserveContent),g.uIk("tabindex",null!=It.contentTabIndex&&It.selectedIndex===lt?It.contentTabIndex:null)("aria-labelledby",It._getTabLabelId(lt))}}const Qe=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function st(){return ot=>({left:ot?(ot.offsetLeft||0)+"px":"0",width:ot?(ot.offsetWidth||0)+"px":"0"})}});let Z=(()=>{class tt{constructor(Re,lt,It,jt){this._elementRef=Re,this._ngZone=lt,this._inkBarPositioner=It,this._animationMode=jt}alignToElement(Re){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{const lt=this._inkBarPositioner(Re),It=this._elementRef.nativeElement;It.style.left=lt.left,It.style.width=lt.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Qe),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Re,lt){2&Re&&g.ekj("_mat-animation-noopable","NoopAnimations"===lt._animationMode)}}),tt})();const ve=new g.OlP("MatTabContent");let oe=(()=>{class tt{constructor(Re){this.template=Re}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.Rgc))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:ve,useExisting:tt}])]}),tt})();const ge=new g.OlP("MatTabLabel"),ae=new g.OlP("MAT_TAB");let Oe=(()=>{class tt extends A.ig{constructor(Re,lt,It){super(Re,lt),this._closestTab=It}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(ae,8))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:ge,useExisting:tt}]),g.qOj]}),tt})();const Q=(0,C.Id)(class{}),me=new g.OlP("MAT_TAB_GROUP");let N=(()=>{class tt extends Q{constructor(Re,lt){super(),this._viewContainerRef=Re,this._closestTabGroup=lt,this.textLabel="",this._contentPortal=null,this._stateChanges=new Y.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Re){this._setTemplateLabelInput(Re)}get content(){return this._contentPortal}ngOnChanges(Re){(Re.hasOwnProperty("textLabel")||Re.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new A.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Re){Re&&Re._closestTab===this&&(this._templateLabel=Re)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.s_b),g.Y36(me,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab"]],contentQueries:function(Re,lt,It){if(1&Re&&(g.Suo(It,ge,5),g.Suo(It,ve,7,g.Rgc)),2&Re){let jt;g.iGM(jt=g.CRH())&&(lt.templateLabel=jt.first),g.iGM(jt=g.CRH())&&(lt._explicitContent=jt.first)}},viewQuery:function(Re,lt){if(1&Re&&g.Gf(g.Rgc,7),2&Re){let It;g.iGM(It=g.CRH())&&(lt._implicitContent=It.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[g._Bn([{provide:ae,useExisting:tt}]),g.qOj,g.TTD],ngContentSelectors:xe,decls:1,vars:0,template:function(Re,lt){1&Re&&(g.F$t(),g.YNc(0,ye,1,0,"ng-template"))},encapsulation:2}),tt})();const L={translateTab:(0,O.X$)("translateTab",[(0,O.SB)("center, void, left-origin-center, right-origin-center",(0,O.oB)({transform:"none"})),(0,O.SB)("left",(0,O.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,O.SB)("right",(0,O.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,O.eR)("* => left, * => right, left => center, right => center",(0,O.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,O.eR)("void => left-origin-center",[(0,O.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,O.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,O.eR)("void => right-origin-center",[(0,O.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,O.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let r=(()=>{class tt extends A.Pl{constructor(Re,lt,It,jt){super(Re,lt,jt),this._host=It,this._centeringSub=X.w0.EMPTY,this._leavingSub=X.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,v.O)(this._host._isCenterPosition(this._host._position))).subscribe(Re=>{Re&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>m)),g.Y36(w.K0))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),tt})(),s=(()=>{class tt{constructor(Re,lt,It){this._elementRef=Re,this._dir=lt,this._dirChangeSubscription=X.w0.EMPTY,this._translateTabComplete=new Y.x,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,lt&&(this._dirChangeSubscription=lt.change.subscribe(jt=>{this._computePositionAnimationState(jt),It.markForCheck()})),this._translateTabComplete.pipe((0,R.x)((jt,sn)=>jt.fromState===sn.fromState&&jt.toState===sn.toState)).subscribe(jt=>{this._isCenterPosition(jt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(jt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Re){this._positionIndex=Re,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Re){const lt=this._isCenterPosition(Re.toState);this._beforeCentering.emit(lt),lt&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Re){return"center"==Re||"left-origin-center"==Re||"right-origin-center"==Re}_computePositionAnimationState(Re=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Re?"left":"right":this._positionIndex>0?"ltr"==Re?"right":"left":"center"}_computePositionFromOrigin(Re){const lt=this._getLayoutDirection();return"ltr"==lt&&Re<=0||"rtl"==lt&&Re>0?"left-origin-center":"right-origin-center"}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(E.Is,8),g.Y36(g.sBO))},tt.\u0275dir=g.lG2({type:tt,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),tt})(),m=(()=>{class tt extends s{constructor(Re,lt,It){super(Re,lt,It)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(E.Is,8),g.Y36(g.sBO))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-body"]],viewQuery:function(Re,lt){if(1&Re&&g.Gf(A.Pl,5),2&Re){let It;g.iGM(It=g.CRH())&&(lt._portalHost=It.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Re,lt){1&Re&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(jt){return lt._onTranslateTabStarted(jt)})("@translateTab.done",function(jt){return lt._translateTabComplete.next(jt)}),g.YNc(2,Me,0,0,"ng-template",2),g.qZA()),2&Re&&g.Q6J("@translateTab",g.WLB(3,se,lt._position,g.VKq(1,Ze,lt.animationDuration)))},dependencies:[r],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[L.translateTab]}}),tt})();const l=new g.OlP("MAT_TABS_CONFIG"),o=(0,C.Id)(class{});let n=(()=>{class tt extends o{constructor(Re){super(),this.elementRef=Re}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Re,lt){2&Re&&(g.uIk("aria-disabled",!!lt.disabled),g.ekj("mat-tab-disabled",lt.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),tt})();const t=(0,$.i$)({passive:!0});let p=(()=>{class tt{constructor(Re,lt,It,jt,sn,Kt,on){this._elementRef=Re,this._changeDetectorRef=lt,this._viewportRuler=It,this._dir=jt,this._ngZone=sn,this._platform=Kt,this._animationMode=on,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Y.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Y.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,sn.runOutsideAngular(()=>{(0,ne.R)(Re.nativeElement,"mouseleave").pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(Re){this._disablePagination=(0,H.Ig)(Re)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Re){Re=(0,H.su)(Re),this._selectedIndex!=Re&&(this._selectedIndexChanged=!0,this._selectedIndex=Re,this._keyManager&&this._keyManager.updateActiveItem(Re))}ngAfterViewInit(){(0,ne.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ne.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Re=this._dir?this._dir.change:(0,le.of)("ltr"),lt=this._viewportRuler.change(150),It=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(It),(0,te.T)(Re,lt,this._items.changes,this._itemsResized()).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),It()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,U.R)(this._destroyed)).subscribe(jt=>{this.indexFocused.emit(jt),this._setTabFocus(jt)})}_itemsResized(){return"function"!=typeof ResizeObserver?fe.E:this._items.changes.pipe((0,v.O)(this._items),(0,_.w)(Re=>new ue.y(lt=>this._ngZone.runOutsideAngular(()=>{const It=new ResizeObserver(()=>{lt.next()});return Re.forEach(jt=>{It.observe(jt.elementRef.nativeElement)}),()=>{It.disconnect()}}))),(0,V.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Re){if(!(0,de.Vb)(Re))switch(Re.keyCode){case de.K5:case de.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Re));break;default:this._keyManager.onKeydown(Re)}}_onContentChanges(){const Re=this._elementRef.nativeElement.textContent;Re!==this._currentTextContent&&(this._currentTextContent=Re||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Re){!this._isValidIndex(Re)||this.focusIndex===Re||!this._keyManager||this._keyManager.setActiveItem(Re)}_isValidIndex(Re){if(!this._items)return!0;const lt=this._items?this._items.toArray()[Re]:null;return!!lt&&!lt.disabled}_setTabFocus(Re){if(this._showPaginationControls&&this._scrollToLabel(Re),this._items&&this._items.length){this._items.toArray()[Re].focus();const lt=this._tabListContainer.nativeElement;lt.scrollLeft="ltr"==this._getLayoutDirection()?0:lt.scrollWidth-lt.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Re=this.scrollDistance,lt="ltr"===this._getLayoutDirection()?-Re:Re;this._tabList.nativeElement.style.transform=`translateX(${Math.round(lt)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Re){this._scrollTo(Re)}_scrollHeader(Re){return this._scrollTo(this._scrollDistance+("before"==Re?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Re){this._stopInterval(),this._scrollHeader(Re)}_scrollToLabel(Re){if(this.disablePagination)return;const lt=this._items?this._items.toArray()[Re]:null;if(!lt)return;const It=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:jt,offsetWidth:sn}=lt.elementRef.nativeElement;let Kt,on;"ltr"==this._getLayoutDirection()?(Kt=jt,on=Kt+sn):(on=this._tabListInner.nativeElement.offsetWidth-jt,Kt=on-sn);const fn=this.scrollDistance,kt=this.scrollDistance+It;Ktkt&&(this.scrollDistance+=on-kt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Re=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Re||(this.scrollDistance=0),Re!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Re}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Re=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,lt=Re?Re.elementRef.nativeElement:null;lt?this._inkBar.alignToElement(lt):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Re,lt){lt&&null!=lt.button&&0!==lt.button||(this._stopInterval(),(0,we.H)(650,100).pipe((0,U.R)((0,te.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:It,distance:jt}=this._scrollHeader(Re);(0===jt||jt>=It)&&this._stopInterval()}))}_scrollTo(Re){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const lt=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(lt,Re)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:lt,distance:this._scrollDistance}}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(E.Is,8),g.Y36(g.R0b),g.Y36($.t4),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{disablePagination:"disablePagination"}}),tt})(),M=(()=>{class tt extends p{constructor(Re,lt,It,jt,sn,Kt,on){super(Re,lt,It,jt,sn,Kt,on),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Re){this._disableRipple=(0,H.Ig)(Re)}_itemSelected(Re){Re.preventDefault()}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(E.Is,8),g.Y36(g.R0b),g.Y36($.t4),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),tt})(),Ne=(()=>{class tt extends M{constructor(Re,lt,It,jt,sn,Kt,on){super(Re,lt,It,jt,sn,Kt,on)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(E.Is,8),g.Y36(g.R0b),g.Y36($.t4),g.Y36(g.QbO,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-header"]],contentQueries:function(Re,lt,It){if(1&Re&&g.Suo(It,n,4),2&Re){let jt;g.iGM(jt=g.CRH())&&(lt._items=jt)}},viewQuery:function(Re,lt){if(1&Re&&(g.Gf(Z,7),g.Gf(ze,7),g.Gf(he,7),g.Gf(De,7),g.Gf(j,5),g.Gf(P,5)),2&Re){let It;g.iGM(It=g.CRH())&&(lt._inkBar=It.first),g.iGM(It=g.CRH())&&(lt._tabListContainer=It.first),g.iGM(It=g.CRH())&&(lt._tabList=It.first),g.iGM(It=g.CRH())&&(lt._tabListInner=It.first),g.iGM(It=g.CRH())&&(lt._nextPaginator=It.first),g.iGM(It=g.CRH())&&(lt._previousPaginator=It.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Re,lt){2&Re&&g.ekj("mat-tab-header-pagination-controls-enabled",lt._showPaginationControls)("mat-tab-header-rtl","rtl"==lt._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:xe,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Re,lt){1&Re&&(g.F$t(),g.TgZ(0,"button",0,1),g.NdJ("click",function(){return lt._handlePaginatorClick("before")})("mousedown",function(jt){return lt._handlePaginatorPress("before",jt)})("touchend",function(){return lt._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(jt){return lt._handleKeydown(jt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return lt._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA()(),g.TgZ(11,"button",9,10),g.NdJ("mousedown",function(jt){return lt._handlePaginatorPress("after",jt)})("click",function(){return lt._handlePaginatorClick("after")})("touchend",function(){return lt._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&Re&&(g.ekj("mat-tab-header-pagination-disabled",lt._disableScrollBefore),g.Q6J("matRippleDisabled",lt._disableScrollBefore||lt.disableRipple)("disabled",lt._disableScrollBefore||null),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===lt._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",lt._disableScrollAfter),g.Q6J("matRippleDisabled",lt._disableScrollAfter||lt.disableRipple)("disabled",lt._disableScrollAfter||null))},dependencies:[C.wG,d.wD,Z],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),tt})(),Pt=0;class Ut{}const ln=(0,C.pj)((0,C.Kr)(class{constructor(tt){this._elementRef=tt}}),"primary");let xt=(()=>{class tt extends ln{constructor(Re,lt,It,jt){var sn;super(Re),this._changeDetectorRef=lt,this._animationMode=jt,this._tabs=new g.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=X.w0.EMPTY,this._tabLabelSubscription=X.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=Pt++,this.animationDuration=It&&It.animationDuration?It.animationDuration:"500ms",this.disablePagination=!(!It||null==It.disablePagination)&&It.disablePagination,this.dynamicHeight=!(!It||null==It.dynamicHeight)&&It.dynamicHeight,this.contentTabIndex=null!==(sn=It?.contentTabIndex)&&void 0!==sn?sn:null,this.preserveContent=!(null==It||!It.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Re){this._dynamicHeight=(0,H.Ig)(Re)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Re){this._indexToSelect=(0,H.su)(Re,null)}get animationDuration(){return this._animationDuration}set animationDuration(Re){this._animationDuration=/^\d+$/.test(Re+"")?Re+"ms":Re}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Re){this._contentTabIndex=(0,H.su)(Re,null)}get disablePagination(){return this._disablePagination}set disablePagination(Re){this._disablePagination=(0,H.Ig)(Re)}get preserveContent(){return this._preserveContent}set preserveContent(Re){this._preserveContent=(0,H.Ig)(Re)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Re){const lt=this._elementRef.nativeElement;lt.classList.remove(`mat-background-${this.backgroundColor}`),Re&<.classList.add(`mat-background-${Re}`),this._backgroundColor=Re}ngAfterContentChecked(){const Re=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Re){const lt=null==this._selectedIndex;if(!lt){this.selectedTabChange.emit(this._createChangeEvent(Re));const It=this._tabBodyWrapper.nativeElement;It.style.minHeight=It.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((It,jt)=>It.isActive=jt===Re),lt||(this.selectedIndexChange.emit(Re),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((lt,It)=>{lt.position=It-Re,null!=this._selectedIndex&&0==lt.position&&!lt.origin&&(lt.origin=Re-this._selectedIndex)}),this._selectedIndex!==Re&&(this._selectedIndex=Re,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Re=this._clampTabIndex(this._indexToSelect);if(Re===this._selectedIndex){const lt=this._tabs.toArray();let It;for(let jt=0;jt{lt[Re].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Re))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,v.O)(this._allTabs)).subscribe(Re=>{this._tabs.reset(Re.filter(lt=>lt._closestTabGroup===this||!lt._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Re){const lt=this._tabHeader;lt&&(lt.focusIndex=Re)}_focusChanged(Re){this._lastFocusedTabIndex=Re,this.focusChange.emit(this._createChangeEvent(Re))}_createChangeEvent(Re){const lt=new Ut;return lt.index=Re,this._tabs&&this._tabs.length&&(lt.tab=this._tabs.toArray()[Re]),lt}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,te.T)(...this._tabs.map(Re=>Re._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Re){return Math.min(this._tabs.length-1,Math.max(Re||0,0))}_getTabLabelId(Re){return`mat-tab-label-${this._groupId}-${Re}`}_getTabContentId(Re){return`mat-tab-content-${this._groupId}-${Re}`}_setTabBodyWrapperHeight(Re){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const lt=this._tabBodyWrapper.nativeElement;lt.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(lt.style.height=Re+"px")}_removeTabBodyWrapperHeight(){const Re=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Re.clientHeight,Re.style.height="",this.animationDone.emit()}_handleClick(Re,lt,It){Re.disabled||(this.selectedIndex=lt.focusIndex=It)}_getTabIndex(Re,lt){var It;return Re.disabled?null:lt===(null!==(It=this._lastFocusedTabIndex)&&void 0!==It?It:this.selectedIndex)?0:-1}_tabFocusChanged(Re,lt){Re&&"mouse"!==Re&&"touch"!==Re&&(this._tabHeader.focusIndex=lt)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),tt})(),gt=(()=>{class tt extends xt{constructor(Re,lt,It,jt){super(Re,lt,It,jt)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(Re,lt,It){if(1&Re&&g.Suo(It,N,5),2&Re){let jt;g.iGM(jt=g.CRH())&&(lt._allTabs=jt)}},viewQuery:function(Re,lt){if(1&Re&&(g.Gf(G,5),g.Gf(ce,5)),2&Re){let It;g.iGM(It=g.CRH())&&(lt._tabBodyWrapper=It.first),g.iGM(It=g.CRH())&&(lt._tabHeader=It.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Re,lt){2&Re&&g.ekj("mat-tab-group-dynamic-height",lt.dynamicHeight)("mat-tab-group-inverted-header","below"===lt.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:me,useExisting:tt}]),g.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Re,lt){1&Re&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(jt){return lt._focusChanged(jt)})("selectFocusedIndex",function(jt){return lt.selectedIndex=jt}),g.YNc(2,dt,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,et,1,11,"mat-tab-body",5),g.qZA()),2&Re&&(g.Q6J("selectedIndex",lt.selectedIndex||0)("disableRipple",lt.disableRipple)("disablePagination",lt.disablePagination),g.xp6(2),g.Q6J("ngForOf",lt._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===lt._animationMode),g.xp6(2),g.Q6J("ngForOf",lt._tabs))},dependencies:[w.mk,w.sg,w.O5,A.Pl,C.wG,e.kH,n,m,Ne],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),tt})(),We=(()=>{class tt{}return tt.\u0275fac=function(Re){return new(Re||tt)},tt.\u0275mod=g.oAB({type:tt}),tt.\u0275inj=g.cJS({imports:[w.ez,C.BQ,A.eL,C.si,d.Q8,e.rt,C.BQ]}),tt})()},10266:(Je,pe,h)=>{"use strict";h.d(pe,{AV:()=>he,gM:()=>Ze});var e=h(98184),d=h(12687),A=h(36895),w=h(94650),g=h(3238),C=h(67376),T=h(40445),v=h(21281),R=h(29521),U=h(62289),_=h(83353),V=h(84080),Y=h(77579),X=h(82722),ne=h(95698);h(37340);const te=["tooltip"],we="tooltip-panel",E=(0,_.i$)({passive:!0}),W=new w.OlP("mat-tooltip-scroll-strategy"),de={provide:W,deps:[e.aV],useFactory:function $(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},ye=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function xe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Me=(()=>{class j{constructor(G,ce,q,Te,He,dt,et,_t,Qe,st,Z,ve){this._overlay=G,this._elementRef=ce,this._scrollDispatcher=q,this._viewContainerRef=Te,this._ngZone=He,this._platform=dt,this._ariaDescriber=et,this._focusMonitor=_t,this._dir=st,this._defaultOptions=Z,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 Y.x,this._scrollStrategy=Qe,this._document=ve,Z&&(Z.position&&(this.position=Z.position),Z.touchGestures&&(this.touchGestures=Z.touchGestures)),st.change.pipe((0,X.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(G){var ce;G!==this._position&&(this._position=G,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(ce=this._tooltipInstance)||void 0===ce||ce.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(G){this._disabled=(0,v.Ig)(G),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(G){this._showDelay=(0,v.su)(G)}get hideDelay(){return this._hideDelay}set hideDelay(G){this._hideDelay=(0,v.su)(G),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(G){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=G?String(G).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(G){this._tooltipClass=G,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,X.R)(this._destroyed)).subscribe(G=>{G?"keyboard"===G&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const G=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ce,q])=>{G.removeEventListener(ce,q,E)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(G,this.message,"tooltip"),this._focusMonitor.stopMonitoring(G)}show(G=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const ce=this._createOverlay();this._detach(),this._portal=this._portal||new V.C5(this._tooltipComponent,this._viewContainerRef);const q=this._tooltipInstance=ce.attach(this._portal).instance;q._triggerElement=this._elementRef.nativeElement,q._mouseLeaveHideDelay=this._hideDelay,q.afterHidden().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),q.show(G)}hide(G=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(G)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var G;if(this._overlayRef)return this._overlayRef;const ce=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),q=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ce);return q.positionChanges.pipe((0,X.R)(this._destroyed)).subscribe(Te=>{this._updateCurrentPositionClass(Te.connectionPair),this._tooltipInstance&&Te.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:q,panelClass:`${this._cssClassPrefix}-${we}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,X.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,X.R)(this._destroyed)).subscribe(()=>{var Te;return null===(Te=this._tooltipInstance)||void 0===Te?void 0:Te._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,X.R)(this._destroyed)).subscribe(Te=>{this._isTooltipVisible()&&Te.keyCode===R.hY&&!(0,R.Vb)(Te)&&(Te.preventDefault(),Te.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(G=this._defaultOptions)&&void 0!==G&&G.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(G){const ce=G.getConfig().positionStrategy,q=this._getOrigin(),Te=this._getOverlayPosition();ce.withPositions([this._addOffset({...q.main,...Te.main}),this._addOffset({...q.fallback,...Te.fallback})])}_addOffset(G){return G}_getOrigin(){const G=!this._dir||"ltr"==this._dir.value,ce=this.position;let q;"above"==ce||"below"==ce?q={originX:"center",originY:"above"==ce?"top":"bottom"}:"before"==ce||"left"==ce&&G||"right"==ce&&!G?q={originX:"start",originY:"center"}:("after"==ce||"right"==ce&&G||"left"==ce&&!G)&&(q={originX:"end",originY:"center"});const{x:Te,y:He}=this._invertPosition(q.originX,q.originY);return{main:q,fallback:{originX:Te,originY:He}}}_getOverlayPosition(){const G=!this._dir||"ltr"==this._dir.value,ce=this.position;let q;"above"==ce?q={overlayX:"center",overlayY:"bottom"}:"below"==ce?q={overlayX:"center",overlayY:"top"}:"before"==ce||"left"==ce&&G||"right"==ce&&!G?q={overlayX:"end",overlayY:"center"}:("after"==ce||"right"==ce&&G||"left"==ce&&!G)&&(q={overlayX:"start",overlayY:"center"});const{x:Te,y:He}=this._invertPosition(q.overlayX,q.overlayY);return{main:q,fallback:{overlayX:Te,overlayY:He}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,ne.q)(1),(0,X.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(G){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=G,this._tooltipInstance._markForCheck())}_invertPosition(G,ce){return"above"===this.position||"below"===this.position?"top"===ce?ce="bottom":"bottom"===ce&&(ce="top"):"end"===G?G="start":"start"===G&&(G="end"),{x:G,y:ce}}_updateCurrentPositionClass(G){const{overlayY:ce,originX:q,originY:Te}=G;let He;if(He="center"===ce?this._dir&&"rtl"===this._dir.value?"end"===q?"left":"right":"start"===q?"left":"right":"bottom"===ce&&"top"===Te?"above":"below",He!==this._currentPosition){const dt=this._overlayRef;if(dt){const et=`${this._cssClassPrefix}-${we}-`;dt.removePanelClass(et+this._currentPosition),dt.addPanelClass(et+He)}this._currentPosition=He}}_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 G=[];if(this._platformSupportsMouseEvents())G.push(["mouseleave",ce=>{var q;const Te=ce.relatedTarget;(!Te||null===(q=this._overlayRef)||void 0===q||!q.overlayElement.contains(Te))&&this.hide()}],["wheel",ce=>this._wheelListener(ce)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ce=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};G.push(["touchend",ce],["touchcancel",ce])}this._addListeners(G),this._passiveListeners.push(...G)}_addListeners(G){G.forEach(([ce,q])=>{this._elementRef.nativeElement.addEventListener(ce,q,E)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(G){if(this._isTooltipVisible()){const ce=this._document.elementFromPoint(G.clientX,G.clientY),q=this._elementRef.nativeElement;ce!==q&&!q.contains(ce)&&this.hide()}}_disableNativeGesturesIfNecessary(){const G=this.touchGestures;if("off"!==G){const ce=this._elementRef.nativeElement,q=ce.style;("on"===G||"INPUT"!==ce.nodeName&&"TEXTAREA"!==ce.nodeName)&&(q.userSelect=q.msUserSelect=q.webkitUserSelect=q.MozUserSelect="none"),("on"===G||!ce.draggable)&&(q.webkitUserDrag="none"),q.touchAction="none",q.webkitTapHighlightColor="transparent"}}}return j.\u0275fac=function(G){w.$Z()},j.\u0275dir=w.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})(),Ze=(()=>{class j extends Me{constructor(G,ce,q,Te,He,dt,et,_t,Qe,st,Z,ve){super(G,ce,q,Te,He,dt,et,_t,Qe,st,Z,ve),this._tooltipComponent=ze}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(C.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(_.t4),w.Y36(d.$s),w.Y36(d.tE),w.Y36(W),w.Y36(T.Is,8),w.Y36(ye,8),w.Y36(A.K0))},j.\u0275dir=w.lG2({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),j})(),se=(()=>{class j{constructor(G,ce){this._changeDetectorRef=G,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Y.x,this._animationsDisabled="NoopAnimations"===ce}show(G){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},G)}hide(G){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},G)}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:G}){(!G||!this._triggerElement.contains(G))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:G}){(G===this._showAnimation||G===this._hideAnimation)&&this._finalizeAnimation(G===this._showAnimation)}_finalizeAnimation(G){G?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(G){const ce=this._tooltip.nativeElement,q=this._showAnimation,Te=this._hideAnimation;if(ce.classList.remove(G?Te:q),ce.classList.add(G?q:Te),this._isVisible=G,G&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const He=getComputedStyle(ce);("0s"===He.getPropertyValue("animation-duration")||"none"===He.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}G&&this._onShow(),this._animationsDisabled&&(ce.classList.add("_mat-animation-noopable"),this._finalizeAnimation(G))}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(w.sBO),w.Y36(w.QbO,8))},j.\u0275dir=w.lG2({type:j}),j})(),ze=(()=>{class j extends se{constructor(G,ce,q){super(G,q),this._breakpointObserver=ce,this._isHandset=this._breakpointObserver.observe(U.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(w.sBO),w.Y36(U.Yg),w.Y36(w.QbO,8))},j.\u0275cmp=w.Xpm({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(G,ce){if(1&G&&w.Gf(te,7),2&G){let q;w.iGM(q=w.CRH())&&(ce._tooltip=q.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(G,ce){1&G&&w.NdJ("mouseleave",function(Te){return ce._handleMouseLeave(Te)}),2&G&&w.Udp("zoom",ce.isVisible()?1:null)},features:[w.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(G,ce){if(1&G&&(w.TgZ(0,"div",0,1),w.NdJ("animationend",function(Te){return ce._handleAnimationEnd(Te)}),w.ALo(2,"async"),w._uU(3),w.qZA()),2&G){let q;w.ekj("mat-tooltip-handset",null==(q=w.lcZ(2,4,ce._isHandset))?null:q.matches),w.Q6J("ngClass",ce.tooltipClass),w.xp6(3),w.Oqu(ce.message)}},dependencies:[A.mk,A.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})(),he=(()=>{class j{}return j.\u0275fac=function(G){return new(G||j)},j.\u0275mod=w.oAB({type:j}),j.\u0275inj=w.cJS({providers:[de],imports:[d.rt,A.ez,e.U8,g.BQ,g.BQ,C.ZD]}),j})()},35423:(Je,pe,h)=>{"use strict";h.d(pe,{Ar:()=>ne,GZ:()=>Y,JZ:()=>we,WX:()=>O,dp:()=>ue,eu:()=>te,fQ:()=>V,gi:()=>le,kc:()=>E,uo:()=>_});var e=h(57851),d=h(94650),A=h(3238),w=h(21281),g=h(95017),C=h(61135),T=h(56451),v=h(95698),R=h(54004);const U=(0,A.sb)((0,A.Id)(e.Hs));let _=(()=>{class H extends U{constructor($,de,ye){super($,de),this.tabIndex=Number(ye)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return H.\u0275fac=function($){return new($||H)(d.Y36(d.SBq),d.Y36(e._0),d.$8M("tabindex"))},H.\u0275dir=d.lG2({type:H,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[d._Bn([{provide:e.Hs,useExisting:H}]),d.qOj]}),H})(),V=(()=>{class H extends e.rO{}return H.\u0275fac=function(){let W;return function(de){return(W||(W=d.n5z(H)))(de||H)}}(),H.\u0275dir=d.lG2({type:H,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[d._Bn([{provide:e.rO,useExisting:H}]),d.qOj]}),H})(),Y=(()=>{class H extends e.Xx{constructor($,de,ye,xe){super($,de,ye),this._disabled=!1,this.tabIndex=Number(xe)||0}get disabled(){return this._disabled}set disabled($){this._disabled=(0,w.Ig)($)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex($){this._tabIndex=$??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return H.\u0275fac=function($){return new($||H)(d.Y36(d.SBq),d.Y36(e._0),d.Y36(d.ZZ4),d.$8M("tabindex"))},H.\u0275dir=d.lG2({type:H,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[d._Bn([{provide:e.Xx,useExisting:H},{provide:e.Hs,useExisting:H},{provide:e.HI,useExisting:H}]),d.qOj]}),H})(),ne=(()=>{class H{constructor($,de){this.viewContainer=$,this._node=de}}return H.\u0275fac=function($){return new($||H)(d.Y36(d.s_b),d.Y36(e.HI,8))},H.\u0275dir=d.lG2({type:H,selectors:[["","matTreeNodeOutlet",""]],features:[d._Bn([{provide:e.cu,useExisting:H}])]}),H})(),le=(()=>{class H extends e._0{}return H.\u0275fac=function(){let W;return function(de){return(W||(W=d.n5z(H)))(de||H)}}(),H.\u0275cmp=d.Xpm({type:H,selectors:[["mat-tree"]],viewQuery:function($,de){if(1&$&&d.Gf(ne,7),2&$){let ye;d.iGM(ye=d.CRH())&&(de._nodeOutlet=ye.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[d._Bn([{provide:e._0,useExisting:H}]),d.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function($,de){1&$&&d.GkF(0,0)},dependencies:[ne],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),H})(),te=(()=>{class H extends e.Ud{}return H.\u0275fac=function(){let W;return function(de){return(W||(W=d.n5z(H)))(de||H)}}(),H.\u0275dir=d.lG2({type:H,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[d._Bn([{provide:e.Ud,useExisting:H}]),d.qOj]}),H})(),ue=(()=>{class H{}return H.\u0275fac=function($){return new($||H)},H.\u0275mod=d.oAB({type:H}),H.\u0275inj=d.cJS({imports:[e.nZ,A.BQ,A.BQ]}),H})();class we{constructor(W,$,de,ye){this.transformFunction=W,this.getLevel=$,this.isExpandable=de,this.getChildren=ye}_flattenNode(W,$,de,ye){const xe=this.transformFunction(W,$);if(de.push(xe),this.isExpandable(xe)){const Me=this.getChildren(W);Me&&(Array.isArray(Me)?this._flattenChildren(Me,$,de,ye):Me.pipe((0,v.q)(1)).subscribe(Ze=>{this._flattenChildren(Ze,$,de,ye)}))}return de}_flattenChildren(W,$,de,ye){W.forEach((xe,Me)=>{let Ze=ye.slice();Ze.push(Me!=W.length-1),this._flattenNode(xe,$+1,de,Ze)})}flattenNodes(W){let $=[];return W.forEach(de=>this._flattenNode(de,0,$,[])),$}expandFlattenedNodes(W,$){let de=[],ye=[];return ye[0]=!0,W.forEach(xe=>{let Me=!0;for(let Ze=0;Ze<=this.getLevel(xe);Ze++)Me=Me&&ye[Ze];Me&&de.push(xe),this.isExpandable(xe)&&(ye[this.getLevel(xe)+1]=$.isExpanded(xe))}),de}}class E extends g.o2{constructor(W,$,de){super(),this._treeControl=W,this._treeFlattener=$,this._flattenedData=new C.X([]),this._expandedData=new C.X([]),this._data=new C.X([]),de&&(this.data=de)}get data(){return this._data.value}set data(W){this._data.next(W),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(W){return(0,T.T)(W.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,R.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class O extends g.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(W){this._data.next(W)}connect(W){return(0,T.T)(W.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},11481:(Je,pe,h)=>{"use strict";h.d(pe,{Dx:()=>n,H7:()=>sn,b2:()=>r,q6:()=>Q,se:()=>se});var e=h(36895),d=h(94650);class A extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends A{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Ct,Ft){return Rt.addEventListener(Ct,Ft,!1),()=>{Rt.removeEventListener(Ct,Ft,!1)}}dispatchEvent(Rt,Ct){Rt.dispatchEvent(Ct)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Ct){return(Ct=Ct||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Ct){return"window"===Ct?window:"document"===Ct?Rt:"body"===Ct?Rt.body:null}getBaseHref(Rt){const Ct=function C(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Ct?null:function v(kt){T=T||document.createElement("a"),T.setAttribute("href",kt);const Rt=T.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Ct)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let T,g=null;const R=new d.OlP("TRANSITION_ID"),_=[{provide:d.ip1,useFactory:function U(kt,Rt,Ct){return()=>{Ct.get(d.CZH).donePromise.then(()=>{const Ft=(0,e.q)(),qt=Rt.querySelectorAll(`style[ng-transition="${kt}"]`);for(let _n=0;_n{class kt{build(){return new XMLHttpRequest}}return kt.\u0275fac=function(Ct){return new(Ct||kt)},kt.\u0275prov=d.Yz7({token:kt,factory:kt.\u0275fac}),kt})();const X=new d.OlP("EventManagerPlugins");let ne=(()=>{class kt{constructor(Ct,Ft){this._zone=Ft,this._eventNameToPlugin=new Map,Ct.forEach(qt=>qt.manager=this),this._plugins=Ct.slice().reverse()}addEventListener(Ct,Ft,qt){return this._findPluginFor(Ft).addEventListener(Ct,Ft,qt)}addGlobalEventListener(Ct,Ft,qt){return this._findPluginFor(Ft).addGlobalEventListener(Ct,Ft,qt)}getZone(){return this._zone}_findPluginFor(Ct){const Ft=this._eventNameToPlugin.get(Ct);if(Ft)return Ft;const qt=this._plugins;for(let _n=0;_n{class kt{constructor(){this._stylesSet=new Set}addStyles(Ct){const Ft=new Set;Ct.forEach(qt=>{this._stylesSet.has(qt)||(this._stylesSet.add(qt),Ft.add(qt))}),this.onStylesAdded(Ft)}onStylesAdded(Ct){}getAllStyles(){return Array.from(this._stylesSet)}}return kt.\u0275fac=function(Ct){return new(Ct||kt)},kt.\u0275prov=d.Yz7({token:kt,factory:kt.\u0275fac}),kt})(),fe=(()=>{class kt extends te{constructor(Ct){super(),this._doc=Ct,this._hostNodes=new Map,this._hostNodes.set(Ct.head,[])}_addStylesToHost(Ct,Ft,qt){Ct.forEach(_n=>{const Mt=this._doc.createElement("style");Mt.textContent=_n,qt.push(Ft.appendChild(Mt))})}addHost(Ct){const Ft=[];this._addStylesToHost(this._stylesSet,Ct,Ft),this._hostNodes.set(Ct,Ft)}removeHost(Ct){const Ft=this._hostNodes.get(Ct);Ft&&Ft.forEach(ue),this._hostNodes.delete(Ct)}onStylesAdded(Ct){this._hostNodes.forEach((Ft,qt)=>{this._addStylesToHost(Ct,qt,Ft)})}ngOnDestroy(){this._hostNodes.forEach(Ct=>Ct.forEach(ue))}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(e.K0))},kt.\u0275prov=d.Yz7({token:kt,factory:kt.\u0275fac}),kt})();function ue(kt){(0,e.q)().remove(kt)}const we={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},E=/%COMP%/g,H="%COMP%",W=`_nghost-${H}`,$=`_ngcontent-${H}`;function xe(kt,Rt,Ct){for(let Ft=0;Ft{if("__ngUnwrap__"===Rt)return kt;!1===kt(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let se=(()=>{class kt{constructor(Ct,Ft,qt){this.eventManager=Ct,this.sharedStylesHost=Ft,this.appId=qt,this.rendererByCompId=new Map,this.defaultRenderer=new ze(Ct)}createRenderer(Ct,Ft){if(!Ct||!Ft)return this.defaultRenderer;switch(Ft.encapsulation){case d.ifc.Emulated:{let qt=this.rendererByCompId.get(Ft.id);return qt||(qt=new P(this.eventManager,this.sharedStylesHost,Ft,this.appId),this.rendererByCompId.set(Ft.id,qt)),qt.applyToHost(Ct),qt}case 1:case d.ifc.ShadowDom:return new G(this.eventManager,this.sharedStylesHost,Ct,Ft);default:if(!this.rendererByCompId.has(Ft.id)){const qt=xe(Ft.id,Ft.styles,[]);this.sharedStylesHost.addStyles(qt),this.rendererByCompId.set(Ft.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(ne),d.LFG(fe),d.LFG(d.AFp))},kt.\u0275prov=d.Yz7({token:kt,factory:kt.\u0275fac}),kt})();class ze{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Ct){return Ct?document.createElementNS(we[Ct]||Ct,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Ct){(j(Rt)?Rt.content:Rt).appendChild(Ct)}insertBefore(Rt,Ct,Ft){Rt&&(j(Rt)?Rt.content:Rt).insertBefore(Ct,Ft)}removeChild(Rt,Ct){Rt&&Rt.removeChild(Ct)}selectRootElement(Rt,Ct){let Ft="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Ft)throw new Error(`The selector "${Rt}" did not match any elements`);return Ct||(Ft.textContent=""),Ft}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Ct,Ft,qt){if(qt){Ct=qt+":"+Ct;const _n=we[qt];_n?Rt.setAttributeNS(_n,Ct,Ft):Rt.setAttribute(Ct,Ft)}else Rt.setAttribute(Ct,Ft)}removeAttribute(Rt,Ct,Ft){if(Ft){const qt=we[Ft];qt?Rt.removeAttributeNS(qt,Ct):Rt.removeAttribute(`${Ft}:${Ct}`)}else Rt.removeAttribute(Ct)}addClass(Rt,Ct){Rt.classList.add(Ct)}removeClass(Rt,Ct){Rt.classList.remove(Ct)}setStyle(Rt,Ct,Ft,qt){qt&(d.JOm.DashCase|d.JOm.Important)?Rt.style.setProperty(Ct,Ft,qt&d.JOm.Important?"important":""):Rt.style[Ct]=Ft}removeStyle(Rt,Ct,Ft){Ft&d.JOm.DashCase?Rt.style.removeProperty(Ct):Rt.style[Ct]=""}setProperty(Rt,Ct,Ft){Rt[Ct]=Ft}setValue(Rt,Ct){Rt.nodeValue=Ct}listen(Rt,Ct,Ft){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Ct,Me(Ft)):this.eventManager.addEventListener(Rt,Ct,Me(Ft))}}function j(kt){return"TEMPLATE"===kt.tagName&&void 0!==kt.content}class P extends ze{constructor(Rt,Ct,Ft,qt){super(Rt),this.component=Ft;const _n=xe(qt+"-"+Ft.id,Ft.styles,[]);Ct.addStyles(_n),this.contentAttr=function de(kt){return $.replace(E,kt)}(qt+"-"+Ft.id),this.hostAttr=function ye(kt){return W.replace(E,kt)}(qt+"-"+Ft.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Ct){const Ft=super.createElement(Rt,Ct);return super.setAttribute(Ft,this.contentAttr,""),Ft}}class G extends ze{constructor(Rt,Ct,Ft,qt){super(Rt),this.sharedStylesHost=Ct,this.hostEl=Ft,this.shadowRoot=Ft.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _n=xe(qt.id,qt.styles,[]);for(let Mt=0;Mt<_n.length;Mt++){const Jt=document.createElement("style");Jt.textContent=_n[Mt],this.shadowRoot.appendChild(Jt)}}nodeOrShadowRoot(Rt){return Rt===this.hostEl?this.shadowRoot:Rt}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Rt,Ct){return super.appendChild(this.nodeOrShadowRoot(Rt),Ct)}insertBefore(Rt,Ct,Ft){return super.insertBefore(this.nodeOrShadowRoot(Rt),Ct,Ft)}removeChild(Rt,Ct){return super.removeChild(this.nodeOrShadowRoot(Rt),Ct)}parentNode(Rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Rt)))}}let ce=(()=>{class kt extends le{constructor(Ct){super(Ct)}supports(Ct){return!0}addEventListener(Ct,Ft,qt){return Ct.addEventListener(Ft,qt,!1),()=>this.removeEventListener(Ct,Ft,qt)}removeEventListener(Ct,Ft,qt){return Ct.removeEventListener(Ft,qt)}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(e.K0))},kt.\u0275prov=d.Yz7({token:kt,factory:kt.\u0275fac}),kt})();const q=["alt","control","meta","shift"],He={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},et={alt:kt=>kt.altKey,control:kt=>kt.ctrlKey,meta:kt=>kt.metaKey,shift:kt=>kt.shiftKey};let _t=(()=>{class kt extends le{constructor(Ct){super(Ct)}supports(Ct){return null!=kt.parseEventName(Ct)}addEventListener(Ct,Ft,qt){const _n=kt.parseEventName(Ft),Mt=kt.eventCallback(_n.fullKey,qt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ct,_n.domEventName,Mt))}static parseEventName(Ct){const Ft=Ct.toLowerCase().split("."),qt=Ft.shift();if(0===Ft.length||"keydown"!==qt&&"keyup"!==qt)return null;const _n=kt._normalizeKey(Ft.pop());let Mt="";if(q.forEach(wt=>{const rt=Ft.indexOf(wt);rt>-1&&(Ft.splice(rt,1),Mt+=wt+".")}),Mt+=_n,0!=Ft.length||0===_n.length)return null;const Jt={};return Jt.domEventName=qt,Jt.fullKey=Mt,Jt}static getEventFullKey(Ct){let Ft="",qt=function Qe(kt){let Rt=kt.key;if(null==Rt){if(Rt=kt.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===kt.location&&dt.hasOwnProperty(Rt)&&(Rt=dt[Rt]))}return He[Rt]||Rt}(Ct);return qt=qt.toLowerCase()," "===qt?qt="space":"."===qt&&(qt="dot"),q.forEach(_n=>{_n!=qt&&(0,et[_n])(Ct)&&(Ft+=_n+".")}),Ft+=qt,Ft}static eventCallback(Ct,Ft,qt){return _n=>{kt.getEventFullKey(_n)===Ct&&qt.runGuarded(()=>Ft(_n))}}static _normalizeKey(Ct){return"esc"===Ct?"escape":Ct}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(e.K0))},kt.\u0275prov=d.Yz7({token:kt,factory:kt.\u0275fac}),kt})();const Q=(0,d.eFA)(d._c5,"browser",[{provide:d.Lbi,useValue:e.bD},{provide:d.g9A,useValue:function oe(){w.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function ae(){return(0,d.RDi)(document),document},deps:[]}]),me=new d.OlP(""),N=[{provide:d.rWj,useClass:class V{addToWindow(Rt){d.dqk.getAngularTestability=(Ft,qt=!0)=>{const _n=Rt.findTestabilityInTree(Ft,qt);if(null==_n)throw new Error("Could not find testability for element.");return _n},d.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),d.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),d.dqk.frameworkStabilizers||(d.dqk.frameworkStabilizers=[]),d.dqk.frameworkStabilizers.push(Ft=>{const qt=d.dqk.getAllAngularTestabilities();let _n=qt.length,Mt=!1;const Jt=function(wt){Mt=Mt||wt,_n--,0==_n&&Ft(Mt)};qt.forEach(function(wt){wt.whenStable(Jt)})})}findTestabilityInTree(Rt,Ct,Ft){return null==Ct?null:Rt.getTestability(Ct)??(Ft?(0,e.q)().isShadowRoot(Ct)?this.findTestabilityInTree(Rt,Ct.host,!0):this.findTestabilityInTree(Rt,Ct.parentElement,!0):null)}},deps:[]},{provide:d.lri,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]},{provide:d.dDg,useClass:d.dDg,deps:[d.R0b,d.eoX,d.rWj]}],L=[{provide:d.zSh,useValue:"root"},{provide:d.qLn,useFactory:function ge(){return new d.qLn},deps:[]},{provide:X,useClass:ce,multi:!0,deps:[e.K0,d.R0b,d.Lbi]},{provide:X,useClass:_t,multi:!0,deps:[e.K0]},{provide:se,useClass:se,deps:[ne,fe,d.AFp]},{provide:d.FYo,useExisting:se},{provide:te,useExisting:fe},{provide:fe,useClass:fe,deps:[e.K0]},{provide:ne,useClass:ne,deps:[X,d.R0b]},{provide:e.JF,useClass:Y,deps:[]},[]];let r=(()=>{class kt{constructor(Ct){}static withServerTransition(Ct){return{ngModule:kt,providers:[{provide:d.AFp,useValue:Ct.appId},{provide:R,useExisting:d.AFp},_]}}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(me,12))},kt.\u0275mod=d.oAB({type:kt}),kt.\u0275inj=d.cJS({providers:[...L,...N],imports:[e.ez,d.hGG]}),kt})(),n=(()=>{class kt{constructor(Ct){this._doc=Ct}getTitle(){return this._doc.title}setTitle(Ct){this._doc.title=Ct||""}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(e.K0))},kt.\u0275prov=d.Yz7({token:kt,factory:function(Ct){let Ft=null;return Ft=Ct?new Ct:function o(){return new n((0,d.LFG)(e.K0))}(),Ft},providedIn:"root"}),kt})();typeof window<"u"&&window;let sn=(()=>{class kt{}return kt.\u0275fac=function(Ct){return new(Ct||kt)},kt.\u0275prov=d.Yz7({token:kt,factory:function(Ct){let Ft=null;return Ft=Ct?new(Ct||kt):d.LFG(on),Ft},providedIn:"root"}),kt})(),on=(()=>{class kt extends sn{constructor(Ct){super(),this._doc=Ct}sanitize(Ct,Ft){if(null==Ft)return null;switch(Ct){case d.q3G.NONE:return Ft;case d.q3G.HTML:return(0,d.qzn)(Ft,"HTML")?(0,d.z3N)(Ft):(0,d.EiD)(this._doc,String(Ft)).toString();case d.q3G.STYLE:return(0,d.qzn)(Ft,"Style")?(0,d.z3N)(Ft):Ft;case d.q3G.SCRIPT:if((0,d.qzn)(Ft,"Script"))return(0,d.z3N)(Ft);throw new Error("unsafe value used in a script context");case d.q3G.URL:return(0,d.qzn)(Ft,"URL")?(0,d.z3N)(Ft):(0,d.mCW)(String(Ft));case d.q3G.RESOURCE_URL:if((0,d.qzn)(Ft,"ResourceURL"))return(0,d.z3N)(Ft);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ct} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ct){return(0,d.JVY)(Ct)}bypassSecurityTrustStyle(Ct){return(0,d.L6k)(Ct)}bypassSecurityTrustScript(Ct){return(0,d.eBb)(Ct)}bypassSecurityTrustUrl(Ct){return(0,d.LAX)(Ct)}bypassSecurityTrustResourceUrl(Ct){return(0,d.pB0)(Ct)}}return kt.\u0275fac=function(Ct){return new(Ct||kt)(d.LFG(e.K0))},kt.\u0275prov=d.Yz7({token:kt,factory:function(Ct){let Ft=null;return Ft=Ct?new Ct:function Kt(kt){return new on(kt.get(e.K0))}(d.LFG(d.zs3)),Ft},providedIn:"root"}),kt})()},94364:(Je,pe,h)=>{"use strict";h.d(pe,{gz:()=>ui,m2:()=>jn,OD:()=>Yi,GZ:()=>ps,wN:()=>ol,F0:()=>Ei,rH:()=>No,yS:()=>ko,Bz:()=>ti,lC:()=>Xi});var e=h(94650),d=h(69751),A=h(50727),w=h(54482),g=h(25403);function C(){return(0,w.e)((ee,ie)=>{let F=null;ee._refCount++;const _e=(0,g.x)(ie,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(F=null);const Le=ee._connection,ut=F;F=null,Le&&(!ut||Le===ut)&&Le.unsubscribe(),ie.unsubscribe()});ee.subscribe(_e),_e.closed||(F=ee.connect())})}class T extends d.y{constructor(ie,F){super(),this.source=ie,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,w.A)(ie)&&(this.lift=ie.lift)}_subscribe(ie){return this.getSubject().subscribe(ie)}getSubject(){const ie=this._subject;return(!ie||ie.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ie}=this;this._subject=this._connection=null,ie?.unsubscribe()}connect(){let ie=this._connection;if(!ie){ie=this._connection=new A.w0;const F=this.getSubject();ie.add(this.source.subscribe((0,g.x)(F,void 0,()=>{this._teardown(),F.complete()},_e=>{this._teardown(),F.error(_e)},()=>this._teardown()))),ie.closed&&(this._connection=null,ie=A.w0.EMPTY)}return ie}refCount(){return C()(this)}}var v=h(32076),R=h(39646),U=h(61135),_=h(86805),V=h(39841),Y=h(97272),X=h(49770),ne=h(89635),le=h(62843),te=h(60515),fe=h(77579),ue=h(36895),we=h(57359);function E(ee,ie){return(0,w.e)((0,we.U)(ee,ie,arguments.length>=2,!0))}var O=h(39300);function H(ee){return ee<=0?()=>te.E:(0,w.e)((ie,F)=>{let _e=[];ie.subscribe((0,g.x)(F,Le=>{_e.push(Le),ee<_e.length&&_e.shift()},()=>{for(const Le of _e)F.next(Le);F.complete()},void 0,()=>{_e=null}))})}var W=h(18068),$=h(46590),de=h(44671);function ye(ee,ie){const F=arguments.length>=2;return _e=>_e.pipe(ee?(0,O.h)((Le,ut)=>ee(Le,ut,_e)):de.y,H(1),F?(0,$.d)(ie):(0,W.T)(()=>new _.K))}var xe=h(54004),Me=h(63900),Ze=h(95698),se=h(68675),ze=h(86099),he=h(50590),De=h(24351),j=h(18505),P=h(70262),G=h(22529),ce=h(69718),q=h(28746),Te=h(8189),He=h(11481);const dt="primary";class et{constructor(ie){this.params=ie||{}}has(ie){return Object.prototype.hasOwnProperty.call(this.params,ie)}get(ie){if(this.has(ie)){const F=this.params[ie];return Array.isArray(F)?F[0]:F}return null}getAll(ie){if(this.has(ie)){const F=this.params[ie];return Array.isArray(F)?F:[F]}return[]}get keys(){return Object.keys(this.params)}}function _t(ee){return new et(ee)}function Qe(ee,ie,F){const _e=F.path.split("/");if(_e.length>ee.length||"full"===F.pathMatch&&(ie.hasChildren()||_e.length_e[ut]===Le)}return ee===ie}function oe(ee){return Array.prototype.concat.apply([],ee)}function ge(ee){return ee.length>0?ee[ee.length-1]:null}function Oe(ee,ie){for(const F in ee)ee.hasOwnProperty(F)&&ie(ee[F],F)}function Q(ee){return(0,e.CqO)(ee)?ee:(0,e.QGY)(ee)?(0,v.D)(Promise.resolve(ee)):(0,R.of)(ee)}const L={exact:function l(ee,ie,F){if(!Ne(ee.segments,ie.segments)||!i(ee.segments,ie.segments,F)||ee.numberOfChildren!==ie.numberOfChildren)return!1;for(const _e in ie.children)if(!ee.children[_e]||!l(ee.children[_e],ie.children[_e],F))return!1;return!0},subset:n},r={exact:function m(ee,ie){return Z(ee,ie)},subset:function o(ee,ie){return Object.keys(ie).length<=Object.keys(ee).length&&Object.keys(ie).every(F=>ve(ee[F],ie[F]))},ignored:()=>!0};function s(ee,ie,F){return L[F.paths](ee.root,ie.root,F.matrixParams)&&r[F.queryParams](ee.queryParams,ie.queryParams)&&!("exact"===F.fragment&&ee.fragment!==ie.fragment)}function n(ee,ie,F){return t(ee,ie,ie.segments,F)}function t(ee,ie,F,_e){if(ee.segments.length>F.length){const Le=ee.segments.slice(0,F.length);return!(!Ne(Le,F)||ie.hasChildren()||!i(Le,F,_e))}if(ee.segments.length===F.length){if(!Ne(ee.segments,F)||!i(ee.segments,F,_e))return!1;for(const Le in ie.children)if(!ee.children[Le]||!n(ee.children[Le],ie.children[Le],_e))return!1;return!0}{const Le=F.slice(0,ee.segments.length),ut=F.slice(ee.segments.length);return!!(Ne(ee.segments,Le)&&i(ee.segments,Le,_e)&&ee.children[dt])&&t(ee.children[dt],ie,ut,_e)}}function i(ee,ie,F){return ie.every((_e,Le)=>r[F](ee[Le].parameters,_e.parameters))}class a{constructor(ie,F,_e){this.root=ie,this.queryParams=F,this.fragment=_e}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return xt.serialize(this)}}class c{constructor(ie,F){this.segments=ie,this.children=F,this.parent=null,Oe(F,(_e,Le)=>_e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gt(this)}}class p{constructor(ie,F){this.path=ie,this.parameters=F}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return We(this)}}function Ne(ee,ie){return ee.length===ie.length&&ee.every((F,_e)=>F.path===ie[_e].path)}let Ut=(()=>{class ee{}return ee.\u0275fac=function(F){return new(F||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return new ln},providedIn:"root"}),ee})();class ln{parse(ie){const F=new on(ie);return new a(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(ie){const F=`/${Ge(ie.root,!0)}`,_e=function ot(ee){const ie=Object.keys(ee).map(F=>{const _e=ee[F];return Array.isArray(_e)?_e.map(Le=>`${Xe(F)}=${Xe(Le)}`).join("&"):`${Xe(F)}=${Xe(_e)}`}).filter(F=>!!F);return ie.length?`?${ie.join("&")}`:""}(ie.queryParams);return`${F}${_e}${"string"==typeof ie.fragment?`#${function Ke(ee){return encodeURI(ee)}(ie.fragment)}`:""}`}}const xt=new ln;function gt(ee){return ee.segments.map(ie=>We(ie)).join("/")}function Ge(ee,ie){if(!ee.hasChildren())return gt(ee);if(ie){const F=ee.children[dt]?Ge(ee.children[dt],!1):"",_e=[];return Oe(ee.children,(Le,ut)=>{ut!==dt&&_e.push(`${ut}:${Ge(Le,!1)}`)}),_e.length>0?`${F}(${_e.join("//")})`:F}{const F=function Pt(ee,ie){let F=[];return Oe(ee.children,(_e,Le)=>{Le===dt&&(F=F.concat(ie(_e,Le)))}),Oe(ee.children,(_e,Le)=>{Le!==dt&&(F=F.concat(ie(_e,Le)))}),F}(ee,(_e,Le)=>Le===dt?[Ge(ee.children[dt],!1)]:[`${Le}:${Ge(_e,!1)}`]);return 1===Object.keys(ee.children).length&&null!=ee.children[dt]?`${gt(ee)}/${F[0]}`:`${gt(ee)}/(${F.join("//")})`}}function Ie(ee){return encodeURIComponent(ee).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(ee){return Ie(ee).replace(/%3B/gi,";")}function ke(ee){return Ie(ee).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ae(ee){return decodeURIComponent(ee)}function Ee(ee){return Ae(ee.replace(/\+/g,"%20"))}function We(ee){return`${ke(ee.path)}${function tt(ee){return Object.keys(ee).map(ie=>`;${ke(ie)}=${ke(ee[ie])}`).join("")}(ee.parameters)}`}const Re=/^[^\/()?;=#]+/;function lt(ee){const ie=ee.match(Re);return ie?ie[0]:""}const It=/^[^=?&#]+/,sn=/^[^&#]+/;class on{constructor(ie){this.url=ie,this.remaining=ie}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new c([],{}):new c([],this.parseChildren())}parseQueryParams(){const ie={};if(this.consumeOptional("?"))do{this.parseQueryParam(ie)}while(this.consumeOptional("&"));return ie}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ie=[];for(this.peekStartsWith("(")||ie.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ie.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let _e={};return this.peekStartsWith("(")&&(_e=this.parseParens(!1)),(ie.length>0||Object.keys(F).length>0)&&(_e[dt]=new c(ie,F)),_e}parseSegment(){const ie=lt(this.remaining);if(""===ie&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ie),new p(Ae(ie),this.parseMatrixParams())}parseMatrixParams(){const ie={};for(;this.consumeOptional(";");)this.parseParam(ie);return ie}parseParam(ie){const F=lt(this.remaining);if(!F)return;this.capture(F);let _e="";if(this.consumeOptional("=")){const Le=lt(this.remaining);Le&&(_e=Le,this.capture(_e))}ie[Ae(F)]=Ae(_e)}parseQueryParam(ie){const F=function jt(ee){const ie=ee.match(It);return ie?ie[0]:""}(this.remaining);if(!F)return;this.capture(F);let _e="";if(this.consumeOptional("=")){const Tt=function Kt(ee){const ie=ee.match(sn);return ie?ie[0]:""}(this.remaining);Tt&&(_e=Tt,this.capture(_e))}const Le=Ee(F),ut=Ee(_e);if(ie.hasOwnProperty(Le)){let Tt=ie[Le];Array.isArray(Tt)||(Tt=[Tt],ie[Le]=Tt),Tt.push(ut)}else ie[Le]=ut}parseParens(ie){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const _e=lt(this.remaining),Le=this.remaining[_e.length];if("/"!==Le&&")"!==Le&&";"!==Le)throw new e.vHH(4010,!1);let ut;_e.indexOf(":")>-1?(ut=_e.slice(0,_e.indexOf(":")),this.capture(ut),this.capture(":")):ie&&(ut=dt);const Tt=this.parseChildren();F[ut]=1===Object.keys(Tt).length?Tt[dt]:new c([],Tt),this.consumeOptional("//")}return F}peekStartsWith(ie){return this.remaining.startsWith(ie)}consumeOptional(ie){return!!this.peekStartsWith(ie)&&(this.remaining=this.remaining.substring(ie.length),!0)}capture(ie){if(!this.consumeOptional(ie))throw new e.vHH(4011,!1)}}function fn(ee){return ee.segments.length>0?new c([],{[dt]:ee}):ee}function kt(ee){const ie={};for(const _e of Object.keys(ee.children)){const ut=kt(ee.children[_e]);(ut.segments.length>0||ut.hasChildren())&&(ie[_e]=ut)}return function Rt(ee){if(1===ee.numberOfChildren&&ee.children[dt]){const ie=ee.children[dt];return new c(ee.segments.concat(ie.segments),ie.children)}return ee}(new c(ee.segments,ie))}function Ct(ee){return ee instanceof a}function Jt(ee,ie,F,_e,Le){var ut;if(0===F.length)return bt(ie.root,ie.root,ie.root,_e,Le);const Tt=function At(ee){if("string"==typeof ee[0]&&1===ee.length&&"/"===ee[0])return new qe(!0,0,ee);let ie=0,F=!1;const _e=ee.reduce((Le,ut,Tt)=>{if("object"==typeof ut&&null!=ut){if(ut.outlets){const Lt={};return Oe(ut.outlets,(Yt,un)=>{Lt[un]="string"==typeof Yt?Yt.split("/"):Yt}),[...Le,{outlets:Lt}]}if(ut.segmentPath)return[...Le,ut.segmentPath]}return"string"!=typeof ut?[...Le,ut]:0===Tt?(ut.split("/").forEach((Lt,Yt)=>{0==Yt&&"."===Lt||(0==Yt&&""===Lt?F=!0:".."===Lt?ie++:""!=Lt&&Le.push(Lt))}),Le):[...Le,ut]},[]);return new qe(F,ie,_e)}(F);if(Tt.toRoot())return bt(ie.root,ie.root,new c([],{}),_e,Le);const Yt=function Lt(Cn){var gn;const Mn=function mt(ee,ie,F,_e){if(ee.isAbsolute)return new z(ie.root,!0,0);if(-1===_e)return new z(F,F===ie.root,0);return function St(ee,ie,F){let _e=ee,Le=ie,ut=F;for(;ut>Le;){if(ut-=Le,_e=_e.parent,!_e)throw new e.vHH(4005,!1);Le=_e.segments.length}return new z(_e,!1,Le-ut)}(F,_e+(wt(ee.commands[0])?0:1),ee.numberOfDoubleDots)}(Tt,ie,null===(gn=ee.snapshot)||void 0===gn?void 0:gn._urlSegment,Cn),ri=Mn.processChildren?Un(Mn.segmentGroup,Mn.index,Tt.commands):vn(Mn.segmentGroup,Mn.index,Tt.commands);return bt(ie.root,Mn.segmentGroup,ri,_e,Le)}(null===(ut=ee.snapshot)||void 0===ut?void 0:ut._lastPathIndex);return Yt}function wt(ee){return"object"==typeof ee&&null!=ee&&!ee.outlets&&!ee.segmentPath}function rt(ee){return"object"==typeof ee&&null!=ee&&ee.outlets}function bt(ee,ie,F,_e,Le){let Tt,ut={};_e&&Oe(_e,(Yt,un)=>{ut[un]=Array.isArray(Yt)?Yt.map(Cn=>`${Cn}`):`${Yt}`}),Tt=ee===ie?F:at(ee,ie,F);const Lt=fn(kt(Tt));return new a(Lt,ut,Le)}function at(ee,ie,F){const _e={};return Oe(ee.children,(Le,ut)=>{_e[ut]=Le===ie?F:at(Le,ie,F)}),new c(ee.segments,_e)}class qe{constructor(ie,F,_e){if(this.isAbsolute=ie,this.numberOfDoubleDots=F,this.commands=_e,ie&&_e.length>0&&wt(_e[0]))throw new e.vHH(4003,!1);const Le=_e.find(rt);if(Le&&Le!==ge(_e))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class z{constructor(ie,F,_e){this.segmentGroup=ie,this.processChildren=F,this.index=_e}}function vn(ee,ie,F){if(ee||(ee=new c([],{})),0===ee.segments.length&&ee.hasChildren())return Un(ee,ie,F);const _e=function Hn(ee,ie,F){let _e=0,Le=ie;const ut={match:!1,pathIndex:0,commandIndex:0};for(;Le=F.length)return ut;const Tt=ee.segments[Le],Lt=F[_e];if(rt(Lt))break;const Yt=`${Lt}`,un=_e0&&void 0===Yt)break;if(Yt&&un&&"object"==typeof un&&void 0===un.outlets){if(!Zn(Yt,un,Tt))return ut;_e+=2}else{if(!Zn(Yt,{},Tt))return ut;_e++}Le++}return{match:!0,pathIndex:Le,commandIndex:_e}}(ee,ie,F),Le=F.slice(_e.commandIndex);if(_e.match&&_e.pathIndex{"string"==typeof ut&&(ut=[ut]),null!==ut&&(Le[Tt]=vn(ee.children[Tt],ie,ut))}),Oe(ee.children,(ut,Tt)=>{void 0===_e[Tt]&&(Le[Tt]=ut)}),new c(ee.segments,Le)}}function qn(ee,ie,F){const _e=ee.segments.slice(0,ie);let Le=0;for(;Le{"string"==typeof F&&(F=[F]),null!==F&&(ie[_e]=qn(new c([],{}),0,F))}),ie}function li(ee){const ie={};return Oe(ee,(F,_e)=>ie[_e]=`${F}`),ie}function Zn(ee,ie,F){return ee==F.path&&Z(ie,F.parameters)}class On{constructor(ie,F){this.id=ie,this.url=F}}class Yi extends On{constructor(ie,F,_e="imperative",Le=null){super(ie,F),this.type=0,this.navigationTrigger=_e,this.restoredState=Le}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jn extends On{constructor(ie,F,_e){super(ie,F),this.urlAfterRedirects=_e,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class zn extends On{constructor(ie,F,_e,Le){super(ie,F),this.reason=_e,this.code=Le,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ki extends On{constructor(ie,F,_e,Le){super(ie,F),this.error=_e,this.target=Le,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vi extends On{constructor(ie,F,_e,Le){super(ie,F),this.urlAfterRedirects=_e,this.state=Le,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Oi extends On{constructor(ie,F,_e,Le){super(ie,F),this.urlAfterRedirects=_e,this.state=Le,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends On{constructor(ie,F,_e,Le,ut){super(ie,F),this.urlAfterRedirects=_e,this.state=Le,this.shouldActivate=ut,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gi extends On{constructor(ie,F,_e,Le){super(ie,F),this.urlAfterRedirects=_e,this.state=Le,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ir extends On{constructor(ie,F,_e,Le){super(ie,F),this.urlAfterRedirects=_e,this.state=Le,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ir{constructor(ie){this.route=ie,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fr{constructor(ie){this.route=ie,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rr{constructor(ie){this.snapshot=ie,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yt{constructor(ie){this.snapshot=ie,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rn{constructor(ie){this.snapshot=ie,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(ie){this.snapshot=ie,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nt{constructor(ie,F,_e){this.routerEvent=ie,this.position=F,this.anchor=_e,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ht{constructor(ie){this._root=ie}get root(){return this._root.value}parent(ie){const F=this.pathFromRoot(ie);return F.length>1?F[F.length-2]:null}children(ie){const F=$e(ie,this._root);return F?F.children.map(_e=>_e.value):[]}firstChild(ie){const F=$e(ie,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(ie){const F=vt(ie,this._root);return F.length<2?[]:F[F.length-2].children.map(Le=>Le.value).filter(Le=>Le!==ie)}pathFromRoot(ie){return vt(ie,this._root).map(F=>F.value)}}function $e(ee,ie){if(ee===ie.value)return ie;for(const F of ie.children){const _e=$e(ee,F);if(_e)return _e}return null}function vt(ee,ie){if(ee===ie.value)return[ie];for(const F of ie.children){const _e=vt(ee,F);if(_e.length)return _e.unshift(ie),_e}return[]}class Gt{constructor(ie,F){this.value=ie,this.children=F}toString(){return`TreeNode(${this.value})`}}function dn(ee){const ie={};return ee&&ee.children.forEach(F=>ie[F.value.outlet]=F),ie}class yn extends Ht{constructor(ie,F){super(ie),this.snapshot=F,Si(this,ie)}toString(){return this.snapshot.toString()}}function Wn(ee,ie){const F=function Kn(ee,ie){const Tt=new mr([],{},{},"",{},dt,ie,null,ee.root,-1,{});return new Vr("",new Gt(Tt,[]))}(ee,ie),_e=new U.X([new p("",{})]),Le=new U.X({}),ut=new U.X({}),Tt=new U.X({}),Lt=new U.X(""),Yt=new ui(_e,Le,Tt,Lt,ut,dt,ie,F.root);return Yt.snapshot=F.root,new yn(new Gt(Yt,[]),F)}class ui{constructor(ie,F,_e,Le,ut,Tt,Lt,Yt){this.url=ie,this.params=F,this.queryParams=_e,this.fragment=Le,this.data=ut,this.outlet=Tt,this.component=Lt,this._futureSnapshot=Yt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,xe.U)(ie=>_t(ie)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,xe.U)(ie=>_t(ie)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ji(ee,ie="emptyOnly"){const F=ee.pathFromRoot;let _e=0;if("always"!==ie)for(_e=F.length-1;_e>=1;){const Le=F[_e],ut=F[_e-1];if(Le.routeConfig&&""===Le.routeConfig.path)_e--;else{if(ut.component)break;_e--}}return function ea(ee){return ee.reduce((ie,F)=>{var _e;return{params:{...ie.params,...F.params},data:{...ie.data,...F.data},resolve:{...F.data,...ie.resolve,...null===(_e=F.routeConfig)||void 0===_e?void 0:_e.data,...F._resolvedData}}},{params:{},data:{},resolve:{}})}(F.slice(_e))}class mr{constructor(ie,F,_e,Le,ut,Tt,Lt,Yt,un,Cn,gn,Mn){this.url=ie,this.params=F,this.queryParams=_e,this.fragment=Le,this.data=ut,this.outlet=Tt,this.component=Lt,this.routeConfig=Yt,this._urlSegment=un,this._lastPathIndex=Cn,this._correctedLastPathIndex=Mn??Cn,this._resolve=gn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(_e=>_e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Vr extends Ht{constructor(ie,F){super(F),this.url=ie,Si(this,F)}toString(){return Tr(this._root)}}function Si(ee,ie){ie.value._routerState=ee,ie.children.forEach(F=>Si(ee,F))}function Tr(ee){const ie=ee.children.length>0?` { ${ee.children.map(Tr).join(", ")} } `:"";return`${ee.value}${ie}`}function gr(ee){if(ee.snapshot){const ie=ee.snapshot,F=ee._futureSnapshot;ee.snapshot=F,Z(ie.queryParams,F.queryParams)||ee.queryParams.next(F.queryParams),ie.fragment!==F.fragment&&ee.fragment.next(F.fragment),Z(ie.params,F.params)||ee.params.next(F.params),function st(ee,ie){if(ee.length!==ie.length)return!1;for(let F=0;FZ(F.parameters,ie[_e].parameters))}(ee.url,ie.url);return F&&!(!ee.parent!=!ie.parent)&&(!ee.parent||or(ee.parent,ie.parent))}function sr(ee,ie,F){if(F&&ee.shouldReuseRoute(ie.value,F.value.snapshot)){const _e=F.value;_e._futureSnapshot=ie.value;const Le=function _r(ee,ie,F){return ie.children.map(_e=>{for(const Le of F.children)if(ee.shouldReuseRoute(_e.value,Le.value.snapshot))return sr(ee,_e,Le);return sr(ee,_e)})}(ee,ie,F);return new Gt(_e,Le)}{if(ee.shouldAttach(ie.value)){const ut=ee.retrieve(ie.value);if(null!==ut){const Tt=ut.route;return Tt.value._futureSnapshot=ie.value,Tt.children=ie.children.map(Lt=>sr(ee,Lt)),Tt}}const _e=function Ar(ee){return new ui(new U.X(ee.url),new U.X(ee.params),new U.X(ee.queryParams),new U.X(ee.fragment),new U.X(ee.data),ee.outlet,ee.component,ee)}(ie.value),Le=ie.children.map(ut=>sr(ee,ut));return new Gt(_e,Le)}}const lr="ngNavigationCancelingError";function Fr(ee,ie){const{redirectTo:F,navigationBehaviorOptions:_e}=Ct(ie)?{redirectTo:ie,navigationBehaviorOptions:void 0}:ie,Le=Yr(!1,0,ie);return Le.url=F,Le.navigationBehaviorOptions=_e,Le}function Yr(ee,ie,F){const _e=new Error("NavigationCancelingError: "+(ee||""));return _e[lr]=!0,_e.cancellationCode=ie,F&&(_e.url=F),_e}function yi(ee){return $i(ee)&&Ct(ee.url)}function $i(ee){return ee&&ee[lr]}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ki,this.attachRef=null}}let Ki=(()=>{class ee{constructor(){this.contexts=new Map}onChildOutletCreated(F,_e){const Le=this.getOrCreateContext(F);Le.outlet=_e,this.contexts.set(F,Le)}onChildOutletDestroyed(F){const _e=this.getContext(F);_e&&(_e.outlet=null,_e.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let _e=this.getContext(F);return _e||(_e=new Ur,this.contexts.set(F,_e)),_e}getContext(F){return this.contexts.get(F)||null}}return ee.\u0275fac=function(F){return new(F||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();const Di=!1;let Xi=(()=>{class ee{constructor(F,_e,Le,ut,Tt){this.parentContexts=F,this.location=_e,this.changeDetector=ut,this.environmentInjector=Tt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=Le||dt,F.onChildOutletCreated(this.name,this)}ngOnDestroy(){var F;(null===(F=this.parentContexts.getContext(this.name))||void 0===F?void 0:F.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const F=this.parentContexts.getContext(this.name);F&&F.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,Di);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,Di);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,Di);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,_e){this.activated=F,this._activatedRoute=_e,this.location.insert(F.hostView),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,_e){if(this.isActivated)throw new e.vHH(4013,Di);this._activatedRoute=F;const Le=this.location,Tt=F._futureSnapshot.component,Lt=this.parentContexts.getOrCreateContext(this.name).children,Yt=new Yn(F,Lt,Le.injector);if(_e&&function ta(ee){return!!ee.resolveComponentFactory}(_e)){const un=_e.resolveComponentFactory(Tt);this.activated=Le.createComponent(un,Le.length,Yt)}else this.activated=Le.createComponent(Tt,{index:Le.length,injector:Yt,environmentInjector:_e??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ee.\u0275fac=function(F){return new(F||ee)(e.Y36(Ki),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},ee.\u0275dir=e.lG2({type:ee,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ee})();class Yn{constructor(ie,F,_e){this.route=ie,this.childContexts=F,this.parent=_e}get(ie,F){return ie===ui?this.route:ie===Ki?this.childContexts:this.parent.get(ie,F)}}let Jr=(()=>{class ee{}return ee.\u0275fac=function(F){return new(F||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["ng-component"]],decls:1,vars:0,template:function(F,_e){1&F&&e._UZ(0,"router-outlet")},dependencies:[Xi],encapsulation:2}),ee})();function yr(ee,ie){var F;return ee.providers&&!ee._injector&&(ee._injector=(0,e.MMx)(ee.providers,ie,`Route: ${ee.path}`)),null!==(F=ee._injector)&&void 0!==F?F:ie}function ft(ee){const ie=ee.children&&ee.children.map(ft),F=ie?{...ee,children:ie}:{...ee};return!F.component&&!F.loadComponent&&(ie||F.loadChildren)&&F.outlet&&F.outlet!==dt&&(F.component=Jr),F}function Bt(ee){return ee.outlet||dt}function $t(ee,ie){const F=ee.filter(_e=>Bt(_e)===ie);return F.push(...ee.filter(_e=>Bt(_e)!==ie)),F}function Wt(ee){var ie;if(!ee)return null;if(null!==(ie=ee.routeConfig)&&void 0!==ie&&ie._injector)return ee.routeConfig._injector;for(let F=ee.parent;F;F=F.parent){const _e=F.routeConfig;if(null!=_e&&_e._loadedInjector)return _e._loadedInjector;if(null!=_e&&_e._injector)return _e._injector}return null}class ni{constructor(ie,F,_e,Le){this.routeReuseStrategy=ie,this.futureState=F,this.currState=_e,this.forwardEvent=Le}activate(ie){const F=this.futureState._root,_e=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,_e,ie),gr(this.futureState.root),this.activateChildRoutes(F,_e,ie)}deactivateChildRoutes(ie,F,_e){const Le=dn(F);ie.children.forEach(ut=>{const Tt=ut.value.outlet;this.deactivateRoutes(ut,Le[Tt],_e),delete Le[Tt]}),Oe(Le,(ut,Tt)=>{this.deactivateRouteAndItsChildren(ut,_e)})}deactivateRoutes(ie,F,_e){const Le=ie.value,ut=F?F.value:null;if(Le===ut)if(Le.component){const Tt=_e.getContext(Le.outlet);Tt&&this.deactivateChildRoutes(ie,F,Tt.children)}else this.deactivateChildRoutes(ie,F,_e);else ut&&this.deactivateRouteAndItsChildren(F,_e)}deactivateRouteAndItsChildren(ie,F){ie.value.component&&this.routeReuseStrategy.shouldDetach(ie.value.snapshot)?this.detachAndStoreRouteSubtree(ie,F):this.deactivateRouteAndOutlet(ie,F)}detachAndStoreRouteSubtree(ie,F){const _e=F.getContext(ie.value.outlet),Le=_e&&ie.value.component?_e.children:F,ut=dn(ie);for(const Tt of Object.keys(ut))this.deactivateRouteAndItsChildren(ut[Tt],Le);if(_e&&_e.outlet){const Tt=_e.outlet.detach(),Lt=_e.children.onOutletDeactivated();this.routeReuseStrategy.store(ie.value.snapshot,{componentRef:Tt,route:ie,contexts:Lt})}}deactivateRouteAndOutlet(ie,F){const _e=F.getContext(ie.value.outlet),Le=_e&&ie.value.component?_e.children:F,ut=dn(ie);for(const Tt of Object.keys(ut))this.deactivateRouteAndItsChildren(ut[Tt],Le);_e&&_e.outlet&&(_e.outlet.deactivate(),_e.children.onOutletDeactivated(),_e.attachRef=null,_e.resolver=null,_e.route=null)}activateChildRoutes(ie,F,_e){const Le=dn(F);ie.children.forEach(ut=>{this.activateRoutes(ut,Le[ut.value.outlet],_e),this.forwardEvent(new nt(ut.value.snapshot))}),ie.children.length&&this.forwardEvent(new yt(ie.value.snapshot))}activateRoutes(ie,F,_e){const Le=ie.value,ut=F?F.value:null;if(gr(Le),Le===ut)if(Le.component){const Lt=_e.getOrCreateContext(Le.outlet);this.activateChildRoutes(ie,F,Lt.children)}else this.activateChildRoutes(ie,F,_e);else if(Le.component){const Lt=_e.getOrCreateContext(Le.outlet);if(this.routeReuseStrategy.shouldAttach(Le.snapshot)){const Yt=this.routeReuseStrategy.retrieve(Le.snapshot);this.routeReuseStrategy.store(Le.snapshot,null),Lt.children.onOutletReAttached(Yt.contexts),Lt.attachRef=Yt.componentRef,Lt.route=Yt.route.value,Lt.outlet&&Lt.outlet.attach(Yt.componentRef,Yt.route.value),gr(Yt.route.value),this.activateChildRoutes(ie,null,Lt.children)}else{var Tt;const Yt=Wt(Le.snapshot),un=null!==(Tt=Yt?.get(e._Vd))&&void 0!==Tt?Tt:null;Lt.attachRef=null,Lt.route=Le,Lt.resolver=un,Lt.injector=Yt,Lt.outlet&&Lt.outlet.activateWith(Le,Lt.injector),this.activateChildRoutes(ie,null,Lt.children)}}else this.activateChildRoutes(ie,null,_e)}}class ei{constructor(ie){this.path=ie,this.route=this.path[this.path.length-1]}}class Xn{constructor(ie,F){this.component=ie,this.route=F}}function Nn(ee,ie,F){const _e=ee._root;return ci(_e,ie?ie._root:null,F,[_e.value])}function Jn(ee,ie,F){return(Wt(ie)??F).get(ee)}function ci(ee,ie,F,_e,Le={canDeactivateChecks:[],canActivateChecks:[]}){const ut=dn(ie);return ee.children.forEach(Tt=>{(function nn(ee,ie,F,_e,Le={canDeactivateChecks:[],canActivateChecks:[]}){const ut=ee.value,Tt=ie?ie.value:null,Lt=F?F.getContext(ee.value.outlet):null;if(Tt&&ut.routeConfig===Tt.routeConfig){const Yt=function Rn(ee,ie,F){if("function"==typeof F)return F(ee,ie);switch(F){case"pathParamsChange":return!Ne(ee.url,ie.url);case"pathParamsOrQueryParamsChange":return!Ne(ee.url,ie.url)||!Z(ee.queryParams,ie.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!or(ee,ie)||!Z(ee.queryParams,ie.queryParams);default:return!or(ee,ie)}}(Tt,ut,ut.routeConfig.runGuardsAndResolvers);Yt?Le.canActivateChecks.push(new ei(_e)):(ut.data=Tt.data,ut._resolvedData=Tt._resolvedData),ci(ee,ie,ut.component?Lt?Lt.children:null:F,_e,Le),Yt&&Lt&&Lt.outlet&&Lt.outlet.isActivated&&Le.canDeactivateChecks.push(new Xn(Lt.outlet.component,Tt))}else Tt&&Fi(ie,Lt,Le),Le.canActivateChecks.push(new ei(_e)),ci(ee,null,ut.component?Lt?Lt.children:null:F,_e,Le)})(Tt,ut[Tt.value.outlet],F,_e.concat([Tt.value]),Le),delete ut[Tt.value.outlet]}),Oe(ut,(Tt,Lt)=>Fi(Tt,F.getContext(Lt),Le)),Le}function Fi(ee,ie,F){const _e=dn(ee),Le=ee.value;Oe(_e,(ut,Tt)=>{Fi(ut,Le.component?ie?ie.children.getContext(Tt):null:ie,F)}),F.canDeactivateChecks.push(new Xn(Le.component&&ie&&ie.outlet&&ie.outlet.isActivated?ie.outlet.component:null,Le))}function Hi(ee){return"function"==typeof ee}function mn(ee){return ee instanceof _.K||"EmptyError"===ee?.name}const $n=Symbol("INITIAL_VALUE");function Qn(){return(0,Me.w)(ee=>(0,V.a)(ee.map(ie=>ie.pipe((0,Ze.q)(1),(0,se.O)($n)))).pipe((0,xe.U)(ie=>{for(const F of ie)if(!0!==F){if(F===$n)return $n;if(!1===F||F instanceof a)return F}return!0}),(0,O.h)(ie=>ie!==$n),(0,Ze.q)(1)))}function $r(ee){return(0,ne.z)((0,j.b)(ie=>{if(Ct(ie))throw Fr(0,ie)}),(0,xe.U)(ie=>!0===ie))}const Gr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ts(ee,ie,F,_e,Le){const ut=xo(ee,ie,F);return ut.matched?function na(ee,ie,F,_e){const Le=ie.canMatch;if(!Le||0===Le.length)return(0,R.of)(!0);const ut=Le.map(Tt=>{const Lt=ee.get(Tt),Yt=function be(ee){return ee&&Hi(ee.canMatch)}(Lt)?Lt.canMatch(ie,F):Lt(ie,F);return Q(Yt)});return(0,R.of)(ut).pipe(Qn(),$r())}(_e=yr(ie,_e),ie,F).pipe((0,xe.U)(Tt=>!0===Tt?ut:{...Gr})):(0,R.of)(ut)}function xo(ee,ie,F){var _e;if(""===ie.path)return"full"===ie.pathMatch&&(ee.hasChildren()||F.length>0)?{...Gr}:{matched:!0,consumedSegments:[],remainingSegments:F,parameters:{},positionalParamSegments:{}};const ut=(ie.matcher||Qe)(F,ee,ie);if(!ut)return{...Gr};const Tt={};Oe(ut.posParams,(Yt,un)=>{Tt[un]=Yt.path});const Lt=ut.consumed.length>0?{...Tt,...ut.consumed[ut.consumed.length-1].parameters}:Tt;return{matched:!0,consumedSegments:ut.consumed,remainingSegments:F.slice(ut.consumed.length),parameters:Lt,positionalParamSegments:null!==(_e=ut.posParams)&&void 0!==_e?_e:{}}}function uo(ee,ie,F,_e,Le="corrected"){if(F.length>0&&function Xs(ee,ie,F){return F.some(_e=>ho(ee,ie,_e)&&Bt(_e)!==dt)}(ee,F,_e)){const Tt=new c(ie,function ia(ee,ie,F,_e){const Le={};Le[dt]=_e,_e._sourceSegment=ee,_e._segmentIndexShift=ie.length;for(const ut of F)if(""===ut.path&&Bt(ut)!==dt){const Tt=new c([],{});Tt._sourceSegment=ee,Tt._segmentIndexShift=ie.length,Le[Bt(ut)]=Tt}return Le}(ee,ie,_e,new c(F,ee.children)));return Tt._sourceSegment=ee,Tt._segmentIndexShift=ie.length,{segmentGroup:Tt,slicedSegments:[]}}if(0===F.length&&function ns(ee,ie,F){return F.some(_e=>ho(ee,ie,_e))}(ee,F,_e)){const Tt=new c(ee.segments,function Ks(ee,ie,F,_e,Le,ut){const Tt={};for(const Lt of _e)if(ho(ee,F,Lt)&&!Le[Bt(Lt)]){const Yt=new c([],{});Yt._sourceSegment=ee,Yt._segmentIndexShift="legacy"===ut?ee.segments.length:ie.length,Tt[Bt(Lt)]=Yt}return{...Le,...Tt}}(ee,ie,F,_e,ee.children,Le));return Tt._sourceSegment=ee,Tt._segmentIndexShift=ie.length,{segmentGroup:Tt,slicedSegments:F}}const ut=new c(ee.segments,ee.children);return ut._sourceSegment=ee,ut._segmentIndexShift=ie.length,{segmentGroup:ut,slicedSegments:F}}function ho(ee,ie,F){return(!(ee.hasChildren()||ie.length>0)||"full"!==F.pathMatch)&&""===F.path}function ya(ee,ie,F,_e){return!!(Bt(ee)===_e||_e!==dt&&ho(ie,F,ee))&&("**"===ee.path||xo(ie,ee,F).matched)}function ra(ee,ie,F){return 0===ie.length&&!ee.children[F]}const Mi=!1;class xr{constructor(ie){this.segmentGroup=ie||null}}class pi{constructor(ie){this.urlTree=ie}}function po(ee){return(0,le._)(new xr(ee))}function is(ee){return(0,le._)(new pi(ee))}class os{constructor(ie,F,_e,Le,ut){this.injector=ie,this.configLoader=F,this.urlSerializer=_e,this.urlTree=Le,this.config=ut,this.allowRedirects=!0}apply(){const ie=uo(this.urlTree.root,[],[],this.config).segmentGroup,F=new c(ie.segments,ie.children);return this.expandSegmentGroup(this.injector,this.config,F,dt).pipe((0,xe.U)(ut=>this.createUrlTree(kt(ut),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,P.K)(ut=>{if(ut instanceof pi)return this.allowRedirects=!1,this.match(ut.urlTree);throw ut instanceof xr?this.noMatchError(ut):ut}))}match(ie){return this.expandSegmentGroup(this.injector,this.config,ie.root,dt).pipe((0,xe.U)(Le=>this.createUrlTree(kt(Le),ie.queryParams,ie.fragment))).pipe((0,P.K)(Le=>{throw Le instanceof xr?this.noMatchError(Le):Le}))}noMatchError(ie){return new e.vHH(4002,Mi)}createUrlTree(ie,F,_e){const Le=fn(ie);return new a(Le,F,_e)}expandSegmentGroup(ie,F,_e,Le){return 0===_e.segments.length&&_e.hasChildren()?this.expandChildren(ie,F,_e).pipe((0,xe.U)(ut=>new c([],ut))):this.expandSegment(ie,_e,F,_e.segments,Le,!0)}expandChildren(ie,F,_e){const Le=[];for(const ut of Object.keys(_e.children))"primary"===ut?Le.unshift(ut):Le.push(ut);return(0,v.D)(Le).pipe((0,De.b)(ut=>{const Tt=_e.children[ut],Lt=$t(F,ut);return this.expandSegmentGroup(ie,Lt,Tt,ut).pipe((0,xe.U)(Yt=>({segment:Yt,outlet:ut})))}),E((ut,Tt)=>(ut[Tt.outlet]=Tt.segment,ut),{}),ye())}expandSegment(ie,F,_e,Le,ut,Tt){return(0,v.D)(_e).pipe((0,De.b)(Lt=>this.expandSegmentAgainstRoute(ie,F,_e,Lt,Le,ut,Tt).pipe((0,P.K)(un=>{if(un instanceof xr)return(0,R.of)(null);throw un}))),(0,he.P)(Lt=>!!Lt),(0,P.K)((Lt,Yt)=>{if(mn(Lt))return ra(F,Le,ut)?(0,R.of)(new c([],{})):po(F);throw Lt}))}expandSegmentAgainstRoute(ie,F,_e,Le,ut,Tt,Lt){return ya(Le,F,ut,Tt)?void 0===Le.redirectTo?this.matchSegmentAgainstRoute(ie,F,Le,ut,Tt):Lt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ie,F,_e,Le,ut,Tt):po(F):po(F)}expandSegmentAgainstRouteUsingRedirect(ie,F,_e,Le,ut,Tt){return"**"===Le.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ie,_e,Le,Tt):this.expandRegularSegmentAgainstRouteUsingRedirect(ie,F,_e,Le,ut,Tt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ie,F,_e,Le){const ut=this.applyRedirectCommands([],_e.redirectTo,{});return _e.redirectTo.startsWith("/")?is(ut):this.lineralizeSegments(_e,ut).pipe((0,ze.z)(Tt=>{const Lt=new c(Tt,{});return this.expandSegment(ie,Lt,F,Tt,Le,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ie,F,_e,Le,ut,Tt){const{matched:Lt,consumedSegments:Yt,remainingSegments:un,positionalParamSegments:Cn}=xo(F,Le,ut);if(!Lt)return po(F);const gn=this.applyRedirectCommands(Yt,Le.redirectTo,Cn);return Le.redirectTo.startsWith("/")?is(gn):this.lineralizeSegments(Le,gn).pipe((0,ze.z)(Mn=>this.expandSegment(ie,F,_e,Mn.concat(un),Tt,!1)))}matchSegmentAgainstRoute(ie,F,_e,Le,ut){return"**"===_e.path?(ie=yr(_e,ie),_e.loadChildren?(_e._loadedRoutes?(0,R.of)({routes:_e._loadedRoutes,injector:_e._loadedInjector}):this.configLoader.loadChildren(ie,_e)).pipe((0,xe.U)(Lt=>(_e._loadedRoutes=Lt.routes,_e._loadedInjector=Lt.injector,new c(Le,{})))):(0,R.of)(new c(Le,{}))):ts(F,_e,Le,ie).pipe((0,Me.w)(({matched:Tt,consumedSegments:Lt,remainingSegments:Yt})=>{var un;return Tt?(ie=null!==(un=_e._injector)&&void 0!==un?un:ie,this.getChildConfig(ie,_e,Le).pipe((0,ze.z)(gn=>{var Mn;const ri=null!==(Mn=gn.injector)&&void 0!==Mn?Mn:ie,oi=gn.routes,{segmentGroup:bi,slicedSegments:Bi}=uo(F,Lt,Yt,oi),qi=new c(bi.segments,bi.children);if(0===Bi.length&&qi.hasChildren())return this.expandChildren(ri,oi,qi).pipe((0,xe.U)(zo=>new c(Lt,zo)));if(0===oi.length&&0===Bi.length)return(0,R.of)(new c(Lt,{}));const vi=Bt(_e)===ut;return this.expandSegment(ri,qi,oi,Bi,vi?dt:ut,!0).pipe((0,xe.U)(ur=>new c(Lt.concat(ur.segments),ur.children)))}))):po(F)}))}getChildConfig(ie,F,_e){return F.children?(0,R.of)({routes:F.children,injector:ie}):F.loadChildren?void 0!==F._loadedRoutes?(0,R.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):function Ta(ee,ie,F,_e){const Le=ie.canLoad;if(void 0===Le||0===Le.length)return(0,R.of)(!0);const ut=Le.map(Tt=>{const Lt=ee.get(Tt),Yt=function wr(ee){return ee&&Hi(ee.canLoad)}(Lt)?Lt.canLoad(ie,F):Lt(ie,F);return Q(Yt)});return(0,R.of)(ut).pipe(Qn(),$r())}(ie,F,_e).pipe((0,ze.z)(Le=>Le?this.configLoader.loadChildren(ie,F).pipe((0,j.b)(ut=>{F._loadedRoutes=ut.routes,F._loadedInjector=ut.injector})):function el(ee){return(0,le._)(Yr(Mi,3))}())):(0,R.of)({routes:[],injector:ie})}lineralizeSegments(ie,F){let _e=[],Le=F.root;for(;;){if(_e=_e.concat(Le.segments),0===Le.numberOfChildren)return(0,R.of)(_e);if(Le.numberOfChildren>1||!Le.children[dt])return(0,le._)(new e.vHH(4e3,Mi));Le=Le.children[dt]}}applyRedirectCommands(ie,F,_e){return this.applyRedirectCreateUrlTree(F,this.urlSerializer.parse(F),ie,_e)}applyRedirectCreateUrlTree(ie,F,_e,Le){const ut=this.createSegmentGroup(ie,F.root,_e,Le);return new a(ut,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(ie,F){const _e={};return Oe(ie,(Le,ut)=>{if("string"==typeof Le&&Le.startsWith(":")){const Lt=Le.substring(1);_e[ut]=F[Lt]}else _e[ut]=Le}),_e}createSegmentGroup(ie,F,_e,Le){const ut=this.createSegments(ie,F.segments,_e,Le);let Tt={};return Oe(F.children,(Lt,Yt)=>{Tt[Yt]=this.createSegmentGroup(ie,Lt,_e,Le)}),new c(ut,Tt)}createSegments(ie,F,_e,Le){return F.map(ut=>ut.path.startsWith(":")?this.findPosParam(ie,ut,Le):this.findOrReturn(ut,_e))}findPosParam(ie,F,_e){const Le=_e[F.path.substring(1)];if(!Le)throw new e.vHH(4001,Mi);return Le}findOrReturn(ie,F){let _e=0;for(const Le of F){if(Le.path===ie.path)return F.splice(_e),Le;_e++}return ie}}class So{}class nl{constructor(ie,F,_e,Le,ut,Tt,Lt,Yt){this.injector=ie,this.rootComponentType=F,this.config=_e,this.urlTree=Le,this.url=ut,this.paramsInheritanceStrategy=Tt,this.relativeLinkResolution=Lt,this.urlSerializer=Yt}recognize(){const ie=uo(this.urlTree.root,[],[],this.config.filter(F=>void 0===F.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ie,dt).pipe((0,xe.U)(F=>{if(null===F)return null;const _e=new mr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),Le=new Gt(_e,F),ut=new Vr(this.url,Le);return this.inheritParamsAndData(ut._root),ut}))}inheritParamsAndData(ie){const F=ie.value,_e=Ji(F,this.paramsInheritanceStrategy);F.params=Object.freeze(_e.params),F.data=Object.freeze(_e.data),ie.children.forEach(Le=>this.inheritParamsAndData(Le))}processSegmentGroup(ie,F,_e,Le){return 0===_e.segments.length&&_e.hasChildren()?this.processChildren(ie,F,_e):this.processSegment(ie,F,_e,_e.segments,Le)}processChildren(ie,F,_e){return(0,v.D)(Object.keys(_e.children)).pipe((0,De.b)(Le=>{const ut=_e.children[Le],Tt=$t(F,Le);return this.processSegmentGroup(ie,Tt,ut,Le)}),E((Le,ut)=>Le&&ut?(Le.push(...ut),Le):null),(0,G.o)(Le=>null!==Le),(0,$.d)(null),ye(),(0,xe.U)(Le=>{if(null===Le)return null;const ut=Ma(Le);return function Zr(ee){ee.sort((ie,F)=>ie.value.outlet===dt?-1:F.value.outlet===dt?1:ie.value.outlet.localeCompare(F.value.outlet))}(ut),ut}))}processSegment(ie,F,_e,Le,ut){return(0,v.D)(F).pipe((0,De.b)(Tt=>{var Lt;return this.processSegmentAgainstRoute(null!==(Lt=Tt._injector)&&void 0!==Lt?Lt:ie,Tt,_e,Le,ut)}),(0,he.P)(Tt=>!!Tt),(0,P.K)(Tt=>{if(mn(Tt))return ra(_e,Le,ut)?(0,R.of)([]):(0,R.of)(null);throw Tt}))}processSegmentAgainstRoute(ie,F,_e,Le,ut){if(F.redirectTo||!ya(F,_e,Le,ut))return(0,R.of)(null);let Tt;if("**"===F.path){var Lt,Yt;const un=Le.length>0?ge(Le).parameters:{},Cn=sa(_e)+Le.length,gn=new mr(Le,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xa(F),Bt(F),null!==(Lt=null!==(Yt=F.component)&&void 0!==Yt?Yt:F._loadedComponent)&&void 0!==Lt?Lt:null,F,Ui(_e),Cn,rl(F),Cn);Tt=(0,R.of)({snapshot:gn,consumedSegments:[],remainingSegments:[]})}else Tt=ts(_e,F,Le,ie).pipe((0,xe.U)(({matched:un,consumedSegments:Cn,remainingSegments:gn,parameters:Mn})=>{var ri,oi;if(!un)return null;const bi=sa(_e)+Cn.length;return{snapshot:new mr(Cn,Mn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xa(F),Bt(F),null!==(ri=null!==(oi=F.component)&&void 0!==oi?oi:F._loadedComponent)&&void 0!==ri?ri:null,F,Ui(_e),bi,rl(F),bi),consumedSegments:Cn,remainingSegments:gn}}));return Tt.pipe((0,Me.w)(un=>{var Cn,gn;if(null===un)return(0,R.of)(null);const{snapshot:Mn,consumedSegments:ri,remainingSegments:oi}=un;ie=null!==(Cn=F._injector)&&void 0!==Cn?Cn:ie;const bi=null!==(gn=F._loadedInjector)&&void 0!==gn?gn:ie,Bi=function Do(ee){return ee.children?ee.children:ee.loadChildren?ee._loadedRoutes:[]}(F),{segmentGroup:qi,slicedSegments:vi}=uo(_e,ri,oi,Bi.filter(ur=>void 0===ur.redirectTo),this.relativeLinkResolution);if(0===vi.length&&qi.hasChildren())return this.processChildren(bi,Bi,qi).pipe((0,xe.U)(ur=>null===ur?null:[new Gt(Mn,ur)]));if(0===Bi.length&&0===vi.length)return(0,R.of)([new Gt(Mn,[])]);const Zo=Bt(F)===ut;return this.processSegment(bi,Bi,qi,vi,Zo?dt:ut).pipe((0,xe.U)(ur=>null===ur?null:[new Gt(Mn,ur)]))}))}}function il(ee){const ie=ee.value.routeConfig;return ie&&""===ie.path&&void 0===ie.redirectTo}function Ma(ee){const ie=[],F=new Set;for(const _e of ee){if(!il(_e)){ie.push(_e);continue}const Le=ie.find(ut=>_e.value.routeConfig===ut.value.routeConfig);void 0!==Le?(Le.children.push(..._e.children),F.add(Le)):ie.push(_e)}for(const _e of F){const Le=Ma(_e.children);ie.push(new Gt(_e.value,Le))}return ie.filter(_e=>!F.has(_e))}function Ui(ee){let ie=ee;for(;ie._sourceSegment;)ie=ie._sourceSegment;return ie}function sa(ee){var ie;let F=ee,_e=null!==(ie=F._segmentIndexShift)&&void 0!==ie?ie:0;for(;F._sourceSegment;){var Le;F=F._sourceSegment,_e+=null!==(Le=F._segmentIndexShift)&&void 0!==Le?Le:0}return _e-1}function xa(ee){return ee.data||{}}function rl(ee){return ee.resolve||{}}const mo=Symbol("RouteTitle");function Sa(ee){return"string"==typeof ee.title||null===ee.title}function Hr(ee){return(0,Me.w)(ie=>{const F=ee(ie);return F?(0,v.D)(F).pipe((0,xe.U)(()=>ie)):(0,R.of)(ie)})}let ji=(()=>{class ee{buildTitle(F){let _e,Le=F.root;for(;void 0!==Le;){var ut;_e=null!==(ut=this.getResolvedTitleForRoute(Le))&&void 0!==ut?ut:_e,Le=Le.children.find(Tt=>Tt.outlet===dt)}return _e}getResolvedTitleForRoute(F){return F.data[mo]}}return ee.\u0275fac=function(F){return new(F||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return(0,e.f3M)(Sr)},providedIn:"root"}),ee})(),Sr=(()=>{class ee extends ji{constructor(F){super(),this.title=F}updateTitle(F){const _e=this.buildTitle(F);void 0!==_e&&this.title.setTitle(_e)}}return ee.\u0275fac=function(F){return new(F||ee)(e.LFG(He.Dx))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();class ol{}class Da extends class ls{shouldDetach(ie){return!1}store(ie,F){}shouldAttach(ie){return!1}retrieve(ie){return null}shouldReuseRoute(ie,F){return ie.routeConfig===F.routeConfig}}{}const tr=new e.OlP("",{providedIn:"root",factory:()=>({})}),Kr=new e.OlP("ROUTES");let Oo=(()=>{class ee{constructor(F,_e){this.injector=F,this.compiler=_e,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,R.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const _e=Q(F.loadComponent()).pipe((0,j.b)(ut=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=ut}),(0,q.x)(()=>{this.componentLoaders.delete(F)})),Le=new T(_e,()=>new fe.x).pipe(C());return this.componentLoaders.set(F,Le),Le}loadChildren(F,_e){if(this.childrenLoaders.get(_e))return this.childrenLoaders.get(_e);if(_e._loadedRoutes)return(0,R.of)({routes:_e._loadedRoutes,injector:_e._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(_e);const ut=this.loadModuleFactoryOrRoutes(_e.loadChildren).pipe((0,xe.U)(Lt=>{this.onLoadEndListener&&this.onLoadEndListener(_e);let Yt,un,Cn=!1;Array.isArray(Lt)?un=Lt:(Yt=Lt.create(F).injector,un=oe(Yt.get(Kr,[],e.XFs.Self|e.XFs.Optional)));return{routes:un.map(ft),injector:Yt}}),(0,q.x)(()=>{this.childrenLoaders.delete(_e)})),Tt=new T(ut,()=>new fe.x).pipe(C());return this.childrenLoaders.set(_e,Tt),Tt}loadModuleFactoryOrRoutes(F){return Q(F()).pipe((0,ze.z)(_e=>_e instanceof e.YKP||Array.isArray(_e)?(0,R.of)(_e):(0,v.D)(this.compiler.compileModuleAsync(_e))))}}return ee.\u0275fac=function(F){return new(F||ee)(e.LFG(e.zs3),e.LFG(e.Sil))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();class Ho{}class da{shouldProcessUrl(ie){return!0}extract(ie){return ie}merge(ie,F){return ie}}function sl(ee){throw ee}function cs(ee,ie,F){return ie.parse("/")}const ds={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Lo(){var ee,ie;const F=(0,e.f3M)(Ut),_e=(0,e.f3M)(Ki),Le=(0,e.f3M)(ue.Ye),ut=(0,e.f3M)(e.zs3),Tt=(0,e.f3M)(e.Sil),Lt=null!==(ee=(0,e.f3M)(Kr,{optional:!0}))&&void 0!==ee?ee:[],Yt=null!==(ie=(0,e.f3M)(tr,{optional:!0}))&&void 0!==ie?ie:{},un=(0,e.f3M)(Sr),Cn=(0,e.f3M)(ji,{optional:!0}),gn=(0,e.f3M)(Ho,{optional:!0}),Mn=(0,e.f3M)(ol,{optional:!0}),ri=new Ei(null,F,_e,Le,ut,Tt,oe(Lt));return gn&&(ri.urlHandlingStrategy=gn),Mn&&(ri.routeReuseStrategy=Mn),ri.titleStrategy=Cn??un,function Pa(ee,ie){ee.errorHandler&&(ie.errorHandler=ee.errorHandler),ee.malformedUriErrorHandler&&(ie.malformedUriErrorHandler=ee.malformedUriErrorHandler),ee.onSameUrlNavigation&&(ie.onSameUrlNavigation=ee.onSameUrlNavigation),ee.paramsInheritanceStrategy&&(ie.paramsInheritanceStrategy=ee.paramsInheritanceStrategy),ee.relativeLinkResolution&&(ie.relativeLinkResolution=ee.relativeLinkResolution),ee.urlUpdateStrategy&&(ie.urlUpdateStrategy=ee.urlUpdateStrategy),ee.canceledNavigationResolution&&(ie.canceledNavigationResolution=ee.canceledNavigationResolution)}(Yt,ri),ri}let Ei=(()=>{class ee{constructor(F,_e,Le,ut,Tt,Lt,Yt){this.rootComponentType=F,this.urlSerializer=_e,this.rootContexts=Le,this.location=ut,this.config=Yt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new fe.x,this.errorHandler=sl,this.malformedUriErrorHandler=cs,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,R.of)(void 0),this.urlHandlingStrategy=new da,this.routeReuseStrategy=new Da,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=Tt.get(Oo),this.configLoader.onLoadEndListener=Mn=>this.triggerEvent(new fr(Mn)),this.configLoader.onLoadStartListener=Mn=>this.triggerEvent(new ir(Mn)),this.ngModule=Tt.get(e.h0i),this.console=Tt.get(e.c2e);const gn=Tt.get(e.R0b);this.isNgZoneEnabled=gn instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Yt),this.currentUrlTree=function N(){return new a(new c([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Wn(this.currentUrlTree,this.rootComponentType),this.transitions=new U.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var F;return null===(F=this.location.getState())||void 0===F?void 0:F.\u0275routerPageId}setupNavigations(F){const _e=this.events;return F.pipe((0,O.h)(Le=>0!==Le.id),(0,xe.U)(Le=>({...Le,extractedUrl:this.urlHandlingStrategy.extract(Le.rawUrl)})),(0,Me.w)(Le=>{let ut=!1,Tt=!1;return(0,R.of)(Le).pipe((0,j.b)(Lt=>{this.currentNavigation={id:Lt.id,initialUrl:Lt.rawUrl,extractedUrl:Lt.extractedUrl,trigger:Lt.source,extras:Lt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Me.w)(Lt=>{const Yt=this.browserUrlTree.toString(),un=!this.navigated||Lt.extractedUrl.toString()!==Yt||Yt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||un)&&this.urlHandlingStrategy.shouldProcessUrl(Lt.rawUrl))return Ia(Lt.source)&&(this.browserUrlTree=Lt.extractedUrl),(0,R.of)(Lt).pipe((0,Me.w)(gn=>{const Mn=this.transitions.getValue();return _e.next(new Yi(gn.id,this.serializeUrl(gn.extractedUrl),gn.source,gn.restoredState)),Mn!==this.transitions.getValue()?te.E:Promise.resolve(gn)}),function oa(ee,ie,F,_e){return(0,Me.w)(Le=>function tl(ee,ie,F,_e,Le){return new os(ee,ie,F,_e,Le).apply()}(ee,ie,F,Le.extractedUrl,_e).pipe((0,xe.U)(ut=>({...Le,urlAfterRedirects:ut}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,j.b)(gn=>{this.currentNavigation={...this.currentNavigation,finalUrl:gn.urlAfterRedirects},Le.urlAfterRedirects=gn.urlAfterRedirects}),function la(ee,ie,F,_e,Le,ut){return(0,ze.z)(Tt=>function aa(ee,ie,F,_e,Le,ut,Tt="emptyOnly",Lt="legacy"){return new nl(ee,ie,F,_e,Le,Tt,Lt,ut).recognize().pipe((0,Me.w)(Yt=>null===Yt?function wa(ee){return new d.y(ie=>ie.error(ee))}(new So):(0,R.of)(Yt)))}(ee,ie,F,Tt.urlAfterRedirects,_e.serialize(Tt.urlAfterRedirects),_e,Le,ut).pipe((0,xe.U)(Lt=>({...Tt,targetSnapshot:Lt}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,j.b)(gn=>{if(Le.targetSnapshot=gn.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!gn.extras.skipLocationChange){const ri=this.urlHandlingStrategy.merge(gn.urlAfterRedirects,gn.rawUrl);this.setBrowserUrl(ri,gn)}this.browserUrlTree=gn.urlAfterRedirects}const Mn=new Vi(gn.id,this.serializeUrl(gn.extractedUrl),this.serializeUrl(gn.urlAfterRedirects),gn.targetSnapshot);_e.next(Mn)}));if(un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Mn,extractedUrl:ri,source:oi,restoredState:bi,extras:Bi}=Lt,qi=new Yi(Mn,this.serializeUrl(ri),oi,bi);_e.next(qi);const vi=Wn(ri,this.rootComponentType).snapshot;return Le={...Lt,targetSnapshot:vi,urlAfterRedirects:ri,extras:{...Bi,skipLocationChange:!1,replaceUrl:!1}},(0,R.of)(Le)}return this.rawUrlTree=Lt.rawUrl,Lt.resolve(null),te.E}),(0,j.b)(Lt=>{const Yt=new Oi(Lt.id,this.serializeUrl(Lt.extractedUrl),this.serializeUrl(Lt.urlAfterRedirects),Lt.targetSnapshot);this.triggerEvent(Yt)}),(0,xe.U)(Lt=>Le={...Lt,guards:Nn(Lt.targetSnapshot,Lt.currentSnapshot,this.rootContexts)}),function Li(ee,ie){return(0,ze.z)(F=>{const{targetSnapshot:_e,currentSnapshot:Le,guards:{canActivateChecks:ut,canDeactivateChecks:Tt}}=F;return 0===Tt.length&&0===ut.length?(0,R.of)({...F,guardsResult:!0}):function Rr(ee,ie,F,_e){return(0,v.D)(ee).pipe((0,ze.z)(Le=>function Ea(ee,ie,F,_e,Le){const ut=ie&&ie.routeConfig?ie.routeConfig.canDeactivate:null;if(!ut||0===ut.length)return(0,R.of)(!0);const Tt=ut.map(Lt=>{const Yt=Jn(Lt,ie,Le);return Q(function Se(ee){return ee&&Hi(ee.canDeactivate)}(Yt)?Yt.canDeactivate(ee,ie,F,_e):Yt(ee,ie,F,_e)).pipe((0,he.P)())});return(0,R.of)(Tt).pipe(Qn())}(Le.component,Le.route,F,ie,_e)),(0,he.P)(Le=>!0!==Le,!0))}(Tt,_e,Le,ee).pipe((0,ze.z)(Lt=>Lt&&function hi(ee){return"boolean"==typeof ee}(Lt)?function co(ee,ie,F,_e){return(0,v.D)(ie).pipe((0,De.b)(Le=>(0,Y.z)(function qs(ee,ie){return null!==ee&&ie&&ie(new rr(ee)),(0,R.of)(!0)}(Le.route.parent,_e),function Or(ee,ie){return null!==ee&&ie&&ie(new rn(ee)),(0,R.of)(!0)}(Le.route,_e),function Qs(ee,ie,F){const _e=ie[ie.length-1],ut=ie.slice(0,ie.length-1).reverse().map(Tt=>function Ci(ee){const ie=ee.routeConfig?ee.routeConfig.canActivateChild:null;return ie&&0!==ie.length?{node:ee,guards:ie}:null}(Tt)).filter(Tt=>null!==Tt).map(Tt=>(0,X.P)(()=>{const Lt=Tt.guards.map(Yt=>{const un=Jn(Yt,Tt.node,F);return Q(function Ue(ee){return ee&&Hi(ee.canActivateChild)}(un)?un.canActivateChild(_e,ee):un(_e,ee)).pipe((0,he.P)())});return(0,R.of)(Lt).pipe(Qn())}));return(0,R.of)(ut).pipe(Qn())}(ee,Le.path,F),function es(ee,ie,F){const _e=ie.routeConfig?ie.routeConfig.canActivate:null;if(!_e||0===_e.length)return(0,R.of)(!0);const Le=_e.map(ut=>(0,X.P)(()=>{const Tt=Jn(ut,ie,F);return Q(function Mr(ee){return ee&&Hi(ee.canActivate)}(Tt)?Tt.canActivate(ie,ee):Tt(ie,ee)).pipe((0,he.P)())}));return(0,R.of)(Le).pipe(Qn())}(ee,Le.route,F))),(0,he.P)(Le=>!0!==Le,!0))}(_e,ut,ee,ie):(0,R.of)(Lt)),(0,xe.U)(Lt=>({...F,guardsResult:Lt})))})}(this.ngModule.injector,Lt=>this.triggerEvent(Lt)),(0,j.b)(Lt=>{if(Le.guardsResult=Lt.guardsResult,Ct(Lt.guardsResult))throw Fr(0,Lt.guardsResult);const Yt=new _i(Lt.id,this.serializeUrl(Lt.extractedUrl),this.serializeUrl(Lt.urlAfterRedirects),Lt.targetSnapshot,!!Lt.guardsResult);this.triggerEvent(Yt)}),(0,O.h)(Lt=>!!Lt.guardsResult||(this.restoreHistory(Lt),this.cancelNavigationTransition(Lt,"",3),!1)),Hr(Lt=>{if(Lt.guards.canActivateChecks.length)return(0,R.of)(Lt).pipe((0,j.b)(Yt=>{const un=new gi(Yt.id,this.serializeUrl(Yt.extractedUrl),this.serializeUrl(Yt.urlAfterRedirects),Yt.targetSnapshot);this.triggerEvent(un)}),(0,Me.w)(Yt=>{let un=!1;return(0,R.of)(Yt).pipe(function as(ee,ie){return(0,ze.z)(F=>{const{targetSnapshot:_e,guards:{canActivateChecks:Le}}=F;if(!Le.length)return(0,R.of)(F);let ut=0;return(0,v.D)(Le).pipe((0,De.b)(Tt=>function ca(ee,ie,F,_e){const Le=ee.routeConfig,ut=ee._resolve;return void 0!==Le?.title&&!Sa(Le)&&(ut[mo]=Le.title),function Io(ee,ie,F,_e){const Le=function ss(ee){return[...Object.keys(ee),...Object.getOwnPropertySymbols(ee)]}(ee);if(0===Le.length)return(0,R.of)({});const ut={};return(0,v.D)(Le).pipe((0,ze.z)(Tt=>function Qr(ee,ie,F,_e){const Le=Jn(ee,ie,_e);return Q(Le.resolve?Le.resolve(ie,F):Le(ie,F))}(ee[Tt],ie,F,_e).pipe((0,he.P)(),(0,j.b)(Lt=>{ut[Tt]=Lt}))),H(1),(0,ce.h)(ut),(0,P.K)(Tt=>mn(Tt)?te.E:(0,le._)(Tt)))}(ut,ee,ie,_e).pipe((0,xe.U)(Tt=>(ee._resolvedData=Tt,ee.data=Ji(ee,F).resolve,Le&&Sa(Le)&&(ee.data[mo]=Le.title),null)))}(Tt.route,_e,ee,ie)),(0,j.b)(()=>ut++),H(1),(0,ze.z)(Tt=>ut===Le.length?(0,R.of)(F):te.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,j.b)({next:()=>un=!0,complete:()=>{un||(this.restoreHistory(Yt),this.cancelNavigationTransition(Yt,"",2))}}))}),(0,j.b)(Yt=>{const un=new Ir(Yt.id,this.serializeUrl(Yt.extractedUrl),this.serializeUrl(Yt.urlAfterRedirects),Yt.targetSnapshot);this.triggerEvent(un)}))}),Hr(Lt=>{const Yt=un=>{var Cn;const gn=[];null!==(Cn=un.routeConfig)&&void 0!==Cn&&Cn.loadComponent&&!un.routeConfig._loadedComponent&&gn.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,j.b)(Mn=>{un.component=Mn}),(0,xe.U)(()=>{})));for(const Mn of un.children)gn.push(...Yt(Mn));return gn};return(0,V.a)(Yt(Lt.targetSnapshot.root)).pipe((0,$.d)(),(0,Ze.q)(1))}),Hr(()=>this.afterPreactivation()),(0,xe.U)(Lt=>{const Yt=function ar(ee,ie,F){const _e=sr(ee,ie._root,F?F._root:void 0);return new yn(_e,ie)}(this.routeReuseStrategy,Lt.targetSnapshot,Lt.currentRouterState);return Le={...Lt,targetRouterState:Yt}}),(0,j.b)(Lt=>{this.currentUrlTree=Lt.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Lt.urlAfterRedirects,Lt.rawUrl),this.routerState=Lt.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Lt.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Lt),this.browserUrlTree=Lt.urlAfterRedirects)}),((ee,ie,F)=>(0,xe.U)(_e=>(new ni(ie,_e.targetRouterState,_e.currentRouterState,F).activate(ee),_e)))(this.rootContexts,this.routeReuseStrategy,Lt=>this.triggerEvent(Lt)),(0,j.b)({next(){ut=!0},complete(){ut=!0}}),(0,q.x)(()=>{var Lt;ut||Tt||this.cancelNavigationTransition(Le,"",1),(null===(Lt=this.currentNavigation)||void 0===Lt?void 0:Lt.id)===Le.id&&(this.currentNavigation=null)}),(0,P.K)(Lt=>{if(Tt=!0,$i(Lt)){yi(Lt)||(this.navigated=!0,this.restoreHistory(Le,!0));const un=new zn(Le.id,this.serializeUrl(Le.extractedUrl),Lt.message,Lt.cancellationCode);if(_e.next(un),yi(Lt)){const Cn=this.urlHandlingStrategy.merge(Lt.url,this.rawUrlTree),gn={skipLocationChange:Le.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ia(Le.source)};this.scheduleNavigation(Cn,"imperative",null,gn,{resolve:Le.resolve,reject:Le.reject,promise:Le.promise})}else Le.resolve(!1)}else{var Yt;this.restoreHistory(Le,!0);const un=new ki(Le.id,this.serializeUrl(Le.extractedUrl),Lt,null!==(Yt=Le.targetSnapshot)&&void 0!==Yt?Yt:void 0);_e.next(un);try{Le.resolve(this.errorHandler(Lt))}catch(Cn){Le.reject(Cn)}}return te.E}))}))}resetRootComponentType(F){this.rootComponentType=F,this.routerState.root.component=this.rootComponentType}setTransition(F){this.transitions.next({...this.transitions.value,...F})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(F=>{const _e="popstate"===F.type?"popstate":"hashchange";"popstate"===_e&&setTimeout(()=>{var Le;const ut={replaceUrl:!0},Tt=null!==(Le=F.state)&&void 0!==Le&&Le.navigationId?F.state:null;if(Tt){const Yt={...Tt};delete Yt.navigationId,delete Yt.\u0275routerPageId,0!==Object.keys(Yt).length&&(ut.state=Yt)}const Lt=this.parseUrl(F.url);this.scheduleNavigation(Lt,_e,Tt,ut)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(F){this.events.next(F)}resetConfig(F){this.config=F.map(ft),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(F,_e={}){const{relativeTo:Le,queryParams:ut,fragment:Tt,queryParamsHandling:Lt,preserveFragment:Yt}=_e,un=Le||this.routerState.root,Cn=Yt?this.currentUrlTree.fragment:Tt;let gn=null;switch(Lt){case"merge":gn={...this.currentUrlTree.queryParams,...ut};break;case"preserve":gn=this.currentUrlTree.queryParams;break;default:gn=ut||null}return null!==gn&&(gn=this.removeEmptyProps(gn)),Jt(un,this.currentUrlTree,F,gn,Cn??null)}navigateByUrl(F,_e={skipLocationChange:!1}){const Le=Ct(F)?F:this.parseUrl(F),ut=this.urlHandlingStrategy.merge(Le,this.rawUrlTree);return this.scheduleNavigation(ut,"imperative",null,_e)}navigate(F,_e={skipLocationChange:!1}){return function Bo(ee){for(let ie=0;ie{const ut=F[Le];return null!=ut&&(_e[Le]=ut),_e},{})}processNavigations(){this.navigations.subscribe(F=>{var _e;this.navigated=!0,this.lastSuccessfulId=F.id,this.currentPageId=F.targetPageId,this.events.next(new jn(F.id,this.serializeUrl(F.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(_e=this.titleStrategy)||void 0===_e||_e.updateTitle(this.routerState.snapshot),F.resolve(!0)},F=>{this.console.warn(`Unhandled Navigation Error: ${F}`)})}scheduleNavigation(F,_e,Le,ut,Tt){if(this.disposed)return Promise.resolve(!1);let Lt,Yt,un;Tt?(Lt=Tt.resolve,Yt=Tt.reject,un=Tt.promise):un=new Promise((oi,bi)=>{Lt=oi,Yt=bi});const Cn=++this.navigationId;let gn;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(Le=this.location.getState()),Le&&Le.\u0275routerPageId)gn=Le.\u0275routerPageId;else if(ut.replaceUrl||ut.skipLocationChange){var Mn;gn=null!==(Mn=this.browserPageId)&&void 0!==Mn?Mn:0}else{var ri;gn=(null!==(ri=this.browserPageId)&&void 0!==ri?ri:0)+1}else gn=0;return this.setTransition({id:Cn,targetPageId:gn,source:_e,restoredState:Le,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:F,extras:ut,resolve:Lt,reject:Yt,promise:un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),un.catch(oi=>Promise.reject(oi))}setBrowserUrl(F,_e){const Le=this.urlSerializer.serialize(F),ut={..._e.extras.state,...this.generateNgRouterState(_e.id,_e.targetPageId)};this.location.isCurrentPathEqualTo(Le)||_e.extras.replaceUrl?this.location.replaceState(Le,"",ut):this.location.go(Le,"",ut)}restoreHistory(F,_e=!1){if("computed"===this.canceledNavigationResolution){var Le,ut;const Tt=this.currentPageId-F.targetPageId;"popstate"!==F.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(Le=this.currentNavigation)||void 0===Le?void 0:Le.finalUrl)||0===Tt?this.currentUrlTree===(null===(ut=this.currentNavigation)||void 0===ut?void 0:ut.finalUrl)&&0===Tt&&(this.resetState(F),this.browserUrlTree=F.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Tt)}else"replace"===this.canceledNavigationResolution&&(_e&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=F.currentRouterState,this.currentUrlTree=F.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(F,_e,Le){const ut=new zn(F.id,this.serializeUrl(F.extractedUrl),_e,Le);this.triggerEvent(ut),F.resolve(!1)}generateNgRouterState(F,_e){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:_e}:{navigationId:F}}}return ee.\u0275fac=function(F){e.$Z()},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return Lo()},providedIn:"root"}),ee})();function Ia(ee){return"imperative"!==ee}let No=(()=>{class ee{constructor(F,_e,Le,ut,Tt){this.router=F,this.route=_e,this.tabIndexAttribute=Le,this.renderer=ut,this.el=Tt,this.commands=null,this.onChanges=new fe.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(F){if(null!=this.tabIndexAttribute)return;const _e=this.renderer,Le=this.el.nativeElement;null!==F?_e.setAttribute(Le,"tabindex",F):_e.removeAttribute(Le,"tabindex")}ngOnChanges(F){this.onChanges.next(this)}set routerLink(F){null!=F?(this.commands=Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const F={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,F),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ee.\u0275fac=function(F){return new(F||ee)(e.Y36(Ei),e.Y36(ui),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(F,_e){1&F&&e.NdJ("click",function(){return _e.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ee})(),ko=(()=>{class ee{constructor(F,_e,Le){this.router=F,this.route=_e,this.locationStrategy=Le,this.commands=null,this.href=null,this.onChanges=new fe.x,this.subscription=F.events.subscribe(ut=>{ut instanceof jn&&this.updateTargetUrlAndHref()})}set routerLink(F){this.commands=null!=F?Array.isArray(F)?F:[F]:null}ngOnChanges(F){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(F,_e,Le,ut,Tt){if(0!==F||_e||Le||ut||Tt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Lt={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Lt),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return ee.\u0275fac=function(F){return new(F||ee)(e.Y36(Ei),e.Y36(ui),e.Y36(ue.S$))},ee.\u0275dir=e.lG2({type:ee,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(F,_e){1&F&&e.NdJ("click",function(ut){return _e.onClick(ut.button,ut.ctrlKey,ut.shiftKey,ut.altKey,ut.metaKey)}),2&F&&e.uIk("target",_e.target)("href",_e.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),ee})();class Ra{}let ps=(()=>{class ee{preload(F,_e){return(0,R.of)(null)}}return ee.\u0275fac=function(F){return new(F||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})(),Vo=(()=>{class ee{constructor(F,_e,Le,ut,Tt){this.router=F,this.injector=Le,this.preloadingStrategy=ut,this.loader=Tt}setUpPreloading(){this.subscription=this.router.events.pipe((0,O.h)(F=>F instanceof jn),(0,De.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,_e){const Le=[];for(const Yt of _e){var ut,Tt;Yt.providers&&!Yt._injector&&(Yt._injector=(0,e.MMx)(Yt.providers,F,`Route: ${Yt.path}`));const un=null!==(ut=Yt._injector)&&void 0!==ut?ut:F,Cn=null!==(Tt=Yt._loadedInjector)&&void 0!==Tt?Tt:un;if(Yt.loadChildren&&!Yt._loadedRoutes&&void 0===Yt.canLoad||Yt.loadComponent&&!Yt._loadedComponent)Le.push(this.preloadConfig(un,Yt));else if(Yt.children||Yt._loadedRoutes){var Lt;Le.push(this.processRoutes(Cn,null!==(Lt=Yt.children)&&void 0!==Lt?Lt:Yt._loadedRoutes))}}return(0,v.D)(Le).pipe((0,Te.J)())}preloadConfig(F,_e){return this.preloadingStrategy.preload(_e,()=>{let Le;Le=_e.loadChildren&&void 0===_e.canLoad?this.loader.loadChildren(F,_e):(0,R.of)(null);const ut=Le.pipe((0,ze.z)(Tt=>{var Lt;return null===Tt?(0,R.of)(void 0):(_e._loadedRoutes=Tt.routes,_e._loadedInjector=Tt.injector,this.processRoutes(null!==(Lt=Tt.injector)&&void 0!==Lt?Lt:F,Tt.routes))}));if(_e.loadComponent&&!_e._loadedComponent){const Tt=this.loader.loadComponent(_e);return(0,v.D)([ut,Tt]).pipe((0,Te.J)())}return ut})}}return ee.\u0275fac=function(F){return new(F||ee)(e.LFG(Ei),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Ra),e.LFG(Oo))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const Fo=new e.OlP("");let _o=(()=>{class ee{constructor(F,_e,Le={}){this.router=F,this.viewportScroller=_e,this.options=Le,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Le.scrollPositionRestoration=Le.scrollPositionRestoration||"disabled",Le.anchorScrolling=Le.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(F=>{F instanceof Yi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof jn&&(this.lastId=F.id,this.scheduleScrollEvent(F,this.router.parseUrl(F.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(F=>{F instanceof Nt&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,_e){this.router.triggerEvent(new Nt(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,_e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ee.\u0275fac=function(F){e.$Z()},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();const fs=new e.OlP("ROUTER_FORROOT_GUARD"),ha=new e.OlP(""),Ao=[ue.Ye,{provide:Ut,useClass:ln},{provide:Ei,useFactory:Lo},Ki,{provide:ui,useFactory:function Ul(ee){return ee.routerState.root},deps:[Ei]},Oo];function cl(){return new e.PXZ("Router",Ei)}let ti=(()=>{class ee{constructor(F){}static forRoot(F,_e){return{ngModule:ee,providers:[Ao,[],dl(F),{provide:fs,useFactory:zl,deps:[[Ei,new e.FiY,new e.tp0]]},{provide:tr,useValue:_e||{}},null!=_e&&_e.useHash?{provide:ue.S$,useClass:ue.Do}:{provide:ue.S$,useClass:ue.b0},{provide:Fo,useFactory:()=>{const ee=(0,e.f3M)(Ei),ie=(0,e.f3M)(ue.EM),F=(0,e.f3M)(tr);return F.scrollOffset&&ie.setOffset(F.scrollOffset),new _o(ee,ie,F)}},null!=_e&&_e.preloadingStrategy?pl(_e.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:cl},null!=_e&&_e.initialNavigation?Uo(_e):[],[{provide:ul,useFactory:Wl},{provide:e.tb,multi:!0,useExisting:ul}]]}}static forChild(F){return{ngModule:ee,providers:[dl(F)]}}}return ee.\u0275fac=function(F){return new(F||ee)(e.LFG(fs,8))},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({}),ee})();function zl(ee){return"guarded"}function dl(ee){return[{provide:Kr,multi:!0,useValue:ee}]}function Wl(){const ee=(0,e.f3M)(e.zs3);return ie=>{var F,_e;const Le=ee.get(e.z2F);if(ie!==Le.components[0])return;const ut=ee.get(Ei),Tt=ee.get(hl);1===ee.get(jo)&&ut.initialNavigation(),null===(F=ee.get(ha,null,e.XFs.Optional))||void 0===F||F.setUpPreloading(),null===(_e=ee.get(Fo,null,e.XFs.Optional))||void 0===_e||_e.init(),ut.resetRootComponentType(Le.componentTypes[0]),Tt.next(),Tt.complete()}}const ul=new e.OlP("");function Uo(ee){return["disabled"===ee.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const ee=(0,e.f3M)(Ei);return()=>{ee.setUpLocationChangeListener()}}},{provide:jo,useValue:2}]:[],"enabledBlocking"===ee.initialNavigation?[{provide:jo,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ee=>{const ie=ee.get(ue.V_,Promise.resolve(null));let F=!1;return()=>ie.then(()=>new Promise(Le=>{const ut=ee.get(Ei),Tt=ee.get(hl);(function _e(Le){ee.get(Ei).events.pipe((0,O.h)(Tt=>Tt instanceof jn||Tt instanceof zn||Tt instanceof ki),(0,xe.U)(Tt=>Tt instanceof jn||Tt instanceof zn&&(0===Tt.code||1===Tt.code)&&null),(0,O.h)(Tt=>null!==Tt),(0,Ze.q)(1)).subscribe(()=>{Le()})})(()=>{Le(!0),F=!0}),ut.afterPreactivation=()=>(Le(!0),F||Tt.closed?(0,R.of)(void 0):Tt),ut.initialNavigation()}))}}]:[]]}const hl=new e.OlP("",{factory:()=>new fe.x}),jo=new e.OlP("",{providedIn:"root",factory:()=>1});function pl(ee){return[Vo,{provide:ha,useExisting:Vo},{provide:Ra,useExisting:ee}]}},89383:(Je,pe,h)=>{"use strict";h.d(pe,{X$:()=>se,Zw:()=>V,aw:()=>ze,sK:()=>Me});var e=h(94650),d=h(39646),A=h(45191),w=h(4128),g=h(97272),C=h(49770),T=h(95698),v=h(34782),R=h(54004),U=h(24351),_=h(63900);class V{}let Y=(()=>{class he extends V{getTranslation(j){return(0,d.of)({})}}return he.\u0275fac=function(){let De;return function(P){return(De||(De=e.n5z(he)))(P||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class X{}let ne=(()=>{class he{handle(j){return j.key}}return he.\u0275fac=function(j){return new(j||he)},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();function le(he,De){if(he===De)return!0;if(null===he||null===De)return!1;if(he!=he&&De!=De)return!0;let G,ce,q,j=typeof he;if(j==typeof De&&"object"==j){if(!Array.isArray(he)){if(Array.isArray(De))return!1;for(ce in q=Object.create(null),he){if(!le(he[ce],De[ce]))return!1;q[ce]=!0}for(ce in De)if(!(ce in q)&&typeof De[ce]<"u")return!1;return!0}if(!Array.isArray(De))return!1;if((G=he.length)==De.length){for(ce=0;ce{fe(De[P])?P in he?j[P]=ue(he[P],De[P]):Object.assign(j,{[P]:De[P]}):Object.assign(j,{[P]:De[P]})}),j}class we{}let E=(()=>{class he extends we{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(j,P){let G;return G="string"==typeof j?this.interpolateString(j,P):"function"==typeof j?this.interpolateFunction(j,P):j,G}getValue(j,P){let G="string"==typeof P?P.split("."):[P];P="";do{P+=G.shift(),!te(j)||!te(j[P])||"object"!=typeof j[P]&&G.length?G.length?P+=".":j=void 0:(j=j[P],P="")}while(G.length);return j}interpolateFunction(j,P){return j(P)}interpolateString(j,P){return P?j.replace(this.templateMatcher,(G,ce)=>{let q=this.getValue(P,ce);return te(q)?q:G}):j}}return he.\u0275fac=function(){let De;return function(P){return(De||(De=e.n5z(he)))(P||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class O{}let H=(()=>{class he extends O{compile(j,P){return j}compileTranslations(j,P){return j}}return he.\u0275fac=function(){let De;return function(P){return(De||(De=e.n5z(he)))(P||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class W{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const $=new e.OlP("USE_STORE"),de=new e.OlP("USE_DEFAULT_LANG"),ye=new e.OlP("DEFAULT_LANGUAGE"),xe=new e.OlP("USE_EXTEND");let Me=(()=>{class he{constructor(j,P,G,ce,q,Te=!0,He=!1,dt=!1,et){this.store=j,this.currentLoader=P,this.compiler=G,this.parser=ce,this.missingTranslationHandler=q,this.useDefaultLang=Te,this.isolate=He,this.extend=dt,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},et&&this.setDefaultLang(et)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(j){this.isolate?this._defaultLang=j:this.store.defaultLang=j}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(j){this.isolate?this._currentLang=j:this.store.currentLang=j}get langs(){return this.isolate?this._langs:this.store.langs}set langs(j){this.isolate?this._langs=j:this.store.langs=j}get translations(){return this.isolate?this._translations:this.store.translations}set translations(j){this.isolate?this._translations=j:this.store.translations=j}setDefaultLang(j){if(j===this.defaultLang)return;let P=this.retrieveTranslations(j);typeof P<"u"?(null==this.defaultLang&&(this.defaultLang=j),P.pipe((0,T.q)(1)).subscribe(G=>{this.changeDefaultLang(j)})):this.changeDefaultLang(j)}getDefaultLang(){return this.defaultLang}use(j){if(j===this.currentLang)return(0,d.of)(this.translations[j]);let P=this.retrieveTranslations(j);return typeof P<"u"?(this.currentLang||(this.currentLang=j),P.pipe((0,T.q)(1)).subscribe(G=>{this.changeLang(j)}),P):(this.changeLang(j),(0,d.of)(this.translations[j]))}retrieveTranslations(j){let P;return(typeof this.translations[j]>"u"||this.extend)&&(this._translationRequests[j]=this._translationRequests[j]||this.getTranslation(j),P=this._translationRequests[j]),P}getTranslation(j){this.pending=!0;const P=this.currentLoader.getTranslation(j).pipe((0,v.d)(1),(0,T.q)(1));return this.loadingTranslations=P.pipe((0,R.U)(G=>this.compiler.compileTranslations(G,j)),(0,v.d)(1),(0,T.q)(1)),this.loadingTranslations.subscribe({next:G=>{this.translations[j]=this.extend&&this.translations[j]?{...G,...this.translations[j]}:G,this.updateLangs(),this.pending=!1},error:G=>{this.pending=!1}}),P}setTranslation(j,P,G=!1){P=this.compiler.compileTranslations(P,j),this.translations[j]=(G||this.extend)&&this.translations[j]?ue(this.translations[j],P):P,this.updateLangs(),this.onTranslationChange.emit({lang:j,translations:this.translations[j]})}getLangs(){return this.langs}addLangs(j){j.forEach(P=>{-1===this.langs.indexOf(P)&&this.langs.push(P)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(j,P,G){let ce;if(P instanceof Array){let q={},Te=!1;for(let He of P)q[He]=this.getParsedResult(j,He,G),(0,A.b)(q[He])&&(Te=!0);if(Te){const He=P.map(dt=>(0,A.b)(q[dt])?q[dt]:(0,d.of)(q[dt]));return(0,w.D)(He).pipe((0,R.U)(dt=>{let et={};return dt.forEach((_t,Qe)=>{et[P[Qe]]=_t}),et}))}return q}if(j&&(ce=this.parser.interpolate(this.parser.getValue(j,P),G)),typeof ce>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ce=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],P),G)),typeof ce>"u"){let q={key:P,translateService:this};typeof G<"u"&&(q.interpolateParams=G),ce=this.missingTranslationHandler.handle(q)}return typeof ce<"u"?ce:P}get(j,P){if(!te(j)||!j.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,U.b)(G=>(G=this.getParsedResult(G,j,P),(0,A.b)(G)?G:(0,d.of)(G))));{let G=this.getParsedResult(this.translations[this.currentLang],j,P);return(0,A.b)(G)?G:(0,d.of)(G)}}getStreamOnTranslationChange(j,P){if(!te(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,C.P)(()=>this.get(j,P)),this.onTranslationChange.pipe((0,_.w)(G=>{const ce=this.getParsedResult(G.translations,j,P);return"function"==typeof ce.subscribe?ce:(0,d.of)(ce)})))}stream(j,P){if(!te(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,C.P)(()=>this.get(j,P)),this.onLangChange.pipe((0,_.w)(G=>{const ce=this.getParsedResult(G.translations,j,P);return(0,A.b)(ce)?ce:(0,d.of)(ce)})))}instant(j,P){if(!te(j)||!j.length)throw new Error('Parameter "key" required');let G=this.getParsedResult(this.translations[this.currentLang],j,P);if((0,A.b)(G)){if(j instanceof Array){let ce={};return j.forEach((q,Te)=>{ce[j[Te]]=j[Te]}),ce}return j}return G}set(j,P,G=this.currentLang){this.translations[G][j]=this.compiler.compile(P,G),this.updateLangs(),this.onTranslationChange.emit({lang:G,translations:this.translations[G]})}changeLang(j){this.currentLang=j,this.onLangChange.emit({lang:j,translations:this.translations[j]}),null==this.defaultLang&&this.changeDefaultLang(j)}changeDefaultLang(j){this.defaultLang=j,this.onDefaultLangChange.emit({lang:j,translations:this.translations[j]})}reloadLang(j){return this.resetLang(j),this.getTranslation(j)}resetLang(j){this._translationRequests[j]=void 0,this.translations[j]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof j>"u"?void 0:(-1!==j.indexOf("-")&&(j=j.split("-")[0]),-1!==j.indexOf("_")&&(j=j.split("_")[0]),j)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,j}}return he.\u0275fac=function(j){return new(j||he)(e.LFG(W),e.LFG(V),e.LFG(O),e.LFG(we),e.LFG(X),e.LFG(de),e.LFG($),e.LFG(xe),e.LFG(ye))},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})(),se=(()=>{class he{constructor(j,P){this.translate=j,this._ref=P,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(j,P,G){let ce=q=>{this.value=void 0!==q?q:j,this.lastKey=j,this._ref.markForCheck()};if(G){let q=this.translate.getParsedResult(G,j,P);(0,A.b)(q.subscribe)?q.subscribe(ce):ce(q)}this.translate.get(j,P).subscribe(ce)}transform(j,...P){if(!j||!j.length)return j;if(le(j,this.lastKey)&&le(P,this.lastParams))return this.value;let G;if(te(P[0])&&P.length)if("string"==typeof P[0]&&P[0].length){let ce=P[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{G=JSON.parse(ce)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${P[0]}`)}}else"object"==typeof P[0]&&!Array.isArray(P[0])&&(G=P[0]);return this.lastKey=j,this.lastParams=P,this.updateValue(j,G),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ce=>{this.lastKey&&ce.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(j,G,ce.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ce=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,G,ce.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,G))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return he.\u0275fac=function(j){return new(j||he)(e.Y36(Me,16),e.Y36(e.sBO,16))},he.\u0275pipe=e.Yjl({name:"translate",type:he,pure:!1}),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})(),ze=(()=>{class he{static forRoot(j={}){return{ngModule:he,providers:[j.loader||{provide:V,useClass:Y},j.compiler||{provide:O,useClass:H},j.parser||{provide:we,useClass:E},j.missingTranslationHandler||{provide:X,useClass:ne},W,{provide:$,useValue:j.isolate},{provide:de,useValue:j.useDefaultLang},{provide:xe,useValue:j.extend},{provide:ye,useValue:j.defaultLanguage},Me]}}static forChild(j={}){return{ngModule:he,providers:[j.loader||{provide:V,useClass:Y},j.compiler||{provide:O,useClass:H},j.parser||{provide:we,useClass:E},j.missingTranslationHandler||{provide:X,useClass:ne},{provide:$,useValue:j.isolate},{provide:de,useValue:j.useDefaultLang},{provide:xe,useValue:j.extend},{provide:ye,useValue:j.defaultLanguage},Me]}}}return he.\u0275fac=function(j){return new(j||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({}),he})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Je extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Je.\u0275fac=function(){let pe;return function(e){return(pe||(pe=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Je)))(e||Je)}}(),Je.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Je{constructor(){this.data=new Map}getItem(h){return this.data.get(h)}removeItem(h){this.data.delete(h)}setItem(h,e){this.data.set(h,e)}}return Je.\u0275fac=function(h){return new(h||Je)},Je.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class ReceivedTokens{}class OAuthEvent{constructor(pe){this.type=pe}}class OAuthSuccessEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthInfoEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthErrorEvent extends OAuthEvent{constructor(pe,h,e=null){super(pe),this.reason=h,this.params=e}}function b64DecodeUnicode(Je){const pe=Je.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(pe).split("").map(function(h){return"%"+("00"+h.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Je){return btoa(Je).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(pe){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=h=>{location.href=h},pe&&Object.assign(this,pe)}}class WebHttpUrlEncodingCodec{encodeKey(pe){return encodeURIComponent(pe)}encodeValue(pe){return encodeURIComponent(pe)}decodeKey(pe){return decodeURIComponent(pe)}decodeValue(pe){return decodeURIComponent(pe)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(pe){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=h.inferHashAlgorithm(pe.idTokenHeader),d=yield h.calcHash(pe.accessToken,e),w=base64UrlEncode(d.substr(0,d.length/2)),g=pe.idTokenClaims.at_hash.replace(/=/g,"");return w!==g&&(console.error("exptected at_hash: "+w),console.error("actual at_hash: "+g)),w===g})()}inferHashAlgorithm(pe){let h=pe.alg;if(!h.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+h);return"sha-"+h.substr(2)}}let UrlHelperService=(()=>{class Je{getHashFragmentParams(h){let e=h||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const d=e.indexOf("?");return e=e.substr(d>-1?d+1:1),this.parseQueryString(e)}parseQueryString(h){const e={};let d,A,w,g,C,T,v;if(null===h)return e;d=h.split("&");for(let R=0;R>6,A[g++]=128|63&C):C<55296||C>=57344?(A[g++]=224|C>>12,A[g++]=128|C>>6&63,A[g++]=128|63&C):(C=65536+((1023&C)<<10|1023&Je.charCodeAt(++e)),A[g++]=240|C>>18,A[g++]=128|C>>12&63,A[g++]=128|C>>6&63,A[g++]=128|63&C);Je=A}else{if("object"!==d)throw new Error(ERROR);if(null===Je)throw new Error(ERROR);if(ARRAY_BUFFER&&Je.constructor===ArrayBuffer)Je=new Uint8Array(Je);else if(!(Array.isArray(Je)||ARRAY_BUFFER&&ArrayBuffer.isView(Je)))throw new Error(ERROR)}Je.length>64&&(Je=new Sha256(pe,!0).update(Je).array());var T=[],v=[];for(e=0;e<64;++e){var R=Je[e]||0;T[e]=92^R,v[e]=54^R}Sha256.call(this,pe,h),this.update(v),this.oKeyPad=T,this.inner=!0,this.sharedMemory=h}Sha256.prototype.update=function(Je){if(!this.finalized){var pe,h=typeof Je;if("string"!==h){if("object"!==h)throw new Error(ERROR);if(null===Je)throw new Error(ERROR);if(ARRAY_BUFFER&&Je.constructor===ArrayBuffer)Je=new Uint8Array(Je);else if(!(Array.isArray(Je)||ARRAY_BUFFER&&ArrayBuffer.isView(Je)))throw new Error(ERROR);pe=!0}for(var e,A,d=0,w=Je.length,g=this.blocks;d>2]|=Je[d]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[A>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=g[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Je=this.blocks,pe=this.lastByteIndex;Je[16]=this.block,Je[pe>>2]|=EXTRA[3&pe],this.block=Je[16],pe>=56&&(this.hashed||this.hash(),Je[0]=this.block,Je[16]=Je[1]=Je[2]=Je[3]=Je[4]=Je[5]=Je[6]=Je[7]=Je[8]=Je[9]=Je[10]=Je[11]=Je[12]=Je[13]=Je[14]=Je[15]=0),Je[14]=this.hBytes<<3|this.bytes>>>29,Je[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var T,_,X,ne,le,te,Je=this.h0,pe=this.h1,h=this.h2,e=this.h3,d=this.h4,A=this.h5,w=this.h6,g=this.h7,C=this.blocks;for(T=16;T<64;++T)C[T]=C[T-16]+(((_=C[T-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)+C[T-7]+(((_=C[T-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10)<<0;for(te=pe&h,T=0;T<64;T+=4)this.first?(this.is224?(X=300032,g=(_=C[0]-1413257819)-150054599<<0,e=_+24177077<<0):(X=704751109,g=(_=C[0]-210244248)-1521486534<<0,e=_+143694565<<0),this.first=!1):(g=e+(_=g+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&A^~d&w)+K[T]+C[T])<<0,e=_+(((Je>>>2|Je<<30)^(Je>>>13|Je<<19)^(Je>>>22|Je<<10))+((X=Je&pe)^Je&h^te))<<0),w=h+(_=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&d^~g&A)+K[T+1]+C[T+1])<<0,h=_+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ne=e&Je)^e&pe^X))<<0,A=pe+(_=A+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&d)+K[T+2]+C[T+2])<<0,pe=_+(((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((le=h&e)^h&Je^ne))<<0,d=Je+(_=d+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&w^~A&g)+K[T+3]+C[T+3])<<0,Je=_+(((pe>>>2|pe<<30)^(pe>>>13|pe<<19)^(pe>>>22|pe<<10))+((te=pe&h)^pe&e^le))<<0;this.h0=this.h0+Je<<0,this.h1=this.h1+pe<<0,this.h2=this.h2+h<<0,this.h3=this.h3+e<<0,this.h4=this.h4+d<<0,this.h5=this.h5+A<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var Je=this.h0,pe=this.h1,h=this.h2,e=this.h3,d=this.h4,A=this.h5,w=this.h6,g=this.h7,C=HEX_CHARS[Je>>28&15]+HEX_CHARS[Je>>24&15]+HEX_CHARS[Je>>20&15]+HEX_CHARS[Je>>16&15]+HEX_CHARS[Je>>12&15]+HEX_CHARS[Je>>8&15]+HEX_CHARS[Je>>4&15]+HEX_CHARS[15&Je]+HEX_CHARS[pe>>28&15]+HEX_CHARS[pe>>24&15]+HEX_CHARS[pe>>20&15]+HEX_CHARS[pe>>16&15]+HEX_CHARS[pe>>12&15]+HEX_CHARS[pe>>8&15]+HEX_CHARS[pe>>4&15]+HEX_CHARS[15&pe]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[d>>28&15]+HEX_CHARS[d>>24&15]+HEX_CHARS[d>>20&15]+HEX_CHARS[d>>16&15]+HEX_CHARS[d>>12&15]+HEX_CHARS[d>>8&15]+HEX_CHARS[d>>4&15]+HEX_CHARS[15&d]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w];return this.is224||(C+=HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]),C},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Je=this.h0,pe=this.h1,h=this.h2,e=this.h3,d=this.h4,A=this.h5,w=this.h6,g=this.h7,C=[Je>>24&255,Je>>16&255,Je>>8&255,255&Je,pe>>24&255,pe>>16&255,pe>>8&255,255&pe,h>>24&255,h>>16&255,h>>8&255,255&h,e>>24&255,e>>16&255,e>>8&255,255&e,d>>24&255,d>>16&255,d>>8&255,255&d,A>>24&255,A>>16&255,A>>8&255,255&A,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||C.push(g>>24&255,g>>16&255,g>>8&255,255&g),C},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Je=new ArrayBuffer(this.is224?28:32),pe=new DataView(Je);return pe.setUint32(0,this.h0),pe.setUint32(4,this.h1),pe.setUint32(8,this.h2),pe.setUint32(12,this.h3),pe.setUint32(16,this.h4),pe.setUint32(20,this.h5),pe.setUint32(24,this.h6),this.is224||pe.setUint32(28,this.h7),Je},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Je=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Je),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Je){if("string"!=typeof Je)throw new TypeError("expected string");var pe,h=Je,e=new Uint8Array(h.length);for(pe=0;pe{class Je{calcHash(h,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(h)))})()}toHashString2(h){let e="";for(let d of h)e+=String.fromCharCode(d);return e}toHashString(h){const e=new Uint8Array(h);let d="";for(let A of e)d+=String.fromCharCode(A);return d}}return Je.\u0275fac=function(h){return new(h||Je)},Je.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),OAuthService=(()=>{class Je extends AuthConfig{constructor(h,e,d,A,w,g,C,T,v,R){super(),this.ngZone=h,this.http=e,this.config=w,this.urlHelper=g,this.logger=C,this.crypto=T,this.dateTimeService=R,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=v,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),A&&(this.tokenValidationHandler=A),w&&this.configure(w);try{d?this.setStorage(d):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(V){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",V)}if(this.checkLocalStorageAccessable()){var U,_;const V=null===(U=window)||void 0===U||null===(_=U.navigator)||void 0===_?void 0:_.userAgent;(V?.includes("MSIE ")||V?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const h="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(h,h),localStorage.removeItem(h),0))}catch{return!1}}configure(h){Object.assign(this,new AuthConfig,h),this.config=Object.assign({},new AuthConfig,h),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"token_received"===h.type)).subscribe(h=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(h={},e,d=!0){let A=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?A=!0:"logout"===w.type&&(A=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{A&&this.refreshInternal(h,d).catch(g=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(h,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(h,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(h=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(h))}loadDiscoveryDocumentAndLogin(h=null){return this.loadDiscoveryDocumentAndTryLogin(h=h||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof h.state?h.state:""),!1))}debug(...h){this.showDebugInformation&&this.logger.debug.apply(this.logger,h)}validateUrlFromDiscoveryDocument(h){const e=[],d=this.validateUrlForHttps(h),A=this.validateUrlAgainstIssuer(h);return d||e.push("https for all urls required. Also for urls received by discovery."),A||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(h){if(!h)return!0;const e=h.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(h,e){if(!h)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(h))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(h){return!this.strictDiscoveryDocumentValidation||!h||h.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"token_received"===h.type)).subscribe(h=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const h=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),d=this.calcTimeout(e,h);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(d)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}setupIdTokenTimer(){const h=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),d=this.calcTimeout(e,h);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(d)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(h,e){const d=this.dateTimeService.now();return Math.max(0,(e-h)*this.timeoutFactor-(d-h))}setStorage(h){this._storage=h,this.configChanged()}loadDiscoveryDocument(h=null){return new Promise((e,d)=>{h||((h=this.issuer||"").endsWith("/")||(h+="/"),h+=".well-known/openid-configuration"),this.validateUrlForHttps(h)?this.http.get(h).subscribe(A=>{if(!this.validateDiscoveryDocument(A))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void d("discovery_document_validation_error");this.loginUrl=A.authorization_endpoint,this.logoutUrl=A.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=A.grant_types_supported,this.issuer=A.issuer,this.tokenEndpoint=A.token_endpoint,this.userinfoEndpoint=A.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=A.jwks_uri,this.sessionCheckIFrameUrl=A.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(A),this.revocationEndpoint=A.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const C=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:A,jwks:w});this.eventsSubject.next(C),e(C)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),d(w)})},A=>{this.logger.error("error loading discovery document",A),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",A)),d(A)}):d("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((h,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(d=>{this.jwks=d,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),h(d)},d=>{this.logger.error("error loading jwks",d),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",d)),e(d)}):h(null)})}validateDiscoveryDocument(h){let e;return this.skipIssuerCheck||h.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(h.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!h.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+h.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(h,e,d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(h,e,d).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((h,e)=>{const d=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:d,observe:"response",responseType:"text"}).subscribe(A=>{if(this.debug("userinfo received",JSON.stringify(A)),A.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(A.body);const g=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!g.sub||w.sub!==g.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");w=Object.assign({},g,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),h({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),h(JSON.parse(A.body))},A=>{this.logger.error("error loading user info",A),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",A)),e(A)})})}fetchTokenUsingPasswordFlow(h,e,d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:h,password:e},d)}fetchTokenUsingGrant(h,e,d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",h).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);d=d.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))A=A.set(w,e[w]);return d=d.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,A,{headers:d}).subscribe(C=>{this.debug("tokenResponse",C),this.storeAccessTokenResponse(C.access_token,C.refresh_token,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C.scope,this.extractRecognizedCustomParameters(C)),this.oidc&&C.id_token&&this.processIdToken(C.id_token,C.access_token).then(T=>{this.storeIdToken(T),w(C)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(C)},C=>{this.logger.error("Error performing ${grantType} flow",C),this.eventsSubject.next(new OAuthErrorEvent("token_error",C)),g(C)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((h,e)=>{let d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(d=d.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(d=d.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))d=d.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,d,{headers:A}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(g=>this.storeIdToken(g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(g=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),h(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=h=>{const e=this.processMessageEventMessage(h);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(d=>this.debug("tryLogin during silent refresh failed",d))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(h={},e=!0){const d=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(h.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const A=this.document.getElementById(this.silentRefreshIFrameName);A&&this.document.body.removeChild(A),this.silentRefreshSubject=d.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,h).then(R=>{w.setAttribute("src",R),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const C=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>R instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),T=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>"token_received"===R.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),v=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([C,T,v]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(R=>{if(R instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===R.type||(R=new OAuthErrorEvent("silent_refresh_error",R)),this.eventsSubject.next(R),R;return"token_received"===R.type&&(R=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(R)),R})).toPromise()}initImplicitFlowInPopup(h){return this.initLoginFlowInPopup(h)}initLoginFlowInPopup(h){return h=h||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((d,A)=>{let C,g=null;h.windowRef?h.windowRef&&!h.windowRef.closed&&(g=h.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(h));const T=V=>{this.tryLogin({customHashFragment:V,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{R(),d(!0)},Y=>{R(),A(Y)})};g?C=window.setInterval(()=>{(!g||g.closed)&&(R(),A(new OAuthErrorEvent("popup_closed",{})))},500):A(new OAuthErrorEvent("popup_blocked",{}));const R=()=>{window.clearInterval(C),window.removeEventListener("storage",_),window.removeEventListener("message",U),null!==g&&g.close(),g=null},U=V=>{const Y=this.processMessageEventMessage(V);Y&&null!==Y?(window.removeEventListener("storage",_),T(Y)):console.log("false event firing")},_=V=>{"auth_hash"===V.key&&(window.removeEventListener("message",U),T(V.newValue))};window.addEventListener("message",U),window.addEventListener("storage",_)}))}calculatePopupFeatures(h){const e=h.height||470,d=h.width||500,A=window.screenLeft+(window.outerWidth-d)/2;return`location=no,toolbar=no,width=${d},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${A}`}processMessageEventMessage(h){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!h||!h.data||"string"!=typeof h.data)return;const d=h.data;return d.startsWith(e)?"#"+d.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=h=>{const e=h.origin.toLowerCase(),d=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),d.startsWith(e)){switch(h.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",h)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",d,"event",h)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(h=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(h=>{this.debug("token refresh after session change worked")}).catch(h=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"silently_refreshed"===h.type||"silent_refresh_timeout"===h.type||"silent_refresh_error"===h.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(h=>{"silently_refreshed"!==h.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const h=this.document.getElementById(this.sessionCheckIFrameName);h&&this.document.body.removeChild(h);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const h=this.document.getElementById(this.sessionCheckIFrameName);h||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),h.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(h="",e="",d="",A=!1,w={}){var g=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const C=g;let T;T=d||g.redirectUri;const v=yield g.createAndSaveNonce();if(h=h?v+g.config.nonceStateSeparator+encodeURIComponent(h):v,!g.requestAccessToken&&!g.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");g.responseType=g.config.responseType?g.config.responseType:g.oidc&&g.requestAccessToken?"id_token token":g.oidc&&!g.requestAccessToken?"id_token":"token";const R=C.loginUrl.indexOf("?")>-1?"&":"?";let U=C.scope;g.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let _=C.loginUrl+R+"response_type="+encodeURIComponent(C.responseType)+"&client_id="+encodeURIComponent(C.clientId)+"&state="+encodeURIComponent(h)+"&redirect_uri="+encodeURIComponent(T)+"&scope="+encodeURIComponent(U);if(g.responseType.includes("code")&&!g.disablePKCE){const[V,Y]=yield g.createChallangeVerifierPairForPKCE();g.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",Y):g._storage.setItem("PKCE_verifier",Y),_+="&code_challenge="+V,_+="&code_challenge_method=S256"}e&&(_+="&login_hint="+encodeURIComponent(e)),C.resource&&(_+="&resource="+encodeURIComponent(C.resource)),C.oidc&&(_+="&nonce="+encodeURIComponent(v)),A&&(_+="&prompt=none");for(const V of Object.keys(w))_+="&"+encodeURIComponent(V)+"="+encodeURIComponent(w[V]);if(g.customQueryParams)for(const V of Object.getOwnPropertyNames(g.customQueryParams))_+="&"+V+"="+encodeURIComponent(g.customQueryParams[V]);return _})()}initImplicitFlowInternal(h="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let d={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(d=e),this.createLoginUrl(h,A,null,!1,d).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(h="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(h,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(d=>"discovery_document_loaded"===d.type)).subscribe(d=>this.initImplicitFlowInternal(h,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(h){const e=this;if(h.onTokenReceived){const d={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};h.onTokenReceived(d)}}storeAccessTokenResponse(h,e,d,A,w){if(this._storage.setItem("access_token",h),A&&!Array.isArray(A)?this._storage.setItem("granted_scopes",JSON.stringify(A.split(" "))):A&&Array.isArray(A)&&this._storage.setItem("granted_scopes",JSON.stringify(A)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),d){const g=1e3*d,T=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+T)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,C)=>{this._storage.setItem(C,g)})}tryLogin(h=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(h).then(e=>!0):this.tryLoginImplicitFlow(h)}parseQueryString(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):{}}tryLoginCodeFlow(h=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const d=(h=h||{}).customHashFragment?h.customHashFragment.substring(1):window.location.search,A=e.getCodePartsFromUrl(d),w=A.code,g=A.state,C=A.session_state;if(!h.preventClearHashAfterLogin){const R=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,R)}let[T,v]=e.parseState(g);if(e.state=v,A.error){e.debug("error trying to login"),e.handleLoginError(h,A);const R=new OAuthErrorEvent("code_error",{},A);return e.eventsSubject.next(R),Promise.reject(R)}if(!h.disableNonceCheck){if(!T)return e.saveRequestedRoute(),Promise.resolve();if(!h.disableOAuth2StateCheck&&!e.validateNonce(T)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(U),Promise.reject(U)}return e.storeSessionState(C),w&&(yield e.getTokenFromCode(w,h),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const h=this._storage.getItem("requested_route");h&&history.replaceState(null,"",window.location.origin+h)}getCodePartsFromUrl(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(h,e){let d=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",h).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let A;A=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),A?d=d.set("code_verifier",A):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(d,e)}fetchAndProcessToken(h,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let d=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const A=btoa(`${this.clientId}:${this.dummyClientSecret}`);d=d.set("Authorization","Basic "+A)}return this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),new Promise((A,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,h,{headers:d}).subscribe(g=>{this.debug("refresh tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token?this.processIdToken(g.id_token,g.access_token,e.disableNonceCheck).then(C=>{this.storeIdToken(C),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(g)}).catch(C=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",C)),console.error("Error validating tokens"),console.error(C),w(C)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(h=null){let e;e=(h=h||{}).customHashFragment?this.urlHelper.getHashFragmentParams(h.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const d=e.state;let[A,w]=this.parseState(d);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(h,e);const R=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(R),Promise.reject(R)}const g=e.access_token,C=e.id_token,T=e.session_state,v=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!g||this.requestAccessToken&&!h.disableOAuth2StateCheck&&!d||this.oidc&&!C)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!T&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!h.disableNonceCheck&&!this.validateNonce(A)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,v),this.oidc?this.processIdToken(C,g,h.disableNonceCheck).then(R=>h.validationHandler?h.validationHandler({accessToken:g,idClaims:R.idTokenClaims,idToken:R.idToken,state:d}).then(U=>R):R).then(R=>(this.storeIdToken(R),this.storeSessionState(T),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(h),this.inImplicitFlow=!1,!0)).catch(R=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",R)),this.logger.error("Error validating tokens"),this.logger.error(R),Promise.reject(R))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(h),Promise.resolve(!0))}parseState(h){let e=h,d="";if(h){const A=h.indexOf(this.config.nonceStateSeparator);A>-1&&(e=h.substr(0,A),d=h.substr(A+this.config.nonceStateSeparator.length))}return[e,d]}validateNonce(h){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===h||(console.error("Validating access_token failed, wrong state/nonce.",e,h),!1)}storeIdToken(h){this._storage.setItem("id_token",h.idToken),this._storage.setItem("id_token_claims_obj",h.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+h.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(h){this._storage.setItem("session_state",h)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(h,e){h.onLoginError&&h.onLoginError(e),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(h=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:h}processIdToken(h,e,d=!1){const A=h.split("."),g=b64DecodeUnicode(this.padBase64(A[0])),C=JSON.parse(g),v=b64DecodeUnicode(this.padBase64(A[1])),R=JSON.parse(v);let U;if(U=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(R.aud)){if(R.aud.every(le=>le!==this.clientId)){const le="Wrong audience: "+R.aud.join(",");return this.logger.warn(le),Promise.reject(le)}}else if(R.aud!==this.clientId){const le="Wrong audience: "+R.aud;return this.logger.warn(le),Promise.reject(le)}if(!R.sub){const le="No sub claim in id_token";return this.logger.warn(le),Promise.reject(le)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==R.sub){const le=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${R.sub}`;return this.logger.warn(le),Promise.reject(le)}if(!R.iat){const le="No iat claim in id_token";return this.logger.warn(le),Promise.reject(le)}if(!this.skipIssuerCheck&&R.iss!==this.issuer){const le="Wrong issuer: "+R.iss;return this.logger.warn(le),Promise.reject(le)}if(!d&&R.nonce!==U){const le="Wrong nonce: "+R.nonce;return this.logger.warn(le),Promise.reject(le)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!R.at_hash){const le="An at_hash is needed!";return this.logger.warn(le),Promise.reject(le)}const _=this.dateTimeService.now(),V=1e3*R.iat,Y=1e3*R.exp,X=this.getClockSkewInMsec();if(V-X>=_||Y+X<=_){const le="Token has expired";return console.error(le),console.error({now:_,issuedAtMSec:V,expiresAtMSec:Y}),Promise.reject(le)}const ne={accessToken:e,idToken:h,jwks:this.jwks,idTokenClaims:R,idTokenHeader:C,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(le=>({idToken:h,idTokenClaims:R,idTokenClaimsJson:v,idTokenHeader:C,idTokenHeaderJson:g,idTokenExpiresAt:Y})):this.checkAtHash(ne).then(le=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!le){const te="Wrong at_hash";return this.logger.warn(te),Promise.reject(te)}return this.checkSignature(ne).then(te=>{const ue={idToken:h,idTokenClaims:R,idTokenClaimsJson:v,idTokenHeader:C,idTokenHeaderJson:g,idTokenExpiresAt:Y};return this.disableAtHashCheck?ue:this.checkAtHash(ne).then(we=>{if(this.requestAccessToken&&!we){const E="Wrong at_hash";return this.logger.warn(E),Promise.reject(E)}return ue})})})}getIdentityClaims(){const h=this._storage.getItem("id_token_claims_obj");return h?JSON.parse(h):null}getGrantedScopes(){const h=this._storage.getItem("granted_scopes");return h?JSON.parse(h):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(h){for(;h.length%4!=0;)h+="=";return h}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const h=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(h&&parseInt(h,10)=0&&null!==this._storage.getItem(h)?JSON.parse(this._storage.getItem(h)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(h={},e=""){let d=!1;"boolean"==typeof h&&(d=h,h={});const A=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>this._storage.removeItem(g)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||d||!A&&!this.postLogoutRedirectUri)return;let w;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(A)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});A&&(g=g.set("id_token_hint",A));const C=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";C&&(g=g.set("post_logout_redirect_uri",C),e&&(g=g.set("state",e)));for(let T in h)g=g.set(T,h[T]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const h=this;return this.createNonce().then(function(e){return h.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):h._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const h=this.document.getElementById(this.silentRefreshIFrameName);h&&h.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(h=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let d=45,A="";const w=typeof self>"u"?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(d);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(C=>e.charCodeAt(C%e.length)),A=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===d.type)).subscribe(d=>this.initCodeFlowInternal(h,e))}initCodeFlowInternal(h="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let d={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(d=e),this.createLoginUrl(h,A,null,!1,d).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!h.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield h.createNonce();return[base64UrlEncode(yield h.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(h){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(d=>{h[d]&&e.set(d,JSON.stringify(h[d]))}),e}revokeTokenAndLogout(h={},e=!1){let d=this.revocationEndpoint,A=this.getAccessToken(),w=this.getRefreshToken();if(!A)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),C=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);C=C.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(T,this.customQueryParams[T]);return new Promise((T,v)=>{let R,U;if(A){let _=g.set("token",A).set("token_type_hint","access_token");R=this.http.post(d,_,{headers:C})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let _=g.set("token",w).set("token_type_hint","refresh_token");U=this.http.post(d,_,{headers:C})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(_=>0===_.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_))),U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(_=>0===_.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([R,U]).subscribe(_=>{this.logOut(h),T(_),this.logger.info("Token successfully revoked")},_=>{this.logger.error("Error revoking token",_),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",_)),v(_)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Je.\u0275fac=function(h){return new(h||Je)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Je.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(pe){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(pe)}}let DefaultOAuthInterceptor=(()=>{class Je{constructor(h,e,d){this.oAuthService=h,this.errorHandler=e,this.moduleConfig=d}checkUrl(h){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(h):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>h.toLowerCase().startsWith(e.toLowerCase()))}intercept(h,e){const d=h.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(d)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(w=>{if(w){const C=h.headers.set("Authorization","Bearer "+w);h=h.clone({headers:C})}return e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(h)}}return Je.\u0275fac=function(h){return new(h||Je)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Je.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class NullValidationHandler{validateSignature(pe){return Promise.resolve(null)}validateAtHash(pe){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Je{static forRoot(h=null,e=NullValidationHandler){return{ngModule:Je,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:h},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Je.\u0275fac=function(h){return new(h||Je)},Je.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Je}),Je.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Je})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Je,pe,h)=>{"use strict";h.d(pe,{Co:()=>oe,nu:()=>Z});var e=h(29521),d=h(94650),A=h(24006),w=h(3238),g=h(59549),C=h(84385),T=h(61135),v=h(39646),R=h(39841),U=h(77579),_=h(63900),V=h(54004),Y=h(68675),X=h(91005),ne=h(82722),le=h(95698),te=h(39300),fe=h(18505),ue=h(67376),we=h(12687),E=h(56709),O=h(51572),H=h(4859),W=h(97392),$=h(36895),de=h(10266);const ye=["searchSelectInput"],xe=["innerSelectSearch"];function Me(ge,ae){if(1&ge){const Oe=d.EpF();d.TgZ(0,"mat-checkbox",9),d.NdJ("change",function(me){d.CHM(Oe);const N=d.oxw();return d.KtG(N._emitSelectAllBooleanToParent(me.checked))}),d.qZA()}if(2&ge){const Oe=d.oxw();d.Q6J("color",null==Oe.matFormField?null:Oe.matFormField.color)("checked",Oe.toggleAllCheckboxChecked)("indeterminate",Oe.toggleAllCheckboxIndeterminate)("matTooltip",Oe.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Oe.toogleAllCheckboxTooltipPosition)}}function Ze(ge,ae){1&ge&&d._UZ(0,"mat-spinner",10)}function se(ge,ae){1&ge&&d.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function ze(ge,ae){if(1&ge&&(d.TgZ(0,"mat-icon",14),d._uU(1),d.qZA()),2&ge){const Oe=d.oxw(2);d.Q6J("svgIcon",Oe.closeSvgIcon),d.xp6(1),d.hij(" ",Oe.closeSvgIcon?null:Oe.closeIcon," ")}}function he(ge,ae){if(1&ge){const Oe=d.EpF();d.TgZ(0,"button",11),d.NdJ("click",function(){d.CHM(Oe);const me=d.oxw();return d.KtG(me._reset(!0))}),d.YNc(1,se,1,0,"ng-content",12),d.YNc(2,ze,2,2,"ng-template",null,13,d.W1O),d.qZA()}if(2&ge){const Oe=d.MAs(3),Q=d.oxw();d.xp6(1),d.Q6J("ngIf",Q.clearIcon)("ngIfElse",Oe)}}function De(ge,ae){1&ge&&d.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function j(ge,ae){if(1&ge&&d._uU(0),2&ge){const Oe=d.oxw(2);d.Oqu(Oe.noEntriesFoundLabel)}}function P(ge,ae){if(1&ge&&(d.TgZ(0,"div",15),d.YNc(1,De,1,0,"ng-content",12),d.YNc(2,j,1,1,"ng-template",null,16,d.W1O),d.qZA()),2&ge){const Oe=d.MAs(3),Q=d.oxw();d.xp6(1),d.Q6J("ngIf",Q.noEntriesFound)("ngIfElse",Oe)}}const G=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],ce=function(ge,ae){return{"mat-select-search-inner-multiple":ge,"mat-select-search-inner-toggle-all":ae}},q=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Te=(()=>{class ge{}return ge.\u0275fac=function(Oe){return new(Oe||ge)},ge.\u0275dir=d.lG2({type:ge,selectors:[["","ngxMatSelectSearchClear",""]]}),ge})();const He=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],dt=new d.OlP("mat-selectsearch-default-options");let Qe=(()=>{class ge{}return ge.\u0275fac=function(Oe){return new(Oe||ge)},ge.\u0275dir=d.lG2({type:ge,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),ge})(),Z=(()=>{class ge{constructor(Oe,Q,me,N=null,L,r=null,s){this.matSelect=Oe,this.changeDetectorRef=Q,this._viewportRuler=me,this.matOption=N,this.liveAnnouncer=L,this.matFormField=r,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 d.vpe,this.onTouched=m=>{},this._options$=new T.X(null),this.optionsList$=this._options$.pipe((0,_.w)(m=>m?m.changes.pipe((0,V.U)(l=>l.toArray()),(0,Y.O)(m.toArray())):(0,v.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,V.U)(m=>m?m.length:0)),this._formControl=new A.NI(""),this._showNoEntriesFound$=(0,R.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,V.U)(([m,l])=>this.noEntriesFoundLabel&&m&&l===this.getOptionsLengthOffset())),this._onDestroy=new U.x,this.applyDefaultOptions(s)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Oe){this._options$.next(Oe)}get _options(){return this._options$.getValue()}applyDefaultOptions(Oe){if(Oe)for(const Q of He)Oe.hasOwnProperty(Q)&&(this[Q]=Oe[Q])}ngOnInit(){const Oe="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Oe):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Oe]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Oe]=!0):this.matSelect.panelClass=Oe,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,X.g)(1),(0,ne.R)(this._onDestroy)).subscribe(Q=>{Q?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,le.q)(1)).pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let Q=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const me=this._options.toArray(),N=me[this.getOptionsLengthOffset()],L=this.matSelect._keyManager;L&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Q,N)||!L.activeItem||!me.find(s=>this.matSelect.compareWith(s,L.activeItem)))&&L.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),Q=N})})}),this._showNoEntriesFound$.pipe((0,ne.R)(this._onDestroy)).subscribe(Q=>{this.matOption&&(Q?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,ne.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Oe){this.toggleAll.emit(Oe)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Oe){(Oe.key&&1===Oe.key.length||Oe.keyCode>=e.A&&Oe.keyCode<=e.Z||Oe.keyCode>=e.xE&&Oe.keyCode<=e.aO||Oe.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Oe.keyCode===e.Sd||Oe.keyCode===e.uR))&&Oe.stopPropagation(),this.matSelect.multiple&&Oe.key&&Oe.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Oe.keyCode===e.hY&&this.value&&(this._reset(!0),Oe.stopPropagation())}_handleKeyup(Oe){if(Oe.keyCode===e.LH||Oe.keyCode===e.JH){const Q=this.matSelect._getAriaActiveDescendant(),me=this._options.toArray().findIndex(N=>N.id===Q);if(-1!==me){const N=this._options.toArray()[me];this.liveAnnouncer.announce(N.viewValue+" "+this.getAriaIndex(me)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Oe){return 0===this.getOptionsLengthOffset()?Oe+1:Oe}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Oe){this._lastExternalInputValue=Oe,this._formControl.setValue(Oe),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Oe){this._formControl.valueChanges.pipe((0,te.h)(Q=>Q!==this._lastExternalInputValue),(0,fe.b)(()=>this._lastExternalInputValue=void 0),(0,ne.R)(this._onDestroy)).subscribe(Oe)}registerOnTouched(Oe){this.onTouched=Oe}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Oe=this.matSelect.panel.nativeElement,Q=Oe.scrollTop;this.searchSelectInput.nativeElement.focus(),Oe.scrollTop=Q}_reset(Oe){this._formControl.setValue(""),Oe&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ne.R)(this._onDestroy)).subscribe(Oe=>{let Q=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Oe||!Array.isArray(Oe))&&(Oe=[]);const me=this.matSelect.options.map(N=>N.value);this.previousSelectedValues.forEach(N=>{!Oe.some(L=>this.matSelect.compareWith(L,N))&&!me.some(L=>this.matSelect.compareWith(L,N))&&(Oe.push(N),Q=!0)})}this.previousSelectedValues=Oe,Q&&this.matSelect._onChange(Oe)})):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 Oe=this.getMatOptionHeight(),Q=this.matSelect._keyManager.activeItemIndex||0,me=(0,w.CB)(Q,this.matSelect.options,this.matSelect.optionGroups),N=(this.matOption?-1:0)+me+Q,L=this.matSelect.panel.nativeElement.scrollTop,r=this.innerSelectSearch.nativeElement.offsetHeight,s=Math.floor((256-r)/Oe),m=Math.round((L+r)/Oe)-1;m>=N?this.matSelect.panel.nativeElement.scrollTop=N*Oe:m+s<=N&&(this.matSelect.panel.nativeElement.scrollTop=(N+1)*Oe-(256-r))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Q,Oe=this.innerSelectSearch.nativeElement;for(;Oe=Oe.parentElement;)if(Oe.classList.contains("mat-select-panel")){Q=Oe;break}Q&&(this.innerSelectSearch.nativeElement.style.width=Q.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return ge.\u0275fac=function(Oe){return new(Oe||ge)(d.Y36(C.gD),d.Y36(d.sBO),d.Y36(ue.rL),d.Y36(w.ey,8),d.Y36(we.Kd),d.Y36(g.KE,8),d.Y36(dt,8))},ge.\u0275cmp=d.Xpm({type:ge,selectors:[["ngx-mat-select-search"]],contentQueries:function(Oe,Q,me){if(1&Oe&&(d.Suo(me,Te,5),d.Suo(me,Qe,5)),2&Oe){let N;d.iGM(N=d.CRH())&&(Q.clearIcon=N.first),d.iGM(N=d.CRH())&&(Q.noEntriesFound=N.first)}},viewQuery:function(Oe,Q){if(1&Oe&&(d.Gf(ye,7,d.SBq),d.Gf(xe,7,d.SBq)),2&Oe){let me;d.iGM(me=d.CRH())&&(Q.searchSelectInput=me.first),d.iGM(me=d.CRH())&&(Q.innerSelectSearch=me.first)}},hostVars:2,hostBindings:function(Oe,Q){2&Oe&&d.ekj("mat-select-search-inside-mat-option",Q.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:[d._Bn([{provide:A.JU,useExisting:(0,d.Gpc)(()=>ge),multi:!0}])],ngContentSelectors:q,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(Oe,Q){1&Oe&&(d.F$t(G),d._UZ(0,"input",0),d.TgZ(1,"div",1,2),d.YNc(3,Me,1,5,"mat-checkbox",3),d.TgZ(4,"input",4,5),d.NdJ("keydown",function(N){return Q._handleKeydown(N)})("keyup",function(N){return Q._handleKeyup(N)})("blur",function(){return Q.onBlur()}),d.qZA(),d.YNc(6,Ze,1,0,"mat-spinner",6),d.YNc(7,he,4,2,"button",7),d.Hsn(8),d.qZA(),d.YNc(9,P,4,2,"div",8),d.ALo(10,"async")),2&Oe&&(d.xp6(1),d.Q6J("ngClass",d.WLB(11,ce,Q.matSelect.multiple,Q._isToggleAllCheckboxVisible())),d.xp6(2),d.Q6J("ngIf",Q._isToggleAllCheckboxVisible()),d.xp6(1),d.Q6J("type",Q.type)("formControl",Q._formControl)("placeholder",Q.placeholderLabel),d.uIk("aria-label",Q.ariaLabel),d.xp6(2),d.Q6J("ngIf",Q.searching),d.xp6(1),d.Q6J("ngIf",!Q.hideClearSearchButton&&Q.value&&!Q.searching),d.xp6(2),d.Q6J("ngIf",d.lcZ(10,9,Q._showNoEntriesFound$)))},dependencies:[E.oG,O.Ou,H.lW,W.Hw,$.mk,$.O5,de.gM,A.Fj,A.JJ,A.oH,$.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}),ge})(),oe=(()=>{class ge{}return ge.\u0275fac=function(Oe){return new(Oe||ge)},ge.\u0275mod=d.oAB({type:ge}),ge.\u0275inj=d.cJS({imports:[[$.ez,A.UX,H.ot,E.p9,W.Ps,O.Cq,de.AV]]}),ge})()},15861:(Je,pe,h)=>{"use strict";function e(A,w,g,C,T,v,R){try{var U=A[v](R),_=U.value}catch(V){return void g(V)}U.done?w(_):Promise.resolve(_).then(C,T)}function d(A){return function(){var w=this,g=arguments;return new Promise(function(C,T){var v=A.apply(w,g);function R(_){e(v,C,T,R,U,"next",_)}function U(_){e(v,C,T,R,U,"throw",_)}R(void 0)})}}h.d(pe,{Z:()=>d})},4147:Je=>{"use strict";Je.exports={i8:"9.2.0"}}},Je=>{Je(Je.s=33246)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.fb1f66366479cd6f.js b/dist/apps/admin-gui/main.fb1f66366479cd6f.js new file mode 100644 index 000000000..e35af687a --- /dev/null +++ b/dist/apps/admin-gui/main.fb1f66366479cd6f.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>_t});var e=h(32105),c=h(10036),A=h(94650),w=h(36895),g=h(3848),C=h(51572),T=h(64877),E=h(62109),S=h(62707),U=h(38383),_=h(74010),V=h(9244),z=h(97392),Q=h(4859),te=h(10266),oe=h(42377),ee=h(64901),le=h(89383);function de(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",6)(1,"div",7)(2,"perun-web-apps-entity-search-select",8),A.NdJ("entitySelected",function(ae){const Se=A.CHM(Y).$implicit;return A.KtG(Se[0]=ae.namespace+":"+ae.friendlyName)}),A.ALo(3,"translate"),A.ALo(4,"translate"),A.ALo(5,"translate"),A.qZA()(),A.TgZ(6,"div",9)(7,"perun-web-apps-debounce-filter",10),A.NdJ("filter",function(ae){const Se=A.CHM(Y).$implicit;return A.KtG(Se[1]=ae)}),A.qZA()(),A.TgZ(8,"div",11)(9,"button",12),A.NdJ("click",function(){const re=A.CHM(Y).$implicit,Se=A.oxw(2);return A.KtG(Se.removeOption(re))}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA()()()()}if(2&Je){const Y=A.oxw(2);A.xp6(2),A.Q6J("entities",Y.availableAttrDefs)("searchFunction",Y.nameFunction)("mainTextFunction",Y.nameFunction)("secondaryTextFunction",Y.secondaryTextFunction)("selectPlaceholder",A.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",A.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",A.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),A.xp6(5),A.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),A.xp6(2),A.s9C("matTooltip",A.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),A.Q6J("disabled",1===Y.options.length)}}function Te(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",1),A.YNc(1,de,13,18,"div",2),A.TgZ(2,"button",3),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae.addOption())}),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.TgZ(5,"span",4),A.ALo(6,"translate"),A.TgZ(7,"button",5),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae.searchEntities())}),A.TgZ(8,"mat-icon"),A._uU(9,"search"),A.qZA(),A._uU(10),A.ALo(11,"translate"),A.qZA()()()}if(2&Je){const Y=A.oxw();A.xp6(1),A.Q6J("ngForOf",Y.options),A.xp6(2),A.hij(" ",A.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),A.Q6J("matTooltipDisabled",!Y.emptySearchString()),A.xp6(2),A.Q6J("disabled",Y.emptySearchString()),A.xp6(3),A.hij(" ",A.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let v=(()=>{class Je{constructor(){this.attributeSelected=new A.vpe,this.search=new A.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=Y=>Y.displayName,this.secondaryTextFunction=Y=>"#"+String(Y.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(Y=>Y.entity===this.attributesForEntity).sort(V.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(Y){this.options=this.options.filter(Ce=>Ce!==Y)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(Y=>0===Y[1].length)}searchEntities(){const Y={};this.options.forEach(Ce=>{Y[Ce[0]]=Ce[1]}),this.search.emit(Y)}}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[A.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["data-cy","searcher-search-button","mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(Y,Ce){1&Y&&A.YNc(0,Te,12,12,"div",0),2&Y&&A.Q6J("ngIf",void 0!==Ce.options)},dependencies:[w.sg,w.O5,z.Hw,Q.lW,te.gM,oe.i,ee.P,le.X$]}),Je})();function L(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function B(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"user"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","user")}}const W=function(){return["user","id","name"]};function q(Je,gt){if(1&Je&&A._UZ(0,"app-users-list",9),2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(3,W))("users",Y.entities)}}function ue(Je,gt){if(1&Je&&(A.YNc(0,B,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,q,1,4,"app-users-list",7)),2&Je){const Y=A.oxw();A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function ye(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Me(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-vo-search-select",13),A.NdJ("voSelected",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.voSelected(ae))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("vos",Y.vos)}}function we(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"member"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","user")}}const Ge=function(){return["id","voId","userId","status"]};function ce(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-members-list",14),A.NdJ("updateTable",function(){A.CHM(Y);const ae=A.oxw(2);return A.KtG(ae.searchEntities(ae.searchInput,"member"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(4,Ge))("disableExpirationChange",!0)("members",Y.entities)}}function Ze(Je,gt){if(1&Je&&(A.TgZ(0,"div",10),A.YNc(1,Me,1,1,"perun-web-apps-vo-search-select",11),A.qZA(),A.YNc(2,we,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(3,ce,1,5,"perun-web-apps-members-list",12)),2&Je){const Y=A.oxw();A.xp6(1),A.Q6J("ngIf",Y.vos.length>0),A.xp6(1),A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function he(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function xe(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"facility"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","facility")}}const j=function(){return["id","name","description"]};function R(Je,gt){if(1&Je&&A._UZ(0,"perun-web-apps-facilities-list",16),2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(3,j))("facilities",Y.entities)}}function G(Je,gt){if(1&Je&&(A.YNc(0,xe,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,R,1,4,"perun-web-apps-facilities-list",15)),2&Je){const Y=A.oxw();A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function se(Je,gt){1&Je&&(A._uU(0),A.ALo(1,"translate")),2&Je&&A.hij(" ",A.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function $(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"perun-web-apps-attribute-search-select",8),A.NdJ("search",function(ae){A.CHM(Y);const re=A.oxw(2);return A.KtG(re.searchEntities(ae,"resource"))}),A.qZA()}if(2&Je){const Y=A.oxw(2);A.Q6J("attributes",Y.allAttrDefinitions)("attributesForEntity","resource")}}const Ee=function(){return["id","name","description","voId","facilityId"]};function Oe(Je,gt){if(1&Je&&A._UZ(0,"perun-web-apps-resources-list",18),2&Je){const Y=A.oxw(2);A.Q6J("tableId",Y.tableId)("displayedColumns",A.DdM(3,Ee))("resources",Y.entities)}}function ct(Je,gt){if(1&Je&&(A.YNc(0,$,1,2,"perun-web-apps-attribute-search-select",6),A.YNc(1,Oe,1,4,"perun-web-apps-resources-list",17)),2&Je){const Y=A.oxw();A.Q6J("ngIf",!Y.loading),A.xp6(1),A.Q6J("ngIf",!Y.loadingEntityData)}}function Xe(Je,gt){1&Je&&A._UZ(0,"mat-spinner",19)}let _t=(()=>{class Je{constructor(Y,Ce,ae){this.attributesManager=Y,this.searcher=Ce,this.voService=ae,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=c.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Y=>{this.allAttrDefinitions=Y,this.loading=!1})}tabChanged(Y){switch(this.entities=[],Y){case 0:this.tableId=c.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=c.FF;break;case 2:this.tableId=c.$I;break;case 3:this.tableId=c.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(Y=>{this.vos=Y,this.selectedVo=Y[0],this.loadingEntityData=!1})}voSelected(Y){void 0!==Y&&(this.selectedVo=Y)}searchEntities(Y,Ce){switch(this.searchInput=Y,this.loadingEntityData=!0,Ce){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y.map(Ce=>({facility:Ce})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(Y=>{this.entities=Y,this.loadingEntityData=!1})}}return Je.id="AdminSearcherComponent",Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(e.H8),A.Y36(e.t7),A.Y36(e.YF))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(Y,Ce){2&Y&&A.ekj("router-component",Ce.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(Y,Ce){1&Y&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"mat-tab-group",1),A.NdJ("selectedIndexChange",function(re){return Ce.tabChanged(re)}),A.TgZ(4,"mat-tab",2),A.YNc(5,L,2,3,"ng-template",3),A.YNc(6,ue,2,2,"ng-template",4),A.qZA(),A.TgZ(7,"mat-tab"),A.YNc(8,ye,2,3,"ng-template",3),A.YNc(9,Ze,4,3,"ng-template",4),A.qZA(),A.TgZ(10,"mat-tab"),A.YNc(11,he,2,3,"ng-template",3),A.YNc(12,G,2,2,"ng-template",4),A.qZA(),A.TgZ(13,"mat-tab"),A.YNc(14,se,2,3,"ng-template",3),A.YNc(15,ct,2,2,"ng-template",4),A.qZA()(),A.YNc(16,Xe,1,0,"mat-spinner",5)),2&Y&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),A.xp6(15),A.Q6J("ngIf",Ce.loading||Ce.loadingEntityData))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,C.Ou,T.C,E.C,S.M,U.O,_.X,v,le.X$]}),Je})()},80774:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>v});var e=h(95017),c=h(32105),A=h(10036),w=h(9244),g=h(40009),C=h(90719),T=h(32080),E=h(94650),S=h(65412),U=h(36895),_=h(4859),V=h(51572),z=h(60205),Q=h(96214),te=h(7434),oe=h(89383);function ee(L,B){if(1&L){const W=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){E.CHM(W);const ue=E.oxw();return E.KtG(ue.createService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&L&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function le(L,B){if(1&L){const W=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(W);const ue=E.oxw();return E.KtG(ue.deleteService())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&L){const W=E.oxw();E.Q6J("disabled",0===W.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function de(L,B){1&L&&E._UZ(0,"mat-spinner",9)}function Te(L,B){if(1&L&&E._UZ(0,"app-services-list",10),2&L){const W=E.oxw();E.Q6J("filterValue",W.filterValue)("selection",W.selection)("services",W.services)("tableId",W.tableId)}}let v=(()=>{class L{constructor(W,q,ue){this.serviceManager=W,this.dialog=q,this.authResolver=ue,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=A.NL}ngOnInit(){this.serviceManager.getServices().subscribe(W=>{this.services=W,this.refreshTable()})}createService(){const W=(0,w.kZ)();W.width="600px",W.data={theme:"admin-theme"},this.dialog.open(g.R,W).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}deleteService(){const W=(0,w.kZ)();W.width="600px",W.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(C.m,W).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(W=>{this.services=W,this.selection.clear(),this.loading=!1})}applyFilter(W){this.filterValue=W}}return L.id="AdminServicesComponent",L.\u0275fac=function(W){return new(W||L)(E.Y36(c.KK),E.Y36(S.uw),E.Y36(T.x4))},L.\u0275cmp=E.Xpm({type:L,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","data-cy","service-create-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","data-cy","service-delete-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","data-cy","service-create-button","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","data-cy","service-delete-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(W,q){1&W&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return q.refreshTable()}),E.qZA(),E.YNc(5,ee,3,3,"button",2),E.YNc(6,le,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(ye){return q.applyFilter(ye)}),E.qZA(),E.YNc(8,de,1,0,"mat-spinner",5),E.YNc(9,Te,1,4,"app-services-list",6),E.qZA()),2&W&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"ADMIN.SERVICES.TITLE")),E.xp6(3),E.Q6J("ngIf",q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("ngIf",q.authResolver.isPerunAdmin()),E.xp6(1),E.Q6J("placeholder","ADMIN.SERVICES.FILTER"),E.xp6(1),E.Q6J("ngIf",q.loading),E.xp6(1),E.Q6J("ngIf",!q.loading))},dependencies:[U.O5,_.lW,V.Ou,z.Q,Q.t,te.L,oe.X$]}),L})()},25828:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>U});var e=h(10036),c=h(64080),A=h(32080),w=h(94650),g=h(56709),C=h(64901),T=h(88561),E=h(89383);const S=function(){return["user","id","name","email","logins","organization"]};let U=(()=>{class _{constructor(z){this.storeService=z,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[c.r.USER_DEF_ORGANIZATION,c.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(z){this.searchString=z}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return _.id="AdminUsersComponent",_.\u0275fac=function(z){return new(z||_)(w.Y36(A.d6))},_.\u0275cmp=w.Xpm({type:_,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(z,Q){2&z&&w.ekj("router-component",Q.true)},decls:8,vars:16,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo"]],template:function(z,Q){1&z&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-debounce-filter",1),w.NdJ("filter",function(oe){return Q.onSearchByString(oe)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return Q.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&z&&(w.xp6(1),w.Oqu(w.lcZ(2,11,"ADMIN.USERS.TITLE")),w.xp6(2),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",Q.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",Q.searchString)("attrNames",Q.attributes)("displayedColumns",w.DdM(15,S))("tableId",Q.tableId)("withoutVo",Q.usersWithoutVo))},dependencies:[g.oG,C.P,T.M,E.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),_})()},72077:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>L});var e=h(32080),c=h(17445),A=h(80529),w=h(9244),g=h(94650),C=h(65412),T=h(4859),E=h(89383);let S=(()=>{class B{constructor(q){this.dialogRef=q}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return B.\u0275fac=function(q){return new(q||B)(g.Y36(C.so))},B.\u0275cmp=g.Xpm({type:B,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(q,ue){1&q&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1)(4,"div",2)(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",3)(9,"button",4),g.NdJ("click",function(){return ue.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return ue.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA()()()),2&q&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),g.xp6(5),g.hij(" ",g.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),g.xp6(4),g.hij(" ",g.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),g.xp6(3),g.hij(" ",g.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},dependencies:[T.lW,C.uh,C.xY,C.H8,E.X$]}),B})();var U=h(94364),_=h(39300);let V=(()=>{class B{constructor(q,ue){this.router=q,this.routeReuseStrategy=ue;const ye=ue;q.events.subscribe(Me=>{Me instanceof U.OD&&ye.setLastNavigationType("popstate"===Me.navigationTrigger?"back":"direct")})}init(){}}return B.\u0275fac=function(q){return new(q||B)(g.LFG(U.F0),g.LFG(U.wN))},B.\u0275prov=g.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();const z=["footer"];function Q(B,W){if(1&B&&(g.TgZ(0,"div",3)(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&B){const q=g.oxw();g.xp6(3),g.hij(" ",q.warningMessage,"\n")}}const te=function(B,W){return{top:B,background:W}},oe=function(B,W){return{"margin-top":B,"min-height":W}},ee=function(B,W){return{"border-color":B,background:W}},le=function(B){return{"background-color":B}},de=function(B){return{"min-height":B}};function Te(B,W){if(1&B&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5)(2,"mat-sidenav",6,7)(4,"ng-scrollbar"),g._UZ(5,"app-side-menu",8),g.qZA()(),g.TgZ(6,"mat-sidenav-content",9)(7,"div",10),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,11),g._UZ(11,"perun-web-apps-footer"),g.qZA()()()),2&B){const q=g.MAs(3),ue=g.oxw();g.Q6J("principal",ue.principal)("ngStyle",g.WLB(12,te,ue.getNavMenuTop(),ue.navBackgroundColor))("sideNav",q),g.xp6(1),g.Q6J("ngStyle",g.WLB(15,oe,ue.getSideNavMarginTop(),ue.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",ue.sidebarMode)("fixedTopGap",ue.getTopGap())("ngStyle",g.WLB(18,ee,ue.sideBarBorderColor,ue.sideMenubackgroundColor))("opened",!ue.isMobile()),g.xp6(3),g.Q6J("sideNav",q),g.xp6(1),g.Q6J("ngStyle",g.VKq(21,le,ue.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(23,de,ue.contentInnerMinHeight))}}function v(B,W){1&B&&g._UZ(0,"perun-web-apps-login-screen-base",12),2&B&&g.Q6J("application","admin-gui")}let L=(()=>{class B{constructor(q,ue,ye,Me,we,Ge,ce){this.cache=q,this.store=ue,this.http=ye,this.dialog=Me,this.router=we,this.initAuth=Ge,this.cd=ce,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("warning_message"),this.version=h(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=B.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,c.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,_.h)(q=>q instanceof U.OD)).subscribe(q=>{this.updateInitAccessedPage(q)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){const q=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+q+"px - 112px)":"calc(100vh - "+q+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(q){q.url===sessionStorage.getItem("initPage")?("imperative"===q.navigationTrigger&&q.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===q.navigationTrigger&&(q.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(q.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const q=new A.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:q}).subscribe(ue=>{const ye=ue.version;if(ye)if(this.version&&"SNAPSHOT"!==ye&&this.version!==ye){const Me=(0,w.kZ)();this.dialog.open(S,Me)}else this.version=ye})}}return B.minWidth=992,B.\u0275fac=function(q){return new(q||B)(g.Y36(V),g.Y36(e.d6),g.Y36(A.eN),g.Y36(C.uw),g.Y36(U.F0),g.Y36(e.v0),g.Y36(g.sBO))},B.\u0275cmp=g.Xpm({type:B,selectors:[["app-root"]],viewQuery:function(q,ue){if(1&q&&g.Gf(z,5),2&q){let ye;g.iGM(ye=g.CRH())&&(ue.footer=ye.first)}},hostBindings:function(q,ue){1&q&&g.NdJ("resize",function(Me){return ue.getScreenSize(Me)},!1,g.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"principal","ngStyle","sideNav"],[3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(q,ue){1&q&&(g.YNc(0,Q,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,Te,12,25,"ng-template",2),g.YNc(3,v,1,1,"ng-template",2)),2&q&&(g.Q6J("ngIf",ue.displayWarning),g.xp6(1),g.Q6J("displayWarning",ue.displayWarning),g.xp6(1),g.Q6J("ngIf",!ue.isLoginScreenShow&&!ue.isServiceAccess&&!ue.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",ue.isLoginScreenShow||ue.isServiceAccess||ue.isServiceLogin()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}ng-scrollbar[_ngcontent-%COMP%]{--scrollbar-thumb-color: #6a6a6a;--scrollbar-thumb-hover-color: lightgrey}"]}),B})()},77968:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>c});var e=h(94650);let c=(()=>{class A{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(g){this.homeItemsChange.emit(g)}setAccessMenuItems(g){this.accessItemsChange.emit(g)}setFacilityMenuItems(g){this.facilityItemsChange.emit(g)}setAdminItems(g){this.adminItemsChange.emit(g)}setUserItems(g){this.userItemsChange.emit(g)}reset(){this.resetChange.emit()}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275prov=e.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},37380:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>le});var e=h(32105),c=h(10036),A=h(32080),w=h(94650),g=h(36895),C=h(3238),T=h(59549),E=h(84385),S=h(51572),U=h(24179),_=h(96214),V=h(7434),z=h(89383);function Q(de,Te){if(1&de&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&de){const v=Te.$implicit;w.Q6J("value",v.id),w.xp6(1),w.hij(" ",v.name," ")}}function te(de,Te){1&de&&w._UZ(0,"mat-spinner",10)}const oe=function(){return["id","vo","name","description"]};function ee(de,Te){if(1&de&&w._UZ(0,"perun-web-apps-groups-list",11),2&de){const v=w.oxw();w.Q6J("displayedColumns",w.DdM(6,oe))("groups",v.groupsToShow)("disableMembers",!1)("filter",v.filterValue)("groupsToDisableRouting",v.groupsWithoutRouteAuth)("tableId",v.tableId)}}let le=(()=>{class de{constructor(v,L,B){this.facilityManager=v,this.authResolver=L,this.entityStorageService=B,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=c.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(v=>{this.vos=v,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(v=>v.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(v=>{this.facilityManager.getAllowedGroups(this.facility.id,v.id).subscribe(L=>{this.groups=this.groups.concat(L),this.groupsToShow=this.groups,this.setAuthRights(v,L),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(v,L){L.forEach(B=>{this.authResolver.isAuthorized("getGroupById_int_policy",[v,B])||this.groupsWithoutRouteAuth.add(B.id)})}applyFilter(v){this.filterValue=v}}return de.id="FacilityAllowedGroupsComponent",de.\u0275fac=function(v){return new(v||de)(w.Y36(e.IQ),w.Y36(A.x4),w.Y36(A.fb))},de.\u0275cmp=w.Xpm({type:de,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(v,L){2&v&&w.ekj("router-component",L.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(v,L){1&v&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return L.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2)(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return L.showGroup()})("valueChange",function(W){return L.selected=W}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,Q,2,2,"mat-option",5),w.qZA()(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(W){return L.applyFilter(W)}),w.qZA(),w.YNc(15,te,1,0,"mat-spinner",7),w.YNc(16,ee,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&v&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",L.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",L.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",L.loading),w.xp6(1),w.Q6J("ngIf",!L.loading))},dependencies:[g.sg,g.O5,C.ey,T.KE,T.hX,E.gD,S.Ou,U.W,_.t,V.L,z.X$]}),de})()},25610:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>W});var e=h(10036),c=h(32105),A=h(32080),w=h(64080),g=h(94650),C=h(36895),T=h(24006),E=h(51572),S=h(90455),U=h(96214),_=h(62707),V=h(45703),z=h(64901),Q=h(88561),te=h(30540),oe=h(97392),ee=h(4859),le=h(89383);let de=(()=>{class q{constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return q.\u0275fac=function(ye){return new(ye||q)},q.\u0275cmp=g.Xpm({type:q,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(ye,Me){1&ye&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Me.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA()(),g.TgZ(7,"button",0),g.NdJ("click",function(){return Me.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&ye&&(g.Gre("mr-2 ",Me.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Me.filtersCount?"("+Me.filtersCount+")":null," "),g.xp6(3),g.Oqu(Me.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},dependencies:[oe.Hw,ee.lW,le.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),q})();function Te(q,ue){if(1&q){const ye=g.EpF();g.TgZ(0,"div",8)(1,"div",9)(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.allowed=we)})("change",function(){g.CHM(ye);const we=g.oxw();return g.KtG(we.changeFilter())}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA()(),g.TgZ(8,"div",1)(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.voSelected(we))}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.resourceSelected(we))}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(we){g.CHM(ye);const Ge=g.oxw();return g.KtG(Ge.serviceSelected(we))}),g.qZA()()()}if(2&q){const ye=g.oxw();g.xp6(2),g.Q6J("ngModel",ye.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,12,ye.toggle_messages[ye.allowed?1:0])),g.xp6(3),g.Q6J("vos",ye.vos)("vo",ye.selectedVo),g.xp6(1),g.Q6J("resources",ye.filteredResources)("displayStatus",!1)("resource",ye.selectedResource),g.xp6(1),g.Q6J("services",ye.filteredServices)("service",ye.selectedService)}}function v(q,ue){1&q&&g._UZ(0,"mat-spinner",15)}const L=function(){return["id","name","email","logins","organization"]};function B(q,ue){if(1&q&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&q){const ye=g.oxw();g.Q6J("attrNames",ye.attributes)("disableRouting",!ye.routeAuth)("displayedColumns",g.DdM(10,L))("onlyAllowed",ye.allowed)("facilityId",ye.facility.id)("searchString",ye.filterValue)("resourceId",-1===ye.selectedResource.id?null:ye.selectedResource.id)("serviceId",-1===ye.selectedService.id?null:ye.selectedService.id)("tableId",ye.tableId)("voId",-1===ye.selectedVo.id?null:ye.selectedVo.id)}}let W=(()=>{class q{constructor(ye,Me,we,Ge,ce,Ze){this.facilityService=ye,this.serviceService=Me,this.resourceService=we,this.authResolver=Ge,this.storeService=ce,this.entityStorageService=Ze,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(ye=>{this.resources=[this.emptyResource].concat(ye),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Me=>{this.vos=[this.emptyVo].concat(Me),this.serviceService.getAssignedServices(this.facility.id).subscribe(we=>{this.services=[this.emptyService].concat(we),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ye){this.filterValue=ye}voSelected(ye){this.selectedVo.id!==ye.id&&(this.selectedVo=ye,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===ye.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Me=>Me.voId===ye.id),this.serviceService.getAssignedServicesVo(this.facility.id,ye.id).subscribe(Me=>{this.filteredServices=[this.emptyService].concat(Me),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(ye){this.selectedResource.id!==ye.id&&(this.selectedResource=ye,this.selectedService=this.emptyService,-1===ye.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(ye.id).subscribe(Me=>{this.filteredServices=[this.emptyService].concat(Me),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(ye){this.selectedService=ye,this.changeFilter()}}return q.id="FacilityAllowedUsersComponent",q.\u0275fac=function(ye){return new(ye||q)(g.Y36(c.IQ),g.Y36(c.KK),g.Y36(c.xk),g.Y36(A.x4),g.Y36(A.d6),g.Y36(A.fb))},q.\u0275cmp=g.Xpm({type:q,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId"]],template:function(ye,Me){1&ye&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Me.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(Ge){return Me.applyFilter(Ge)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(Ge){return Me.advancedFilter=Ge})("clearFilters",function(){return Me.clearFilters()}),g.qZA()(),g.YNc(8,Te,12,14,"div",5),g.YNc(9,v,1,0,"mat-spinner",6),g.YNc(10,B,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&ye&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",Me.advancedFilter)("filtersCount",Me.filtersCount),g.xp6(1),g.Q6J("ngIf",Me.advancedFilter),g.xp6(1),g.Q6J("ngIf",Me.loading),g.xp6(1),g.Q6J("ngIf",!Me.loading))},dependencies:[C.O5,T.JJ,T.On,E.Ou,S.Rr,U.t,_.M,V.L,z.P,Q.M,te.J,de,le.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),q})()},34904:(Ye,pe,h)=>{"use strict";h.d(pe,{f:()=>Me});var e=h(95017),c=h(533),A=h(32105),w=h(24006),g=h(65412),C=h(32080),T=h(94650),E=h(89383),S=h(36895),U=h(59549),_=h(284),V=h(4859),z=h(51572),Q=h(62707);function te(we,Ge){1&we&&T._UZ(0,"mat-spinner",5)}function oe(we,Ge){if(1&we){const ce=T.EpF();T.TgZ(0,"div",6)(1,"perun-web-apps-vo-search-select",7),T.NdJ("voSelected",function(he){T.CHM(ce);const xe=T.oxw();return T.KtG(xe.selectedVo=he)}),T.qZA(),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",8),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA()(),T.TgZ(8,"mat-form-field"),T._UZ(9,"input",9),T.ALo(10,"translate"),T.TgZ(11,"mat-error"),T._uU(12),T.ALo(13,"translate"),T.qZA()()()}if(2&we){const ce=T.oxw();T.xp6(1),T.Q6J("vos",ce.vos),T.xp6(2),T.s9C("placeholder",T.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),T.Q6J("formControl",ce.nameCtrl),T.xp6(3),T.hij(" ",T.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),T.xp6(3),T.s9C("placeholder",T.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),T.Q6J("formControl",ce.descriptionCtrl),T.xp6(3),T.hij(" ",T.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let ee=(()=>{class we{constructor(ce,Ze,he,xe,j,R){this.dialogRef=ce,this.data=Ze,this.notificator=he,this.voService=xe,this.translate=j,this.resourcesManager=R,this.vos=[],this.selectedVo=null,j.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(G=>this.successMessage=G)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(ce=>{this.vos=ce,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.p4(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.p4("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return we.\u0275fac=function(ce){return new(ce||we)(T.Y36(g.so),T.Y36(g.WI),T.Y36(C.V6),T.Y36(A.YF),T.Y36(E.sK),T.Y36(A.xk))},we.\u0275cmp=T.Xpm({type:we,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(ce,Ze){1&ce&&(T.TgZ(0,"div"),T.YNc(1,te,1,0,"mat-spinner",0),T.YNc(2,oe,14,15,"div",1),T.TgZ(3,"div",2)(4,"button",3),T.NdJ("click",function(){return Ze.onCancel()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"button",4),T.NdJ("click",function(){return Ze.onSubmit()}),T._uU(8),T.ALo(9,"translate"),T.qZA()()()),2&ce&&(T.Tol(Ze.theme),T.xp6(1),T.Q6J("ngIf",Ze.loading),T.xp6(1),T.Q6J("ngIf",!Ze.loading),T.xp6(3),T.hij(" ",T.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Ze.nameCtrl.invalid||Ze.descriptionCtrl.invalid||null===Ze.selectedVo||Ze.loading),T.xp6(1),T.hij(" ",T.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},dependencies:[S.O5,U.TO,U.KE,_.Nt,w.Fj,w.JJ,w.Q7,w.oH,V.lW,g.xY,g.H8,z.Ou,Q.M,E.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),we})();var le=h(10036),de=h(9244),Te=h(96214),v=h(7434),L=h(62109),B=h(30540);function W(we,Ge){if(1&we){const ce=T.EpF();T.TgZ(0,"button",9),T.NdJ("click",function(){T.CHM(ce);const he=T.oxw();return T.KtG(he.createResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&we&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function q(we,Ge){if(1&we){const ce=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){T.CHM(ce);const he=T.oxw();return T.KtG(he.removeResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&we){const ce=T.oxw();T.Q6J("disabled",0===ce.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function ue(we,Ge){1&we&&T._UZ(0,"mat-spinner",11)}function ye(we,Ge){if(1&we&&T._UZ(0,"perun-web-apps-resources-list",12),2&we){const ce=T.oxw();T.Q6J("tableId",ce.tableId)("filterValue",ce.filterValue)("resources",ce.resources)("selection",ce.selected)("disableRouting",!ce.routeAuth)("displayedColumns",ce.displayedColumns)}}let Me=(()=>{class we{constructor(ce,Ze,he,xe,j){this.dialog=ce,this.facilitiesManager=Ze,this.servicesManager=he,this.authResolver=xe,this.entityStorageService=j,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=le.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(ce=>{this.services=[this.emptyService].concat(ce)}),this.refreshTable()}removeResource(){const ce=(0,de.kZ)();ce.width="450px",ce.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(c.f,ce).afterClosed().subscribe(he=>{he&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(ce=>{this.resources=ce,this.selected.clear(),this.setAuthRights(),this.loading=!1}):this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(ce=>{this.resources=ce,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(ce){this.filterValue=ce}createResource(){const ce=(0,de.kZ)();ce.width="1350px",ce.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(ee,ce).afterClosed().subscribe(he=>{he&&this.refreshTable()})}serviceSelected(ce){this.selectedService=ce,this.refreshTable()}}return we.id="FacilityResourcesComponent",we.\u0275fac=function(ce){return new(ce||we)(T.Y36(g.uw),T.Y36(A.IQ),T.Y36(A.KK),T.Y36(C.x4),T.Y36(C.fb))},we.\u0275cmp=T.Xpm({type:we,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(ce,Ze){2&ce&&T.ekj("router-component",Ze.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(ce,Ze){1&ce&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",1)(5,"perun-web-apps-refresh-button",2),T.NdJ("refresh",function(){return Ze.refreshTable()}),T.qZA(),T.YNc(6,W,3,3,"button",3),T.YNc(7,q,3,4,"button",4),T.TgZ(8,"perun-web-apps-service-search-select",5),T.NdJ("serviceSelected",function(xe){return Ze.serviceSelected(xe)}),T.qZA(),T.TgZ(9,"perun-web-apps-immediate-filter",6),T.NdJ("filter",function(xe){return Ze.applyFilter(xe)}),T.qZA()(),T.YNc(10,ue,1,0,"mat-spinner",7),T.YNc(11,ye,1,6,"perun-web-apps-resources-list",8),T.qZA()),2&ce&&(T.xp6(2),T.Oqu(T.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),T.xp6(4),T.Q6J("ngIf",Ze.addAuth),T.xp6(1),T.Q6J("ngIf",Ze.removeAuth),T.xp6(1),T.Q6J("services",Ze.services)("service",Ze.selectedService),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",Ze.loading),T.xp6(1),T.Q6J("ngIf",!Ze.loading))},dependencies:[S.O5,V.lW,z.Ou,Te.t,v.L,L.C,B.J,E.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),we})()},86353:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>he});var e=h(32105),c=h(9244),A=h(10036),w=h(95017),g=h(65412),C=h(32080),T=h(24006),E=h(94650),S=h(89383),U=h(94364),_=h(36895),V=h(3238),z=h(59549),Q=h(284),te=h(4859),oe=h(84385),ee=h(51572),le=h(98380);function de(xe,j){1&xe&&E._UZ(0,"mat-spinner",7)}function Te(xe,j){if(1&xe){const R=E.EpF();E.TgZ(0,"mat-option",16),E.NdJ("click",function(){const $=E.CHM(R).$implicit,Ee=E.oxw(2);return E.KtG(Ee.srcFacility=$)}),E._uU(1),E.qZA()}if(2&xe){const R=j.$implicit;E.Q6J("value",R),E.xp6(1),E.hij(" ",R.name," ")}}function v(xe,j){if(1&xe){const R=E.EpF();E.TgZ(0,"div",8)(1,"mat-form-field"),E._UZ(2,"input",9),E.ALo(3,"translate"),E.TgZ(4,"mat-error"),E._uU(5),E.ALo(6,"translate"),E.qZA()(),E.TgZ(7,"mat-form-field"),E._UZ(8,"input",10),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"mat-form-field")(11,"mat-select",11),E.ALo(12,"translate"),E.TgZ(13,"mat-option",12),E.NdJ("click",function(){E.CHM(R);const se=E.oxw();return E.KtG(se.srcFacility=null)}),E._uU(14),E.ALo(15,"translate"),E.qZA(),E.YNc(16,Te,2,2,"mat-option",13),E.qZA()(),E.TgZ(17,"perun-web-apps-alert",14),E._UZ(18,"i",15),E.ALo(19,"translate"),E.qZA()()}if(2&xe){const R=E.oxw();E.xp6(2),E.s9C("placeholder",E.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),E.Q6J("formControl",R.nameControl),E.xp6(3),E.Oqu(E.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),E.xp6(3),E.s9C("placeholder",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),E.Q6J("formControl",R.descControl),E.xp6(3),E.s9C("placeholder",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),E.xp6(3),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),E.xp6(2),E.Q6J("ngForOf",R.facilities),E.xp6(2),E.Q6J("innerHTML",E.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),E.oJD)}}let L=(()=>{class xe{constructor(R,G,se,$,Ee,Oe,ct){this.dialogRef=R,this.data=G,this.facilitiesManager=se,this.notificator=$,this.translate=Ee,this.router=Oe,this.entityStorageService=ct,this.nameControl=new T.p4("",[T.kI.required]),this.descControl=new T.p4(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(R=>{this.facilities=R,this.loading=!1},()=>this.loading=!1)}onCreate(R){this.loading=!0,this.configure=R,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(G=>{this.entityStorageService.setEntity({id:G.id,beanName:G.beanName}),sessionStorage.setItem("newFacilityId",String(G.id)),null!==this.srcFacility?this.copyFacilitySettings(G.id):this.handleSuccess(G.id)})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(R){this.facilitiesManager.copyAttributes(this.srcFacility.id,R).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,R).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,R).subscribe(()=>{this.handleSuccess(R)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(R){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",R.toString(),"configuration"]),this.dialogRef.close(!0)}}return xe.\u0275fac=function(R){return new(R||xe)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.IQ),E.Y36(C.V6),E.Y36(S.sK),E.Y36(U.F0),E.Y36(C.fb))},xe.\u0275cmp=E.Xpm({type:xe,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(R,G){1&R&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,de,1,0,"mat-spinner",1),E.YNc(5,v,20,21,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return G.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return G.onCreate(!1)}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"button",6),E.NdJ("click",function(){return G.onCreate(!0)}),E._uU(14),E.ALo(15,"translate"),E.qZA()()()),2&R&&(E.Tol(G.theme),E.xp6(2),E.Oqu(E.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),E.xp6(2),E.Q6J("ngIf",G.loading),E.xp6(1),E.Q6J("ngIf",!G.loading),E.xp6(3),E.hij(" ",E.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===G.nameControl.value.trim().length||G.loading),E.xp6(1),E.hij(" ",E.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===G.nameControl.value.trim().length||!!G.srcFacility||G.loading),E.xp6(1),E.hij(" ",E.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},dependencies:[_.sg,_.O5,V.ey,z.TO,z.KE,Q.Nt,T.Fj,T.JJ,T.Q7,T.oH,te.lW,g.xY,g.H8,oe.gD,ee.Ou,le.w,S.X$]}),xe})();var B=h(54037),W=h(77968),q=h(97392),ue=h(96214),ye=h(4235),Me=h(7434),we=h(74010);function Ge(xe,j){1&xe&&E._UZ(0,"mat-spinner",9)}function ce(xe,j){if(1&xe&&E._UZ(0,"perun-web-apps-facilities-list",10),2&xe){const R=E.oxw();E.Q6J("tableId",R.tableId)("selection",R.selection)("filterValue",R.filterValue)("facilities",R.facilities)("recentIds",R.recentIds)}}const Ze=function(){return{color:"black"}};let he=(()=>{class xe{constructor(R,G,se){this.facilityManager=R,this.sideMenuService=G,this.dialog=se,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=A.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(R=>{this.selection.clear(),this.facilities=R,this.recentIds=(0,c.vL)("facilities"),this.loading=!1})}onCreate(){const R=(0,c.kZ)();R.width="800px",R.data={theme:"facility-theme"},this.dialog.open(L,R).afterClosed().subscribe(se=>{se&&(this.loading=!0,this.refreshTable())})}onDelete(){const R=(0,c.kZ)();R.width="500px",R.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(B.Y,R).afterClosed().subscribe(se=>{se&&this.refreshTable()})}applyFilter(R){this.filterValue=R}}return xe.id="FacilitySelectPageComponent",xe.\u0275fac=function(R){return new(R||xe)(E.Y36(e.IQ),E.Y36(W.D),E.Y36(g.uw))},xe.\u0275cmp=E.Xpm({type:xe,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(R,G){2&R&&E.ekj("router-component",G.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(R,G){1&R&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return G.refreshTable()}),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return G.onCreate()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return G.onDelete()}),E._uU(11),E.ALo(12,"translate"),E.qZA(),E.TgZ(13,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function($){return G.applyFilter($)}),E.qZA(),E.YNc(14,Ge,1,0,"mat-spinner",7),E.YNc(15,ce,1,5,"perun-web-apps-facilities-list",8),E.qZA()),2&R&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(15,Ze)),E.xp6(1),E.hij(" ",E.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),E.xp6(4),E.hij(" ",E.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),E.xp6(2),E.Q6J("disabled",0===G.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),E.xp6(2),E.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",G.loading),E.xp6(1),E.Q6J("ngIf",!G.loading))},dependencies:[_.O5,_.PC,q.Hw,te.lW,ee.Ou,ue.t,ye.W,Me.L,we.X,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),xe})()},51076:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>le});var e=h(65412),c=h(32080),A=h(32105),w=h(9244),g=h(24006),C=h(94650),T=h(89383),E=h(36895),S=h(3238),U=h(59549),_=h(284),V=h(4859),z=h(84385),Q=h(57706);let te=(()=>{class de{constructor(v){this.translateService=v,this.returnData=""}transform(v){switch(v){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(L=>{this.returnData=L});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(L=>{this.returnData=L});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(L=>{this.returnData=L});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(L=>{this.returnData=L});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(L=>{this.returnData=L});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(L=>{this.returnData=L});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(L=>{this.returnData=L});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(L=>{this.returnData=L});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(L=>{this.returnData=L});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(L=>{this.returnData=L});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(L=>{this.returnData=L});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(L=>{this.returnData=L});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(L=>{this.returnData=L});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(L=>{this.returnData=L});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(L=>{this.returnData=L});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(L=>{this.returnData=L});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(L=>{this.returnData=L});break;default:return v}return this.returnData}}return de.\u0275fac=function(v){return new(v||de)(C.Y36(T.sK,16))},de.\u0275pipe=C.Yjl({name:"applicationFormWidgetDescription",type:de,pure:!0}),de})();function oe(de,Te){if(1&de&&(C.TgZ(0,"mat-option",9),C._uU(1),C.ALo(2,"applicationFormItemType"),C.qZA()),2&de){const v=Te.$implicit;C.Q6J("value",v),C.xp6(1),C.hij(" ",C.lcZ(2,2,v)," ")}}function ee(de,Te){if(1&de&&(C.TgZ(0,"mat-option",9),C._uU(1),C.qZA()),2&de){const v=Te.$implicit;C.Q6J("value",v),C.xp6(1),C.hij(" ",v," ")}}let le=(()=>{class de{constructor(v,L,B,W){this.dialogRef=v,this.data=L,this.translateService=B,this.store=W,this.languages=this.store.get("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(v=>{this.nameCtrl=new g.p4("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(v);for(const L of this.data.applicationFormItems)this.items.push(L.shortname),L.type===A.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(B=>B!==A.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=v})}cancel(){this.dialogRef.close(void 0)}submit(){const v=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,v])}createApplicationItem(){const v=(0,w.dv)(this.languages);v.id=this.data.fakeId,v.shortname=this.nameCtrl.value,v.type=this.selectedWidget;for(let L=0;L{"use strict";h.d(pe,{W:()=>V});var e=h(65412),c=h(32105),A=h(32080),w=h(94650),g=h(89383),C=h(36895),T=h(4859),E=h(51572),S=h(62707),U=h(82322);function _(z,Q){1&z&&w._UZ(0,"mat-spinner",9)}let V=(()=>{class z{constructor(te,oe,ee,le,de,Te,v,L,B){this.dialogRef=te,this.voService=oe,this.groupService=ee,this.translateService=le,this.registrarManager=de,this.notificatorService=Te,this.apiRequest=v,this.cd=L,this.data=B,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=W=>W.name,le.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(W=>this.successMessage=W),le.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(W=>this.privilegeMessage=W),le.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(W=>this.noFormMessage=W)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(te=>{this.vos=te,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},te=>{const oe=te.error;"FormNotExistsException"===oe.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===oe.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(te){this.selectedVo=te,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(te=>{this.groups=te}):this.groups=[],this.selectedGroup=null}}return z.\u0275fac=function(te){return new(te||z)(w.Y36(e.so),w.Y36(c.YF),w.Y36(c.ff),w.Y36(g.sK),w.Y36(c.tk),w.Y36(A.V6),w.Y36(A.F5),w.Y36(w.sBO),w.Y36(e.WI))},z.\u0275cmp=w.Xpm({type:z,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(te,oe){1&te&&(w.TgZ(0,"div")(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,_,1,0,"mat-spinner",1),w.TgZ(5,"div",2)(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(le){return oe.voSelected(le)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(le){return oe.selectedGroup=le}),w.qZA()(),w.TgZ(15,"div",6)(16,"button",7),w.NdJ("click",function(){return oe.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return oe.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA()()()),2&te&&(w.Tol(oe.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",oe.loading),w.xp6(1),w.Q6J("hidden",oe.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",oe.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",oe.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!oe.selectedVo&&!oe.selectedGroup||oe.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},dependencies:[C.O5,T.lW,e.uh,e.xY,e.H8,E.Ou,S.M,U.h,g.X$]}),z})()},40009:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>oe});var e=h(65412),c=h(32080),A=h(24006),w=h(32105),g=h(94650),C=h(89383),T=h(36895),E=h(59549),S=h(284),U=h(4859),_=h(56709),V=h(51572);function z(ee,le){1&ee&&g._UZ(0,"mat-spinner",4)}function Q(ee,le){if(1&ee){const de=g.EpF();g.TgZ(0,"div",5)(1,"mat-form-field")(2,"input",6),g.NdJ("change",function(){g.CHM(de);const v=g.oxw();return g.KtG(v.makePath())}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA()(),g.TgZ(7,"mat-form-field")(8,"input",7),g.NdJ("ngModelChange",function(v){g.CHM(de);const L=g.oxw();return g.KtG(L.description=v)}),g.ALo(9,"translate"),g.qZA()(),g.TgZ(10,"mat-form-field"),g._UZ(11,"input",8),g.ALo(12,"translate"),g.TgZ(13,"mat-error"),g._uU(14),g.ALo(15,"translate"),g.qZA()(),g.TgZ(16,"mat-form-field"),g._UZ(17,"input",9),g.ALo(18,"translate"),g.TgZ(19,"mat-error"),g._uU(20),g.ALo(21,"translate"),g.qZA()(),g.TgZ(22,"mat-form-field"),g._UZ(23,"input",8),g.ALo(24,"translate"),g.TgZ(25,"mat-error"),g._uU(26),g.ALo(27,"translate"),g.qZA()(),g.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(v){g.CHM(de);const L=g.oxw();return g.KtG(L.status=v)}),g._uU(32),g.ALo(33,"translate"),g.qZA()(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(v){g.CHM(de);const L=g.oxw();return g.KtG(L.propagateExpiredMembers=v)}),g._uU(38),g.ALo(39,"translate"),g.qZA()()()}if(2&ee){const de=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",de.nameControl),g.xp6(3),g.Oqu(g.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),g.xp6(3),g.s9C("placeholder",g.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),g.Q6J("ngModel",de.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",de.delayControl),g.xp6(3),g.Oqu(g.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),g.xp6(3),g.s9C("placeholder",g.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),g.Q6J("formControl",de.recurrenceControl),g.xp6(3),g.Oqu(g.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),g.xp6(3),g.s9C("placeholder",g.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),g.Q6J("formControl",de.pathControl),g.xp6(3),g.Oqu(g.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),g.xp6(3),g.hij("",g.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),g.xp6(2),g.Q6J("ngModel",de.status),g.xp6(1),g.Oqu(g.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),g.xp6(3),g.hij("",g.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),g.xp6(2),g.Q6J("ngModel",de.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function te(ee,le){if(1&ee){const de=g.EpF();g.TgZ(0,"div",12)(1,"button",13),g.NdJ("click",function(){g.CHM(de);const v=g.oxw();return g.KtG(v.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(de);const v=g.oxw();return g.KtG(v.asEdit?v.onEdit():v.onCreate())}),g._uU(5),g.qZA()()}if(2&ee){const de=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",de.nameControl.invalid||de.delayControl.invalid||de.recurrenceControl.invalid||de.pathControl.invalid),g.xp6(1),g.hij(" ",de.buttonText," ")}}let oe=(()=>{class ee{constructor(de,Te,v,L,B){this.dialogRef=de,this.data=Te,this.serviceManager=v,this.notificator=L,this.translate=B,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new A.p4("",[A.kI.required,A.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new A.p4(10,[A.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new A.p4(2,[A.kI.pattern("^[0-9]*$")]),this.pathControl=new A.p4("",[A.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const de="./".concat(this.nameControl.value);this.pathControl.setValue(de)}}return ee.\u0275fac=function(de){return new(de||ee)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(c.V6),g.Y36(C.sK))},ee.\u0275cmp=g.Xpm({type:ee,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","service-name-input","required","",3,"placeholder","formControl","change"],["matInput","","data-cy","service-description-input",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","service-create-edit-dialog-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(de,Te){1&de&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,z,1,0,"mat-spinner",1),g.YNc(4,Q,40,46,"div",2),g.YNc(5,te,6,5,"div",3),g.qZA()),2&de&&(g.Tol(Te.theme),g.xp6(2),g.Oqu(Te.title),g.xp6(1),g.Q6J("ngIf",Te.loading),g.xp6(1),g.Q6J("ngIf",!Te.loading),g.xp6(1),g.Q6J("ngIf",!Te.loading))},dependencies:[T.O5,E.TO,E.KE,S.Nt,A.Fj,A.JJ,A.Q7,A.oH,A.On,U.lW,_.oG,e.uh,e.xY,e.H8,V.Ou,C.X$]}),ee})()},81889:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>le});var e=h(65412),c=h(32080),A=h(32105),w=h(24006),g=h(94650),C=h(89383),T=h(36895),E=h(59549),S=h(284),U=h(4859),_=h(56709),V=h(51572),z=h(82322);function Q(de,Te){1&de&&g._UZ(0,"mat-spinner",3)}function te(de,Te){if(1&de){const v=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(B){g.CHM(v);const W=g.oxw(2);return g.KtG(W.asSubgroup=B)})("click",function(){g.CHM(v);const B=g.oxw(2);return g.KtG(B.loadVoGroups())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&de){const v=g.oxw(2);g.Q6J("ngModel",v.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function oe(de,Te){if(1&de){const v=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(B){g.CHM(v);const W=g.oxw(2);return g.KtG(W.selectedParent=B)}),g.qZA()}if(2&de){const v=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",v.voGroups)}}function ee(de,Te){if(1&de){const v=g.EpF();g.TgZ(0,"div")(1,"div",4)(2,"mat-form-field")(3,"label",5),g._UZ(4,"input",6),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"mat-error"),g._uU(7),g.ALo(8,"translate"),g.qZA()(),g.TgZ(9,"mat-form-field",7)(10,"label",5)(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA()()(),g.YNc(14,te,3,5,"mat-checkbox",9),g.YNc(15,oe,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11)(17,"button",12),g.NdJ("click",function(){g.CHM(v);const B=g.oxw();return g.KtG(B.onCancel())}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){g.CHM(v);const B=g.oxw();return g.KtG(B.onSubmit())}),g._uU(21),g.ALo(22,"translate"),g.qZA()()()}if(2&de){const v=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",v.nameControl),g.xp6(3),g.hij(" ",v.invalidNameMessage.length?v.invalidNameMessage:g.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),g.xp6(4),g.s9C("placeholder",g.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),g.Q6J("formControl",v.descriptionControl),g.xp6(3),g.Q6J("ngIf",v.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",v.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",v.nameControl.invalid||v.descriptionControl.invalid||v.asSubgroup&&null===v.selectedParent||v.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let le=(()=>{class de{constructor(v,L,B,W,q,ue){this.dialogRef=v,this.data=L,this.groupService=B,this.translate=W,this.notificator=q,this.store=ue,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameFunction=ye=>ye.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?W.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(ye=>this.title=ye):W.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(ye=>{this.title=ye+this.data.parentGroup.name}),W.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(ye=>this.successMessage=ye),W.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(ye=>this.successSubGroupMessage=ye)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.p4("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.p4(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(v=>{this.voGroups=v.filter(L=>"members"!==L.name)})}}return de.\u0275fac=function(v){return new(v||de)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.ff),g.Y36(C.sK),g.Y36(c.V6),g.Y36(c.d6))},de.\u0275cmp=g.Xpm({type:de,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(v,L){1&v&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,Q,1,0,"mat-spinner",1),g.YNc(4,ee,23,20,"div",2),g.qZA()),2&v&&(g.xp6(1),g.Oqu(L.title),g.xp6(1),g.Tol(L.theme),g.xp6(1),g.Q6J("ngIf",L.loading),g.xp6(1),g.Q6J("ngIf",!L.loading))},dependencies:[T.O5,E.TO,E.KE,S.Nt,w.Fj,w.JJ,w.Q7,w.oH,w.On,U.lW,_.oG,e.uh,e.xY,e.H8,V.Ou,z.h,C.X$]}),de})()},54037:(Ye,pe,h)=>{"use strict";h.d(pe,{Y:()=>E});var e=h(32105),c=h(65412),A=h(32080),w=h(30671),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.facilitiesManager=z,this.notificator=Q,this.translate=te,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new w.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(_){this.force=_.force,_.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(c.so),g.Y36(c.WI),g.Y36(e.IQ),g.Y36(A.V6),g.Y36(C.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","facilities")("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),S})()},41656:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>E});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.notificator=z,this.translate=Q,this.groupService=te,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const _=this.data.groups.map(V=>V.id);this.groupService.deleteGroups({groups:_,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(_){this.force=_.force,_.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(C.sK),g.Y36(w.ff))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","groups")("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),S})()},90719:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>E});var e=h(32105),c=h(65412),A=h(32080),w=h(30671),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.serviceManager=z,this.notificator=Q,this.translate=te,this.dataSource=new w.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(_){this.force=_.force,_.deleted?this.onConfirm():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(c.so),g.Y36(c.WI),g.Y36(e.KK),g.Y36(A.V6),g.Y36(C.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","services")("anotherMessage",V.anotherMessage)("loading",V.loading)("relations",V.relations))},dependencies:[T.e]}),S})()},83491:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>Se});var e=h(65412),c=h(32105),A=h(9244),w=h(33604),g=h(32080),C=h(94650),T=h(89383),E=h(36895),S=h(3238),U=h(39349),_=h(59549),V=h(284),z=h(24006),Q=h(97392),te=h(4859),oe=h(3848),ee=h(56709),le=h(84385),de=h(51572),Te=h(10266),v=h(63312),L=h(52170);const B=["*"];let W=(()=>{class Fe{}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)},Fe.\u0275cmp=C.Xpm({type:Fe,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:B,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(Ue,P){1&Ue&&(C.F$t(),C.TgZ(0,"div",0)(1,"span",1),C._uU(2),C.qZA(),C.TgZ(3,"div",2),C.Hsn(4),C.qZA()(),C.TgZ(5,"div",3),C._UZ(6,"span",4),C.TgZ(7,"div",5),C._uU(8),C.qZA()()),2&Ue&&(C.xp6(2),C.hij("",P.label,":"),C.xp6(6),C.hij(" ",P.description," "))}}),Fe})();var q=h(57706);let ue=(()=>{class Fe{constructor(Ue){this.translateService=Ue}transform(Ue){switch(Ue){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Ue);default:return Ue}}}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)(C.Y36(T.sK,16))},Fe.\u0275pipe=C.Yjl({name:"applicationFormItemDisabled",type:Fe,pure:!0}),Fe})(),ye=(()=>{class Fe{constructor(Ue){this.translateService=Ue}transform(Ue){switch(Ue){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Ue);default:return Ue}}}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)(C.Y36(T.sK,16))},Fe.\u0275pipe=C.Yjl({name:"applicationFormItemHidden",type:Fe,pure:!0}),Fe})();function Me(Fe,be){1&Fe&&C._UZ(0,"mat-spinner",8)}function we(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"section")(5,"mat-checkbox",22),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(3);return C.KtG(i.applicationFormItem.updatable=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw(3);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.updatable)}}function Ge(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div",13)(1,"mat-form-field",13)(2,"input",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(3);return C.KtG(i.applicationFormItem.federationAttribute=H)}),C.qZA()()()}if(2&Fe){const Ue=C.oxw(3);C.xp6(2),C.Q6J("ngModel",Ue.applicationFormItem.federationAttribute)}}function ce(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"section")(5,"mat-checkbox",22),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.required=H)}),C.qZA()()(),C.YNc(6,we,6,7,"div",17),C.TgZ(7,"app-edit-application-form-item-line",12),C.ALo(8,"translate"),C.ALo(9,"translate"),C.TgZ(10,"div",13)(11,"perun-web-apps-selection-item-search-select",23),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.perunSourceAttribute=H.value)}),C.qZA()()(),C.TgZ(12,"app-edit-application-form-item-line",12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"div",13)(16,"perun-web-apps-selection-item-search-select",23),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.perunDestinationAttribute=H.value)}),C.qZA()()(),C.TgZ(17,"app-edit-application-form-item-line",12),C.ALo(18,"translate"),C.ALo(19,"translate"),C.TgZ(20,"div",13)(21,"perun-web-apps-selection-item-search-select",24),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.changeFederationAttribute(H))}),C.qZA()(),C.YNc(22,Ge,3,1,"div",25),C.qZA()()}if(2&Fe){const Ue=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",C.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.required),C.xp6(1),C.Q6J("ngIf",Ue.typesWithUpdatable.indexOf(Ue.applicationFormItem.type)>-1),C.xp6(1),C.Q6J("description",C.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),C.xp6(4),C.Q6J("attributes",Ue.sourceAttributes)("selectedAttribute",Ue.applicationFormItem.perunSourceAttribute)("asGroup",!!Ue.data.group)("type",Ue.itemType.SOURCE),C.xp6(1),C.Q6J("description",C.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),C.xp6(4),C.Q6J("attributes",Ue.destinationAttributes)("selectedAttribute",Ue.applicationFormItem.perunDestinationAttribute)("asGroup",!!Ue.data.group)("type",Ue.itemType.DESTINATION),C.xp6(1),C.Q6J("description",C.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",C.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),C.xp6(4),C.Q6J("selectedAttribute",Ue.applicationFormItem.federationAttribute)("asGroup",!!Ue.data.group)("type",Ue.itemType.FEDERATION),C.xp6(1),C.Q6J("ngIf"," -- custom value -- "===Ue.federationAttributeDN)}}function Ze(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"input",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.regex=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.regex)}}function he(Fe,be){if(1&Fe&&(C.TgZ(0,"mat-option",26),C._uU(1),C.ALo(2,"applicationFormItemDisabled"),C.qZA()),2&Fe){const Ue=be.$implicit;C.Q6J("value",Ue),C.xp6(1),C.hij(" ",C.lcZ(2,2,Ue)," ")}}function xe(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"perun-web-apps-app-form-item-search-select",27),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(3);return C.KtG(i.disabledDependencyItem=H)}),C.qZA()}if(2&Fe){const Ue=C.oxw(3);C.Q6J("item",Ue.disabledDependencyItem)("items",Ue.possibleDependencyItems)}}function j(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"mat-select",18),C.NdJ("valueChange",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.applicationFormItem.disabled=H)}),C.YNc(6,he,3,4,"mat-option",19),C.qZA()()(),C.TgZ(7,"app-edit-application-form-item-line",12),C.ALo(8,"translate"),C.ALo(9,"translate"),C.TgZ(10,"div",13),C.YNc(11,xe,1,2,"perun-web-apps-app-form-item-search-select",20),C.qZA()()()}if(2&Fe){const Ue=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",C.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),C.xp6(4),C.Q6J("value",Ue.applicationFormItem.disabled),C.xp6(1),C.Q6J("ngForOf",Ue.disabledValues),C.xp6(1),C.Q6J("description",C.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",C.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),C.xp6(4),C.Q6J("ngIf",null!==Ue.disabledDependencyItem)}}function R(Fe,be){if(1&Fe&&(C.TgZ(0,"mat-option",26),C._uU(1),C.ALo(2,"applicationFormItemHidden"),C.qZA()),2&Fe){const Ue=be.$implicit;C.Q6J("value",Ue),C.xp6(1),C.hij(" ",C.lcZ(2,2,Ue)," ")}}function G(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"perun-web-apps-app-form-item-search-select",27),C.NdJ("itemSelected",function(H){C.CHM(Ue);const i=C.oxw(2);return C.KtG(i.hiddenDependencyItem=H)}),C.qZA()}if(2&Fe){const Ue=C.oxw(2);C.Q6J("item",Ue.hiddenDependencyItem)("items",Ue.possibleDependencyItems)}}function se(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",28),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].label=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",C.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),C.xp6(4),C.Q6J("cdkTextareaAutosize",!0)("ngModel",P.applicationFormItem.i18n[Ue].label)}}function $(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].label=H)}),C.qZA()()(),C.TgZ(6,"app-edit-application-form-item-line",12),C.ALo(7,"translate"),C.ALo(8,"translate"),C.TgZ(9,"mat-form-field",13)(10,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].help=H)}),C.qZA()()(),C.TgZ(11,"app-edit-application-form-item-line",12),C.ALo(12,"translate"),C.ALo(13,"translate"),C.TgZ(14,"mat-form-field",13)(15,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].errorMessage=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",C.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].label),C.xp6(1),C.Q6J("description",C.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",C.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].help),C.xp6(1),C.Q6J("description",C.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",C.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].errorMessage)}}function Ee(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"app-edit-application-form-item-line",12),C.ALo(2,"translate"),C.ALo(3,"translate"),C.TgZ(4,"mat-form-field",13)(5,"textarea",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw().$implicit,o=C.oxw(2);return C.KtG(o.applicationFormItem.i18n[i].label=H)}),C.qZA()()()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(1),C.Q6J("description",C.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",C.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),C.xp6(4),C.Q6J("ngModel",P.applicationFormItem.i18n[Ue].label)}}function Oe(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div"),C._uU(1),C.ALo(2,"translate"),C.TgZ(3,"mat-form-field")(4,"input",14),C.NdJ("ngModelChange",function(H){const o=C.CHM(Ue).$implicit;return C.KtG(o[0]=H)}),C.qZA()(),C._uU(5),C.ALo(6,"translate"),C.TgZ(7,"mat-form-field")(8,"input",14),C.NdJ("ngModelChange",function(H){const o=C.CHM(Ue).$implicit;return C.KtG(o[1]=H)}),C.qZA()(),C.TgZ(9,"button",37),C.NdJ("click",function(){const i=C.CHM(Ue).$implicit,o=C.oxw(2).$implicit,f=C.oxw(2);return C.KtG(f.removeOption(i,o))}),C.ALo(10,"translate"),C.TgZ(11,"mat-icon"),C._uU(12,"clear"),C.qZA()()()}if(2&Fe){const Ue=be.$implicit;C.xp6(1),C.hij(" ",C.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),C.xp6(3),C.Q6J("ngModel",Ue[0]),C.xp6(1),C.hij(" ",C.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),C.xp6(3),C.Q6J("ngModel",Ue[1]),C.xp6(1),C.s9C("matTooltip",C.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function ct(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div")(1,"div",29),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",30),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"div",31)(8,"button",32),C.NdJ("click",function(){C.CHM(Ue);const H=C.oxw().$implicit,i=C.oxw(2);return C.KtG(i.sortOptionsAZ(H))}),C.TgZ(9,"i",33),C._uU(10,"arrow_downward"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",34),C.NdJ("click",function(){C.CHM(Ue);const H=C.oxw().$implicit,i=C.oxw(2);return C.KtG(i.sortOptionsZA(H))}),C.TgZ(14,"i",33),C._uU(15,"arrow_upward"),C.qZA(),C._uU(16),C.ALo(17,"translate"),C.qZA()(),C.YNc(18,Oe,13,11,"div",35),C.TgZ(19,"button",36),C.NdJ("click",function(){C.CHM(Ue);const H=C.oxw().$implicit,i=C.oxw(2);return C.KtG(i.addOption(H))}),C._uU(20),C.ALo(21,"translate"),C.qZA()()}if(2&Fe){const Ue=C.oxw().$implicit,P=C.oxw(2);C.xp6(2),C.hij(" ",C.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),C.xp6(3),C.hij(" ",C.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),C.xp6(6),C.hij(" ",C.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),C.xp6(5),C.hij(" ",C.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),C.xp6(2),C.Q6J("ngForOf",P.options[Ue]),C.xp6(2),C.hij(" ",C.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Xe=function(){return["HEADING","HTML_COMMENT"]},_t=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Je=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},gt=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function Y(Fe,be){if(1&Fe&&(C.TgZ(0,"mat-tab",11),C.ALo(1,"translate"),C.ALo(2,"uppercase"),C.YNc(3,se,6,8,"div",17),C.YNc(4,$,16,21,"div",17),C.YNc(5,Ee,6,7,"div",17),C.YNc(6,ct,22,16,"div",17),C.qZA()),2&Fe){const Ue=be.$implicit,P=C.oxw(2);C.s9C("label",C.lcZ(1,5,C.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Ue))),C.xp6(3),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(9,Xe))),C.xp6(1),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(10,_t))),C.xp6(1),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(11,Je))),C.xp6(1),C.Q6J("ngIf",P.isApplicationFormItemOfType(C.DdM(12,gt)))}}const Ce=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},ae=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function re(Fe,be){if(1&Fe){const Ue=C.EpF();C.TgZ(0,"div",9)(1,"mat-tab-group",10)(2,"mat-tab",11),C.ALo(3,"translate"),C.TgZ(4,"app-edit-application-form-item-line",12),C.ALo(5,"translate"),C.ALo(6,"translate"),C.TgZ(7,"mat-form-field",13)(8,"input",14),C.NdJ("ngModelChange",function(H){C.CHM(Ue);const i=C.oxw();return C.KtG(i.applicationFormItem.shortname=H)}),C.qZA()()(),C.TgZ(9,"app-edit-application-form-item-line",12),C.ALo(10,"translate"),C.ALo(11,"translate"),C._uU(12),C.ALo(13,"applicationFormItemType"),C.qZA(),C.TgZ(14,"app-edit-application-form-item-line",12),C.ALo(15,"translate"),C.ALo(16,"translate"),C.TgZ(17,"section")(18,"mat-checkbox",15),C.NdJ("change",function(){C.CHM(Ue);const H=C.oxw();return C.KtG(H.onChangingType("INITIAL"))}),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-checkbox",16),C.NdJ("change",function(){C.CHM(Ue);const H=C.oxw();return C.KtG(H.onChangingType("EXTENSION"))}),C._uU(22),C.ALo(23,"translate"),C.qZA()()(),C.YNc(24,ce,23,38,"div",17),C.YNc(25,Ze,6,7,"div",17),C.YNc(26,j,12,15,"div",17),C.TgZ(27,"app-edit-application-form-item-line",12),C.ALo(28,"translate"),C.ALo(29,"translate"),C.TgZ(30,"mat-form-field",13)(31,"mat-select",18),C.NdJ("valueChange",function(H){C.CHM(Ue);const i=C.oxw();return C.KtG(i.applicationFormItem.hidden=H)}),C.YNc(32,R,3,4,"mat-option",19),C.qZA()()(),C.TgZ(33,"app-edit-application-form-item-line",12),C.ALo(34,"translate"),C.ALo(35,"translate"),C.TgZ(36,"div",13),C.YNc(37,G,1,2,"perun-web-apps-app-form-item-search-select",20),C.qZA()()(),C.YNc(38,Y,7,13,"mat-tab",21),C.qZA()()}if(2&Fe){const Ue=C.oxw();C.xp6(2),C.s9C("label",C.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),C.xp6(2),C.Q6J("description",C.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",C.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.shortname),C.xp6(1),C.Q6J("description",C.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",C.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),C.xp6(3),C.hij(" ",C.lcZ(13,34,Ue.applicationFormItem.type)," "),C.xp6(2),C.Q6J("description",C.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",C.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),C.xp6(4),C.Q6J("ngModel",Ue.applicationFormItem.applicationTypes.includes("INITIAL")),C.xp6(1),C.hij(" ",C.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),C.xp6(2),C.Q6J("ngModel",Ue.applicationFormItem.applicationTypes.includes("EXTENSION")),C.xp6(1),C.hij(" ",C.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),C.xp6(2),C.Q6J("ngIf",Ue.isApplicationFormItemOfType(C.DdM(52,Ce))),C.xp6(1),C.Q6J("ngIf",Ue.isApplicationFormItemOfType(C.DdM(53,ae))),C.xp6(1),C.Q6J("ngIf",Ue.typesWithDisabled.indexOf(Ue.applicationFormItem.type)>-1),C.xp6(1),C.Q6J("description",C.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",C.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),C.xp6(4),C.Q6J("value",Ue.applicationFormItem.hidden),C.xp6(1),C.Q6J("ngForOf",Ue.hiddenValues),C.xp6(1),C.Q6J("description",C.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",C.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),C.xp6(4),C.Q6J("ngIf",null!==Ue.hiddenDependencyItem),C.xp6(1),C.Q6J("ngForOf",Ue.languages)}}let Se=(()=>{class Fe{constructor(Ue,P,H,i,o,f){this.dialogRef=Ue,this.data=P,this.attributesManager=H,this.translateService=i,this.store=o,this.cd=f,this.federationAttributeDN="",this.itemType=w.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Ue=>Ue.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(Ue=>Ue.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,A.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ue=>{const P=this.filterAttributesForWidget(Ue);this.sourceAttributes=P.concat(this.findAttribute(Ue,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=P.concat(this.findAttribute(Ue,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Ue){if(this.applicationFormItem.applicationTypes.includes(Ue)){const P=this.applicationFormItem.applicationTypes.indexOf(Ue);this.applicationFormItem.applicationTypes.splice(P,1)}else this.applicationFormItem.applicationTypes.push(Ue)}addOption(Ue){this.options[Ue].push(["",""])}removeOption(Ue,P){this.options[P]=this.options[P].filter(H=>!(H[0]===Ue[0]&&H[1]===Ue[1]))}sortOptionsAZ(Ue){this.options[Ue]=this.options[Ue].sort((P,H)=>P[1]>H[1]?1:P[1]P[1]>H[1]?-1:P[1]this.dependencyTypes.includes(Ue.type)).filter(Ue=>Ue.id!==this.data.applicationFormItem.id))}updateOption(Ue){let P="";if(this.options[Ue])for(const H of this.options[Ue])""!==H[0]&&""!==H[1]&&(P=""===P?H[0]+"#"+H[1]:P+"|"+H[0]+"#"+H[1]);this.applicationFormItem.i18n[Ue].options=P}updateOptions(){for(const Ue of this.languages)this.updateOption(Ue)}findAttribute(Ue,P){return Ue.find(H=>P.includes(H.friendlyName))}filterAttributesForWidget(Ue){return Ue.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?P=>P.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?P=>P.type.includes("ArrayList"):P=>!P.type.includes("ArrayList")&&!P.type.includes("LinkedHashMap"))}}return Fe.\u0275fac=function(Ue){return new(Ue||Fe)(C.Y36(e.so),C.Y36(e.WI),C.Y36(c.H8),C.Y36(T.sK),C.Y36(g.d6),C.Y36(C.sBO))},Fe.\u0275cmp=C.Xpm({type:Fe,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(Ue,P){1&Ue&&(C.TgZ(0,"div")(1,"div",0)(2,"h1",1),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.YNc(5,Me,1,0,"mat-spinner",2),C.YNc(6,re,39,54,"div",3),C.TgZ(7,"div",4)(8,"button",5),C.NdJ("click",function(){return P.cancel()}),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"div",6),C.ALo(12,"translate"),C.TgZ(13,"button",7),C.NdJ("click",function(){return P.submit()}),C._uU(14),C.ALo(15,"translate"),C.qZA()()()()()),2&Ue&&(C.Gre("",P.theme," h-100"),C.xp6(3),C.AsE(" ",C.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",P.applicationFormItem.shortname," "),C.xp6(2),C.Q6J("ngIf",P.loading),C.xp6(1),C.Q6J("ngIf",!P.loading),C.xp6(3),C.hij(" ",C.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),C.Q6J("matTooltipDisabled",!P.applicationFormItem.required||""!==P.applicationFormItem.perunSourceAttribute||""!==P.applicationFormItem.federationAttribute||"ALWAYS"!==P.applicationFormItem.disabled&&"ALWAYS"!==P.applicationFormItem.hidden),C.xp6(2),C.Q6J("disabled",P.loading||P.applicationFormItem.required&&""===P.applicationFormItem.perunSourceAttribute&&""===P.applicationFormItem.federationAttribute&&("ALWAYS"===P.applicationFormItem.disabled||"ALWAYS"===P.applicationFormItem.hidden)),C.xp6(1),C.hij(" ",C.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},dependencies:[E.sg,E.O5,S.ey,U.IC,_.KE,V.Nt,z.Fj,z.JJ,z.On,Q.Hw,te.lW,oe.SP,oe.uX,ee.oG,e.uh,e.xY,e.H8,le.gD,de.Ou,Te.gM,v.Y,L.$x,W,E.gd,T.X$,q.c,ue,ye]}),Fe})()},19352:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>Ge});var e=h(32105),c=h(65412),A=h(32080),w=h(30671),g=h(9244),C=h(74281),T=h(36895),E=h(94650),S=h(89383),U=h(97392),_=h(4859),V=h(51572),z=h(10266),Q=h(31359);function te(ce,Ze){1&ce&&E._UZ(0,"mat-spinner",6)}function oe(ce,Ze){1&ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function ee(ce,Ze){if(1&ce&&(E.TgZ(0,"td",18),E._uU(1),E.qZA()),2&ce){const he=Ze.$implicit;E.xp6(1),E.Oqu(he.user.id)}}function le(ce,Ze){1&ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function de(ce,Ze){if(1&ce&&(E.TgZ(0,"td",18),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&ce){const he=Ze.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,he.user))}}function Te(ce,Ze){1&ce&&(E.TgZ(0,"th",17),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function v(ce,Ze){if(1&ce){const he=E.EpF();E.TgZ(0,"button",20),E.NdJ("click",function(){E.CHM(he);const j=E.oxw().$implicit,R=E.oxw(2);return E.KtG(R.changeExpiration(j))}),E.TgZ(1,"mat-icon"),E._uU(2," today "),E.qZA()()}}function L(ce,Ze){if(1&ce&&(E.TgZ(0,"td",18)(1,"span"),E._uU(2),E.qZA(),E.YNc(3,v,3,0,"button",19),E.qZA()),2&ce){const he=Ze.$implicit,xe=E.oxw(2);E.xp6(2),E.Oqu(xe.parseDate(he.validityTo)),E.xp6(1),E.Q6J("ngIf",xe.isExpirationAuthorized(he))}}function B(ce,Ze){1&ce&&E._UZ(0,"th",17)}function W(ce,Ze){1&ce&&(E.TgZ(0,"mat-icon",25),E._uU(1,"clear"),E.qZA())}function q(ce,Ze){1&ce&&(E.TgZ(0,"mat-icon"),E._uU(1,"settings_backup_restore"),E.qZA())}function ue(ce,Ze){if(1&ce){const he=E.EpF();E.TgZ(0,"td",18)(1,"div",21),E.ALo(2,"translate"),E.TgZ(3,"button",22),E.NdJ("click",function(){const R=E.CHM(he).$implicit,G=E.oxw(2);return E.KtG(G.markSponsor(R))}),E.YNc(4,W,2,0,"mat-icon",23),E.YNc(5,q,2,0,"mat-icon",24),E.qZA()()()}if(2&ce){const he=Ze.$implicit,xe=E.oxw(2);E.xp6(1),E.s9C("matTooltip",E.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),E.Q6J("matTooltipDisabled",xe.isRemoveAuthorized(he))("matTooltipPosition","above"),E.xp6(2),E.Q6J("disabled",!xe.isRemoveAuthorized(he)),E.xp6(1),E.Q6J("ngIf",!xe.sponsorsToRemove.has(he.user.id)),E.xp6(1),E.Q6J("ngIf",xe.sponsorsToRemove.has(he.user.id))}}function ye(ce,Ze){1&ce&&E._UZ(0,"tr",26)}function Me(ce,Ze){if(1&ce&&E._UZ(0,"tr",27),2&ce){const he=Ze.$implicit,xe=E.oxw(2);E.ekj("make-red",xe.sponsorsToRemove.has(he.user.id))}}function we(ce,Ze){if(1&ce&&(E.TgZ(0,"div",7)(1,"table",8),E.ynx(2,9),E.YNc(3,oe,3,3,"th",10),E.YNc(4,ee,2,1,"td",11),E.BQk(),E.ynx(5,12),E.YNc(6,le,3,3,"th",10),E.YNc(7,de,3,3,"td",11),E.BQk(),E.ynx(8,13),E.YNc(9,Te,3,3,"th",10),E.YNc(10,L,4,2,"td",11),E.BQk(),E.ynx(11,14),E.YNc(12,B,1,0,"th",10),E.YNc(13,ue,6,8,"td",11),E.BQk(),E.YNc(14,ye,1,0,"tr",15),E.YNc(15,Me,1,2,"tr",16),E.qZA()()),2&ce){const he=E.oxw();E.xp6(1),E.Q6J("dataSource",he.dataSource),E.xp6(13),E.Q6J("matHeaderRowDef",he.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",he.displayedColumns)}}let Ge=(()=>{class ce{constructor(he,xe,j,R,G,se,$,Ee){this.dialogRef=he,this.data=xe,this.memberService=j,this.userService=R,this.notificator=G,this.authResolver=se,this.translate=$,this.dialog=Ee,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(he){this.sponsorsToRemove.has(he.user.id)?this.sponsorsToRemove.delete(he.user.id):this.sponsorsToRemove.add(he.user.id)}onSubmit(){this.loading=!0;const he=Array.from(this.sponsorsToRemove);this.removeSponsors(he)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(he){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[he.user])}isExpirationAuthorized(he){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[he.user,this.vo])}parseDate(he){return null===he?"Never expire":(0,T.p6)(he,"d.M.y","en")}changeExpiration(he){const xe=(0,g.kZ)();xe.width="400px",xe.data={memberId:this.data.member.id,sponsor:he},this.dialog.open(C.hd,xe).afterClosed().subscribe(R=>{R&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(G=>{this.sponsors=G,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(he){if(0===he.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const xe=he.pop();this.memberService.removeSponsor(this.data.member.id,xe).subscribe(()=>{this.removeSponsors(he)},()=>this.loading=!1)}}return ce.\u0275fac=function(he){return new(he||ce)(E.Y36(c.so),E.Y36(c.WI),E.Y36(e.uq),E.Y36(e.Fv),E.Y36(A.V6),E.Y36(A.x4),E.Y36(S.sK),E.Y36(c.uw))},ce.\u0275cmp=E.Xpm({type:ce,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(he,xe){1&he&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"div"),E.YNc(4,te,1,0,"mat-spinner",1),E.YNc(5,we,16,3,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return xe.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return xe.onSubmit()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&he&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),E.xp6(2),E.Tol(xe.theme),E.xp6(1),E.Q6J("ngIf",xe.loading),E.xp6(1),E.Q6J("ngIf",!xe.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),E.xp6(2),E.Q6J("disabled",xe.loading||0===xe.sponsorsToRemove.size),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},dependencies:[T.O5,U.Hw,_.lW,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,c.uh,c.xY,c.H8,V.Ou,z.gM,S.X$,Q.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),ce})()},74414:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>v});var e=h(65412),c=h(24006),A=h(32105),w=h(32080),g=h(94650),C=h(89383),T=h(36895),E=h(3238),S=h(59549),U=h(284),_=h(4859),V=h(84385),z=h(51572);function Q(L,B){1&L&&g._UZ(0,"mat-spinner",6)}function te(L,B){1&L&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function oe(L,B){1&L&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function ee(L,B){1&L&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function le(L,B){1&L&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&L&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function de(L,B){if(1&L&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&L){const W=B.$implicit;g.s9C("value",W),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+W)))}}function Te(L,B){if(1&L){const W=g.EpF();g.TgZ(0,"div",7),g.YNc(1,te,3,3,"div",8),g.YNc(2,oe,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,ee,3,3,"mat-error",11),g.qZA(),g.TgZ(7,"mat-form-field",9),g._UZ(8,"textarea",10),g.ALo(9,"translate"),g.YNc(10,le,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9)(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(ue){g.CHM(W);const ye=g.oxw();return g.KtG(ye.currentLanguage=ue)}),g.YNc(16,de,4,6,"mat-option",13),g.qZA()()()}if(2&L){const W=g.oxw();g.xp6(1),g.Q6J("ngIf",!W.data.groupId),g.xp6(1),g.Q6J("ngIf",W.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",W.name),g.xp6(2),g.Q6J("ngIf",W.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",W.emailForm),g.xp6(2),g.Q6J("ngIf",W.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",W.currentLanguage),g.xp6(1),g.Q6J("ngForOf",W.languages)}}let v=(()=>{class L{constructor(W,q,ue,ye,Me,we){this.dialogRef=W,this.data=q,this.registrarManager=ue,this.notificator=ye,this.translate=Me,this.store=we,this.emailForm=new c.p4("",[c.kI.required,c.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new c.p4("",c.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(W=>{this.notificator.showSuccess(W),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(W=>{this.notificator.showSuccess(W),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return L.\u0275fac=function(W){return new(W||L)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.tk),g.Y36(w.V6),g.Y36(C.sK),g.Y36(w.d6))},L.\u0275cmp=g.Xpm({type:L,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(W,q){1&W&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,Q,1,0,"mat-spinner",1),g.YNc(5,Te,17,17,"div",2),g.TgZ(6,"div",3)(7,"button",4),g.NdJ("click",function(){return q.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return q.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA()()()),2&W&&(g.Tol(q.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",q.loading),g.xp6(1),g.Q6J("ngIf",!q.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",q.emailForm.invalid||q.name.invalid||q.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},dependencies:[T.sg,T.O5,E.ey,S.TO,S.KE,S.hX,U.Nt,c.Fj,c.JJ,c.Q7,c.oH,_.lW,e.uh,e.xY,e.H8,V.gD,z.Ou,T.gd,C.X$]}),L})()},87842:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>ue});var e=h(65412),c=h(24006),A=h(68675),w=h(54004),g=h(36769),C=h(32080),T=h(32105),E=h(94650),S=h(89383),U=h(36895),_=h(47957),V=h(3238),z=h(59549),Q=h(284),te=h(4859),oe=h(51572),ee=h(10266),le=h(71948),de=h(98380);function Te(ye,Me){1&ye&&(E.TgZ(0,"mat-radio-button",12),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ye&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function v(ye,Me){1&ye&&(E.TgZ(0,"mat-radio-button",13),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ye&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function L(ye,Me){1&ye&&(E.TgZ(0,"perun-web-apps-alert",14),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&ye&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function B(ye,Me){if(1&ye){const we=E.EpF();E.TgZ(0,"mat-option",20),E.NdJ("click",function(){const Ze=E.CHM(we).$implicit,he=E.oxw(2);return E.KtG(he.selectedGroup=Ze)}),E.TgZ(1,"span"),E._uU(2),E.qZA()()}if(2&ye){const we=Me.$implicit;E.Q6J("value",we),E.xp6(2),E.Oqu(we.name)}}function W(ye,Me){if(1&ye){const we=E.EpF();E.TgZ(0,"mat-form-field",15)(1,"input",16),E.NdJ("change",function(){E.CHM(we);const ce=E.oxw();return E.KtG(ce.selectedGroup=null)}),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"mat-autocomplete",17,18),E.YNc(5,B,3,2,"mat-option",19),E.ALo(6,"async"),E.qZA()()}if(2&ye){const we=E.MAs(4),Ge=E.oxw();E.Q6J("@openClose","toGroup"===Ge.moveOption?"open":"closed"),E.xp6(1),E.s9C("placeholder",E.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),E.Q6J("formControl",Ge.otherGroupsCtrl)("matAutocomplete",we),E.xp6(2),E.Q6J("displayWith",Ge.displayFn),E.xp6(2),E.Q6J("ngForOf",E.lcZ(6,8,Ge.filteredGroups))}}function q(ye,Me){1&ye&&E._UZ(0,"mat-spinner",21)}let ue=(()=>{class ye{constructor(we,Ge,ce,Ze,he,xe,j){this.dialogRef=we,this.data=Ge,this.groupService=ce,this.notificator=Ze,this.translate=he,this.apiRequest=xe,this.authResolver=j,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new c.p4(null,[c.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(R=>this.successMessage=R),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(R=>this.errorMessage=R)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(we=>{this.otherGroups=we.filter(Ge=>Ge.id!==this.data.group.id&&"members"!==Ge.name&&this.canMove(Ge)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,A.O)(""),(0,w.U)(Ge=>Ge?this._filterGroups(Ge):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(we){return we&&we.name}canMove(we){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[we,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,we])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},we=>{this.notificator.showRPCError(we,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(we){if("object"==typeof we)return[];const Ge=we.toLowerCase();return we?this.otherGroups.filter(ce=>ce.name.toLowerCase().includes(Ge)):this.otherGroups}}return ye.\u0275fac=function(we){return new(we||ye)(E.Y36(e.so),E.Y36(e.WI),E.Y36(T.ff),E.Y36(C.V6),E.Y36(S.sK),E.Y36(C.F5),E.Y36(C.x4))},ye.\u0275cmp=E.Xpm({type:ye,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(we,Ge){1&we&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",1)(5,"p"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.TgZ(8,"mat-radio-group",2),E.NdJ("ngModelChange",function(Ze){return Ge.moveOption=Ze}),E.YNc(9,Te,3,3,"mat-radio-button",3),E.YNc(10,v,3,3,"mat-radio-button",4),E.qZA(),E.YNc(11,L,3,3,"perun-web-apps-alert",5),E.YNc(12,W,7,10,"mat-form-field",6),E.qZA(),E.YNc(13,q,1,0,"mat-spinner",7),E.TgZ(14,"div",8)(15,"button",9),E.NdJ("click",function(){return Ge.close()}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"span",10),E.ALo(19,"translate"),E.TgZ(20,"button",11),E.NdJ("click",function(){return Ge.confirm()}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()),2&we&&(E.Tol(Ge.data.theme),E.xp6(2),E.AsE("",E.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Ge.data.group.name,""),E.xp6(4),E.hij(" ",E.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),E.xp6(2),E.Q6J("ngModel",Ge.moveOption),E.xp6(1),E.Q6J("ngIf",!Ge.toRootOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Ge.toRootOptionDisabled&&Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",!Ge.toGroupOptionDisabled),E.xp6(1),E.Q6J("ngIf",Ge.loading),E.xp6(3),E.hij(" ",E.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),E.Q6J("matTooltipDisabled",null!==Ge.selectedGroup||"toRoot"===Ge.moveOption)("matTooltipPosition","above"),E.xp6(2),E.Q6J("disabled",(Ge.otherGroupsCtrl.invalid||null===Ge.selectedGroup)&&"toRoot"!==Ge.moveOption||Ge.loading),E.xp6(1),E.hij(" ",E.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},dependencies:[U.sg,U.O5,_.XC,_.ZL,V.ey,z.KE,Q.Nt,c.Fj,c.JJ,c.Q7,c.oH,c.On,te.lW,e.uh,e.xY,e.H8,oe.Ou,ee.gM,le.VQ,le.U0,de.w,U.Ov,S.X$],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),ye})()},58964:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>ee});var e=h(65412),c=h(32105),A=h(32080),w=h(94650),g=h(89383),C=h(36895),T=h(3238),E=h(59549),S=h(4859),U=h(84385),_=h(51572);function V(le,de){1&le&&w._UZ(0,"mat-spinner",7)}function z(le,de){if(1&le&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&le){const Te=de.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",Te.friendlyNameParameter," ")}}function Q(le,de){if(1&le&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&le){const Te=de.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Te))," ")}}function te(le,de){if(1&le&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&le){const Te=de.$implicit;w.Q6J("value",Te),w.xp6(1),w.hij(" ",Te," ")}}function oe(le,de){if(1&le){const Te=w.EpF();w.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(L){w.CHM(Te);const B=w.oxw();return w.KtG(B.selectedLogin=L)}),w.YNc(6,z,2,2,"mat-option",10),w.qZA()(),w.TgZ(7,"mat-form-field")(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(L){w.CHM(Te);const B=w.oxw();return w.KtG(B.selectedLang=L)}),w.YNc(12,Q,4,6,"mat-option",10),w.qZA()(),w.TgZ(13,"mat-form-field")(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(L){w.CHM(Te);const B=w.oxw();return w.KtG(B.selectedMail=L)}),w.YNc(18,te,2,2,"mat-option",10),w.qZA()(),w.TgZ(19,"div",11)(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA()()()}if(2&le){const Te=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",Te.selectedLogin),w.xp6(1),w.Q6J("ngForOf",Te.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",Te.selectedLang),w.xp6(1),w.Q6J("ngForOf",Te.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",Te.selectedMail),w.xp6(1),w.Q6J("ngForOf",Te.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(Te.selectedLogin.value)}}let ee=(()=>{class le{constructor(Te,v,L,B,W,q,ue){this.dialogRef=Te,this.data=v,this.membersManagerService=L,this.attributesManagerService=B,this.store=W,this.translate=q,this.notificator=ue,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],q.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(ye=>this.successMessage=ye)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Te=this.selectedLogin.friendlyNameParameter,L=window.location.href.split("/"),B=L[0]+"//"+L[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Te,this.pwdMails.get(this.selectedMail),this.selectedLang,B).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return le.\u0275fac=function(Te){return new(Te||le)(w.Y36(e.so),w.Y36(e.WI),w.Y36(c.uq),w.Y36(c.H8),w.Y36(A.d6),w.Y36(g.sK),w.Y36(A.V6))},le.\u0275cmp=w.Xpm({type:le,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(Te,v){1&Te&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,V,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,oe,25,19,"div",3),w.TgZ(6,"div",4)(7,"button",5),w.NdJ("click",function(){return v.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return v.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA()()),2&Te&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",v.loading),w.xp6(1),w.Q6J("ngIf",!v.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",v.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},dependencies:[C.sg,C.O5,T.ey,E.KE,E.hX,S.lW,e.uh,e.xY,e.H8,U.gD,_.Ou,C.gd,g.X$],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),le})()},53455:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>Te});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(36895),E=h(4859),S=h(51572),U=h(31359);function _(v,L){1&v&&g._UZ(0,"th",13)}function V(v,L){if(1&v&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&v){const B=L.$implicit;g.xp6(1),g.Oqu(B.id)}}function z(v,L){1&v&&g._UZ(0,"th",13)}function Q(v,L){if(1&v&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&v){const B=L.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,B.user))}}function te(v,L){1&v&&g._UZ(0,"tr",15)}function oe(v,L){1&v&&g._UZ(0,"tr",16)}function ee(v,L){if(1&v&&(g.TgZ(0,"div",4)(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",5),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",6),g.ynx(8,7),g.YNc(9,_,1,0,"th",8),g.YNc(10,V,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,z,1,0,"th",8),g.YNc(13,Q,3,3,"td",9),g.BQk(),g.YNc(14,te,1,0,"tr",11),g.YNc(15,oe,1,0,"tr",12),g.qZA()()),2&v){const B=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,B.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",B.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",B.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",B.displayedColumns)}}function le(v,L){1&v&&g._UZ(0,"mat-spinner",17)}function de(v,L){if(1&v){const B=g.EpF();g.TgZ(0,"div",18)(1,"button",19),g.NdJ("click",function(){g.CHM(B);const q=g.oxw();return g.KtG(q.onCancel())}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){g.CHM(B);const q=g.oxw();return g.KtG(q.onSubmit())}),g._uU(5),g.ALo(6,"translate"),g.qZA()()}if(2&v){const B=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,B.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Te=(()=>{class v{constructor(B,W,q,ue,ye,Me){this.dialogRef=B,this.data=W,this.membersService=q,this.groupService=ue,this.notificator=ye,this.translate=Me,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(B=>B.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(B=>B.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const B=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(B),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return v.\u0275fac=function(B){return new(B||v)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(A.V6),g.Y36(C.sK))},v.\u0275cmp=g.Xpm({type:v,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(B,W){1&B&&(g.TgZ(0,"div")(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,ee,16,9,"div",1),g.YNc(5,le,1,0,"mat-spinner",2),g.YNc(6,de,7,6,"div",3),g.qZA()),2&B&&(g.Tol(W.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!W.loading),g.xp6(1),g.Q6J("ngIf",W.loading),g.xp6(1),g.Q6J("ngIf",!W.loading))},dependencies:[T.O5,E.lW,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,e.uh,e.xY,e.H8,S.Ou,C.X$,U.d]}),v})()},533:(Ye,pe,h)=>{"use strict";h.d(pe,{f:()=>E});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.notificator=z,this.translate=Q,this.resourcesManager=te,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(_=>{this.loading=!1,this.notificator.showSuccess(_),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(_){_.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(C.sK),g.Y36(w.xk))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","resources")("disableForce",!0)("loading",V.loading))},dependencies:[T.e]}),S})()},11717:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>E});var e=h(65412),c=h(30671),A=h(32080),w=h(32105),g=h(94650),C=h(89383),T=h(90995);let E=(()=>{class S{constructor(_,V,z,Q,te){this.dialogRef=_,this.data=V,this.notificator=z,this.voService=Q,this.translate=te,this.force=!1,this.displayedColumns=["name"],this.relations=[],te.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(oe=>this.successMessage=oe)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new c.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(_){this.force=_.force,_.deleted?this.onDelete():this.onCancel()}}return S.\u0275fac=function(_){return new(_||S)(g.Y36(e.so),g.Y36(e.WI),g.Y36(A.V6),g.Y36(w.YF),g.Y36(C.sK))},S.\u0275cmp=g.Xpm({type:S,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(_,V){1&_&&(g.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(Q){return V.onSubmit(Q)}),g.qZA()()),2&_&&(g.Tol(V.theme),g.xp6(1),g.Q6J("entityNames",V.dataSource)("entityType","organizations")("loading",V.loading)("relations",V.relations))},dependencies:[T.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),S})()},1186:(Ye,pe,h)=>{"use strict";h.d(pe,{E:()=>oe});var e=h(65412),c=h(32105),A=h(94650),w=h(36895),g=h(3238),C=h(59549),T=h(284),E=h(24006),S=h(4859),U=h(84385),_=h(51572),V=h(89383);function z(ee,le){1&ee&&A._UZ(0,"mat-spinner",6)}function Q(ee,le){if(1&ee){const de=A.EpF();A.TgZ(0,"div")(1,"mat-form-field",9)(2,"mat-select",10),A.NdJ("valueChange",function(v){A.CHM(de);const L=A.oxw(2);return A.KtG(L.embeddedState=v)}),A.ALo(3,"translate"),A.TgZ(4,"mat-option",11),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"mat-option",12),A._uU(8),A.ALo(9,"translate"),A.qZA()()()()}if(2&ee){const de=A.oxw(2);A.xp6(2),A.MGl("placeholder","",A.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),A.Q6J("value",de.embeddedState),A.xp6(3),A.Oqu(A.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function te(ee,le){if(1&ee){const de=A.EpF();A.TgZ(0,"div",7)(1,"mat-form-field")(2,"input",8),A.NdJ("ngModelChange",function(v){A.CHM(de);const L=A.oxw();return A.KtG(L.moduleName=v)}),A.ALo(3,"translate"),A.qZA()(),A.TgZ(4,"mat-form-field",9)(5,"mat-select",10),A.NdJ("valueChange",function(v){A.CHM(de);const L=A.oxw();return A.KtG(L.initialState=v)}),A.ALo(6,"translate"),A.TgZ(7,"mat-option",11),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"mat-option",12),A._uU(11),A.ALo(12,"translate"),A.qZA()()(),A.TgZ(13,"mat-form-field",9)(14,"mat-select",10),A.NdJ("valueChange",function(v){A.CHM(de);const L=A.oxw();return A.KtG(L.extensionState=v)}),A.ALo(15,"translate"),A.TgZ(16,"mat-option",11),A._uU(17),A.ALo(18,"translate"),A.qZA(),A.TgZ(19,"mat-option",12),A._uU(20),A.ALo(21,"translate"),A.qZA()()(),A.YNc(22,Q,10,10,"div",13),A.qZA()}if(2&ee){const de=A.oxw();A.xp6(2),A.s9C("placeholder",A.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),A.Q6J("ngModel",de.moduleName),A.xp6(3),A.MGl("placeholder","",A.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),A.Q6J("value",de.initialState),A.xp6(3),A.Oqu(A.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(3),A.MGl("placeholder","",A.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),A.Q6J("value",de.extensionState),A.xp6(3),A.Oqu(A.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),A.xp6(3),A.Oqu(A.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),A.xp6(2),A.Q6J("ngIf","group"===de.entity&&de.autoRegistrationEnabled)}}let oe=(()=>{class ee{constructor(de,Te,v){this.dialogRef=de,this.data=Te,this.registrarManager=v,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(de=>{this.dialogRef.close(de)},()=>this.loading=!1)}}return ee.\u0275fac=function(de){return new(de||ee)(A.Y36(e.so),A.Y36(e.WI),A.Y36(c.tk))},ee.\u0275cmp=A.Xpm({type:ee,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(de,Te){1&de&&(A.TgZ(0,"div")(1,"h1",0),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.YNc(4,z,1,0,"mat-spinner",1),A.YNc(5,te,23,25,"div",2),A.TgZ(6,"div",3)(7,"button",4),A.NdJ("click",function(){return Te.onCancel()}),A._uU(8),A.ALo(9,"translate"),A.qZA(),A.TgZ(10,"button",5),A.NdJ("click",function(){return Te.submit()}),A._uU(11),A.ALo(12,"translate"),A.qZA()()()),2&de&&(A.Tol(Te.theme),A.xp6(2),A.Oqu(A.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),A.xp6(2),A.Q6J("ngIf",Te.loading),A.xp6(1),A.Q6J("ngIf",!Te.loading),A.xp6(3),A.hij(" ",A.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),A.xp6(2),A.Q6J("disabled",Te.loading),A.xp6(1),A.hij(" ",A.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},dependencies:[w.O5,g.ey,C.KE,T.Nt,E.Fj,E.JJ,E.On,S.lW,e.uh,e.xY,e.H8,U.gD,_.Ou,V.X$]}),ee})()},34775:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>An});var e=h(32105),c=h(94650),A=h(36895),w=h(97392),g=h(37084),C=h(51572),T=h(73546),E=h(98380),S=h(87831),U=h(24179),_=h(62109),V=h(38383),z=h(74010),Q=h(64877),te=h(89383);function oe(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function ee(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function le(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.SELF_IDENTITIES_"+xt.entityType)," ")}}const de=function(){return["user","id","name"]};function Te(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,le,3,3,"div",2),c._UZ(2,"app-users-list",10),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,de))("disableRouting",!0)("users",xt.users)}}function v(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Te,3,5,"div",2),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.users.length)}}function L(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getSelfData(vt.roles.get("SELF").get("User")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,ee,1,0,"mat-spinner",1),c.YNc(8,v,2,1,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.SELF")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function B(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function W(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_VOS_"+xt.entityType)," ")}}const q=function(){return["id","name","shortName"]};function ue(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,W,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",12),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,q))("vos",xt.vos)("disableRouting",!0)}}function ye(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_GROUPS_"+xt.entityType)," ")}}const Me=function(){return["id","vo","name","description"]};function we(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",13),c.YNc(1,ye,3,3,"div",2),c._UZ(2,"perun-web-apps-groups-list",14),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,Me))("groups",xt.groups)("disableRouting",!0)}}function Ge(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_RESOURCES_"+xt.entityType)," ")}}const ce=function(){return["id","name","vo","facility","description"]};function Ze(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",13),c.YNc(1,Ge,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",15),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("disableRouting",!0)}}function he(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(5);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.MEMBERSHIP_FACILITIES_"+xt.entityType)," ")}}const xe=function(){return["id","name","description"]};function j(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",13),c.YNc(1,he,3,3,"div",2),c._UZ(2,"perun-web-apps-facilities-list",16),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,xe))("facilities",xt.facilities)("disableRouting",!0)}}function R(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,ue,3,5,"div",2),c.YNc(2,we,3,5,"div",11),c.YNc(3,Ze,3,5,"div",11),c.YNc(4,j,3,5,"div",11),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.vos.length),c.xp6(1),c.Q6J("ngIf",xt.groups.length),c.xp6(1),c.Q6J("ngIf",xt.resources.length),c.xp6(1),c.Q6J("ngIf",xt.facilities.length)}}function G(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getMembershipData(vt.roles.get("MEMBERSHIP").get("Group"),vt.roles.get("MEMBERSHIP").get("Vo"),vt.roles.get("MEMBERSHIP").get("Resource"),vt.roles.get("MEMBERSHIP").get("Facility")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,B,1,0,"mat-spinner",1),c.YNc(8,R,5,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.MEMBERSHIP")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function se(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function $(Dt,$t){if(1&Dt&&(c.TgZ(0,"div",20),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.Q6J("ngSwitch",xt.entityType),c.xp6(1),c.hij(" ",c.lcZ(2,2,"ROLES.GROUPADMIN_GROUPS_"+xt.entityType)," ")}}function Ee(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,$,3,4,"div",18),c._UZ(2,"perun-web-apps-groups-list",19),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,Me))("groups",xt.groups)}}function Oe(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getGroups(vt.roles.get("GROUPADMIN").get("Group")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",17),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,se,1,0,"mat-spinner",1),c.YNc(8,Ee,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.GROUPADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function ct(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Xe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS_"+xt.entityType)," ")}}const _t=function(){return["id","recent","vo","name","description"]};function Je(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Xe,3,3,"div",2),c._UZ(2,"perun-web-apps-groups-list",19),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,_t))("groups",xt.groups)}}function gt(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getGroups(vt.roles.get("GROUPOBSERVER").get("Group")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",17),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,ct,1,0,"mat-spinner",1),c.YNc(8,Je,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.GROUPOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Y(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Ce(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.VOADMIN_VOS_"+xt.entityType)," ")}}function ae(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Ce,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function re(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("VOADMIN").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Y,1,0,"mat-spinner",1),c.YNc(8,ae,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.VOADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Se(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Fe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.VOOBSERVER_VOS_"+xt.entityType)," ")}}function be(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Fe,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function Ue(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("VOOBSERVER").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Se,1,0,"mat-spinner",1),c.YNc(8,be,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.VOOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function P(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function H(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS_"+xt.entityType)," ")}}function i(Dt,$t){if(1&Dt&&(c.TgZ(0,"div")(1,"div"),c.YNc(2,H,3,3,"div",2),c._UZ(3,"perun-web-apps-vos-list",22),c.qZA()()),2&Dt){const xt=c.oxw(3);c.xp6(2),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function o(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("TRUSTEDFACILITYADMIN").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,P,1,0,"mat-spinner",1),c.YNc(8,i,4,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function f(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function l(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS_"+xt.entityType)," ")}}function a(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,l,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function n(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("TOPGROUPCREATOR").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",21),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,f,1,0,"mat-spinner",1),c.YNc(8,a,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function t(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function r(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES_"+xt.entityType)," ")}}function s(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,r,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",24),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("routingVo",!0)}}function d(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getResources(vt.roles.get("RESOURCEADMIN").get("Resource")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",23),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,t,1,0,"mat-spinner",1),c.YNc(8,s,3,5,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.RESOURCEADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function p(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function M(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES_"+xt.entityType)," ")}}function _e(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,M,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",24),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("routingVo",!0)}}function bt(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getResources(vt.roles.get("RESOURCEOBSERVER").get("Resource")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",23),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,p,1,0,"mat-spinner",1),c.YNc(8,_e,3,5,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Vt(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function on(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES_"+xt.entityType)," ")}}function Mt(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,on,3,3,"div",2),c._UZ(2,"perun-web-apps-resources-list",24),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("resources",xt.resources)("displayedColumns",c.DdM(4,ce))("routingVo",!0)}}function ft(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getResources(vt.roles.get("RESOURCESELFSERVICE").get("Resource")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",23),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Vt,1,0,"mat-spinner",1),c.YNc(8,Mt,3,5,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function je(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function Pe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES_"+xt.entityType)," ")}}function Qe(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,Pe,3,3,"div",2),c._UZ(2,"perun-web-apps-facilities-list",26),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,xe))("facilities",xt.facilities)}}function qe(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getFacilities(vt.roles.get("FACILITYADMIN").get("Facility")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",25),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,je,1,0,"mat-spinner",1),c.YNc(8,Qe,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.FACILITYADMIN")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function Be(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function me(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES_"+xt.entityType)," ")}}function ve(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,me,3,3,"div",2),c._UZ(2,"perun-web-apps-facilities-list",26),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,xe))("facilities",xt.facilities)}}function ze(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getFacilities(vt.roles.get("FACILITYOBSERVER").get("Facility")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",25),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,Be,1,0,"mat-spinner",1),c.YNc(8,ve,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.FACILITYOBSERVER")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function tt(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function at(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS_"+xt.entityType)," ")}}const Re=function(){return["id","fullName","sponsored"]};function st(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,at,3,3,"div",2),c._UZ(2,"perun-web-apps-members-list",27),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,Re))("members",xt.members)}}function Pt(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getMembers(vt.roles.get("SPONSORSHIP").get("Member")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,tt,1,0,"mat-spinner",1),c.YNc(8,st,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.SPONSORSHIP")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function jt(Dt,$t){1&Dt&&c._UZ(0,"mat-spinner",4)}function cn(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt){const xt=c.oxw(4);c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.SPONSOR_VOS_"+xt.entityType)," ")}}function Xt(Dt,$t){if(1&Dt&&(c.TgZ(0,"div"),c.YNc(1,cn,3,3,"div",2),c._UZ(2,"perun-web-apps-vos-list",22),c.qZA()),2&Dt){const xt=c.oxw(3);c.xp6(1),c.Q6J("ngIf",xt.showDescription),c.xp6(1),c.Q6J("displayedColumns",c.DdM(3,q))("vos",xt.vos)}}function sn(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){c.CHM(xt);const vt=c.oxw(2);return c.KtG(vt.getVos(vt.roles.get("SPONSOR").get("Vo")))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()(),c.YNc(7,jt,1,0,"mat-spinner",1),c.YNc(8,Xt,3,4,"div",2),c.qZA()}if(2&Dt){const xt=c.oxw(2);c.xp6(5),c.Oqu(c.lcZ(6,3,"ROLES.SPONSOR")),c.xp6(2),c.Q6J("ngIf",xt.loading),c.xp6(1),c.Q6J("ngIf",!xt.loading)}}function mn(Dt,$t){1&Dt&&(c.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()()()),2&Dt&&(c.xp6(5),c.Oqu(c.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function Nt(Dt,$t){1&Dt&&(c.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.ALo(6,"translate"),c.qZA()()()()),2&Dt&&(c.xp6(5),c.Oqu(c.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function Rt(Dt,$t){if(1&Dt&&(c.TgZ(0,"p",29),c._uU(1),c.qZA()),2&Dt){const xt=$t.$implicit;c.xp6(1),c.AsE("",xt[0]," ids: ",xt[1],"")}}function Ct(Dt,$t){if(1&Dt){const xt=c.EpF();c.TgZ(0,"mat-expansion-panel",7),c.NdJ("opened",function(){const ot=c.CHM(xt).$implicit,$e=c.oxw(2);return c.KtG($e.getInnerKeys(ot))}),c.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c._UZ(3,"mat-icon",8),c.TgZ(4,"p",9),c._uU(5),c.qZA()()(),c.YNc(6,Rt,2,2,"p",28),c.qZA()}if(2&Dt){const xt=$t.$implicit,rt=c.oxw(2);c.xp6(5),c.Oqu(xt),c.xp6(1),c.Q6J("ngForOf",rt.currentIds)}}function Ut(Dt,$t){if(1&Dt&&(c.TgZ(0,"mat-accordion"),c.YNc(1,L,9,5,"mat-expansion-panel",5),c.YNc(2,G,9,5,"mat-expansion-panel",5),c.YNc(3,Oe,9,5,"mat-expansion-panel",5),c.YNc(4,gt,9,5,"mat-expansion-panel",5),c.YNc(5,re,9,5,"mat-expansion-panel",5),c.YNc(6,Ue,9,5,"mat-expansion-panel",5),c.YNc(7,o,9,5,"mat-expansion-panel",5),c.YNc(8,n,9,5,"mat-expansion-panel",5),c.YNc(9,d,9,5,"mat-expansion-panel",5),c.YNc(10,bt,9,5,"mat-expansion-panel",5),c.YNc(11,ft,9,5,"mat-expansion-panel",5),c.YNc(12,qe,9,5,"mat-expansion-panel",5),c.YNc(13,ze,9,5,"mat-expansion-panel",5),c.YNc(14,Pt,9,5,"mat-expansion-panel",5),c.YNc(15,sn,9,5,"mat-expansion-panel",5),c.YNc(16,mn,7,3,"mat-expansion-panel",2),c.YNc(17,Nt,7,3,"mat-expansion-panel",2),c.YNc(18,Ct,7,2,"mat-expansion-panel",6),c.qZA()),2&Dt){const xt=c.oxw();c.xp6(1),c.Q6J("ngIf",xt.roles.get("SELF")),c.xp6(1),c.Q6J("ngIf",xt.roles.get("MEMBERSHIP")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("GROUPADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("GROUPOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("VOADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("VOOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("TRUSTEDFACILITYADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("TOPGROUPCREATOR")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("RESOURCEADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("RESOURCEOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("RESOURCESELFSERVICE")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("FACILITYADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("FACILITYOBSERVER")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("SPONSORSHIP")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("SPONSOR")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("PERUNADMIN")),c.xp6(1),c.Q6J("ngIf",xt.roles.has("PERUNOBSERVER")),c.xp6(1),c.Q6J("ngForOf",xt.roleNames)}}function Qt(Dt,$t){1&Dt&&(c.TgZ(0,"perun-web-apps-alert",30),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&Dt&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"ROLES.NO_ROLES"),"\n"))}let An=(()=>{class Dt{constructor(xt,rt,vt,ot,$e,At,Z){this.authzResolverService=xt,this.usersManagerService=rt,this.vosManagerService=vt,this.facilitiesManagerService=ot,this.resourcesManagerService=$e,this.groupsManagerService=At,this.membersManagerService=Z,this.roles=new Map,this.groups=[],this.vos=[],this.facilities=[],this.resources=[],this.members=[],this.users=[],this.currentIds=[]}getGroups(xt){this.loading=!0,this.groups=[],this.groupsManagerService.getGroupsByIds(xt).subscribe(rt=>{this.groups=rt,this.loading=!1})}getVos(xt){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(xt).subscribe(rt=>{this.vos=rt,this.loading=!1})}getFacilities(xt){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesByIds(xt).subscribe(rt=>{this.facilities=rt.map(vt=>({facility:vt})),this.loading=!1})}getResources(xt){this.loading=!0,this.resources=[],this.resourcesManagerService.getRichResourcesByIds(xt).subscribe(rt=>{this.resources=rt,this.loading=!1})}getMembers(xt){this.loading=!0,this.members=[],this.membersManagerService.getRichMembersByIds(xt).subscribe(rt=>{this.members=rt,this.loading=!1})}getSelfData(xt){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.entityId).subscribe(rt=>{this.vos=rt;const vt=[this.entityId].concat(xt);this.usersManagerService.getRichUsersByIds(vt).subscribe(ot=>{this.users=ot,this.loading=!1})})}getMembershipData(xt,rt,vt,ot){this.loading=!0,this.vos=[],this.resources=[],this.groups=[],this.facilities=[],this.getResourcesIfArrayNotEmpty(vt).then(()=>this.getFacilitiesIfArrayNotEmpty(ot).then(()=>this.getVosIfArrayNotEmpty(rt).then(()=>this.getGroupsIfArrayNotEmpty(xt).then(()=>this.loading=!1).catch($e=>console.error($e))).catch($e=>console.error($e))).catch($e=>console.error($e))).catch($e=>console.error($e))}getResourcesIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.resourcesManagerService.getRichResourcesByIds(xt).subscribe(vt=>{this.resources=vt,rt()}):rt()})}getFacilitiesIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.facilitiesManagerService.getFacilitiesByIds(xt).subscribe(vt=>{this.facilities=vt.map(ot=>({facility:ot})),rt()}):rt()})}getVosIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.vosManagerService.getVosByIds(xt).subscribe(vt=>{this.vos=vt,rt()}):rt()})}getGroupsIfArrayNotEmpty(xt){return new Promise(rt=>{xt&&0!==xt.length?this.groupsManagerService.getGroupsByIds(xt).subscribe(vt=>{this.groups=vt,rt()}):rt()})}getInnerKeys(xt){if(this.roles.get(xt)){const rt=this.roles.get(xt).entries(),vt=[];let ot=rt.next().value;for(;ot;)vt.push(ot),ot=rt.next().value;this.currentIds=vt}else this.currentIds=[]}}return Dt.\u0275fac=function(xt){return new(xt||Dt)(c.Y36(e.Ct),c.Y36(e.Fv),c.Y36(e.YF),c.Y36(e.IQ),c.Y36(e.xk),c.Y36(e.ff),c.Y36(e.uq))},Dt.\u0275cmp=c.Xpm({type:Dt,selectors:[["app-perun-web-apps-roles-page"]],inputs:{roles:"roles",outerLoading:"outerLoading",showDescription:"showDescription",roleNames:"roleNames",entityId:"entityId",entityType:"entityType"},decls:6,vars:6,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","disableRouting","users"],["class","mt-5",4,"ngIf"],[3,"displayedColumns","vos","disableRouting"],[1,"mt-5"],[3,"displayedColumns","groups","disableRouting"],[3,"resources","displayedColumns","disableRouting"],[3,"displayedColumns","facilities","disableRouting"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"ngSwitch",4,"ngIf"],[3,"displayedColumns","groups"],[3,"ngSwitch"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],[3,"displayedColumns","vos"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","displayedColumns","routingVo"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"displayedColumns","members"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"],["alert_type","warn"]],template:function(xt,rt){1&xt&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.YNc(3,oe,1,0,"mat-spinner",1),c.YNc(4,Ut,19,18,"mat-accordion",2),c.YNc(5,Qt,3,3,"perun-web-apps-alert",3)),2&xt&&(c.xp6(1),c.Oqu(c.lcZ(2,4,"ROLES.TITLE")),c.xp6(2),c.Q6J("ngIf",rt.outerLoading),c.xp6(1),c.Q6J("ngIf",!rt.outerLoading&&rt.roles.size>0),c.xp6(1),c.Q6J("ngIf",!rt.outerLoading&&0===rt.roles.size))},dependencies:[A.sg,A.O5,A.RF,w.Hw,g.pp,g.ib,g.yz,g.yK,C.Ou,T.kc,E.w,S.Z,U.W,_.C,V.O,z.X,Q.C,te.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),Dt})()},60205:(Ye,pe,h)=>{"use strict";h.d(pe,{Q:()=>j});var e=h(94650),c=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(32080),T=h(36895),E=h(94364),S=h(97392),U=h(56709),_=h(10266),V=h(98380),z=h(50301),Q=h(18750),te=h(89383);function oe(R,G){if(1&R){const se=e.EpF();e.TgZ(0,"th",18)(1,"mat-checkbox",19),e.NdJ("change",function(Ee){e.CHM(se);const Oe=e.oxw();return e.KtG(Ee?Oe.masterToggle():null)}),e.qZA()()}if(2&R){const se=e.oxw();e.xp6(1),e.Q6J("aria-label",se.checkboxLabel())("checked",se.selection.hasValue()&&se.isAllSelected())("indeterminate",se.selection.hasValue()&&!se.isAllSelected())}}function ee(R,G){if(1&R){const se=e.EpF();e.TgZ(0,"td",20)(1,"mat-checkbox",21),e.NdJ("change",function(Ee){const ct=e.CHM(se).$implicit,Xe=e.oxw();return e.KtG(Ee?Xe.selection.toggle(ct):null)})("click",function(Ee){return Ee.stopPropagation()}),e.ALo(2,"lowercase"),e.qZA()()}if(2&R){const se=G.$implicit,$=e.oxw();e.xp6(1),e.Q2q("data-cy","",e.lcZ(2,3,se.name),"-checkbox"),e.Q6J("aria-label",$.checkboxLabel(se))("checked",$.selection.isSelected(se))}}function le(R,G){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function de(R,G){if(1&R&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Oqu(se.id)}}function Te(R,G){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function v(R,G){if(1&R&&(e.TgZ(0,"td",24),e.ALo(1,"lowercase"),e._uU(2),e.qZA()),2&R){const se=G.$implicit;e.Q2q("data-cy","",e.lcZ(1,2,se.name),"-name-td"),e.xp6(2),e.hij(" ",se.name," ")}}function L(R,G){1&R&&e._UZ(0,"th",25)}function B(R,G){1&R&&(e.TgZ(0,"mat-icon",28),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&R&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function W(R,G){1&R&&(e.TgZ(0,"mat-icon",29),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&R&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function q(R,G){if(1&R&&(e.TgZ(0,"td",24),e.YNc(1,B,3,3,"mat-icon",26),e.YNc(2,W,3,3,"mat-icon",27),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Q6J("ngIf",se.enabled),e.xp6(1),e.Q6J("ngIf",!se.enabled)}}function ue(R,G){1&R&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function ye(R,G){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Oqu(se.script)}}function Me(R,G){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function we(R,G){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const se=G.$implicit;e.xp6(1),e.Oqu(se.description)}}function Ge(R,G){1&R&&e._UZ(0,"tr",30)}const ce=function(R){return["/admin/services",R]};function Ze(R,G){if(1&R&&e._UZ(0,"tr",31),2&R){const se=G.$implicit,$=e.oxw();e.ekj("cursor-pointer",!$.disableRouting)("disable-outline",$.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",$.disableRouting?null:e.VKq(6,ce,se.id))("routerLink",$.disableRouting?null:e.VKq(8,ce,se.id))}}function he(R,G){1&R&&(e.TgZ(0,"perun-web-apps-alert",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function xe(R,G){1&R&&(e.TgZ(0,"perun-web-apps-alert",32),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let j=(()=>{class R{constructor(se,$){this.authResolver=se,this.tableCheckbox=$,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=g.f7}set matSort(se){this.sort=se,this.setDataSource()}static getDataForColumn(se,$){switch($){case"id":return se.id.toString();case"name":return se.name;case"enabled":return se.enabled?"true":"false";case"script":return se.script;case"description":return se.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(se=>"id"!==se)),this.dataSource=new A.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportAllData(se){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,R.getDataForColumn),se)}exportDisplayedData(se){const $=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Ee=$+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice($,Ee),this.displayedColumns,R.getDataForColumn),se)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(se,$)=>(0,g.Sd)(se,$,this.displayedColumns,R.getDataForColumn),this.dataSource.sortData=(se,$)=>(0,g.pR)(se,$,R.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(se){return se?`${this.selection.isSelected(se)?"deselect":"select"} row ${se.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return R.\u0275fac=function(se){return new(se||R)(e.Y36(C.x4),e.Y36(C.UA))},R.\u0275cmp=e.Xpm({type:R,selectors:[["app-services-list"]],viewQuery:function(se,$){if(1&se&&(e.Gf(g.l9,7),e.Gf(c.YE,7)),2&se){let Ee;e.iGM(Ee=e.CRH())&&($.child=Ee.first),e.iGM(Ee=e.CRH())&&($.matSort=Ee.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom green",3,"matTooltip",4,"ngIf"],["class","align-bottom red",3,"matTooltip",4,"ngIf"],[1,"align-bottom","green",3,"matTooltip"],[1,"align-bottom","red",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(se,$){1&se&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(Oe){return $.exportDisplayedData(Oe)})("exportAllData",function(Oe){return $.exportAllData(Oe)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,oe,2,3,"th",4),e.YNc(5,ee,3,5,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,le,3,3,"th",7),e.YNc(8,de,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Te,3,3,"th",7),e.YNc(11,v,3,4,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,L,1,0,"th",12),e.YNc(14,q,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,ue,3,3,"th",12),e.YNc(17,ye,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,Me,3,3,"th",7),e.YNc(20,we,2,1,"td",10),e.BQk(),e.YNc(21,Ge,1,0,"tr",15),e.YNc(22,Ze,1,10,"tr",16),e.qZA()()(),e.YNc(23,he,3,3,"perun-web-apps-alert",17),e.YNc(24,xe,3,3,"perun-web-apps-alert",17)),2&se&&(e.Q6J("hidden",void 0===$.services||0===$.services.length||0===$.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",$.pageSizeOptions)("dataLength",$.dataSource.filteredData.length)("tableId",$.tableId),e.xp6(1),e.Q6J("dataSource",$.dataSource),e.xp6(19),e.Q6J("matHeaderRowDef",$.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",$.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===$.dataSource.filteredData.length&&void 0!==$.services&&0!==$.services.length),e.xp6(1),e.Q6J("ngIf",void 0===$.services||0===$.services.length))},dependencies:[T.O5,E.rH,S.Hw,c.YE,c.nU,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,U.oG,_.gM,V.w,z.YH,Q.l,T.i8,te.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.green[_ngcontent-%COMP%]{color:green}.red[_ngcontent-%COMP%]{color:red}"]}),R})()},64877:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>ct});var e=h(96308),c=h(30671),A=h(95017),w=h(9244),g=h(32080),C=h(94650),T=h(36895),E=h(97392),S=h(56709),U=h(10266),_=h(98380),V=h(50301),z=h(18750),Q=h(89383),te=h(31359),oe=h(16119),ee=h(7598),le=h(9954);function de(Xe,_t){if(1&Xe){const Je=C.EpF();C.TgZ(0,"mat-checkbox",21),C.NdJ("change",function(Y){C.CHM(Je);const Ce=C.oxw(2);return C.KtG(Y?Ce.masterToggle():null)}),C.qZA()}if(2&Xe){const Je=C.oxw(2);C.Q6J("aria-label",Je.checkboxLabel())("checked",Je.selection.hasValue()&&Je.isAllSelected())("indeterminate",Je.selection.hasValue()&&!Je.isAllSelected())}}function Te(Xe,_t){if(1&Xe&&(C.TgZ(0,"th",19),C.YNc(1,de,1,3,"mat-checkbox",20),C.qZA()),2&Xe){const Je=C.oxw();C.xp6(1),C.Q6J("ngIf",Je.selection.isMultipleSelection())}}function v(Xe,_t){if(1&Xe){const Je=C.EpF();C.TgZ(0,"td",22)(1,"mat-checkbox",23),C.NdJ("change",function(Y){const ae=C.CHM(Je).$implicit,re=C.oxw();return C.KtG(Y?re.selection.toggle(ae):null)})("click",function(Y){return Y.stopPropagation()}),C.ALo(2,"lowercase"),C.qZA()()}if(2&Xe){const Je=_t.$implicit,gt=C.oxw();C.xp6(1),C.Q2q("data-cy","",C.lcZ(2,4,Je.firstName),"-checkbox"),C.Q6J("aria-label",gt.checkboxLabel(Je))("checked",gt.selection.isSelected(Je))("disabled",gt.disableSelf&&Je.id===gt.principalId&&!gt.authResolver.isPerunAdmin())}}function L(Xe,_t){1&Xe&&C._UZ(0,"th",24)}function B(Xe,_t){1&Xe&&(C.TgZ(0,"mat-icon",28),C.ALo(1,"translate"),C._uU(2," account_circle "),C.qZA()),2&Xe&&C.s9C("matTooltip",C.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function W(Xe,_t){if(1&Xe&&(C._UZ(0,"mat-icon",29),C.ALo(1,"translate")),2&Xe){const Je=C.oxw(2);C.s9C("matTooltip",C.lcZ(1,2,"MANAGERS_LIST.SERVICE")),C.Q6J("svgIcon",Je.svgIcon)}}function q(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",25),C.YNc(1,B,3,3,"mat-icon",26),C.YNc(2,W,2,4,"mat-icon",27),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Q6J("ngIf",!Je.serviceUser),C.xp6(1),C.Q6J("ngIf",Je.serviceUser)}}function ue(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function ye(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",25),C._uU(1),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.hij(" ",Je.id," ")}}function Me(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function we(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C.ALo(1,"lowercase"),C._uU(2),C.ALo(3,"userFullName"),C.qZA()),2&Xe){const Je=_t.$implicit;C.Q2q("data-cy","",C.lcZ(1,2,Je.firstName),"-firstName-td"),C.xp6(2),C.hij(" ",C.lcZ(3,4,Je)," ")}}function Ge(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function ce(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userVo"),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Je))}}function Ze(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function he(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userEmail"),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Je))}}function xe(Xe,_t){1&Xe&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function j(Xe,_t){if(1&Xe&&(C.TgZ(0,"td",31),C._uU(1),C.ALo(2,"userLogins"),C.qZA()),2&Xe){const Je=_t.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,Je))}}function R(Xe,_t){1&Xe&&C._UZ(0,"tr",32)}const G=function(Xe){return["/admin/users",Xe]},se=function(Xe){return["/myProfile/service-identities",Xe]};function $(Xe,_t){if(1&Xe&&C._UZ(0,"tr",33),2&Xe){const Je=_t.$implicit,gt=C.oxw();C.ekj("cursor-pointer",!gt.disableRouting),C.Q6J("perunWebAppsForceRouterLink",gt.disableRouting?null:gt.routeToAdmin?C.VKq(4,G,Je.id):C.VKq(6,se,Je.id))("perunWebAppsMiddleClickRouterLink",gt.disableRouting?null:gt.routeToAdmin?C.VKq(8,G,Je.id):C.VKq(10,se,Je.id))}}function Ee(Xe,_t){if(1&Xe&&(C.TgZ(0,"perun-web-apps-alert",34),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe){const Je=C.oxw();C.xp6(1),C.hij(" ",Je.noUsersFoundLabel?Je.noUsersFoundLabel:C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Oe(Xe,_t){1&Xe&&(C.TgZ(0,"perun-web-apps-alert",34),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Xe&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ct=(()=>{class Xe{constructor(Je,gt,Y){this.authResolver=Je,this.tableCheckbox=gt,this.storeService=Y,this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=w.f7}set matSort(Je){this.sort=Je}static getDataForColumn(Je,gt){switch(gt){case"id":return Je.id.toString();case"user":return Je.serviceUser?"true":"false";case"name":return Je?Je.lastName?Je.lastName:Je.firstName??"":"";case"organization":return(0,w.OV)(Je);case"email":return(0,w.kN)(Je);case"logins":return(0,w.lt)(Je);default:return""}}static getExportDataForColumn(Je,gt){switch(gt){case"id":return Je.id.toString();case"user":return Je.serviceUser?"service-user":"user";case"name":return Je?(0,w.bD)(Je):"";case"organization":return(0,w.OV)(Je);case"email":return(0,w.kN)(Je);case"logins":return(0,w.lt)(Je);default:return""}}exportAllData(Je){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Xe.getExportDataForColumn),Je)}exportDisplayedData(Je){const gt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Y=gt+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(gt,Y),this.displayedColumns,Xe.getExportDataForColumn),Je)}setDataSource(){this.dataSource||(this.dataSource=new c.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Je,gt)=>(0,w.Sd)(Je,gt,this.displayedColumns,Xe.getDataForColumn),this.dataSource.sortData=(Je,gt)=>(0,w.pR)(Je,gt,Xe.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Je=>"id"!==Je)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Je){return Je?`${this.selection.isSelected(Je)?"deselect":"select"} row ${Je.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Xe.\u0275fac=function(Je){return new(Je||Xe)(C.Y36(g.x4),C.Y36(g.UA),C.Y36(g.d6))},Xe.\u0275cmp=C.Xpm({type:Xe,selectors:[["app-users-list"]],viewQuery:function(Je,gt){if(1&Je&&(C.Gf(w.l9,7),C.Gf(e.YE,7)),2&Je){let Y;C.iGM(Y=C.CRH())&&(gt.child=Y.first),C.iGM(Y=C.CRH())&&(gt.matSort=Y.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[C.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Je,gt){1&Je&&(C.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportDisplayedData",function(Ce){return gt.exportDisplayedData(Ce)})("exportAllData",function(Ce){return gt.exportAllData(Ce)}),C.TgZ(2,"table",2),C.ynx(3,3),C.YNc(4,Te,2,1,"th",4),C.YNc(5,v,3,6,"td",5),C.BQk(),C.ynx(6,6),C.YNc(7,L,1,0,"th",7),C.YNc(8,q,3,2,"td",8),C.BQk(),C.ynx(9,9),C.YNc(10,ue,3,3,"th",10),C.YNc(11,ye,2,1,"td",8),C.BQk(),C.ynx(12,11),C.YNc(13,Me,3,3,"th",10),C.YNc(14,we,4,6,"td",12),C.BQk(),C.ynx(15,13),C.YNc(16,Ge,3,3,"th",10),C.YNc(17,ce,3,3,"td",12),C.BQk(),C.ynx(18,14),C.YNc(19,Ze,3,3,"th",10),C.YNc(20,he,3,3,"td",12),C.BQk(),C.ynx(21,15),C.YNc(22,xe,3,3,"th",10),C.YNc(23,j,3,3,"td",12),C.BQk(),C.YNc(24,R,1,0,"tr",16),C.YNc(25,$,1,12,"tr",17),C.qZA()()(),C.YNc(26,Ee,3,3,"perun-web-apps-alert",18),C.YNc(27,Oe,3,3,"perun-web-apps-alert",18)),2&Je&&(C.Q6J("hidden",0===gt.users.length||!gt.dataSource||0===gt.dataSource.filteredData.length),C.xp6(1),C.Q6J("dataLength",gt.dataSource.filteredData.length)("pageSizeOptions",gt.pageSizeOptions)("tableId",gt.tableId),C.xp6(1),C.Q6J("dataSource",gt.dataSource),C.xp6(22),C.Q6J("matHeaderRowDef",gt.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",gt.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===gt.users.length),C.xp6(1),C.Q6J("ngIf",0===gt.dataSource.filteredData.length&&0!==gt.users.length))},dependencies:[T.O5,E.Hw,e.YE,e.nU,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,S.oG,U.gM,_.w,V.Kd,V.YH,z.l,T.i8,Q.X$,te.d,oe.S,ee.g,le.Z],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Xe})()},57706:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(94650),c=h(89383);let A=(()=>{class w{constructor(C){this.translateService=C,this.returnData=""}transform(C){switch(C){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(T=>{this.returnData=T});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(T=>{this.returnData=T});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(T=>{this.returnData=T});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(T=>{this.returnData=T});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(T=>{this.returnData=T});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(T=>{this.returnData=T});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(T=>{this.returnData=T});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(T=>{this.returnData=T});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(T=>{this.returnData=T});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(T=>{this.returnData=T});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(T=>{this.returnData=T});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(T=>{this.returnData=T});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(T=>{this.returnData=T});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(T=>{this.returnData=T});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(T=>{this.returnData=T});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(T=>{this.returnData=T});break;default:return C}return this.returnData}}return w.\u0275fac=function(C){return new(C||w)(e.Y36(c.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(94650),c=h(89383);let A=(()=>{class w{constructor(C){this.translate=C,this.returnData=""}transform(C){switch(C){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(T=>{this.returnData=`done${T}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(T=>{this.returnData=`clear${T}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(T=>{this.returnData=`contact_mail ${T}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(T=>{this.returnData=`gavel${T}`});break;default:this.returnData=C}return this.returnData}}return w.\u0275fac=function(C){return new(C||w)(e.Y36(c.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>A});var e=h(32080),c=h(94650);let A=(()=>{class w{constructor(C){this.storeService=C,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(C,T,E){return!!(this.storeService.get("enforce_consents")&&E&&T)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((U,_)=>U||C.startsWith(_),!1)}}return w.\u0275fac=function(C){return new(C||w)(c.Y36(e.d6,16))},w.\u0275pipe=c.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.substring(40)}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"extSourceType",type:A,pure:!0}),A})()},14264:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>ve});var e=h(36895),c=h(94364),A=h(47957),w=h(4859),g=h(56709),C=h(3238),T=h(99602),E=h(65412),S=h(44850),U=h(37084),_=h(59549),V=h(97392),z=h(284),Q=h(98739),te=h(73162),oe=h(51572),ee=h(71948),le=h(84385),de=h(23267),Te=h(90455),v=h(17009),L=h(96308),B=h(30671),W=h(3848),q=h(10266),ue=h(35423),ye=h(73546),Me=h(42673),we=h(77331),Ge=h(28255),ce=h(86257),Ze=h(24006),he=h(73228),xe=h(36769),j=h(32080),R=h(94650),G=h(50301),se=h(89383);const $=["collapse"],Ee=function(){return{color:"linkTextColor"}};function Oe(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,Ee))}function ct(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,Ee))}function Xe(ze,tt){if(1&ze&&(R.TgZ(0,"span",12),R.YNc(1,Oe,2,2,"mat-icon",13),R.YNc(2,ct,2,2,"mat-icon",13),R.qZA()),2&ze){const at=R.oxw().$implicit,Re=R.oxw(2);R.xp6(1),R.Q6J("ngIf",!Re.isActive(Re.currentUrl,at.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}const _t=function(ze,tt){return{color:ze,"border-color":tt}};function Je(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"a",17),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw(4);return R.KtG(jt.navigate(Pt.url))}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw(4);R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",at.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",R.WLB(9,_t,Re.linkTextColor,Re.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(2,7,at.label)," ")}}function gt(ze,tt){if(1&ze&&(R.TgZ(0,"div",15),R.YNc(1,Je,3,12,"a",16),R.qZA()),2&ze){const at=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==at?null:at.children)}}function Y(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"div")(1,"a",9),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw(2);return R.KtG(jt.navigate(Pt.url))}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,Xe,3,2,"span",10),R.qZA(),R.YNc(5,gt,2,2,"div",11),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw(2);R.xp6(1),R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",at.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",R.WLB(11,_t,Re.linkTextColor,Re.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,at.label)," "),R.xp6(2),R.Q6J("ngIf",at.children),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}function Ce(ze,tt){if(1&ze&&(R.TgZ(0,"div"),R.YNc(1,Y,6,14,"div",8),R.qZA()),2&ze){const at=R.oxw();R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",at.item.links)}}const ae=function(ze,tt){return{background:ze,"border-top":tt}},re=function(ze){return{color:ze}},Se=function(){return{color:"currentColor"}},Fe=function(ze){return{background:ze}};let be=(()=>{class ze{constructor(at,Re){this.router=at,this.store=Re,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=at.url,at.events.subscribe(st=>{st instanceof c.m2&&(this.currentUrl=st.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(at,Re){return new RegExp(Re).test(at)}navigate(at){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(at)):this.router.navigate(at)}}return ze.\u0275fac=function(at){return new(at||ze)(R.Y36(c.F0),R.Y36(j.d6))},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-side-menu-item"]],viewQuery:function(at,Re){if(1&at&&R.Gf($,5),2&at){let st;R.iGM(st=R.CRH())&&(Re.collapseDiv=st.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(at,Re){1&at&&(R.TgZ(0,"div",0)(1,"div",1),R.NdJ("click",function(){return Re.toggle()}),R.TgZ(2,"div",2)(3,"a",3)(4,"div"),R._UZ(5,"mat-icon",4),R.qZA(),R.TgZ(6,"div",5),R._uU(7),R.ALo(8,"translate"),R.qZA()()()(),R.TgZ(9,"div")(10,"div",6),R.YNc(11,Ce,2,2,"div",7),R.qZA()()()),2&at&&(R.xp6(1),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(18,ae,Re.item.backgroundColorCss,Re.index?Re.dividerStyle:"none")),R.xp6(1),R.Gre("entity-menu-item-link ",Re.item.labelClass,""),R.Q6J("perunWebAppsMiddleClickRouterLink",Re.item.baseLink),R.xp6(1),R.Q6J("ngStyle",R.VKq(21,re,Re.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(23,Se))("svgIcon",Re.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,16,Re.item.label)),R.xp6(2),R.Q6J("@openClose",Re.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",Re.item.linksClass,""),R.Q6J("ngStyle",R.VKq(24,Fe,Re.linkBgColor)),R.xp6(1),R.Q6J("ngIf",Re.showLinks))},dependencies:[e.mk,e.sg,e.O5,e.PC,V.Hw,C.wG,G.YH,se.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[xe.BQ,xe.Ly]}}),ze})(),Ue=(()=>{class ze{transform(at){if(void 0===at.value)return"";switch(at.type){case"java.lang.String":return at.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(at.value);case"java.util.ArrayList":return this.whenValueIsArray(at.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(at.value)}}whenValueIsArray(at){let Re="";return at.forEach(function(st){Re=Re.concat(st+", ")}),Re}whenValueIsMap(at){let Re="";return at.forEach((st,Pt)=>{Re=Re.concat(Pt+": "+st+", ")}),Re}}return ze.\u0275fac=function(at){return new(at||ze)},ze.\u0275pipe=R.Yjl({name:"anyToString",type:ze,pure:!0}),ze})();const P=["collapse"],H=function(){return{color:"linkTextColor"}};function i(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,H))}function o(ze,tt){1&ze&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&ze&&R.Q6J("ngStyle",R.DdM(1,H))}function f(ze,tt){if(1&ze&&(R.TgZ(0,"span",10),R.YNc(1,i,2,2,"mat-icon",11),R.YNc(2,o,2,2,"mat-icon",11),R.qZA()),2&ze){const at=R.oxw().$implicit,Re=R.oxw();R.xp6(1),R.Q6J("ngIf",!Re.isActive(Re.currentUrl,at.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}const l=function(ze,tt){return{color:ze,"border-color":tt}};function a(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"a",14),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw(3);return R.KtG(jt.navigate(Pt.url))}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw(3);R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(9,l,Re.linkTextColor,Re.linkTextColor))("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",at.url),R.xp6(1),R.hij(" ",R.lcZ(2,7,at.label)," ")}}function n(ze,tt){if(1&ze&&(R.TgZ(0,"div"),R.YNc(1,a,3,12,"a",13),R.qZA()),2&ze){const at=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==at?null:at.children)}}function t(ze,tt){if(1&ze){const at=R.EpF();R.TgZ(0,"div")(1,"a",7),R.NdJ("click",function(){const Pt=R.CHM(at).$implicit,jt=R.oxw();return R.KtG(jt.navigate(Pt.url))}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,f,3,2,"span",8),R.qZA(),R.YNc(5,n,2,2,"div",9),R.qZA()}if(2&ze){const at=tt.$implicit,Re=R.oxw();R.xp6(1),R.ekj("activated",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0===Re.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",at.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",Re.isActive(Re.currentUrl,at.activatedRegex)&&void 0!==Re.item.activatedClass?Re.item.activatedClass:"")("ngStyle",R.WLB(11,l,Re.linkTextColor,Re.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,at.label)," "),R.xp6(2),R.Q6J("ngIf",at.children),R.xp6(1),R.Q6J("ngIf",Re.isActive(Re.currentUrl,at.showChildrenRegex))}}const r=function(ze){return{background:ze}},s=function(ze){return{color:ze}},d=function(){return{color:"currentColor"}};let p=(()=>{class ze{constructor(at,Re){this.router=at,this.store=Re,this.id="",this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.currentUrl=at.url,at.events.subscribe(st=>{st instanceof c.m2&&(this.currentUrl=st.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(at,Re){return new RegExp(Re).test(at)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(at){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(at)):this.router.navigate(at)}}return ze.\u0275fac=function(at){return new(at||ze)(R.Y36(c.F0),R.Y36(j.d6))},ze.\u0275cmp=R.Xpm({type:ze,selectors:[["app-side-menu-root-item"]],viewQuery:function(at,Re){if(1&at&&R.Gf(P,5),2&at){let st;R.iGM(st=R.CRH())&&(Re.collapseDiv=st.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[R.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(at,Re){1&at&&(R.TgZ(0,"div",0)(1,"div",1),R.NdJ("click",function(){return Re.toggle()}),R.TgZ(2,"div")(3,"a",2)(4,"div"),R._UZ(5,"mat-icon",3),R.qZA(),R.TgZ(6,"div",4),R._uU(7),R.ALo(8,"translate"),R.qZA()()()(),R.TgZ(9,"div")(10,"div",5),R.YNc(11,t,6,14,"div",6),R.qZA()()()),2&at&&(R.s9C("id",Re.id),R.xp6(1),R.ekj("root-header-activated",Re.isActive(Re.currentUrl,Re.item.baseColorClassRegex)),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.VKq(21,r,Re.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",Re.item.baseLink),R.xp6(1),R.Gre("entity-menu-item-link ",Re.item.labelClass,""),R.xp6(1),R.Q6J("ngStyle",R.VKq(23,s,Re.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(25,d))("svgIcon",Re.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,19,Re.item.label)),R.xp6(2),R.Q6J("@openClose",Re.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",Re.item.linksClass,""),R.Q6J("ngStyle",R.VKq(26,r,Re.linkBgColor)),R.xp6(1),R.Q6J("ngForOf",Re.item.links))},dependencies:[e.mk,e.sg,e.O5,e.PC,V.Hw,C.wG,G.YH,se.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[xe.BQ,xe.Ly]}}),ze})();var M=h(73555),_e=h(67376),bt=h(63189),Vt=h(37677),on=h(33604),Mt=h(11243),ft=h(19516),je=h(33231),Pe=h(96338),Qe=h(9244),qe=h(28499),Be=h(70844),me=h(74281);let ve=(()=>{class ze{constructor(at){this.translate=at,at.addLangs(["en","cs"])}}return ze.\u0275fac=function(at){return new(at||ze)(R.LFG(se.sK))},ze.\u0275mod=R.oAB({type:ze}),ze.\u0275inj=R.cJS({providers:[Ue,Vt.A,Be.u],imports:[e.ez,c.Bz,A.Bb,z.c,_.lN,Ze.UX,Ze.u5,V.Ps,de.SJ,U.To,se.aw.forChild({}),w.ot,L.JX,B.p0,W.Nh,ue.dp,w.ot,g.p9,E.Is,le.LD,v.ZX,oe.Cq,te.Cv,q.AV,Te.rP,T.FA,C.XK,ee.Fk,S.t,C.si,Q.TU,ye.QW,ce.T5,M._t,ye.QW,we.Hi,Ge.Tx,_e.Cl,bt.r,Me.g,on.ez,Mt.r,ft.d4,je.Co,Pe.ie,Qe.Je,qe.E3,me.jD,je.Co,A.Bb,z.c,c.Bz,Ze.UX,Ze.u5,V.Ps,de.SJ,se.aw,L.JX,B.p0,W.Nh,ue.dp,w.ot,g.p9,E.Is,le.LD,v.ZX,oe.Cq,te.Cv,q.AV,Te.rP,T.FA,C.XK,ee.Fk,S.t,ye.QW,ce.T5,C.si,Q.TU,M._t,we.Hi,we.Hi,U.To,Ge.Tx,_e.Cl,_e.Cl,_e.Cl,Mt.r]}),ze})();R.B6R(he.V,function(){return[e.sg,e.O5,be,p]},[])},69024:(Ye,pe,h)=>{"use strict";h.d(pe,{V:()=>E});var e=h(32080),c=h(32105),A=h(9244),w=h(19516),g=h(64080),C=h(94650),T=h(89383);let E=(()=>{class S{constructor(_,V,z,Q,te,oe,ee,le){this.translate=_,this.authResolver=V,this.store=z,this.apiRequest=Q,this.attributesManager=te,this.notificator=oe,this.guiAuthResolver=ee,this.routePolicyService=le,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(_){return{label:_.name,baseLink:[`/facilities/${_.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(_),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(_,V){const z=(new w.r5).transform(_,V);return{label:_.name,baseLink:[z],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(z,V?"/organizations":"/facilities",_),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(_){return{label:_.name,baseLink:[`/organizations/${_.voId}/groups/${_.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(_),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(_,V=!1,z=!1){return{label:_.name,baseLink:[`/organizations/${_.id}`],links:this.getVoLinks(_,z),colorClass:"vo-item",icon:V?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(_){return{label:(0,A.bD)(_.user),baseLink:[`/organizations/${_.voId}/members/${_.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(_),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(_,V,z){return{label:(0,A.bD)(_),baseLink:[V],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(_,V,z),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(_){return{label:(0,A.bD)(_),baseLink:[`/myProfile/service-identities/${_.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${_.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${_.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"},{label:"MENU_ITEMS.USER.AUTHENTICATION",url:[`/myProfile/service-identities/${_.id}/authentication`],activatedRegex:"/myProfile/service-identities/\\d+/authentication"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(_){return{label:_.name,baseLink:[`/admin/services/${_.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${_.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${_.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${_.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(_,V){const z=[];if(z.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${_.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",_)&&z.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${_.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",_)&&z.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${_.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",_)){const Q=[];this.routePolicyService.canNavigate("organizations-resources-preview",_)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${_.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",_)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${_.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",_)&&Q.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${_.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),z.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${_.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:Q,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",_)&&z.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${_.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",_)&&z.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${_.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",_)&&z.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${_.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",_)&&z.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",_)&&z.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${_.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",_)){const Q=[];this.routePolicyService.canNavigate("organizations-settings-expiration",_)&&Q.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${_.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",_)&&Q.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${_.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",_)&&Q.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${_.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",_)&&Q.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${_.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",_)&&Q.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${_.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",_)&&Q.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${_.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",_)&&V&&Q.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${_.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),z.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${_.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:Q,showChildrenRegex:"/organizations/\\d+/settings"})}return z}getUserLinks(_,V,z){const Q=[];return Q.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[V],activatedRegex:`${z}$`}),Q.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${V}/organizations`],activatedRegex:`${z}/organizations`}),Q.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${V}/groups`],activatedRegex:`${z}/groups`}),Q.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${V}/accounts`],activatedRegex:`${z}/accounts`}),Q.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${V}/identities`],activatedRegex:`${z}/identities`}),Q.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${V}/facilities`],activatedRegex:`${z}/facilities`}),Q.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${V}/resources`],activatedRegex:`${z}/resources`}),Q.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${V}/attributes`],activatedRegex:`${z}/attributes`}),Q.push({label:"MENU_ITEMS.USER.ROLES",url:[`${V}/roles`],activatedRegex:`^${V}/roles`}),Q.push(_.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${V}/associated-users`],activatedRegex:`^${V}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${V}/service-identities`],activatedRegex:`^${V}/service-identities`}),Q}getMemberLinks(_){const V=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${_.voId}/members/${_.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",_)&&V.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${_.voId}/members/${_.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",_)&&V.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${_.voId}/members/${_.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",_)&&V.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${_.voId}/members/${_.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",_)&&V.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${_.voId}/members/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),V}getFacilityLinks(_){const V=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${_.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",_)&&V.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${_.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",_)&&V.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${_.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",_)&&V.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${_.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",_)&&V.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${_.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",_)&&V.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${_.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",_)&&V.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${_.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",_)&&V.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",_.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",_)){const z=[];this.routePolicyService.canNavigate("facilities-settings-owners",_)&&z.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",_.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",_)&&z.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",_.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",_)&&z.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${_.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",_)&&z.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",_.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),V.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",_.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:z,showChildrenRegex:"/facilities/\\d+/settings"})}return V}getGroupLinks(_){const V=[],z=[];return V.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${_.voId}/groups/${_.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",_)&&V.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${_.voId}/groups/${_.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",_)&&"members"!==_.name&&V.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${_.voId}/groups/${_.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",_)&&V.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${_.voId}/groups/${_.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",_)&&V.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",_)&&V.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${_.voId}/groups/${_.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",_)&&V.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${_.voId}/groups/${_.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.routePolicyService.canNavigate("groups-roles",_)&&V.push({label:"MENU_ITEMS.GROUP.ROLES",url:[`/organizations/${_.voId}/groups/${_.id}/roles`],activatedRegex:"/organizations/\\d+/groups/\\d+/roles"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(_.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{z.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${_.voId}/groups/${_.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},Q=>{"HttpErrorResponse"!==Q.name&&this.notificator.showRPCError(Q)}),this.routePolicyService.canNavigate("groups-settings-managers",_)&&z.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",_)&&z.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${_.voId}/groups/${_.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",_)&&z.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",_)&&z.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${_.voId}/groups/${_.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",_)&&z.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${_.voId}/groups/${_.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==z.length&&V.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${_.voId}/groups/${_.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:z,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),V}getResourceLinks(_,V,z){const Q=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[_],activatedRegex:`${V}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[_,"groups"],activatedRegex:`${V}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[_,"services"],activatedRegex:`${V}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[_,"members"],activatedRegex:`${V}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[_,"tags"],activatedRegex:`${V}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[_,"attributes"],activatedRegex:`${V}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",z)&&Q.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[_,"settings"],activatedRegex:`${V}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[_,"settings","managers"],activatedRegex:`${V}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${V}/\\d+/resources/\\d+/settings`}),Q}}return S.\u0275fac=function(_){return new(_||S)(C.LFG(T.sK),C.LFG(e.x4),C.LFG(e.d6),C.LFG(e.F5),C.LFG(c.H8),C.LFG(e.V6),C.LFG(e.x4),C.LFG(e.Ip))},S.\u0275prov=C.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},73228:(Ye,pe,h)=>{"use strict";h.d(pe,{V:()=>oe});var e=h(72077),c=h(69024),A=h(32080),w=h(36769),g=h(94650),C=h(77968);function T(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("sideNav",v.sideNav)}}function E(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",Te===v.accessItems.length-1)("sideNav",v.sideNav)}}function S(ee,le){if(1&ee&&g._UZ(0,"app-side-menu-root-item",2),2&ee){const de=g.oxw();g.Q6J("id","facilities-item-btn")("item",de.facilityItem)("sideNav",de.sideNav)}}function U(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",Te===v.facilityItems.length-1)("sideNav",v.sideNav)}}function _(ee,le){if(1&ee&&(g.TgZ(0,"div"),g.YNc(1,U,2,5,"div",3),g.qZA()),2&ee){const de=g.oxw();g.xp6(1),g.Q6J("ngForOf",de.facilityItems)}}function V(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",Te===v.userItems.length-1)("sideNav",v.sideNav)}}function z(ee,le){if(1&ee&&g._UZ(0,"app-side-menu-root-item",7),2&ee){const de=g.oxw();g.Q6J("id","admin-item-btn")("item",de.adminItem)("showOpen",de.adminItemOpened)("sideNav",de.sideNav)}}function Q(ee,le){if(1&ee&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&ee){const de=le.$implicit,Te=le.index,v=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Te)("item",de)("showLinks",!0)("sideNav",v.sideNav)}}function te(ee,le){if(1&ee&&(g.TgZ(0,"div"),g.YNc(1,Q,2,5,"div",3),g.qZA()),2&ee){const de=g.oxw();g.xp6(1),g.Q6J("ngForOf",de.adminItems)}}let oe=(()=>{class ee{constructor(de,Te,v){this.sideMenuService=de,this.sideMenuItemService=Te,this.authResolver=v,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(de,Te){return de.label===Te.label&&de.labelClass===Te.labelClass}static areSameLinks(de,Te){if(de.links.length!==Te.links.length)return!1;for(let v=0;vTe.length?de.length:Te.length;for(let L=0;Lde.length-1)de.push(Te[L]);else{if(L>Te.length-1){const B=de.length;for(let W=0;W{this.setFacilityItems(de)}),this.sideMenuService.accessItemsChange.subscribe(de=>{this.setAccessItems(de)}),this.sideMenuService.adminItemsChange.subscribe(de=>{this.setAdminItems(de)}),this.sideMenuService.userItemsChange.subscribe(de=>{this.setUserItems(de)}),this.sideMenuService.homeItemsChange.subscribe(de=>{this.setHomeItems(de)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.adminItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,ee.setNewItems(this.homeItems,[]),ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,ee.setNewItems(this.accessItems,[]),ee.setNewItems(this.facilityItems,[]),ee.setNewItems(this.adminItems,[])}setHomeItems(de){this.resetExceptHome(),ee.setNewItems(this.homeItems,de)}setFacilityItems(de){this.resetExceptFacility(),ee.setNewItems(this.facilityItems,de)}setAccessItems(de){this.resetExceptAccess(),ee.setNewItems(this.accessItems,de)}setUserItems(de){this.userItemOpened=0===de.length,this.resetExceptUser(),ee.setNewItems(this.userItems,de)}setAdminItems(de){this.adminItemOpened=0===de.length,this.resetExceptAdmin(),ee.setNewItems(this.adminItems,de)}}return ee.\u0275fac=function(de){return new(de||ee)(g.Y36(C.D),g.Y36(c.V),g.Y36(A.x4))},ee.\u0275cmp=g.Xpm({type:ee,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],[3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],[3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"]],template:function(de,Te){1&de&&(g.TgZ(0,"div",0)(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,T,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,E,2,5,"div",3),g.qZA(),g.YNc(7,S,1,3,"app-side-menu-root-item",5),g.YNc(8,_,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,V,2,5,"div",3),g.YNc(11,z,1,4,"app-side-menu-root-item",8),g.YNc(12,te,2,1,"div",6),g.qZA()()),2&de&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",Te.homeItem)("sideNav",Te.sideNav),g.xp6(1),g.Q6J("ngForOf",Te.homeItems),g.xp6(1),g.Q6J("item",Te.accessItem)("id","access-item-btn")("sideNav",Te.sideNav),g.xp6(2),g.Q6J("ngForOf",Te.accessItems),g.xp6(1),g.Q6J("ngIf",Te.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",Te.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",Te.userItem)("showOpen",Te.userItemOpened)("sideNav",Te.sideNav),g.xp6(1),g.Q6J("ngForOf",Te.userItems),g.xp6(1),g.Q6J("ngIf",Te.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",Te.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[w.Ly]}}),ee})()},86511:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(32080),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T,E){this.notificator=T,this.translate=E}setDialogRef(T){this.dialogRef=T}setType(T){this.entityType=T}getType(){return this.entityType}createCandidate(T){return{userExtSource:T.userExtSource,additionalUserExtSources:T.additionalUserExtSources,attributes:T.attributes,firstName:T.firstName,lastName:T.lastName,middleName:T.middleName,titleBefore:T.titleBefore,titleAfter:T.titleAfter,id:T.id}}getFormattedGroup(T){return{id:T.id,beanName:T.beanName,name:T.name,voId:T.voId}}success(T){this.notificator.showSuccess(this.translate.instant(T)),this.dialogRef.close(!0)}getCandidateWithError(T,E){const S=E.error,U=S.message.split(":").splice(1).join();return{candidate:T,errorName:S.name,errorMsg:U}}}return g.\u0275fac=function(T){return new(T||g)(c.LFG(e.V6),c.LFG(A.sK))},g.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>je});var e=h(94650),c=h(73555),A=h(65412),w=h(4859),g=h(89383);let C=(()=>{class Pe{constructor(qe){this.dialogRef=qe}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Pe.\u0275fac=function(qe){return new(qe||Pe)(e.Y36(A.so))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(qe,Be){1&qe&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1)(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",4)(14,"button",5),e.NdJ("click",function(){return Be.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return Be.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA()()),2&qe&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},dependencies:[w.lW,A.uh,A.xY,A.H8,g.X$]}),Pe})();var T=h(32080),E=h(83491),S=h(9244),U=h(94364),_=h(36895),V=h(24006),z=h(97392),Q=h(30671),te=h(51572),oe=h(10266),ee=h(98380),le=h(21963),de=h(28820),Te=h(57706),v=h(64597);const L=["table"];function B(Pe,Qe){1&Pe&&e._UZ(0,"mat-spinner",3)}function W(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function q(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"td",25)(1,"button",26),e.NdJ("mousedown",function(){e.CHM(qe);const me=e.oxw(2);return e.KtG(me.dragDisabled=!1)}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA()()()}}function ue(Pe,Qe){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ye(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.AsE(" ",qe.shortname,"",qe.required?"*":""," ")}}function Me(Pe,Qe){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function we(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,qe.type)," ")}}function Ge(Pe,Qe){1&Pe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function ce(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Be.disabledTooltip(qe)),e.xp6(3),e.hij(" ",Be.disabledHiddenDependency(qe,qe.disabled,qe.disabledDependencyItemId)," ")}}function Ze(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",28),e.YNc(1,ce,5,2,"div",29),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==qe.disabled)}}function he(Pe,Qe){1&Pe&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function xe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",Be.hiddenTooltip(qe)),e.xp6(3),e.hij(" ",Be.disabledHiddenDependency(qe,qe.hidden,qe.hiddenDependencyItemId)," ")}}function j(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",28),e.YNc(1,xe,5,2,"div",29),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==qe.hidden)}}function R(Pe,Qe){1&Pe&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function G(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function se(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",32)(3,"br")(4,"input",31),e.qZA()())}function $(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(2),e.hij(" ",qe,"")}}function Ee(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,$,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Be.getLocalizedOptions(qe)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function Oe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",Be.getLocalizedLabel(qe),e.oJD)}}function ct(Pe,Qe){if(1&Pe&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.hij(" ",qe," ")}}function Xe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"select"),e.YNc(2,ct,2,1,"option",33),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Be.getLocalizedOptions(qe))}}function _t(Pe,Qe){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Je(Pe,Qe){if(1&Pe&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.hij(" ",qe," ")}}function gt(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",31),e.qZA()())}function Y(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"div")(1,"select",37),e.NdJ("ngModelChange",function(me){e.CHM(qe);const ve=e.oxw().$implicit,ze=e.oxw(2);return e.KtG(ze.mapForCombobox[ve.id]=me)}),e.YNc(2,Je,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA()(),e.YNc(6,gt,3,0,"div",29),e.qZA()}if(2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(1),e.Q6J("ngModel",Be.mapForCombobox[qe.id]),e.xp6(1),e.Q6J("ngForOf",Be.getLocalizedOptions(qe)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===Be.mapForCombobox[qe.id])}}function Ce(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(2),e.hij(" ",qe," ")}}function ae(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"form"),e.YNc(2,Ce,3,1,"div",33),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",Be.getLocalizedOptions(qe))}}function re(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.hij(" ",Be.getLocalizedLabel(qe)," ")}}function Se(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"select",43)(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA()()()),2&Pe&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Fe(Pe,Qe){if(1&Pe&&(e.TgZ(0,"div")(1,"button",42),e._uU(2),e.qZA()()),2&Pe){const qe=e.oxw().$implicit,Be=e.oxw(2);e.xp6(2),e.hij(" ",Be.getLocalizedLabel(qe)," ")}}function be(Pe,Qe){1&Pe&&(e.TgZ(0,"div")(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br")(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br")(8,"input",41),e._uU(9," example group3 "),e.qZA()())}const Ue=function(){return["Example 1","Example 2"]},P=function(Pe){return{id:0,beanName:"Attribute",namespace:"",value:Pe}};function H(Pe,Qe){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Pe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,P,e.DdM(1,Ue))))}const i=function(){return{key1:"value 1",key2:"value 2"}};function o(Pe,Qe){1&Pe&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Pe&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,P,e.DdM(1,i))))}function f(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,G,3,0,"div",29),e.YNc(2,se,5,0,"div",29),e.YNc(3,Ee,5,4,"div",29),e.YNc(4,Oe,2,1,"div",29),e.YNc(5,Xe,3,1,"div",29),e.YNc(6,_t,2,0,"div",29),e.YNc(7,Y,7,6,"div",29),e.YNc(8,ae,3,1,"div",29),e.YNc(9,re,3,1,"div",29),e.YNc(10,Se,85,3,"div",29),e.YNc(11,Fe,3,1,"div",29),e.YNc(12,be,10,0,"div",29),e.YNc(13,H,2,4,"div",29),e.YNc(14,o,2,4,"div",29),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===qe.type||"VALIDATED_EMAIL"===qe.type||"USERNAME"===qe.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===qe.type),e.xp6(1),e.Q6J("ngIf","RADIO"===qe.type),e.xp6(1),e.Q6J("ngIf","HEADING"===qe.type||"HTML_COMMENT"===qe.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===qe.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===qe.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===qe.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===qe.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===qe.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===qe.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===qe.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===qe.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===qe.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===qe.type)}}function l(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function a(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw(3);return e.KtG(me.openManagingGroups())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function n(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,a,4,3,"button",86),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===qe.type&&!qe.forDelete)}}function t(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function r(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.edit(me))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function s(Pe,Qe){1&Pe&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function d(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,r,4,3,"button",88),e.YNc(2,s,3,3,"div",89),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf",!qe.forDelete),e.xp6(1),e.Q6J("ngIf",qe.forDelete)}}function p(Pe,Qe){1&Pe&&e._UZ(0,"th",24)}function M(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.delete(me))}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA()()}if(2&Pe){const qe=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,qe.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function _e(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(qe);const me=e.oxw().$implicit,ve=e.oxw(2);return e.KtG(ve.restore(me))}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA()()}2&Pe&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function bt(Pe,Qe){if(1&Pe&&(e.TgZ(0,"td",25),e.YNc(1,M,5,6,"button",92),e.YNc(2,_e,4,3,"button",86),e.qZA()),2&Pe){const qe=Qe.$implicit;e.xp6(1),e.Q6J("ngIf",!qe.forDelete),e.xp6(1),e.Q6J("ngIf",qe.forDelete)}}function Vt(Pe,Qe){1&Pe&&e._UZ(0,"tr",94)}function on(Pe,Qe){if(1&Pe&&e._UZ(0,"tr",95),2&Pe){const qe=Qe.$implicit,Be=e.oxw(2);e.ekj("make-green",qe.id<=0)("make-red",qe.forDelete)("make-yellow",-1!==Be.itemsChanged.indexOf(qe.id)&&!qe.forDelete&&qe.id>0),e.Q6J("cdkDragData",qe)}}function Mt(Pe,Qe){if(1&Pe){const qe=e.EpF();e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"table",7,8),e.NdJ("cdkDropListDropped",function(me){e.CHM(qe);const ve=e.oxw();return e.KtG(ve.drop(me))}),e.ynx(5,9),e.YNc(6,W,1,0,"th",10),e.YNc(7,q,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,ue,3,3,"th",10),e.YNc(10,ye,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Me,3,3,"th",10),e.YNc(13,we,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,Ge,3,3,"th",15),e.YNc(16,Ze,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,he,3,3,"th",15),e.YNc(19,j,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,R,3,3,"th",10),e.YNc(22,f,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,n,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,d,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,p,1,0,"th",10),e.YNc(31,bt,3,2,"td",11),e.BQk(),e.YNc(32,Vt,1,0,"tr",22),e.YNc(33,on,1,7,"tr",23),e.qZA()()()()}if(2&Pe){const qe=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",qe.dragDisabled)("dataSource",qe.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",qe.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",qe.displayedColumns)}}function ft(Pe,Qe){1&Pe&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Pe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let je=(()=>{class Pe{constructor(qe,Be,me,ve){this.dialog=qe,this.notificator=Be,this.router=me,this.translate=ve,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(qe,Be,me){let ve="";if("IF_EMPTY"===Be||"IF_PREFILLED"===Be){const ze=null===me?"":this.applicationFormItems.find(tt=>tt.id===me).shortname;ve="IF_EMPTY"===Be?`(${this.ifEmpty} ${ze})`:`(${this.ifPrefilled} ${ze})`}return ve}disabledTooltip(qe){let Be;switch(qe.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return Be=null===qe.disabledDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Be} ${this.isEmpty}`;case"IF_PREFILLED":return Be=null===qe.disabledDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${Be} ${this.isPrefilled}`}}hiddenTooltip(qe){let Be;switch(qe.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return Be=null===qe.hiddenDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Be} ${this.isEmpty}`;case"IF_PREFILLED":return Be=null===qe.hiddenDependencyItemId?"":this.applicationFormItems.find(me=>me.id===qe.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${Be} ${this.isPrefilled}`}}edit(qe){const Be=(0,S.kZ)();Be.width="600px",Be.height="600px",Be.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:qe,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(E._,Be).afterClosed().subscribe(ve=>{ve&&(this.itemsChanged.push(qe.id),this.applicationFormItemsChange.emit())})}delete(qe){const Be=(0,S.kZ)();Be.width="500px",this.dialog.open(C,Be).afterClosed().subscribe(ve=>{ve&&(qe.forDelete=!0,0===qe.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(qe),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(qe){this.dragDisabled=!0;const Be=this.applicationFormItems.indexOf(qe.item.data);(0,c.bA)(this.applicationFormItems,Be,qe.currentIndex),this.itemsChanged.push(this.applicationFormItems[qe.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(qe){if(qe.i18n[this.translate.getDefaultLang()]){const Be=qe.i18n[this.translate.getDefaultLang()].options;if(null!==Be&&""!==Be){const me=[];for(const ve of Be.split("|"))me.push(ve.split("#")[1]);return me}}return[]}getLocalizedLabel(qe){return qe.i18n[this.translate.getDefaultLang()]?qe.i18n[this.translate.getDefaultLang()].label:qe.shortname}restore(qe){qe.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Pe.\u0275fac=function(qe){return new(qe||Pe)(e.Y36(A.uw),e.Y36(T.V6),e.Y36(U.F0),e.Y36(g.sK))},Pe.\u0275cmp=e.Xpm({type:Pe,selectors:[["app-application-form-list"]],viewQuery:function(qe,Be){if(1&qe&&e.Gf(L,5),2&qe){let me;e.iGM(me=e.CRH())&&(Be.table=me.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(qe,Be){1&qe&&(e.YNc(0,B,1,0,"mat-spinner",0),e.YNc(1,Mt,34,4,"div",1),e.YNc(2,ft,3,3,"perun-web-apps-alert",2)),2&qe&&(e.Q6J("ngIf",Be.loading),e.xp6(1),e.Q6J("ngIf",0!==Be.applicationFormItems.length&&!Be.loading),e.xp6(1),e.Q6J("ngIf",0===Be.applicationFormItems.length&&!Be.loading))},dependencies:[_.sg,_.O5,V._Y,V.YN,V.Kr,V.EJ,V.JJ,V.JL,V.On,V.F,z.Hw,Q.BZ,Q.fO,Q.as,Q.w1,Q.Dz,Q.nj,Q.ge,Q.ev,Q.XQ,Q.Gk,w.lW,te.Ou,oe.gM,c.Wj,c.Zt,ee.w,le.H,de.$,g.X$,Te.c,v.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Pe})()},9146:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>d});var e=h(32105),c=h(9244),A=h(96308),w=h(32080),g=h(56451),C=h(18505),T=h(36895),E=h(74281),S=h(94650),U=h(10036),_=h(65412),V=h(94364),z=h(30671),Q=h(51572),te=h(98380),oe=h(50301),ee=h(18750),le=h(97392),de=h(10266);function Te(p,M){1&p&&(S.TgZ(0,"div")(1,"mat-icon",1),S._uU(2,"arrow_right_alt"),S.qZA()())}function v(p,M){1&p&&(S.TgZ(0,"div")(1,"mat-icon",2),S._uU(2,"restore"),S.qZA()())}function L(p,M){1&p&&(S.TgZ(0,"div")(1,"mat-icon",3),S._uU(2,"nat"),S.qZA()())}let B=(()=>{class p{}return p.\u0275fac=function(_e){return new(_e||p)},p.\u0275cmp=S.Xpm({type:p,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(_e,bt){1&_e&&(S.TgZ(0,"div"),S.YNc(1,Te,3,0,"div",0),S.YNc(2,v,3,0,"div",0),S.YNc(3,L,3,0,"div",0),S.qZA()),2&_e&&(S.xp6(1),S.Q6J("ngIf","INITIAL"===bt.applicationType),S.xp6(1),S.Q6J("ngIf","EXTENSION"===bt.applicationType),S.xp6(1),S.Q6J("ngIf","EMBEDDED"===bt.applicationType))},dependencies:[T.O5,le.Hw,de.gM]}),p})();var W=h(89383),q=h(43157),ue=h(31359);function ye(p,M){1&p&&(S.TgZ(0,"div",26),S._UZ(1,"mat-spinner",27),S.qZA())}function Me(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function we(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.id)}}function Ge(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function ce(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,_e.createdAt,"d.M.y"))}}function Ze(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function he(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.vo.id)}}function xe(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function j(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.vo.name)}}function R(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function G(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.hij(" ",_e.group?_e.group.id:""," ")}}function se(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function $(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.hij(" ",_e.group?_e.group.name:""," ")}}function Ee(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Oe(p,M){if(1&p&&(S.TgZ(0,"td",29),S._UZ(1,"app-application-type-icon",31),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Q6J("applicationType",_e.type)}}function ct(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function Xe(p,M){if(1&p&&(S.TgZ(0,"td",29),S._UZ(1,"span",32),S.ALo(2,"applicationState"),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Q6J("outerHTML",S.lcZ(2,1,_e.state),S.oJD)}}function _t(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function Je(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.extSourceName)}}function gt(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function Y(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.extSourceType)}}function Ce(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function ae(p,M){if(1&p&&(S.TgZ(0,"div"),S._uU(1),S.qZA()),2&p){const _e=S.oxw().$implicit;S.xp6(1),S.hij(" ",_e.createdBy.slice(_e.createdBy.lastIndexOf("=")+1,_e.createdBy.length)," ")}}function re(p,M){if(1&p&&(S._uU(0),S.ALo(1,"userFullName")),2&p){const _e=S.oxw().$implicit;S.hij(" ",S.lcZ(1,1,_e.user)," ")}}function Se(p,M){if(1&p&&(S.TgZ(0,"td",29),S.YNc(1,ae,2,1,"div",33),S.YNc(2,re,2,3,"ng-template",null,34,S.W1O),S.qZA()),2&p){const _e=M.$implicit,bt=S.MAs(3);S.xp6(1),S.Q6J("ngIf",null===_e.user)("ngIfElse",bt)}}function Fe(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function be(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.hij(" ",_e.createdBy.slice(_e.createdBy.lastIndexOf("=")+1,_e.createdBy.length)," ")}}function Ue(p,M){1&p&&(S.TgZ(0,"th",28),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function P(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit,bt=S.oxw();S.xp6(1),S.Oqu(bt.getFriendlyName(_e.modifiedBy))}}function H(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function i(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.ALo(2,"date"),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(S.xi3(2,1,_e.modifiedAt,"d.M.y"))}}function o(p,M){1&p&&(S.TgZ(0,"th",30),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function f(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit;S.xp6(1),S.Oqu(_e.fedInfo)}}function l(p,M){if(1&p&&(S.TgZ(0,"th",30),S._uU(1),S.qZA()),2&p){const _e=S.oxw().$implicit;S.xp6(1),S.Oqu(_e)}}function a(p,M){if(1&p&&(S.TgZ(0,"td",29),S._uU(1),S.qZA()),2&p){const _e=M.$implicit,bt=S.oxw().$implicit,Vt=S.oxw();S.xp6(1),S.hij(" ",Vt.getValue(_e.formData,bt)," ")}}function n(p,M){1&p&&(S.ynx(0,35),S.YNc(1,l,2,1,"th",9),S.YNc(2,a,2,1,"td",6),S.BQk()),2&p&&S.s9C("matColumnDef",M.$implicit)}function t(p,M){1&p&&S._UZ(0,"tr",36)}function r(p,M){if(1&p&&S._UZ(0,"tr",37),2&p){const _e=M.$implicit,bt=S.oxw();S.ekj("cursor-pointer",!bt.disableRouting),S.Q6J("perunWebAppsMiddleClickRouterLink",bt.selectApplication(_e))("routerLink",bt.selectApplication(_e))}}function s(p,M){1&p&&(S.TgZ(0,"perun-web-apps-alert",38),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&p&&(S.Q6J("alert_type","warn"),S.xp6(1),S.hij(" ",S.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let d=(()=>{class p{constructor(_e,bt,Vt,on){this.authResolver=_e,this.tableConfigService=bt,this.dynamicPaginatingService=Vt,this.dialog=on,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=c.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(_e=>"id"!==_e)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId()),this.dataSource.loading$.subscribe(_e=>{if(_e||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Vt=>!this.parsedColumns.includes(Vt)),this.parsedColumns=[];const bt=this.dataSource.getData()[0];bt&&this.parseColumns(bt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0)}exportDisplayedData(_e){(0,c.O6)((0,c.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),_e)}exportAllData(_e){const bt="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Vt=(0,c.kZ)();Vt.width="300px";const on=this.dialog.open(E.QQ,Vt);this.dataSource.getAllApplications(this.child.paginator.length,bt,this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),this.member?.userId??null,this.group?.id??null,this.getVoId(),!0).subscribe(Mt=>{on.close(),(0,c.O6)((0,c.Xn)(Mt,this.displayedColumns,this.getExportDataForColumn.bind(this)),_e)})}selectApplication(_e){return this.disableRouting?null:this.group?["/organizations",_e.vo.id,"groups",this.group.id,"applications",_e.id]:this.member?["/organizations",_e.vo.id,"members",this.member.id,"applications",_e.id]:["/organizations",_e.vo.id,"applications",_e.id]}getExportDataForColumn(_e,bt){switch(bt){case"id":return _e.id.toString();case"voId":return _e.vo.id.toString();case"voName":return _e.vo.name;case"groupId":return _e.group?.id.toString()??"";case"groupName":return _e.group?.name??"";case"type":return _e.type;case"fedInfo":return _e.fedInfo;case"formData":return this.stringify(_e.formData);case"state":return _e.state;case"extSourceName":return _e.extSourceName;case"extSourceType":return _e.extSourceType;case"user":return _e.user?(0,c.bD)(_e.user):"";case"createdBy":return _e.createdBy;case"createdAt":return _e.createdAt;case"modifiedBy":return _e.modifiedBy;case"modifiedAt":return _e.modifiedAt;default:return _e[bt]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(_e){const bt=_e.lastIndexOf("/CN=");if(-1!==bt){const Vt=_e.slice(bt+4,_e.length).replace("/unstructuredName="," ");return-1!==Vt.lastIndexOf("\\")?_e.slice(_e.lastIndexOf("=")+1,_e.length):Vt}return _e}yearAgo(){const _e=new Date;return _e.setDate(_e.getDate()-365),_e}dateToString(_e){return(0,T.p6)(_e,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(_e){const bt=on=>Object.entries(on).reduce((Mt,[ft,je])=>Mt[ft]instanceof Object?Mt[ft]=bt(Mt[ft]):(null==je||"null"===je||0===je.length||(Mt[ft]=je),Mt),{});let Vt=JSON.stringify(bt(_e));return Vt=Vt.replace("{","["),Vt=Vt.replace("}","]"),Vt}getFormDataString(_e){return this.stringify(_e.formItem)}parseColumns(_e){_e.forEach(bt=>{this.displayedColumns.includes(bt.shortname)||this.displayedColumns.push(bt.shortname),this.parsedColumns.includes(bt.shortname)||this.parsedColumns.push(bt.shortname)})}getValue(_e,bt){const Vt=_e.filter(on=>on.shortname===bt);return 0===Vt.length?"":Vt[0].value??Vt[0].prefilledValue}}return p.\u0275fac=function(_e){return new(_e||p)(S.Y36(w.x4),S.Y36(U.dB),S.Y36(w.ly),S.Y36(_.uw))},p.\u0275cmp=S.Xpm({type:p,selectors:[["app-applications-dynamic-list"]],viewQuery:function(_e,bt){if(1&_e&&(S.Gf(c.l9,7),S.Gf(A.YE,5)),2&_e){let Vt;S.iGM(Vt=S.CRH())&&(bt.child=Vt.first),S.iGM(Vt=S.CRH())&&(bt.sort=Vt.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[S.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(_e,bt){1&_e&&(S.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),S.NdJ("exportDisplayedData",function(on){return bt.exportDisplayedData(on)})("exportAllData",function(on){return bt.exportAllData(on)}),S.YNc(2,ye,2,0,"div",2),S.ALo(3,"async"),S.TgZ(4,"table",3),S.ynx(5,4),S.YNc(6,Me,3,3,"th",5),S.YNc(7,we,2,1,"td",6),S.BQk(),S.ynx(8,7),S.YNc(9,Ge,3,3,"th",5),S.YNc(10,ce,3,4,"td",6),S.BQk(),S.ynx(11,8),S.YNc(12,Ze,3,3,"th",9),S.YNc(13,he,2,1,"td",6),S.BQk(),S.ynx(14,10),S.YNc(15,xe,3,3,"th",9),S.YNc(16,j,2,1,"td",6),S.BQk(),S.ynx(17,11),S.YNc(18,R,3,3,"th",9),S.YNc(19,G,2,1,"td",6),S.BQk(),S.ynx(20,12),S.YNc(21,se,3,3,"th",9),S.YNc(22,$,2,1,"td",6),S.BQk(),S.ynx(23,13),S.YNc(24,Ee,3,3,"th",5),S.YNc(25,Oe,2,1,"td",6),S.BQk(),S.ynx(26,14),S.YNc(27,ct,3,3,"th",5),S.YNc(28,Xe,3,3,"td",6),S.BQk(),S.ynx(29,15),S.YNc(30,_t,3,3,"th",9),S.YNc(31,Je,2,1,"td",6),S.BQk(),S.ynx(32,16),S.YNc(33,gt,3,3,"th",9),S.YNc(34,Y,2,1,"td",6),S.BQk(),S.ynx(35,17),S.YNc(36,Ce,3,3,"th",5),S.YNc(37,Se,4,2,"td",6),S.BQk(),S.ynx(38,18),S.YNc(39,Fe,3,3,"th",9),S.YNc(40,be,2,1,"td",6),S.BQk(),S.ynx(41,19),S.YNc(42,Ue,3,3,"th",5),S.YNc(43,P,2,1,"td",6),S.BQk(),S.ynx(44,20),S.YNc(45,H,3,3,"th",9),S.YNc(46,i,3,4,"td",6),S.BQk(),S.ynx(47,21),S.YNc(48,o,3,3,"th",9),S.YNc(49,f,2,1,"td",6),S.BQk(),S.YNc(50,n,3,1,"ng-container",22),S.YNc(51,t,1,0,"tr",23),S.YNc(52,r,1,4,"tr",24),S.qZA()()(),S.YNc(53,s,3,4,"perun-web-apps-alert",25),S.ALo(54,"async")),2&_e&&(S.Q6J("hidden",0===bt.dataSource.allObjectCount),S.xp6(1),S.Q6J("dataLength",bt.dataSource.allObjectCount)("pageSizeOptions",bt.pageSizeOptions)("tableId",bt.tableId),S.xp6(1),S.Q6J("ngIf",S.lcZ(3,10,bt.dataSource.loading$)),S.xp6(2),S.Q6J("dataSource",bt.dataSource),S.xp6(46),S.Q6J("ngForOf",bt.parsedColumns),S.xp6(1),S.Q6J("matHeaderRowDef",bt.displayedColumns),S.xp6(1),S.Q6J("matRowDefColumns",bt.displayedColumns),S.xp6(1),S.Q6J("ngIf",0===bt.dataSource.allObjectCount&&!1===S.lcZ(54,12,bt.dataSource.loading$)))},dependencies:[T.sg,T.O5,V.rH,A.YE,A.nU,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,Q.Ou,te.w,oe.YH,ee.l,B,T.Ov,T.uU,W.X$,q.h,ue.d]}),p})()},45256:(Ye,pe,h)=>{"use strict";h.d(pe,{k:()=>Q});var e=h(95017),c=h(32105),A=h(64080),w=h(65412),g=h(32080),C=h(9244),T=h(86511),E=h(77579),S=h(56451),U=h(39646),_=h(63900),V=h(68675),z=h(94650);let Q=(()=>{class te{constructor(ee,le,de,Te,v,L,B,W,q,ue){this.data=ee,this.dialogRef=le,this.membersManagerService=de,this.voService=Te,this.registrarManager=v,this.groupService=L,this.store=B,this.guiAuthResolver=W,this.requestService=q,this.addMemberService=ue,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,_.w)(ye=>(0,S.T)((0,U.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,ye))),(0,V.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(ee=>{this.addAuth=!!ee.source.selected.every(le=>le.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ee=this.selection.selected.pop();ee.member?this.addMember(ee):ee.richUser?this.addUser(ee):ee.candidate&&this.addCandidate(ee)}invite(ee){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const le=this.selection.selected.pop();le.richUser?this.inviteUser(le,ee):this.inviteCandidate(le,ee)}cancel(ee){this.dialogRef.close(ee)}addCandidate(ee){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(ee.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}addMember(ee){this.groupService.addMembers(this.data.group.id,[ee.member.id]).subscribe(()=>{this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}addUser(ee){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:ee.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}inviteCandidate(ee,le){this.registrarManager.sendInvitationForGroup((0,C.Jc)(ee.candidate),le,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}inviteUser(ee,le){this.registrarManager.sendInvitationGroupToExistingUser(ee.richUser.id,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}}return te.\u0275fac=function(ee){return new(ee||te)(z.Y36(w.WI),z.Y36(w.so),z.Y36(c.uq),z.Y36(c.YF),z.Y36(c.tk),z.Y36(c.ff),z.Y36(g.d6),z.Y36(g.x4),z.Y36(g.F5),z.Y36(T.A))},te.\u0275cmp=z.Xpm({type:te,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ee,le){1&ee&&(z.TgZ(0,"app-add-member-dialog",0),z.NdJ("add",function(){return le.add()})("cancel",function(Te){return le.cancel(Te)})("invite",function(Te){return le.invite(Te)})("search",function(Te){return le.searcher.next(Te)}),z.ALo(1,"async"),z.qZA()),2&ee&&z.Q6J("loading",le.loading)("languages",le.languages)("manualAddingBlocked",le.data.manualAddingBlocked)("addAuth",le.addAuth)("inviteAuth",le.inviteAuth)("failed",le.failed)("members",z.lcZ(1,9,le.members))("selection",le.selection)("theme","group-theme")}}),te})()},51525:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>Q});var e=h(65412),c=h(32105),A=h(32080),w=h(95017),g=h(9244),C=h(64080),T=h(86511),E=h(77579),S=h(56451),U=h(39646),_=h(63900),V=h(68675),z=h(94650);let Q=(()=>{class te{constructor(ee,le,de,Te,v,L,B,W){this.data=ee,this.dialogRef=le,this.membersManagerService=de,this.voService=Te,this.registrarManager=v,this.store=L,this.requestService=B,this.addMemberService=W,this.loading=!1,this.searcher=new E.x,this.members=this.searcher.pipe((0,_.w)(q=>(0,S.T)((0,U.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,q))),(0,V.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[C.r.USER_DEF_ORGANIZATION,C.r.USER_DEF_PREFERRED_MAIL].concat(this.store.getLoginAttributeNames()),this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const ee=this.selection.selected.pop();ee.richUser?this.addUser(ee):this.addCandidate(ee)}invite(ee){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const le=this.selection.selected.pop();le.richUser?this.inviteUser(le,ee):this.inviteCandidate(le,ee)}cancel(ee){this.dialogRef.close(ee)}addCandidate(ee){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(ee.candidate)}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}addUser(ee){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:ee.richUser.id}).subscribe(le=>{this.membersManagerService.validateMemberAsync(le.id).subscribe(),this.add()},le=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,le)),this.add()})}inviteCandidate(ee,le){this.registrarManager.sendInvitation((0,g.Jc)(ee.candidate),le,this.data.voId).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}inviteUser(ee,le){this.registrarManager.sendInvitationToExistingUser(ee.richUser.id,this.data.voId).subscribe(()=>{this.invite(le)},de=>{this.failed.push(this.addMemberService.getCandidateWithError(ee,de)),this.invite(le)})}}return te.\u0275fac=function(ee){return new(ee||te)(z.Y36(e.WI),z.Y36(e.so),z.Y36(c.uq),z.Y36(c.YF),z.Y36(c.tk),z.Y36(A.d6),z.Y36(A.F5),z.Y36(T.A))},te.\u0275cmp=z.Xpm({type:te,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(ee,le){1&ee&&(z.TgZ(0,"app-add-member-dialog",0),z.NdJ("add",function(){return le.add()})("cancel",function(Te){return le.cancel(Te)})("invite",function(Te){return le.invite(Te)})("search",function(Te){return le.searcher.next(Te)}),z.ALo(1,"async"),z.qZA()),2&ee&&z.Q6J("loading",le.loading)("languages",le.languages)("failed",le.failed)("members",z.lcZ(1,6,le.members))("selection",le.selection)("theme","vo-theme")}}),te})()},55857:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>le});var e=h(32105),c=h(10036),A=h(32080),w=h(24006),g=h(36895),C=h(94650),T=h(3238),E=h(59549),S=h(4859),U=h(84385),_=h(96214),V=h(39798),z=h(64901),Q=h(9146),te=h(89383);function oe(de,Te){if(1&de){const v=C.EpF();C.TgZ(0,"button",14),C.NdJ("click",function(){C.CHM(v);const B=C.oxw();return C.KtG(B.showAllDetails=!0)}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function ee(de,Te){if(1&de){const v=C.EpF();C.TgZ(0,"button",14),C.NdJ("click",function(){C.CHM(v);const B=C.oxw();return C.KtG(B.showAllDetails=!1)}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let le=(()=>{class de{constructor(v,L,B){this.registrarManager=v,this.guiAuthResolver=L,this.entityStorageService=B,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=c.Af,this.tableId=c.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.p4((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.p4((0,g.p6)(new Date,"yyyy-MM-dd","en-GB"))}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const v=new Date;return v.setDate(v.getDate()-365),v}applyFilter(v){this.filterValue=v}}return de.id="GroupApplicationsComponent",de.\u0275fac=function(v){return new(v||de)(C.Y36(e.tk),C.Y36(A.x4),C.Y36(A.fb))},de.\u0275cmp=C.Xpm({type:de,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(v,L){2&v&&C.ekj("router-component",L.true)},decls:34,vars:38,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(v,L){1&v&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return L.refresh=!L.refresh}),C.qZA(),C.YNc(5,oe,3,3,"button",2),C.YNc(6,ee,3,3,"button",2),C.TgZ(7,"mat-form-field",3)(8,"mat-label"),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"mat-select",4),C.NdJ("selectionChange",function(){return L.select()})("valueChange",function(W){return L.state=W}),C.TgZ(12,"mat-option",5),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"mat-option",6),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"mat-option",7),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-option",8),C._uU(22),C.ALo(23,"translate"),C.qZA(),C.TgZ(24,"mat-option",9),C._uU(25),C.ALo(26,"translate"),C.qZA(),C.TgZ(27,"mat-option",10),C._uU(28),C.ALo(29,"translate"),C.qZA()()(),C.TgZ(30,"perun-web-apps-debounce-filter",11),C.NdJ("filter",function(W){return L.applyFilter(W)}),C.qZA(),C.TgZ(31,"perun-web-apps-date-range",12),C.NdJ("datePicker",function(){return L.select()}),C.qZA()(),C.TgZ(32,"div"),C._UZ(33,"app-applications-dynamic-list",13),C.qZA()),2&v&&(C.xp6(1),C.Oqu(C.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),C.xp6(4),C.Q6J("ngIf",!L.showAllDetails),C.xp6(1),C.Q6J("ngIf",L.showAllDetails),C.xp6(3),C.Oqu(C.lcZ(10,24,"APPLICATIONS_LIST.STATE")),C.xp6(2),C.Q6J("value",L.state),C.xp6(2),C.Oqu(C.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),C.xp6(3),C.Oqu(C.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),C.xp6(3),C.Oqu(C.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),C.xp6(3),C.Oqu(C.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),C.xp6(3),C.Oqu(C.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),C.xp6(3),C.Oqu(C.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),C.xp6(2),C.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),C.xp6(1),C.Q6J("endDate",L.endDate)("startDate",L.startDate),C.xp6(2),C.Q6J("tableId",L.showAllDetails?L.detailTableId:L.tableId)("searchString",L.filterValue)("displayedColumns",L.showAllDetails?L.detailedDisplayedColumns:L.displayedColumns)("states",L.currentStates)("dateFrom",L.startDate.value)("dateTo",L.endDate.value)("refreshTable",L.refresh)("group",L.group))},dependencies:[g.O5,T.ey,E.KE,E.hX,S.lW,U.gD,_.t,V.S,z.P,Q.S,te.X$]}),de})()},75234:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>R});var e=h(95017),c=h(32080),A=h(64080),w=h(53455),g=h(32105),C=h(10036),T=h(9244),E=h(74414),S=h(24006),U=h(45256),_=h(94650),V=h(65412),z=h(36895),Q=h(3238),te=h(59549),oe=h(4859),ee=h(84385),le=h(51572),de=h(10266),Te=h(98380),v=h(96214),L=h(64901),B=h(4811),W=h(89383),q=h(20551);let ue=(()=>{class G{transform($,Ee){return!!("members"===$.name||(0,T.bx)($)||"add"===Ee&&(0,T.jh)($.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return G.\u0275fac=function($){return new($||G)},G.\u0275pipe=_.Yjl({name:"groupMembersActionButtonDisabled",type:G,pure:!0}),G})(),ye=(()=>{class G{transform($,Ee){return"members"===$.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,T.bx)($)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===Ee&&(0,T.jh)($.attributes,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return G.\u0275fac=function($){return new($||G)},G.\u0275pipe=_.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:G,pure:!0}),G})();function Me(G,se){1&G&&(_.TgZ(0,"perun-web-apps-alert",14),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&G&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function we(G,se){if(1&G){const $=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM($);const Oe=_.oxw();return _.KtG(Oe.onAddMember())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const $=_.oxw();_.Q6J("disabled",_.xi3(1,2,$.group,"add")),_.xp6(2),_.hij(" ",_.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Ge(G,se){if(1&G){const $=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM($);const Oe=_.oxw();return _.KtG(Oe.onInviteMember())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const $=_.oxw();_.Q6J("disabled",_.lcZ(1,2,$.group)),_.xp6(2),_.hij(" ",_.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function ce(G,se){if(1&G){const $=_.EpF();_.TgZ(0,"button",17),_.NdJ("click",function(){_.CHM($);const Oe=_.oxw();return _.KtG(Oe.onRemoveMembers())}),_.ALo(1,"groupMembersActionButtonDisabled"),_._uU(2),_.ALo(3,"translate"),_.qZA()}if(2&G){const $=_.oxw();_.Q6J("disabled",$.selection.isEmpty()||_.lcZ(1,2,$.group)),_.xp6(2),_.hij(" ",_.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ze(G,se){if(1&G&&(_.TgZ(0,"mat-option",18),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&G){const $=se.$implicit;_.Q6J("value",$),_.xp6(1),_.Oqu(_.lcZ(2,2,$))}}function he(G,se){if(1&G&&(_.TgZ(0,"mat-option",18),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&G){const $=se.$implicit;_.Q6J("value",$),_.xp6(1),_.Oqu(_.lcZ(2,2,$))}}function xe(G,se){1&G&&_._UZ(0,"mat-spinner",19)}function j(G,se){if(1&G&&_._UZ(0,"perun-web-apps-members-dynamic-list",20),2&G){const $=_.oxw();_.Q6J("attrNames",$.memberAttrNames)("groupId",$.group.id)("tableId",$.tableId)("displayedColumns",$.displayedColumns)("searchString",$.searchString)("updateTable",$.updateTable)("selectedGroupStatuses",$.selectedGroupStatuses)("selectedStatuses",$.selectedStatuses)("selection",$.selection)("voId",$.group.voId)("isMembersGroup","members"===$.group.name)}}let R=(()=>{class G{constructor($,Ee,Oe,ct,Xe,_t,Je,gt){this.groupService=$,this.dialog=Ee,this.guiAuthResolver=Oe,this.storeService=ct,this.attributesManager=Xe,this.apiRequest=_t,this.notificator=Je,this.entityStorageService=gt,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=C.dI,this.memberAttrNames=[A.r.MEMBER_DEF_ORGANIZATION,A.r.MEMBER_DEF_MAIL,A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL,A.r.MEMBER_DEF_EXPIRATION,A.r.MEMBER_DEF_GROUP_EXPIRATION,A.r.MEMBER_LIFECYCLE_ALTERABLE],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new S.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new S.p4,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,A.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id))}loadPage($){this.groupService.getRichGroupByIdWithAttributesByNames($,this.groupAttrNames).subscribe(Ee=>{this.group=Ee,this.synchEnabled=(0,T.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group])}onSearchByString($){this.searchString=$,this.selection.clear()}onAddMember(){const $=(0,T.kZ)();$.width="1000px",$.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(U.k,$).afterClosed().subscribe(Oe=>{Oe&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const $=(0,T.kZ)();$.width="450px",$.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,$).afterClosed().subscribe(Oe=>{Oe&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const $=(0,T.kZ)();$.width="650px",$.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(E.R,$)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const $=this.statuses.value;return $?`${$[0]} ${$.length>1?"(+"+($.length-1).toString()+" "+(2===$.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked($){return new Promise(Ee=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName($,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(Oe=>{this.blockManualMemberAdding=null!==Oe.value,Ee()},Oe=>{const ct=Oe.error;"PrivilegeException"!==ct.name&&this.notificator.showError(ct.name),Ee()})})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return G.id="GroupMembersComponent",G.\u0275fac=function($){return new($||G)(_.Y36(g.ff),_.Y36(V.uw),_.Y36(c.x4),_.Y36(c.d6),_.Y36(g.H8),_.Y36(c.F5),_.Y36(c.V6),_.Y36(c.fb))},G.\u0275cmp=_.Xpm({type:G,selectors:[["app-group-members"]],hostVars:2,hostBindings:function($,Ee){2&$&&_.ekj("router-component",Ee.true)},decls:42,vars:55,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId","isMembersGroup"]],template:function($,Ee){1&$&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.YNc(3,Me,3,3,"perun-web-apps-alert",1),_.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),_.NdJ("click",function(){return Ee.refreshTable()}),_.qZA(),_.TgZ(6,"span",4),_.ALo(7,"groupMembersActionButtonDisabled"),_.ALo(8,"translate"),_.ALo(9,"groupMembersActionButtonDisabledTooltip"),_.YNc(10,we,4,7,"button",5),_.qZA(),_.TgZ(11,"span",4),_.ALo(12,"groupMembersActionButtonDisabled"),_.ALo(13,"translate"),_.ALo(14,"groupMembersActionButtonDisabledTooltip"),_.YNc(15,Ge,4,6,"button",6),_.qZA(),_.TgZ(16,"span",4),_.ALo(17,"groupMembersActionButtonDisabled"),_.ALo(18,"translate"),_.ALo(19,"groupMembersActionButtonDisabledTooltip"),_.YNc(20,ce,4,6,"button",7),_.qZA(),_.TgZ(21,"mat-form-field",8)(22,"mat-label"),_._uU(23),_.ALo(24,"translate"),_.qZA(),_.TgZ(25,"mat-select",9),_.NdJ("closed",function(){return Ee.changeVoStatuses()}),_.TgZ(26,"mat-select-trigger"),_._uU(27),_.ALo(28,"memberStatus"),_.qZA(),_.YNc(29,Ze,3,4,"mat-option",10),_.qZA()(),_.TgZ(30,"mat-form-field",8)(31,"mat-label"),_._uU(32),_.ALo(33,"translate"),_.qZA(),_.TgZ(34,"mat-select",9),_.NdJ("closed",function(){return Ee.changeGroupStatuses()}),_.TgZ(35,"mat-select-trigger"),_._uU(36),_.ALo(37,"memberStatus"),_.qZA(),_.YNc(38,he,3,4,"mat-option",10),_.qZA()(),_.TgZ(39,"perun-web-apps-debounce-filter",11),_.NdJ("filter",function(ct){return Ee.onSearchByString(ct)}),_.qZA()(),_.YNc(40,xe,1,0,"mat-spinner",12),_.YNc(41,j,1,11,"perun-web-apps-members-dynamic-list",13)),2&$&&(_.xp6(1),_.Oqu(_.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),_.xp6(2),_.Q6J("ngIf",Ee.synchEnabled),_.xp6(3),_.s9C("matTooltip",_.lcZ(8,30,_.xi3(9,32,Ee.group,"add"))),_.Q6J("matTooltipDisabled",!_.xi3(7,27,Ee.group,"add"))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Ee.addAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(13,37,_.lcZ(14,39,Ee.group))),_.Q6J("matTooltipDisabled",!_.lcZ(12,35,Ee.group))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Ee.inviteAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(18,43,_.lcZ(19,45,Ee.group))),_.Q6J("matTooltipDisabled",!_.lcZ(17,41,Ee.group))("matTooltipPosition","above"),_.xp6(4),_.Q6J("ngIf",Ee.removeAuth),_.xp6(3),_.Oqu(_.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),_.xp6(2),_.Q6J("formControl",Ee.statuses),_.xp6(2),_.hij(" ",_.lcZ(28,49,Ee.displaySelectedStatuses())," "),_.xp6(2),_.Q6J("ngForOf",Ee.statusList),_.xp6(3),_.Oqu(_.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),_.xp6(2),_.Q6J("formControl",Ee.groupStatuses),_.xp6(2),_.hij(" ",_.lcZ(37,53,Ee.displaySelectedGroupStatuses())," "),_.xp6(2),_.Q6J("ngForOf",Ee.groupStatusList),_.xp6(1),_.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),_.xp6(1),_.Q6J("ngIf",Ee.loading),_.xp6(1),_.Q6J("ngIf",!Ee.loading))},dependencies:[z.sg,z.O5,Q.ey,te.KE,te.hX,S.JJ,S.oH,oe.lW,ee.gD,ee.$L,le.Ou,de.gM,Te.w,v.t,L.P,B.m,W.X$,q.l,ue,ye],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),G})()},37240:(Ye,pe,h)=>{"use strict";h.d(pe,{q:()=>Y});var e=h(95017),c=h(32105),A=h(10036),w=h(65412),g=h(32080),T=(h(33604),h(94650)),E=h(89383),S=h(36895),U=h(24006),_=h(4859),V=h(51572),z=h(10266),Q=h(90455),te=h(86257),oe=h(62109),ee=h(64901);const le=["list"],de=["stepper"];function Te(Ce,ae){1&Ce&&T._UZ(0,"mat-spinner",4)}function v(Ce,ae){1&Ce&&(T._uU(0),T.ALo(1,"translate")),2&Ce&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function L(Ce,ae){1&Ce&&(T._uU(0),T.ALo(1,"translate")),2&Ce&&T.Oqu(T.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const B=function(){return["select","id","name","facility","tags","description"]};function W(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"div",5)(1,"mat-stepper",6,7)(3,"mat-step",8),T.YNc(4,v,2,3,"ng-template",9),T.TgZ(5,"perun-web-apps-debounce-filter",10),T.NdJ("filter",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.applyFilter(Fe))}),T.ALo(6,"translate"),T.qZA(),T._UZ(7,"perun-web-apps-resources-list",11,12),T.qZA(),T.TgZ(9,"mat-step"),T.YNc(10,L,2,3,"ng-template",9),T.TgZ(11,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.changeSubgroupsMessage())})("ngModelChange",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.autoAssignSubgroups=Fe)}),T._uU(12),T.ALo(13,"translate"),T.qZA(),T.TgZ(14,"div",14),T._UZ(15,"i",15),T.qZA(),T.TgZ(16,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.changeInactiveMessage())})("ngModelChange",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.asActive=Fe)}),T._uU(17),T.ALo(18,"translate"),T.qZA(),T.TgZ(19,"div",14),T._uU(20),T.qZA(),T.TgZ(21,"mat-slide-toggle",13),T.NdJ("toggleChange",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.changeAsyncMessage())})("ngModelChange",function(Fe){T.CHM(re);const be=T.oxw();return T.KtG(be.async=Fe)}),T._uU(22),T.ALo(23,"translate"),T.qZA(),T.TgZ(24,"div",14),T._uU(25),T.qZA()()()()}if(2&Ce){const re=T.MAs(8),Se=T.oxw();T.xp6(1),T.Q6J("linear",!0),T.xp6(2),T.Q6J("completed",0!==Se.selection.selected.length&&void 0!==re&&re.addAuth),T.xp6(2),T.s9C("placeholder",T.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),T.xp6(2),T.Q6J("filterValue",Se.filterValue)("groupToResource",Se.data.group)("disableRouting",!0)("resources",Se.resources)("selection",Se.selection)("displayedColumns",T.DdM(27,B))("tableId",Se.tableId),T.xp6(4),T.Q6J("ngModel",Se.autoAssignSubgroups),T.xp6(1),T.hij(" ",T.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),T.xp6(3),T.Q6J("innerHTML",Se.autoAssignHint,T.oJD),T.xp6(1),T.Q6J("ngModel",Se.asActive),T.xp6(1),T.hij(" ",T.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),T.xp6(3),T.hij(" ",Se.asActiveHint," "),T.xp6(1),T.Q6J("ngModel",Se.async),T.xp6(1),T.hij(" ",T.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),T.xp6(3),T.hij(" ",Se.asyncHint," ")}}function q(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",22),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw(2);return T.KtG(Fe.stepperPrevious())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ue(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw(2);return T.KtG(Fe.stepperNext())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ce){const re=T.oxw(2);T.ekj("ml-2",void 0!==re.stepper&&0!==re.stepper.selectedIndex)("ml-auto",!(void 0!==re.stepper&&0!==re.stepper.selectedIndex)),T.Q6J("disabled",0===re.selection.selected.length||void 0!==re.list&&!re.list.addAuth),T.xp6(1),T.hij(" ",T.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function ye(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw(2);return T.KtG(Fe.onSubmit())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ce){const re=T.oxw(2);T.Q6J("disabled",0===re.selection.selected.length||re.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Me(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"div",16)(1,"button",17),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,q,3,3,"button",18),T.YNc(5,ue,3,8,"button",19),T.TgZ(6,"span",20),T.ALo(7,"translate"),T.YNc(8,ye,3,4,"button",21),T.qZA()()}if(2&Ce){const re=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("ngIf",void 0!==re.stepper&&0!==re.stepper.selectedIndex),T.xp6(1),T.Q6J("ngIf",void 0!==re.stepper&&re.stepper.selectedIndex!==re.stepper._steps.length-1),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),T.Q6J("matTooltipDisabled",void 0===re.list||re.list.addAuth),T.xp6(2),T.Q6J("ngIf",void 0!==re.stepper&&re.stepper.selectedIndex===re.stepper._steps.length-1)}}let we=(()=>{class Ce{constructor(re,Se,Fe,be,Ue,P,H){this.dialogRef=re,this.data=Se,this.notificator=Fe,this.translate=be,this.resourcesManager=Ue,this.guiAuthResolver=P,this.cd=H,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=A.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(re=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(Se=>{for(const Fe of re)-1===Se.findIndex(be=>be.id===Fe.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Fe])&&this.resources.push(Fe);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(re){this.filterValue=re}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const re=this.selection.selected.map(Se=>Se.id);this.resourcesManager.assignGroupToResources(this.data.group.id,re,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(Se=>{this.notificator.showSuccess(Se),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return Ce.\u0275fac=function(re){return new(re||Ce)(T.Y36(w.so),T.Y36(w.WI),T.Y36(g.V6),T.Y36(E.sK),T.Y36(c.xk),T.Y36(g.x4),T.Y36(T.sBO))},Ce.\u0275cmp=T.Xpm({type:Ce,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(re,Se){if(1&re&&(T.Gf(le,5),T.Gf(de,5)),2&re){let Fe;T.iGM(Fe=T.CRH())&&(Se.list=Fe.first),T.iGM(Fe=T.CRH())&&(Se.stepper=Fe.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(re,Se){1&re&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Te,1,0,"mat-spinner",1),T.YNc(5,W,26,28,"div",2),T.YNc(6,Me,9,10,"div",3),T.qZA()),2&re&&(T.Tol(Se.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading&&void 0!==Se.stepper))},dependencies:[S.O5,U.JJ,U.On,_.lW,w.uh,w.xY,w.H8,V.Ou,z.gM,Q.Rr,te.C0,te.VY,te.Vq,oe.C,ee.P,E.X$]}),Ce})();var Ge=h(30671);function ce(Ce,ae){1&Ce&&T._UZ(0,"mat-spinner",4)}function Ze(Ce,ae){1&Ce&&T._UZ(0,"th",13)}function he(Ce,ae){if(1&Ce&&(T.TgZ(0,"td",14),T._uU(1),T.qZA()),2&Ce){const re=ae.$implicit;T.xp6(1),T.Oqu(re.name)}}function xe(Ce,ae){1&Ce&&T._UZ(0,"tr",15)}function j(Ce,ae){1&Ce&&T._UZ(0,"tr",16)}function R(Ce,ae){if(1&Ce&&(T.TgZ(0,"div",5)(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"div",6),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"table",7),T.ynx(8,8),T.YNc(9,Ze,1,0,"th",9),T.YNc(10,he,2,1,"td",10),T.BQk(),T.YNc(11,xe,1,0,"tr",11),T.YNc(12,j,1,0,"tr",12),T.qZA()()),2&Ce){const re=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),T.xp6(2),T.Q6J("dataSource",re.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",re.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",re.displayedColumns)}}function G(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"div",17)(1,"button",18),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.onCancel())}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",19),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.onSubmit())}),T._uU(5),T.ALo(6,"translate"),T.qZA()()}if(2&Ce){const re=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),T.xp6(2),T.Q6J("disabled",re.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let se=(()=>{class Ce{constructor(re,Se,Fe,be,Ue){this.dialogRef=re,this.data=Se,this.notificator=Fe,this.translate=be,this.resourcesManager=Ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Ge.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const re=this.data.resources.map(Se=>Se.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,re).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(Se=>{this.loading=!1,this.notificator.showSuccess(Se),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Ce.\u0275fac=function(re){return new(re||Ce)(T.Y36(w.so),T.Y36(w.WI),T.Y36(g.V6),T.Y36(E.sK),T.Y36(c.xk))},Ce.\u0275cmp=T.Xpm({type:Ce,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(re,Se){1&re&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ce,1,0,"mat-spinner",1),T.YNc(5,R,13,9,"div",2),T.YNc(6,G,7,7,"div",3),T.qZA()),2&re&&(T.Tol(Se.data.theme),T.xp6(2),T.Oqu(T.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),T.xp6(2),T.Q6J("ngIf",Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading),T.xp6(1),T.Q6J("ngIf",!Se.loading))},dependencies:[S.O5,_.lW,Ge.BZ,Ge.fO,Ge.as,Ge.w1,Ge.Dz,Ge.nj,Ge.ge,Ge.ev,Ge.XQ,Ge.Gk,w.uh,w.xY,w.H8,V.Ou,E.X$]}),Ce})();var $=h(9244),Ee=h(96214),Oe=h(7434);const ct=["list"];function Xe(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"button",8),T.NdJ("click",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.addResource())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}2&Ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function _t(Ce,ae){1&Ce&&T._UZ(0,"mat-spinner",9)}const Je=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function gt(Ce,ae){if(1&Ce){const re=T.EpF();T.TgZ(0,"perun-web-apps-resources-list",10,11),T.NdJ("refreshTable",function(){T.CHM(re);const Fe=T.oxw();return T.KtG(Fe.refreshTable())}),T.qZA()}if(2&Ce){const re=T.oxw();T.Q6J("disableRouting",!re.routingAuth)("filterValue",re.filterValue)("resources",re.resources)("routingVo",!0)("displayedColumns",T.DdM(10,Je))("selection",re.selected)("groupId",re.group.id)("groupToResource",re.group)("resourcesToDisableCheckbox",re.resourcesToDisable)("tableId",re.tableId)}}let Y=(()=>{class Ce{constructor(re,Se,Fe,be,Ue){this.resourcesManager=re,this.groupService=Se,this.dialog=Fe,this.guiAuthResolver=be,this.entityStorageService=Ue,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=A.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(re=>{this.resources=re.map(Se=>{const Fe=Se.enrichedResource.resource;return Fe.facility=Se.facility,Fe.status=Se.status,Fe.resourceTags=Se.resourceTags,Fe.failureCause=Se.failureCause,Fe.sourceGroupId=Se.sourceGroupId,Fe}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(Se=>null!==Se.sourceGroupId).map(Se=>Se.id)),this.setAuthorization(),this.loading=!1})}applyFilter(re){this.filterValue=re}addResource(){const re=(0,$.kZ)();re.width="1000px",re.data={theme:"group-theme",group:this.group},this.dialog.open(we,re).afterClosed().subscribe(Fe=>{Fe&&this.refreshTable()})}removeResource(){const re=(0,$.kZ)();re.width="450px",re.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(se,re).afterClosed().subscribe(Fe=>{Fe&&(this.selected.clear(),this.refreshTable())})}}return Ce.id="GroupResourcesComponent",Ce.\u0275fac=function(re){return new(re||Ce)(T.Y36(c.xk),T.Y36(c.ff),T.Y36(w.uw),T.Y36(g.x4),T.Y36(g.fb))},Ce.\u0275cmp=T.Xpm({type:Ce,selectors:[["app-group-resources"]],viewQuery:function(re,Se){if(1&re&&T.Gf(ct,5),2&re){let Fe;T.iGM(Fe=T.CRH())&&(Se.list=Fe.first)}},hostVars:2,hostBindings:function(re,Se){2&re&&T.ekj("router-component",Se.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(re,Se){1&re&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return Se.refreshTable()}),T.qZA(),T.YNc(5,Xe,3,3,"button",2),T.TgZ(6,"span",3),T.ALo(7,"translate"),T.TgZ(8,"button",4),T.NdJ("click",function(){return Se.removeResource()}),T._uU(9),T.ALo(10,"translate"),T.qZA()(),T.TgZ(11,"perun-web-apps-immediate-filter",5),T.NdJ("filter",function(be){return Se.applyFilter(be)}),T.qZA(),T.YNc(12,_t,1,0,"mat-spinner",6),T.YNc(13,gt,2,11,"perun-web-apps-resources-list",7),T.qZA()),2&re&&(T.xp6(2),T.Oqu(T.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),T.xp6(3),T.Q6J("ngIf",Se.addAuth),T.xp6(1),T.s9C("matTooltip",T.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),T.Q6J("matTooltipDisabled",0===Se.selected.selected.length||void 0!==Se.list&&Se.list.removeAuth),T.xp6(2),T.Q6J("disabled",0===Se.selected.selected.length||void 0!==Se.list&&!Se.list.removeAuth),T.xp6(1),T.hij(" ",T.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),T.xp6(2),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",Se.loading),T.xp6(1),T.Q6J("ngIf",Se.resources&&!Se.loading))},dependencies:[S.O5,_.lW,V.Ou,z.gM,Ee.t,Oe.L,oe.C,E.X$]}),Ce})()},61639:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>g});var e=h(32105),c=h(32080),A=h(94650),w=h(34775);let g=(()=>{class C{constructor(E,S){this.authzResolverService=E,this.entityStorageService=S,this.roleNames=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"]}ngOnInit(){this.outerLoading=!0,this.groupId=this.entityStorageService.getEntity().id,this.authzResolverService.getGroupRoles(this.groupId).subscribe(E=>{this.roleNames=Object.keys(E).map(S=>S.toUpperCase()),this.prepareRoles(E),this.outerLoading=!1})}prepareRoles(E){this.roleNames.forEach(S=>{const U=new Map;Object.keys(E[S]).forEach(V=>{U.set(V,E[S][V])}),this.roles.set(S,U)}),this.roleNames=this.roleNames.filter(S=>!this.roleFilter.includes(S))}}return C.id="GroupRolesComponent",C.\u0275fac=function(E){return new(E||C)(A.Y36(e.Ct),A.Y36(c.fb))},C.\u0275cmp=A.Xpm({type:C,selectors:[["app-group-roles"]],hostVars:2,hostBindings:function(E,S){2&E&&A.ekj("router-component",S.true)},decls:1,vars:6,consts:[[3,"outerLoading","roles","roleNames","entityId","entityType","showDescription"]],template:function(E,S){1&E&&A._UZ(0,"app-perun-web-apps-roles-page",0),2&E&&A.Q6J("outerLoading",S.outerLoading)("roles",S.roles)("roleNames",S.roleNames)("entityId",S.groupId)("entityType","GROUP")("showDescription",!0)},dependencies:[w._]}),C})()},14336:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>se});var e=h(32080),c=h(51076),A=h(83491),w=h(95502),g=h(1186),C=h(32105),T=h(9244),E=h(94650),S=h(65412),U=h(89383),_=h(94364),V=h(36895),z=h(24006),Q=h(97392),te=h(4859),oe=h(51572),ee=h(10266),le=h(90455),de=h(44850),Te=h(98380),v=h(96214),L=h(157);const B=["autoRegToggle"];function W($,Ee){1&$&&E._UZ(0,"mat-spinner",3)}function q($,Ee){if(1&$&&(E.TgZ(0,"span"),E._uU(1," , "),E.TgZ(2,"mat-icon",22),E._uU(3,"nat"),E.qZA(),E._uU(4),E.ALo(5,"translate"),E.ALo(6,"translate"),E.qZA()),2&$){const Oe=E.oxw(3);E.xp6(4),E.hij(" ",Oe.applicationForm.automaticApprovalEmbedded?E.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ue($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"div")(1,"mat-slide-toggle",23,24),E.NdJ("change",function(){E.CHM(Oe);const Xe=E.oxw(3);return E.KtG(Xe.updateAutoRegistration())}),E._uU(3),E.ALo(4,"translate"),E.qZA()()}if(2&$){const Oe=E.oxw(3);E.xp6(1),E.Q6J("disabled",!Oe.changeAutoRegistration)("ngModel",Oe.autoRegistrationEnabled),E.xp6(2),E.hij(" ",E.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function ye($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",25),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(3);return E.KtG(Xe.settings())}),E.TgZ(1,"i",12),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&$&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Me($,Ee){if(1&$&&(E.TgZ(0,"div",15)(1,"div",16)(2,"div",17),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",17),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",18),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",19),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.YNc(20,q,7,5,"span",2),E.qZA(),E.YNc(21,ue,5,5,"div",2),E.qZA(),E.TgZ(22,"div",20),E.YNc(23,ye,5,3,"button",21),E.qZA()()),2&$){const Oe=E.oxw(2);E.xp6(1),E.Q6J("ngClass",Oe.autoRegistrationEnabled?"w-75":"w-50"),E.xp6(2),E.AsE(" ",E.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Oe.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",Oe.applicationForm.automaticApproval?E.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",Oe.applicationForm.automaticApprovalExtension?E.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(3),E.Q6J("ngIf",Oe.autoRegistrationEnabled),E.xp6(1),E.Q6J("ngIf",Oe.voHasEmbeddedGroupApplication),E.xp6(2),E.Q6J("ngIf",Oe.editAuth)}}function we($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",26),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Ge($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",27),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.save())}),E.TgZ(1,"i",12),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&$){const Oe=E.oxw(2);E.Q6J("disabled",!Oe.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ce($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",28),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.copy())}),E.TgZ(1,"i",12),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&$&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ze($,Ee){1&$&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const he=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},xe=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function j($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"div"),E.YNc(1,Me,24,21,"div",4),E._UZ(2,"mat-divider",5),E.TgZ(3,"div",6)(4,"perun-web-apps-refresh-button",7),E.NdJ("refresh",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.updateFormItems())}),E.qZA(),E.YNc(5,we,3,3,"button",8),E.YNc(6,Ge,5,4,"button",9),E.YNc(7,ce,5,3,"button",10),E.TgZ(8,"button",11),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.preview())}),E.TgZ(9,"i",12),E._uU(10,"search"),E.qZA(),E._uU(11),E.ALo(12,"translate"),E.qZA()(),E.YNc(13,Ze,3,3,"perun-web-apps-alert",13),E.TgZ(14,"app-application-form-list",14),E.NdJ("applicationFormItemsChange",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.changeItems())}),E.qZA()()}if(2&$){const Oe=E.oxw();E.xp6(1),E.Q6J("ngIf",!Oe.loading),E.xp6(4),E.Q6J("ngIf",Oe.editAuth),E.xp6(1),E.Q6J("ngIf",Oe.editAuth),E.xp6(1),E.Q6J("ngIf",Oe.editAuth),E.xp6(4),E.hij(" ",E.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",Oe.editAuth),E.xp6(1),E.Q6J("applicationForm",Oe.applicationForm)("applicationFormItems",Oe.applicationFormItems)("loading",Oe.loading)("displayedColumns",Oe.editAuth?E.DdM(14,he):E.DdM(15,xe))("refreshApplicationForm",Oe.refreshApplicationForm)("theme","group-theme")}}function R($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",32),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw(2);return E.KtG(Xe.createEmptyApplicationForm())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function G($,Ee){if(1&$&&(E.TgZ(0,"div")(1,"perun-web-apps-alert",30),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,R,3,3,"button",31),E.qZA()),2&$){const Oe=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),E.xp6(2),E.Q6J("ngIf",Oe.createEmptyForm)}}let se=(()=>{class ${constructor(Oe,ct,Xe,_t,Je,gt,Y,Ce,ae){this.registrarManager=Oe,this.dialog=ct,this.notificator=Xe,this.translate=_t,this.apiRequest=Je,this.router=gt,this.guiAuthResolver=Y,this.attributesManager=Ce,this.entityStorageService=ae,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Oe=>{this.applicationForm=Oe,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(ct=>{this.applicationFormItems=ct,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Xe=>{this.voHasEmbeddedGroupApplication=null!==Xe.value,this.autoRegistrationEnabled=!!Xe.value,this.loading=!1})},()=>this.loading=!1)},Oe=>{const ct=Oe.error;"FormNotExistsException"===ct.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(ct)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let Oe=(0,T.kZ)();Oe.width="500px",Oe.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(c.J,Oe).afterClosed().subscribe(Xe=>{Xe&&(this.applicationFormItems=Object.assign([],Xe[0]),Oe=(0,T.kZ)(),Oe.width="600px",Oe.height="600px",Oe.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Xe[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(A._,Oe),this.itemsChanged=!0)})}copy(){const Oe=(0,T.kZ)();Oe.width="500px",Oe.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,Oe).afterClosed().subscribe(Xe=>{Xe&&this.updateFormItems()})}settings(){const Oe=(0,T.kZ)();Oe.width="400px",Oe.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,Oe).afterClosed().subscribe(Xe=>{Xe&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(_t=>{this.notificator.showSuccess(_t)}),this.applicationForm=Xe)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Oe=>{this.applicationFormItems=Oe,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Oe=0;for(const ct of this.applicationFormItems)ct.ordnum=Oe,ct.forDelete||Oe++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(ct=>{this.notificator.showSuccess(ct)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Oe=>{this.notificator.showSuccess(Oe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Oe=>{this.notificator.showSuccess(Oe)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return $.id="GroupSettingsApplicationFormComponent",$.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(C.tk),E.Y36(S.uw),E.Y36(e.V6),E.Y36(U.sK),E.Y36(e.F5),E.Y36(_.F0),E.Y36(e.x4),E.Y36(C.H8),E.Y36(e.fb))},$.\u0275cmp=E.Xpm({type:$,selectors:[["app-group-settings-application-form"]],viewQuery:function(Oe,ct){if(1&Oe&&E.Gf(B,5),2&Oe){let Xe;E.iGM(Xe=E.CRH())&&(ct.autoRegToggle=Xe.first)}},hostVars:2,hostBindings:function(Oe,ct){2&Oe&&E.ekj("router-component",ct.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(Oe,ct){1&Oe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,W,1,0,"mat-spinner",1),E.YNc(4,j,15,16,"div",2),E.YNc(5,G,5,4,"div",2)),2&Oe&&(E.xp6(1),E.hij(" ",E.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.noApplicationForm),E.xp6(1),E.Q6J("ngIf",!ct.loading&&ct.noApplicationForm))},dependencies:[V.mk,V.O5,z.JJ,z.On,Q.Hw,te.lW,oe.Ou,ee.gM,le.Rr,de.d,Te.w,v.t,L.b,U.X$]}),$})()},15592:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>j});var e=h(81889),c=h(95017),A=h(41656),w=h(9244),g=h(32105),C=h(64080),T=h(10036),E=h(87842),S=h(32080),_=(h(33604),h(94650)),V=h(65412),z=h(36895),Q=h(24006),te=h(4859),oe=h(51572),ee=h(10266),le=h(90455),de=h(24179),Te=h(96214),v=h(58956),L=h(64901),B=h(89383);const W=["tree"],q=["list"],ue=["toggle"];function ye(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"button",10),_.NdJ("click",function(){_.CHM(se);const Ee=_.oxw();return _.KtG(Ee.onCreateGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Me(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(se);const Ee=_.oxw();return _.KtG(Ee.deleteGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&R){const se=_.oxw();_.Q6J("disabled",0===se.selected.selected.length||void 0!==se.tree&&!se.tree.removeAuth||void 0!==se.list&&!se.list.removeAuth),_.xp6(1),_.hij(" ",_.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function we(R,G){1&R&&_._UZ(0,"mat-spinner",12)}function Ge(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-tree",16,17),_.NdJ("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))})("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.refreshTable())}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("disableRouting",!se.routeAuth)("expandAll",se.filtering)("groups",se.groups)("hideCheckbox",!se.deleteAuth)("filterValue",se.filterValue)("selection",se.selected)}}const ce=function(){return["select","id","name","description","menu"]},Ze=function(){return["id","name","description","menu"]};function he(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-list",18,19),_.NdJ("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))})("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.refreshTable())}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!se.routeAuth)("displayedColumns",se.deleteAuth?_.DdM(8,ce):_.DdM(9,Ze))("groups",se.groups)("selection",se.selected)("filter",se.filterValue)("tableId",se.tableId)}}function xe(R,G){if(1&R&&(_.TgZ(0,"div",13),_.YNc(1,Ge,2,6,"perun-web-apps-groups-tree",14),_.YNc(2,he,2,10,"perun-web-apps-groups-list",15),_.qZA()),2&R){const se=_.oxw();_.xp6(1),_.Q6J("ngIf",!se.showGroupList),_.xp6(1),_.Q6J("ngIf",se.showGroupList)}}let j=(()=>{class R{constructor(se,$,Ee,Oe){this.dialog=se,this.groupService=$,this.guiAuthResolver=Ee,this.entityStorageService=Oe,this.groups=[],this.selected=new c.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=T.bf,this.filterValue=""}onCreateGroup(){const se=(0,w.kZ)();se.width="450px",se.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,se).afterClosed().subscribe(Ee=>{Ee&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const se=(0,w.kZ)();se.width="450px",se.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(A.P,se).afterClosed().subscribe(Ee=>{Ee&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[C.r.GROUP_DEF_MAIL_FOOTER,C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(se=>{this.groups=se,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(se){this.filterValue=se,this.filtering=""!==se}onMoveGroup(se){const $=(0,w.kZ)();$.width="550px",$.data={group:se,theme:"group-theme"},this.dialog.open(E.c,$).afterClosed().subscribe(Oe=>{Oe&&this.refreshTable()})}}return R.id="GroupSubgroupsComponent",R.\u0275fac=function(se){return new(se||R)(_.Y36(V.uw),_.Y36(g.ff),_.Y36(S.x4),_.Y36(S.fb))},R.\u0275cmp=_.Xpm({type:R,selectors:[["app-group-subgroups"]],viewQuery:function(se,$){if(1&se&&(_.Gf(W,5),_.Gf(q,5),_.Gf(ue,7)),2&se){let Ee;_.iGM(Ee=_.CRH())&&($.tree=Ee.first),_.iGM(Ee=_.CRH())&&($.list=Ee.first),_.iGM(Ee=_.CRH())&&($.toggle=Ee.first)}},hostVars:2,hostBindings:function(se,$){2&se&&_.ekj("router-component",$.true)},decls:19,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],["tree",""],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable"],["list",""]],template:function(se,$){if(1&se&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return $.refreshTable()}),_.qZA(),_.YNc(5,ye,3,3,"button",2),_.TgZ(6,"span",3),_.ALo(7,"translate"),_.YNc(8,Me,3,4,"button",4),_.qZA(),_.TgZ(9,"perun-web-apps-debounce-filter",5),_.NdJ("filter",function(Oe){return $.applyFilter(Oe)}),_.qZA(),_.TgZ(10,"mat-slide-toggle",6,7),_.NdJ("change",function(){return $.selected.clear()})("ngModelChange",function(Oe){return $.showGroupList=Oe}),_._uU(12),_.ALo(13,"translate"),_.qZA(),_.TgZ(14,"label"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.YNc(17,we,1,0,"mat-spinner",8),_.YNc(18,xe,3,2,"div",9),_.qZA()),2&se){const Ee=_.MAs(11);_.xp6(2),_.Oqu(_.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),_.xp6(3),_.Q6J("ngIf",$.createAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),_.Q6J("matTooltipDisabled",void 0===$.tree&&void 0===$.list||void 0!==$.tree&&$.tree.removeAuth||void 0!==$.list&&$.list.removeAuth),_.xp6(2),_.Q6J("ngIf",$.deleteAuth),_.xp6(1),_.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),_.xp6(1),_.Q6J("ngModel",$.showGroupList),_.xp6(2),_.Oqu(_.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),_.xp6(2),_.uIk("for",Ee.inputId),_.xp6(1),_.Oqu(_.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),_.xp6(2),_.Q6J("ngIf",$.loading),_.xp6(1),_.Q6J("ngIf",!$.loading)}},dependencies:[z.O5,Q.JJ,Q.On,te.lW,oe.Ou,ee.gM,le.Rr,de.W,Te.t,v.I,L.P,B.X$]}),R})()},85243:(Ye,pe,h)=>{"use strict";h.d(pe,{j:()=>se});var e=h(32105),c=h(10036),A=h(95017),w=h(9244),g=h(65412),C=h(32080),T=h(64080),E=h(94650),S=h(89383),U=h(36895),_=h(4859),V=h(51572),z=h(24179),Q=h(7434);function te($,Ee){1&$&&E._UZ(0,"mat-spinner",6)}function oe($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"perun-web-apps-immediate-filter",7),E.NdJ("filter",function(Xe){E.CHM(Oe);const _t=E.oxw();return E.KtG(_t.applyFilter(Xe))}),E.qZA()}2&$&&E.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const ee=function(){return["select","id","name","description"]};function le($,Ee){if(1&$&&E._UZ(0,"perun-web-apps-groups-list",8),2&$){const Oe=E.oxw();E.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",E.DdM(8,ee))("filter",Oe.filterValue)("groupsToDisableCheckbox",Oe.membersGroups)("disableRouting",!0)("groups",Oe.groups)("selection",Oe.selection)}}function de($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"div",9)(1,"button",10),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.onCancel())}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",11),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.onAdd())}),E._uU(5),E.ALo(6,"translate"),E.qZA()()}if(2&$){const Oe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",0===Oe.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Te=(()=>{class ${constructor(Oe,ct,Xe,_t,Je,gt,Y){this.dialogRef=Oe,this.data=ct,this.groupManager=Xe,this.memberManager=_t,this.notificator=Je,this.translate=gt,this.authResolver=Y,this.loading=!1,this.groups=[],this.selection=new A.Ov(!0,[]),this.attrNames=[T.r.GROUP_SYNC_ENABLED,T.r.GROUP_LAST_SYNC_STATE,T.r.GROUP_LAST_SYNC_TIMESTAMP,T.r.GROUP_STRUCTURE_SYNC_ENABLED,T.r.GROUP_LAST_STRUCTURE_SYNC_STATE,T.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Oe=>{this.member=Oe,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(ct=>{this.groups=ct.filter(Xe=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Xe])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Oe=this.selection.selected.map(ct=>ct.id);this.loading=!0,this.groupManager.addMember(Oe,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Oe){this.filterValue=Oe}}return $.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.ff),E.Y36(e.uq),E.Y36(C.V6),E.Y36(S.sK),E.Y36(C.x4))},$.\u0275cmp=E.Xpm({type:$,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Oe,ct){1&Oe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,te,1,0,"mat-spinner",1),E.TgZ(5,"div",2),E.YNc(6,oe,1,1,"perun-web-apps-immediate-filter",3),E.YNc(7,le,1,9,"perun-web-apps-groups-list",4),E.qZA(),E.YNc(8,de,7,7,"div",5),E.qZA()),2&Oe&&(E.Tol(ct.theme),E.xp6(2),E.Oqu(E.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",ct.loading),E.xp6(2),E.Q6J("ngIf",!ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading))},dependencies:[U.O5,_.lW,g.uh,g.xY,g.H8,V.Ou,z.W,Q.L,S.X$]}),$})();var v=h(30671);function L($,Ee){1&$&&E._UZ(0,"mat-spinner",6)}function B($,Ee){1&$&&E._UZ(0,"th",15)}function W($,Ee){if(1&$&&(E.TgZ(0,"td",16),E._uU(1),E.qZA()),2&$){const Oe=Ee.$implicit;E.xp6(1),E.Oqu(Oe.name)}}function q($,Ee){1&$&&E._UZ(0,"tr",17)}function ue($,Ee){1&$&&E._UZ(0,"tr",18)}function ye($,Ee){if(1&$&&(E.TgZ(0,"div",7)(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",8),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",9),E.ynx(8,10),E.YNc(9,B,1,0,"th",11),E.YNc(10,W,2,1,"td",12),E.BQk(),E.YNc(11,q,1,0,"tr",13),E.YNc(12,ue,1,0,"tr",14),E.qZA()()),2&$){const Oe=E.oxw();E.xp6(2),E.Oqu(E.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),E.xp6(2),E.Q6J("dataSource",Oe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",Oe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Oe.displayedColumns)}}let Me=(()=>{class ${constructor(Oe,ct,Xe,_t,Je){this.dialogRef=Oe,this.data=ct,this.groupManager=Xe,this.notificator=_t,this.translate=Je,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new v.by(this.data.groups)}onRemove(){this.loading=!0;const Oe=this.dataSource.data.map(ct=>ct.id);this.groupManager.removeMember(Oe,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return $.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(g.so),E.Y36(g.WI),E.Y36(e.ff),E.Y36(C.V6),E.Y36(S.sK))},$.\u0275cmp=E.Xpm({type:$,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Oe,ct){1&Oe&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,L,1,0,"mat-spinner",1),E.YNc(5,ye,13,9,"div",2),E.TgZ(6,"div",3)(7,"button",4),E.NdJ("click",function(){return ct.onCancel()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.TgZ(10,"button",5),E.NdJ("click",function(){return ct.onRemove()}),E._uU(11),E.ALo(12,"translate"),E.qZA()()()),2&Oe&&(E.Tol(ct.theme),E.xp6(2),E.Oqu(E.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),E.xp6(2),E.Q6J("ngIf",ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading),E.xp6(3),E.hij(" ",E.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),E.xp6(2),E.Q6J("disabled",ct.loading),E.xp6(1),E.hij(" ",E.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},dependencies:[U.O5,_.lW,v.BZ,v.fO,v.as,v.w1,v.Dz,v.nj,v.ge,v.ev,v.XQ,v.Gk,g.uh,g.xY,g.H8,V.Ou,S.X$]}),$})();h(33604);var Ge=h(94364),ce=h(10266),Ze=h(96214);const he=["list"];function xe($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.addGroup())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function j($,Ee){1&$&&E._UZ(0,"mat-spinner",9)}const R=function(){return["select","id","name","description","expiration","groupStatus"]};function G($,Ee){if(1&$){const Oe=E.EpF();E.TgZ(0,"perun-web-apps-groups-list",10,11),E.NdJ("refreshTable",function(){E.CHM(Oe);const Xe=E.oxw();return E.KtG(Xe.refreshTable())}),E.qZA()}if(2&$){const Oe=E.oxw();E.Q6J("displayedColumns",E.DdM(9,R))("authType","member-groups")("filter",Oe.filterValue)("memberId",Oe.memberId)("disableRouting",!Oe.routeAuth)("groups",Oe.groups)("memberGroupStatus",Oe.member.groupStatus)("selection",Oe.selection)("tableId",Oe.tableId)}}let se=(()=>{class ${constructor(Oe,ct,Xe,_t,Je){this.groupsService=Oe,this.route=ct,this.dialog=Xe,this.authResolver=_t,this.memberService=Je,this.filterValue="",this.tableId=c.W1,this.selection=new A.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Oe=>{this.memberId=Number(Oe.memberId),this.memberService.getMemberById(this.memberId).subscribe(ct=>{this.member=ct,this.groupsService.getAllGroups(this.member.voId).subscribe(Xe=>{this.allGroups=Xe,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[T.r.MEMBER_DEF_GROUP_EXPIRATION,T.r.MEMBER_GROUP_STATUS]).subscribe(Oe=>{this.selection.clear(),this.groups=Oe,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Oe={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((ct,Xe)=>ct||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Xe]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Oe,this.groups[0]]))}addGroup(){const Oe=(0,w.kZ)();Oe.width="850px",Oe.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Xe=>Xe.id)),theme:"member-theme"},this.dialog.open(Te,Oe).afterClosed().subscribe(Xe=>{Xe&&this.refreshTable()})}removeGroup(){const Oe=(0,w.kZ)();Oe.width="650px",Oe.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(Me,Oe).afterClosed().subscribe(Xe=>{Xe&&this.refreshTable()})}applyFilter(Oe){this.filterValue=Oe}}return $.id="MemberGroupsComponent",$.\u0275fac=function(Oe){return new(Oe||$)(E.Y36(e.ff),E.Y36(Ge.gz),E.Y36(g.uw),E.Y36(C.x4),E.Y36(e.uq))},$.\u0275cmp=E.Xpm({type:$,selectors:[["app-member-groups"]],viewQuery:function(Oe,ct){if(1&Oe&&E.Gf(he,5),2&Oe){let Xe;E.iGM(Xe=E.CRH())&&(ct.list=Xe.first)}},hostVars:2,hostBindings:function(Oe,ct){2&Oe&&E.ekj("router-component",ct.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable"],["list",""]],template:function(Oe,ct){1&Oe&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.TgZ(3,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return ct.refreshTable()}),E.qZA(),E.YNc(4,xe,3,3,"button",2),E.TgZ(5,"span",3),E.ALo(6,"translate"),E.TgZ(7,"button",4),E.NdJ("click",function(){return ct.removeGroup()}),E._uU(8),E.ALo(9,"translate"),E.qZA()(),E.TgZ(10,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(_t){return ct.applyFilter(_t)}),E.qZA(),E.YNc(11,j,1,0,"mat-spinner",6),E.YNc(12,G,2,10,"perun-web-apps-groups-list",7)),2&Oe&&(E.xp6(1),E.Oqu(E.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),E.xp6(3),E.Q6J("ngIf",ct.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",void 0===ct.list||void 0!==ct.list&&ct.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===ct.selection.selected.length||void 0!==ct.list&&!ct.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",ct.loading),E.xp6(1),E.Q6J("ngIf",!ct.loading))},dependencies:[U.O5,_.lW,V.Ou,ce.gM,z.W,Ze.t,Q.L,S.X$]}),$})()},94856:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>de});var e=h(32105),c=h(10036),A=h(24006),w=h(36895),g=h(32080),C=h(94650),T=h(3238),E=h(59549),S=h(4859),U=h(56709),_=h(84385),V=h(96214),z=h(39798),Q=h(64901),te=h(9146),oe=h(89383);function ee(Te,v){if(1&Te){const L=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(L);const W=C.oxw();return C.KtG(W.showDetails(!0))}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function le(Te,v){if(1&Te){const L=C.EpF();C.TgZ(0,"button",15),C.NdJ("click",function(){C.CHM(L);const W=C.oxw();return C.KtG(W.showDetails(!1))}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let de=(()=>{class Te{constructor(L,B){this.registrarManager=L,this.entityStorageService=B,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=c.Jf,this.tableId=c.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new A.p4((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new A.p4((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const L=new Date;return L.setDate(L.getDate()-365),L}showGroupApplications(L){this.showGroupApps=L.checked,this.currentColumns=this.refreshColumns()}showDetails(L){this.showAllDetails=L,this.currentColumns=this.refreshColumns()}applyFilter(L){this.filterValue=L}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(L=>"groupName"!==L&&"groupId"!==L):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(L=>"groupName"!==L)}}return Te.id="VoApplicationsComponent",Te.\u0275fac=function(L){return new(L||Te)(C.Y36(e.tk),C.Y36(g.fb))},Te.\u0275cmp=C.Xpm({type:Te,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(L,B){2&L&&C.ekj("router-component",B.true)},decls:38,vars:43,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(L,B){1&L&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div")(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return B.refresh=!B.refresh}),C.qZA(),C.YNc(5,ee,3,3,"button",2),C.YNc(6,le,3,3,"button",2),C.TgZ(7,"mat-form-field",3)(8,"mat-label"),C._uU(9),C.ALo(10,"translate"),C.qZA(),C.TgZ(11,"mat-select",4),C.NdJ("selectionChange",function(){return B.select()})("valueChange",function(q){return B.state=q}),C.TgZ(12,"mat-option",5),C._uU(13),C.ALo(14,"translate"),C.qZA(),C.TgZ(15,"mat-option",6),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"mat-option",7),C._uU(19),C.ALo(20,"translate"),C.qZA(),C.TgZ(21,"mat-option",8),C._uU(22),C.ALo(23,"translate"),C.qZA(),C.TgZ(24,"mat-option",9),C._uU(25),C.ALo(26,"translate"),C.qZA(),C.TgZ(27,"mat-option",10),C._uU(28),C.ALo(29,"translate"),C.qZA()()(),C.TgZ(30,"perun-web-apps-debounce-filter",11),C.NdJ("filter",function(q){return B.applyFilter(q)}),C.qZA(),C.TgZ(31,"perun-web-apps-date-range",12),C.NdJ("datePicker",function(){return B.select()}),C.qZA(),C.TgZ(32,"div")(33,"mat-checkbox",13),C.NdJ("change",function(q){return B.showGroupApplications(q)}),C._uU(34),C.ALo(35,"translate"),C.qZA()()(),C.TgZ(36,"div"),C._UZ(37,"app-applications-dynamic-list",14),C.qZA()),2&L&&(C.xp6(1),C.Oqu(C.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),C.xp6(4),C.Q6J("ngIf",!B.showAllDetails),C.xp6(1),C.Q6J("ngIf",B.showAllDetails),C.xp6(3),C.Oqu(C.lcZ(10,27,"APPLICATIONS_LIST.STATE")),C.xp6(2),C.Q6J("value",B.state),C.xp6(2),C.Oqu(C.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),C.xp6(3),C.Oqu(C.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),C.xp6(3),C.Oqu(C.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),C.xp6(3),C.Oqu(C.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),C.xp6(3),C.Oqu(C.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),C.xp6(3),C.Oqu(C.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),C.xp6(2),C.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),C.xp6(1),C.Q6J("endDate",B.endDate)("startDate",B.startDate),C.xp6(2),C.Q6J("checked",B.showGroupApps),C.xp6(1),C.hij(" ",C.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),C.xp6(3),C.Q6J("tableId",B.showAllDetails?B.detailTableId:B.tableId)("searchString",B.filterValue)("displayedColumns",B.currentColumns)("states",B.currentStates)("dateFrom",B.startDate.value)("dateTo",B.endDate.value)("includeGroupApps",B.showGroupApps)("refreshTable",B.refresh)("vo",B.vo))},dependencies:[w.O5,T.ey,E.KE,E.hX,S.lW,U.oG,_.gD,V.t,z.S,Q.P,te.S,oe.X$]}),Te})()},4732:(Ye,pe,h)=>{"use strict";h.d(pe,{G:()=>j});var e=h(81889),c=h(41656),A=h(95017),w=h(87842),g=h(9244),C=h(32105),T=h(10036),E=h(64080),S=h(32080),_=(h(33604),h(94650)),V=h(65412),z=h(36895),Q=h(24006),te=h(4859),oe=h(51572),ee=h(10266),le=h(90455),de=h(98380),Te=h(24179),v=h(96214),L=h(58956),B=h(64901),W=h(89383);const q=["toggle"],ue=["tree"],ye=["list"];function Me(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(se);const Ee=_.oxw();return _.KtG(Ee.onCreateGroup())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function we(R,G){1&R&&_._UZ(0,"mat-spinner",12)}function Ge(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-tree",16,17),_.NdJ("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))})("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.loadAllGroups())}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("expandAll",se.filtering)("disableRouting",!se.routeAuth)("groups",se.groups)("selection",se.selected)("filterValue",se.filterValue)("vo",se.vo)}}const ce=function(){return["select","id","name","description","menu"]};function Ze(R,G){if(1&R){const se=_.EpF();_.TgZ(0,"perun-web-apps-groups-list",18,19),_.NdJ("refreshTable",function(){_.CHM(se);const Ee=_.oxw(2);return _.KtG(Ee.loadAllGroups())})("moveGroup",function(Ee){_.CHM(se);const Oe=_.oxw(2);return _.KtG(Oe.onMoveGroup(Ee))}),_.qZA()}if(2&R){const se=_.oxw(2);_.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",_.DdM(8,ce))("disableRouting",!se.routeAuth)("groups",se.groups)("selection",se.selected)("filter",se.filterValue)("tableId",se.tableId)}}function he(R,G){if(1&R&&(_.TgZ(0,"div",13),_.YNc(1,Ge,2,6,"perun-web-apps-groups-tree",14),_.YNc(2,Ze,2,9,"perun-web-apps-groups-list",15),_.qZA()),2&R){const se=_.oxw();_.xp6(1),_.Q6J("ngIf",!se.showGroupList),_.xp6(1),_.Q6J("ngIf",se.showGroupList)}}function xe(R,G){1&R&&(_.TgZ(0,"perun-web-apps-alert",20),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&R&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let j=(()=>{class R{constructor(se,$,Ee,Oe){this.dialog=se,this.groupService=$,this.authResolver=Ee,this.entityStorageService=Oe,this.groups=[],this.showGroupList=!1,this.selected=new A.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=T.rc}onCreateGroup(){const se=(0,g.kZ)();se.width="450px",se.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,se).afterClosed().subscribe(Ee=>{Ee&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){return this.tree?.removeAuth||this.list?.removeAuth}deleteGroup(){const se=(0,g.kZ)();se.width="450px",se.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(c.P,se).afterClosed().subscribe(Ee=>{Ee&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(se){const $=(0,g.kZ)();$.width="550px",$.data={group:se,theme:"vo-theme"},this.dialog.open(w.c,$).afterClosed().subscribe(Oe=>{Oe&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[E.r.GROUP_SYNC_ENABLED,E.r.GROUP_LAST_SYNC_STATE,E.r.GROUP_LAST_SYNC_TIMESTAMP,E.r.GROUP_STRUCTURE_SYNC_ENABLED,E.r.GROUP_LAST_STRUCTURE_SYNC_STATE,E.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(se=>{this.groups=se,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(se){this.filterValue=se,this.filtering=""!==se}}return R.id="VoGroupsComponent",R.\u0275fac=function(se){return new(se||R)(_.Y36(V.uw),_.Y36(C.ff),_.Y36(S.x4),_.Y36(S.fb))},R.\u0275cmp=_.Xpm({type:R,selectors:[["app-vo-groups"]],viewQuery:function(se,$){if(1&se&&(_.Gf(q,7),_.Gf(ue,5),_.Gf(ye,5)),2&se){let Ee;_.iGM(Ee=_.CRH())&&($.toggle=Ee.first),_.iGM(Ee=_.CRH())&&($.tree=Ee.first),_.iGM(Ee=_.CRH())&&($.list=Ee.first)}},hostVars:2,hostBindings:function(se,$){2&se&&_.ekj("router-component",$.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup",4,"ngIf"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup"],["list",""],["alert_type","warn"]],template:function(se,$){if(1&se&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return $.loadAllGroups()}),_.qZA(),_.YNc(5,Me,3,3,"button",2),_.TgZ(6,"span",3),_.ALo(7,"translate"),_.TgZ(8,"button",4),_.NdJ("click",function(){return $.deleteGroup()}),_._uU(9),_.ALo(10,"translate"),_.qZA()(),_.TgZ(11,"perun-web-apps-debounce-filter",5),_.NdJ("filter",function(Oe){return $.applyFilter(Oe)}),_.qZA(),_.TgZ(12,"mat-slide-toggle",6,7),_.NdJ("change",function(){return $.removeAllGroups()})("ngModelChange",function(Oe){return $.showGroupList=Oe}),_._uU(14),_.ALo(15,"translate"),_.qZA(),_.TgZ(16,"label"),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.YNc(19,we,1,0,"mat-spinner",8),_.YNc(20,he,3,2,"div",9),_.YNc(21,xe,3,3,"perun-web-apps-alert",10),_.qZA()),2&se){const Ee=_.MAs(13);_.xp6(2),_.Oqu(_.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),_.xp6(3),_.Q6J("ngIf",$.createAuth),_.xp6(1),_.s9C("matTooltip",_.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),_.Q6J("matTooltipDisabled",void 0===$.tree&&void 0===$.list||$.disableTooltip()),_.xp6(2),_.Q6J("disabled",0===$.selected.selected.length||$.disableRemove()),_.xp6(1),_.hij(" ",_.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),_.xp6(2),_.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),_.xp6(1),_.Q6J("ngModel",$.showGroupList),_.xp6(2),_.Oqu(_.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),_.xp6(2),_.uIk("for",Ee.inputId),_.xp6(1),_.Oqu(_.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),_.xp6(2),_.Q6J("ngIf",$.loading),_.xp6(1),_.Q6J("ngIf",!$.loading&&0!==$.groups.length),_.xp6(1),_.Q6J("ngIf",0===$.groups.length&&!$.loading)}},dependencies:[z.O5,Q.JJ,Q.On,te.lW,oe.Ou,ee.gM,le.Rr,de.w,Te.W,v.t,L.I,B.P,W.X$]}),R})()},81847:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>ce});var e=h(95017),c=h(32080),A=h(53455),w=h(32105),g=h(64080),C=h(24006),T=h(10036),E=h(9244),S=h(74414),U=h(51525),_=h(94650),V=h(65412),z=h(36895),Q=h(3238),te=h(59549),oe=h(4859),ee=h(84385),le=h(51572),de=h(10266),Te=h(96214),v=h(64901),L=h(4811),B=h(89383),W=h(20551);function q(Ze,he){if(1&Ze){const xe=_.EpF();_.TgZ(0,"button",14),_.NdJ("click",function(){_.CHM(xe);const R=_.oxw();return _.KtG(R.onAddMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&Ze){const xe=_.oxw();_.Q6J("disabled",xe.blockManualMemberAdding),_.xp6(1),_.hij(" ",_.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ue(Ze,he){if(1&Ze){const xe=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(xe);const R=_.oxw();return _.KtG(R.onInviteMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&Ze&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function ye(Ze,he){if(1&Ze){const xe=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){_.CHM(xe);const R=_.oxw();return _.KtG(R.onRemoveMembers())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&Ze){const xe=_.oxw();_.Q6J("disabled",xe.selection.isEmpty()),_.xp6(1),_.hij(" ",_.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Me(Ze,he){if(1&Ze&&(_.TgZ(0,"mat-option",17),_._uU(1),_.ALo(2,"memberStatus"),_.qZA()),2&Ze){const xe=he.$implicit;_.Q6J("value",xe),_.xp6(1),_.Oqu(_.lcZ(2,2,xe))}}function we(Ze,he){1&Ze&&_._UZ(0,"mat-spinner",18)}function Ge(Ze,he){if(1&Ze&&_._UZ(0,"perun-web-apps-members-dynamic-list",19),2&Ze){const xe=_.oxw();_.Q6J("attrNames",xe.attrNames)("selection",xe.selection)("tableId",xe.tableId)("displayedColumns",xe.displayedColumns)("updateTable",xe.updateTable)("searchString",xe.searchString)("selectedStatuses",xe.selectedStatuses)("voId",xe.vo.id)("isMembersGroup",!1)}}let ce=(()=>{class Ze{constructor(xe,j,R,G,se,$,Ee){this.notificator=xe,this.dialog=j,this.authzService=R,this.storeService=G,this.attributesManager=se,this.apiRequest=$,this.entityStorageService=Ee,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[g.r.MEMBER_DEF_ORGANIZATION,g.r.MEMBER_DEF_MAIL,g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL,g.r.MEMBER_DEF_EXPIRATION,g.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new C.p4,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=T.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(xe){this.searchString=xe,this.selection.clear()}onAddMember(){const xe=(0,E.kZ)();xe.width="1000px",xe.data={voId:this.vo.id},this.dialog.open(U.H,xe).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const xe=(0,E.kZ)();xe.width="450px",xe.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(A.X,xe).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const xe=(0,E.kZ)();xe.width="650px",xe.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(S.R,xe)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const xe=this.statuses.value;return xe?`${xe[0]} ${xe.length>1?"(+"+(xe.length-1).toString()+" "+(2===xe.length?"other)":"others)"):""}`:""}isManualAddingBlocked(xe){return new Promise(j=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(xe,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(R=>{this.blockManualMemberAdding=null!==R.value,j()},R=>{const G=R.error;"PrivilegeException"!==G.name&&this.notificator.showError(G.name),j()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return Ze.id="VoMembersComponent",Ze.\u0275fac=function(xe){return new(xe||Ze)(_.Y36(c.V6),_.Y36(V.uw),_.Y36(c.x4),_.Y36(c.d6),_.Y36(w.H8),_.Y36(c.F5),_.Y36(c.fb))},Ze.\u0275cmp=_.Xpm({type:Ze,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(xe,j){2&xe&&_.ekj("router-component",j.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId","isMembersGroup"]],template:function(xe,j){1&xe&&(_.TgZ(0,"div",0)(1,"h1",1),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"div",2)(5,"perun-web-apps-refresh-button",3),_.NdJ("click",function(){return j.refreshTable()}),_.qZA(),_.TgZ(6,"div",4),_.ALo(7,"translate"),_.YNc(8,q,3,4,"button",5),_.qZA(),_.YNc(9,ue,3,3,"button",6),_.YNc(10,ye,3,4,"button",7),_.TgZ(11,"mat-form-field",8)(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"mat-select",9),_.NdJ("closed",function(){return j.changeStatuses()}),_.TgZ(16,"mat-select-trigger"),_._uU(17),_.ALo(18,"memberStatus"),_.qZA(),_.YNc(19,Me,3,4,"mat-option",10),_.qZA()(),_.TgZ(20,"perun-web-apps-debounce-filter",11),_.NdJ("filter",function(G){return j.onSearchByString(G)}),_.qZA()(),_.YNc(21,we,1,0,"mat-spinner",12),_.YNc(22,Ge,1,9,"perun-web-apps-members-dynamic-list",13),_.qZA()),2&xe&&(_.xp6(2),_.Oqu(_.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),_.xp6(4),_.s9C("matTooltip",_.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),_.Q6J("matTooltipDisabled",!j.blockManualMemberAdding),_.xp6(2),_.Q6J("ngIf",j.addAuth),_.xp6(1),_.Q6J("ngIf",j.inviteAuth),_.xp6(1),_.Q6J("ngIf",j.removeAuth),_.xp6(3),_.Oqu(_.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),_.xp6(2),_.Q6J("formControl",j.statuses),_.xp6(2),_.hij(" ",_.lcZ(18,19,j.displaySelectedStatuses())," "),_.xp6(2),_.Q6J("ngForOf",j.statusList),_.xp6(1),_.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),_.xp6(1),_.Q6J("ngIf",j.loading),_.xp6(1),_.Q6J("ngIf",!j.loading))},dependencies:[z.sg,z.O5,Q.ey,te.KE,te.hX,C.JJ,C.oH,oe.lW,ee.gD,ee.$L,le.Ou,de.gM,Te.t,v.P,L.m,B.X$,W.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Ze})()},68056:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>de});var e=h(95017),c=h(32105),A=h(533),w=h(10036),g=h(9244),C=h(32080),T=h(94650),E=h(65412),S=h(36895),U=h(4859),_=h(51572),V=h(96214),z=h(7434),Q=h(62109),te=h(89383);function oe(Te,v){if(1&Te){const L=T.EpF();T.TgZ(0,"button",6),T.NdJ("click",function(){T.CHM(L);const W=T.oxw();return T.KtG(W.deleteSelectedResources())}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Te){const L=T.oxw();T.Q6J("disabled",0===L.selected.selected.length),T.xp6(1),T.hij(" ",T.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function ee(Te,v){1&Te&&T._UZ(0,"mat-spinner",7)}function le(Te,v){if(1&Te&&T._UZ(0,"perun-web-apps-resources-list",8),2&Te){const L=T.oxw();T.Q6J("disableRouting",!L.routeAuth)("filterValue",L.filterValue)("resources",L.resources)("routingVo",!0)("displayedColumns",L.displayedColumns)("selection",L.selected)("tableId",L.tableId)}}let de=(()=>{class Te{constructor(L,B,W,q){this.resourcesManager=L,this.dialog=B,this.authResolver=W,this.entityStorageService=q,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(L=>{this.resources=L,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(L){this.filterValue=L}deleteSelectedResources(){const L=(0,g.kZ)();L.width="450px",L.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(A.f,L).afterClosed().subscribe(W=>{W&&this.refreshTable()})}}return Te.id="VoResourcesPreviewComponent",Te.\u0275fac=function(L){return new(L||Te)(T.Y36(c.xk),T.Y36(E.uw),T.Y36(C.x4),T.Y36(C.fb))},Te.\u0275cmp=T.Xpm({type:Te,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(L,B){2&L&&T.ekj("router-component",B.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(L,B){1&L&&(T.TgZ(0,"div")(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"perun-web-apps-refresh-button",1),T.NdJ("refresh",function(){return B.refreshTable()}),T.qZA(),T.YNc(5,oe,3,4,"button",2),T.TgZ(6,"perun-web-apps-immediate-filter",3),T.NdJ("filter",function(q){return B.applyFilter(q)}),T.qZA(),T.YNc(7,ee,1,0,"mat-spinner",4),T.YNc(8,le,1,7,"perun-web-apps-resources-list",5),T.qZA()),2&L&&(T.xp6(2),T.Oqu(T.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),T.xp6(3),T.Q6J("ngIf",B.removeAuth),T.xp6(1),T.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),T.xp6(1),T.Q6J("ngIf",B.loading),T.xp6(1),T.Q6J("ngIf",!B.loading))},dependencies:[S.O5,U.lW,_.Ou,V.t,z.L,Q.C,te.X$]}),Te})()},24219:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>Ce});var e=h(32080),c=h(32105),A=h(94650),w=h(36895),g=h(3848),C=h(98380),T=h(96214),E=h(30671),S=h(51572),U=h(44850),_=h(37084),V=h(89383);function z(ae,re){1&ae&&A._UZ(0,"mat-spinner",2)}function Q(ae,re){if(1&ae&&(A.TgZ(0,"mat-panel-description")(1,"div")(2,"i",10),A._uU(3," error "),A.qZA(),A._uU(4),A.ALo(5,"translate"),A.ALo(6,"translate"),A.qZA()()),2&ae){const Se=A.oxw().$implicit,Fe=A.oxw(2);A.xp6(4),A.HOy(" ",Fe.getErrorCountStates(Se)," ",A.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",Se.taskList.length," ",A.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function te(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function oe(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&ae){const Se=re.$implicit;A.xp6(1),A.Oqu(Se.id)}}function ee(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function le(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&ae){const Se=re.$implicit;A.xp6(1),A.Oqu(Se.service.name)}}function de(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Te(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A._uU(1),A.qZA()),2&ae){const Se=re.$implicit;A.xp6(1),A.Oqu(Se.status)}}function v(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function L(ae,re){if(1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,Se.schedule,"d.M.y H:mm:ss")," ")}}function B(ae,re){1&ae&&(A._uU(0),A.ALo(1,"translate")),2&ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function W(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A.YNc(1,L,3,4,"div",25),A.YNc(2,B,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",Se.schedule)("ngIfElse",Fe)}}function q(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ue(ae,re){if(1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,Se.schedule,"d.M.y H:mm:ss")," ")}}function ye(ae,re){1&ae&&(A._uU(0),A.ALo(1,"translate")),2&ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Me(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A.YNc(1,ue,3,4,"div",25),A.YNc(2,ye,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",Se.startTime)("ngIfElse",Fe)}}function we(ae,re){1&ae&&(A.TgZ(0,"th",23),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Ge(ae,re){if(1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"date"),A.qZA()),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,Se.schedule,"d.M.y H:mm:ss")," ")}}function ce(ae,re){1&ae&&(A._uU(0),A.ALo(1,"translate")),2&ae&&A.hij(" ",A.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ze(ae,re){if(1&ae&&(A.TgZ(0,"td",24),A.YNc(1,Ge,3,4,"div",25),A.YNc(2,ce,2,3,"ng-template",26,27,A.W1O),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.MAs(3);A.xp6(1),A.Q6J("ngIf",Se.endTime)("ngIfElse",Fe)}}function he(ae,re){1&ae&&A._UZ(0,"tr",28)}const xe=function(ae,re,Se){return{redTableItem:ae,greenTableItem:re,yellowTableItem:Se}};function j(ae,re){if(1&ae&&A._UZ(0,"tr",29),2&ae){const Se=re.$implicit;A.Q6J("ngClass",A.kEZ(1,xe,"ERROR"===Se.status||"SENDERROR"===Se.status||"GENERROR"===Se.status,"DONE"===Se.status,"WARNING"===Se.status))}}function R(ae,re){if(1&ae&&(A.TgZ(0,"table",12),A.ynx(1,13),A.YNc(2,te,3,3,"th",14),A.YNc(3,oe,2,1,"td",15),A.BQk(),A.ynx(4,16),A.YNc(5,ee,3,3,"th",14),A.YNc(6,le,2,1,"td",15),A.BQk(),A.ynx(7,17),A.YNc(8,de,3,3,"th",14),A.YNc(9,Te,2,1,"td",15),A.BQk(),A.ynx(10,18),A.YNc(11,v,3,3,"th",14),A.YNc(12,W,4,2,"td",15),A.BQk(),A.ynx(13,19),A.YNc(14,q,3,3,"th",14),A.YNc(15,Me,4,2,"td",15),A.BQk(),A.ynx(16,20),A.YNc(17,we,3,3,"th",14),A.YNc(18,Ze,4,2,"td",15),A.BQk(),A.YNc(19,he,1,0,"tr",21),A.YNc(20,j,1,5,"tr",22),A.qZA()),2&ae){const Se=A.oxw(2).$implicit,Fe=A.oxw(2);A.Q6J("dataSource",Fe.datasources[Fe.propagation.indexOf(Se)]),A.xp6(19),A.Q6J("matHeaderRowDef",Fe.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Fe.displayedColumns)}}function G(ae,re){1&ae&&(A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function se(ae,re){if(1&ae&&(A._UZ(0,"mat-divider"),A.YNc(1,R,21,3,"table",11),A.YNc(2,G,3,3,"div",8)),2&ae){const Se=A.oxw().$implicit;A.xp6(1),A.Q6J("ngIf",0!==Se.taskList.length),A.xp6(1),A.Q6J("ngIf",0===Se.taskList.length)}}function $(ae,re){if(1&ae&&(A.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),A._UZ(3,"img",6),A.TgZ(4,"div",7),A._uU(5),A.qZA()(),A.YNc(6,Q,7,8,"mat-panel-description",8),A.qZA(),A.YNc(7,se,3,2,"ng-template",9),A.qZA()),2&ae){const Se=re.$implicit,Fe=A.oxw(2);A.xp6(5),A.hij(" ",Se.resource.name," "),A.xp6(1),A.Q6J("ngIf",0!==Fe.getErrorCountStates(Se))}}function Ee(ae,re){if(1&ae&&(A.TgZ(0,"div",3)(1,"mat-accordion",4),A.YNc(2,$,8,2,"mat-expansion-panel",5),A.qZA()()),2&ae){const Se=A.oxw();A.xp6(2),A.Q6J("ngForOf",Se.propagation)}}let Oe=(()=>{class ae{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(Se){let Fe=0;for(const be of Se.taskList)("ERROR"===be.status||"GENERROR"===be.status||"SENDERROR"===be.status)&&Fe++;return Fe}getDataSource(){this.datasources=[];for(const Se of this.propagation)this.datasources.push(new E.by(Se.taskList))}ngOnChanges(){this.getDataSource()}}return ae.\u0275fac=function(Se){return new(Se||ae)},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[A.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(Se,Fe){1&Se&&(A.YNc(0,z,1,0,"mat-spinner",0),A.YNc(1,Ee,3,1,"div",1)),2&Se&&(A.Q6J("ngIf",Fe.loading),A.xp6(1),A.Q6J("ngIf",!Fe.loading))},dependencies:[w.mk,w.sg,w.O5,E.BZ,E.fO,E.as,E.w1,E.Dz,E.nj,E.ge,E.ev,E.XQ,E.Gk,S.Ou,U.d,_.pp,_.ib,_.yz,_.yK,_.u4,_.HS,w.uU,V.X$],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),ae})();function ct(ae,re){if(1&ae&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",5),A._uU(3),A.qZA()),2&ae){const Se=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),A.xp6(3),A.Oqu(Se.errorPropagation.length)}}function Xe(ae,re){1&ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function _t(ae,re){if(1&ae&&(A.YNc(0,Xe,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&ae){const Se=A.oxw();A.Q6J("ngIf",!Se.loading&&0===Se.errorPropagation.length),A.xp6(1),A.Q6J("loading",Se.loading)("propagation",Se.errorPropagation)}}function Je(ae,re){if(1&ae&&(A._uU(0),A.ALo(1,"translate"),A.TgZ(2,"span",9),A._uU(3),A.qZA()),2&ae){const Se=A.oxw();A.hij(" ",A.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),A.xp6(3),A.Oqu(Se.okPropagation.length)}}function gt(ae,re){1&ae&&(A.TgZ(0,"perun-web-apps-alert",8),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&ae&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function Y(ae,re){if(1&ae&&(A.YNc(0,gt,3,3,"perun-web-apps-alert",6),A._UZ(1,"app-state-tab",7)),2&ae){const Se=A.oxw();A.Q6J("ngIf",!Se.loading&&0===Se.okPropagation.length),A.xp6(1),A.Q6J("loading",Se.loading)("propagation",Se.okPropagation)}}let Ce=(()=>{class ae{constructor(Se,Fe){this.taskService=Se,this.entityStorageService=Fe,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(Se=>{this.resourceStates=Se,this.okPropagation=[],this.errorPropagation=[];for(const Fe of Se){let be=!0;for(const Ue of Fe.taskList)if("ERROR"===Ue.status||"GENERROR"===Ue.status||"SENDERROR"===Ue.status){be=!1;break}be?this.okPropagation.push(Fe):this.errorPropagation.push(Fe)}this.loading=!1},()=>this.loading=!1)}}return ae.id="VoResourcesStatesComponent",ae.\u0275fac=function(Se){return new(Se||ae)(A.Y36(c.Ob),A.Y36(e.fb))},ae.\u0275cmp=A.Xpm({type:ae,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(Se,Fe){2&Se&&A.ekj("router-component",Fe.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(Se,Fe){1&Se&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Fe.refreshTable()}),A.qZA(),A.TgZ(4,"mat-tab-group",2),A.NdJ("selectedIndexChange",function(Ue){return Fe.selectedIndex=Ue}),A.TgZ(5,"mat-tab"),A.YNc(6,ct,4,4,"ng-template",3),A.YNc(7,_t,2,3,"ng-template",4),A.qZA(),A.TgZ(8,"mat-tab"),A.YNc(9,Je,4,4,"ng-template",3),A.YNc(10,Y,2,3,"ng-template",4),A.qZA()()),2&Se&&(A.xp6(1),A.Oqu(A.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),A.xp6(3),A.Q6J("selectedIndex",Fe.selectedIndex))},dependencies:[w.O5,g.SP,g.uD,g.uX,g.Vc,C.w,T.t,Oe,V.X$]}),ae})()},10369:(Ye,pe,h)=>{"use strict";h.d(pe,{w:()=>Me});var e=h(1186),c=h(32080),A=h(95502),w=h(51076),g=h(83491),C=h(32105),T=h(9244),E=h(94650),S=h(65412),U=h(89383),_=h(94364),V=h(36895),z=h(97392),Q=h(4859),te=h(51572),oe=h(10266),ee=h(44850),le=h(98380),de=h(96214),Te=h(157);function v(we,Ge){1&we&&E._UZ(0,"mat-spinner",13)}function L(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",21),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw(2);return E.KtG(he.settings())}),E.TgZ(1,"i",10),E._uU(2,"edit"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&we&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function B(we,Ge){if(1&we&&(E.TgZ(0,"div",14)(1,"div",15)(2,"div",16),E._uU(3),E.ALo(4,"translate"),E.qZA(),E.TgZ(5,"div")(6,"span",16),E._uU(7),E.ALo(8,"translate"),E.qZA(),E._uU(9,": "),E.TgZ(10,"mat-icon",17),E._uU(11,"arrow_right_alt"),E.qZA(),E._uU(12),E.ALo(13,"translate"),E.ALo(14,"translate"),E.TgZ(15,"mat-icon",18),E._uU(16,"restore"),E.qZA(),E._uU(17),E.ALo(18,"translate"),E.ALo(19,"translate"),E.qZA()(),E.TgZ(20,"div",19),E.YNc(21,L,5,3,"button",20),E.qZA()()),2&we){const ce=E.oxw();E.xp6(3),E.AsE(" ",E.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",ce.applicationForm.moduleClassName," "),E.xp6(4),E.Oqu(E.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),E.xp6(5),E.hij(" ",ce.applicationForm.automaticApproval?E.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),E.xp6(5),E.hij(" ",ce.applicationForm.automaticApprovalExtension?E.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):E.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),E.xp6(4),E.Q6J("ngIf",ce.editAuth)}}function W(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw();return E.KtG(he.add())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&we&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function q(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw();return E.KtG(he.save())}),E.TgZ(1,"i",10),E._uU(2,"save"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}if(2&we){const ce=E.oxw();E.Q6J("disabled",!ce.itemsChanged),E.xp6(3),E.hij(" ",E.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ue(we,Ge){if(1&we){const ce=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){E.CHM(ce);const he=E.oxw();return E.KtG(he.copy())}),E.TgZ(1,"i",10),E._uU(2,"file_copy"),E.qZA(),E._uU(3),E.ALo(4,"translate"),E.qZA()}2&we&&(E.xp6(3),E.hij(" ",E.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function ye(we,Ge){1&we&&(E.TgZ(0,"perun-web-apps-alert",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&we&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let Me=(()=>{class we{constructor(ce,Ze,he,xe,j,R,G,se){this.registrarManager=ce,this.dialog=Ze,this.notificator=he,this.translate=xe,this.router=j,this.authResolver=R,this.voService=G,this.entityStorageService=se,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(ce=>{this.applicationForm=ce,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ze=>{this.applicationFormItems=Ze,this.loading=!1})})}add(){let ce=(0,T.kZ)();ce.width="500px",ce.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,ce).afterClosed().subscribe(he=>{he&&(this.applicationFormItems=Object.assign([],he[0]),ce=(0,T.kZ)(),ce.width="600px",ce.height="600px",ce.data={voId:this.vo.id,applicationFormItem:he[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,ce),this.itemsChanged=!0)})}copy(){const ce=(0,T.kZ)();ce.width="500px",ce.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(A.W,ce).afterClosed().subscribe(he=>{he&&this.updateFormItems()})}settings(){const ce=(0,T.kZ)();ce.width="400px",ce.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,ce).afterClosed().subscribe(he=>{he&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(xe=>{this.notificator.showSuccess(xe)}),this.applicationForm=he)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(ce=>{this.applicationFormItems=ce,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let ce=0;for(const Ze of this.applicationFormItems)Ze.ordnum=ce,Ze.forDelete||ce++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Ze=>{this.notificator.showSuccess(Ze)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(ce=>ce.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return we.id="VoSettingsApplicationFormComponent",we.\u0275fac=function(ce){return new(ce||we)(E.Y36(C.tk),E.Y36(S.uw),E.Y36(c.V6),E.Y36(U.sK),E.Y36(_.F0),E.Y36(c.x4),E.Y36(C.YF),E.Y36(c.fb))},we.\u0275cmp=E.Xpm({type:we,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(ce,Ze){2&ce&&E.ekj("router-component",Ze.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(ce,Ze){1&ce&&(E.TgZ(0,"h1",0),E._uU(1),E.ALo(2,"translate"),E.qZA(),E.YNc(3,v,1,0,"mat-spinner",1),E.TgZ(4,"div"),E.YNc(5,B,22,18,"div",2),E._UZ(6,"mat-divider",3),E.TgZ(7,"div",4)(8,"perun-web-apps-refresh-button",5),E.NdJ("refresh",function(){return Ze.updateFormItems()}),E.qZA(),E.YNc(9,W,3,3,"button",6),E.YNc(10,q,5,4,"button",7),E.YNc(11,ue,5,3,"button",8),E.TgZ(12,"button",9),E.NdJ("click",function(){return Ze.preview()}),E.TgZ(13,"i",10),E._uU(14,"search"),E.qZA(),E._uU(15),E.ALo(16,"translate"),E.qZA()(),E.YNc(17,ye,3,3,"perun-web-apps-alert",11),E.TgZ(18,"app-application-form-list",12),E.NdJ("applicationFormItemsChange",function(){return Ze.changeItems()}),E.qZA()()),2&ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),E.xp6(2),E.Q6J("ngIf",Ze.loading),E.xp6(2),E.Q6J("ngIf",!Ze.loading),E.xp6(4),E.Q6J("ngIf",Ze.editAuth),E.xp6(1),E.Q6J("ngIf",Ze.editAuth),E.xp6(1),E.Q6J("ngIf",Ze.editAuth),E.xp6(4),E.hij(" ",E.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),E.xp6(2),E.Q6J("ngIf",Ze.editAuth),E.xp6(1),E.Q6J("applicationForm",Ze.applicationForm)("applicationFormItems",Ze.applicationFormItems)("loading",Ze.loading)("displayedColumns",Ze.displayedColumns)("refreshApplicationForm",Ze.refreshApplicationForm)("theme","vo-theme"))},dependencies:[V.O5,z.Hw,Q.lW,te.Ou,oe.gM,ee.d,le.w,de.t,Te.b,U.X$]}),we})()},3246:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>rr});var e=h(32105),c=h(95017),A=h(10036),w=h(9244),g=h(65412),C=h(32080),T=h(24006),E=h(36895),S=h(45323),U=h(28499),_=h(94650),V=h(89383),z=h(3238),Q=h(59549),te=h(284),oe=h(97392),ee=h(4859),le=h(56709),de=h(84385),Te=h(51572),v=h(10266),L=h(71948),B=h(86257),W=h(98380),q=h(74250),ue=h(99602);let ye=(()=>{class wt{constructor(){this.expiration="never",this.datePicker=new _.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const nt=new Date;this.minDate=new Date(nt.getFullYear(),nt.getMonth(),nt.getDate()),this.expirationControl.setValue((0,E.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,E.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,E.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return wt.\u0275fac=function(nt){return new(nt||wt)},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(nt,Bt){if(1&nt){const Gt=_.EpF();_.TgZ(0,"mat-radio-group",0),_.NdJ("ngModelChange",function(Ft){return Bt.expiration=Ft})("change",function(){return Bt.emitDate()}),_.TgZ(1,"mat-radio-button",1),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-radio-button",2)(5,"mat-form-field",3),_.NdJ("click",function(){_.CHM(Gt);const Ft=_.MAs(12);return _.KtG(Ft.open())}),_.TgZ(6,"mat-label"),_._uU(7),_.ALo(8,"translate"),_.qZA(),_.TgZ(9,"input",4),_.NdJ("dateChange",function(){return Bt.setExpiration()}),_.qZA(),_._UZ(10,"mat-datepicker-toggle",5)(11,"mat-datepicker",6,7),_.qZA()()()}if(2&nt){const Gt=_.MAs(12);_.Q6J("ngModel",Bt.expiration),_.xp6(2),_.hij(" ",_.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),_.xp6(2),_.s9C("value",Bt.expirationControl.value),_.xp6(3),_.Oqu(_.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),_.xp6(2),_.Q6J("min",Bt.minDate)("formControl",Bt.expirationControl)("matDatepicker",Gt),_.xp6(1),_.Q6J("for",Gt)("disabled",!1),_.xp6(1),_.Q6J("disabled",!1)}},dependencies:[T.Fj,T.JJ,T.On,Q.KE,Q.hX,Q.R9,T.oH,te.Nt,ue.Mq,ue.hl,ue.nW,L.VQ,L.U0,V.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),wt})();var Me=h(13469),we=h(31359);const Ge=["stepper"];function ce(wt,an){1&wt&&(_.TgZ(0,"h1",4),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function Ze(wt,an){1&wt&&_._UZ(0,"mat-spinner",5)}function he(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function xe(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function j(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function R(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function G(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function se(wt,an){if(1&wt&&(_.TgZ(0,"mat-option",35),_._uU(1),_.qZA()),2&wt){const nt=an.$implicit;_.Q6J("value",nt),_.xp6(1),_.hij(" ",nt," ")}}function $(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function Ee(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Oe(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function ct(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Xe(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div")(1,"perun-web-apps-user-search-select",36),_.NdJ("userSelected",function(Gt){_.CHM(nt);const et=_.oxw(2);return _.KtG(et.selectedSponsor=Gt)}),_.qZA()()}if(2&wt){const nt=_.oxw(2);_.xp6(1),_.Q6J("disableAutoSelect",!0)("users",nt.voSponsors)}}function _t(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",6)(1,"mat-stepper",7,8)(3,"mat-step",9),_.YNc(4,he,2,3,"ng-template",10),_.YNc(5,xe,3,3,"perun-web-apps-alert",11),_.TgZ(6,"form",12)(7,"h5",13),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-form-field",14),_._UZ(11,"input",15),_.ALo(12,"translate"),_.YNc(13,j,3,3,"mat-error",16),_.qZA(),_.TgZ(14,"mat-form-field"),_._UZ(15,"input",17),_.ALo(16,"translate"),_.YNc(17,R,3,3,"mat-error",16),_.qZA(),_.TgZ(18,"mat-form-field"),_._UZ(19,"input",18),_.ALo(20,"translate"),_.qZA(),_.TgZ(21,"mat-form-field"),_._UZ(22,"input",19),_.ALo(23,"translate"),_.qZA()()(),_.TgZ(24,"mat-step",9),_.YNc(25,G,2,3,"ng-template",10),_.TgZ(26,"h5",13),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.TgZ(29,"form",20)(30,"mat-form-field")(31,"mat-select",21),_.NdJ("valueChange",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(et.onNamespaceChanged(Gt))}),_.ALo(32,"translate"),_.YNc(33,se,2,2,"mat-option",22),_.qZA(),_.YNc(34,$,3,3,"mat-error",16),_.qZA(),_.TgZ(35,"mat-form-field",23),_.ALo(36,"translate"),_._UZ(37,"input",24),_.ALo(38,"translate"),_.YNc(39,Ee,3,3,"mat-error",16),_.qZA(),_.TgZ(40,"mat-form-field"),_._UZ(41,"input",25),_.ALo(42,"translate"),_.YNc(43,Oe,3,3,"mat-error",16),_.qZA(),_.TgZ(44,"span",23),_.ALo(45,"translate"),_.TgZ(46,"mat-checkbox",26),_.NdJ("change",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.passwordResetChange())}),_._uU(47),_.ALo(48,"translate"),_.qZA()(),_._UZ(49,"perun-web-apps-password-form",27),_.qZA()(),_.TgZ(50,"mat-step"),_.YNc(51,ct,2,3,"ng-template",10),_.TgZ(52,"div",28)(53,"h5",13),_._uU(54),_.ALo(55,"translate"),_.qZA(),_.TgZ(56,"div",14)(57,"h6"),_._uU(58),_.ALo(59,"translate"),_.qZA(),_.TgZ(60,"mat-radio-group",29),_.NdJ("ngModelChange",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(et.sponsorType=Gt)}),_.TgZ(61,"span",30),_.ALo(62,"translate"),_.TgZ(63,"mat-radio-button",31),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.selectedSponsor=null)}),_._uU(64),_.ALo(65,"translate"),_.qZA()(),_.TgZ(66,"span",30),_.ALo(67,"translate"),_.TgZ(68,"mat-radio-button",32),_._uU(69),_.ALo(70,"translate"),_.qZA()()(),_.YNc(71,Xe,2,2,"div",16),_.qZA(),_.TgZ(72,"h6",14),_._uU(73),_.ALo(74,"translate"),_.qZA(),_.TgZ(75,"perun-web-apps-expiration-select",33),_.NdJ("datePicker",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(et.setExpiration(Gt))}),_.qZA()()()()()}if(2&wt){const nt=_.oxw();_.xp6(1),_.Q6J("linear",!0),_.xp6(2),_.Q6J("stepControl",nt.userControl),_.xp6(2),_.Q6J("ngIf",nt.functionalityNotSupported),_.xp6(1),_.Q6J("formGroup",nt.userControl),_.xp6(2),_.hij(" ",_.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),_.xp6(3),_.s9C("placeholder",_.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),_.xp6(2),_.Q6J("ngIf",nt.userControl.hasError("required","firstName")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),_.xp6(2),_.Q6J("ngIf",nt.userControl.hasError("required","lastName")),_.xp6(2),_.s9C("placeholder",_.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),_.xp6(3),_.s9C("placeholder",_.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),_.xp6(2),_.Q6J("stepControl",nt.namespaceControl),_.xp6(3),_.Oqu(_.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),_.xp6(2),_.Q6J("formGroup",nt.namespaceControl),_.xp6(2),_.s9C("placeholder",_.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),_.xp6(2),_.Q6J("ngForOf",nt.namespaceOptions),_.xp6(1),_.Q6J("ngIf",nt.namespaceControl.hasError("required","namespace")),_.xp6(1),_.s9C("matTooltip",_.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),_.Q6J("matTooltipDisabled",nt.namespaceControl.get("login").enabled),_.xp6(2),_.s9C("placeholder",_.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),_.xp6(2),_.Q6J("ngIf",nt.namespaceControl.hasError("required","login")),_.xp6(2),_.s9C("placeholder",_.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),_.xp6(2),_.Q6J("ngIf",nt.namespaceControl.hasError("required","email")||nt.namespaceControl.hasError("pattern","email")),_.xp6(1),_.s9C("matTooltip",_.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),_.Q6J("matTooltipDisabled",nt.namespaceControl.get("passwordReset").enabled),_.xp6(3),_.hij("",_.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),_.xp6(2),_.Q6J("formGroup",nt.namespaceControl)("namespace",nt.selectedNamespace)("tooltipPwdViaEmail",nt.namespaceControl.get("passwordReset").value),_.xp6(5),_.Oqu(_.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),_.xp6(4),_.Oqu(_.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),_.xp6(2),_.Q6J("ngModel",nt.sponsorType),_.xp6(1),_.s9C("matTooltip",_.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),_.Q6J("matTooltipDisabled",nt.isSponsor),_.xp6(2),_.Q6J("disabled",!nt.isSponsor),_.xp6(1),_.hij(" ",_.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),_.Q6J("matTooltipDisabled",nt.isPerunAdmin),_.xp6(2),_.Q6J("disabled",!nt.isPerunAdmin),_.xp6(1),_.hij(" ",_.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),_.xp6(2),_.Q6J("ngIf","other"===nt.sponsorType),_.xp6(2),_.Oqu(_.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function Je(wt,an){if(1&wt&&(_.TgZ(0,"div",6)(1,"div",37)(2,"mat-icon",38),_._uU(3,"done"),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.TgZ(6,"i"),_._uU(7),_.ALo(8,"userFullName"),_.qZA(),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.TgZ(11,"div"),_._uU(12),_.ALo(13,"translate"),_.qZA(),_.TgZ(14,"div"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.TgZ(17,"perun-web-apps-alert",39),_._uU(18),_.ALo(19,"translate"),_.qZA()()),2&wt){const nt=_.oxw();_.xp6(4),_.hij(" ",_.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),_.xp6(3),_.Oqu(_.lcZ(8,10,nt.createdMember.user)),_.xp6(2),_.hij(" ",_.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),_.xp6(3),_.AsE("",_.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",nt.loginThatWasSet,""),_.xp6(3),_.AsE(" ",_.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",nt.namespaceControl.get("passwordCtrl").value," "),_.xp6(3),_.Oqu(_.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function gt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",40)(1,"button",41),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA()()}2&wt&&(_.xp6(2),_.hij(" ",_.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function Y(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",41),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperPrevious())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function Ce(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",46),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperNext())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.ekj("ml-2",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)("ml-auto",!(void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)),_.Q6J("disabled",nt.getStepperNextConditions()),_.xp6(1),_.hij(" ",_.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function ae(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",47),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.onConfirm())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.Q6J("disabled",null===nt.sponsorType||"other"===nt.sponsorType&&null===nt.selectedSponsor),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function re(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",40)(1,"button",42),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,Y,3,3,"button",43),_.YNc(5,Ce,3,8,"button",44),_.YNc(6,ae,3,4,"button",45),_.qZA()}if(2&wt){const nt=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),_.xp6(2),_.Q6J("ngIf",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex!==nt.stepper._steps.length-1),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex===nt.stepper._steps.length-1)}}let Se=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke,Et,Wt,hn,wn,zn){this.dialogRef=nt,this.data=Bt,this.membersService=Gt,this.apiRequestConfiguration=et,this.usersService=Ft,this.store=Ke,this.translator=Et,this.authzService=Wt,this.guiAuthResolver=hn,this.formBuilder=wn,this.cd=zn,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(nt,Bt,Gt){for(const et of Bt)switch(et){case"login":nt.login=Gt;break;case"password":nt.password=Gt}}onConfirm(){this.loading=!0;const nt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Bt=this.namespaceControl.get("namespace").value,Gt=this.parsedRules.get(Bt);"No namespace"!==Bt&&(nt.userData.namespace=Bt),"disabled"!==Gt.login&&(nt.userData.login=this.namespaceControl.get("login").value),"disabled"!==Gt.password&&(nt.sendActivationLink=this.namespaceControl.get("passwordReset").value,nt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(nt.validityTo=this.expiration),this.membersService.createSponsoredMember(nt).subscribe(et=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=et,!!et&&!!et.userAttributes&&et.userAttributes.filter(Ft=>"login-namespace"===Ft.baseFriendlyName).filter(Ft=>Ft.friendlyNameParameter===Bt).filter(Ft=>null!==Ft.value).forEach(Ft=>{this.loginThatWasSet=Ft.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(nt){this.selectedNamespace=nt;const Bt=this.parsedRules.get(nt),Gt=this.namespaceControl.get("login"),et=this.namespaceControl.get("passwordCtrl"),Ft=this.namespaceControl.get("passwordAgainCtrl"),Ke=this.namespaceControl.get("passwordReset");"disabled"!==Bt.login?(0,w.mH)(Gt,"optional"===Bt.login?[]:[T.kI.required]):(Gt.disable(),Gt.setValue("")),"disabled"!==Bt.password?((0,w.mH)(et,"optional"===Bt.password?[]:[T.kI.required],[(0,U.yT)(nt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(Ft,[]),(0,w.mH)(Ke,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(et.disable(),et.setValue(""),Ft.disable(),Ft.setValue(""),Ke.disable(),Ke.setValue(!1))}passwordResetChange(){const nt=this.namespaceControl.get("passwordCtrl"),Bt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(nt.disable(),nt.setValue(""),Bt.disable(),Bt.setValue("")):(nt.enable(),Bt.enable())}setExpiration(nt){this.expiration="never"===nt?"never":(0,E.p6)(nt,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(S.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",T.kI.required],lastName:["",T.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",T.kI.required],login:["",[T.kI.required]],passwordCtrl:["",T.kI.required,[(0,U.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[T.kI.required,T.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(nt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(nt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const nt of this.namespaceRules){this.namespaceOptions.push(nt.namespaceName);const Bt={login:"disabled",password:"disabled"};wt.parseAttributes(Bt,nt.requiredAttributes,"required"),wt.parseAttributes(Bt,nt.optionalAttributes,"optional"),this.parsedRules.set(nt.namespaceName,Bt)}}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(e.uq),_.Y36(C.F5),_.Y36(e.Fv),_.Y36(C.d6),_.Y36(V.sK),_.Y36(e.Ct),_.Y36(C.x4),_.Y36(T.QS),_.Y36(_.sBO))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(nt,Bt){if(1&nt&&_.Gf(Ge,5),2&nt){let Gt;_.iGM(Gt=_.CRH())&&(Bt.stepper=Gt.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login","required","",3,"placeholder"],["matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["alert_type","error"],[3,"value"],[3,"disableAutoSelect","users","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(nt,Bt){1&nt&&(_.TgZ(0,"div"),_.YNc(1,ce,3,3,"h1",0),_.YNc(2,Ze,1,0,"mat-spinner",1),_.YNc(3,_t,76,80,"div",2),_.YNc(4,Je,20,20,"div",2),_.YNc(5,gt,4,3,"div",3),_.YNc(6,re,7,6,"div",3),_.qZA()),2&nt&&(_.Tol(Bt.theme),_.xp6(1),_.Q6J("ngIf",!Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&!Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",Bt.successfullyCreated),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&!Bt.successfullyCreated))},dependencies:[E.sg,E.O5,z.ey,Q.TO,Q.KE,te.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,oe.Hw,ee.lW,le.oG,g.uh,g.xY,g.H8,de.gD,Te.Ou,v.gM,L.VQ,L.U0,B.C0,B.VY,B.Vq,W.w,q.S,ye,Me.G,V.X$,we.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),wt})();var Fe=h(64080),be=h(28255),Ue=h(24179),P=h(7434),H=h(61150);const i=["stepper"];function o(wt,an){1&wt&&_._UZ(0,"mat-spinner",4)}function f(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",29),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function a(wt,an){if(1&wt&&(_.TgZ(0,"mat-option",30),_._uU(1),_.qZA()),2&wt){const nt=an.$implicit;_.Q6J("value",nt),_.xp6(1),_.hij(" ",nt," ")}}function n(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(wt,an){1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function r(wt,an){if(1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function s(wt,an){if(1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function d(wt,an){if(1&wt&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",nt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function p(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function M(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",31),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function _e(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"mat-radio-group",32),_.NdJ("ngModelChange",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.passwordReset=Gt)}),_.TgZ(1,"mat-radio-button",33),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"mat-radio-button",34),_._uU(5),_.ALo(6,"translate"),_.qZA()()}if(2&wt){const nt=_.oxw(3);_.Q6J("ngModel",nt.passwordReset),_.xp6(2),_.hij(" ",_.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),_.xp6(3),_.hij(" ",_.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function bt(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Vt(wt,an){1&wt&&(_._uU(0),_.ALo(1,"translate")),2&wt&&_.Oqu(_.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function on(wt,an){1&wt&&(_.TgZ(0,"div")(1,"perun-web-apps-alert",35),_._uU(2),_.ALo(3,"translate"),_.qZA()()),2&wt&&(_.xp6(2),_.Oqu(_.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Mt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div")(1,"h5",36),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-create-group-form",37),_.NdJ("asSubgroupChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.asSubGroup=Gt)})("nameChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.name=Gt)})("descriptionChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.description=Gt)})("parentGroupChanged",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.parentGroup=Gt)}),_.qZA()()}if(2&wt){const nt=_.oxw(3);_.xp6(2),_.hij(" ",_.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),_.xp6(2),_.Q6J("voGroups",nt.allVoGroups)}}const ft=function(){return["select","id","name","description"]};function je(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div")(1,"h5",36),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-immediate-filter",38),_.NdJ("filter",function(Gt){_.CHM(nt);const et=_.oxw(3);return _.KtG(et.applyFilter(Gt))}),_.qZA(),_._UZ(5,"perun-web-apps-groups-list",39),_.qZA()}if(2&wt){const nt=_.oxw(3);_.xp6(2),_.hij(" ",_.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),_.xp6(2),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),_.xp6(1),_.Q6J("groups",nt.assignableGroups)("selection",nt.selection)("disableRouting",!0)("displayedColumns",_.DdM(10,ft))("filter",nt.filterValue)("tableId",nt.tableId)}}function Pe(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"mat-stepper",8,9)(2,"mat-step",10),_.YNc(3,f,2,3,"ng-template",11),_.YNc(4,l,3,3,"perun-web-apps-alert",12),_.TgZ(5,"h5",13),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"form",14)(9,"mat-form-field")(10,"mat-select",15),_.ALo(11,"translate"),_.YNc(12,a,2,2,"mat-option",16),_.qZA(),_.YNc(13,n,3,3,"mat-error",7),_.qZA(),_.TgZ(14,"div"),_._uU(15),_.ALo(16,"translate"),_.qZA(),_.TgZ(17,"div",17),_._uU(18),_.qZA(),_.TgZ(19,"mat-form-field",18)(20,"mat-label"),_._uU(21),_.ALo(22,"translate"),_.qZA(),_.TgZ(23,"textarea",19),_._uU(24," "),_.qZA(),_.YNc(25,t,3,3,"mat-error",7),_.YNc(26,r,3,4,"mat-error",7),_.YNc(27,s,3,4,"mat-error",7),_.YNc(28,d,3,4,"mat-error",7),_.qZA()()(),_.TgZ(29,"mat-step"),_.YNc(30,p,2,3,"ng-template",11),_.TgZ(31,"div",13)(32,"h5",20),_._uU(33),_.ALo(34,"translate"),_.qZA(),_.YNc(35,M,3,3,"perun-web-apps-alert",21),_.YNc(36,_e,7,7,"mat-radio-group",22),_.qZA()(),_.TgZ(37,"mat-step"),_.YNc(38,bt,2,3,"ng-template",11),_.TgZ(39,"div",13)(40,"h5",20),_._uU(41),_.ALo(42,"translate"),_.qZA(),_.TgZ(43,"perun-web-apps-expiration-select",23),_.NdJ("datePicker",function(Gt){_.CHM(nt);const et=_.oxw(2);return _.KtG(et.setExpiration(Gt))}),_.qZA()()(),_.TgZ(44,"mat-step"),_.YNc(45,Vt,2,3,"ng-template",11),_.TgZ(46,"div",13)(47,"h5",20),_._uU(48),_.ALo(49,"translate"),_.qZA(),_.TgZ(50,"mat-radio-group",24),_.NdJ("change",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.groupAssigmentChanged())})("ngModelChange",function(Gt){_.CHM(nt);const et=_.oxw(2);return _.KtG(et.groupAssignment=Gt)}),_.TgZ(51,"mat-radio-button",25),_._uU(52),_.ALo(53,"translate"),_.qZA(),_.TgZ(54,"span",26),_.ALo(55,"translate"),_.TgZ(56,"mat-radio-button",27),_._uU(57),_.ALo(58,"translate"),_.qZA()(),_.TgZ(59,"span",26),_.ALo(60,"translate"),_.TgZ(61,"mat-radio-button",28),_._uU(62),_.ALo(63,"translate"),_.qZA()()()(),_.YNc(64,on,4,3,"div",7),_.YNc(65,Mt,5,4,"div",7),_.YNc(66,je,6,11,"div",7),_.qZA()()}if(2&wt){const nt=_.oxw(2);_.Q6J("linear",!0),_.xp6(2),_.Q6J("stepControl",nt.usersInfoFormGroup),_.xp6(2),_.Q6J("ngIf",nt.functionalityNotSupported),_.xp6(2),_.Oqu(_.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),_.xp6(2),_.Q6J("formGroup",nt.usersInfoFormGroup),_.xp6(2),_.s9C("placeholder",_.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),_.xp6(2),_.Q6J("ngForOf",nt.namespaceOptions),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("required","namespace")),_.xp6(2),_.Oqu(_.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),_.xp6(3),_.hij(" ",nt.getSelectedNamespaceRules().csvGenHeaderDescription," "),_.xp6(3),_.Oqu(_.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),_.xp6(2),_.s9C("placeholder",nt.getSelectedNamespaceRules().csvGenPlaceholder),_.xp6(2),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("required","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),_.xp6(1),_.Q6J("ngIf",nt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),_.xp6(5),_.hij(" ",_.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),_.xp6(2),_.Q6J("ngIf","No namespace"===nt.getSelectedNamespaceRules().namespaceName),_.xp6(1),_.Q6J("ngIf","No namespace"!==nt.getSelectedNamespaceRules().namespaceName),_.xp6(5),_.Oqu(_.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),_.xp6(2),_.Q6J("expiration",nt.expiration),_.xp6(5),_.Oqu(_.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),_.xp6(2),_.Q6J("ngModel",nt.groupAssignment),_.xp6(2),_.hij(" ",_.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),_.Q6J("matTooltipDisabled",!nt.manualMemberAddingBlocked&&nt.createGroupAuth),_.xp6(2),_.Q6J("disabled",nt.manualMemberAddingBlocked||!nt.createGroupAuth),_.xp6(1),_.hij(" ",_.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),_.Q6J("matTooltipDisabled",!nt.manualMemberAddingBlocked&&0!==nt.assignableGroups.length),_.xp6(2),_.Q6J("disabled",nt.manualMemberAddingBlocked||0===nt.assignableGroups.length),_.xp6(1),_.hij(" ",_.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),_.xp6(2),_.Q6J("ngIf","none"===nt.groupAssignment),_.xp6(1),_.Q6J("ngIf","new"===nt.groupAssignment),_.xp6(1),_.Q6J("ngIf","existing"===nt.groupAssignment)}}function Qe(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",41),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.Q6J("alert_type","success"),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function qe(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",41),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.Q6J("alert_type","warn"),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function Be(wt,an){if(1&wt&&(_.TgZ(0,"div"),_.YNc(1,Qe,3,4,"perun-web-apps-alert",40),_.YNc(2,qe,3,4,"perun-web-apps-alert",40),_.qZA()),2&wt){const nt=_.oxw(2);_.xp6(1),_.Q6J("ngIf",!1===nt.finishedWithErrors),_.xp6(1),_.Q6J("ngIf",nt.finishedWithErrors)}}function me(wt,an){if(1&wt&&(_.TgZ(0,"div",5),_.YNc(1,Pe,67,59,"mat-stepper",6),_.YNc(2,Be,3,2,"div",7),_.qZA()),2&wt){const nt=_.oxw();_.xp6(1),_.Q6J("ngIf","user-input"===nt.state),_.xp6(1),_.Q6J("ngIf","results"===nt.state)}}function ve(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",47),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperPrevious())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function ze(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",48),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.stepperNext())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.ekj("ml-2",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)("ml-auto",!(void 0!==nt.stepper&&0!==nt.stepper.selectedIndex)),_.Q6J("disabled",nt.getStepperNextConditions()),_.xp6(1),_.hij(" ",_.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function tt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",48),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.onSubmit())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}if(2&wt){const nt=_.oxw(2);_.Q6J("disabled",null===nt.groupAssignment||"existing"===nt.groupAssignment&&0===nt.selection.selected.length||"new"===nt.groupAssignment&&(0===nt.name.length||0===nt.description.length)||!0===nt.asSubGroup&&null===nt.parentGroup),_.xp6(1),_.hij(" ",_.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function at(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",42)(1,"button",43),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCancel())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,ve,3,3,"button",44),_.YNc(5,ze,3,8,"button",45),_.YNc(6,tt,3,4,"button",46),_.qZA()}if(2&wt){const nt=_.oxw();_.xp6(2),_.hij(" ",_.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),_.xp6(2),_.Q6J("ngIf",void 0!==nt.stepper&&0!==nt.stepper.selectedIndex),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex!==nt.stepper._steps.length-1),_.xp6(1),_.Q6J("ngIf",void 0!==nt.stepper&&nt.stepper.selectedIndex===nt.stepper._steps.length-1)}}function Re(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"div",42)(1,"button",43),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onClose())}),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"button",49),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-menu",null,50)(9,"button",51),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.generatePdf())}),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.TgZ(12,"button",51),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.downloadCsv())}),_._uU(13),_.ALo(14,"translate"),_.qZA()()()}if(2&wt){const nt=_.MAs(8);_.xp6(2),_.hij(" ",_.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),_.xp6(2),_.Q6J("matMenuTriggerFor",nt),_.xp6(1),_.hij(" ",_.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),_.xp6(5),_.hij(" ",_.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),_.xp6(3),_.hij(" ",_.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let st=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=nt,this.data=Bt,this.store=Gt,this.membersService=et,this.notificator=Ft,this.translate=Ke,this.guiAuthResolver=Et,this.groupsService=Wt,this.attributesService=hn,this.formBuilder=wn,this.sponsoredMembersPDFService=zn,this.cd=$n,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new c.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=A.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[Fe.r.GROUP_SYNC_ENABLED,Fe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(nt){return nt.forEach(Bt=>{if("OK"!==Bt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",T.kI.required],sponsoredMembers:["",[T.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(nt=>{this.manualMemberAddingBlocked=(0,w.jh)(nt,Fe.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(Bt=>{this.allVoGroups=Bt.filter(Gt=>"members"!==Gt.name),this.assignableGroups=this.filterAssignableGroups(Bt),this.membersService.getAllNamespacesRules().subscribe(Gt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(Gt),this.namespaceRules.forEach(et=>this.namespaceOptions.push(et.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(nt){this.expiration="never"===nt?"never":(0,E.p6)(nt,"yyyy-MM-dd","en-GB")}applyFilter(nt){this.filterValue=nt}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(nt=>{this.groupIds.push(nt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(nt=>{this.groupIds.push(nt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(nt=>nt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(nt=>nt.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,w.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}filterAssignableGroups(nt){const Bt=[];for(const Gt of nt)!(0,w.bx)(Gt)&&!(0,w.jh)(Gt.attributes,Fe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Gt])&&Bt.push(Gt);return Bt}createOutputObjects(nt){let Bt="",Gt="",et="",Ft="";const Ke=[];return nt.forEach(Et=>{Bt=Et.name.replace(";"," ").split(";")[0],Gt=Et.status,et=Et.login?Et.login:et,Ft=Et.password?Et.password:Ft;const Wt={name:Bt,status:Gt,login:et,password:Ft};Et.note&&(Wt.note=Et.note),Ke.push(Wt)}),Ke}onGenerate(){this.loading=!0;const nt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Bt=this.getSelectedNamespaceRules().csvGenHeader,Gt=[];for(const Ft of nt){const Ke=this.parseMemberLine(Ft);if("format"===Ke||"email"===Ke)return void(this.loading=!1);""!==Ke&&Gt.push(Ke)}const et={data:Gt,header:Bt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(et.groups=this.groupIds),"never"!==this.expiration&&(et.validityTo=(0,E.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(et.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(et).subscribe(Ft=>{this.state="results",this.finishedWithErrors=wt.didSomeGenerationFailed(Ft),this.loading=!1,this.resultData=Ft},()=>this.loading=!1)}parseMemberLine(nt){const Bt=nt.trim();if(""===Bt)return"";const Gt=Bt.split(";"),et=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Gt.length!==et.length)return"format";if("mail"===et[2].slice(et[2].length-4).toLowerCase()&&!Gt[2].trim().match(w.B2))return"email";if("login"===et[3]&&""===Gt[3].trim())return"login";let Ft="";for(const Ke of Gt)Ft+=Ke.trim()+";";return Ft.slice(0,-1)}userInputValidator(){return nt=>{const Bt=nt.value.split("\n");for(const Gt of Bt){const et=this.parseMemberLine(Gt);if("format"===et)return{invalidFormat:{value:Gt}};if("email"===et)return{invalidEmail:{value:Gt}};if("login"===et)return{invalidLogin:{value:Gt}}}return null}}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(C.d6),_.Y36(e.uq),_.Y36(C.V6),_.Y36(V.sK),_.Y36(C.x4),_.Y36(e.ff),_.Y36(e.H8),_.Y36(T.QS),_.Y36(C.HV),_.Y36(_.sBO))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(nt,Bt){if(1&nt&&_.Gf(i,5),2&nt){let Gt;_.iGM(Gt=_.CRH())&&(Bt.stepper=Gt.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(nt,Bt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,o,1,0,"mat-spinner",1),_.YNc(5,me,3,2,"div",2),_.YNc(6,at,7,6,"div",3),_.YNc(7,Re,15,13,"div",3),_.qZA()),2&nt&&(_.Tol(Bt.theme),_.xp6(2),_.Oqu(_.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),_.xp6(2),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading&&void 0!==Bt.stepper&&"results"!==Bt.state),_.xp6(1),_.Q6J("ngIf","results"===Bt.state))},dependencies:[E.sg,E.O5,z.ey,Q.TO,Q.KE,Q.hX,te.Nt,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,T.On,ee.lW,g.uh,g.xY,g.H8,de.gD,Te.Ou,v.gM,L.VQ,L.U0,B.C0,B.VY,B.Vq,be.VK,be.OP,be.p6,W.w,Ue.W,P.L,ye,H.r,V.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),wt})();var Pt=h(38383);function jt(wt,an){1&wt&&_._UZ(0,"mat-spinner",12)}const cn=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Xt(wt,an){if(1&wt&&_._UZ(0,"perun-web-apps-members-list",13),2&wt){const nt=_.oxw();_.Q6J("disableRouting",!0)("hidden",nt.loading)("disableStatusChange",!0)("members",nt.members)("selection",nt.selection)("displayedColumns",_.DdM(7,cn))("tableId",nt.tableId)}}function sn(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",14),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let mn=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke){this.dialogRef=nt,this.data=Bt,this.store=Gt,this.membersService=et,this.notificator=Ft,this.translate=Ke,this.loading=!1,this.tableId=A.US,this.expiration="never",this.searchCtrl=new T.p4("",[T.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new c.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(nt){if(this.loading=!0,0===nt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Bt=nt.pop();Bt.sponsored?this.membersService.sponsorMember(Bt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(nt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(Bt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(nt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const nt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(nt)}setExpiration(nt){this.expiration="never"===nt?"never":(0,E.p6)(nt,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[Fe.r.MEMBER_DEF_EXPIRATION,Fe.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(Bt=>{this.members=Bt,this.loading=!1},()=>this.loading=!1))}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.so),_.Y36(g.WI),_.Y36(C.d6),_.Y36(e.uq),_.Y36(C.V6),_.Y36(V.sK))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(nt,Bt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label")(7,"input",3),_.NdJ("keyup.enter",function(){return Bt.onSearchByString()}),_.ALo(8,"translate"),_.qZA()(),_.TgZ(9,"mat-error"),_._uU(10),_.ALo(11,"translate"),_.qZA()(),_.TgZ(12,"button",4),_.NdJ("click",function(){return Bt.onSearchByString()}),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.YNc(15,jt,1,0,"mat-spinner",5),_.YNc(16,Xt,1,8,"perun-web-apps-members-list",6),_.YNc(17,sn,3,3,"perun-web-apps-alert",7),_.TgZ(18,"div"),_._UZ(19,"br"),_.TgZ(20,"h6"),_._uU(21),_.ALo(22,"translate"),_.qZA(),_.TgZ(23,"perun-web-apps-expiration-select",8),_.NdJ("datePicker",function(et){return Bt.setExpiration(et)}),_.qZA()()(),_.TgZ(24,"div",9)(25,"button",10),_.NdJ("click",function(){return Bt.onCancel()}),_._uU(26),_.ALo(27,"translate"),_.qZA(),_.TgZ(28,"button",11),_.NdJ("click",function(){return Bt.onSubmit()}),_._uU(29),_.ALo(30,"translate"),_.qZA()()()),2&nt&&(_.Tol(Bt.theme),_.xp6(2),_.Oqu(_.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),_.xp6(5),_.s9C("placeholder",_.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),_.Q6J("formControl",Bt.searchCtrl),_.xp6(3),_.hij(" ",_.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),_.xp6(2),_.Q6J("disabled",Bt.loading),_.xp6(1),_.hij(" ",_.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),_.xp6(2),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",Bt.firstSearchDone),_.xp6(1),_.Q6J("ngIf",!Bt.firstSearchDone),_.xp6(4),_.Oqu(_.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),_.xp6(5),_.hij(" ",_.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),_.xp6(2),_.Q6J("disabled",Bt.loading||0===Bt.selection.selected.length),_.xp6(1),_.hij(" ",_.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},dependencies:[E.O5,Q.TO,Q.KE,te.Nt,T.Fj,T.JJ,T.oH,ee.lW,g.uh,g.xY,g.H8,Te.Ou,W.w,Pt.O,ye,V.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),wt})();var Nt=h(96308),Rt=h(30671),Ct=h(19352),Ut=h(58964),Qt=h(94364),An=h(50301),Dt=h(18750),$t=h(20919),xt=h(5865);function rt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"th",19)(1,"mat-checkbox",20),_.NdJ("change",function(Gt){_.CHM(nt);const et=_.oxw();return _.KtG(Gt?et.masterToggle():null)}),_.qZA()()}if(2&wt){const nt=_.oxw();_.xp6(1),_.Q6J("aria-label",nt.checkboxLabel())("checked",nt.selection.hasValue()&&nt.isAllSelected())("indeterminate",nt.selection.hasValue()&&!nt.isAllSelected())}}function vt(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"td",21)(1,"mat-checkbox",22),_.NdJ("change",function(Gt){const Ft=_.CHM(nt).$implicit,Ke=_.oxw();return _.KtG(Gt?Ke.selection.toggle(Ft):null)})("click",function(Gt){return Gt.stopPropagation()}),_.qZA()()}if(2&wt){const nt=an.$implicit,Bt=_.oxw();_.xp6(1),_.Q6J("aria-label",Bt.checkboxLabel(nt))("checked",Bt.selection.isSelected(nt))}}function ot(wt,an){1&wt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function $e(wt,an){if(1&wt&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",nt.member.id," ")}}function At(wt,an){1&wt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Z(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"userFullName"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.member.user)," ")}}function ke(wt,an){1&wt&&(_.TgZ(0,"th",26),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function mt(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"memberEmail"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.Oqu(_.lcZ(2,1,nt.member))}}function St(wt,an){1&wt&&(_.TgZ(0,"th",26),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function tn(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_._uU(1),_.ALo(2,"memberLogins"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.member)," ")}}function En(wt,an){1&wt&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function jn(wt,an){if(1&wt&&(_.TgZ(0,"span"),_._uU(1),_.ALo(2,"userFullName"),_._UZ(3,"br"),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.hij(" ",_.lcZ(2,1,nt.user),"")}}function Ln(wt,an){if(1&wt&&(_.TgZ(0,"td",25),_.YNc(1,jn,4,3,"span",27),_.qZA()),2&wt){const nt=an.$implicit;_.xp6(1),_.Q6J("ngForOf",nt.sponsors)}}function Kn(wt,an){1&wt&&_._UZ(0,"th",23)}function li(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"span",30),_.ALo(1,"translate"),_.TgZ(2,"button",31),_.NdJ("mouseenter",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.disableRouting=!0)})("mouseleave",function(){_.CHM(nt);const Gt=_.oxw(2);return _.KtG(Gt.disableRouting=Gt.routingStrategy)})("click",function(){_.CHM(nt);const Gt=_.oxw().$implicit,et=_.oxw();return _.KtG(et.resetPassword(Gt))}),_.TgZ(3,"mat-icon"),_._uU(4,"vpn_key"),_.qZA()()()}if(2&wt){const nt=_.oxw(2);_.Q6J("matTooltipPosition","above")("matTooltip",_.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),_.xp6(2),_.Q6J("disabled",nt.loading)}}function ci(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"td",25)(1,"button",28),_.NdJ("click",function(){const et=_.CHM(nt).$implicit,Ft=_.oxw();return _.KtG(Ft.showSponsors(et))})("mouseenter",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.disableRouting=!0)})("mouseleave",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.disableRouting=Gt.routingStrategy)}),_.TgZ(2,"mat-icon"),_._uU(3,"edit"),_.qZA()(),_.YNc(4,li,5,5,"span",29),_.qZA()}if(2&wt){const nt=an.$implicit,Bt=_.oxw();_.xp6(4),_.Q6J("ngIf",Bt.passwdResetAuth(nt))}}function Wn(wt,an){1&wt&&_._UZ(0,"tr",32)}const Hn=function(wt,an){return["/organizations",wt,"members",an]};function Ji(wt,an){if(1&wt&&_._UZ(0,"tr",33),2&wt){const nt=an.$implicit,Bt=_.oxw();_.ekj("cursor-pointer",!Bt.disableRouting)("disable-outline",Bt.disableRouting),_.Q6J("perunWebAppsMiddleClickRouterLink",Bt.disableRouting?null:_.WLB(6,Hn,nt.member.voId,nt.member.id))("routerLink",Bt.disableRouting?null:_.WLB(9,Hn,nt.member.voId,nt.member.id))}}function Gn(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Yn(wt,an){1&wt&&(_.TgZ(0,"perun-web-apps-alert",34),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let Vi=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft){this.dialog=nt,this.authResolver=Bt,this.storeService=Gt,this.attributesManager=et,this.tableCheckbox=Ft,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new _.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(nt){this.sort=nt}static getSortDataForColumn(nt,Bt){switch(Bt){case"id":return nt.member.id.toString();case"name":return nt.member.user?nt.member.user.lastName?nt.member.user.lastName:nt.member.user.firstName??"":"";case"sponsors":return nt.sponsors.length.toString();default:return""}}static getDataForColumn(nt,Bt){switch(Bt){case"id":return nt.member.id.toString();case"name":return nt.member.user?(0,w.bD)(nt.member.user):"";case"sponsors":return nt.sponsors.map(Gt=>(0,w.bD)(Gt.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(nt=>"id"!==nt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportAllData(nt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,wt.getDataForColumn),nt)}exportDisplayedData(nt){const Bt=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Gt=Bt+this.dataSource.paginator.pageSize;(0,w.O6)((0,w.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Bt,Gt),this.displayedColumns,wt.getDataForColumn),nt)}setDataSource(){this.dataSource||(this.dataSource=new Rt.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(nt,Bt)=>(0,w.Sd)(nt,Bt,this.displayedColumns,wt.getDataForColumn),this.dataSource.sortData=(nt,Bt)=>(0,w.pR)(nt,Bt,wt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(nt){const Bt=(0,w.kZ)();Bt.width="650px",Bt.data={sponsors:nt.sponsors,member:nt.member,theme:"vo-theme"},this.dialog.open(Ct.H,Bt).afterClosed().subscribe(et=>{et&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(nt){return nt?`${this.selection.isSelected(nt)?"deselect":"select"} row ${nt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(nt){this.loading=!0;const Bt=this.storeService.get("password_namespace_attributes").map(Gt=>{const et=Gt.split(":");return et[et.length-1]});this.attributesManager.getLogins(nt.member.userId).subscribe(Gt=>{const et=Gt.filter(Et=>Bt.includes(Et.friendlyNameParameter)),Ft=(0,w.kZ)();Ft.width="400px",Ft.data={userId:nt.member.userId,memberId:nt.member.id,logins:et},this.dialog.open(Ut.m,Ft).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(nt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:nt.member.voId,beanName:"Vo"},nt.member])}}return wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(g.uw),_.Y36(C.x4),_.Y36(C.d6),_.Y36(e.H8),_.Y36(C.UA))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-sponsored-members-list"]],viewQuery:function(nt,Bt){if(1&nt&&(_.Gf(w.l9,7),_.Gf(Nt.YE,7)),2&nt){let Gt;_.iGM(Gt=_.CRH())&&(Bt.child=Gt.first),_.iGM(Gt=_.CRH())&&(Bt.matSort=Gt.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[_.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(nt,Bt){1&nt&&(_.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),_.NdJ("exportDisplayedData",function(et){return Bt.exportDisplayedData(et)})("exportAllData",function(et){return Bt.exportAllData(et)}),_.TgZ(2,"table",2),_.ynx(3,3),_.YNc(4,rt,2,3,"th",4),_.YNc(5,vt,2,2,"td",5),_.BQk(),_.ynx(6,6),_.YNc(7,ot,3,3,"th",7),_.YNc(8,$e,2,1,"td",8),_.BQk(),_.ynx(9,9),_.YNc(10,At,3,3,"th",7),_.YNc(11,Z,3,3,"td",10),_.BQk(),_.ynx(12,11),_.YNc(13,ke,3,3,"th",12),_.YNc(14,mt,3,3,"td",10),_.BQk(),_.ynx(15,13),_.YNc(16,St,3,3,"th",12),_.YNc(17,tn,3,3,"td",10),_.BQk(),_.ynx(18,14),_.YNc(19,En,3,3,"th",7),_.YNc(20,Ln,2,1,"td",10),_.BQk(),_.ynx(21,15),_.YNc(22,Kn,1,0,"th",7),_.YNc(23,ci,5,1,"td",10),_.BQk(),_.YNc(24,Wn,1,0,"tr",16),_.YNc(25,Ji,1,12,"tr",17),_.qZA()()(),_.YNc(26,Gn,3,3,"perun-web-apps-alert",18),_.YNc(27,Yn,3,3,"perun-web-apps-alert",18)),2&nt&&(_.Q6J("hidden",0===Bt.dataSource.filteredData.length||0===Bt.sponsoredMembers.length),_.xp6(1),_.Q6J("pageSizeOptions",Bt.pageSizeOptions)("dataLength",Bt.dataSource.filteredData.length)("tableId",Bt.tableId),_.xp6(1),_.Q6J("dataSource",Bt.dataSource),_.xp6(22),_.Q6J("matHeaderRowDef",Bt.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",Bt.displayedColumns),_.xp6(1),_.Q6J("ngIf",0===Bt.dataSource.filteredData.length&&0!==Bt.sponsoredMembers.length),_.xp6(1),_.Q6J("ngIf",0===Bt.sponsoredMembers.length))},dependencies:[E.sg,E.O5,Qt.rH,oe.Hw,ee.lW,Nt.YE,Nt.nU,Rt.BZ,Rt.fO,Rt.as,Rt.w1,Rt.Dz,Rt.nj,Rt.ge,Rt.ev,Rt.XQ,Rt.Gk,le.oG,v.gM,W.w,An.YH,Dt.l,V.X$,we.d,$t.D,xt.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),wt})();var Fi=h(96214);function Hi(wt,an){if(1&wt&&(_.TgZ(0,"button",10),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&wt){const nt=_.oxw(),Bt=_.MAs(9);_.Q6J("disabled",nt.findSponsorsAuth&&0===nt.voSponsors.length)("matMenuTriggerFor",Bt),_.xp6(1),_.hij(" ",_.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function _i(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onCreate())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function gi(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",11),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onGenerate())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function Pr(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"button",12),_.NdJ("click",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.onSponsorExistingMember())}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&wt&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function ir(wt,an){1&wt&&_._UZ(0,"mat-spinner",13)}function fr(wt,an){if(1&wt){const nt=_.EpF();_.TgZ(0,"app-sponsored-members-list",14),_.NdJ("refreshTable",function(){_.CHM(nt);const Gt=_.oxw();return _.KtG(Gt.refresh())}),_.qZA()}if(2&wt){const nt=_.oxw();_.Q6J("disableRouting",!nt.routeAuth)("selection",nt.selection)("filterValue",nt.searchString)("sponsoredMembers",nt.members)("tableId",nt.tableId)}}let rr=(()=>{class wt{constructor(nt,Bt,Gt,et,Ft,Ke){this.membersManager=nt,this.dialog=Bt,this.authResolver=Gt,this.storeService=et,this.authzResolver=Ft,this.entityStorageService=Ke,this.members=[],this.voSponsors=[],this.selection=new c.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=A.Bf,this.attrNames=[Fe.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights();const nt=["SPONSOR"],Bt=new Map;this.authResolver.setRolesAuthorization(nt,this.vo,Bt),this.findSponsorsAuth=Bt.get(nt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(S.u.SPONSOR,this.vo.id,"Vo",[Fe.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(et=>{this.voSponsors=et,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const nt=(0,w.kZ)();nt.width="620px",nt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(Se,nt).afterClosed().subscribe(Gt=>{Gt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(et=>{this.storeService.setPerunPrincipal(et),this.refresh()}))})}onGenerate(){const nt=(0,w.kZ)();nt.width="750px",nt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(st,nt).afterClosed().subscribe(Gt=>{Gt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(et=>{this.storeService.setPerunPrincipal(et),this.refresh()}))})}onSponsorExistingMember(){const nt=(0,w.kZ)();nt.width="650px",nt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(mn,nt).afterClosed().subscribe(Gt=>{Gt&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(et=>{this.storeService.setPerunPrincipal(et),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(nt=>{this.selection.clear(),this.members=nt,this.setAuthRights(),this.loading=!1})}applyFilter(nt){this.searchString=nt}}return wt.id="VoSponsoredMembersComponent",wt.\u0275fac=function(nt){return new(nt||wt)(_.Y36(e.uq),_.Y36(g.uw),_.Y36(C.x4),_.Y36(C.d6),_.Y36(e.Ct),_.Y36(C.fb))},wt.\u0275cmp=_.Xpm({type:wt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(nt,Bt){2&nt&&_.ekj("router-component",Bt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(nt,Bt){1&nt&&(_.TgZ(0,"div")(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.TgZ(4,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return Bt.refresh()}),_.qZA(),_.TgZ(5,"span",2),_.ALo(6,"translate"),_.YNc(7,Hi,3,5,"button",3),_.qZA(),_.TgZ(8,"mat-menu",null,4),_.YNc(10,_i,3,3,"button",5),_.YNc(11,gi,3,3,"button",5),_.qZA(),_.YNc(12,Pr,3,3,"button",6),_.TgZ(13,"perun-web-apps-immediate-filter",7),_.NdJ("filter",function(et){return Bt.applyFilter(et)}),_.qZA(),_.YNc(14,ir,1,0,"mat-spinner",8),_.YNc(15,fr,1,5,"app-sponsored-members-list",9),_.qZA()),2&nt&&(_.xp6(2),_.Oqu(_.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),_.xp6(3),_.s9C("matTooltip",_.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),_.Q6J("matTooltipDisabled",!(Bt.findSponsorsAuth&&0===Bt.voSponsors.length)),_.xp6(2),_.Q6J("ngIf",Bt.createAuth||Bt.generateAuth),_.xp6(3),_.Q6J("ngIf",Bt.createAuth),_.xp6(1),_.Q6J("ngIf",Bt.generateAuth),_.xp6(1),_.Q6J("ngIf",Bt.setSponsorshipAuth),_.xp6(1),_.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),_.xp6(1),_.Q6J("ngIf",Bt.loading),_.xp6(1),_.Q6J("ngIf",!Bt.loading))},dependencies:[E.O5,ee.lW,Te.Ou,v.gM,be.VK,be.OP,be.p6,Vi,Fi.t,P.L,V.X$]}),wt})()},25309:(Ye,pe,h)=>{"use strict";h.d(pe,{Y:()=>Ze});var e=h(32105),c=h(9244),A=h(32080),w=h(11717),g=h(95017),C=h(65412),T=h(24006),E=h(94650),S=h(89383),U=h(94364),_=h(36895),V=h(59549),z=h(284),Q=h(4859),te=h(51572),oe=h(10266);function ee(he,xe){1&he&&E._UZ(0,"mat-spinner",3)}function le(he,xe){if(1&he){const j=E.EpF();E.TgZ(0,"div")(1,"div",4)(2,"mat-form-field"),E._UZ(3,"input",5),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA()(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",6),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA()()(),E.TgZ(14,"div",7)(15,"button",8),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onCancel())}),E._uU(16),E.ALo(17,"translate"),E.qZA(),E.TgZ(18,"div",9),E.ALo(19,"translate"),E.TgZ(20,"button",10),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onSubmit())}),E._uU(21),E.ALo(22,"translate"),E.qZA()()()()}if(2&he){const j=E.oxw();E.xp6(3),E.s9C("placeholder",E.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),E.Q6J("formControl",j.fullNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),E.Q6J("formControl",j.shortNameCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),E.xp6(4),E.hij(" ",E.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),E.xp6(2),E.s9C("matTooltip",E.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),E.Q6J("matTooltipDisabled",j.shortNameCtrl.valid&&j.fullNameCtrl.valid),E.xp6(2),E.Q6J("disabled",j.shortNameCtrl.invalid||j.fullNameCtrl.invalid),E.xp6(1),E.hij(" ",E.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let de=(()=>{class he{constructor(j,R,G,se,$,Ee){this.dialogRef=j,this.data=R,this.notificator=G,this.voService=se,this.translate=$,this.router=Ee,$.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Oe=>this.successMessage=Oe)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern("^[\\w.-]+$"),T.kI.maxLength(33)]),this.fullNameCtrl=new T.p4(null,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(j=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",j.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return he.\u0275fac=function(j){return new(j||he)(E.Y36(C.so),E.Y36(C.WI),E.Y36(A.V6),E.Y36(e.YF),E.Y36(S.sK),E.Y36(U.F0))},he.\u0275cmp=E.Xpm({type:he,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(j,R){1&j&&(E.TgZ(0,"div")(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ee,1,0,"mat-spinner",1),E.YNc(5,le,23,25,"div",2),E.qZA()),2&j&&(E.Tol(R.theme),E.xp6(2),E.Oqu(E.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),E.xp6(2),E.Q6J("ngIf",R.loading),E.xp6(1),E.Q6J("ngIf",!R.loading))},dependencies:[_.O5,V.TO,V.KE,z.Nt,T.Fj,T.JJ,T.Q7,T.oH,Q.lW,C.uh,C.xY,C.H8,te.Ou,oe.gM,S.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),he})();var Te=h(10036),v=h(77968),L=h(97392),B=h(87831),W=h(96214),q=h(4235),ue=h(7434);function ye(he,xe){if(1&he){const j=E.EpF();E.TgZ(0,"button",9),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onCreateVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&he&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function Me(he,xe){if(1&he){const j=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){E.CHM(j);const G=E.oxw();return E.KtG(G.onRemoveVo())}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&he){const j=E.oxw();E.Q6J("disabled",0===j.selection.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function we(he,xe){1&he&&E._UZ(0,"mat-spinner",11)}function Ge(he,xe){if(1&he&&E._UZ(0,"perun-web-apps-vos-list",12),2&he){const j=E.oxw();E.Q6J("tableId",j.tableId)("displayedColumns",j.displayedColumns)("filterValue",j.filterValue)("recentIds",j.recentIds)("selection",j.selection)("vos",j.vos)}}const ce=function(){return{color:"black"}};let Ze=(()=>{class he{constructor(j,R,G,se,$,Ee){this.sideMenuService=j,this.voService=R,this.guiAuthResolver=G,this.dialog=se,this.notificator=$,this.apiRequest=Ee,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Te.tw}ngOnInit(){this.loading=!0,this.selection=new g.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe(j=>{this.vos=j,this.recentIds=(0,c.vL)("vos"),this.loading=!1},j=>{const R=j.error;"PrivilegeException"===R.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(R)})}applyFilter(j){this.filterValue=j}onCreateVo(){const j=(0,c.kZ)();j.width="610px",j.data={theme:"vo-theme"},this.dialog.open(de,j).afterClosed().subscribe(G=>{G&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const j=(0,c.kZ)();j.width="500px",j.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,j).afterClosed().subscribe(G=>{G&&this.refreshTable()})}}return he.id="VoSelectPageComponent",he.\u0275fac=function(j){return new(j||he)(E.Y36(v.D),E.Y36(e.YF),E.Y36(A.x4),E.Y36(C.uw),E.Y36(A.V6),E.Y36(A.F5))},he.\u0275cmp=E.Xpm({type:he,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(j,R){2&j&&E.ekj("router-component",R.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(j,R){1&j&&(E.TgZ(0,"div",0),E._UZ(1,"perun-web-apps-back-button"),E.TgZ(2,"h1",1),E._UZ(3,"mat-icon",2),E._uU(4),E.ALo(5,"translate"),E.qZA(),E.TgZ(6,"perun-web-apps-refresh-button",3),E.NdJ("refresh",function(){return R.refreshTable()}),E.qZA(),E.YNc(7,ye,3,3,"button",4),E.YNc(8,Me,3,4,"button",5),E.TgZ(9,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(se){return R.applyFilter(se)}),E.qZA(),E.YNc(10,we,1,0,"mat-spinner",7),E.YNc(11,Ge,1,6,"perun-web-apps-vos-list",8),E.qZA()),2&j&&(E.xp6(3),E.Q6J("ngStyle",E.DdM(10,ce)),E.xp6(1),E.hij(" ",E.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),E.xp6(3),E.Q6J("ngIf",R.createAuth),E.xp6(1),E.Q6J("ngIf",R.deleteAuth),E.xp6(1),E.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),E.xp6(1),E.Q6J("ngIf",R.loading),E.xp6(1),E.Q6J("ngIf",!R.loading))},dependencies:[_.O5,_.PC,L.Hw,Q.lW,te.Ou,B.Z,W.t,q.W,ue.L,S.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),he})()},33246:(Ye,pe,h)=>{"use strict";var e=h(11481),c=h(94650),A=h(94364);let w=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(D,k){}}),J})();var g=h(32105),C=h(32080),T=h(9244),E=h(74281),S=h(77968),U=h(89383),_=h(65412),V=h(36895),z=h(24006),Q=h(97392),te=h(23267),oe=h(4859),ee=h(56709),le=h(51572),de=h(10266),Te=h(87831),v=h(24179),L=h(62109),B=h(74010);function W(J,O){1&J&&c._UZ(0,"mat-spinner",7)}const q=function(){return["id","recent","shortName","name"]};function ue(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-vos-list",8),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("pageSizeOptions",null)("displayedColumns",c.DdM(4,q))("recentIds",D.recentIds)("vos",D.objects)}}const ye=function(){return["id","recent","vo","name","description"]};function Me(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-groups-list",9),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("pageSizeOptions",null)("displayedColumns",c.DdM(4,ye))("groups",D.objects)("recentIds",D.recentIds)}}const we=function(){return["id","recent","name","vo","facility"]};function Ge(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-resources-list",10),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("pageSizeOptions",null)("displayedColumns",c.DdM(5,we))("resources",D.objects)("recentIds",D.recentIds)("routingVo",!0)}}const ce=function(){return["id","recent","name","description"]};function Ze(J,O){if(1&J&&(c.TgZ(0,"span"),c._UZ(1,"perun-web-apps-facilities-list",11),c.qZA()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("displayedColumns",c.DdM(4,ce))("facilities",D.objects)("pageSizeOptions",null)("recentIds",D.recentIds)}}function he(J,O){if(1&J&&(c.TgZ(0,"div"),c.YNc(1,ue,2,5,"span",6),c.YNc(2,Me,2,5,"span",6),c.YNc(3,Ge,2,6,"span",6),c.YNc(4,Ze,2,5,"span",6),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("ngIf","Vo"===D.primaryObject),c.xp6(1),c.Q6J("ngIf","Group"===D.primaryObject),c.xp6(1),c.Q6J("ngIf","Resource"===D.primaryObject),c.xp6(1),c.Q6J("ngIf","Facility"===D.primaryObject)}}let xe=(()=>{class J{constructor(D,k,Ie){this.authzResolver=D,this.guiAuthResolver=k,this.resourceService=Ie,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D,this.recentIds=(0,T.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D,this.recentIds=(0,T.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(D=>{this.objects=D,this.recentIds=(0,T.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(D=>{this.objects=D.map(k=>({facility:k})),this.recentIds=(0,T.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.Ct),c.Y36(C.x4),c.Y36(g.xk))},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0)(1,"div",1),c._UZ(2,"mat-icon",2),c._uU(3),c.ALo(4,"translate"),c.TgZ(5,"span",3),c.ALo(6,"translate"),c.TgZ(7,"mat-icon",4),c._uU(8,"info_outline"),c.qZA()()(),c.YNc(9,W,1,0,"mat-spinner",5),c.YNc(10,he,5,4,"div",6),c.qZA()),2&D&&(c.xp6(2),c.Q6J("svgIcon",k.svgIcon),c.xp6(1),c.hij(" ",c.lcZ(4,5,k.title)," "),c.xp6(2),c.s9C("matTooltip",c.lcZ(6,7,k.roleTooltipInfo)),c.xp6(4),c.Q6J("ngIf",k.loading),c.xp6(1),c.Q6J("ngIf",!k.loading))},dependencies:[V.O5,Q.Hw,le.Ou,de.gM,Te.Z,v.W,L.C,B.X,U.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),J})();var j=h(3238),R=h(98380);function G(J,O){1&J&&c._UZ(0,"mat-spinner",3)}function se(J,O){1&J&&(c.TgZ(0,"perun-web-apps-alert",4),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function $(J,O){if(1&J&&(c.TgZ(0,"div",7)(1,"a",8)(2,"span",9),c._uU(3),c.qZA(),c._UZ(4,"mat-icon",10),c.TgZ(5,"p",11),c._uU(6),c.qZA()()()),2&J){const D=O.$implicit;c.xp6(1),c.Gre("",D.style," item-itself"),c.s9C("matTooltip",D.tooltip),c.Q6J("routerLink",D.url),c.xp6(2),c.Oqu(D.type),c.xp6(1),c.Q6J("svgIcon",D.cssIcon),c.xp6(2),c.Oqu(D.label)}}function Ee(J,O){if(1&J&&(c.TgZ(0,"div",5),c.YNc(1,$,7,8,"div",6),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("ngForOf",D.items)}}let Oe=(()=>{class J{constructor(D,k,Ie,it){this.vosManager=D,this.groupsManager=k,this.authResolver=Ie,this.facilitiesManager=it,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,T.j4)("recent");for(const D of this.recentItems)switch(D.type){case"Vo":this.vosIds.push(D.id);break;case"Group":this.groupsIds.push(D.id);break;case"Facility":this.facilitiesIds.push(D.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(D=>{this.vos=D,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(D=>{this.groups=D,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(D=>{this.facilities=D,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const D of this.recentItems)switch(D.type){case"Vo":{const k=this.vos.filter(Ie=>Ie.id===D.id)[0];k&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${k.id}`,label:k.name,tooltip:k.name,style:"vo-btn",type:"Organization"});break}case"Group":{const k=this.groups.filter(Ie=>Ie.id===D.id)[0];k&&this.items.push({cssIcon:"perun-group",url:`/organizations/${k.voId}/groups/${k.id}`,label:k.shortName,tooltip:`${D.voName} : ${k.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const k=this.facilities.filter(Ie=>Ie.id===D.id)[0];k&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${k.id}`,label:k.name,tooltip:k.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.YF),c.Y36(g.ff),c.Y36(C.x4),c.Y36(g.IQ))},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(D,k){1&D&&(c.YNc(0,G,1,0,"mat-spinner",0),c.YNc(1,se,3,3,"perun-web-apps-alert",1),c.YNc(2,Ee,2,1,"div",2)),2&D&&(c.Q6J("ngIf",k.loading),c.xp6(1),c.Q6J("ngIf",0===k.items.length&&!k.loading),c.xp6(1),c.Q6J("ngIf",k.items.length>0))},dependencies:[V.sg,V.O5,A.yS,Q.Hw,le.Ou,de.gM,j.wG,R.w,U.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),J})();var ct=h(31359);function Xe(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"div")(1,"mat-checkbox",8),c.NdJ("change",function(Ie){const It=c.CHM(D).$implicit,Ot=c.oxw();return c.KtG(Ie?Ot.changeRoleView(It):null)}),c._uU(2),c.ALo(3,"translate"),c.qZA()()}if(2&J){const D=O.$implicit,k=c.oxw();c.xp6(1),c.Q6J("checked",k.isRoleShowed(D)),c.xp6(1),c.Oqu(c.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+D))}}function _t(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"button",15),c.NdJ("click",function(){c.CHM(D);const Ie=c.oxw(2);return c.KtG(Ie.rightSettingOpened=!0)}),c.TgZ(1,"mat-icon"),c._uU(2,"settings"),c.qZA()()}}function Je(J,O){1&J&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function gt(J,O){1&J&&(c.TgZ(0,"span"),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function Y(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"button",23),c.NdJ("click",function(){c.CHM(D);const Ie=c.oxw(3);return c.KtG(Ie.goToUserProfile())}),c.TgZ(1,"mat-icon",24),c._uU(2,"exit_to_app"),c.qZA(),c._uU(3),c.ALo(4,"translate"),c.qZA()}if(2&J){const D=c.oxw(3);c.xp6(3),c.AsE("",c.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",D.userProfileName," ")}}const Ce=function(){return["/myProfile"]};function ae(J,O){if(1&J&&(c.TgZ(0,"div")(1,"div",16)(2,"div",17),c._uU(3),c.ALo(4,"translate"),c.qZA(),c.TgZ(5,"div",18),c.YNc(6,Je,3,3,"span",14),c.YNc(7,gt,3,3,"span",14),c.qZA(),c.TgZ(8,"div",19)(9,"button",20),c._UZ(10,"mat-icon",21),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.YNc(13,Y,5,4,"button",22),c.qZA()()()),2&J){const D=c.oxw(2);c.xp6(3),c.hij(" ",c.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),c.xp6(3),c.Q6J("ngIf",!D.userProfileUrl),c.xp6(1),c.Q6J("ngIf",D.userProfileUrl),c.xp6(2),c.Q6J("routerLink",c.DdM(10,Ce)),c.xp6(2),c.hij(" ",c.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),c.xp6(2),c.Q6J("ngIf",D.userProfileUrl)}}function re(J,O){1&J&&(c.TgZ(0,"span")(1,"div",3),c._uU(2),c.ALo(3,"translate"),c.qZA(),c._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),c.qZA()),2&J&&(c.xp6(2),c.hij(" ",c.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function Se(J,O){1&J&&(c.TgZ(0,"div",27),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function Fe(J,O){if(1&J&&c._UZ(0,"app-perun-web-apps-dashboard-card",30),2&J){const D=c.oxw().$implicit,k=c.oxw(3);c.Q6J("roleName",D)("role",k.roles[D])}}function be(J,O){if(1&J&&(c.TgZ(0,"div",28),c.YNc(1,Fe,1,2,"app-perun-web-apps-dashboard-card",29),c.qZA()),2&J){const D=O.$implicit,k=c.oxw(3);c.xp6(1),c.Q6J("ngIf",k.isRoleShowed(D))}}function Ue(J,O){if(1&J&&(c.TgZ(0,"div"),c.YNc(1,re,5,3,"span",14),c.YNc(2,Se,3,3,"div",25),c.TgZ(3,"div"),c.YNc(4,be,2,1,"div",26),c.qZA()()),2&J){const D=c.oxw(2);c.xp6(1),c.Q6J("ngIf",D.recentlyViewedShow),c.xp6(1),c.Q6J("ngIf",D.rolesToHide.toString()!==D.roleNames.toString()),c.xp6(2),c.Q6J("ngForOf",D.roleNames)}}function P(J,O){if(1&J&&(c.TgZ(0,"div",9)(1,"h1",10),c._UZ(2,"mat-icon",11),c.TgZ(3,"span",12),c._uU(4),c.ALo(5,"translate"),c.ALo(6,"userFullName"),c.qZA(),c.YNc(7,_t,3,0,"button",13),c.qZA(),c.YNc(8,ae,14,11,"div",14),c.YNc(9,Ue,5,3,"div",14),c.qZA()),2&J){const D=c.oxw();c.xp6(4),c.AsE("",c.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",c.lcZ(6,7,D.user),""),c.xp6(3),c.Q6J("ngIf",!D.isOnlySelfRole),c.xp6(1),c.Q6J("ngIf",D.isOnlySelfRole),c.xp6(1),c.Q6J("ngIf",!D.isOnlySelfRole)}}let H=(()=>{class J{constructor(D,k,Ie,it,It,Ot,Zt,en,fn,vn){this.userManager=D,this.storeService=k,this.sideMenuService=Ie,this.route=it,this.router=It,this.notificator=Ot,this.translateService=Zt,this.dialog=en,this.apiRequestConfiguration=fn,this.otherApplicationService=vn,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","FACILITYOBSERVER","RESOURCEOBSERVER"],Zt.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(Bn=>this.mailSuccessMessage=Bn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const D=Object.keys(this.roles);this.isOnlySelfRole=D.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(k=>D.includes(k)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(D){if(this.isRoleShowed(D)){const k=[];for(const Ie of this.roleNames)this.isRoleShowed(Ie)||k.push(Ie),Ie===D&&k.push(Ie);this.rolesToHide=k}else this.rolesToHide=this.rolesToHide.filter(k=>k!==D);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(D){return!this.rolesToHide.includes(D)}validatePreferredMailChange(){const D=this.route.snapshot.queryParamMap,k=D.get("token"),Ie=D.get("u");k&&Ie&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(k,Number.parseInt(Ie,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const it=(0,T.kZ)();it.width="600px",this.dialog.open(E.qD,it).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const D=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===D||D;const k=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===k?[]:k}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.Fv),c.Y36(C.d6),c.Y36(S.D),c.Y36(A.gz),c.Y36(A.F0),c.Y36(C.V6),c.Y36(U.sK),c.Y36(_.uw),c.Y36(C.F5),c.Y36(C.jq))},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("router-component",k.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(D,k){1&D&&(c.TgZ(0,"mat-sidenav-container",0)(1,"mat-sidenav",1),c.NdJ("openedChange",function(it){return k.rightSettingOpened=it}),c.TgZ(2,"div",2)(3,"div",3),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"div")(7,"mat-checkbox",4),c.NdJ("ngModelChange",function(it){return k.recentlyViewedShow=it})("change",function(it){return it?k.recentlyViewedChanged():null}),c._uU(8),c.ALo(9,"translate"),c.qZA()(),c.TgZ(10,"div",5),c._uU(11),c.ALo(12,"translate"),c.qZA(),c.YNc(13,Xe,4,4,"div",6),c.qZA()(),c.TgZ(14,"mat-sidenav-content"),c.YNc(15,P,10,9,"div",7),c.qZA()()),2&D&&(c.xp6(1),c.Q6J("opened",k.rightSettingOpened),c.xp6(3),c.Oqu(c.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),c.xp6(3),c.Q6J("ngModel",k.recentlyViewedShow),c.xp6(1),c.Oqu(c.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),c.xp6(3),c.Oqu(c.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),c.xp6(2),c.Q6J("ngForOf",k.roleNames),c.xp6(2),c.Q6J("ngIf",void 0!==k.user))},dependencies:[V.sg,V.O5,A.rH,z.JJ,z.On,Q.Hw,te.JX,te.TM,te.Rh,oe.lW,ee.oG,xe,Oe,U.X$,ct.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),J})();var i=h(4235);let o=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c._UZ(1,"perun-web-apps-back-button"),c.TgZ(2,"h1",1),c._uU(3),c.ALo(4,"translate"),c.qZA()()),2&D&&(c.xp6(3),c.Oqu(c.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},dependencies:[i.W,U.X$]}),J})();var f=h(33604),l=h(59549),a=h(284),n=h(63189);let t=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[V.ez,oe.ot,Q.Ps,A.Bz,f.ez,U.aw,l.lN,z.UX,a.c,n.r]}),J})(),r=(()=>{class J{constructor(D,k){this.auth=D,this.router=k}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.e8),c.Y36(A.F0))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"button",4),c.NdJ("click",function(){return k.startAuth()}),c._uU(7),c.ALo(8,"translate"),c.TgZ(9,"mat-icon"),c._uU(10," login "),c.qZA()()()()()),2&D&&(c.xp6(4),c.hij(" ",c.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),c.xp6(3),c.hij(" ",c.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[oe.lW,Q.Hw,U.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),J})();var s=h(41619);function d(J,O){if(1&J&&(c.TgZ(0,"div",8),c._UZ(1,"div",9),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("innerHTML",D.logo,c.oJD)}}function p(J,O){if(1&J&&(c.TgZ(0,"div",10),c._UZ(1,"div",11)(2,"mat-icon",12),c.qZA()),2&J){const D=c.oxw();c.xp6(1),c.Q6J("innerHTML",D.logo,c.oJD)}}const M=function(J){return{color:J}};function _e(J,O){if(1&J&&(c.TgZ(0,"p",13),c._uU(1),c.qZA()),2&J){const D=c.oxw();c.Q6J("ngStyle",c.VKq(2,M,D.textColor)),c.xp6(1),c.hij(" ",D.headerTitle," ")}}const bt=function(J,O){return{background:J,color:O}},Vt=function(J,O){return{"min-height":J,"background-color":O}};let on=(()=>{class J{constructor(D,k,Ie,it){this.storeService=D,this.sanitizer=k,this.preferredLangService=Ie,this.translateService=it,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const D=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(D)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.d6),c.Y36(e.H7),c.Y36(C.BN),c.Y36(U.sK))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c.YNc(1,d,2,1,"div",1),c.YNc(2,p,3,1,"div",2),c.YNc(3,_e,2,4,"p",3),c.qZA(),c.TgZ(4,"div",4)(5,"div",5)(6,"div",6),c._UZ(7,"router-outlet"),c.qZA(),c.TgZ(8,"div",7),c._UZ(9,"perun-web-apps-footer"),c.qZA()()()),2&D&&(c.Q6J("ngStyle",c.WLB(5,bt,k.headerBackgroundColor,k.headerTextColor)),c.xp6(1),c.Q6J("ngIf","admin-gui"===k.application||"user-profile"===k.application||"consolidator"===k.application),c.xp6(1),c.Q6J("ngIf","publications"===k.application),c.xp6(1),c.Q6J("ngIf",!!k.headerTitle),c.xp6(2),c.Q6J("ngStyle",c.WLB(8,Vt,k.getContentInnerMinHeight(),k.contentBackgroundColor)))},dependencies:[V.O5,V.PC,Q.Hw,A.lC,s.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),J})();function Mt(J,O){1&J&&(c.TgZ(0,"perun-web-apps-alert",8),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const je=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:f.t$},{path:"api-callback",component:w},{path:"login",component:r},{path:"service-access",component:(()=>{class J{constructor(D){this.authzService=D,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new z.p4(null,[z.kI.required]),this.passwordCtrl=new z.p4(null,[z.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(D=>{sessionStorage.setItem("baPrincipal",JSON.stringify(D)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(g.Ct))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.YNc(6,Mt,3,3,"perun-web-apps-alert",3),c.TgZ(7,"mat-form-field",4)(8,"mat-label"),c._uU(9),c.ALo(10,"translate"),c.qZA(),c._UZ(11,"input",5),c.TgZ(12,"mat-error"),c._uU(13),c.ALo(14,"translate"),c.qZA()(),c.TgZ(15,"mat-form-field",4)(16,"mat-label"),c._uU(17),c.ALo(18,"translate"),c.qZA(),c._UZ(19,"input",6),c.TgZ(20,"mat-error"),c._uU(21),c.ALo(22,"translate"),c.qZA()(),c.TgZ(23,"button",7),c.NdJ("click",function(){return k.startAuth()}),c._uU(24),c.ALo(25,"translate"),c.TgZ(26,"mat-icon"),c._uU(27," login "),c.qZA()()()()()),2&D&&(c.xp6(4),c.Oqu(c.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),c.xp6(2),c.Q6J("ngIf",k.wrongUsernameOrPassword),c.xp6(3),c.Oqu(c.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),c.xp6(2),c.Q6J("formControl",k.usernameCtrl),c.xp6(2),c.hij(" ",c.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),c.xp6(4),c.Oqu(c.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),c.xp6(2),c.Q6J("formControl",k.passwordCtrl)("type","password"),c.xp6(2),c.hij(" ",c.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),c.xp6(2),c.Q6J("disabled",k.usernameCtrl.invalid||k.passwordCtrl.invalid),c.xp6(1),c.hij(" ",c.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[V.O5,oe.lW,Q.Hw,l.TO,l.KE,l.hX,z.Fj,z.JJ,z.Q7,z.oH,a.Nt,R.w,U.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),J})()},{path:"organizations",loadChildren:()=>Promise.all([h.e(969),h.e(323),h.e(243),h.e(858)]).then(h.bind(h,60858)).then(J=>J.VosModule)},{path:"admin",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(876)]).then(h.bind(h,62876)).then(J=>J.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([h.e(969),h.e(374),h.e(323),h.e(876),h.e(243),h.e(958)]).then(h.bind(h,12958)).then(J=>J.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([h.e(969),h.e(374)]).then(h.bind(h,46374)).then(J=>J.UsersModule)},{path:"home",component:H},{path:"notAuthorized",component:f.y9},{path:"**",component:o}];let Pe=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[A.Bz.forRoot(je,{preloadingStrategy:A.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),A.Bz]}),J})();var Qe=h(72077),qe=h(14264);class Be{constructor(O,D="/assets/i18n/",k=".json"){this.http=O,this.prefix=D,this.suffix=k}getTranslation(O){return this.http.get(`${this.prefix}${O}${this.suffix}`)}}var me=h(80529),ve=h(37340);function tt(J){return new c.vHH(3e3,!1)}function Ji(){return typeof window<"u"&&typeof window.document<"u"}function Gn(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Yn(J){switch(J.length){case 0:return new ve.ZN;case 1:return J[0];default:return new ve.ZE(J)}}function Vi(J,O,D,k,Ie=new Map,it=new Map){const It=[],Ot=[];let Zt=-1,en=null;if(k.forEach(fn=>{const vn=fn.get("offset"),Bn=vn==Zt,Vn=Bn&&en||new Map;fn.forEach((In,Nn)=>{let si=Nn,ri=In;if("offset"!==Nn)switch(si=O.normalizePropertyName(si,It),ri){case ve.k1:ri=Ie.get(Nn);break;case ve.l3:ri=it.get(Nn);break;default:ri=O.normalizeStyleValue(Nn,si,ri,It)}Vn.set(si,ri)}),Bn||Ot.push(Vn),en=Vn,Zt=vn}),It.length)throw function Z(J){return new c.vHH(3502,!1)}();return Ot}function Fi(J,O,D,k){switch(O){case"start":J.onStart(()=>k(D&&Hi(D,"start",J)));break;case"done":J.onDone(()=>k(D&&Hi(D,"done",J)));break;case"destroy":J.onDestroy(()=>k(D&&Hi(D,"destroy",J)))}}function Hi(J,O,D){const it=_i(J.element,J.triggerName,J.fromState,J.toState,O||J.phaseName,D.totalTime??J.totalTime,!!D.disabled),It=J._data;return null!=It&&(it._data=It),it}function _i(J,O,D,k,Ie="",it=0,It){return{element:J,triggerName:O,fromState:D,toState:k,phaseName:Ie,totalTime:it,disabled:!!It}}function gi(J,O,D){let k=J.get(O);return k||J.set(O,k=D),k}function Pr(J){const O=J.indexOf(":");return[J.substring(1,O),J.slice(O+1)]}let ir=(J,O)=>!1,fr=(J,O,D)=>[],rr=null;function wt(J){const O=J.parentNode||J.host;return O===rr?null:O}(Gn()||typeof Element<"u")&&(Ji()?(rr=(()=>document.documentElement)(),ir=(J,O)=>{for(;O;){if(O===J)return!0;O=wt(O)}return!1}):ir=(J,O)=>J.contains(O),fr=(J,O,D)=>{if(D)return Array.from(J.querySelectorAll(O));const k=J.querySelector(O);return k?[k]:[]});let Bt=null,Gt=!1;const Et=ir,Wt=fr;let wn=(()=>{class J{validateStyleProperty(D){return function et(J){Bt||(Bt=function Ke(){return typeof document<"u"?document.body:null}()||{},Gt=!!Bt.style&&"WebkitAppearance"in Bt.style);let O=!0;return Bt.style&&!function nt(J){return"ebkit"==J.substring(1,6)}(J)&&(O=J in Bt.style,!O&&Gt&&(O="Webkit"+J.charAt(0).toUpperCase()+J.slice(1)in Bt.style)),O}(D)}matchesElement(D,k){return!1}containsElement(D,k){return Et(D,k)}getParentElement(D){return wt(D)}query(D,k,Ie){return Wt(D,k,Ie)}computeStyle(D,k,Ie){return Ie||""}animate(D,k,Ie,it,It,Ot=[],Zt){return new ve.ZN(Ie,it)}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})(),zn=(()=>{class J{}return J.NOOP=new wn,J})();const mr="ng-enter",Vr="ng-leave",Si="ng-trigger",Tr=".ng-trigger",gr="ng-animating",ar=".ng-animating";function or(J){if("number"==typeof J)return J;const O=J.match(/^(-?[\.\d]+)(m?s)/);return!O||O.length<2?0:sr(parseFloat(O[1]),O[2])}function sr(J,O){return"s"===O?1e3*J:J}function _r(J,O,D){return J.hasOwnProperty("duration")?J:function Ar(J,O,D){let Ie,it=0,It="";if("string"==typeof J){const Ot=J.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ot)return O.push(tt()),{duration:0,delay:0,easing:""};Ie=sr(parseFloat(Ot[1]),Ot[2]);const Zt=Ot[3];null!=Zt&&(it=sr(parseFloat(Zt),Ot[4]));const en=Ot[5];en&&(It=en)}else Ie=J;if(!D){let Ot=!1,Zt=O.length;Ie<0&&(O.push(function at(){return new c.vHH(3100,!1)}()),Ot=!0),it<0&&(O.push(function Re(){return new c.vHH(3101,!1)}()),Ot=!0),Ot&&O.splice(Zt,0,tt())}return{duration:Ie,delay:it,easing:It}}(J,O,D)}function lr(J,O={}){return Object.keys(J).forEach(D=>{O[D]=J[D]}),O}function Fr(J){const O=new Map;return Object.keys(J).forEach(D=>{O.set(D,J[D])}),O}function $i(J,O=new Map,D){if(D)for(let[k,Ie]of D)O.set(k,Ie);for(let[k,Ie]of J)O.set(k,Ie);return O}function Ur(J,O,D){return D?O+":"+D+";":""}function Ki(J){let O="";for(let D=0;D{const it=er(Ie);D&&!D.has(Ie)&&D.set(Ie,J.style[it]),J.style[it]=k}),Gn()&&Ki(J))}function Xi(J,O){J.style&&(O.forEach((D,k)=>{const Ie=er(k);J.style[Ie]=""}),Gn()&&Ki(J))}function Jn(J){return Array.isArray(J)?1==J.length?J[0]:(0,ve.vP)(J):J}const Jr=new RegExp("{{\\s*(.+?)\\s*}}","g");function yr(J){let O=[];if("string"==typeof J){let D;for(;D=Jr.exec(J);)O.push(D[1]);Jr.lastIndex=0}return O}function Mi(J,O,D){const k=J.toString(),Ie=k.replace(Jr,(it,It)=>{let Ot=O[It];return null==Ot&&(D.push(function Pt(J){return new c.vHH(3003,!1)}()),Ot=""),Ot.toString()});return Ie==k?J:Ie}function jr(J){const O=[];let D=J.next();for(;!D.done;)O.push(D.value),D=J.next();return O}const ca=/-+([a-z0-9])/g;function er(J){return J.replace(ca,(...O)=>O[1].toUpperCase())}function Ai(J){return J.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Le(J,O,D){switch(O.type){case 7:return J.visitTrigger(O,D);case 0:return J.visitState(O,D);case 1:return J.visitTransition(O,D);case 2:return J.visitSequence(O,D);case 3:return J.visitGroup(O,D);case 4:return J.visitAnimate(O,D);case 5:return J.visitKeyframes(O,D);case 6:return J.visitStyle(O,D);case 8:return J.visitReference(O,D);case 9:return J.visitAnimateChild(O,D);case 10:return J.visitAnimateRef(O,D);case 11:return J.visitQuery(O,D);case 12:return J.visitStagger(O,D);default:throw function jt(J){return new c.vHH(3004,!1)}()}}function pt(J,O){return window.getComputedStyle(J)[O]}function Ci(J,O){const D=[];return"string"==typeof J?J.split(/\s*,\s*/).forEach(k=>function qn(J,O,D){if(":"==J[0]){const Zt=function di(J,O){switch(J){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(D,k)=>parseFloat(k)>parseFloat(D);case":decrement":return(D,k)=>parseFloat(k) *"}}(J,D);if("function"==typeof Zt)return void O.push(Zt);J=Zt}const k=J.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==k||k.length<4)return D.push(function rt(J){return new c.vHH(3015,!1)}()),O;const Ie=k[1],it=k[2],It=k[3];O.push(Ui(Ie,It));"<"==it[0]&&!("*"==Ie&&"*"==It)&&O.push(Ui(It,Ie))}(k,D,O)):D.push(J),D}const rn=new Set(["true","1"]),On=new Set(["false","0"]);function Ui(J,O){const D=rn.has(J)||On.has(J),k=rn.has(O)||On.has(O);return(Ie,it)=>{let It="*"==J||J==Ie,Ot="*"==O||O==it;return!It&&D&&"boolean"==typeof Ie&&(It=Ie?rn.has(J):On.has(J)),!Ot&&k&&"boolean"==typeof it&&(Ot=it?rn.has(O):On.has(O)),It&&Ot}}const hi=new RegExp("s*:selfs*,?","g");function wr(J,O,D,k){return new Ve(J).build(O,D,k)}class Ve{constructor(O){this._driver=O}build(O,D,k){const Ie=new ht(D);return this._resetContextStyleTimingState(Ie),Le(this,Jn(O),Ie)}_resetContextStyleTimingState(O){O.currentQuerySelector="",O.collectedStyles=new Map,O.collectedStyles.set("",new Map),O.currentTime=0}visitTrigger(O,D){let k=D.queryCount=0,Ie=D.depCount=0;const it=[],It=[];return"@"==O.name.charAt(0)&&D.errors.push(function Xt(){return new c.vHH(3006,!1)}()),O.definitions.forEach(Ot=>{if(this._resetContextStyleTimingState(D),0==Ot.type){const Zt=Ot,en=Zt.name;en.toString().split(/\s*,\s*/).forEach(fn=>{Zt.name=fn,it.push(this.visitState(Zt,D))}),Zt.name=en}else if(1==Ot.type){const Zt=this.visitTransition(Ot,D);k+=Zt.queryCount,Ie+=Zt.depCount,It.push(Zt)}else D.errors.push(function sn(){return new c.vHH(3007,!1)}())}),{type:7,name:O.name,states:it,transitions:It,queryCount:k,depCount:Ie,options:null}}visitState(O,D){const k=this.visitStyle(O.styles,D),Ie=O.options&&O.options.params||null;if(k.containsDynamicStyles){const it=new Set,It=Ie||{};k.styles.forEach(Ot=>{Ot instanceof Map&&Ot.forEach(Zt=>{yr(Zt).forEach(en=>{It.hasOwnProperty(en)||it.add(en)})})}),it.size&&(jr(it.values()),D.errors.push(function mn(J,O){return new c.vHH(3008,!1)}()))}return{type:0,name:O.name,style:k,options:Ie?{params:Ie}:null}}visitTransition(O,D){D.queryCount=0,D.depCount=0;const k=Le(this,Jn(O.animation),D);return{type:1,matchers:Ci(O.expr,D.errors),animation:k,queryCount:D.queryCount,depCount:D.depCount,options:Qn(O.options)}}visitSequence(O,D){return{type:2,steps:O.steps.map(k=>Le(this,k,D)),options:Qn(O.options)}}visitGroup(O,D){const k=D.currentTime;let Ie=0;const it=O.steps.map(It=>{D.currentTime=k;const Ot=Le(this,It,D);return Ie=Math.max(Ie,D.currentTime),Ot});return D.currentTime=Ie,{type:3,steps:it,options:Qn(O.options)}}visitAnimate(O,D){const k=function gn(J,O){if(J.hasOwnProperty("duration"))return J;if("number"==typeof J)return Xn(_r(J,O).duration,0,"");const D=J;if(D.split(/\s+/).some(it=>"{"==it.charAt(0)&&"{"==it.charAt(1))){const it=Xn(0,0,"");return it.dynamic=!0,it.strValue=D,it}const Ie=_r(D,O);return Xn(Ie.duration,Ie.delay,Ie.easing)}(O.timings,D.errors);D.currentAnimateTimings=k;let Ie,it=O.styles?O.styles:(0,ve.oB)({});if(5==it.type)Ie=this.visitKeyframes(it,D);else{let It=O.styles,Ot=!1;if(!It){Ot=!0;const en={};k.easing&&(en.easing=k.easing),It=(0,ve.oB)(en)}D.currentTime+=k.duration+k.delay;const Zt=this.visitStyle(It,D);Zt.isEmptyStep=Ot,Ie=Zt}return D.currentAnimateTimings=null,{type:4,timings:k,style:Ie,options:null}}visitStyle(O,D){const k=this._makeStyleAst(O,D);return this._validateStyleAst(k,D),k}_makeStyleAst(O,D){const k=[],Ie=Array.isArray(O.styles)?O.styles:[O.styles];for(let Ot of Ie)"string"==typeof Ot?Ot===ve.l3?k.push(Ot):D.errors.push(new c.vHH(3002,!1)):k.push(Fr(Ot));let it=!1,It=null;return k.forEach(Ot=>{if(Ot instanceof Map&&(Ot.has("easing")&&(It=Ot.get("easing"),Ot.delete("easing")),!it))for(let Zt of Ot.values())if(Zt.toString().indexOf("{{")>=0){it=!0;break}}),{type:6,styles:k,easing:It,offset:O.offset,containsDynamicStyles:it,options:null}}_validateStyleAst(O,D){const k=D.currentAnimateTimings;let Ie=D.currentTime,it=D.currentTime;k&&it>0&&(it-=k.duration+k.delay),O.styles.forEach(It=>{"string"!=typeof It&&It.forEach((Ot,Zt)=>{const en=D.collectedStyles.get(D.currentQuerySelector),fn=en.get(Zt);let vn=!0;fn&&(it!=Ie&&it>=fn.startTime&&Ie<=fn.endTime&&(D.errors.push(function Ct(J,O,D,k,Ie){return new c.vHH(3010,!1)}()),vn=!1),it=fn.startTime),vn&&en.set(Zt,{startTime:it,endTime:Ie}),D.options&&function eo(J,O,D){const k=O.params||{},Ie=yr(J);Ie.length&&Ie.forEach(it=>{k.hasOwnProperty(it)||D.push(function st(J){return new c.vHH(3001,!1)}())})}(Ot,D.options,D.errors)})})}visitKeyframes(O,D){const k={type:5,styles:[],options:null};if(!D.currentAnimateTimings)return D.errors.push(function Ut(){return new c.vHH(3011,!1)}()),k;let it=0;const It=[];let Ot=!1,Zt=!1,en=0;const fn=O.steps.map(ri=>{const Zi=this._makeStyleAst(ri,D);let nr=null!=Zi.offset?Zi.offset:function Kt(J){if("string"==typeof J)return null;let O=null;if(Array.isArray(J))J.forEach(D=>{if(D instanceof Map&&D.has("offset")){const k=D;O=parseFloat(k.get("offset")),k.delete("offset")}});else if(J instanceof Map&&J.has("offset")){const D=J;O=parseFloat(D.get("offset")),D.delete("offset")}return O}(Zi.styles),ki=0;return null!=nr&&(it++,ki=Zi.offset=nr),Zt=Zt||ki<0||ki>1,Ot=Ot||ki0&&it{const nr=Bn>0?Zi==Vn?1:Bn*Zi:It[Zi],ki=nr*si;D.currentTime=In+Nn.delay+ki,Nn.duration=ki,this._validateStyleAst(ri,D),ri.offset=nr,k.styles.push(ri)}),k}visitReference(O,D){return{type:8,animation:Le(this,Jn(O.animation),D),options:Qn(O.options)}}visitAnimateChild(O,D){return D.depCount++,{type:9,options:Qn(O.options)}}visitAnimateRef(O,D){return{type:10,animation:this.visitReference(O.animation,D),options:Qn(O.options)}}visitQuery(O,D){const k=D.currentQuerySelector,Ie=O.options||{};D.queryCount++,D.currentQuery=O;const[it,It]=function De(J){const O=!!J.split(/\s*,\s*/).find(D=>":self"==D);return O&&(J=J.replace(hi,"")),J=J.replace(/@\*/g,Tr).replace(/@\w+/g,D=>Tr+"-"+D.slice(1)).replace(/:animating/g,ar),[J,O]}(O.selector);D.currentQuerySelector=k.length?k+" "+it:it,gi(D.collectedStyles,D.currentQuerySelector,new Map);const Ot=Le(this,Jn(O.animation),D);return D.currentQuery=null,D.currentQuerySelector=k,{type:11,selector:it,limit:Ie.limit||0,optional:!!Ie.optional,includeSelf:It,animation:Ot,originalSelector:O.selector,options:Qn(O.options)}}visitStagger(O,D){D.currentQuery||D.errors.push(function $t(){return new c.vHH(3013,!1)}());const k="full"===O.timings?{duration:0,delay:0,easing:"full"}:_r(O.timings,D.errors,!0);return{type:12,animation:Le(this,Jn(O.animation),D),timings:k,options:null}}}class ht{constructor(O){this.errors=O,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Qn(J){return J?(J=lr(J)).params&&(J.params=function Ae(J){return J?lr(J):null}(J.params)):J={},J}function Xn(J,O,D){return{duration:J,delay:O,easing:D}}function Bi(J,O,D,k,Ie,it,It=null,Ot=!1){return{type:1,element:J,keyframes:O,preStyleProps:D,postStyleProps:k,duration:Ie,delay:it,totalTime:Ie+it,easing:It,subTimeline:Ot}}class Rr{constructor(){this._map=new Map}get(O){return this._map.get(O)||[]}append(O,D){let k=this._map.get(O);k||this._map.set(O,k=[]),k.push(...D)}has(O){return this._map.has(O)}clear(){this._map.clear()}}const qs=new RegExp(":enter","g"),Qs=new RegExp(":leave","g");function Eo(J,O,D,k,Ie,it=new Map,It=new Map,Ot,Zt,en=[]){return(new To).buildKeyframes(J,O,D,k,Ie,it,It,Ot,Zt,en)}class To{buildKeyframes(O,D,k,Ie,it,It,Ot,Zt,en,fn=[]){en=en||new Rr;const vn=new to(O,D,en,Ie,it,fn,[]);vn.options=Zt;const Bn=Zt.delay?or(Zt.delay):0;vn.currentTimeline.delayNextStep(Bn),vn.currentTimeline.setStyles([It],null,vn.errors,Zt),Le(this,k,vn);const Vn=vn.timelines.filter(In=>In.containsAnimation());if(Vn.length&&Ot.size){let In;for(let Nn=Vn.length-1;Nn>=0;Nn--){const si=Vn[Nn];if(si.element===D){In=si;break}}In&&!In.allowOnlyTimelineStyles()&&In.setStyles([Ot],null,vn.errors,Zt)}return Vn.length?Vn.map(In=>In.buildKeyframes()):[Bi(D,[],[],[],0,Bn,"",!1)]}visitTrigger(O,D){}visitState(O,D){}visitTransition(O,D){}visitAnimateChild(O,D){const k=D.subInstructions.get(D.element);if(k){const Ie=D.createSubContext(O.options),it=D.currentTimeline.currentTime,It=this._visitSubInstructions(k,Ie,Ie.options);it!=It&&D.transformIntoNewTimeline(It)}D.previousNode=O}visitAnimateRef(O,D){const k=D.createSubContext(O.options);k.transformIntoNewTimeline(),this.visitReference(O.animation,k),D.transformIntoNewTimeline(k.currentTimeline.currentTime),D.previousNode=O}_visitSubInstructions(O,D,k){let it=D.currentTimeline.currentTime;const It=null!=k.duration?or(k.duration):null,Ot=null!=k.delay?or(k.delay):null;return 0!==It&&O.forEach(Zt=>{const en=D.appendInstructionToTimeline(Zt,It,Ot);it=Math.max(it,en.duration+en.delay)}),it}visitReference(O,D){D.updateOptions(O.options,!0),Le(this,O.animation,D),D.previousNode=O}visitSequence(O,D){const k=D.subContextCount;let Ie=D;const it=O.options;if(it&&(it.params||it.delay)&&(Ie=D.createSubContext(it),Ie.transformIntoNewTimeline(),null!=it.delay)){6==Ie.previousNode.type&&(Ie.currentTimeline.snapshotCurrentStyles(),Ie.previousNode=$r);const It=or(it.delay);Ie.delayNextStep(It)}O.steps.length&&(O.steps.forEach(It=>Le(this,It,Ie)),Ie.currentTimeline.applyStylesToKeyframe(),Ie.subContextCount>k&&Ie.transformIntoNewTimeline()),D.previousNode=O}visitGroup(O,D){const k=[];let Ie=D.currentTimeline.currentTime;const it=O.options&&O.options.delay?or(O.options.delay):0;O.steps.forEach(It=>{const Ot=D.createSubContext(O.options);it&&Ot.delayNextStep(it),Le(this,It,Ot),Ie=Math.max(Ie,Ot.currentTimeline.currentTime),k.push(Ot.currentTimeline)}),k.forEach(It=>D.currentTimeline.mergeTimelineCollectedStyles(It)),D.transformIntoNewTimeline(Ie),D.previousNode=O}_visitTiming(O,D){if(O.dynamic){const k=O.strValue;return _r(D.params?Mi(k,D.params,D.errors):k,D.errors)}return{duration:O.duration,delay:O.delay,easing:O.easing}}visitAnimate(O,D){const k=D.currentAnimateTimings=this._visitTiming(O.timings,D),Ie=D.currentTimeline;k.delay&&(D.incrementTime(k.delay),Ie.snapshotCurrentStyles());const it=O.style;5==it.type?this.visitKeyframes(it,D):(D.incrementTime(k.duration),this.visitStyle(it,D),Ie.applyStylesToKeyframe()),D.currentAnimateTimings=null,D.previousNode=O}visitStyle(O,D){const k=D.currentTimeline,Ie=D.currentAnimateTimings;!Ie&&k.hasCurrentStyleProperties()&&k.forwardFrame();const it=Ie&&Ie.easing||O.easing;O.isEmptyStep?k.applyEmptyStep(it):k.setStyles(O.styles,it,D.errors,D.options),D.previousNode=O}visitKeyframes(O,D){const k=D.currentAnimateTimings,Ie=D.currentTimeline.duration,it=k.duration,Ot=D.createSubContext().currentTimeline;Ot.easing=k.easing,O.styles.forEach(Zt=>{Ot.forwardTime((Zt.offset||0)*it),Ot.setStyles(Zt.styles,Zt.easing,D.errors,D.options),Ot.applyStylesToKeyframe()}),D.currentTimeline.mergeTimelineCollectedStyles(Ot),D.transformIntoNewTimeline(Ie+it),D.previousNode=O}visitQuery(O,D){const k=D.currentTimeline.currentTime,Ie=O.options||{},it=Ie.delay?or(Ie.delay):0;it&&(6===D.previousNode.type||0==k&&D.currentTimeline.hasCurrentStyleProperties())&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=$r);let It=k;const Ot=D.invokeQuery(O.selector,O.originalSelector,O.limit,O.includeSelf,!!Ie.optional,D.errors);D.currentQueryTotal=Ot.length;let Zt=null;Ot.forEach((en,fn)=>{D.currentQueryIndex=fn;const vn=D.createSubContext(O.options,en);it&&vn.delayNextStep(it),en===D.element&&(Zt=vn.currentTimeline),Le(this,O.animation,vn),vn.currentTimeline.applyStylesToKeyframe(),It=Math.max(It,vn.currentTimeline.currentTime)}),D.currentQueryIndex=0,D.currentQueryTotal=0,D.transformIntoNewTimeline(It),Zt&&(D.currentTimeline.mergeTimelineCollectedStyles(Zt),D.currentTimeline.snapshotCurrentStyles()),D.previousNode=O}visitStagger(O,D){const k=D.parentContext,Ie=D.currentTimeline,it=O.timings,It=Math.abs(it.duration),Ot=It*(D.currentQueryTotal-1);let Zt=It*D.currentQueryIndex;switch(it.duration<0?"reverse":it.easing){case"reverse":Zt=Ot-Zt;break;case"full":Zt=k.currentStaggerTime}const fn=D.currentTimeline;Zt&&fn.delayNextStep(Zt);const vn=fn.currentTime;Le(this,O.animation,D),D.previousNode=O,k.currentStaggerTime=Ie.currentTime-vn+(Ie.startTime-k.currentTimeline.startTime)}}const $r={};class to{constructor(O,D,k,Ie,it,It,Ot,Zt){this._driver=O,this.element=D,this.subInstructions=k,this._enterClassName=Ie,this._leaveClassName=it,this.errors=It,this.timelines=Ot,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$r,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Zt||new Gr(this._driver,D,0),Ot.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(O,D){if(!O)return;const k=O;let Ie=this.options;null!=k.duration&&(Ie.duration=or(k.duration)),null!=k.delay&&(Ie.delay=or(k.delay));const it=k.params;if(it){let It=Ie.params;It||(It=this.options.params={}),Object.keys(it).forEach(Ot=>{(!D||!It.hasOwnProperty(Ot))&&(It[Ot]=Mi(it[Ot],It,this.errors))})}}_copyOptions(){const O={};if(this.options){const D=this.options.params;if(D){const k=O.params={};Object.keys(D).forEach(Ie=>{k[Ie]=D[Ie]})}}return O}createSubContext(O=null,D,k){const Ie=D||this.element,it=new to(this._driver,Ie,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Ie,k||0));return it.previousNode=this.previousNode,it.currentAnimateTimings=this.currentAnimateTimings,it.options=this._copyOptions(),it.updateOptions(O),it.currentQueryIndex=this.currentQueryIndex,it.currentQueryTotal=this.currentQueryTotal,it.parentContext=this,this.subContextCount++,it}transformIntoNewTimeline(O){return this.previousNode=$r,this.currentTimeline=this.currentTimeline.fork(this.element,O),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(O,D,k){const Ie={duration:D??O.duration,delay:this.currentTimeline.currentTime+(k??0)+O.delay,easing:""},it=new ts(this._driver,O.element,O.keyframes,O.preStyleProps,O.postStyleProps,Ie,O.stretchStartingKeyframe);return this.timelines.push(it),Ie}incrementTime(O){this.currentTimeline.forwardTime(this.currentTimeline.duration+O)}delayNextStep(O){O>0&&this.currentTimeline.delayNextStep(O)}invokeQuery(O,D,k,Ie,it,It){let Ot=[];if(Ie&&Ot.push(this.element),O.length>0){O=(O=O.replace(qs,"."+this._enterClassName)).replace(Qs,"."+this._leaveClassName);let en=this._driver.query(this.element,O,1!=k);0!==k&&(en=k<0?en.slice(en.length+k,en.length):en.slice(0,k)),Ot.push(...en)}return!it&&0==Ot.length&&It.push(function xt(J){return new c.vHH(3014,!1)}()),Ot}}class Gr{constructor(O,D,k,Ie){this._driver=O,this.element=D,this.startTime=k,this._elementTimelineStylesLookup=Ie,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(D),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(D,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(O){const D=1===this._keyframes.size&&this._pendingStyles.size;this.duration||D?(this.forwardTime(this.currentTime+O),D&&this.snapshotCurrentStyles()):this.startTime+=O}fork(O,D){return this.applyStylesToKeyframe(),new Gr(this._driver,O,D||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(O){this.applyStylesToKeyframe(),this.duration=O,this._loadKeyframe()}_updateStyle(O,D){this._localTimelineStyles.set(O,D),this._globalTimelineStyles.set(O,D),this._styleSummary.set(O,{time:this.currentTime,value:D})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(O){O&&this._previousKeyframe.set("easing",O);for(let[D,k]of this._globalTimelineStyles)this._backFill.set(D,k||ve.l3),this._currentKeyframe.set(D,ve.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(O,D,k,Ie){D&&this._previousKeyframe.set("easing",D);const it=Ie&&Ie.params||{},It=function ua(J,O){const D=new Map;let k;return J.forEach(Ie=>{if("*"===Ie){k=k||O.keys();for(let it of k)D.set(it,ve.l3)}else $i(Ie,D)}),D}(O,this._globalTimelineStyles);for(let[Zt,en]of It){const fn=Mi(en,it,k);var Ot;this._pendingStyles.set(Zt,fn),this._localTimelineStyles.has(Zt)||this._backFill.set(Zt,null!==(Ot=this._globalTimelineStyles.get(Zt))&&void 0!==Ot?Ot:ve.l3),this._updateStyle(Zt,fn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((O,D)=>{this._currentKeyframe.set(D,O)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((O,D)=>{this._currentKeyframe.has(D)||this._currentKeyframe.set(D,O)}))}snapshotCurrentStyles(){for(let[O,D]of this._localTimelineStyles)this._pendingStyles.set(O,D),this._updateStyle(O,D)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const O=[];for(let D in this._currentKeyframe)O.push(D);return O}mergeTimelineCollectedStyles(O){O._styleSummary.forEach((D,k)=>{const Ie=this._styleSummary.get(k);(!Ie||D.time>Ie.time)&&this._updateStyle(k,D.value)})}buildKeyframes(){this.applyStylesToKeyframe();const O=new Set,D=new Set,k=1===this._keyframes.size&&0===this.duration;let Ie=[];this._keyframes.forEach((Ot,Zt)=>{const en=$i(Ot,new Map,this._backFill);en.forEach((fn,vn)=>{fn===ve.k1?O.add(vn):fn===ve.l3&&D.add(vn)}),k||en.set("offset",Zt/this.duration),Ie.push(en)});const it=O.size?jr(O.values()):[],It=D.size?jr(D.values()):[];if(k){const Ot=Ie[0],Zt=new Map(Ot);Ot.set("offset",0),Zt.set("offset",1),Ie=[Ot,Zt]}return Bi(this.element,Ie,it,It,this.duration,this.startTime,this.easing,!1)}}class ts extends Gr{constructor(O,D,k,Ie,it,It,Ot=!1){super(O,D,It.delay),this.keyframes=k,this.preStyleProps=Ie,this.postStyleProps=it,this._stretchStartingKeyframe=Ot,this.timings={duration:It.duration,delay:It.delay,easing:It.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let O=this.keyframes,{delay:D,duration:k,easing:Ie}=this.timings;if(this._stretchStartingKeyframe&&D){const it=[],It=k+D,Ot=D/It,Zt=$i(O[0]);Zt.set("offset",0),it.push(Zt);const en=$i(O[0]);en.set("offset",xa(Ot)),it.push(en);const fn=O.length-1;for(let vn=1;vn<=fn;vn++){let Bn=$i(O[vn]);const Vn=Bn.get("offset");Bn.set("offset",xa((D+Vn*k)/It)),it.push(Bn)}k=It,D=0,Ie="",O=it}return Bi(this.element,O,this.preStyleProps,this.postStyleProps,k,D,Ie,!0)}}function xa(J,O=3){const D=Math.pow(10,O-1);return Math.round(J*D)/D}class no{}const ns=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ha extends no{normalizePropertyName(O,D){return er(O)}normalizeStyleValue(O,D,k,Ie){let it="";const It=k.toString().trim();if(ns.has(D)&&0!==k&&"0"!==k)if("number"==typeof k)it="px";else{const Ot=k.match(/^[+-]?[\d\.]+([a-z]*)$/);Ot&&0==Ot[1].length&&Ie.push(function cn(J,O){return new c.vHH(3005,!1)}())}return It+it}}function yo(J,O,D,k,Ie,it,It,Ot,Zt,en,fn,vn,Bn){return{type:0,element:J,triggerName:O,isRemovalTransition:Ie,fromState:D,fromStyles:it,toState:k,toStyles:It,timelines:Ot,queriedElements:Zt,preStyleProps:en,postStyleProps:fn,totalTime:vn,errors:Bn}}const io={};class xi{constructor(O,D,k){this._triggerName=O,this.ast=D,this._stateStyles=k}match(O,D,k,Ie){return function pi(J,O,D,k,Ie){return J.some(it=>it(O,D,k,Ie))}(this.ast.matchers,O,D,k,Ie)}buildStyles(O,D,k){let Ie=this._stateStyles.get("*");return void 0!==O&&(Ie=this._stateStyles.get(O?.toString())||Ie),Ie?Ie.buildStyles(D,k):new Map}build(O,D,k,Ie,it,It,Ot,Zt,en,fn){var vn;const Bn=[],Vn=this.ast.options&&this.ast.options.params||io,Nn=this.buildStyles(k,Ot&&Ot.params||io,Bn),si=Zt&&Zt.params||io,ri=this.buildStyles(Ie,si,Bn),Zi=new Set,nr=new Map,ki=new Map,Ja="void"===Ie,ta={params:pa(si,Vn),delay:null===(vn=this.ast.options)||void 0===vn?void 0:vn.delay},zi=fn?[]:Eo(O,D,this.ast.animation,it,It,Nn,ri,ta,en,Bn);let Cr=0;if(zi.forEach(Br=>{Cr=Math.max(Br.duration+Br.delay,Cr)}),Bn.length)return yo(D,this._triggerName,k,Ie,Ja,Nn,ri,[],[],nr,ki,Cr,Bn);zi.forEach(Br=>{const fi=Br.element,Ao=gi(nr,fi,new Set);Br.preStyleProps.forEach(ba=>Ao.add(ba));const jo=gi(ki,fi,new Set);Br.postStyleProps.forEach(ba=>jo.add(ba)),fi!==D&&Zi.add(fi)});const _o=jr(Zi.values());return yo(D,this._triggerName,k,Ie,Ja,Nn,ri,zi,_o,nr,ki,Cr)}}function pa(J,O){const D=lr(O);for(const k in J)J.hasOwnProperty(k)&&null!=J[k]&&(D[k]=J[k]);return D}class is{constructor(O,D,k){this.styles=O,this.defaultParams=D,this.normalizer=k}buildStyles(O,D){const k=new Map,Ie=lr(this.defaultParams);return Object.keys(O).forEach(it=>{const It=O[it];null!==It&&(Ie[it]=It)}),this.styles.styles.forEach(it=>{"string"!=typeof it&&it.forEach((It,Ot)=>{It&&(It=Mi(It,Ie,D));const Zt=this.normalizer.normalizePropertyName(Ot,D);It=this.normalizer.normalizeStyleValue(Ot,Zt,It,D),k.set(Zt,It)})}),k}}class el{constructor(O,D,k){this.name=O,this.ast=D,this._normalizer=k,this.transitionFactories=[],this.states=new Map,D.states.forEach(Ie=>{this.states.set(Ie.name,new is(Ie.style,Ie.options&&Ie.options.params||{},k))}),as(this.states,"true","1"),as(this.states,"false","0"),D.transitions.forEach(Ie=>{this.transitionFactories.push(new xi(O,Ie,this.states))}),this.fallbackTransition=function tl(J,O,D){return new xi(J,{type:1,animation:{type:2,steps:[],options:null},matchers:[(It,Ot)=>!0],options:null,queryCount:0,depCount:0},O)}(O,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(O,D,k,Ie){return this.transitionFactories.find(It=>It.match(O,D,k,Ie))||null}matchStyles(O,D,k){return this.fallbackTransition.buildStyles(O,D,k)}}function as(J,O,D){J.has(O)?J.has(D)||J.set(D,J.get(O)):J.has(D)&&J.set(O,J.get(D))}const ro=new Rr;class qr{constructor(O,D,k){this.bodyNode=O,this._driver=D,this._normalizer=k,this._animations=new Map,this._playersById=new Map,this.players=[]}register(O,D){const k=[],it=wr(this._driver,D,k,[]);if(k.length)throw function ke(J){return new c.vHH(3503,!1)}();this._animations.set(O,it)}_buildPlayer(O,D,k){const Ie=O.element,it=Vi(0,this._normalizer,0,O.keyframes,D,k);return this._driver.animate(Ie,it,O.duration,O.delay,O.easing,[],!0)}create(O,D,k={}){const Ie=[],it=this._animations.get(O);let It;const Ot=new Map;if(it?(It=Eo(this._driver,D,it,mr,Vr,new Map,new Map,k,ro,Ie),It.forEach(fn=>{const vn=gi(Ot,fn.element,new Map);fn.postStyleProps.forEach(Bn=>vn.set(Bn,null))})):(Ie.push(function mt(){return new c.vHH(3300,!1)}()),It=[]),Ie.length)throw function St(J){return new c.vHH(3504,!1)}();Ot.forEach((fn,vn)=>{fn.forEach((Bn,Vn)=>{fn.set(Vn,this._driver.computeStyle(vn,Vn,ve.l3))})});const en=Yn(It.map(fn=>{const vn=Ot.get(fn.element);return this._buildPlayer(fn,new Map,vn)}));return this._playersById.set(O,en),en.onDestroy(()=>this.destroy(O)),this.players.push(en),en}destroy(O){const D=this._getPlayer(O);D.destroy(),this._playersById.delete(O);const k=this.players.indexOf(D);k>=0&&this.players.splice(k,1)}_getPlayer(O){const D=this._playersById.get(O);if(!D)throw function tn(J){return new c.vHH(3301,!1)}();return D}listen(O,D,k,Ie){const it=_i(D,"","","");return Fi(this._getPlayer(O),k,it,Ie),()=>{}}command(O,D,k,Ie){if("register"==k)return void this.register(O,Ie[0]);if("create"==k)return void this.create(O,D,Ie[0]||{});const it=this._getPlayer(O);switch(k){case"play":it.play();break;case"pause":it.pause();break;case"reset":it.reset();break;case"restart":it.restart();break;case"finish":it.finish();break;case"init":it.init();break;case"setPosition":it.setPosition(parseFloat(Ie[0]));break;case"destroy":this.destroy(O)}}}const Da="ng-animate-queued",ao="ng-animate-disabled",il=[],Mo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ia={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ji="__ng_removed";class oo{constructor(O,D=""){this.namespaceId=D;const k=O&&O.hasOwnProperty("value");if(this.value=function lo(J){return J??null}(k?O.value:O),k){const it=lr(O);delete it.value,this.options=it}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(O){const D=O.params;if(D){const k=this.options.params;Object.keys(D).forEach(Ie=>{null==k[Ie]&&(k[Ie]=D[Ie])})}}}const fa="void",xo=new oo(fa);class rl{constructor(O,D,k){this.id=O,this.hostElement=D,this._engine=k,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+O,Gi(D,this._hostClassName)}listen(O,D,k,Ie){if(!this._triggers.has(D))throw function En(J,O){return new c.vHH(3302,!1)}();if(null==k||0==k.length)throw function jn(J){return new c.vHH(3303,!1)}();if(!function ss(J){return"start"==J||"done"==J}(k))throw function Ln(J,O){return new c.vHH(3400,!1)}();const it=gi(this._elementListeners,O,[]),It={name:D,phase:k,callback:Ie};it.push(It);const Ot=gi(this._engine.statesByElement,O,new Map);return Ot.has(D)||(Gi(O,Si),Gi(O,Si+"-"+D),Ot.set(D,xo)),()=>{this._engine.afterFlush(()=>{const Zt=it.indexOf(It);Zt>=0&&it.splice(Zt,1),this._triggers.has(D)||Ot.delete(D)})}}register(O,D){return!this._triggers.has(O)&&(this._triggers.set(O,D),!0)}_getTrigger(O){const D=this._triggers.get(O);if(!D)throw function Kn(J){return new c.vHH(3401,!1)}();return D}trigger(O,D,k,Ie=!0){const it=this._getTrigger(D),It=new ma(this.id,D,O);let Ot=this._engine.statesByElement.get(O);Ot||(Gi(O,Si),Gi(O,Si+"-"+D),this._engine.statesByElement.set(O,Ot=new Map));let Zt=Ot.get(D);const en=new oo(k,this.id);if(!(k&&k.hasOwnProperty("value"))&&Zt&&en.absorbOptions(Zt.options),Ot.set(D,en),Zt||(Zt=xo),en.value!==fa&&Zt.value===en.value){if(!function ol(J,O){const D=Object.keys(J),k=Object.keys(O);if(D.length!=k.length)return!1;for(let Ie=0;Ie{Xi(O,si),Ii(O,ri)})}return}const Bn=gi(this._engine.playersByElement,O,[]);Bn.forEach(Nn=>{Nn.namespaceId==this.id&&Nn.triggerName==D&&Nn.queued&&Nn.destroy()});let Vn=it.matchTransition(Zt.value,en.value,O,en.params),In=!1;if(!Vn){if(!Ie)return;Vn=it.fallbackTransition,In=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:O,triggerName:D,transition:Vn,fromState:Zt,toState:en,player:It,isFallbackTransition:In}),In||(Gi(O,Da),It.onStart(()=>{Dr(O,Da)})),It.onDone(()=>{let Nn=this.players.indexOf(It);Nn>=0&&this.players.splice(Nn,1);const si=this._engine.playersByElement.get(O);if(si){let ri=si.indexOf(It);ri>=0&&si.splice(ri,1)}}),this.players.push(It),Bn.push(It),It}deregister(O){this._triggers.delete(O),this._engine.statesByElement.forEach(D=>D.delete(O)),this._elementListeners.forEach((D,k)=>{this._elementListeners.set(k,D.filter(Ie=>Ie.name!=O))})}clearElementCache(O){this._engine.statesByElement.delete(O),this._elementListeners.delete(O);const D=this._engine.playersByElement.get(O);D&&(D.forEach(k=>k.destroy()),this._engine.playersByElement.delete(O))}_signalRemovalForInnerTriggers(O,D){const k=this._engine.driver.query(O,Tr,!0);k.forEach(Ie=>{if(Ie[ji])return;const it=this._engine.fetchNamespacesByElement(Ie);it.size?it.forEach(It=>It.triggerLeaveAnimation(Ie,D,!1,!0)):this.clearElementCache(Ie)}),this._engine.afterFlushAnimationsDone(()=>k.forEach(Ie=>this.clearElementCache(Ie)))}triggerLeaveAnimation(O,D,k,Ie){const it=this._engine.statesByElement.get(O),It=new Map;if(it){const Ot=[];if(it.forEach((Zt,en)=>{if(It.set(en,Zt.value),this._triggers.has(en)){const fn=this.trigger(O,en,fa,Ie);fn&&Ot.push(fn)}}),Ot.length)return this._engine.markElementAsRemoved(this.id,O,!0,D,It),k&&Yn(Ot).onDone(()=>this._engine.processLeaveNode(O)),!0}return!1}prepareLeaveAnimationListeners(O){const D=this._elementListeners.get(O),k=this._engine.statesByElement.get(O);if(D&&k){const Ie=new Set;D.forEach(it=>{const It=it.name;if(Ie.has(It))return;Ie.add(It);const Zt=this._triggers.get(It).fallbackTransition,en=k.get(It)||xo,fn=new oo(fa),vn=new ma(this.id,It,O);this._engine.totalQueuedPlayers++,this._queue.push({element:O,triggerName:It,transition:Zt,fromState:en,toState:fn,player:vn,isFallbackTransition:!0})})}}removeNode(O,D){const k=this._engine;if(O.childElementCount&&this._signalRemovalForInnerTriggers(O,D),this.triggerLeaveAnimation(O,D,!0))return;let Ie=!1;if(k.totalAnimations){const it=k.players.length?k.playersByQueriedElement.get(O):[];if(it&&it.length)Ie=!0;else{let It=O;for(;It=It.parentNode;)if(k.statesByElement.get(It)){Ie=!0;break}}}if(this.prepareLeaveAnimationListeners(O),Ie)k.markElementAsRemoved(this.id,O,!1,D);else{const it=O[ji];(!it||it===Mo)&&(k.afterFlush(()=>this.clearElementCache(O)),k.destroyInnerAnimations(O),k._onRemovalComplete(O,D))}}insertNode(O,D){Gi(O,this._hostClassName)}drainQueuedTransitions(O){const D=[];return this._queue.forEach(k=>{const Ie=k.player;if(Ie.destroyed)return;const it=k.element,It=this._elementListeners.get(it);It&&It.forEach(Ot=>{if(Ot.name==k.triggerName){const Zt=_i(it,k.triggerName,k.fromState.value,k.toState.value);Zt._data=O,Fi(k.player,Ot.phase,Zt,Ot.callback)}}),Ie.markedForDestroy?this._engine.afterFlush(()=>{Ie.destroy()}):D.push(k)}),this._queue=[],D.sort((k,Ie)=>{const it=k.transition.ast.depCount,It=Ie.transition.ast.depCount;return 0==it||0==It?it-It:this._engine.driver.containsElement(k.element,Ie.element)?1:-1})}destroy(O){this.players.forEach(D=>D.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,O)}elementContainsData(O){let D=!1;return this._elementListeners.has(O)&&(D=!0),D=!!this._queue.find(k=>k.element===O)||D,D}}class so{constructor(O,D,k){this.bodyNode=O,this.driver=D,this._normalizer=k,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Ie,it)=>{}}_onRemovalComplete(O,D){this.onRemovalComplete(O,D)}get queuedPlayers(){const O=[];return this._namespaceList.forEach(D=>{D.players.forEach(k=>{k.queued&&O.push(k)})}),O}createNamespace(O,D){const k=new rl(O,D,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,D)?this._balanceNamespaceList(k,D):(this.newHostElements.set(D,k),this.collectEnterElement(D)),this._namespaceLookup[O]=k}_balanceNamespaceList(O,D){const k=this._namespaceList,Ie=this.namespacesByHostElement;if(k.length-1>=0){let It=!1,Ot=this.driver.getParentElement(D);for(;Ot;){const Zt=Ie.get(Ot);if(Zt){const en=k.indexOf(Zt);k.splice(en+1,0,O),It=!0;break}Ot=this.driver.getParentElement(Ot)}It||k.unshift(O)}else k.push(O);return Ie.set(D,O),O}register(O,D){let k=this._namespaceLookup[O];return k||(k=this.createNamespace(O,D)),k}registerTrigger(O,D,k){let Ie=this._namespaceLookup[O];Ie&&Ie.register(D,k)&&this.totalAnimations++}destroy(O,D){if(!O)return;const k=this._fetchNamespace(O);this.afterFlush(()=>{this.namespacesByHostElement.delete(k.hostElement),delete this._namespaceLookup[O];const Ie=this._namespaceList.indexOf(k);Ie>=0&&this._namespaceList.splice(Ie,1)}),this.afterFlushAnimationsDone(()=>k.destroy(D))}_fetchNamespace(O){return this._namespaceLookup[O]}fetchNamespacesByElement(O){const D=new Set,k=this.statesByElement.get(O);if(k)for(let Ie of k.values())if(Ie.namespaceId){const it=this._fetchNamespace(Ie.namespaceId);it&&D.add(it)}return D}trigger(O,D,k,Ie){if(Pa(D)){const it=this._fetchNamespace(O);if(it)return it.trigger(D,k,Ie),!0}return!1}insertNode(O,D,k,Ie){if(!Pa(D))return;const it=D[ji];if(it&&it.setForRemoval){it.setForRemoval=!1,it.setForMove=!0;const It=this.collectedLeaveElements.indexOf(D);It>=0&&this.collectedLeaveElements.splice(It,1)}if(O){const It=this._fetchNamespace(O);It&&It.insertNode(D,k)}Ie&&this.collectEnterElement(D)}collectEnterElement(O){this.collectedEnterElements.push(O)}markElementAsDisabled(O,D){D?this.disabledNodes.has(O)||(this.disabledNodes.add(O),Gi(O,ao)):this.disabledNodes.has(O)&&(this.disabledNodes.delete(O),Dr(O,ao))}removeNode(O,D,k,Ie){if(Pa(D)){const it=O?this._fetchNamespace(O):null;if(it?it.removeNode(D,Ie):this.markElementAsRemoved(O,D,!1,Ie),k){const It=this.namespacesByHostElement.get(D);It&&It.id!==O&&It.removeNode(D,Ie)}}else this._onRemovalComplete(D,Ie)}markElementAsRemoved(O,D,k,Ie,it){this.collectedLeaveElements.push(D),D[ji]={namespaceId:O,setForRemoval:Ie,hasAnimation:k,removedBeforeQueried:!1,previousTriggersValues:it}}listen(O,D,k,Ie,it){return Pa(D)?this._fetchNamespace(O).listen(D,k,Ie,it):()=>{}}_buildInstruction(O,D,k,Ie,it){return O.transition.build(this.driver,O.element,O.fromState.value,O.toState.value,k,Ie,O.fromState.options,O.toState.options,D,it)}destroyInnerAnimations(O){let D=this.driver.query(O,Tr,!0);D.forEach(k=>this.destroyActiveAnimationsForElement(k)),0!=this.playersByQueriedElement.size&&(D=this.driver.query(O,ar,!0),D.forEach(k=>this.finishActiveQueriedAnimationOnElement(k)))}destroyActiveAnimationsForElement(O){const D=this.playersByElement.get(O);D&&D.forEach(k=>{k.queued?k.markedForDestroy=!0:k.destroy()})}finishActiveQueriedAnimationOnElement(O){const D=this.playersByQueriedElement.get(O);D&&D.forEach(k=>k.finish())}whenRenderingDone(){return new Promise(O=>{if(this.players.length)return Yn(this.players).onDone(()=>O());O()})}processLeaveNode(O){var D;const k=O[ji];if(k&&k.setForRemoval){if(O[ji]=Mo,k.namespaceId){this.destroyInnerAnimations(O);const Ie=this._fetchNamespace(k.namespaceId);Ie&&Ie.clearElementCache(O)}this._onRemovalComplete(O,k.setForRemoval)}null!==(D=O.classList)&&void 0!==D&&D.contains(ao)&&this.markElementAsDisabled(O,!1),this.driver.query(O,".ng-animate-disabled",!0).forEach(Ie=>{this.markElementAsDisabled(Ie,!1)})}flush(O=-1){let D=[];if(this.newHostElements.size&&(this.newHostElements.forEach((k,Ie)=>this._balanceNamespaceList(k,Ie)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let k=0;kk()),this._flushFns=[],this._whenQuietFns.length){const k=this._whenQuietFns;this._whenQuietFns=[],D.length?Yn(D).onDone(()=>{k.forEach(Ie=>Ie())}):k.forEach(Ie=>Ie())}}reportError(O){throw function li(J){return new c.vHH(3402,!1)}()}_flushAnimations(O,D){const k=new Rr,Ie=[],it=new Map,It=[],Ot=new Map,Zt=new Map,en=new Map,fn=new Set;this.disabledNodes.forEach(yn=>{fn.add(yn);const Mn=this.driver.query(yn,".ng-animate-queued",!0);for(let Sn=0;Sn{const Sn=mr+Nn++;In.set(Mn,Sn),yn.forEach(Zn=>Gi(Zn,Sn))});const si=[],ri=new Set,Zi=new Set;for(let yn=0;ynri.add(Zn)):Zi.add(Mn))}const nr=new Map,ki=Hr(Bn,Array.from(ri));ki.forEach((yn,Mn)=>{const Sn=Vr+Nn++;nr.set(Mn,Sn),yn.forEach(Zn=>Gi(Zn,Sn))}),O.push(()=>{Vn.forEach((yn,Mn)=>{const Sn=In.get(Mn);yn.forEach(Zn=>Dr(Zn,Sn))}),ki.forEach((yn,Mn)=>{const Sn=nr.get(Mn);yn.forEach(Zn=>Dr(Zn,Sn))}),si.forEach(yn=>{this.processLeaveNode(yn)})});const Ja=[],ta=[];for(let yn=this._namespaceList.length-1;yn>=0;yn--)this._namespaceList[yn].drainQueuedTransitions(D).forEach(Sn=>{const Zn=Sn.player,yi=Sn.element;if(Ja.push(Zn),this.collectedEnterElements.length){const Wi=yi[ji];if(Wi&&Wi.setForMove){if(Wi.previousTriggersValues&&Wi.previousTriggersValues.has(Sn.triggerName)){const $a=Wi.previousTriggersValues.get(Sn.triggerName),br=this.statesByElement.get(Sn.element);if(br&&br.has(Sn.triggerName)){const Go=br.get(Sn.triggerName);Go.value=$a,br.set(Sn.triggerName,Go)}}return void Zn.destroy()}}const na=!vn||!this.driver.containsElement(vn,yi),Sr=nr.get(yi),Ir=In.get(yi),mi=this._buildInstruction(Sn,k,Ir,Sr,na);if(mi.errors&&mi.errors.length)return void ta.push(mi);if(na)return Zn.onStart(()=>Xi(yi,mi.fromStyles)),Zn.onDestroy(()=>Ii(yi,mi.toStyles)),void Ie.push(Zn);if(Sn.isFallbackTransition)return Zn.onStart(()=>Xi(yi,mi.fromStyles)),Zn.onDestroy(()=>Ii(yi,mi.toStyles)),void Ie.push(Zn);const bl=[];mi.timelines.forEach(Wi=>{Wi.stretchStartingKeyframe=!0,this.disabledNodes.has(Wi.element)||bl.push(Wi)}),mi.timelines=bl,k.append(yi,mi.timelines),It.push({instruction:mi,player:Zn,element:yi}),mi.queriedElements.forEach(Wi=>gi(Ot,Wi,[]).push(Zn)),mi.preStyleProps.forEach((Wi,$a)=>{if(Wi.size){let br=Zt.get($a);br||Zt.set($a,br=new Set),Wi.forEach((Go,Zo)=>br.add(Zo))}}),mi.postStyleProps.forEach((Wi,$a)=>{let br=en.get($a);br||en.set($a,br=new Set),Wi.forEach((Go,Zo)=>br.add(Zo))})});if(ta.length){const yn=[];ta.forEach(Mn=>{yn.push(function Wn(J,O){return new c.vHH(3505,!1)}())}),Ja.forEach(Mn=>Mn.destroy()),this.reportError(yn)}const zi=new Map,Cr=new Map;It.forEach(yn=>{const Mn=yn.element;k.has(Mn)&&(Cr.set(Mn,Mn),this._beforeAnimationBuild(yn.player.namespaceId,yn.instruction,zi))}),Ie.forEach(yn=>{const Mn=yn.element;this._getPreviousPlayers(Mn,!1,yn.namespaceId,yn.triggerName,null).forEach(Zn=>{gi(zi,Mn,[]).push(Zn),Zn.destroy()})});const _o=si.filter(yn=>tr(yn,Zt,en)),Br=new Map;Do(Br,this.driver,Zi,en,ve.l3).forEach(yn=>{tr(yn,Zt,en)&&_o.push(yn)});const Ao=new Map;Vn.forEach((yn,Mn)=>{Do(Ao,this.driver,new Set(yn),Zt,ve.k1)}),_o.forEach(yn=>{var Mn,Sn;const Zn=Br.get(yn),yi=Ao.get(yn);Br.set(yn,new Map([...Array.from(null!==(Mn=Zn?.entries())&&void 0!==Mn?Mn:[]),...Array.from(null!==(Sn=yi?.entries())&&void 0!==Sn?Sn:[])]))});const jo=[],ba=[],Cl={};It.forEach(yn=>{const{element:Mn,player:Sn,instruction:Zn}=yn;if(k.has(Mn)){if(fn.has(Mn))return Sn.onDestroy(()=>Ii(Mn,Zn.toStyles)),Sn.disabled=!0,Sn.overrideTotalTime(Zn.totalTime),void Ie.push(Sn);let yi=Cl;if(Cr.size>1){let Sr=Mn;const Ir=[];for(;Sr=Sr.parentNode;){const mi=Cr.get(Sr);if(mi){yi=mi;break}Ir.push(Sr)}Ir.forEach(mi=>Cr.set(mi,yi))}const na=this._buildAnimation(Sn.namespaceId,Zn,zi,it,Ao,Br);if(Sn.setRealPlayer(na),yi===Cl)jo.push(Sn);else{const Sr=this.playersByElement.get(yi);Sr&&Sr.length&&(Sn.parentPlayer=Yn(Sr)),Ie.push(Sn)}}else Xi(Mn,Zn.fromStyles),Sn.onDestroy(()=>Ii(Mn,Zn.toStyles)),ba.push(Sn),fn.has(Mn)&&Ie.push(Sn)}),ba.forEach(yn=>{const Mn=it.get(yn.element);if(Mn&&Mn.length){const Sn=Yn(Mn);yn.setRealPlayer(Sn)}}),Ie.forEach(yn=>{yn.parentPlayer?yn.syncPlayerEvents(yn.parentPlayer):yn.destroy()});for(let yn=0;yn!na.destroyed);yi.length?al(this,Mn,yi):this.processLeaveNode(Mn)}return si.length=0,jo.forEach(yn=>{this.players.push(yn),yn.onDone(()=>{yn.destroy();const Mn=this.players.indexOf(yn);this.players.splice(Mn,1)}),yn.play()}),jo}elementContainsData(O,D){let k=!1;const Ie=D[ji];return Ie&&Ie.setForRemoval&&(k=!0),this.playersByElement.has(D)&&(k=!0),this.playersByQueriedElement.has(D)&&(k=!0),this.statesByElement.has(D)&&(k=!0),this._fetchNamespace(O).elementContainsData(D)||k}afterFlush(O){this._flushFns.push(O)}afterFlushAnimationsDone(O){this._whenQuietFns.push(O)}_getPreviousPlayers(O,D,k,Ie,it){let It=[];if(D){const Ot=this.playersByQueriedElement.get(O);Ot&&(It=Ot)}else{const Ot=this.playersByElement.get(O);if(Ot){const Zt=!it||it==fa;Ot.forEach(en=>{en.queued||!Zt&&en.triggerName!=Ie||It.push(en)})}}return(k||Ie)&&(It=It.filter(Ot=>!(k&&k!=Ot.namespaceId||Ie&&Ie!=Ot.triggerName))),It}_beforeAnimationBuild(O,D,k){const it=D.element,It=D.isRemovalTransition?void 0:O,Ot=D.isRemovalTransition?void 0:D.triggerName;for(const Zt of D.timelines){const en=Zt.element,fn=en!==it,vn=gi(k,en,[]);this._getPreviousPlayers(en,fn,It,Ot,D.toState).forEach(Vn=>{const In=Vn.getRealPlayer();In.beforeDestroy&&In.beforeDestroy(),Vn.destroy(),vn.push(Vn)})}Xi(it,D.fromStyles)}_buildAnimation(O,D,k,Ie,it,It){const Ot=D.triggerName,Zt=D.element,en=[],fn=new Set,vn=new Set,Bn=D.timelines.map(In=>{const Nn=In.element;fn.add(Nn);const si=Nn[ji];if(si&&si.removedBeforeQueried)return new ve.ZN(In.duration,In.delay);const ri=Nn!==Zt,Zi=function ls(J){const O=[];return So(J,O),O}((k.get(Nn)||il).map(zi=>zi.getRealPlayer())).filter(zi=>!!zi.element&&zi.element===Nn),nr=it.get(Nn),ki=It.get(Nn),Ja=Vi(0,this._normalizer,0,In.keyframes,nr,ki),ta=this._buildPlayer(In,Ja,Zi);if(In.subTimeline&&Ie&&vn.add(Nn),ri){const zi=new ma(O,Ot,Nn);zi.setRealPlayer(ta),en.push(zi)}return ta});en.forEach(In=>{gi(this.playersByQueriedElement,In.element,[]).push(In),In.onDone(()=>function os(J,O,D){let k=J.get(O);if(k){if(k.length){const Ie=k.indexOf(D);k.splice(Ie,1)}0==k.length&&J.delete(O)}return k}(this.playersByQueriedElement,In.element,In))}),fn.forEach(In=>Gi(In,gr));const Vn=Yn(Bn);return Vn.onDestroy(()=>{fn.forEach(In=>Dr(In,gr)),Ii(Zt,D.toStyles)}),vn.forEach(In=>{gi(Ie,In,[]).push(Vn)}),Vn}_buildPlayer(O,D,k){return D.length>0?this.driver.animate(O.element,D,O.duration,O.delay,O.easing,k):new ve.ZN(O.duration,O.delay)}}class ma{constructor(O,D,k){this.namespaceId=O,this.triggerName=D,this.element=k,this._player=new ve.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(O){this._containsRealPlayer||(this._player=O,this._queuedCallbacks.forEach((D,k)=>{D.forEach(Ie=>Fi(O,k,void 0,Ie))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(O.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(O){this.totalTime=O}syncPlayerEvents(O){const D=this._player;D.triggerCallback&&O.onStart(()=>D.triggerCallback("start")),O.onDone(()=>this.finish()),O.onDestroy(()=>this.destroy())}_queueEvent(O,D){gi(this._queuedCallbacks,O,[]).push(D)}onDone(O){this.queued&&this._queueEvent("done",O),this._player.onDone(O)}onStart(O){this.queued&&this._queueEvent("start",O),this._player.onStart(O)}onDestroy(O){this.queued&&this._queueEvent("destroy",O),this._player.onDestroy(O)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(O){this.queued||this._player.setPosition(O)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(O){const D=this._player;D.triggerCallback&&D.triggerCallback(O)}}function Pa(J){return J&&1===J.nodeType}function Qr(J,O){const D=J.style.display;return J.style.display=O??"none",D}function Do(J,O,D,k,Ie){const it=[];D.forEach(Zt=>it.push(Qr(Zt)));const It=[];k.forEach((Zt,en)=>{const fn=new Map;Zt.forEach(vn=>{const Bn=O.computeStyle(en,vn,Ie);fn.set(vn,Bn),(!Bn||0==Bn.length)&&(en[ji]=Ia,It.push(en))}),J.set(en,fn)});let Ot=0;return D.forEach(Zt=>Qr(Zt,it[Ot++])),It}function Hr(J,O){const D=new Map;if(J.forEach(Ot=>D.set(Ot,[])),0==O.length)return D;const Ie=new Set(O),it=new Map;function It(Ot){if(!Ot)return 1;let Zt=it.get(Ot);if(Zt)return Zt;const en=Ot.parentNode;return Zt=D.has(en)?en:Ie.has(en)?1:It(en),it.set(Ot,Zt),Zt}return O.forEach(Ot=>{const Zt=It(Ot);1!==Zt&&D.get(Zt).push(Ot)}),D}function Gi(J,O){var D;null===(D=J.classList)||void 0===D||D.add(O)}function Dr(J,O){var D;null===(D=J.classList)||void 0===D||D.remove(O)}function al(J,O,D){Yn(D).onDone(()=>J.processLeaveNode(O))}function So(J,O){for(let D=0;DIe.add(it)):O.set(J,k),D.delete(J),!0}class Ra{constructor(O,D,k){this.bodyNode=O,this._driver=D,this._normalizer=k,this._triggerCache={},this.onRemovalComplete=(Ie,it)=>{},this._transitionEngine=new so(O,D,k),this._timelineEngine=new qr(O,D,k),this._transitionEngine.onRemovalComplete=(Ie,it)=>this.onRemovalComplete(Ie,it)}registerTrigger(O,D,k,Ie,it){const It=O+"-"+Ie;let Ot=this._triggerCache[It];if(!Ot){const Zt=[],fn=wr(this._driver,it,Zt,[]);if(Zt.length)throw function At(J,O){return new c.vHH(3404,!1)}();Ot=function rs(J,O,D){return new el(J,O,D)}(Ie,fn,this._normalizer),this._triggerCache[It]=Ot}this._transitionEngine.registerTrigger(D,Ie,Ot)}register(O,D){this._transitionEngine.register(O,D)}destroy(O,D){this._transitionEngine.destroy(O,D)}onInsert(O,D,k,Ie){this._transitionEngine.insertNode(O,D,k,Ie)}onRemove(O,D,k,Ie){this._transitionEngine.removeNode(O,D,Ie||!1,k)}disableAnimations(O,D){this._transitionEngine.markElementAsDisabled(O,D)}process(O,D,k,Ie){if("@"==k.charAt(0)){const[it,It]=Pr(k);this._timelineEngine.command(it,D,It,Ie)}else this._transitionEngine.trigger(O,D,k,Ie)}listen(O,D,k,Ie,it){if("@"==k.charAt(0)){const[It,Ot]=Pr(k);return this._timelineEngine.listen(It,D,Ot,it)}return this._transitionEngine.listen(O,D,k,Ie,it)}flush(O=-1){this._transitionEngine.flush(O)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Oa=(()=>{class J{constructor(D,k,Ie){this._element=D,this._startStyles=k,this._endStyles=Ie,this._state=0;let it=J.initialStylesByElement.get(D);it||J.initialStylesByElement.set(D,it=new Map),this._initialStyles=it}start(){this._state<1&&(this._startStyles&&Ii(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ii(this._element,this._initialStyles),this._endStyles&&(Ii(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(J.initialStylesByElement.delete(this._element),this._startStyles&&(Xi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xi(this._element,this._endStyles),this._endStyles=null),Ii(this._element,this._initialStyles),this._state=3)}}return J.initialStylesByElement=new WeakMap,J})();function Ha(J){let O=null;return J.forEach((D,k)=>{(function co(J){return"display"===J||"position"===J})(k)&&(O=O||new Map,O.set(k,D))}),O}class zr{constructor(O,D,k,Ie){this.element=O,this.keyframes=D,this.options=k,this._specialStyles=Ie,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=k.duration,this._delay=k.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(O=>O()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const O=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,O,this.options),this._finalKeyframe=O.length?O[O.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(O){const D=[];return O.forEach(k=>{D.push(Object.fromEntries(k))}),D}_triggerWebAnimation(O,D,k){return O.animate(this._convertKeyframesToObject(D),k)}onStart(O){this._originalOnStartFns.push(O),this._onStartFns.push(O)}onDone(O){this._originalOnDoneFns.push(O),this._onDoneFns.push(O)}onDestroy(O){this._onDestroyFns.push(O)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(O=>O()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(O=>O()),this._onDestroyFns=[])}setPosition(O){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=O*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const O=new Map;this.hasStarted()&&this._finalKeyframe.forEach((k,Ie)=>{"offset"!==Ie&&O.set(Ie,this._finished?k:pt(this.element,Ie))}),this.currentSnapshot=O}triggerCallback(O){const D="start"===O?this._onStartFns:this._onDoneFns;D.forEach(k=>k()),D.length=0}}class sl{validateStyleProperty(O){return!0}validateAnimatableStyleProperty(O){return!0}matchesElement(O,D){return!1}containsElement(O,D){return Et(O,D)}getParentElement(O){return wt(O)}query(O,D,k){return Wt(O,D,k)}computeStyle(O,D,k){return window.getComputedStyle(O)[D]}animate(O,D,k,Ie,it,It=[]){const Zt={duration:k,delay:Ie,fill:0==Ie?"both":"forwards"};it&&(Zt.easing=it);const en=new Map,fn=It.filter(Vn=>Vn instanceof zr);(function Ne(J,O){return 0===J||0===O})(k,Ie)&&fn.forEach(Vn=>{Vn.currentSnapshot.forEach((In,Nn)=>en.set(Nn,In))});let vn=function Yr(J){return J.length?J[0]instanceof Map?J:J.map(O=>Fr(O)):[]}(D).map(Vn=>$i(Vn));vn=function ut(J,O,D){if(D.size&&O.length){let k=O[0],Ie=[];if(D.forEach((it,It)=>{k.has(It)||Ie.push(It),k.set(It,it)}),Ie.length)for(let it=1;itIt.set(Ot,pt(J,Ot)))}}return O}(O,vn,en);const Bn=function Kr(J,O){let D=null,k=null;return Array.isArray(O)&&O.length?(D=Ha(O[0]),O.length>1&&(k=Ha(O[O.length-1]))):O instanceof Map&&(D=Ha(O)),D||k?new Oa(J,D,k):null}(O,vn);return new zr(O,vn,Zt,Bn)}}let cs=(()=>{class J extends ve._j{constructor(D,k){super(),this._nextAnimationId=0,this._renderer=D.createRenderer(k.body,{id:"0",encapsulation:c.ifc.None,styles:[],data:{animation:[]}})}build(D){const k=this._nextAnimationId.toString();this._nextAnimationId++;const Ie=Array.isArray(D)?(0,ve.vP)(D):D;return Io(this._renderer,null,k,"register",[Ie]),new ds(k,this._renderer)}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(c.FYo),c.LFG(V.K0))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})();class ds extends ve.LC{constructor(O,D){super(),this._id=O,this._renderer=D}create(O,D){return new us(this._id,O,D||{},this._renderer)}}class us{constructor(O,D,k,Ie){this.id=O,this.element=D,this._renderer=Ie,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",k)}_listen(O,D){return this._renderer.listen(this.element,`@@${this.id}:${O}`,D)}_command(O,...D){return Io(this._renderer,this.element,this.id,O,D)}onDone(O){this._listen("done",O)}onStart(O){this._listen("start",O)}onDestroy(O){this._listen("destroy",O)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(O){this._command("setPosition",O)}getPosition(){var O,D;return null!==(O=null===(D=this._renderer.engine.players[+this.id])||void 0===D?void 0:D.getPosition())&&void 0!==O?O:0}}function Io(J,O,D,k,Ie){return J.setProperty(O,`@@${D}:${k}`,Ie)}const Ti="@.disabled";let Ba=(()=>{class J{constructor(D,k,Ie){this.delegate=D,this.engine=k,this._zone=Ie,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),k.onRemovalComplete=(it,It)=>{const Ot=It?.parentNode(it);Ot&&It.removeChild(Ot,it)}}createRenderer(D,k){const it=this.delegate.createRenderer(D,k);if(!(D&&k&&k.data&&k.data.animation)){let fn=this._rendererCache.get(it);return fn||(fn=new Po("",it,this.engine),this._rendererCache.set(it,fn)),fn}const It=k.id,Ot=k.id+"-"+this._currentId;this._currentId++,this.engine.register(Ot,D);const Zt=fn=>{Array.isArray(fn)?fn.forEach(Zt):this.engine.registerTrigger(It,Ot,D,fn.name,fn)};return k.data.animation.forEach(Zt),new Na(this,Ot,it,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(D,k,Ie){D>=0&&Dk(Ie)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(it=>{const[It,Ot]=it;It(Ot)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([k,Ie]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(c.FYo),c.LFG(Ra),c.LFG(c.R0b))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})();class Po{constructor(O,D,k){this.namespaceId=O,this.delegate=D,this.engine=k,this.destroyNode=this.delegate.destroyNode?Ie=>D.destroyNode(Ie):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(O,D){return this.delegate.createElement(O,D)}createComment(O){return this.delegate.createComment(O)}createText(O){return this.delegate.createText(O)}appendChild(O,D){this.delegate.appendChild(O,D),this.engine.onInsert(this.namespaceId,D,O,!1)}insertBefore(O,D,k,Ie=!0){this.delegate.insertBefore(O,D,k),this.engine.onInsert(this.namespaceId,D,O,Ie)}removeChild(O,D,k){this.engine.onRemove(this.namespaceId,D,this.delegate,k)}selectRootElement(O,D){return this.delegate.selectRootElement(O,D)}parentNode(O){return this.delegate.parentNode(O)}nextSibling(O){return this.delegate.nextSibling(O)}setAttribute(O,D,k,Ie){this.delegate.setAttribute(O,D,k,Ie)}removeAttribute(O,D,k){this.delegate.removeAttribute(O,D,k)}addClass(O,D){this.delegate.addClass(O,D)}removeClass(O,D){this.delegate.removeClass(O,D)}setStyle(O,D,k,Ie){this.delegate.setStyle(O,D,k,Ie)}removeStyle(O,D,k){this.delegate.removeStyle(O,D,k)}setProperty(O,D,k){"@"==D.charAt(0)&&D==Ti?this.disableAnimations(O,!!k):this.delegate.setProperty(O,D,k)}setValue(O,D){this.delegate.setValue(O,D)}listen(O,D,k){return this.delegate.listen(O,D,k)}disableAnimations(O,D){this.engine.disableAnimations(O,D)}}class Na extends Po{constructor(O,D,k,Ie){super(D,k,Ie),this.factory=O,this.namespaceId=D}setProperty(O,D,k){"@"==D.charAt(0)?"."==D.charAt(1)&&D==Ti?this.disableAnimations(O,k=void 0===k||!!k):this.engine.process(this.namespaceId,O,D.slice(1),k):this.delegate.setProperty(O,D,k)}listen(O,D,k){if("@"==D.charAt(0)){const Ie=function ka(J){switch(J){case"body":return document.body;case"document":return document;case"window":return window;default:return J}}(O);let it=D.slice(1),It="";return"@"!=it.charAt(0)&&([it,It]=function ga(J){const O=J.indexOf(".");return[J.substring(0,O),J.slice(O+1)]}(it)),this.engine.listen(this.namespaceId,Ie,it,It,Ot=>{this.factory.scheduleListenerCallback(Ot._data||-1,k,Ot)})}return this.delegate.listen(O,D,k)}}const ps=[{provide:ve._j,useClass:cs},{provide:no,useFactory:function Ro(){return new ha}},{provide:Ra,useClass:(()=>{class J extends Ra{constructor(D,k,Ie,it){super(D.body,k,Ie)}ngOnDestroy(){this.flush()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(V.K0),c.LFG(zn),c.LFG(no),c.LFG(c.z2F))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})()},{provide:c.FYo,useFactory:function hs(J,O,D){return new Ba(J,O,D)},deps:[e.se,Ra,c.R0b]}],Va=[{provide:zn,useFactory:()=>new sl},{provide:c.QbO,useValue:"BrowserAnimations"},...ps],Fa=[{provide:zn,useClass:wn},{provide:c.QbO,useValue:"NoopAnimations"},...ps];let _a=(()=>{class J{static withConfig(D){return{ngModule:J,providers:D.disableAnimations?Fa:Va}}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({providers:Va,imports:[e.b2]}),J})(),ho=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({providers:[C.e8],imports:[V.ez]}),J})();var Aa=h(81847),Ul=h(4732),cl=h(94856),ni=h(55857),jl=h(37240),Gl=h(15592),Zl=h(75234),zl=h(37380),dl=h(34904),Wl=h(85243),ul=h(68056),Ua=h(24219),Yl=h(25828),hl=h(10369),Di=h(14336),ja=h(25309),Ga=h(86353),Jl=h(3246),pl=h(57788),dr=h(80774),X=h(25610),ne=h(61639);let fe=(()=>{class J{constructor(){this.handlers=new Map,this.cachedComponents=new Set([Aa.y.id,Ul.G.id,cl.c.id,ul.z.id,Ua.z.id,hl.w.id,Jl.T.id,Zl.y.id,Gl.u.id,jl.q.id,ne.C.id,ni.W.id,Di.Z.id,zl.o.id,dl.f.id,X._.id,Wl.j.id,Yl.t.id,pl.g.id,dr.F.id,ja.Y.id,Ga.P.id]),this.cacheTimeMs=3e5,this.isUserNavigatingBack=!1}shouldReuseRoute(D,k){return D.routeConfig===k.routeConfig}retrieve(D){const k=this.getKey(D);return this.handlers.has(k)?this.handlers.get(k).routeHandle:null}shouldAttach(D){if(!this.isUserNavigatingBack||!D.component)return!1;const k=this.handlers.get(this.getKey(D));return k&&this.getCurrentTimestamp()-k.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();this.handlers.set(this.getKey(D),{routeHandle:k,saveTimeStamp:this.getCurrentTimestamp()})}setLastNavigationType(D){this.isUserNavigatingBack="back"===D}getComponentId(D){return D.id}getKey(D){return D.pathFromRoot.map(k=>k.url.map(Ie=>Ie.toString())).join("/")}getCurrentTimestamp(){return+Date.now()}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac}),J})();const He=new c.OlP("perun-api-service");let dt=(()=>{class J{constructor(D,k,Ie,it,It){this.http=D,this.storeService=k,this.authzSevice=Ie,this.titleService=it,this.utilsService=It}initializeColors(D,k){return new Promise(Ie=>{k.forEach(it=>{const It=this.storeService.get("theme",it.configValue);document.documentElement.style.setProperty(it.cssVariable,It)}),D.forEach(it=>{const It=this.storeService.get("theme",it.configValue);document.documentElement.style.setProperty(it.cssVariable,It),this.setEntityTheme(it.entity,It)}),Ie()})}setEntityTheme(D,k){const Ie=function yt(J){return[Ht(tinycolor(J).lighten(52),"50"),Ht(tinycolor(J).lighten(37),"100"),Ht(tinycolor(J).lighten(26),"200"),Ht(tinycolor(J).lighten(12),"300"),Ht(tinycolor(J).lighten(6),"400"),Ht(tinycolor(J),"500"),Ht(tinycolor(J).darken(6),"600"),Ht(tinycolor(J).darken(12),"700"),Ht(tinycolor(J).darken(18),"800"),Ht(tinycolor(J).darken(24),"900"),Ht(tinycolor(J).lighten(50).saturate(30),"A100"),Ht(tinycolor(J).lighten(30).saturate(30),"A200"),Ht(tinycolor(J).lighten(10).saturate(15),"A400"),Ht(tinycolor(J).lighten(5).saturate(5),"A700")]}(k);for(const it of Ie){const Zt=`--${D}-theme-primary-contrast-${it.name}`,en=it.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${D}-theme-primary-${it.name}`,`${it.red},${it.green},${it.blue}`),document.documentElement.style.setProperty(Zt,en)}}loadAppDefaultConfig(){return new Promise(D=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(k=>{this.storeService.setDefaultConfig(k),D()})})}loadAppInstanceConfig(){return new Promise(D=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(k=>{this.storeService.setInstanceConfig(k);const Ie=document.location.hostname;k?.brandings?.[Ie]&&this.storeService.setBanding(Ie),D()},()=>{D()})})}getNoCacheHeaders(){return new me.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(D=>{const k=document.querySelector("link[rel*='icon']")||document.createElement("link");k.type="image/x-icon",k.rel="shortcut icon",k.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(k),D()})}setApiUrl(){return new Promise(D=>{let k=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(k=k.replace("oauth","ba")),this.authzSevice.configuration.basePath=k,this.titleService.setTitle(this.storeService.get("document_title","en")),D()})}loadAppsConfig(){return new Promise((D,k)=>{this.utilsService.getAppsConfig().subscribe(Ie=>{this.storeService.setAppsConfig(Ie),D()},Ie=>k(Ie))})}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(me.eN),c.LFG(C.d6),c.LFG(g.Ct),c.LFG(e.Dx),c.LFG(g.FW))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})();function Ht(J,O){const D=tinycolor(J),k=D.toRgb();return{name:O,hex:D.toHexString(),darkContrast:D.isLight(),red:k.r,green:k.g,blue:k.b}}let Jt=(()=>{class J{constructor(D,k){this.data=D,this.location=k}redirect(){this.location.go("/"),location.reload()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(_.WI),c.Y36(V.Ye))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(D,k){1&D&&(c.TgZ(0,"h2"),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"p"),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"div")(7,"button",0),c.NdJ("click",function(){return k.redirect()}),c._uU(8),c.ALo(9,"translate"),c.qZA()()),2&D&&(c.xp6(1),c.hij(" ",c.lcZ(2,3,k.data.title),"\n"),c.xp6(3),c.hij(" ",c.lcZ(5,5,k.data.message),"\n"),c.xp6(4),c.hij(" ",c.lcZ(9,7,k.data.action)," "))},dependencies:[U.X$]}),J})(),un=(()=>{class J{constructor(D,k){this.dialogRef=D,this.data=k}refresh(){location.reload()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(_.so),c.Y36(_.WI))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(D,k){1&D&&(c.TgZ(0,"h2"),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.TgZ(3,"p"),c._uU(4),c.ALo(5,"translate"),c.qZA(),c.TgZ(6,"div")(7,"button",0),c.NdJ("click",function(){return k.refresh()}),c._uU(8),c.ALo(9,"translate"),c.qZA()()),2&D&&(c.xp6(1),c.hij(" ",c.lcZ(2,3,k.data.title),"\n"),c.xp6(3),c.hij(" ",c.lcZ(5,5,k.data.message),"\n"),c.xp6(4),c.hij(" ",c.lcZ(9,7,k.data.action)," "))},dependencies:[U.X$]}),J})(),bn=(()=>{class J{constructor(D,k,Ie,it,It,Ot){this.initAuthService=D,this.appConfigService=k,this.authzSevice=Ie,this.dialog=it,this.location=It,this.guiAuthResolver=Ot,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(D=>{if("Invalid path"!==D)throw console.error(D),this.location.go("/"),location.reload(),D;this.handleErr(D)}).then(D=>D?this.initAuthService.loadPrincipal().catch(k=>this.handleErr(k)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(D){const k=(0,T.kZ)();throw"Invalid path"===D?(k.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(Jt,k)):(k.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===D.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":D.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(un,k)),console.error(D),D}loadPolicies(){return new Promise((D,k)=>{this.authzSevice.getAllPolicies().subscribe(Ie=>{this.guiAuthResolver.setPerunPolicies(Ie),D()},Ie=>k(Ie))})}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(C.v0),c.LFG(dt),c.LFG(g.Ct),c.LFG(_.uw),c.LFG(V.Ye),c.LFG(C.x4))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),_n=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[V.ez,_.Is,oe.ot,U.aw]}),J})();var xn=h(40445),ai=h(84080),oi=h(83353),bi=h(21281),Ni=h(77579),qi=h(56451),vi=h(54968),Za=h(69751),ur=h(66406),za=h(39646),ms=h(95698),Hh=h(54482),Oo=h(72733),gs=h(22529),Xr=h(82722),$c=h(28746),qc=h(71345);const $l=new c.OlP("SMOOTH_SCROLL_OPTIONS");let Ho=(()=>{class J{constructor(D,k,Ie){this._document=D,this._platform=k,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...Ie}}get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}_scrollElement(D,k,Ie){D.scrollLeft=k,D.scrollTop=Ie}_getElement(D,k){return"string"==typeof D?(k||this._document).querySelector(D):(0,bi.fI)(D)}_initSmoothScroll(D){return this._onGoingScrolls.has(D)&&this._onGoingScrolls.get(D).next(),this._onGoingScrolls.set(D,new Ni.x).get(D)}_isFinished(D,k,Ie){return D.currentX!==D.x||D.currentY!==D.y||(k.next(),Ie(),!1)}_interrupted(D,k){return(0,qi.T)((0,vi.R)(D,"wheel",{passive:!0,capture:!0}),(0,vi.R)(D,"touchmove",{passive:!0,capture:!0}),k).pipe((0,ms.q)(1))}_destroy(D,k){k.complete(),this._onGoingScrolls.delete(D)}_step(D){return new Za.y(k=>{let Ie=(this._now()-D.startTime)/D.duration;Ie=Ie>1?1:Ie;const it=D.easing(Ie);D.currentX=D.startX+(D.x-D.startX)*it,D.currentY=D.startY+(D.y-D.startY)*it,this._scrollElement(D.scrollable,D.currentX,D.currentY),ur.Z.schedule(()=>k.next(D))})}_applyScrollToOptions(D,k){if(!k.duration)return this._scrollElement(D,k.left,k.top),Promise.resolve();const Ie=this._initSmoothScroll(D),it={scrollable:D,startTime:this._now(),startX:D.scrollLeft,startY:D.scrollTop,x:null==k.left?D.scrollLeft:~~k.left,y:null==k.top?D.scrollTop:~~k.top,duration:k.duration,easing:qc(k.easing.x1,k.easing.y1,k.easing.x2,k.easing.y2)};return new Promise(It=>{(0,za.of)(null).pipe(function fl(J,O=1/0,D){return O=(O||0)<1?1/0:O,(0,Hh.e)((k,Ie)=>(0,Oo.p)(k,Ie,J,O,void 0,!0,D))}(()=>this._step(it).pipe((0,gs.o)(Ot=>this._isFinished(Ot,Ie,It)))),(0,Xr.R)(this._interrupted(D,Ie)),(0,$c.x)(()=>this._destroy(D,Ie))).subscribe()})}scrollTo(D,k){if((0,V.NF)(this._platform)){const Ie=this._getElement(D),it="rtl"===getComputedStyle(Ie).direction,It=(0,oi._i)(),Ot={...this._defaultOptions,...k,left:k.left??(it?k.end:k.start),right:k.right??(it?k.start:k.end)};return null!=Ot.bottom&&(Ot.top=Ie.scrollHeight-Ie.clientHeight-Ot.bottom),it&&0!==It?(null!=Ot.left&&(Ot.right=Ie.scrollWidth-Ie.clientWidth-Ot.left),2===It?Ot.left=Ot.right:1===It&&(Ot.left=Ot.right?-Ot.right:Ot.right)):null!=Ot.right&&(Ot.left=Ie.scrollWidth-Ie.clientWidth-Ot.right),this._applyScrollToOptions(Ie,Ot)}return Promise.resolve()}scrollToElement(D,k,Ie={}){const it=this._getElement(D),It=this._getElement(k,it),Ot={...Ie,left:It.offsetLeft+(Ie.left||0),top:It.offsetTop+(Ie.top||0)};return It?this.scrollTo(it,Ot):Promise.resolve()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(V.K0),c.LFG(c.Lbi),c.LFG($l,8))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),Qc=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({}),J})();var Pi=h(61135),ql=h(50727),Ql=h(60515),Oi=h(18505),Qi=h(54004),_s=h(63900),Kl=h(78372),ml=h(71884);function po(...J){const O=J.length;if(0===O)throw new Error("list of properties cannot be empty.");return(0,Qi.U)(D=>{let k=D;for(let Ie=0;Ie{J.onselectstart=()=>!1})}function fo(J){return(0,Oi.b)(()=>{J.onselectstart=null})}function Ca(){return(0,Oi.b)(J=>J.stopPropagation())}function nc(J,O){return J.clientX>=O.left&&J.clientX<=O.left+O.width&&J.clientY>=O.top&&J.clientY<=O.top+O.height}let Cs=(()=>{class J{constructor(D){this.viewPort=D,this.nativeElement=D.nativeElement}get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){var D;return(null===(D=this.contentWrapperElement)||void 0===D?void 0:D.clientHeight)||0}get contentWidth(){var D;return(null===(D=this.contentWrapperElement)||void 0===D?void 0:D.clientWidth)||0}activatePointerEvents(D,k){this.hovered=new Za.y(Ie=>{const it=(0,vi.R)(this.nativeElement,"mousemove",{passive:!0}),It=D?it:it.pipe(Ca()),Ot=(0,vi.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,Qi.U)(()=>!1));(0,qi.T)(It,Ot).pipe((0,Oi.b)(Zt=>Ie.next(Zt)),(0,Xr.R)(k)).subscribe()}),this.clicked=new Za.y(Ie=>{const it=(0,vi.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,Oi.b)(Ot=>Ie.next(Ot))),It=(0,vi.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,Oi.b)(()=>Ie.next(!1)));it.pipe((0,_s.w)(()=>It),(0,Xr.R)(k)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(D){this.nativeElement.className=`ng-native-scrollbar-hider ng-scroll-viewport ${D}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(D){this.nativeElement.scrollTop=D}scrollXTo(D){this.nativeElement.scrollLeft=D}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollViewport",""]]}),J})(),Lr=(()=>{class J{}return J.\u0275fac=function(D){return new(D||J)},J.\u0275dir=c.lG2({type:J}),J})();const td=new c.OlP("NG_SCROLLBAR_OPTIONS"),ic={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let rc=(()=>{class J{constructor(D){this.globalOptions=D?{...ic,...D}:ic,this.rtlScrollAxisType=(0,oi._i)()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(td,8))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),nd=(()=>{class J{constructor(D,k,Ie){this.document=D,this.manager=k,this.platform=Ie,this._scrollbarSize=new Pi.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),Ie.isBrowser&&(0,vi.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,Kl.b)(this.manager.globalOptions.windowResizeDebounce),(0,Qi.U)(()=>this.getNativeScrollbarSize()),(0,ml.x)(),(0,Oi.b)(it=>this._scrollbarSize.next(it))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const D=this.document.createElement("div");D.className="ng-scrollbar-measure",D.style.left="0px",D.style.overflow="scroll",D.style.position="fixed",D.style.top="-9999px",this.document.body.appendChild(D);const k=D.getBoundingClientRect().right;return this.document.body.removeChild(D),k}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(V.K0),c.LFG(rc),c.LFG(oi.t4))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})(),bs=(()=>{class J{constructor(D,k,Ie){this.renderer=k,this.hideNativeScrollbar=Ie,this._subscriber=ql.w0.EMPTY,this._subscriber=Ie.scrollbarSize.subscribe(it=>{this.renderer.setStyle(D.nativeElement,"--native-scrollbar-size",`-${it}px`,c.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(nd))},J.\u0275dir=c.lG2({type:J,selectors:[["","hideNativeScrollbar",""]]}),J})(),ac=(()=>{class J{constructor(D){this.el=D}set ngAttr(D){for(const[k,Ie]of Object.entries(D))this.el.nativeElement.setAttribute(k,Ie)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq))},J.\u0275dir=c.lG2({type:J,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"}}),J})(),id=(()=>{class J{constructor(D,k,Ie){if(this.zone=D,this.platform=k,this.scrollbar=Ie,this._disabled=!1,this._currentSubscription=null,this.event=new c.vpe,!Ie)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,bi.su)(D),this._subscribe()}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,bi.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const D=new Za.y(k=>{this._resizeObserver=new ResizeObserver(Ie=>k.next(Ie)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?D.pipe((0,Kl.b)(this._debounce)):D).subscribe(this.event)})}}_unsubscribe(){var D,k;null===(D=this._resizeObserver)||void 0===D||D.disconnect(),null===(k=this._currentSubscription)||void 0===k||k.unsubscribe()}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.R0b),c.Y36(oi.t4),c.Y36(Lr))},J.\u0275dir=c.lG2({type:J,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"}}),J})(),vs=(()=>{class J{constructor(D,k,Ie){this.cmp=D,this.trackElement=k,this.document=Ie}get clicked(){const D=(0,vi.R)(this.trackElement,"mousedown",{passive:!0}).pipe(Ca(),Wa(this.document)),k=(0,vi.R)(this.document,"mouseup",{passive:!0}).pipe(Ca(),fo(this.document),(0,_s.w)(()=>Ql.E));return(0,qi.T)(D,k)}get clientRect(){return this.trackElement.getBoundingClientRect()}onTrackClicked(D,k,Ie){return(0,za.of)(D).pipe(po(this.pageProperty),(0,Qi.U)(it=>(it-this.offset-k/2)/this.size*Ie),(0,Oi.b)(it=>{this.cmp.scrollTo({...this.mapToScrollToOption(it),duration:(0,bi.su)(this.cmp.trackClickScrollDuration)})}))}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(HTMLElement),c.Y36(Document))},J.\u0275dir=c.lG2({type:J}),J})(),oc=(()=>{class J extends vs{constructor(D,k,Ie){super(D,k.nativeElement,Ie),this.cmp=D,this.document=Ie}get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}mapToScrollToOption(D){return{left:D}}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(c.SBq),c.Y36(V.K0))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarTrackX",""]],features:[c.qOj]}),J})(),Es=(()=>{class J extends vs{constructor(D,k,Ie){super(D,k.nativeElement,Ie),this.cmp=D,this.document=Ie}get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}mapToScrollToOption(D){return{top:D}}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(c.SBq),c.Y36(V.K0))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarTrackY",""]],features:[c.qOj]}),J})(),rd=(()=>{class J{constructor(D,k,Ie,it){this.cmp=D,this.track=k,this.thumbElement=Ie,this.document=it,this._dragging=new Ni.x,this.dragging=this._dragging.pipe((0,ml.x)())}get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,vi.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(Ca())}update(){const D=function gl(J,O,D){return Math.max(~~(J/O*J),D)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),k=function ad(J,O,D){return J*D/O}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ur.Z.schedule(()=>this.updateStyles(this.handleDirection(k,this.trackMax),D))}dragged(D){let k,Ie;const it=(0,za.of)(D).pipe(Wa(this.document),(0,Oi.b)(()=>{k=this.trackMax,Ie=this.viewportScrollMax,this.setDragging(!0)})),It=(0,vi.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(Ca()),Ot=(0,vi.R)(this.document,"mouseup",{capture:!0}).pipe(Ca(),fo(this.document),(0,Oi.b)(()=>this.setDragging(!1)));return it.pipe(po(this.pageProperty),(0,Qi.U)(Zt=>Zt-this.dragStartOffset),(0,Bo.z)(Zt=>It.pipe(po(this.clientProperty),(0,Qi.U)(en=>en-this.track.offset),(0,Qi.U)(en=>Ie*(en-Zt)/k),(0,Qi.U)(en=>this.handleDrag(en,Ie)),(0,Oi.b)(en=>this.scrollTo(en)),(0,Xr.R)(Ot))))}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(vs),c.Y36(HTMLElement),c.Y36(Document))},J.\u0275dir=c.lG2({type:J,outputs:{dragging:"dragging"}}),J})(),_l=(()=>{class J extends rd{constructor(D,k,Ie,it,It){super(D,k,Ie.nativeElement,it),this.cmp=D,this.track=k,this.element=Ie,this.document=it,this.dir=It}get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}updateStyles(D,k){this.thumbElement.style.width=`${k}px`,this.thumbElement.style.transform=`translate3d(${D}px, 0, 0)`}handleDrag(D,k){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return D-k;if(2===this.cmp.manager.rtlScrollAxisType)return k-D}return D}handleDirection(D,k){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-D;if(0===this.cmp.manager.rtlScrollAxisType)return D-k}return D}setDragging(D){this.cmp.setDragging({horizontalDragging:D})}scrollTo(D){this.cmp.viewport.scrollXTo(D)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(oc),c.Y36(c.SBq),c.Y36(V.K0),c.Y36(xn.Is))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarThumbX",""]],features:[c.qOj]}),J})(),Vo=(()=>{class J extends rd{constructor(D,k,Ie,it){super(D,k,Ie.nativeElement,it),this.cmp=D,this.track=k,this.element=Ie,this.document=it}get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}updateStyles(D,k){this.thumbElement.style.height=`${k}px`,this.thumbElement.style.transform=`translate3d(0px, ${D}px, 0)`}handleDrag(D){return D}handleDirection(D){return D}setDragging(D){this.cmp.setDragging({verticalDragging:D})}scrollTo(D){this.cmp.viewport.scrollYTo(D)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(Lr),c.Y36(Es),c.Y36(c.SBq),c.Y36(V.K0))},J.\u0275dir=c.lG2({type:J,selectors:[["","scrollbarThumbY",""]],features:[c.qOj]}),J})(),Ts=(()=>{class J{constructor(D,k,Ie,it,It){this.el=D,this.cmp=k,this.platform=Ie,this.document=it,this.zone=It,this.destroyed=new Ni.x}activatePointerEvents(){let D,k,Ie;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new Ni.x,this.viewportThumbClicked=new Ni.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),D=this.viewportThumbClicked,k=this.viewportTrackClicked,Ie=this.cmp.viewport.hovered.pipe((0,Qi.U)(it=>!!it&&nc(it,this.el.getBoundingClientRect())),(0,ml.x)(),(0,Oi.b)(it=>this.document.onselectstart=it?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,Oi.b)(it=>{it?nc(it,this.thumb.clientRect)?this.viewportThumbClicked.next(it):nc(it,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(it)):this.cmp.setClicked(!1)}),(0,Xr.R)(this.destroyed)).subscribe()):(D=this.thumb.clicked,k=this.track.clicked,Ie=this.hovered),(0,qi.T)(Ie.pipe((0,Oi.b)(it=>this.setHovered(it))),D.pipe((0,_s.w)(it=>this.thumb.dragged(it))),k.pipe((0,_s.w)(it=>this.track.onTrackClicked(it,this.thumb.size,this.viewportScrollSize))))}get hovered(){const D=(0,vi.R)(this.el,"mouseenter",{passive:!0}).pipe(Ca(),(0,Qi.U)(()=>!0)),k=(0,vi.R)(this.el,"mouseleave",{passive:!0}).pipe(Ca(),(0,Qi.U)(()=>!1));return(0,qi.T)(D,k)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,Xr.R)(this.destroyed)).subscribe(),(0,qi.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,Oi.b)(()=>{var D;return null===(D=this.thumb)||void 0===D?void 0:D.update()}),(0,Xr.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(HTMLElement),c.Y36(Lr),c.Y36(oi.t4),c.Y36(Document),c.Y36(c.R0b))},J.\u0275dir=c.lG2({type:J}),J})(),mo=(()=>{class J extends Ts{constructor(D,k,Ie,it,It){super(D.nativeElement,k,Ie,it,It),this.cmp=k,this.platform=Ie,this.document=it,this.zone=It}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}setHovered(D){this.cmp.setHovered({verticalHovered:D})}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(Lr),c.Y36(oi.t4),c.Y36(V.K0),c.Y36(c.R0b))},J.\u0275cmp=c.Xpm({type:J,selectors:[["scrollbar-y"]],viewQuery:function(D,k){if(1&D&&(c.Gf(Es,7),c.Gf(Vo,7)),2&D){let Ie;c.iGM(Ie=c.CRH())&&(k.track=Ie.first),c.iGM(Ie=c.CRH())&&(k.thumb=Ie.first)}},hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("scrollbar-control",!0)},features:[c.qOj],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c._UZ(1,"div",1),c.qZA()),2&D&&(c.Gre("ng-scrollbar-track ",k.cmp.trackClass,""),c.xp6(1),c.Gre("ng-scrollbar-thumb ",k.cmp.thumbClass,""))},dependencies:[Vo,Es],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%} .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0} .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:initial} .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:initial} .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:initial;right:0} .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0} .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0}),J})(),od=(()=>{class J extends Ts{constructor(D,k,Ie,it,It){super(D.nativeElement,k,Ie,it,It),this.cmp=k,this.platform=Ie,this.document=it,this.zone=It}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}setHovered(D){this.cmp.setHovered({horizontalHovered:D})}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(Lr),c.Y36(oi.t4),c.Y36(V.K0),c.Y36(c.R0b))},J.\u0275cmp=c.Xpm({type:J,selectors:[["scrollbar-x"]],viewQuery:function(D,k){if(1&D&&(c.Gf(oc,7),c.Gf(_l,7)),2&D){let Ie;c.iGM(Ie=c.CRH())&&(k.track=Ie.first),c.iGM(Ie=c.CRH())&&(k.thumb=Ie.first)}},hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("scrollbar-control",!0)},features:[c.qOj],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c._UZ(1,"div",1),c.qZA()),2&D&&(c.Gre("ng-scrollbar-track ",k.cmp.trackClass,""),c.xp6(1),c.Gre("ng-scrollbar-thumb ",k.cmp.thumbClass,""))},dependencies:[_l,oc],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)} .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%} .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb, .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)} .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:initial} .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control, .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:initial} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0} .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true], .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0}),J})(),sd=(()=>{class J{constructor(D,k,Ie,it,It,Ot){this.el=D,this.zone=k,this.changeDetectorRef=Ie,this.dir=it,this.smoothScroll=It,this.manager=Ot,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new c.vpe,this.state={},this.destroyed=new Ni.x}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,bi.Ig)(D)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(D){this._sensorDisabled=(0,bi.Ig)(D)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(D){this._pointerEventsDisabled=(0,bi.Ig)(D)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(D){this._viewportPropagateMouseMove=(0,bi.Ig)(D)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(D){this._autoHeightDisabled=(0,bi.Ig)(D)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(D){this._autoWidthDisabled=(0,bi.Ig)(D)}get nativeElement(){return this.el.nativeElement}updateState(){let D=!1,k=!1,Ie=!1,it=!1;("all"===this.track||"vertical"===this.track)&&(Ie=this.viewport.scrollHeight>this.viewport.clientHeight,D="always"===this.visibility||Ie),("all"===this.track||"horizontal"===this.track)&&(it=this.viewport.scrollWidth>this.viewport.clientWidth,k="always"===this.visibility||it),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:D,horizontalUsed:k,isVerticallyScrollable:Ie,isHorizontallyScrollable:it})}setState(D){this.state={...this.state,...D},this.changeDetectorRef.detectChanges()}getScrolledByDirection(D){let k;return this.scrolled.pipe((0,Oi.b)(Ie=>k=Ie),po("target",D),(0,Xl.G)(),(0,No.h)(([Ie,it])=>Ie!==it),(0,Qi.U)(()=>k))}setHovered(D){this.zone.run(()=>this.setState({...D}))}setDragging(D){this.zone.run(()=>this.setState({...D}))}setClicked(D){this.zone.run(()=>this.setState({scrollbarClicked:D}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let D=(0,vi.R)(this.viewport.nativeElement,"scroll",{passive:!0});D=this.scrollAuditTime?D.pipe((0,Kc.e)(this.scrollAuditTime)):D,this.scrolled=D.pipe((0,Xr.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(D){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,Oi.b)(()=>this.update()),(0,Xr.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(D){return this.smoothScroll.scrollTo(this.viewport.nativeElement,D)}scrollToElement(D,k){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,D,k)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(c.sBO),c.Y36(xn.Is),c.Y36(Ho),c.Y36(rc))},J.\u0275cmp=c.Xpm({type:J,selectors:[["ng-scrollbar"]],contentQueries:function(D,k,Ie){if(1&D&&c.Suo(Ie,Cs,7),2&D){let it;c.iGM(it=c.CRH())&&(k.customViewPort=it.first)}},viewQuery:function(D,k){if(1&D&&(c.Gf(ec,5,c.SBq),c.Gf(ko,5,c.SBq),c.Gf(Cs,7)),2&D){let Ie;c.iGM(Ie=c.CRH())&&(k.scrollbarY=Ie.first),c.iGM(Ie=c.CRH())&&(k.scrollbarX=Ie.first),c.iGM(Ie=c.CRH())&&(k.defaultViewPort=Ie.first)}},hostVars:2,hostBindings:function(D,k){2&D&&c.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],features:[c._Bn([{provide:Lr,useExisting:J}]),c.TTD],ngContentSelectors:ed,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(D,k){1&D&&(c.F$t(),c.TgZ(0,"div",0)(1,"div",1),c.NdJ("resizeSensor",function(){return k.update()}),c.TgZ(2,"div",2)(3,"div"),c.Hsn(4),c.qZA()()(),c.YNc(5,Xc,3,2,"ng-container",3),c.qZA()),2&D&&(c.Q6J("ngAttr",k.state),c.xp6(1),c.Q6J("sensorDebounce",k.sensorDebounce)("sensorDisabled",k.sensorDisabled),c.xp6(4),c.Q6J("ngIf",!k.disabled))},dependencies:[V.O5,Cs,bs,ac,id,mo,od],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none} .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)} .ng-scroll-content{position:relative!important;display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%], .ng-scroll-viewport{position:absolute;left:0;right:0;top:0;bottom:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none} .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport, .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*> .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none} .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)} .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none} .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default} .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0}),J})(),Lh=(()=>{class J{static withConfig(D){return{ngModule:J,providers:[{provide:td,useValue:D}]}}}return J.\u0275fac=function(D){return new(D||J)},J.\u0275mod=c.oAB({type:J}),J.\u0275inj=c.cJS({imports:[V.ez,xn.vT,ai.eL,oi.ud,Qc]}),J})();var Fo=h(51214),Uo=h(67376),Al=h(22465);function sc(J,O){if(1&J&&(c.TgZ(0,"div",9),c._UZ(1,"perun-web-apps-notification",10),c.qZA()),2&J){const D=O.$implicit;c.xp6(1),c.Q6J("data",D)("inDialog",!0)}}function lc(J,O){if(1&J&&(c.TgZ(0,"div",6)(1,"cdk-virtual-scroll-viewport",7),c.YNc(2,sc,2,2,"div",8),c.qZA()()),2&J){const D=c.oxw();c.xp6(2),c.Q6J("cdkVirtualForOf",D.notifications)}}function Ya(J,O){1&J&&(c.TgZ(0,"perun-web-apps-alert",11),c._uU(1),c.ALo(2,"translate"),c.qZA()),2&J&&(c.xp6(1),c.Oqu(c.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let ld=(()=>{class J{constructor(D,k){this.dialogRef=D,this.notificationStorageService=k}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(_.so),c.Y36(C.SZ))},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(D,k){1&D&&(c.TgZ(0,"h1",0),c._uU(1),c.ALo(2,"translate"),c.qZA(),c.YNc(3,lc,3,1,"div",1),c.YNc(4,Ya,3,3,"perun-web-apps-alert",2),c.TgZ(5,"div",3)(6,"button",4),c.NdJ("click",function(){return k.onClear()}),c._uU(7),c.ALo(8,"translate"),c.qZA(),c.TgZ(9,"button",5),c.NdJ("click",function(){return k.onCancel()}),c._uU(10),c.ALo(11,"translate"),c.qZA()()),2&D&&(c.xp6(1),c.Oqu(c.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),c.xp6(2),c.Q6J("ngIf",0!==k.notifications.length),c.xp6(1),c.Q6J("ngIf",0===k.notifications.length),c.xp6(3),c.hij(" ",c.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),c.xp6(3),c.hij(" ",c.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},dependencies:[V.O5,oe.lW,_.uh,_.H8,Uo.xd,Uo.x0,Uo.N7,R.w,Al.c,U.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),J})();var cd=h(42673),dd=h(52314);function ud(J,O){1&J&&(c.TgZ(0,"div",10)(1,"span",11),c._uU(2," ~ \u{1f5f2}\xa0 "),c.qZA(),c.TgZ(3,"span",12),c._uU(4," DEVEL "),c.qZA(),c.TgZ(5,"span",11),c._uU(6," \xa0\u{1f5f2} ~ "),c.qZA()())}const ys=function(J){return{color:J}},ea=function(){return["/home"]};let go=(()=>{class J{constructor(D,k,Ie,it,It,Ot,Zt,en,fn,vn){this.storeService=D,this.authService=k,this.authzResolverService=Ie,this.dialog=it,this.notificator=It,this.translateService=Ot,this.store=Zt,this.sanitizer=en,this.notificationStorageService=fn,this.otherApplicationService=vn,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.profileLabel=this.storeService.get("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const D=(0,T.kZ)();D.width="520px",this.dialog.open(ld,D)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.d6),c.Y36(C.e8),c.Y36(g.Ct),c.Y36(_.uw),c.Y36(C.V6),c.Y36(U.sK),c.Y36(C.d6),c.Y36(e.H7),c.Y36(C.SZ),c.Y36(C.jq))},J.\u0275cmp=c.Xpm({type:J,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:13,vars:28,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0)(1,"button",1),c.NdJ("click",function(){return k.sideNav.toggle()}),c.TgZ(2,"mat-icon",2),c._uU(3," menu "),c.qZA()(),c.TgZ(4,"a",3),c._UZ(5,"div",4),c.qZA()(),c.YNc(6,ud,7,0,"div",5),c.TgZ(7,"div",6)(8,"button",7),c.NdJ("click",function(){return k.showNotificationHistory()}),c.ALo(9,"translate"),c.TgZ(10,"mat-icon",8),c._uU(11),c.qZA()(),c._UZ(12,"perun-web-apps-header-menu",9),c.qZA()),2&D&&(c.Q6J("ngStyle",c.VKq(19,ys,k.navTextColor)),c.xp6(2),c.Q6J("ngStyle",c.VKq(21,ys,k.iconColor)),c.xp6(2),c.Q6J("routerLink",c.DdM(23,ea)),c.xp6(1),c.Q6J("innerHTML",k.logo,c.oJD),c.xp6(1),c.Q6J("ngIf",k.isDevel),c.xp6(1),c.Q6J("ngStyle",c.VKq(24,ys,k.navTextColor)),c.xp6(1),c.Q6J("matTooltip",c.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),c.xp6(2),c.s9C("matBadge",k.getNewNotificationsCount()>5?"5+":k.getNewNotificationsCount()),c.Q6J("ngStyle",c.VKq(26,ys,k.iconColor))("matBadgeHidden",0===k.getNewNotificationsCount()),c.xp6(1),c.hij(" ",k.getNewNotificationsCount()?"notifications_active":"notifications"," "),c.xp6(1),c.Q6J("iconColor",k.iconColor)("label",k.profileLabel)("textColor",k.navTextColor)("logoutEnabled",k.logoutEnabled)("url",k.profileUrl)("user",k.principal.user))},dependencies:[V.O5,V.PC,A.yS,Q.Hw,oe.lW,de.gM,cd.k,dd.X,U.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),J})();var hd=h(73228),pd=h(36769);function fd(J,O){if(1&J){const D=c.EpF();c.TgZ(0,"div")(1,"perun-web-apps-notification",2),c.NdJ("closeNotification",function(){const it=c.CHM(D).index,It=c.oxw();return c.KtG(It.removeNotification(it))}),c.qZA()()}if(2&J){const D=O.$implicit;c.Q6J("@flyInOut",void 0),c.xp6(1),c.Q6J("data",D)("newNotification",!0)}}const md=function(J){return{top:J}};let gd=(()=>{class J{constructor(D,k){this.notificator=D,this.notificationStorageService=k,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Ie=>{this.processNotification(Ie)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(D){this.notifications.splice(D,1)}processNotification(D){this.notifications.push(D),this.notificationStorageService.storeNotification(D)}}return J.\u0275fac=function(D){return new(D||J)(c.Y36(C.V6),c.Y36(C.SZ))},J.\u0275cmp=c.Xpm({type:J,selectors:[["perun-web-apps-notificator"]],hostBindings:function(D,k){1&D&&c.NdJ("resize",function(it){return k.getScreenSize(it)},!1,c.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(D,k){1&D&&(c.TgZ(0,"div",0),c.YNc(1,fd,2,3,"div",1),c.qZA()),2&D&&(c.Q6J("ngStyle",c.VKq(2,md,k.getNotificatorTop())),c.xp6(1),c.Q6J("ngForOf",k.notifications))},dependencies:[V.sg,V.PC,Al.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[pd.Pd]}}),J})();const _d={provide:me.TP,useExisting:(0,c.Gpc)(()=>C.yC),multi:!0};function cc(J){return new Be(J,"./assets/i18n/",".json")}function Ad(J){const O={basePath:J.get("api_url")};return new g.VK(O)}const Cd=J=>()=>J.initialize();let bd=(()=>{class J{constructor(D,k){this.customIconService=D,this.translate=k,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return J.\u0275fac=function(D){return new(D||J)(c.LFG(C.EB),c.LFG(U.sK))},J.\u0275mod=c.oAB({type:J,bootstrap:[Qe.y]}),J.\u0275inj=c.cJS({providers:[bn,{provide:c.ip1,useFactory:Cd,multi:!0,deps:[bn]},{provide:g.VK,useFactory:Ad,deps:[C.d6]},{provide:A.wN,useClass:fe},C.EB,{provide:He,useClass:C.sM},C.yC,_d,{provide:Fo.Hy,useFactory:()=>localStorage}],imports:[_a,e.b2,me.JF,qe.m,ho,Pe,Q.Ps,_n,U.aw.forRoot({loader:{provide:U.Zw,useFactory:cc,deps:[me.eN]}}),g.au,f.ez,t,Lh.withConfig({autoWidthDisabled:!1,visibility:"hover"}),Fo.zr.forRoot()]}),J})();c.B6R(Qe.y,function(){return[V.O5,V.PC,go,A.lC,Q.Hw,hd.V,te.JX,te.TM,te.Rh,s.$,gd,on,sd]},[]),(0,c.G48)(),e.q6().bootstrapModule(bd).catch(J=>console.error(J))},11243:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>A});var e=h(36895),c=h(94650);let A=(()=>{class w{}return w.\u0275fac=function(C){return new(C||w)},w.\u0275mod=c.oAB({type:w}),w.\u0275inj=c.cJS({imports:[e.ez]}),w})()},6335:(Ye,pe,h)=>{"use strict";h.d(pe,{Ng:()=>w,Rc:()=>c,pI:()=>A});var e=h(94650);const c="GUI_CONFIG.PREF_PAGE_SIZE",A="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(T){return localStorage.getItem(T)}getNumber(T){return parseInt(localStorage.getItem(T),10)}setNumber(T,E){localStorage.setItem(T,E.toString())}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:(Ye,pe,h)=>{"use strict";h.d(pe,{$I:()=>jt,$V:()=>_e,$t:()=>Xt,AA:()=>U,Ad:()=>ce,Af:()=>B,Aj:()=>Ge,BV:()=>Te,Bf:()=>t,CE:()=>je,CP:()=>w,Cf:()=>Oe,DR:()=>Ue,FF:()=>Pt,H2:()=>Q,HC:()=>j,HE:()=>at,Hi:()=>ue,Is:()=>Pe,It:()=>f,Iz:()=>o,JO:()=>H,Jf:()=>ye,KE:()=>R,M8:()=>Be,NG:()=>Y,NL:()=>Se,O7:()=>W,O9:()=>Ce,RS:()=>xe,S7:()=>bt,Sb:()=>G,US:()=>p,VR:()=>_,W1:()=>Me,Wv:()=>le,XH:()=>cn,YF:()=>T,_7:()=>se,_c:()=>ve,aL:()=>be,bf:()=>$,cL:()=>he,d7:()=>ae,dB:()=>A,dI:()=>oe,dK:()=>ze,e5:()=>n,ee:()=>st,eq:()=>gt,g:()=>me,gB:()=>q,gG:()=>M,gc:()=>E,iQ:()=>a,j1:()=>ee,kO:()=>Fe,kZ:()=>Ze,nT:()=>C,oK:()=>i,qV:()=>v,qy:()=>de,rF:()=>we,rc:()=>Ee,tY:()=>L,tw:()=>g,uC:()=>P,uI:()=>sn,uM:()=>V,v1:()=>S,vq:()=>re,xt:()=>te,xx:()=>z,yW:()=>tt,z6:()=>l,zW:()=>Mt,zp:()=>d});var e=h(6335),c=h(94650);let A=(()=>{class mn{constructor(Rt){this.guiConfigService=Rt}getTablePageSize(Rt){const Ct=this.guiConfigService.getNumber(e.pI+Rt);if(!isNaN(Ct))return Ct;const Ut=this.guiConfigService.getNumber(e.Rc);return isNaN(Ut)?10:Ut}setTablePageSize(Rt,Ct){this.guiConfigService.setNumber(e.pI+Rt,Ct)}}return mn.\u0275fac=function(Rt){return new(Rt||mn)(c.LFG(e.Ng))},mn.\u0275prov=c.Yz7({token:mn,factory:mn.\u0275fac,providedIn:"root"}),mn})();const w="0",g="1",C="2",T="3",E="4",S="5",U="6",_="7",V="8",z="9",Q="10",te="11",oe="12",ee="13",le="14",de="15",Te="16",v="17",L="18",B="19",W="20",q="21",ue="22",ye="23",Me="24",we="25",Ge="26",ce="27",Ze="28",he="29",xe="30",j="31",R="32",G="33",se="34",$="35",Ee="36",Oe="37",gt="42",Y="43",Ce="44",ae="45",re="46",Se="47",Fe="48",be="49",Ue="50",P="51",H="52",i="53",o="54",f="55",l="56",a="57",n="58",t="59",d="62",p="63",M="64",_e="65",bt="66",Mt="69",je="71",Pe="72",Be="75",me="76",ve="77",ze="78",tt="79",at="80",st="82",Pt="83",jt="84",cn="85",Xt="86",sn="87"},36769:(Ye,pe,h)=>{"use strict";h.d(pe,{Ji:()=>g,Pd:()=>A,BQ:()=>c,Ly:()=>w,GH:()=>E,Ls:()=>S,SG:()=>T,es:()=>C});var e=h(37340);const c=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),A=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),w=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),g=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),C=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),T=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),E=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),S=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},33604:(Ye,pe,h)=>{"use strict";h.d(pe,{Mw:()=>R.M,qG:()=>be.qG,Sx:()=>Se.S,y9:()=>Ue,Nj:()=>_t.N,ez:()=>xe,t$:()=>gt});var e=h(36895),c=h(56709),A=h(30671),w=h(89383),g=h(94364),C=h(96308),T=h(98739),E=h(51572),S=h(63189),U=h(97392),_=h(28255),V=h(4859),z=h(10266),Q=h(59549),te=h(24006),oe=h(284),ee=h(77331),le=h(73555),de=h(3238),Te=h(19516),v=h(64425),L=h(35423),B=h(99602),W=h(71948),q=h(84385),ue=h(33231),ye=h(67376),Me=h(65412),we=h(9244),Ge=h(57882),ce=h(94650);let Ze=(()=>{class P extends de.LF{format(i,o){return"input"===o?`${i.getDate().toString()}.${(i.getMonth()+1).toString()}.${i.getFullYear()}`:i.toDateString()}}return P.\u0275fac=function(){let H;return function(o){return(H||(H=ce.n5z(P)))(o||P)}}(),P.\u0275prov=ce.Yz7({token:P,factory:P.\u0275fac}),P})();const he={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let xe=(()=>{class P{}return P.\u0275fac=function(i){return new(i||P)},P.\u0275mod=ce.oAB({type:P}),P.\u0275inj=ce.cJS({providers:[{provide:de._A,useClass:Ze},{provide:de.sG,useValue:he}],imports:[e.ez,c.p9,A.p0,te.u5,ee.Hi,le._t,w.aw,g.Bz,C.JX,T.TU,E.Cq,S.r,U.Ps,_.Tx,V.ot,z.AV,Q.lN,te.UX,oe.c,de.si,Te.d4,v.Iq,L.dp,B.FA,W.Fk,de.Ng,q.LD,ue.Co,ye.Cl,Me.Is,we.Je,Ge.C]}),P})();h(53984);var R=h(43532),_t=(h(38719),h(21963),h(28820),h(63167),h(62109),h(22465),h(80275),h(53599)),Je=h(32080);let gt=(()=>{class P{constructor(i,o,f,l){this.router=i,this.route=o,this.location=f,this.forceRoute=l}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(i=>{this.router.navigate([i.redirectTo])}):this.location.back()}}return P.\u0275fac=function(i){return new(i||P)(ce.Y36(g.F0),ce.Y36(g.gz),ce.Y36(e.Ye),ce.Y36(Je.xw))},P.\u0275cmp=ce.Xpm({type:P,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(i,o){}}),P})();h(24179),h(58956),h(41619),h(61150);var Se=h(63312),be=(h(52314),h(52170));let Ue=(()=>{class P{constructor(i){this.router=i}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return P.\u0275fac=function(i){return new(i||P)(ce.Y36(g.F0))},P.\u0275cmp=ce.Xpm({type:P,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(i,o){1&i&&(ce.TgZ(0,"div",0)(1,"h1",1),ce._uU(2),ce.ALo(3,"translate"),ce.qZA(),ce.TgZ(4,"div"),ce._uU(5),ce.ALo(6,"translate"),ce.qZA(),ce.TgZ(7,"button",2),ce.NdJ("click",function(){return o.redirectToHome()}),ce._uU(8),ce.ALo(9,"translate"),ce.qZA()()),2&i&&(ce.xp6(2),ce.Oqu(ce.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),ce.xp6(3),ce.Oqu(ce.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),ce.xp6(3),ce.hij(" ",ce.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},dependencies:[V.lW,w.X$]}),P})()},63312:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>g,Y:()=>C});var e=h(94650),A=(h(32105),h(89383)),w=h(42377);const g={};let C=(()=>{class T{constructor(S){this.translate=S,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=U=>U===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):U.shortname,this.secondaryFunction=U=>U===g?"":U.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(U.id),this.searchFunction=U=>U===g?"":U.shortname+String(U.id)}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(A.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(S,U){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(V){return U.itemSelected.emit(V)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",U.items)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.secondaryFunction)("entity",U.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[w.i,A.X$]}),T})()},38719:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>U});var e=h(94650),c=h(9244),A=h(36895),w=h(56709),g=h(24006),C=h(59549),T=h(64597);function E(_,V){if(1&_){const z=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){e.CHM(z);const te=e.oxw();return e.KtG(te._sendEventToParent())})("ngModelChange",function(te){e.CHM(z);const oe=e.oxw();return e.KtG(oe.attribute.value=te)}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&_){const z=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,z.attribute.displayName),"-value"),e.Q6J("ngModel",z.attribute.value)}}function S(_,V){if(1&_&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&_){const z=e.oxw();e.xp6(1),e.Oqu(z.attribute.value)}}let U=(()=>{class _{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return _.\u0275fac=function(z){return new(z||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(z,Q){1&z&&(e.TgZ(0,"div"),e.YNc(1,E,2,4,"mat-checkbox",0),e.YNc(2,S,2,1,"mat-label",1),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",!Q.readonly),e.xp6(1),e.Q6J("ngIf",Q.readonly))},dependencies:[A.O5,w.oG,g.JJ,g.On,C.hX,T.R]}),_})()},21963:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>L});var e=h(94650),c=h(29521),A=h(73555),w=h(74281),g=h(9244),C=h(65412),T=h(36895),E=h(77331),S=h(97392),U=h(4859),_=h(10266),V=h(59549),z=h(284);function Q(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){e.CHM(q);const ye=e.oxw(2);return e.KtG(ye.dragDisabled=!1)}),e._uU(1,"drag_indicator"),e.qZA()}}function te(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(q);const ye=e.oxw().$implicit,Me=e.oxw();return e.KtG(Me.edit(ye))}),e._uU(1,"edit"),e.qZA()}}function oe(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(q);const ye=e.oxw().$implicit,Me=e.oxw();return e.KtG(Me.remove(ye))}),e._uU(1,"cancel"),e.qZA()}}function ee(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const Me=e.CHM(q).$implicit,we=e.oxw();return we.remove(Me),e.KtG(we._sendEventToParent())}),e.YNc(1,Q,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const Me=e.CHM(q).$implicit,we=e.oxw();return e.KtG(we.readonly&&void 0!==we.attribute.displayName&&we.showValue(Me,we.attribute.displayName))}),e._uU(3),e.qZA(),e.YNc(4,te,2,0,"mat-icon",7),e.YNc(5,oe,2,0,"mat-icon",8),e.qZA()}if(2&B){const q=W.$implicit,ue=e.oxw();e.Q6J("selectable",ue.selectable)("cdkDragData",q)("removable",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.ekj("cursor-pointer",ue.readonly&&void 0!==ue.attribute.displayName),e.xp6(1),e.hij(" ",q," "),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable)}}function le(B,W){1&B&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function de(B,W){1&B&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Te(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"div",12)(1,"span",13)(2,"button",14),e.NdJ("click",function(){e.CHM(q);const ye=e.oxw();return e.KtG(ye.onShowChange())}),e.YNc(3,le,2,0,"mat-icon",15),e.YNc(4,de,2,0,"mat-icon",15),e.qZA()()()}if(2&B){const q=e.oxw();e.xp6(1),e.Q6J("matTooltip",q.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!q.showMore),e.xp6(1),e.Q6J("ngIf",q.showMore)}}function v(B,W){if(1&B){const q=e.EpF();e.TgZ(0,"mat-form-field",12)(1,"input",16),e.NdJ("matChipInputTokenEnd",function(ye){e.CHM(q);const Me=e.oxw();return e.KtG(Me.add(ye))})("change",function(){e.CHM(q);const ye=e.oxw();return e.KtG(ye._sendEventToParent())}),e.qZA()()}if(2&B){const q=e.oxw(),ue=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ue)("matChipInputSeparatorKeyCodes",q.separatorKeysCodes)("matChipInputAddOnBlur",q.addOnBlur)}}let L=(()=>{class B{constructor(q,ue){this.dialog=q,this.changeDetector=ue,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[c.K5,c.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,g.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,g.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(q){const ue=q.input,ye=q.value;(ye||"").trim()&&(this.attribute.value.push(ye.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ue&&(ue.value=""),this.sendEventToParent.emit()}remove(q){const ue=(0,g.kZ)();ue.width="400px",ue.data={name:q},this.dialog.open(w.Wr,ue).afterClosed().subscribe(Me=>{if(Me){const we=this.attribute.value.indexOf(q);this.attribute.value.splice(we,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(q){this.dragDisabled=!0,(0,A.bA)(this.attribute.value,q.previousIndex,q.currentIndex),this.values=this.attribute.value}edit(q){const ue=this.attribute.value.indexOf(q),ye=(0,g.kZ)();ye.width="600px",ye.data={attribute:this.attribute,index:ue},this.dialog.open(w.r2,ye).afterClosed().subscribe(we=>{we&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(q,ue){const ye=(0,g.kZ)();ye.width="350px",ye.data={value:q,title:ue},this.dialog.open(w.mk,ye)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(C.uw),e.Y36(e.sBO))},B.\u0275cmp=e.Xpm({type:B,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(q,ue){1&q&&(e.TgZ(0,"div")(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(Me){return ue.drop(Me),ue._sendEventToParent()}),e.YNc(3,ee,6,9,"mat-chip",2),e.YNc(4,Te,5,4,"div",3),e.YNc(5,v,2,3,"mat-form-field",3),e.qZA()()),2&q&&(e.xp6(1),e.Q6J("cdkDropListDisabled",ue.dragDisabled),e.xp6(2),e.Q6J("ngForOf",ue.values.slice(0,ue.itemsShown)),e.xp6(1),e.Q6J("ngIf",ue.values.length>ue.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!ue.readonly))},dependencies:[T.sg,T.O5,E.qn,E.HS,E.oH,A.Wj,A.Zt,S.Hw,U.lW,_.gM,V.KE,z.Nt],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),B})()},28820:(Ye,pe,h)=>{"use strict";h.d(pe,{$:()=>le});var e=h(74281),c=h(9244),A=h(94650),w=h(65412),g=h(36895),C=h(24006),T=h(97392),E=h(4859),S=h(10266),U=h(59549),_=h(284);function V(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){A.CHM(v);const B=A.oxw().index,W=A.oxw();return A.KtG(W.removeValue(B))}),A.TgZ(1,"mat-icon"),A._uU(2," indeterminate_check_box "),A.qZA()()}}function z(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"div",9)(1,"mat-form-field",10),A._UZ(2,"label",11),A.TgZ(3,"input",12),A.NdJ("click",function(){const W=A.CHM(v).index,q=A.oxw();return A.KtG(q.readonly&&q.attribute.displayName&&q.showValue(q.keys[W],q.attribute.displayName))})("ngModelChange",function(B){const q=A.CHM(v).index,ue=A.oxw();return A.KtG(ue.keys[q]=B)}),A.qZA()(),A.TgZ(4,"mat-form-field",10),A._UZ(5,"label",11),A.TgZ(6,"input",13),A.NdJ("click",function(){const W=A.CHM(v).$implicit,q=A.oxw();return A.KtG(q.readonly&&void 0!==q.attribute.displayName&&q.showValue(W,q.attribute.displayName))})("ngModelChange",function(B){const q=A.CHM(v).index,ue=A.oxw();return A.KtG(ue.values[q]=B)}),A.qZA()(),A.YNc(7,V,3,0,"button",14),A.qZA()}if(2&de){const v=Te.index,L=A.oxw();A.xp6(1),A.s9C("appearance",L.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",L.attribute.id,"-key-",v,""),A.xp6(1),A.ekj("cursor-pointer",L.readonly&&void 0!==L.attribute.displayName),A.hYB("id","",L.attribute.id,"-key-",v,""),A.MGl("name","key-",v,""),A.Q6J("ngModel",L.keys[v])("readonly",L.readonly),A.xp6(1),A.s9C("appearance",L.readonly?"none":"standard"),A.xp6(1),A.hYB("for","",L.attribute.id,"-value-",v,""),A.xp6(1),A.ekj("cursor-pointer",L.readonly&&void 0!==L.attribute.displayName),A.MGl("name","value-",v,""),A.hYB("id","",L.attribute.id,"-value-",v,""),A.Q6J("readonly",L.readonly)("ngModel",L.values[v]),A.xp6(1),A.Q6J("ngIf",!L.readonly)}}function Q(de,Te){1&de&&(A.TgZ(0,"mat-icon"),A._uU(1,"more_horiz"),A.qZA())}function te(de,Te){1&de&&(A.TgZ(0,"mat-icon"),A._uU(1,"keyboard_arrow_up"),A.qZA())}function oe(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"button",16),A.NdJ("click",function(){A.CHM(v);const B=A.oxw();return A.KtG(B.onShowChange())}),A.YNc(1,Q,2,0,"mat-icon",17),A.YNc(2,te,2,0,"mat-icon",17),A.qZA()}if(2&de){const v=A.oxw();A.xp6(1),A.Q6J("ngIf",!v.showMore),A.xp6(1),A.Q6J("ngIf",v.showMore)}}function ee(de,Te){if(1&de){const v=A.EpF();A.TgZ(0,"button",18),A.NdJ("click",function(){A.CHM(v);const B=A.oxw();return A.KtG(B.addValue())}),A.TgZ(1,"mat-icon"),A._uU(2," add_box "),A.qZA()()}}let le=(()=>{class de{constructor(v){this.dialog=v,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const v=new Map(Object.entries(this.attribute.value));for(const[L,B]of v.entries())this.keys.push(L),this.values.push(B)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}customTrackBy(v){return v}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(v){this.keys.splice(v,1),this.values.splice(v,1)}updateAttribute(){const v={};for(let L=0;LL.defaultItemsShown),A.xp6(1),A.Q6J("ngIf",!L.readonly))},dependencies:[g.sg,g.O5,C._Y,C.Fj,C.JJ,C.JL,C.Q7,C.On,C.F,T.Hw,E.lW,S.gM,U.KE,_.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),de})()},63167:(Ye,pe,h)=>{"use strict";h.d(pe,{_:()=>S});var e=h(94650),c=h(9244),A=h(74281),w=h(65412),g=h(24006),C=h(59549),T=h(284),E=h(64597);let S=(()=>{class U{constructor(V){this.dialog=V,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,c.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(V,z){const Q=(0,c.kZ)();Q.width="350px",Q.data={value:V,title:z},this.dialog.open(A.mk,Q)}}return U.\u0275fac=function(V){return new(V||U)(e.Y36(w.uw))},U.\u0275cmp=e.Xpm({type:U,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(V,z){1&V&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return z.readonly&&void 0!==z.value&&z.showValue(z.value,z.attribute.displayName)})("ngModelChange",function(te){return z.attribute.value=te})("keydown",function(){return z._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA()()),2&V&&(e.s9C("appearance",z.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",z.readonly&&void 0!==z.value),e.Q2q("data-cy","",e.lcZ(2,6,z.attribute.displayName),"-value"),e.Q6J("readonly",z.readonly)("ngModel",z.attribute.value))},dependencies:[g.Fj,g.JJ,g.On,C.KE,T.Nt,E.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),U})()},43532:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>Te});var e=h(94650),c=h(28820),A=h(36895),w=h(38719),g=h(21963),C=h(63167),T=h(9244),E=h(74281),S=h(65412),U=h(24006),_=h(59549),V=h(284);let z=(()=>{class v{constructor(B){this.dialog=B,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,T.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(B){const W=(0,T.kZ)();W.width="350px",W.data={value:B.value,title:B.displayName},this.dialog.open(E.mk,W)}}return v.\u0275fac=function(B){return new(B||v)(e.Y36(S.uw))},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(B,W){1&B&&(e.TgZ(0,"mat-form-field",0)(1,"input",1),e.NdJ("click",function(){return W.readonly&&void 0!==W.attribute.value&&W.showValue(W.attribute)})("ngModelChange",function(ue){return W.attribute.value=ue})("keydown",function(){return W._sendEventToParent()}),e.qZA()()),2&B&&(e.s9C("appearance",W.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",W.readonly&&void 0!==W.attribute.value),e.Q6J("readonly",W.readonly)("ngModel",W.attribute.value))},dependencies:[U.Fj,U.wV,U.JJ,U.On,_.KE,V.Nt],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),v})();const Q=["map"];function te(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function oe(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function ee(v,L){if(1&v&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function le(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}function de(v,L){if(1&v){const B=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){e.CHM(B);const q=e.oxw();return e.KtG(q._sendEventToParent2())}),e.qZA()}if(2&v){const B=e.oxw();e.Q6J("attribute",B.attribute)("readonly",B.readonly)}}let Te=(()=>{class v{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return v.\u0275fac=function(B){return new(B||v)},v.\u0275cmp=e.Xpm({type:v,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(B,W){if(1&B&&e.Gf(Q,5),2&B){let q;e.iGM(q=e.CRH())&&(W.mapComponent=q.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(B,W){1&B&&(e.TgZ(0,"div"),e.YNc(1,te,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,oe,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return W._sendEventToParent2()}),e.YNc(4,ee,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,le,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,de,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&B&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===W.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===W.attribute.type||"java.lang.LargeString"===W.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===W.attribute.type))},dependencies:[A.O5,w.u,g.H,c.$,C._,z]}),v})()},53984:(Ye,pe,h)=>{"use strict";h.d(pe,{p:()=>Ge});var e=h(96308),c=h(30671),A=h(95017),w=h(43532),g=h(9244),C=h(32080),T=h(94650),E=h(36895),S=h(56709),U=h(98380),_=h(10266),V=h(18750),z=h(89383);let Q=(()=>{class ce{transform(he){return"virt"===he.namespace.split(":")[4]}}return ce.\u0275fac=function(he){return new(he||ce)},ce.\u0275pipe=T.Yjl({name:"isVirtualAttribute",type:ce,pure:!0}),ce})();var te=h(64597);function oe(ce,Ze){if(1&ce){const he=T.EpF();T.TgZ(0,"th",17)(1,"mat-checkbox",18),T.NdJ("change",function(j){T.CHM(he);const R=T.oxw();return T.KtG(j?R.masterToggle():null)}),T.qZA()()}if(2&ce){const he=T.oxw();T.xp6(1),T.Q6J("checked",he.selection.hasValue()&&he.isAllSelected())("indeterminate",he.selection.hasValue()&&!he.isAllSelected())("aria-label",he.checkboxLabel())}}function ee(ce,Ze){if(1&ce){const he=T.EpF();T.TgZ(0,"td",19)(1,"mat-checkbox",20),T.NdJ("click",function(j){return j.stopPropagation()})("change",function(j){const G=T.CHM(he).$implicit,se=T.oxw();return T.KtG(j?se.selection.toggle(G):null)}),T.ALo(2,"multiWordDataCy"),T.ALo(3,"isVirtualAttribute"),T.qZA()()}if(2&ce){const he=Ze.$implicit,xe=T.oxw();T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,4,he.displayName),"-checkbox"),T.Q6J("checked",xe.selection.isSelected(he))("disabled",T.lcZ(3,6,he)||!he.writable)("aria-label",xe.checkboxLabel(he))}}function le(ce,Ze){1&ce&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function de(ce,Ze){if(1&ce&&(T.TgZ(0,"td",22),T._uU(1),T.qZA()),2&ce){const he=Ze.$implicit;T.xp6(1),T.Oqu(he.id)}}function Te(ce,Ze){1&ce&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function v(ce,Ze){if(1&ce&&(T.TgZ(0,"td",23)(1,"div",24),T._uU(2),T.qZA()()),2&ce){const he=Ze.$implicit,xe=T.oxw();T.xp6(1),T.s9C("matTooltip",xe.getAttributeFullName(he)),T.xp6(1),T.hij(" ",he.displayName," ")}}function L(ce,Ze){1&ce&&(T.TgZ(0,"th",25),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function B(ce,Ze){if(1&ce){const he=T.EpF();T.TgZ(0,"td",23)(1,"perun-web-apps-attribute-value",26),T.NdJ("sendEventToParent2",function(){const R=T.CHM(he).$implicit,G=T.oxw();return T.KtG(G.onValueChange(R))}),T.qZA()()}if(2&ce){const he=Ze.$implicit,xe=T.oxw();T.xp6(1),T.Q6J("attribute",he)("readonly",xe.readonly||!he.writable)}}function W(ce,Ze){1&ce&&(T.TgZ(0,"th",21),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function q(ce,Ze){if(1&ce&&(T.TgZ(0,"td",23),T._uU(1),T.qZA()),2&ce){const he=Ze.$implicit;T.xp6(1),T.Oqu(he.description)}}function ue(ce,Ze){1&ce&&T._UZ(0,"tr",27)}function ye(ce,Ze){if(1&ce&&(T._UZ(0,"tr",28),T.ALo(1,"translate")),2&ce){const he=Ze.$implicit,xe=T.oxw();T.s9C("matTooltip",T.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),T.Q6J("matTooltipPosition","before")("matTooltipDisabled",he.writable||xe.readonly)}}function Me(ce,Ze){1&ce&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function we(ce,Ze){if(1&ce&&(T.TgZ(0,"perun-web-apps-alert",29),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&ce){const he=T.oxw();T.xp6(1),T.hij(" ",T.lcZ(2,1,he.emptyListText),"\n")}}let Ge=(()=>{class ce{constructor(he,xe){this.authResolver=he,this.tableCheckbox=xe,this.attributes=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=g.f7}set matSort(he){this.sort=he,this.setDataSource()}static canBeSelected(he){return!(0,g.Hm)(he)&&he.writable}static getDataForColumn(he,xe){switch(xe){case"id":return he.id.toString();case"displayName":return he.displayName;case"description":return he.description;case"value":return JSON.stringify(he.value);case"urn":return he.namespace+":"+he.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(he=>"id"!==he)),this.dataSource=new c.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(he){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,ce.getDataForColumn),he)}exportDisplayedData(he){const xe=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,j=xe+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(xe,j),this.displayedColumns,ce.getDataForColumn),he)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(he=>!this.hiddenColumns.includes(he)),this.dataSource&&(this.dataSource.filterPredicate=(he,xe)=>(0,g.Sd)(he,xe,this.displayedColumns.concat("urn"),ce.getDataForColumn),this.dataSource.sortData=(he,xe)=>(0,g.pR)(he,xe,ce.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,ce.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,ce.canBeSelected)}checkboxLabel(he){return he?`${this.selection.isSelected(he)?"deselect":"select"} row ${he.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const he of this.items.toArray())"java.util.LinkedHashMap"===he.attribute.type&&he.updateMapAttribute()}onValueChange(he){ce.canBeSelected(he)&&this.selection.select(he)}getAttributeFullName(he){return`${he.namespace}:${he.friendlyName}`}}return ce.\u0275fac=function(he){return new(he||ce)(T.Y36(C.x4),T.Y36(C.UA))},ce.\u0275cmp=T.Xpm({type:ce,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(he,xe){if(1&he&&(T.Gf(g.l9,7),T.Gf(e.YE,7),T.Gf(w.M,5)),2&he){let j;T.iGM(j=T.CRH())&&(xe.child=j.first),T.iGM(j=T.CRH())&&(xe.matSort=j.first),T.iGM(j=T.CRH())&&(xe.items=j)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[T.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(he,xe){1&he&&(T.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(R){return xe.exportDisplayedData(R)})("exportAllData",function(R){return xe.exportAllData(R)}),T.TgZ(2,"table",2),T.ynx(3,3),T.YNc(4,oe,2,3,"th",4),T.YNc(5,ee,4,8,"td",5),T.BQk(),T.ynx(6,6),T.YNc(7,le,3,3,"th",7),T.YNc(8,de,2,1,"td",8),T.BQk(),T.ynx(9,9),T.YNc(10,Te,3,3,"th",7),T.YNc(11,v,3,2,"td",10),T.BQk(),T.ynx(12,11),T.YNc(13,L,3,3,"th",12),T.YNc(14,B,2,2,"td",10),T.BQk(),T.ynx(15,13),T.YNc(16,W,3,3,"th",7),T.YNc(17,q,2,1,"td",10),T.BQk(),T.YNc(18,ue,1,0,"tr",14),T.YNc(19,ye,2,5,"tr",15),T.qZA()()(),T.YNc(20,Me,3,3,"perun-web-apps-alert",16),T.YNc(21,we,3,3,"perun-web-apps-alert",16)),2&he&&(T.Q6J("hidden",0===xe.dataSource.filteredData.length),T.xp6(1),T.Q6J("tableId",xe.tableId)("dataLength",xe.dataSource.filteredData.length)("pageSizeOptions",xe.pageSizeOptions),T.xp6(1),T.Q6J("dataSource",xe.dataSource),T.xp6(16),T.Q6J("matHeaderRowDef",xe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",xe.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===xe.dataSource.filteredData.length&&0!==xe.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",0===xe.dataSource.data.length))},dependencies:[E.O5,S.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,e.YE,e.nU,U.w,_.gM,V.l,w.M,z.X$,Q,te.R],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),ce})()},4235:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>S});var e=h(32080),c=h(94650),A=h(36895),w=h(97392),g=h(4859),C=h(10266),T=h(89383);const E=function(U){return{color:U}};let S=(()=>{class U{constructor(V,z){this.location=V,this.storeService=z}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return U.\u0275fac=function(V){return new(V||U)(c.Y36(A.Ye),c.Y36(e.d6))},U.\u0275cmp=c.Xpm({type:U,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(V,z){1&V&&(c.TgZ(0,"button",0),c.NdJ("click",function(){return z.goBack()}),c.ALo(1,"translate"),c.TgZ(2,"mat-icon",1),c._uU(3,"arrow_right_alt"),c.qZA()()),2&V&&(c.s9C("matTooltip",c.lcZ(1,2,"Back")),c.Q6J("ngStyle",c.VKq(4,E,z.backButtonColor)))},dependencies:[A.PC,w.Hw,g.lW,C.gM,T.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),U})()},61150:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>V});var e=h(94650),c=h(24006),A=h(32080),w=h(36895),g=h(56709),C=h(59549),T=h(284),E=h(82322),S=h(89383);function U(z,Q){if(1&z){const te=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){e.CHM(te);const ee=e.oxw();return e.KtG(ee.emitAsSubGroup())})("ngModelChange",function(ee){e.CHM(te);const le=e.oxw();return e.KtG(le.asSubgroup=ee)}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&z){const te=e.oxw();e.Q6J("labelPosition","before")("ngModel",te.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function _(z,Q){if(1&z){const te=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(ee){e.CHM(te);const le=e.oxw();return e.KtG(le.emitParentGroup(ee))}),e.qZA()}if(2&z){const te=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",te.voGroups)}}let V=(()=>{class z{constructor(te){this.store=te,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new c.p4("",[c.kI.required,c.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),c.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new c.p4("",[c.kI.required,c.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(te=>"members"!==te.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(te){this.selectedParent=te,this.parentGroupChanged.emit(te)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return z.\u0275fac=function(te){return new(te||z)(e.Y36(A.d6))},z.\u0275cmp=e.Xpm({type:z,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(te,oe){1&te&&(e.TgZ(0,"div",0)(1,"mat-form-field",1),e.NdJ("keyup",function(){return oe.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return oe.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA()(),e.YNc(15,U,3,5,"mat-checkbox",5),e.YNc(16,_,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&te&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",oe.nameControl),e.xp6(3),e.hij(" ",oe.invalidNameMessage.length?oe.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",oe.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",oe.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",oe.asSubgroup))},dependencies:[w.O5,g.oG,c.Fj,c.JJ,c.Q7,c.On,C.TO,C.KE,c.oH,T.Nt,E.h,S.X$]}),z})()},39798:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>T});var e=h(94650),c=h(24006),A=h(59549),w=h(284),g=h(99602),C=h(89383);let T=(()=>{class E{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return E.\u0275fac=function(U){return new(U||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(U,_){if(1&U){const V=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){e.CHM(V);const Q=e.MAs(7);return e.KtG(Q.open())}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return _.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2)(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){e.CHM(V);const Q=e.MAs(15);return e.KtG(Q.open())}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return _.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2)(14,"mat-datepicker",null,5),e.qZA()}if(2&U){const V=e.MAs(7),z=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",V)("min",_.startMinDate)("max",_.startMaxDate)("formControl",_.startDate),e.xp6(1),e.Q6J("for",V),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",z)("min",_.endMinDate)("max",_.endMaxDate)("formControl",_.endDate),e.xp6(1),e.Q6J("for",z)}},dependencies:[c.Fj,c.JJ,A.KE,A.hX,A.R9,c.oH,w.Nt,g.Mq,g.hl,g.nW,C.X$]}),E})()},64901:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>_});var e=h(94650),c=h(54968),A=h(54004),w=h(78372),g=h(71884),C=h(24006),T=h(59549),E=h(284),S=h(89383);const U=["input"];let _=(()=>{class V{constructor(){this.autoFocus=!1,this.control=new C.p4,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,c.R)(this.input.nativeElement,"keyup").pipe((0,A.U)(Q=>Q.target.value),(0,w.b)(500),(0,g.x)()).subscribe(Q=>{this.control.invalid||this.filter.emit(Q)})}}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(Q,te){if(1&Q&&e.Gf(U,7),2&Q){let oe;e.iGM(oe=e.CRH())&&(te.input=oe.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(Q,te){1&Q&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA()()),2&Q&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,te.placeholder)),e.Q6J("formControl",te.control),e.xp6(4),e.hij(" ",te.error," "))},dependencies:[C.Fj,C.JJ,T.TO,T.KE,C.oH,E.Nt,S.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),V})()},42377:(Ye,pe,h)=>{"use strict";h.d(pe,{i:()=>de});var e=h(94650),c=h(24006),A=h(4707),w=h(77579),g=h(71884),C=h(82722),T=h(36895),E=h(59549),S=h(3238),U=h(84385),_=h(33231),V=h(67376);const z=["scrollViewport"];function Q(Te,v){if(1&Te&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&Te){const L=e.oxw();e.xp6(1),e.hij(" ",L.multipleSelectedText()," ")}}function te(Te,v){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const L=e.oxw(2);e.Tol(L.colorByStatus(null==L.entitiesCtrl?null:L.entitiesCtrl.value)),e.xp6(1),e.hij(" ",L.statusTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)?"("+L.statusTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)+")":""," ")}}function oe(Te,v){if(1&Te&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,te,2,4,"span",10),e.qZA()),2&Te){const L=e.oxw();e.Q6J("value",null==L.entitiesCtrl?null:L.entitiesCtrl.value),e.xp6(1),e.hij(" ",L.mainTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(L.secondaryTextFunction(null==L.entitiesCtrl?null:L.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",L.displayStatus)}}function ee(Te,v){if(1&Te&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&Te){const L=e.oxw().$implicit,B=e.oxw();e.Tol(B.colorByStatus(L)),e.xp6(1),e.hij(" ",B.statusTextFunction(L)?"("+B.statusTextFunction(L)+")":""," ")}}function le(Te,v){if(1&Te&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ee,2,4,"span",10),e.qZA()),2&Te){const L=v.$implicit,B=e.oxw();e.Tol(B.theme),e.Q6J("value",L),e.xp6(1),e.hij(" ",B.mainTextFunction(L)," "),e.xp6(2),e.Oqu(B.secondaryTextFunction(L)),e.xp6(1),e.Q6J("ngIf",B.displayStatus)}}let de=(()=>{class Te{constructor(L){this.cd=L,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.entitySelected=new e.vpe,this.entitiesCtrl=new c.p4,this.entityFilterCtrl=new c.p4,this.filteredEntities=new A.t(1),this._onDestroy=new w.x,this.entitiesLen=0,this.mainTextFunction=B=>JSON.stringify(B),this.secondaryTextFunction=B=>"#".concat(String(B.id),B.description?" ".concat(B.description):""),this.statusTextFunction=B=>B.status}ngOnInit(){this.entitiesCtrl.valueChanges.pipe((0,g.x)()).subscribe(L=>this.entitySelected.emit(L)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(L=>this.entitiesLen=L.length),this.entityFilterCtrl.valueChanges.pipe((0,C.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(L){switch(L.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(L){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),L.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(L){return L.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let L=48*this.entitiesLen;return L>192&&(L=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),L}multipleSelectedText(){const L=this.entitiesCtrl.value;if(L&&0!==L.length)return L.length===this.entities.length?"ALL":L.length>1?this.mainTextFunction(L[0])+` + ${L.length-1} other(s)`:this.mainTextFunction(L[0])+" "+this.secondaryTextFunction(L[0])}filterEntites(){if(!this.entities)return;let L=this.entityFilterCtrl.value;if(!L)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();L=this.normalize(L),this.filteredEntities.next(this.entities.filter(B=>this.normalize(this.searchFunction(B)).includes(L))),this.cd.detectChanges()}}return Te.\u0275fac=function(L){return new(L||Te)(e.Y36(e.sBO))},Te.\u0275cmp=e.Xpm({type:Te,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(L,B){if(1&L&&e.Gf(z,5),2&L){let W;e.iGM(W=e.CRH())&&(B.scrollViewport=W.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],["data-cy","search-select-input",3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(L,B){1&L&&(e.TgZ(0,"mat-form-field",0)(1,"mat-select",1),e.NdJ("openedChange",function(){return B.openChange()}),e.YNc(2,Q,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,oe,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,le,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA()()()),2&L&&(e.xp6(1),e.s9C("placeholder",B.selectPlaceholder),e.Q6J("formControl",B.entitiesCtrl)("multiple",B.multiple),e.xp6(1),e.Q6J("ngIf",B.multiple),e.xp6(2),e.s9C("placeholderLabel",B.findPlaceholder),e.s9C("noEntriesFoundLabel",B.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",B.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==B.entitiesCtrl?null:B.entitiesCtrl.value),e.xp6(1),e.Udp("height",B.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,B.filteredEntities)))},dependencies:[T.O5,c.JJ,E.KE,c.oH,S.ey,U.gD,U.$L,_.nu,V.xd,V.x0,V.N7,T.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),Te})()},74010:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>Y});var e=h(96308),c=h(30671),A=h(9244),w=h(32080),g=h(94650),C=h(36895),T=h(56709),E=h(94364),S=h(98380),U=h(18750),_=h(50301),V=h(10441),z=h(24006),Q=h(97392),te=h(4859),oe=h(10266);function ee(Ce,ae){if(1&Ce&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.hij(" ",re[Se.paramName]," ")}}function le(Ce,ae){1&Ce&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function de(Ce,ae){1&Ce&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function Te(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.onShowChange())}),g.YNc(1,le,2,0,"mat-icon",8),g.YNc(2,de,2,0,"mat-icon",8),g.qZA()}if(2&Ce){const re=g.oxw();g.xp6(1),g.Q6J("ngIf",!re.showMore),g.xp6(1),g.Q6J("ngIf",re.showMore)}}let v=(()=>{class Ce{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return Ce.\u0275fac=function(re){return new(re||Ce)},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[g.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(re,Se){1&re&&(g.TgZ(0,"form",0)(1,"div",1)(2,"div",2),g.YNc(3,ee,2,1,"div",3),g.qZA(),g.TgZ(4,"div")(5,"span",4),g.YNc(6,Te,3,2,"button",5),g.qZA()()()()),2&re&&(g.xp6(3),g.Q6J("ngForOf",Se.objects.slice(0,Se.itemsShown)),g.xp6(2),g.Q6J("matTooltip",Se.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",Se.objects.length>Se.defaultItemsShown))},dependencies:[C.sg,C.O5,z._Y,z.JL,z.F,Q.Hw,te.lW,oe.gM]}),Ce})();var L=h(89383),B=h(53561);let W=(()=>{class Ce{transform(re,Se,Fe){return re.filter(be=>be[Fe].includes(Se)).filter((be,Ue,P)=>P.findIndex(H=>H[Fe]===be[Fe])===Ue)}}return Ce.\u0275fac=function(re){return new(re||Ce)},Ce.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:Ce,pure:!0}),Ce})();function q(Ce,ae){1&Ce&&g._UZ(0,"th",20)}function ue(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"td",21)(1,"mat-checkbox",22),g.NdJ("change",function(Fe){const Ue=g.CHM(re).$implicit,P=g.oxw();return g.KtG(Fe?P.selection.toggle(Ue):null)})("click",function(Fe){return Fe.stopPropagation()}),g.qZA()()}if(2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q2q("data-cy","",re.facility.name,"-checkbox"),g.Q6J("aria-label",Se.checkboxLabel(re))("checked",Se.selection.isSelected(re))}}function ye(Ce,ae){1&Ce&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Me(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit;g.xp6(1),g.hij(" ",re.facility.id," ")}}function we(Ce,ae){1&Ce&&g._UZ(0,"th",25)}function Ge(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q6J("id",re.facility.id)("recentIds",Se.recentIds)}}function ce(Ce,ae){1&Ce&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function Ze(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit;g.uIk("data-cy",re.facility.name),g.xp6(1),g.hij(" ",re.facility.name," ")}}function he(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function xe(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Ce){const re=ae.$implicit;g.xp6(1),g.Oqu(re.facility.description)}}function j(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function R(Ce,ae){if(1&Ce&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&Ce){const re=ae.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,re.owners))}}function G(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function se(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!0)})("mouseleave",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,re.destinations,Se.filterValue,"destination"))("paramName","destination")}}function $(Ce,ae){1&Ce&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function Ee(Ce,ae){if(1&Ce){const re=g.EpF();g.TgZ(0,"td",26)(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!0)})("mouseleave",function(){g.CHM(re);const Fe=g.oxw();return g.KtG(Fe.localDisableRouting=!1)}),g.ALo(2,"filterUniqueObjects"),g.qZA()()}if(2&Ce){const re=ae.$implicit,Se=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,re.hosts,Se.filterValue,"hostname"))("paramName","hostname")}}function Oe(Ce,ae){1&Ce&&g._UZ(0,"tr",29)}const ct=function(Ce){return["/facilities",Ce]},Xe=function(){return[]};function _t(Ce,ae){if(1&Ce&&g._UZ(0,"tr",30),2&Ce){const re=ae.$implicit,Se=g.oxw();g.ekj("cursor-pointer",!Se.disableRouting)("disable-outline",Se.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(6,ct,re.facility.id))("routerLink",Se.disableRouting||Se.localDisableRouting?g.DdM(8,Xe):g.VKq(9,ct,re.facility.id))}}function Je(Ce,ae){1&Ce&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function gt(Ce,ae){1&Ce&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Ce&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Y=(()=>{class Ce{constructor(re){this.authResolver=re,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=A.f7,this.disableRouting=!1,this.getDataForColumnFun=(Se,Fe)=>Ce.getDataForColumn(Se,Fe,this.recentIds)}set matSort(re){this.sort=re}static getDataForColumn(re,Se,Fe){switch(Se){case"id":return re.facility.id.toString();case"name":return re.facility.name;case"description":return re.facility.description;case"technicalOwners":return(0,A.te)(re.owners);case"recent":return Fe&&Fe.includes(re.facility.id)?"#".repeat(Fe.indexOf(re.facility.id)):re.name;case"destinations":return re.destinations.map(be=>be.destination).join(" ; ");case"hosts":return re.hosts.map(be=>be.hostname).join(" ; ");default:return re[Se]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(re=>"id"!==re)),this.setDataSource()}exportAllData(re){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),re)}exportDisplayedData(re){const Se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,Fe=Se+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Se,Fe),this.displayedColumns,this.getDataForColumnFun),re)}setDataSource(){this.dataSource||(this.dataSource=new c.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(re,Se)=>(0,A.Sd)(re,Se,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(re,Se)=>(0,A.pR)(re,Se,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(re=>this.selection.select(re))}checkboxLabel(re){return re?`${this.selection.isSelected(re)?"deselect":"select"} row ${re.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Ce.\u0275fac=function(re){return new(re||Ce)(g.Y36(w.x4))},Ce.\u0275cmp=g.Xpm({type:Ce,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(re,Se){if(1&re&&(g.Gf(A.l9,7),g.Gf(e.YE,7)),2&re){let Fe;g.iGM(Fe=g.CRH())&&(Se.child=Fe.first),g.iGM(Fe=g.CRH())&&(Se.matSort=Fe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions",disableRouting:"disableRouting"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(re,Se){1&re&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(be){return Se.exportDisplayedData(be)})("exportAllData",function(be){return Se.exportAllData(be)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,q,1,0,"th",4),g.YNc(5,ue,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ye,3,3,"th",7),g.YNc(8,Me,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,we,1,0,"th",10),g.YNc(11,Ge,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,ce,3,3,"th",7),g.YNc(14,Ze,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,he,3,3,"th",10),g.YNc(17,xe,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,j,3,3,"th",10),g.YNc(20,R,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,G,3,3,"th",10),g.YNc(23,se,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,$,3,3,"th",10),g.YNc(26,Ee,3,6,"td",11),g.BQk(),g.YNc(27,Oe,1,0,"tr",17),g.YNc(28,_t,1,11,"tr",18),g.qZA()()(),g.YNc(29,Je,3,3,"perun-web-apps-alert",19),g.YNc(30,gt,3,3,"perun-web-apps-alert",19)),2&re&&(g.Q6J("hidden",!Se.dataSource||0===Se.dataSource.filteredData.length||0===Se.facilities.length),g.xp6(1),g.Q6J("tableId",Se.tableId)("dataLength",Se.dataSource.filteredData.length)("pageSizeOptions",Se.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",Se.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",Se.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Se.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===Se.dataSource.filteredData.length&&0!==Se.facilities.length),g.xp6(1),g.Q6J("ngIf",0===Se.facilities.length))},dependencies:[C.O5,T.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,E.rH,e.YE,e.nU,S.w,U.l,_.YH,V.W,v,L.X$,B.J,W],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ce})()},13449:(Ye,pe,h)=>{"use strict";h.d(pe,{i:()=>v});var e=h(94650),c=h(32080),A=h(36895),w=h(97392),g=h(28255),C=h(4859),T=h(10266),E=h(64425),S=h(89383),U=h(29218),_=h(45942),V=h(28764);function z(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onSyncDetail())}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA()()()}if(2&L){const W=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,W.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,W.group)),e.xp6(2),e.Tol(e.lcZ(6,13,W.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,W.group)," ")}}function Q(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onMoveGroup())}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA()()()}if(2&L){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function te(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onChangeNameDescription())}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA()()()}if(2&L){const W=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",W.disabled)}}function oe(L,B){if(1&L&&(e.TgZ(0,"div",2)(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA()(),e.YNc(5,z,9,17,"span",4),e.YNc(6,Q,5,5,"span",4),e.YNc(7,te,5,5,"span",4),e.qZA()),2&L){const W=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",W.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",W.syncAuth),e.xp6(1),e.Q6J("ngIf",W.moveAuth),e.xp6(1),e.Q6J("ngIf",W.editAuth)}}function ee(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onSyncDetail())}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA()()}if(2&L){const W=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,W.group)),e.xp6(2),e.Tol(e.lcZ(3,8,W.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,W.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,W.group)))}}function le(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onMoveGroup())}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&L){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function de(L,B){if(1&L){const W=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(W);const ue=e.oxw(2);return e.KtG(ue.onChangeNameDescription())}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&L){const W=e.oxw(2);e.Q6J("disabled",W.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Te(L,B){if(1&L&&(e.TgZ(0,"div")(1,"button",7)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,8)(6,"button",9)(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA()(),e.YNc(12,ee,10,16,"button",10),e.YNc(13,le,6,4,"button",10),e.YNc(14,de,6,4,"button",10),e.qZA()()),2&L){const W=e.MAs(5),q=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",W),e.xp6(5),e.Q6J("cdkCopyToClipboard",q.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",q.syncAuth),e.xp6(1),e.Q6J("ngIf",q.moveAuth),e.xp6(1),e.Q6J("ngIf",q.editAuth)}}let v=(()=>{class L{constructor(W){this.authResolver=W,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return L.\u0275fac=function(W){return new(W||L)(e.Y36(c.x4))},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(W,q){1&W&&(e.YNc(0,oe,8,8,"div",0),e.YNc(1,Te,15,8,"div",1)),2&W&&(e.Q6J("ngIf",q.displayButtons),e.xp6(1),e.Q6J("ngIf",!q.displayButtons))},dependencies:[A.O5,w.Hw,g.VK,g.OP,g.p6,C.lW,T.gM,E.i3,S.X$,U.J,_.r,V.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),L})()},8223:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>z});var e=h(94650),c=h(9244),A=h(74281),w=h(65412),g=h(36895),C=h(97392),T=h(10266),E=h(89383);function S(Q,te){if(1&Q){const oe=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(oe);const le=e.oxw();return e.KtG(le.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA()()}if(2&Q){const oe=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),e.Q2q("data-cy","",oe.groupName,"-active")}}function U(Q,te){if(1&Q){const oe=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(oe);const le=e.oxw();return e.KtG(le.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA()()}if(2&Q){const oe=e.oxw();e.s9C("matTooltip",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),e.Q2q("data-cy","",oe.groupName,"-inactive")}}function _(Q,te){if(1&Q){const oe=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){e.CHM(oe);const le=e.oxw();return e.KtG(le.changeStatus())}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA()()}if(2&Q){const oe=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",oe.failureCause,"")}}function V(Q,te){1&Q&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA()()),2&Q&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let z=(()=>{class Q{constructor(oe){this.dialog=oe,this.status="",this.groupName="",this.statusChange=new e.vpe}changeStatus(){const oe=(0,c.kZ)();oe.width="500px",oe.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(A.Qu,oe).afterClosed().subscribe(le=>{le&&this.statusChange.emit()})}}return Q.\u0275fac=function(oe){return new(oe||Q)(e.Y36(w.uw))},Q.\u0275cmp=e.Xpm({type:Q,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(oe,ee){1&oe&&(e.TgZ(0,"div",0),e.YNc(1,S,4,4,"span",1),e.YNc(2,U,4,4,"span",1),e.YNc(3,_,4,4,"span",1),e.YNc(4,V,4,3,"span",2),e.qZA()),2&oe&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===ee.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===ee.status),e.xp6(1),e.Q6J("ngIf","FAILED"===ee.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===ee.status))},dependencies:[g.O5,C.Hw,T.gM,E.X$]}),Q})()},82322:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=E=>E.name}ngOnInit(){this.groups=this.groups.sort(c.aC)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){if(1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.groupSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E){let U;e.Q6J("entities",S.groups)("entity",null!==(U=S.firstSelectedGroup)&&void 0!==U?U:null)("displayStatus",S.displayStatus)("disableAutoSelect",S.disableAutoSelect)("mainTextFunction",S.nameFunction)("searchFunction",S.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},dependencies:[A.i,w.X$]}),C})()},24179:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>i});var e=h(94650),c=h(74281),A=h(32105),w=h(32080),g=h(9244),C=h(96308),T=h(30671),E=h(95017),S=h(36895),U=h(65412),_=h(56709),V=h(98380),z=h(97392),Q=h(4859),te=h(10266),oe=h(18750),ee=h(13449),le=h(50301),de=h(10441),Te=h(8223),v=h(89383),L=h(21757);let B=(()=>{class o{transform(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275pipe=e.Yjl({name:"groupExpiration",type:o,pure:!0}),o})();var W=h(82514),q=h(62383);function ue(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(n){e.CHM(l);const t=e.oxw(2);return e.KtG(n?t.masterToggle():null)}),e.qZA()}if(2&o){const l=e.oxw(2);e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function ye(o,f){if(1&o&&(e.TgZ(0,"th",24),e.YNc(1,ue,1,3,"mat-checkbox",25),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!l.disableHeadCheckbox)}}function Me(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",27)(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(n?s.itemSelectionToggle(r):null)})("click",function(n){return n.stopPropagation()}),e.qZA()()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,a.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!a.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",a.checkboxLabel(l))("checked",a.selection.isSelected(l))("disabled","members"===l.name&&a.disableMembers||a.disableSelect(l))}}function we(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function Ge(o,f){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.id)}}function ce(o,f){1&o&&e._UZ(0,"th",32)}function Ze(o,f){if(1&o&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("recentIds",a.recentIds)("id",l.id)}}function he(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function xe(o,f){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.hij(" ",a.voNames.get(l.voId)," ")}}function j(o,f){1&o&&e._UZ(0,"th",32)}function R(o,f){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function G(o,f){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function se(o,f){if(1&o&&(e.TgZ(0,"td",33),e.YNc(1,R,3,3,"mat-icon",35),e.YNc(2,G,3,3,"mat-icon",35),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function $(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function Ee(o,f){if(1&o&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function Oe(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function ct(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",37)(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=n.disableRouting)})("statusChange",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.refreshTable.emit())}),e.qZA()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("groupName",l.name)("resourceId",a.resourceId)("failureCause",l.failureCause)("status",l.status)}}function Xe(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function _t(o,f){if(1&o&&(e.TgZ(0,"td",33)(1,"i",39),e.ALo(2,"groupStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA()()()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,a.getStatusAttribute(l)),""),e.s9C("matTooltip",a.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,a.getStatusAttribute(l))," ")}}function Je(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function gt(o,f){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.description)}}function Y(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function Ce(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const n=e.oxw().$implicit,t=e.oxw();return e.KtG(t.changeExpiration(n))})("mouseenter",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disabledRouting=n.disableRouting)}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA()()}}function ae(o,f){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,Ce,3,0,"button",40),e.qZA()),2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",a.canManageGroup(l))}}function re(o,f){1&o&&e._UZ(0,"th",32)}function Se(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",33)(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw();return e.KtG(n.disabledRouting=n.disableRouting)})("moveGroup",function(){const t=e.CHM(l).$implicit,r=e.oxw();return e.KtG(r.onMoveGroup(t))})("changeNameDescription",function(){const t=e.CHM(l).$implicit,r=e.oxw();return e.KtG(r.onChangeNameDescription(t))})("syncGroup",function(){const t=e.CHM(l).$implicit,r=e.oxw();return e.KtG(r.onSyncDetail(t))}),e.qZA()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",a.displayButtons)("group",l)}}function Fe(o,f){1&o&&e._UZ(0,"tr",43)}const be=function(o,f){return["/organizations",o,"groups",f]};function Ue(o,f){if(1&o&&e._UZ(0,"tr",44),2&o){const l=f.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disableRouting&&!a.groupsToDisableRouting.has(l.id))("disable-outline",a.disabledRouting||a.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",a.disabledRouting||a.groupsToDisableRouting.has(l.id)?null:e.WLB(6,be,l.voId,l.id))("perunWebAppsForceRouterLink",a.disabledRouting||a.groupsToDisableRouting.has(l.id)?null:e.WLB(9,be,l.voId,l.id))}}function P(o,f){if(1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,l.noGroupsAlert),"\n")}}function H(o,f){1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let i=(()=>{class o{constructor(l,a,n,t,r){this.dialog=l,this.authResolver=a,this.voService=n,this.tableCheckbox=t,this.changeDetector=r,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new E.Ov(!0,[]),this.displayedColumns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.filter="",this.disableRouting=!1,this.pageSizeOptions=g.f7,this.recentIds=[],this.resourceId=null,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.refreshTable=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.hasMembersGroup=!1,this.getDataForColumnFun=(s,d)=>o.getDataForColumn(s,d,this.voNames),this.getSortDataForColumnFun=(s,d)=>o.getSortDataForColumn(s,d,this.voNames,this.recentIds),this.canBeSelected=s=>!("members"===s.name&&this.disableMembers||this.disableSelect(s))}set matSort(l){this.sort=l}static getDataForColumn(l,a,n){switch(a){case"id":return l.id.toString();case"vo":return n.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const t=(0,g.x2)(l);return(0,g.sG)(t)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[a]}}static getSortDataForColumn(l,a,n,t){switch(a){case"id":return l.id.toString();case"vo":return n.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const r=(0,g.x2)(l);return r&&"never"!==r.toLowerCase()?(0,S.p6)(r,"yyyy.MM.dd","en"):r}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[a]}}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnChanges(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const l of this.groups)if("members"===l.name)return!0;return!1}exportAllData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}exportDisplayedData(l){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=a+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,n),this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new T.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,a)=>(0,g.Sd)(l,a,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,a)=>(0,g.pR)(l,a,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(l){return this.disableGroups&&(this.groupsToDisableCheckbox.has(l.id)||(0,g.bx)(l))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.shouldHideButtons(),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l),this.changeDetector.detectChanges())}onMoveGroup(l){this.moveGroup.emit(l)}onSyncDetail(l){const a=(0,g.kZ)();a.data={groupId:l.id,theme:this.theme},this.dialog.open(c.Bp,a)}onChangeNameDescription(l){const a=(0,g.kZ)();a.data={theme:"group-theme",group:l,dialogType:c.Eg.GROUP},this.dialog.open(c.rd,a).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[a]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[a]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,a]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[a]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,a)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,a]),!0):void 0}itemSelectionToggle(l){this.selection.toggle(l),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(l){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(l)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":l.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.displayedColumns.includes("vo")&&(this.groups.forEach(l=>{this.voIds.has(l.voId)||this.voIds.add(l.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(l=>{l.forEach(a=>{this.voNames.set(a.id,a.name)})}))}changeExpiration(l){const a=l.attributes.find(r=>"groupMembershipExpiration"===r.baseFriendlyName),n=(0,g.kZ)();n.width="400px",n.data={memberId:this.memberId,groupId:l.id,expirationAttr:a,status:this.getStatusAttribute(l)},this.dialog.open(c.u3,n).afterClosed().subscribe(r=>{r.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const a=l.attributes.find(n=>"groupStatus"===n.baseFriendlyName);return a?.value?a.value:""}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(U.uw),e.Y36(w.x4),e.Y36(A.YF),e.Y36(w.UA),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,a){if(1&l&&(e.Gf(g.l9,7),e.Gf(C.YE,7)),2&l){let n;e.iGM(n=e.CRH())&&(a.child=n.first),e.iGM(n=e.CRH())&&(a.matSort=n.first)}},hostBindings:function(l,a){1&l&&e.NdJ("resize",function(t){return a.shouldHideButtons(t)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",noGroupsAlert:"noGroupsAlert"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","groupName","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(l,a){1&l&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(t){return a.exportDisplayedData(t)})("exportAllData",function(t){return a.exportAllData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ye,2,1,"th",4),e.YNc(5,Me,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,we,3,3,"th",7),e.YNc(8,Ge,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,ce,1,0,"th",10),e.YNc(11,Ze,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,he,3,3,"th",7),e.YNc(14,xe,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,j,1,0,"th",10),e.YNc(17,se,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,$,3,3,"th",7),e.YNc(20,Ee,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,Oe,3,3,"th",7),e.YNc(23,ct,2,6,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,Xe,3,3,"th",7),e.YNc(26,_t,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Je,3,3,"th",7),e.YNc(29,gt,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,Y,3,3,"th",7),e.YNc(32,ae,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,re,1,0,"th",10),e.YNc(35,Se,2,3,"td",11),e.BQk(),e.YNc(36,Fe,1,0,"tr",21),e.YNc(37,Ue,1,12,"tr",22),e.qZA()()(),e.YNc(38,P,3,3,"perun-web-apps-alert",23),e.YNc(39,H,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===a.groups.length||!a.dataSource||0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("pageSizeOptions",a.pageSizeOptions)("tableId",a.tableId),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===a.groups.length),e.xp6(1),e.Q6J("ngIf",0===a.dataSource.filteredData.length&&0!==a.groups.length))},dependencies:[S.O5,_.oG,T.BZ,T.fO,T.as,T.w1,T.Dz,T.nj,T.ge,T.ev,T.XQ,T.Gk,C.YE,C.nU,V.w,z.Hw,Q.lW,te.gM,oe.l,ee.i,le.Kd,le.YH,de.W,Te.x,v.X$,L.f,B,W.F,q.M],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),o})()},58956:(Ye,pe,h)=>{"use strict";h.d(pe,{I:()=>we});var e=h(94650),c=h(35423),A=h(57851),w=h(95017);class g{constructor(ce){this.id=ce.id,this.name=ce.name,this.parentGroupId=ce.parentGroupId,this.voId=ce.voId,this.shortName=ce.shortName,this.description=ce.description,this.attributes=ce.attributes,this.beanName=ce.beanName}addChild(ce){null==this.children?this.children=[ce]:this.children.push(ce)}}var C=h(9244),T=h(74281),E=h(32080),S=h(65412),U=h(36895),_=h(56709),V=h(94364),z=h(98380),Q=h(97392),te=h(4859),oe=h(10266),ee=h(67376),le=h(13449),de=h(89383);const Te=["scrollViewport"];function v(Ge,ce){if(1&Ge){const Ze=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(Ze);const xe=e.oxw().$implicit,j=e.oxw(2);return e.KtG(j.itemSelectionToggle(xe))}),e.qZA()}if(2&Ge){const Ze=e.oxw().$implicit,he=e.oxw(2);e.Q2q("data-cy","",Ze.name,"-checkbox"),e.Q6J("disabled","members"===Ze.fullName)("checked",he.selection.isSelected(Ze))("indeterminate",he.descendantsPartiallySelected(Ze))}}function L(Ge,ce){if(1&Ge&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Ge){const Ze=e.oxw().$implicit,he=e.oxw(2);e.xp6(1),e.hij(" ",he.treeControl.isExpanded(Ze)?"expand_more":"chevron_right"," ")}}function B(Ge,ce){if(1&Ge&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Ge){const Ze=e.oxw().$implicit;e.xp6(1),e.hij(" #",Ze.id," ")}}const W=function(Ge,ce){return["/organizations",Ge,"groups",ce]};function q(Ge,ce){if(1&Ge){const Ze=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,v,1,4,"mat-checkbox",7),e.TgZ(3,"a",8)(4,"button",9),e.NdJ("mouseenter",function(){e.CHM(Ze);const xe=e.oxw(2);return e.KtG(xe.disableRouting=!0)})("mouseleave",function(){e.CHM(Ze);const xe=e.oxw(2);return e.KtG(xe.disableRouting=!1)})("click",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.treeControl.toggle(j))}),e.YNc(5,L,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11)(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,B,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15)(12,"span",16),e._uU(13),e.qZA()()(),e.TgZ(14,"div",17)(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.onMoveGroup(j))})("syncGroup",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.onSyncDetail(j))})("changeNameDescription",function(){const j=e.CHM(Ze).$implicit,R=e.oxw(2);return e.KtG(R.onChangeNameDescription(j))}),e.qZA()()(),e.BQk()}if(2&Ge){const Ze=ce.$implicit,he=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*Ze.level+"px"),e.xp6(1),e.Q6J("ngIf",!he.hideCheckbox),e.xp6(1),e.Q6J("routerLink",he.disableRouting?null:e.WLB(15,W,Ze.voId,Ze.id)),e.xp6(1),e.Q6J("disabled",!Ze.expandable),e.uIk("aria-label","toggle "+Ze.name),e.xp6(1),e.Q6J("ngIf",Ze.expandable),e.xp6(2),e.uIk("data-cy",Ze.name),e.xp6(1),e.hij(" ",Ze.name," "),e.xp6(1),e.Q6J("ngIf",he.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",Ze.description),e.xp6(1),e.hij(" ",Ze.description," "),e.xp6(2),e.Q6J("disabled","members"===Ze.fullName)("displayButtons",he.displayButtons)("group",Ze)}}const ue=function(Ge){return{height:Ge}};function ye(Ge,ce){if(1&Ge&&(e.TgZ(0,"div",2)(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,q,16,18,"ng-container",5),e.qZA()()),2&Ge){const Ze=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ue,Ze.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",Ze.dataSource)}}function Me(Ge,ce){1&Ge&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ge&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let we=(()=>{class Ge{constructor(Ze,he,xe){this.cd=Ze,this.dialog=he,this.authResolver=xe,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new A.C2(j=>j.level,j=>j.expandable),this.hasChild=(j,R)=>R.expandable,this.getLevel=j=>j.level,this.transformer=(j,R)=>({expandable:!!j.children&&j.children.length>0,name:j.shortName,fullName:j.name,parentGroupId:j.parentGroupId,level:R,id:j.id,voId:j.voId,attributes:j.attributes,beanName:j.beanName,description:j.description}),this.treeFlattener=new c.JZ(this.transformer,j=>j.level,j=>j.expandable,j=>j.children),this.dataSource=new c.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(Ze=>Ze.name?.toLowerCase().includes(this.filterValue.toLowerCase())||Ze.description?.toLowerCase().includes(this.filterValue.toLowerCase())||Ze.id.toString().includes(this.filterValue.toLowerCase())||Ze.uuid.toLowerCase().includes(this.filterValue.toLowerCase()));for(const Ze of this.filteredGroups)Ze.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,C.oU)(Ze.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(Ze){const he=(0,C.kZ)();he.data={groupId:Ze.id,theme:this.theme},this.dialog.open(T.Bp,he)}onChangeNameDescription(Ze){const he=(0,C.kZ)();he.data={theme:"group-theme",group:Ze,dialogType:T.Eg.GROUP},this.dialog.open(T.rd,he).afterClosed().subscribe(j=>{j&&this.refreshTable.emit()})}createGroupTrees(Ze){const he=new Map;for(const R of Ze)he.set(R.id,new g(R));const xe=new Set;he.forEach((R,G,se)=>{const $=se.get(R.parentGroupId);void 0!==$&&($.addChild(R),se.set(R.parentGroupId,$)),null!==R.parentGroupId&&void 0===$&&xe.add(R.id)});const j=[];he.forEach(R=>{(null===R.parentGroupId||xe.has(R.id))&&j.push(R)}),this.dataSource.data=j,this.cd.detectChanges()}getParentNode(Ze){const he=this.getLevel(Ze);if(he<1)return null;for(let j=this.treeControl.dataNodes.indexOf(Ze)-1;j>=0;j--){const R=this.treeControl.dataNodes[j];if(this.getLevel(R)this.selection.isSelected(R));he&&!j&&this.selection.deselect(Ze)}checkAllParentsSelection(Ze){let he=this.getParentNode(Ze);for(;he;)this.checkRootNodeSelection(he),he=this.getParentNode(he);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(Ze){return this.treeControl.getDescendants(Ze).some(j=>this.selection.isSelected(j))&&!this.selection.isSelected(Ze)}itemSelectionToggle(Ze){this.selection.toggle(Ze);const he=this.treeControl.getDescendants(Ze);this.selection.isSelected(Ze)?this.selection.select(...he):this.selection.deselect(...he),he.every(xe=>this.selection.isSelected(xe)),this.checkAllParentsSelection(Ze)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(Ze,he)=>Ze&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,he]):(Ze,he)=>Ze&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[he]),!0)}onMoveGroup(Ze){this.moveGroup.emit(Ze)}getTreeViewHeight(){let Ze=0;this.scrollViewport&&(Ze=this.scrollViewport.getDataLength());let he=48*Ze;return he>672&&(he=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(he)+"px"}}return Ge.\u0275fac=function(Ze){return new(Ze||Ge)(e.Y36(e.sBO),e.Y36(S.uw),e.Y36(E.x4))},Ge.\u0275cmp=e.Xpm({type:Ge,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(Ze,he){if(1&Ze&&e.Gf(Te,5),2&Ze){let xe;e.iGM(xe=e.CRH())&&(he.scrollViewport=xe.first)}},hostBindings:function(Ze,he){1&Ze&&e.NdJ("resize",function(j){return he.shouldHideButtons(j)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],["queryParamsHandling","merge",1,"group-item-content","text-format",3,"routerLink"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(Ze,he){1&Ze&&(e.YNc(0,ye,4,6,"div",0),e.YNc(1,Me,3,3,"perun-web-apps-alert",1)),2&Ze&&(e.Q6J("ngIf",0!==he.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===he.filteredGroups.length))},dependencies:[U.O5,U.PC,_.oG,V.yS,z.w,Q.Hw,te.lW,oe.gM,ee.xd,ee.x0,ee.N7,le.i,de.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Ge})()},52314:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>z});var e=h(32080),c=h(94650),A=h(36895),w=h(97392),g=h(28255),C=h(4859),T=h(10266),E=h(89383);const S=function(Q){return{color:Q}};function U(Q,te){if(1&Q&&(c.TgZ(0,"button",8),c.ALo(1,"translate"),c.TgZ(2,"mat-icon",4),c._uU(3," apps "),c.qZA()()),2&Q){const oe=c.oxw(),ee=c.MAs(2);c.Q6J("matMenuTriggerFor",ee)("matTooltip",c.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),c.xp6(2),c.Q6J("ngStyle",c.VKq(5,S,oe.iconColor))}}function _(Q,te){if(1&Q&&(c.TgZ(0,"span",9),c._uU(1),c.qZA()),2&Q){const oe=c.oxw();c.Q6J("ngStyle",c.VKq(6,S,oe.textColor)),c.xp6(1),c.xDo(" ",oe.user.titleBefore," ",oe.user.firstName," ",oe.user.middleName," ",oe.user.lastName," ",oe.user.titleAfter," ")}}function V(Q,te){if(1&Q){const oe=c.EpF();c.TgZ(0,"button",2),c.NdJ("click",function(){c.CHM(oe);const le=c.oxw();return c.KtG(le.onLogOut())}),c._uU(1),c.ALo(2,"translate"),c.qZA()}2&Q&&(c.xp6(1),c.hij(" ",c.lcZ(2,1,"NAV.LOGOUT")," "))}let z=(()=>{class Q{constructor(oe){this.authService=oe}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return Q.\u0275fac=function(oe){return new(oe||Q)(c.Y36(e.e8))},Q.\u0275cmp=c.Xpm({type:Q,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(oe,ee){if(1&oe&&(c.YNc(0,U,4,7,"button",0),c.TgZ(1,"mat-menu",null,1)(3,"button",2),c.NdJ("click",function(){return ee.redirectToUrl()}),c.TgZ(4,"span"),c._uU(5),c.qZA()()(),c.TgZ(6,"button",3)(7,"mat-icon",4),c._uU(8," person "),c.qZA(),c.YNc(9,_,2,8,"span",5),c.qZA(),c.TgZ(10,"mat-menu",null,6),c.YNc(12,V,3,3,"button",7),c.qZA()),2&oe){const le=c.MAs(11);c.Q6J("ngIf",ee.url),c.xp6(5),c.Oqu(ee.label),c.xp6(1),c.Q6J("matMenuTriggerFor",le),c.xp6(1),c.Q6J("ngStyle",c.VKq(6,S,ee.iconColor)),c.xp6(2),c.Q6J("ngIf",null!==ee.user),c.xp6(3),c.Q6J("ngIf",ee.logoutEnabled)}},dependencies:[A.O5,A.PC,w.Hw,g.VK,g.OP,g.p6,C.lW,T.gM,E.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),Q})()},7434:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>U});var e=h(94650),c=h(24006),A=h(36895),w=h(59549),g=h(284),C=h(50301),T=h(89383);function E(_,V){if(1&_&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&_){const z=e.oxw();e.s9C("placeholder",e.lcZ(1,2,z.placeholder)),e.Q6J("formControl",z.formControl)}}function S(_,V){if(1&_&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&_){const z=e.oxw();e.s9C("placeholder",e.lcZ(1,2,z.placeholder)),e.Q6J("formControl",z.formControl)}}let U=(()=>{class _{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new c.p4}ngOnInit(){this.formControl.valueChanges.subscribe(z=>{let Q=z.trim();Q=Q.toLowerCase(),this.filter.emit(Q)})}}return _.\u0275fac=function(z){return new(z||_)},_.\u0275cmp=e.Xpm({type:_,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(z,Q){1&z&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,E,2,4,"input",1),e.YNc(2,S,2,4,"input",2),e.qZA()),2&z&&(e.xp6(1),e.Q6J("ngIf",Q.autoFocus),e.xp6(1),e.Q6J("ngIf",!Q.autoFocus))},dependencies:[A.O5,c.Fj,c.JJ,w.KE,c.oH,g.Nt,C.hT,T.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),_})()},4811:(Ye,pe,h)=>{"use strict";h.d(pe,{m:()=>P});var e=h(74281),c=h(32080),A=h(9244),w=h(96308),g=h(56451),C=h(18505),T=h(94650),E=h(65412),S=h(10036),U=h(36895),_=h(56709),V=h(30671),z=h(94364),Q=h(51572),te=h(98380),oe=h(97392),ee=h(10266),le=h(18750),de=h(50301),Te=h(89383),v=h(31359),L=h(69773),B=h(21757),W=h(12856),q=h(20919),ue=h(5865),ye=h(82514),Me=h(96974),we=h(38993),Ge=h(86349);function ce(H,i){1&H&&(T.TgZ(0,"div",22),T._UZ(1,"mat-spinner",23),T.qZA())}function Ze(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"th",24)(1,"mat-checkbox",25),T.NdJ("change",function(l){T.CHM(o);const a=T.oxw();return T.KtG(l?a.masterToggle():null)}),T.qZA()()}if(2&H){const o=T.oxw();T.xp6(1),T.Q6J("aria-label",o.checkboxLabel())("checked",o.selection.hasValue()&&o.isAllSelected())("indeterminate",o.selection.hasValue()&&!o.isAllSelected())}}function he(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"td",26)(1,"mat-checkbox",27),T.NdJ("change",function(l){const n=T.CHM(o).$implicit,t=T.oxw();return T.KtG(l?t.selection.toggle(n):null)})("click",function(l){return l.stopPropagation()}),T.ALo(2,"lowercase"),T.ALo(3,"memberStatusDisabled"),T.ALo(4,"memberCheckboxLabel"),T.qZA()()}if(2&H){const o=i.$implicit,f=T.oxw();T.xp6(1),T.Q2q("data-cy","",T.lcZ(2,5,o.user.firstName),"-checkbox"),T.Q6J("aria-label",f.checkboxLabel(o))("checked",f.selection.isSelected(o))("disabled",T.xi3(3,7,o,f.groupId))("matTooltip",T.xi3(4,10,o,f.groupId))}}function xe(H,i){1&H&&(T.TgZ(0,"th",28),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ID")))}function j(H,i){if(1&H&&(T.TgZ(0,"td",29),T._uU(1),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(o.id)}}function R(H,i){1&H&&T._UZ(0,"th",28)}function G(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"mat-icon",32),T.NdJ("click",function(l){T.CHM(o);const a=T.oxw().$implicit,n=T.oxw();return T.KtG(n.viewMemberGroupTree(l,a))}),T.ALo(1,"translate"),T._uU(2,"transfer_within_a_station"),T.qZA()}2&H&&T.Q6J("matTooltip",T.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function se(H,i){if(1&H&&(T.TgZ(0,"td",30),T.YNc(1,G,3,3,"mat-icon",31),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Q6J("ngIf","DIRECT"!==o.membershipType)}}function $(H,i){1&H&&(T.TgZ(0,"th",28),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Ee(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"userFullName"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o.user))}}function Oe(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function ct(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"td",30)(1,"i",34),T.NdJ("click",function(l){const n=T.CHM(o).$implicit,t=T.oxw();return T.KtG(t.changeStatus(l,n))}),T.ALo(2,"memberStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&H){const o=i.$implicit;T.xp6(1),T.Gre("material-icons ",T.lcZ(2,5,o),""),T.s9C("matTooltip",T.xi3(3,7,o,!1)),T.xp6(4),T.hij(" ",T.lcZ(6,10,o.status)," ")}}function Xe(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function _t(H,i){if(1&H){const o=T.EpF();T.TgZ(0,"td",30)(1,"i",34),T.NdJ("click",function(l){const n=T.CHM(o).$implicit,t=T.oxw();return T.KtG(t.changeStatus(l,n,t.groupId))}),T.ALo(2,"groupStatusIconColor"),T.ALo(3,"memberStatusTooltip"),T.TgZ(4,"span"),T._uU(5),T.ALo(6,"memberStatusIcon"),T.qZA()()()}if(2&H){const o=i.$implicit,f=T.oxw();T.xp6(1),T.Gre("material-icons ",T.Dn7(2,5,o.groupStatus,"INDIRECT"===o.membershipType,f.isMembersGroup),""),T.s9C("matTooltip",T.Dn7(3,9,o,!0,f.isMembersGroup)),T.xp6(4),T.hij(" ",T.lcZ(6,13,o.groupStatus)," ")}}function Je(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function gt(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberOrganization"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function Y(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Ce(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberEmail"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function ae(H,i){1&H&&(T.TgZ(0,"th",33),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function re(H,i){if(1&H&&(T.TgZ(0,"td",30),T._uU(1),T.ALo(2,"memberLogins"),T.qZA()),2&H){const o=i.$implicit;T.xp6(1),T.Oqu(T.lcZ(2,1,o))}}function Se(H,i){1&H&&T._UZ(0,"tr",35)}const Fe=function(H,i){return["/organizations",H,"members",i]};function be(H,i){if(1&H&&T._UZ(0,"tr",36),2&H){const o=i.$implicit,f=T.oxw();T.ekj("cursor-pointer",f.dataSource.routeAuth)("italic_font","INDIRECT"===o.membershipType)("disable-outline",!f.dataSource.routeAuth),T.Q6J("perunWebAppsMiddleClickRouterLink",f.dataSource.routeAuth?T.WLB(8,Fe,o.voId,o.id):null)("routerLink",f.dataSource.routeAuth?T.WLB(11,Fe,o.voId,o.id):null)}}function Ue(H,i){1&H&&(T.TgZ(0,"perun-web-apps-alert",37),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&H&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let P=(()=>{class H{constructor(o,f,l,a,n){this.dialog=o,this.authResolver=f,this.tableCheckbox=l,this.tableConfigService=a,this.dynamicPaginatingService=n,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=A.f7,this.canBeSelected=t=>!(0,A.im)(t)}static getExportDataForColumn(o,f){switch(f){case"id":return o.id.toString();case"fullName":return o.user?(0,A.bD)(o.user):"";case"status":return o.status;case"groupStatus":return o.groupStatus;case"organization":return(0,A.Gw)(o);case"email":return(0,A.g$)(o);case"logins":return(0,A.lt)(o);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(o=>"id"!==o)),this.dataSource=new c.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(o=>{this.canBeSelected(o)&&this.selection.select(o)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(l=>this.canBeSelected(l)).length}checkboxLabel(o){return o?`${this.selection.isSelected(o)?"deselect":"select"} row ${o.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(o,f,l){if(o.stopPropagation(),this.isMembersGroup&&l)return;const a=(0,A.zr)(f);if("INDIRECT"===a&&l||!l&&"UNALTERABLE"===a)return;const n=(0,A.kZ)();n.width="500px",n.data={member:f,voId:this.voId,groupId:l};const t=l?f.groupStatus:f.status;this.dialog.open(e.pf,n).afterClosed().subscribe(s=>{if(s){const d=l?s.groupStatus:s.status;"VALID"===t&&("EXPIRED"===d||"DISABLED"===d)||"VALID"===d?(l?f.groupStatus=d:f.status=d,this.changeExpiration(f,l)):this.loadMembersPage()}})}changeExpiration(o,f){const l=o.memberAttributes.find(f?t=>"groupMembershipExpiration"===t.friendlyName:t=>"membershipExpiration"===t.friendlyName),a=(0,A.kZ)();let n;a.width="400px",a.data={voId:this.voId,groupId:f,memberId:o.id,expirationAttr:l,status:f?o.groupStatus:o.status,statusChanged:!0},n=this.dialog.open(f?e.u3:e.kZ,a),n.afterClosed().subscribe(()=>{this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportDisplayedData(o){(0,A.O6)((0,A.Xn)(this.dataSource.getData(),this.displayedColumns,H.getExportDataForColumn),o)}exportAllData(o){const f="asc"===this.sort.direction?"ASCENDING":"DESCENDING",l="fullName"===this.sort.active?"NAME":"ID",a=(0,A.kZ)();a.width="300px";const n=this.dialog.open(e.QQ,a);this.dataSource.getAllMembers(this.voId,this.attrNames,f,this.child.paginator.length,l,this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses).subscribe(t=>{n.close(),(0,A.O6)((0,A.Xn)(t,this.displayedColumns,H.getExportDataForColumn),o)})}viewMemberGroupTree(o,f){o.stopPropagation();const l=(0,A.kZ)();l.width="800px",l.data={member:f,groupId:this.groupId},this.dialog.open(e.jd,l)}}return H.\u0275fac=function(o){return new(o||H)(T.Y36(E.uw),T.Y36(c.x4),T.Y36(c.UA),T.Y36(S.dB),T.Y36(c.ly))},H.\u0275cmp=T.Xpm({type:H,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(o,f){if(1&o&&(T.Gf(A.l9,7),T.Gf(w.YE,5)),2&o){let l;T.iGM(l=T.CRH())&&(f.child=l.first),T.iGM(l=T.CRH())&&(f.sort=l.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable",isMembersGroup:"isMembersGroup"},features:[T.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(o,f){1&o&&(T.TgZ(0,"div",0),T.ALo(1,"async"),T.TgZ(2,"perun-web-apps-table-wrapper",1),T.NdJ("exportDisplayedData",function(a){return f.exportDisplayedData(a)})("exportAllData",function(a){return f.exportAllData(a)}),T.YNc(3,ce,2,0,"div",2),T.ALo(4,"async"),T.TgZ(5,"table",3),T.ynx(6,4),T.YNc(7,Ze,2,3,"th",5),T.YNc(8,he,5,13,"td",6),T.BQk(),T.ynx(9,7),T.YNc(10,xe,3,3,"th",8),T.YNc(11,j,2,1,"td",9),T.BQk(),T.ynx(12,10),T.YNc(13,R,1,0,"th",8),T.YNc(14,se,2,1,"td",11),T.BQk(),T.ynx(15,12),T.YNc(16,$,3,3,"th",8),T.YNc(17,Ee,3,3,"td",11),T.BQk(),T.ynx(18,13),T.YNc(19,Oe,3,3,"th",14),T.YNc(20,ct,7,12,"td",11),T.BQk(),T.ynx(21,15),T.YNc(22,Xe,3,3,"th",14),T.YNc(23,_t,7,15,"td",11),T.BQk(),T.ynx(24,16),T.YNc(25,Je,3,3,"th",14),T.YNc(26,gt,3,3,"td",11),T.BQk(),T.ynx(27,17),T.YNc(28,Y,3,3,"th",14),T.YNc(29,Ce,3,3,"td",11),T.BQk(),T.ynx(30,18),T.YNc(31,ae,3,3,"th",14),T.YNc(32,re,3,3,"td",11),T.BQk(),T.YNc(33,Se,1,0,"tr",19),T.YNc(34,be,1,14,"tr",20),T.qZA()()(),T.YNc(35,Ue,3,3,"perun-web-apps-alert",21),T.ALo(36,"async")),2&o&&(T.Q6J("hidden",0===f.dataSource.allObjectCount&&!1===T.lcZ(1,9,f.dataSource.loading$)),T.xp6(2),T.Q6J("tableId",f.tableId)("dataLength",f.dataSource.allObjectCount)("pageSizeOptions",f.pageSizeOptions),T.xp6(1),T.Q6J("ngIf",T.lcZ(4,11,f.dataSource.loading$)),T.xp6(2),T.Q6J("dataSource",f.dataSource),T.xp6(28),T.Q6J("matHeaderRowDef",f.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",f.displayedColumns),T.xp6(1),T.Q6J("ngIf",0===f.dataSource.allObjectCount&&!1===T.lcZ(36,13,f.dataSource.loading$)))},dependencies:[U.O5,_.oG,V.BZ,V.fO,V.as,V.w1,V.Dz,V.nj,V.ge,V.ev,V.XQ,V.Gk,z.rH,w.YE,w.nU,Q.Ou,te.w,oe.Hw,ee.gM,le.l,de.YH,U.Ov,U.i8,Te.X$,v.d,L.u,B.f,W.i,q.D,ue.p,ye.F,Me.M,we.n,Ge.A],styles:[".italic_font{font-style:italic}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.status-tooltip{white-space:pre-line}\n"],encapsulation:2}),H})()},38383:(Ye,pe,h)=>{"use strict";h.d(pe,{O:()=>i});var e=h(94650),c=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(74281),T=h(32080),E=h(65412),S=h(94364),U=h(36895),_=h(56709),V=h(98380),z=h(97392),Q=h(10266),te=h(18750),oe=h(50301),ee=h(89383),le=h(31359),de=h(69773),Te=h(21757),v=h(12856),L=h(20919),B=h(5865),W=h(82514),q=h(96974);function ue(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"th",26)(1,"mat-checkbox",27),e.NdJ("change",function(n){e.CHM(l);const t=e.oxw();return e.KtG(n?t.masterToggle():null)}),e.qZA()()}if(2&o){const l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function ye(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",28)(1,"mat-checkbox",29),e.NdJ("change",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(n?s.selection.toggle(r):null)})("click",function(n){return n.stopPropagation()}),e.ALo(2,"translate"),e.qZA()()}if(2&o){const l=f.$implicit,a=e.oxw();e.xp6(1),e.Q6J("aria-label",a.checkboxLabel(l))("checked",a.selection.isSelected(l))("disabled","DIRECT"!==l.membershipType)("matTooltip","DIRECT"!==l.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function Me(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function we(o,f){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.id)}}function Ge(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function ce(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.voId)}}function Ze(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function he(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(l.userId)}}function xe(o,f){1&o&&e._UZ(0,"th",30)}function j(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(l);const n=e.oxw().$implicit,t=e.oxw();return e.KtG(t.viewMemberGroupTree(n))})("mouseenter",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disableRouting=!0)})("mouseleave",function(){e.CHM(l);const n=e.oxw(2);return e.KtG(n.disableRouting=n.disabledRouting)}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function R(o,f){if(1&o&&(e.TgZ(0,"td",32),e.YNc(1,j,3,3,"mat-icon",33),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==l.membershipType)}}function G(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function se(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l.user))}}function $(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Ee(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",32)(1,"i",35),e.NdJ("click",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(s.changeStatus(n,r))}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&o){const l=f.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,l),""),e.s9C("matTooltip",e.xi3(3,7,l,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,l.status)," ")}}function Oe(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function ct(o,f){if(1&o){const l=e.EpF();e.TgZ(0,"td",32)(1,"i",35),e.NdJ("click",function(n){const r=e.CHM(l).$implicit,s=e.oxw();return e.KtG(s.changeStatus(n,r))}),e.ALo(2,"groupStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA()()()}if(2&o){const l=f.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,l.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,l,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,l.groupStatus)," ")}}function Xe(o,f){1&o&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function _t(o,f){1&o&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function Je(o,f){if(1&o&&(e.TgZ(0,"td",37),e.YNc(1,_t,2,0,"mat-icon",38),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Q6J("ngIf",l.sponsored)}}function gt(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Y(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function Ce(o,f){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function ae(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function re(o,f){1&o&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function Se(o,f){if(1&o&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&o){const l=f.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,l))}}function Fe(o,f){1&o&&e._UZ(0,"tr",40)}const be=function(o,f){return["/organizations",o,"members",f]};function Ue(o,f){if(1&o&&e._UZ(0,"tr",41),2&o){const l=f.$implicit,a=e.oxw();e.ekj("cursor-pointer",!a.disabledRouting)("disable-outline",a.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",a.disableRouting?null:e.WLB(6,be,l.voId,l.id))("routerLink",a.disableRouting?null:e.WLB(9,be,l.voId,l.id))}}function P(o,f){1&o&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function H(o,f){1&o&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let i=(()=>{class o{constructor(l,a,n,t){this.dialog=l,this.authResolver=a,this.tableCheckbox=n,this.route=t,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=g.f7,this.getExportDataForColumnFun=(r,s)=>o.getExportDataForColumn(r,s,this.showGroupStatuses),this.getSortDataForColumnFun=(r,s)=>o.getSortDataForColumn(r,s,this.showGroupStatuses),this.canBeSelected=r=>"DIRECT"===r.membershipType}set matSort(l){this.sort=l}static getFilterDataForColumn(l,a){switch(a){case"fullName":return l.user?(0,g.bD)(l.user):"";case"email":return(0,g.g$)(l);case"logins":return(0,g.lt)(l);default:return""}}static getExportDataForColumn(l,a,n){switch(a){case"id":return l.id.toString();case"fullName":return l.user?(0,g.bD)(l.user):"";case"status":return n?l.groupStatus:l.status;case"organization":return(0,g.Gw)(l);case"email":return(0,g.g$)(l);case"logins":return(0,g.lt)(l);default:return""}}static getSortDataForColumn(l,a,n){switch(a){case"id":return l.id.toString();case"fullName":return l.user?l.user.lastName?l.user.lastName:l.user.firstName??"":"";case"status":return n?l.groupStatus:l.status;case"organization":return(0,g.Gw)(l);case"email":return(0,g.g$)(l);default:return""}}exportDisplayedData(l){const a=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,n=a+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(a,n),this.displayedColumns,this.getExportDataForColumnFun),l)}exportAllData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,a)=>(0,g.Sd)(l,a,this.displayedColumns,o.getFilterDataForColumn),this.dataSource.sortData=(l,a)=>(0,g.pR)(l,a,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l))}ngOnChanges(){this.setDataSource(),this.disabledRouting=this.disableRouting,this.route.parent?.params.subscribe(l=>{l.groupId&&(this.groupId=Number(l.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(l,a){if(l.stopPropagation(),!this.disableStatusChange){const n=(0,g.kZ)();n.width="500px",n.data={member:a,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(C.pf,n).afterClosed().subscribe(r=>{r&&this.updateTable.emit(!0)})}}viewMemberGroupTree(l){const a=(0,g.kZ)();a.width="800px",a.data={member:l,groupId:this.groupId},this.dialog.open(C.jd,a)}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(E.uw),e.Y36(T.x4),e.Y36(T.UA),e.Y36(S.gz))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-members-list"]],viewQuery:function(l,a){if(1&l&&(e.Gf(g.l9,7),e.Gf(c.YE,7)),2&l){let n;e.iGM(n=e.CRH())&&(a.child=n.first),e.iGM(n=e.CRH())&&(a.matSort=n.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(l,a){1&l&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(t){return a.exportDisplayedData(t)})("exportAllData",function(t){return a.exportAllData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ue,2,3,"th",4),e.YNc(5,ye,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Me,3,3,"th",7),e.YNc(8,we,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Ge,3,3,"th",7),e.YNc(11,ce,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,Ze,3,3,"th",7),e.YNc(14,he,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,xe,1,0,"th",7),e.YNc(17,R,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,G,3,3,"th",7),e.YNc(20,se,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,$,3,3,"th",7),e.YNc(23,Ee,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,Oe,3,3,"th",7),e.YNc(26,ct,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,Xe,3,3,"th",17),e.YNc(29,Je,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,gt,3,3,"th",7),e.YNc(32,Y,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,Ce,3,3,"th",7),e.YNc(35,ae,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,re,3,3,"th",22),e.YNc(38,Se,3,3,"td",10),e.BQk(),e.YNc(39,Fe,1,0,"tr",23),e.YNc(40,Ue,1,12,"tr",24),e.qZA()()(),e.YNc(41,P,3,3,"perun-web-apps-alert",25),e.YNc(42,H,3,3,"perun-web-apps-alert",25)),2&l&&(e.Q6J("hidden",0===a.members.length||!a.dataSource||0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",a.dataSource.filteredData.length)("tableId",a.tableId)("pageSizeOptions",a.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",a.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",a.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",a.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==a.members.length&&0===a.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===a.members.length))},dependencies:[U.O5,_.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.rH,c.YE,c.nU,V.w,z.Hw,Q.gM,te.l,oe.YH,ee.X$,le.d,de.u,Te.f,v.i,L.D,B.p,W.F,q.M],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),o})()},22465:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>_});var e=h(94650),c=h(32080),A=h(9244),w=h(74281),g=h(65412),C=h(36895),T=h(97392),E=h(89383);function S(V,z){if(1&V&&(e.TgZ(0,"div",5)(1,"mat-icon"),e._uU(2),e.qZA()()),2&V){const Q=e.oxw();e.xp6(2),e.Oqu(Q.data.icon)}}function U(V,z){if(1&V&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&V){const Q=e.oxw();e.xp6(1),e.hij(" ",Q.showTimestamp()," ")}}let _=(()=>{class V{constructor(Q,te){this.dialog=Q,this.notificationStorageService=te,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const Q=(0,A.kZ)();Q.width="550px",Q.data=this.data,Q.autoFocus=!1,this.dialog.open(w.FM,Q).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,A.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[Q,te]=this.data.timeStamp.split(":");return te.length<2?Q+":0"+te:this.data.timeStamp}}return V.\u0275fac=function(Q){return new(Q||V)(e.Y36(g.uw),e.Y36(c.SZ))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(Q,te){1&Q&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("click",function(){return te.alreadyClosed||te.waiting?"":te.closeSelf()}),e.YNc(2,S,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,U,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return te.waiting=!0,te.doAction()}),e._uU(8),e.qZA()()()),2&Q&&(e.Gre("notification ",te.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===te.data.type)("success","success"===te.data.type),e.xp6(2),e.Q6J("ngIf",null!==te.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,te.data.title)," "),e.xp6(2),e.Q6J("ngIf",te.inDialog),e.xp6(1),e.Q6J("hidden",te.alreadyPressed),e.xp6(1),e.hij(" ",te.data.actionText," "))},dependencies:[C.O5,T.Hw,E.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),V})()},53599:(Ye,pe,h)=>{"use strict";h.d(pe,{N:()=>ue});var e=h(94650),c=h(32105),A=h(32080),w=h(30671),g=h(9244),C=h(74281),T=h(65412),E=h(94364),S=h(36895),U=h(96308),_=h(98380),V=h(4859),z=h(89383),Q=h(34447);function te(ye,Me){1&ye&&(e.TgZ(0,"perun-web-apps-alert"),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.Oqu(e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function oe(ye,Me){1&ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function ee(ye,Me){if(1&ye&&(e.TgZ(0,"td",17),e._uU(1),e.qZA()),2&ye){const we=Me.$implicit;e.xp6(1),e.Oqu(we.friendlyNameParameter)}}function le(ye,Me){1&ye&&(e.TgZ(0,"th",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA()),2&ye&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,e.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function de(ye,Me){if(1&ye&&(e.TgZ(0,"td",18),e._uU(1),e.qZA()),2&ye){const we=Me.$implicit;e.xp6(1),e.Oqu(we.value)}}function Te(ye,Me){1&ye&&e._UZ(0,"th",16)}function v(ye,Me){if(1&ye){const we=e.EpF();e.TgZ(0,"td",19)(1,"button",20),e.NdJ("click",function(){const Ze=e.CHM(we).$implicit,he=e.oxw();return e.KtG(he.resetPassword(Ze.friendlyNameParameter))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ye){const we=Me.$implicit,Ge=e.oxw();e.xp6(1),e.Q6J("disabled",!Ge.logins.includes(we)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function L(ye,Me){1&ye&&e._UZ(0,"th",16)}function B(ye,Me){if(1&ye){const we=e.EpF();e.TgZ(0,"td",19)(1,"button",21),e.NdJ("click",function(){const Ze=e.CHM(we).$implicit,he=e.oxw();return e.KtG(he.changePassword(Ze))}),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"customTranslate"),e.qZA()()}if(2&ye){const we=Me.$implicit,Ge=e.oxw();e.xp6(1),e.Q6J("disabled",!Ge.logins.includes(we)),e.xp6(1),e.hij(" ",e.lcZ(3,2,e.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function W(ye,Me){1&ye&&e._UZ(0,"tr",22)}function q(ye,Me){1&ye&&e._UZ(0,"tr",23)}let ue=(()=>{class ye{constructor(we,Ge,ce,Ze,he,xe,j){this.attributesManagerService=we,this.store=Ge,this.dialog=ce,this.route=Ze,this.router=he,this.otherApplicationService=xe,this.entityStorageService=j,this.authenticationPage=!1,this.filteredNamespaces=new e.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.get("password_namespace_attributes").map(we=>{const Ge=we.split(":");return Ge[Ge.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(we=>{if(this.logins=we.filter(Ge=>this.nameSpaces.includes(Ge.friendlyNameParameter)),this.filteredNamespaces.emit(we.map(Ge=>Ge.friendlyNameParameter)),this.dataSource=new w.by(we),!this.authenticationPage){const ce=this.route.snapshot.queryParamMap.get("namespace");if(ce){const Ze=this.logins.find(he=>he.friendlyNameParameter===ce);Ze&&this.changePassword(Ze)}}})}resetPassword(we){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",we),"_blank")}changePassword(we){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:we.friendlyNameParameter},queryParamsHandling:"merge"});const Ge=(0,g.kZ)();Ge.width="600px",Ge.data={login:String(we.value),namespace:we.friendlyName.split(":")[1]},this.dialog.open(C.xF,Ge).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return ye.\u0275fac=function(we){return new(we||ye)(e.Y36(c.H8),e.Y36(A.d6),e.Y36(T.uw),e.Y36(E.gz),e.Y36(E.F0),e.Y36(A.jq),e.Y36(A.fb))},ye.\u0275cmp=e.Xpm({type:ye,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(we,Ge){1&we&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"customTranslate"),e.qZA(),e.YNc(4,te,4,5,"perun-web-apps-alert",1),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),e.ynx(9,6),e.YNc(10,oe,4,5,"th",7),e.YNc(11,ee,2,1,"td",8),e.BQk(),e.ynx(12,9),e.YNc(13,le,4,5,"th",7),e.YNc(14,de,2,1,"td",10),e.BQk(),e.ynx(15,11),e.YNc(16,Te,1,0,"th",7),e.YNc(17,v,5,6,"td",12),e.BQk(),e.ynx(18,13),e.YNc(19,L,1,0,"th",7),e.YNc(20,B,5,6,"td",12),e.BQk(),e.YNc(21,W,1,0,"tr",14),e.YNc(22,q,1,0,"tr",15),e.qZA()()()()),2&we&&(e.xp6(1),e.hij(" ",Ge.authenticationPage?"":e.lcZ(2,5,e.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),e.xp6(3),e.Q6J("ngIf",!Ge.logins.length&&!Ge.authenticationPage),e.xp6(4),e.Q6J("dataSource",Ge.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",Ge.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ge.displayedColumns))},dependencies:[S.O5,w.BZ,w.fO,w.as,w.w1,w.Dz,w.nj,w.ge,w.ev,w.XQ,w.Gk,U.YE,_.w,V.lW,z.X$,Q.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),ye})()},41619:(Ye,pe,h)=>{"use strict";h.d(pe,{$:()=>he});var e=h(32080),c=h(32105),A=h(94650),w=h(65412),g=h(89383),C=h(36895),T=h(24006),E=h(4859),S=h(59549),U=h(284);function _(xe,j){1&xe&&(A.TgZ(0,"mat-error"),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&xe&&(A.xp6(1),A.Oqu(A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let V=(()=>{class xe{constructor(R,G,se,$,Ee){this.dialogRef=R,this.translate=G,this.notificator=se,this.rtMessages=$,this.storeService=Ee,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(R=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(R.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",h(4147).i8)}close(){this.dialogRef.close()}}return xe.\u0275fac=function(R){return new(R||xe)(A.Y36(w.so),A.Y36(g.sK),A.Y36(e.V6),A.Y36(c.Hr),A.Y36(e.d6))},xe.\u0275cmp=A.Xpm({type:xe,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(R,G){if(1&R&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),A._uU(6),A.ALo(7,"translate"),A.qZA(),A.TgZ(8,"input",2,3),A.NdJ("ngModelChange",function($){return G.subject=$}),A.qZA(),A.YNc(10,_,3,3,"mat-error",4),A.qZA(),A.TgZ(11,"mat-form-field")(12,"mat-label"),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"textarea",5),A.NdJ("ngModelChange",function($){return G.message=$}),A.ALo(16,"translate"),A._uU(17," "),A.qZA(),A.TgZ(18,"mat-hint"),A._uU(19),A.ALo(20,"translate"),A.qZA()()(),A.TgZ(21,"div",6)(22,"div",7)(23,"button",8),A.NdJ("click",function(){return G.close()}),A._uU(24),A.ALo(25,"translate"),A.qZA(),A.TgZ(26,"button",9),A.NdJ("click",function(){return G.sendBugReport()}),A._uU(27),A.ALo(28,"translate"),A.qZA()()()),2&R){const se=A.MAs(9);A.xp6(1),A.Oqu(A.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),A.xp6(5),A.Oqu(A.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),A.xp6(2),A.Q6J("ngModel",G.subject),A.xp6(2),A.Q6J("ngIf",se.invalid),A.xp6(3),A.Oqu(A.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),A.xp6(2),A.s9C("placeholder",A.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),A.Q6J("ngModel",G.message),A.xp6(4),A.Oqu(A.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),A.xp6(5),A.hij(" ",A.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),A.xp6(2),A.Q6J("disabled",se.invalid),A.xp6(1),A.hij(" ",A.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[C.O5,T.Fj,T.JJ,T.Q7,T.On,E.lW,S.TO,S.KE,S.bx,S.hX,U.Nt,w.uh,w.xY,w.H8,g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),xe})();var z=h(9244);let Q=(()=>{class xe{transform(R,G,se){return R[`${se}_${G}`]}}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275pipe=A.Yjl({name:"localisedText",type:xe,pure:!0}),xe})(),te=(()=>{class xe{transform(R,G){return R["link_"+G]||R.link_en}}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275pipe=A.Yjl({name:"localisedLink",type:xe,pure:!0}),xe})(),oe=(()=>{class xe{transform(R){return R.includes("/")?R:"/assets/config/"+R}}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275pipe=A.Yjl({name:"footerLogoPath",type:xe,pure:!0}),xe})();function ee(xe,j){if(1&xe&&(A.TgZ(0,"a",13),A.ALo(1,"localisedLink"),A._UZ(2,"img",14),A.ALo(3,"footerLogoPath"),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("href",A.xi3(1,2,R,G.language),A.LSH),A.xp6(2),A.s9C("src",A.lcZ(3,5,R.logo),A.LSH)}}function le(xe,j){if(1&xe&&(A.TgZ(0,"span"),A._UZ(1,"img",14),A.ALo(2,"footerLogoPath"),A.qZA()),2&xe){const R=A.oxw().$implicit;A.xp6(1),A.s9C("src",A.lcZ(2,1,R.logo),A.LSH)}}function de(xe,j){if(1&xe&&(A.TgZ(0,"div"),A.YNc(1,ee,4,7,"a",11),A.ALo(2,"localisedLink"),A.YNc(3,le,3,3,"span",12),A.ALo(4,"localisedLink"),A.qZA()),2&xe){const R=j.$implicit,G=A.oxw(3);A.xp6(1),A.Q6J("ngIf",A.xi3(2,2,R,G.language)),A.xp6(2),A.Q6J("ngIf",!A.xi3(4,5,R,G.language))}}const Te=function(xe){return{"min-height":xe}};function v(xe,j){if(1&xe&&(A.TgZ(0,"div",10),A.YNc(1,de,5,8,"div",5),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw();A.Q6J("ngStyle",A.VKq(2,Te,G.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",R.elements)}}const L=function(xe){return{color:xe}};function B(xe,j){if(1&xe&&(A.TgZ(0,"i",20),A._uU(1),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(2,L,G.linksTextColor)),A.xp6(1),A.hij(" ",R.icon," ")}}function W(xe,j){if(1&xe){const R=A.EpF();A.TgZ(0,"span",21),A.NdJ("click",function(){A.CHM(R);const se=A.oxw().$implicit,$=A.oxw(3);return A.KtG($.openDialog(se.dialog))}),A._uU(1),A.ALo(2,"localisedText"),A.qZA()}if(2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,L,G.linksTextColor)),A.xp6(1),A.hij("",A.Dn7(2,2,R,G.language,"label")," ")}}function q(xe,j){if(1&xe&&(A.TgZ(0,"a",22),A.ALo(1,"localisedLink"),A._uU(2),A.ALo(3,"localisedText"),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("href",A.xi3(1,3,R,G.language),A.LSH)("ngStyle",A.VKq(10,L,G.linksTextColor)),A.xp6(2),A.Oqu(A.Dn7(3,6,R,G.language,"label"))}}function ue(xe,j){if(1&xe&&(A.TgZ(0,"span",10),A._uU(1),A.ALo(2,"localisedText"),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw(3);A.Q6J("ngStyle",A.VKq(6,L,G.linksTextColor)),A.xp6(1),A.Oqu(A.Dn7(2,2,R,G.language,"label"))}}function ye(xe,j){if(1&xe&&(A.TgZ(0,"div",16),A.YNc(1,B,2,4,"i",17),A.YNc(2,W,3,8,"span",18),A.YNc(3,q,4,12,"a",19),A.ALo(4,"localisedLink"),A.YNc(5,ue,3,8,"span",9),A.ALo(6,"localisedLink"),A.qZA()),2&xe){const R=j.$implicit,G=A.oxw(3);A.xp6(1),A.Q6J("ngIf",R.icon),A.xp6(1),A.Q6J("ngIf",R.dialog),A.xp6(1),A.Q6J("ngIf",A.xi3(4,4,R,G.language)&&!R.dialog),A.xp6(2),A.Q6J("ngIf",!A.xi3(6,7,R,G.language)&&!R.dialog)}}const Me=function(xe){return{height:xe}};function we(xe,j){if(1&xe&&(A.TgZ(0,"div",10),A.YNc(1,ye,7,10,"div",15),A.qZA()),2&xe){const R=A.oxw().$implicit,G=A.oxw();A.Q6J("ngStyle",A.VKq(2,Me,G.columnContentHeight+"px")),A.xp6(1),A.Q6J("ngForOf",R.elements)}}function Ge(xe,j){if(1&xe&&(A.TgZ(0,"div",7)(1,"h6",8),A._uU(2),A.ALo(3,"localisedText"),A.qZA(),A.YNc(4,v,2,4,"div",9),A.YNc(5,we,2,4,"div",9),A.qZA()),2&xe){const R=j.$implicit,G=A.oxw();A.ekj("my-auto",G.containsLogos),A.xp6(1),A.Q6J("ngStyle",A.VKq(10,L,G.headersTextColor)),A.xp6(1),A.hij(" ",A.Dn7(3,6,R,G.language,"title")," "),A.xp6(2),A.Q6J("ngIf",R.logos),A.xp6(1),A.Q6J("ngIf",R.elements&&!R.logos)}}function ce(xe,j){if(1&xe&&(A.TgZ(0,"span")(1,"a",6),A._uU(2),A.qZA()()),2&xe){const R=j.$implicit,G=j.index,se=A.oxw();A.xp6(1),A.Q6J("href",R.url,A.LSH)("ngStyle",A.VKq(3,L,se.copyrightTextColor)),A.xp6(1),A.Oqu(G?", "+R.name:R.name)}}const Ze=function(xe){return{background:xe}};let he=(()=>{class xe{constructor(R,G,se){this.storeService=R,this.translateService=G,this.dialog=se,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(R=>{this.language=R.lang}),this.version=h(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const R of this.footerColumns)R.logos?this.containsLogos=!0:25*R.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*R.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(R){const G=(0,z.kZ)();"reportIssue"===R&&(G.width="550px",this.dialog.open(V,G))}}return xe.\u0275fac=function(R){return new(R||xe)(A.Y36(e.d6),A.Y36(g.sK),A.Y36(w.uw))},xe.\u0275cmp=A.Xpm({type:xe,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(R,G){1&R&&(A.TgZ(0,"footer",0)(1,"div",1),A.YNc(2,Ge,6,12,"div",2),A.qZA(),A._UZ(3,"hr",3),A.TgZ(4,"div",4),A._uU(5),A.YNc(6,ce,3,5,"span",5),A._uU(7," Version "),A.TgZ(8,"a",6),A._uU(9),A.qZA()()()),2&R&&(A.Q6J("ngStyle",A.VKq(8,Ze,G.bgColor)),A.xp6(2),A.Q6J("ngForOf",G.footerColumns),A.xp6(2),A.Q6J("ngStyle",A.VKq(10,L,G.copyrightTextColor)),A.xp6(1),A.hij(" \xa9 ",G.currentYear," Copyright: "),A.xp6(1),A.Q6J("ngForOf",G.copyrightItems),A.xp6(2),A.Q6J("href",G.githubRepository,A.LSH)("ngStyle",A.VKq(12,L,G.copyrightTextColor)),A.xp6(1),A.Oqu(G.version))},dependencies:[C.sg,C.O5,C.PC,Q,te,oe],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),xe})()},10441:(Ye,pe,h)=>{"use strict";h.d(pe,{W:()=>T});var e=h(94650),c=h(36895),A=h(97392),w=h(10266),g=h(89383);function C(E,S){1&E&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&E&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let T=(()=>{class E{constructor(){this.recentIds=[]}}return E.\u0275fac=function(U){return new(U||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(U,_){1&U&&e.YNc(0,C,3,3,"mat-icon",0),2&U&&e.Q6J("ngIf",_.recentIds.indexOf(_.id)>-1)},dependencies:[c.O5,A.Hw,w.gM,g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),E})()},96214:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>C});var e=h(94650),c=h(97392),A=h(4859),w=h(10266),g=h(89383);let C=(()=>{class T{constructor(){this.refresh=new e.vpe}onClickbutton(S){this.refresh.emit(S)}}return T.\u0275fac=function(S){return new(S||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(S,U){1&S&&(e.TgZ(0,"button",0),e.NdJ("click",function(V){return U.onClickbutton(V)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&S&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",U.disabled),e.xp6(2),e.s9C("svgIcon",U.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[c.Hw,A.lW,w.gM,g.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),T})()},45703:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(c.aC)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:15,consts:[[3,"entity","entities","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.resourceSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.resource)("entities",S.resources)("displayStatus",S.displayStatus)("searchFunction",S.nameFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.secondaryFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},dependencies:[A.i,w.X$]}),C})()},62109:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>re});var e=h(94650),c=h(96308),A=h(30671),w=h(95017),g=h(9244),C=h(32080),T=h(36895),E=h(56709),S=h(94364),U=h(98380),_=h(97392),V=h(10266),z=h(18750),Q=h(50301),te=h(10441),oe=h(8223),ee=h(89383);let le=(()=>{class Se{transform(be){if(null==be)return null;let P="";return be.forEach(function(H){P=P.concat(H.tagName)}),P}}return Se.\u0275fac=function(be){return new(be||Se)},Se.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:Se,pure:!0}),Se})();var de=h(82895);function Te(Se,Fe){if(1&Se){const be=e.EpF();e.TgZ(0,"th",24)(1,"mat-checkbox",25),e.NdJ("change",function(P){e.CHM(be);const H=e.oxw();return e.KtG(P?H.masterToggle():null)}),e.qZA()()}if(2&Se){const be=e.oxw();e.xp6(1),e.Q6J("aria-label",be.checkboxLabel())("checked",be.selection.hasValue()&&be.isAllSelected())("indeterminate",be.selection.hasValue()&&!be.isAllSelected())}}function v(Se,Fe){if(1&Se){const be=e.EpF();e.TgZ(0,"td",26)(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function(P){const i=e.CHM(be).$implicit,o=e.oxw();return e.KtG(P?o.itemSelectionToggle(i):null)})("click",function(P){return P.stopPropagation()}),e.qZA()()()}if(2&Se){const be=Fe.$implicit,Ue=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!Ue.disableSelect(be)),e.xp6(2),e.Q2q("data-cy","",be.name,"-checkbox"),e.Q6J("aria-label",Ue.checkboxLabel(be))("checked",Ue.selection.isSelected(be))("disabled",Ue.disableSelect(be))}}function L(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function B(Se,Fe){if(1&Se&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.id)}}function W(Se,Fe){1&Se&&e._UZ(0,"th",31)}function q(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&Se){const be=Fe.$implicit,Ue=e.oxw();e.xp6(1),e.Q6J("recentIds",Ue.recentIds)("id",be.id)}}function ue(Se,Fe){1&Se&&e._UZ(0,"th",31)}function ye(Se,Fe){1&Se&&(e.TgZ(0,"mat-icon",35),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&Se&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Me(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e.YNc(1,ye,3,3,"mat-icon",34),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Q6J("ngIf",be.sourceGroupId)}}function we(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function Ge(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.uIk("data-cy",be.name),e.xp6(1),e.hij(" ",be.name," ")}}function ce(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Ze(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.vo.name)}}function he(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function xe(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.voId)}}function j(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function R(Se,Fe){if(1&Se){const be=e.EpF();e.TgZ(0,"td",32)(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){e.CHM(be);const P=e.oxw();return e.KtG(P.disabledRouting=!0)})("mouseleave",function(){e.CHM(be);const P=e.oxw();return e.KtG(P.disabledRouting=P.disableRouting)})("statusChange",function(){e.CHM(be);const P=e.oxw();return e.KtG(P.refreshTable.emit())}),e.qZA()()}if(2&Se){const be=Fe.$implicit,Ue=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",be.id)("groupId",Ue.groupId)("failureCause",be.failureCause)("status",be.status)}}function G(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function se(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.facility.name)}}function $(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function Ee(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.facilityId)}}function Oe(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function ct(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,be.resourceTags)," ")}}function Xe(Se,Fe){1&Se&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function _t(Se,Fe){if(1&Se&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Se){const be=Fe.$implicit;e.xp6(1),e.Oqu(be.description)}}function Je(Se,Fe){1&Se&&e._UZ(0,"tr",37)}const gt=function(Se){return[Se]};function Y(Se,Fe){if(1&Se&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&Se){const be=Fe.$implicit,Ue=e.oxw();e.ekj("cursor-pointer",!Ue.disableRouting)("disable-outline",Ue.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,gt,Ue.disabledRouting?null:e.xi3(1,6,be,Ue.routingVo)))("routerLink",Ue.disabledRouting?null:e.xi3(2,9,be,Ue.routingVo))}}function Ce(Se,Fe){1&Se&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ae(Se,Fe){1&Se&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Se&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let re=(()=>{class Se{constructor(be,Ue){this.guiAuthResolver=be,this.tableCheckbox=Ue,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=g.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(P,H)=>Se.getDataForColumn(P,H,this.recentIds),this.canBeSelected=P=>!this.disableSelect(P)}set matSort(be){this.sort=be}static getDataForColumn(be,Ue,P){switch(Ue){case"id":return be.id.toString();case"vo":return be.vo.name;case"name":return be.name;case"facility":return be.facility.name;case"description":return be.description;case"recent":return P&&P.includes(be.id)?"#".repeat(P.indexOf(be.id)):be.name;case"tags":{if(!be.resourceTags)return be[Ue];let i="";return be.resourceTags.forEach(function(o){i=i.concat(o.tagName)}),i}case"status":return be.status;case"uuid":return be.uuid;default:return be[Ue]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(be=>"id"!==be)),this.setDataSource(),this.setAuth()}exportAllData(be){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),be)}exportDisplayedData(be){const Ue=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,P=Ue+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(Ue,P),this.displayedColumns,this.getDataForColumnFun),be)}setDataSource(){this.dataSource||(this.dataSource=new A.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(be,Ue)=>(0,g.Sd)(be,Ue,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(be,Ue)=>(0,g.pR)(be,Ue,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const be=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(be),be}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(be){return be?`${this.selection.isSelected(be)?"deselect":"select"} row ${be.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const be=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((Ue,P)=>Ue&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",be.concat([P])),!0),this.addAuth=this.selection.selected.reduce((Ue,P)=>Ue&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",be.concat([P])),!0)}itemSelectionToggle(be){this.selection.toggle(be),this.setAuth()}disableSelect(be){return this.resourcesToDisableCheckbox.has(be.id)}}return Se.\u0275fac=function(be){return new(be||Se)(e.Y36(C.x4),e.Y36(C.UA))},Se.\u0275cmp=e.Xpm({type:Se,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(be,Ue){if(1&be&&(e.Gf(g.l9,7),e.Gf(c.YE,7)),2&be){let P;e.iGM(P=e.CRH())&&(Ue.child=P.first),e.iGM(P=e.CRH())&&(Ue.matSort=P.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(be,Ue){1&be&&(e.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportDisplayedData",function(H){return Ue.exportDisplayedData(H)})("exportAllData",function(H){return Ue.exportAllData(H)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Te,2,3,"th",4),e.YNc(5,v,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,L,3,3,"th",7),e.YNc(8,B,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,W,1,0,"th",10),e.YNc(11,q,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ue,1,0,"th",10),e.YNc(14,Me,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,we,3,3,"th",7),e.YNc(17,Ge,2,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,ce,3,3,"th",7),e.YNc(20,Ze,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,he,3,3,"th",7),e.YNc(23,xe,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,j,3,3,"th",7),e.YNc(26,R,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,G,3,3,"th",7),e.YNc(29,se,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,$,3,3,"th",7),e.YNc(32,Ee,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,Oe,3,3,"th",7),e.YNc(35,ct,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,Xe,3,3,"th",7),e.YNc(38,_t,2,1,"td",11),e.BQk(),e.YNc(39,Je,1,0,"tr",21),e.YNc(40,Y,3,14,"tr",22),e.qZA()()(),e.YNc(41,Ce,3,3,"perun-web-apps-alert",23),e.YNc(42,ae,3,3,"perun-web-apps-alert",23)),2&be&&(e.Q6J("hidden",0===Ue.dataSource.filteredData.length||0===Ue.resources.length),e.xp6(1),e.Q6J("dataLength",Ue.dataSource.filteredData.length)("tableId",Ue.tableId)("pageSizeOptions",Ue.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Ue.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",Ue.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ue.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ue.dataSource.filteredData.length&&0!==Ue.resources.length),e.xp6(1),e.Q6J("ngIf",0===Ue.resources.length))},dependencies:[T.O5,E.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,S.rH,c.YE,c.nU,U.w,_.Hw,V.gM,z.l,Q.YH,te.W,oe.x,ee.X$,le,de.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),Se})()},52170:(Ye,pe,h)=>{"use strict";h.d(pe,{$x:()=>C,qG:()=>g});var e=h(94650),c=h(89383),A=h(42377);class w{constructor(E,S){this.value=S,this.displayName=E}}var g=(()=>{return(T=g||(g={}))[T.SOURCE=0]="SOURCE",T[T.DESTINATION=1]="DESTINATION",T[T.FEDERATION=2]="FEDERATION",g;var T})();let C=(()=>{class T{constructor(S){this.translateService=S,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=U=>U.displayName,this.shortNameFunction=()=>null,this.searchFunction=U=>U.displayName}static getDefinition(S){const U=S.namespace.split(":");return null===U[4]?"null":U[4]}ngOnInit(){this.type===g.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(S=>{const U=new w(S,"");this.items.push(U),this.item=U});for(const S of this.attributes){const U=new w(S.friendlyName+" ("+S.entity+" / "+T.getDefinition(S)+")",S.namespace+":"+S.friendlyName);U.value===this.selectedAttribute&&(this.item=U),("user"===S.entity.toLowerCase()||"member"===S.entity.toLowerCase()||"vo"===S.entity.toLowerCase()&&this.type===g.SOURCE||"group"===S.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(U)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(S=>{this.items.push(new w(S,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(U=>{this.items.push(new w(U,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const S of this.items)if(S.value===this.selectedAttribute)return void(this.item=S);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(S){S.sort((U,_)=>""===U.value?-1:""===_.value?1:U.displayName.localeCompare(_.displayName))}}return T.\u0275fac=function(S){return new(S||T)(e.Y36(c.sK))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(S,U){1&S&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(V){return U.itemSelected.emit(V)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&S&&e.Q6J("entities",U.items)("entity",U.item)("searchFunction",U.searchFunction)("mainTextFunction",U.nameFunction)("secondaryTextFunction",U.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},dependencies:[A.i,c.X$]}),T})()},30540:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(94650),c=h(42377),A=h(89383);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=T=>T.name,this.secondaryFunction=()=>"",this.searchFunction=T=>T.name}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(T,E){1&T&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(U){return E.serviceSelected.emit(U)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&T&&e.Q6J("entity",E.service)("entities",E.services)("multiple",E.multiple)("disableAutoSelect",E.disableAutoSelect)("searchFunction",E.searchFunction)("mainTextFunction",E.nameFunction)("secondaryTextFunction",E.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",E.theme)},dependencies:[c.i,A.X$]}),g})()},80275:(Ye,pe,h)=>{"use strict";h.d(pe,{j:()=>xe});var e=h(95017),c=h(96308),A=h(30671),w=h(32080),g=h(9244),C=h(94650),T=h(94364),E=h(36895),S=h(56709),U=h(98380),_=h(10266),V=h(18750),z=h(50301),Q=h(89383);let te=(()=>{class j{transform(G){return G.find($=>"mail"===$.friendlyName)?.value??""}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275pipe=C.Yjl({name:"getMailFromAttributes",type:j,pure:!0}),j})();var oe=h(34447);function ee(j,R){1&j&&C._UZ(0,"th",18)}function le(j,R){if(1&j){const G=C.EpF();C.TgZ(0,"td",19)(1,"span",20),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.TgZ(4,"mat-checkbox",21),C.NdJ("change",function($){const Oe=C.CHM(G).$implicit,ct=C.oxw();return C.KtG($?ct.selection.toggle(Oe):null)})("click",function($){return $.stopPropagation()}),C.qZA()()()}if(2&j){const G=R.$implicit,se=C.oxw();C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,C.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),C.Q6J("matTooltipPosition","above")("matTooltipDisabled",!G.userExtSource.persistent),C.xp6(3),C.Q6J("aria-label",se.checkboxLabel(G))("checked",se.selection.isSelected(G))("disabled",G.userExtSource.persistent)}}function de(j,R){1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Te(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.id," ")}}function v(j,R){1&j&&(C.TgZ(0,"th",24),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function L(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.ALo(2,"getMailFromAttributes"),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",C.lcZ(2,1,G.attributes)," ")}}function B(j,R){if(1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j){const G=C.oxw();C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,G.extSourceNameHeader?G.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function W(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.extSource.name," ")}}function q(j,R){if(1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j){const G=C.oxw();C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,G.loginHeader?G.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ue(j,R){if(1&j&&(C.TgZ(0,"td",23),C._uU(1),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",G.userExtSource.login," ")}}function ye(j,R){1&j&&(C.TgZ(0,"th",22),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Me(j,R){if(1&j&&(C.TgZ(0,"td",25),C._uU(1),C.ALo(2,"date"),C.qZA()),2&j){const G=R.$implicit;C.xp6(1),C.hij(" ",C.xi3(2,1,G.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function we(j,R){1&j&&C._UZ(0,"tr",26)}const Ge=function(j,R){return["/admin","users",j,"identities",R]};function ce(j,R){if(1&j&&C._UZ(0,"tr",27),2&j){const G=R.$implicit,se=C.oxw();C.ekj("cursor-pointer",!se.disableRouting)("disable-outline",se.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",se.disableRouting?null:C.WLB(6,Ge,se.userId,G.userExtSource.id))("routerLink",se.disableRouting?null:C.WLB(9,Ge,se.userId,G.userExtSource.id))}}function Ze(j,R){1&j&&(C.TgZ(0,"perun-web-apps-alert",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function he(j,R){1&j&&(C.TgZ(0,"perun-web-apps-alert",28),C._uU(1),C.ALo(2,"translate"),C.ALo(3,"customTranslate"),C.qZA()),2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,C.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let xe=(()=>{class j{constructor(G,se){this.route=G,this.authResolver=se,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(G){this.sort=G,this.setDataSource()}static getDataForColumn(G,se){switch(se){case"id":return G.userExtSource.id.toString();case"mail":{const $=G.attributes.find(Ee=>"mail"===Ee.friendlyName);return $?$.value:"N/A"}case"extSourceName":return G.userExtSource.extSource.name;case"login":return G.userExtSource.login;case"lastAccess":return G.userExtSource.lastAccess.split(".")[0];default:return G[se]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(G=>{this.userId=Number(G.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(G=>"id"!==G)),this.dataSource=new A.by(this.userExtSources),this.setDataSource()}exportAllData(G){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,j.getDataForColumn),G)}exportDisplayedData(G){const se=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,$=se+this.dataSource.paginator.pageSize;(0,g.O6)((0,g.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(se,$),this.displayedColumns,j.getDataForColumn),G)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(G,se)=>(0,g.Sd)(G,se,this.displayedColumns,j.getDataForColumn),this.dataSource.sortData=(G,se)=>(0,g.pR)(G,se,j.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(G){return`${this.selection.isSelected(G.userExtSource)?"deselect":"select"} row ${G.userExtSource.id+1}`}}return j.\u0275fac=function(G){return new(G||j)(C.Y36(T.gz),C.Y36(w.x4))},j.\u0275cmp=C.Xpm({type:j,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(G,se){if(1&G&&(C.Gf(g.l9,7),C.Gf(c.YE,7)),2&G){let $;C.iGM($=C.CRH())&&(se.child=$.first),C.iGM($=C.CRH())&&(se.matSort=$.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[C.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(G,se){1&G&&(C.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportDisplayedData",function(Ee){return se.exportDisplayedData(Ee)})("exportAllData",function(Ee){return se.exportAllData(Ee)}),C.TgZ(2,"table",2),C.ynx(3,3),C.YNc(4,ee,1,0,"th",4),C.YNc(5,le,5,10,"td",5),C.BQk(),C.ynx(6,6),C.YNc(7,de,4,5,"th",7),C.YNc(8,Te,2,1,"td",8),C.BQk(),C.ynx(9,9),C.YNc(10,v,4,5,"th",10),C.YNc(11,L,3,3,"td",8),C.BQk(),C.ynx(12,11),C.YNc(13,B,4,5,"th",7),C.YNc(14,W,2,1,"td",8),C.BQk(),C.ynx(15,12),C.YNc(16,q,4,5,"th",7),C.YNc(17,ue,2,1,"td",8),C.BQk(),C.ynx(18,13),C.YNc(19,ye,4,5,"th",7),C.YNc(20,Me,3,4,"td",14),C.BQk(),C.YNc(21,we,1,0,"tr",15),C.YNc(22,ce,1,12,"tr",16),C.qZA()()(),C.YNc(23,Ze,3,3,"perun-web-apps-alert",17),C.YNc(24,he,4,5,"perun-web-apps-alert",17)),2&G&&(C.Q6J("hidden",0===se.userExtSources.length||0===se.dataSource.filteredData.length),C.xp6(1),C.Q6J("tableId",se.tableId)("dataLength",se.dataSource.filteredData.length)("pageSizeOptions",se.pageSizeOptions),C.xp6(1),C.Q6J("dataSource",se.dataSource),C.xp6(19),C.Q6J("matHeaderRowDef",se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",se.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===se.dataSource.filteredData.length&&0!==se.userExtSources.length),C.xp6(1),C.Q6J("ngIf",0===se.userExtSources.length))},dependencies:[E.O5,S.oG,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,T.rH,c.YE,c.nU,U.w,_.gM,V.l,z.YH,E.uU,Q.X$,te,oe.a],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),j})()},74250:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=c.bD}ngOnInit(){this.users=this.users.sort(c.fx)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.userSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entities",S.users)("disableAutoSelect",S.disableAutoSelect)("searchFunction",S.userFullNameFunction)("mainTextFunction",S.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},dependencies:[A.i,w.X$]}),C})()},88561:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>Y});var e=h(95017),c=h(9244),A=h(96308),w=h(32080),g=h(56451),C=h(18505),T=h(74281),E=h(94650),S=h(10036),U=h(65412),_=h(36895),V=h(56709),z=h(30671),Q=h(51572),te=h(98380),oe=h(97392),ee=h(10266),le=h(18750),de=h(50301),Te=h(89383),v=h(31359),L=h(16119),B=h(7598),W=h(9954);function q(Ce,ae){1&Ce&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function ue(Ce,ae){if(1&Ce){const re=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(Fe){E.CHM(re);const be=E.oxw(2);return E.KtG(Fe?be.masterToggle():null)}),E.qZA()}if(2&Ce){const re=E.oxw(2);E.Q6J("aria-label",re.checkboxLabel())("checked",re.selection.hasValue()&&re.isAllSelected())("indeterminate",re.selection.hasValue()&&!re.isAllSelected())}}function ye(Ce,ae){if(1&Ce&&(E.TgZ(0,"th",22),E.YNc(1,ue,1,3,"mat-checkbox",23),E.qZA()),2&Ce){const re=E.oxw();E.xp6(1),E.Q6J("ngIf",re.selection.isMultipleSelection())}}function Me(Ce,ae){if(1&Ce){const re=E.EpF();E.TgZ(0,"td",25)(1,"mat-checkbox",26),E.NdJ("change",function(Fe){const Ue=E.CHM(re).$implicit,P=E.oxw();return E.KtG(Fe?P.selection.toggle(Ue):null)})("click",function(Fe){return Fe.stopPropagation()}),E.qZA()()}if(2&Ce){const re=ae.$implicit,Se=E.oxw();E.xp6(1),E.Q6J("aria-label",Se.checkboxLabel(re))("checked",Se.selection.isSelected(re))}}function we(Ce,ae){1&Ce&&E._UZ(0,"th",27)}function Ge(Ce,ae){1&Ce&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&Ce&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function ce(Ce,ae){if(1&Ce&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&Ce){const re=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",re.svgIcon)}}function Ze(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",28),E.YNc(1,Ge,3,3,"mat-icon",29),E.YNc(2,ce,2,4,"mat-icon",30),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Q6J("ngIf",!re.serviceUser),E.xp6(1),E.Q6J("ngIf",re.serviceUser)}}function he(Ce,ae){1&Ce&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function xe(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.hij(" ",re.id," ")}}function j(Ce,ae){1&Ce&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function R(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E.ALo(1,"lowercase"),E._uU(2),E.ALo(3,"userFullName"),E.qZA()),2&Ce){const re=ae.$implicit;E.Q2q("data-cy","",E.lcZ(1,2,re.firstName),"-td"),E.xp6(2),E.hij(" ",E.lcZ(3,4,re)," ")}}function G(Ce,ae){1&Ce&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function se(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function $(Ce,ae){1&Ce&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function Ee(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function Oe(Ce,ae){1&Ce&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function ct(Ce,ae){if(1&Ce&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&Ce){const re=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function Xe(Ce,ae){1&Ce&&E._UZ(0,"tr",35)}const _t=function(Ce){return["/admin/users",Ce]};function Je(Ce,ae){if(1&Ce&&E._UZ(0,"tr",36),2&Ce){const re=ae.$implicit,Se=E.oxw();E.ekj("cursor-pointer",!Se.disableRouting),E.Q6J("perunWebAppsForceRouterLink",Se.disableRouting?null:E.VKq(4,_t,re.id))("perunWebAppsMiddleClickRouterLink",Se.disableRouting?null:E.VKq(6,_t,re.id))}}function gt(Ce,ae){1&Ce&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ce&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let Y=(()=>{class Ce{constructor(re,Se,Fe,be,Ue){this.authResolver=re,this.tableCheckbox=Se,this.tableConfigService=Fe,this.dynamicPaginatingService=be,this.dialog=Ue,this.selection=new e.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.svgIcon="perun-service-identity-black",this.pageSizeOptions=c.f7}static getExportDataForColumn(re,Se){switch(Se){case"id":return re.id.toString();case"user":return re.serviceUser?"service-user":"user";case"name":return re?(0,c.bD)(re):"";case"organization":return(0,c.OV)(re);case"email":return(0,c.kN)(re);case"logins":return(0,c.lt)(re);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,C.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(re=>"id"!==re)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(re=>this.selection.select(re))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(re){return re?`${this.selection.isSelected(re)?"deselect":"select"} row ${re.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}exportDisplayedData(re){(0,c.O6)((0,c.Xn)(this.dataSource.getData(),this.displayedColumns,Ce.getExportDataForColumn),re)}exportAllData(re){const Se="asc"===this.sort.direction?"ASCENDING":"DESCENDING",Fe="name"===this.sort.active?"NAME":"ID",be=(0,c.kZ)();be.width="300px";const Ue=this.dialog.open(T.QQ,be);this.dataSource.getAllUsers(this.attrNames,Se,this.child.paginator.length,Fe,this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed).subscribe(P=>{Ue.close(),(0,c.O6)((0,c.Xn)(P,this.displayedColumns,Ce.getExportDataForColumn),re)})}}return Ce.\u0275fac=function(re){return new(re||Ce)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(S.dB),E.Y36(w.ly),E.Y36(U.uw))},Ce.\u0275cmp=E.Xpm({type:Ce,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(re,Se){if(1&re&&(E.Gf(c.l9,7),E.Gf(A.YE,5)),2&re){let Fe;E.iGM(Fe=E.CRH())&&(Se.child=Fe.first),E.iGM(Fe=E.CRH())&&(Se.sort=Fe.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed"},features:[E.TTD],decls:31,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(re,Se){1&re&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportDisplayedData",function(be){return Se.exportDisplayedData(be)})("exportAllData",function(be){return Se.exportAllData(be)}),E.YNc(3,q,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,ye,2,1,"th",5),E.YNc(8,Me,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,we,1,0,"th",8),E.YNc(11,Ze,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,he,3,3,"th",11),E.YNc(14,xe,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,j,3,3,"th",11),E.YNc(17,R,4,6,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,G,3,3,"th",8),E.YNc(20,se,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,$,3,3,"th",8),E.YNc(23,Ee,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Oe,3,3,"th",8),E.YNc(26,ct,3,3,"td",13),E.BQk(),E.YNc(27,Xe,1,0,"tr",17),E.YNc(28,Je,1,8,"tr",18),E.qZA()()(),E.YNc(29,gt,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&re&&(E.Q6J("hidden",0===Se.dataSource.allObjectCount&&!1===E.lcZ(1,9,Se.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",Se.tableId)("dataLength",Se.dataSource.allObjectCount)("pageSizeOptions",Se.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,Se.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",Se.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",Se.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Se.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===Se.dataSource.allObjectCount&&!1===E.lcZ(30,13,Se.dataSource.loading$)))},dependencies:[_.O5,V.oG,z.BZ,z.fO,z.as,z.w1,z.Dz,z.nj,z.ge,z.ev,z.XQ,z.Gk,A.YE,A.nU,Q.Ou,te.w,oe.Hw,ee.gM,le.l,de.Kd,de.YH,_.Ov,_.i8,Te.X$,v.d,L.S,B.g,W.Z],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ce})()},62707:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>g});var e=h(94650),c=h(9244),A=h(42377),w=h(89383);let g=(()=>{class C{constructor(){this.voSelected=new e.vpe,this.nameFunction=E=>E.name,this.shortNameFunction=E=>E.shortName,this.searchFunction=E=>E.name+E.shortName+String(E.id)}ngOnChanges(){this.vos.sort(c.aC),this.vo||(this.vo=this.vos[0])}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(E,S){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(_){return S.voSelected.emit(_)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",S.vo)("entities",S.vos)("searchFunction",S.searchFunction)("mainTextFunction",S.nameFunction)("secondaryTextFunction",S.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},dependencies:[A.i,w.X$]}),C})()},87831:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>Ze});var e=h(96308),c=h(30671),A=h(9244),w=h(32080),g=h(94650),C=h(36895),T=h(56709),E=h(98380),S=h(97392),U=h(18750),_=h(50301),V=h(10441),z=h(89383);function Q(he,xe){1&he&&g._UZ(0,"th",19)}function te(he,xe){if(1&he){const j=g.EpF();g.TgZ(0,"td",20)(1,"mat-checkbox",21),g.NdJ("change",function(G){const $=g.CHM(j).$implicit,Ee=g.oxw();return g.KtG(G?Ee.selection.toggle($):null)})("click",function(G){return G.stopPropagation()}),g.qZA()()}if(2&he){const j=xe.$implicit,R=g.oxw();g.xp6(1),g.Q6J("aria-label",R.checkboxLabel(j))("checked",R.selection.isSelected(j))}}function oe(he,xe){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function ee(he,xe){if(1&he&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&he){const j=xe.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=j.id)&&void 0!==R?R:j.vo.id)}}function le(he,xe){1&he&&g._UZ(0,"th",24)}function de(he,xe){if(1&he&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&he){const j=xe.$implicit,R=g.oxw();let G;g.xp6(1),g.Q6J("recentIds",R.recentIds)("id",null!==(G=j.id)&&void 0!==G?G:j.vo.id)}}function Te(he,xe){1&he&&g._UZ(0,"th",24)}function v(he,xe){1&he&&g._UZ(0,"mat-icon",28),2&he&&g.Q6J("svgIcon","perun-hierarchical-vo")}function L(he,xe){if(1&he&&(g.TgZ(0,"td",25),g.YNc(1,v,1,1,"mat-icon",27),g.qZA()),2&he){const j=xe.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==j||null==j.memberVos?null:j.memberVos.length))}}function B(he,xe){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function W(he,xe){if(1&he&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&he){const j=xe.$implicit;let R,G;g.uIk("data-cy",null!==(R=j.shortName)&&void 0!==R?R:j.vo.shortName),g.xp6(1),g.hij(" ",null!==(G=j.shortName)&&void 0!==G?G:j.vo.shortName," ")}}function q(he,xe){1&he&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ue(he,xe){if(1&he&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&he){const j=xe.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=j.name)&&void 0!==R?R:j.vo.name)}}function ye(he,xe){1&he&&g._UZ(0,"tr",29)}const Me=function(he){return["/organizations",he]};function we(he,xe){if(1&he&&g._UZ(0,"tr",30),2&he){const j=xe.$implicit,R=g.oxw();let G,se;g.ekj("disable-outline",R.disableRouting)("cursor-pointer",!R.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",R.disableRouting?null:g.VKq(6,Me,null!==(G=j.id)&&void 0!==G?G:j.vo.id))("perunWebAppsForceRouterLink",R.disableRouting?null:g.VKq(8,Me,null!==(se=j.id)&&void 0!==se?se:j.vo.id))}}function Ge(he,xe){1&he&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ce(he,xe){1&he&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&he&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let Ze=(()=>{class he{constructor(j){this.authResolver=j,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=A.f7,this.getDataForColumnFun=(R,G)=>he.getDataForColumn(R,G,this.recentIds)}set matSort(j){this.sort=j}static getDataForColumn(j,R,G){switch(he.isEnrichedVo(j)&&(j=j.vo),R){case"id":return j.id.toString();case"shortName":return j.shortName;case"name":return j.name;case"recent":return G&&G.includes(j.id)?"#".repeat(G.indexOf(j.id)):j.name;default:return j[R]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(j=>"id"!==j)),this.setDataSource()}exportAllData(j){(0,A.O6)((0,A.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),j)}exportDisplayedData(j){const R=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,G=R+this.dataSource.paginator.pageSize;(0,A.O6)((0,A.Xn)(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(R,G),this.displayedColumns,this.getDataForColumnFun),j)}setDataSource(){this.dataSource||(this.dataSource=new c.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(j,R)=>(0,A.Sd)(j,R,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(j,R)=>(0,A.pR)(j,R,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(j){return`${this.selection.isSelected(j)?"deselect":"select"} row ${j.id+1}`}}return he.isEnrichedVo=xe=>void 0!==xe.vo,he.\u0275fac=function(j){return new(j||he)(g.Y36(w.x4))},he.\u0275cmp=g.Xpm({type:he,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(j,R){if(1&j&&(g.Gf(A.l9,7),g.Gf(e.YE,7)),2&j){let G;g.iGM(G=g.CRH())&&(R.child=G.first),g.iGM(G=g.CRH())&&(R.matSort=G.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","cursor-pointer","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(j,R){1&j&&(g.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportDisplayedData",function(se){return R.exportDisplayedData(se)})("exportAllData",function(se){return R.exportAllData(se)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,Q,1,0,"th",4),g.YNc(5,te,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,oe,3,3,"th",7),g.YNc(8,ee,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,le,1,0,"th",10),g.YNc(11,de,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,Te,1,0,"th",10),g.YNc(14,L,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,B,3,3,"th",7),g.YNc(17,W,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,q,3,3,"th",7),g.YNc(20,ue,2,1,"td",11),g.BQk(),g.YNc(21,ye,1,0,"tr",15),g.YNc(22,we,1,10,"tr",16),g.qZA()()(),g.YNc(23,Ge,3,3,"perun-web-apps-alert",17),g.YNc(24,ce,3,3,"perun-web-apps-alert",18)),2&j&&(g.Q6J("hidden",0===R.dataSource.filteredData.length||0===R.vos.length),g.xp6(1),g.Q6J("dataLength",R.dataSource.filteredData.length)("tableId",R.tableId)("pageSizeOptions",R.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",R.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",R.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",R.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===R.dataSource.filteredData.length&&0!==R.vos.length),g.xp6(1),g.Q6J("ngIf",0===R.vos.length))},dependencies:[C.O5,T.oG,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.ge,c.ev,c.XQ,c.Gk,e.YE,e.nU,E.w,S.Hw,U.l,_.Kd,_.YH,V.W,z.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),he})()},74281:(Ye,pe,h)=>{"use strict";h.d(pe,{GI:()=>Bt,Wr:()=>Mt,r2:()=>on,gr:()=>Qe,u3:()=>En,Qu:()=>an,pf:()=>he,xF:()=>Wn,hd:()=>Fi,kZ:()=>Gn,wA:()=>Vt,rd:()=>Xe,Eg:()=>ct,QQ:()=>Gt,Bp:()=>re,qD:()=>ot,jd:()=>vt,FM:()=>H,jD:()=>L,Lc:()=>r,mk:()=>d,Ts:()=>jt});var e=h(36895),c=h(89383),A=h(30671),w=h(65412),g=h(4859),C=h(59549),T=h(24006),E=h(284),S=h(51572),U=h(71948),_=h(99602),V=h(64425),z=h(97392),Q=h(19516),te=h(63189),oe=h(94364),ee=h(35423),le=h(84385),de=h(28499),Te=h(57882),v=h(94650);let L=(()=>{class et{}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275mod=v.oAB({type:et}),et.\u0275inj=v.cJS({imports:[e.ez,c.aw,A.p0,w.Is,g.ot,C.lN,T.u5,E.c,S.Cq,U.Fk,_.FA,T.UX,V.Iq,z.Ps,Q.d4,te.r,oe.Bz,ee.dp,le.LD,de.E3,Te.C]}),et})();var B=h(32105),W=h(32080),q=h(3238),ue=h(20551);function ye(et,Ft){1&et&&v._UZ(0,"mat-spinner",6)}function Me(et,Ft){if(1&et&&(v.TgZ(0,"mat-option",17),v._uU(1),v.ALo(2,"memberStatus"),v.qZA()),2&et){const Ke=Ft.$implicit;v.Q6J("value",Ke),v.xp6(1),v.Oqu(v.lcZ(2,2,Ke))}}function we(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-form-field",14)(1,"mat-label"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-select",15),v.NdJ("selectionChange",function(Wt){v.CHM(Ke);const hn=v.oxw(3);return v.KtG(hn.changeStatus(Wt))}),v.YNc(5,Me,3,4,"mat-option",16),v.qZA()()}if(2&et){const Ke=v.oxw(3);v.xp6(2),v.Oqu(v.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),v.xp6(3),v.Q6J("ngForOf",Ke.allStatuses)}}function Ge(et,Ft){if(1&et&&(v.TgZ(0,"div",8),v._uU(1),v.ALo(2,"translate"),v.YNc(3,we,6,4,"mat-form-field",13),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),v.xp6(2),v.Q6J("ngIf",!Ke.loading)}}function ce(et,Ft){if(1&et&&(v.TgZ(0,"div",8),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"memberStatus"),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.AsE(" ",v.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",v.lcZ(3,4,Ke.allStatuses[0])," ")}}function Ze(et,Ft){if(1&et&&(v.TgZ(0,"div",7)(1,"div",8),v._uU(2),v.ALo(3,"translate"),v.ALo(4,"memberStatus"),v.qZA(),v.TgZ(5,"div",9),v._uU(6),v.qZA(),v.YNc(7,Ge,4,4,"div",10),v.YNc(8,ce,4,6,"div",10),v.TgZ(9,"div",11),v._UZ(10,"i",12),v.qZA()()),2&et){const Ke=v.oxw();v.xp6(2),v.AsE(" ",v.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",v.lcZ(4,8,Ke.actualStatus)," "),v.xp6(4),v.Oqu(Ke.description),v.xp6(1),v.Q6J("ngIf",Ke.allStatuses.length>1),v.xp6(1),v.Q6J("ngIf",1===Ke.allStatuses.length),v.xp6(2),v.Q6J("innerHTML",Ke.changeMessage,v.oJD)}}let he=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.data=Et,this.memberManager=Wt,this.groupsManager=hn,this.notificatorService=wn,this.translate=zn,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(Ke=>Ke!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus(Ke){this.selectedStatus=Ke.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(Ke=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Et=>{this.notificatorService.showSuccess(Et),this.dialogRef.close(Ke)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(Ke=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Et=>{this.notificatorService.showSuccess(Et),this.dialogRef.close(Ke)})},()=>this.loading=!1)}changeStatusMessage(Ke,Et){if("VALID"===Ke)switch(Et){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(Et){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.uq),v.Y36(B.ff),v.Y36(W.V6),v.Y36(c.sK))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,ye,1,0,"mat-spinner",1),v.YNc(5,Ze,11,10,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return Et.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return Et.submit()}),v._uU(11),v.qZA()()()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Et.loading||!Et.selectedStatus),v.xp6(1),v.hij(" ",Et.submitButtonText," "))},dependencies:[e.sg,e.O5,w.uh,w.xY,w.H8,g.lW,C.KE,C.hX,S.Ou,le.gD,q.ey,c.X$,ue.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),et})();function xe(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function j(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function R(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function G(et,Ft){1&et&&(v.TgZ(0,"h1",7),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function se(et,Ft){1&et&&v._UZ(0,"mat-spinner",8)}function $(et,Ft){if(1&et&&(v.TgZ(0,"mat-form-field"),v._UZ(1,"input",13),v.ALo(2,"translate"),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.MGl("placeholder","",v.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),v.Q6J("value",Ke.shortName)}}function Ee(et,Ft){if(1&et&&(v.TgZ(0,"mat-form-field",14),v._UZ(1,"textarea",15),v.ALo(2,"translate"),v.qZA()),2&et){const Ke=v.oxw(2);v.xp6(1),v.MGl("placeholder","",v.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),v.Q6J("formControl",Ke.descriptionCtrl)}}function Oe(et,Ft){if(1&et&&(v.TgZ(0,"div",9),v.YNc(1,$,3,4,"mat-form-field",10),v.TgZ(2,"mat-form-field"),v._UZ(3,"input",11),v.ALo(4,"translate"),v.TgZ(5,"mat-error"),v._uU(6),v.ALo(7,"translate"),v.qZA()(),v.YNc(8,Ee,3,4,"mat-form-field",12),v.qZA()),2&et){const Ke=v.oxw();v.xp6(1),v.Q6J("ngIf",2===Ke.dialogType),v.xp6(2),v.MGl("placeholder","",v.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),v.Q6J("formControl",Ke.nameCtrl),v.xp6(3),v.hij(" ",Ke.invalidNameMessage.length?Ke.invalidNameMessage:v.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),v.xp6(2),v.Q6J("ngIf",2!==Ke.dialogType)}}var ct=(()=>{return(et=ct||(ct={}))[et.FACILITY=0]="FACILITY",et[et.RESOURCE=1]="RESOURCE",et[et.VO=2]="VO",et[et.GROUP=3]="GROUP",ct;var et})();let Xe=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n,Ei,la){this.dialogRef=Ke,this.data=Et,this.notificator=Wt,this.translateService=hn,this.facilitiesManager=wn,this.resourcesManager=zn,this.groupsManager=$n,this.vosManager=Ei,this.store=la,this.invalidNameMessage=this.data.dialogType===ct.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===ct.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case ct.FACILITY:this.nameCtrl=new T.p4(this.data.facility.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.facility.description);break;case ct.RESOURCE:this.nameCtrl=new T.p4(this.data.resource.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new T.p4(this.data.resource.description);break;case ct.GROUP:{const Ke=this.data.group.name.split(":");this.nameCtrl=new T.p4(Ke[Ke.length-1],[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.pattern(this.secondaryRegex),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4(this.data.group.description);break}case ct.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new T.p4(this.data.vo.name,[T.kI.required,T.kI.pattern(".*[\\S]+.*"),T.kI.maxLength(129)]),this.descriptionCtrl=new T.p4}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case ct.FACILITY:this.editFacility();break;case ct.RESOURCE:this.editResource();break;case ct.GROUP:this.editGroup();break;case ct.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(Ke=>{const Et=Ke;Et.name=this.nameCtrl.value,Et.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Et}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(W.V6),v.Y36(c.sK),v.Y36(B.IQ),v.Y36(B.xk),v.Y36(B.ff),v.Y36(B.YF),v.Y36(W.d6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div"),v.YNc(1,xe,3,3,"h1",0),v.YNc(2,j,3,3,"h1",0),v.YNc(3,R,3,3,"h1",0),v.YNc(4,G,3,3,"h1",0),v.TgZ(5,"div",1),v.YNc(6,se,1,0,"mat-spinner",2),v.YNc(7,Oe,9,9,"div",3),v.qZA(),v.TgZ(8,"div",4)(9,"button",5),v.NdJ("click",function(){return Et.cancel()}),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"button",6),v.NdJ("click",function(){return Et.submit()}),v._uU(13),v.ALo(14,"translate"),v.qZA()()()),2&Ke&&(v.Tol(Et.theme),v.xp6(1),v.Q6J("ngIf",0===Et.dialogType),v.xp6(1),v.Q6J("ngIf",1===Et.dialogType),v.xp6(1),v.Q6J("ngIf",2===Et.dialogType),v.xp6(1),v.Q6J("ngIf",3===Et.dialogType),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(3),v.hij(" ",v.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("disabled",Et.loading||Et.nameCtrl.invalid||Et.descriptionCtrl.invalid),v.xp6(1),v.hij(" ",v.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,T.Fj,T.JJ,T.Q7,E.Nt,S.Ou,T.oH,c.X$]}),et})();var _t=h(64080),Je=h(9244);function gt(et,Ft){1&et&&v._UZ(0,"mat-spinner",8)}function Y(et,Ft){if(1&et&&(v.TgZ(0,"div",9)(1,"span"),v._uU(2),v.ALo(3,"translate"),v.TgZ(4,"b"),v._uU(5),v.qZA()(),v._UZ(6,"br"),v.TgZ(7,"span"),v._uU(8),v.ALo(9,"translate"),v.TgZ(10,"b"),v._uU(11),v.ALo(12,"translate"),v.qZA()(),v._UZ(13,"br"),v.TgZ(14,"span"),v._uU(15),v.ALo(16,"translate"),v.TgZ(17,"b"),v._uU(18),v.ALo(19,"translate"),v.qZA()(),v._UZ(20,"br"),v.TgZ(21,"span"),v._uU(22),v.ALo(23,"translate"),v.TgZ(24,"b"),v._uU(25),v.ALo(26,"translate"),v.qZA()()()),2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),v.xp6(3),v.Oqu(Ke.group.name),v.xp6(3),v.hij(" ",v.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),v.xp6(3),v.Oqu(v.lcZ(12,12,Ke.getSynchronizationType())),v.xp6(4),v.hij(" ",v.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),v.xp6(3),v.Oqu(v.lcZ(19,16,Ke.getLastSyncState())),v.xp6(4),v.hij(" ",v.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),v.xp6(3),v.Oqu(v.lcZ(26,20,Ke.getLastSyncTime()))}}function Ce(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onForceStructure())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function ae(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",10),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onForce())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let re=(()=>{class et{constructor(Ke,Et,Wt,hn){this.dialogRef=Ke,this.data=Et,this.groupService=Wt,this.notificator=hn,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[_t.r.GROUP_SYNC_ENABLED,_t.r.GROUP_LAST_SYNC_STATE,_t.r.GROUP_LAST_SYNC_TIMESTAMP,_t.r.GROUP_STRUCTURE_SYNC_ENABLED,_t.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_t.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Ke=>{this.group=Ke,this.syncEnabled=(0,Je.IL)(this.group.attributes,_t.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,Je.IL)(this.group.attributes,_t.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,Je.IL)(this.group.attributes,_t.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.ff),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,gt,1,0,"mat-spinner",1),v.YNc(5,Y,27,22,"div",2),v.TgZ(6,"div",3)(7,"div",4)(8,"button",5),v.NdJ("click",function(){return Et.refresh()}),v.TgZ(9,"mat-icon"),v._uU(10,"refresh"),v.qZA()(),v.YNc(11,Ce,3,4,"button",6),v.YNc(12,ae,3,4,"button",6),v.TgZ(13,"button",7),v.NdJ("click",function(){return Et.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()()()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(6),v.Q6J("ngIf",Et.isStructured()),v.xp6(1),v.Q6J("ngIf",Et.isBasic()||Et.isStructured()),v.xp6(2),v.hij(" ",v.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,S.Ou,z.Hw,c.X$]}),et})();function Se(et,Ft){1&et&&v._UZ(0,"mat-spinner",7)}function Fe(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function be(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Ue(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"input",9,10),v.NdJ("ngModelChange",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.subject=Wt)}),v.qZA(),v.YNc(7,Fe,3,3,"mat-error",11),v.qZA(),v.TgZ(8,"mat-form-field")(9,"mat-label"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v.TgZ(12,"textarea",12,13),v.NdJ("ngModelChange",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.message=Wt)}),v.ALo(14,"translate"),v._uU(15," "),v.qZA(),v.YNc(16,be,3,3,"mat-error",11),v.qZA()()}if(2&et){const Ke=v.MAs(6),Et=v.MAs(13),Wt=v.oxw();v.xp6(3),v.Oqu(v.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),v.xp6(2),v.Q6J("ngModel",Wt.subject),v.xp6(2),v.Q6J("ngIf",Ke.invalid),v.xp6(3),v.Oqu(v.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),v.xp6(2),v.s9C("placeholder",v.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),v.Q6J("ngModel",Wt.message),v.xp6(4),v.Q6J("ngIf",Et.invalid)}}let P=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.translate=Et,this.notificator=Wt,this.rtMessages=hn,this.data=wn,this.storeService=zn,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(Ke=>{this.dialogRef.afterClosed().subscribe(()=>{const Et="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),Ke.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Et)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const Ke=this.storeService.get("config");let Et=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Et=Et.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Et=Et.concat(this.data.error.message,"\n","Perun instance: ",Ke,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const Wt=/"password":".+?"/;let hn=JSON.stringify(this.data.error.payload);hn=hn.replace(Wt,'"password":"####"'),Et=Et.concat("Payload:\n"+hn+"\n\n")}return Et=Et.concat("Sent from new Perun Gui, version: ",h(4147).i8),Et.split("\n").join("\n ")}parseMethod(Ke){return Ke&&this.methodRegexp.exec(Ke)[1]}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(c.sK),v.Y36(W.V6),v.Y36(B.Hr),v.Y36(w.WI),v.Y36(W.d6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.YNc(3,Se,1,0,"mat-spinner",1),v.YNc(4,Ue,17,13,"div",2),v.TgZ(5,"div",3)(6,"div",4)(7,"button",5),v.NdJ("click",function(){return Et.dialogRef.close()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",6),v.NdJ("click",function(){return Et.sendBugReport()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()()),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(4),v.hij(" ",v.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),v.xp6(2),v.Q6J("disabled",""===Et.message||""===Et.subject||Et.loading),v.xp6(1),v.hij(" ",v.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,C.hX,T.Fj,T.JJ,T.Q7,T.On,E.Nt,S.Ou,c.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),et})(),H=(()=>{class et{constructor(Ke,Et,Wt){this.dialogRef=Ke,this.dialog=Et,this.data=Wt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const Ke=(0,Je.kZ)();Ke.width="550px",Ke.data={error:this.data.error},Ke.autoFocus=!1,this.dialog.open(P,Ke)}),this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.uw),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1),v._uU(3),v.qZA(),v.TgZ(4,"div",2)(5,"div",3)(6,"button",4),v.NdJ("click",function(){return Et.onBugReportClick()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v.NdJ("click",function(){return Et.onCloseClick()}),v._uU(10),v.ALo(11,"translate"),v.qZA()()()),2&Ke&&(v.xp6(1),v.Oqu(Et.data.title),v.xp6(2),v.hij(" ",Et.data.description,"\n"),v.xp6(3),v.Q6J("hidden","error"!==Et.data.type),v.xp6(1),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),v.xp6(3),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,c.X$]}),et})();var i=h(34447);function o(et,Ft){1&et&&v._UZ(0,"mat-spinner",3)}function f(et,Ft){1&et&&v._UZ(0,"th",15)}function l(et,Ft){if(1&et&&(v.TgZ(0,"td",16),v._uU(1),v.qZA()),2&et){const Ke=Ft.$implicit;v.xp6(1),v.hij(" ",Ke.userExtSource.extSource.name," ")}}function a(et,Ft){1&et&&v._UZ(0,"tr",17)}function n(et,Ft){1&et&&v._UZ(0,"tr",18)}function t(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div")(1,"div",4)(2,"p"),v._uU(3),v.ALo(4,"translate"),v.ALo(5,"customTranslate"),v.qZA(),v.TgZ(6,"div",5),v._uU(7),v.ALo(8,"translate"),v.ALo(9,"customTranslate"),v.qZA(),v.TgZ(10,"table",6),v.ynx(11,7),v.YNc(12,f,1,0,"th",8),v.YNc(13,l,2,1,"td",9),v.BQk(),v.YNc(14,a,1,0,"tr",10),v.YNc(15,n,1,0,"tr",11),v.qZA()(),v.TgZ(16,"div",12)(17,"button",13),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onCancel())}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA(),v.TgZ(21,"button",14),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(22),v.ALo(23,"translate"),v.ALo(24,"customTranslate"),v.qZA()()()}if(2&et){const Ke=v.oxw();v.xp6(3),v.hij(" ",v.lcZ(4,7,v.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),v.xp6(4),v.hij(" ",v.lcZ(8,11,v.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),v.xp6(3),v.Q6J("dataSource",Ke.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ke.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ke.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,15,v.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),v.xp6(4),v.hij(" ",v.lcZ(23,19,v.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let r=(()=>{class et{constructor(Ke,Et,Wt,hn,wn){this.dialogRef=Ke,this.data=Et,this.usersManagerService=Wt,this.translate=hn,this.notificator=wn,this.force=!1,this.displayedColumns=["name"],hn.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(zn=>this.successMessage=zn)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.Fv),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div"),v.YNc(5,o,1,0,"mat-spinner",1),v.YNc(6,t,25,23,"div",2),v.qZA()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,6,v.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),v.xp6(3),v.Tol(Et.theme),v.xp6(1),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,S.Ou,c.X$,i.a]}),et})();var s=h(39349);let d=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.qZA(),v.TgZ(2,"div",1)(3,"textarea",2),v._uU(4),v.qZA()(),v.TgZ(5,"div",3)(6,"button",4),v.NdJ("click",function(){return Et.onCancel()}),v._uU(7),v.ALo(8,"translate"),v.qZA(),v.TgZ(9,"button",5),v._uU(10),v.ALo(11,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.Oqu(Et.title),v.xp6(3),v.Oqu(Et.value),v.xp6(3),v.hij(" ",v.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),v.xp6(2),v.Q6J("cdkCopyToClipboard",Et.value),v.xp6(1),v.hij(" ",v.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,s.IC,E.Nt,V.i3,c.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),et})();function p(et,Ft){1&et&&v._UZ(0,"th",12)}function M(et,Ft){if(1&et&&(v.TgZ(0,"td",13),v._uU(1),v.qZA()),2&et){const Ke=Ft.$implicit;v.xp6(1),v.Oqu(Ke.displayName)}}function _e(et,Ft){1&et&&v._UZ(0,"tr",14)}function bt(et,Ft){1&et&&v._UZ(0,"tr",15)}let Vt=(()=>{class et{constructor(Ke,Et,Wt,hn,wn){this.dialogRef=Ke,this.data=Et,this.notificator=Wt,this.translate=hn,this.attributesManager=wn,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new A.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke),this.dialogRef.close(!0)})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(W.V6),v.Y36(c.sK),v.Y36(B.H8))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"table",3),v.ynx(11,4),v.YNc(12,p,1,0,"th",5),v.YNc(13,M,2,1,"td",6),v.BQk(),v.YNc(14,_e,1,0,"tr",7),v.YNc(15,bt,1,0,"tr",8),v.qZA()(),v.TgZ(16,"div",9)(17,"button",10),v.NdJ("click",function(){return Et.onCancel()}),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"button",11),v.NdJ("click",function(){return Et.onSubmit()}),v._uU(21),v.ALo(22,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),v.xp6(4),v.hij(" ",v.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),v.xp6(3),v.hij(" ",v.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),v.xp6(2),v.Q6J("dataSource",Et.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Et.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Et.displayedColumns),v.xp6(3),v.hij(" ",v.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),v.xp6(3),v.hij(" ",v.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},dependencies:[A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,c.X$]}),et})(),on=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),v.NdJ("ngModelChange",function(hn){return Et.attributeValue=hn}),v.qZA()()(),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return Et.cancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.TgZ(10,"button",5),v.NdJ("click",function(){return Et.submit()}),v._uU(11),v.ALo(12,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),v.xp6(4),v.Q6J("ngModel",Et.attributeValue),v.xp6(3),v.hij(" ",v.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,C.KE,T.Fj,T.JJ,T.On,s.IC,E.Nt,c.X$]}),et})(),Mt=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h5",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"div"),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"div",2),v._uU(8),v.qZA()(),v.TgZ(9,"div",3)(10,"button",4),v.NdJ("click",function(){return Et.cancel()}),v._uU(11),v.ALo(12,"translate"),v.qZA(),v.TgZ(13,"button",5),v.NdJ("click",function(){return Et.submit()}),v._uU(14),v.ALo(15,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),v.xp6(4),v.hij(" ",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),v.xp6(3),v.hij(" ",Et.data.name," "),v.xp6(3),v.hij(" ",v.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),v.xp6(3),v.hij(" ",v.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,c.X$]}),et})();var ft=h(98380);function je(et,Ft){if(1&et&&(v.TgZ(0,"perun-web-apps-alert",9),v._uU(1),v.qZA()),2&et){const Ke=v.oxw();v.xp6(1),v.Oqu(Ke.pendingEmailsMessage)}}function Pe(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,v.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Qe=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.data=Et,this.translate=Wt,this.notificator=hn,this.usersManagerService=wn,this.authService=zn,this.pendingMails=[],Wt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe($n=>this.successMessage=$n),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe($n=>this.pendingEmailsMessageStart=$n),Wt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe($n=>this.pendingEmailsMessageEnd=$n)}ngOnInit(){this.emailControl=new T.p4(null,[T.kI.required,T.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(Ke=>{this.pendingMails=Ke.filter((Wt,hn,wn)=>hn===wn.indexOf(Wt));let Et="";this.pendingMails.forEach(Wt=>Et+=`${Wt===this.pendingMails[0]?"":", "}${Wt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Et+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Et=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Et[0]+"//"+Et[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(c.sK),v.Y36(W.V6),v.Y36(B.Fv),v.Y36(W.e8))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.ALo(3,"customTranslate"),v.qZA(),v.TgZ(4,"div",1),v.YNc(5,je,2,1,"perun-web-apps-alert",2),v.TgZ(6,"mat-form-field",3)(7,"label",3),v._UZ(8,"input",4),v.ALo(9,"translate"),v.ALo(10,"customTranslate"),v.qZA(),v.YNc(11,Pe,4,5,"mat-error",5),v.qZA()(),v.TgZ(12,"div",6)(13,"button",7),v.NdJ("click",function(){return Et.onCancel()}),v._uU(14),v.ALo(15,"translate"),v.ALo(16,"customTranslate"),v.qZA(),v.TgZ(17,"button",8),v.NdJ("click",function(){return Et.onSubmit()}),v._uU(18),v.ALo(19,"translate"),v.ALo(20,"customTranslate"),v.qZA()()),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,8,v.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),v.xp6(4),v.Q6J("ngIf",Et.pendingMails.length),v.xp6(3),v.s9C("placeholder",v.lcZ(9,12,v.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),v.Q6J("formControl",Et.emailControl),v.xp6(3),v.Q6J("ngIf",Et.emailControl.invalid),v.xp6(3),v.hij(" ",v.lcZ(15,16,v.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),v.xp6(3),v.Q6J("disabled",!Et.emailControl.valid),v.xp6(1),v.hij(" ",v.lcZ(19,20,v.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,T.Fj,T.JJ,T.Q7,E.Nt,T.oH,ft.w,c.X$,i.a]}),et})();function qe(et,Ft){1&et&&v._UZ(0,"mat-spinner",7)}function Be(et,Ft){1&et&&(v.TgZ(0,"div",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function me(et,Ft){1&et&&v._UZ(0,"th",18)}function ve(et,Ft){if(1&et&&(v.TgZ(0,"td",19),v._uU(1),v.qZA()),2&et){const Ke=Ft.$implicit;v.xp6(1),v.Oqu(Ke)}}function ze(et,Ft){1&et&&v._UZ(0,"tr",20)}function tt(et,Ft){1&et&&v._UZ(0,"tr",21)}function at(et,Ft){if(1&et&&(v.TgZ(0,"perun-web-apps-alert",22),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et){const Ke=v.oxw(2);v.Q6J("alert_type","warn"),v.xp6(1),v.hij(" ",v.lcZ(2,2,Ke.data.alert)," ")}}function Re(et,Ft){if(1&et&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Be,3,3,"div",9),v.TgZ(5,"table",10),v.ynx(6,11),v.YNc(7,me,1,0,"th",12),v.YNc(8,ve,2,1,"td",13),v.BQk(),v.YNc(9,ze,1,0,"tr",14),v.YNc(10,tt,1,0,"tr",15),v.qZA(),v.YNc(11,at,3,4,"perun-web-apps-alert",16),v.qZA()),2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,6,Ke.data.description)," "),v.xp6(2),v.Q6J("ngIf",Ke.data.showAsk),v.xp6(1),v.Q6J("dataSource",Ke.dataSource),v.xp6(4),v.Q6J("matHeaderRowDef",Ke.displayedColumns),v.xp6(1),v.Q6J("matRowDefColumns",Ke.displayedColumns),v.xp6(1),v.Q6J("ngIf",Ke.data.alert)}}function st(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",23),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function Pt(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"button",24),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(1),v.ALo(2,"translate"),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let jt=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.data=Et,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,qe,1,0,"mat-spinner",1),v.YNc(5,Re,12,8,"div",2),v.TgZ(6,"div",3)(7,"button",4),v.NdJ("click",function(){return Et.onCancel()}),v._uU(8),v.ALo(9,"translate"),v.qZA(),v.YNc(10,st,3,4,"button",5),v.YNc(11,Pt,3,4,"button",6),v.qZA()()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.Oqu(v.lcZ(3,9,Et.data.title)),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(3),v.hij(" ",v.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),v.xp6(2),v.Q6J("ngIf","remove"===Et.data.type),v.xp6(1),v.Q6J("ngIf","confirmation"===Et.data.type))},dependencies:[e.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,w.uh,w.xY,w.H8,g.lW,S.Ou,ft.w,c.X$]}),et})();var cn=h(57851);let Xt=(()=>{class et{transform(Ke){const Et=Ke.split(":");return Et[Et.length-1]}}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275pipe=v.Yjl({name:"parseGroupName",type:et,pure:!0}),et})();function sn(et,Ft){1&et&&v._UZ(0,"mat-spinner",7)}function mn(et,Ft){1&et&&(v.TgZ(0,"perun-web-apps-alert"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function Nt(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function Rt(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const Ct=function(et){return{"min-width":et}};function Ut(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-tree-node",16)(1,"li",17)(2,"div",18),v.NdJ("click",function(){const hn=v.CHM(Ke).$implicit,wn=v.oxw(3);return v.KtG(wn.navigate(hn.id,hn.include))}),v._UZ(3,"button",19),v.TgZ(4,"div",20)(5,"span"),v._uU(6),v.ALo(7,"parseGroupName"),v.qZA(),v.YNc(8,Nt,3,3,"span",21),v.YNc(9,Rt,3,3,"span",21),v.qZA(),v.TgZ(10,"span",22),v._uU(11),v.qZA()()()()}if(2&et){const Ke=Ft.$implicit,Et=v.oxw(3);v.xp6(2),v.ekj("cursor-pointer",Ke.direct||Ke.include)("act-disabled",!Ke.direct&&!Ke.include),v.xp6(2),v.Q6J("ngStyle",v.VKq(11,Ct,Et.getMinWidth(Ke.level))),v.xp6(2),v.Oqu(v.lcZ(7,9,Ke.name)),v.xp6(2),v.Q6J("ngIf",Ke.direct),v.xp6(1),v.Q6J("ngIf",Ke.include),v.xp6(2),v.Oqu(Ke.description)}}function Qt(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function An(et,Ft){1&et&&(v.TgZ(0,"span",23),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Dt(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-nested-tree-node")(1,"li")(2,"div",17)(3,"button",24)(4,"mat-icon",25),v._uU(5),v.qZA()(),v.TgZ(6,"div",18),v.NdJ("click",function(){const hn=v.CHM(Ke).$implicit,wn=v.oxw(3);return v.KtG(wn.navigate(hn.id,hn.include))}),v.TgZ(7,"div",20)(8,"span"),v._uU(9),v.ALo(10,"parseGroupName"),v.qZA(),v.YNc(11,Qt,3,3,"span",21),v.YNc(12,An,3,3,"span",21),v.qZA(),v.TgZ(13,"span",22),v._uU(14),v.qZA()()(),v.TgZ(15,"ul"),v.GkF(16,26),v.qZA()()()}if(2&et){const Ke=Ft.$implicit,Et=v.oxw(3);v.xp6(3),v.uIk("aria-label","Toggle "+Ke.name),v.xp6(2),v.hij(" ",Et.treeControl.isExpanded(Ke)?"expand_more":"chevron_right"," "),v.xp6(1),v.ekj("cursor-pointer",Ke.direct||Ke.include)("act-disabled",!Ke.direct&&!Ke.include),v.xp6(1),v.Q6J("ngStyle",v.VKq(15,Ct,Et.getMinWidth(Ke.level))),v.xp6(2),v.Oqu(v.lcZ(10,13,Ke.name)),v.xp6(2),v.Q6J("ngIf",Ke.direct),v.xp6(1),v.Q6J("ngIf",Ke.include),v.xp6(2),v.Oqu(Ke.description),v.xp6(1),v.ekj("example-tree-invisible",!Et.treeControl.isExpanded(Ke))}}function $t(et,Ft){if(1&et&&(v.TgZ(0,"mat-tree",13),v.YNc(1,Ut,12,13,"mat-tree-node",14),v.YNc(2,Dt,17,17,"mat-nested-tree-node",15),v.qZA()),2&et){const Ke=v.oxw(2);v.Q6J("dataSource",Ke.dataSource)("treeControl",Ke.treeControl),v.xp6(2),v.Q6J("matTreeNodeDefWhen",Ke.hasChild)}}function xt(et,Ft){if(1&et&&(v.TgZ(0,"div",8)(1,"p"),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-form-field",9),v._UZ(5,"input",10),v.ALo(6,"translate"),v.qZA(),v.YNc(7,mn,3,3,"perun-web-apps-alert",11),v.YNc(8,$t,3,3,"mat-tree",12),v.qZA()),2&et){const Ke=v.oxw();v.xp6(2),v.Oqu(v.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),v.xp6(3),v.s9C("placeholder",v.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),v.Q6J("formControl",Ke.formControl),v.xp6(2),v.Q6J("ngIf",!Ke.dataSource.data.length),v.xp6(1),v.Q6J("ngIf",Ke.dataSource.data.length)}}const rt=function(et){return{name:et}};let vt=(()=>{class et{constructor(Ke,Et,Wt){this.dialogRef=Ke,this.data=Et,this.groupsManagerService=Wt,this.treeControl=new cn.VY(hn=>hn.children),this.dataSource=new ee.WX,this.formControl=new T.p4(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(hn,wn)=>!!wn.children&&wn.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(Ke=>{this.paths=Ke,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(Ke=>{const Et=Ke.trim().toLowerCase(),Wt=this.paths.filter(hn=>hn.filter(wn=>wn.name.includes(Et)).length);this.createGroupTree(Wt),this.dataSource.data=this.groupTree}),this.userName=(0,Je.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(Ke,Et=!1){window.open(`/organizations/${this.data.member.voId}/groups/${Ke}${Et?"/settings/relations":""}`,"_blank")}getMinWidth(Ke){return String(400-40*Ke)+"px"}recursiveSearch(Ke,Et,Wt){for(const wn of Ke)if(wn.name===Et[Wt].name)return Et.length===Wt+1?(wn.direct=!0,Ke):(wn.children=Et[++Wt].name.includes(Et[Wt-1].name)?this.recursiveSearch(wn.children,Et,Wt):[{name:Et[Wt].name,id:Et[Wt-1].id,description:Et[Wt].description,direct:!1,include:!0,level:Wt,children:[]}].concat(wn.children),Ke);return Ke.push({name:Et[Wt].name,id:Et[Wt].id,description:Et[Wt].description,direct:!1,include:!1,level:Wt,children:[]}),this.recursiveSearch(Ke,Et,Wt)}createGroupTree(Ke){this.groupTree=[],Ke.forEach(Et=>{this.groupTree=this.recursiveSearch(this.groupTree,Et,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.ff))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,sn,1,0,"mat-spinner",2),v.YNc(5,xt,9,9,"div",3),v.TgZ(6,"div",4)(7,"div",5)(8,"button",6),v.NdJ("click",function(){return Et.onCancel()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()()()),2&Ke&&(v.xp6(2),v.hij(" ",v.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",v.VKq(9,rt,Et.userName))," "),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},dependencies:[e.O5,e.PC,w.uh,w.xY,w.H8,g.lW,C.KE,T.Fj,T.JJ,E.Nt,S.Ou,T.oH,z.Hw,ft.w,ee.GZ,ee.fQ,ee.eu,ee.gi,ee.uo,ee.Ar,c.X$,Xt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),et})(),ot=(()=>{class et{constructor(Ke,Et){this.dialogRef=Ke,this.router=Et}onClose(){this.router.navigate([]),this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(oe.F0))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),v._uU(5),v.ALo(6,"translate"),v.qZA()(),v.TgZ(7,"div",3)(8,"button",4),v.NdJ("click",function(){return Et.onClose()}),v._uU(9),v.ALo(10,"translate"),v.qZA()()),2&Ke&&(v.xp6(1),v.hij(" ",v.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),v.xp6(4),v.Oqu(v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),v.xp6(4),v.hij(" ",v.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[w.uh,w.xY,w.H8,g.lW,ft.w,c.X$]}),et})();var $e=h(62383);function At(et,Ft){1&et&&(v.TgZ(0,"mat-radio-button",16),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function Z(et,Ft){1&et&&(v.TgZ(0,"mat-radio-button",17),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function ke(et,Ft){1&et&&(v.TgZ(0,"perun-web-apps-alert",18),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let mt=(()=>{class et{constructor(Ke){this.dialogRef=Ke,this.canExtendMembership=!1,this.expirationChanged=new v.vpe,this.statusChange=new v.vpe,this.expirationControl=new T.p4(null)}ngOnInit(){const Ke=new Date;this.currentDate=(0,e.p6)(new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(Ke){return(0,e.p6)(Ke,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(Ke,Et){if(1&Ke){const Wt=v.EpF();v.TgZ(0,"div",0)(1,"div",1)(2,"p")(3,"strong"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._uU(6),v.ALo(7,"parseDate"),v.qZA(),v.TgZ(8,"p")(9,"strong"),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.ALo(13,"parseDate"),v.qZA(),v.TgZ(14,"mat-radio-group",2),v.NdJ("ngModelChange",function(wn){return Et.newExpiration=wn}),v.TgZ(15,"mat-radio-button",3)(16,"mat-form-field",4),v.NdJ("click",function(){v.CHM(Wt);const wn=v.MAs(23);return v.KtG(wn.open())}),v.TgZ(17,"mat-label"),v._uU(18),v.ALo(19,"translate"),v.qZA(),v.TgZ(20,"input",5),v.NdJ("dateChange",function(){return Et.setExpiration()}),v.qZA(),v._UZ(21,"mat-datepicker-toggle",6)(22,"mat-datepicker",7,8),v.qZA()(),v.YNc(24,At,3,3,"mat-radio-button",9),v.YNc(25,Z,3,3,"mat-radio-button",10),v.TgZ(26,"mat-radio-button",11),v._uU(27),v.ALo(28,"translate"),v.qZA()(),v.YNc(29,ke,3,3,"perun-web-apps-alert",12),v.qZA(),v.TgZ(30,"div",13)(31,"button",14),v.NdJ("click",function(){return Et.onCancel()}),v._uU(32),v.ALo(33,"translate"),v.qZA(),v.TgZ(34,"button",15),v.NdJ("click",function(){return Et.onChange()}),v._uU(35),v.ALo(36,"translate"),v.qZA()()()}if(2&Ke){const Wt=v.MAs(23);v.xp6(4),v.Oqu(v.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),v.xp6(2),v.hij(" ",v.lcZ(7,23,Et.currentExpiration)," "),v.xp6(4),v.Oqu(v.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),v.xp6(2),v.hij(" ",Et.newExpiration?v.lcZ(13,27,Et.newExpiration):"never"," "),v.xp6(2),v.Q6J("ngModel",Et.newExpiration),v.xp6(1),v.s9C("value",Et.expirationControl.value),v.xp6(3),v.Oqu(v.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),v.xp6(2),v.Q6J("min",Et.minDate)("max",Et.maxDate)("formControl",Et.expirationControl)("matDatepicker",Wt),v.xp6(1),v.Q6J("for",Wt)("disabled",!1),v.xp6(1),v.Q6J("disabled",!1),v.xp6(2),v.Q6J("ngIf",Et.canExtendMembership&&"vo"===Et.mode),v.xp6(1),v.Q6J("ngIf",Et.canExtendMembership&&"group"===Et.mode),v.xp6(2),v.hij(" ",v.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),v.xp6(2),v.Q6J("ngIf","EXPIRED"===Et.status&&("never"===Et.newExpiration||Et.parseDate(Et.expirationControl.value)>Et.currentDate)),v.xp6(3),v.hij(" ",v.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Et.expirationControl.invalid),v.xp6(1),v.hij(" ",v.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},dependencies:[e.O5,w.xY,w.H8,g.lW,C.KE,C.hX,C.R9,T.Fj,T.JJ,T.On,E.Nt,U.VQ,U.U0,_.Mq,_.hl,_.nW,T.oH,ft.w,c.X$,$e.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),et})();function St(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function tn(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("statusChange",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.onExpirationChanged(Wt))}),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("minDate",Ke.minDate)("maxDate",Ke.maxDate)("currentExpiration",Ke.currentExpiration)("newExpiration",Ke.newExpiration)("canExtendMembership",Ke.canExtendMembership)("mode","group")("status",Ke.status)}}let En=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=Ke,this.data=Et,this.attributesManagerService=Wt,this.memberManager=hn,this.groupManager=wn,this.translate=zn,this.notificator=$n,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,zn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Ei=>this.successMessage=Ei)}ngOnInit(){this.status=this.data.status,this.loading=!0;const Ke=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()):this.minDate=new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Ke,"yyyy-MM-dd","en"),this.maxDate=Ke):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,_t.r.GROUP_DEF_EXPIRATION_RULES).subscribe(Et=>{null!==Et.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Ke){this.loading=!0,"groupRules"===Ke?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===Ke?null:Ke,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(Et=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Et})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.H8),v.Y36(B.uq),v.Y36(B.ff),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,St,1,0,"mat-spinner",2),v.YNc(5,tn,1,7,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&Ke&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,mt,c.X$]}),et})();var jn=h(13469);function Ln(et,Ft){1&et&&(v.TgZ(0,"mat-error"),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.Oqu(v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function Kn(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),v._uU(4),v.ALo(5,"translate"),v.qZA(),v._UZ(6,"input",7),v.TgZ(7,"mat-icon",8),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.showOldPassword=!Wt.showOldPassword)}),v._uU(8),v.qZA(),v.YNc(9,Ln,3,3,"mat-error",9),v.qZA(),v._UZ(10,"perun-web-apps-password-form",10),v.qZA()()}if(2&et){const Ke=v.oxw();v.Q6J("formGroup",Ke.formGroup),v.xp6(4),v.Oqu(v.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),v.xp6(2),v.Q6J("type",Ke.showOldPassword?"text":"password"),v.xp6(2),v.hij(" ",Ke.showOldPassword?"visibility_off":"visibility"," "),v.xp6(1),v.Q6J("ngIf",Ke.oldPwd.hasError("required")),v.xp6(1),v.Q6J("formGroup",Ke.formGroup)("namespace",Ke.data.namespace)}}function li(et,Ft){1&et&&v._UZ(0,"mat-spinner",11)}function ci(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div",12)(1,"div",13)(2,"button",14),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.close())}),v._uU(3),v.ALo(4,"translate"),v.qZA(),v.TgZ(5,"button",15),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.changePassword())}),v._uU(6),v.ALo(7,"translate"),v.qZA()()()}if(2&et){const Ke=v.oxw();v.xp6(3),v.hij(" ",v.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ke.formGroup.invalid||Ke.formGroup.pending),v.xp6(1),v.hij(" ",v.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Wn=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=Ke,this.data=Et,this._formBuilder=Wt,this.usersManagerService=hn,this.apiRequestConfiguration=wn,this.notificator=zn,this.translate=$n,this.showOldPassword=!1,$n.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(Ei=>this.successMessage=Ei)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",T.kI.required],passwordCtrl:["",T.kI.required,[(0,de.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Je.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(T.QS),v.Y36(B.Fv),v.Y36(W.F5),v.Y36(W.V6),v.Y36(c.sK))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"h1",0),v._uU(1),v.ALo(2,"translate"),v.qZA(),v.TgZ(3,"div",1),v.YNc(4,Kn,11,9,"form",2),v.YNc(5,li,1,0,"mat-spinner",3),v.qZA(),v.YNc(6,ci,8,7,"div",4)),2&Ke&&(v.xp6(1),v.Oqu(v.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),v.xp6(3),v.Q6J("ngIf",!Et.loading),v.xp6(1),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,C.TO,C.KE,C.hX,C.R9,T._Y,T.Fj,T.JJ,T.JL,T.Q7,E.Nt,S.Ou,T.sg,T.u,z.Hw,jn.G,c.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),et})();function Hn(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function Ji(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("statusChange",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.changeStatus=!0)})("expirationChanged",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.onExpirationChanged(Wt))}),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("minDate",Ke.minDate)("maxDate",Ke.maxDate)("currentExpiration",Ke.currentExpiration)("newExpiration",Ke.newExpiration)("canExtendMembership",Ke.canExtendMembership)("mode","vo")("status",Ke.status)}}let Gn=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn){this.dialogRef=Ke,this.data=Et,this.attributesManagerService=Wt,this.memberManager=hn,this.translate=wn,this.notificator=zn,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,wn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe($n=>this.successMessage=$n)}ngOnInit(){this.status=this.data.status,this.loading=!0;const Ke=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()):this.minDate=new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=this.expirationAttr?.value??"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(Ke,"yyyy-MM-dd","en"),this.maxDate=Ke):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,_t.r.VO_DEF_EXPIRATION_RULES).subscribe(Et=>{null!==Et.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(Wt=>{this.canExtendMembership=!!Wt,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(Ke){this.loading=!0,"voRules"===Ke?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===Ke?null:Ke,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Et=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Wt=>{this.notificator.showSuccess(Wt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Et})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.H8),v.Y36(B.uq),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Hn,1,0,"mat-spinner",2),v.YNc(5,Ji,1,7,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&Ke&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,mt,c.X$]}),et})();function Yn(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function Vi(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"perun-web-apps-change-expiration-dialog",5),v.NdJ("expirationChanged",function(Wt){v.CHM(Ke);const hn=v.oxw();return v.KtG(hn.onExpirationChanged(Wt))}),v.qZA()}if(2&et){const Ke=v.oxw();v.Q6J("minDate",Ke.minDate)("currentExpiration",Ke.currentExpiration)("newExpiration",Ke.newExpiration)("mode","sponsor")}}let Fi=(()=>{class et{constructor(Ke,Et,Wt,hn,wn,zn,$n){this.dialogRef=Ke,this.data=Et,this.attributesManagerService=Wt,this.memberManager=hn,this.groupManager=wn,this.translate=zn,this.notificator=$n,this.loading=!1,zn.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Ei=>this.successMessage=Ei)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const Ke=new Date;this.minDate=new Date(Ke.getFullYear(),Ke.getMonth(),Ke.getDate()),this.loading=!1}onExpirationChanged(Ke){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===Ke?null:Ke).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.H8),v.Y36(B.uq),v.Y36(B.ff),v.Y36(c.sK),v.Y36(W.V6))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Yn,1,0,"mat-spinner",2),v.YNc(5,Vi,1,4,"perun-web-apps-change-expiration-dialog",3),v.qZA()),2&Ke&&(v.xp6(2),v.Oqu(v.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,S.Ou,mt,c.X$]}),et})();function Hi(et,Ft){1&et&&v._UZ(0,"mat-spinner",4)}function _i(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function gi(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function Pr(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"mat-radio-group",12),v.NdJ("ngModelChange",function(Wt){v.CHM(Ke);const hn=v.oxw(2);return v.KtG(hn.asyncValidation=Wt)}),v.TgZ(1,"span",13),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"mat-radio-button",14),v._uU(5),v.ALo(6,"translate"),v.qZA(),v.TgZ(7,"mat-radio-button",14),v._uU(8),v.ALo(9,"translate"),v.qZA()()}if(2&et){const Ke=v.oxw(2);v.Q6J("ngModel",Ke.asyncValidation),v.xp6(2),v.hij(" ",v.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),v.xp6(2),v.Q6J("value",!1),v.xp6(1),v.hij(" ",v.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),v.xp6(2),v.Q6J("value",!0),v.xp6(1),v.hij(" ",v.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ir(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function fr(et,Ft){1&et&&(v.TgZ(0,"span",11),v._uU(1),v.ALo(2,"translate"),v.qZA()),2&et&&(v.xp6(1),v.hij(" ",v.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function rr(et,Ft){if(1&et&&(v.TgZ(0,"div",5)(1,"p",6),v._uU(2),v.TgZ(3,"span",7),v._uU(4),v.qZA(),v._uU(5),v.TgZ(6,"span",7),v._uU(7),v.qZA()(),v.TgZ(8,"p")(9,"strong",8),v._uU(10),v.ALo(11,"translate"),v.qZA(),v._uU(12),v.qZA(),v.TgZ(13,"p")(14,"strong",8),v._uU(15),v.ALo(16,"translate"),v.qZA(),v._uU(17),v.qZA(),v.YNc(18,_i,3,3,"span",9),v.YNc(19,gi,3,3,"span",9),v.YNc(20,Pr,10,12,"mat-radio-group",10),v.YNc(21,ir,3,3,"span",9),v.YNc(22,fr,3,3,"span",9),v.qZA()),2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",Ke.group.name," "),v.xp6(2),v.hij("#",Ke.group.id,""),v.xp6(1),v.hij(" - ",Ke.resource.name," "),v.xp6(2),v.hij("#",Ke.resource.id,""),v.xp6(3),v.hij(" ",v.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),v.xp6(2),v.hij(" ",Ke.status," "),v.xp6(3),v.hij(" ",v.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),v.xp6(2),v.hij(" ",Ke.getReversedStatus()," "),v.xp6(1),v.Q6J("ngIf","INACTIVE"===Ke.status||"FAILED"===Ke.status),v.xp6(1),v.Q6J("ngIf","ACTIVE"===Ke.status),v.xp6(1),v.Q6J("ngIf","INACTIVE"===Ke.status||"FAILED"===Ke.status),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===Ke.status||"FAILED"===Ke.status)&&!1===Ke.asyncValidation),v.xp6(1),v.Q6J("ngIf",("INACTIVE"===Ke.status||"FAILED"===Ke.status)&&!0===Ke.asyncValidation)}}function wt(et,Ft){if(1&et){const Ke=v.EpF();v.TgZ(0,"div",15)(1,"button",16),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onCancel())}),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"button",17),v.NdJ("click",function(){v.CHM(Ke);const Wt=v.oxw();return v.KtG(Wt.onSubmit())}),v._uU(5),v.ALo(6,"translate"),v.qZA()()}if(2&et){const Ke=v.oxw();v.xp6(2),v.hij(" ",v.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),v.xp6(2),v.Q6J("disabled",Ke.loading),v.xp6(1),v.hij(" ",v.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===Ke.status?"DEACTIVATE":"ACTIVATE"))," ")}}let an=(()=>{class et{constructor(Ke,Et,Wt,hn){this.dialogRef=Ke,this.data=Et,this.resourceService=Wt,this.groupService=hn,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(Ke=>{this.resource=Ke,this.groupService.getGroupById(this.data.groupId).subscribe(Et=>{this.group=Et,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(B.xk),v.Y36(B.ff))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"h1",0),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.YNc(4,Hi,1,0,"mat-spinner",1),v.YNc(5,rr,23,17,"div",2),v.YNc(6,wt,7,7,"div",3),v.qZA()),2&Ke&&(v.Tol(Et.theme),v.xp6(2),v.hij(" ",v.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),v.xp6(2),v.Q6J("ngIf",Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading),v.xp6(1),v.Q6J("ngIf",!Et.loading))},dependencies:[e.O5,w.uh,w.xY,w.H8,g.lW,T.JJ,T.On,S.Ou,U.VQ,U.U0,c.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),et})();var nt=h(90995);let Bt=(()=>{class et{constructor(Ke,Et,Wt,hn,wn){this.dialogRef=Ke,this.data=Et,this.notificator=Wt,this.usersService=hn,this.translate=wn,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new A.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(Ke){this.force=Ke.force,Ke.deleted?this.anonymizeUser():this.onCancel()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so),v.Y36(w.WI),v.Y36(W.V6),v.Y36(B.Fv),v.Y36(c.sK))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div")(1,"perun-web-apps-delete-entity-dialog",0),v.NdJ("deleted",function(hn){return Et.onSubmit(hn)}),v.qZA()()),2&Ke&&(v.Tol(Et.theme),v.xp6(1),v.Q6J("entityNames",Et.dataSource)("entityType","user")("relations",Et.relations)("loading",Et.loading)("anonymize",!0))},dependencies:[nt.e]}),et})(),Gt=(()=>{class et{constructor(Ke){this.dialogRef=Ke}close(){this.dialogRef.close()}}return et.\u0275fac=function(Ke){return new(Ke||et)(v.Y36(w.so))},et.\u0275cmp=v.Xpm({type:et,selectors:[["perun-web-apps-export-data-dialog"]],decls:6,vars:4,consts:[[1,"loading-container"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"mr-auto","ml-auto",3,"diameter"]],template:function(Ke,Et){1&Ke&&(v.TgZ(0,"div",0)(1,"h1",1),v._uU(2),v.ALo(3,"translate"),v.qZA(),v.TgZ(4,"div",2),v._UZ(5,"mat-spinner",3),v.qZA()()),2&Ke&&(v.xp6(2),v.hij(" ",v.lcZ(3,2,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_LOADING")," "),v.xp6(3),v.Q6J("diameter",50))},dependencies:[w.uh,w.xY,S.Ou,c.X$],styles:[".loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}"]}),et})()},90995:(Ye,pe,h)=>{"use strict";h.d(pe,{e:()=>xe});var e=h(94650),c=h(24006),A=h(30671),w=h(36895),g=h(65412),C=h(4859),T=h(59549),E=h(284),S=h(51572),U=h(97392),_=h(98380),V=h(96338),z=h(89383),Q=h(31359);let te=(()=>{class j{constructor(G){this.translate=G}transform(G){return this.translate.instant(G?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return j.\u0275fac=function(G){return new(G||j)(e.Y36(z.sK,16))},j.\u0275pipe=e.Yjl({name:"deleteDialogType",type:j,pure:!0}),j})();function oe(j,R){1&j&&e._UZ(0,"mat-spinner",2)}const ee=function(j){return{action:j}};function le(j,R){if(1&j&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,ee,e.lcZ(3,9,G.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",G.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",G.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function de(j,R){if(1&j&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,ee,e.lcZ(3,5,G.anonymize)))," ",G.entityType," ? ")}}function Te(j,R){1&j&&e._UZ(0,"th",18)}function v(j,R){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const G=R.$implicit,se=e.oxw(2);e.xp6(1),e.hij(" ",se.anonymize?e.lcZ(2,1,G):G.name," ")}}function L(j,R){1&j&&e._UZ(0,"tr",20)}function B(j,R){1&j&&e._UZ(0,"tr",21)}function W(j,R){if(1&j){const G=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){e.CHM(G);const $=e.oxw(2);return e.KtG($.force=!0)}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&j){const G=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,ee,e.lcZ(5,5,e.lcZ(6,7,G.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const q=function(){return["name"]};function ue(j,R){if(1&j){const G=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,le,10,19,"div",5),e.YNc(8,de,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Te,1,0,"th",8),e.YNc(12,v,3,3,"td",9),e.BQk(),e.YNc(13,L,1,0,"tr",10),e.YNc(14,B,1,0,"tr",11),e.qZA()(),e.TgZ(15,"div",12)(16,"button",13),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onCancel())}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onDelete())}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,W,8,13,"button",15),e.qZA()()}if(2&j){const G=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,ee,e.lcZ(4,13,e.lcZ(5,15,G.anonymize))))," ",G.entityType," "),e.xp6(5),e.Q6J("ngIf",!G.disableForce),e.xp6(1),e.Q6J("ngIf",G.disableForce),e.xp6(1),e.Q6J("dataSource",G.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,q)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,ee,e.lcZ(22,22,e.lcZ(23,24,G.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!G.disableForce)}}function ye(j,R){if(1&j&&(e.TgZ(0,"mat-list-item")(1,"span")(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA()()),2&j){const G=R.$implicit;e.xp6(4),e.hij(" ",G," ")}}function Me(j,R){if(1&j&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&j){const G=e.oxw(2);e.xp6(1),e.hij(" ",G.anotherMessage," ")}}function we(j,R){1&j&&e._UZ(0,"th",18)}function Ge(j,R){if(1&j&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&j){const G=R.$implicit,se=e.oxw(2);e.xp6(1),e.hij(" ",se.anonymize?e.lcZ(2,1,G):G.name," ")}}function ce(j,R){1&j&&e._UZ(0,"tr",20)}function Ze(j,R){1&j&&e._UZ(0,"tr",21)}function he(j,R){if(1&j){const G=e.EpF();e.TgZ(0,"div")(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4)(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,ye,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,Me,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,we,1,0,"th",8),e.YNc(21,Ge,3,3,"td",9),e.BQk(),e.YNc(22,ce,1,0,"tr",10),e.YNc(23,Ze,1,0,"tr",11),e.qZA()(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA()(),e.TgZ(29,"div",12)(30,"button",13),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onCancel())}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){e.CHM(G);const $=e.oxw();return e.KtG($.onDelete())}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA()()()}if(2&j){const G=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,ee,e.lcZ(4,20,e.lcZ(5,22,G.anonymize))))," ",G.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",G.relations),e.xp6(1),e.Q6J("ngIf",G.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,ee,e.lcZ(17,31,G.anonymize)))," ",G.entityType," ? "),e.xp6(3),e.Q6J("dataSource",G.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,q)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,q)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,ee,e.lcZ(27,36,e.lcZ(28,38,G.anonymize))))),e.Q6J("formControl",G.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",G.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,ee,e.lcZ(38,45,e.lcZ(39,47,G.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let xe=(()=>{class j{constructor(){this.entityNames=new A.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new c.p4("",[c.kI.required,c.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return j.\u0275fac=function(G){return new(G||j)},j.\u0275cmp=e.Xpm({type:j,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(G,se){1&G&&(e.YNc(0,oe,1,0,"mat-spinner",0),e.YNc(1,ue,25,32,"div",1),e.YNc(2,he,41,61,"div",1)),2&G&&(e.Q6J("ngIf",se.loading),e.xp6(1),e.Q6J("ngIf",!se.force&&!se.loading),e.xp6(1),e.Q6J("ngIf",se.force&&!se.loading))},dependencies:[w.sg,w.O5,A.BZ,A.fO,A.as,A.w1,A.Dz,A.nj,A.ge,A.ev,A.XQ,A.Gk,g.uh,g.xY,g.H8,C.lW,T.KE,c.Fj,c.JJ,E.Nt,S.Ou,c.oH,U.Hw,_.w,V.i$,V.Tg,w.gd,w.rS,z.X$,Q.d,te],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),j})()},50301:(Ye,pe,h)=>{"use strict";h.d(pe,{hT:()=>c,Kd:()=>w,YH:()=>g});var e=h(94650);let c=(()=>{class C{constructor(E){this.elementRef=E}ngOnInit(){this.elementRef.nativeElement.focus()}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(e.SBq))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsAutoFocus",""]]}),C})();var A=h(32080);let w=(()=>{class C{constructor(E){this.router=E}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return C.\u0275fac=function(E){return new(E||C)(e.Y36(A.xw))},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(E,S){1&E&&e.NdJ("click",function(){return S.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),C})(),g=(()=>{class C{onClick(E){if(1===E.button&&null!=this.perunWebAppsMiddleClickRouterLink){const S=this.perunWebAppsMiddleClickRouterLink.join("/"),U=location.search;window.open(S+U)}}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275dir=e.lG2({type:C,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(E,S){1&E&&e.NdJ("mouseup",function(_){return S.onClick(_)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),C})()},45323:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>e});var e=(()=>{return(c=e||(e={})).PERUNADMIN="PERUNADMIN",c.PERUNOBSERVER="PERUNOBSERVER",c.VOADMIN="VOADMIN",c.GROUPADMIN="GROUPADMIN",c.GROUPOBSERVER="GROUPOBSERVER",c.SELF="SELF",c.FACILITYADMIN="FACILITYADMIN",c.FACILITIYOBSERVER="FACILITYOBSERVER",c.RESOURCEADMIN="RESOURCEADMIN",c.RESOURCESELFSERVICE="RESOURCESELFSERVICE",c.REGISTRAR="REGISTRAR",c.ENGINE="ENGINE",c.RPC="RPC",c.NOTIFICATIONS="NOTIFICATIONS",c.SERVICEUSER="SERVICEUSER",c.SPONSOR="SPONSOR",c.VOOBSERVER="VOOBSERVER",c.TOPGROUPCREATOR="TOPGROUPCREATOR",c.SECURITYADMIN="SECURITYADMIN",c.CABINETADMIN="CABINETADMIN",c.UNKNOWNROLENAME="UNKNOWNROLENAME",c.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",c.UNKNOWN="UNKNOWN",c.MEMBERSHIP="MEMBERSHIP",e;var c})()},28499:(Ye,pe,h)=>{"use strict";h.d(pe,{E3:()=>_,yT:()=>V.y});var e=h(36895),c=h(59549),A=h(10266),w=h(24006),g=h(284),C=h(89383),T=h(51572),E=h(97392),S=h(63189),U=h(94650);let _=(()=>{class Q{}return Q.\u0275fac=function(oe){return new(oe||Q)},Q.\u0275mod=U.oAB({type:Q}),Q.\u0275inj=U.cJS({imports:[e.ez,c.lN,A.AV,w.UX,g.c,C.aw,T.Cq,E.Ps,S.r]}),Q})();var V=h(47549);h(13469)},13469:(Ye,pe,h)=>{"use strict";h.d(pe,{G:()=>Te});var e=h(47549),c=h(32080),A=h(32105),w=h(94650),g=h(89383),C=h(36895),T=h(59549),E=h(10266),S=h(24006),U=h(284),_=h(51572),V=h(97392),z=h(98380);function Q(v,L){1&v&&w._UZ(0,"mat-spinner",12),2&v&&w.Q6J("diameter",18)}function te(v,L){if(1&v&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&v){const B=w.oxw();w.Q6J("matTooltip",B.getErrorTooltip())("matTooltipDisabled",!B.formGroup.get("passwordCtrl").hasError("backendError"))}}function oe(v,L){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function ee(v,L){if(1&v&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&v){const B=w.oxw();w.Q6J("matTooltip",B.getErrorTooltip()),w.xp6(1),w.Oqu(B.getErrorTooltip())}}function le(v,L){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function de(v,L){1&v&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&v&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Te=(()=>{class v{constructor(B,W,q){this.translator=B,this.usersManagerService=W,this.store=q,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(B=>{const W=B.userAttributes.find(q=>"preferredLanguage"===q.friendlyName);this.language=W?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let B=this.formGroup.get("passwordCtrl").getError("backendError");return B&&(B=B.replace(":null","")),B}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(B=>B.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(B=>"default"===B.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return v.\u0275fac=function(B){return new(B||v)(w.Y36(g.sK),w.Y36(A.Fv),w.Y36(c.d6))},v.\u0275cmp=w.Xpm({type:v,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(B,W){1&B&&(w.TgZ(0,"div",0)(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,Q,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return W.showNewPassword=!W.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,te,2,2,"mat-icon",5),w.YNc(8,oe,3,3,"mat-error",6),w.YNc(9,ee,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8)(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return W.showPasswordConfirm=!W.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,le,3,3,"mat-error",6),w.YNc(18,de,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA()()),2&B&&(w.Q6J("formGroup",W.formGroup),w.xp6(1),w.Q6J("matTooltip",W.getPasswordDisabledTooltip())("matTooltipDisabled",W.formGroup.get("passwordCtrl").enabled||W.tooltipPwdDisabledForNamespace),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",W.showNewPassword?"text":"password")("required",W.passwordRequired)("errorStateMatcher",W.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",W.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").dirty&&null!==W.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",W.showPasswordConfirm?"text":"password")("required",W.passwordRequired),w.xp6(2),w.hij(" ",W.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",W.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",W.passwordRequirement,w.oJD))},dependencies:[C.O5,T.TO,T.KE,T.hX,T.R9,E.gM,S.Fj,S.JJ,S.JL,S.Q7,S.sg,S.u,U.Nt,_.Ou,V.Hw,z.w,g.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),v})()},47549:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>C,y:()=>T});var e=h(82805),c=h(39646),A=h(63900),w=h(54004),g=h(70262);class C{isErrorState(S){return!(!S?.invalid||!S?.dirty)}}const T=(E,S,U,_=500)=>V=>(0,e.H)(_).pipe((0,A.w)(()=>(U.dontHandleErrorForNext(),E&&"No namespace"!==E?S.checkPasswordStrength({password:V.value,namespace:E}):(0,c.of)(null))),(0,w.U)(()=>null),(0,g.K)(z=>{const Q=z.error,te={backendError:Q.message.substring(Q.message.indexOf(":")+1)};return(0,c.of)(te)}))},32105:(Ye,pe,h)=>{"use strict";h.d(pe,{au:()=>Ue,sY:()=>he,H8:()=>T,jw:()=>E,Ct:()=>S,VK:()=>C,WY:()=>_,KG:()=>z,IQ:()=>Q,ff:()=>oe,uq:()=>le,aC:()=>de,Hr:()=>Te,tk:()=>v,xk:()=>L,t7:()=>B,KK:()=>W,Ob:()=>q,Dy:()=>re,Fv:()=>ue,FW:()=>ye,YF:()=>Me});var e=h(80529);class c{encodeKey(H){return encodeURIComponent(H)}encodeValue(H){return encodeURIComponent(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}var A=h(94650);const w=new A.OlP("basePath");class C{constructor(H={}){this.apiKeys=H.apiKeys,this.username=H.username,this.password=H.password,this.accessToken=H.accessToken,this.basePath=H.basePath,this.withCredentials=H.withCredentials,this.encoder=H.encoder,this.credentials=H.credentials?H.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(H){if(0===H.length)return;const i=H.find(o=>this.isJsonMime(o));return void 0===i?H[0]:i}selectHeaderAccept(H){if(0===H.length)return;const i=H.find(o=>this.isJsonMime(o));return void 0===i?H[0]:i}isJsonMime(H){const i=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==H&&(i.test(H)||"application/json-patch+json"===H.toLowerCase())}lookupCredential(H){const i=this.credentials[H];return"function"==typeof i?i():i}}let T=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}convertAttributeToNonunique(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}convertAttributeToUnique(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attribute"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteAttributeDefinitions(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"attributes[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllAttributeDefinitions(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAttribute(i,o,f,l,a,n,t,r,s,d,p,M="body",_e=!1,bt){let Vt=new e.LE({encoder:this.encoder});null!=i&&(Vt=this.addToHttpParams(Vt,i,"attributeName")),null!=o&&(Vt=this.addToHttpParams(Vt,o,"attributeId")),null!=f&&(Vt=this.addToHttpParams(Vt,f,"facility")),null!=l&&(Vt=this.addToHttpParams(Vt,l,"user")),null!=a&&(Vt=this.addToHttpParams(Vt,a,"vo")),null!=n&&(Vt=this.addToHttpParams(Vt,n,"resource")),null!=t&&(Vt=this.addToHttpParams(Vt,t,"member")),null!=r&&(Vt=this.addToHttpParams(Vt,r,"group")),null!=s&&(Vt=this.addToHttpParams(Vt,s,"host")),null!=d&&(Vt=this.addToHttpParams(Vt,d,"userExtSource")),null!=p&&(Vt=this.addToHttpParams(Vt,p,"key"));let Mt,on=this.defaultHeaders;Mt=this.configuration.lookupCredential("BasicAuth"),Mt&&(on=on.set("Authorization","Basic "+Mt)),Mt=this.configuration.lookupCredential("BearerAuth"),Mt&&(on=on.set("Authorization","Bearer "+Mt));let ft=bt&&bt.httpHeaderAccept;void 0===ft&&(ft=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ft&&(on=on.set("Accept",ft));let je=bt&&bt.context;void 0===je&&(je=new e.qT);let Pe="json";return ft&&(Pe=ft.startsWith("text")?"text":this.configuration.isJsonMime(ft)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:je,params:Vt,responseType:Pe,withCredentials:this.configuration.withCredentials,headers:on,observe:M,reportProgress:_e})}getAttributeDefinitionById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeDefinitionByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeDefinitionsByNamespace(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"namespace"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeModulesDependenciesForAttributeGraphText(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==o)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"format")),null!=o&&(n=this.addToHttpParams(n,o,"attrName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAttributeModulesDependenciesGraphText(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"format"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributePolicyCollections(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributeRights(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAttributesDefinitionWithRights(i,o,f,l,a,n,t,r,s="body",d=!1,p){let M=new e.LE({encoder:this.encoder});null!=i&&(M=this.addToHttpParams(M,i,"member")),null!=o&&(M=this.addToHttpParams(M,o,"user")),null!=f&&(M=this.addToHttpParams(M,f,"vo")),null!=l&&(M=this.addToHttpParams(M,l,"group")),null!=a&&(M=this.addToHttpParams(M,a,"resource")),null!=n&&(M=this.addToHttpParams(M,n,"facility")),null!=t&&(M=this.addToHttpParams(M,t,"host")),null!=r&&(M=this.addToHttpParams(M,r,"userExtSource"));let bt,_e=this.defaultHeaders;bt=this.configuration.lookupCredential("BasicAuth"),bt&&(_e=_e.set("Authorization","Basic "+bt)),bt=this.configuration.lookupCredential("BearerAuth"),bt&&(_e=_e.set("Authorization","Bearer "+bt));let Vt=p&&p.httpHeaderAccept;void 0===Vt&&(Vt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Vt&&(_e=_e.set("Accept",Vt));let on=p&&p.context;void 0===on&&(on=new e.qT);let Mt="json";return Vt&&(Mt=Vt.startsWith("text")?"text":this.configuration.isJsonMime(Vt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:on,params:M,responseType:Mt,withCredentials:this.configuration.withCredentials,headers:_e,observe:s,reportProgress:d})}getEntitylessAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"key")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEntitylessAttributesByKey(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"key"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEntitylessAttributesByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attrName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEntitylessAttributesWithKeys(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attrName")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"keys[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEntitylessKeys(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityResourceUserMemberAttributes(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==f)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),null!=f&&(r=this.addToHttpParams(r,f,"user")),null!=l&&(r=this.addToHttpParams(r,l,"member"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getFacilityUserAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupResourceAttributeById(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==f)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getGroupResourceAttributeByName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==f)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getGroupResourceAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHostAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getLogins(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getLogins.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberAndUserAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"workWithUserAttributes"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAndUserAttributesByNames(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==f)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroupAndUserAttributesByNames(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==f)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getMemberGroupAttributeById(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==f)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberGroupAttributeByName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==f)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberGroupAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroupAttributesByNames(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==f)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAndUserFacilityAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==f)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAndUserFacilityAttributesByNames(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==f)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getMemberResourceAttributeById(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==f)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAttributeByName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==f)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberResourceAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesFacilityService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesFacilityServices(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesGroupResourceService(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==f)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"group"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRequiredAttributesHostService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==o)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"host"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"workWithUserAttributes"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesMemberGroup(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRequiredAttributesMemberGroupResourceService(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==f)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service")),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"group")),null!=l&&(s=this.addToHttpParams(s,l,"member")),null!=a&&(s=this.addToHttpParams(s,a,"workWithUserAttributes"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}getRequiredAttributesMemberGroupService(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==f)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"group")),null!=f&&(r=this.addToHttpParams(r,f,"member")),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getRequiredAttributesMemberResource(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRequiredAttributesMemberResourceService(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==f)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),null!=f&&(r=this.addToHttpParams(r,f,"member")),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getRequiredAttributesResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesResourceService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesResourceServices(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")}),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRequiredAttributesUserFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRequiredAttributesVoService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceGroupAndGroupAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==f)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"resource")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=f&&(t=this.addToHttpParams(t,f,"workWithGroupAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getResourceGroupAndGroupAttributesByNames(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==f)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithGroupAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getResourceGroupAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceGroupMemberAttributesByNames(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==f)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group")),null!=f&&(r=this.addToHttpParams(r,f,"member")),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getUserAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourceAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserFacilityAttributeById(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==f)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"attributeId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getUserFacilityAttributeByName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==f)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"attributeName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getUserFacilityAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributeById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributeByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"attributeName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(i,o,f,l,a,n,t="body",r=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==f)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"facility")),null!=o&&(d=this.addToHttpParams(d,o,"resource")),null!=f&&(d=this.addToHttpParams(d,f,"group")),null!=l&&(d=this.addToHttpParams(d,l,"user")),null!=a&&(d=this.addToHttpParams(d,a,"member")),n&&n.forEach(on=>{d=this.addToHttpParams(d,on,"attributes[]")});let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}removeAttributesForFacilityResourceUserMember(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==f)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility")),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"user")),null!=l&&(s=this.addToHttpParams(s,l,"member")),a&&a.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"attributes[]")});let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}removeEntitylessAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"key")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupResourceAttribute(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==f)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeGroupResourceAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==f)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeGroupResourceAttributesWorkWithGroupAttributes(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==f)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attributes[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithGroupAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}removeHostAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHostAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"host")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==f)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")}),null!=f&&(t=this.addToHttpParams(t,f,"workWithUserAttributes"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberGroupAttribute(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==f)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberGroupAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==f)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberGroupAttributesWorkWithUserAttributes(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==f)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attributes[]")}),null!=l&&(r=this.addToHttpParams(r,l,"workWithUserAttributes"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}removeMemberResourceAttribute(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==f)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeMemberResourceAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==f)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeResourceAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUesAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserExtSourceAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userExtSource")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserFacilityAttribute(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==f)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"attribute"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeUserFacilityAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==f)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attributes[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeVoAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"attribute"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setAttributePolicyCollections(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setAttributeRights(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setEntitylessAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityResourceGroupUserMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityResourceUserMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setFacilityUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupResourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setGroupResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setHostAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setHostAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberGroupAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberGroupWithUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberResourceAndUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberResourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setMemberWithUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setResourceGroupWithGroupAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserExtSourceAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserExtSourceAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserFacilityAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setUserFacilityAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setVoAttribute(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setVoAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),E=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}auditMessagesManagerLog(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"msg"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createAuditerConsumer(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllAuditerConsumers(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuditerMessagesCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getLastMessageId(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMessages(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMessagesByCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"count"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMessagesPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}pollConsumerMessages(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consumerName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}setLastProcessedId(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==o)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"consumerName")),null!=o&&(n=this.addToHttpParams(n,o,"lastProcessedId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),S=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}getAllPolicies(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRolesManagementRules(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuthzAdminGroups(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==f)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"role")),null!=o&&(t=this.addToHttpParams(t,o,"complementaryObjectId")),null!=f&&(t=this.addToHttpParams(t,f,"complementaryObjectName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAuthzRichAdmins(i,o,f,l,a,n,t="body",r=!1,s){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==f)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"role")),null!=o&&(d=this.addToHttpParams(d,o,"complementaryObjectId")),null!=f&&(d=this.addToHttpParams(d,f,"complementaryObjectName")),l&&l.forEach(on=>{d=this.addToHttpParams(d,on,"specificAttributes")}),null!=a&&(d=this.addToHttpParams(d,a,"allUserAttributes")),null!=n&&(d=this.addToHttpParams(d,n,"onlyDirectAdmins"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}getFacilitiesWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupRoleNames(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupRoles(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"groupId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getLoggedUser(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMembersWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getPerunPrincipal(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPrincipalRoleNames(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserRoleNames(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserRoles(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosWhereUserIsInRoles(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"user")),i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"roles[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isFacilityAdmin(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isGroupAdmin(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isPerunAdmin(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isVoAdmin(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}keepAlive(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}loadAuthorizationComponents(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}setRoleWithGroupComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setRoleWithUserComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}unsetRoleWithGroupComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}unsetRoleWithUserComplementaryObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),_=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}changeConsentStatus(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"consent")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}evaluateConsentsForConsentHub(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}evaluateConsentsForService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllConsentHubs(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllConsents(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getConsentById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentForUserAndConsentHub(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==f)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"consentHub")),null!=f&&(t=this.addToHttpParams(t,f,"status"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getConsentHubByFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentHubById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentHubByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentsForConsentHub(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"consentHub"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentsForConsentHubWithStatus(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"consentHub")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getConsentsForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getConsentsForUserAndConsentHub(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"consentHub"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getConsentsForUserWithStatus(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateConsentHub(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),z=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addExtSourceWithGroupSource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addExtSourceWithVoSource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createExtSourceFromExtSourceObject(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createExtSourceWithNameType(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==o)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"type"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteExtSource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getExtSourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getExtSourceByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getExtSources(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGroupExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}loadExtSourcesDefinitions(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeExtSourceWithGroupSource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeExtSourceWithVoSource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"source"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Q=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addFacilityAdminGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminGroupByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityAdminUserByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwner(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addFacilityOwnerByOwnerName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHost(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==o)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"hostname"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHostByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==o)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"hostname"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHosts(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==o)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addHostsByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==o)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hostnames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignSecurityTeam(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignSecurityTeamByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesByDestinationName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesBySourceDestinationNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyAttributesBySourceName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersByDestinationName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersBySourceDestinationNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyManagersBySourceName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwners(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersByDestinationName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacility")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersBySourceDestinationNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacilityName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyOwnersBySourceName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"srcFacilityName")),null!=o&&(n=this.addToHttpParams(n,o,"destFacility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter name was null or undefined when calling createFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"description"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteFacilityByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllFacilities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllowedGroups(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedGroupsByFacilityName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedRichGroupsWithAttributes(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=f&&(r=this.addToHttpParams(r,f,"vo")),null!=l&&(r=this.addToHttpParams(r,l,"service"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getAllowedRichGroupsWithAttributesByFacilityName(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")}),null!=f&&(r=this.addToHttpParams(r,f,"vo")),null!=l&&(r=this.addToHttpParams(r,l,"service"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getAllowedUsersOfFacility(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedUsersOfFacilityByFacilityName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"service"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getAllowedVos(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedVosByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedFacilitiesByUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesByAssignedServiceForFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedResourcesForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesForFacilityByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesForFacilityAndService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedRichResourcesForFacilityByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedSecurityTeams(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedSecurityTeamsByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedUsers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedUsersByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getBansForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facilityId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getBansForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEnrichedFacilities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getEnrichedHosts(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilitiesByAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attributeName")),null!=o&&(n=this.addToHttpParams(n,o,"attributeValue"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilitiesByDestination(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilitiesByHostName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilitiesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilitiesCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAdminGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAdminUsers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"onlyDirectAdmins"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityAdminUsersByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"onlyDirectAdmins"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityBan(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacilityBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityForHost(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityOwners(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityOwnersByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getHostById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHosts(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsByHostname(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getHostsCountByFacilityName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getOwnerFacilities(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichFacilities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeBanByUserIdFacilityId(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminGroupByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityAdminUserByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeFacilityOwner(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeFacilityOwnerByOwnerName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"owner"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHost(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHost.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"host"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeHostByHostname(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"hostname"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeHosts(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==o)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeHostsByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==o)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"hosts[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSecurityTeam(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSecurityTeamByFacilityName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"securityTeam"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setFacilityBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFacilityBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),oe=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling addMember.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addMembers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==o)throw new Error("Required parameter members was null or undefined when calling addMembers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}allowGroupToHierarchicalVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}canExtendMembershipInGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createGroupUnion(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==o)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resultGroup")),null!=o&&(n=this.addToHttpParams(n,o,"operandGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createGroupWithParentGroupNameDescription(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==f)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"parentGroup")),null!=o&&(t=this.addToHttpParams(t,o,"name")),null!=f&&(t=this.addToHttpParams(t,f,"description"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}createGroupWithVoNameDescription(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==f)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"name")),null!=f&&(t=this.addToHttpParams(t,f,"description"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}deleteGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}disallowGroupToHierarchicalVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}extendMembershipInGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}forceAllSubGroupsSynchronization(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}forceGroupStructureSynchronization(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}forceGroupSynchronization(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllAllowedGroupsToHierarchicalVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllGroupsFromAllVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllMemberGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllRichGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"attrNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllRichGroupsWithAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==o)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"name"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupMemberById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupMembersCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupMembersCountsByGroupStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupMembersCountsByVoStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupRichMembersByIds(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==o)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==f)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"members[]")}),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getGroupUnions(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==o)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"reverseDirection"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getGroupsWhereMemberIsActive(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getIndirectMembershipPaths(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMemberGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberRichGroupsWithAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichGroupByIdWithAttributesByNames(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"groupId")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSubgroupsPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getVoAllAllowedGroupsToHierarchicalVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"memberVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isAllowedGroupToHierarchicalVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isGroupMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==o)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let n=new e.LE({encoder:this.encoder});null!=o&&(n=this.addToHttpParams(n,o,"destinationGroup")),null!=i&&(n=this.addToHttpParams(n,i,"movingGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupUnion(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==o)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resultGroup")),null!=o&&(n=this.addToHttpParams(n,o,"operandGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeMember.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeMembers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==o)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"members[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setGroupsMemberStatus(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==o)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==f)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=f&&(t=this.addToHttpParams(t,f,"status"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}updateGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),le=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}canExtendMembership(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createMemberForCandidate(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createMemberForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createMemberFromExtSource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSpecificMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSponsoredMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSponsoredMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createSponsoredMembersFromCSV(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"members[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}extendMembership(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}findCompleteRichMembersByAttributes(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrsNames[]")}),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"allowedStatuses[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}findCompleteRichMembersForGroup(i,o,f,l,a,n,t="body",r=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==f)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"group")),o&&o.forEach(on=>{d=this.addToHttpParams(d,on,"attrsNames[]")}),a&&a.forEach(on=>{d=this.addToHttpParams(d,on,"allowedStatuses[]")}),n&&n.forEach(on=>{d=this.addToHttpParams(d,on,"allowedGroupStatuses[]")}),null!=f&&(d=this.addToHttpParams(d,f,"searchString")),null!=l&&(d=this.addToHttpParams(d,l,"lookingInParentGroup"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}findCompleteRichMembersForVo(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==f)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrsNames[]")}),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"allowedStatuses[]")}),null!=f&&(r=this.addToHttpParams(r,f,"searchString"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}findMembersInVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"searchString"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findSponsoredCompleteRichMembersForVo(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==f)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrsNames[]")}),null!=f&&(r=this.addToHttpParams(r,f,"searchString")),null!=l&&(r=this.addToHttpParams(r,l,"onlySponsored"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getAllMembers(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllNamespacesRules(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllSponsoredMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllSponsoredMembersAndTheirSponsors(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getCompleteRichMembersForGroup(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group")),f&&f.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"allowedStatuses[]")}),l&&l.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"allowedGroupStatuses[]")}),null!=o&&(s=this.addToHttpParams(s,o,"lookingInParentGroup")),a&&a.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"attrsNames[]")});let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}getCompleteRichMembersForGroupResource(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==f)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource")),f&&f.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrsNames[]")}),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"allowedStatuses[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getCompleteRichMembersForVo(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"allowedStatuses[]")}),f&&f.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrsNames[]")});let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberByExtSourceNameAndExtLogin(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==f)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"extLogin")),null!=f&&(t=this.addToHttpParams(t,f,"extSourceName"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getMemberById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberByUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMembers(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMembersByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMembersByUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMembersCount(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMembersPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getMembersWithStatusCount(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichMemberWithAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichMembersByIds(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"ids[]")}),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichMembersNoUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSponsoredMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSponsoredMembersAndTheirSponsors(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsByMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsByVo(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==f)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"extSourceName")),null!=f&&(r=this.addToHttpParams(r,f,"extLogin")),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}moveMembership(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==o)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==f)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"sourceUser")),null!=f&&(t=this.addToHttpParams(t,f,"targetUser"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}removeSponsor(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"sponsor"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendAccountActivationLinkEmail(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==f)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"namespace")),null!=f&&(r=this.addToHttpParams(r,f,"emailAttributeURN")),null!=l&&(r=this.addToHttpParams(r,l,"language"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}sendPasswordResetLinkEmail(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==f)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member")),null!=o&&(s=this.addToHttpParams(s,o,"namespace")),null!=f&&(s=this.addToHttpParams(s,f,"emailAttributeURN")),null!=l&&(s=this.addToHttpParams(s,l,"language")),null!=a&&(s=this.addToHttpParams(s,a,"baseUrl"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}setSponsoredMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setSponsorshipForMember(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"sponsoredMember")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}setStatus(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling setStatus.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"status"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sponsorMember(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}updateSponsorshipValidity(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=f&&(t=this.addToHttpParams(t,f,"validityTo"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}validateMemberAsync(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),de=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}createOwner(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteOwner(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"owner")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllOwners(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getOwnerById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getOwnerByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"owner"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Te=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}sentMessageToRTWithMemberQueue(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==f)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"memberId")),null!=o&&(r=this.addToHttpParams(r,o,"queue")),null!=f&&(r=this.addToHttpParams(r,f,"subject")),null!=l&&(r=this.addToHttpParams(r,l,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}sentMessageToRTWithQueue(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==f)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"queue")),null!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=f&&(t=this.addToHttpParams(t,f,"text"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}sentMessageToRTWithVo(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==f)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"voId")),null!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=f&&(t=this.addToHttpParams(t,f,"text"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}sentMessageToRTWithVoQueue(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==f)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"voId")),null!=o&&(r=this.addToHttpParams(r,o,"queue")),null!=f&&(r=this.addToHttpParams(r,f,"subject")),null!=l&&(r=this.addToHttpParams(r,l,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),v=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addApplicationMailForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addApplicationMailForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addGroupsToAutoRegistration(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}approveApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}checkForSimilarRichIdentities(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}checkForSimilarUsersWithAuthInfo(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}consolidate(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}consolidateIdentityUsingToken(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}copyFormFromGroupToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromGroupToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromVoToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyFormFromVoToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromGroupToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromGroupToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromGroup")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromVoToGroup(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyMailsFromVoToVo(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"fromVo")),null!=o&&(n=this.addToHttpParams(n,o,"toVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createApplicationFormInGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}createApplicationFormInVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteApplicationMailForGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==o)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"id"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteApplicationMailForVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==o)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"id"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteGroupsFromAutoRegistration(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"groups[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationDataById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationMailsForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationMailsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getApplicationsForGroup(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"state[]")}),null!=f&&(r=this.addToHttpParams(r,f,"dateFrom")),null!=l&&(r=this.addToHttpParams(r,l,"dateTo"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getApplicationsForMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getApplicationsForVo(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"state[]")}),null!=f&&(r=this.addToHttpParams(r,f,"dateFrom")),null!=l&&(r=this.addToHttpParams(r,l,"dateTo"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getApplicationsPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getConsolidatorToken(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFormItemsForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFormItemsForGroupWithType(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"type"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFormItemsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFormItemsForVoWithType(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"type"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupApplicationForm(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsToAutoRegistration(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoApplicationForm(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}rejectApplication(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"id")),null!=o&&(n=this.addToHttpParams(n,o,"reason"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendInvitation(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let r=new e.LE({encoder:this.encoder});null!=f&&(r=this.addToHttpParams(r,f,"voId")),null!=l&&(r=this.addToHttpParams(r,l,"name")),null!=i&&(r=this.addToHttpParams(r,i,"email")),null!=o&&(r=this.addToHttpParams(r,o,"language"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}sendInvitationForGroup(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let s=new e.LE({encoder:this.encoder});null!=f&&(s=this.addToHttpParams(s,f,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"groupId")),null!=a&&(s=this.addToHttpParams(s,a,"name")),null!=i&&(s=this.addToHttpParams(s,i,"email")),null!=o&&(s=this.addToHttpParams(s,o,"language"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}sendInvitationGroupToExistingUser(i,o,f,l="body",a=!1,n){let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"userId")),null!=o&&(t=this.addToHttpParams(t,o,"voId")),null!=f&&(t=this.addToHttpParams(t,f,"groupId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}sendInvitationToExistingUser(i,o,f="body",l=!1,a){let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"userId")),null!=o&&(n=this.addToHttpParams(n,o,"voId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}sendMessage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}setSendingEnabled(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}submitApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateApplicationMail(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateForm(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemData(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemsData(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemsForGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateFormItemsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}verifyApplication(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),L=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}activateGroupResourceAssignment(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=f&&(t=this.addToHttpParams(t,f,"async"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}addAdminToGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addAdminToUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addResourceSelfServiceGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addResourceSelfServiceUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}allowGroupsToResources(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(_e=>{t=this.addToHttpParams(t,_e,"groups[]")}),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"resources[]")}),null!=f&&(t=this.addToHttpParams(t,f,"async"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}assignGroupToResource(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group")),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"async")),null!=l&&(s=this.addToHttpParams(s,l,"assignInactive")),null!=a&&(s=this.addToHttpParams(s,a,"autoAssignSubgroups"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}assignGroupToResources(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group")),o&&o.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"resources[]")}),null!=f&&(s=this.addToHttpParams(s,f,"async")),null!=l&&(s=this.addToHttpParams(s,l,"assignInactive")),null!=a&&(s=this.addToHttpParams(s,a,"autoAssignSubgroups"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}assignGroupsToResource(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"groups[]")}),null!=o&&(s=this.addToHttpParams(s,o,"resource")),null!=f&&(s=this.addToHttpParams(s,f,"async")),null!=l&&(s=this.addToHttpParams(s,l,"assignInactive")),null!=a&&(s=this.addToHttpParams(s,a,"autoAssignSubgroups"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}assignResourceTagToResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}assignService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling assignService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignServices(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==o)throw new Error("Required parameter services was null or undefined when calling assignServices.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}assignServicesPackage(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==o)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"servicesPackage"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}copyResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createResource(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==f)throw new Error("Required parameter name was null or undefined when calling createResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"facility")),null!=f&&(r=this.addToHttpParams(r,f,"name")),null!=l&&(r=this.addToHttpParams(r,l,"description"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}createResourceTagWithResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createResourceTagWithTagName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"tagName")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deactivateGroupResourceAssignment(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteAllResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteAllResourcesTagsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}deleteResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAdminGroups(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAdmins(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"onlyDirectAdmins"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllResourcesByResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAllResourcesTagsForResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllResourcesTagsForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllResourcesWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllowedUsersOfResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedGroups(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"member"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedMembersWithStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesWithGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesWithMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResourcesWithStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichMembers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesWithGroup(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesWithMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesWithMemberService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAssignedServicesToResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getBansForMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getBansForResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getEnrichedResourceById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"id")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEnrichedResourcesForFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getEnrichedResourcesForVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupAssignments(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getMailingServiceRichResourcesWithMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceAssignments(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceBan(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourceBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourceByName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==f)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"name"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourcesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourcesCountForAll(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesCountForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getResourcesFromVoWhereUserIsAdmin(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getResourcesWhereGroupIsAdmin(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==f)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"group"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getResourcesWhereUserIsAdmin(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==f)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=f&&(t=this.addToHttpParams(t,f,"user"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getRichAdmins(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==o)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==f)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(bt=>{r=this.addToHttpParams(r,bt,"specificAttributes")}),null!=f&&(r=this.addToHttpParams(r,f,"allUserAttributes")),null!=l&&(r=this.addToHttpParams(r,l,"onlyDirectAdmins"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getRichResourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichResourcesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeAllResourceTagsFromResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"resource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeBanByMemberAndResource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupAdminResource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupFromResource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupFromResources(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeGroupsFromResource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeResourceSelfServiceGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceSelfServiceUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeResourceTagFromResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}removeService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling removeService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServices(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==o)throw new Error("Required parameter services was null or undefined when calling removeServices.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"services[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServicesPackage(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==o)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"servicesPackage"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserAdminResource(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setResourceBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}unallowGroupsFromResources(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let n=new e.LE({encoder:this.encoder});i&&i.forEach(M=>{n=this.addToHttpParams(n,M,"groups[]")}),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"resources[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateResource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateResourceBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateResourceTag(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),B=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}getAttributesMatchResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAttributesResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getFacilities(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getMembersByUserAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getUsersSearcher(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),W=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addDestination(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==f)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling addDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service")),null!=o&&(s=this.addToHttpParams(s,o,"facility")),null!=f&&(s=this.addToHttpParams(s,f,"destination")),null!=l&&(s=this.addToHttpParams(s,l,"type")),null!=a&&(s=this.addToHttpParams(s,a,"propagationType"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}addDestinationToMultipleServices(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addDestinationsForAllServicesOnFacility(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==f)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"destination")),null!=f&&(r=this.addToHttpParams(r,f,"type")),null!=l&&(r=this.addToHttpParams(r,l,"propagationType"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}addRequiredAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addRequiredAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addServiceToServicesPackage(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==o)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"servicesPackage")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockAllServicesOnDestinationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}blockAllServicesOnDestinationByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==o)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"destination")),null!=o&&(n=this.addToHttpParams(n,o,"destinationType"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockAllServicesOnFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}blockServiceOnDestination(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}blockServiceOnDestinationWithNameAndType(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==f)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=f&&(t=this.addToHttpParams(t,f,"destinationType"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}blockServiceOnFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createService(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==f)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"name")),null!=o&&(t=this.addToHttpParams(t,o,"description")),null!=f&&(t=this.addToHttpParams(t,f,"script"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}createServiceWithService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createServicesPackageByNameAndDescription(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"description"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteService(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling deleteService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}forceServicePropagation(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllDestinations(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRichDestinationsForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllRichDestinationsForService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedResources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedServices(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedServicesVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDataWithGroups(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDataWithVos(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDestinationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getDestinations(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getDestinationsCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesDestinations(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityAssignedServicesForGUI(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFlatData(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getHashedDataWithGroups(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"consentEval"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getHashedHierarchicalData(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=f&&(t=this.addToHttpParams(t,f,"consentEval"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getHierarchicalData(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getRichDestinations(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getServiceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServiceByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServices(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getServicesBlockedOnDestination(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesBlockedOnFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesByAttributeDefinition(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"attributeDefinition"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesFromServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesPackageById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"servicesPackage"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesPackageByName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"name"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getServicesPackages(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isServiceBlockedOnDestination(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}isServiceBlockedOnFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}planServicePropagation(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAllDestinations(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeAllRequiredAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeDestination(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==f)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility")),null!=f&&(r=this.addToHttpParams(r,f,"destination")),null!=l&&(r=this.addToHttpParams(r,l,"type"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}removeRequiredAttribute(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"attributeId"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeRequiredAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attributes[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeServiceFromServicesPackage(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==o)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"servicesPackage")),null!=o&&(n=this.addToHttpParams(n,o,"service"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockAllServicesOnDestinationById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"destination"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}unblockAllServicesOnDestinationByName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==o)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"destination")),null!=o&&(n=this.addToHttpParams(n,o,"destinationType"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockAllServicesOnFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}unblockServiceOnDestinationById(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}unblockServiceOnDestinationByName(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==f)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=f&&(t=this.addToHttpParams(t,f,"destinationType"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}unblockServiceOnFacility(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}updateService(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateServicesPackage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),q=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}countTasks(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}deleteTask(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteTaskResultById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteTaskResultsIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteTaskResultsNames(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getAllFacilitiesStates(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAllResourcesState(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"voId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityServicesState(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getFacilityState(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTask(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getTask.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getTaskById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"taskResult"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResults(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getTaskResultsByTask(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultsForDestinations(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"destinations[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultsForGUIByTask(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getTaskResultsForGUIByTaskAndDestination(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"task")),null!=o&&(n=this.addToHttpParams(n,o,"destination"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"task"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isThereSuchTask(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}listAllTasks(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}listAllTasksForFacility(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}suspendTasksPropagation(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"suspend"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),ue=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addSpecificUserOwner(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==o)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"specificUser"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addUserExtSource(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}anonymizeUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}changeNonAuthzPasswordByToken(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}changePasswordForLogin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}changePasswordForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}checkPasswordResetRequestByTokenIsValid(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"token"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}checkPasswordStrength(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createAlternativePassword(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}createServiceUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteAlternativePassword(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==o)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==f)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"loginNamespace")),null!=f&&(t=this.addToHttpParams(t,f,"passwordId"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}deletePasswordForLogin(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"login")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deletePasswordForUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}deleteUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findRichUsers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}findRichUsersWithAttributes(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"searchString")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrsNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findUsers(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"searchString"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}generateAccountForName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"namespace")),null!=o&&(n=this.addToHttpParams(n,o,"name"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllRichUsersWithAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"includedSpecificUsers"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getAssignedRichResourcesForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getGroupsForFacilityWhereUserIsActive(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"facility"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsForResourceWhereUserIsActive(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"resource"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"vo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getGroupsWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getPendingPreferredEmailChanges(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUserExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUserWithAttributes(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUsersByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUsersWithAttributesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichUsersWithoutVoWithAttributes(i,o="body",f=!1,l){let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"attrsNames[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSpecificUsersByUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getSponsorsForMember(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),o&&o.forEach(M=>{n=this.addToHttpParams(n,M,"attrNames[]")});let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getSponsorsForMemberByVoAndLogin(i,o,f,l,a="body",n=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==f)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"extSourceName")),null!=f&&(r=this.addToHttpParams(r,f,"extLogin")),l&&l.forEach(bt=>{r=this.addToHttpParams(r,bt,"attrNames[]")});let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let p=t&&t.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(s=s.set("Accept",p));let M=t&&t.context;void 0===M&&(M=new e.qT);let _e="json";return p&&(_e=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:M,params:r,responseType:_e,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:n})}getUserByExtSourceNameAndExtLogin(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"extLogin")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getUserById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourceByExtLoginAndExtSourceName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==o)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"extSourceName")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceLogin"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourceByUniqueAttributeValueAndAttributeId(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attributeId")),null!=o&&(n=this.addToHttpParams(n,o,"attributeValue"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"attributeName")),null!=o&&(n=this.addToHttpParams(n,o,"attributeValue"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getUserExtSources(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUserExtSourcesByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUsers(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getUsersByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUsersBySpecificUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"specificUser"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getUsersPage(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}getVosWhereUserIsAdmin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosWhereUserIsMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}isLoginAvailable(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==o)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"loginNamespace")),null!=o&&(n=this.addToHttpParams(n,o,"login"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}loginExist(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSpecificUserOwner(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==o)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"specificUser"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeUserExtSource(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==o)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"userExtSource")),null!=f&&(t=this.addToHttpParams(t,f,"force"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}requestPreferredEmailChange(i,o,f,l,a,n,t="body",r=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==o)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let d=new e.LE({encoder:this.encoder});null!=i&&(d=this.addToHttpParams(d,i,"user")),null!=o&&(d=this.addToHttpParams(d,o,"email")),null!=f&&(d=this.addToHttpParams(d,f,"lang")),null!=l&&(d=this.addToHttpParams(d,l,"linkPath")),null!=a&&(d=this.addToHttpParams(d,a,"customUrl")),null!=n&&(d=this.addToHttpParams(d,n,"idpFilter"));let M,p=this.defaultHeaders;M=this.configuration.lookupCredential("BasicAuth"),M&&(p=p.set("Authorization","Basic "+M)),M=this.configuration.lookupCredential("BearerAuth"),M&&(p=p.set("Authorization","Bearer "+M));let _e=s&&s.httpHeaderAccept;void 0===_e&&(_e=this.configuration.selectHeaderAccept(["application/json"])),void 0!==_e&&(p=p.set("Accept",_e));let bt=s&&s.context;void 0===bt&&(bt=new e.qT);let Vt="json";return _e&&(Vt=_e.startsWith("text")?"text":this.configuration.isJsonMime(_e)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:bt,params:d,responseType:Vt,withCredentials:this.configuration.withCredentials,headers:p,observe:t,reportProgress:r})}reservePasswordForLogin(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}reservePasswordForUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}reserveRandomPassword(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}setLogin(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==o)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==f)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"login")),null!=f&&(t=this.addToHttpParams(t,f,"namespace"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}updateUser(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateUserExtSourceLastAccess(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"userExtSource"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}validatePasswordForLogin(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"login")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}validatePasswordForUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"namespace"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}validatePreferredEmailChangeWithToken(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==o)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"token")),null!=o&&(n=this.addToHttpParams(n,o,"u"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),ye=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}getAppsConfig(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGuiConfiguration(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunRPCVersion(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatistics(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatus(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunSystemTimeInMillis(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),Me=(()=>{class P{constructor(i,o,f){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new C,f&&(this.configuration=f),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new c}addToHttpParams(i,o,f){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,f):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,f){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,f));else if(o instanceof Date){if(null==f)throw Error("key may not be null if value is Date");i=i.append(f,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=f?`${f}.${l}`:l));else{if(null==f)throw Error("key may not be null if value is not object or array");i=i.append(f,o)}return i}addMemberVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"memberVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addSponsorRoleToGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addSponsorRoleToUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addVoAdminGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}addVoAdminUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createVoWithName(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==o)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"name")),null!=o&&(n=this.addToHttpParams(n,o,"shortName"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}createVoWithVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}deleteVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"force"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}findCandidates(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"id")),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),null!=f&&(t=this.addToHttpParams(t,f,"maxNumOfResults"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}findCandidatesForGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"searchString"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getAllVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getCompleteCandidatesForGroup(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==f)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"searchString"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getCompleteCandidatesForVo(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==f)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),o&&o.forEach(_e=>{t=this.addToHttpParams(t,_e,"attrNames[]")}),null!=f&&(t=this.addToHttpParams(t,f,"searchString"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getEnrichedVoById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMemberVos(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getMyEnrichedVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMyVos(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getParentVos(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getRichAdminsForVo(i,o,f,l,a,n="body",t=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==f)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo")),null!=o&&(s=this.addToHttpParams(s,o,"role")),f&&f.forEach(Vt=>{s=this.addToHttpParams(s,Vt,"specificAttributes")}),null!=l&&(s=this.addToHttpParams(s,l,"allUserAttributes")),null!=a&&(s=this.addToHttpParams(s,a,"onlyDirectAdmins"));let p,d=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(d=d.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(d=d.set("Authorization","Bearer "+p));let M=r&&r.httpHeaderAccept;void 0===M&&(M=this.configuration.selectHeaderAccept(["application/json"])),void 0!==M&&(d=d.set("Accept",M));let _e=r&&r.context;void 0===_e&&(_e=new e.qT);let bt="json";return M&&(bt=M.startsWith("text")?"text":this.configuration.isJsonMime(M)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:_e,params:s,responseType:bt,withCredentials:this.configuration.withCredentials,headers:d,observe:n,reportProgress:t})}getVoAdminGroups(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"role"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}getVoAdminUsers(i,o,f,l="body",a=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==f)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"role")),null!=f&&(t=this.addToHttpParams(t,f,"onlyDirectAdmins"));let s,r=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(r=r.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(r=r.set("Authorization","Bearer "+s));let d=n&&n.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(r=r.set("Accept",d));let p=n&&n.context;void 0===p&&(p=new e.qT);let M="json";return d&&(M=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:p,params:t,responseType:M,withCredentials:this.configuration.withCredentials,headers:r,observe:l,reportProgress:a})}getVoBanById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoBanForMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoBansForVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoById(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getVoById.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"id"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoByShortName(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"shortName"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVoMembersCountsByStatus(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosByIds(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(p=>{a=this.addToHttpParams(a,p,"ids[]")});let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}getVosCount(i="body",o=!1,f){let a,l=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(l=l.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(l=l.set("Authorization","Bearer "+a));let n=f&&f.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let t=f&&f.context;void 0===t&&(t=new e.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:r,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeMemberVo(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"memberVo"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSponsorRoleFromGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeSponsorRoleFromUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAdminGroup(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"authorizedGroup"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoAdminUser(i,o,f="body",l=!1,a){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"user"));let r,t=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(t=t.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(t=t.set("Authorization","Bearer "+r));let s=a&&a.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(t=t.set("Accept",s));let d=a&&a.context;void 0===d&&(d=new e.qT);let p="json";return s&&(p=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:d,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:t,observe:f,reportProgress:l})}removeVoBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"banId"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}removeVoBanForMember(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member"));let t,n=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(n=n.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(n=n.set("Authorization","Bearer "+t));let r=l&&l.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let s=l&&l.context;void 0===s&&(s=new e.qT);let d="json";return r&&(d=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:s,params:a,responseType:d,withCredentials:this.configuration.withCredentials,headers:n,observe:o,reportProgress:f})}setVoBan(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}updateVo(i,o="body",f=!1,l){if(null==i)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let n,a=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(a=a.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(a=a.set("Authorization","Bearer "+n));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(a=a.set("Accept",t));let r=l&&l.context;void 0===r&&(r=new e.qT);const d=this.configuration.selectHeaderContentType(["application/json"]);void 0!==d&&(a=a.set("Content-Type",d));let p="json";return t&&(p=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,i,{context:r,responseType:p,withCredentials:this.configuration.withCredentials,headers:a,observe:o,reportProgress:f})}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(e.eN),A.LFG(w,8),A.LFG(C,8))},P.\u0275prov=A.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})();const he={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},re={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let Ue=(()=>{class P{constructor(i,o){if(i)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!o)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(i){return{ngModule:P,providers:[{provide:C,useFactory:i}]}}}return P.\u0275fac=function(i){return new(i||P)(A.LFG(P,12),A.LFG(e.eN,8))},P.\u0275mod=A.oAB({type:P}),P.\u0275inj=A.cJS({}),P})()},19516:(Ye,pe,h)=>{"use strict";h.d(pe,{bY:()=>ee.b,r5:()=>C.r,d4:()=>A,dp:()=>w.d});var e=h(36895),c=h(94650);let A=(()=>{class le{}return le.\u0275fac=function(Te){return new(Te||le)},le.\u0275mod=c.oAB({type:le}),le.\u0275inj=c.cJS({imports:[e.ez]}),le})();var w=h(31359),C=(h(34447),h(82895)),ee=(h(69773),h(12856),h(20919),h(5865),h(38993),h(86349),h(53561),h(16119),h(7598),h(9954),h(4765))},34447:(Ye,pe,h)=>{"use strict";h.d(pe,{a:()=>w});var e=h(32080),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T,E){this.translate=T,this.storage=E}transform(T,E="en"){const S=this.storage.get("custom_labels");if(S)for(const U of S)if(U.label===T)return U[E];return T}}return g.\u0275fac=function(T){return new(T||g)(c.Y36(A.sK,16),c.Y36(e.d6,16))},g.\u0275pipe=c.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},4765:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.namespace.includes("virt")||g.namespace.includes("core")||g.namespace.includes("entityless")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:A,pure:!0}),A})()},82895:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>c});var e=h(94650);let c=(()=>{class A{transform(g,C){return C?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"getResourceRoute",type:A,pure:!0}),A})()},82514:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>c});var e=h(94650);let c=(()=>{class A{transform(g,C,T){let E;switch(g){case"VALID":E="green";break;case"INVALID":E="red";break;default:E=""}return`${E}${T||C?" cursor-default":""}`}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"groupStatusIconColor",type:A,pure:!0}),A})()},28764:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>w});var e=h(9244),c=h(64080),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(T.attributes,c.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(T.attributes,c.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=S.value;if("true"===E.value){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"red":null!==te&&te.trim().length>0?"green":""}if(U){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"red":null!==te&&te.trim().length>0?"green":""}return""}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>w});var e=h(64080),c=h(9244),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"";const E=(0,c.IL)(T.attributes,e.r.GROUP_SYNC_ENABLED),S=(0,c.IL)(T.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"";const U=S.value;if("true"===E.value){const V=(0,c.IL)(T.attributes,e.r.GROUP_LAST_SYNC_STATE),z=(0,c.IL)(T.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"sync_problem":(null!==te&&te.trim(),"sync")}if(U){const V=(0,c.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,c.IL)(T.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"sync_problem":(null!==te&&te.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(9244),c=h(64080),A=h(94650);let w=(()=>{class g{transform(T){if(null==T||null==T.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const E=(0,e.IL)(T.attributes,c.r.GROUP_SYNC_ENABLED),S=(0,e.IL)(T.attributes,c.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===E&&null===S)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const U=S.value;if("true"===E.value){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==te&&te.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(U){const V=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_STATE),z=(0,e.IL)(T.attributes,c.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),Q=V.value,te=z.value;return null!=Q&&Q.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==te&&te.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return g.\u0275fac=function(T){return new(T||g)},g.\u0275pipe=A.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},86349:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>w});var e=h(9244),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T){this.translate=T}transform(T,E){const S=(0,e.zr)(T);return"INDIRECT"===S?this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT"):E||"UNALTERABLE"!==S?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE")}}return g.\u0275fac=function(T){return new(T||g)(c.Y36(A.sK,16))},g.\u0275pipe=c.Yjl({name:"memberCheckboxLabel",type:g,pure:!0}),g})()},20919:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.g$)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(Ye,pe,h)=>{"use strict";h.d(pe,{p:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.lt)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.Gw)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},38993:(Ye,pe,h)=>{"use strict";h.d(pe,{n:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C,T){const E=(0,e.zr)(C);return"INDIRECT"===E||!T&&"UNALTERABLE"===E}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberStatusDisabled",type:w,pure:!0}),w})()},69773:(Ye,pe,h)=>{"use strict";h.d(pe,{u:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){const T=(0,e.zr)(C);let E;switch(C.status){case"VALID":E="green";break;case"INVALID":E="red";break;case"DISABLED":E="black";break;default:return""}return`${E}${"UNALTERABLE"===T?" cursor-default":""}`}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"memberStatusIconColor",type:w,pure:!0}),w})()},21757:(Ye,pe,h)=>{"use strict";h.d(pe,{f:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){switch(g){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return g}}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:A,pure:!0}),A})()},12856:(Ye,pe,h)=>{"use strict";h.d(pe,{i:()=>w});var e=h(9244),c=h(94650),A=h(89383);let w=(()=>{class g{constructor(T){this.translate=T}transform(T,E,S){let U=null,_=null;T.memberAttributes&&(U=T.memberAttributes.find(Q=>"membershipExpiration"===Q.friendlyName),_=T.memberAttributes.find(Q=>"groupMembershipExpiration"===Q.friendlyName));let V="";V=E?`\n Group status: ${(0,e.Oe)(T.groupStatus)}\n Expiration: ${_?.value??"never"}`:T.memberAttributes?`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}\n Expiration: ${U?.value??"never"}`:`Status: ${(0,e.Oe)(T.status,T.groupStatus)}\n Vo status: ${(0,e.Oe)(T.status)}`;const z=(0,e.zr)(T);return S?V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_MEMBERS_GROUP")}`:"INDIRECT"===z&&E?V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_GROUP_INDIRECT")}`:!E&&"UNALTERABLE"===z&&(V=`${V}\n ${this.translate.instant("MEMBERS_LIST.STATUS_TOOLTIP_INDIRECT")}`),V}}return g.\u0275fac=function(T){return new(T||g)(c.Y36(A.sK,16))},g.\u0275pipe=c.Yjl({name:"memberStatusTooltip",type:g,pure:!0}),g})()},20551:(Ye,pe,h)=>{"use strict";h.d(pe,{l:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.replace("VALID","ACTIVE")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"memberStatus",type:A,pure:!0}),A})()},64597:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:A,pure:!0}),A})()},62383:(Ye,pe,h)=>{"use strict";h.d(pe,{M:()=>A});var e=h(36895),c=h(94650);let A=(()=>{class w{transform(C,T){return"voRules"===C?"Vo rules":"groupRules"===C?"Group rules":C&&"never"!==C.toLowerCase()?(0,e.p6)(C.replace(" ","T"),"d.M.yyyy "+(T?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.te)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.kN)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>c});var e=h(94650);let c=(()=>{class A{transform(g){return[g.titleBefore,g.firstName,g.middleName,g.lastName,g.titleAfter].join(" ")}}return A.\u0275fac=function(g){return new(g||A)},A.\u0275pipe=e.Yjl({name:"userFullName",type:A,pure:!0}),A})()},7598:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.$0)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>A});var e=h(9244),c=h(94650);let A=(()=>{class w{transform(C){return(0,e.OV)(C)}}return w.\u0275fac=function(C){return new(C||w)},w.\u0275pipe=c.Yjl({name:"userVo",type:w,pure:!0}),w})()},32080:(Ye,pe,h)=>{"use strict";h.d(pe,{yC:()=>ye,F5:()=>q,sM:()=>Ge,eE:()=>Fe,e8:()=>_,EB:()=>le,Be:()=>Je,Hy:()=>se,ly:()=>he,fb:()=>gt,xw:()=>ce,x4:()=>w,v0:()=>Q,SZ:()=>Me,V6:()=>ue,jq:()=>Xe,BN:()=>$,Ip:()=>Ce,HV:()=>ct,d6:()=>E,UA:()=>Ze});var e=h(32105),c=h(45323),A=h(94650);let w=(()=>{class be{constructor(P){this.authzSevice=P,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(P){this.principal=P,this.initData(P)}setPerunPolicies(P){this.perunPolicies=P}getPerunPolicies(){return this.perunPolicies}isAuthorized(P,H){if(null===this.principal.roles)return!1;const i=this.fetchPolicyWithAllIncludedPolicies(P);let o=[];for(const l of i)o=o.concat(l.perunRoles);const f=this.fetchAllRelatedObjects(H);return this.resolveAuthorization(o,f)}principalHasRole(P,H,i){let o=H;return H.startsWith("Rich")&&(o=H.substring(4)),!(!this.principal.roles[P]||!this.principal.roles[P][o])&&this.principal.roles[P][o].includes(Number(i.toString()))}canManageFacilities(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER,c.u.FACILITYADMIN,c.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(c.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.VOADMIN)}isThisVoAdminOrObserver(P){return this.editableVos.includes(Number(P.toString()))||this.observableVos.includes(Number(P.toString()))||this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER)}isThisVoAdmin(P){return this.editableVos.includes(P)||this.principalRoles.has(c.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(c.u.SPONSOR)}isThisGroupAdmin(P){return this.editableGroups.includes(P)||this.principalRoles.has(c.u.PERUNADMIN)}isGroupAdminInThisVo(P){return this.hasGroupInTheseVos.includes(P)}isFacilityAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.FACILITYADMIN)}isThisFacilityAdmin(P){return this.editableFacilities.includes(P)||this.principalRoles.has(c.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(c.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.VOOBSERVER,c.u.PERUNOBSERVER)}isThisVoObserver(P){return this.hasAtLeastOne(c.u.PERUNADMIN,c.u.PERUNOBSERVER)||this.observableVos.includes(P)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((P,H)=>{this.authzSevice.getAllRolesManagementRules().subscribe(i=>{this.allRolesManagementRules=i,P()},i=>H(i))})}assignAvailableRoles(P,H){this.allRolesManagementRules.forEach(i=>{i.primaryObject===H&&P.push(i.roleName)}),P.sort(),"Vo"===H&&this.voCustomSort(P)}isManagerPagePrivileged(P){const H=[];let i=P.beanName;i.startsWith("Rich")&&(i=i.substring(4)),this.assignAvailableRoles(H,i);const o=new Map;this.setRolesAuthorization(H,P,o);for(const f of o.values())if(f.readAuth||f.manageAuth)return!0;return!1}setRolesAuthorization(P,H,i){for(const o of P){let f=[],l=[],a=[];for(const d of this.allRolesManagementRules)if(d.roleName===o){f=f.concat(d.privilegedRolesToRead),l=l.concat(d.privilegedRolesToManage);for(const p of Object.keys(d.entitiesToManage))a="User"===p?[p].concat(a):a.concat(p);break}const n=this.fetchAllRelatedObjects([H]),t=this.resolveAuthorization(f,n),r=this.resolveAuthorization(l,n);i.set(o,{readAuth:t,manageAuth:r,modes:a})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(P){for(const H of this.allRolesManagementRules)if(H.roleName===P)return H.primaryObject;return""}resolveAuthorization(P,H){for(const i of P){let o=!0;for(const f of Object.keys(i)){const l=i[f];if(null===l)this.principalRoles.has(f)||(o=!1);else if(H[l]){for(const a of H[l])if(!this.principalHasRole(f,l,a)){o=!1;break}}else o=!1;if(!o)break}if(o)return!0}return!1}getPerunPolicy(P){for(const H of this.perunPolicies)if(H.policyName===P)return H;return null}fetchAllRelatedObjects(P){const H={};for(const i of P){let o=i.beanName;switch(i.beanName.startsWith("Rich")&&(o=i.beanName.substring(4)),H[o]?H[o].push(i.id):H[o]=[i.id],o){case"Member":H.User?H.User.push(i.userId):H.User=[i.userId],H.Vo?H.Vo.push(i.voId):H.Vo=[i.voId];break;case"Group":case"ResourceTag":H.Vo?H.Vo.push(i.voId):H.Vo=[i.voId];break;case"Resource":H.Facility?H.Facility.push(i.facilityId):H.Facility=[i.facilityId],H.Vo?H.Vo.push(i.voId):H.Vo=[i.voId]}}return H}fetchPolicyWithAllIncludedPolicies(P){const H=new Map;let i=[];for(i.push(P);0!==i.length;){const f=i.shift();if(H.has(f))continue;const l=this.getPerunPolicy(f);if(!l)return[];H.set(f,l),i=i.concat(l.includePolicies)}const o=[];for(const f of H.values())o.push(f);return o}voCustomSort(P){for(let H=0;H{class be{constructor(){this.branding=""}setInstanceConfig(P){this.instanceConfig=P}setDefaultConfig(P){this.defaultConfig=P}getAppsConfig(){return this.appsConfig}setAppsConfig(P){this.appsConfig=P}setPerunPrincipal(P){this.principal=P}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(P){this.initialPageId=P}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(P){this.branding=P}skipOidc(){return this.getProperty("skip_oidc")}getProperty(P){const H=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let i=null;for(const o of H)o&&!i&&(i=o[P]);return i}get(...P){let H;if(""!==this.branding){const i=this.instanceConfig.brandings[this.branding];for(let o=0;o{class be{constructor(P,H,i,o,f){this.injector=P,this.store=H,this.dialog=i,this.route=o,this.oauthService=f,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(l=>{l.idpFilter&&(this.filterShortname=String(l.idpFilter))})}getClientConfig(){const P=this.setIdpFilter(),o=.5+.25*Math.random(),f=P?{acr_values:P}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(f.prompt="consent"),sessionStorage.getItem("mfa_route")&&(f.acr_values="https://refeds.org/profile/mfa",f.prompt?f.prompt+=" login":f.prompt="login",f.max_age="0"),"Linker"===this.store.getProperty("application")){f.prompt?f.prompt+=" login":f.prompt="login";const l=(0,T.O5)("idphint",location.search.substring(1));l&&(f.idphint=l)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:o,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:f}}setIdpFilter(){const P=location.search.substring(1).split("&");this.filterShortname=null;const H=this.store.get("oidc_client","filters");if(!H)return null;let i=null;return P.forEach(o=>{const f=o.split("=");"idpFilter"===f[0]&&H[f[1]]&&(this.filterShortname=f[1],i=H[f[1]])}),H.default&&!i?(this.filterShortname="default",H.default):i}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const P=location.pathname,H=location.search.substring(1);return"/api-callback"===P?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(P,H).then(i=>i?this.startRefreshToken():new Promise(o=>o(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(P=>!!P&&(this.oauthService.events.pipe((0,g.h)(H=>"token_expires"===H.type&&"access_token"===H.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const P=sessionStorage.getItem("mfa_route");if(P)return this.router.navigate([P],{replaceUrl:!0});let H=sessionStorage.getItem("auth:redirect");const i=sessionStorage.getItem("auth:queryParams");let o=[];i&&(o=i.split("&"));const f={};return o.forEach(l=>{const a=l.split("=");f[a[0]]=a[1]}),(!H||"/login"===H)&&(H="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),f.idpFilter&&(this.filterShortname=String(f.idpFilter)),this.router.navigate([H],{queryParams:f,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(P=>P instanceof C.m2)).subscribe(()=>{const P={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===P.idpFilter?{}:P,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(P){const H=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===P)return!0;for(const i of H)if(P.startsWith(i))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(P,H){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(i=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",H),localStorage.removeItem("access_token"),!1):!!i||(this.isPotentiallyValidPath(P)?(sessionStorage.setItem("auth:redirect",P),sessionStorage.setItem("auth:queryParams",H),!1):new Promise((o,f)=>f("Invalid path"))))}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(A.zs3),A.LFG(E),A.LFG(S.uw),A.LFG(C.gz),A.LFG(U.Ct))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var V=h(89383);let z=(()=>{class be{constructor(P){this.dialogRef=P}}return be.\u0275fac=function(P){return new(P||be)(A.Y36(S.so))},be.\u0275cmp=A.Xpm({type:be,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(P,H){1&P&&(A.TgZ(0,"h2",0),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&P&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[S.xY,V.X$]}),be})(),Q=(()=>{class be{constructor(P,H,i,o,f,l){this.authService=P,this.storeService=H,this.authResolver=i,this.authzService=o,this.dialog=f,this.router=l,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(P){this.loginScreenShown=P}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(P=>P(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(P=>{if(null===P.user){const H=(0,T.kZ)();this.dialog.open(z,H)}else{this.storeService.setPerunPrincipal(P),this.authResolver.init(P);const H=localStorage.getItem("routeAuthGuard");H&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([H]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(P=>{this.storeService.setPerunPrincipal(P)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(P=>{P()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const P=location.search.substr(1).split("&"),H={};for(const i of P){const o=i.split("=");H[o[0]]=o[1]}return void this.router.navigate(["login"],{queryParams:H,queryParamsHandling:"merge"})}}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(_),A.LFG(E),A.LFG(w),A.LFG(e.Ct),A.LFG(S.uw),A.LFG(C.F0))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var te=h(97392),oe=h(11481);let le=(()=>{class be{constructor(P,H){this.matIconRegistry=P,this.domSanitizer=H,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(P=>{this.matIconRegistry.addSvgIcon(P.name,this.domSanitizer.bypassSecurityTrustResourceUrl(P.url))})}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(te.jv),A.LFG(oe.H7))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac}),be})();var de=h(80529),Te=h(62843),v=h(28746),L=h(18505),B=h(4859);let W=(()=>{class be{constructor(P){this.dialogRef=P}close(){this.dialogRef.close(!0)}}return be.\u0275fac=function(P){return new(P||be)(A.Y36(S.so))},be.\u0275cmp=A.Xpm({type:be,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(P,H){1&P&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div",1),A._uU(4),A.ALo(5,"translate"),A.qZA(),A.TgZ(6,"div",2)(7,"div",3)(8,"button",4),A.NdJ("click",function(){return H.close()}),A._uU(9),A.ALo(10,"translate"),A.qZA()()()),2&P&&(A.xp6(1),A.Oqu(A.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),A.xp6(3),A.hij(" ",A.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),A.xp6(5),A.hij(" ",A.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[S.uh,S.xY,S.H8,B.lW,V.X$]}),be})(),q=(()=>{class be{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const P=this.handleNextError;return this.handleNextError=!0,P}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ue=(()=>{class be{constructor(P){this.translate=P,this.addNotification=new A.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(P,H=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===P.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===P.name?H:H+"\n"+P.name,P,P.message)}showRouteError(){const P=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),H=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(P,null,H)}showError(P,H,i,o,f){this.addNotification.emit({type:"error",error:H,description:i,title:P,actionText:void 0===o&&void 0!==i?this.getDefaultActionMessage():o,delay:this.defaultErrorDelayMs,icon:"error_outline",action:f,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(P,H,i,o){this.addNotification.emit({type:"success",description:H,title:P,actionText:void 0===i&&void 0!==H?this.getDefaultActionMessage():i,delay:this.defaultSuccessDelayMs,icon:"done",action:o,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(V.sK))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ye=(()=>{class be{constructor(P,H,i,o,f,l){this.authService=P,this.apiRequestConfiguration=H,this.notificator=i,this.store=o,this.dialog=f,this.initAuthService=l}intercept(P,H){const i=this.store.get("api_url");if(P.url.includes("i18n")&&(P=P.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==i&&this.isCallToPerunApi(P.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const l=(0,T.kZ)();l.width="450px",this.dialogRefSessionExpiration=this.dialog.open(W,l),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,v.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?P=P.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(P.url)&&(P=P.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const o=this.apiRequestConfiguration.shouldHandleError(),f="POST"===P.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(P.url);return H.handle(P).pipe((0,L.b)(l=>{l instanceof de.Zn&&f&&this.initAuthService.loadPrincipal()},l=>{const a=this.formatErrors(l,P);return void 0===a?(0,Te._)(l):o?void this.notificator.showRPCError(a):(0,Te._)(a)}))}isCallToPerunApi(P){return P.startsWith(this.store.get("api_url"))}formatErrors(P,H){let i;console.error(P);const o=P.error;if(o.errorId&&(i=o),void 0!==i)return i.urlWithParams=H.urlWithParams,i.call=H.url,i.payload=H.body,i}isNotConsolidatorOrLinker(){const P=this.store.getProperty("application");return!("Linker"===P||"Consolidator"===P)}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(_),A.LFG(q),A.LFG(ue),A.LFG(E),A.LFG(S.uw),A.LFG(Q))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac}),be})(),Me=(()=>{class be{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(P){this.newNotificationsCount++,this.notificationData.push(P)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var we=h(70262);let Ge=(()=>{class be{constructor(P,H,i,o){this.http=P,this.notificator=H,this.authService=i,this.storeService=o}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let P=new de.WM;return P=P.set("Authorization",this.authService.getAuthorizationHeaderValue()),P}get(P,H=!0){const i=`${this.getApiUrl()}${P}`;return this.http.get(i,{headers:this.getHeaders()}).pipe((0,we.K)(o=>this.formatErrors(o,i,null,H)))}put(P,H={},i=!0){const o=`${this.getApiUrl()}${P}`,f=JSON.stringify(H);return this.http.put(o,f,{headers:this.getHeaders()}).pipe((0,we.K)(l=>this.formatErrors(l,o,f,i)))}post(P,H={},i=!0){const o=`${this.getApiUrl()}${P}`,f=JSON.stringify(H);let l=this.getHeaders();return l=l.set("Content-Type","application/json; charset=utf-8"),this.http.post(o,f,{headers:l}).pipe((0,we.K)(a=>this.formatErrors(a,o,f,i)))}delete(P,H=!0){const i=`${this.getApiUrl()}${P}`;return this.http.delete(i,{headers:this.getHeaders()}).pipe((0,we.K)(o=>this.formatErrors(o,i,null,H)))}formatErrors(P,H,i,o){const f=P.error;return f.call=H,f.payload=i,o&&this.notificator.showRPCError(P.error),(0,Te._)(f)}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(de.eN),A.LFG(ue),A.LFG(_),A.LFG(E))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ce=(()=>{class be{constructor(P){this.router=P,this.lastState="forward",this.history=new Set,P.events.subscribe(H=>{H instanceof C.OD&&("popstate"===H.navigationTrigger?this.history.has(H.restoredState.navigationId)?(this.lastState="back",this.history.delete(H.restoredState.navigationId)):(this.lastState="forward",this.history.add(H.id)):(this.history.add(H.id),this.lastState="forward"))})}forceNavigate(P,H){if(null===P)return;let i="";P.forEach(o=>i+="/"+o),i.length>0&&(i=i.substring(1)),void 0===H&&(H={}),H.queryParams={redirectTo:i},this.router.navigate(["redirect"],H)}getLastState(){return this.lastState}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(C.F0))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),Ze=(()=>{class be{isAllSelectedWithDisabledCheckbox(P,H,i,o,f,l,a,n){return this.numSelected=P,this.numCanBeSelected=0,this.pageStart=f*i,this.pageEnd=this.pageStart+i,this.pageIterator=0,this.dataLength=""===H?l.data.length:l.filteredData.length,o||(this.modulo=this.dataLength%i,this.pageEnd=0===this.modulo?this.pageStart+i:this.pageStart+this.modulo),l.sortData(l.filteredData,a).forEach(t=>{this.pageStart<=this.pageIterator&&this.pageIterator{n?t(r)&&this.pageStart<=this.pageIterator&&this.pageIterator{class be{constructor(P,H,i,o){this.membersService=P,this.usersService=H,this.auditMessagesManagerService=i,this.registrarService=o}getMembers(P,H,i,o,f,l,a,n,t,r){return this.membersService.getMembersPage({vo:P,attrNames:H,query:{pageSize:f,offset:o*f,order:i,sortColumn:l,statuses:a,searchString:n,groupId:t,groupStatuses:r}})}getUsers(P,H,i,o,f,l,a,n,t,r,s,d){return this.usersService.getUsersPage({attrNames:P,query:{offset:o*i,pageSize:o,order:H,sortColumn:f,searchString:l,withoutVo:a,facilityId:n,voId:t,resourceId:r,serviceId:s,onlyAllowed:d}})}getAuditMessages(P,H,i){return this.auditMessagesManagerService.getMessagesPage({query:{offset:i*H,pageSize:i,order:P}})}getApplications(P,H,i,o,f,l,a,n,t,r,s,d,p){return this.registrarService.getApplicationsPage({vo:s,query:{pageSize:P,offset:H*P,order:i,sortColumn:o,searchString:l,includeGroupApplications:f,getDetails:p,states:a,dateFrom:n,dateTo:t,userId:r,groupId:d}})}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(e.uq),A.LFG(e.Fv),A.LFG(e.jw),A.LFG(e.tk))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var xe=h(61135),j=h(39646),R=h(69751),G=h(4128);class se{constructor(Ue,P){this.dynamicPaginatingService=Ue,this.authzService=P,this.allObjectCount=0,this.routeAuth=!0,this.step=1e4,this.dataSubject=new xe.X([]),this.loadingSubject=new xe.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(Ue,P,H,i,o,f,l,a,n,t){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const r=this.latestQueryTime;this.dynamicPaginatingService.getMembers(Ue,P,H,i,o,f,l,a,n,t).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(s=>{if(this.latestQueryTime<=r){const d=s.data;null!==d&&0!==d.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:Ue},d[0]])),this.allObjectCount=s.totalCount,this.dataSubject.next(d)}})}getAllMembers(Ue,P,H,i,o,f,l,a,n){return new R.y(t=>{const r=[];for(let s=0;s{const d=[].concat(...s.map(p=>p.data));t.next(d),t.complete()},error:s=>t.error(s)})})}loadUsers(Ue,P,H,i,o,f,l,a,n,t,r,s){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const d=this.latestQueryTime;this.dynamicPaginatingService.getUsers(Ue,i,H,P,o,f,l,a,n,t,r,s).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(p=>{if(this.latestQueryTime<=d){const M=p.data;this.allObjectCount=p.totalCount,this.dataSubject.next(M)}})}getAllUsers(Ue,P,H,i,o,f,l,a,n,t,r){return new R.y(s=>{const d=[];for(let p=0;p{const M=[].concat(...p.map(_e=>_e.data));s.next(M),s.complete()},error:p=>s.error(p)})})}loadAuditMessages(Ue,P,H){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const i=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(H,P,Ue).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(o=>{if(this.latestQueryTime<=i){const f=o.data;this.allObjectCount=o.totalCount,this.dataSubject.next(f)}})}getAllAuditMessages(Ue,P){return new R.y(H=>{const i=[];for(let o=0;o{const f=[].concat(...o.map(l=>l.data));H.next(f),H.complete()},error:o=>H.error(o)})})}loadApplications(Ue,P,H,i,o,f,l,a,n,t,r,s,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const p=this.latestQueryTime;this.dynamicPaginatingService.getApplications(Ue,P,H,i,f,o,l,a,n,t,s,r,d??!1).pipe((0,we.K)(()=>(0,j.of)([])),(0,v.x)(()=>this.loadingSubject.next(!1))).subscribe(M=>{if(this.latestQueryTime<=p){const _e=M.data;if(null!==_e&&0!==_e.length){const bt=_e;this.routeAuth=bt[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[bt[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[bt[0].vo])}this.allObjectCount=M.totalCount,this.dataSubject.next(_e)}})}getAllApplications(Ue,P,H,i,o,f,l,a,n,t,r,s){return new R.y(d=>{const p=[];for(let M=0;M{const _e=[].concat(...M.map(bt=>bt.data));d.next(_e),d.complete()},error:M=>d.error(M)})})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let $=(()=>{class be{constructor(P,H){this.route=P,this.store=H}getPreferredLanguage(P){const H=this.store.get("supported_languages"),i=navigator.languages.map(l=>l.split("-")[0]),o=location.search.substring(1).split("&");let f=null;for(const l of o){const a=l.split("=");"lang"===a[0]&&(f=a[1])}return f&&H.includes(f)?f:P&&H.includes(P)?P:i&&H.includes(i[0])?i[0]:"en"}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(C.gz),A.LFG(E))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var Ee=h(15861);let Oe=(()=>{class be{generatePdf(P){var H=this;return(0,Ee.Z)(function*(){yield H.loadPdfMake(),H.pdfMake.createPdf(P).open()})()}loadPdfMake(){var P=this;return(0,Ee.Z)(function*(){if(!P.pdfMake){const H=yield h.e(641).then(h.t.bind(h,54641,23)),i=yield h.e(493).then(h.t.bind(h,58493,19));P.pdfMake=H.default,P.pdfMake.vfs=i.default.pdfMake.vfs}})()}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),ct=(()=>{class be{constructor(P){this.pdfService=P}static generateTableForUser(P){const H=P.name.replace(";"," ").split(";")[0];return"OK"!==P.status?this.generateErrorRowForUser(H,P.status):be.generateRowForUser(H,P.login,P.password)}static generateErrorRowForUser(P,H){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:P,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:H,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(P,H,i){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[be.generateNameCell(P),{},be.getPasswordLabelCell(),be.generatePasswordCell(i)],[be.getLoginLabelCell(),be.generateLoginCell(H),{},{}]]}}}static generateNameCell(P){return{text:P,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(P){return{text:P??"N/A",border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(P){return{text:P??"N/A",border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(P){var H=this;return(0,Ee.Z)(function*(){const i=[];for(const f of P)i.push(be.generateTableForUser(f));return H.pdfService.generatePdf({content:i})})()}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(Oe))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})(),Xe=(()=>{class be{constructor(P){this.storeService=P}static getBrandContainingDomain(P,H){for(const i of P)if(i.newApps.admin===H||i.newApps.profile===H||i.newApps.pwdReset===H||i.newApps.consolidator===H||i.newApps.linker===H)return i;return P[0]}getUrlForOtherApplication(P,H){const o=window.location.href.split("/"),f=o[0]+"//"+o[2],l=be.getBrandContainingDomain(this.storeService.getAppsConfig().brands,f);let a;if(l.newApps[P])a=l.newApps[P],"pwdReset"===P&&(a+=`?login-namespace=${H}`);else switch(a=l.oldGuiDomain+"/fed",P){case"admin":a+="/gui/";break;case"profile":a+="/profile/";break;case"pwdReset":a+=`/pwd-reset/?login-namespace=${H}`}return a}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(E))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var _t=h(98739);let Je=(()=>{class be extends _t.ye{constructor(){super(...arguments),this.getRangeLabel=function(P,H,i){let o;return o=i<1e3?String(i):i<1e4?"1 000":i<1e5?"10 000":"100 000",`${P*H+1} \u2013 ${(P+1)*H} of ${o} +`}}}return be.\u0275fac=function(){let Ue;return function(H){return(Ue||(Ue=A.n5z(be)))(H||be)}}(),be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac}),be})(),gt=(()=>{class be{setEntity(P){this.entity=P}getEntity(){return this.entity}}return be.\u0275fac=function(P){return new(P||be)},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var Y=h(64080);let Ce=(()=>{class be{constructor(P,H,i,o,f){this.authResolver=P,this.attributesManager=H,this.notificator=i,this.apiRequest=o,this.router=f,this.routePolicies=new Map([["organizations",l=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[l])],["organizations-members",l=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[l])],["organizations-groups",l=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[l])],["organizations-resources",l=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[l])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[l])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[l])],["organizations-resources-preview",l=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[l])],["organizations-resources-tags",l=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[l])],["organizations-resources-states",l=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[l])],["organizations-applications",l=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[l])],["organizations-sponsoredMembers",l=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[l])],["organizations-serviceAccounts",l=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[l])],["organizations-attributes",l=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[l])],["organizations-statistics",l=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[l])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[l])],["organizations-settings",l=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[l])||this.authResolver.isManagerPagePrivileged(l)||this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-expiration",l=>this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["organizations-settings-applicationForm",l=>this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-notifications",l=>this.authResolver.isThisVoAdminOrObserver(l.id)],["organizations-settings-extsources",l=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[l])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",l=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[l])],["members-groups",l=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[l])],["members-applications",l=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[l])],["members-resources",l=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[l])],["members-attributes",l=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[l])],["groups",l=>this.authResolver.isAuthorized("getGroupById_int_policy",[l])],["groups-members",l=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[l])],["groups-subgroups",l=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[l])],["groups-resources",l=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[l])],["groups-applications",l=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[l])],["groups-attributes",l=>this.authResolver.isAuthorized("getGroupById_int_policy",[l])],["groups-statistics",l=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[l])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[l])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[l])],["groups-roles",l=>this.authResolver.isAuthorized("getGroupRoles_int_policy",[l])],["groups-settings",l=>this.authResolver.isManagerPagePrivileged(l)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[l])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[l])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[l])],["groups-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["groups-settings-applicationForm",l=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[l])],["groups-settings-notifications",l=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[l])],["groups-settings-relations",l=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[l])],["groups-settings-extsources",l=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[l])],["groups-settings-expiration",l=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(l.id,Y.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",l=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[l])],["resources-groups",l=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[l])],["resources-services",l=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[l])],["resources-members",l=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[l])],["resources-tags",l=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[l])],["resources-attributes",l=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[l])],["resources-settings",l=>this.authResolver.isManagerPagePrivileged(l)],["resources-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["facilities",l=>this.authResolver.isAuthorized("getFacilityById_int_policy",[l])],["facilities-resources",l=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[l])],["facilities-allowed-users",l=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[l])],["facilities-allowed-groups",l=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[l])],["facilities-services-status",l=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[l])],["services-status",l=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[l])],["facilities-services-destinations",l=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[l])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",l=>this.authResolver.isAuthorized("getFacilityById_int_policy",[l])],["facilities-settings",l=>this.authResolver.isAuthorized("getOwners_Facility_policy",[l])||this.authResolver.isManagerPagePrivileged(l)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[l])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[l])],["facilities-settings-owners",l=>this.authResolver.isAuthorized("getOwners_Facility_policy",[l])],["facilities-settings-managers",l=>this.authResolver.isManagerPagePrivileged(l)],["facilities-settings-security-teams",l=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[l])],["facilities-settings-blacklist",l=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[l])]])}canNavigate(P,H){if(P.startsWith("admin")||P.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===P&&-1===H.id)return this.authResolver.canManageFacilities();const i=this.routePolicies.get(P);return!i||i(H)}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(w),A.LFG(e.H8),A.LFG(ue),A.LFG(q),A.LFG(C.F0))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})();var ae=h(54004),re=h(63900),Se=h(4707);let Fe=(()=>{class be{constructor(P){this.authService=P,this.roleWithObjects$=new Se.t(1),this.authService.getAllRolesManagementRules().pipe((0,ae.U)(H=>H.filter(i=>i.assignableToAttributes)),(0,re.w)(H=>{const i=new Map;return H.map(o=>i.set(o.roleName,["None",...Object.keys(o.assignedObjects)])),(0,j.of)(new Map([...i.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return this.roleWithObjects$.pipe((0,re.w)(P=>(0,j.of)(Array.from(P.keys()))))}getObjects(P){return this.roleWithObjects$.pipe((0,re.w)(H=>(0,j.of)(H.get(P))))}filterNullInPolicy(){return function(P){return P.pipe((0,ae.U)(H=>(H.forEach(i=>i.policies=i.policies.filter(o=>null!==o.role&&null!==o.object)),H)))}}addAttributeId(){return function(P){return P.pipe((0,ae.U)(([H,i])=>(i.forEach(o=>o.attributeId=H),i)))}}}return be.\u0275fac=function(P){return new(P||be)(A.LFG(e.Ct))},be.\u0275prov=A.Yz7({token:be,factory:be.\u0275fac,providedIn:"root"}),be})()},64080:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>e});let e=(()=>{class c{}return c.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",c.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",c.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",c.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",c.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",c.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",c.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",c.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",c.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",c.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",c.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",c.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",c.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",c.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",c.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",c.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",c.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",c.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",c.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",c.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",c.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",c.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",c.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",c.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",c.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",c.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",c.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",c})()},9244:(Ye,pe,h)=>{"use strict";h.d(pe,{dN:()=>_,Je:()=>E,f7:()=>S.f7,l9:()=>U.l,sF:()=>S.sF,XI:()=>S.XI,Xd:()=>S.Xd,aC:()=>S.aC,fx:()=>S.fx,dv:()=>S.dv,i5:()=>S.i5,Sd:()=>S.Sd,pR:()=>S.pR,ys:()=>S.ys,O6:()=>S.O6,B2:()=>S.B2,mH:()=>S.mH,MX:()=>S.MX,oU:()=>S.oU,IL:()=>S.IL,Jc:()=>S.Jc,Xn:()=>S.Xn,kZ:()=>S.kZ,v$:()=>S.v$,x2:()=>S.x2,vL:()=>S.vL,j4:()=>S.j4,jh:()=>S.jh,bx:()=>S.bx,im:()=>S.im,zr:()=>S.zr,Hm:()=>S.Hm,Cz:()=>S.Cz,sG:()=>S.sG,g$:()=>S.g$,bD:()=>S.bD,lt:()=>S.lt,Oe:()=>S.Oe,hu:()=>S.hu,Gw:()=>S.Gw,O5:()=>S.O5,te:()=>S.te,kN:()=>S.kN,$0:()=>S.$0,OV:()=>S.OV});var e=h(98739),c=h(28255),A=h(97392),w=h(4859),g=h(89383),C=h(36895),T=h(94650);let E=(()=>{class V{}return V.\u0275fac=function(Q){return new(Q||V)},V.\u0275mod=T.oAB({type:V}),V.\u0275inj=T.cJS({imports:[e.TU,c.Tx,A.Ps,w.ot,g.aw,C.ez]}),V})();var S=h(17218),U=h(18750);class _{static passwordMatchValidator(z){const Q=z.get("passwordCtrl").value,te=z.get("passwordAgainCtrl").value;return z.get("passwordAgainCtrl").setErrors(Q!==te?{noPasswordMatch:!0}:null),null}static patternValidator(z){return Q=>{if(!Q.value)return null;let te=0;for(const oe of z)te+=oe.test(Q.value)?1:0;return te>=3?null:{isWeak:!0}}}}},17218:(Ye,pe,h)=>{"use strict";h.d(pe,{$0:()=>_,B2:()=>E,Cz:()=>oe,Gw:()=>ct,Hm:()=>Ee,IL:()=>ce,Jc:()=>Ze,MX:()=>we,O5:()=>i,O6:()=>re,OV:()=>Me,Oe:()=>Oe,Sd:()=>Y,XI:()=>q,Xd:()=>Fe,Xn:()=>ae,aC:()=>Se,bD:()=>Q,bx:()=>H,dv:()=>$,f7:()=>T,fx:()=>be,g$:()=>S,hu:()=>te,i5:()=>G,im:()=>o,j4:()=>B,jh:()=>P,kN:()=>U,kZ:()=>se,lt:()=>V,mH:()=>Ue,oU:()=>Ge,pR:()=>gt,sF:()=>W,sG:()=>_t,te:()=>le,v$:()=>he,vL:()=>L,x2:()=>Xe,ys:()=>de,zr:()=>f});var e=h(15861),c=h(65412),A=h(36895),w=h(94327),C=h(64080);const T=[5,10,25,100],E=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function S(l){let a="";return l?.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(a=n.value)}),a&&0===a.length&&null!==l.memberAttributes&&l.memberAttributes.forEach(n=>{"mail"===n.friendlyName&&null!==n.value&&(a=n.value)}),a}function U(l){let a="";return l&&l.userAttributes.forEach(n=>{"preferredMail"===n.friendlyName&&(a=n.value)}),a}function _(l){let a="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{a=a.concat(n.friendlyNameParameter,": ",n.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function V(l){let a="";return!!l&&!!l.userAttributes&&l.userAttributes.filter(n=>"login-namespace"===n.baseFriendlyName).filter(n=>null!==n.value).forEach(n=>{a=a.concat(n.friendlyNameParameter,": ",n.value,", ")}),a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function Q(l){let a="";return null!==l.titleBefore&&(a+=l.titleBefore+" "),null!==l.firstName&&(a+=l.firstName+" "),null!==l.middleName&&(a+=l.middleName+" "),null!==l.lastName&&(a+=l.lastName+" "),null!==l.titleAfter&&(a+=l.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function te(l){let a="";return null!==l.firstName&&(a+=l.firstName+" "),null!==l.middleName&&(a+=l.middleName+" "),null!==l.lastName&&(a+=l.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function oe(l){let a="";return l.split(/(?=[A-Z])/g).forEach(t=>{a=a.concat(t.toLowerCase()),a=a.concat(" ")}),a=a.charAt(0).toUpperCase()+a.slice(1,a.length-1),a}function le(l){let a="";for(const n of l)"technical"===n.type&&(a+=n.name+", ");return a.endsWith(", ")&&(a=a.substring(0,a.length-2)),a}function de(l,a){return Te.apply(this,arguments)}function Te(){return(Te=(0,e.Z)(function*(l,a){yield v(l),a()})).apply(this,arguments)}function v(l){return new Promise(a=>setTimeout(a,l))}function L(l){return JSON.parse(localStorage.getItem(l))||[]}function B(l){return JSON.parse(localStorage.getItem(l))||[]}function W(l,a){if(null===localStorage.getItem(l)){const n=[];n.unshift(a.id),localStorage.setItem(l,JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem(l)),t=function ye(l,a){for(let n=0;n0&&n.splice(t,1),0!==t&&n.unshift(a.id),n.length>5&&n.pop(),localStorage.setItem(l,JSON.stringify(n))}}function q(l,a){if(null===localStorage.getItem("recent")){let n;n="Group"===l.beanName?[{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:a}]:[{id:l.id,name:l.name,type:l.beanName,voId:l.voId}],localStorage.setItem("recent",JSON.stringify(n))}else{const n=JSON.parse(localStorage.getItem("recent"));let t;t="Group"===l.beanName?{id:l.id,name:l.shortName,fullName:l.name,type:l.beanName,voId:l.voId,voName:a}:{id:l.id,name:l.name,type:l.beanName,voId:l.voId};const r=function ue(l,a){for(let n=0;n0&&n.splice(r,1),0!==r&&n.unshift(t),n.length>5&&n.pop(),localStorage.setItem("recent",JSON.stringify(n))}}function Me(l){let a="";return l&&l.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(a=n.value)}),a}function we(l){return l.filter(a=>!a.namespace.includes("def:core"))}function Ge(l,a){const n=a.find(t=>t.id===l);return n?n.parentGroupId?Ge(n.parentGroupId,a).concat(n):[n]:[]}function ce(l,a){for(const n of l)if(n.namespace+":"+n.friendlyName===a)return n;return null}function Ze(l){return null!=l.attributes["urn:perun:member:attribute-def:def:mail"]?l.attributes["urn:perun:member:attribute-def:def:mail"]:null!=l.attributes["urn:perun:user:attribute-def:def:preferredMail"]?l.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function he(l){return l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function xe(l){if(l.includes("/CN=")){const a=l.split("/");for(const n of a)if(n.startsWith("CN="))return j(n.substring(3))}return l}(l.userExtSource.extSource.name):l.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function R(l){switch(l){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return l}}(l.userExtSource.extSource.name):l.userExtSource.extSource.name}function j(l){return decodeURIComponent(l.replace(/\\x/g,"%"))}function G(l=["en","cs"]){const a={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return l.forEach(n=>{a.message[n]={locale:n,htmlFormat:!1,subject:"",text:""},a.htmlMessage[n]={locale:n,htmlFormat:!0,subject:"",text:""}}),a}function se(){const l=new c.vA;return l.disableClose=!0,l.autoFocus=!1,l}function $(l){const a={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const n of l)a.i18n[n]={locale:n,errorMessage:"",help:"",label:"",options:""};return a}function Ee(l){return"virt"===l.namespace.split(":")[4]}function Oe(l,a){return"valid"!==l.toLowerCase()||a&&"valid"!==l.toLowerCase()?l:"ACTIVE"}function ct(l){let a="";return l?.memberAttributes.forEach(n=>{"organization"===n.friendlyName&&null!==n.value&&(a=n.value)}),0===a.length&&l?.userAttributes.forEach(n=>{"organization"===n.friendlyName&&(a=n.value)}),a}function Xe(l){return l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName)?.value??"Never"}function _t(l){return l&&"never"!==l.toLowerCase()?(0,A.p6)(l,"d.M.yyyy","en"):l}const Je=new Intl.Collator("cs",{numeric:!0});function gt(l,a,n){const t=a.active,r=a.direction;return t&&""!==r?l.sort((s,d)=>{const p=n(s,t),M=n(d,t);return Je.compare(p,M)*("asc"===r?1:-1)}):l}function Y(l,a,n,t,r){a=a.toLowerCase();let s="";return n.forEach(d=>{s+=";"+t(l,d)}),r&&(s+=";"+t(l,"uuid")),s.toLowerCase().includes(a)}function ae(l,a,n){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(s=>!r.includes(s)),l.forEach(s=>{const d={};a.forEach(p=>{d[p]=(n(s,p)??"").split('"').join("''").trim()}),t.push(d)}),t}function re(l,a="csv",n="export"){if("csv"===a){const t=(M,_e)=>null===_e?"":_e,r=Object.keys(l[0]),s=l.map(M=>r.map(_e=>JSON.stringify(M[_e],t)).join(","));s.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=s.join("\r\n"),p=new Blob([d],{type:"text/csv"});(0,w.saveAs)(p,`${n}.${a}`)}}function Se(l,a){return l.name.toLowerCase()>a.name.toLowerCase()?1:l.name.toLowerCase()===a.name.toLowerCase()?0:-1}function Fe(l,a){return l.displayName.toLowerCase()>a.displayName.toLowerCase()?1:l.displayName.toLowerCase()===a.displayName.toLowerCase()?0:-1}function be(l,a){let n,t;return l.user?(n=l.user.lastName?l.user.lastName:l.user.firstName??"",t=a.user.lastName?a.user.lastName:a.user.firstName??""):(n=l.lastName?l.lastName:l.firstName??"",t=a.lastName?a.lastName:a.firstName??""),n>t?1:n===t?0:-1}function Ue(l,a,n=[]){l.enable(),l.clearValidators(),l.clearAsyncValidators(),l.setValidators(a),l.setAsyncValidators(n),l.updateValueAndValidity()}function P(l,a){return!!l&&l.some(n=>n.namespace+":"+n.friendlyName===a&&null!==n.value&&"true"===String(n.value))}function H(l){return P(l.attributes,C.r.GROUP_SYNC_ENABLED)||P(l.attributes,C.r.GROUP_STRUCTURE_SYNC_ENABLED)}function i(l,a){const n=a.split("&");for(const t of n){const[r,s]=t.split("=");if(r.includes(l))return s}return""}function o(l){if("INDIRECT"===l.membershipType)return!0;const a=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return!!a&&!a.value}function f(l){if("INDIRECT"===l.membershipType)return"INDIRECT";const a=l.memberAttributes?.find(n=>"isLifecycleAlterable"===n.friendlyName);return a?a.value?"DIRECT":"UNALTERABLE":"UNKNOWN"}},18750:(Ye,pe,h)=>{"use strict";h.d(pe,{l:()=>te});var e=h(94650),c=h(98739),A=h(17218),w=h(10036),g=h(36895),C=h(28255),T=h(97392),E=h(4859),S=h(89383);function U(oe,ee){if(1&oe){const le=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){e.CHM(le);const Te=e.oxw();return e.KtG(Te.exportAllData.emit("csv"))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&oe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let _=(()=>{class oe{constructor(){this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe}}return oe.\u0275fac=function(le){return new(le||oe)},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(le,de){if(1&le&&(e.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA()(),e.TgZ(4,"mat-menu",null,2)(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-menu",null,4)(11,"button",3),e._uU(12,"Csv"),e.qZA()(),e.TgZ(13,"mat-menu",5,6)(15,"button",7),e.NdJ("click",function(){return de.exportDisplayedData.emit("csv")}),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.YNc(18,U,3,3,"button",8),e.qZA()()),2&le){const Te=e.MAs(5),v=e.MAs(10),L=e.MAs(14);e.xp6(1),e.Q6J("matMenuTriggerFor",Te),e.xp6(5),e.Q6J("matMenuTriggerFor",v),e.xp6(1),e.hij(" ",e.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),e.xp6(4),e.Q6J("matMenuTriggerFor",L),e.xp6(5),e.hij(" ",e.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),e.xp6(2),e.Q6J("ngIf",de.allowExportAll)}},dependencies:[C.VK,C.OP,C.p6,T.Hw,E.lW,g.O5,S.X$]}),oe})();function V(oe,ee){if(1&oe){const le=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportDisplayedData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(Te))})("exportAllData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportAllData.emit(Te))}),e.qZA()}if(2&oe){const le=e.oxw();e.Q6J("allowExportAll",le.allowExportAll)}}function z(oe,ee){if(1&oe){const le=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportDisplayedData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportDisplayedData.emit(Te))})("exportAllData",function(Te){e.CHM(le);const v=e.oxw();return e.KtG(v.exportAllData.emit(Te))}),e.qZA()}if(2&oe){const le=e.oxw();e.Q6J("allowExportAll",le.allowExportAll)}}const Q=["*"];let te=(()=>{class oe{constructor(le){this.tableConfigService=le,this.hideExport=!1,this.pageSizeOptions=A.f7,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new e.vpe,this.exportAllData=new e.vpe,this.pageSize=5}set matPaginator(le){this.paginator=le}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(le){this.pageSize=le.pageSize,this.tableConfigService.setTablePageSize(this.tableId,le.pageSize)}pageChangedBottom(le){this.paginator.pageSize=le.pageSize,this.paginator.pageIndex=le.pageIndex,this.paginator.page.emit(le),this.pageSize=le.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,le.pageSize)}}return oe.\u0275fac=function(le){return new(le||oe)(e.Y36(w.dB))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(le,de){if(1&le&&e.Gf(c.NW,7),2&le){let Te;e.iGM(Te=e.CRH())&&(de.matPaginator=Te.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:Q,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(le,de){1&le&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),e.NdJ("page",function(v){return de.pageChangedTop(v)}),e.qZA(),e.YNc(3,V,1,1,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1)(7,"mat-paginator",5),e.NdJ("page",function(v){return de.pageChangedBottom(v)}),e.qZA(),e.YNc(8,z,1,1,"perun-web-apps-table-options",3),e.qZA()()),2&le&&(e.xp6(2),e.Q6J("length",de.dataLength)("pageSizeOptions",de.pageSizeOptions)("pageSize",de.pageSize),e.xp6(1),e.Q6J("ngIf",!de.hideExport),e.xp6(4),e.Q6J("length",de.paginator.length)("pageIndex",de.paginator.pageIndex)("pageSizeOptions",de.paginator.pageSizeOptions)("pageSize",de.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!de.hideExport))},dependencies:[c.NW,g.O5,_]}),oe})()},98380:(Ye,pe,h)=>{"use strict";h.d(pe,{w:()=>S});var e=h(94650),c=h(97392),A=h(36895);function w(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function C(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function T(U,_){1&U&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const E=["*"];let S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275cmp=e.Xpm({type:U,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:E,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(V,z){1&V&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,w,2,0,"mat-icon",1),e.YNc(2,g,2,0,"mat-icon",1),e.YNc(3,C,2,0,"mat-icon",1),e.YNc(4,T,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&V&&(e.ekj("warn-alert","warn"===z.alert_type)("error-alert","error"===z.alert_type)("success-alert","success"===z.alert_type)("info-alert","info"===z.alert_type),e.xp6(1),e.Q6J("ngIf","info"===z.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===z.alert_type),e.xp6(1),e.Q6J("ngIf","error"===z.alert_type),e.xp6(1),e.Q6J("ngIf","success"===z.alert_type))},dependencies:[c.Hw,A.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),U})()},63189:(Ye,pe,h)=>{"use strict";h.d(pe,{r:()=>w});var e=h(97392),c=h(36895),A=h(94650);let w=(()=>{class g{}return g.\u0275fac=function(T){return new(T||g)},g.\u0275mod=A.oAB({type:g}),g.\u0275inj=A.cJS({imports:[e.Ps,c.ez]}),g})()},57882:(Ye,pe,h)=>{"use strict";h.d(pe,{C:()=>f});var e=h(36895),c=h(4859),A=h(73546),w=h(56709),g=h(65412),C=h(44850),T=h(37084),E=h(59549),S=h(94650),U=h(3238);let Ze=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[U.uc,U.BQ,U.uc,U.BQ]}),l})();var xe=h(97392),j=h(284),R=h(51572),G=h(86257),se=h(30671),$=h(67376),Ee=h(24006),Oe=h(99602),ct=h(23267),Xe=h(96338),_t=h(28255);let Se=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[U.BQ,U.BQ]}),l})();var Fe=h(96308),be=h(98739),Ue=h(10266),P=h(84385),H=h(3848),i=h(90455),o=h(77331);let f=(()=>{class l{}return l.\u0275fac=function(n){return new(n||l)},l.\u0275mod=S.oAB({type:l}),l.\u0275inj=S.cJS({imports:[e.ez,A.QW,C.t,T.To,c.ot,Ze,w.p9,xe.Ps,se.p0,g.Is,R.Cq,E.lN,j.c,$.Cl,Ee.u5,Ee.UX,G.T5,Oe.FA,U.XK,ct.SJ,Xe.ie,_t.Tx,Se,Fe.JX,be.TU,Ue.AV,P.LD,U.si,se.p0,i.rP,o.Hi,A.QW,C.t,T.To,c.ot,Ze,w.p9,xe.Ps,se.p0,g.Is,R.Cq,E.lN,j.c,$.Cl,Ee.u5,Ee.UX,G.T5,Oe.FA,U.XK,ct.SJ,Xe.ie,_t.Tx,Se,Fe.JX,be.TU,Ue.AV,P.LD,U.si,H.Nh,i.rP,o.Hi]}),l})()},71345:Ye=>{var w=.1,g="function"==typeof Float32Array;function C(Q,te){return 1-3*te+3*Q}function T(Q,te){return 3*te-6*Q}function E(Q){return 3*Q}function S(Q,te,oe){return((C(te,oe)*Q+T(te,oe))*Q+E(te))*Q}function U(Q,te,oe){return 3*C(te,oe)*Q*Q+2*T(te,oe)*Q+E(te)}function z(Q){return Q}Ye.exports=function(te,oe,ee,le){if(!(0<=te&&te<=1&&0<=ee&&ee<=1))throw new Error("bezier x values must be in [0, 1] range");if(te===oe&&ee===le)return z;for(var de=g?new Float32Array(11):new Array(11),Te=0;Te<11;++Te)de[Te]=S(Te*w,te,ee);return function(B){return 0===B?0:1===B?1:S(function v(L){for(var B=0,W=1;10!==W&&de[W]<=L;++W)B+=w;--W;var ye=B+(L-de[W])/(de[W+1]-de[W])*w,Me=U(ye,te,ee);return Me>=.001?function V(Q,te,oe,ee){for(var le=0;le<4;++le){var de=U(te,oe,ee);if(0===de)return te;te-=(S(te,oe,ee)-Q)/de}return te}(L,ye,te,ee):0===Me?ye:function _(Q,te,oe,ee,le){var de,Te,v=0;do{(de=S(Te=te+(oe-te)/2,ee,le)-Q)>0?oe=Te:te=Te}while(Math.abs(de)>1e-7&&++v<10);return Te}(L,B,B+w,te,ee)}(B),oe,le)}}},1302:function(Ye,pe,h){var e;!function(c,A){var w={};!function(c){"use strict";c.__esModule=!0,c.digestLength=32,c.blockSize=64;var A=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function w(z,Q,te,oe,ee){for(var le,de,Te,v,L,B,W,q,ue,ye,Me,we,Ge;ee>=64;){for(le=Q[0],de=Q[1],Te=Q[2],v=Q[3],L=Q[4],B=Q[5],W=Q[6],q=Q[7],ye=0;ye<16;ye++)z[ye]=(255&te[Me=oe+4*ye])<<24|(255&te[Me+1])<<16|(255&te[Me+2])<<8|255&te[Me+3];for(ye=16;ye<64;ye++)z[ye]=((we=((ue=z[ye-2])>>>17|ue<<15)^(ue>>>19|ue<<13)^ue>>>10)+z[ye-7]|0)+((Ge=((ue=z[ye-15])>>>7|ue<<25)^(ue>>>18|ue<<14)^ue>>>3)+z[ye-16]|0);for(ye=0;ye<64;ye++)we=(((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&B^~L&W)|0)+(q+(A[ye]+z[ye]|0)|0)|0,Ge=((le>>>2|le<<30)^(le>>>13|le<<19)^(le>>>22|le<<10))+(le&de^le&Te^de&Te)|0,q=W,W=B,B=L,L=v+we|0,v=Te,Te=de,de=le,le=we+Ge|0;Q[0]+=le,Q[1]+=de,Q[2]+=Te,Q[3]+=v,Q[4]+=L,Q[5]+=B,Q[6]+=W,Q[7]+=q,oe+=64,ee-=64}return oe}var g=function(){function z(){this.digestLength=c.digestLength,this.blockSize=c.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return z.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},z.prototype.clean=function(){for(var Q=0;Q0){for(;this.bufferLength<64&&te>0;)this.buffer[this.bufferLength++]=Q[oe++],te--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(te>=64&&(oe=w(this.temp,this.state,Q,oe,te),te%=64);te>0;)this.buffer[this.bufferLength++]=Q[oe++],te--;return this},z.prototype.finish=function(Q){if(!this.finished){var te=this.bytesHashed,oe=this.bufferLength,ee=te/536870912|0,le=te<<3,de=te%64<56?64:128;this.buffer[oe]=128;for(var Te=oe+1;Te>>24&255,this.buffer[de-7]=ee>>>16&255,this.buffer[de-6]=ee>>>8&255,this.buffer[de-5]=ee>>>0&255,this.buffer[de-4]=le>>>24&255,this.buffer[de-3]=le>>>16&255,this.buffer[de-2]=le>>>8&255,this.buffer[de-1]=le>>>0&255,w(this.temp,this.state,this.buffer,0,de),this.finished=!0}for(Te=0;Te<8;Te++)Q[4*Te+0]=this.state[Te]>>>24&255,Q[4*Te+1]=this.state[Te]>>>16&255,Q[4*Te+2]=this.state[Te]>>>8&255,Q[4*Te+3]=this.state[Te]>>>0&255;return this},z.prototype.digest=function(){var Q=new Uint8Array(this.digestLength);return this.finish(Q),Q},z.prototype._saveState=function(Q){for(var te=0;tethis.blockSize)(new g).update(Q).finish(te).clean();else for(var oe=0;oe1&&Q.update(z),te&&Q.update(te),Q.update(oe),Q.finish(z),oe[0]++}c.HMAC=C,c.hash=T,c.default=T,c.hmac=E;var U=new Uint8Array(c.digestLength);c.hkdf=function _(z,Q,te,oe){void 0===Q&&(Q=U),void 0===oe&&(oe=32);for(var ee=new Uint8Array([1]),le=E(Q,z),de=new C(le),Te=new Uint8Array(de.digestLength),v=Te.length,L=new Uint8Array(oe),B=0;B>>24&255,de[1]=W>>>16&255,de[2]=W>>>8&255,de[3]=W>>>0&255,ee.reset(),ee.update(Q),ee.update(de),ee.finish(v);for(var q=0;q=_.status}function C(U){try{U.dispatchEvent(new MouseEvent("click"))}catch{var _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),U.dispatchEvent(_)}}var T="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,E=T.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),S=T.saveAs||("object"!=typeof window||window!==T?function(){}:"download"in HTMLAnchorElement.prototype&&!E?function(U,_,V){var z=T.URL||T.webkitURL,Q=document.createElement("a");Q.download=_=_||U.name||"download",Q.rel="noopener","string"==typeof U?(Q.href=U,Q.origin===location.origin?C(Q):g(Q.href)?w(U,_,V):C(Q,Q.target="_blank")):(Q.href=z.createObjectURL(U),setTimeout(function(){z.revokeObjectURL(Q.href)},4e4),setTimeout(function(){C(Q)},0))}:"msSaveOrOpenBlob"in navigator?function(U,_,V){if(_=_||U.name||"download","string"!=typeof U)navigator.msSaveOrOpenBlob(function A(U,_){return typeof _>"u"?_={autoBom:!1}:"object"!=typeof _&&(console.warn("Deprecated: Expected third argument to be a object"),_={autoBom:!_}),_.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(U.type)?new Blob(["\ufeff",U],{type:U.type}):U}(U,V),_);else if(g(U))w(U,_,V);else{var z=document.createElement("a");z.href=U,z.target="_blank",setTimeout(function(){C(z)})}}:function(U,_,V,z){if((z=z||open("","_blank"))&&(z.document.title=z.document.body.innerText="downloading..."),"string"==typeof U)return w(U,_,V);var Q="application/octet-stream"===U.type,te=/constructor/i.test(T.HTMLElement)||T.safari,oe=/CriOS\/[\d]+/.test(navigator.userAgent);if((oe||Q&&te||E)&&typeof FileReader<"u"){var ee=new FileReader;ee.onloadend=function(){var Te=ee.result;Te=oe?Te:Te.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=Te:location=Te,z=null},ee.readAsDataURL(U)}else{var le=T.URL||T.webkitURL,de=le.createObjectURL(U);z?z.location=de:location.href=de,z=null,setTimeout(function(){le.revokeObjectURL(de)},4e4)}});T.saveAs=S.saveAs=S,Ye.exports=S}.apply(pe,[]))&&(Ye.exports=c)},61135:(Ye,pe,h)=>{"use strict";h.d(pe,{X:()=>c});var e=h(77579);class c extends e.x{constructor(w){super(),this._value=w}get value(){return this.getValue()}_subscribe(w){const g=super._subscribe(w);return!g.closed&&w.next(this._value),g}getValue(){const{hasError:w,thrownError:g,_value:C}=this;if(w)throw g;return this._throwIfClosed(),C}next(w){super.next(this._value=w)}}},69751:(Ye,pe,h)=>{"use strict";h.d(pe,{y:()=>E});var e=h(70930),c=h(50727),A=h(48822),w=h(89635),g=h(42416),C=h(30576),T=h(72806);let E=(()=>{class V{constructor(Q){Q&&(this._subscribe=Q)}lift(Q){const te=new V;return te.source=this,te.operator=Q,te}subscribe(Q,te,oe){const ee=function _(V){return V&&V instanceof e.Lv||function U(V){return V&&(0,C.m)(V.next)&&(0,C.m)(V.error)&&(0,C.m)(V.complete)}(V)&&(0,c.Nn)(V)}(Q)?Q:new e.Hp(Q,te,oe);return(0,T.x)(()=>{const{operator:le,source:de}=this;ee.add(le?le.call(ee,de):de?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(Q){try{return this._subscribe(Q)}catch(te){Q.error(te)}}forEach(Q,te){return new(te=S(te))((oe,ee)=>{const le=new e.Hp({next:de=>{try{Q(de)}catch(Te){ee(Te),le.unsubscribe()}},error:ee,complete:oe});this.subscribe(le)})}_subscribe(Q){var te;return null===(te=this.source)||void 0===te?void 0:te.subscribe(Q)}[A.L](){return this}pipe(...Q){return(0,w.U)(Q)(this)}toPromise(Q){return new(Q=S(Q))((te,oe)=>{let ee;this.subscribe(le=>ee=le,le=>oe(le),()=>te(ee))})}}return V.create=z=>new V(z),V})();function S(V){var z;return null!==(z=V??g.v.Promise)&&void 0!==z?z:Promise}},4707:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>A});var e=h(77579),c=h(26063);class A extends e.x{constructor(g=1/0,C=1/0,T=c.l){super(),this._bufferSize=g,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,g),this._windowTime=Math.max(1,C)}next(g){const{isStopped:C,_buffer:T,_infiniteTimeWindow:E,_timestampProvider:S,_windowTime:U}=this;C||(T.push(g),!E&&T.push(S.now()+U)),this._trimBuffer(),super.next(g)}_subscribe(g){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(g),{_infiniteTimeWindow:T,_buffer:E}=this,S=E.slice();for(let U=0;U{"use strict";h.d(pe,{x:()=>T});var e=h(69751),c=h(50727);const w=(0,h(83888).d)(S=>function(){S(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var g=h(38737),C=h(72806);let T=(()=>{class S extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_){const V=new E(this,this);return V.operator=_,V}_throwIfClosed(){if(this.closed)throw new w}next(_){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const V of this.currentObservers)V.next(_)}})}error(_){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_;const{observers:V}=this;for(;V.length;)V.shift().error(_)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_}=this;for(;_.length;)_.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _;return(null===(_=this.observers)||void 0===_?void 0:_.length)>0}_trySubscribe(_){return this._throwIfClosed(),super._trySubscribe(_)}_subscribe(_){return this._throwIfClosed(),this._checkFinalizedStatuses(_),this._innerSubscribe(_)}_innerSubscribe(_){const{hasError:V,isStopped:z,observers:Q}=this;return V||z?c.Lc:(this.currentObservers=null,Q.push(_),new c.w0(()=>{this.currentObservers=null,(0,g.P)(Q,_)}))}_checkFinalizedStatuses(_){const{hasError:V,thrownError:z,isStopped:Q}=this;V?_.error(z):Q&&_.complete()}asObservable(){const _=new e.y;return _.source=this,_}}return S.create=(U,_)=>new E(U,_),S})();class E extends T{constructor(U,_){super(),this.destination=U,this.source=_}next(U){var _,V;null===(V=null===(_=this.destination)||void 0===_?void 0:_.next)||void 0===V||V.call(_,U)}error(U){var _,V;null===(V=null===(_=this.destination)||void 0===_?void 0:_.error)||void 0===V||V.call(_,U)}complete(){var U,_;null===(_=null===(U=this.destination)||void 0===U?void 0:U.complete)||void 0===_||_.call(U)}_subscribe(U){var _,V;return null!==(V=null===(_=this.source)||void 0===_?void 0:_.subscribe(U))&&void 0!==V?V:c.Lc}}},70930:(Ye,pe,h)=>{"use strict";h.d(pe,{Hp:()=>oe,Lv:()=>V});var e=h(30576),c=h(50727),A=h(42416),w=h(87849),g=h(25032);const C=S("C",void 0,void 0);function S(v,L,B){return{kind:v,value:L,error:B}}var U=h(43410),_=h(72806);class V extends c.w0{constructor(L){super(),this.isStopped=!1,L?(this.destination=L,(0,c.Nn)(L)&&L.add(this)):this.destination=Te}static create(L,B,W){return new oe(L,B,W)}next(L){this.isStopped?de(function E(v){return S("N",v,void 0)}(L),this):this._next(L)}error(L){this.isStopped?de(function T(v){return S("E",void 0,v)}(L),this):(this.isStopped=!0,this._error(L))}complete(){this.isStopped?de(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(L){this.destination.next(L)}_error(L){try{this.destination.error(L)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const z=Function.prototype.bind;function Q(v,L){return z.call(v,L)}class te{constructor(L){this.partialObserver=L}next(L){const{partialObserver:B}=this;if(B.next)try{B.next(L)}catch(W){ee(W)}}error(L){const{partialObserver:B}=this;if(B.error)try{B.error(L)}catch(W){ee(W)}else ee(L)}complete(){const{partialObserver:L}=this;if(L.complete)try{L.complete()}catch(B){ee(B)}}}class oe extends V{constructor(L,B,W){let q;if(super(),(0,e.m)(L)||!L)q={next:L??void 0,error:B??void 0,complete:W??void 0};else{let ue;this&&A.v.useDeprecatedNextContext?(ue=Object.create(L),ue.unsubscribe=()=>this.unsubscribe(),q={next:L.next&&Q(L.next,ue),error:L.error&&Q(L.error,ue),complete:L.complete&&Q(L.complete,ue)}):q=L}this.destination=new te(q)}}function ee(v){A.v.useDeprecatedSynchronousErrorHandling?(0,_.O)(v):(0,w.h)(v)}function de(v,L){const{onStoppedNotification:B}=A.v;B&&U.z.setTimeout(()=>B(v,L))}const Te={closed:!0,next:g.Z,error:function le(v){throw v},complete:g.Z}},50727:(Ye,pe,h)=>{"use strict";h.d(pe,{Lc:()=>C,w0:()=>g,Nn:()=>T});var e=h(30576);const A=(0,h(83888).d)(S=>function(_){S(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((V,z)=>`${z+1}) ${V.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_});var w=h(38737);class g{constructor(U){this.initialTeardown=U,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let U;if(!this.closed){this.closed=!0;const{_parentage:_}=this;if(_)if(this._parentage=null,Array.isArray(_))for(const Q of _)Q.remove(this);else _.remove(this);const{initialTeardown:V}=this;if((0,e.m)(V))try{V()}catch(Q){U=Q instanceof A?Q.errors:[Q]}const{_finalizers:z}=this;if(z){this._finalizers=null;for(const Q of z)try{E(Q)}catch(te){U=U??[],te instanceof A?U=[...U,...te.errors]:U.push(te)}}if(U)throw new A(U)}}add(U){var _;if(U&&U!==this)if(this.closed)E(U);else{if(U instanceof g){if(U.closed||U._hasParent(this))return;U._addParent(this)}(this._finalizers=null!==(_=this._finalizers)&&void 0!==_?_:[]).push(U)}}_hasParent(U){const{_parentage:_}=this;return _===U||Array.isArray(_)&&_.includes(U)}_addParent(U){const{_parentage:_}=this;this._parentage=Array.isArray(_)?(_.push(U),_):_?[_,U]:U}_removeParent(U){const{_parentage:_}=this;_===U?this._parentage=null:Array.isArray(_)&&(0,w.P)(_,U)}remove(U){const{_finalizers:_}=this;_&&(0,w.P)(_,U),U instanceof g&&U._removeParent(this)}}g.EMPTY=(()=>{const S=new g;return S.closed=!0,S})();const C=g.EMPTY;function T(S){return S instanceof g||S&&"closed"in S&&(0,e.m)(S.remove)&&(0,e.m)(S.add)&&(0,e.m)(S.unsubscribe)}function E(S){(0,e.m)(S)?S():S.unsubscribe()}},42416:(Ye,pe,h)=>{"use strict";h.d(pe,{v:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},39841:(Ye,pe,h)=>{"use strict";h.d(pe,{a:()=>U});var e=h(69751),c=h(54742),A=h(32076),w=h(44671),g=h(83268),C=h(63269),T=h(31810),E=h(25403),S=h(39672);function U(...z){const Q=(0,C.yG)(z),te=(0,C.jO)(z),{args:oe,keys:ee}=(0,c.D)(z);if(0===oe.length)return(0,A.D)([],Q);const le=new e.y(function _(z,Q,te=w.y){return oe=>{V(Q,()=>{const{length:ee}=z,le=new Array(ee);let de=ee,Te=ee;for(let v=0;v{const L=(0,A.D)(z[v],Q);let B=!1;L.subscribe((0,E.x)(oe,W=>{le[v]=W,B||(B=!0,Te--),Te||oe.next(te(le.slice()))},()=>{--de||oe.complete()}))},oe)},oe)}}(oe,Q,ee?de=>(0,T.n)(ee,de):w.y));return te?le.pipe((0,g.Z)(te)):le}function V(z,Q,te){z?(0,S.f)(te,z,Q):Q()}},97272:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>g});var e=h(8189),A=h(63269),w=h(32076);function g(...C){return function c(){return(0,e.J)(1)}()((0,w.D)(C,(0,A.yG)(C)))}},49770:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>A});var e=h(69751),c=h(38421);function A(w){return new e.y(g=>{(0,c.Xf)(w()).subscribe(g)})}},60515:(Ye,pe,h)=>{"use strict";h.d(pe,{E:()=>c});const c=new(h(69751).y)(g=>g.complete())},4128:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>E});var e=h(69751),c=h(54742),A=h(38421),w=h(63269),g=h(25403),C=h(83268),T=h(31810);function E(...S){const U=(0,w.jO)(S),{args:_,keys:V}=(0,c.D)(S),z=new e.y(Q=>{const{length:te}=_;if(!te)return void Q.complete();const oe=new Array(te);let ee=te,le=te;for(let de=0;de{Te||(Te=!0,le--),oe[de]=v},()=>ee--,void 0,()=>{(!ee||!Te)&&(le||Q.next(V?(0,T.n)(V,oe):oe),Q.complete())}))}});return U?z.pipe((0,C.Z)(U)):z}},32076:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>W});var e=h(38421),c=h(39672),A=h(54482),w=h(25403);function g(q,ue=0){return(0,A.e)((ye,Me)=>{ye.subscribe((0,w.x)(Me,we=>(0,c.f)(Me,q,()=>Me.next(we),ue),()=>(0,c.f)(Me,q,()=>Me.complete(),ue),we=>(0,c.f)(Me,q,()=>Me.error(we),ue)))})}function C(q,ue=0){return(0,A.e)((ye,Me)=>{Me.add(q.schedule(()=>ye.subscribe(Me),ue))})}var S=h(69751),_=h(2202),V=h(30576);function Q(q,ue){if(!q)throw new Error("Iterable cannot be null");return new S.y(ye=>{(0,c.f)(ye,ue,()=>{const Me=q[Symbol.asyncIterator]();(0,c.f)(ye,ue,()=>{Me.next().then(we=>{we.done?ye.complete():ye.next(we.value)})},0,!0)})})}var te=h(93670),oe=h(28239),ee=h(81144),le=h(26495),de=h(12206),Te=h(44532),v=h(53260);function W(q,ue){return ue?function B(q,ue){if(null!=q){if((0,te.c)(q))return function T(q,ue){return(0,e.Xf)(q).pipe(C(ue),g(ue))}(q,ue);if((0,ee.z)(q))return function U(q,ue){return new S.y(ye=>{let Me=0;return ue.schedule(function(){Me===q.length?ye.complete():(ye.next(q[Me++]),ye.closed||this.schedule())})})}(q,ue);if((0,oe.t)(q))return function E(q,ue){return(0,e.Xf)(q).pipe(C(ue),g(ue))}(q,ue);if((0,de.D)(q))return Q(q,ue);if((0,le.T)(q))return function z(q,ue){return new S.y(ye=>{let Me;return(0,c.f)(ye,ue,()=>{Me=q[_.h](),(0,c.f)(ye,ue,()=>{let we,Ge;try{({value:we,done:Ge}=Me.next())}catch(ce){return void ye.error(ce)}Ge?ye.complete():ye.next(we)},0,!0)}),()=>(0,V.m)(Me?.return)&&Me.return()})}(q,ue);if((0,v.L)(q))return function L(q,ue){return Q((0,v.Q)(q),ue)}(q,ue)}throw(0,Te.z)(q)}(q,ue):(0,e.Xf)(q)}},54968:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>U});var e=h(38421),c=h(69751),A=h(86099),w=h(81144),g=h(30576),C=h(83268);const T=["addListener","removeListener"],E=["addEventListener","removeEventListener"],S=["on","off"];function U(te,oe,ee,le){if((0,g.m)(ee)&&(le=ee,ee=void 0),le)return U(te,oe,ee).pipe((0,C.Z)(le));const[de,Te]=function Q(te){return(0,g.m)(te.addEventListener)&&(0,g.m)(te.removeEventListener)}(te)?E.map(v=>L=>te[v](oe,L,ee)):function V(te){return(0,g.m)(te.addListener)&&(0,g.m)(te.removeListener)}(te)?T.map(_(te,oe)):function z(te){return(0,g.m)(te.on)&&(0,g.m)(te.off)}(te)?S.map(_(te,oe)):[];if(!de&&(0,w.z)(te))return(0,A.z)(v=>U(v,oe,ee))((0,e.Xf)(te));if(!de)throw new TypeError("Invalid event target");return new c.y(v=>{const L=(...B)=>v.next(1Te(L)})}function _(te,oe){return ee=>le=>te[ee](oe,le)}},38421:(Ye,pe,h)=>{"use strict";h.d(pe,{Xf:()=>z});var e=h(70655),c=h(81144),A=h(28239),w=h(69751),g=h(93670),C=h(12206),T=h(44532),E=h(26495),S=h(53260),U=h(30576),_=h(87849),V=h(48822);function z(v){if(v instanceof w.y)return v;if(null!=v){if((0,g.c)(v))return function Q(v){return new w.y(L=>{const B=v[V.L]();if((0,U.m)(B.subscribe))return B.subscribe(L);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(v);if((0,c.z)(v))return function te(v){return new w.y(L=>{for(let B=0;B{v.then(B=>{L.closed||(L.next(B),L.complete())},B=>L.error(B)).then(null,_.h)})}(v);if((0,C.D)(v))return le(v);if((0,E.T)(v))return function ee(v){return new w.y(L=>{for(const B of v)if(L.next(B),L.closed)return;L.complete()})}(v);if((0,S.L)(v))return function de(v){return le((0,S.Q)(v))}(v)}throw(0,T.z)(v)}function le(v){return new w.y(L=>{(function Te(v,L){var B,W,q,ue;return(0,e.mG)(this,void 0,void 0,function*(){try{for(B=(0,e.KL)(v);!(W=yield B.next()).done;)if(L.next(W.value),L.closed)return}catch(ye){q={error:ye}}finally{try{W&&!W.done&&(ue=B.return)&&(yield ue.call(B))}finally{if(q)throw q.error}}L.complete()})})(v,L).catch(B=>L.error(B))})}},17445:(Ye,pe,h)=>{"use strict";h.d(pe,{F:()=>A});var e=h(34986),c=h(82805);function A(w=0,g=e.z){return w<0&&(w=0),(0,c.H)(w,w,g)}},56451:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>C});var e=h(8189),c=h(38421),A=h(60515),w=h(63269),g=h(32076);function C(...T){const E=(0,w.yG)(T),S=(0,w._6)(T,1/0),U=T;return U.length?1===U.length?(0,c.Xf)(U[0]):(0,e.J)(S)((0,g.D)(U,E)):A.E}},39646:(Ye,pe,h)=>{"use strict";h.d(pe,{of:()=>A});var e=h(63269),c=h(32076);function A(...w){const g=(0,e.yG)(w);return(0,c.D)(w,g)}},54355:(Ye,pe,h)=>{"use strict";h.d(pe,{S:()=>g});var e=h(69751),c=h(38421),A=h(75797),w=h(25403);function g(...T){return 1===(T=(0,A.k)(T)).length?(0,c.Xf)(T[0]):new e.y(function C(T){return E=>{let S=[];for(let U=0;S&&!E.closed&&U{if(S){for(let V=0;V{"use strict";h.d(pe,{_:()=>A});var e=h(69751),c=h(30576);function A(w,g){const C=(0,c.m)(w)?w:()=>w,T=E=>E.error(C());return new e.y(g?E=>g.schedule(T,0,E):T)}},82805:(Ye,pe,h)=>{"use strict";h.d(pe,{H:()=>g});var e=h(69751),c=h(34986),A=h(93532),w=h(51165);function g(C=0,T,E=c.P){let S=-1;return null!=T&&((0,A.K)(T)?E=T:S=T),new e.y(U=>{let _=(0,w.q)(C)?+C-E.now():C;_<0&&(_=0);let V=0;return E.schedule(function(){U.closed||(U.next(V++),0<=S?this.schedule(void 0,S):U.complete())},_)})}},25403:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>c});var e=h(70930);function c(w,g,C,T,E){return new A(w,g,C,T,E)}class A extends e.Lv{constructor(g,C,T,E,S,U){super(g),this.onFinalize=S,this.shouldUnsubscribe=U,this._next=C?function(_){try{C(_)}catch(V){g.error(V)}}:super._next,this._error=E?function(_){try{E(_)}catch(V){g.error(V)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(_){g.error(_)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var g;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(g=this.onFinalize)||void 0===g||g.call(this))}}}},23601:(Ye,pe,h)=>{"use strict";h.d(pe,{e:()=>T});var e=h(34986),c=h(54482),A=h(38421),w=h(25403),C=h(82805);function T(E,S=e.z){return function g(E){return(0,c.e)((S,U)=>{let _=!1,V=null,z=null,Q=!1;const te=()=>{if(z?.unsubscribe(),z=null,_){_=!1;const ee=V;V=null,U.next(ee)}Q&&U.complete()},oe=()=>{z=null,Q&&U.complete()};S.subscribe((0,w.x)(U,ee=>{_=!0,V=ee,z||(0,A.Xf)(E(ee)).subscribe(z=(0,w.x)(U,te,oe))},()=>{Q=!0,(!_||!z||z.closed)&&U.complete()}))})}(()=>(0,C.H)(E,S))}},70262:(Ye,pe,h)=>{"use strict";h.d(pe,{K:()=>w});var e=h(38421),c=h(25403),A=h(54482);function w(g){return(0,A.e)((C,T)=>{let U,E=null,S=!1;E=C.subscribe((0,c.x)(T,void 0,void 0,_=>{U=(0,e.Xf)(g(_,w(g)(C))),E?(E.unsubscribe(),E=null,U.subscribe(T)):S=!0})),S&&(E.unsubscribe(),E=null,U.subscribe(T))})}},24351:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>A});var e=h(86099),c=h(30576);function A(w,g){return(0,c.m)(g)?(0,e.z)(w,g,1):(0,e.z)(w,1)}},78372:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>w});var e=h(34986),c=h(54482),A=h(25403);function w(g,C=e.z){return(0,c.e)((T,E)=>{let S=null,U=null,_=null;const V=()=>{if(S){S.unsubscribe(),S=null;const Q=U;U=null,E.next(Q)}};function z(){const Q=_+g,te=C.now();if(te{U=Q,_=C.now(),S||(S=C.schedule(z,g),E.add(S))},()=>{V(),E.complete()},void 0,()=>{U=S=null}))})}},46590:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>A});var e=h(54482),c=h(25403);function A(w){return(0,e.e)((g,C)=>{let T=!1;g.subscribe((0,c.x)(C,E=>{T=!0,C.next(E)},()=>{T||C.next(w),C.complete()}))})}},91005:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>V});var e=h(34986),c=h(97272),A=h(95698),w=h(54482),g=h(25403),C=h(25032),E=h(69718),S=h(86099);function U(z,Q){return Q?te=>(0,c.z)(Q.pipe((0,A.q)(1),function T(){return(0,w.e)((z,Q)=>{z.subscribe((0,g.x)(Q,C.Z))})}()),te.pipe(U(z))):(0,S.z)((te,oe)=>z(te,oe).pipe((0,A.q)(1),(0,E.h)(te)))}var _=h(82805);function V(z,Q=e.z){const te=(0,_.H)(z,Q);return U(()=>te)}},71884:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>w});var e=h(44671),c=h(54482),A=h(25403);function w(C,T=e.y){return C=C??g,(0,c.e)((E,S)=>{let U,_=!0;E.subscribe((0,A.x)(S,V=>{const z=T(V);(_||!C(U,z))&&(_=!1,U=z,S.next(V))}))})}function g(C,T){return C===T}},39300:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(54482),c=h(25403);function A(w,g){return(0,e.e)((C,T)=>{let E=0;C.subscribe((0,c.x)(T,S=>w.call(g,S,E++)&&T.next(S)))})}},28746:(Ye,pe,h)=>{"use strict";h.d(pe,{x:()=>c});var e=h(54482);function c(A){return(0,e.e)((w,g)=>{try{w.subscribe(g)}finally{g.add(A)}})}},50590:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>T});var e=h(86805),c=h(39300),A=h(95698),w=h(46590),g=h(18068),C=h(44671);function T(E,S){const U=arguments.length>=2;return _=>_.pipe(E?(0,c.h)((V,z)=>E(V,z,_)):C.y,(0,A.q)(1),U?(0,w.d)(S):(0,g.T)(()=>new e.K))}},54004:(Ye,pe,h)=>{"use strict";h.d(pe,{U:()=>A});var e=h(54482),c=h(25403);function A(w,g){return(0,e.e)((C,T)=>{let E=0;C.subscribe((0,c.x)(T,S=>{T.next(w.call(g,S,E++))}))})}},69718:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>c});var e=h(54004);function c(A){return(0,e.U)(()=>A)}},8189:(Ye,pe,h)=>{"use strict";h.d(pe,{J:()=>A});var e=h(86099),c=h(44671);function A(w=1/0){return(0,e.z)(c.y,w)}},72733:(Ye,pe,h)=>{"use strict";h.d(pe,{p:()=>w});var e=h(38421),c=h(39672),A=h(25403);function w(g,C,T,E,S,U,_,V){const z=[];let Q=0,te=0,oe=!1;const ee=()=>{oe&&!z.length&&!Q&&C.complete()},le=Te=>Q{U&&C.next(Te),Q++;let v=!1;(0,e.Xf)(T(Te,te++)).subscribe((0,A.x)(C,L=>{S?.(L),U?le(L):C.next(L)},()=>{v=!0},void 0,()=>{if(v)try{for(Q--;z.length&&Qde(L)):de(L)}ee()}catch(L){C.error(L)}}))};return g.subscribe((0,A.x)(C,le,()=>{oe=!0,ee()})),()=>{V?.()}}},86099:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>C});var e=h(54004),c=h(38421),A=h(54482),w=h(72733),g=h(30576);function C(T,E,S=1/0){return(0,g.m)(E)?C((U,_)=>(0,e.U)((V,z)=>E(U,V,_,z))((0,c.Xf)(T(U,_))),S):("number"==typeof E&&(S=E),(0,A.e)((U,_)=>(0,w.p)(U,_,T,S)))}},11520:(Ye,pe,h)=>{"use strict";h.d(pe,{G:()=>A});var e=h(54482),c=h(25403);function A(){return(0,e.e)((w,g)=>{let C,T=!1;w.subscribe((0,c.x)(g,E=>{const S=C;C=E,T&&g.next([S,E]),T=!0}))})}},57359:(Ye,pe,h)=>{"use strict";h.d(pe,{U:()=>c});var e=h(25403);function c(A,w,g,C,T){return(E,S)=>{let U=g,_=w,V=0;E.subscribe((0,e.x)(S,z=>{const Q=V++;_=U?A(_,z,Q):(U=!0,z),C&&S.next(_)},T&&(()=>{U&&S.next(_),S.complete()})))}}},13099:(Ye,pe,h)=>{"use strict";h.d(pe,{B:()=>g});var e=h(38421),c=h(77579),A=h(70930),w=h(54482);function g(T={}){const{connector:E=(()=>new c.x),resetOnError:S=!0,resetOnComplete:U=!0,resetOnRefCountZero:_=!0}=T;return V=>{let z,Q,te,oe=0,ee=!1,le=!1;const de=()=>{Q?.unsubscribe(),Q=void 0},Te=()=>{de(),z=te=void 0,ee=le=!1},v=()=>{const L=z;Te(),L?.unsubscribe()};return(0,w.e)((L,B)=>{oe++,!le&&!ee&&de();const W=te=te??E();B.add(()=>{oe--,0===oe&&!le&&!ee&&(Q=C(v,_))}),W.subscribe(B),!z&&oe>0&&(z=new A.Hp({next:q=>W.next(q),error:q=>{le=!0,de(),Q=C(Te,S,q),W.error(q)},complete:()=>{ee=!0,de(),Q=C(Te,U),W.complete()}}),(0,e.Xf)(L).subscribe(z))})(V)}}function C(T,E,...S){if(!0===E)return void T();if(!1===E)return;const U=new A.Hp({next:()=>{U.unsubscribe(),T()}});return E(...S).subscribe(U)}},34782:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>A});var e=h(4707),c=h(13099);function A(w,g,C){let T,E=!1;return w&&"object"==typeof w?({bufferSize:T=1/0,windowTime:g=1/0,refCount:E=!1,scheduler:C}=w):T=w??1/0,(0,c.B)({connector:()=>new e.t(T,g,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:E})}},35684:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>c});var e=h(39300);function c(A){return(0,e.h)((w,g)=>A<=g)}},68675:(Ye,pe,h)=>{"use strict";h.d(pe,{O:()=>w});var e=h(97272),c=h(63269),A=h(54482);function w(...g){const C=(0,c.yG)(g);return(0,A.e)((T,E)=>{(C?(0,e.z)(g,T,C):(0,e.z)(g,T)).subscribe(E)})}},63900:(Ye,pe,h)=>{"use strict";h.d(pe,{w:()=>w});var e=h(38421),c=h(54482),A=h(25403);function w(g,C){return(0,c.e)((T,E)=>{let S=null,U=0,_=!1;const V=()=>_&&!S&&E.complete();T.subscribe((0,A.x)(E,z=>{S?.unsubscribe();let Q=0;const te=U++;(0,e.Xf)(g(z,te)).subscribe(S=(0,A.x)(E,oe=>E.next(C?C(z,oe,te,Q++):oe),()=>{S=null,V()}))},()=>{_=!0,V()}))})}},95698:(Ye,pe,h)=>{"use strict";h.d(pe,{q:()=>w});var e=h(60515),c=h(54482),A=h(25403);function w(g){return g<=0?()=>e.E:(0,c.e)((C,T)=>{let E=0;C.subscribe((0,A.x)(T,S=>{++E<=g&&(T.next(S),g<=E&&T.complete())}))})}},82722:(Ye,pe,h)=>{"use strict";h.d(pe,{R:()=>g});var e=h(54482),c=h(25403),A=h(38421),w=h(25032);function g(C){return(0,e.e)((T,E)=>{(0,A.Xf)(C).subscribe((0,c.x)(E,()=>E.complete(),w.Z)),!E.closed&&T.subscribe(E)})}},22529:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>A});var e=h(54482),c=h(25403);function A(w,g=!1){return(0,e.e)((C,T)=>{let E=0;C.subscribe((0,c.x)(T,S=>{const U=w(S,E++);(U||g)&&T.next(S),!U&&T.complete()}))})}},18505:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>g});var e=h(30576),c=h(54482),A=h(25403),w=h(44671);function g(C,T,E){const S=(0,e.m)(C)||T||E?{next:C,error:T,complete:E}:C;return S?(0,c.e)((U,_)=>{var V;null===(V=S.subscribe)||void 0===V||V.call(S);let z=!0;U.subscribe((0,A.x)(_,Q=>{var te;null===(te=S.next)||void 0===te||te.call(S,Q),_.next(Q)},()=>{var Q;z=!1,null===(Q=S.complete)||void 0===Q||Q.call(S),_.complete()},Q=>{var te;z=!1,null===(te=S.error)||void 0===te||te.call(S,Q),_.error(Q)},()=>{var Q,te;z&&(null===(Q=S.unsubscribe)||void 0===Q||Q.call(S)),null===(te=S.finalize)||void 0===te||te.call(S)}))}):w.y}},18068:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>w});var e=h(86805),c=h(54482),A=h(25403);function w(C=g){return(0,c.e)((T,E)=>{let S=!1;T.subscribe((0,A.x)(E,U=>{S=!0,E.next(U)},()=>S?E.complete():E.error(C())))})}function g(){return new e.K}},17414:(Ye,pe,h)=>{"use strict";h.d(pe,{V:()=>S});var e=h(34986),c=h(51165),A=h(54482),w=h(38421),g=h(83888),C=h(25403),T=h(39672);const E=(0,g.d)(_=>function(z=null){_(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=z});function S(_,V){const{first:z,each:Q,with:te=U,scheduler:oe=V??e.z,meta:ee=null}=(0,c.q)(_)?{first:_}:"number"==typeof _?{each:_}:_;if(null==z&&null==Q)throw new TypeError("No timeout provided.");return(0,A.e)((le,de)=>{let Te,v,L=null,B=0;const W=q=>{v=(0,T.f)(de,oe,()=>{try{Te.unsubscribe(),(0,w.Xf)(te({meta:ee,lastValue:L,seen:B})).subscribe(de)}catch(ue){de.error(ue)}},q)};Te=le.subscribe((0,C.x)(de,q=>{v?.unsubscribe(),B++,de.next(L=q),Q>0&&W(Q)},void 0,void 0,()=>{v?.closed||v?.unsubscribe(),L=null})),!B&&W(null!=z?"number"==typeof z?z:+z-oe.now():Q)})}function U(_){throw new E(_)}},84408:(Ye,pe,h)=>{"use strict";h.d(pe,{o:()=>g});var e=h(50727);class c extends e.w0{constructor(T,E){super()}schedule(T,E=0){return this}}const A={setInterval(C,T,...E){const{delegate:S}=A;return S?.setInterval?S.setInterval(C,T,...E):setInterval(C,T,...E)},clearInterval(C){const{delegate:T}=A;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var w=h(38737);class g extends c{constructor(T,E){super(T,E),this.scheduler=T,this.work=E,this.pending=!1}schedule(T,E=0){if(this.closed)return this;this.state=T;const S=this.id,U=this.scheduler;return null!=S&&(this.id=this.recycleAsyncId(U,S,E)),this.pending=!0,this.delay=E,this.id=this.id||this.requestAsyncId(U,this.id,E),this}requestAsyncId(T,E,S=0){return A.setInterval(T.flush.bind(T,this),S)}recycleAsyncId(T,E,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return E;A.clearInterval(E)}execute(T,E){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(T,E);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,E){let U,S=!1;try{this.work(T)}catch(_){S=!0,U=_||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),U}unsubscribe(){if(!this.closed){const{id:T,scheduler:E}=this,{actions:S}=E;this.work=this.state=this.scheduler=null,this.pending=!1,(0,w.P)(S,this),null!=T&&(this.id=this.recycleAsyncId(E,T,null)),this.delay=null,super.unsubscribe()}}}},97565:(Ye,pe,h)=>{"use strict";h.d(pe,{v:()=>A});var e=h(26063);class c{constructor(g,C=c.now){this.schedulerActionCtor=g,this.now=C}schedule(g,C=0,T){return new this.schedulerActionCtor(this,g).schedule(T,C)}}c.now=e.l.now;class A extends c{constructor(g,C=c.now){super(g,C),this.actions=[],this._active=!1,this._scheduled=void 0}flush(g){const{actions:C}=this;if(this._active)return void C.push(g);let T;this._active=!0;do{if(T=g.execute(g.state,g.delay))break}while(g=C.shift());if(this._active=!1,T){for(;g=C.shift();)g.unsubscribe();throw T}}}},66406:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>T});var e=h(84408),c=h(50727);const A={schedule(S){let U=requestAnimationFrame,_=cancelAnimationFrame;const{delegate:V}=A;V&&(U=V.requestAnimationFrame,_=V.cancelAnimationFrame);const z=U(Q=>{_=void 0,S(Q)});return new c.w0(()=>_?.(z))},requestAnimationFrame(...S){const{delegate:U}=A;return(U?.requestAnimationFrame||requestAnimationFrame)(...S)},cancelAnimationFrame(...S){const{delegate:U}=A;return(U?.cancelAnimationFrame||cancelAnimationFrame)(...S)},delegate:void 0};var g=h(97565);const T=new class C extends g.v{flush(U){this._active=!0;const _=this._scheduled;this._scheduled=void 0;const{actions:V}=this;let z;U=U||V.shift();do{if(z=U.execute(U.state,U.delay))break}while((U=V[0])&&U.id===_&&V.shift());if(this._active=!1,z){for(;(U=V[0])&&U.id===_&&V.shift();)U.unsubscribe();throw z}}}(class w extends e.o{constructor(U,_){super(U,_),this.scheduler=U,this.work=_}requestAsyncId(U,_,V=0){return null!==V&&V>0?super.requestAsyncId(U,_,V):(U.actions.push(this),U._scheduled||(U._scheduled=A.requestAnimationFrame(()=>U.flush(void 0))))}recycleAsyncId(U,_,V=0){if(null!=V&&V>0||null==V&&this.delay>0)return super.recycleAsyncId(U,_,V);U.actions.some(z=>z.id===_)||(A.cancelAnimationFrame(_),U._scheduled=void 0)}})},53101:(Ye,pe,h)=>{"use strict";h.d(pe,{E:()=>Q});var e=h(84408);let A,c=1;const w={};function g(oe){return oe in w&&(delete w[oe],!0)}const C={setImmediate(oe){const ee=c++;return w[ee]=!0,A||(A=Promise.resolve()),A.then(()=>g(ee)&&oe()),ee},clearImmediate(oe){g(oe)}},{setImmediate:E,clearImmediate:S}=C,U={setImmediate(...oe){const{delegate:ee}=U;return(ee?.setImmediate||E)(...oe)},clearImmediate(oe){const{delegate:ee}=U;return(ee?.clearImmediate||S)(oe)},delegate:void 0};var V=h(97565);const Q=new class z extends V.v{flush(ee){this._active=!0;const le=this._scheduled;this._scheduled=void 0;const{actions:de}=this;let Te;ee=ee||de.shift();do{if(Te=ee.execute(ee.state,ee.delay))break}while((ee=de[0])&&ee.id===le&&de.shift());if(this._active=!1,Te){for(;(ee=de[0])&&ee.id===le&&de.shift();)ee.unsubscribe();throw Te}}}(class _ extends e.o{constructor(ee,le){super(ee,le),this.scheduler=ee,this.work=le}requestAsyncId(ee,le,de=0){return null!==de&&de>0?super.requestAsyncId(ee,le,de):(ee.actions.push(this),ee._scheduled||(ee._scheduled=U.setImmediate(ee.flush.bind(ee,void 0))))}recycleAsyncId(ee,le,de=0){if(null!=de&&de>0||null==de&&this.delay>0)return super.recycleAsyncId(ee,le,de);ee.actions.some(Te=>Te.id===le)||(U.clearImmediate(le),ee._scheduled=void 0)}})},34986:(Ye,pe,h)=>{"use strict";h.d(pe,{P:()=>w,z:()=>A});var e=h(84408);const A=new(h(97565).v)(e.o),w=A},26063:(Ye,pe,h)=>{"use strict";h.d(pe,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},43410:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e={setTimeout(c,A,...w){const{delegate:g}=e;return g?.setTimeout?g.setTimeout(c,A,...w):setTimeout(c,A,...w)},clearTimeout(c){const{delegate:A}=e;return(A?.clearTimeout||clearTimeout)(c)},delegate:void 0}},2202:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>c});const c=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},48822:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},86805:(Ye,pe,h)=>{"use strict";h.d(pe,{K:()=>c});const c=(0,h(83888).d)(A=>function(){A(this),this.name="EmptyError",this.message="no elements in sequence"})},63269:(Ye,pe,h)=>{"use strict";h.d(pe,{_6:()=>C,jO:()=>w,yG:()=>g});var e=h(30576),c=h(93532);function A(T){return T[T.length-1]}function w(T){return(0,e.m)(A(T))?T.pop():void 0}function g(T){return(0,c.K)(A(T))?T.pop():void 0}function C(T,E){return"number"==typeof A(T)?T.pop():E}},54742:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>g});const{isArray:e}=Array,{getPrototypeOf:c,prototype:A,keys:w}=Object;function g(T){if(1===T.length){const E=T[0];if(e(E))return{args:E,keys:null};if(function C(T){return T&&"object"==typeof T&&c(T)===A}(E)){const S=w(E);return{args:S.map(U=>E[U]),keys:S}}}return{args:T,keys:null}}},75797:(Ye,pe,h)=>{"use strict";h.d(pe,{k:()=>c});const{isArray:e}=Array;function c(A){return 1===A.length&&e(A[0])?A[0]:A}},38737:(Ye,pe,h)=>{"use strict";function e(c,A){if(c){const w=c.indexOf(A);0<=w&&c.splice(w,1)}}h.d(pe,{P:()=>e})},83888:(Ye,pe,h)=>{"use strict";function e(c){const w=c(g=>{Error.call(g),g.stack=(new Error).stack});return w.prototype=Object.create(Error.prototype),w.prototype.constructor=w,w}h.d(pe,{d:()=>e})},31810:(Ye,pe,h)=>{"use strict";function e(c,A){return c.reduce((w,g,C)=>(w[g]=A[C],w),{})}h.d(pe,{n:()=>e})},72806:(Ye,pe,h)=>{"use strict";h.d(pe,{O:()=>w,x:()=>A});var e=h(42416);let c=null;function A(g){if(e.v.useDeprecatedSynchronousErrorHandling){const C=!c;if(C&&(c={errorThrown:!1,error:null}),g(),C){const{errorThrown:T,error:E}=c;if(c=null,T)throw E}}else g()}function w(g){e.v.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=g)}},39672:(Ye,pe,h)=>{"use strict";function e(c,A,w,g=0,C=!1){const T=A.schedule(function(){w(),C?c.add(this.schedule(null,g)):this.unsubscribe()},g);if(c.add(T),!C)return T}h.d(pe,{f:()=>e})},44671:(Ye,pe,h)=>{"use strict";function e(c){return c}h.d(pe,{y:()=>e})},81144:(Ye,pe,h)=>{"use strict";h.d(pe,{z:()=>e});const e=c=>c&&"number"==typeof c.length&&"function"!=typeof c},12206:(Ye,pe,h)=>{"use strict";h.d(pe,{D:()=>c});var e=h(30576);function c(A){return Symbol.asyncIterator&&(0,e.m)(A?.[Symbol.asyncIterator])}},51165:(Ye,pe,h)=>{"use strict";function e(c){return c instanceof Date&&!isNaN(c)}h.d(pe,{q:()=>e})},30576:(Ye,pe,h)=>{"use strict";function e(c){return"function"==typeof c}h.d(pe,{m:()=>e})},93670:(Ye,pe,h)=>{"use strict";h.d(pe,{c:()=>A});var e=h(48822),c=h(30576);function A(w){return(0,c.m)(w[e.L])}},26495:(Ye,pe,h)=>{"use strict";h.d(pe,{T:()=>A});var e=h(2202),c=h(30576);function A(w){return(0,c.m)(w?.[e.h])}},45191:(Ye,pe,h)=>{"use strict";h.d(pe,{b:()=>A});var e=h(69751),c=h(30576);function A(w){return!!w&&(w instanceof e.y||(0,c.m)(w.lift)&&(0,c.m)(w.subscribe))}},28239:(Ye,pe,h)=>{"use strict";h.d(pe,{t:()=>c});var e=h(30576);function c(A){return(0,e.m)(A?.then)}},53260:(Ye,pe,h)=>{"use strict";h.d(pe,{L:()=>w,Q:()=>A});var e=h(70655),c=h(30576);function A(g){return(0,e.FC)(this,arguments,function*(){const T=g.getReader();try{for(;;){const{value:E,done:S}=yield(0,e.qq)(T.read());if(S)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(E)}}finally{T.releaseLock()}})}function w(g){return(0,c.m)(g?.getReader)}},93532:(Ye,pe,h)=>{"use strict";h.d(pe,{K:()=>c});var e=h(30576);function c(A){return A&&(0,e.m)(A.schedule)}},54482:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>c,e:()=>A});var e=h(30576);function c(w){return(0,e.m)(w?.lift)}function A(w){return g=>{if(c(g))return g.lift(function(C){try{return w(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},83268:(Ye,pe,h)=>{"use strict";h.d(pe,{Z:()=>w});var e=h(54004);const{isArray:c}=Array;function w(g){return(0,e.U)(C=>function A(g,C){return c(C)?g(...C):g(C)}(g,C))}},25032:(Ye,pe,h)=>{"use strict";function e(){}h.d(pe,{Z:()=>e})},89635:(Ye,pe,h)=>{"use strict";h.d(pe,{U:()=>A,z:()=>c});var e=h(44671);function c(...w){return A(w)}function A(w){return 0===w.length?e.y:1===w.length?w[0]:function(C){return w.reduce((T,E)=>E(T),C)}}},87849:(Ye,pe,h)=>{"use strict";h.d(pe,{h:()=>A});var e=h(42416),c=h(43410);function A(w){c.z.setTimeout(()=>{const{onUnhandledError:g}=e.v;if(!g)throw w;g(w)})}},44532:(Ye,pe,h)=>{"use strict";function e(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}h.d(pe,{z:()=>e})},70655:(Ye,pe,h)=>{"use strict";function g(Me,we,Ge,ce){var xe,Ze=arguments.length,he=Ze<3?we:null===ce?ce=Object.getOwnPropertyDescriptor(we,Ge):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(Me,we,Ge,ce);else for(var j=Me.length-1;j>=0;j--)(xe=Me[j])&&(he=(Ze<3?xe(he):Ze>3?xe(we,Ge,he):xe(we,Ge))||he);return Ze>3&&he&&Object.defineProperty(we,Ge,he),he}function E(Me,we,Ge,ce){return new(Ge||(Ge=Promise))(function(he,xe){function j(se){try{G(ce.next(se))}catch($){xe($)}}function R(se){try{G(ce.throw(se))}catch($){xe($)}}function G(se){se.done?he(se.value):function Ze(he){return he instanceof Ge?he:new Ge(function(xe){xe(he)})}(se.value).then(j,R)}G((ce=ce.apply(Me,we||[])).next())})}function ee(Me){return this instanceof ee?(this.v=Me,this):new ee(Me)}function le(Me,we,Ge){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,ce=Ge.apply(Me,we||[]),he=[];return Ze={},xe("next"),xe("throw"),xe("return"),Ze[Symbol.asyncIterator]=function(){return this},Ze;function xe(Ee){ce[Ee]&&(Ze[Ee]=function(Oe){return new Promise(function(ct,Xe){he.push([Ee,Oe,ct,Xe])>1||j(Ee,Oe)})})}function j(Ee,Oe){try{!function R(Ee){Ee.value instanceof ee?Promise.resolve(Ee.value.v).then(G,se):$(he[0][2],Ee)}(ce[Ee](Oe))}catch(ct){$(he[0][3],ct)}}function G(Ee){j("next",Ee)}function se(Ee){j("throw",Ee)}function $(Ee,Oe){Ee(Oe),he.shift(),he.length&&j(he[0][0],he[0][1])}}function Te(Me){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ge,we=Me[Symbol.asyncIterator];return we?we.call(Me):(Me=function V(Me){var we="function"==typeof Symbol&&Symbol.iterator,Ge=we&&Me[we],ce=0;if(Ge)return Ge.call(Me);if(Me&&"number"==typeof Me.length)return{next:function(){return Me&&ce>=Me.length&&(Me=void 0),{value:Me&&Me[ce++],done:!Me}}};throw new TypeError(we?"Object is not iterable.":"Symbol.iterator is not defined.")}(Me),Ge={},ce("next"),ce("throw"),ce("return"),Ge[Symbol.asyncIterator]=function(){return this},Ge);function ce(he){Ge[he]=Me[he]&&function(xe){return new Promise(function(j,R){!function Ze(he,xe,j,R){Promise.resolve(R).then(function(G){he({value:G,done:j})},xe)}(j,R,(xe=Me[he](xe)).done,xe.value)})}}}h.d(pe,{FC:()=>le,KL:()=>Te,gn:()=>g,mG:()=>E,qq:()=>ee})},37340:(Ye,pe,h)=>{"use strict";h.d(pe,{F4:()=>U,IO:()=>te,LC:()=>c,SB:()=>S,X$:()=>w,ZE:()=>de,ZN:()=>le,_j:()=>e,eR:()=>_,jt:()=>g,k1:()=>Te,l3:()=>A,oB:()=>E,pV:()=>z,ru:()=>C,vP:()=>T});class e{}class c{}const A="*";function w(v,L){return{type:7,name:v,definitions:L,options:{}}}function g(v,L=null){return{type:4,styles:L,timings:v}}function C(v,L=null){return{type:3,steps:v,options:L}}function T(v,L=null){return{type:2,steps:v,options:L}}function E(v){return{type:6,styles:v,offset:null}}function S(v,L,B){return{type:0,name:v,styles:L,options:B}}function U(v){return{type:5,steps:v}}function _(v,L,B=null){return{type:1,expr:v,animation:L,options:B}}function z(v=null){return{type:9,options:v}}function te(v,L,B=null){return{type:11,selector:v,animation:L,options:B}}function ee(v){Promise.resolve(null).then(v)}class le{constructor(L=0,B=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=L+B}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(L=>L()),this._onDoneFns=[])}onStart(L){this._originalOnStartFns.push(L),this._onStartFns.push(L)}onDone(L){this._originalOnDoneFns.push(L),this._onDoneFns.push(L)}onDestroy(L){this._onDestroyFns.push(L)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ee(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(L=>L()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(L=>L()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(L){this._position=this.totalTime?L*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(L){const B="start"==L?this._onStartFns:this._onDoneFns;B.forEach(W=>W()),B.length=0}}class de{constructor(L){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=L;let B=0,W=0,q=0;const ue=this.players.length;0==ue?ee(()=>this._onFinish()):this.players.forEach(ye=>{ye.onDone(()=>{++B==ue&&this._onFinish()}),ye.onDestroy(()=>{++W==ue&&this._onDestroy()}),ye.onStart(()=>{++q==ue&&this._onStart()})}),this.totalTime=this.players.reduce((ye,Me)=>Math.max(ye,Me.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(L=>L()),this._onDoneFns=[])}init(){this.players.forEach(L=>L.init())}onStart(L){this._onStartFns.push(L)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(L=>L()),this._onStartFns=[])}onDone(L){this._onDoneFns.push(L)}onDestroy(L){this._onDestroyFns.push(L)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(L=>L.play())}pause(){this.players.forEach(L=>L.pause())}restart(){this.players.forEach(L=>L.restart())}finish(){this._onFinish(),this.players.forEach(L=>L.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(L=>L.destroy()),this._onDestroyFns.forEach(L=>L()),this._onDestroyFns=[])}reset(){this.players.forEach(L=>L.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(L){const B=L*this.totalTime;this.players.forEach(W=>{const q=W.totalTime?Math.min(1,B/W.totalTime):1;W.setPosition(q)})}getPosition(){const L=this.players.reduce((B,W)=>null===B||W.totalTime>B.totalTime?W:B,null);return null!=L?L.getPosition():0}beforeDestroy(){this.players.forEach(L=>{L.beforeDestroy&&L.beforeDestroy()})}triggerCallback(L){const B="start"==L?this._onStartFns:this._onDoneFns;B.forEach(W=>W()),B.length=0}}const Te="!"},12687:(Ye,pe,h)=>{"use strict";h.d(pe,{$s:()=>Me,Em:()=>he,Kd:()=>d,X6:()=>H,ic:()=>j,kH:()=>Vt,mK:()=>re,qV:()=>ae,qm:()=>je,rt:()=>Pe,s1:()=>Ze,tE:()=>bt,yG:()=>i});var e=h(36895),c=h(94650),A=h(83353),w=h(77579),g=h(50727),C=h(61135),T=h(39646),E=h(29521),S=h(18505),U=h(78372),_=h(39300),V=h(54004),z=h(95698),Q=h(35684),te=h(71884),oe=h(82722),ee=h(21281),le=h(49643),de=h(62289);function B(Qe,qe){return(Qe.getAttribute(qe)||"").match(/\S+/g)||[]}const q="cdk-describedby-message",ue="cdk-describedby-host";let ye=0,Me=(()=>{class Qe{constructor(Be,me){this._platform=me,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ye++,this._document=Be,this._id=(0,c.f3M)(c.AFp)+"-"+ye++}describe(Be,me,ve){if(!this._canBeDescribed(Be,me))return;const ze=we(me,ve);"string"!=typeof me?(Ge(me,this._id),this._messageRegistry.set(ze,{messageElement:me,referenceCount:0})):this._messageRegistry.has(ze)||this._createMessageElement(me,ve),this._isElementDescribedByMessage(Be,ze)||this._addMessageReference(Be,ze)}removeDescription(Be,me,ve){var ze;if(!me||!this._isElementNode(Be))return;const tt=we(me,ve);if(this._isElementDescribedByMessage(Be,tt)&&this._removeMessageReference(Be,tt),"string"==typeof me){const at=this._messageRegistry.get(tt);at&&0===at.referenceCount&&this._deleteMessageElement(tt)}0===(null===(ze=this._messagesContainer)||void 0===ze?void 0:ze.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var Be;const me=this._document.querySelectorAll(`[${ue}="${this._id}"]`);for(let ve=0;ve0!=ve.indexOf(q));Be.setAttribute("aria-describedby",me.join(" "))}_addMessageReference(Be,me){const ve=this._messageRegistry.get(me);(function v(Qe,qe,Be){const me=B(Qe,qe);me.some(ve=>ve.trim()==Be.trim())||(me.push(Be.trim()),Qe.setAttribute(qe,me.join(" ")))})(Be,"aria-describedby",ve.messageElement.id),Be.setAttribute(ue,this._id),ve.referenceCount++}_removeMessageReference(Be,me){const ve=this._messageRegistry.get(me);ve.referenceCount--,function L(Qe,qe,Be){const ve=B(Qe,qe).filter(ze=>ze!=Be.trim());ve.length?Qe.setAttribute(qe,ve.join(" ")):Qe.removeAttribute(qe)}(Be,"aria-describedby",ve.messageElement.id),Be.removeAttribute(ue)}_isElementDescribedByMessage(Be,me){const ve=B(Be,"aria-describedby"),ze=this._messageRegistry.get(me),tt=ze&&ze.messageElement.id;return!!tt&&-1!=ve.indexOf(tt)}_canBeDescribed(Be,me){if(!this._isElementNode(Be))return!1;if(me&&"object"==typeof me)return!0;const ve=null==me?"":`${me}`.trim(),ze=Be.getAttribute("aria-label");return!(!ve||ze&&ze.trim()===ve)}_isElementNode(Be){return Be.nodeType===this._document.ELEMENT_NODE}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(e.K0),c.LFG(A.t4))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();function we(Qe,qe){return"string"==typeof Qe?`${qe||""}/${Qe}`:Qe}function Ge(Qe,qe){Qe.id||(Qe.id=`${q}-${qe}-${ye++}`)}class ce{constructor(qe){this._items=qe,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.x,this._typeaheadSubscription=g.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Be=>Be.disabled,this._pressedLetters=[],this.tabOut=new w.x,this.change=new w.x,qe instanceof c.n_E&&qe.changes.subscribe(Be=>{if(this._activeItem){const ve=Be.toArray().indexOf(this._activeItem);ve>-1&&ve!==this._activeItemIndex&&(this._activeItemIndex=ve)}})}skipPredicate(qe){return this._skipPredicateFn=qe,this}withWrap(qe=!0){return this._wrap=qe,this}withVerticalOrientation(qe=!0){return this._vertical=qe,this}withHorizontalOrientation(qe){return this._horizontal=qe,this}withAllowedModifierKeys(qe){return this._allowedModifierKeys=qe,this}withTypeAhead(qe=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,S.b)(Be=>this._pressedLetters.push(Be)),(0,U.b)(qe),(0,_.h)(()=>this._pressedLetters.length>0),(0,V.U)(()=>this._pressedLetters.join(""))).subscribe(Be=>{const me=this._getItemsArray();for(let ve=1;ve!qe[ze]||this._allowedModifierKeys.indexOf(ze)>-1);switch(Be){case E.Mf:return void this.tabOut.next();case E.JH:if(this._vertical&&ve){this.setNextItemActive();break}return;case E.LH:if(this._vertical&&ve){this.setPreviousItemActive();break}return;case E.SV:if(this._horizontal&&ve){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case E.oh:if(this._horizontal&&ve){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case E.Sd:if(this._homeAndEnd&&ve){this.setFirstItemActive();break}return;case E.uR:if(this._homeAndEnd&&ve){this.setLastItemActive();break}return;default:return void((ve||(0,E.Vb)(qe,"shiftKey"))&&(qe.key&&1===qe.key.length?this._letterKeyStream.next(qe.key.toLocaleUpperCase()):(Be>=E.A&&Be<=E.Z||Be>=E.xE&&Be<=E.aO)&&this._letterKeyStream.next(String.fromCharCode(Be))))}this._pressedLetters=[],qe.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(qe){const Be=this._getItemsArray(),me="number"==typeof qe?qe:Be.indexOf(qe);this._activeItem=Be[me]??null,this._activeItemIndex=me}_setActiveItemByDelta(qe){this._wrap?this._setActiveInWrapMode(qe):this._setActiveInDefaultMode(qe)}_setActiveInWrapMode(qe){const Be=this._getItemsArray();for(let me=1;me<=Be.length;me++){const ve=(this._activeItemIndex+qe*me+Be.length)%Be.length;if(!this._skipPredicateFn(Be[ve]))return void this.setActiveItem(ve)}}_setActiveInDefaultMode(qe){this._setActiveItemByIndex(this._activeItemIndex+qe,qe)}_setActiveItemByIndex(qe,Be){const me=this._getItemsArray();if(me[qe]){for(;this._skipPredicateFn(me[qe]);)if(!me[qe+=Be])return;this.setActiveItem(qe)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class Ze extends ce{setActiveItem(qe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(qe),this.activeItem&&this.activeItem.setActiveStyles()}}class he extends ce{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(qe){return this._origin=qe,this}setActiveItem(qe){super.setActiveItem(qe),this.activeItem&&this.activeItem.focus(this._origin)}}let j=(()=>{class Qe{constructor(Be){this._platform=Be}isDisabled(Be){return Be.hasAttribute("disabled")}isVisible(Be){return function G(Qe){return!!(Qe.offsetWidth||Qe.offsetHeight||"function"==typeof Qe.getClientRects&&Qe.getClientRects().length)}(Be)&&"visible"===getComputedStyle(Be).visibility}isTabbable(Be){if(!this._platform.isBrowser)return!1;const me=function R(Qe){try{return Qe.frameElement}catch{return null}}(function Y(Qe){return Qe.ownerDocument&&Qe.ownerDocument.defaultView||window}(Be));if(me&&(-1===_t(me)||!this.isVisible(me)))return!1;let ve=Be.nodeName.toLowerCase(),ze=_t(Be);return Be.hasAttribute("contenteditable")?-1!==ze:!("iframe"===ve||"object"===ve||this._platform.WEBKIT&&this._platform.IOS&&!function Je(Qe){let qe=Qe.nodeName.toLowerCase(),Be="input"===qe&&Qe.type;return"text"===Be||"password"===Be||"select"===qe||"textarea"===qe}(Be))&&("audio"===ve?!!Be.hasAttribute("controls")&&-1!==ze:"video"===ve?-1!==ze&&(null!==ze||this._platform.FIREFOX||Be.hasAttribute("controls")):Be.tabIndex>=0)}isFocusable(Be,me){return function gt(Qe){return!function $(Qe){return function Oe(Qe){return"input"==Qe.nodeName.toLowerCase()}(Qe)&&"hidden"==Qe.type}(Qe)&&(function se(Qe){let qe=Qe.nodeName.toLowerCase();return"input"===qe||"select"===qe||"button"===qe||"textarea"===qe}(Qe)||function Ee(Qe){return function ct(Qe){return"a"==Qe.nodeName.toLowerCase()}(Qe)&&Qe.hasAttribute("href")}(Qe)||Qe.hasAttribute("contenteditable")||Xe(Qe))}(Be)&&!this.isDisabled(Be)&&(me?.ignoreVisibility||this.isVisible(Be))}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(A.t4))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();function Xe(Qe){if(!Qe.hasAttribute("tabindex")||void 0===Qe.tabIndex)return!1;let qe=Qe.getAttribute("tabindex");return!(!qe||isNaN(parseInt(qe,10)))}function _t(Qe){if(!Xe(Qe))return null;const qe=parseInt(Qe.getAttribute("tabindex")||"",10);return isNaN(qe)?-1:qe}class Ce{constructor(qe,Be,me,ve,ze=!1){this._element=qe,this._checker=Be,this._ngZone=me,this._document=ve,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ze||this.attachAnchors()}get enabled(){return this._enabled}set enabled(qe){this._enabled=qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}destroy(){const qe=this._startAnchor,Be=this._endAnchor;qe&&(qe.removeEventListener("focus",this.startAnchorListener),qe.remove()),Be&&(Be.removeEventListener("focus",this.endAnchorListener),Be.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(qe){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusInitialElement(qe)))})}focusFirstTabbableElementWhenReady(qe){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusFirstTabbableElement(qe)))})}focusLastTabbableElementWhenReady(qe){return new Promise(Be=>{this._executeOnStable(()=>Be(this.focusLastTabbableElement(qe)))})}_getRegionBoundary(qe){const Be=this._element.querySelectorAll(`[cdk-focus-region-${qe}], [cdkFocusRegion${qe}], [cdk-focus-${qe}]`);return"start"==qe?Be.length?Be[0]:this._getFirstTabbableElement(this._element):Be.length?Be[Be.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(qe){const Be=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Be){if(!this._checker.isFocusable(Be)){const me=this._getFirstTabbableElement(Be);return me?.focus(qe),!!me}return Be.focus(qe),!0}return this.focusFirstTabbableElement(qe)}focusFirstTabbableElement(qe){const Be=this._getRegionBoundary("start");return Be&&Be.focus(qe),!!Be}focusLastTabbableElement(qe){const Be=this._getRegionBoundary("end");return Be&&Be.focus(qe),!!Be}hasAttached(){return this._hasAttached}_getFirstTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const Be=qe.children;for(let me=0;me=0;me--){const ve=Be[me].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Be[me]):null;if(ve)return ve}return null}_createAnchor(){const qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,qe),qe.classList.add("cdk-visually-hidden"),qe.classList.add("cdk-focus-trap-anchor"),qe.setAttribute("aria-hidden","true"),qe}_toggleAnchorTabIndex(qe,Be){qe?Be.setAttribute("tabindex","0"):Be.removeAttribute("tabindex")}toggleAnchors(qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}_executeOnStable(qe){this._ngZone.isStable?qe():this._ngZone.onStable.pipe((0,z.q)(1)).subscribe(qe)}}let ae=(()=>{class Qe{constructor(Be,me,ve){this._checker=Be,this._ngZone=me,this._document=ve}create(Be,me=!1){return new Ce(Be,this._checker,this._ngZone,this._document,me)}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(j),c.LFG(c.R0b),c.LFG(e.K0))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),re=(()=>{class Qe{constructor(Be,me,ve){this._elementRef=Be,this._focusTrapFactory=me,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(Be){this.focusTrap.enabled=(0,ee.Ig)(Be)}get autoCapture(){return this._autoCapture}set autoCapture(Be){this._autoCapture=(0,ee.Ig)(Be)}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(Be){const me=Be.autoCapture;me&&!me.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,A.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.Y36(c.SBq),c.Y36(ae),c.Y36(e.K0))},Qe.\u0275dir=c.lG2({type:Qe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[c.TTD]}),Qe})();function H(Qe){return 0===Qe.buttons||0===Qe.offsetX&&0===Qe.offsetY}function i(Qe){const qe=Qe.touches&&Qe.touches[0]||Qe.changedTouches&&Qe.changedTouches[0];return!(!qe||-1!==qe.identifier||null!=qe.radiusX&&1!==qe.radiusX||null!=qe.radiusY&&1!==qe.radiusY)}const o=new c.OlP("cdk-input-modality-detector-options"),f={ignoreKeys:[E.zL,E.jx,E.b2,E.MW,E.JU]},a=(0,A.i$)({passive:!0,capture:!0});let n=(()=>{class Qe{constructor(Be,me,ve,ze){this._platform=Be,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=tt=>{var at,Re;null!==(at=this._options)&&void 0!==at&&null!==(Re=at.ignoreKeys)&&void 0!==Re&&Re.some(st=>st===tt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,A.sA)(tt))},this._onMousedown=tt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(H(tt)?"keyboard":"mouse"),this._mostRecentTarget=(0,A.sA)(tt))},this._onTouchstart=tt=>{i(tt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,A.sA)(tt))},this._options={...f,...ze},this.modalityDetected=this._modality.pipe((0,Q.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,te.x)()),Be.isBrowser&&me.runOutsideAngular(()=>{ve.addEventListener("keydown",this._onKeydown,a),ve.addEventListener("mousedown",this._onMousedown,a),ve.addEventListener("touchstart",this._onTouchstart,a)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,a),document.removeEventListener("mousedown",this._onMousedown,a),document.removeEventListener("touchstart",this._onTouchstart,a))}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(A.t4),c.LFG(c.R0b),c.LFG(e.K0),c.LFG(o,8))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const t=new c.OlP("liveAnnouncerElement",{providedIn:"root",factory:function r(){return null}}),s=new c.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let d=(()=>{class Qe{constructor(Be,me,ve,ze){this._ngZone=me,this._defaultOptions=ze,this._document=ve,this._liveElement=Be||this._createLiveElement()}announce(Be,...me){const ve=this._defaultOptions;let ze,tt;return 1===me.length&&"number"==typeof me[0]?tt=me[0]:[ze,tt]=me,this.clear(),clearTimeout(this._previousTimeout),ze||(ze=ve&&ve.politeness?ve.politeness:"polite"),null==tt&&ve&&(tt=ve.duration),this._liveElement.setAttribute("aria-live",ze),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(at=>this._currentResolve=at)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Be,"number"==typeof tt&&(this._previousTimeout=setTimeout(()=>this.clear(),tt)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var Be,me;clearTimeout(this._previousTimeout),null===(Be=this._liveElement)||void 0===Be||Be.remove(),this._liveElement=null,null===(me=this._currentResolve)||void 0===me||me.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Be="cdk-live-announcer-element",me=this._document.getElementsByClassName(Be),ve=this._document.createElement("div");for(let ze=0;ze{class Qe{constructor(Be,me,ve,ze,tt){this._ngZone=Be,this._platform=me,this._inputModalityDetector=ve,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 w.x,this._rootNodeFocusAndBlurListener=at=>{for(let st=(0,A.sA)(at);st;st=st.parentElement)"focus"===at.type?this._onFocus(at,st):this._onBlur(at,st)},this._document=ze,this._detectionMode=tt?.detectionMode||0}monitor(Be,me=!1){const ve=(0,ee.fI)(Be);if(!this._platform.isBrowser||1!==ve.nodeType)return(0,T.of)(null);const ze=(0,A.kV)(ve)||this._getDocument(),tt=this._elementInfo.get(ve);if(tt)return me&&(tt.checkChildren=!0),tt.subject;const at={checkChildren:me,subject:new w.x,rootNode:ze};return this._elementInfo.set(ve,at),this._registerGlobalListeners(at),at.subject}stopMonitoring(Be){const me=(0,ee.fI)(Be),ve=this._elementInfo.get(me);ve&&(ve.subject.complete(),this._setClasses(me),this._elementInfo.delete(me),this._removeGlobalListeners(ve))}focusVia(Be,me,ve){const ze=(0,ee.fI)(Be);ze===this._getDocument().activeElement?this._getClosestElementsInfo(ze).forEach(([at,Re])=>this._originChanged(at,me,Re)):(this._setOrigin(me),"function"==typeof ze.focus&&ze.focus(ve))}ngOnDestroy(){this._elementInfo.forEach((Be,me)=>this.stopMonitoring(me))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Be){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Be)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Be&&this._isLastInteractionFromInputLabel(Be)?"mouse":"program"}_shouldBeAttributedToTouch(Be){return 1===this._detectionMode||!(null==Be||!Be.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Be,me){Be.classList.toggle("cdk-focused",!!me),Be.classList.toggle("cdk-touch-focused","touch"===me),Be.classList.toggle("cdk-keyboard-focused","keyboard"===me),Be.classList.toggle("cdk-mouse-focused","mouse"===me),Be.classList.toggle("cdk-program-focused","program"===me)}_setOrigin(Be,me=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Be,this._originFromTouchInteraction="touch"===Be&&me,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Be,me){const ve=this._elementInfo.get(me),ze=(0,A.sA)(Be);!ve||!ve.checkChildren&&me!==ze||this._originChanged(me,this._getFocusOrigin(ze),ve)}_onBlur(Be,me){const ve=this._elementInfo.get(me);!ve||ve.checkChildren&&Be.relatedTarget instanceof Node&&me.contains(Be.relatedTarget)||(this._setClasses(me),this._emitOrigin(ve,null))}_emitOrigin(Be,me){Be.subject.observers.length&&this._ngZone.run(()=>Be.subject.next(me))}_registerGlobalListeners(Be){if(!this._platform.isBrowser)return;const me=Be.rootNode,ve=this._rootNodeFocusListenerCount.get(me)||0;ve||this._ngZone.runOutsideAngular(()=>{me.addEventListener("focus",this._rootNodeFocusAndBlurListener,_e),me.addEventListener("blur",this._rootNodeFocusAndBlurListener,_e)}),this._rootNodeFocusListenerCount.set(me,ve+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,oe.R)(this._stopInputModalityDetector)).subscribe(ze=>{this._setOrigin(ze,!0)}))}_removeGlobalListeners(Be){const me=Be.rootNode;if(this._rootNodeFocusListenerCount.has(me)){const ve=this._rootNodeFocusListenerCount.get(me);ve>1?this._rootNodeFocusListenerCount.set(me,ve-1):(me.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_e),me.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_e),this._rootNodeFocusListenerCount.delete(me))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Be,me,ve){this._setClasses(Be,me),this._emitOrigin(ve,me),this._lastFocusOrigin=me}_getClosestElementsInfo(Be){const me=[];return this._elementInfo.forEach((ve,ze)=>{(ze===Be||ve.checkChildren&&ze.contains(Be))&&me.push([ze,ve])}),me}_isLastInteractionFromInputLabel(Be){const{_mostRecentTarget:me,mostRecentModality:ve}=this._inputModalityDetector;if("mouse"!==ve||!me||me===Be||"INPUT"!==Be.nodeName&&"TEXTAREA"!==Be.nodeName||Be.disabled)return!1;const ze=Be.labels;if(ze)for(let tt=0;tt{class Qe{constructor(Be,me){this._elementRef=Be,this._focusMonitor=me,this.cdkFocusChange=new c.vpe}ngAfterViewInit(){const Be=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Be,1===Be.nodeType&&Be.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(me=>this.cdkFocusChange.emit(me))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.Y36(c.SBq),c.Y36(bt))},Qe.\u0275dir=c.lG2({type:Qe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Qe})();const on="cdk-high-contrast-black-on-white",Mt="cdk-high-contrast-white-on-black",ft="cdk-high-contrast-active";let je=(()=>{class Qe{constructor(Be,me){this._platform=Be,this._document=me,this._breakpointSubscription=(0,c.f3M)(de.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Be=this._document.createElement("div");Be.style.backgroundColor="rgb(1,2,3)",Be.style.position="absolute",this._document.body.appendChild(Be);const me=this._document.defaultView||window,ve=me&&me.getComputedStyle?me.getComputedStyle(Be):null,ze=(ve&&ve.backgroundColor||"").replace(/ /g,"");switch(Be.remove(),ze){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 Be=this._document.body.classList;Be.remove(ft,on,Mt),this._hasCheckedHighContrastMode=!0;const me=this.getHighContrastMode();1===me?Be.add(ft,on):2===me&&Be.add(ft,Mt)}}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(A.t4),c.LFG(e.K0))},Qe.\u0275prov=c.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Pe=(()=>{class Qe{constructor(Be){Be._applyBodyHighContrastModeCssClasses()}}return Qe.\u0275fac=function(Be){return new(Be||Qe)(c.LFG(je))},Qe.\u0275mod=c.oAB({type:Qe}),Qe.\u0275inj=c.cJS({imports:[le.Q8]}),Qe})()},40445:(Ye,pe,h)=>{"use strict";h.d(pe,{Is:()=>T,vT:()=>S});var e=h(94650),c=h(36895);const A=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(c.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class U{constructor(V){if(this.value="ltr",this.change=new e.vpe,V){const Q=V.documentElement?V.documentElement.dir:null;this.value=function C(U){var _;const V=U?.toLowerCase()||"";return"auto"===V&&typeof navigator<"u"&&null!==(_=navigator)&&void 0!==_&&_.language?g.test(navigator.language)?"rtl":"ltr":"rtl"===V?"rtl":"ltr"}((V.body?V.body.dir:null)||Q||"ltr")}}ngOnDestroy(){this.change.complete()}}return U.\u0275fac=function(V){return new(V||U)(e.LFG(A,8))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({}),U})()},64425:(Ye,pe,h)=>{"use strict";h.d(pe,{Iq:()=>T,TU:()=>w,i3:()=>C});var e=h(36895),c=h(94650);class A{constructor(S,U){this._document=U;const _=this._textarea=this._document.createElement("textarea"),V=_.style;V.position="fixed",V.top=V.opacity="0",V.left="-999em",_.setAttribute("aria-hidden","true"),_.value=S,_.readOnly=!0,this._document.body.appendChild(_)}copy(){const S=this._textarea;let U=!1;try{if(S){const _=this._document.activeElement;S.select(),S.setSelectionRange(0,S.value.length),U=this._document.execCommand("copy"),_&&_.focus()}}catch{}return U}destroy(){const S=this._textarea;S&&(S.remove(),this._textarea=void 0)}}let w=(()=>{class E{constructor(U){this._document=U}copy(U){const _=this.beginCopy(U),V=_.copy();return _.destroy(),V}beginCopy(U){return new A(U,this._document)}}return E.\u0275fac=function(U){return new(U||E)(c.LFG(e.K0))},E.\u0275prov=c.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();const g=new c.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let C=(()=>{class E{constructor(U,_,V){this._clipboard=U,this._ngZone=_,this.text="",this.attempts=1,this.copied=new c.vpe,this._pending=new Set,V&&null!=V.attempts&&(this.attempts=V.attempts)}copy(U=this.attempts){if(U>1){let _=U;const V=this._clipboard.beginCopy(this.text);this._pending.add(V);const z=()=>{const Q=V.copy();Q||!--_||this._destroyed?(this._currentTimeout=null,this._pending.delete(V),V.destroy(),this.copied.emit(Q)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(z,1))};z()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(U=>U.destroy()),this._pending.clear(),this._destroyed=!0}}return E.\u0275fac=function(U){return new(U||E)(c.Y36(w),c.Y36(c.R0b),c.Y36(g,8))},E.\u0275dir=c.lG2({type:E,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(U,_){1&U&&c.NdJ("click",function(){return _.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),E})(),T=(()=>{class E{}return E.\u0275fac=function(U){return new(U||E)},E.\u0275mod=c.oAB({type:E}),E.\u0275inj=c.cJS({}),E})()},21281:(Ye,pe,h)=>{"use strict";h.d(pe,{Eq:()=>g,HM:()=>C,Ig:()=>c,du:()=>E,fI:()=>T,su:()=>A,t6:()=>w});var e=h(94650);function c(S){return null!=S&&"false"!=`${S}`}function A(S,U=0){return w(S)?Number(S):U}function w(S){return!isNaN(parseFloat(S))&&!isNaN(Number(S))}function g(S){return Array.isArray(S)?S:[S]}function C(S){return null==S?"":"string"==typeof S?S:`${S}px`}function T(S){return S instanceof e.SBq?S.nativeElement:S}function E(S,U=/\s+/){const _=[];if(null!=S){const V=Array.isArray(S)?S:`${S}`.split(U);for(const z of V){const Q=`${z}`.trim();Q&&_.push(Q)}}return _}},95017:(Ye,pe,h)=>{"use strict";h.d(pe,{A8:()=>V,Ov:()=>U,P3:()=>T,Z9:()=>C,eX:()=>S,k:()=>z,o2:()=>g,yy:()=>E});var e=h(45191),c=h(39646),A=h(77579),w=h(94650);class g{}function C(Q){return Q&&"function"==typeof Q.connect}class T extends g{constructor(te){super(),this._data=te}connect(){return(0,e.b)(this._data)?this._data:(0,c.of)(this._data)}disconnect(){}}class E{applyChanges(te,oe,ee,le,de){te.forEachOperation((Te,v,L)=>{let B,W;if(null==Te.previousIndex){const ue=ee(Te,v,L);B=oe.createEmbeddedView(ue.templateRef,ue.context,ue.index),W=1}else null==L?(oe.remove(v),W=3):(B=oe.get(v),oe.move(B,L),W=2);var q;de&&de({context:null===(q=B)||void 0===q?void 0:q.context,operation:W,record:Te})})}detach(){}}class S{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(te,oe,ee,le,de){te.forEachOperation((Te,v,L)=>{let B,W;var q;null==Te.previousIndex?(B=this._insertView(()=>ee(Te,v,L),L,oe,le(Te)),W=B?1:0):null==L?(this._detachAndCacheView(v,oe),W=3):(B=this._moveView(v,L,oe,le(Te)),W=2),de&&de({context:null===(q=B)||void 0===q?void 0:q.context,operation:W,record:Te})})}detach(){for(const te of this._viewCache)te.destroy();this._viewCache=[]}_insertView(te,oe,ee,le){const de=this._insertViewFromCache(oe,ee);if(de)return void(de.context.$implicit=le);const Te=te();return ee.createEmbeddedView(Te.templateRef,Te.context,Te.index)}_detachAndCacheView(te,oe){const ee=oe.detach(te);this._maybeCacheView(ee,oe)}_moveView(te,oe,ee,le){const de=ee.get(te);return ee.move(de,oe),de.context.$implicit=le,de}_maybeCacheView(te,oe){if(this._viewCache.lengththis._markSelected(de)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...te){this._verifyValueAssignment(te),te.forEach(ee=>this._markSelected(ee));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}deselect(...te){this._verifyValueAssignment(te),te.forEach(ee=>this._unmarkSelected(ee));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}setSelection(...te){this._verifyValueAssignment(te);const oe=this.selected,ee=new Set(te);te.forEach(de=>this._markSelected(de)),oe.filter(de=>!ee.has(de)).forEach(de=>this._unmarkSelected(de));const le=this._hasQueuedChanges();return this._emitChangeEvent(),le}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const oe=this._hasQueuedChanges();return te&&this._emitChangeEvent(),oe}isSelected(te){if(this.compareWith){for(const oe of this._selection)if(this.compareWith(oe,te))return!0;return!1}return this._selection.has(te)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}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(te){this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let V=(()=>{class Q{constructor(){this._listeners=[]}notify(oe,ee){for(let le of this._listeners)le(oe,ee)}listen(oe){return this._listeners.push(oe),()=>{this._listeners=this._listeners.filter(ee=>oe!==ee)}}ngOnDestroy(){this._listeners=[]}}return Q.\u0275fac=function(oe){return new(oe||Q)},Q.\u0275prov=w.Yz7({token:Q,factory:Q.\u0275fac,providedIn:"root"}),Q})();const z=new w.OlP("_ViewRepeater")},73555:(Ye,pe,h)=>{"use strict";h.d(pe,{Wj:()=>_e,Zt:()=>Qe,_t:()=>qe,bA:()=>Y});var e=h(94650),c=h(36895),A=h(67376),w=h(83353),g=h(21281),C=h(12687),T=h(77579),E=h(50727),S=h(17445),U=h(66406),_=h(69751),V=h(56451),z=h(82722),Q=h(68675),te=h(54004),oe=h(95698),ee=h(18505),le=h(63900),de=h(40445);function Te(Be,me,ve){for(let ze in me)if(me.hasOwnProperty(ze)){const tt=me[ze];tt?Be.setProperty(ze,tt,null!=ve&&ve.has(ze)?"important":""):Be.removeProperty(ze)}return Be}function v(Be,me){const ve=me?"":"none";Te(Be.style,{"touch-action":me?"":"none","-webkit-user-drag":me?"":"none","-webkit-tap-highlight-color":me?"":"transparent","user-select":ve,"-ms-user-select":ve,"-webkit-user-select":ve,"-moz-user-select":ve})}function L(Be,me,ve){Te(Be.style,{position:me?"":"fixed",top:me?"":"0",opacity:me?"":"0",left:me?"":"-999em"},ve)}function B(Be,me){return me&&"none"!=me?Be+" "+me:Be}function W(Be){const me=Be.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(Be)*me}function ue(Be,me){return Be.getPropertyValue(me).split(",").map(ze=>ze.trim())}function ye(Be){const me=Be.getBoundingClientRect();return{top:me.top,right:me.right,bottom:me.bottom,left:me.left,width:me.width,height:me.height,x:me.x,y:me.y}}function Me(Be,me,ve){const{top:ze,bottom:tt,left:at,right:Re}=Be;return ve>=ze&&ve<=tt&&me>=at&&me<=Re}function we(Be,me,ve){Be.top+=me,Be.bottom=Be.top+Be.height,Be.left+=ve,Be.right=Be.left+Be.width}function Ge(Be,me,ve,ze){const{top:tt,right:at,bottom:Re,left:st,width:Pt,height:jt}=Be,cn=Pt*me,Xt=jt*me;return ze>tt-Xt&&zest-cn&&ve{this.positions.set(ve,{scrollPosition:{top:ve.scrollTop,left:ve.scrollLeft},clientRect:ye(ve)})})}handleScroll(me){const ve=(0,w.sA)(me),ze=this.positions.get(ve);if(!ze)return null;const tt=ze.scrollPosition;let at,Re;if(ve===this._document){const jt=this.getViewportScrollPosition();at=jt.top,Re=jt.left}else at=ve.scrollTop,Re=ve.scrollLeft;const st=tt.top-at,Pt=tt.left-Re;return this.positions.forEach((jt,cn)=>{jt.clientRect&&ve!==cn&&ve.contains(cn)&&we(jt.clientRect,st,Pt)}),tt.top=at,tt.left=Re,{top:st,left:Pt}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ze(Be){const me=Be.cloneNode(!0),ve=me.querySelectorAll("[id]"),ze=Be.nodeName.toLowerCase();me.removeAttribute("id");for(let tt=0;tt{if(this.beforeStarted.next(),this._handles.length){const Pt=this._getTargetHandle(st);Pt&&!this._disabledHandles.has(Pt)&&!this.disabled&&this._initializeDragSequence(Pt,st)}else this.disabled||this._initializeDragSequence(this._rootElement,st)},this._pointerMove=st=>{const Pt=this._getPointerPositionOnPage(st);if(!this._hasStartedDragging){if(Math.abs(Pt.x-this._pickupPositionOnPage.x)+Math.abs(Pt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const mn=Date.now()>=this._dragStartTime+this._getDragStartDelay(st),Nt=this._dropContainer;if(!mn)return void this._endDragSequence(st);(!Nt||!Nt.isDragging()&&!Nt.isReceiving())&&(st.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(st)))}return}st.preventDefault();const jt=this._getConstrainedPointerPosition(Pt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Pt,this._updatePointerDirectionDelta(jt),this._dropContainer)this._updateActiveDropContainer(jt,Pt);else{const cn=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,Xt=this._activeTransform;Xt.x=jt.x-cn.x+this._passiveTransform.x,Xt.y=jt.y-cn.y+this._passiveTransform.y,this._applyRootElementTransform(Xt.x,Xt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:jt,event:st,distance:this._getDragDistance(jt),delta:this._pointerDirectionDelta})})},this._pointerUp=st=>{this._endDragSequence(st)},this._nativeDragStart=st=>{if(this._handles.length){const Pt=this._getTargetHandle(st);Pt&&!this._disabledHandles.has(Pt)&&!this.disabled&&st.preventDefault()}else this.disabled||st.preventDefault()},this.withRootElement(me).withParent(ve.parentDragRef||null),this._parentPositions=new ce(ze),Re.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(me){const ve=(0,g.Ig)(me);ve!==this._disabled&&(this._disabled=ve,this._toggleNativeDragInteractions(),this._handles.forEach(ze=>v(ze,ve)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(me){this._handles=me.map(ze=>(0,g.fI)(ze)),this._handles.forEach(ze=>v(ze,this.disabled)),this._toggleNativeDragInteractions();const ve=new Set;return this._disabledHandles.forEach(ze=>{this._handles.indexOf(ze)>-1&&ve.add(ze)}),this._disabledHandles=ve,this}withPreviewTemplate(me){return this._previewTemplate=me,this}withPlaceholderTemplate(me){return this._placeholderTemplate=me,this}withRootElement(me){const ve=(0,g.fI)(me);return ve!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ve.addEventListener("mousedown",this._pointerDown,se),ve.addEventListener("touchstart",this._pointerDown,G),ve.addEventListener("dragstart",this._nativeDragStart,se)}),this._initialTransform=void 0,this._rootElement=ve),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(me){return this._boundaryElement=me?(0,g.fI)(me):null,this._resizeSubscription.unsubscribe(),me&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(me){return this._parentDragRef=me,this}dispose(){var me,ve;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(ve=this._rootElement)||void 0===ve||ve.remove()),null===(me=this._anchor)||void 0===me||me.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(me){!this._disabledHandles.has(me)&&this._handles.indexOf(me)>-1&&(this._disabledHandles.add(me),v(me,!0))}enableHandle(me){this._disabledHandles.has(me)&&(this._disabledHandles.delete(me),v(me,this.disabled))}withDirection(me){return this._direction=me,this}_withDropContainer(me){this._dropContainer=me}getFreeDragPosition(){const me=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:me.x,y:me.y}}setFreeDragPosition(me){return this._activeTransform={x:0,y:0},this._passiveTransform.x=me.x,this._passiveTransform.y=me.y,this._dropContainer||this._applyRootElementTransform(me.x,me.y),this}withPreviewContainer(me){return this._previewContainer=me,this}_sortFromLastPointerPosition(){const me=this._lastKnownPointerPosition;me&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(me),me)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var me,ve;null===(me=this._preview)||void 0===me||me.remove(),null===(ve=this._previewRef)||void 0===ve||ve.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var me,ve;null===(me=this._placeholder)||void 0===me||me.remove(),null===(ve=this._placeholderRef)||void 0===ve||ve.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(me){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:me}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(me),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ve=this._getPointerPositionOnPage(me);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ve),dropPoint:ve,event:me})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(me){_t(me)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ve=this._dropContainer;if(ve){const ze=this._rootElement,tt=ze.parentNode,at=this._placeholder=this._createPlaceholderElement(),Re=this._anchor=this._anchor||this._document.createComment(""),st=this._getShadowRoot();tt.insertBefore(Re,ze),this._initialTransform=ze.style.transform||"",this._preview=this._createPreviewElement(),L(ze,!1,Ee),this._document.body.appendChild(tt.replaceChild(at,ze)),this._getPreviewInsertionPoint(tt,st).appendChild(this._preview),this.started.next({source:this,event:me}),ve.start(),this._initialContainer=ve,this._initialIndex=ve.getItemIndex(this)}else this.started.next({source:this,event:me}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(ve?ve.getScrollableParents():[])}_initializeDragSequence(me,ve){this._parentDragRef&&ve.stopPropagation();const ze=this.isDragging(),tt=_t(ve),at=!tt&&0!==ve.button,Re=this._rootElement,st=(0,w.sA)(ve),Pt=!tt&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),jt=tt?(0,C.yG)(ve):(0,C.X6)(ve);if(st&&st.draggable&&"mousedown"===ve.type&&ve.preventDefault(),ze||at||Pt||jt)return;if(this._handles.length){const sn=Re.style;this._rootElementTapHighlight=sn.webkitTapHighlightColor||"",sn.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(sn=>this._updateOnScroll(sn)),this._boundaryElement&&(this._boundaryRect=ye(this._boundaryElement));const cn=this._previewTemplate;this._pickupPositionInElement=cn&&cn.template&&!cn.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,me,ve);const Xt=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ve);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Xt.x,y:Xt.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ve)}_cleanupDragArtifacts(me){L(this._rootElement,!0,Ee),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ve=this._dropContainer,ze=ve.getItemIndex(this),tt=this._getPointerPositionOnPage(me),at=this._getDragDistance(tt),Re=ve._isOverContainer(tt.x,tt.y);this.ended.next({source:this,distance:at,dropPoint:tt,event:me}),this.dropped.next({item:this,currentIndex:ze,previousIndex:this._initialIndex,container:ve,previousContainer:this._initialContainer,isPointerOverContainer:Re,distance:at,dropPoint:tt,event:me}),ve.drop(this,ze,this._initialIndex,this._initialContainer,Re,at,tt),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:me,y:ve},{x:ze,y:tt}){let at=this._initialContainer._getSiblingContainerFromPosition(this,me,ve);!at&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(me,ve)&&(at=this._initialContainer),at&&at!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=at,this._dropContainer.enter(this,me,ve,at===this._initialContainer&&at.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:at,currentIndex:at.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ze,tt),this._dropContainer._sortItem(this,me,ve,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(me,ve):this._applyPreviewTransform(me-this._pickupPositionInElement.x,ve-this._pickupPositionInElement.y))}_createPreviewElement(){const me=this._previewTemplate,ve=this.previewClass,ze=me?me.template:null;let tt;if(ze&&me){const at=me.matchSize?this._initialClientRect:null,Re=me.viewContainer.createEmbeddedView(ze,me.context);Re.detectChanges(),tt=Je(Re,this._document),this._previewRef=Re,me.matchSize?gt(tt,at):tt.style.transform=ct(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else tt=Ze(this._rootElement),gt(tt,this._initialClientRect),this._initialTransform&&(tt.style.transform=this._initialTransform);return Te(tt.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Ee),v(tt,!1),tt.classList.add("cdk-drag-preview"),tt.setAttribute("dir",this._direction),ve&&(Array.isArray(ve)?ve.forEach(at=>tt.classList.add(at)):tt.classList.add(ve)),tt}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const me=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(me.left,me.top);const ve=function q(Be){const me=getComputedStyle(Be),ve=ue(me,"transition-property"),ze=ve.find(st=>"transform"===st||"all"===st);if(!ze)return 0;const tt=ve.indexOf(ze),at=ue(me,"transition-duration"),Re=ue(me,"transition-delay");return W(at[tt])+W(Re[tt])}(this._preview);return 0===ve?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ze=>{const tt=Re=>{var st;(!Re||(0,w.sA)(Re)===this._preview&&"transform"===Re.propertyName)&&(null===(st=this._preview)||void 0===st||st.removeEventListener("transitionend",tt),ze(),clearTimeout(at))},at=setTimeout(tt,1.5*ve);this._preview.addEventListener("transitionend",tt)}))}_createPlaceholderElement(){const me=this._placeholderTemplate,ve=me?me.template:null;let ze;return ve?(this._placeholderRef=me.viewContainer.createEmbeddedView(ve,me.context),this._placeholderRef.detectChanges(),ze=Je(this._placeholderRef,this._document)):ze=Ze(this._rootElement),ze.style.pointerEvents="none",ze.classList.add("cdk-drag-placeholder"),ze}_getPointerPositionInElement(me,ve,ze){const tt=ve===this._rootElement?null:ve,at=tt?tt.getBoundingClientRect():me,Re=_t(ze)?ze.targetTouches[0]:ze,st=this._getViewportScrollPosition();return{x:at.left-me.left+(Re.pageX-at.left-st.left),y:at.top-me.top+(Re.pageY-at.top-st.top)}}_getPointerPositionOnPage(me){const ve=this._getViewportScrollPosition(),ze=_t(me)?me.touches[0]||me.changedTouches[0]||{pageX:0,pageY:0}:me,tt=ze.pageX-ve.left,at=ze.pageY-ve.top;if(this._ownerSVGElement){const Re=this._ownerSVGElement.getScreenCTM();if(Re){const st=this._ownerSVGElement.createSVGPoint();return st.x=tt,st.y=at,st.matrixTransform(Re.inverse())}}return{x:tt,y:at}}_getConstrainedPointerPosition(me){const ve=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ze,y:tt}=this.constrainPosition?this.constrainPosition(me,this,this._initialClientRect,this._pickupPositionInElement):me;if("x"===this.lockAxis||"x"===ve?tt=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===ve)&&(ze=this._pickupPositionOnPage.x),this._boundaryRect){const{x:at,y:Re}=this._pickupPositionInElement,st=this._boundaryRect,{width:Pt,height:jt}=this._getPreviewRect(),cn=st.top+Re,Xt=st.bottom-(jt-Re);ze=Xe(ze,st.left+at,st.right-(Pt-at)),tt=Xe(tt,cn,Xt)}return{x:ze,y:tt}}_updatePointerDirectionDelta(me){const{x:ve,y:ze}=me,tt=this._pointerDirectionDelta,at=this._pointerPositionAtLastDirectionChange,Re=Math.abs(ve-at.x),st=Math.abs(ze-at.y);return Re>this._config.pointerDirectionChangeThreshold&&(tt.x=ve>at.x?1:-1,at.x=ve),st>this._config.pointerDirectionChangeThreshold&&(tt.y=ze>at.y?1:-1,at.y=ze),tt}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const me=this._handles.length>0||!this.isDragging();me!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=me,v(this._rootElement,me))}_removeRootElementListeners(me){me.removeEventListener("mousedown",this._pointerDown,se),me.removeEventListener("touchstart",this._pointerDown,G),me.removeEventListener("dragstart",this._nativeDragStart,se)}_applyRootElementTransform(me,ve){const ze=ct(me,ve),tt=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=tt.transform&&"none"!=tt.transform?tt.transform:""),tt.transform=B(ze,this._initialTransform)}_applyPreviewTransform(me,ve){var ze;const tt=null!==(ze=this._previewTemplate)&&void 0!==ze&&ze.template?void 0:this._initialTransform,at=ct(me,ve);this._preview.style.transform=B(at,tt)}_getDragDistance(me){const ve=this._pickupPositionOnPage;return ve?{x:me.x-ve.x,y:me.y-ve.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:me,y:ve}=this._passiveTransform;if(0===me&&0===ve||this.isDragging()||!this._boundaryElement)return;const ze=this._rootElement.getBoundingClientRect(),tt=this._boundaryElement.getBoundingClientRect();if(0===tt.width&&0===tt.height||0===ze.width&&0===ze.height)return;const at=tt.left-ze.left,Re=ze.right-tt.right,st=tt.top-ze.top,Pt=ze.bottom-tt.bottom;tt.width>ze.width?(at>0&&(me+=at),Re>0&&(me-=Re)):me=0,tt.height>ze.height?(st>0&&(ve+=st),Pt>0&&(ve-=Pt)):ve=0,(me!==this._passiveTransform.x||ve!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ve,x:me})}_getDragStartDelay(me){const ve=this.dragStartDelay;return"number"==typeof ve?ve:_t(me)?ve.touch:ve?ve.mouse:0}_updateOnScroll(me){const ve=this._parentPositions.handleScroll(me);if(ve){const ze=(0,w.sA)(me);this._boundaryRect&&ze!==this._boundaryElement&&ze.contains(this._boundaryElement)&&we(this._boundaryRect,ve.top,ve.left),this._pickupPositionOnPage.x+=ve.left,this._pickupPositionOnPage.y+=ve.top,this._dropContainer||(this._activeTransform.x-=ve.left,this._activeTransform.y-=ve.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var me;return(null===(me=this._parentPositions.positions.get(this._document))||void 0===me?void 0:me.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,w.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(me,ve){const ze=this._previewContainer||"global";if("parent"===ze)return me;if("global"===ze){const tt=this._document;return ve||tt.fullscreenElement||tt.webkitFullscreenElement||tt.mozFullScreenElement||tt.msFullscreenElement||tt.body}return(0,g.fI)(ze)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(me){return this._handles.find(ve=>me.target&&(me.target===ve||ve.contains(me.target)))}}function ct(Be,me){return`translate3d(${Math.round(Be)}px, ${Math.round(me)}px, 0)`}function Xe(Be,me,ve){return Math.max(me,Math.min(ve,Be))}function _t(Be){return"t"===Be.type[0]}function Je(Be,me){const ve=Be.rootNodes;if(1===ve.length&&ve[0].nodeType===me.ELEMENT_NODE)return ve[0];const ze=me.createElement("div");return ve.forEach(tt=>ze.appendChild(tt)),ze}function gt(Be,me){Be.style.width=`${me.width}px`,Be.style.height=`${me.height}px`,Be.style.transform=ct(me.left,me.top)}function Y(Be,me,ve){const ze=re(me,Be.length-1),tt=re(ve,Be.length-1);if(ze===tt)return;const at=Be[ze],Re=tt0)return null;const st="horizontal"===this.orientation,Pt=at.findIndex(Ct=>Ct.drag===me),jt=at[Re],Xt=jt.clientRect,sn=Pt>Re?1:-1,mn=this._getItemOffsetPx(at[Pt].clientRect,Xt,sn),Nt=this._getSiblingOffsetPx(Pt,at,sn),Rt=at.slice();return Y(at,Pt,Re),at.forEach((Ct,Ut)=>{if(Rt[Ut]===Ct)return;const Qt=Ct.drag===me,An=Qt?mn:Nt,Dt=Qt?me.getPlaceholderElement():Ct.drag.getRootElement();Ct.offset+=An,st?(Dt.style.transform=B(`translate3d(${Math.round(Ct.offset)}px, 0, 0)`,Ct.initialTransform),we(Ct.clientRect,0,An)):(Dt.style.transform=B(`translate3d(0, ${Math.round(Ct.offset)}px, 0)`,Ct.initialTransform),we(Ct.clientRect,An,0))}),this._previousSwap.overlaps=Me(Xt,ve,ze),this._previousSwap.drag=jt.drag,this._previousSwap.delta=st?tt.x:tt.y,{previousIndex:Pt,currentIndex:Re}}enter(me,ve,ze,tt){const at=null==tt||tt<0?this._getItemIndexFromPointerPosition(me,ve,ze):tt,Re=this._activeDraggables,st=Re.indexOf(me),Pt=me.getPlaceholderElement();let jt=Re[at];if(jt===me&&(jt=Re[at+1]),!jt&&(null==at||-1===at||at-1&&Re.splice(st,1),jt&&!this._dragDropRegistry.isDragging(jt)){const cn=jt.getRootElement();cn.parentElement.insertBefore(Pt,cn),Re.splice(at,0,me)}else(0,g.fI)(this._element).appendChild(Pt),Re.push(me);Pt.style.transform="",this._cacheItemPositions()}withItems(me){this._activeDraggables=me.slice(),this._cacheItemPositions()}withSortPredicate(me){this._sortPredicate=me}reset(){this._activeDraggables.forEach(me=>{const ve=me.getRootElement();if(ve){var ze;const tt=null===(ze=this._itemPositions.find(at=>at.drag===me))||void 0===ze?void 0:ze.initialTransform;ve.style.transform=tt||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(me){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ze=>ze.drag===me)}updateOnScroll(me,ve){this._itemPositions.forEach(({clientRect:ze})=>{we(ze,me,ve)}),this._itemPositions.forEach(({drag:ze})=>{this._dragDropRegistry.isDragging(ze)&&ze._sortFromLastPointerPosition()})}_cacheItemPositions(){const me="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(ve=>{const ze=ve.getVisibleElement();return{drag:ve,offset:0,initialTransform:ze.style.transform||"",clientRect:ye(ze)}}).sort((ve,ze)=>me?ve.clientRect.left-ze.clientRect.left:ve.clientRect.top-ze.clientRect.top)}_getItemOffsetPx(me,ve,ze){const tt="horizontal"===this.orientation;let at=tt?ve.left-me.left:ve.top-me.top;return-1===ze&&(at+=tt?ve.width-me.width:ve.height-me.height),at}_getSiblingOffsetPx(me,ve,ze){const tt="horizontal"===this.orientation,at=ve[me].clientRect,Re=ve[me+-1*ze];let st=at[tt?"width":"height"]*ze;if(Re){const Pt=tt?"left":"top",jt=tt?"right":"bottom";-1===ze?st-=Re.clientRect[Pt]-at[jt]:st+=at[Pt]-Re.clientRect[jt]}return st}_shouldEnterAsFirstChild(me,ve){if(!this._activeDraggables.length)return!1;const ze=this._itemPositions,tt="horizontal"===this.orientation;if(ze[0].drag!==this._activeDraggables[0]){const Re=ze[ze.length-1].clientRect;return tt?me>=Re.right:ve>=Re.bottom}{const Re=ze[0].clientRect;return tt?me<=Re.left:ve<=Re.top}}_getItemIndexFromPointerPosition(me,ve,ze,tt){const at="horizontal"===this.orientation,Re=this._itemPositions.findIndex(({drag:st,clientRect:Pt})=>{if(st===me)return!1;if(tt){const jt=at?tt.x:tt.y;if(st===this._previousSwap.drag&&this._previousSwap.overlaps&&jt===this._previousSwap.delta)return!1}return at?ve>=Math.floor(Pt.left)&&ve=Math.floor(Pt.top)&&ze!0,this.sortPredicate=()=>!0,this.beforeStarted=new T.x,this.entered=new T.x,this.exited=new T.x,this.dropped=new T.x,this.sorted=new T.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=E.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new T.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,S.F)(0,U.Z).pipe((0,z.R)(this._stopScrollTimers)).subscribe(()=>{const Re=this._scrollNode,st=this.autoScrollStep;1===this._verticalScrollDirection?Re.scrollBy(0,-st):2===this._verticalScrollDirection&&Re.scrollBy(0,st),1===this._horizontalScrollDirection?Re.scrollBy(-st,0):2===this._horizontalScrollDirection&&Re.scrollBy(st,0)})},this.element=(0,g.fI)(me),this._document=ze,this.withScrollableParents([this.element]),ve.registerDropContainer(this),this._parentPositions=new ce(ze),this._sortStrategy=new Se(this.element,ve),this._sortStrategy.withSortPredicate((Re,st)=>this.sortPredicate(Re,st,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(me,ve,ze,tt){this._draggingStarted(),null==tt&&this.sortingDisabled&&(tt=this._draggables.indexOf(me)),this._sortStrategy.enter(me,ve,ze,tt),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:me,container:this,currentIndex:this.getItemIndex(me)})}exit(me){this._reset(),this.exited.next({item:me,container:this})}drop(me,ve,ze,tt,at,Re,st,Pt={}){this._reset(),this.dropped.next({item:me,currentIndex:ve,previousIndex:ze,container:this,previousContainer:tt,isPointerOverContainer:at,distance:Re,dropPoint:st,event:Pt})}withItems(me){const ve=this._draggables;return this._draggables=me,me.forEach(ze=>ze._withDropContainer(this)),this.isDragging()&&(ve.filter(tt=>tt.isDragging()).every(tt=>-1===me.indexOf(tt))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(me){return this._sortStrategy.direction=me,this}connectedTo(me){return this._siblings=me.slice(),this}withOrientation(me){return this._sortStrategy.orientation=me,this}withScrollableParents(me){const ve=(0,g.fI)(this.element);return this._scrollableElements=-1===me.indexOf(ve)?[ve,...me]:me.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(me){return this._isDragging?this._sortStrategy.getItemIndex(me):this._draggables.indexOf(me)}isReceiving(){return this._activeSiblings.size>0}_sortItem(me,ve,ze,tt){if(this.sortingDisabled||!this._clientRect||!Ge(this._clientRect,.05,ve,ze))return;const at=this._sortStrategy.sort(me,ve,ze,tt);at&&this.sorted.next({previousIndex:at.previousIndex,currentIndex:at.currentIndex,container:this,item:me})}_startScrollingIfNecessary(me,ve){if(this.autoScrollDisabled)return;let ze,tt=0,at=0;if(this._parentPositions.positions.forEach((Re,st)=>{st===this._document||!Re.clientRect||ze||Ge(Re.clientRect,.05,me,ve)&&([tt,at]=function i(Be,me,ve,ze){const tt=P(me,ze),at=H(me,ve);let Re=0,st=0;if(tt){const Pt=Be.scrollTop;1===tt?Pt>0&&(Re=1):Be.scrollHeight-Pt>Be.clientHeight&&(Re=2)}if(at){const Pt=Be.scrollLeft;1===at?Pt>0&&(st=1):Be.scrollWidth-Pt>Be.clientWidth&&(st=2)}return[Re,st]}(st,Re.clientRect,me,ve),(tt||at)&&(ze=st))}),!tt&&!at){const{width:Re,height:st}=this._viewportRuler.getViewportSize(),Pt={width:Re,height:st,top:0,right:Re,bottom:st,left:0};tt=P(Pt,ve),at=H(Pt,me),ze=window}ze&&(tt!==this._verticalScrollDirection||at!==this._horizontalScrollDirection||ze!==this._scrollNode)&&(this._verticalScrollDirection=tt,this._horizontalScrollDirection=at,this._scrollNode=ze,(tt||at)&&ze?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const me=(0,g.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=me.msScrollSnapType||me.scrollSnapType||"",me.scrollSnapType=me.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const me=(0,g.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(me).clientRect}_reset(){this._isDragging=!1;const me=(0,g.fI)(this.element).style;me.scrollSnapType=me.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(ve=>ve._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(me,ve){return null!=this._clientRect&&Me(this._clientRect,me,ve)}_getSiblingContainerFromPosition(me,ve,ze){return this._siblings.find(tt=>tt._canReceive(me,ve,ze))}_canReceive(me,ve,ze){if(!this._clientRect||!Me(this._clientRect,ve,ze)||!this.enterPredicate(me,this))return!1;const tt=this._getShadowRoot().elementFromPoint(ve,ze);if(!tt)return!1;const at=(0,g.fI)(this.element);return tt===at||at.contains(tt)}_startReceiving(me,ve){const ze=this._activeSiblings;!ze.has(me)&&ve.every(tt=>this.enterPredicate(tt,this)||this._draggables.indexOf(tt)>-1)&&(ze.add(me),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(me){this._activeSiblings.delete(me),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(me=>{if(this.isDragging()){const ve=this._parentPositions.handleScroll(me);ve&&this._sortStrategy.updateOnScroll(ve.top,ve.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const me=(0,w.kV)((0,g.fI)(this.element));this._cachedShadowRoot=me||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const me=this._sortStrategy.getActiveItemsSnapshot().filter(ve=>ve.isDragging());this._siblings.forEach(ve=>ve._startReceiving(this,me))}}function P(Be,me){const{top:ve,bottom:ze,height:tt}=Be,at=.05*tt;return me>=ve-at&&me<=ve+at?1:me>=ze-at&&me<=ze+at?2:0}function H(Be,me){const{left:ve,right:ze,width:tt}=Be,at=.05*tt;return me>=ve-at&&me<=ve+at?1:me>=ze-at&&me<=ze+at?2:0}const o=(0,w.i$)({passive:!1,capture:!0});let f=(()=>{class Be{constructor(ve,ze){this._ngZone=ve,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=tt=>tt.isDragging(),this.pointerMove=new T.x,this.pointerUp=new T.x,this.scroll=new T.x,this._preventDefaultWhileDragging=tt=>{this._activeDragInstances.length>0&&tt.preventDefault()},this._persistentTouchmoveListener=tt=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&tt.preventDefault(),this.pointerMove.next(tt))},this._document=ze}registerDropContainer(ve){this._dropInstances.has(ve)||this._dropInstances.add(ve)}registerDragItem(ve){this._dragInstances.add(ve),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,o)})}removeDropContainer(ve){this._dropInstances.delete(ve)}removeDragItem(ve){this._dragInstances.delete(ve),this.stopDragging(ve),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,o)}startDragging(ve,ze){if(!(this._activeDragInstances.indexOf(ve)>-1)&&(this._activeDragInstances.push(ve),1===this._activeDragInstances.length)){const tt=ze.type.startsWith("touch");this._globalListeners.set(tt?"touchend":"mouseup",{handler:at=>this.pointerUp.next(at),options:!0}).set("scroll",{handler:at=>this.scroll.next(at),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:o}),tt||this._globalListeners.set("mousemove",{handler:at=>this.pointerMove.next(at),options:o}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((at,Re)=>{this._document.addEventListener(Re,at.handler,at.options)})})}}stopDragging(ve){const ze=this._activeDragInstances.indexOf(ve);ze>-1&&(this._activeDragInstances.splice(ze,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(ve){return this._activeDragInstances.indexOf(ve)>-1}scrolled(ve){const ze=[this.scroll];return ve&&ve!==this._document&&ze.push(new _.y(tt=>this._ngZone.runOutsideAngular(()=>{const Re=st=>{this._activeDragInstances.length&&tt.next(st)};return ve.addEventListener("scroll",Re,!0),()=>{ve.removeEventListener("scroll",Re,!0)}}))),(0,V.T)(...ze)}ngOnDestroy(){this._dragInstances.forEach(ve=>this.removeDragItem(ve)),this._dropInstances.forEach(ve=>this.removeDropContainer(ve)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ve,ze)=>{this._document.removeEventListener(ze,ve.handler,ve.options)}),this._globalListeners.clear()}}return Be.\u0275fac=function(ve){return new(ve||Be)(e.LFG(e.R0b),e.LFG(c.K0))},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const l={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let a=(()=>{class Be{constructor(ve,ze,tt,at){this._document=ve,this._ngZone=ze,this._viewportRuler=tt,this._dragDropRegistry=at}createDrag(ve,ze=l){return new Oe(ve,ze,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ve){return new Ue(ve,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return Be.\u0275fac=function(ve){return new(ve||Be)(e.LFG(c.K0),e.LFG(e.R0b),e.LFG(A.rL),e.LFG(f))},Be.\u0275prov=e.Yz7({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const n=new e.OlP("CDK_DRAG_PARENT"),t=new e.OlP("CdkDropListGroup"),s=new e.OlP("CDK_DRAG_CONFIG");let p=0;const M=new e.OlP("CdkDropList");let _e=(()=>{class Be{constructor(ve,ze,tt,at,Re,st,Pt){this.element=ve,this._changeDetectorRef=tt,this._scrollDispatcher=at,this._dir=Re,this._group=st,this._destroyed=new T.x,this.connectedTo=[],this.id="cdk-drop-list-"+p++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=ze.createDropList(ve),this._dropListRef.data=this,Pt&&this._assignDefaults(Pt),this._dropListRef.enterPredicate=(jt,cn)=>this.enterPredicate(jt.data,cn.data),this._dropListRef.sortPredicate=(jt,cn,Xt)=>this.sortPredicate(jt,cn.data,Xt.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),Be._dropLists.push(this),st&&st._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(ve){this._dropListRef.disabled=this._disabled=(0,g.Ig)(ve)}addItem(ve){this._unsortedItems.add(ve),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(ve){this._unsortedItems.delete(ve),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((ve,ze)=>ve._dragRef.getVisibleElement().compareDocumentPosition(ze._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const ve=Be._dropLists.indexOf(this);ve>-1&&Be._dropLists.splice(ve,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(ve){this._dir&&this._dir.change.pipe((0,Q.O)(this._dir.value),(0,z.R)(this._destroyed)).subscribe(ze=>ve.withDirection(ze)),ve.beforeStarted.subscribe(()=>{const ze=(0,g.Eq)(this.connectedTo).map(tt=>"string"==typeof tt?Be._dropLists.find(Re=>Re.id===tt):tt);if(this._group&&this._group._items.forEach(tt=>{-1===ze.indexOf(tt)&&ze.push(tt)}),!this._scrollableParentsResolved){const tt=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(at=>at.getElementRef().nativeElement);this._dropListRef.withScrollableParents(tt),this._scrollableParentsResolved=!0}ve.disabled=this.disabled,ve.lockAxis=this.lockAxis,ve.sortingDisabled=(0,g.Ig)(this.sortingDisabled),ve.autoScrollDisabled=(0,g.Ig)(this.autoScrollDisabled),ve.autoScrollStep=(0,g.su)(this.autoScrollStep,2),ve.connectedTo(ze.filter(tt=>tt&&tt!==this).map(tt=>tt._dropListRef)).withOrientation(this.orientation)})}_handleEvents(ve){ve.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),ve.entered.subscribe(ze=>{this.entered.emit({container:this,item:ze.item.data,currentIndex:ze.currentIndex})}),ve.exited.subscribe(ze=>{this.exited.emit({container:this,item:ze.item.data}),this._changeDetectorRef.markForCheck()}),ve.sorted.subscribe(ze=>{this.sorted.emit({previousIndex:ze.previousIndex,currentIndex:ze.currentIndex,container:this,item:ze.item.data})}),ve.dropped.subscribe(ze=>{this.dropped.emit({previousIndex:ze.previousIndex,currentIndex:ze.currentIndex,previousContainer:ze.previousContainer.data,container:ze.container.data,item:ze.item.data,isPointerOverContainer:ze.isPointerOverContainer,distance:ze.distance,dropPoint:ze.dropPoint,event:ze.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(ve){const{lockAxis:ze,draggingDisabled:tt,sortingDisabled:at,listAutoScrollDisabled:Re,listOrientation:st}=ve;this.disabled=tt??!1,this.sortingDisabled=at??!1,this.autoScrollDisabled=Re??!1,this.orientation=st||"vertical",ze&&(this.lockAxis=ze)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(ve=>ve._dragRef))}}return Be._dropLists=[],Be.\u0275fac=function(ve){return new(ve||Be)(e.Y36(e.SBq),e.Y36(a),e.Y36(e.sBO),e.Y36(A.mF),e.Y36(de.Is,8),e.Y36(t,12),e.Y36(s,8))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(ve,ze){2&ve&&(e.uIk("id",ze.id),e.ekj("cdk-drop-list-disabled",ze.disabled)("cdk-drop-list-dragging",ze._dropListRef.isDragging())("cdk-drop-list-receiving",ze._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:t,useValue:void 0},{provide:M,useExisting:Be}])]}),Be})();const bt=new e.OlP("CdkDragHandle"),on=new e.OlP("CdkDragPlaceholder"),ft=new e.OlP("CdkDragPreview");let Qe=(()=>{class Be{constructor(ve,ze,tt,at,Re,st,Pt,jt,cn,Xt,sn){this.element=ve,this.dropContainer=ze,this._ngZone=at,this._viewContainerRef=Re,this._dir=Pt,this._changeDetectorRef=cn,this._selfHandle=Xt,this._parentDrag=sn,this._destroyed=new T.x,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new _.y(mn=>{const Nt=this._dragRef.moved.pipe((0,te.U)(Rt=>({source:this,pointerPosition:Rt.pointerPosition,event:Rt.event,delta:Rt.delta,distance:Rt.distance}))).subscribe(mn);return()=>{Nt.unsubscribe()}}),this._dragRef=jt.createDrag(ve,{dragStartThreshold:st&&null!=st.dragStartThreshold?st.dragStartThreshold:5,pointerDirectionChangeThreshold:st&&null!=st.pointerDirectionChangeThreshold?st.pointerDirectionChangeThreshold:5,zIndex:st?.zIndex}),this._dragRef.data=this,Be._dragInstances.push(this),st&&this._assignDefaults(st),ze&&(this._dragRef._withDropContainer(ze._dropListRef),ze.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ve){this._disabled=(0,g.Ig)(ve),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(ve){this._dragRef.setFreeDragPosition(ve)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,oe.q)(1),(0,z.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(ve){const ze=ve.rootElementSelector,tt=ve.freeDragPosition;ze&&!ze.firstChange&&this._updateRootElement(),tt&&!tt.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ve=Be._dragInstances.indexOf(this);ve>-1&&Be._dragInstances.splice(ve,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const ve=this.element.nativeElement;let ze=ve;var tt;this.rootElementSelector&&(ze=void 0!==ve.closest?ve.closest(this.rootElementSelector):null===(tt=ve.parentElement)||void 0===tt?void 0:tt.closest(this.rootElementSelector)),this._dragRef.withRootElement(ze||ve)}_getBoundaryElement(){const ve=this.boundaryElement;return ve?"string"==typeof ve?this.element.nativeElement.closest(ve):(0,g.fI)(ve):null}_syncInputs(ve){ve.beforeStarted.subscribe(()=>{if(!ve.isDragging()){const ze=this._dir,tt=this.dragStartDelay,at=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,Re=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ve.disabled=this.disabled,ve.lockAxis=this.lockAxis,ve.dragStartDelay="object"==typeof tt&&tt?tt:(0,g.su)(tt),ve.constrainPosition=this.constrainPosition,ve.previewClass=this.previewClass,ve.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(at).withPreviewTemplate(Re).withPreviewContainer(this.previewContainer||"global"),ze&&ve.withDirection(ze.value)}}),ve.beforeStarted.pipe((0,oe.q)(1)).subscribe(()=>{if(this._parentDrag)return void ve.withParent(this._parentDrag._dragRef);let ze=this.element.nativeElement.parentElement;for(;ze;){if(ze.classList.contains("cdk-drag")){var tt;ve.withParent((null===(tt=Be._dragInstances.find(at=>at.element.nativeElement===ze))||void 0===tt?void 0:tt._dragRef)||null);break}ze=ze.parentElement}})}_handleEvents(ve){ve.started.subscribe(ze=>{this.started.emit({source:this,event:ze.event}),this._changeDetectorRef.markForCheck()}),ve.released.subscribe(ze=>{this.released.emit({source:this,event:ze.event})}),ve.ended.subscribe(ze=>{this.ended.emit({source:this,distance:ze.distance,dropPoint:ze.dropPoint,event:ze.event}),this._changeDetectorRef.markForCheck()}),ve.entered.subscribe(ze=>{this.entered.emit({container:ze.container.data,item:this,currentIndex:ze.currentIndex})}),ve.exited.subscribe(ze=>{this.exited.emit({container:ze.container.data,item:this})}),ve.dropped.subscribe(ze=>{this.dropped.emit({previousIndex:ze.previousIndex,currentIndex:ze.currentIndex,previousContainer:ze.previousContainer.data,container:ze.container.data,isPointerOverContainer:ze.isPointerOverContainer,item:this,distance:ze.distance,dropPoint:ze.dropPoint,event:ze.event})})}_assignDefaults(ve){const{lockAxis:ze,dragStartDelay:tt,constrainPosition:at,previewClass:Re,boundaryElement:st,draggingDisabled:Pt,rootElementSelector:jt,previewContainer:cn}=ve;this.disabled=Pt??!1,this.dragStartDelay=tt||0,ze&&(this.lockAxis=ze),at&&(this.constrainPosition=at),Re&&(this.previewClass=Re),st&&(this.boundaryElement=st),jt&&(this.rootElementSelector=jt),cn&&(this.previewContainer=cn)}_setupHandlesListener(){this._handles.changes.pipe((0,Q.O)(this._handles),(0,ee.b)(ve=>{const ze=ve.filter(tt=>tt._parentDrag===this).map(tt=>tt.element);this._selfHandle&&this.rootElementSelector&&ze.push(this.element),this._dragRef.withHandles(ze)}),(0,le.w)(ve=>(0,V.T)(...ve.map(ze=>ze._stateChanges.pipe((0,Q.O)(ze))))),(0,z.R)(this._destroyed)).subscribe(ve=>{const ze=this._dragRef,tt=ve.element.nativeElement;ve.disabled?ze.disableHandle(tt):ze.enableHandle(tt)})}}return Be._dragInstances=[],Be.\u0275fac=function(ve){return new(ve||Be)(e.Y36(e.SBq),e.Y36(M,12),e.Y36(c.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(s,8),e.Y36(de.Is,8),e.Y36(a),e.Y36(e.sBO),e.Y36(bt,10),e.Y36(n,12))},Be.\u0275dir=e.lG2({type:Be,selectors:[["","cdkDrag",""]],contentQueries:function(ve,ze,tt){if(1&ve&&(e.Suo(tt,ft,5),e.Suo(tt,on,5),e.Suo(tt,bt,5)),2&ve){let at;e.iGM(at=e.CRH())&&(ze._previewTemplate=at.first),e.iGM(at=e.CRH())&&(ze._placeholderTemplate=at.first),e.iGM(at=e.CRH())&&(ze._handles=at)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(ve,ze){2&ve&&e.ekj("cdk-drag-disabled",ze.disabled)("cdk-drag-dragging",ze._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:n,useExisting:Be}]),e.TTD]}),Be})(),qe=(()=>{class Be{}return Be.\u0275fac=function(ve){return new(ve||Be)},Be.\u0275mod=e.oAB({type:Be}),Be.\u0275inj=e.cJS({providers:[a],imports:[A.ZD]}),Be})()},29521:(Ye,pe,h)=>{"use strict";h.d(pe,{A:()=>$,JH:()=>Te,JU:()=>C,K5:()=>g,Ku:()=>z,LH:()=>le,L_:()=>V,MW:()=>s,Mf:()=>A,OC:()=>mt,SV:()=>de,Sd:()=>oe,VM:()=>Q,Vb:()=>Ji,Z:()=>r,ZH:()=>c,aO:()=>xe,b2:()=>Hn,hY:()=>_,jx:()=>T,oh:()=>ee,uR:()=>te,xE:()=>q,yY:()=>W,zL:()=>E});const c=8,A=9,g=13,C=16,T=17,E=18,_=27,V=32,z=33,Q=34,te=35,oe=36,ee=37,le=38,de=39,Te=40,W=46,q=48,xe=57,$=65,r=90,s=91,mt=188,Hn=224;function Ji(Gn,...Yn){return Yn.length?Yn.some(Vi=>Gn[Vi]):Gn.altKey||Gn.shiftKey||Gn.ctrlKey||Gn.metaKey}},62289:(Ye,pe,h)=>{"use strict";h.d(pe,{Yg:()=>Te,u3:()=>L});var e=h(94650),c=h(21281),A=h(77579),w=h(39841),g=h(97272),C=h(69751),T=h(95698),E=h(35684),S=h(78372),U=h(54004),_=h(68675),V=h(82722),z=h(83353);const te=new Set;let oe,ee=(()=>{class B{constructor(q){this._platform=q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):de}matchMedia(q){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(B){if(!te.has(B))try{oe||(oe=document.createElement("style"),oe.setAttribute("type","text/css"),document.head.appendChild(oe)),oe.sheet&&(oe.sheet.insertRule(`@media ${B} {body{ }}`,0),te.add(B))}catch(W){console.error(W)}}(q),this._matchMedia(q)}}return B.\u0275fac=function(q){return new(q||B)(e.LFG(z.t4))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function de(B){return{matches:"all"===B||""===B,media:B,addListener:()=>{},removeListener:()=>{}}}let Te=(()=>{class B{constructor(q,ue){this._mediaMatcher=q,this._zone=ue,this._queries=new Map,this._destroySubject=new A.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(q){return v((0,c.Eq)(q)).some(ye=>this._registerQuery(ye).mql.matches)}observe(q){const ye=v((0,c.Eq)(q)).map(we=>this._registerQuery(we).observable);let Me=(0,w.a)(ye);return Me=(0,g.z)(Me.pipe((0,T.q)(1)),Me.pipe((0,E.T)(1),(0,S.b)(0))),Me.pipe((0,U.U)(we=>{const Ge={matches:!1,breakpoints:{}};return we.forEach(({matches:ce,query:Ze})=>{Ge.matches=Ge.matches||ce,Ge.breakpoints[Ze]=ce}),Ge}))}_registerQuery(q){if(this._queries.has(q))return this._queries.get(q);const ue=this._mediaMatcher.matchMedia(q),Me={observable:new C.y(we=>{const Ge=ce=>this._zone.run(()=>we.next(ce));return ue.addListener(Ge),()=>{ue.removeListener(Ge)}}).pipe((0,_.O)(ue),(0,U.U)(({matches:we})=>({query:q,matches:we})),(0,V.R)(this._destroySubject)),mql:ue};return this._queries.set(q,Me),Me}}return B.\u0275fac=function(q){return new(q||B)(e.LFG(ee),e.LFG(e.R0b))},B.\u0275prov=e.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function v(B){return B.map(W=>W.split(",")).reduce((W,q)=>W.concat(q)).map(W=>W.trim())}const L={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)"}},49643:(Ye,pe,h)=>{"use strict";h.d(pe,{Q8:()=>S,wD:()=>E});var e=h(21281),c=h(94650),A=h(69751),w=h(77579),g=h(78372);let C=(()=>{class U{create(V){return typeof MutationObserver>"u"?null:new MutationObserver(V)}}return U.\u0275fac=function(V){return new(V||U)},U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),T=(()=>{class U{constructor(V){this._mutationObserverFactory=V,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((V,z)=>this._cleanupObserver(z))}observe(V){const z=(0,e.fI)(V);return new A.y(Q=>{const oe=this._observeElement(z).subscribe(Q);return()=>{oe.unsubscribe(),this._unobserveElement(z)}})}_observeElement(V){if(this._observedElements.has(V))this._observedElements.get(V).count++;else{const z=new w.x,Q=this._mutationObserverFactory.create(te=>z.next(te));Q&&Q.observe(V,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(V,{observer:Q,stream:z,count:1})}return this._observedElements.get(V).stream}_unobserveElement(V){this._observedElements.has(V)&&(this._observedElements.get(V).count--,this._observedElements.get(V).count||this._cleanupObserver(V))}_cleanupObserver(V){if(this._observedElements.has(V)){const{observer:z,stream:Q}=this._observedElements.get(V);z&&z.disconnect(),Q.complete(),this._observedElements.delete(V)}}}return U.\u0275fac=function(V){return new(V||U)(c.LFG(C))},U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})(),E=(()=>{class U{constructor(V,z,Q){this._contentObserver=V,this._elementRef=z,this._ngZone=Q,this.event=new c.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,e.Ig)(V),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(V){this._debounce=(0,e.su)(V),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const V=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?V.pipe((0,g.b)(this.debounce)):V).subscribe(this.event)})}_unsubscribe(){var V;null===(V=this._currentSubscription)||void 0===V||V.unsubscribe()}}return U.\u0275fac=function(V){return new(V||U)(c.Y36(T),c.Y36(c.SBq),c.Y36(c.R0b))},U.\u0275dir=c.lG2({type:U,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),U})(),S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=c.oAB({type:U}),U.\u0275inj=c.cJS({providers:[C]}),U})()},98184:(Ye,pe,h)=>{"use strict";h.d(pe,{Iu:()=>xe,U8:()=>Ue,X_:()=>W,Xj:()=>he,_G:()=>G,aV:()=>Y,pI:()=>Se,xu:()=>re});var e=h(67376),c=h(36895),A=h(94650),w=h(21281),g=h(83353),C=h(40445),T=h(84080),E=h(77579),S=h(50727),U=h(56451),_=h(95698),V=h(82722),z=h(22529),Q=h(29521);const te=(0,g.Mq)();class oe{constructor(i,o){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}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,w.HM)(-this._previousScrollPosition.left),i.style.top=(0,w.HM)(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,f=i.style,l=this._document.body.style,a=f.scrollBehavior||"",n=l.scrollBehavior||"";this._isEnabled=!1,f.left=this._previousHTMLStyles.left,f.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),te&&(f.scrollBehavior=l.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),te&&(f.scrollBehavior=a,l.scrollBehavior=n)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const o=this._document.body,f=this._viewportRuler.getViewportSize();return o.scrollHeight>f.height||o.scrollWidth>f.width}}class le{constructor(i,o,f,l){this._scrollDispatcher=i,this._ngZone=o,this._viewportRuler=f,this._config=l,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 o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-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 de{enable(){}disable(){}attach(){}}function Te(H,i){return i.some(o=>H.bottomo.bottom||H.righto.right)}function v(H,i){return i.some(o=>H.topo.bottom||H.lefto.right)}class L{constructor(i,o,f,l){this._scrollDispatcher=i,this._viewportRuler=o,this._ngZone=f,this._config=l,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 o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:f,height:l}=this._viewportRuler.getViewportSize();Te(o,[{width:f,height:l,bottom:l,right:f,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 H{constructor(o,f,l,a){this._scrollDispatcher=o,this._viewportRuler=f,this._ngZone=l,this.noop=()=>new de,this.close=n=>new le(this._scrollDispatcher,this._ngZone,this._viewportRuler,n),this.block=()=>new oe(this._viewportRuler,this._document),this.reposition=n=>new L(this._scrollDispatcher,this._viewportRuler,this._ngZone,n),this._document=a}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(e.mF),A.LFG(e.rL),A.LFG(A.R0b),A.LFG(c.K0))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})();class W{constructor(i){if(this.scrollStrategy=new de,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const o=Object.keys(i);for(const f of o)void 0!==i[f]&&(this[f]=i[f])}}}class ye{constructor(i,o){this.connectionPair=i,this.scrollableViewProperties=o}}let Ge=(()=>{class H{constructor(o){this._attachedOverlays=[],this._document=o}ngOnDestroy(){this.detach()}add(o){this.remove(o),this._attachedOverlays.push(o)}remove(o){const f=this._attachedOverlays.indexOf(o);f>-1&&this._attachedOverlays.splice(f,1),0===this._attachedOverlays.length&&this.detach()}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(c.K0))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),ce=(()=>{class H extends Ge{constructor(o,f){super(o),this._ngZone=f,this._keydownListener=l=>{const a=this._attachedOverlays;for(let n=a.length-1;n>-1;n--)if(a[n]._keydownEvents.observers.length>0){const t=a[n]._keydownEvents;this._ngZone?this._ngZone.run(()=>t.next(l)):t.next(l);break}}}add(o){super.add(o),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 H.\u0275fac=function(o){return new(o||H)(A.LFG(c.K0),A.LFG(A.R0b,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),Ze=(()=>{class H extends Ge{constructor(o,f,l){super(o),this._platform=f,this._ngZone=l,this._cursorStyleIsSet=!1,this._pointerDownListener=a=>{this._pointerDownEventTarget=(0,g.sA)(a)},this._clickListener=a=>{const n=(0,g.sA)(a),t="click"===a.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;const r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){const d=r[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(n)||d.overlayElement.contains(t))break;const p=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>p.next(a)):p.next(a)}}}add(o){if(super.add(o),!this._isAttached){const f=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(f)):this._addEventListeners(f),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=f.style.cursor,f.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const o=this._document.body;o.removeEventListener("pointerdown",this._pointerDownListener,!0),o.removeEventListener("click",this._clickListener,!0),o.removeEventListener("auxclick",this._clickListener,!0),o.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(o.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(o){o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(c.K0),A.LFG(g.t4),A.LFG(A.R0b,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),he=(()=>{class H{constructor(o,f){this._platform=f,this._document=o}ngOnDestroy(){var o;null===(o=this._containerElement)||void 0===o||o.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const l=this._document.querySelectorAll(`.${o}[platform="server"], .${o}[platform="test"]`);for(let a=0;athis._backdropClick.next(p),this._backdropTransitionendHandler=p=>{this._disposeBackdrop(p.target)},this._keydownEvents=new E.x,this._outsidePointerEvents=new E.x,l.scrollStrategy&&(this._scrollStrategy=l.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=l.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 o=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,_.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),"function"==typeof o?.onDestroy&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}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(){var i;const o=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),null===(i=this._host)||void 0===i||i.remove(),this._previousHostParent=this._pane=this._host=null,o&&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,w.HM)(this._config.width),i.height=(0,w.HM)(this._config.height),i.minWidth=(0,w.HM)(this._config.minWidth),i.minHeight=(0,w.HM)(this._config.minHeight),i.maxWidth=(0,w.HM)(this._config.maxWidth),i.maxHeight=(0,w.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,o,f){const l=(0,w.Eq)(o||[]).filter(a=>!!a);l.length&&(f?i.classList.add(...l):i.classList.remove(...l))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe((0,V.R)((0,U.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 j="cdk-overlay-connected-position-bounding-box",R=/([A-Za-z%]+)$/;class G{constructor(i,o,f,l,a){this._viewportRuler=o,this._document=f,this._platform=l,this._overlayContainer=a,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 E.x,this._resizeSubscription=S.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(j),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,o=this._overlayRect,f=this._viewportRect,l=this._containerRect,a=[];let n;for(let t of this._preferredPositions){let r=this._getOriginPoint(i,l,t),s=this._getOverlayPoint(r,o,t),d=this._getOverlayFit(s,o,f,t);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(t,r);this._canFitWithFlexibleDimensions(d,s,f)?a.push({position:t,origin:r,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(r,t)}):(!n||n.overlayFit.visibleArear&&(r=d,t=s)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&se(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(j),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 o=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,o)}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,o,f){let l,a;if("center"==f.originX)l=i.left+i.width/2;else{const n=this._isRtl()?i.right:i.left,t=this._isRtl()?i.left:i.right;l="start"==f.originX?n:t}return o.left<0&&(l-=o.left),a="center"==f.originY?i.top+i.height/2:"top"==f.originY?i.top:i.bottom,o.top<0&&(a-=o.top),{x:l,y:a}}_getOverlayPoint(i,o,f){let l,a;return l="center"==f.overlayX?-o.width/2:"start"===f.overlayX?this._isRtl()?-o.width:0:this._isRtl()?0:-o.width,a="center"==f.overlayY?-o.height/2:"top"==f.overlayY?0:-o.height,{x:i.x+l,y:i.y+a}}_getOverlayFit(i,o,f,l){const a=Ee(o);let{x:n,y:t}=i,r=this._getOffset(l,"x"),s=this._getOffset(l,"y");r&&(n+=r),s&&(t+=s);let M=0-t,_e=t+a.height-f.height,bt=this._subtractOverflows(a.width,0-n,n+a.width-f.width),Vt=this._subtractOverflows(a.height,M,_e),on=bt*Vt;return{visibleArea:on,isCompletelyWithinViewport:a.width*a.height===on,fitsInViewportVertically:Vt===a.height,fitsInViewportHorizontally:bt==a.width}}_canFitWithFlexibleDimensions(i,o,f){if(this._hasFlexibleDimensions){const l=f.bottom-o.y,a=f.right-o.x,n=$(this._overlayRef.getConfig().minHeight),t=$(this._overlayRef.getConfig().minWidth),s=i.fitsInViewportHorizontally||null!=t&&t<=a;return(i.fitsInViewportVertically||null!=n&&n<=l)&&s}return!1}_pushOverlayOnScreen(i,o,f){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const l=Ee(o),a=this._viewportRect,n=Math.max(i.x+l.width-a.width,0),t=Math.max(i.y+l.height-a.height,0),r=Math.max(a.top-f.top-i.y,0),s=Math.max(a.left-f.left-i.x,0);let d=0,p=0;return d=l.width<=a.width?s||-n:i.xbt&&!this._isInitialRender&&!this._growAfterOpen&&(n=i.y-bt/2)}if("end"===o.overlayX&&!l||"start"===o.overlayX&&l)M=f.width-i.x+this._viewportMargin,d=i.x-this._viewportMargin;else if("start"===o.overlayX&&!l||"end"===o.overlayX&&l)p=i.x,d=f.right-i.x;else{const _e=Math.min(f.right-i.x+f.left,i.x),bt=this._lastBoundingBoxSize.width;d=2*_e,p=i.x-_e,d>bt&&!this._isInitialRender&&!this._growAfterOpen&&(p=i.x-bt/2)}return{top:n,left:p,bottom:t,right:M,width:d,height:a}}_setBoundingBoxStyles(i,o){const f=this._calculateBoundingBoxRect(i,o);!this._isInitialRender&&!this._growAfterOpen&&(f.height=Math.min(f.height,this._lastBoundingBoxSize.height),f.width=Math.min(f.width,this._lastBoundingBoxSize.width));const l={};if(this._hasExactPosition())l.top=l.left="0",l.bottom=l.right=l.maxHeight=l.maxWidth="",l.width=l.height="100%";else{const a=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;l.height=(0,w.HM)(f.height),l.top=(0,w.HM)(f.top),l.bottom=(0,w.HM)(f.bottom),l.width=(0,w.HM)(f.width),l.left=(0,w.HM)(f.left),l.right=(0,w.HM)(f.right),l.alignItems="center"===o.overlayX?"center":"end"===o.overlayX?"flex-end":"flex-start",l.justifyContent="center"===o.overlayY?"center":"bottom"===o.overlayY?"flex-end":"flex-start",a&&(l.maxHeight=(0,w.HM)(a)),n&&(l.maxWidth=(0,w.HM)(n))}this._lastBoundingBoxSize=f,se(this._boundingBox.style,l)}_resetBoundingBoxStyles(){se(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){se(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,o){const f={},l=this._hasExactPosition(),a=this._hasFlexibleDimensions,n=this._overlayRef.getConfig();if(l){const d=this._viewportRuler.getViewportScrollPosition();se(f,this._getExactOverlayY(o,i,d)),se(f,this._getExactOverlayX(o,i,d))}else f.position="static";let t="",r=this._getOffset(o,"x"),s=this._getOffset(o,"y");r&&(t+=`translateX(${r}px) `),s&&(t+=`translateY(${s}px)`),f.transform=t.trim(),n.maxHeight&&(l?f.maxHeight=(0,w.HM)(n.maxHeight):a&&(f.maxHeight="")),n.maxWidth&&(l?f.maxWidth=(0,w.HM)(n.maxWidth):a&&(f.maxWidth="")),se(this._pane.style,f)}_getExactOverlayY(i,o,f){let l={top:"",bottom:""},a=this._getOverlayPoint(o,this._overlayRect,i);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,f)),"bottom"===i.overlayY?l.bottom=this._document.documentElement.clientHeight-(a.y+this._overlayRect.height)+"px":l.top=(0,w.HM)(a.y),l}_getExactOverlayX(i,o,f){let n,l={left:"",right:""},a=this._getOverlayPoint(o,this._overlayRect,i);return this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,f)),n=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===n?l.right=this._document.documentElement.clientWidth-(a.x+this._overlayRect.width)+"px":l.left=(0,w.HM)(a.x),l}_getScrollVisibility(){const i=this._getOriginRect(),o=this._pane.getBoundingClientRect(),f=this._scrollables.map(l=>l.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:v(i,f),isOriginOutsideView:Te(i,f),isOverlayClipped:v(o,f),isOverlayOutsideView:Te(o,f)}}_subtractOverflows(i,...o){return o.reduce((f,l)=>f-Math.max(l,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,f=this._viewportRuler.getViewportScrollPosition();return{top:f.top+this._viewportMargin,left:f.left+this._viewportMargin,right:f.left+i-this._viewportMargin,bottom:f.top+o-this._viewportMargin,width:i-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,o){return"x"===o?i.offsetX??this._offsetX:i.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&(0,w.Eq)(i).forEach(o=>{""!==o&&-1===this._appliedPanelClasses.indexOf(o)&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof A.SBq)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const o=i.width||0,f=i.height||0;return{top:i.y,bottom:i.y+f,left:i.x,right:i.x+o,height:f,width:o}}}function se(H,i){for(let o in i)i.hasOwnProperty(o)&&(H[o]=i[o]);return H}function $(H){if("number"!=typeof H&&null!=H){const[i,o]=H.split(R);return o&&"px"!==o?null:parseFloat(i)}return H||null}function Ee(H){return{top:Math.floor(H.top),right:Math.floor(H.right),bottom:Math.floor(H.bottom),left:Math.floor(H.left),width:Math.floor(H.width),height:Math.floor(H.height)}}const Xe="cdk-global-overlay-wrapper";class _t{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const o=i.getConfig();this._overlayRef=i,this._width&&!o.width&&i.updateSize({width:this._width}),this._height&&!o.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Xe),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,o=this._overlayRef.hostElement.style,f=this._overlayRef.getConfig(),{width:l,height:a,maxWidth:n,maxHeight:t}=f,r=!("100%"!==l&&"100vw"!==l||n&&"100%"!==n&&"100vw"!==n),s=!("100%"!==a&&"100vh"!==a||t&&"100%"!==t&&"100vh"!==t),d=this._xPosition,p=this._xOffset,M="rtl"===this._overlayRef.getConfig().direction;let _e="",bt="",Vt="";r?Vt="flex-start":"center"===d?(Vt="center",M?bt=p:_e=p):M?"left"===d||"end"===d?(Vt="flex-end",_e=p):("right"===d||"start"===d)&&(Vt="flex-start",bt=p):"left"===d||"start"===d?(Vt="flex-start",_e=p):("right"===d||"end"===d)&&(Vt="flex-end",bt=p),i.position=this._cssPosition,i.marginLeft=r?"0":_e,i.marginTop=s?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=r?"0":bt,o.justifyContent=Vt,o.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,f=o.style;o.classList.remove(Xe),f.justifyContent=f.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class H{constructor(o,f,l,a){this._viewportRuler=o,this._document=f,this._platform=l,this._overlayContainer=a}global(){return new _t}flexibleConnectedTo(o){return new G(o,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(e.rL),A.LFG(c.K0),A.LFG(g.t4),A.LFG(he))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),gt=0,Y=(()=>{class H{constructor(o,f,l,a,n,t,r,s,d,p,M,_e){this.scrollStrategies=o,this._overlayContainer=f,this._componentFactoryResolver=l,this._positionBuilder=a,this._keyboardDispatcher=n,this._injector=t,this._ngZone=r,this._document=s,this._directionality=d,this._location=p,this._outsideClickDispatcher=M,this._animationsModuleType=_e}create(o){const f=this._createHostElement(),l=this._createPaneElement(f),a=this._createPortalOutlet(l),n=new W(o);return n.direction=n.direction||this._directionality.value,new xe(a,f,l,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(o){const f=this._document.createElement("div");return f.id="cdk-overlay-"+gt++,f.classList.add("cdk-overlay-pane"),o.appendChild(f),f}_createHostElement(){const o=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalOutlet(o){return this._appRef||(this._appRef=this._injector.get(A.z2F)),new T.u0(o,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return H.\u0275fac=function(o){return new(o||H)(A.LFG(B),A.LFG(he),A.LFG(A._Vd),A.LFG(Je),A.LFG(ce),A.LFG(A.zs3),A.LFG(A.R0b),A.LFG(c.K0),A.LFG(C.Is),A.LFG(c.Ye),A.LFG(Ze),A.LFG(A.QbO,8))},H.\u0275prov=A.Yz7({token:H,factory:H.\u0275fac}),H})();const Ce=[{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"}],ae=new A.OlP("cdk-connected-overlay-scroll-strategy");let re=(()=>{class H{constructor(o){this.elementRef=o}}return H.\u0275fac=function(o){return new(o||H)(A.Y36(A.SBq))},H.\u0275dir=A.lG2({type:H,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),H})(),Se=(()=>{class H{constructor(o,f,l,a,n){this._overlay=o,this._dir=n,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=S.w0.EMPTY,this._attachSubscription=S.w0.EMPTY,this._detachSubscription=S.w0.EMPTY,this._positionSubscription=S.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new A.vpe,this.positionChange=new A.vpe,this.attach=new A.vpe,this.detach=new A.vpe,this.overlayKeydown=new A.vpe,this.overlayOutsideClick=new A.vpe,this._templatePortal=new T.UE(f,l),this._scrollStrategyFactory=a,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(o){this._offsetX=o,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(o){this._offsetY=o,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(o){this._hasBackdrop=(0,w.Ig)(o)}get lockPosition(){return this._lockPosition}set lockPosition(o){this._lockPosition=(0,w.Ig)(o)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(o){this._flexibleDimensions=(0,w.Ig)(o)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(o){this._growAfterOpen=(0,w.Ig)(o)}get push(){return this._push}set push(o){this._push=(0,w.Ig)(o)}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(o){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),o.origin&&this.open&&this._position.apply()),o.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ce);const o=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=o.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=o.detachments().subscribe(()=>this.detach.emit()),o.keydownEvents().subscribe(f=>{this.overlayKeydown.next(f),f.keyCode===Q.hY&&!this.disableClose&&!(0,Q.Vb)(f)&&(f.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(f=>{this.overlayOutsideClick.next(f)})}_buildConfig(){const o=this._position=this.positionStrategy||this._createPositionStrategy(),f=new W({direction:this._dir,positionStrategy:o,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(f.width=this.width),(this.height||0===this.height)&&(f.height=this.height),(this.minWidth||0===this.minWidth)&&(f.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(f.minHeight=this.minHeight),this.backdropClass&&(f.backdropClass=this.backdropClass),this.panelClass&&(f.panelClass=this.panelClass),f}_updatePositionStrategy(o){const f=this.positions.map(l=>({originX:l.originX,originY:l.originY,overlayX:l.overlayX,overlayY:l.overlayY,offsetX:l.offsetX||this.offsetX,offsetY:l.offsetY||this.offsetY,panelClass:l.panelClass||void 0}));return o.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(f).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const o=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(o),o}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof re?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(o=>{this.backdropClick.emit(o)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,z.o)(()=>this.positionChange.observers.length>0)).subscribe(o=>{this.positionChange.emit(o),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return H.\u0275fac=function(o){return new(o||H)(A.Y36(Y),A.Y36(A.Rgc),A.Y36(A.s_b),A.Y36(ae),A.Y36(C.Is,8))},H.\u0275dir=A.lG2({type:H,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:[A.TTD]}),H})();const be={provide:ae,deps:[Y],useFactory:function Fe(H){return()=>H.scrollStrategies.reposition()}};let Ue=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=A.oAB({type:H}),H.\u0275inj=A.cJS({providers:[Y,be],imports:[C.vT,T.eL,e.Cl,e.Cl]}),H})()},83353:(Ye,pe,h)=>{"use strict";h.d(pe,{Mq:()=>Q,Oy:()=>v,_i:()=>te,ht:()=>de,i$:()=>_,kV:()=>le,qK:()=>E,sA:()=>Te,t4:()=>w,ud:()=>g});var e=h(94650),c=h(36895);let A;try{A=typeof Intl<"u"&&Intl.v8BreakIterator}catch{A=!1}let C,w=(()=>{class L{constructor(W){this._platformId=W,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&&!A)&&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 L.\u0275fac=function(W){return new(W||L)(e.LFG(e.Lbi))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),g=(()=>{class L{}return L.\u0275fac=function(W){return new(W||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({}),L})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function E(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let L=document.createElement("input");return C=new Set(T.filter(B=>(L.setAttribute("type",B),L.type===B))),C}let S,V,z,oe;function _(L){return function U(){if(null==S&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>S=!0}))}finally{S=S||!1}return S}()?L:!!L.capture}function Q(){if(null==z){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return z=!1,z;if("scrollBehavior"in document.documentElement.style)z=!0;else{const L=Element.prototype.scrollTo;z=!!L&&!/\{\s*\[native code\]\s*\}/.test(L.toString())}}return z}function te(){if("object"!=typeof document||!document)return 0;if(null==V){const L=document.createElement("div"),B=L.style;L.dir="rtl",B.width="1px",B.overflow="auto",B.visibility="hidden",B.pointerEvents="none",B.position="absolute";const W=document.createElement("div"),q=W.style;q.width="2px",q.height="1px",L.appendChild(W),document.body.appendChild(L),V=0,0===L.scrollLeft&&(L.scrollLeft=1,V=0===L.scrollLeft?1:2),L.remove()}return V}function le(L){if(function ee(){if(null==oe){const L=typeof document<"u"?document.head:null;oe=!(!L||!L.createShadowRoot&&!L.attachShadow)}return oe}()){const B=L.getRootNode?L.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&B instanceof ShadowRoot)return B}return null}function de(){let L=typeof document<"u"&&document?document.activeElement:null;for(;L&&L.shadowRoot;){const B=L.shadowRoot.activeElement;if(B===L)break;L=B}return L}function Te(L){return L.composedPath?L.composedPath()[0]:L.target}function v(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},84080:(Ye,pe,h)=>{"use strict";h.d(pe,{C5:()=>U,Pl:()=>de,UE:()=>_,eL:()=>v,en:()=>z,ig:()=>ee,u0:()=>te});var e=h(94650),c=h(36895);class S{attach(W){return this._attachedHost=W,W.attach(this)}detach(){let W=this._attachedHost;null!=W&&(this._attachedHost=null,W.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(W){this._attachedHost=W}}class U extends S{constructor(W,q,ue,ye){super(),this.component=W,this.viewContainerRef=q,this.injector=ue,this.componentFactoryResolver=ye}}class _ extends S{constructor(W,q,ue,ye){super(),this.templateRef=W,this.viewContainerRef=q,this.context=ue,this.injector=ye}get origin(){return this.templateRef.elementRef}attach(W,q=this.context){return this.context=q,super.attach(W)}detach(){return this.context=void 0,super.detach()}}class V extends S{constructor(W){super(),this.element=W instanceof e.SBq?W.nativeElement:W}}class z{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(W){return W instanceof U?(this._attachedPortal=W,this.attachComponentPortal(W)):W instanceof _?(this._attachedPortal=W,this.attachTemplatePortal(W)):this.attachDomPortal&&W instanceof V?(this._attachedPortal=W,this.attachDomPortal(W)):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(W){this._disposeFn=W}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class te extends z{constructor(W,q,ue,ye,Me){super(),this.outletElement=W,this._componentFactoryResolver=q,this._appRef=ue,this._defaultInjector=ye,this.attachDomPortal=we=>{const Ge=we.element,ce=this._document.createComment("dom-portal");Ge.parentNode.insertBefore(ce,Ge),this.outletElement.appendChild(Ge),this._attachedPortal=we,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(Ge,ce)})},this._document=Me}attachComponentPortal(W){const ue=(W.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(W.component);let ye;return W.viewContainerRef?(ye=W.viewContainerRef.createComponent(ue,W.viewContainerRef.length,W.injector||W.viewContainerRef.injector),this.setDisposeFn(()=>ye.destroy())):(ye=ue.create(W.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(ye.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(ye.hostView),ye.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ye)),this._attachedPortal=W,ye}attachTemplatePortal(W){let q=W.viewContainerRef,ue=q.createEmbeddedView(W.templateRef,W.context,{injector:W.injector});return ue.rootNodes.forEach(ye=>this.outletElement.appendChild(ye)),ue.detectChanges(),this.setDisposeFn(()=>{let ye=q.indexOf(ue);-1!==ye&&q.remove(ye)}),this._attachedPortal=W,ue}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(W){return W.hostView.rootNodes[0]}}let ee=(()=>{class B extends _{constructor(q,ue){super(q,ue)}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(e.Rgc),e.Y36(e.s_b))},B.\u0275dir=e.lG2({type:B,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),B})(),de=(()=>{class B extends z{constructor(q,ue,ye){super(),this._componentFactoryResolver=q,this._viewContainerRef=ue,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Me=>{const we=Me.element,Ge=this._document.createComment("dom-portal");Me.setAttachedHost(this),we.parentNode.insertBefore(Ge,we),this._getRootNode().appendChild(we),this._attachedPortal=Me,super.setDisposeFn(()=>{Ge.parentNode&&Ge.parentNode.replaceChild(we,Ge)})},this._document=ye}get portal(){return this._attachedPortal}set portal(q){this.hasAttached()&&!q&&!this._isInitialized||(this.hasAttached()&&super.detach(),q&&super.attach(q),this._attachedPortal=q||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(q){q.setAttachedHost(this);const ue=null!=q.viewContainerRef?q.viewContainerRef:this._viewContainerRef,Me=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component),we=ue.createComponent(Me,ue.length,q.injector||ue.injector);return ue!==this._viewContainerRef&&this._getRootNode().appendChild(we.hostView.rootNodes[0]),super.setDisposeFn(()=>we.destroy()),this._attachedPortal=q,this._attachedRef=we,this.attached.emit(we),we}attachTemplatePortal(q){q.setAttachedHost(this);const ue=this._viewContainerRef.createEmbeddedView(q.templateRef,q.context,{injector:q.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=q,this._attachedRef=ue,this.attached.emit(ue),ue}_getRootNode(){const q=this._viewContainerRef.element.nativeElement;return q.nodeType===q.ELEMENT_NODE?q:q.parentNode}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(c.K0))},B.\u0275dir=e.lG2({type:B,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),B})(),v=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({}),B})()},67376:(Ye,pe,h)=>{"use strict";h.d(pe,{Cl:()=>_t,N7:()=>se,PQ:()=>ce,ZD:()=>Xe,mF:()=>Ge,rL:()=>he,x0:()=>Ee,xd:()=>Me});var e=h(21281),c=h(94650),A=h(77579),w=h(39646),g=h(69751),C=h(54968),T=h(66406),E=h(53101),S=h(50727),U=h(45191),_=h(71884),V=h(23601),z=h(39300),Q=h(82722),te=h(68675),oe=h(11520),ee=h(63900),le=h(34782),de=h(83353),Te=h(36895),v=h(40445),L=h(95017);const B=["contentWrapper"],W=["*"],q=new c.OlP("VIRTUAL_SCROLL_STRATEGY");class ue{constructor(gt,Y,Ce){this._scrolledIndexChange=new A.x,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,_.x)()),this._viewport=null,this._itemSize=gt,this._minBufferPx=Y,this._maxBufferPx=Ce}attach(gt){this._viewport=gt,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(gt,Y,Ce){this._itemSize=gt,this._minBufferPx=Y,this._maxBufferPx=Ce,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(gt,Y){this._viewport&&this._viewport.scrollToOffset(gt*this._itemSize,Y)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const gt=this._viewport.getRenderedRange(),Y={start:gt.start,end:gt.end},Ce=this._viewport.getViewportSize(),ae=this._viewport.getDataLength();let re=this._viewport.measureScrollOffset(),Se=this._itemSize>0?re/this._itemSize:0;if(Y.end>ae){const be=Math.ceil(Ce/this._itemSize),Ue=Math.max(0,Math.min(Se,ae-be));Se!=Ue&&(Se=Ue,re=Ue*this._itemSize,Y.start=Math.floor(Se)),Y.end=Math.max(0,Math.min(ae,Y.start+be))}const Fe=re-Y.start*this._itemSize;if(Fe0&&(Y.end=Math.min(ae,Y.end+Ue),Y.start=Math.max(0,Math.floor(Se-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Y),this._viewport.setRenderedContentOffset(this._itemSize*Y.start),this._scrolledIndexChange.next(Math.floor(Se))}}function ye(Je){return Je._scrollStrategy}let Me=(()=>{class Je{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new ue(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(Y){this._itemSize=(0,e.su)(Y)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Y){this._minBufferPx=(0,e.su)(Y)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Y){this._maxBufferPx=(0,e.su)(Y)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275dir=c.lG2({type:Je,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[c._Bn([{provide:q,useFactory:ye,deps:[(0,c.Gpc)(()=>Je)]}]),c.TTD]}),Je})(),Ge=(()=>{class Je{constructor(Y,Ce,ae){this._ngZone=Y,this._platform=Ce,this._scrolled=new A.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ae}register(Y){this.scrollContainers.has(Y)||this.scrollContainers.set(Y,Y.elementScrolled().subscribe(()=>this._scrolled.next(Y)))}deregister(Y){const Ce=this.scrollContainers.get(Y);Ce&&(Ce.unsubscribe(),this.scrollContainers.delete(Y))}scrolled(Y=20){return this._platform.isBrowser?new g.y(Ce=>{this._globalSubscription||this._addGlobalListener();const ae=Y>0?this._scrolled.pipe((0,V.e)(Y)).subscribe(Ce):this._scrolled.subscribe(Ce);return this._scrolledCount++,()=>{ae.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Y,Ce)=>this.deregister(Ce)),this._scrolled.complete()}ancestorScrolled(Y,Ce){const ae=this.getAncestorScrollContainers(Y);return this.scrolled(Ce).pipe((0,z.h)(re=>!re||ae.indexOf(re)>-1))}getAncestorScrollContainers(Y){const Ce=[];return this.scrollContainers.forEach((ae,re)=>{this._scrollableContainsElement(re,Y)&&Ce.push(re)}),Ce}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Y,Ce){let ae=(0,e.fI)(Ce),re=Y.getElementRef().nativeElement;do{if(ae==re)return!0}while(ae=ae.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Y=this._getWindow();return(0,C.R)(Y.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.LFG(c.R0b),c.LFG(de.t4),c.LFG(Te.K0,8))},Je.\u0275prov=c.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})(),ce=(()=>{class Je{constructor(Y,Ce,ae,re){this.elementRef=Y,this.scrollDispatcher=Ce,this.ngZone=ae,this.dir=re,this._destroyed=new A.x,this._elementScrolled=new g.y(Se=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,Q.R)(this._destroyed)).subscribe(Se)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Y){const Ce=this.elementRef.nativeElement,ae=this.dir&&"rtl"==this.dir.value;null==Y.left&&(Y.left=ae?Y.end:Y.start),null==Y.right&&(Y.right=ae?Y.start:Y.end),null!=Y.bottom&&(Y.top=Ce.scrollHeight-Ce.clientHeight-Y.bottom),ae&&0!=(0,de._i)()?(null!=Y.left&&(Y.right=Ce.scrollWidth-Ce.clientWidth-Y.left),2==(0,de._i)()?Y.left=Y.right:1==(0,de._i)()&&(Y.left=Y.right?-Y.right:Y.right)):null!=Y.right&&(Y.left=Ce.scrollWidth-Ce.clientWidth-Y.right),this._applyScrollToOptions(Y)}_applyScrollToOptions(Y){const Ce=this.elementRef.nativeElement;(0,de.Mq)()?Ce.scrollTo(Y):(null!=Y.top&&(Ce.scrollTop=Y.top),null!=Y.left&&(Ce.scrollLeft=Y.left))}measureScrollOffset(Y){const Ce="left",re=this.elementRef.nativeElement;if("top"==Y)return re.scrollTop;if("bottom"==Y)return re.scrollHeight-re.clientHeight-re.scrollTop;const Se=this.dir&&"rtl"==this.dir.value;return"start"==Y?Y=Se?"right":Ce:"end"==Y&&(Y=Se?Ce:"right"),Se&&2==(0,de._i)()?Y==Ce?re.scrollWidth-re.clientWidth-re.scrollLeft:re.scrollLeft:Se&&1==(0,de._i)()?Y==Ce?re.scrollLeft+re.scrollWidth-re.clientWidth:-re.scrollLeft:Y==Ce?re.scrollLeft:re.scrollWidth-re.clientWidth-re.scrollLeft}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.SBq),c.Y36(Ge),c.Y36(c.R0b),c.Y36(v.Is,8))},Je.\u0275dir=c.lG2({type:Je,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),Je})(),he=(()=>{class Je{constructor(Y,Ce,ae){this._platform=Y,this._change=new A.x,this._changeListener=re=>{this._change.next(re)},this._document=ae,Ce.runOutsideAngular(()=>{if(Y.isBrowser){const re=this._getWindow();re.addEventListener("resize",this._changeListener),re.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Y=this._getWindow();Y.removeEventListener("resize",this._changeListener),Y.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Y={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Y}getViewportRect(){const Y=this.getViewportScrollPosition(),{width:Ce,height:ae}=this.getViewportSize();return{top:Y.top,left:Y.left,bottom:Y.top+ae,right:Y.left+Ce,height:ae,width:Ce}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Y=this._document,Ce=this._getWindow(),ae=Y.documentElement,re=ae.getBoundingClientRect();return{top:-re.top||Y.body.scrollTop||Ce.scrollY||ae.scrollTop||0,left:-re.left||Y.body.scrollLeft||Ce.scrollX||ae.scrollLeft||0}}change(Y=20){return Y>0?this._change.pipe((0,V.e)(Y)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Y=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Y.innerWidth,height:Y.innerHeight}:{width:0,height:0}}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.LFG(de.t4),c.LFG(c.R0b),c.LFG(Te.K0,8))},Je.\u0275prov=c.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const xe=new c.OlP("VIRTUAL_SCROLLABLE");let j=(()=>{class Je extends ce{constructor(Y,Ce,ae,re){super(Y,Ce,ae,re)}measureViewportSize(Y){const Ce=this.elementRef.nativeElement;return"horizontal"===Y?Ce.clientWidth:Ce.clientHeight}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.SBq),c.Y36(Ge),c.Y36(c.R0b),c.Y36(v.Is,8))},Je.\u0275dir=c.lG2({type:Je,features:[c.qOj]}),Je})();const G=typeof requestAnimationFrame<"u"?T.Z:E.E;let se=(()=>{class Je extends j{constructor(Y,Ce,ae,re,Se,Fe,be,Ue){super(Y,Fe,ae,Se),this.elementRef=Y,this._changeDetectorRef=Ce,this._scrollStrategy=re,this.scrollable=Ue,this._detachedSubject=new A.x,this._renderedRangeSubject=new A.x,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(P=>this._scrollStrategy.scrolledIndexChange.subscribe(H=>Promise.resolve().then(()=>this.ngZone.run(()=>P.next(H))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=S.w0.EMPTY,this._viewportChanges=be.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(Y){this._orientation!==Y&&(this._orientation=Y,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Y){this._appendOnly=(0,e.Ig)(Y)}ngOnInit(){this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe((0,te.O)(null),(0,V.e)(0,G)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Y){this.ngZone.runOutsideAngular(()=>{this._forOf=Y,this._forOf.dataStream.pipe((0,Q.R)(this._detachedSubject)).subscribe(Ce=>{const ae=Ce.length;ae!==this._dataLength&&(this._dataLength=ae,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(Y){return this.getElementRef().nativeElement.getBoundingClientRect()[Y]}setTotalContentSize(Y){this._totalContentSize!==Y&&(this._totalContentSize=Y,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Y){(function R(Je,gt){return Je.start==gt.start&&Je.end==gt.end})(this._renderedRange,Y)||(this.appendOnly&&(Y={start:0,end:Math.max(this._renderedRange.end,Y.end)}),this._renderedRangeSubject.next(this._renderedRange=Y),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Y,Ce="to-start"){Y=this.appendOnly&&"to-start"===Ce?0:Y;const re="horizontal"==this.orientation,Se=re?"X":"Y";let be=`translate${Se}(${Number((re&&this.dir&&"rtl"==this.dir.value?-1:1)*Y)}px)`;this._renderedContentOffset=Y,"to-end"===Ce&&(be+=` translate${Se}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=be&&(this._renderedContentTransform=be,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Y,Ce="auto"){const ae={behavior:Ce};"horizontal"===this.orientation?ae.start=Y:ae.top=Y,this.scrollable.scrollTo(ae)}scrollToIndex(Y,Ce="auto"){this._scrollStrategy.scrollToIndex(Y,Ce)}measureScrollOffset(Y){let Ce;return Ce=this.scrollable==this?ae=>super.measureScrollOffset(ae):ae=>this.scrollable.measureScrollOffset(ae),Math.max(0,Ce(Y??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(Y){var Ce;let ae;const Fe="rtl"==(null===(Ce=this.dir)||void 0===Ce?void 0:Ce.value);ae="start"==Y?Fe?"right":"left":"end"==Y?Fe?"left":"right":Y||("horizontal"===this.orientation?"left":"top");const be=this.scrollable.measureBoundingClientRectWithScrollOffset(ae);return this.elementRef.nativeElement.getBoundingClientRect()[ae]-be}measureRenderedContentSize(){const Y=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Y.offsetWidth:Y.offsetHeight}measureRangeSize(Y){return this._forOf?this._forOf.measureRangeSize(Y,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(Y){Y&&this._runAfterChangeDetection.push(Y),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const Y=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Ce of Y)Ce()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(c.R0b),c.Y36(q,8),c.Y36(v.Is,8),c.Y36(Ge),c.Y36(he),c.Y36(xe,8))},Je.\u0275cmp=c.Xpm({type:Je,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Y,Ce){if(1&Y&&c.Gf(B,7),2&Y){let ae;c.iGM(ae=c.CRH())&&(Ce._contentWrapper=ae.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Y,Ce){2&Y&&c.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Ce.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Ce.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[c._Bn([{provide:ce,useFactory:(gt,Y)=>gt||Y,deps:[j,Je]}]),c.qOj],ngContentSelectors:W,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Y,Ce){1&Y&&(c.F$t(),c.TgZ(0,"div",0,1),c.Hsn(2),c.qZA(),c._UZ(3,"div",2)),2&Y&&(c.xp6(3),c.Udp("width",Ce._totalContentWidth)("height",Ce._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),Je})();function $(Je,gt,Y){if(!Y.getBoundingClientRect)return 0;const ae=Y.getBoundingClientRect();return"horizontal"===Je?"start"===gt?ae.left:ae.right:"start"===gt?ae.top:ae.bottom}let Ee=(()=>{class Je{constructor(Y,Ce,ae,re,Se,Fe){this._viewContainerRef=Y,this._template=Ce,this._differs=ae,this._viewRepeater=re,this._viewport=Se,this.viewChange=new A.x,this._dataSourceChanges=new A.x,this.dataStream=this._dataSourceChanges.pipe((0,te.O)(null),(0,oe.G)(),(0,ee.w)(([be,Ue])=>this._changeDataSource(be,Ue)),(0,le.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new A.x,this.dataStream.subscribe(be=>{this._data=be,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Q.R)(this._destroyed)).subscribe(be=>{this._renderedRange=be,this.viewChange.observers.length&&Fe.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Y){this._cdkVirtualForOf=Y,(0,L.Z9)(Y)?this._dataSourceChanges.next(Y):this._dataSourceChanges.next(new L.P3((0,U.b)(Y)?Y:Array.from(Y||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Y){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Y?(Ce,ae)=>Y(Ce+(this._renderedRange?this._renderedRange.start:0),ae):void 0}set cdkVirtualForTemplate(Y){Y&&(this._needsUpdate=!0,this._template=Y)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Y){this._viewRepeater.viewCacheSize=(0,e.su)(Y)}measureRangeSize(Y,Ce){if(Y.start>=Y.end)return 0;const ae=Y.start-this._renderedRange.start,re=Y.end-Y.start;let Se,Fe;for(let be=0;be-1;be--){const Ue=this._viewContainerRef.get(be+ae);if(Ue&&Ue.rootNodes.length){Fe=Ue.rootNodes[Ue.rootNodes.length-1];break}}return Se&&Fe?$(Ce,"end",Fe)-$(Ce,"start",Se):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Y=this._differ.diff(this._renderedItems);Y?this._applyChanges(Y):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((Y,Ce)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Y,Ce):Ce)),this._needsUpdate=!0)}_changeDataSource(Y,Ce){return Y&&Y.disconnect(this),this._needsUpdate=!0,Ce?Ce.connect(this):(0,w.of)()}_updateContext(){const Y=this._data.length;let Ce=this._viewContainerRef.length;for(;Ce--;){const ae=this._viewContainerRef.get(Ce);ae.context.index=this._renderedRange.start+Ce,ae.context.count=Y,this._updateComputedContextProperties(ae.context),ae.detectChanges()}}_applyChanges(Y){this._viewRepeater.applyChanges(Y,this._viewContainerRef,(re,Se,Fe)=>this._getEmbeddedViewArgs(re,Fe),re=>re.item),Y.forEachIdentityChange(re=>{this._viewContainerRef.get(re.currentIndex).context.$implicit=re.item});const Ce=this._data.length;let ae=this._viewContainerRef.length;for(;ae--;){const re=this._viewContainerRef.get(ae);re.context.index=this._renderedRange.start+ae,re.context.count=Ce,this._updateComputedContextProperties(re.context)}}_updateComputedContextProperties(Y){Y.first=0===Y.index,Y.last=Y.index===Y.count-1,Y.even=Y.index%2==0,Y.odd=!Y.even}_getEmbeddedViewArgs(Y,Ce){return{templateRef:this._template,context:{$implicit:Y.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Ce}}}return Je.\u0275fac=function(Y){return new(Y||Je)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4),c.Y36(L.k),c.Y36(se,4),c.Y36(c.R0b))},Je.\u0275dir=c.lG2({type:Je,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[c._Bn([{provide:L.k,useClass:L.eX}])]}),Je})(),Xe=(()=>{class Je{}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275mod=c.oAB({type:Je}),Je.\u0275inj=c.cJS({}),Je})(),_t=(()=>{class Je{}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275mod=c.oAB({type:Je}),Je.\u0275inj=c.cJS({imports:[v.vT,Xe,v.vT,Xe]}),Je})()},39349:(Ye,pe,h)=>{"use strict";h.d(pe,{IC:()=>z,Ky:()=>Q,Lq:()=>_});var e=h(83353),c=h(94650),A=h(21281),w=h(60515),g=h(77579),C=h(54968),T=h(23601),E=h(82722),S=h(36895);const U=(0,e.i$)({passive:!0});let _=(()=>{class te{constructor(ee,le){this._platform=ee,this._ngZone=le,this._monitoredElements=new Map}monitor(ee){if(!this._platform.isBrowser)return w.E;const le=(0,A.fI)(ee),de=this._monitoredElements.get(le);if(de)return de.subject;const Te=new g.x,v="cdk-text-field-autofilled",L=B=>{"cdk-text-field-autofill-start"!==B.animationName||le.classList.contains(v)?"cdk-text-field-autofill-end"===B.animationName&&le.classList.contains(v)&&(le.classList.remove(v),this._ngZone.run(()=>Te.next({target:B.target,isAutofilled:!1}))):(le.classList.add(v),this._ngZone.run(()=>Te.next({target:B.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{le.addEventListener("animationstart",L,U),le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(le,{subject:Te,unlisten:()=>{le.removeEventListener("animationstart",L,U)}}),Te}stopMonitoring(ee){const le=(0,A.fI)(ee),de=this._monitoredElements.get(le);de&&(de.unlisten(),de.subject.complete(),le.classList.remove("cdk-text-field-autofill-monitored"),le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(le))}ngOnDestroy(){this._monitoredElements.forEach((ee,le)=>this.stopMonitoring(le))}}return te.\u0275fac=function(ee){return new(ee||te)(c.LFG(e.t4),c.LFG(c.R0b))},te.\u0275prov=c.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"}),te})(),z=(()=>{class te{constructor(ee,le,de,Te){this._elementRef=ee,this._platform=le,this._ngZone=de,this._destroyed=new g.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=v=>{this._hasFocus="focus"===v.type},this._document=Te,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(ee){this._minRows=(0,A.su)(ee),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(ee){this._maxRows=(0,A.su)(ee),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(ee){ee=(0,A.Ig)(ee),this._enabled!==ee&&((this._enabled=ee)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(ee){this._cachedPlaceholderHeight=void 0,ee?this._textareaElement.setAttribute("placeholder",ee):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const ee=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;ee&&(this._textareaElement.style.minHeight=ee)}_setMaxHeight(){const ee=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;ee&&(this._textareaElement.style.maxHeight=ee)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const ee=this._getWindow();(0,C.R)(ee,"resize").pipe((0,T.e)(16),(0,E.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let ee=this._textareaElement.cloneNode(!1);ee.rows=1,ee.style.position="absolute",ee.style.visibility="hidden",ee.style.border="none",ee.style.padding="0",ee.style.height="",ee.style.minHeight="",ee.style.maxHeight="",ee.style.overflow="hidden",this._textareaElement.parentNode.appendChild(ee),this._cachedLineHeight=ee.clientHeight,ee.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const ee=this._textareaElement,le=ee.style.marginBottom||"",de=this._platform.FIREFOX,Te=de&&this._hasFocus,v=de?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Te&&(ee.style.marginBottom=`${ee.clientHeight}px`),ee.classList.add(v);const L=ee.scrollHeight-4;return ee.classList.remove(v),Te&&(ee.style.marginBottom=le),L}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const ee=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=ee}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(ee=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const le=this._elementRef.nativeElement,de=le.value;if(!ee&&this._minRows===this._previousMinRows&&de===this._previousValue)return;const Te=this._measureScrollHeight(),v=Math.max(Te,this._cachedPlaceholderHeight||0);le.style.height=`${v}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(le)):setTimeout(()=>this._scrollToCaretPosition(le))}),this._previousValue=de,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(ee){const{selectionStart:le,selectionEnd:de}=ee;!this._destroyed.isStopped&&this._hasFocus&&ee.setSelectionRange(le,de)}}return te.\u0275fac=function(ee){return new(ee||te)(c.Y36(c.SBq),c.Y36(e.t4),c.Y36(c.R0b),c.Y36(S.K0,8))},te.\u0275dir=c.lG2({type:te,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ee,le){1&ee&&c.NdJ("input",function(){return le._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),te})(),Q=(()=>{class te{}return te.\u0275fac=function(ee){return new(ee||te)},te.\u0275mod=c.oAB({type:te}),te.\u0275inj=c.cJS({}),te})()},57851:(Ye,pe,h)=>{"use strict";h.d(pe,{C2:()=>z,HI:()=>te,Hs:()=>q,Ud:()=>ce,VY:()=>Q,XJ:()=>Ge,Xx:()=>Me,_0:()=>W,cu:()=>oe,nZ:()=>he,rO:()=>le});var e=h(95017),c=h(45191),A=h(77579),w=h(61135),g=h(39646),C=h(95698),T=h(39300),E=h(82722),S=h(94650),U=h(21281),_=h(40445);class V{constructor(){this.expansionModel=new e.Ov(!0)}toggle(j){this.expansionModel.toggle(this._trackByValue(j))}expand(j){this.expansionModel.select(this._trackByValue(j))}collapse(j){this.expansionModel.deselect(this._trackByValue(j))}isExpanded(j){return this.expansionModel.isSelected(this._trackByValue(j))}toggleDescendants(j){this.expansionModel.isSelected(this._trackByValue(j))?this.collapseDescendants(j):this.expandDescendants(j)}collapseAll(){this.expansionModel.clear()}expandDescendants(j){let R=[j];R.push(...this.getDescendants(j)),this.expansionModel.select(...R.map(G=>this._trackByValue(G)))}collapseDescendants(j){let R=[j];R.push(...this.getDescendants(j)),this.expansionModel.deselect(...R.map(G=>this._trackByValue(G)))}_trackByValue(j){return this.trackBy?this.trackBy(j):j}}class z extends V{constructor(j,R,G){super(),this.getLevel=j,this.isExpandable=R,this.options=G,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(j){const G=[];for(let se=this.dataNodes.indexOf(j)+1;sethis._trackByValue(j)))}}class Q extends V{constructor(j,R){super(),this.getChildren=j,this.options=R,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const j=this.dataNodes.reduce((R,G)=>[...R,...this.getDescendants(G),G],[]);this.expansionModel.select(...j.map(R=>this._trackByValue(R)))}getDescendants(j){const R=[];return this._getDescendants(R,j),R.splice(1)}_getDescendants(j,R){j.push(R);const G=this.getChildren(R);Array.isArray(G)?G.forEach(se=>this._getDescendants(j,se)):(0,c.b)(G)&&G.pipe((0,C.q)(1),(0,T.h)(Boolean)).subscribe(se=>{for(const $ of se)this._getDescendants(j,$)})}}const te=new S.OlP("CDK_TREE_NODE_OUTLET_NODE");let oe=(()=>{class xe{constructor(R,G){this.viewContainer=R,this._node=G}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.s_b),S.Y36(te,8))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodeOutlet",""]]}),xe})();class ee{constructor(j){this.$implicit=j}}let le=(()=>{class xe{constructor(R){this.template=R}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.Rgc))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),xe})(),W=(()=>{class xe{constructor(R,G){this._differs=R,this._changeDetectorRef=G,this._onDestroy=new A.x,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(R){this._dataSource!==R&&this._switchDataSource(R)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const R=this._nodeDefs.filter(G=>!G.when);this._defaultNodeDef=R[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(R){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),R||this._nodeOutlet.viewContainer.clear(),this._dataSource=R,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let R;(0,e.Z9)(this._dataSource)?R=this._dataSource.connect(this):(0,c.b)(this._dataSource)?R=this._dataSource:Array.isArray(this._dataSource)&&(R=(0,g.of)(this._dataSource)),R&&(this._dataSubscription=R.pipe((0,E.R)(this._onDestroy)).subscribe(G=>this.renderNodeChanges(G)))}renderNodeChanges(R,G=this._dataDiffer,se=this._nodeOutlet.viewContainer,$){const Ee=G.diff(R);!Ee||(Ee.forEachOperation((Oe,ct,Xe)=>{if(null==Oe.previousIndex)this.insertNode(R[Xe],Xe,se,$);else if(null==Xe)se.remove(ct),this._levels.delete(Oe.item);else{const _t=se.get(ct);se.move(_t,Xe)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(R,G){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find($=>$.when&&$.when(G,R))||this._defaultNodeDef}insertNode(R,G,se,$){const Ee=this._getNodeDef(R,G),Oe=new ee(R);Oe.level=this.treeControl.getLevel?this.treeControl.getLevel(R):typeof $<"u"&&this._levels.has($)?this._levels.get($)+1:0,this._levels.set(R,Oe.level),(se||this._nodeOutlet.viewContainer).createEmbeddedView(Ee.template,Oe,G),q.mostRecentTreeNode&&(q.mostRecentTreeNode.data=R)}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.ZZ4),S.Y36(S.sBO))},xe.\u0275cmp=S.Xpm({type:xe,selectors:[["cdk-tree"]],contentQueries:function(R,G,se){if(1&R&&S.Suo(se,le,5),2&R){let $;S.iGM($=S.CRH())&&(G._nodeDefs=$)}},viewQuery:function(R,G){if(1&R&&S.Gf(oe,7),2&R){let se;S.iGM(se=S.CRH())&&(G._nodeOutlet=se.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(R,G){1&R&&S.GkF(0,0)},dependencies:[oe],encapsulation:2}),xe})(),q=(()=>{class xe{constructor(R,G){this._elementRef=R,this._tree=G,this._destroyed=new A.x,this._dataChanges=new A.x,xe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(R){this._elementRef.nativeElement.setAttribute("role",R)}get data(){return this._data}set data(R){R!==this._data&&(this._data=R,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ue(xe){let j=xe.parentElement;for(;j&&!ye(j);)j=j.parentElement;return j?j.classList.contains("cdk-nested-tree-node")?(0,U.su)(j.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){xe.mostRecentTreeNode===this&&(xe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return xe.mostRecentTreeNode=null,xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.SBq),S.Y36(W))},xe.\u0275dir=S.lG2({type:xe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(R,G){2&R&&S.uIk("aria-expanded",G.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),xe})();function ye(xe){const j=xe.classList;return!!(null!=j&&j.contains("cdk-nested-tree-node")||null!=j&&j.contains("cdk-tree"))}let Me=(()=>{class xe extends q{constructor(R,G,se){super(R,G),this._differs=se}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const R=this._tree.treeControl.getChildren(this.data);Array.isArray(R)?this.updateChildrenNodes(R):(0,c.b)(R)&&R.pipe((0,E.R)(this._destroyed)).subscribe(G=>this.updateChildrenNodes(G)),this.nodeOutlet.changes.pipe((0,E.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(R){const G=this._getNodeOutlet();R&&(this._children=R),G&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,G.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const R=this._getNodeOutlet();R&&(R.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const R=this.nodeOutlet;return R&&R.find(G=>!G._node||G._node===this)}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(S.SBq),S.Y36(W),S.Y36(S.ZZ4))},xe.\u0275dir=S.lG2({type:xe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(R,G,se){if(1&R&&S.Suo(se,oe,5),2&R){let $;S.iGM($=S.CRH())&&(G.nodeOutlet=$)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[S._Bn([{provide:q,useExisting:xe},{provide:te,useExisting:xe}]),S.qOj]}),xe})();const we=/([A-Za-z%]+)$/;let Ge=(()=>{class xe{constructor(R,G,se,$){this._treeNode=R,this._tree=G,this._element=se,this._dir=$,this._destroyed=new A.x,this.indentUnits="px",this._indent=40,this._setPadding(),$&&$.change.pipe((0,E.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),R._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(R){this._setLevelInput(R)}get indent(){return this._indent}set indent(R){this._setIndentInput(R)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const R=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,G=this._level??R;return"number"==typeof G?`${G*this._indent}${this.indentUnits}`:null}_setPadding(R=!1){const G=this._paddingIndent();if(G!==this._currentPadding||R){const se=this._element.nativeElement,$=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",Ee="paddingLeft"===$?"paddingRight":"paddingLeft";se.style[$]=G||"",se.style[Ee]="",this._currentPadding=G}}_setLevelInput(R){this._level=(0,U.su)(R,null),this._setPadding()}_setIndentInput(R){let G=R,se="px";if("string"==typeof R){const $=R.split(we);G=$[0],se=$[1]||se}this.indentUnits=se,this._indent=(0,U.su)(G),this._setPadding()}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(q),S.Y36(W),S.Y36(S.SBq),S.Y36(_.Is,8))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),xe})(),ce=(()=>{class xe{constructor(R,G){this._tree=R,this._treeNode=G,this._recursive=!1}get recursive(){return this._recursive}set recursive(R){this._recursive=(0,U.Ig)(R)}_toggle(R){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),R.stopPropagation()}}return xe.\u0275fac=function(R){return new(R||xe)(S.Y36(W),S.Y36(q))},xe.\u0275dir=S.lG2({type:xe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(R,G){1&R&&S.NdJ("click",function($){return G._toggle($)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),xe})(),he=(()=>{class xe{}return xe.\u0275fac=function(R){return new(R||xe)},xe.\u0275mod=S.oAB({type:xe}),xe.\u0275inj=S.cJS({}),xe})()},36895:(Ye,pe,h)=>{"use strict";h.d(pe,{Do:()=>Te,ED:()=>gi,EM:()=>yr,HT:()=>g,JF:()=>Ai,K0:()=>T,Mx:()=>En,NF:()=>Ii,O5:()=>Gn,Ov:()=>Ke,PC:()=>rr,PM:()=>Xi,RF:()=>Hi,S$:()=>ee,V_:()=>U,Ye:()=>v,b0:()=>de,bD:()=>wi,ez:()=>Yr,gd:()=>wn,i8:()=>Et,mk:()=>jn,n9:()=>_i,p6:()=>s,q:()=>A,rS:()=>hn,sg:()=>Wn,tP:()=>wt,uU:()=>$n,w_:()=>C});var e=h(94650);let c=null;function A(){return c}function g(Ne){c||(c=Ne)}class C{}const T=new e.OlP("DocumentToken");let E=(()=>{class Ne{historyGo(Le){throw new Error("Not implemented")}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return function S(){return(0,e.LFG)(_)}()},providedIn:"platform"}),Ne})();const U=new e.OlP("Location Initialized");let _=(()=>{class Ne extends E{constructor(Le){super(),this._doc=Le,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return A().getBaseHref(this._doc)}onPopState(Le){const pt=A().getGlobalEventTarget(this._doc,"window");return pt.addEventListener("popstate",Le,!1),()=>pt.removeEventListener("popstate",Le)}onHashChange(Le){const pt=A().getGlobalEventTarget(this._doc,"window");return pt.addEventListener("hashchange",Le,!1),()=>pt.removeEventListener("hashchange",Le)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(Le){this.location.pathname=Le}pushState(Le,pt,Lt){V()?this._history.pushState(Le,pt,Lt):this.location.hash=Lt}replaceState(Le,pt,Lt){V()?this._history.replaceState(Le,pt,Lt):this.location.hash=Lt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Le=0){this._history.go(Le)}getState(){return this._history.state}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(T))},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return function z(){return new _((0,e.LFG)(T))}()},providedIn:"platform"}),Ne})();function V(){return!!window.history.pushState}function Q(Ne,ut){if(0==Ne.length)return ut;if(0==ut.length)return Ne;let Le=0;return Ne.endsWith("/")&&Le++,ut.startsWith("/")&&Le++,2==Le?Ne+ut.substring(1):1==Le?Ne+ut:Ne+"/"+ut}function te(Ne){const ut=Ne.match(/#|\?|$/),Le=ut&&ut.index||Ne.length;return Ne.slice(0,Le-("/"===Ne[Le-1]?1:0))+Ne.slice(Le)}function oe(Ne){return Ne&&"?"!==Ne[0]?"?"+Ne:Ne}let ee=(()=>{class Ne{historyGo(Le){throw new Error("Not implemented")}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return(0,e.f3M)(de)},providedIn:"root"}),Ne})();const le=new e.OlP("appBaseHref");let de=(()=>{class Ne extends ee{constructor(Le,pt){var Lt,qt,Yt;super(),this._platformLocation=Le,this._removeListenerFns=[],this._baseHref=null!==(Lt=null!==(qt=pt??this._platformLocation.getBaseHrefFromDOM())&&void 0!==qt?qt:null===(Yt=(0,e.f3M)(T).location)||void 0===Yt?void 0:Yt.origin)&&void 0!==Lt?Lt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Le){this._removeListenerFns.push(this._platformLocation.onPopState(Le),this._platformLocation.onHashChange(Le))}getBaseHref(){return this._baseHref}prepareExternalUrl(Le){return Q(this._baseHref,Le)}path(Le=!1){const pt=this._platformLocation.pathname+oe(this._platformLocation.search),Lt=this._platformLocation.hash;return Lt&&Le?`${pt}${Lt}`:pt}pushState(Le,pt,Lt,qt){const Yt=this.prepareExternalUrl(Lt+oe(qt));this._platformLocation.pushState(Le,pt,Yt)}replaceState(Le,pt,Lt,qt){const Yt=this.prepareExternalUrl(Lt+oe(qt));this._platformLocation.replaceState(Le,pt,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Le=0){var pt,Lt;null===(pt=(Lt=this._platformLocation).historyGo)||void 0===pt||pt.call(Lt,Le)}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(E),e.LFG(le,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Te=(()=>{class Ne extends ee{constructor(Le,pt){super(),this._platformLocation=Le,this._baseHref="",this._removeListenerFns=[],null!=pt&&(this._baseHref=pt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Le){this._removeListenerFns.push(this._platformLocation.onPopState(Le),this._platformLocation.onHashChange(Le))}getBaseHref(){return this._baseHref}path(Le=!1){let pt=this._platformLocation.hash;return null==pt&&(pt="#"),pt.length>0?pt.substring(1):pt}prepareExternalUrl(Le){const pt=Q(this._baseHref,Le);return pt.length>0?"#"+pt:pt}pushState(Le,pt,Lt,qt){let Yt=this.prepareExternalUrl(Lt+oe(qt));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.pushState(Le,pt,Yt)}replaceState(Le,pt,Lt,qt){let Yt=this.prepareExternalUrl(Lt+oe(qt));0==Yt.length&&(Yt=this._platformLocation.pathname),this._platformLocation.replaceState(Le,pt,Yt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Le=0){var pt,Lt;null===(pt=(Lt=this._platformLocation).historyGo)||void 0===pt||pt.call(Lt,Le)}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(E),e.LFG(le,8))},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac}),Ne})(),v=(()=>{class Ne{constructor(Le){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Le;const pt=this._locationStrategy.getBaseHref();this._baseHref=te(W(pt)),this._locationStrategy.onPopState(Lt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Lt.state,type:Lt.type})})}ngOnDestroy(){var Le;null===(Le=this._urlChangeSubscription)||void 0===Le||Le.unsubscribe(),this._urlChangeListeners=[]}path(Le=!1){return this.normalize(this._locationStrategy.path(Le))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Le,pt=""){return this.path()==this.normalize(Le+oe(pt))}normalize(Le){return Ne.stripTrailingSlash(function B(Ne,ut){return Ne&&ut.startsWith(Ne)?ut.substring(Ne.length):ut}(this._baseHref,W(Le)))}prepareExternalUrl(Le){return Le&&"/"!==Le[0]&&(Le="/"+Le),this._locationStrategy.prepareExternalUrl(Le)}go(Le,pt="",Lt=null){this._locationStrategy.pushState(Lt,"",Le,pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Le+oe(pt)),Lt)}replaceState(Le,pt="",Lt=null){this._locationStrategy.replaceState(Lt,"",Le,pt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Le+oe(pt)),Lt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Le=0){var pt,Lt;null===(pt=(Lt=this._locationStrategy).historyGo)||void 0===pt||pt.call(Lt,Le)}onUrlChange(Le){return this._urlChangeListeners.push(Le),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(pt=>{this._notifyUrlChangeListeners(pt.url,pt.state)})),()=>{const pt=this._urlChangeListeners.indexOf(Le);var Lt;this._urlChangeListeners.splice(pt,1),0===this._urlChangeListeners.length&&(null===(Lt=this._urlChangeSubscription)||void 0===Lt||Lt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Le="",pt){this._urlChangeListeners.forEach(Lt=>Lt(Le,pt))}subscribe(Le,pt,Lt){return this._subject.subscribe({next:Le,error:pt,complete:Lt})}}return Ne.normalizeQueryParams=oe,Ne.joinWithSlash=Q,Ne.stripTrailingSlash=te,Ne.\u0275fac=function(Le){return new(Le||Ne)(e.LFG(ee))},Ne.\u0275prov=e.Yz7({token:Ne,factory:function(){return function L(){return new v((0,e.LFG)(ee))}()},providedIn:"root"}),Ne})();function W(Ne){return Ne.replace(/\/index.html$/,"")}var Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),we=(()=>((we=we||{})[we.Narrow=0]="Narrow",we[we.Abbreviated=1]="Abbreviated",we[we.Wide=2]="Wide",we[we.Short=3]="Short",we))(),Ge=(()=>((Ge=Ge||{})[Ge.Short=0]="Short",Ge[Ge.Medium=1]="Medium",Ge[Ge.Long=2]="Long",Ge[Ge.Full=3]="Full",Ge))(),ce=(()=>((ce=ce||{})[ce.Decimal=0]="Decimal",ce[ce.Group=1]="Group",ce[ce.List=2]="List",ce[ce.PercentSign=3]="PercentSign",ce[ce.PlusSign=4]="PlusSign",ce[ce.MinusSign=5]="MinusSign",ce[ce.Exponential=6]="Exponential",ce[ce.SuperscriptingExponent=7]="SuperscriptingExponent",ce[ce.PerMille=8]="PerMille",ce[ce.Infinity=9]="Infinity",ce[ce.NaN=10]="NaN",ce[ce.TimeSeparator=11]="TimeSeparator",ce[ce.CurrencyDecimal=12]="CurrencyDecimal",ce[ce.CurrencyGroup=13]="CurrencyGroup",ce))();function Ee(Ne,ut){return Ue((0,e.cg1)(Ne)[e.wAp.DateFormat],ut)}function Oe(Ne,ut){return Ue((0,e.cg1)(Ne)[e.wAp.TimeFormat],ut)}function ct(Ne,ut){return Ue((0,e.cg1)(Ne)[e.wAp.DateTimeFormat],ut)}function Xe(Ne,ut){const Le=(0,e.cg1)(Ne),pt=Le[e.wAp.NumberSymbols][ut];if(typeof pt>"u"){if(ut===ce.CurrencyDecimal)return Le[e.wAp.NumberSymbols][ce.Decimal];if(ut===ce.CurrencyGroup)return Le[e.wAp.NumberSymbols][ce.Group]}return pt}function re(Ne){if(!Ne[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${Ne[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(Ne,ut){for(let Le=ut;Le>-1;Le--)if(typeof Ne[Le]<"u")return Ne[Le];throw new Error("Locale data API: locale data undefined")}function P(Ne){const[ut,Le]=Ne.split(":");return{hours:+ut,minutes:+Le}}const f=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,l={},a=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var n=(()=>((n=n||{})[n.Short=0]="Short",n[n.ShortGMT=1]="ShortGMT",n[n.Long=2]="Long",n[n.Extended=3]="Extended",n))(),t=(()=>((t=t||{})[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t))(),r=(()=>((r=r||{})[r.DayPeriods=0]="DayPeriods",r[r.Days=1]="Days",r[r.Months=2]="Months",r[r.Eras=3]="Eras",r))();function s(Ne,ut,Le,pt){let Lt=function Pt(Ne){if(cn(Ne))return Ne;if("number"==typeof Ne&&!isNaN(Ne))return new Date(Ne);if("string"==typeof Ne){if(Ne=Ne.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Ne)){const[Lt,qt=1,Yt=1]=Ne.split("-").map(Cn=>+Cn);return d(Lt,qt-1,Yt)}const Le=parseFloat(Ne);if(!isNaN(Ne-Le))return new Date(Le);let pt;if(pt=Ne.match(f))return function jt(Ne){const ut=new Date(0);let Le=0,pt=0;const Lt=Ne[8]?ut.setUTCFullYear:ut.setFullYear,qt=Ne[8]?ut.setUTCHours:ut.setHours;Ne[9]&&(Le=Number(Ne[9]+Ne[10]),pt=Number(Ne[9]+Ne[11])),Lt.call(ut,Number(Ne[1]),Number(Ne[2])-1,Number(Ne[3]));const Yt=Number(Ne[4]||0)-Le,Cn=Number(Ne[5]||0)-pt,ii=Number(Ne[6]||0),ti=Math.floor(1e3*parseFloat("0."+(Ne[7]||0)));return qt.call(ut,Yt,Cn,ii,ti),ut}(pt)}const ut=new Date(Ne);if(!cn(ut))throw new Error(`Unable to convert "${Ne}" into a date`);return ut}(Ne);ut=p(Le,ut)||ut;let Cn,Yt=[];for(;ut;){if(Cn=a.exec(ut),!Cn){Yt.push(ut);break}{Yt=Yt.concat(Cn.slice(1));const ei=Yt.pop();if(!ei)break;ut=ei}}let ii=Lt.getTimezoneOffset();pt&&(ii=at(pt,ii),Lt=function st(Ne,ut,Le){const pt=Le?-1:1,Lt=Ne.getTimezoneOffset();return function Re(Ne,ut){return(Ne=new Date(Ne.getTime())).setMinutes(Ne.getMinutes()+ut),Ne}(Ne,pt*(at(ut,Lt)-Lt))}(Lt,pt,!0));let ti="";return Yt.forEach(ei=>{const kn=function tt(Ne){if(ze[Ne])return ze[Ne];let ut;switch(Ne){case"G":case"GG":case"GGG":ut=Mt(r.Eras,we.Abbreviated);break;case"GGGG":ut=Mt(r.Eras,we.Wide);break;case"GGGGG":ut=Mt(r.Eras,we.Narrow);break;case"y":ut=Vt(t.FullYear,1,0,!1,!0);break;case"yy":ut=Vt(t.FullYear,2,0,!0,!0);break;case"yyy":ut=Vt(t.FullYear,3,0,!1,!0);break;case"yyyy":ut=Vt(t.FullYear,4,0,!1,!0);break;case"Y":ut=ve(1);break;case"YY":ut=ve(2,!0);break;case"YYY":ut=ve(3);break;case"YYYY":ut=ve(4);break;case"M":case"L":ut=Vt(t.Month,1,1);break;case"MM":case"LL":ut=Vt(t.Month,2,1);break;case"MMM":ut=Mt(r.Months,we.Abbreviated);break;case"MMMM":ut=Mt(r.Months,we.Wide);break;case"MMMMM":ut=Mt(r.Months,we.Narrow);break;case"LLL":ut=Mt(r.Months,we.Abbreviated,Me.Standalone);break;case"LLLL":ut=Mt(r.Months,we.Wide,Me.Standalone);break;case"LLLLL":ut=Mt(r.Months,we.Narrow,Me.Standalone);break;case"w":ut=me(1);break;case"ww":ut=me(2);break;case"W":ut=me(1,!0);break;case"d":ut=Vt(t.Date,1);break;case"dd":ut=Vt(t.Date,2);break;case"c":case"cc":ut=Vt(t.Day,1);break;case"ccc":ut=Mt(r.Days,we.Abbreviated,Me.Standalone);break;case"cccc":ut=Mt(r.Days,we.Wide,Me.Standalone);break;case"ccccc":ut=Mt(r.Days,we.Narrow,Me.Standalone);break;case"cccccc":ut=Mt(r.Days,we.Short,Me.Standalone);break;case"E":case"EE":case"EEE":ut=Mt(r.Days,we.Abbreviated);break;case"EEEE":ut=Mt(r.Days,we.Wide);break;case"EEEEE":ut=Mt(r.Days,we.Narrow);break;case"EEEEEE":ut=Mt(r.Days,we.Short);break;case"a":case"aa":case"aaa":ut=Mt(r.DayPeriods,we.Abbreviated);break;case"aaaa":ut=Mt(r.DayPeriods,we.Wide);break;case"aaaaa":ut=Mt(r.DayPeriods,we.Narrow);break;case"b":case"bb":case"bbb":ut=Mt(r.DayPeriods,we.Abbreviated,Me.Standalone,!0);break;case"bbbb":ut=Mt(r.DayPeriods,we.Wide,Me.Standalone,!0);break;case"bbbbb":ut=Mt(r.DayPeriods,we.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":ut=Mt(r.DayPeriods,we.Abbreviated,Me.Format,!0);break;case"BBBB":ut=Mt(r.DayPeriods,we.Wide,Me.Format,!0);break;case"BBBBB":ut=Mt(r.DayPeriods,we.Narrow,Me.Format,!0);break;case"h":ut=Vt(t.Hours,1,-12);break;case"hh":ut=Vt(t.Hours,2,-12);break;case"H":ut=Vt(t.Hours,1);break;case"HH":ut=Vt(t.Hours,2);break;case"m":ut=Vt(t.Minutes,1);break;case"mm":ut=Vt(t.Minutes,2);break;case"s":ut=Vt(t.Seconds,1);break;case"ss":ut=Vt(t.Seconds,2);break;case"S":ut=Vt(t.FractionalSeconds,1);break;case"SS":ut=Vt(t.FractionalSeconds,2);break;case"SSS":ut=Vt(t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ut=je(n.Short);break;case"ZZZZZ":ut=je(n.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ut=je(n.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ut=je(n.Long);break;default:return null}return ze[Ne]=ut,ut}(ei);ti+=kn?kn(Lt,Le,ii):"''"===ei?"'":ei.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ti}function d(Ne,ut,Le){const pt=new Date(0);return pt.setFullYear(Ne,ut,Le),pt.setHours(0,0,0),pt}function p(Ne,ut){const Le=function he(Ne){return(0,e.cg1)(Ne)[e.wAp.LocaleId]}(Ne);if(l[Le]=l[Le]||{},l[Le][ut])return l[Le][ut];let pt="";switch(ut){case"shortDate":pt=Ee(Ne,Ge.Short);break;case"mediumDate":pt=Ee(Ne,Ge.Medium);break;case"longDate":pt=Ee(Ne,Ge.Long);break;case"fullDate":pt=Ee(Ne,Ge.Full);break;case"shortTime":pt=Oe(Ne,Ge.Short);break;case"mediumTime":pt=Oe(Ne,Ge.Medium);break;case"longTime":pt=Oe(Ne,Ge.Long);break;case"fullTime":pt=Oe(Ne,Ge.Full);break;case"short":const Lt=p(Ne,"shortTime"),qt=p(Ne,"shortDate");pt=M(ct(Ne,Ge.Short),[Lt,qt]);break;case"medium":const Yt=p(Ne,"mediumTime"),Cn=p(Ne,"mediumDate");pt=M(ct(Ne,Ge.Medium),[Yt,Cn]);break;case"long":const ii=p(Ne,"longTime"),ti=p(Ne,"longDate");pt=M(ct(Ne,Ge.Long),[ii,ti]);break;case"full":const ei=p(Ne,"fullTime"),kn=p(Ne,"fullDate");pt=M(ct(Ne,Ge.Full),[ei,kn])}return pt&&(l[Le][ut]=pt),pt}function M(Ne,ut){return ut&&(Ne=Ne.replace(/\{([^}]+)}/g,function(Le,pt){return null!=ut&&pt in ut?ut[pt]:Le})),Ne}function _e(Ne,ut,Le="-",pt,Lt){let qt="";(Ne<0||Lt&&Ne<=0)&&(Lt?Ne=1-Ne:(Ne=-Ne,qt=Le));let Yt=String(Ne);for(;Yt.length0||Cn>-Le)&&(Cn+=Le),Ne===t.Hours)0===Cn&&-12===Le&&(Cn=12);else if(Ne===t.FractionalSeconds)return function bt(Ne,ut){return _e(Ne,3).substring(0,ut)}(Cn,ut);const ii=Xe(Yt,ce.MinusSign);return _e(Cn,ut,ii,pt,Lt)}}function Mt(Ne,ut,Le=Me.Format,pt=!1){return function(Lt,qt){return function ft(Ne,ut,Le,pt,Lt,qt){switch(Le){case r.Months:return function R(Ne,ut,Le){const pt=(0,e.cg1)(Ne),qt=Ue([pt[e.wAp.MonthsFormat],pt[e.wAp.MonthsStandalone]],ut);return Ue(qt,Le)}(ut,Lt,pt)[Ne.getMonth()];case r.Days:return function j(Ne,ut,Le){const pt=(0,e.cg1)(Ne),qt=Ue([pt[e.wAp.DaysFormat],pt[e.wAp.DaysStandalone]],ut);return Ue(qt,Le)}(ut,Lt,pt)[Ne.getDay()];case r.DayPeriods:const Yt=Ne.getHours(),Cn=Ne.getMinutes();if(qt){const ti=function Se(Ne){const ut=(0,e.cg1)(Ne);return re(ut),(ut[e.wAp.ExtraData][2]||[]).map(pt=>"string"==typeof pt?P(pt):[P(pt[0]),P(pt[1])])}(ut),ei=function Fe(Ne,ut,Le){const pt=(0,e.cg1)(Ne);re(pt);const qt=Ue([pt[e.wAp.ExtraData][0],pt[e.wAp.ExtraData][1]],ut)||[];return Ue(qt,Le)||[]}(ut,Lt,pt),kn=ti.findIndex(Ci=>{if(Array.isArray(Ci)){const[qn,di]=Ci,rn=Yt>=qn.hours&&Cn>=qn.minutes,On=Yt0?Math.floor(Lt/60):Math.ceil(Lt/60);switch(Ne){case n.Short:return(Lt>=0?"+":"")+_e(Yt,2,qt)+_e(Math.abs(Lt%60),2,qt);case n.ShortGMT:return"GMT"+(Lt>=0?"+":"")+_e(Yt,1,qt);case n.Long:return"GMT"+(Lt>=0?"+":"")+_e(Yt,2,qt)+":"+_e(Math.abs(Lt%60),2,qt);case n.Extended:return 0===pt?"Z":(Lt>=0?"+":"")+_e(Yt,2,qt)+":"+_e(Math.abs(Lt%60),2,qt);default:throw new Error(`Unknown zone width "${Ne}"`)}}}function Be(Ne){return d(Ne.getFullYear(),Ne.getMonth(),Ne.getDate()+(4-Ne.getDay()))}function me(Ne,ut=!1){return function(Le,pt){let Lt;if(ut){const qt=new Date(Le.getFullYear(),Le.getMonth(),1).getDay()-1,Yt=Le.getDate();Lt=1+Math.floor((Yt+qt)/7)}else{const qt=Be(Le),Yt=function qe(Ne){const ut=d(Ne,0,1).getDay();return d(Ne,0,1+(ut<=4?4:11)-ut)}(qt.getFullYear()),Cn=qt.getTime()-Yt.getTime();Lt=1+Math.round(Cn/6048e5)}return _e(Lt,Ne,Xe(pt,ce.MinusSign))}}function ve(Ne,ut=!1){return function(Le,pt){return _e(Be(Le).getFullYear(),Ne,Xe(pt,ce.MinusSign),ut)}}const ze={};function at(Ne,ut){Ne=Ne.replace(/:/g,"");const Le=Date.parse("Jan 01, 1970 00:00:00 "+Ne)/6e4;return isNaN(Le)?ut:Le}function cn(Ne){return Ne instanceof Date&&!isNaN(Ne.valueOf())}function En(Ne,ut){ut=encodeURIComponent(ut);for(const Le of Ne.split(";")){const pt=Le.indexOf("="),[Lt,qt]=-1==pt?[Le,""]:[Le.slice(0,pt),Le.slice(pt+1)];if(Lt.trim()===ut)return decodeURIComponent(qt)}return null}let jn=(()=>{class Ne{constructor(Le,pt,Lt,qt){this._iterableDiffers=Le,this._keyValueDiffers=pt,this._ngEl=Lt,this._renderer=qt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Le){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Le?Le.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Le){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Le?Le.split(/\s+/):Le,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Le=this._iterableDiffer.diff(this._rawClass);Le&&this._applyIterableChanges(Le)}else if(this._keyValueDiffer){const Le=this._keyValueDiffer.diff(this._rawClass);Le&&this._applyKeyValueChanges(Le)}}_applyKeyValueChanges(Le){Le.forEachAddedItem(pt=>this._toggleClass(pt.key,pt.currentValue)),Le.forEachChangedItem(pt=>this._toggleClass(pt.key,pt.currentValue)),Le.forEachRemovedItem(pt=>{pt.previousValue&&this._toggleClass(pt.key,!1)})}_applyIterableChanges(Le){Le.forEachAddedItem(pt=>{if("string"!=typeof pt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(pt.item)}`);this._toggleClass(pt.item,!0)}),Le.forEachRemovedItem(pt=>this._toggleClass(pt.item,!1))}_applyClasses(Le){Le&&(Array.isArray(Le)||Le instanceof Set?Le.forEach(pt=>this._toggleClass(pt,!0)):Object.keys(Le).forEach(pt=>this._toggleClass(pt,!!Le[pt])))}_removeClasses(Le){Le&&(Array.isArray(Le)||Le instanceof Set?Le.forEach(pt=>this._toggleClass(pt,!1)):Object.keys(Le).forEach(pt=>this._toggleClass(pt,!1)))}_toggleClass(Le,pt){(Le=Le.trim())&&Le.split(/\s+/g).forEach(Lt=>{pt?this._renderer.addClass(this._ngEl.nativeElement,Lt):this._renderer.removeClass(this._ngEl.nativeElement,Lt)})}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Ne})();class ci{constructor(ut,Le,pt,Lt){this.$implicit=ut,this.ngForOf=Le,this.index=pt,this.count=Lt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Wn=(()=>{class Ne{constructor(Le,pt,Lt){this._viewContainer=Le,this._template=pt,this._differs=Lt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Le){this._ngForOf=Le,this._ngForOfDirty=!0}set ngForTrackBy(Le){this._trackByFn=Le}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Le){Le&&(this._template=Le)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Le=this._ngForOf;!this._differ&&Le&&(this._differ=this._differs.find(Le).create(this.ngForTrackBy))}if(this._differ){const Le=this._differ.diff(this._ngForOf);Le&&this._applyChanges(Le)}}_applyChanges(Le){const pt=this._viewContainer;Le.forEachOperation((Lt,qt,Yt)=>{if(null==Lt.previousIndex)pt.createEmbeddedView(this._template,new ci(Lt.item,this._ngForOf,-1,-1),null===Yt?void 0:Yt);else if(null==Yt)pt.remove(null===qt?void 0:qt);else if(null!==qt){const Cn=pt.get(qt);pt.move(Cn,Yt),Hn(Cn,Lt)}});for(let Lt=0,qt=pt.length;Lt{Hn(pt.get(Lt.currentIndex),Lt)})}static ngTemplateContextGuard(Le,pt){return!0}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Ne})();function Hn(Ne,ut){Ne.context.$implicit=ut.item}let Gn=(()=>{class Ne{constructor(Le,pt){this._viewContainer=Le,this._context=new Yn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=pt}set ngIf(Le){this._context.$implicit=this._context.ngIf=Le,this._updateView()}set ngIfThen(Le){Vi("ngIfThen",Le),this._thenTemplateRef=Le,this._thenViewRef=null,this._updateView()}set ngIfElse(Le){Vi("ngIfElse",Le),this._elseTemplateRef=Le,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Le,pt){return!0}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Ne})();class Yn{constructor(){this.$implicit=null,this.ngIf=null}}function Vi(Ne,ut){if(ut&&!ut.createEmbeddedView)throw new Error(`${Ne} must be a TemplateRef, but received '${(0,e.AaK)(ut)}'.`)}class Fi{constructor(ut,Le){this._viewContainerRef=ut,this._templateRef=Le,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ut){ut&&!this._created?this.create():!ut&&this._created&&this.destroy()}}let Hi=(()=>{class Ne{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Le){this._ngSwitch=Le,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Le){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Le)}_matchCase(Le){const pt=Le==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||pt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),pt}_updateDefaultCases(Le){if(this._defaultViews&&Le!==this._defaultUsed){this._defaultUsed=Le;for(let pt=0;pt{class Ne{constructor(Le,pt,Lt){this.ngSwitch=Lt,Lt._addCase(),this._view=new Fi(Le,pt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Hi,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),Ne})(),gi=(()=>{class Ne{constructor(Le,pt,Lt){Lt._addDefault(new Fi(Le,pt))}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(Hi,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngSwitchDefault",""]],standalone:!0}),Ne})(),rr=(()=>{class Ne{constructor(Le,pt,Lt){this._ngEl=Le,this._differs=pt,this._renderer=Lt,this._ngStyle=null,this._differ=null}set ngStyle(Le){this._ngStyle=Le,!this._differ&&Le&&(this._differ=this._differs.find(Le).create())}ngDoCheck(){if(this._differ){const Le=this._differ.diff(this._ngStyle);Le&&this._applyChanges(Le)}}_setStyle(Le,pt){const[Lt,qt]=Le.split("."),Yt=-1===Lt.indexOf("-")?void 0:e.JOm.DashCase;null!=pt?this._renderer.setStyle(this._ngEl.nativeElement,Lt,qt?`${pt}${qt}`:pt,Yt):this._renderer.removeStyle(this._ngEl.nativeElement,Lt,Yt)}_applyChanges(Le){Le.forEachRemovedItem(pt=>this._setStyle(pt.key,null)),Le.forEachAddedItem(pt=>this._setStyle(pt.key,pt.currentValue)),Le.forEachChangedItem(pt=>this._setStyle(pt.key,pt.currentValue))}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Ne})(),wt=(()=>{class Ne{constructor(Le){this._viewContainerRef=Le,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Le){if(Le.ngTemplateOutlet||Le.ngTemplateOutletInjector){const pt=this._viewContainerRef;if(this._viewRef&&pt.remove(pt.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Lt,ngTemplateOutletContext:qt,ngTemplateOutletInjector:Yt}=this;this._viewRef=pt.createEmbeddedView(Lt,qt,Yt?{injector:Yt}:void 0)}else this._viewRef=null}else this._viewRef&&Le.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.s_b))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]}),Ne})();function nt(Ne,ut){return new e.vHH(2100,!1)}class Bt{createSubscription(ut,Le){return ut.subscribe({next:Le,error:pt=>{throw pt}})}dispose(ut){ut.unsubscribe()}}class Gt{createSubscription(ut,Le){return ut.then(Le,pt=>{throw pt})}dispose(ut){}}const et=new Gt,Ft=new Bt;let Ke=(()=>{class Ne{constructor(Le){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Le}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Le){return this._obj?Le!==this._obj?(this._dispose(),this.transform(Le)):this._latestValue:(Le&&this._subscribe(Le),this._latestValue)}_subscribe(Le){this._obj=Le,this._strategy=this._selectStrategy(Le),this._subscription=this._strategy.createSubscription(Le,pt=>this._updateLatestValue(Le,pt))}_selectStrategy(Le){if((0,e.QGY)(Le))return et;if((0,e.F4k)(Le))return Ft;throw nt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Le,pt){Le===this._obj&&(this._latestValue=pt,this._ref.markForCheck())}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.sBO,16))},Ne.\u0275pipe=e.Yjl({name:"async",type:Ne,pure:!1,standalone:!0}),Ne})(),Et=(()=>{class Ne{transform(Le){if(null==Le)return null;if("string"!=typeof Le)throw nt();return Le.toLowerCase()}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275pipe=e.Yjl({name:"lowercase",type:Ne,pure:!0,standalone:!0}),Ne})();const Wt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let hn=(()=>{class Ne{transform(Le){if(null==Le)return null;if("string"!=typeof Le)throw nt();return Le.replace(Wt,pt=>pt[0].toUpperCase()+pt.slice(1).toLowerCase())}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275pipe=e.Yjl({name:"titlecase",type:Ne,pure:!0,standalone:!0}),Ne})(),wn=(()=>{class Ne{transform(Le){if(null==Le)return null;if("string"!=typeof Le)throw nt();return Le.toUpperCase()}}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275pipe=e.Yjl({name:"uppercase",type:Ne,pure:!0,standalone:!0}),Ne})();const zn=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let $n=(()=>{class Ne{constructor(Le,pt){this.locale=Le,this.defaultTimezone=pt}transform(Le,pt="mediumDate",Lt,qt){if(null==Le||""===Le||Le!=Le)return null;try{var Yt;return s(Le,pt,qt||this.locale,null!==(Yt=Lt??this.defaultTimezone)&&void 0!==Yt?Yt:void 0)}catch(Cn){throw nt()}}}return Ne.\u0275fac=function(Le){return new(Le||Ne)(e.Y36(e.soG,16),e.Y36(zn,24))},Ne.\u0275pipe=e.Yjl({name:"date",type:Ne,pure:!0,standalone:!0}),Ne})(),Yr=(()=>{class Ne{}return Ne.\u0275fac=function(Le){return new(Le||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({}),Ne})();const wi="browser";function Ii(Ne){return Ne===wi}function Xi(Ne){return"server"===Ne}let yr=(()=>{class Ne{}return Ne.\u0275prov=(0,e.Yz7)({token:Ne,providedIn:"root",factory:()=>new Mi((0,e.LFG)(T),window)}),Ne})();class Mi{constructor(ut,Le){this.document=ut,this.window=Le,this.offset=()=>[0,0]}setOffset(ut){this.offset=Array.isArray(ut)?()=>ut:ut}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ut){this.supportsScrolling()&&this.window.scrollTo(ut[0],ut[1])}scrollToAnchor(ut){if(!this.supportsScrolling())return;const Le=function ca(Ne,ut){const Le=Ne.getElementById(ut)||Ne.getElementsByName(ut)[0];if(Le)return Le;if("function"==typeof Ne.createTreeWalker&&Ne.body&&(Ne.body.createShadowRoot||Ne.body.attachShadow)){const pt=Ne.createTreeWalker(Ne.body,NodeFilter.SHOW_ELEMENT);let Lt=pt.currentNode;for(;Lt;){const qt=Lt.shadowRoot;if(qt){const Yt=qt.getElementById(ut)||qt.querySelector(`[name="${ut}"]`);if(Yt)return Yt}Lt=pt.nextNode()}}return null}(this.document,ut);Le&&(this.scrollToElement(Le),Le.focus())}setHistoryScrollRestoration(ut){if(this.supportScrollRestoration()){const Le=this.window.history;Le&&Le.scrollRestoration&&(Le.scrollRestoration=ut)}}scrollToElement(ut){const Le=ut.getBoundingClientRect(),pt=Le.left+this.window.pageXOffset,Lt=Le.top+this.window.pageYOffset,qt=this.offset();this.window.scrollTo(pt-qt[0],Lt-qt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ut=jr(this.window.history)||jr(Object.getPrototypeOf(this.window.history));return!(!ut||!ut.writable&&!ut.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function jr(Ne){return Object.getOwnPropertyDescriptor(Ne,"scrollRestoration")}class Ai{}},80529:(Ye,pe,h)=>{"use strict";h.d(pe,{JF:()=>o,LE:()=>le,TP:()=>j,WM:()=>U,Zn:()=>Ge,eN:()=>he,qT:()=>Te});var e=h(36895),c=h(94650),A=h(39646),w=h(69751),g=h(24351),C=h(39300),T=h(54004);class E{}class S{}class U{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const s=t.slice(0,r),d=s.toLowerCase(),p=t.slice(r+1).trim();this.maybeSetNormalizedName(s,d),this.headers.has(d)?this.headers.get(d).push(p):this.headers.set(d,[p])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(t=>{let r=n[t];const s=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(s,r),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof U?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new U;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof U?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const s=("a"===n.op?this.headers.get(t):void 0)||[];s.push(...r),this.headers.set(t,s);break;case"d":const d=n.value;if(d){let p=this.headers.get(t);if(!p)return;p=p.filter(M=>-1===d.indexOf(M)),0===p.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,p)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class V{encodeKey(n){return oe(n)}encodeValue(n){return oe(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const Q=/%(\d[a-f0-9])/gi,te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function oe(a){return encodeURIComponent(a).replace(Q,(n,t)=>{var r;return null!==(r=te[t])&&void 0!==r?r:n})}function ee(a){return`${a}`}class le{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new V,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function z(a,n){const t=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(s=>{const d=s.indexOf("="),[p,M]=-1==d?[n.decodeKey(s),""]:[n.decodeKey(s.slice(0,d)),n.decodeValue(s.slice(d+1))],_e=t.get(p)||[];_e.push(M),t.set(p,_e)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],s=Array.isArray(r)?r.map(ee):[ee(r)];this.map.set(t,s)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const s=n[r];Array.isArray(s)?s.forEach(d=>{t.push({param:r,value:d,op:"a"})}):t.push({param:r,value:s,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new le({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(ee(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const s=r.indexOf(ee(n.value));-1!==s&&r.splice(s,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class Te{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function L(a){return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer}function B(a){return typeof Blob<"u"&&a instanceof Blob}function W(a){return typeof FormData<"u"&&a instanceof FormData}class ue{constructor(n,t,r,s){let d;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function v(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==r?r:null,d=s):d=r,d&&(this.reportProgress=!!d.reportProgress,this.withCredentials=!!d.withCredentials,d.responseType&&(this.responseType=d.responseType),d.headers&&(this.headers=d.headers),d.context&&(this.context=d.context),d.params&&(this.params=d.params)),this.headers||(this.headers=new U),this.context||(this.context=new Te),this.params){const p=this.params.toString();if(0===p.length)this.urlWithParams=t;else{const M=t.indexOf("?");this.urlWithParams=t+(-1===M?"?":MMt.set(ft,n.setHeaders[ft]),bt)),n.setParams&&(Vt=Object.keys(n.setParams).reduce((Mt,ft)=>Mt.set(ft,n.setParams[ft]),Vt)),new ue(r,s,p,{params:Vt,headers:bt,context:on,reportProgress:_e,responseType:d,withCredentials:M})}}var ye=(()=>((ye=ye||{})[ye.Sent=0]="Sent",ye[ye.UploadProgress=1]="UploadProgress",ye[ye.ResponseHeader=2]="ResponseHeader",ye[ye.DownloadProgress=3]="DownloadProgress",ye[ye.Response=4]="Response",ye[ye.User=5]="User",ye))();class Me{constructor(n,t=200,r="OK"){this.headers=n.headers||new U,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class we extends Me{constructor(n={}){super(n),this.type=ye.ResponseHeader}clone(n={}){return new we({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Ge extends Me{constructor(n={}){super(n),this.type=ye.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ge({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ce extends Me{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Ze(a,n){return{body:n,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let he=(()=>{class a{constructor(t){this.handler=t}request(t,r,s={}){let d;if(t instanceof ue)d=t;else{let _e,bt;_e=s.headers instanceof U?s.headers:new U(s.headers),s.params&&(bt=s.params instanceof le?s.params:new le({fromObject:s.params})),d=new ue(t,r,void 0!==s.body?s.body:null,{headers:_e,context:s.context,params:bt,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const p=(0,A.of)(d).pipe((0,g.b)(_e=>this.handler.handle(_e)));if(t instanceof ue||"events"===s.observe)return p;const M=p.pipe((0,C.h)(_e=>_e instanceof Ge));switch(s.observe||"body"){case"body":switch(d.responseType){case"arraybuffer":return M.pipe((0,T.U)(_e=>{if(null!==_e.body&&!(_e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return _e.body}));case"blob":return M.pipe((0,T.U)(_e=>{if(null!==_e.body&&!(_e.body instanceof Blob))throw new Error("Response is not a Blob.");return _e.body}));case"text":return M.pipe((0,T.U)(_e=>{if(null!==_e.body&&"string"!=typeof _e.body)throw new Error("Response is not a string.");return _e.body}));default:return M.pipe((0,T.U)(_e=>_e.body))}case"response":return M;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new le).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,Ze(s,r))}post(t,r,s={}){return this.request("POST",t,Ze(s,r))}put(t,r,s={}){return this.request("PUT",t,Ze(s,r))}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(E))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})();class xe{constructor(n,t){this.next=n,this.interceptor=t}handle(n){return this.interceptor.intercept(n,this.next)}}const j=new c.OlP("HTTP_INTERCEPTORS");let R=(()=>{class a{intercept(t,r){return r.handle(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})();const gt=/^\)\]\}',?\n/;let Ce=(()=>{class a{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(r=>{const s=this.xhrFactory.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((ft,je)=>s.setRequestHeader(ft,je.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const ft=t.detectContentTypeHeader();null!==ft&&s.setRequestHeader("Content-Type",ft)}if(t.responseType){const ft=t.responseType.toLowerCase();s.responseType="json"!==ft?ft:"text"}const d=t.serializeBody();let p=null;const M=()=>{if(null!==p)return p;const ft=s.statusText||"OK",je=new U(s.getAllResponseHeaders()),Pe=function Y(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(s)||t.url;return p=new we({headers:je,status:s.status,statusText:ft,url:Pe}),p},_e=()=>{let{headers:ft,status:je,statusText:Pe,url:Qe}=M(),qe=null;204!==je&&(qe=typeof s.response>"u"?s.responseText:s.response),0===je&&(je=qe?200:0);let Be=je>=200&&je<300;if("json"===t.responseType&&"string"==typeof qe){const me=qe;qe=qe.replace(gt,"");try{qe=""!==qe?JSON.parse(qe):null}catch(ve){qe=me,Be&&(Be=!1,qe={error:ve,text:qe})}}Be?(r.next(new Ge({body:qe,headers:ft,status:je,statusText:Pe,url:Qe||void 0})),r.complete()):r.error(new ce({error:qe,headers:ft,status:je,statusText:Pe,url:Qe||void 0}))},bt=ft=>{const{url:je}=M(),Pe=new ce({error:ft,status:s.status||0,statusText:s.statusText||"Unknown Error",url:je||void 0});r.error(Pe)};let Vt=!1;const on=ft=>{Vt||(r.next(M()),Vt=!0);let je={type:ye.DownloadProgress,loaded:ft.loaded};ft.lengthComputable&&(je.total=ft.total),"text"===t.responseType&&!!s.responseText&&(je.partialText=s.responseText),r.next(je)},Mt=ft=>{let je={type:ye.UploadProgress,loaded:ft.loaded};ft.lengthComputable&&(je.total=ft.total),r.next(je)};return s.addEventListener("load",_e),s.addEventListener("error",bt),s.addEventListener("timeout",bt),s.addEventListener("abort",bt),t.reportProgress&&(s.addEventListener("progress",on),null!==d&&s.upload&&s.upload.addEventListener("progress",Mt)),s.send(d),r.next({type:ye.Sent}),()=>{s.removeEventListener("error",bt),s.removeEventListener("abort",bt),s.removeEventListener("load",_e),s.removeEventListener("timeout",bt),t.reportProgress&&(s.removeEventListener("progress",on),null!==d&&s.upload&&s.upload.removeEventListener("progress",Mt)),s.readyState!==s.DONE&&s.abort()}})}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(e.JF))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})();const ae=new c.OlP("XSRF_COOKIE_NAME"),re=new c.OlP("XSRF_HEADER_NAME");class Se{}let Fe=(()=>{class a{constructor(t,r,s){this.doc=t,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(e.K0),c.LFG(c.Lbi),c.LFG(ae))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})(),be=(()=>{class a{constructor(t,r){this.tokenService=t,this.headerName=r}intercept(t,r){const s=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||s.startsWith("http://")||s.startsWith("https://"))return r.handle(t);const d=this.tokenService.getToken();return null!==d&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,d)})),r.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(Se),c.LFG(re))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})(),Ue=(()=>{class a{constructor(t,r){this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=this.injector.get(j,[]);this.chain=r.reduceRight((s,d)=>new xe(s,d),this.backend)}return this.chain.handle(t)}}return a.\u0275fac=function(t){return new(t||a)(c.LFG(S),c.LFG(c.zs3))},a.\u0275prov=c.Yz7({token:a,factory:a.\u0275fac}),a})(),i=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:be,useClass:R}]}}static withOptions(t={}){return{ngModule:a,providers:[t.cookieName?{provide:ae,useValue:t.cookieName}:[],t.headerName?{provide:re,useValue:t.headerName}:[]]}}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=c.oAB({type:a}),a.\u0275inj=c.cJS({providers:[be,{provide:j,useExisting:be,multi:!0},{provide:Se,useClass:Fe},{provide:ae,useValue:"XSRF-TOKEN"},{provide:re,useValue:"X-XSRF-TOKEN"}]}),a})(),o=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=c.oAB({type:a}),a.\u0275inj=c.cJS({providers:[he,{provide:E,useClass:Ue},Ce,{provide:S,useExisting:Ce}],imports:[i.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),a})()},94650:(Ye,pe,h)=>{"use strict";h.d(pe,{$8M:()=>Fa,$Z:()=>Fp,AFp:()=>qg,ALo:()=>fg,AaK:()=>E,AsE:()=>Vu,B6R:()=>Qe,BQk:()=>Ic,CHM:()=>Ui,CRH:()=>Mg,CZH:()=>Gc,CqO:()=>Of,D6c:()=>jT,DdM:()=>ag,Dn7:()=>_g,EJc:()=>iT,EiD:()=>Cr,EpF:()=>Pf,F$t:()=>kf,F4k:()=>Rf,FYo:()=>Gh,FiY:()=>Bo,G48:()=>yT,Gf:()=>yg,GfV:()=>Zh,GkF:()=>Su,Gpc:()=>_,Gre:()=>hm,HOy:()=>Uu,Hsn:()=>Vf,Ikx:()=>Gu,JOm:()=>va,JVY:()=>pd,Jf7:()=>tp,KtG:()=>Li,L6k:()=>fd,LAX:()=>gd,LFG:()=>Pi,LSH:()=>ba,Lbi:()=>XE,Lck:()=>Kv,MAs:()=>If,MGl:()=>Pc,MMx:()=>Xu,NdJ:()=>Pu,O4$:()=>pa,OlP:()=>ni,Oqu:()=>ku,PXZ:()=>AT,Q2q:()=>wu,Q6J:()=>Mu,QGY:()=>Iu,QP$:()=>Js,QbO:()=>eT,Qsj:()=>U_,R0b:()=>kr,RDi:()=>ad,Rgc:()=>Vl,SBq:()=>El,Sil:()=>aT,Suo:()=>wg,TTD:()=>gr,TgZ:()=>xc,Tol:()=>em,Udp:()=>Lu,VKq:()=>og,W1O:()=>Ig,WFA:()=>Ru,WLB:()=>sg,XFs:()=>be,Xpm:()=>Pe,Xts:()=>mi,Y36:()=>Is,YKP:()=>Qm,YNc:()=>Sf,Yjl:()=>at,Yz7:()=>Oe,ZZ4:()=>Th,_Bn:()=>qm,_UZ:()=>Du,_Vd:()=>vl,_c5:()=>FT,_uU:()=>sm,aQg:()=>yh,c2e:()=>tT,cJS:()=>Xe,cg1:()=>zu,d8E:()=>Zu,dDg:()=>fT,dqk:()=>r,eBb:()=>md,eFA:()=>c_,ekj:()=>Bu,eoX:()=>o_,evT:()=>np,f3M:()=>Ql,g9A:()=>Kg,h0i:()=>Ws,hGG:()=>UT,hYB:()=>Hu,hij:()=>Oc,iGM:()=>Tg,ifc:()=>t,ip1:()=>$g,kEZ:()=>lg,kL8:()=>Em,kcU:()=>rs,lG2:()=>tt,lcZ:()=>mg,lnq:()=>Fu,lqb:()=>Wo,lri:()=>r_,mCW:()=>D,n5z:()=>Ro,n_E:()=>kc,oAB:()=>me,oJD:()=>Ao,oxw:()=>Nf,pB0:()=>_d,q3G:()=>fi,qLn:()=>Tl,qOj:()=>vu,qZA:()=>Dc,qzn:()=>go,rWj:()=>a_,s9C:()=>Ou,sBO:()=>wT,sIi:()=>Il,s_b:()=>Fc,soG:()=>Zc,tb:()=>Xg,tp0:()=>No,uIk:()=>yu,vHH:()=>te,vpe:()=>Ma,wAp:()=>Pn,xDo:()=>ju,xi3:()=>gg,xp6:()=>xp,ynx:()=>Sc,z2F:()=>zc,z3N:()=>ea,zSh:()=>Ed,zs3:()=>Jo});var e=h(77579),c=h(50727),A=h(69751),w=h(56451),g=h(13099);function C(u){for(let m in u)if(u[m]===C)return m;throw Error("Could not find renamed property on target object.")}function T(u,m){for(const b in m)m.hasOwnProperty(b)&&!u.hasOwnProperty(b)&&(u[b]=m[b])}function E(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(E).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const m=u.toString();if(null==m)return""+m;const b=m.indexOf("\n");return-1===b?m:m.substring(0,b)}function S(u,m){return null==u||""===u?null===m?"":m:null==m||""===m?u:u+" "+m}const U=C({__forward_ref__:C});function _(u){return u.__forward_ref__=_,u.toString=function(){return E(this())},u}function V(u){return z(u)?u():u}function z(u){return"function"==typeof u&&u.hasOwnProperty(U)&&u.__forward_ref__===_}class te extends Error{constructor(m,b){super(function oe(u,m){return`NG0${Math.abs(u)}${m?": "+m.trim():""}`}(m,b)),this.code=m}}function ee(u){return"string"==typeof u?u:null==u?"":String(u)}function L(u,m){throw new te(-201,!1)}function R(u,m){null==u&&function G(u,m,b,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${b} ${y} ${m} <=Actual]`))}(m,u,null,"!=")}function Oe(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Xe(u){return{providers:u.providers||[],imports:u.imports||[]}}function _t(u){return Je(u,ae)||Je(u,Se)}function Je(u,m){return u.hasOwnProperty(m)?u[m]:null}function Ce(u){return u&&(u.hasOwnProperty(re)||u.hasOwnProperty(Fe))?u[re]:null}const ae=C({\u0275prov:C}),re=C({\u0275inj:C}),Se=C({ngInjectableDef:C}),Fe=C({ngInjectorDef:C});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let Ue;function H(u){const m=Ue;return Ue=u,m}function i(u,m,b){const y=_t(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:b&be.Optional?null:void 0!==m?m:void L(E(u))}function f(u){return{toString:u}.toString()}var l=(()=>((l=l||{})[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l))(),t=(()=>{return(u=t||(t={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",t;var u})();const r=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),p={},M=[],_e=C({\u0275cmp:C}),bt=C({\u0275dir:C}),Vt=C({\u0275pipe:C}),on=C({\u0275mod:C}),Mt=C({\u0275fac:C}),ft=C({__NG_ELEMENT_ID__:C});let je=0;function Pe(u){return f(()=>{const b=!0===u.standalone,y={},x={type:u.type,providersResolver:null,decls:u.decls,vars:u.vars,factory:null,template:u.template||null,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:y,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,standalone:b,dependencies:b&&u.dependencies||null,getStandaloneInjector:null,selectors:u.selectors||M,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c"+je++,styles:u.styles||M,_:null,setInput:null,schemas:u.schemas||null,tView:null},I=u.dependencies,N=u.features;return x.inputs=ze(u.inputs,y),x.outputs=ze(u.outputs),N&&N.forEach(ie=>ie(x)),x.directiveDefs=I?()=>("function"==typeof I?I():I).map(qe).filter(Be):null,x.pipeDefs=I?()=>("function"==typeof I?I():I).map(Pt).filter(Be):null,x})}function Qe(u,m,b){const y=u.\u0275cmp;y.directiveDefs=()=>("function"==typeof m?m():m).map(qe),y.pipeDefs=()=>("function"==typeof b?b():b).map(Pt)}function qe(u){return Re(u)||st(u)}function Be(u){return null!==u}function me(u){return f(()=>({type:u.type,bootstrap:u.bootstrap||M,declarations:u.declarations||M,imports:u.imports||M,exports:u.exports||M,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function ze(u,m){if(null==u)return p;const b={};for(const y in u)if(u.hasOwnProperty(y)){let x=u[y],I=x;Array.isArray(x)&&(I=x[1],x=x[0]),b[x]=y,m&&(m[x]=I)}return b}const tt=Pe;function at(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:!0===u.standalone,onDestroy:u.type.prototype.ngOnDestroy||null}}function Re(u){return u[_e]||null}function st(u){return u[bt]||null}function Pt(u){return u[Vt]||null}function jt(u,m){const b=u[on]||null;if(!b&&!0===m)throw new Error(`Type ${E(u)} does not have '\u0275mod' property.`);return b}const Z=18;function Gn(u){return Array.isArray(u)&&"object"==typeof u[1]}function Yn(u){return Array.isArray(u)&&!0===u[1]}function Vi(u){return 0!=(8&u.flags)}function Fi(u){return 2==(2&u.flags)}function Hi(u){return 1==(1&u.flags)}function _i(u){return null!==u.template}function gi(u){return 0!=(256&u[2])}function Si(u,m){return u.hasOwnProperty(Mt)?u[Mt]:null}class Tr{constructor(m,b,y){this.previousValue=m,this.currentValue=b,this.firstChange=y}isFirstChange(){return this.firstChange}}function gr(){return ar}function ar(u){return u.type.prototype.ngOnChanges&&(u.setInput=sr),or}function or(){const u=Ar(this),m=u?.current;if(m){const b=u.previous;if(b===p)u.previous=m;else for(let y in m)b[y]=m[y];u.current=null,this.ngOnChanges(m)}}function sr(u,m,b,y){const x=Ar(u)||function lr(u,m){return u[_r]=m}(u,{previous:p,current:null}),I=x.current||(x.current={}),N=x.previous,ie=this.declaredInputs[b],ge=N[ie];I[ie]=new Tr(ge&&ge.currentValue,m,N===p),u[y]=m}gr.ngInherit=!0;const _r="__ngSimpleChanges__";function Ar(u){return u[_r]||null}function Jn(u){for(;Array.isArray(u);)u=u[0];return u}function yr(u,m){return Jn(m[u])}function Mi(u,m){return Jn(m[u.index])}function ca(u,m){return u.data[m]}function er(u,m){return u[m]}function Ai(u,m){const b=m[u];return Gn(b)?b:b[0]}function Ne(u){return 4==(4&u[2])}function ut(u){return 64==(64&u[2])}function pt(u,m){return null==m?null:u[m]}function Lt(u){u[Z]=0}function qt(u,m){u[5]+=m;let b=u,y=u[3];for(;null!==y&&(1===m&&1===b[5]||-1===m&&0===b[5]);)y[5]+=m,b=y,y=y[3]}const Yt={lFrame:no(null),bindingsEnabled:!0};function Ci(){return Yt.bindingsEnabled}function rn(){return Yt.lFrame.lView}function On(){return Yt.lFrame.tView}function Ui(u){return Yt.lFrame.contextLView=u,u[8]}function Li(u){return Yt.lFrame.contextLView=null,u}function hi(){let u=wr();for(;null!==u&&64===u.type;)u=u.parent;return u}function wr(){return Yt.lFrame.currentTNode}function Ve(u,m){const b=Yt.lFrame;b.currentTNode=u,b.isParent=m}function De(){return Yt.lFrame.isParent}function Ae(){Yt.lFrame.isParent=!1}function Xn(){const u=Yt.lFrame;let m=u.bindingRootIndex;return-1===m&&(m=u.bindingRootIndex=u.tView.bindingStartIndex),m}function Bi(){return Yt.lFrame.bindingIndex}function da(){return Yt.lFrame.bindingIndex++}function Or(u){const m=Yt.lFrame,b=m.bindingIndex;return m.bindingIndex=m.bindingIndex+u,b}function Qs(u,m){const b=Yt.lFrame;b.bindingIndex=b.bindingRootIndex=u,To(m)}function To(u){Yt.lFrame.currentDirectiveIndex=u}function $r(u){const m=Yt.lFrame.currentDirectiveIndex;return-1===m?null:u[m]}function to(){return Yt.lFrame.currentQueryIndex}function Gr(u){Yt.lFrame.currentQueryIndex=u}function ts(u){const m=u[1];return 2===m.type?m.declTNode:1===m.type?u[6]:null}function xa(u,m,b){if(b&be.SkipSelf){let x=m,I=u;for(;!(x=x.parent,null!==x||b&be.Host||(x=ts(I),null===x||(I=I[15],10&x.type))););if(null===x)return!1;m=x,u=I}const y=Yt.lFrame=Ks();return y.currentTNode=m,y.lView=u,!0}function ua(u){const m=Ks(),b=u[1];Yt.lFrame=m,m.currentTNode=b.firstChild,m.lView=u,m.tView=b,m.contextLView=u,m.bindingIndex=b.bindingStartIndex,m.inI18n=!1}function Ks(){const u=Yt.lFrame,m=null===u?null:u.child;return null===m?no(u):m}function no(u){const m={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:u,child:null,inI18n:!1};return null!==u&&(u.child=m),m}function Xs(){const u=Yt.lFrame;return Yt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const ns=Xs;function ha(){const u=Xs();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function xi(){return Yt.lFrame.selectedIndex}function xr(u){Yt.lFrame.selectedIndex=u}function pi(){const u=Yt.lFrame;return ca(u.tView,u.selectedIndex)}function pa(){Yt.lFrame.currentNamespace="svg"}function rs(){!function el(){Yt.lFrame.currentNamespace=null}()}function ro(u,m){for(let b=m.directiveStart,y=m.directiveEnd;b=y)break}else m[ge]<0&&(u[Z]+=65536),(ie>11>16&&(3&u[2])===m){u[2]+=2048;try{I.call(ie)}finally{}}}else try{I.call(ie)}finally{}}class Sa{constructor(m,b,y){this.factory=m,this.resolving=!1,this.canSeeViewProviders=b,this.injectImpl=y}}function so(u,m,b){let y=0;for(;ym){N=I-1;break}}}for(;I>16}(u),y=m;for(;b>0;)y=y[15],b--;return y}let Gi=!0;function Dr(u){const m=Gi;return Gi=u,m}let ol=0;const tr={};function Kr(u,m){const b=Ha(u,m);if(-1!==b)return b;const y=m[1];y.firstCreatePass&&(u.injectorIndex=m.length,Oa(y.data,u),Oa(m,null),Oa(y.blueprint,null));const x=co(u,m),I=u.injectorIndex;if(ss(x)){const N=Qr(x),ie=Hr(x,m),ge=ie[1].data;for(let We=0;We<8;We++)m[I+We]=ie[N+We]|ge[N+We]}return m[I+8]=x,I}function Oa(u,m){u.push(0,0,0,0,0,0,0,0,m)}function Ha(u,m){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===m[u.injectorIndex+8]?-1:u.injectorIndex}function co(u,m){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let b=0,y=null,x=m;for(;null!==x;){if(y=Va(x),null===y)return-1;if(b++,x=x[15],-1!==y.injectorIndex)return y.injectorIndex|b<<16}return-1}function zr(u,m,b){!function Ra(u,m,b){let y;"string"==typeof b?y=b.charCodeAt(0)||0:b.hasOwnProperty(ft)&&(y=b[ft]),null==y&&(y=b[ft]=ol++);const x=255&y;m.data[u+(x>>5)]|=1<=0?255&m:ll:m}(b);if("function"==typeof I){if(!xa(m,u,y))return y&be.Host?cs(x,0,y):ds(m,b,y,x);try{const N=I(y);if(null!=N||y&be.Optional)return N;L()}finally{ns()}}else if("number"==typeof I){let N=null,ie=Ha(u,m),ge=-1,We=y&be.Host?m[16][6]:null;for((-1===ie||y&be.SkipSelf)&&(ge=-1===ie?co(u,m):m[ie+8],-1!==ge&&ka(y,!1)?(N=m[1],ie=Qr(ge),m=Hr(ge,m)):ie=-1);-1!==ie;){const lt=m[1];if(Na(I,ie,lt.data)){const Tt=La(ie,m,b,N,y,We);if(Tt!==tr)return Tt}ge=m[ie+8],-1!==ge&&ka(y,m[1].data[ie+8]===We)&&Na(I,ie,m)?(N=lt,ie=Qr(ge),m=Hr(ge,m)):ie=-1}}return x}function La(u,m,b,y,x,I){const N=m[1],ie=N.data[u+8],lt=Ti(ie,N,b,null==y?Fi(ie)&&Gi:y!=N&&0!=(3&ie.type),x&be.Host&&I===ie);return null!==lt?Ba(m,N,lt,ie):tr}function Ti(u,m,b,y,x){const I=u.providerIndexes,N=m.data,ie=1048575&I,ge=u.directiveStart,lt=I>>20,kt=x?ie+lt:u.directiveEnd;for(let zt=y?ie:ie+lt;zt=ge&&nn.type===b)return zt}if(x){const zt=N[ge];if(zt&&_i(zt)&&zt.type===b)return ge}return null}function Ba(u,m,b,y){let x=u[b];const I=m.data;if(function il(u){return u instanceof Sa}(x)){const N=x;N.resolving&&function de(u,m){const b=m?`. Dependency path: ${m.join(" > ")} > ${u}`:"";throw new te(-200,`Circular dependency in DI detected for ${u}${b}`)}(function le(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():ee(u)}(I[b]));const ie=Dr(N.canSeeViewProviders);N.resolving=!0;const ge=N.injectImpl?H(N.injectImpl):null;xa(u,y,be.Default);try{x=u[b]=N.factory(void 0,I,u,y),m.firstCreatePass&&b>=y.directiveStart&&function as(u,m,b){const{ngOnChanges:y,ngOnInit:x,ngDoCheck:I}=m.type.prototype;if(y){const N=ar(m);(b.preOrderHooks||(b.preOrderHooks=[])).push(u,N),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(u,N)}x&&(b.preOrderHooks||(b.preOrderHooks=[])).push(0-u,x),I&&((b.preOrderHooks||(b.preOrderHooks=[])).push(u,I),(b.preOrderCheckHooks||(b.preOrderCheckHooks=[])).push(u,I))}(b,I[b],m)}finally{null!==ge&&H(ge),Dr(ie),N.resolving=!1,ns()}}return x}function Na(u,m,b){return!!(b[m+(u>>5)]&1<{const m=u.prototype.constructor,b=m[Mt]||hs(m),y=Object.prototype;let x=Object.getPrototypeOf(u.prototype).constructor;for(;x&&x!==y;){const I=x[Mt]||hs(x);if(I&&I!==b)return I;x=Object.getPrototypeOf(x)}return I=>new I})}function hs(u){return z(u)?()=>{const m=hs(V(u));return m&&m()}:Si(u)}function Va(u){const m=u[1],b=m.type;return 2===b?m.declTNode:1===b?u[6]:null}function Fa(u){return function sl(u,m){if("class"===m)return u.classes;if("style"===m)return u.styles;const b=u.attrs;if(b){const y=b.length;let x=0;for(;x{const y=function ho(u){return function(...b){if(u){const y=u(...b);for(const x in y)this[x]=y[x]}}}(m);function x(...I){if(this instanceof x)return y.apply(this,I),this;const N=new x(...I);return ie.annotation=N,ie;function ie(ge,We,lt){const Tt=ge.hasOwnProperty(cr)?ge[cr]:Object.defineProperty(ge,cr,{value:[]})[cr];for(;Tt.length<=lt;)Tt.push(null);return(Tt[lt]=Tt[lt]||[]).push(N),ge}}return b&&(x.prototype=Object.create(b.prototype)),x.prototype.ngMetadataName=u,x.annotationCls=x,x})}class ni{constructor(m,b){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof b?this.__NG_ELEMENT_ID__=b:void 0!==b&&(this.\u0275prov=Oe({token:this,providedIn:b.providedIn||"root",factory:b.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function dr(u,m){void 0===m&&(m=u);for(let b=0;bArray.isArray(b)?X(b,m):m(b))}function ne(u,m,b){m>=u.length?u.push(b):u.splice(m,0,b)}function F(u,m){return m>=u.length-1?u.pop():u.splice(m,1)[0]}function fe(u,m){const b=[];for(let y=0;y=0?u[1|y]=b:(y=~y,function yt(u,m,b,y){let x=u.length;if(x==m)u.push(b,y);else if(1===x)u.push(y,u[0]),u[0]=b;else{for(x--,u.push(u[x-1],u[x]);x>m;)u[x]=u[x-2],x--;u[m]=b,u[m+1]=y}}(u,y,m,b)),y}function _n(u,m){const b=xn(u,m);if(b>=0)return u[1|b]}function xn(u,m){return function oi(u,m,b){let y=0,x=u.length>>b;for(;x!==y;){const I=y+(x-y>>1),N=u[I<m?x=I:y=I+1}return~(x<u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Vo}())||void 0===m?void 0:m.createHTML(u))||u}function Al(u){var m;return(null===(m=function Uo(){if(void 0===Fo&&(Fo=null,r.trustedTypes))try{Fo=r.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Fo}())||void 0===m?void 0:m.createHTML(u))||u}class Ya{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ld extends Ya{getTypeName(){return"HTML"}}class cd extends Ya{getTypeName(){return"Style"}}class dd extends Ya{getTypeName(){return"Script"}}class ud extends Ya{getTypeName(){return"URL"}}class ys extends Ya{getTypeName(){return"ResourceURL"}}function ea(u){return u instanceof Ya?u.changingThisBreaksApplicationSecurity:u}function go(u,m){const b=function hd(u){return u instanceof Ya&&u.getTypeName()||null}(u);if(null!=b&&b!==m){if("ResourceURL"===b&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${b} (see https://g.co/ng/security#xss)`)}return b===m}function pd(u){return new ld(u)}function fd(u){return new cd(u)}function md(u){return new dd(u)}function gd(u){return new ud(u)}function _d(u){return new ys(u)}class Ad{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const b=(new window.DOMParser).parseFromString(mo(m),"text/html").body;return null===b?this.inertDocumentHelper.getInertBodyElement(m):(b.removeChild(b.firstChild),b)}catch{return null}}}class Cd{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const b=this.inertDocument.createElement("html");this.inertDocument.appendChild(b);const y=this.inertDocument.createElement("body");b.appendChild(y)}}getInertBodyElement(m){const b=this.inertDocument.createElement("template");if("content"in b)return b.innerHTML=mo(m),b;const y=this.inertDocument.createElement("body");return y.innerHTML=mo(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(m){const b=m.attributes;for(let x=b.length-1;0D(m.trim())).join(", ")),this.buf.push(" ",N,'="',ta(ge),'"')}var u;return this.buf.push(">"),!0}endElement(m){const b=m.nodeName.toLowerCase();Bn.hasOwnProperty(b)&&!It.hasOwnProperty(b)&&(this.buf.push(""))}chars(m){this.buf.push(ta(m))}checkClobberedElement(m,b){if(b&&(m.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return b}}const ki=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ja=/([^\#-~ |!])/g;function ta(u){return u.replace(/&/g,"&").replace(ki,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(Ja,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let zi;function Cr(u,m){let b=null;try{zi=zi||function cc(u){const m=new Cd(u);return function bd(){try{return!!(new window.DOMParser).parseFromString(mo(""),"text/html")}catch{return!1}}()?new Ad(m):m}(u);let y=m?String(m):"";b=zi.getInertBodyElement(y);let x=5,I=y;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,y=I,I=b.innerHTML,b=zi.getInertBodyElement(y)}while(y!==I);return mo((new nr).sanitizeChildren(_o(b)||b))}finally{if(b){const y=_o(b)||b;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function _o(u){return"content"in u&&function Br(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var fi=(()=>((fi=fi||{})[fi.NONE=0]="NONE",fi[fi.HTML=1]="HTML",fi[fi.STYLE=2]="STYLE",fi[fi.SCRIPT=3]="SCRIPT",fi[fi.URL=4]="URL",fi[fi.RESOURCE_URL=5]="RESOURCE_URL",fi))();function Ao(u){const m=Ir();return m?Al(m.sanitize(fi.HTML,u)||""):go(u,"HTML")?Al(ea(u)):Cr(function _l(){return void 0!==gl?gl:typeof document<"u"?document:void 0}(),ee(u))}function ba(u){const m=Ir();return m?m.sanitize(fi.URL,u)||"":go(u,"URL")?ea(u):D(ee(u))}function Ir(){const u=rn();return u&&u[12]}const mi=new ni("ENVIRONMENT_INITIALIZER"),bl=new ni("INJECTOR",-1),dc=new ni("INJECTOR_DEF_TYPES");class Wi{get(m,b=Oo){if(b===Oo){const y=new Error(`NullInjectorError: No provider for ${E(m)}!`);throw y.name="NullInjectorError",y}return b}}function $a(...u){return{\u0275providers:br(0,u)}}function br(u,...m){const b=[],y=new Set;let x;return X(m,I=>{const N=I;Zo(N,b,[],y)&&(x||(x=[]),x.push(N))}),void 0!==x&&Go(x,b),b}function Go(u,m){for(let b=0;b{m.push(I)})}}function Zo(u,m,b,y){if(!(u=V(u)))return!1;let x=null,I=Ce(u);const N=!I&&Re(u);if(I||N){if(N&&!N.standalone)return!1;x=u}else{const ge=u.ngModule;if(I=Ce(ge),!I)return!1;x=ge}const ie=y.has(x);if(N){if(ie)return!1;if(y.add(x),N.dependencies){const ge="function"==typeof N.dependencies?N.dependencies():N.dependencies;for(const We of ge)Zo(We,m,b,y)}}else{if(!I)return!1;{if(null!=I.imports&&!ie){let We;y.add(x);try{X(I.imports,lt=>{Zo(lt,m,b,y)&&(We||(We=[]),We.push(lt))})}finally{}void 0!==We&&Go(We,m)}if(!ie){const We=Si(x)||(()=>new x);m.push({provide:x,useFactory:We,deps:M},{provide:dc,useValue:x,multi:!0},{provide:mi,useValue:()=>Pi(x),multi:!0})}const ge=I.providers;null==ge||ie||X(ge,lt=>{m.push(lt)})}}return x!==u&&void 0!==u.providers}const x_=C({provide:String,useValue:C});function vd(u){return null!==u&&"object"==typeof u&&x_ in u}function zo(u){return"function"==typeof u}const Ed=new ni("Set Injector scope."),uc={},S_={};let Td;function hc(){return void 0===Td&&(Td=new Wi),Td}class Wo{}class Vh extends Wo{constructor(m,b,y,x){super(),this.parent=b,this.source=y,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wd(m,N=>this.processProvider(N)),this.records.set(bl,ws(void 0,this)),x.has("environment")&&this.records.set(Wo,ws(void 0,this));const I=this.records.get(Ed);null!=I&&"string"==typeof I.value&&this.scopes.add(I.value),this.injectorDefTypes=new Set(this.get(dc.multi,M,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const b=Lo(this),y=H(void 0);try{return m()}finally{Lo(b),H(y)}}get(m,b=Oo,y=be.Default){this.assertNotDestroyed();const x=Lo(this),I=H(void 0);try{if(!(y&be.SkipSelf)){let ie=this.records.get(m);if(void 0===ie){const ge=function H_(u){return"function"==typeof u||"object"==typeof u&&u instanceof ni}(m)&&_t(m);ie=ge&&this.injectableDefInScope(ge)?ws(yd(m),uc):null,this.records.set(m,ie)}if(null!=ie)return this.hydrate(m,ie)}return(y&be.Self?hc():this.parent).get(m,b=y&be.Optional&&b===Oo?null:b)}catch(N){if("NullInjectorError"===N.name){if((N[gs]=N[gs]||[]).unshift(E(m)),x)throw N;return function Kl(u,m,b,y){const x=u[gs];throw m[$l]&&x.unshift(m[$l]),u.message=function ml(u,m,b,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let x=E(m);if(Array.isArray(m))x=m.map(E).join(" -> ");else if("object"==typeof m){let I=[];for(let N in m)if(m.hasOwnProperty(N)){let ie=m[N];I.push(N+":"+("string"==typeof ie?JSON.stringify(ie):E(ie)))}x=`{${I.join(", ")}}`}return`${b}${y?"("+y+")":""}[${x}]: ${u.replace($c,"\n ")}`}("\n"+u.message,x,b,y),u.ngTokenPath=x,u[gs]=null,u}(N,m,"R3InjectorError",this.source)}throw N}finally{H(I),Lo(x)}}resolveInjectorInitializers(){const m=Lo(this),b=H(void 0);try{const y=this.get(mi.multi,M,be.Self);for(const x of y)x()}finally{Lo(m),H(b)}}toString(){const m=[],b=this.records;for(const y of b.keys())m.push(E(y));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new te(205,!1)}processProvider(m){let b=zo(m=V(m))?m:V(m&&m.provide);const y=function P_(u){return vd(u)?ws(void 0,u.useValue):ws(Fh(u),uc)}(m);if(zo(m)||!0!==m.multi)this.records.get(b);else{let x=this.records.get(b);x||(x=ws(void 0,uc,!0),x.factory=()=>Oi(x.multi),this.records.set(b,x)),b=m,x.multi.push(m)}this.records.set(b,y)}hydrate(m,b){return b.value===uc&&(b.value=S_,b.value=b.factory()),"object"==typeof b.value&&b.value&&function O_(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(b.value)&&this._ngOnDestroyHooks.add(b.value),b.value}injectableDefInScope(m){if(!m.providedIn)return!1;const b=V(m.providedIn);return"string"==typeof b?"any"===b||this.scopes.has(b):this.injectorDefTypes.has(b)}}function yd(u){const m=_t(u),b=null!==m?m.factory:Si(u);if(null!==b)return b;if(u instanceof ni)throw new te(204,!1);if(u instanceof Function)return function I_(u){const m=u.length;if(m>0)throw fe(m,"?"),new te(204,!1);const b=function gt(u){const m=u&&(u[ae]||u[Se]);if(m){const b=function Y(u){if(u.hasOwnProperty("name"))return u.name;const m=(""+u).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${b}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${b}" class.`),m}return null}(u);return null!==b?()=>b.factory(u):()=>new u}(u);throw new te(204,!1)}function Fh(u,m,b){let y;if(zo(u)){const x=V(u);return Si(x)||yd(x)}if(vd(u))y=()=>V(u.useValue);else if(function kh(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Oi(u.deps||[]));else if(function Nh(u){return!(!u||!u.useExisting)}(u))y=()=>Pi(V(u.useExisting));else{const x=V(u&&(u.useClass||u.provide));if(!function R_(u){return!!u.deps}(u))return Si(x)||yd(x);y=()=>new x(...Oi(u.deps))}return y}function ws(u,m,b=!1){return{factory:u,value:m,multi:b?[]:void 0}}function L_(u){return!!u.\u0275providers}function wd(u,m){for(const b of u)Array.isArray(b)?wd(b,m):L_(b)?wd(b.\u0275providers,m):m(b)}class Uh{}class k_{resolveComponentFactory(m){throw function N_(u){const m=Error(`No component factory found for ${E(u)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=u,m}(m)}}let vl=(()=>{class u{}return u.NULL=new k_,u})();function V_(){return Ms(hi(),rn())}function Ms(u,m){return new El(Mi(u,m))}let El=(()=>{class u{constructor(b){this.nativeElement=b}}return u.__NG_ELEMENT_ID__=V_,u})();function F_(u){return u instanceof El?u.nativeElement:u}class Gh{}let U_=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function j_(){const u=rn(),b=Ai(hi().index,u);return(Gn(b)?b:u)[11]}(),u})(),G_=(()=>{class u{}return u.\u0275prov=Oe({token:u,providedIn:"root",factory:()=>null}),u})();class Zh{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const Z_=new Zh("14.1.2"),Md={};function Pd(u){return u.ngOriginalError}class Tl{constructor(){this._console=console}handleError(m){const b=this._findOriginalError(m);this._console.error("ERROR",m),b&&this._console.error("ORIGINAL ERROR",b)}_findOriginalError(m){let b=m&&Pd(m);for(;b&&Pd(b);)b=Pd(b);return b||null}}const Rd=new Map;let nA=0;const Hd="__ngContext__";function hr(u,m){Gn(m)?(u[Hd]=m[20],function rA(u){Rd.set(u[20],u)}(m)):u[Hd]=m}function yl(u){const m=u[Hd];return"number"==typeof m?function qh(u){return Rd.get(u)||null}(m):m||null}function Ld(u){const m=yl(u);return m?Gn(m)?m:m.lView:null}const pA=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(r))();function tp(u){return u.ownerDocument.defaultView}function np(u){return u.ownerDocument}function qa(u){return u instanceof Function?u():u}var va=(()=>((va=va||{})[va.Important=1]="Important",va[va.DashCase=2]="DashCase",va))();function Nd(u,m){return undefined(u,m)}function wl(u){const m=u[3];return Yn(m)?m[3]:m}function kd(u){return op(u[13])}function Vd(u){return op(u[4])}function op(u){for(;null!==u&&!Yn(u);)u=u[4];return u}function Ds(u,m,b,y,x){if(null!=y){let I,N=!1;Yn(y)?I=y:Gn(y)&&(N=!0,y=y[0]);const ie=Jn(y);0===u&&null!==b?null==x?hp(m,b,ie):Yo(m,b,ie,x||null,!0):1===u&&null!==b?Yo(m,b,ie,x||null,!0):2===u?function Cp(u,m,b){const y=pc(u,m);y&&function SA(u,m,b,y){u.removeChild(m,b,y)}(u,y,m,b)}(m,ie,N):3===u&&m.destroyNode(ie),null!=I&&function RA(u,m,b,y,x){const I=b[7];I!==Jn(b)&&Ds(m,u,y,I,x);for(let ie=10;ie0&&(u[b-1][4]=y[4]);const I=F(u,10+m);!function vA(u,m){Ml(u,m,m[11],2,null,null),m[0]=null,m[6]=null}(y[1],y);const N=I[19];null!==N&&N.detachView(I[1]),y[3]=null,y[4]=null,y[2]&=-65}return y}function cp(u,m){if(!(128&m[2])){const b=m[11];b.destroyNode&&Ml(u,m,b,3,null,null),function yA(u){let m=u[13];if(!m)return Gd(u[1],u);for(;m;){let b=null;if(Gn(m))b=m[13];else{const y=m[10];y&&(b=y)}if(!b){for(;m&&!m[4]&&m!==u;)Gn(m)&&Gd(m[1],m),m=m[3];null===m&&(m=u),Gn(m)&&Gd(m[1],m),b=m&&m[4]}m=b}}(m)}}function Gd(u,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function DA(u,m){let b;if(null!=u&&null!=(b=u.destroyHooks))for(let y=0;y=0?y[x=We]():y[x=-We].unsubscribe(),I+=2}else{const N=y[x=b[I+1]];b[I].call(N)}if(null!==y){for(let I=x+1;II?"":x[Tt+1].toLowerCase();const zt=8&y?kt:null;if(zt&&-1!==Ep(zt,We,0)||2&y&&We!==kt){if(ia(y))return!1;N=!0}}}}else{if(!N&&!ia(y)&&!ia(ge))return!1;if(N&&ia(ge))continue;N=!1,y=ge|1&y}}return ia(y)||N}function ia(u){return 0==(1&u)}function NA(u,m,b,y){if(null===m)return-1;let x=0;if(y||!b){let I=!1;for(;x-1)for(b++;b0?'="'+ie+'"':"")+"]"}else 8&y?x+="."+N:4&y&&(x+=" "+N);else""!==x&&!ia(N)&&(m+=Mp(I,x),x=""),y=N,I=I||!ia(y);b++}return""!==x&&(m+=Mp(I,x)),m}const Fn={};function xp(u){Dp(On(),rn(),xi()+u,!1)}function Dp(u,m,b,y){if(!y)if(3==(3&m[2])){const I=u.preOrderCheckHooks;null!==I&&qr(m,I,b)}else{const I=u.preOrderHooks;null!==I&&Da(m,I,0,b)}xr(b)}function Rp(u,m=null,b=null,y){const x=Op(u,m,b,y);return x.resolveInjectorInitializers(),x}function Op(u,m=null,b=null,y,x=new Set){const I=[b||M,$a(u)];return y=y||("object"==typeof u?void 0:E(u)),new Vh(I,m||hc(),y||null,x)}let Jo=(()=>{class u{static create(b,y){if(Array.isArray(b))return Rp({name:""},y,b,"");{var x;const I=null!==(x=b.name)&&void 0!==x?x:"";return Rp({name:I},b.parent,b.providers,I)}}}return u.THROW_IF_NOT_FOUND=Oo,u.NULL=new Wi,u.\u0275prov=Oe({token:u,providedIn:"any",factory:()=>Pi(bl)}),u.__NG_ELEMENT_ID__=-1,u})();function Is(u,m=be.Default){const b=rn();return null===b?Pi(u,m):us(hi(),b,V(u),m)}function Fp(){throw new Error("invalid")}function _c(u,m){return u<<17|m<<2}function ra(u){return u>>17&32767}function Kd(u){return 2|u}function Qa(u){return(131068&u)>>2}function Xd(u,m){return-131069&u|m<<2}function eu(u){return 1|u}function Qp(u,m){const b=u.contentQueries;if(null!==b)for(let y=0;y22&&Dp(u,m,22,!1),b(y,x)}finally{xr(I)}}function Xp(u,m,b){if(Vi(m)){const x=m.directiveEnd;for(let I=m.directiveStart;I0;){const b=u[--m];if("number"==typeof b&&b<0)return b}return 0})(ie)!=ge&&ie.push(ge),ie.push(y,x,N)}}function lf(u,m){null!==u.hostBindings&&u.hostBindings(1,m)}function cf(u,m){m.flags|=2,(u.components||(u.components=[])).push(m.index)}function HC(u,m,b){if(b){if(m.exportAs)for(let y=0;y0&&mu(b)}}function mu(u){for(let y=kd(u);null!==y;y=Vd(y))for(let x=10;x0&&mu(I)}const b=u[1].components;if(null!==b)for(let y=0;y0&&mu(x)}}function UC(u,m){const b=Ai(m,u),y=b[1];(function jC(u,m){for(let b=m.length;bPromise.resolve(null))();function mf(u){return u[7]||(u[7]=[])}function gf(u){return u.cleanup||(u.cleanup=[])}function _f(u,m,b){return(null===u||_i(u))&&(b=function eo(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(b[m.index])),b[11]}function Af(u,m){const b=u[9],y=b?b.get(Tl,null):null;y&&y.handleError(m)}function Cu(u,m,b,y,x){for(let I=0;I-1&&(jd(m,y),F(b,y))}this._attachedToViewContainer=!1}cp(this._lView[1],this._lView)}onDestroy(m){tf(this._lView[1],this._lView,null,m)}markForCheck(){gu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _u(u,m,b){const y=m[10];y.begin&&y.begin();try{xl(u,m,u.template,b)}catch(x){throw Af(m,x),x}finally{y.end&&y.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new te(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function TA(u,m){Ml(u,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new te(902,!1);this._appRef=m}}class zC extends Dl{constructor(m){super(m),this._view=m}detectChanges(){ff(this._view)}checkNoChanges(){}get context(){return null}}class bu extends vl{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const b=Re(m);return new Sl(b,this.ngModule)}}function Cf(u){const m=[];for(let b in u)u.hasOwnProperty(b)&&m.push({propName:u[b],templateName:b});return m}class YC{constructor(m,b){this.injector=m,this.parentInjector=b}get(m,b,y){const x=this.injector.get(m,Md,y);return x!==Md||b===Md?x:this.parentInjector.get(m,b,y)}}class Sl extends Uh{constructor(m,b){super(),this.componentDef=m,this.ngModule=b,this.componentType=m.type,this.selector=function GA(u){return u.map(jA).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!b}get inputs(){return Cf(this.componentDef.inputs)}get outputs(){return Cf(this.componentDef.outputs)}create(m,b,y,x){var I;let N=(x=x||this.ngModule)instanceof Wo?x:null===(I=x)||void 0===I?void 0:I.injector;N&&null!==this.componentDef.getStandaloneInjector&&(N=this.componentDef.getStandaloneInjector(N)||N);const ie=N?new YC(m,N):m,ge=ie.get(Gh,null);if(null===ge)throw new te(407,!1);const We=ie.get(G_,null),lt=ge.createRenderer(null,this.componentDef),Tt=this.componentDef.selectors[0][0]||"div",kt=y?function yC(u,m,b){return u.selectRootElement(m,b===t.ShadowDom)}(lt,y,this.componentDef.encapsulation):Ud(ge.createRenderer(null,this.componentDef),Tt,function WC(u){const m=u.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(Tt)),zt=this.componentDef.onPush?288:272,nn=function KC(u,m){return{components:[],scheduler:u||pA,clean:ZC,playerHandler:m||null,flags:0}}(),dn=hu(0,null,null,1,0,null,null,null,null,null),pn=bc(null,dn,nn,zt,null,null,ge,lt,We,ie,null);let Tn,Dn;ua(pn);try{const ln=function qC(u,m,b,y,x,I){const N=b[1];b[22]=u;const ge=Ps(N,22,2,"#host",null),We=ge.mergedAttrs=m.hostAttrs;null!==We&&(Tc(ge,We,!0),null!==u&&(so(x,u,We),null!==ge.classes&&Yd(x,u,ge.classes),null!==ge.styles&&vp(x,u,ge.styles)));const lt=y.createRenderer(u,m),Tt=bc(b,ef(m),null,m.onPush?32:16,b[22],ge,y,lt,I||null,null,null);return N.firstCreatePass&&(zr(Kr(ge,b),N,m.type),cf(N,ge),df(ge,b.length,1)),Ec(b,Tt),b[22]=Tt}(kt,this.componentDef,pn,ge,lt);if(kt)if(y)so(lt,kt,["ng-version",Z_.full]);else{const{attrs:Rn,classes:Un}=function ZA(u){const m=[],b=[];let y=1,x=2;for(;y0&&Yd(lt,kt,Un.join(" "))}if(Dn=ca(dn,22),void 0!==b){const Rn=Dn.projection=[];for(let Un=0;Un=0;y--){const x=u[y];x.hostVars=m+=x.hostVars,x.hostAttrs=lo(x.hostAttrs,b=lo(b,x.hostAttrs))}}(y)}function Eu(u){return u===p?{}:u===M?[]:u}function tb(u,m){const b=u.viewQuery;u.viewQuery=b?(y,x)=>{m(y,x),b(y,x)}:m}function nb(u,m){const b=u.contentQueries;u.contentQueries=b?(y,x,I)=>{m(y,x,I),b(y,x,I)}:m}function ib(u,m){const b=u.hostBindings;u.hostBindings=b?(y,x)=>{m(y,x),b(y,x)}:m}let wc=null;function $o(){if(!wc){const u=r.Symbol;if(u&&u.iterator)wc=u.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let b=0;bie(Jn(Un[y.index])):y.index;let Rn=null;if(!ie&&ge&&(Rn=function gb(u,m,b,y){const x=u.cleanup;if(null!=x)for(let I=0;Ige?ie[ge]:null}"string"==typeof N&&(I+=2)}return null}(u,m,x,y.index)),null!==Rn)(Rn.__ngLastListenerFn__||Rn).__ngNextListenerFn__=I,Rn.__ngLastListenerFn__=I,zt=!1;else{I=Bf(y,m,Tt,I,!1);const Un=b.listen(Tn,x,I);kt.push(I,Un),lt&<.push(x,ln,Dn,Dn+1)}}else I=Bf(y,m,Tt,I,!1);const nn=y.outputs;let dn;if(zt&&null!==nn&&(dn=nn[x])){const pn=dn.length;if(pn)for(let Tn=0;Tn0;)m=m[15],u--;return m}(u,Yt.lFrame.contextLView))[8]}(u)}function _b(u,m){let b=null;const y=function kA(u){const m=u.attrs;if(null!=m){const b=m.indexOf(5);if(0==(1&b))return m[b+1]}return null}(u);for(let x=0;x=0}const Yi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jf(u){return u.substring(Yi.key,Yi.keyEnd)}function $f(u,m){const b=Yi.textEnd;return b===m?-1:(m=Yi.keyEnd=function yb(u,m,b){for(;m32;)m++;return m}(u,Yi.key=m,b),js(u,m,b))}function js(u,m,b){for(;m=0;b=$f(m,b))bn(u,Jf(m),!0)}function aa(u,m,b,y){const x=rn(),I=On(),N=Or(2);I.firstUpdatePass&&nm(I,u,N,y),m!==Fn&&pr(x,N,m)&&rm(I,I.data[xi()],x,x[11],u,x[N+1]=function Hb(u,m){return null==u||("string"==typeof m?u+=m:"object"==typeof u&&(u=E(ea(u)))),u}(m,b),y,N)}function oa(u,m,b,y){const x=On(),I=Or(2);x.firstUpdatePass&&nm(x,null,I,y);const N=rn();if(b!==Fn&&pr(N,I,b)){const ie=x.data[xi()];if(om(ie,y)&&!tm(x,I)){let ge=y?ie.classesWithoutHost:ie.stylesWithoutHost;null!==ge&&(b=S(ge,b||"")),xu(x,ie,N,b,y)}else!function Ob(u,m,b,y,x,I,N,ie){x===Fn&&(x=M);let ge=0,We=0,lt=0=u.expandoStartIndex}function nm(u,m,b,y){const x=u.data;if(null===x[b+1]){const I=x[xi()],N=tm(u,b);om(I,y)&&null===m&&!N&&(m=!1),m=function Db(u,m,b,y){const x=$r(u);let I=y?m.residualClasses:m.residualStyles;if(null===x)0===(y?m.classBindings:m.styleBindings)&&(b=Rl(b=Nu(null,u,m,b,y),m.attrs,y),I=null);else{const N=m.directiveStylingLast;if(-1===N||u[N]!==x)if(b=Nu(x,u,m,b,y),null===I){let ge=function Sb(u,m,b){const y=b?m.classBindings:m.styleBindings;if(0!==Qa(y))return u[ra(y)]}(u,m,y);void 0!==ge&&Array.isArray(ge)&&(ge=Nu(null,u,m,ge[1],y),ge=Rl(ge,m.attrs,y),function Ib(u,m,b,y){u[ra(b?m.classBindings:m.styleBindings)]=y}(u,m,y,ge))}else I=function Pb(u,m,b){let y;const x=m.directiveEnd;for(let I=1+m.directiveStylingLast;I0)&&(We=!0)}else lt=b;if(x)if(0!==ge){const kt=ra(u[ie+1]);u[y+1]=_c(kt,ie),0!==kt&&(u[kt+1]=Xd(u[kt+1],y)),u[ie+1]=function cC(u,m){return 131071&u|m<<17}(u[ie+1],y)}else u[y+1]=_c(ie,0),0!==ie&&(u[ie+1]=Xd(u[ie+1],y)),ie=y;else u[y+1]=_c(ge,0),0===ie?ie=y:u[ge+1]=Xd(u[ge+1],y),ge=y;We&&(u[y+1]=Kd(u[y+1])),Yf(u,lt,y,!0),Yf(u,lt,y,!1),function Cb(u,m,b,y,x){const I=x?u.residualClasses:u.residualStyles;null!=I&&"string"==typeof m&&xn(I,m)>=0&&(b[y+1]=eu(b[y+1]))}(m,lt,u,y,I),N=_c(ie,ge),I?m.classBindings=N:m.styleBindings=N}(x,I,m,b,N,y)}}function Nu(u,m,b,y,x){let I=null;const N=b.directiveEnd;let ie=b.directiveStylingLast;for(-1===ie?ie=b.directiveStart:ie++;ie0;){const ge=u[x],We=Array.isArray(ge),lt=We?ge[1]:ge,Tt=null===lt;let kt=b[x+1];kt===Fn&&(kt=Tt?M:void 0);let zt=Tt?_n(kt,y):lt===y?kt:void 0;if(We&&!Rc(zt)&&(zt=_n(ge,y)),Rc(zt)&&(ie=zt,N))return ie;const nn=u[x+1];x=N?ra(nn):Qa(nn)}if(null!==m){let ge=I?m.residualClasses:m.residualStyles;null!=ge&&(ie=_n(ge,y))}return ie}function Rc(u){return void 0!==u}function om(u,m){return 0!=(u.flags&(m?16:32))}function sm(u,m=""){const b=rn(),y=On(),x=u+22,I=y.firstCreatePass?Ps(y,x,1,m,null):y.data[x],N=b[x]=function Fd(u,m){return u.createText(m)}(b[11],m);fc(y,b,N,I),Ve(I,!1)}function ku(u){return Oc("",u,""),ku}function Oc(u,m,b){const y=rn(),x=Hs(y,u,m,b);return x!==Fn&&Ka(y,xi(),x),Oc}function Vu(u,m,b,y,x){const I=rn(),N=Ls(I,u,m,b,y,x);return N!==Fn&&Ka(I,xi(),N),Vu}function Fu(u,m,b,y,x,I,N){const ie=rn(),ge=function Bs(u,m,b,y,x,I,N,ie){const We=Mc(u,Bi(),b,x,N);return Or(3),We?m+ee(b)+y+ee(x)+I+ee(N)+ie:Fn}(ie,u,m,b,y,x,I,N);return ge!==Fn&&Ka(ie,xi(),ge),Fu}function Uu(u,m,b,y,x,I,N,ie,ge){const We=rn(),lt=function Ns(u,m,b,y,x,I,N,ie,ge,We){const Tt=Wr(u,Bi(),b,x,N,ge);return Or(4),Tt?m+ee(b)+y+ee(x)+I+ee(N)+ie+ee(ge)+We:Fn}(We,u,m,b,y,x,I,N,ie,ge);return lt!==Fn&&Ka(We,xi(),lt),Uu}function ju(u,m,b,y,x,I,N,ie,ge,We,lt){const Tt=rn(),kt=function ks(u,m,b,y,x,I,N,ie,ge,We,lt,Tt){const kt=Bi();let zt=Wr(u,kt,b,x,N,ge);return zt=pr(u,kt+4,lt)||zt,Or(5),zt?m+ee(b)+y+ee(x)+I+ee(N)+ie+ee(ge)+We+ee(lt)+Tt:Fn}(Tt,u,m,b,y,x,I,N,ie,ge,We,lt);return kt!==Fn&&Ka(Tt,xi(),kt),ju}function hm(u,m,b){oa(bn,wa,Hs(rn(),u,m,b),!0)}function Gu(u,m,b){const y=rn();return pr(y,da(),m)&&Nr(On(),pi(),y,u,m,y[11],b,!0),Gu}function Zu(u,m,b){const y=rn();if(pr(y,da(),m)){const I=On(),N=pi();Nr(I,N,y,u,m,_f($r(I.data),N,y),b,!0)}return Zu}const Qo=void 0;var Xb=["en",[["a","p"],["AM","PM"],Qo],[["AM","PM"],Qo,Qo],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qo,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qo,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Qo,"{1} 'at' {0}",Qo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(u){const b=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===b&&0===y?1:5}];let Gs={};function zu(u){const m=function ev(u){return u.toLowerCase().replace(/_/g,"-")}(u);let b=Tm(m);if(b)return b;const y=m.split("-")[0];if(b=Tm(y),b)return b;if("en"===y)return Xb;throw new te(701,!1)}function Em(u){return zu(u)[Pn.PluralCase]}function Tm(u){return u in Gs||(Gs[u]=r.ng&&r.ng.common&&r.ng.common.locales&&r.ng.common.locales[u]),Gs[u]}var Pn=(()=>((Pn=Pn||{})[Pn.LocaleId=0]="LocaleId",Pn[Pn.DayPeriodsFormat=1]="DayPeriodsFormat",Pn[Pn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pn[Pn.DaysFormat=3]="DaysFormat",Pn[Pn.DaysStandalone=4]="DaysStandalone",Pn[Pn.MonthsFormat=5]="MonthsFormat",Pn[Pn.MonthsStandalone=6]="MonthsStandalone",Pn[Pn.Eras=7]="Eras",Pn[Pn.FirstDayOfWeek=8]="FirstDayOfWeek",Pn[Pn.WeekendRange=9]="WeekendRange",Pn[Pn.DateFormat=10]="DateFormat",Pn[Pn.TimeFormat=11]="TimeFormat",Pn[Pn.DateTimeFormat=12]="DateTimeFormat",Pn[Pn.NumberSymbols=13]="NumberSymbols",Pn[Pn.NumberFormats=14]="NumberFormats",Pn[Pn.CurrencyCode=15]="CurrencyCode",Pn[Pn.CurrencySymbol=16]="CurrencySymbol",Pn[Pn.CurrencyName=17]="CurrencyName",Pn[Pn.Currencies=18]="Currencies",Pn[Pn.Directionality=19]="Directionality",Pn[Pn.PluralCase=20]="PluralCase",Pn[Pn.ExtraData=21]="ExtraData",Pn))();const Zs="en-US";let ym=Zs;function Ju(u,m,b,y,x){if(u=V(u),Array.isArray(u))for(let I=0;I>20;if(zo(u)||!u.multi){const zt=new Sa(ge,x,Is),nn=qu(ie,m,x?lt:lt+kt,Tt);-1===nn?(zr(Kr(We,N),I,ie),$u(I,u,m.length),m.push(ie),We.directiveStart++,We.directiveEnd++,x&&(We.providerIndexes+=1048576),b.push(zt),N.push(zt)):(b[nn]=zt,N[nn]=zt)}else{const zt=qu(ie,m,lt+kt,Tt),nn=qu(ie,m,lt,lt+kt),dn=zt>=0&&b[zt],pn=nn>=0&&b[nn];if(x&&!pn||!x&&!dn){zr(Kr(We,N),I,ie);const Tn=function Qv(u,m,b,y,x){const I=new Sa(u,b,Is);return I.multi=[],I.index=m,I.componentProviders=0,$m(I,x,y&&!b),I}(x?qv:$v,b.length,x,y,ge);!x&&pn&&(b[nn].providerFactory=Tn),$u(I,u,m.length,0),m.push(ie),We.directiveStart++,We.directiveEnd++,x&&(We.providerIndexes+=1048576),b.push(Tn),N.push(Tn)}else $u(I,u,zt>-1?zt:nn,$m(b[x?nn:zt],ge,!x&&y));!x&&y&&pn&&b[nn].componentProviders++}}}function $u(u,m,b,y){const x=zo(m),I=function D_(u){return!!u.useClass}(m);if(x||I){const ge=(I?V(m.useClass):m).prototype.ngOnDestroy;if(ge){const We=u.destroyHooks||(u.destroyHooks=[]);if(!x&&m.multi){const lt=We.indexOf(b);-1===lt?We.push(b,[y,ge]):We[lt+1].push(y,ge)}else We.push(b,ge)}}}function $m(u,m,b){return b&&u.componentProviders++,u.multi.push(m)-1}function qu(u,m,b,y){for(let x=b;x{b.providersResolver=(y,x)=>function Jv(u,m,b){const y=On();if(y.firstCreatePass){const x=_i(u);Ju(b,y.data,y.blueprint,x,!0),Ju(m,y.data,y.blueprint,x,!1)}}(y,x?x(u):u,m)}}class Ws{}class Qm{}function Kv(u,m){return new Km(u,m??null)}class Km extends Ws{constructor(m,b){super(),this._parent=b,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bu(this);const y=jt(m);this._bootstrapComponents=qa(y.bootstrap),this._r3Injector=Op(m,b,[{provide:Ws,useValue:this},{provide:vl,useValue:this.componentFactoryResolver}],E(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(b=>b()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Ku extends Qm{constructor(m){super(),this.moduleType=m}create(m){return new Km(this.moduleType,m)}}class Xv extends Ws{constructor(m,b,y){super(),this.componentFactoryResolver=new bu(this),this.instance=null;const x=new Vh([...m,{provide:Ws,useValue:this},{provide:vl,useValue:this.componentFactoryResolver}],b||hc(),y,new Set(["environment"]));this.injector=x,x.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function Xu(u,m,b=null){return new Xv(u,m,b).injector}function ag(u,m,b){const y=Xn()+u,x=rn();return x[y]===Fn?Ta(x,y,b?m.call(b):m()):function Pl(u,m){return u[m]}(x,y)}function og(u,m,b,y){return cg(rn(),Xn(),u,m,b,y)}function sg(u,m,b,y,x){return dg(rn(),Xn(),u,m,b,y,x)}function lg(u,m,b,y,x,I){return ug(rn(),Xn(),u,m,b,y,x,I)}function Nl(u,m){const b=u[m];return b===Fn?void 0:b}function cg(u,m,b,y,x,I){const N=m+b;return pr(u,N,x)?Ta(u,N+1,I?y.call(I,x):y(x)):Nl(u,N+1)}function dg(u,m,b,y,x,I,N){const ie=m+b;return qo(u,ie,x,I)?Ta(u,ie+2,N?y.call(N,x,I):y(x,I)):Nl(u,ie+2)}function ug(u,m,b,y,x,I,N,ie){const ge=m+b;return Mc(u,ge,x,I,N)?Ta(u,ge+3,ie?y.call(ie,x,I,N):y(x,I,N)):Nl(u,ge+3)}function fg(u,m){const b=On();let y;const x=u+22;b.firstCreatePass?(y=function gE(u,m){if(m)for(let b=m.length-1;b>=0;b--){const y=m[b];if(u===y.name)return y}}(m,b.pipeRegistry),b.data[x]=y,y.onDestroy&&(b.destroyHooks||(b.destroyHooks=[])).push(x,y.onDestroy)):y=b.data[x];const I=y.factory||(y.factory=Si(y.type)),N=H(Is);try{const ie=Dr(!1),ge=I();return Dr(ie),function pb(u,m,b,y){b>=u.data.length&&(u.data[b]=null,u.blueprint[b]=null),m[b]=y}(b,rn(),x,ge),ge}finally{H(N)}}function mg(u,m,b){const y=u+22,x=rn(),I=er(x,y);return kl(x,y)?cg(x,Xn(),m,I.transform,b,I):I.transform(b)}function gg(u,m,b,y){const x=u+22,I=rn(),N=er(I,x);return kl(I,x)?dg(I,Xn(),m,N.transform,b,y,N):N.transform(b,y)}function _g(u,m,b,y,x){const I=u+22,N=rn(),ie=er(N,I);return kl(N,I)?ug(N,Xn(),m,ie.transform,b,y,x,ie):ie.transform(b,y,x)}function kl(u,m){return u[1].data[m].pure}function th(u){return m=>{setTimeout(u,void 0,m)}}const Ma=class CE extends e.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,b,y){let x=m,I=b||(()=>null),N=y;if(m&&"object"==typeof m){var ie,ge,We;const Tt=m;x=null===(ie=Tt.next)||void 0===ie?void 0:ie.bind(Tt),I=null===(ge=Tt.error)||void 0===ge?void 0:ge.bind(Tt),N=null===(We=Tt.complete)||void 0===We?void 0:We.bind(Tt)}this.__isAsync&&(I=th(I),x&&(x=th(x)),N&&(N=th(N)));const lt=super.subscribe({next:x,error:I,complete:N});return m instanceof c.w0&&m.add(lt),lt}};function bE(){return this._results[$o()]()}class kc{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const b=$o(),y=kc.prototype;y[b]||(y[b]=bE)}get changes(){return this._changes||(this._changes=new Ma)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,b){return this._results.reduce(m,b)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,b){const y=this;y.dirty=!1;const x=dr(m);(this._changesDetected=!function pl(u,m,b){if(u.length!==m.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=TE,u})();const vE=Vl,EE=class extends vE{constructor(m,b,y){super(),this._declarationLView=m,this._declarationTContainer=b,this.elementRef=y}createEmbeddedView(m,b){const y=this._declarationTContainer.tViews,x=bc(this._declarationLView,y,m,16,null,y.declTNode,null,null,null,null,b||null);x[17]=this._declarationLView[this._declarationTContainer.index];const N=this._declarationLView[19];return null!==N&&(x[19]=N.createEmbeddedView(y)),vc(y,x,m),new Dl(x)}};function TE(){return Vc(hi(),rn())}function Vc(u,m){return 4&u.type?new EE(m,u,Ms(u,m)):null}let Fc=(()=>{class u{}return u.__NG_ELEMENT_ID__=yE,u})();function yE(){return bg(hi(),rn())}const wE=Fc,Ag=class extends wE{constructor(m,b,y){super(),this._lContainer=m,this._hostTNode=b,this._hostLView=y}get element(){return Ms(this._hostTNode,this._hostLView)}get injector(){return new ga(this._hostTNode,this._hostLView)}get parentInjector(){const m=co(this._hostTNode,this._hostLView);if(ss(m)){const b=Hr(m,this._hostLView),y=Qr(m);return new ga(b[1].data[y+8],b)}return new ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const b=Cg(this._lContainer);return null!==b&&b[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,b,y){let x,I;"number"==typeof y?x=y:null!=y&&(x=y.index,I=y.injector);const N=m.createEmbeddedView(b||{},I);return this.insert(N,x),N}createComponent(m,b,y,x,I){const N=m&&!function Ga(u){return"function"==typeof u}(m);let ie;if(N)ie=b;else{const Tt=b||{};ie=Tt.index,y=Tt.injector,x=Tt.projectableNodes,I=Tt.environmentInjector||Tt.ngModuleRef}const ge=N?m:new Sl(Re(m)),We=y||this.parentInjector;if(!I&&null==ge.ngModule){const kt=(N?We:this.parentInjector).get(Wo,null);kt&&(I=kt)}const lt=ge.create(We,x,void 0,I);return this.insert(lt.hostView,ie),lt}insert(m,b){const y=m._lView,x=y[1];if(function Le(u){return Yn(u[3])}(y)){const lt=this.indexOf(m);if(-1!==lt)this.detach(lt);else{const Tt=y[3],kt=new Ag(Tt,Tt[6],Tt[3]);kt.detach(kt.indexOf(m))}}const I=this._adjustIndex(b),N=this._lContainer;!function wA(u,m,b,y){const x=10+y,I=b.length;y>0&&(b[x-1][4]=m),y0)y.push(N[ie/2]);else{const We=I[ie+1],lt=m[-ge];for(let Tt=10;Tt{class u{constructor(b){this.appInits=b,this.resolve=jc,this.reject=jc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,x)=>{this.resolve=y,this.reject=x})}runInitializers(){if(this.initialized)return;const b=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let x=0;x{I.subscribe({complete:ie,error:ge})});b.push(N)}}Promise.all(b).then(()=>{y()}).catch(x=>{this.reject(x)}),0===b.length&&y(),this.initialized=!0}}return u.\u0275fac=function(b){return new(b||u)(Pi($g,8))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const qg=new ni("AppId",{providedIn:"root",factory:function Qg(){return`${hh()}${hh()}${hh()}`}});function hh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Kg=new ni("Platform Initializer"),XE=new ni("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Xg=new ni("appBootstrapListener"),eT=new ni("AnimationModuleType");let tT=(()=>{class u{log(b){console.log(b)}warn(b){console.warn(b)}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();const Zc=new ni("LocaleId",{providedIn:"root",factory:()=>Ql(Zc,be.Optional|be.SkipSelf)||function nT(){return typeof $localize<"u"&&$localize.locale||Zs}()}),iT=new ni("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class rT{constructor(m,b){this.ngModuleFactory=m,this.componentFactories=b}}let aT=(()=>{class u{compileModuleSync(b){return new Ku(b)}compileModuleAsync(b){return Promise.resolve(this.compileModuleSync(b))}compileModuleAndAllComponentsSync(b){const y=this.compileModuleSync(b),I=qa(jt(b).declarations).reduce((N,ie)=>{const ge=Re(ie);return ge&&N.push(new Sl(ge)),N},[]);return new rT(y,I)}compileModuleAndAllComponentsAsync(b){return Promise.resolve(this.compileModuleAndAllComponentsSync(b))}clearCache(){}clearCacheFor(b){}getModuleId(b){}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const lT=(()=>Promise.resolve(0))();function ph(u){typeof Zone>"u"?lT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class kr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ma(!1),this.onMicrotaskEmpty=new Ma(!1),this.onStable=new Ma(!1),this.onError=new Ma(!1),typeof Zone>"u")throw new te(908,!1);Zone.assertZonePatched();const x=this;if(x._nesting=0,x._outer=x._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const I=Zone.AsyncStackTaggingZoneSpec;x._inner=x._inner.fork(new I("Angular"))}Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!y&&b,x.shouldCoalesceRunChangeDetection=y,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function cT(){let u=r.requestAnimationFrame,m=r.cancelAnimationFrame;if(typeof Zone<"u"&&u&&m){const b=u[Zone.__symbol__("OriginalDelegate")];b&&(u=b);const y=m[Zone.__symbol__("OriginalDelegate")];y&&(m=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function hT(u){const m=()=>{!function uT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(r,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,mh(u),u.isCheckStableRunning=!0,fh(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),mh(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(b,y,x,I,N,ie)=>{try{return n_(u),b.invokeTask(x,I,N,ie)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===I.type||u.shouldCoalesceRunChangeDetection)&&m(),i_(u)}},onInvoke:(b,y,x,I,N,ie,ge)=>{try{return n_(u),b.invoke(x,I,N,ie,ge)}finally{u.shouldCoalesceRunChangeDetection&&m(),i_(u)}},onHasTask:(b,y,x,I)=>{b.hasTask(x,I),y===x&&("microTask"==I.change?(u._hasPendingMicrotasks=I.microTask,mh(u),fh(u)):"macroTask"==I.change&&(u.hasPendingMacrotasks=I.macroTask))},onHandleError:(b,y,x,I)=>(b.handleError(x,I),u.runOutsideAngular(()=>u.onError.emit(I)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!kr.isInAngularZone())throw new te(909,!1)}static assertNotInAngularZone(){if(kr.isInAngularZone())throw new te(909,!1)}run(m,b,y){return this._inner.run(m,b,y)}runTask(m,b,y,x){const I=this._inner,N=I.scheduleEventTask("NgZoneEvent: "+x,m,dT,jc,jc);try{return I.runTask(N,b,y)}finally{I.cancelTask(N)}}runGuarded(m,b,y){return this._inner.runGuarded(m,b,y)}runOutsideAngular(m){return this._outer.run(m)}}const dT={};function fh(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function mh(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function n_(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function i_(u){u._nesting--,fh(u)}class pT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ma,this.onMicrotaskEmpty=new Ma,this.onStable=new Ma,this.onError=new Ma}run(m,b,y){return m.apply(b,y)}runGuarded(m,b,y){return m.apply(b,y)}runOutsideAngular(m){return m()}runTask(m,b,y,x){return m.apply(b,y)}}const r_=new ni(""),a_=new ni("");let gh,fT=(()=>{class u{constructor(b,y,x){this._ngZone=b,this.registry=y,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,gh||(function mT(u){gh=u}(x),x.addToWindow(y)),this._watchAngularEvents(),b.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{kr.assertNotInAngularZone(),ph(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ph(()=>{for(;0!==this._callbacks.length;){let b=this._callbacks.pop();clearTimeout(b.timeoutId),b.doneCb(this._didWork)}this._didWork=!1});else{let b=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(b)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(b=>({source:b.source,creationLocation:b.creationLocation,data:b.data})):[]}addCallback(b,y,x){let I=-1;y&&y>0&&(I=setTimeout(()=>{this._callbacks=this._callbacks.filter(N=>N.timeoutId!==I),b(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:b,timeoutId:I,updateCb:x})}whenStable(b,y,x){if(x&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(b,y,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(b){this.registry.registerApplication(b,this)}unregisterApplication(b){this.registry.unregisterApplication(b)}findProviders(b,y,x){return[]}}return u.\u0275fac=function(b){return new(b||u)(Pi(kr),Pi(o_),Pi(a_))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac}),u})(),o_=(()=>{class u{constructor(){this._applications=new Map}registerApplication(b,y){this._applications.set(b,y)}unregisterApplication(b){this._applications.delete(b)}unregisterAllApplications(){this._applications.clear()}getTestability(b){return this._applications.get(b)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(b,y=!0){var x,I;return null!==(x=null===(I=gh)||void 0===I?void 0:I.findTestabilityInTree(this,b,y))&&void 0!==x?x:null}}return u.\u0275fac=function(b){return new(b||u)},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})(),vo=null;const s_=new ni("AllowMultipleToken"),_h=new ni("PlatformDestroyListeners");class AT{constructor(m,b){this.name=m,this.token=b}}function c_(u,m,b=[]){const y=`Platform: ${m}`,x=new ni(y);return(I=[])=>{let N=Ah();if(!N||N.injector.get(s_,!1)){const ie=[...b,...I,{provide:x,useValue:!0}];u?u(ie):function CT(u){if(vo&&!vo.get(s_,!1))throw new te(400,!1);vo=u;const m=u.get(u_);(function l_(u){const m=u.get(Kg,null);m&&m.forEach(b=>b())})(u)}(function d_(u=[],m){return Jo.create({name:m,providers:[{provide:Ed,useValue:"platform"},{provide:_h,useValue:new Set([()=>vo=null])},...u]})}(ie,y))}return function vT(u){const m=Ah();if(!m)throw new te(401,!1);return m}()}}function Ah(){var u,m;return null!==(u=null===(m=vo)||void 0===m?void 0:m.get(u_))&&void 0!==u?u:null}let u_=(()=>{class u{constructor(b){this._injector=b,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(b,y){const x=function ET(u,m){let b;return b="noop"===u?new pT:("zone.js"===u?void 0:u)||new kr(m),b}(y?.ngZone,function h_(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!u||!u.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!u||!u.ngZoneRunCoalescing)||!1}}(y)),I=[{provide:kr,useValue:x}];return x.run(()=>{const N=Jo.create({providers:I,parent:this.injector,name:b.moduleType.name}),ie=b.create(N),ge=ie.injector.get(Tl,null);if(!ge)throw new te(402,!1);return x.runOutsideAngular(()=>{const We=x.onError.subscribe({next:lt=>{ge.handleError(lt)}});ie.onDestroy(()=>{Wc(this._modules,ie),We.unsubscribe()})}),function p_(u,m,b){try{const y=b();return Iu(y)?y.catch(x=>{throw m.runOutsideAngular(()=>u.handleError(x)),x}):y}catch(y){throw m.runOutsideAngular(()=>u.handleError(y)),y}}(ge,x,()=>{const We=ie.injector.get(Gc);return We.runInitializers(),We.donePromise.then(()=>(function wm(u){R(u,"Expected localeId to be defined"),"string"==typeof u&&(ym=u.toLowerCase().replace(/_/g,"-"))}(ie.injector.get(Zc,Zs)||Zs),this._moduleDoBootstrap(ie),ie))})})}bootstrapModule(b,y=[]){const x=f_({},y);return function gT(u,m,b){const y=new Ku(b);return Promise.resolve(y)}(0,0,b).then(I=>this.bootstrapModuleFactory(I,x))}_moduleDoBootstrap(b){const y=b.injector.get(zc);if(b._bootstrapComponents.length>0)b._bootstrapComponents.forEach(x=>y.bootstrap(x));else{if(!b.instance.ngDoBootstrap)throw new te(403,!1);b.instance.ngDoBootstrap(y)}this._modules.push(b)}onDestroy(b){this._destroyListeners.push(b)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new te(404,!1);this._modules.slice().forEach(y=>y.destroy()),this._destroyListeners.forEach(y=>y());const b=this._injector.get(_h,null);b&&(b.forEach(y=>y()),b.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(b){return new(b||u)(Pi(Jo))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"platform"}),u})();function f_(u,m){return Array.isArray(m)?m.reduce(f_,u):{...u,...m}}let zc=(()=>{class u{constructor(b,y,x){this._zone=b,this._injector=y,this._exceptionHandler=x,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const I=new A.y(ie=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{ie.next(this._stable),ie.complete()})}),N=new A.y(ie=>{let ge;this._zone.runOutsideAngular(()=>{ge=this._zone.onStable.subscribe(()=>{kr.assertNotInAngularZone(),ph(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,ie.next(!0))})})});const We=this._zone.onUnstable.subscribe(()=>{kr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{ie.next(!1)}))});return()=>{ge.unsubscribe(),We.unsubscribe()}});this.isStable=(0,w.T)(I,N.pipe((0,g.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(b,y){const x=b instanceof Uh;if(!this._injector.get(Gc).done)throw!x&&Js(b),new te(405,false);let N;N=x?b:this._injector.get(vl).resolveComponentFactory(b),this.componentTypes.push(N.componentType);const ie=function _T(u){return u.isBoundToModule}(N)?void 0:this._injector.get(Ws),We=N.create(Jo.NULL,[],y||N.selector,ie),lt=We.location.nativeElement,Tt=We.injector.get(r_,null);return Tt?.registerApplication(lt),We.onDestroy(()=>{this.detachView(We.hostView),Wc(this.components,We),Tt?.unregisterApplication(lt)}),this._loadComponent(We),We}tick(){if(this._runningTick)throw new te(101,!1);try{this._runningTick=!0;for(let b of this._views)b.detectChanges()}catch(b){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(b))}finally{this._runningTick=!1}}attachView(b){const y=b;this._views.push(y),y.attachToAppRef(this)}detachView(b){const y=b;Wc(this._views,y),y.detachFromAppRef()}_loadComponent(b){this.attachView(b.hostView),this.tick(),this.components.push(b),this._injector.get(Xg,[]).concat(this._bootstrapListeners).forEach(x=>x(b))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(b=>b()),this._views.slice().forEach(b=>b.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(b){return this._destroyListeners.push(b),()=>Wc(this._destroyListeners,b)}destroy(){if(this._destroyed)throw new te(406,!1);const b=this._injector;b.destroy&&!b.destroyed&&b.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return u.\u0275fac=function(b){return new(b||u)(Pi(kr),Pi(Wo),Pi(Tl))},u.\u0275prov=Oe({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Wc(u,m){const b=u.indexOf(m);b>-1&&u.splice(b,1)}let g_=!0;function yT(){g_=!1}let wT=(()=>{class u{}return u.__NG_ELEMENT_ID__=MT,u})();function MT(u){return function xT(u,m,b){if(Fi(u)&&!b){const y=Ai(u.index,m);return new Dl(y,y)}return 47&u.type?new Dl(m[16],m):null}(hi(),rn(),16==(16&u))}class v_{constructor(){}supports(m){return Il(m)}create(m){return new OT(m)}}const RT=(u,m)=>m;class OT{constructor(m){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=m||RT}forEachItem(m){let b;for(b=this._itHead;null!==b;b=b._next)m(b)}forEachOperation(m){let b=this._itHead,y=this._removalsHead,x=0,I=null;for(;b||y;){const N=!y||b&&b.currentIndex{N=this._trackByFn(x,ie),null!==b&&Object.is(b.trackById,N)?(y&&(b=this._verifyReinsertion(b,ie,N,x)),Object.is(b.item,ie)||this._addIdentityChange(b,ie)):(b=this._mismatch(b,ie,N,x),y=!0),b=b._next,x++}),this.length=x;return this._truncate(b),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,b,y,x){let I;return null===m?I=this._itTail:(I=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(m.item,b)||this._addIdentityChange(m,b),this._reinsertAfter(m,I,x)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(y,x))?(Object.is(m.item,b)||this._addIdentityChange(m,b),this._moveAfter(m,I,x)):m=this._addAfter(new HT(b,y),I,x),m}_verifyReinsertion(m,b,y,x){let I=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==I?m=this._reinsertAfter(I,m._prev,x):m.currentIndex!=x&&(m.currentIndex=x,this._addToMoves(m,x)),m}_truncate(m){for(;null!==m;){const b=m._next;this._addToRemovals(this._unlink(m)),m=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,b,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const x=m._prevRemoved,I=m._nextRemoved;return null===x?this._removalsHead=I:x._nextRemoved=I,null===I?this._removalsTail=x:I._prevRemoved=x,this._insertAfter(m,b,y),this._addToMoves(m,y),m}_moveAfter(m,b,y){return this._unlink(m),this._insertAfter(m,b,y),this._addToMoves(m,y),m}_addAfter(m,b,y){return this._insertAfter(m,b,y),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,b,y){const x=null===b?this._itHead:b._next;return m._next=x,m._prev=b,null===x?this._itTail=m:x._prev=m,null===b?this._itHead=m:b._next=m,null===this._linkedRecords&&(this._linkedRecords=new E_),this._linkedRecords.put(m),m.currentIndex=y,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const b=m._prev,y=m._next;return null===b?this._itHead=y:b._next=y,null===y?this._itTail=b:y._prev=b,m}_addToMoves(m,b){return m.previousIndex===b||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new E_),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,b){return m.item=b,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class HT{constructor(m,b){this.item=m,this.trackById=b,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class LT{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,b){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===b||b<=y.currentIndex)&&Object.is(y.trackById,m))return y;return null}remove(m){const b=m._prevDup,y=m._nextDup;return null===b?this._head=y:b._nextDup=y,null===y?this._tail=b:y._prevDup=b,null===this._head}}class E_{constructor(){this.map=new Map}put(m){const b=m.trackById;let y=this.map.get(b);y||(y=new LT,this.map.set(b,y)),y.add(m)}get(m,b){const x=this.map.get(m);return x?x.get(m,b):null}remove(m){const b=m.trackById;return this.map.get(b).remove(m)&&this.map.delete(b),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function T_(u,m,b){const y=u.previousIndex;if(null===y)return y;let x=0;return b&&y{if(b&&b.key===x)this._maybeAddToChanges(b,y),this._appendAfter=b,b=b._next;else{const I=this._getOrCreateRecordForKey(x,y);b=this._insertBeforeOrAppend(b,I)}}),b){b._prev&&(b._prev._next=null),this._removalsHead=b;for(let y=b;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,b){if(m){const y=m._prev;return b._next=m,b._prev=y,m._prev=b,y&&(y._next=b),m===this._mapHead&&(this._mapHead=b),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b,this._appendAfter=b,null}_getOrCreateRecordForKey(m,b){if(this._records.has(m)){const x=this._records.get(m);this._maybeAddToChanges(x,b);const I=x._prev,N=x._next;return I&&(I._next=N),N&&(N._prev=I),x._next=null,x._prev=null,x}const y=new NT(m);return this._records.set(m,y),y.currentValue=b,this._addToAdditions(y),y}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,b){Object.is(b,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=b,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,b){m instanceof Map?m.forEach(b):Object.keys(m).forEach(y=>b(m[y],y))}}class NT{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function w_(){return new Th([new v_])}let Th=(()=>{class u{constructor(b){this.factories=b}static create(b,y){if(null!=y){const x=y.factories.slice();b=b.concat(x)}return new u(b)}static extend(b){return{provide:u,useFactory:y=>u.create(b,y||w_()),deps:[[u,new No,new Bo]]}}find(b){const y=this.factories.find(x=>x.supports(b));if(null!=y)return y;throw new te(901,!1)}}return u.\u0275prov=Oe({token:u,providedIn:"root",factory:w_}),u})();function M_(){return new yh([new y_])}let yh=(()=>{class u{constructor(b){this.factories=b}static create(b,y){if(y){const x=y.factories.slice();b=b.concat(x)}return new u(b)}static extend(b){return{provide:u,useFactory:y=>u.create(b,y||M_()),deps:[[u,new No,new Bo]]}}find(b){const y=this.factories.find(x=>x.supports(b));if(y)return y;throw new te(901,!1)}}return u.\u0275prov=Oe({token:u,providedIn:"root",factory:M_}),u})();const FT=c_(null,"core",[]);let UT=(()=>{class u{constructor(b){}}return u.\u0275fac=function(b){return new(b||u)(Pi(zc))},u.\u0275mod=me({type:u}),u.\u0275inj=Xe({}),u})();function jT(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}},24006:(Ye,pe,h)=>{"use strict";h.d(pe,{Cf:()=>le,EJ:()=>Ar,F:()=>li,Fj:()=>Q,JJ:()=>Ue,JL:()=>P,JU:()=>E,Kr:()=>Ki,NI:()=>Hn,On:()=>rr,Q7:()=>er,QS:()=>wr,UX:()=>qn,YN:()=>lr,Zs:()=>Ai,_Y:()=>wt,a5:()=>re,c5:()=>Cn,kI:()=>v,oH:()=>zn,p4:()=>Ji,sg:()=>Ei,u:()=>ar,u5:()=>Ci,wV:()=>nt});var e=h(94650),c=h(36895),A=h(32076),w=h(4128),g=h(54004);let C=(()=>{class Ve{constructor(Ae,ht){this._renderer=Ae,this._elementRef=ht,this.onChange=Kt=>{},this.onTouched=()=>{}}setProperty(Ae,ht){this._renderer.setProperty(this._elementRef.nativeElement,Ae,ht)}registerOnTouched(Ae){this.onTouched=Ae}registerOnChange(Ae){this.onChange=Ae}setDisabledState(Ae){this.setProperty("disabled",Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ve.\u0275dir=e.lG2({type:Ve}),Ve})(),T=(()=>{class Ve extends C{}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,features:[e.qOj]}),Ve})();const E=new e.OlP("NgValueAccessor"),_={provide:E,useExisting:(0,e.Gpc)(()=>Q),multi:!0},z=new e.OlP("CompositionEventMode");let Q=(()=>{class Ve extends C{constructor(Ae,ht,Kt){super(Ae,ht),this._compositionMode=Kt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function V(){const Ve=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(Ve.toLowerCase())}())}writeValue(Ae){this.setProperty("value",Ae??"")}_handleInput(Ae){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ae)}_compositionStart(){this._composing=!0}_compositionEnd(Ae){this._composing=!1,this._compositionMode&&this.onChange(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(z,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("input",function(gn){return ht._handleInput(gn.target.value)})("blur",function(){return ht.onTouched()})("compositionstart",function(){return ht._compositionStart()})("compositionend",function(gn){return ht._compositionEnd(gn.target.value)})},features:[e._Bn([_]),e.qOj]}),Ve})();function oe(Ve){return null==Ve||("string"==typeof Ve||Array.isArray(Ve))&&0===Ve.length}function ee(Ve){return null!=Ve&&"number"==typeof Ve.length}const le=new e.OlP("NgValidators"),de=new e.OlP("NgAsyncValidators"),Te=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class v{static min(De){return function L(Ve){return De=>{if(oe(De.value)||oe(Ve))return null;const Ae=parseFloat(De.value);return!isNaN(Ae)&&Ae{if(oe(De.value)||oe(Ve))return null;const Ae=parseFloat(De.value);return!isNaN(Ae)&&Ae>Ve?{max:{max:Ve,actual:De.value}}:null}}(De)}static required(De){return W(De)}static requiredTrue(De){return q(De)}static email(De){return function ue(Ve){return oe(Ve.value)||Te.test(Ve.value)?null:{email:!0}}(De)}static minLength(De){return function ye(Ve){return De=>oe(De.value)||!ee(De.value)?null:De.value.lengthee(De.value)&&De.value.length>Ve?{maxlength:{requiredLength:Ve,actualLength:De.value.length}}:null}(De)}static pattern(De){return we(De)}static nullValidator(De){return null}static compose(De){return G(De)}static composeAsync(De){return $(De)}}function W(Ve){return oe(Ve.value)?{required:!0}:null}function q(Ve){return!0===Ve.value?null:{required:!0}}function we(Ve){if(!Ve)return Ge;let De,Ae;return"string"==typeof Ve?(Ae="","^"!==Ve.charAt(0)&&(Ae+="^"),Ae+=Ve,"$"!==Ve.charAt(Ve.length-1)&&(Ae+="$"),De=new RegExp(Ae)):(Ae=Ve.toString(),De=Ve),ht=>{if(oe(ht.value))return null;const Kt=ht.value;return De.test(Kt)?null:{pattern:{requiredPattern:Ae,actualValue:Kt}}}}function Ge(Ve){return null}function ce(Ve){return null!=Ve}function Ze(Ve){return(0,e.QGY)(Ve)?(0,A.D)(Ve):Ve}function he(Ve){let De={};return Ve.forEach(Ae=>{De=null!=Ae?{...De,...Ae}:De}),0===Object.keys(De).length?null:De}function xe(Ve,De){return De.map(Ae=>Ae(Ve))}function R(Ve){return Ve.map(De=>function j(Ve){return!Ve.validate}(De)?De:Ae=>De.validate(Ae))}function G(Ve){if(!Ve)return null;const De=Ve.filter(ce);return 0==De.length?null:function(Ae){return he(xe(Ae,De))}}function se(Ve){return null!=Ve?G(R(Ve)):null}function $(Ve){if(!Ve)return null;const De=Ve.filter(ce);return 0==De.length?null:function(Ae){const ht=xe(Ae,De).map(Ze);return(0,w.D)(ht).pipe((0,g.U)(he))}}function Ee(Ve){return null!=Ve?$(R(Ve)):null}function Oe(Ve,De){return null===Ve?[De]:Array.isArray(Ve)?[...Ve,De]:[Ve,De]}function ct(Ve){return Ve._rawValidators}function Xe(Ve){return Ve._rawAsyncValidators}function _t(Ve){return Ve?Array.isArray(Ve)?Ve:[Ve]:[]}function Je(Ve,De){return Array.isArray(Ve)?Ve.includes(De):Ve===De}function gt(Ve,De){const Ae=_t(De);return _t(Ve).forEach(Kt=>{Je(Ae,Kt)||Ae.push(Kt)}),Ae}function Y(Ve,De){return _t(De).filter(Ae=>!Je(Ve,Ae))}class Ce{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(De){this._rawValidators=De||[],this._composedValidatorFn=se(this._rawValidators)}_setAsyncValidators(De){this._rawAsyncValidators=De||[],this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(De){this._onDestroyCallbacks.push(De)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(De=>De()),this._onDestroyCallbacks=[]}reset(De){this.control&&this.control.reset(De)}hasError(De,Ae){return!!this.control&&this.control.hasError(De,Ae)}getError(De,Ae){return this.control?this.control.getError(De,Ae):null}}class ae extends Ce{get formDirective(){return null}get path(){return null}}class re extends Ce{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Se{constructor(De){this._cd=De}get isTouched(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.touched)}get isUntouched(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.untouched)}get isPristine(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.pristine)}get isDirty(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.dirty)}get isValid(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.valid)}get isInvalid(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.invalid)}get isPending(){var De,Ae;return!(null===(De=this._cd)||void 0===De||null===(Ae=De.control)||void 0===Ae||!Ae.pending)}get isSubmitted(){var De;return!(null===(De=this._cd)||void 0===De||!De.submitted)}}let Ue=(()=>{class Ve extends Se{constructor(Ae){super(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(re,2))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ae,ht){2&Ae&&e.ekj("ng-untouched",ht.isUntouched)("ng-touched",ht.isTouched)("ng-pristine",ht.isPristine)("ng-dirty",ht.isDirty)("ng-valid",ht.isValid)("ng-invalid",ht.isInvalid)("ng-pending",ht.isPending)},features:[e.qOj]}),Ve})(),P=(()=>{class Ve extends Se{constructor(Ae){super(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(ae,10))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Ae,ht){2&Ae&&e.ekj("ng-untouched",ht.isUntouched)("ng-touched",ht.isTouched)("ng-pristine",ht.isPristine)("ng-dirty",ht.isDirty)("ng-valid",ht.isValid)("ng-invalid",ht.isInvalid)("ng-pending",ht.isPending)("ng-submitted",ht.isSubmitted)},features:[e.qOj]}),Ve})();const ft="VALID",je="INVALID",Pe="PENDING",Qe="DISABLED";function qe(Ve){return(ze(Ve)?Ve.validators:Ve)||null}function Be(Ve){return Array.isArray(Ve)?se(Ve):Ve||null}function me(Ve,De){return(ze(De)?De.asyncValidators:Ve)||null}function ve(Ve){return Array.isArray(Ve)?Ee(Ve):Ve||null}function ze(Ve){return null!=Ve&&!Array.isArray(Ve)&&"object"==typeof Ve}function tt(Ve,De,Ae){const ht=Ve.controls;if(!(De?Object.keys(ht):ht).length)throw new e.vHH(1e3,"");if(!ht[Ae])throw new e.vHH(1001,"")}function at(Ve,De,Ae){Ve._forEachChild((ht,Kt)=>{if(void 0===Ae[Kt])throw new e.vHH(1002,"")})}class Re{constructor(De,Ae){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=De,this._rawAsyncValidators=Ae,this._composedValidatorFn=Be(this._rawValidators),this._composedAsyncValidatorFn=ve(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(De){this._rawValidators=this._composedValidatorFn=De}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(De){this._rawAsyncValidators=this._composedAsyncValidatorFn=De}get parent(){return this._parent}get valid(){return this.status===ft}get invalid(){return this.status===je}get pending(){return this.status==Pe}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(De){this._rawValidators=De,this._composedValidatorFn=Be(De)}setAsyncValidators(De){this._rawAsyncValidators=De,this._composedAsyncValidatorFn=ve(De)}addValidators(De){this.setValidators(gt(De,this._rawValidators))}addAsyncValidators(De){this.setAsyncValidators(gt(De,this._rawAsyncValidators))}removeValidators(De){this.setValidators(Y(De,this._rawValidators))}removeAsyncValidators(De){this.setAsyncValidators(Y(De,this._rawAsyncValidators))}hasValidator(De){return Je(this._rawValidators,De)}hasAsyncValidator(De){return Je(this._rawAsyncValidators,De)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(De={}){this.touched=!0,this._parent&&!De.onlySelf&&this._parent.markAsTouched(De)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(De=>De.markAllAsTouched())}markAsUntouched(De={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ae=>{Ae.markAsUntouched({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updateTouched(De)}markAsDirty(De={}){this.pristine=!1,this._parent&&!De.onlySelf&&this._parent.markAsDirty(De)}markAsPristine(De={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ae=>{Ae.markAsPristine({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}markAsPending(De={}){this.status=Pe,!1!==De.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!De.onlySelf&&this._parent.markAsPending(De)}disable(De={}){const Ae=this._parentMarkedDirty(De.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(ht=>{ht.disable({...De,onlySelf:!0})}),this._updateValue(),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...De,skipPristineCheck:Ae}),this._onDisabledChange.forEach(ht=>ht(!0))}enable(De={}){const Ae=this._parentMarkedDirty(De.onlySelf);this.status=ft,this._forEachChild(ht=>{ht.enable({...De,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent}),this._updateAncestors({...De,skipPristineCheck:Ae}),this._onDisabledChange.forEach(ht=>ht(!1))}_updateAncestors(De){this._parent&&!De.onlySelf&&(this._parent.updateValueAndValidity(De),De.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(De){this._parent=De}getRawValue(){return this.value}updateValueAndValidity(De={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ft||this.status===Pe)&&this._runAsyncValidator(De.emitEvent)),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!De.onlySelf&&this._parent.updateValueAndValidity(De)}_updateTreeValidity(De={emitEvent:!0}){this._forEachChild(Ae=>Ae._updateTreeValidity(De)),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:ft}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(De){if(this.asyncValidator){this.status=Pe,this._hasOwnPendingAsyncValidator=!0;const Ae=Ze(this.asyncValidator(this));this._asyncValidationSubscription=Ae.subscribe(ht=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ht,{emitEvent:De})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(De,Ae={}){this.errors=De,this._updateControlsErrors(!1!==Ae.emitEvent)}get(De){let Ae=De;return null==Ae||(Array.isArray(Ae)||(Ae=Ae.split(".")),0===Ae.length)?null:Ae.reduce((ht,Kt)=>ht&&ht._find(Kt),this)}getError(De,Ae){const ht=Ae?this.get(Ae):this;return ht&&ht.errors?ht.errors[De]:null}hasError(De,Ae){return!!this.getError(De,Ae)}get root(){let De=this;for(;De._parent;)De=De._parent;return De}_updateControlsErrors(De){this.status=this._calculateStatus(),De&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(De)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?je:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Pe)?Pe:this._anyControlsHaveStatus(je)?je:ft}_anyControlsHaveStatus(De){return this._anyControls(Ae=>Ae.status===De)}_anyControlsDirty(){return this._anyControls(De=>De.dirty)}_anyControlsTouched(){return this._anyControls(De=>De.touched)}_updatePristine(De={}){this.pristine=!this._anyControlsDirty(),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}_updateTouched(De={}){this.touched=this._anyControlsTouched(),this._parent&&!De.onlySelf&&this._parent._updateTouched(De)}_registerOnCollectionChange(De){this._onCollectionChange=De}_setUpdateStrategy(De){ze(De)&&null!=De.updateOn&&(this._updateOn=De.updateOn)}_parentMarkedDirty(De){return!De&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(De){return null}}class st extends Re{constructor(De,Ae,ht){super(qe(Ae),me(ht,Ae)),this.controls=De,this._initObservables(),this._setUpdateStrategy(Ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(De,Ae){return this.controls[De]?this.controls[De]:(this.controls[De]=Ae,Ae.setParent(this),Ae._registerOnCollectionChange(this._onCollectionChange),Ae)}addControl(De,Ae,ht={}){this.registerControl(De,Ae),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}removeControl(De,Ae={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}setControl(De,Ae,ht={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],Ae&&this.registerControl(De,Ae),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}contains(De){return this.controls.hasOwnProperty(De)&&this.controls[De].enabled}setValue(De,Ae={}){at(this,0,De),Object.keys(De).forEach(ht=>{tt(this,!0,ht),this.controls[ht].setValue(De[ht],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae)}patchValue(De,Ae={}){null!=De&&(Object.keys(De).forEach(ht=>{const Kt=this.controls[ht];Kt&&Kt.patchValue(De[ht],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae))}reset(De={},Ae={}){this._forEachChild((ht,Kt)=>{ht.reset(De[Kt],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this._updatePristine(Ae),this._updateTouched(Ae),this.updateValueAndValidity(Ae)}getRawValue(){return this._reduceChildren({},(De,Ae,ht)=>(De[ht]=Ae.getRawValue(),De))}_syncPendingControls(){let De=this._reduceChildren(!1,(Ae,ht)=>!!ht._syncPendingControls()||Ae);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){Object.keys(this.controls).forEach(Ae=>{const ht=this.controls[Ae];ht&&De(ht,Ae)})}_setUpControls(){this._forEachChild(De=>{De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(De){for(const[Ae,ht]of Object.entries(this.controls))if(this.contains(Ae)&&De(ht))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ae,ht,Kt)=>((ht.enabled||this.disabled)&&(Ae[Kt]=ht.value),Ae))}_reduceChildren(De,Ae){let ht=De;return this._forEachChild((Kt,gn)=>{ht=Ae(ht,Kt,gn)}),ht}_allControlsDisabled(){for(const De of Object.keys(this.controls))if(this.controls[De].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(De){return this.controls.hasOwnProperty(De)?this.controls[De]:null}}function sn(Ve,De){return[...De.path,Ve]}function mn(Ve,De){var Ae,ht;Ut(Ve,De),De.valueAccessor.writeValue(Ve.value),Ve.disabled&&(null===(Ae=(ht=De.valueAccessor).setDisabledState)||void 0===Ae||Ae.call(ht,!0)),function An(Ve,De){De.valueAccessor.registerOnChange(Ae=>{Ve._pendingValue=Ae,Ve._pendingChange=!0,Ve._pendingDirty=!0,"change"===Ve.updateOn&&$t(Ve,De)})}(Ve,De),function xt(Ve,De){const Ae=(ht,Kt)=>{De.valueAccessor.writeValue(ht),Kt&&De.viewToModelUpdate(ht)};Ve.registerOnChange(Ae),De._registerOnDestroy(()=>{Ve._unregisterOnChange(Ae)})}(Ve,De),function Dt(Ve,De){De.valueAccessor.registerOnTouched(()=>{Ve._pendingTouched=!0,"blur"===Ve.updateOn&&Ve._pendingChange&&$t(Ve,De),"submit"!==Ve.updateOn&&Ve.markAsTouched()})}(Ve,De),function Ct(Ve,De){if(De.valueAccessor.setDisabledState){const Ae=ht=>{De.valueAccessor.setDisabledState(ht)};Ve.registerOnDisabledChange(Ae),De._registerOnDestroy(()=>{Ve._unregisterOnDisabledChange(Ae)})}}(Ve,De)}function Nt(Ve,De,Ae=!0){const ht=()=>{};De.valueAccessor&&(De.valueAccessor.registerOnChange(ht),De.valueAccessor.registerOnTouched(ht)),Qt(Ve,De),Ve&&(De._invokeOnDestroyCallbacks(),Ve._registerOnCollectionChange(()=>{}))}function Rt(Ve,De){Ve.forEach(Ae=>{Ae.registerOnValidatorChange&&Ae.registerOnValidatorChange(De)})}function Ut(Ve,De){const Ae=ct(Ve);null!==De.validator?Ve.setValidators(Oe(Ae,De.validator)):"function"==typeof Ae&&Ve.setValidators([Ae]);const ht=Xe(Ve);null!==De.asyncValidator?Ve.setAsyncValidators(Oe(ht,De.asyncValidator)):"function"==typeof ht&&Ve.setAsyncValidators([ht]);const Kt=()=>Ve.updateValueAndValidity();Rt(De._rawValidators,Kt),Rt(De._rawAsyncValidators,Kt)}function Qt(Ve,De){let Ae=!1;if(null!==Ve){if(null!==De.validator){const Kt=ct(Ve);if(Array.isArray(Kt)&&Kt.length>0){const gn=Kt.filter(Qn=>Qn!==De.validator);gn.length!==Kt.length&&(Ae=!0,Ve.setValidators(gn))}}if(null!==De.asyncValidator){const Kt=Xe(Ve);if(Array.isArray(Kt)&&Kt.length>0){const gn=Kt.filter(Qn=>Qn!==De.asyncValidator);gn.length!==Kt.length&&(Ae=!0,Ve.setAsyncValidators(gn))}}}const ht=()=>{};return Rt(De._rawValidators,ht),Rt(De._rawAsyncValidators,ht),Ae}function $t(Ve,De){Ve._pendingDirty&&Ve.markAsDirty(),Ve.setValue(Ve._pendingValue,{emitModelToViewChange:!1}),De.viewToModelUpdate(Ve._pendingValue),Ve._pendingChange=!1}function rt(Ve,De){Ut(Ve,De)}function ke(Ve,De){if(!Ve.hasOwnProperty("model"))return!1;const Ae=Ve.model;return!!Ae.isFirstChange()||!Object.is(De,Ae.currentValue)}function St(Ve,De){Ve._syncPendingControls(),De.forEach(Ae=>{const ht=Ae.control;"submit"===ht.updateOn&&ht._pendingChange&&(Ae.viewToModelUpdate(ht._pendingValue),ht._pendingChange=!1)})}function tn(Ve,De){if(!De)return null;let Ae,ht,Kt;return Array.isArray(De),De.forEach(gn=>{gn.constructor===Q?Ae=gn:function mt(Ve){return Object.getPrototypeOf(Ve.constructor)===T}(gn)?ht=gn:Kt=gn}),Kt||ht||Ae||null}const Ln={provide:ae,useExisting:(0,e.Gpc)(()=>li)},Kn=(()=>Promise.resolve(null))();let li=(()=>{class Ve extends ae{constructor(Ae,ht){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new st({},se(Ae),Ee(ht))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path);Ae.control=ht.registerControl(Ae.name,Ae.control),mn(Ae.control,Ae),Ae.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ae)})}getControl(Ae){return this.form.get(Ae.path)}removeControl(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path);ht&&ht.removeControl(Ae.name),this._directives.delete(Ae)})}addFormGroup(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path),Kt=new st({});rt(Kt,Ae),ht.registerControl(Ae.name,Kt),Kt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ae){Kn.then(()=>{const ht=this._findContainer(Ae.path);ht&&ht.removeControl(Ae.name)})}getFormGroup(Ae){return this.form.get(Ae.path)}updateModel(Ae,ht){Kn.then(()=>{this.form.get(Ae.path).setValue(ht)})}setValue(Ae){this.control.setValue(Ae)}onSubmit(Ae){return this.submitted=!0,St(this.form,this._directives),this.ngSubmit.emit(Ae),!1}onReset(){this.resetForm()}resetForm(Ae){this.form.reset(Ae),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ae){return Ae.pop(),Ae.length?this.form.get(Ae):this.form}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(le,10),e.Y36(de,10))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("submit",function(gn){return ht.onSubmit(gn)})("reset",function(){return ht.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ln]),e.qOj]}),Ve})();function ci(Ve,De){const Ae=Ve.indexOf(De);Ae>-1&&Ve.splice(Ae,1)}function Wn(Ve){return"object"==typeof Ve&&null!==Ve&&2===Object.keys(Ve).length&&"value"in Ve&&"disabled"in Ve}const Hn=class extends Re{constructor(De=null,Ae,ht){super(qe(Ae),me(ht,Ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(De),this._setUpdateStrategy(Ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ze(Ae)&&(Ae.nonNullable||Ae.initialValueIsDefault)&&(this.defaultValue=Wn(De)?De.value:De)}setValue(De,Ae={}){this.value=this._pendingValue=De,this._onChange.length&&!1!==Ae.emitModelToViewChange&&this._onChange.forEach(ht=>ht(this.value,!1!==Ae.emitViewToModelChange)),this.updateValueAndValidity(Ae)}patchValue(De,Ae={}){this.setValue(De,Ae)}reset(De=this.defaultValue,Ae={}){this._applyFormState(De),this.markAsPristine(Ae),this.markAsUntouched(Ae),this.setValue(this.value,Ae),this._pendingChange=!1}_updateValue(){}_anyControls(De){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(De){this._onChange.push(De)}_unregisterOnChange(De){ci(this._onChange,De)}registerOnDisabledChange(De){this._onDisabledChange.push(De)}_unregisterOnDisabledChange(De){ci(this._onDisabledChange,De)}_forEachChild(De){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(De){Wn(De)?(this.value=this._pendingValue=De.value,De.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=De}},Ji=Hn,ir={provide:re,useExisting:(0,e.Gpc)(()=>rr)},fr=(()=>Promise.resolve(null))();let rr=(()=>{class Ve extends re{constructor(Ae,ht,Kt,gn,Qn){super(),this._changeDetectorRef=Qn,this.control=new Hn,this._registered=!1,this.update=new e.vpe,this._parent=Ae,this._setValidators(ht),this._setAsyncValidators(Kt),this.valueAccessor=tn(0,gn)}ngOnChanges(Ae){if(this._checkForErrors(),!this._registered||"name"in Ae){if(this._registered&&(this._checkName(),this.formDirective)){const ht=Ae.name.previousValue;this.formDirective.removeControl({name:ht,path:this._getPath(ht)})}this._setUpControl()}"isDisabled"in Ae&&this._updateDisabled(Ae),ke(Ae,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Ae){this.viewModel=Ae,this.update.emit(Ae)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){mn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(Ae){fr.then(()=>{var ht;this.control.setValue(Ae,{emitViewToModelChange:!1}),null===(ht=this._changeDetectorRef)||void 0===ht||ht.markForCheck()})}_updateDisabled(Ae){const ht=Ae.isDisabled.currentValue,Kt=0!==ht&&(0,e.D6c)(ht);fr.then(()=>{var gn;Kt&&!this.control.disabled?this.control.disable():!Kt&&this.control.disabled&&this.control.enable(),null===(gn=this._changeDetectorRef)||void 0===gn||gn.markForCheck()})}_getPath(Ae){return this._parent?sn(Ae,this._parent):[Ae]}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(ae,9),e.Y36(le,10),e.Y36(de,10),e.Y36(E,10),e.Y36(e.sBO,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([ir]),e.qOj,e.TTD]}),Ve})(),wt=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ve})();const an={provide:E,useExisting:(0,e.Gpc)(()=>nt),multi:!0};let nt=(()=>{class Ve extends T{writeValue(Ae){this.setProperty("value",Ae??"")}registerOnChange(Ae){this.onChange=ht=>{Ae(""==ht?null:parseFloat(ht))}}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("input",function(gn){return ht.onChange(gn.target.value)})("blur",function(){return ht.onTouched()})},features:[e._Bn([an]),e.qOj]}),Ve})(),et=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({}),Ve})();const hn=new e.OlP("NgModelWithFormControlWarning"),wn={provide:re,useExisting:(0,e.Gpc)(()=>zn)};let zn=(()=>{class Ve extends re{constructor(Ae,ht,Kt,gn){super(),this._ngModelWarningConfig=gn,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(Ae),this._setAsyncValidators(ht),this.valueAccessor=tn(0,Kt)}set isDisabled(Ae){}ngOnChanges(Ae){if(this._isControlChanged(Ae)){const ht=Ae.form.previousValue;ht&&Nt(ht,this,!1),mn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ke(Ae,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ae){this.viewModel=Ae,this.update.emit(Ae)}_isControlChanged(Ae){return Ae.hasOwnProperty("form")}}return Ve._ngModelWarningSentOnce=!1,Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(le,10),e.Y36(de,10),e.Y36(E,10),e.Y36(hn,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([wn]),e.qOj,e.TTD]}),Ve})();const $n={provide:ae,useExisting:(0,e.Gpc)(()=>Ei)};let Ei=(()=>{class Ve extends ae{constructor(Ae,ht){super(),this.validators=Ae,this.asyncValidators=ht,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(Ae),this._setAsyncValidators(ht)}ngOnChanges(Ae){this._checkFormPresent(),Ae.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ae){const ht=this.form.get(Ae.path);return mn(ht,Ae),ht.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ae),ht}getControl(Ae){return this.form.get(Ae.path)}removeControl(Ae){Nt(Ae.control||null,Ae,!1),function En(Ve,De){const Ae=Ve.indexOf(De);Ae>-1&&Ve.splice(Ae,1)}(this.directives,Ae)}addFormGroup(Ae){this._setUpFormContainer(Ae)}removeFormGroup(Ae){this._cleanUpFormContainer(Ae)}getFormGroup(Ae){return this.form.get(Ae.path)}addFormArray(Ae){this._setUpFormContainer(Ae)}removeFormArray(Ae){this._cleanUpFormContainer(Ae)}getFormArray(Ae){return this.form.get(Ae.path)}updateModel(Ae,ht){this.form.get(Ae.path).setValue(ht)}onSubmit(Ae){return this.submitted=!0,St(this.form,this.directives),this.ngSubmit.emit(Ae),!1}onReset(){this.resetForm()}resetForm(Ae){this.form.reset(Ae),this.submitted=!1}_updateDomValue(){this.directives.forEach(Ae=>{const ht=Ae.control,Kt=this.form.get(Ae.path);ht!==Kt&&(Nt(ht||null,Ae),(Ve=>Ve instanceof Hn)(Kt)&&(mn(Kt,Ae),Ae.control=Kt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ae){const ht=this.form.get(Ae.path);rt(ht,Ae),ht.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ae){if(this.form){const ht=this.form.get(Ae.path);ht&&function vt(Ve,De){return Qt(Ve,De)}(ht,Ae)&&ht.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ut(this.form,this),this._oldForm&&Qt(this._oldForm,this)}_checkFormPresent(){}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(le,10),e.Y36(de,10))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formGroup",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("submit",function(gn){return ht.onSubmit(gn)})("reset",function(){return ht.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([$n]),e.qOj,e.TTD]}),Ve})();const gr={provide:re,useExisting:(0,e.Gpc)(()=>ar)};let ar=(()=>{class Ve extends re{constructor(Ae,ht,Kt,gn,Qn){super(),this._ngModelWarningConfig=Qn,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=Ae,this._setValidators(ht),this._setAsyncValidators(Kt),this.valueAccessor=tn(0,gn)}set isDisabled(Ae){}ngOnChanges(Ae){this._added||this._setUpControl(),ke(Ae,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ae){this.viewModel=Ae,this.update.emit(Ae)}get path(){return sn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return Ve._ngModelWarningSentOnce=!1,Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(ae,13),e.Y36(le,10),e.Y36(de,10),e.Y36(E,10),e.Y36(hn,8))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([gr]),e.qOj,e.TTD]}),Ve})();const or={provide:E,useExisting:(0,e.Gpc)(()=>Ar),multi:!0};function sr(Ve,De){return null==Ve?`${De}`:(De&&"object"==typeof De&&(De="Object"),`${Ve}: ${De}`.slice(0,50))}let Ar=(()=>{class Ve extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ae){this._compareWith=Ae}writeValue(Ae){this.value=Ae;const Kt=sr(this._getOptionId(Ae),Ae);this.setProperty("value",Kt)}registerOnChange(Ae){this.onChange=ht=>{this.value=this._getOptionValue(ht),Ae(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(Ae){for(const ht of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ht),Ae))return ht;return null}_getOptionValue(Ae){const ht=function _r(Ve){return Ve.split(":")[0]}(Ae);return this._optionMap.has(ht)?this._optionMap.get(ht):Ae}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Ae,ht){1&Ae&&e.NdJ("change",function(gn){return ht.onChange(gn.target.value)})("blur",function(){return ht.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([or]),e.qOj]}),Ve})(),lr=(()=>{class Ve{constructor(Ae,ht,Kt){this._element=Ae,this._renderer=ht,this._select=Kt,this._select&&(this.id=this._select._registerOption())}set ngValue(Ae){null!=this._select&&(this._select._optionMap.set(this.id,Ae),this._setElementValue(sr(this.id,Ae)),this._select.writeValue(this._select.value))}set value(Ae){this._setElementValue(Ae),this._select&&this._select.writeValue(this._select.value)}_setElementValue(Ae){this._renderer.setProperty(this._element.nativeElement,"value",Ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ar,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ve})();const Fr={provide:E,useExisting:(0,e.Gpc)(()=>Ur),multi:!0};function Yr(Ve,De){return null==Ve?`${De}`:("string"==typeof De&&(De=`'${De}'`),De&&"object"==typeof De&&(De="Object"),`${Ve}: ${De}`.slice(0,50))}let Ur=(()=>{class Ve extends T{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(Ae){this._compareWith=Ae}writeValue(Ae){let ht;if(this.value=Ae,Array.isArray(Ae)){const Kt=Ae.map(gn=>this._getOptionId(gn));ht=(gn,Qn)=>{gn._setSelected(Kt.indexOf(Qn.toString())>-1)}}else ht=(Kt,gn)=>{Kt._setSelected(!1)};this._optionMap.forEach(ht)}registerOnChange(Ae){this.onChange=ht=>{const Kt=[],gn=ht.selectedOptions;if(void 0!==gn){const Qn=gn;for(let Xn=0;Xn{class Ve{constructor(Ae,ht,Kt){this._element=Ae,this._renderer=ht,this._select=Kt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(Ae){null!=this._select&&(this._value=Ae,this._setElementValue(Yr(this.id,Ae)),this._select.writeValue(this._select.value))}set value(Ae){this._select?(this._value=Ae,this._setElementValue(Yr(this.id,Ae)),this._select.writeValue(this._select.value)):this._setElementValue(Ae)}_setElementValue(Ae){this._renderer.setProperty(this._element.nativeElement,"value",Ae)}_setSelected(Ae){this._renderer.setProperty(this._element.nativeElement,"selected",Ae)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ur,9))},Ve.\u0275dir=e.lG2({type:Ve,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ve})(),Jn=(()=>{class Ve{constructor(){this._validator=Ge}ngOnChanges(Ae){if(this.inputName in Ae){const ht=this.normalizeInput(Ae[this.inputName].currentValue);this._enabled=this.enabled(ht),this._validator=this._enabled?this.createValidator(ht):Ge,this._onChange&&this._onChange()}}validate(Ae){return this._validator(Ae)}registerOnValidatorChange(Ae){this._onChange=Ae}enabled(Ae){return null!=Ae}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275dir=e.lG2({type:Ve,features:[e.TTD]}),Ve})();const jr={provide:le,useExisting:(0,e.Gpc)(()=>er),multi:!0},ca={provide:le,useExisting:(0,e.Gpc)(()=>Ai),multi:!0};let er=(()=>{class Ve extends Jn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.D6c,this.createValidator=Ae=>W}enabled(Ae){return Ae}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Ae,ht){2&Ae&&e.uIk("required",ht._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([jr]),e.qOj]}),Ve})(),Ai=(()=>{class Ve extends er{constructor(){super(...arguments),this.createValidator=Ae=>q}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Ae,ht){2&Ae&&e.uIk("required",ht._enabled?"":null)},features:[e._Bn([ca]),e.qOj]}),Ve})();const Yt={provide:le,useExisting:(0,e.Gpc)(()=>Cn),multi:!0};let Cn=(()=>{class Ve extends Jn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=Ae=>Ae,this.createValidator=Ae=>we(Ae)}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275dir=e.lG2({type:Ve,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(Ae,ht){2&Ae&&e.uIk("pattern",ht._enabled?ht.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([Yt]),e.qOj]}),Ve})(),kn=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[et]}),Ve})(),Ci=(()=>{class Ve{}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[kn]}),Ve})(),qn=(()=>{class Ve{static withConfig(Ae){return{ngModule:Ve,providers:[{provide:hn,useValue:Ae.warnOnNgModelWithFormControl}]}}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275mod=e.oAB({type:Ve}),Ve.\u0275inj=e.cJS({imports:[kn]}),Ve})();class di extends Re{constructor(De,Ae,ht){super(qe(Ae),me(ht,Ae)),this.controls=De,this._initObservables(),this._setUpdateStrategy(Ae),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(De){return this.controls[this._adjustIndex(De)]}push(De,Ae={}){this.controls.push(De),this._registerControl(De),this.updateValueAndValidity({emitEvent:Ae.emitEvent}),this._onCollectionChange()}insert(De,Ae,ht={}){this.controls.splice(De,0,Ae),this._registerControl(Ae),this.updateValueAndValidity({emitEvent:ht.emitEvent})}removeAt(De,Ae={}){let ht=this._adjustIndex(De);ht<0&&(ht=0),this.controls[ht]&&this.controls[ht]._registerOnCollectionChange(()=>{}),this.controls.splice(ht,1),this.updateValueAndValidity({emitEvent:Ae.emitEvent})}setControl(De,Ae,ht={}){let Kt=this._adjustIndex(De);Kt<0&&(Kt=0),this.controls[Kt]&&this.controls[Kt]._registerOnCollectionChange(()=>{}),this.controls.splice(Kt,1),Ae&&(this.controls.splice(Kt,0,Ae),this._registerControl(Ae)),this.updateValueAndValidity({emitEvent:ht.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(De,Ae={}){at(this,0,De),De.forEach((ht,Kt)=>{tt(this,!1,Kt),this.at(Kt).setValue(ht,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae)}patchValue(De,Ae={}){null!=De&&(De.forEach((ht,Kt)=>{this.at(Kt)&&this.at(Kt).patchValue(ht,{onlySelf:!0,emitEvent:Ae.emitEvent})}),this.updateValueAndValidity(Ae))}reset(De=[],Ae={}){this._forEachChild((ht,Kt)=>{ht.reset(De[Kt],{onlySelf:!0,emitEvent:Ae.emitEvent})}),this._updatePristine(Ae),this._updateTouched(Ae),this.updateValueAndValidity(Ae)}getRawValue(){return this.controls.map(De=>De.getRawValue())}clear(De={}){this.controls.length<1||(this._forEachChild(Ae=>Ae._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:De.emitEvent}))}_adjustIndex(De){return De<0?De+this.length:De}_syncPendingControls(){let De=this.controls.reduce((Ae,ht)=>!!ht._syncPendingControls()||Ae,!1);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){this.controls.forEach((Ae,ht)=>{De(Ae,ht)})}_updateValue(){this.value=this.controls.filter(De=>De.enabled||this.disabled).map(De=>De.value)}_anyControls(De){return this.controls.some(Ae=>Ae.enabled&&De(Ae))}_setUpControls(){this._forEachChild(De=>this._registerControl(De))}_allControlsDisabled(){for(const De of this.controls)if(De.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(De){De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)}_find(De){var Ae;return null!==(Ae=this.at(De))&&void 0!==Ae?Ae:null}}function Ui(Ve){return!!Ve&&(void 0!==Ve.asyncValidators||void 0!==Ve.validators||void 0!==Ve.updateOn)}let Li=(()=>{class Ve{constructor(){this.useNonNullable=!1}get nonNullable(){const Ae=new Ve;return Ae.useNonNullable=!0,Ae}group(Ae,ht=null){const Kt=this._reduceControls(Ae);let gn={};return Ui(ht)?gn=ht:null!==ht&&(gn.validators=ht.validator,gn.asyncValidators=ht.asyncValidator),new st(Kt,gn)}control(Ae,ht,Kt){let gn={};return this.useNonNullable?(Ui(ht)?gn=ht:(gn.validators=ht,gn.asyncValidators=Kt),new Hn(Ae,{...gn,nonNullable:!0})):new Hn(Ae,ht,Kt)}array(Ae,ht,Kt){const gn=Ae.map(Qn=>this._createControl(Qn));return new di(gn,ht,Kt)}_reduceControls(Ae){const ht={};return Object.keys(Ae).forEach(Kt=>{ht[Kt]=this._createControl(Ae[Kt])}),ht}_createControl(Ae){return Ae instanceof Hn||Ae instanceof Re?Ae:Array.isArray(Ae)?this.control(Ae[0],Ae.length>1?Ae[1]:null,Ae.length>2?Ae[2]:null):this.control(Ae)}}return Ve.\u0275fac=function(Ae){return new(Ae||Ve)},Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:qn}),Ve})(),wr=(()=>{class Ve extends Li{group(Ae,ht=null){return super.group(Ae,ht)}control(Ae,ht,Kt){return super.control(Ae,ht,Kt)}array(Ae,ht,Kt){return super.array(Ae,ht,Kt)}}return Ve.\u0275fac=function(){let De;return function(ht){return(De||(De=e.n5z(Ve)))(ht||Ve)}}(),Ve.\u0275prov=e.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:qn}),Ve})()},47957:(Ye,pe,h)=>{"use strict";h.d(pe,{Bb:()=>gt,XC:()=>R,ZL:()=>Je});var e=h(12687),c=h(21281),A=h(83353),w=h(94650),g=h(3238),C=h(50727),T=h(77579),E=h(49770),S=h(56451),U=h(39646),_=h(54968),V=h(36895),z=h(98184),Q=h(67376),te=h(40445),oe=h(29521),ee=h(84080),le=h(24006),de=h(59549),Te=h(68675),v=h(63900),L=h(95698),B=h(39300),W=h(54004),q=h(18505),ue=h(91005);const ye=["panel"];function Me(Y,Ce){if(1&Y&&(w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA()),2&Y){const ae=Ce.id,re=w.oxw();w.Q6J("id",re.id)("ngClass",re._classList),w.uIk("aria-label",re.ariaLabel||null)("aria-labelledby",re._getPanelAriaLabelledby(ae))}}const we=["*"];let Ge=0;class ce{constructor(Ce,ae){this.source=Ce,this.option=ae}}const Ze=(0,g.Kr)(class{}),he=new w.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function xe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let j=(()=>{class Y extends Ze{constructor(ae,re,Se,Fe){super(),this._changeDetectorRef=ae,this._elementRef=re,this._activeOptionChanges=C.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new w.vpe,this.opened=new w.vpe,this.closed=new w.vpe,this.optionActivated=new w.vpe,this._classList={},this.id="mat-autocomplete-"+Ge++,this.inertGroups=Fe?.SAFARI||!1,this._autoActiveFirstOption=!!Se.autoActiveFirstOption,this._autoSelectActiveOption=!!Se.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(ae){this._autoActiveFirstOption=(0,c.Ig)(ae)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(ae){this._autoSelectActiveOption=(0,c.Ig)(ae)}set classList(ae){this._classList=ae&&ae.length?(0,c.du)(ae).reduce((re,Se)=>(re[Se]=!0,re),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(ae=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[ae]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(ae){this.panel&&(this.panel.nativeElement.scrollTop=ae)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(ae){const re=new ce(this,ae);this.optionSelected.emit(re)}_getPanelAriaLabelledby(ae){return this.ariaLabel?null:this.ariaLabelledby?(ae?ae+" ":"")+this.ariaLabelledby:ae}_setVisibilityClasses(ae){ae[this._visibleClass]=this.showPanel,ae[this._hiddenClass]=!this.showPanel}}return Y.\u0275fac=function(ae){return new(ae||Y)(w.Y36(w.sBO),w.Y36(w.SBq),w.Y36(he),w.Y36(A.t4))},Y.\u0275dir=w.lG2({type:Y,viewQuery:function(ae,re){if(1&ae&&(w.Gf(w.Rgc,7),w.Gf(ye,5)),2&ae){let Se;w.iGM(Se=w.CRH())&&(re.template=Se.first),w.iGM(Se=w.CRH())&&(re.panel=Se.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[w.qOj]}),Y})(),R=(()=>{class Y extends j{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Y.\u0275fac=function(){let Ce;return function(re){return(Ce||(Ce=w.n5z(Y)))(re||Y)}}(),Y.\u0275cmp=w.Xpm({type:Y,selectors:[["mat-autocomplete"]],contentQueries:function(ae,re,Se){if(1&ae&&(w.Suo(Se,g.K7,5),w.Suo(Se,g.ey,5)),2&ae){let Fe;w.iGM(Fe=w.CRH())&&(re.optionGroups=Fe),w.iGM(Fe=w.CRH())&&(re.options=Fe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[w._Bn([{provide:g.HF,useExisting:Y}]),w.qOj],ngContentSelectors:we,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(ae,re){1&ae&&(w.F$t(),w.YNc(0,Me,3,4,"ng-template"))},dependencies:[V.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),Y})();const $=new w.OlP("mat-autocomplete-scroll-strategy"),Oe={provide:$,deps:[z.aV],useFactory:function Ee(Y){return()=>Y.scrollStrategies.reposition()}},ct={provide:le.JU,useExisting:(0,w.Gpc)(()=>Je),multi:!0};let _t=(()=>{class Y{constructor(ae,re,Se,Fe,be,Ue,P,H,i,o,f){this._element=ae,this._overlay=re,this._viewContainerRef=Se,this._zone=Fe,this._changeDetectorRef=be,this._dir=P,this._formField=H,this._document=i,this._viewportRuler=o,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=C.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new T.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,Te.O)(l),(0,v.w)(()=>(0,S.T)(...l.map(a=>a.onSelectionChange)))):this._zone.onStable.pipe((0,L.q)(1),(0,v.w)(()=>this.optionSelections))}),this._scrollStrategy=Ue}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(ae){this._autocompleteDisabled=(0,c.Ig)(ae)}ngAfterViewInit(){const ae=this._getWindow();typeof ae<"u"&&this._zone.runOutsideAngular(()=>ae.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(ae){ae.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const ae=this._getWindow();typeof ae<"u"&&ae.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,S.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,B.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,B.h)(()=>this._overlayAttached)):(0,U.of)()).pipe((0,W.U)(ae=>ae instanceof g.rN?ae:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,S.T)((0,_.R)(this._document,"click"),(0,_.R)(this._document,"auxclick"),(0,_.R)(this._document,"touchend")).pipe((0,B.h)(ae=>{const re=(0,A.sA)(ae),Se=this._formField?this._formField._elementRef.nativeElement:null,Fe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&re!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!Se||!Se.contains(re))&&(!Fe||!Fe.contains(re))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(re)}))}writeValue(ae){Promise.resolve(null).then(()=>this._assignOptionValue(ae))}registerOnChange(ae){this._onChange=ae}registerOnTouched(ae){this._onTouched=ae}setDisabledState(ae){this._element.nativeElement.disabled=ae}_handleKeydown(ae){const re=ae.keyCode,Se=(0,oe.Vb)(ae);if(re===oe.hY&&!Se&&ae.preventDefault(),this.activeOption&&re===oe.K5&&this.panelOpen&&!Se)this.activeOption._selectViaInteraction(),this._resetActiveItem(),ae.preventDefault();else if(this.autocomplete){const Fe=this.autocomplete._keyManager.activeItem,be=re===oe.LH||re===oe.JH;re===oe.Mf||be&&!Se&&this.panelOpen?this.autocomplete._keyManager.onKeydown(ae):be&&this._canOpen()&&this.openPanel(),(be||this.autocomplete._keyManager.activeItem!==Fe)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(ae){let re=ae.target,Se=re.value;"number"===re.type&&(Se=""==Se?null:parseFloat(Se)),this._previousValue!==Se&&(this._previousValue=Se,this._pendingAutoselectedOption=null,this._onChange(Se),this._canOpen()&&this._document.activeElement===ae.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(ae=!1){this._formField&&"auto"===this._formField.floatLabel&&(ae?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const ae=this._zone.onStable.pipe((0,L.q)(1)),re=this.autocomplete.options.changes.pipe((0,q.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ue.g)(0));return(0,S.T)(ae,re).pipe((0,v.w)(()=>(this._zone.run(()=>{const Se=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),Se!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,L.q)(1)).subscribe(Se=>this._setValueAndClose(Se))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(ae){const re=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(ae):ae;this._updateNativeInputValue(re??"")}_updateNativeInputValue(ae){this._formField?this._formField._control.value=ae:this._element.nativeElement.value=ae,this._previousValue=ae}_setValueAndClose(ae){const re=ae?ae.source:this._pendingAutoselectedOption;re&&(this._clearPreviousSelectedOption(re),this._assignOptionValue(re.value),this._onChange(re.value),this.autocomplete._emitSelectEvent(re),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(ae){this.autocomplete.options.forEach(re=>{re!==ae&&re.selected&&re.deselect()})}_attachOverlay(){let ae=this._overlayRef;var re;ae?(this._positionStrategy.setOrigin(this._getConnectedElement()),ae.updateSize({width:this._getPanelWidth()})):(this._portal=new ee.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(re=this._formField)||void 0===re?void 0:re.getLabelId()}),ae=this._overlay.create(this._getOverlayConfig()),this._overlayRef=ae,this._handleOverlayEvents(ae),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&ae&&ae.updateSize({width:this._getPanelWidth()})})),ae&&!ae.hasAttached()&&(ae.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Se=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Se!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var ae;return new z.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(ae=this._defaults)||void 0===ae?void 0:ae.overlayPanelClass})}_getOverlayPosition(){const ae=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(ae),this._positionStrategy=ae,ae}_setStrategyPositions(ae){const re=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Se=this._aboveClass,Fe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Se},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Se}];let be;be="above"===this.position?Fe:"below"===this.position?re:[...re,...Fe],ae.withPositions(be)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const ae=this.autocomplete;ae.autoActiveFirstOption?ae._keyManager.setFirstItemActive():ae._keyManager.setActiveItem(-1)}_canOpen(){const ae=this._element.nativeElement;return!ae.readOnly&&!ae.disabled&&!this._autocompleteDisabled}_getWindow(){var ae;return(null===(ae=this._document)||void 0===ae?void 0:ae.defaultView)||window}_scrollToOption(ae){const re=this.autocomplete,Se=(0,g.CB)(ae,re.options,re.optionGroups);if(0===ae&&1===Se)re._setScrollTop(0);else if(re.panel){const Fe=re.options.toArray()[ae];if(Fe){const be=Fe._getHostElement(),Ue=(0,g.jH)(be.offsetTop,be.offsetHeight,re._getScrollTop(),re.panel.nativeElement.offsetHeight);re._setScrollTop(Ue)}}}_handleOverlayEvents(ae){ae.keydownEvents().subscribe(re=>{var Se;(re.keyCode===oe.hY&&!(0,oe.Vb)(re)||re.keyCode===oe.LH&&(0,oe.Vb)(re,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(Se=this._valueBeforeAutoSelection)&&void 0!==Se?Se:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),re.stopPropagation(),re.preventDefault())}),ae.outsidePointerEvents().subscribe()}}return Y.\u0275fac=function(ae){return new(ae||Y)(w.Y36(w.SBq),w.Y36(z.aV),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36($),w.Y36(te.Is,8),w.Y36(de.G_,9),w.Y36(V.K0,8),w.Y36(Q.rL),w.Y36(he,8))},Y.\u0275dir=w.lG2({type:Y,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[w.TTD]}),Y})(),Je=(()=>{class Y extends _t{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Y.\u0275fac=function(){let Ce;return function(re){return(Ce||(Ce=w.n5z(Y)))(re||Y)}}(),Y.\u0275dir=w.lG2({type:Y,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(ae,re){1&ae&&w.NdJ("focusin",function(){return re._handleFocus()})("blur",function(){return re._onTouched()})("input",function(Fe){return re._handleInput(Fe)})("keydown",function(Fe){return re._handleKeydown(Fe)})("click",function(){return re._handleClick()}),2&ae&&w.uIk("autocomplete",re.autocompleteAttribute)("role",re.autocompleteDisabled?null:"combobox")("aria-autocomplete",re.autocompleteDisabled?null:"list")("aria-activedescendant",re.panelOpen&&re.activeOption?re.activeOption.id:null)("aria-expanded",re.autocompleteDisabled?null:re.panelOpen.toString())("aria-owns",re.autocompleteDisabled||!re.panelOpen||null==re.autocomplete?null:re.autocomplete.id)("aria-haspopup",re.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[w._Bn([ct]),w.qOj]}),Y})(),gt=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275mod=w.oAB({type:Y}),Y.\u0275inj=w.cJS({providers:[Oe],imports:[z.U8,g.Ng,g.BQ,V.ez,Q.ZD,g.Ng,g.BQ]}),Y})()},42673:(Ye,pe,h)=>{"use strict";h.d(pe,{g:()=>S,k:()=>E});var e=h(94650),c=h(3238),A=h(12687),w=h(21281);let g=0;const C=(0,c.Id)(class{}),T="mat-badge-content";let E=(()=>{class U extends C{constructor(V,z,Q,te,oe){super(),this._ngZone=V,this._elementRef=z,this._ariaDescriber=Q,this._renderer=te,this._animationMode=oe,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=g++,this._isInitialized=!1}get color(){return this._color}set color(V){this._setColor(V),this._color=V}get overlap(){return this._overlap}set overlap(V){this._overlap=(0,w.Ig)(V)}get content(){return this._content}set content(V){this._updateRenderedContent(V)}get description(){return this._description}set description(V){this._updateHostAriaDescription(V)}get hidden(){return this._hidden}set hidden(V){this._hidden=(0,w.Ig)(V)}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 V=this._renderer.createElement("span"),z="mat-badge-active";return V.setAttribute("id",`mat-badge-content-${this._id}`),V.setAttribute("aria-hidden","true"),V.classList.add(T),"NoopAnimations"===this._animationMode&&V.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(V),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{V.classList.add(z)})}):V.classList.add(z),V}_updateRenderedContent(V){const z=`${V??""}`.trim();this._isInitialized&&z&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=z),this._content=z}_updateHostAriaDescription(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),V&&this._ariaDescriber.describe(this._elementRef.nativeElement,V),this._description=V}_setColor(V){const z=this._elementRef.nativeElement.classList;z.remove(`mat-badge-${this._color}`),V&&z.add(`mat-badge-${V}`)}_clearExistingBadges(){const V=this._elementRef.nativeElement.querySelectorAll(`:scope > .${T}`);for(const z of Array.from(V))z!==this._badgeElement&&z.remove()}}return U.\u0275fac=function(V){return new(V||U)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(A.$s),e.Y36(e.Qsj),e.Y36(e.QbO,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(V,z){2&V&&e.ekj("mat-badge-overlap",z.overlap)("mat-badge-above",z.isAbove())("mat-badge-below",!z.isAbove())("mat-badge-before",!z.isAfter())("mat-badge-after",z.isAfter())("mat-badge-small","small"===z.size)("mat-badge-medium","medium"===z.size)("mat-badge-large","large"===z.size)("mat-badge-hidden",z.hidden||!z.content)("mat-badge-disabled",z.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:[e.qOj]}),U})(),S=(()=>{class U{}return U.\u0275fac=function(V){return new(V||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({imports:[A.rt,c.BQ,c.BQ]}),U})()},4859:(Ye,pe,h)=>{"use strict";h.d(pe,{lW:()=>U,ot:()=>V});var e=h(94650),c=h(3238),A=h(12687);const w=["mat-button",""],g=["*"],E=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],S=(0,c.pj)((0,c.Id)((0,c.Kr)(class{constructor(z){this._elementRef=z}})));let U=(()=>{class z extends S{constructor(te,oe,ee){super(te),this._focusMonitor=oe,this._animationMode=ee,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const le of E)this._hasHostAttributes(le)&&this._getHostElement().classList.add(le);te.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(te,oe){te?this._focusMonitor.focusVia(this._getHostElement(),te,oe):this._getHostElement().focus(oe)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...te){return te.some(oe=>this._getHostElement().hasAttribute(oe))}}return z.\u0275fac=function(te){return new(te||z)(e.Y36(e.SBq),e.Y36(A.tE),e.Y36(e.QbO,8))},z.\u0275cmp=e.Xpm({type:z,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(te,oe){if(1&te&&e.Gf(c.wG,5),2&te){let ee;e.iGM(ee=e.CRH())&&(oe.ripple=ee.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(te,oe){2&te&&(e.uIk("disabled",oe.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===oe._animationMode)("mat-button-disabled",oe.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:w,ngContentSelectors:g,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(te,oe){1&te&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1)(3,"span",2)),2&te&&(e.xp6(2),e.ekj("mat-button-ripple-round",oe.isRoundButton||oe.isIconButton),e.Q6J("matRippleDisabled",oe._isRippleDisabled())("matRippleCentered",oe.isIconButton)("matRippleTrigger",oe._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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),z})(),V=(()=>{class z{}return z.\u0275fac=function(te){return new(te||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[c.si,c.BQ,c.BQ]}),z})()},73546:(Ye,pe,h)=>{"use strict";h.d(pe,{$j:()=>_,QW:()=>B,a8:()=>Te,dk:()=>v,dn:()=>S,kc:()=>de,n5:()=>U});var e=h(94650),c=h(3238);const A=["*",[["mat-card-footer"]]],w=["*","mat-card-footer"],g=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],C=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let S=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),W})(),U=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),W})(),_=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),W})(),de=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275dir=e.lG2({type:W,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),W})(),Te=(()=>{class W{constructor(ue){this._animationMode=ue}}return W.\u0275fac=function(ue){return new(ue||W)(e.Y36(e.QbO,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ue,ye){2&ue&&e.ekj("_mat-animation-noopable","NoopAnimations"===ye._animationMode)},exportAs:["matCard"],ngContentSelectors:w,decls:2,vars:0,template:function(ue,ye){1&ue&&(e.F$t(A),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),W})(),v=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:C,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ue,ye){1&ue&&(e.F$t(g),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),W})(),B=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[c.BQ,c.BQ]}),W})()},56709:(Ye,pe,h)=>{"use strict";h.d(pe,{oG:()=>de,p9:()=>B});var e=h(12687),c=h(21281),A=h(94650),w=h(24006),g=h(3238),C=h(49643);const T=["input"],E=["label"],S=function(W){return{enterDuration:W}},U=["*"],_=new A.OlP("mat-checkbox-default-options",{providedIn:"root",factory:V});function V(){return{color:"accent",clickAction:"check-indeterminate"}}let z=0;const Q=V(),te={provide:w.JU,useExisting:(0,A.Gpc)(()=>de),multi:!0};class oe{}const ee=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(W){this._elementRef=W}}))));let le=(()=>{class W extends ee{constructor(ue,ye,Me,we,Ge,ce,Ze){super(ye),this._changeDetectorRef=Me,this._ngZone=we,this._animationMode=ce,this._options=Ze,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new A.vpe,this.indeterminateChange=new A.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||Q,this.color=this.defaultColor=this._options.color||Q.color,this.tabIndex=parseInt(Ge)||0,this.id=this._uniqueId=`${ue}${++z}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ue){this._required=(0,c.Ig)(ue)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(ue){const ye=(0,c.Ig)(ue);ye!=this.checked&&(this._checked=ye,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ue){const ye=(0,c.Ig)(ue);ye!==this.disabled&&(this._disabled=ye,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ue){const ye=ue!=this._indeterminate;this._indeterminate=(0,c.Ig)(ue),ye&&(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(ue){this.checked=!!ue}registerOnChange(ue){this._controlValueAccessorChangeFn=ue}registerOnTouched(ue){this._onTouched=ue}setDisabledState(ue){this.disabled=ue}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ue){let ye=this._currentCheckState,Me=this._getAnimationTargetElement();if(ye!==ue&&Me&&(this._currentAnimationClass&&Me.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ye,ue),this._currentCheckState=ue,this._currentAnimationClass.length>0)){Me.classList.add(this._currentAnimationClass);const we=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Me.classList.remove(we)},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(){var ue;const ye=null===(ue=this._options)||void 0===ue?void 0:ue.clickAction;this.disabled||"noop"===ye?!this.disabled&&"noop"===ye&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ye&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(ue){ue.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(ue,ye){if("NoopAnimations"===this._animationMode)return"";switch(ue){case 0:if(1===ye)return this._animationClasses.uncheckedToChecked;if(3==ye)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===ye?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===ye?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===ye?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(ue){const ye=this._inputElement;ye&&(ye.nativeElement.indeterminate=ue)}}return W.\u0275fac=function(ue){A.$Z()},W.\u0275dir=A.lG2({type:W,viewQuery:function(ue,ye){if(1&ue&&(A.Gf(T,5),A.Gf(E,5),A.Gf(g.wG,5)),2&ue){let Me;A.iGM(Me=A.CRH())&&(ye._inputElement=Me.first),A.iGM(Me=A.CRH())&&(ye._labelElement=Me.first),A.iGM(Me=A.CRH())&&(ye.ripple=Me.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:[A.qOj]}),W})(),de=(()=>{class W extends le{constructor(ue,ye,Me,we,Ge,ce,Ze){super("mat-checkbox-",ue,ye,we,Ge,ce,Ze),this._focusMonitor=Me,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(ue){const ye=new oe;return ye.source=this,ye.checked=ue,ye}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(ue=>{ue||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(ue){ue.stopPropagation(),super._handleInputClick()}focus(ue,ye){ue?this._focusMonitor.focusVia(this._inputElement,ue,ye):this._inputElement.nativeElement.focus(ye)}}return W.\u0275fac=function(ue){return new(ue||W)(A.Y36(A.SBq),A.Y36(A.sBO),A.Y36(e.tE),A.Y36(A.R0b),A.$8M("tabindex"),A.Y36(A.QbO,8),A.Y36(_,8))},W.\u0275cmp=A.Xpm({type:W,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(ue,ye){2&ue&&(A.Ikx("id",ye.id),A.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),A.ekj("mat-checkbox-indeterminate",ye.indeterminate)("mat-checkbox-checked",ye.checked)("mat-checkbox-disabled",ye.disabled)("mat-checkbox-label-before","before"==ye.labelPosition)("_mat-animation-noopable","NoopAnimations"===ye._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[A._Bn([te]),A.qOj],ngContentSelectors:U,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(ue,ye){if(1&ue&&(A.F$t(),A.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),A.NdJ("change",function(we){return ye._onInteractionEvent(we)})("click",function(we){return ye._onInputClick(we)}),A.qZA(),A.TgZ(5,"span",5),A._UZ(6,"span",6),A.qZA(),A._UZ(7,"span",7),A.TgZ(8,"span",8),A.O4$(),A.TgZ(9,"svg",9),A._UZ(10,"path",10),A.qZA(),A.kcU(),A._UZ(11,"span",11),A.qZA()(),A.TgZ(12,"span",12,13),A.NdJ("cdkObserveContent",function(){return ye._onLabelTextChange()}),A.TgZ(14,"span",14),A._uU(15,"\xa0"),A.qZA(),A.Hsn(16),A.qZA()()),2&ue){const Me=A.MAs(1),we=A.MAs(13);A.uIk("for",ye.inputId),A.xp6(2),A.ekj("mat-checkbox-inner-container-no-side-margin",!we.textContent||!we.textContent.trim()),A.xp6(1),A.Q6J("id",ye.inputId)("required",ye.required)("checked",ye.checked)("disabled",ye.disabled)("tabIndex",ye.tabIndex),A.uIk("value",ye.value)("name",ye.name)("aria-label",ye.ariaLabel||null)("aria-labelledby",ye.ariaLabelledby)("aria-checked",ye._getAriaChecked())("aria-describedby",ye.ariaDescribedby),A.xp6(2),A.Q6J("matRippleTrigger",Me)("matRippleDisabled",ye._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",A.VKq(19,S,"NoopAnimations"===ye._animationMode?0:150))}},dependencies:[g.wG,C.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);position:relative}.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}.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%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),W})(),L=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=A.oAB({type:W}),W.\u0275inj=A.cJS({}),W})(),B=(()=>{class W{}return W.\u0275fac=function(ue){return new(ue||W)},W.\u0275mod=A.oAB({type:W}),W.\u0275inj=A.cJS({imports:[g.si,g.BQ,C.Q8,L,g.BQ,L]}),W})()},77331:(Ye,pe,h)=>{"use strict";h.d(pe,{HS:()=>ue,Hi:()=>R,oH:()=>xe,qn:()=>Ze});var e=h(29521),c=h(94650),A=h(3238),w=h(21281),g=h(83353),C=h(36895),T=h(77579),E=h(56451),S=h(95698),U=h(82722),_=h(68675),V=h(12687),z=h(40445),Q=h(95017),te=h(24006),oe=h(59549);const ee=["*"],de=new c.OlP("MatChipRemove"),Te=new c.OlP("MatChipAvatar"),v=new c.OlP("MatChipTrailingIcon");class L{constructor(se){this._elementRef=se}}const B=(0,A.sb)((0,A.pj)((0,A.Kr)(L),"primary"),-1);let ue=(()=>{class G extends B{constructor($,Ee,Oe,ct,Xe,_t,Je,gt){super($),this._ngZone=Ee,this._changeDetectorRef=Xe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new T.x,this._onBlur=new T.x,this.selectionChange=new c.vpe,this.destroyed=new c.vpe,this.removed=new c.vpe,this._addHostClassName(),this._chipRippleTarget=_t.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new A.IR(this,Ee,this._chipRippleTarget,Oe),this._chipRipple.setupTriggerEvents($),this.rippleConfig=ct||{},this._animationsDisabled="NoopAnimations"===Je,this.tabIndex=null!=gt&&parseInt(gt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected($){const Ee=(0,w.Ig)($);Ee!==this._selected&&(this._selected=Ee,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value($){this._value=$}get selectable(){return this._selectable&&this.chipListSelectable}set selectable($){this._selectable=(0,w.Ig)($)}get disabled(){return this._chipListDisabled||this._disabled}set disabled($){this._disabled=(0,w.Ig)($)}get removable(){return this._removable}set removable($){this._removable=(0,w.Ig)($)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const $="mat-basic-chip",Ee=this._elementRef.nativeElement;Ee.hasAttribute($)||Ee.tagName.toLowerCase()===$?Ee.classList.add($):Ee.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected($=!1){return this._selected=!this.selected,this._dispatchSelectionChange($),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick($){this.disabled&&$.preventDefault()}_handleKeydown($){if(!this.disabled)switch($.keyCode){case e.yY:case e.ZH:this.remove(),$.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),$.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange($=!1){this.selectionChange.emit({source:this,isUserInput:$,selected:this._selected})}}return G.\u0275fac=function($){return new($||G)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g.t4),c.Y36(A.Y2,8),c.Y36(c.sBO),c.Y36(C.K0),c.Y36(c.QbO,8),c.$8M("tabindex"))},G.\u0275dir=c.lG2({type:G,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function($,Ee,Oe){if(1&$&&(c.Suo(Oe,Te,5),c.Suo(Oe,v,5),c.Suo(Oe,de,5)),2&$){let ct;c.iGM(ct=c.CRH())&&(Ee.avatar=ct.first),c.iGM(ct=c.CRH())&&(Ee.trailingIcon=ct.first),c.iGM(ct=c.CRH())&&(Ee.removeIcon=ct.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function($,Ee){1&$&&c.NdJ("click",function(ct){return Ee._handleClick(ct)})("keydown",function(ct){return Ee._handleKeydown(ct)})("focus",function(){return Ee.focus()})("blur",function(){return Ee._blur()}),2&$&&(c.uIk("tabindex",Ee.disabled?null:Ee.tabIndex)("role",Ee.role)("disabled",Ee.disabled||null)("aria-disabled",Ee.disabled.toString())("aria-selected",Ee.ariaSelected),c.ekj("mat-chip-selected",Ee.selected)("mat-chip-with-avatar",Ee.avatar)("mat-chip-with-trailing-icon",Ee.trailingIcon||Ee.removeIcon)("mat-chip-disabled",Ee.disabled)("_mat-animation-noopable",Ee._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[c.qOj]}),G})();const Me=new c.OlP("mat-chips-default-options"),we=(0,A.FD)(class{constructor(G,se,$,Ee){this._defaultErrorStateMatcher=G,this._parentForm=se,this._parentFormGroup=$,this.ngControl=Ee,this.stateChanges=new T.x}});let Ge=0;class ce{constructor(se,$){this.source=se,this.value=$}}let Ze=(()=>{class G extends we{constructor($,Ee,Oe,ct,Xe,_t,Je){super(_t,ct,Xe,Je),this._elementRef=$,this._changeDetectorRef=Ee,this._dir=Oe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new T.x,this._uid="mat-chip-list-"+Ge++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(gt,Y)=>gt===Y,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new c.vpe,this.valueChange=new c.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var $,Ee;return this.multiple?(null===($=this._selectionModel)||void 0===$?void 0:$.selected)||[]:null===(Ee=this._selectionModel)||void 0===Ee?void 0:Ee.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role($){this._explicitRole=$}get multiple(){return this._multiple}set multiple($){this._multiple=(0,w.Ig)($),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith($){this._compareWith=$,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value($){this.writeValue($),this._value=$}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var $,Ee,Oe,ct;return null!==($=null!==(Ee=this._required)&&void 0!==Ee?Ee:null===(Oe=this.ngControl)||void 0===Oe||null===(ct=Oe.control)||void 0===ct?void 0:ct.hasValidator(te.kI.required))&&void 0!==$&&$}set required($){this._required=(0,w.Ig)($),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder($){this._placeholder=$,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled($){this._disabled=(0,w.Ig)($),this._syncChipsState()}get selectable(){return this._selectable}set selectable($){this._selectable=(0,w.Ig)($),this.chips&&this.chips.forEach(Ee=>Ee.chipListSelectable=this._selectable)}set tabIndex($){this._userTabIndex=$,this._tabIndex=$}get chipSelectionChanges(){return(0,E.T)(...this.chips.map($=>$.selectionChange))}get chipFocusChanges(){return(0,E.T)(...this.chips.map($=>$._onFocus))}get chipBlurChanges(){return(0,E.T)(...this.chips.map($=>$._onBlur))}get chipRemoveChanges(){return(0,E.T)(...this.chips.map($=>$.destroyed))}ngAfterContentInit(){this._keyManager=new V.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,U.R)(this._destroyed)).subscribe($=>this._keyManager.withHorizontalOrientation($)),this._keyManager.tabOut.pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,_.O)(null),(0,U.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Q.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput($){this._chipInput=$,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",$.id)}setDescribedByIds($){$.length?this._elementRef.nativeElement.setAttribute("aria-describedby",$.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue($){this.chips&&this._setSelectionByValue($,!1)}registerOnChange($){this._onChange=$}registerOnTouched($){this._onTouched=$}setDisabledState($){this.disabled=$,this.stateChanges.next()}onContainerClick($){this._originatesFromChip($)||this.focus()}focus($){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput($),this.stateChanges.next()))}_focusInput($){this._chipInput&&this._chipInput.focus($)}_keydown($){const Ee=$.target;Ee&&Ee.classList.contains("mat-chip")&&(this._keyManager.onKeydown($),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const $=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem($)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex($){return $>=0&&$Oe.deselect()),Array.isArray($))$.forEach(Oe=>this._selectValue(Oe,Ee)),this._sortValues();else{const Oe=this._selectValue($,Ee);Oe&&Ee&&this._keyManager.setActiveItem(Oe)}}_selectValue($,Ee=!0){const Oe=this.chips.find(ct=>null!=ct.value&&this._compareWith(ct.value,$));return Oe&&(Ee?Oe.selectViaInteraction():Oe.select(),this._selectionModel.select(Oe)),Oe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection($){this._selectionModel.clear(),this.chips.forEach(Ee=>{Ee!==$&&Ee.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach($=>{$.selected&&this._selectionModel.select($)}),this.stateChanges.next())}_propagateChanges($){let Ee=null;Ee=Array.isArray(this.selected)?this.selected.map(Oe=>Oe.value):this.selected?this.selected.value:$,this._value=Ee,this.change.emit(new ce(this,Ee)),this.valueChange.emit(Ee),this._onChange(Ee),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe($=>{$.source.selected?this._selectionModel.select($.source):this._selectionModel.deselect($.source),this.multiple||this.chips.forEach(Ee=>{!this._selectionModel.isSelected(Ee)&&Ee.selected&&Ee.deselect()}),$.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe($=>{let Ee=this.chips.toArray().indexOf($.chip);this._isValidIndex(Ee)&&this._keyManager.updateActiveItem(Ee),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe($=>{const Ee=$.chip,Oe=this.chips.toArray().indexOf($.chip);this._isValidIndex(Oe)&&Ee._hasFocus&&(this._lastDestroyedChipIndex=Oe)})}_originatesFromChip($){let Ee=$.target;for(;Ee&&Ee!==this._elementRef.nativeElement;){if(Ee.classList.contains("mat-chip"))return!0;Ee=Ee.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some($=>$._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach($=>{$._chipListDisabled=this._disabled,$._chipListMultiple=this.multiple})}}return G.\u0275fac=function($){return new($||G)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(z.Is,8),c.Y36(te.F,8),c.Y36(te.sg,8),c.Y36(A.rD),c.Y36(te.a5,10))},G.\u0275cmp=c.Xpm({type:G,selectors:[["mat-chip-list"]],contentQueries:function($,Ee,Oe){if(1&$&&c.Suo(Oe,ue,5),2&$){let ct;c.iGM(ct=c.CRH())&&(Ee.chips=ct)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function($,Ee){1&$&&c.NdJ("focus",function(){return Ee.focus()})("blur",function(){return Ee._blur()})("keydown",function(ct){return Ee._keydown(ct)}),2&$&&(c.Ikx("id",Ee._uid),c.uIk("tabindex",Ee.disabled?null:Ee._tabIndex)("aria-required",Ee.role?Ee.required:null)("aria-disabled",Ee.disabled.toString())("aria-invalid",Ee.errorState)("aria-multiselectable",Ee.multiple)("role",Ee.role)("aria-orientation",Ee.ariaOrientation),c.ekj("mat-chip-list-disabled",Ee.disabled)("mat-chip-list-invalid",Ee.errorState)("mat-chip-list-required",Ee.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[c._Bn([{provide:oe.Eo,useExisting:G}]),c.qOj],ngContentSelectors:ee,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function($,Ee){1&$&&(c.F$t(),c.TgZ(0,"div",0),c.Hsn(1),c.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),G})(),he=0,xe=(()=>{class G{constructor($,Ee){this._elementRef=$,this._defaultOptions=Ee,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new c.vpe,this.placeholder="",this.id="mat-chip-list-input-"+he++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList($){$&&(this._chipList=$,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur($){this._addOnBlur=(0,w.Ig)($)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled($){this._disabled=(0,w.Ig)($)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown($){if($){if($.keyCode===e.Mf&&!(0,e.Vb)($,"shiftKey")&&this._chipList._allowFocusEscape(),$.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void $.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd($)}_keyup($){!this._focusLastChipOnBackspace&&$.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,$.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd($){!this.inputElement.value&&!!$&&this._chipList._keydown($),(!$||this._isSeparatorKey($))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),$?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus($){this.inputElement.focus($)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey($){return!(0,e.Vb)($)&&new Set(this.separatorKeyCodes).has($.keyCode)}}return G.\u0275fac=function($){return new($||G)(c.Y36(c.SBq),c.Y36(Me))},G.\u0275dir=c.lG2({type:G,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function($,Ee){1&$&&c.NdJ("keydown",function(ct){return Ee._keydown(ct)})("keyup",function(ct){return Ee._keyup(ct)})("blur",function(){return Ee._blur()})("focus",function(){return Ee._focus()})("input",function(){return Ee._onInput()}),2&$&&(c.Ikx("id",Ee.id),c.uIk("disabled",Ee.disabled||null)("placeholder",Ee.placeholder||null)("aria-invalid",Ee._chipList&&Ee._chipList.ngControl?Ee._chipList.ngControl.invalid:null)("aria-required",Ee._chipList&&Ee._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[c.TTD]}),G})(),R=(()=>{class G{}return G.\u0275fac=function($){return new($||G)},G.\u0275mod=c.oAB({type:G}),G.\u0275inj=c.cJS({providers:[A.rD,{provide:Me,useValue:{separatorKeyCodes:[e.K5]}}],imports:[A.BQ]}),G})()},3238:(Ye,pe,h)=>{"use strict";h.d(pe,{yN:()=>le,mZ:()=>de,_A:()=>xe,rD:()=>Xe,sG:()=>j,K7:()=>s,HF:()=>a,Y2:()=>H,BQ:()=>L,X2:()=>_t,uc:()=>Y,XK:()=>Oe,ey:()=>bt,Ng:()=>Mt,rN:()=>M,nP:()=>f,us:()=>l,wG:()=>i,si:()=>o,LF:()=>se,IR:()=>Ue,CB:()=>Vt,jH:()=>on,pj:()=>ye,Kr:()=>Me,Id:()=>ue,FD:()=>Ge,dB:()=>ce,sb:()=>we,E0:()=>Je});var e=h(94650),c=h(12687),A=h(40445),g=h(36895),C=h(83353),T=h(21281),E=h(69751),S=h(77579),U=h(68675),_=h(29521);function Q(ft,je){if(1&ft&&e._UZ(0,"mat-pseudo-checkbox",4),2&ft){const Pe=e.oxw();e.Q6J("state",Pe.selected?"checked":"unchecked")("disabled",Pe.disabled)}}function te(ft,je){if(1&ft&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&ft){const Pe=e.oxw();e.xp6(1),e.hij("(",Pe.group.label,")")}}const oe=["*"];let le=(()=>{class ft{}return ft.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ft.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ft.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ft.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ft})(),de=(()=>{class ft{}return ft.COMPLEX="375ms",ft.ENTERING="225ms",ft.EXITING="195ms",ft})();const v=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Te(){return!0}});let L=(()=>{class ft{constructor(Pe,Qe,qe){this._sanityChecks=Qe,this._document=qe,this._hasDoneGlobalChecks=!1,Pe._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Pe){return!(0,C.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Pe])}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.LFG(c.qm),e.LFG(v,8),e.LFG(g.K0))},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[A.vT,A.vT]}),ft})();function ue(ft){return class extends ft{constructor(...je){super(...je),this._disabled=!1}get disabled(){return this._disabled}set disabled(je){this._disabled=(0,T.Ig)(je)}}}function ye(ft,je){return class extends ft{constructor(...Pe){super(...Pe),this.defaultColor=je,this.color=je}get color(){return this._color}set color(Pe){const Qe=Pe||this.defaultColor;Qe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Qe&&this._elementRef.nativeElement.classList.add(`mat-${Qe}`),this._color=Qe)}}}function Me(ft){return class extends ft{constructor(...je){super(...je),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(je){this._disableRipple=(0,T.Ig)(je)}}}function we(ft,je=0){return class extends ft{constructor(...Pe){super(...Pe),this._tabIndex=je,this.defaultTabIndex=je}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Pe){this._tabIndex=null!=Pe?(0,T.su)(Pe):this.defaultTabIndex}}}function Ge(ft){return class extends ft{constructor(...je){super(...je),this.errorState=!1}updateErrorState(){const je=this.errorState,Be=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Be!==je&&(this.errorState=Be,this.stateChanges.next())}}}function ce(ft){return class extends ft{constructor(...je){super(...je),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new E.y(Pe=>{this._isInitialized?this._notifySubscriber(Pe):this._pendingSubscribers.push(Pe)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(je){je.next(),je.complete()}}}const Ze=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function he(){return(0,e.f3M)(e.soG)}});class xe{constructor(){this._localeChanges=new S.x,this.localeChanges=this._localeChanges}getValidDateOrNull(je){return this.isDateInstance(je)&&this.isValid(je)?je:null}deserialize(je){return null==je||this.isDateInstance(je)&&this.isValid(je)?je:this.invalid()}setLocale(je){this.locale=je,this._localeChanges.next()}compareDate(je,Pe){return this.getYear(je)-this.getYear(Pe)||this.getMonth(je)-this.getMonth(Pe)||this.getDate(je)-this.getDate(Pe)}sameDate(je,Pe){if(je&&Pe){let Qe=this.isValid(je),qe=this.isValid(Pe);return Qe&&qe?!this.compareDate(je,Pe):Qe==qe}return je==Pe}clampDate(je,Pe,Qe){return Pe&&this.compareDate(je,Pe)<0?Pe:Qe&&this.compareDate(je,Qe)>0?Qe:je}}const j=new e.OlP("mat-date-formats"),R=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function G(ft,je){const Pe=Array(ft);for(let Qe=0;Qe{class ft extends xe{constructor(Pe,Qe){super(),this.useUtcForDisplay=!1,super.setLocale(Pe)}getYear(Pe){return Pe.getFullYear()}getMonth(Pe){return Pe.getMonth()}getDate(Pe){return Pe.getDate()}getDayOfWeek(Pe){return Pe.getDay()}getMonthNames(Pe){const Qe=new Intl.DateTimeFormat(this.locale,{month:Pe,timeZone:"utc"});return G(12,qe=>this._format(Qe,new Date(2017,qe,1)))}getDateNames(){const Pe=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return G(31,Qe=>this._format(Pe,new Date(2017,0,Qe+1)))}getDayOfWeekNames(Pe){const Qe=new Intl.DateTimeFormat(this.locale,{weekday:Pe,timeZone:"utc"});return G(7,qe=>this._format(Qe,new Date(2017,0,qe+1)))}getYearName(Pe){const Qe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Qe,Pe)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(Pe){return this.getDate(this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe)+1,0))}clone(Pe){return new Date(Pe.getTime())}createDate(Pe,Qe,qe){let Be=this._createDateWithOverflow(Pe,Qe,qe);return Be.getMonth(),Be}today(){return new Date}parse(Pe,Qe){return"number"==typeof Pe?new Date(Pe):Pe?new Date(Date.parse(Pe)):null}format(Pe,Qe){if(!this.isValid(Pe))throw Error("NativeDateAdapter: Cannot format invalid date.");const qe=new Intl.DateTimeFormat(this.locale,{...Qe,timeZone:"utc"});return this._format(qe,Pe)}addCalendarYears(Pe,Qe){return this.addCalendarMonths(Pe,12*Qe)}addCalendarMonths(Pe,Qe){let qe=this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe)+Qe,this.getDate(Pe));return this.getMonth(qe)!=((this.getMonth(Pe)+Qe)%12+12)%12&&(qe=this._createDateWithOverflow(this.getYear(qe),this.getMonth(qe),0)),qe}addCalendarDays(Pe,Qe){return this._createDateWithOverflow(this.getYear(Pe),this.getMonth(Pe),this.getDate(Pe)+Qe)}toIso8601(Pe){return[Pe.getUTCFullYear(),this._2digit(Pe.getUTCMonth()+1),this._2digit(Pe.getUTCDate())].join("-")}deserialize(Pe){if("string"==typeof Pe){if(!Pe)return null;if(R.test(Pe)){let Qe=new Date(Pe);if(this.isValid(Qe))return Qe}}return super.deserialize(Pe)}isDateInstance(Pe){return Pe instanceof Date}isValid(Pe){return!isNaN(Pe.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(Pe,Qe,qe){const Be=new Date;return Be.setFullYear(Pe,Qe,qe),Be.setHours(0,0,0,0),Be}_2digit(Pe){return("00"+Pe).slice(-2)}_format(Pe,Qe){const qe=new Date;return qe.setUTCFullYear(Qe.getFullYear(),Qe.getMonth(),Qe.getDate()),qe.setUTCHours(Qe.getHours(),Qe.getMinutes(),Qe.getSeconds(),Qe.getMilliseconds()),Pe.format(qe)}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.LFG(Ze,8),e.LFG(C.t4))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const $={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 Ee=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:[{provide:xe,useClass:se}]}),ft})(),Oe=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:[{provide:j,useValue:$}],imports:[Ee]}),ft})(),Xe=(()=>{class ft{isErrorState(Pe,Qe){return!!(Pe&&Pe.invalid&&(Pe.touched||Qe&&Qe.submitted))}}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft})(),_t=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275dir=e.lG2({type:ft,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ft})();function Je(ft,je,Pe="mat"){ft.changes.pipe((0,U.O)(ft)).subscribe(({length:Qe})=>{gt(je,`${Pe}-2-line`,!1),gt(je,`${Pe}-3-line`,!1),gt(je,`${Pe}-multi-line`,!1),2===Qe||3===Qe?gt(je,`${Pe}-${Qe}-line`,!0):Qe>3&>(je,`${Pe}-multi-line`,!0)})}function gt(ft,je,Pe){ft.nativeElement.classList.toggle(je,Pe)}let Y=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[L,L]}),ft})();class Ce{constructor(je,Pe,Qe,qe=!1){this._renderer=je,this.element=Pe,this.config=Qe,this._animationForciblyDisabledThroughCss=qe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ae={enterDuration:225,exitDuration:150},Se=(0,C.i$)({passive:!0}),Fe=["mousedown","touchstart"],be=["mouseup","mouseleave","touchend","touchcancel"];class Ue{constructor(je,Pe,Qe,qe){this._target=je,this._ngZone=Pe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,qe.isBrowser&&(this._containerElement=(0,T.fI)(Qe))}fadeInRipple(je,Pe,Qe={}){const qe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Be={...ae,...Qe.animation};Qe.centered&&(je=qe.left+qe.width/2,Pe=qe.top+qe.height/2);const me=Qe.radius||function P(ft,je,Pe){const Qe=Math.max(Math.abs(ft-Pe.left),Math.abs(ft-Pe.right)),qe=Math.max(Math.abs(je-Pe.top),Math.abs(je-Pe.bottom));return Math.sqrt(Qe*Qe+qe*qe)}(je,Pe,qe),ve=je-qe.left,ze=Pe-qe.top,tt=Be.enterDuration,at=document.createElement("div");at.classList.add("mat-ripple-element"),at.style.left=ve-me+"px",at.style.top=ze-me+"px",at.style.height=2*me+"px",at.style.width=2*me+"px",null!=Qe.color&&(at.style.backgroundColor=Qe.color),at.style.transitionDuration=`${tt}ms`,this._containerElement.appendChild(at);const Re=window.getComputedStyle(at),Pt=Re.transitionDuration,jt="none"===Re.transitionProperty||"0s"===Pt||"0s, 0s"===Pt,cn=new Ce(this,at,Qe,jt);at.style.transform="scale3d(1, 1, 1)",cn.state=0,Qe.persistent||(this._mostRecentTransientRipple=cn);let Xt=null;return!jt&&(tt||Be.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const sn=()=>this._finishRippleTransition(cn),mn=()=>this._destroyRipple(cn);at.addEventListener("transitionend",sn),at.addEventListener("transitioncancel",mn),Xt={onTransitionEnd:sn,onTransitionCancel:mn}}),this._activeRipples.set(cn,Xt),(jt||!tt)&&this._finishRippleTransition(cn),cn}fadeOutRipple(je){if(2===je.state||3===je.state)return;const Pe=je.element,Qe={...ae,...je.config.animation};Pe.style.transitionDuration=`${Qe.exitDuration}ms`,Pe.style.opacity="0",je.state=2,(je._animationForciblyDisabledThroughCss||!Qe.exitDuration)&&this._finishRippleTransition(je)}fadeOutAll(){this._getActiveRipples().forEach(je=>je.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(je=>{je.config.persistent||je.fadeOut()})}setupTriggerEvents(je){const Pe=(0,T.fI)(je);!Pe||Pe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Pe,this._registerEvents(Fe))}handleEvent(je){"mousedown"===je.type?this._onMousedown(je):"touchstart"===je.type?this._onTouchStart(je):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(be),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(je){0===je.state?this._startFadeOutTransition(je):2===je.state&&this._destroyRipple(je)}_startFadeOutTransition(je){const Pe=je===this._mostRecentTransientRipple,{persistent:Qe}=je.config;je.state=1,!Qe&&(!Pe||!this._isPointerDown)&&je.fadeOut()}_destroyRipple(je){var Pe;const Qe=null!==(Pe=this._activeRipples.get(je))&&void 0!==Pe?Pe:null;this._activeRipples.delete(je),this._activeRipples.size||(this._containerRect=null),je===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),je.state=3,null!==Qe&&(je.element.removeEventListener("transitionend",Qe.onTransitionEnd),je.element.removeEventListener("transitioncancel",Qe.onTransitionCancel)),je.element.remove()}_onMousedown(je){const Pe=(0,c.X6)(je),Qe=this._lastTouchStartEvent&&Date.now(){!je.config.persistent&&(1===je.state||je.config.terminateOnPointerUp&&0===je.state)&&je.fadeOut()}))}_registerEvents(je){this._ngZone.runOutsideAngular(()=>{je.forEach(Pe=>{this._triggerElement.addEventListener(Pe,this,Se)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Fe.forEach(je=>{this._triggerElement.removeEventListener(je,this,Se)}),this._pointerUpEventsRegistered&&be.forEach(je=>{this._triggerElement.removeEventListener(je,this,Se)}))}}const H=new e.OlP("mat-ripple-global-options");let i=(()=>{class ft{constructor(Pe,Qe,qe,Be,me){this._elementRef=Pe,this._animationMode=me,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Be||{},this._rippleRenderer=new Ue(this,Qe,Pe,qe)}get disabled(){return this._disabled}set disabled(Pe){Pe&&this.fadeOutAllNonPersistent(),this._disabled=Pe,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Pe){this._trigger=Pe,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(Pe,Qe=0,qe){return"number"==typeof Pe?this._rippleRenderer.fadeInRipple(Pe,Qe,{...this.rippleConfig,...qe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Pe})}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(C.t4),e.Y36(H,8),e.Y36(e.QbO,8))},ft.\u0275dir=e.lG2({type:ft,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Pe,Qe){2&Pe&&e.ekj("mat-ripple-unbounded",Qe.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"]}),ft})(),o=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[L,L]}),ft})(),f=(()=>{class ft{constructor(Pe){this._animationMode=Pe,this.state="unchecked",this.disabled=!1}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.Y36(e.QbO,8))},ft.\u0275cmp=e.Xpm({type:ft,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(Pe,Qe){2&Pe&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Qe.state)("mat-pseudo-checkbox-checked","checked"===Qe.state)("mat-pseudo-checkbox-disabled",Qe.disabled)("_mat-animation-noopable","NoopAnimations"===Qe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(Pe,Qe){},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}),ft})(),l=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[L]}),ft})();const a=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),s=new e.OlP("MatOptgroup");let p=0;class M{constructor(je,Pe=!1){this.source=je,this.isUserInput=Pe}}let _e=(()=>{class ft{constructor(Pe,Qe,qe,Be){this._element=Pe,this._changeDetectorRef=Qe,this._parent=qe,this.group=Be,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+p++,this.onSelectionChange=new e.vpe,this._stateChanges=new S.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(Pe){this._disabled=(0,T.Ig)(Pe)}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(Pe,Qe){const qe=this._getHostElement();"function"==typeof qe.focus&&qe.focus(Qe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Pe){(Pe.keyCode===_.K5||Pe.keyCode===_.L_)&&!(0,_.Vb)(Pe)&&(this._selectViaInteraction(),Pe.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 Pe=this.viewValue;Pe!==this._mostRecentViewValue&&(this._mostRecentViewValue=Pe,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Pe=!1){this.onSelectionChange.emit(new M(this,Pe))}}return ft.\u0275fac=function(Pe){e.$Z()},ft.\u0275dir=e.lG2({type:ft,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ft})(),bt=(()=>{class ft extends _e{constructor(Pe,Qe,qe,Be){super(Pe,Qe,qe,Be)}}return ft.\u0275fac=function(Pe){return new(Pe||ft)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(a,8),e.Y36(s,8))},ft.\u0275cmp=e.Xpm({type:ft,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(Pe,Qe){1&Pe&&e.NdJ("click",function(){return Qe._selectViaInteraction()})("keydown",function(Be){return Qe._handleKeydown(Be)}),2&Pe&&(e.Ikx("id",Qe.id),e.uIk("tabindex",Qe._getTabIndex())("aria-selected",Qe._getAriaSelected())("aria-disabled",Qe.disabled.toString()),e.ekj("mat-selected",Qe.selected)("mat-option-multiple",Qe.multiple)("mat-active",Qe.active)("mat-option-disabled",Qe.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:oe,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(Pe,Qe){1&Pe&&(e.F$t(),e.YNc(0,Q,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,te,2,1,"span",2),e._UZ(4,"div",3)),2&Pe&&(e.Q6J("ngIf",Qe.multiple),e.xp6(3),e.Q6J("ngIf",Qe.group&&Qe.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Qe._getHostElement())("matRippleDisabled",Qe.disabled||Qe.disableRipple))},dependencies:[i,g.O5,f],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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}),ft})();function Vt(ft,je,Pe){if(Pe.length){let Qe=je.toArray(),qe=Pe.toArray(),Be=0;for(let me=0;mePe+Qe?Math.max(0,ft-Qe+je):Pe}let Mt=(()=>{class ft{}return ft.\u0275fac=function(Pe){return new(Pe||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({imports:[o,g.ez,L,l]}),ft})()},99602:(Ye,pe,h)=>{"use strict";h.d(pe,{FA:()=>ot,Mq:()=>at,hl:()=>Xt,nW:()=>mn});var e=h(12687),c=h(98184),A=h(84080),w=h(36895),g=h(94650),C=h(4859),T=h(67376),E=h(3238),S=h(77579),U=h(50727),_=h(56451),V=h(39646),z=h(29521),Q=h(40445),te=h(95698),oe=h(68675),ee=h(39300),le=h(21281),de=h(83353),Te=h(37340),v=h(24006),L=h(59549),B=h(284);const W=["mat-calendar-body",""];function q($e,At){if(1&$e&&(g.TgZ(0,"tr",2)(1,"td",3),g._uU(2),g.qZA()()),2&$e){const Z=g.oxw();g.xp6(1),g.Udp("padding-top",Z._cellPadding)("padding-bottom",Z._cellPadding),g.uIk("colspan",Z.numCols),g.xp6(1),g.hij(" ",Z.label," ")}}function ue($e,At){if(1&$e&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&$e){const Z=g.oxw(2);g.Udp("padding-top",Z._cellPadding)("padding-bottom",Z._cellPadding),g.uIk("colspan",Z._firstRowOffset),g.xp6(1),g.hij(" ",Z._firstRowOffset>=Z.labelMinRequiredCells?Z.label:""," ")}}function ye($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"td",7)(1,"button",8),g.NdJ("click",function(mt){const tn=g.CHM(Z).$implicit,En=g.oxw(2);return g.KtG(En._cellClicked(tn,mt))})("focus",function(mt){const tn=g.CHM(Z).$implicit,En=g.oxw(2);return g.KtG(En._emitActiveDateChange(tn,mt))}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA()()}if(2&$e){const Z=At.$implicit,ke=At.index,mt=g.oxw().index,St=g.oxw();g.Udp("width",St._cellWidth)("padding-top",St._cellPadding)("padding-bottom",St._cellPadding),g.uIk("data-mat-row",mt)("data-mat-col",ke),g.xp6(1),g.ekj("mat-calendar-body-disabled",!Z.enabled)("mat-calendar-body-active",St._isActiveCell(mt,ke))("mat-calendar-body-range-start",St._isRangeStart(Z.compareValue))("mat-calendar-body-range-end",St._isRangeEnd(Z.compareValue))("mat-calendar-body-in-range",St._isInRange(Z.compareValue))("mat-calendar-body-comparison-bridge-start",St._isComparisonBridgeStart(Z.compareValue,mt,ke))("mat-calendar-body-comparison-bridge-end",St._isComparisonBridgeEnd(Z.compareValue,mt,ke))("mat-calendar-body-comparison-start",St._isComparisonStart(Z.compareValue))("mat-calendar-body-comparison-end",St._isComparisonEnd(Z.compareValue))("mat-calendar-body-in-comparison-range",St._isInComparisonRange(Z.compareValue))("mat-calendar-body-preview-start",St._isPreviewStart(Z.compareValue))("mat-calendar-body-preview-end",St._isPreviewEnd(Z.compareValue))("mat-calendar-body-in-preview",St._isInPreview(Z.compareValue)),g.Q6J("ngClass",Z.cssClasses)("tabindex",St._isActiveCell(mt,ke)?0:-1),g.uIk("aria-label",Z.ariaLabel)("aria-disabled",!Z.enabled||null)("aria-pressed",St._isSelected(Z.compareValue))("aria-current",St.todayValue===Z.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",St._isSelected(Z.compareValue))("mat-calendar-body-comparison-identical",St._isComparisonIdentical(Z.compareValue))("mat-calendar-body-today",St.todayValue===Z.compareValue),g.xp6(1),g.hij(" ",Z.displayValue," ")}}function Me($e,At){if(1&$e&&(g.TgZ(0,"tr",4),g.YNc(1,ue,2,6,"td",5),g.YNc(2,ye,5,47,"td",6),g.qZA()),2&$e){const Z=At.$implicit,ke=At.index,mt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===ke&&mt._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",Z)}}function we($e,At){if(1&$e&&(g.TgZ(0,"th",5)(1,"span",6),g._uU(2),g.qZA(),g.TgZ(3,"span",7),g._uU(4),g.qZA()()),2&$e){const Z=At.$implicit;g.xp6(2),g.Oqu(Z.long),g.xp6(2),g.Oqu(Z.narrow)}}const Ge=["*"];function ce($e,At){}function Ze($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("_userSelection",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._dateSelected(mt))}),g.qZA()}if(2&$e){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)("comparisonStart",Z.comparisonStart)("comparisonEnd",Z.comparisonEnd)}}function he($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("monthSelected",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._monthSelectedInYearView(mt))})("selectedChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._goToDateInView(mt,"month"))}),g.qZA()}if(2&$e){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)}}function xe($e,At){if(1&$e){const Z=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St.activeDate=mt)})("yearSelected",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._yearSelectedInMultiYearView(mt))})("selectedChange",function(mt){g.CHM(Z);const St=g.oxw();return g.KtG(St._goToDateInView(mt,"year"))}),g.qZA()}if(2&$e){const Z=g.oxw();g.Q6J("activeDate",Z.activeDate)("selected",Z.selected)("dateFilter",Z.dateFilter)("maxDate",Z.maxDate)("minDate",Z.minDate)("dateClass",Z.dateClass)}}function j($e,At){}const R=["button"];function G($e,At){1&$e&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const se=[[["","matDatepickerToggleIcon",""]]],$=["[matDatepickerToggleIcon]"];let _t=(()=>{class $e{constructor(){this.changes=new S.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(Z,ke){return`${Z} \u2013 ${ke}`}formatYearRangeLabel(Z,ke){return`${Z} to ${ke}`}}return $e.\u0275fac=function(Z){return new(Z||$e)},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})();class Je{constructor(At,Z,ke,mt,St={},tn=At,En){this.value=At,this.displayValue=Z,this.ariaLabel=ke,this.enabled=mt,this.cssClasses=St,this.compareValue=tn,this.rawValue=En}}let gt=(()=>{class $e{constructor(Z,ke){this._elementRef=Z,this._ngZone=ke,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new g.vpe,this.previewChange=new g.vpe,this.activeDateChange=new g.vpe,this._enterHandler=mt=>{if(this._skipNextFocus&&"focus"===mt.type)this._skipNextFocus=!1;else if(mt.target&&this.isRange){const St=this._getCellFromElement(mt.target);St&&this._ngZone.run(()=>this.previewChange.emit({value:St.enabled?St:null,event:mt}))}},this._leaveHandler=mt=>{null!==this.previewEnd&&this.isRange&&mt.target&&this._getCellFromElement(mt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:mt}))},ke.runOutsideAngular(()=>{const mt=Z.nativeElement;mt.addEventListener("mouseenter",this._enterHandler,!0),mt.addEventListener("focus",this._enterHandler,!0),mt.addEventListener("mouseleave",this._leaveHandler,!0),mt.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(Z,ke){Z.enabled&&this.selectedValueChange.emit({value:Z.value,event:ke})}_emitActiveDateChange(Z,ke){Z.enabled&&this.activeDateChange.emit({value:Z.value,event:ke})}_isSelected(Z){return this.startValue===Z||this.endValue===Z}ngOnChanges(Z){const ke=Z.numCols,{rows:mt,numCols:St}=this;(Z.rows||ke)&&(this._firstRowOffset=mt&&mt.length&&mt[0].length?St-mt[0].length:0),(Z.cellAspectRatio||ke||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/St+"%"),(ke||!this._cellWidth)&&(this._cellWidth=100/St+"%")}ngOnDestroy(){const Z=this._elementRef.nativeElement;Z.removeEventListener("mouseenter",this._enterHandler,!0),Z.removeEventListener("focus",this._enterHandler,!0),Z.removeEventListener("mouseleave",this._leaveHandler,!0),Z.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(Z,ke){let mt=Z*this.numCols+ke;return Z&&(mt-=this._firstRowOffset),mt==this.activeCell}_focusActiveCell(Z=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>{setTimeout(()=>{const ke=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");ke&&(Z||(this._skipNextFocus=!0),ke.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Z){return Ce(Z,this.startValue,this.endValue)}_isRangeEnd(Z){return ae(Z,this.startValue,this.endValue)}_isInRange(Z){return re(Z,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Z){return Ce(Z,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Z,ke,mt){if(!this._isComparisonStart(Z)||this._isRangeStart(Z)||!this._isInRange(Z))return!1;let St=this.rows[ke][mt-1];if(!St){const tn=this.rows[ke-1];St=tn&&tn[tn.length-1]}return St&&!this._isRangeEnd(St.compareValue)}_isComparisonBridgeEnd(Z,ke,mt){if(!this._isComparisonEnd(Z)||this._isRangeEnd(Z)||!this._isInRange(Z))return!1;let St=this.rows[ke][mt+1];if(!St){const tn=this.rows[ke+1];St=tn&&tn[0]}return St&&!this._isRangeStart(St.compareValue)}_isComparisonEnd(Z){return ae(Z,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Z){return re(Z,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Z){return this.comparisonStart===this.comparisonEnd&&Z===this.comparisonStart}_isPreviewStart(Z){return Ce(Z,this.previewStart,this.previewEnd)}_isPreviewEnd(Z){return ae(Z,this.previewStart,this.previewEnd)}_isInPreview(Z){return re(Z,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(Z){let ke;if(Y(Z)?ke=Z:Y(Z.parentNode)&&(ke=Z.parentNode),ke){const mt=ke.getAttribute("data-mat-row"),St=ke.getAttribute("data-mat-col");if(mt&&St)return this.rows[parseInt(mt)][parseInt(St)]}return null}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(g.R0b))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:W,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(Z,ke){1&Z&&(g.YNc(0,q,3,6,"tr",0),g.YNc(1,Me,3,2,"tr",1)),2&Z&&(g.Q6J("ngIf",ke._firstRowOffset=At&&$e===Z}function re($e,At,Z,ke){return ke&&null!==At&&null!==Z&&At!==Z&&$e>=At&&$e<=Z}class Se{constructor(At,Z){this.start=At,this.end=Z}}let Fe=(()=>{class $e{constructor(Z,ke){this.selection=Z,this._adapter=ke,this._selectionChanged=new S.x,this.selectionChanged=this._selectionChanged,this.selection=Z}updateSelection(Z,ke){const mt=this.selection;this.selection=Z,this._selectionChanged.next({selection:Z,source:ke,oldValue:mt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Z){return this._adapter.isDateInstance(Z)&&this._adapter.isValid(Z)}}return $e.\u0275fac=function(Z){g.$Z()},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),be=(()=>{class $e extends Fe{constructor(Z){super(null,Z)}add(Z){super.updateSelection(Z,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Z=new $e(this._adapter);return Z.updateSelection(this.selection,this),Z}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.LFG(E._A))},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac}),$e})();const H={provide:Fe,deps:[[new g.FiY,new g.tp0,Fe],E._A],useFactory:function P($e,At){return $e||new be(At)}},f=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let r=(()=>{class $e{constructor(Z,ke,mt,St,tn){this._changeDetectorRef=Z,this._dateFormats=ke,this._dateAdapter=mt,this._dir=St,this._rangeStrategy=tn,this._rerenderSubscription=U.w0.EMPTY,this.selectedChange=new g.vpe,this._userSelection=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Z){const ke=this._activeDate,mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._hasSameMonthAndYear(ke,this._activeDate)||this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,oe.O)(null)).subscribe(()=>this._init())}ngOnChanges(Z){const ke=Z.comparisonStart||Z.comparisonEnd;ke&&!ke.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Z){const ke=Z.value,mt=this._getDateFromDayOfMonth(ke);let St,tn;this._selected instanceof Se?(St=this._getDateInCurrentMonth(this._selected.start),tn=this._getDateInCurrentMonth(this._selected.end)):St=tn=this._getDateInCurrentMonth(this._selected),(St!==ke||tn!==ke)&&this.selectedChange.emit(mt),this._userSelection.emit({value:mt,event:Z.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(Z){const mt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Z){const ke=this._activeDate,mt=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,mt?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case z.Ku:this.activeDate=Z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case z.VM:this.activeDate=Z.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case z.K5:case z.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Z.preventDefault());case z.hY:return void(null!=this._previewEnd&&!(0,z.Vb)(Z)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Z}),Z.preventDefault(),Z.stopPropagation()));default:return}this._dateAdapter.compareDate(ke,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let Z=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(Z)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Z){this._matCalendarBody._focusActiveCell(Z)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Z,value:ke}){if(this._rangeStrategy){const St=this._rangeStrategy.createPreview(ke?ke.rawValue:null,this.selected,Z);this._previewStart=this._getCellCompareValue(St.start),this._previewEnd=this._getCellCompareValue(St.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(Z){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Z)}_initWeekdays(){const Z=this._dateAdapter.getFirstDayOfWeek(),ke=this._dateAdapter.getDayOfWeekNames("narrow");let St=this._dateAdapter.getDayOfWeekNames("long").map((tn,En)=>({long:tn,narrow:ke[En]}));this._weekdays=St.slice(Z).concat(St.slice(0,Z))}_createWeekCells(){const Z=this._dateAdapter.getNumDaysInMonth(this.activeDate),ke=this._dateAdapter.getDateNames();this._weeks=[[]];for(let mt=0,St=this._firstWeekOffset;mt=0)&&(!this.maxDate||this._dateAdapter.compareDate(Z,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Z))}_getDateInCurrentMonth(Z){return Z&&this._hasSameMonthAndYear(Z,this.activeDate)?this._dateAdapter.getDate(Z):null}_hasSameMonthAndYear(Z,ke){return!(!Z||!ke||this._dateAdapter.getMonth(Z)!=this._dateAdapter.getMonth(ke)||this._dateAdapter.getYear(Z)!=this._dateAdapter.getYear(ke))}_getCellCompareValue(Z){if(Z){const ke=this._dateAdapter.getYear(Z),mt=this._dateAdapter.getMonth(Z),St=this._dateAdapter.getDate(Z);return new Date(ke,mt,St).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Z){Z instanceof Se?(this._rangeStart=this._getCellCompareValue(Z.start),this._rangeEnd=this._getCellCompareValue(Z.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(Z),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(Z){return!this.dateFilter||this.dateFilter(Z)}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.sBO),g.Y36(E.sG,8),g.Y36(E._A,8),g.Y36(Q.Is,8),g.Y36(f,8))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-month-view"]],viewQuery:function(Z,ke){if(1&Z&&g.Gf(gt,5),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke._matCalendarBody=mt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[g.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(Z,ke){1&Z&&(g.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),g.YNc(3,we,5,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA()(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(St){return ke._dateSelected(St)})("activeDateChange",function(St){return ke._updateActiveDate(St)})("previewChange",function(St){return ke._previewChanged(St)})("keyup",function(St){return ke._handleCalendarBodyKeyup(St)})("keydown",function(St){return ke._handleCalendarBodyKeydown(St)}),g.qZA()()),2&Z&&(g.xp6(3),g.Q6J("ngForOf",ke._weekdays),g.xp6(3),g.Q6J("label",ke._monthLabel)("rows",ke._weeks)("todayValue",ke._todayDate)("startValue",ke._rangeStart)("endValue",ke._rangeEnd)("comparisonStart",ke._comparisonRangeStart)("comparisonEnd",ke._comparisonRangeEnd)("previewStart",ke._previewStart)("previewEnd",ke._previewEnd)("isRange",ke._isRange)("labelMinRequiredCells",3)("activeCell",ke._dateAdapter.getDate(ke.activeDate)-1))},dependencies:[w.sg,gt],encapsulation:2,changeDetection:0}),$e})();const s=24;let p=(()=>{class $e{constructor(Z,ke,mt){this._changeDetectorRef=Z,this._dateAdapter=ke,this._dir=mt,this._rerenderSubscription=U.w0.EMPTY,this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Z){let ke=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),M(this._dateAdapter,ke,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setSelectedYear(Z)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,oe.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const ke=this._dateAdapter.getYear(this._activeDate)-_e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let mt=0,St=[];mtthis._createCellForYear(tn))),St=[]);this._changeDetectorRef.markForCheck()}_yearSelected(Z){const ke=Z.value,mt=this._dateAdapter.createDate(ke,0,1),St=this._getDateFromYear(ke);this.yearSelected.emit(mt),this.selectedChange.emit(St)}_updateActiveDate(Z){const mt=this._activeDate;this.activeDate=this._getDateFromYear(Z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Z){const ke=this._activeDate,mt=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-_e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,s-_e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?-240:-s);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?240:s);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ke,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_getActiveCell(){return _e(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Z){const ke=this._dateAdapter.getMonth(this.activeDate),mt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Z,ke,1));return this._dateAdapter.createDate(Z,ke,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForYear(Z){const ke=this._dateAdapter.createDate(Z,0,1),mt=this._dateAdapter.getYearName(ke),St=this.dateClass?this.dateClass(ke,"multi-year"):void 0;return new Je(Z,mt,mt,this._shouldEnableYear(Z),St)}_shouldEnableYear(Z){if(null==Z||this.maxDate&&Z>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Z{class $e{constructor(Z,ke,mt,St){this._changeDetectorRef=Z,this._dateFormats=ke,this._dateAdapter=mt,this._dir=St,this._rerenderSubscription=U.w0.EMPTY,this.selectedChange=new g.vpe,this.monthSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(Z){let ke=this._activeDate;const mt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(mt,this.minDate,this.maxDate),this._dateAdapter.getYear(ke)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z)),this._setSelectedMonth(Z)}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,oe.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Z){const ke=Z.value,mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),ke,1);this.monthSelected.emit(mt);const St=this._getDateFromMonth(ke);this.selectedChange.emit(St)}_updateActiveDate(Z){const mt=this._activeDate;this.activeDate=this._getDateFromMonth(Z.value),this._dateAdapter.compareDate(mt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Z){const ke=this._activeDate,mt=this._isRtl();switch(Z.keyCode){case z.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?1:-1);break;case z.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,mt?-1:1);break;case z.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case z.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case z.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case z.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case z.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?-10:-1);break;case z.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Z.altKey?10:1);break;case z.K5:case z.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(ke,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Z.preventDefault()}_handleCalendarBodyKeyup(Z){(Z.keyCode===z.L_||Z.keyCode===z.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Z}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let Z=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(ke=>ke.map(mt=>this._createCellForMonth(mt,Z[mt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Z){return Z&&this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Z):null}_getDateFromMonth(Z){const ke=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,1),mt=this._dateAdapter.getNumDaysInMonth(ke);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,Math.min(this._dateAdapter.getDate(this.activeDate),mt))}_createCellForMonth(Z,ke){const mt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Z,1),St=this._dateAdapter.format(mt,this._dateFormats.display.monthYearA11yLabel),tn=this.dateClass?this.dateClass(mt,"year"):void 0;return new Je(Z,ke.toLocaleUpperCase(),St,this._shouldEnableMonth(Z),tn)}_shouldEnableMonth(Z){const ke=this._dateAdapter.getYear(this.activeDate);if(null==Z||this._isYearAndMonthAfterMaxDate(ke,Z)||this._isYearAndMonthBeforeMinDate(ke,Z))return!1;if(!this.dateFilter)return!0;for(let St=this._dateAdapter.createDate(ke,Z,1);this._dateAdapter.getMonth(St)==Z;St=this._dateAdapter.addCalendarDays(St,1))if(this.dateFilter(St))return!0;return!1}_isYearAndMonthAfterMaxDate(Z,ke){if(this.maxDate){const mt=this._dateAdapter.getYear(this.maxDate),St=this._dateAdapter.getMonth(this.maxDate);return Z>mt||Z===mt&&ke>St}return!1}_isYearAndMonthBeforeMinDate(Z,ke){if(this.minDate){const mt=this._dateAdapter.getYear(this.minDate),St=this._dateAdapter.getMonth(this.minDate);return Z{class $e{constructor(Z,ke,mt,St,tn){this._intl=Z,this.calendar=ke,this._dateAdapter=mt,this._dateFormats=St,this._buttonDescriptionId="mat-calendar-button-"+Mt++,this.calendar.stateChanges.subscribe(()=>tn.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const ke=this._dateAdapter.getYear(this.calendar.activeDate)-_e(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),mt=ke+s-1,St=this._dateAdapter.getYearName(this._dateAdapter.createDate(ke,0,1)),tn=this._dateAdapter.getYearName(this._dateAdapter.createDate(mt,0,1));return this._intl.formatYearRange(St,tn)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-s)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:s)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(Z,ke){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(ke)&&this._dateAdapter.getMonth(Z)==this._dateAdapter.getMonth(ke):"year"==this.calendar.currentView?this._dateAdapter.getYear(Z)==this._dateAdapter.getYear(ke):M(this._dateAdapter,Z,ke,this.calendar.minDate,this.calendar.maxDate)}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(_t),g.Y36((0,g.Gpc)(()=>je)),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Ge,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(Z,ke){1&Z&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"button",2),g.NdJ("click",function(){return ke.currentPeriodClicked()}),g.TgZ(3,"span"),g._uU(4),g.qZA(),g.O4$(),g.TgZ(5,"svg",3),g._UZ(6,"polygon",4),g.qZA()(),g.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return ke.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return ke.nextClicked()}),g.qZA()()()),2&Z&&(g.xp6(2),g.uIk("aria-label",ke.periodButtonLabel)("aria-describedby",ke._buttonDescriptionId),g.xp6(1),g.uIk("id",ke._buttonDescriptionId),g.xp6(1),g.Oqu(ke.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==ke.calendar.currentView),g.xp6(4),g.Q6J("disabled",!ke.previousEnabled()),g.uIk("aria-label",ke.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!ke.nextEnabled()),g.uIk("aria-label",ke.nextButtonLabel))},dependencies:[C.lW],encapsulation:2,changeDetection:0}),$e})(),je=(()=>{class $e{constructor(Z,ke,mt,St){this._dateAdapter=ke,this._dateFormats=mt,this._changeDetectorRef=St,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this._userSelection=new g.vpe,this.stateChanges=new S.x,this._intlChanges=Z.changes.subscribe(()=>{St.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(Z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get selected(){return this._selected}set selected(Z){this._selected=Z instanceof Se?Z:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get minDate(){return this._minDate}set minDate(Z){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get maxDate(){return this._maxDate}set maxDate(Z){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get activeDate(){return this._clampedActiveDate}set activeDate(Z){this._clampedActiveDate=this._dateAdapter.clampDate(Z,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(Z){const ke=this._currentView!==Z?Z:null;this._currentView=Z,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),ke&&this.viewChanged.emit(ke)}ngAfterContentInit(){this._calendarHeaderPortal=new A.C5(this.headerComponent||ft),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Z){const ke=Z.minDate&&!this._dateAdapter.sameDate(Z.minDate.previousValue,Z.minDate.currentValue)?Z.minDate:void 0,mt=Z.maxDate&&!this._dateAdapter.sameDate(Z.maxDate.previousValue,Z.maxDate.currentValue)?Z.maxDate:void 0,St=ke||mt||Z.dateFilter;if(St&&!St.firstChange){const tn=this._getCurrentViewComponent();tn&&(this._changeDetectorRef.detectChanges(),tn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Z){const ke=Z.value;(this.selected instanceof Se||ke&&!this._dateAdapter.sameDate(ke,this.selected))&&this.selectedChange.emit(ke),this._userSelection.emit(Z)}_yearSelectedInMultiYearView(Z){this.yearSelected.emit(Z)}_monthSelectedInYearView(Z){this.monthSelected.emit(Z)}_goToDateInView(Z,ke){this.activeDate=Z,this.currentView=ke}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(_t),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-calendar"]],viewQuery:function(Z,ke){if(1&Z&&(g.Gf(r,5),g.Gf(on,5),g.Gf(p,5)),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke.monthView=mt.first),g.iGM(mt=g.CRH())&&(ke.yearView=mt.first),g.iGM(mt=g.CRH())&&(ke.multiYearView=mt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[g._Bn([H]),g.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(Z,ke){1&Z&&(g.YNc(0,ce,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,Ze,1,8,"mat-month-view",2),g.YNc(3,he,1,6,"mat-year-view",3),g.YNc(4,xe,1,6,"mat-multi-year-view",4),g.qZA()),2&Z&&(g.Q6J("cdkPortalOutlet",ke._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",ke.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},dependencies:[w.RF,w.n9,e.kH,A.Pl,r,on,p],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),$e})();const Pe={transformPanel:(0,Te.X$)("transformPanel",[(0,Te.eR)("void => enter-dropdown",(0,Te.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Te.F4)([(0,Te.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Te.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Te.eR)("void => enter-dialog",(0,Te.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Te.F4)([(0,Te.oB)({opacity:0,transform:"scale(0.7)"}),(0,Te.oB)({transform:"none",opacity:1})]))),(0,Te.eR)("* => void",(0,Te.jt)("100ms linear",(0,Te.oB)({opacity:0})))]),fadeInCalendar:(0,Te.X$)("fadeInCalendar",[(0,Te.SB)("void",(0,Te.oB)({opacity:0})),(0,Te.SB)("enter",(0,Te.oB)({opacity:1})),(0,Te.eR)("void => *",(0,Te.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Qe=0;const qe=new g.OlP("mat-datepicker-scroll-strategy"),me={provide:qe,deps:[c.aV],useFactory:function Be($e){return()=>$e.scrollStrategies.reposition()}},ve=(0,E.pj)(class{constructor($e){this._elementRef=$e}});let ze=(()=>{class $e extends ve{constructor(Z,ke,mt,St,tn,En){super(Z),this._changeDetectorRef=ke,this._globalModel=mt,this._dateAdapter=St,this._rangeSelectionStrategy=tn,this._subscriptions=new U.w0,this._animationDone=new S.x,this._actionsPortal=null,this._closeButtonText=En.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Z){const ke=this._model.selection,mt=Z.value,St=ke instanceof Se;if(St&&this._rangeSelectionStrategy){const tn=this._rangeSelectionStrategy.selectionFinished(mt,ke,Z.event);this._model.updateSelection(tn,this)}else mt&&(St||!this._dateAdapter.sameDate(mt,ke))&&this._model.add(mt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Z,ke){this._model=Z?this._globalModel.clone():this._globalModel,this._actionsPortal=Z,ke&&this._changeDetectorRef.detectChanges()}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Fe),g.Y36(E._A),g.Y36(f,8),g.Y36(_t))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker-content"]],viewQuery:function(Z,ke){if(1&Z&&g.Gf(je,5),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke._calendar=mt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Z,ke){1&Z&&g.WFA("@transformPanel.done",function(){return ke._animationDone.next()}),2&Z&&(g.d8E("@transformPanel",ke._animationState),g.ekj("mat-datepicker-content-touch",ke.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[g.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(Z,ke){if(1&Z&&(g.TgZ(0,"div",0)(1,"mat-calendar",1),g.NdJ("yearSelected",function(St){return ke.datepicker._selectYear(St)})("monthSelected",function(St){return ke.datepicker._selectMonth(St)})("viewChanged",function(St){return ke.datepicker._viewChanged(St)})("_userSelection",function(St){return ke._handleUserSelection(St)}),g.qZA(),g.YNc(2,j,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return ke._closeButtonFocused=!0})("blur",function(){return ke._closeButtonFocused=!1})("click",function(){return ke.datepicker.close()}),g._uU(4),g.qZA()()),2&Z){let mt;g.ekj("mat-datepicker-content-container-with-custom-header",ke.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",ke._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(mt=ke._dialogLabelId)&&void 0!==mt?mt:void 0),g.xp6(1),g.Q6J("id",ke.datepicker.id)("ngClass",ke.datepicker.panelClass)("startAt",ke.datepicker.startAt)("startView",ke.datepicker.startView)("minDate",ke.datepicker._getMinDate())("maxDate",ke.datepicker._getMaxDate())("dateFilter",ke.datepicker._getDateFilter())("headerComponent",ke.datepicker.calendarHeaderComponent)("selected",ke._getSelected())("dateClass",ke.datepicker.dateClass)("comparisonStart",ke.comparisonStart)("comparisonEnd",ke.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",ke._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!ke._closeButtonFocused),g.Q6J("color",ke.color||"primary"),g.xp6(1),g.Oqu(ke._closeButtonText)}},dependencies:[w.mk,C.lW,e.mK,A.Pl,je],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Pe.transformPanel,Pe.fadeInCalendar]},changeDetection:0}),$e})(),tt=(()=>{class $e{constructor(Z,ke,mt,St,tn,En,jn){this._overlay=Z,this._ngZone=ke,this._viewContainerRef=mt,this._dateAdapter=tn,this._dir=En,this._model=jn,this._inputStateChanges=U.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this.openedStream=new g.vpe,this.closedStream=new g.vpe,this._opened=!1,this.id="mat-datepicker-"+Qe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new S.x,this._scrollStrategy=St}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Z){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Z){this._color=Z}get touchUi(){return this._touchUi}set touchUi(Z){this._touchUi=(0,le.Ig)(Z)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Z){const ke=(0,le.Ig)(Z);ke!==this._disabled&&(this._disabled=ke,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(Z){this._restoreFocus=(0,le.Ig)(Z)}get panelClass(){return this._panelClass}set panelClass(Z){this._panelClass=(0,le.du)(Z)}get opened(){return this._opened}set opened(Z){(0,le.Ig)(Z)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(Z){const ke=Z.xPosition||Z.yPosition;if(ke&&!ke.firstChange&&this._overlayRef){const mt=this._overlayRef.getConfig().positionStrategy;mt instanceof c._G&&(this._setConnectedPositions(mt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Z){this._model.add(Z)}_selectYear(Z){this.yearSelected.emit(Z)}_selectMonth(Z){this.monthSelected.emit(Z)}_viewChanged(Z){this.viewChanged.emit(Z)}registerInput(Z){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Z,this._inputStateChanges=Z.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Z){var ke;this._actionsPortal=Z,null===(ke=this._componentRef)||void 0===ke||ke.instance._assignActions(Z,!0)}removeActions(Z){var ke;Z===this._actionsPortal&&(this._actionsPortal=null,null===(ke=this._componentRef)||void 0===ke||ke.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,de.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const ke=this._componentRef.instance;ke._startExitAnimation(),ke._animationDone.pipe((0,te.q)(1)).subscribe(()=>this._destroyOverlay())}const Z=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(Z)):Z()}_applyPendingSelection(){var Z,ke;null===(Z=this._componentRef)||void 0===Z||null===(ke=Z.instance)||void 0===ke||ke._applyPendingSelection()}_forwardContentValues(Z){Z.datepicker=this,Z.color=this.color,Z._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Z._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Z=this.touchUi,ke=new A.C5(ze,this._viewContainerRef),mt=this._overlayRef=this._overlay.create(new c.X_({positionStrategy:Z?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Z?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:Z?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(Z?"dialog":"popup")}));this._getCloseStream(mt).subscribe(St=>{St&&St.preventDefault(),this.close()}),mt.keydownEvents().subscribe(St=>{const tn=St.keyCode;(tn===z.LH||tn===z.JH||tn===z.oh||tn===z.SV||tn===z.Ku||tn===z.VM)&&St.preventDefault()}),this._componentRef=mt.attach(ke),this._forwardContentValues(this._componentRef.instance),Z||this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(()=>mt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const Z=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Z)}_setConnectedPositions(Z){const ke="end"===this.xPosition?"end":"start",mt="start"===ke?"end":"start",St="above"===this.yPosition?"bottom":"top",tn="top"===St?"bottom":"top";return Z.withPositions([{originX:ke,originY:tn,overlayX:ke,overlayY:St},{originX:ke,originY:St,overlayX:ke,overlayY:tn},{originX:mt,originY:tn,overlayX:mt,overlayY:St},{originX:mt,originY:St,overlayX:mt,overlayY:tn}])}_getCloseStream(Z){return(0,_.T)(Z.backdropClick(),Z.detachments(),Z.keydownEvents().pipe((0,ee.h)(ke=>ke.keyCode===z.hY&&!(0,z.Vb)(ke)||this.datepickerInput&&(0,z.Vb)(ke,"altKey")&&ke.keyCode===z.LH)))}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(c.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(qe),g.Y36(E._A,8),g.Y36(Q.Is,8),g.Y36(Fe))},$e.\u0275dir=g.lG2({type:$e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[g.TTD]}),$e})(),at=(()=>{class $e extends tt{}return $e.\u0275fac=function(){let At;return function(ke){return(At||(At=g.n5z($e)))(ke||$e)}}(),$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([H,{provide:tt,useExisting:$e}]),g.qOj],decls:0,vars:0,template:function(Z,ke){},encapsulation:2,changeDetection:0}),$e})();class Re{constructor(At,Z){this.target=At,this.targetElement=Z,this.value=this.target.value}}let st=(()=>{class $e{constructor(Z,ke,mt){this._elementRef=Z,this._dateAdapter=ke,this._dateFormats=mt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new S.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=U.w0.EMPTY,this._localeSubscription=U.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=St=>{const tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value));return!tn||this._matchesFilter(tn)?null:{matDatepickerFilter:!0}},this._minValidator=St=>{const tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value)),En=this._getMinDate();return!En||!tn||this._dateAdapter.compareDate(En,tn)<=0?null:{matDatepickerMin:{min:En,actual:tn}}},this._maxValidator=St=>{const tn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(St.value)),En=this._getMaxDate();return!En||!tn||this._dateAdapter.compareDate(En,tn)>=0?null:{matDatepickerMax:{max:En,actual:tn}}},this._lastValueValid=!1,this._localeSubscription=ke.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Z){this._assignValueProgrammatically(Z)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Z){const ke=(0,le.Ig)(Z),mt=this._elementRef.nativeElement;this._disabled!==ke&&(this._disabled=ke,this.stateChanges.next(void 0)),ke&&this._isInitialized&&mt.blur&&mt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Z){this._model=Z,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(ke=>{if(this._shouldHandleChangeEvent(ke)){const mt=this._getValueFromModel(ke.selection);this._lastValueValid=this._isValidValue(mt),this._cvaOnChange(mt),this._onTouched(),this._formatValue(mt),this.dateInput.emit(new Re(this,this._elementRef.nativeElement)),this.dateChange.emit(new Re(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Z){(function Pt($e,At){const Z=Object.keys($e);for(let ke of Z){const{previousValue:mt,currentValue:St}=$e[ke];if(!At.isDateInstance(mt)||!At.isDateInstance(St))return!0;if(!At.sameDate(mt,St))return!0}return!1})(Z,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Z){this._validatorOnChange=Z}validate(Z){return this._validator?this._validator(Z):null}writeValue(Z){this._assignValueProgrammatically(Z)}registerOnChange(Z){this._cvaOnChange=Z}registerOnTouched(Z){this._onTouched=Z}setDisabledState(Z){this.disabled=Z}_onKeydown(Z){Z.altKey&&Z.keyCode===z.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Z.preventDefault())}_onInput(Z){const ke=this._lastValueValid;let mt=this._dateAdapter.parse(Z,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(mt),mt=this._dateAdapter.getValidDateOrNull(mt);const St=!this._dateAdapter.sameDate(mt,this.value);!mt||St?this._cvaOnChange(mt):(Z&&!this.value&&this._cvaOnChange(mt),ke!==this._lastValueValid&&this._validatorOnChange()),St&&(this._assignValue(mt),this.dateInput.emit(new Re(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Re(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Z){this._elementRef.nativeElement.value=null!=Z?this._dateAdapter.format(Z,this._dateFormats.display.dateInput):""}_assignValue(Z){this._model?(this._assignValueToModel(Z),this._pendingValue=null):this._pendingValue=Z}_isValidValue(Z){return!Z||this._dateAdapter.isValid(Z)}_parentDisabled(){return!1}_assignValueProgrammatically(Z){Z=this._dateAdapter.deserialize(Z),this._lastValueValid=this._isValidValue(Z),Z=this._dateAdapter.getValidDateOrNull(Z),this._assignValue(Z),this._formatValue(Z)}_matchesFilter(Z){const ke=this._getDateFilter();return!ke||ke(Z)}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(E._A,8),g.Y36(E.sG,8))},$e.\u0275dir=g.lG2({type:$e,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),$e})();const jt={provide:v.JU,useExisting:(0,g.Gpc)(()=>Xt),multi:!0},cn={provide:v.Cf,useExisting:(0,g.Gpc)(()=>Xt),multi:!0};let Xt=(()=>{class $e extends st{constructor(Z,ke,mt,St){super(Z,ke,mt),this._formField=St,this._closedSubscription=U.w0.EMPTY,this._validator=v.kI.compose(super._getValidators())}set matDatepicker(Z){Z&&(this._datepicker=Z,this._closedSubscription=Z.closedStream.subscribe(()=>this._onTouched()),this._registerModel(Z.registerInput(this)))}get min(){return this._min}set min(Z){const ke=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z));this._dateAdapter.sameDate(ke,this._min)||(this._min=ke,this._validatorOnChange())}get max(){return this._max}set max(Z){const ke=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Z));this._dateAdapter.sameDate(ke,this._max)||(this._max=ke,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(Z){const ke=this._matchesFilter(this.value);this._dateFilter=Z,this._matchesFilter(this.value)!==ke&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(Z){return Z}_assignValueToModel(Z){this._model&&this._model.updateSelection(Z,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Z){return Z.source!==this}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(g.SBq),g.Y36(E._A,8),g.Y36(E.sG,8),g.Y36(L.G_,8))},$e.\u0275dir=g.lG2({type:$e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Z,ke){1&Z&&g.NdJ("input",function(St){return ke._onInput(St.target.value)})("change",function(){return ke._onChange()})("blur",function(){return ke._onBlur()})("keydown",function(St){return ke._onKeydown(St)}),2&Z&&(g.Ikx("disabled",ke.disabled),g.uIk("aria-haspopup",ke._datepicker?"dialog":null)("aria-owns",(null==ke._datepicker?null:ke._datepicker.opened)&&ke._datepicker.id||null)("min",ke.min?ke._dateAdapter.toIso8601(ke.min):null)("max",ke.max?ke._dateAdapter.toIso8601(ke.max):null)("data-mat-calendar",ke._datepicker?ke._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([jt,cn,{provide:B.Jk,useExisting:$e}]),g.qOj]}),$e})(),sn=(()=>{class $e{}return $e.\u0275fac=function(Z){return new(Z||$e)},$e.\u0275dir=g.lG2({type:$e,selectors:[["","matDatepickerToggleIcon",""]]}),$e})(),mn=(()=>{class $e{constructor(Z,ke,mt){this._intl=Z,this._changeDetectorRef=ke,this._stateChanges=U.w0.EMPTY;const St=Number(mt);this.tabIndex=St||0===St?St:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Z){this._disabled=(0,le.Ig)(Z)}ngOnChanges(Z){Z.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Z){this.datepicker&&!this.disabled&&(this.datepicker.open(),Z.stopPropagation())}_watchStateChanges(){const Z=this.datepicker?this.datepicker.stateChanges:(0,V.of)(),ke=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,V.of)(),mt=this.datepicker?(0,_.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,V.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,_.T)(this._intl.changes,Z,ke,mt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return $e.\u0275fac=function(Z){return new(Z||$e)(g.Y36(_t),g.Y36(g.sBO),g.$8M("tabindex"))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Z,ke,mt){if(1&Z&&g.Suo(mt,sn,5),2&Z){let St;g.iGM(St=g.CRH())&&(ke._customIcon=St.first)}},viewQuery:function(Z,ke){if(1&Z&&g.Gf(R,5),2&Z){let mt;g.iGM(mt=g.CRH())&&(ke._button=mt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Z,ke){1&Z&&g.NdJ("click",function(St){return ke._open(St)}),2&Z&&(g.uIk("tabindex",null)("data-mat-calendar",ke.datepicker?ke.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",ke.datepicker&&ke.datepicker.opened)("mat-accent",ke.datepicker&&"accent"===ke.datepicker.color)("mat-warn",ke.datepicker&&"warn"===ke.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:$,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(Z,ke){1&Z&&(g.F$t(se),g.TgZ(0,"button",0,1),g.YNc(2,G,2,0,"svg",2),g.Hsn(3),g.qZA()),2&Z&&(g.Q6J("disabled",ke.disabled)("disableRipple",ke.disableRipple),g.uIk("aria-haspopup",ke.datepicker?"dialog":null)("aria-label",ke.ariaLabel||ke._intl.openCalendarLabel)("tabindex",ke.disabled?-1:ke.tabIndex),g.xp6(2),g.Q6J("ngIf",!ke._customIcon))},dependencies:[w.O5,C.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),$e})(),ot=(()=>{class $e{}return $e.\u0275fac=function(Z){return new(Z||$e)},$e.\u0275mod=g.oAB({type:$e}),$e.\u0275inj=g.cJS({providers:[_t,me],imports:[w.ez,C.ot,c.U8,e.rt,A.eL,E.BQ,T.ZD]}),$e})()},65412:(Ye,pe,h)=>{"use strict";h.d(pe,{WI:()=>Ee,uw:()=>Ce,H8:()=>be,vA:()=>j,xY:()=>Fe,Is:()=>P,so:()=>se,uh:()=>Se});var e=h(12687),c=h(98184),A=h(83353),w=h(84080),g=h(36895),C=h(94650),T=h(29521),E=h(77579),S=h(49770),U=h(39646),_=h(40445),V=h(68675);function z(H,i){}class Q{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 oe=(()=>{class H extends w.en{constructor(o,f,l,a,n,t,r,s){super(),this._elementRef=o,this._focusTrapFactory=f,this._config=a,this._interactivityChecker=n,this._ngZone=t,this._overlayRef=r,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const p=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),p},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=l}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const f=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),f}attachTemplatePortal(o){this._portalOutlet.hasAttached();const f=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),f}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,f){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const l=()=>{o.removeEventListener("blur",l),o.removeEventListener("mousedown",l),o.removeAttribute("tabindex")};o.addEventListener("blur",l),o.addEventListener("mousedown",l)})),o.focus(f)}_focusByCssSelector(o,f){let l=this._elementRef.nativeElement.querySelector(o);l&&this._forceFocus(l,f)}_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(f=>{f||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 f=null;if("string"==typeof o?f=this._document.querySelector(o):"boolean"==typeof o?f=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(f=o),this._config.restoreFocus&&f&&"function"==typeof f.focus){const l=(0,A.ht)(),a=this._elementRef.nativeElement;(!l||l===this._document.body||l===a||a.contains(l))&&(this._focusMonitor?(this._focusMonitor.focusVia(f,this._closeInteractionType),this._closeInteractionType=null):f.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,f=(0,A.ht)();return o===f||o.contains(f)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,A.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(Q),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(c.Iu),C.Y36(e.tE))},H.\u0275cmp=C.Xpm({type:H,selectors:[["cdk-dialog-container"]],viewQuery:function(o,f){if(1&o&&C.Gf(w.Pl,7),2&o){let l;C.iGM(l=C.CRH())&&(f._portalOutlet=l.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(o,f){2&o&&C.uIk("id",f._config.id||null)("role",f._config.role)("aria-modal",f._config.ariaModal)("aria-labelledby",f._config.ariaLabel?null:f._ariaLabelledBy)("aria-label",f._config.ariaLabel)("aria-describedby",f._config.ariaDescribedBy||null)},features:[C.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,f){1&o&&C.YNc(0,z,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),H})();class ee{constructor(i,o){this.overlayRef=i,this.config=o,this.closed=new E.x,this.disableClose=o.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(f=>{f.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(f)&&(f.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(i,o){if(this.containerInstance){const f=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this.overlayRef.dispose(),f.next(i),f.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",o=""){return this.overlayRef.updateSize({width:i,height:o}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const le=new C.OlP("DialogScrollStrategy"),de=new C.OlP("DialogData"),Te=new C.OlP("DefaultDialogConfig"),L={provide:le,deps:[c.aV],useFactory:function v(H){return()=>H.scrollStrategies.block()}};let B=0,W=(()=>{class H{constructor(o,f,l,a,n,t){this._overlay=o,this._injector=f,this._defaultOptions=l,this._parentDialog=a,this._overlayContainer=n,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=t}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(o,f){(f={...this._defaultOptions||new Q,...f}).id=f.id||"cdk-dialog-"+B++,f.id&&this.getDialogById(f.id);const a=this._getOverlayConfig(f),n=this._overlay.create(a),t=new ee(n,f),r=this._attachContainer(n,t,f);return t.containerInstance=r,this._attachDialogContent(o,t,r,f),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(t),t.closed.subscribe(()=>this._removeOpenDialog(t,!0)),this.afterOpened.next(t),t}closeAll(){q(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(f=>f.id===o)}ngOnDestroy(){q(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),q(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const f=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&&(f.backdropClass=o.backdropClass),f}_attachContainer(o,f,l){var a,n;const t=null!==(a=l.injector)&&void 0!==a?a:null===(n=l.viewContainerRef)||void 0===n?void 0:n.injector,r=[{provide:Q,useValue:l},{provide:ee,useValue:f},{provide:c.Iu,useValue:o}];let s;l.container?"function"==typeof l.container?s=l.container:(s=l.container.type,r.push(...l.container.providers(l))):s=oe;const d=new w.C5(s,l.viewContainerRef,C.zs3.create({parent:t||this._injector,providers:r}),l.componentFactoryResolver);return o.attach(d).instance}_attachDialogContent(o,f,l,a){const n=this._createInjector(a,f,l);if(o instanceof C.Rgc){let t={$implicit:a.data,dialogRef:f};a.templateContext&&(t={...t,..."function"==typeof a.templateContext?a.templateContext():a.templateContext}),l.attachTemplatePortal(new w.UE(o,null,t,n))}else{const t=l.attachComponentPortal(new w.C5(o,a.viewContainerRef,n,a.componentFactoryResolver));f.componentInstance=t.instance}}_createInjector(o,f,l){const a=o&&o.viewContainerRef&&o.viewContainerRef.injector,n=[{provide:de,useValue:o.data},{provide:ee,useValue:f}];return o.providers&&("function"==typeof o.providers?n.push(...o.providers(f,o,l)):n.push(...o.providers)),o.direction&&(!a||!a.get(_.Is,null,C.XFs.Optional))&&n.push({provide:_.Is,useValue:{value:o.direction,change:(0,U.of)()}}),C.zs3.create({parent:o.injector||a||this._injector,providers:n})}_removeOpenDialog(o,f){const l=this.openDialogs.indexOf(o);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,n)=>{a?n.setAttribute("aria-hidden",a):n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),f&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const f=o.parentElement.children;for(let l=f.length-1;l>-1;l--){const a=f[l];a!==o&&"SCRIPT"!==a.nodeName&&"STYLE"!==a.nodeName&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return H.\u0275fac=function(o){return new(o||H)(C.LFG(c.aV),C.LFG(C.zs3),C.LFG(Te,8),C.LFG(H,12),C.LFG(c.Xj),C.LFG(le))},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac}),H})();function q(H,i){let o=H.length;for(;o--;)i(H[o])}let ue=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=C.oAB({type:H}),H.\u0275inj=C.cJS({providers:[W,L],imports:[c.U8,w.eL,e.rt,w.eL]}),H})();var ye=h(3238),Me=h(56451),we=h(39300),Ge=h(95698),ce=h(37340);function Ze(H,i){}const he={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},xe={dialogContainer:(0,ce.X$)("dialogContainer",[(0,ce.SB)("void, exit",(0,ce.oB)({opacity:0,transform:"scale(0.7)"})),(0,ce.SB)("enter",(0,ce.oB)({transform:"none"})),(0,ce.eR)("* => enter",(0,ce.ru)([(0,ce.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,ce.oB)({transform:"none",opacity:1})),(0,ce.IO)("@*",(0,ce.pV)(),{optional:!0})]),he),(0,ce.eR)("* => void, * => exit",(0,ce.ru)([(0,ce.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ce.oB)({opacity:0})),(0,ce.IO)("@*",(0,ce.pV)(),{optional:!0})]),he)])};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=he.params.enterAnimationDuration,this.exitAnimationDuration=he.params.exitAnimationDuration}}let R=(()=>{class H extends oe{constructor(o,f,l,a,n,t,r,s){super(o,f,l,a,n,t,r,s),this._animationStateChanged=new C.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(j),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(c.Iu),C.Y36(e.tE))},H.\u0275cmp=C.Xpm({type:H,selectors:[["ng-component"]],features:[C.qOj],decls:0,vars:0,template:function(o,f){},encapsulation:2}),H})(),G=(()=>{class H extends R{constructor(o,f,l,a,n,t,r,s,d){super(o,f,l,a,n,t,r,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:o,totalTime:f}){"enter"===o?this._openAnimationDone(f):"exit"===o&&this._animationStateChanged.next({state:"closed",totalTime:f})}_onAnimationStart({toState:o,totalTime:f}){"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:f}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:f})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||he.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||he.params.exitAnimationDuration}}}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(C.SBq),C.Y36(e.qV),C.Y36(g.K0,8),C.Y36(j),C.Y36(e.ic),C.Y36(C.R0b),C.Y36(c.Iu),C.Y36(C.sBO),C.Y36(e.tE))},H.\u0275cmp=C.Xpm({type:H,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(o,f){1&o&&C.WFA("@dialogContainer.start",function(a){return f._onAnimationStart(a)})("@dialogContainer.done",function(a){return f._onAnimationDone(a)}),2&o&&(C.Ikx("id",f._config.id),C.uIk("aria-modal",f._config.ariaModal)("role",f._config.role)("aria-labelledby",f._config.ariaLabel?null:f._ariaLabelledBy)("aria-label",f._config.ariaLabel)("aria-describedby",f._config.ariaDescribedBy||null),C.d8E("@dialogContainer",f._getAnimationState()))},features:[C.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,f){1&o&&C.YNc(0,Ze,0,0,"ng-template",0)},dependencies:[w.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:[xe.dialogContainer]}}),H})();class se{constructor(i,o,f){this._ref=i,this._containerInstance=f,this._afterOpened=new E.x,this._beforeClosed=new E.x,this._state=0,this.disableClose=o.disableClose,this.id=i.id,f._animationStateChanged.pipe((0,we.h)(l=>"opened"===l.state),(0,Ge.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),f._animationStateChanged.pipe((0,we.h)(l=>"closed"===l.state),(0,Ge.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Me.T)(this.backdropClick(),this.keydownEvents().pipe((0,we.h)(l=>l.keyCode===T.hY&&!this.disableClose&&!(0,T.Vb)(l)))).subscribe(l=>{this.disableClose||(l.preventDefault(),function $(H,i,o){H._closeInteractionType=i,H.close(o)}(this,"keydown"===l.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe((0,we.h)(o=>"closing"===o.state),(0,Ge.q)(1)).subscribe(o=>{this._beforeClosed.next(i),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(i){let o=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?o.left(i.left):o.right(i.right):o.centerHorizontally(),i&&(i.top||i.bottom)?i.top?o.top(i.top):o.bottom(i.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",o=""){return this._ref.updateSize(i,o),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Ee=new C.OlP("MatDialogData"),Oe=new C.OlP("mat-dialog-default-options"),ct=new C.OlP("mat-dialog-scroll-strategy"),Je={provide:ct,deps:[c.aV],useFactory:function _t(H){return()=>H.scrollStrategies.block()}};let gt=0,Y=(()=>{class H{constructor(o,f,l,a,n,t,r,s,d,p){this._overlay=o,this._defaultOptions=l,this._parentDialog=a,this._dialogRefConstructor=r,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new E.x,this._afterOpenedAtThisLevel=new E.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,S.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,V.O)(void 0))),this._scrollStrategy=t,this._dialog=f.get(W)}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,f){let l;(f={...this._defaultOptions||new j,...f}).id=f.id||`${this._idPrefix}${gt++}`,f.scrollStrategy=f.scrollStrategy||this._scrollStrategy();const a=this._dialog.open(o,{...f,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:j,useValue:f},{provide:Q,useValue:f}]},templateContext:()=>({dialogRef:l}),providers:(n,t,r)=>{var s;return l=new this._dialogRefConstructor(n,f,r),l.updatePosition(null===(s=f)||void 0===s?void 0:s.position),[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:l}]}});return l.componentInstance=a.componentInstance,this.openDialogs.push(l),this.afterOpened.next(l),l.afterClosed().subscribe(()=>{const n=this.openDialogs.indexOf(l);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||this._getAfterAllClosed().next())}),l}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(f=>f.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let f=o.length;for(;f--;)o[f].close()}}return H.\u0275fac=function(o){C.$Z()},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac}),H})(),Ce=(()=>{class H extends Y{constructor(o,f,l,a,n,t,r,s){super(o,f,a,t,r,n,se,G,Ee,s)}}return H.\u0275fac=function(o){return new(o||H)(C.LFG(c.aV),C.LFG(C.zs3),C.LFG(g.Ye,8),C.LFG(Oe,8),C.LFG(ct),C.LFG(H,12),C.LFG(c.Xj),C.LFG(C.QbO,8))},H.\u0275prov=C.Yz7({token:H,factory:H.\u0275fac}),H})(),ae=0,Se=(()=>{class H{constructor(o,f,l){this._dialogRef=o,this._elementRef=f,this._dialog=l,this.id="mat-dialog-title-"+ae++}ngOnInit(){this._dialogRef||(this._dialogRef=function Ue(H,i){let o=H.nativeElement.parentElement;for(;o&&!o.classList.contains("mat-dialog-container");)o=o.parentElement;return o?i.find(f=>f.id===o.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const o=this._dialogRef._containerInstance;o&&!o._ariaLabelledBy&&(o._ariaLabelledBy=this.id)})}}return H.\u0275fac=function(o){return new(o||H)(C.Y36(se,8),C.Y36(C.SBq),C.Y36(Ce))},H.\u0275dir=C.lG2({type:H,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(o,f){2&o&&C.Ikx("id",f.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),H})(),Fe=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=C.lG2({type:H,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),H})(),be=(()=>{class H{constructor(){this.align="start"}}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=C.lG2({type:H,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(o,f){2&o&&C.ekj("mat-dialog-actions-align-center","center"===f.align)("mat-dialog-actions-align-end","end"===f.align)},inputs:{align:"align"}}),H})(),P=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=C.oAB({type:H}),H.\u0275inj=C.cJS({providers:[Ce,Je],imports:[ue,c.U8,w.eL,ye.BQ,ye.BQ]}),H})()},44850:(Ye,pe,h)=>{"use strict";h.d(pe,{d:()=>w,t:()=>g});var e=h(94650),c=h(21281),A=h(3238);let w=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(E){this._vertical=(0,c.Ig)(E)}get inset(){return this._inset}set inset(E){this._inset=(0,c.Ig)(E)}}return C.\u0275fac=function(E){return new(E||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(E,S){2&E&&(e.uIk("aria-orientation",S.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",S.vertical)("mat-divider-horizontal",!S.vertical)("mat-divider-inset",S.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(E,S){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),C})(),g=(()=>{class C{}return C.\u0275fac=function(E){return new(E||C)},C.\u0275mod=e.oAB({type:C}),C.\u0275inj=e.cJS({imports:[A.BQ,A.BQ]}),C})()},37084:(Ye,pe,h)=>{"use strict";h.d(pe,{pp:()=>Je,To:()=>gt,ib:()=>se,HS:()=>j,u4:()=>Xe,yz:()=>ct,yK:()=>_t});var e=h(94650),c=h(95017),A=h(21281),w=h(77579),g=h(50727);let C=0;const T=new e.OlP("CdkAccordion");let E=(()=>{class Y{constructor(){this._stateChanges=new w.x,this._openCloseAllActions=new w.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(ae){this._multi=(0,A.Ig)(ae)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(ae){this._stateChanges.next(ae)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:T,useExisting:Y}]),e.TTD]}),Y})(),S=0,U=(()=>{class Y{constructor(ae,re,Se){this.accordion=ae,this._changeDetectorRef=re,this._expansionDispatcher=Se,this._openCloseAllSubscription=g.w0.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+S++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Se.listen((Fe,be)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===be&&this.id!==Fe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(ae){ae=(0,A.Ig)(ae),this._expanded!==ae&&(this._expanded=ae,this.expandedChange.emit(ae),ae?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ae){this._disabled=(0,A.Ig)(ae)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(ae=>{this.disabled||(this.expanded=ae)})}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(T,12),e.Y36(e.sBO),e.Y36(c.A8))},Y.\u0275dir=e.lG2({type:Y,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:T,useValue:void 0}])]}),Y})(),_=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({}),Y})();var V=h(84080),z=h(36895),Q=h(3238),te=h(12687),oe=h(71884),ee=h(68675),le=h(39300),de=h(95698),Te=h(29521),v=h(60515),L=h(56451),B=h(37340);const W=["body"];function q(Y,Ce){}const ue=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],ye=["mat-expansion-panel-header","*","mat-action-row"];function Me(Y,Ce){if(1&Y&&e._UZ(0,"span",2),2&Y){const ae=e.oxw();e.Q6J("@indicatorRotate",ae._getExpandedState())}}const we=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Ge=["mat-panel-title","mat-panel-description","*"],ce=new e.OlP("MAT_ACCORDION"),Ze="225ms cubic-bezier(0.4,0.0,0.2,1)",he={indicatorRotate:(0,B.X$)("indicatorRotate",[(0,B.SB)("collapsed, void",(0,B.oB)({transform:"rotate(0deg)"})),(0,B.SB)("expanded",(0,B.oB)({transform:"rotate(180deg)"})),(0,B.eR)("expanded <=> collapsed, void => collapsed",(0,B.jt)(Ze))]),bodyExpansion:(0,B.X$)("bodyExpansion",[(0,B.SB)("collapsed, void",(0,B.oB)({height:"0px",visibility:"hidden"})),(0,B.SB)("expanded",(0,B.oB)({height:"*",visibility:"visible"})),(0,B.eR)("expanded <=> collapsed, void => collapsed",(0,B.jt)(Ze))])},xe=new e.OlP("MAT_EXPANSION_PANEL");let j=(()=>{class Y{constructor(ae,re){this._template=ae,this._expansionPanel=re}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(e.Rgc),e.Y36(xe,8))},Y.\u0275dir=e.lG2({type:Y,selectors:[["ng-template","matExpansionPanelContent",""]]}),Y})(),R=0;const G=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let se=(()=>{class Y extends U{constructor(ae,re,Se,Fe,be,Ue,P){super(ae,re,Se),this._viewContainerRef=Fe,this._animationMode=Ue,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new w.x,this._headerId="mat-expansion-panel-header-"+R++,this._bodyAnimationDone=new w.x,this.accordion=ae,this._document=be,this._bodyAnimationDone.pipe((0,oe.x)((H,i)=>H.fromState===i.fromState&&H.toState===i.toState)).subscribe(H=>{"void"!==H.fromState&&("expanded"===H.toState?this.afterExpand.emit():"collapsed"===H.toState&&this.afterCollapse.emit())}),P&&(this.hideToggle=P.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(ae){this._hideToggle=(0,A.Ig)(ae)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(ae){this._togglePosition=ae}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,ee.O)(null),(0,le.h)(()=>this.expanded&&!this._portal),(0,de.q)(1)).subscribe(()=>{this._portal=new V.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(ae){this._inputChanges.next(ae)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const ae=this._document.activeElement,re=this._body.nativeElement;return ae===re||re.contains(ae)}return!1}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(ce,12),e.Y36(e.sBO),e.Y36(c.A8),e.Y36(e.s_b),e.Y36(z.K0),e.Y36(e.QbO,8),e.Y36(G,8))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-expansion-panel"]],contentQueries:function(ae,re,Se){if(1&ae&&e.Suo(Se,j,5),2&ae){let Fe;e.iGM(Fe=e.CRH())&&(re._lazyContent=Fe.first)}},viewQuery:function(ae,re){if(1&ae&&e.Gf(W,5),2&ae){let Se;e.iGM(Se=e.CRH())&&(re._body=Se.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ae,re){2&ae&&e.ekj("mat-expanded",re.expanded)("_mat-animation-noopable","NoopAnimations"===re._animationMode)("mat-expansion-panel-spacing",re._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:ce,useValue:void 0},{provide:xe,useExisting:Y}]),e.qOj,e.TTD],ngContentSelectors:ye,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ae,re){1&ae&&(e.F$t(ue),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Fe){return re._bodyAnimationDone.next(Fe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,q,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&ae&&(e.xp6(1),e.Q6J("@bodyExpansion",re._getExpandedState())("id",re.id),e.uIk("aria-labelledby",re._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",re._portal))},dependencies:[V.Pl],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[he.bodyExpansion]},changeDetection:0}),Y})();class Ee{}const Oe=(0,Q.sb)(Ee);let ct=(()=>{class Y extends Oe{constructor(ae,re,Se,Fe,be,Ue,P){super(),this.panel=ae,this._element=re,this._focusMonitor=Se,this._changeDetectorRef=Fe,this._animationMode=Ue,this._parentChangeSubscription=g.w0.EMPTY;const H=ae.accordion?ae.accordion._stateChanges.pipe((0,le.h)(i=>!(!i.hideToggle&&!i.togglePosition))):v.E;this.tabIndex=parseInt(P||"")||0,this._parentChangeSubscription=(0,L.T)(ae.opened,ae.closed,H,ae._inputChanges.pipe((0,le.h)(i=>!!(i.hideToggle||i.disabled||i.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),ae.closed.pipe((0,le.h)(()=>ae._containsFocus())).subscribe(()=>Se.focusVia(re,"program")),be&&(this.expandedHeight=be.expandedHeight,this.collapsedHeight=be.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const ae=this._isExpanded();return ae&&this.expandedHeight?this.expandedHeight:!ae&&this.collapsedHeight?this.collapsedHeight:null}_keydown(ae){switch(ae.keyCode){case Te.L_:case Te.K5:(0,Te.Vb)(ae)||(ae.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(ae))}}focus(ae,re){ae?this._focusMonitor.focusVia(this._element,ae,re):this._element.nativeElement.focus(re)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(ae=>{ae&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Y.\u0275fac=function(ae){return new(ae||Y)(e.Y36(se,1),e.Y36(e.SBq),e.Y36(te.tE),e.Y36(e.sBO),e.Y36(G,8),e.Y36(e.QbO,8),e.$8M("tabindex"))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ae,re){1&ae&&e.NdJ("click",function(){return re._toggle()})("keydown",function(Fe){return re._keydown(Fe)}),2&ae&&(e.uIk("id",re.panel._headerId)("tabindex",re.tabIndex)("aria-controls",re._getPanelId())("aria-expanded",re._isExpanded())("aria-disabled",re.panel.disabled),e.Udp("height",re._getHeaderHeight()),e.ekj("mat-expanded",re._isExpanded())("mat-expansion-toggle-indicator-after","after"===re._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===re._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===re._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:Ge,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ae,re){1&ae&&(e.F$t(we),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Me,1,1,"span",1)),2&ae&&(e.xp6(4),e.Q6J("ngIf",re._showToggle()))},dependencies:[z.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[he.indicatorRotate]},changeDetection:0}),Y})(),Xe=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Y})(),_t=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Y})(),Je=(()=>{class Y extends E{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(ae){this._hideToggle=(0,A.Ig)(ae)}ngAfterContentInit(){this._headers.changes.pipe((0,ee.O)(this._headers)).subscribe(ae=>{this._ownHeaders.reset(ae.filter(re=>re.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new te.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(ae){this._keyManager.onKeydown(ae)}_handleHeaderFocus(ae){this._keyManager.updateActiveItem(ae)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Y.\u0275fac=function(){let Ce;return function(re){return(Ce||(Ce=e.n5z(Y)))(re||Y)}}(),Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-accordion"]],contentQueries:function(ae,re,Se){if(1&ae&&e.Suo(Se,ct,5),2&ae){let Fe;e.iGM(Fe=e.CRH())&&(re._headers=Fe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(ae,re){2&ae&&e.ekj("mat-accordion-multi",re.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:ce,useExisting:Y}]),e.qOj]}),Y})(),gt=(()=>{class Y{}return Y.\u0275fac=function(ae){return new(ae||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[z.ez,Q.BQ,_,V.eL]}),Y})()},59549:(Ye,pe,h)=>{"use strict";h.d(pe,{Eo:()=>j,G_:()=>be,KE:()=>Ue,R9:()=>Y,TO:()=>he,UY:()=>Xe,bx:()=>Oe,hX:()=>ct,lN:()=>P});var e=h(49643),c=h(36895),A=h(94650),w=h(3238),g=h(40445),C=h(21281),T=h(77579),E=h(56451),S=h(54968),U=h(68675),_=h(82722),V=h(95698),z=h(37340),Q=h(83353);const te=["connectionContainer"],oe=["inputContainer"],ee=["label"];function le(H,i){1&H&&(A.ynx(0),A.TgZ(1,"div",14),A._UZ(2,"div",15)(3,"div",16)(4,"div",17),A.qZA(),A.TgZ(5,"div",18),A._UZ(6,"div",15)(7,"div",16)(8,"div",17),A.qZA(),A.BQk())}function de(H,i){if(1&H){const o=A.EpF();A.TgZ(0,"div",19),A.NdJ("cdkObserveContent",function(){A.CHM(o);const l=A.oxw();return A.KtG(l.updateOutlineGap())}),A.Hsn(1,1),A.qZA()}if(2&H){const o=A.oxw();A.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)}}function Te(H,i){if(1&H&&(A.ynx(0),A.Hsn(1,2),A.TgZ(2,"span"),A._uU(3),A.qZA(),A.BQk()),2&H){const o=A.oxw(2);A.xp6(3),A.Oqu(o._control.placeholder)}}function v(H,i){1&H&&A.Hsn(0,3,["*ngSwitchCase","true"])}function L(H,i){1&H&&(A.TgZ(0,"span",23),A._uU(1," *"),A.qZA())}function B(H,i){if(1&H){const o=A.EpF();A.TgZ(0,"label",20,21),A.NdJ("cdkObserveContent",function(){A.CHM(o);const l=A.oxw();return A.KtG(l.updateOutlineGap())}),A.YNc(2,Te,4,1,"ng-container",12),A.YNc(3,v,1,0,"ng-content",12),A.YNc(4,L,2,0,"span",22),A.qZA()}if(2&H){const o=A.oxw();A.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),A.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)("id",o._labelId)("ngSwitch",o._hasLabel()),A.uIk("for",o._control.id)("aria-owns",o._control.id),A.xp6(2),A.Q6J("ngSwitchCase",!1),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngIf",!o.hideRequiredMarker&&o._control.required&&!o._control.disabled)}}function W(H,i){1&H&&(A.TgZ(0,"div",24),A.Hsn(1,4),A.qZA())}function q(H,i){if(1&H&&(A.TgZ(0,"div",25),A._UZ(1,"span",26),A.qZA()),2&H){const o=A.oxw();A.xp6(1),A.ekj("mat-accent","accent"==o.color)("mat-warn","warn"==o.color)}}function ue(H,i){if(1&H&&(A.TgZ(0,"div"),A.Hsn(1,5),A.qZA()),2&H){const o=A.oxw();A.Q6J("@transitionMessages",o._subscriptAnimationState)}}function ye(H,i){if(1&H&&(A.TgZ(0,"div",30),A._uU(1),A.qZA()),2&H){const o=A.oxw(2);A.Q6J("id",o._hintLabelId),A.xp6(1),A.Oqu(o.hintLabel)}}function Me(H,i){if(1&H&&(A.TgZ(0,"div",27),A.YNc(1,ye,2,2,"div",28),A.Hsn(2,6),A._UZ(3,"div",29),A.Hsn(4,7),A.qZA()),2&H){const o=A.oxw();A.Q6J("@transitionMessages",o._subscriptAnimationState),A.xp6(1),A.Q6J("ngIf",o.hintLabel)}}const we=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ge=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ce=0;const Ze=new A.OlP("MatError");let he=(()=>{class H{constructor(o,f){this.id="mat-error-"+ce++,o||f.nativeElement.setAttribute("aria-live","polite")}}return H.\u0275fac=function(o){return new(o||H)(A.$8M("aria-live"),A.Y36(A.SBq))},H.\u0275dir=A.lG2({type:H,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(o,f){2&o&&A.uIk("id",f.id)},inputs:{id:"id"},features:[A._Bn([{provide:Ze,useExisting:H}])]}),H})();const xe={transitionMessages:(0,z.X$)("transitionMessages",[(0,z.SB)("enter",(0,z.oB)({opacity:1,transform:"translateY(0%)"})),(0,z.eR)("void => enter",[(0,z.oB)({opacity:0,transform:"translateY(-5px)"}),(0,z.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let j=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H}),H})(),$=0;const Ee=new A.OlP("MatHint");let Oe=(()=>{class H{constructor(){this.align="start",this.id="mat-hint-"+$++}}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(o,f){2&o&&(A.uIk("id",f.id)("align",null),A.ekj("mat-form-field-hint-end","end"===f.align))},inputs:{align:"align",id:"id"},features:[A._Bn([{provide:Ee,useExisting:H}])]}),H})(),ct=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["mat-label"]]}),H})(),Xe=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["mat-placeholder"]]}),H})();const _t=new A.OlP("MatPrefix"),gt=new A.OlP("MatSuffix");let Y=(()=>{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275dir=A.lG2({type:H,selectors:[["","matSuffix",""]],features:[A._Bn([{provide:gt,useExisting:H}])]}),H})(),Ce=0;const Se=(0,w.pj)(class{constructor(H){this._elementRef=H}},"primary"),Fe=new A.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),be=new A.OlP("MatFormField");let Ue=(()=>{class H extends Se{constructor(o,f,l,a,n,t,r){super(o),this._changeDetectorRef=f,this._dir=l,this._defaults=a,this._platform=n,this._ngZone=t,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new T.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Ce++,this._labelId="mat-form-field-label-"+Ce++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==r,this.appearance=a?.appearance||"legacy",a&&(this._hideRequiredMarker=Boolean(a.hideRequiredMarker),a.color&&(this.color=this.defaultColor=a.color))}get appearance(){return this._appearance}set appearance(o){var f;const l=this._appearance;this._appearance=o||(null===(f=this._defaults)||void 0===f?void 0:f.appearance)||"legacy","outline"===this._appearance&&l!==o&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(o){this._hideRequiredMarker=(0,C.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,U.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe((0,_.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,U.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,U.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,_.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 f=this._control?this._control.ngControl:null;return f&&f[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,S.R)(this._label.nativeElement,"transitionend").pipe((0,V.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 f=this._hintChildren?this._hintChildren.find(a=>"start"===a.align):null,l=this._hintChildren?this._hintChildren.find(a=>"end"===a.align):null;f?o.push(f.id):this._hintLabel&&o.push(this._hintLabelId),l&&o.push(l.id)}else this._errorChildren&&o.push(...this._errorChildren.map(f=>f.id));this._control.setDescribedByIds(o)}}_validateControlChild(){}updateOutlineGap(){const o=this._label?this._label.nativeElement:null,f=this._connectionContainerRef.nativeElement,l=".mat-form-field-outline-start",a=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!o||!o.children.length||!o.textContent.trim()){const d=f.querySelectorAll(`${l}, ${a}`);for(let p=0;p0?.75*bt+10:0}for(let d=0;d{class H{}return H.\u0275fac=function(o){return new(o||H)},H.\u0275mod=A.oAB({type:H}),H.\u0275inj=A.cJS({imports:[c.ez,w.BQ,e.Q8,w.BQ]}),H})()},97392:(Ye,pe,h)=>{"use strict";h.d(pe,{Hw:()=>$,Ps:()=>Ee,jv:()=>ue});var e=h(94650),c=h(3238),A=h(21281),w=h(36895),g=h(39646),C=h(62843),T=h(4128),E=h(50727),S=h(18505),U=h(54004),_=h(70262),V=h(28746),z=h(13099),Q=h(95698),te=h(80529),oe=h(11481);const ee=["*"];let le;function Te(Oe){var ct;return(null===(ct=function de(){if(void 0===le&&(le=null,typeof window<"u")){const Oe=window;void 0!==Oe.trustedTypes&&(le=Oe.trustedTypes.createPolicy("angular#components",{createHTML:ct=>ct}))}return le}())||void 0===ct?void 0:ct.createHTML(Oe))||Oe}function v(Oe){return Error(`Unable to find icon with the name "${Oe}"`)}function B(Oe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Oe}".`)}function W(Oe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Oe}".`)}class q{constructor(ct,Xe,_t){this.url=ct,this.svgText=Xe,this.options=_t}}let ue=(()=>{class Oe{constructor(Xe,_t,Je,gt){this._httpClient=Xe,this._sanitizer=_t,this._errorHandler=gt,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","mat-ligature-font"],this._document=Je}addSvgIcon(Xe,_t,Je){return this.addSvgIconInNamespace("",Xe,_t,Je)}addSvgIconLiteral(Xe,_t,Je){return this.addSvgIconLiteralInNamespace("",Xe,_t,Je)}addSvgIconInNamespace(Xe,_t,Je,gt){return this._addSvgIconConfig(Xe,_t,new q(Je,null,gt))}addSvgIconResolver(Xe){return this._resolvers.push(Xe),this}addSvgIconLiteralInNamespace(Xe,_t,Je,gt){const Y=this._sanitizer.sanitize(e.q3G.HTML,Je);if(!Y)throw W(Je);const Ce=Te(Y);return this._addSvgIconConfig(Xe,_t,new q("",Ce,gt))}addSvgIconSet(Xe,_t){return this.addSvgIconSetInNamespace("",Xe,_t)}addSvgIconSetLiteral(Xe,_t){return this.addSvgIconSetLiteralInNamespace("",Xe,_t)}addSvgIconSetInNamespace(Xe,_t,Je){return this._addSvgIconSetConfig(Xe,new q(_t,null,Je))}addSvgIconSetLiteralInNamespace(Xe,_t,Je){const gt=this._sanitizer.sanitize(e.q3G.HTML,_t);if(!gt)throw W(_t);const Y=Te(gt);return this._addSvgIconSetConfig(Xe,new q("",Y,Je))}registerFontClassAlias(Xe,_t=Xe){return this._fontCssClassesByAlias.set(Xe,_t),this}classNameForFontAlias(Xe){return this._fontCssClassesByAlias.get(Xe)||Xe}setDefaultFontSetClass(...Xe){return this._defaultFontSetClass=Xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Xe){const _t=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Xe);if(!_t)throw B(Xe);const Je=this._cachedIconsByUrl.get(_t);return Je?(0,g.of)(we(Je)):this._loadSvgIconFromConfig(new q(Xe,null)).pipe((0,S.b)(gt=>this._cachedIconsByUrl.set(_t,gt)),(0,U.U)(gt=>we(gt)))}getNamedSvgIcon(Xe,_t=""){const Je=Ge(_t,Xe);let gt=this._svgIconConfigs.get(Je);if(gt)return this._getSvgFromConfig(gt);if(gt=this._getIconConfigFromResolvers(_t,Xe),gt)return this._svgIconConfigs.set(Je,gt),this._getSvgFromConfig(gt);const Y=this._iconSetConfigs.get(_t);return Y?this._getSvgFromIconSetConfigs(Xe,Y):(0,C._)(v(Je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Xe){return Xe.svgText?(0,g.of)(we(this._svgElementFromConfig(Xe))):this._loadSvgIconFromConfig(Xe).pipe((0,U.U)(_t=>we(_t)))}_getSvgFromIconSetConfigs(Xe,_t){const Je=this._extractIconWithNameFromAnySet(Xe,_t);if(Je)return(0,g.of)(Je);const gt=_t.filter(Y=>!Y.svgText).map(Y=>this._loadSvgIconSetFromConfig(Y).pipe((0,_.K)(Ce=>{const re=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Y.url)} failed: ${Ce.message}`;return this._errorHandler.handleError(new Error(re)),(0,g.of)(null)})));return(0,T.D)(gt).pipe((0,U.U)(()=>{const Y=this._extractIconWithNameFromAnySet(Xe,_t);if(!Y)throw v(Xe);return Y}))}_extractIconWithNameFromAnySet(Xe,_t){for(let Je=_t.length-1;Je>=0;Je--){const gt=_t[Je];if(gt.svgText&>.svgText.toString().indexOf(Xe)>-1){const Y=this._svgElementFromConfig(gt),Ce=this._extractSvgIconFromSet(Y,Xe,gt.options);if(Ce)return Ce}}return null}_loadSvgIconFromConfig(Xe){return this._fetchIcon(Xe).pipe((0,S.b)(_t=>Xe.svgText=_t),(0,U.U)(()=>this._svgElementFromConfig(Xe)))}_loadSvgIconSetFromConfig(Xe){return Xe.svgText?(0,g.of)(null):this._fetchIcon(Xe).pipe((0,S.b)(_t=>Xe.svgText=_t))}_extractSvgIconFromSet(Xe,_t,Je){const gt=Xe.querySelector(`[id="${_t}"]`);if(!gt)return null;const Y=gt.cloneNode(!0);if(Y.removeAttribute("id"),"svg"===Y.nodeName.toLowerCase())return this._setSvgAttributes(Y,Je);if("symbol"===Y.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Y),Je);const Ce=this._svgElementFromString(Te(""));return Ce.appendChild(Y),this._setSvgAttributes(Ce,Je)}_svgElementFromString(Xe){const _t=this._document.createElement("DIV");_t.innerHTML=Xe;const Je=_t.querySelector("svg");if(!Je)throw Error(" tag not found");return Je}_toSvgElement(Xe){const _t=this._svgElementFromString(Te("")),Je=Xe.attributes;for(let gt=0;gtTe(Se)),(0,V.x)(()=>this._inProgressUrlFetches.delete(Ce)),(0,z.B)());return this._inProgressUrlFetches.set(Ce,re),re}_addSvgIconConfig(Xe,_t,Je){return this._svgIconConfigs.set(Ge(Xe,_t),Je),this}_addSvgIconSetConfig(Xe,_t){const Je=this._iconSetConfigs.get(Xe);return Je?Je.push(_t):this._iconSetConfigs.set(Xe,[_t]),this}_svgElementFromConfig(Xe){if(!Xe.svgElement){const _t=this._svgElementFromString(Xe.svgText);this._setSvgAttributes(_t,Xe.options),Xe.svgElement=_t}return Xe.svgElement}_getIconConfigFromResolvers(Xe,_t){for(let Je=0;Ject?ct.pathname+ct.search:""}}}),R=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],G=R.map(Oe=>`[${Oe}]`).join(", "),se=/^url\(['"]?#(.*?)['"]?\)$/;let $=(()=>{class Oe extends Ze{constructor(Xe,_t,Je,gt,Y,Ce){super(Xe),this._iconRegistry=_t,this._location=gt,this._errorHandler=Y,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.w0.EMPTY,Ce&&(Ce.color&&(this.color=this.defaultColor=Ce.color),Ce.fontSet&&(this.fontSet=Ce.fontSet)),Je||Xe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Xe){this._inline=(0,A.Ig)(Xe)}get svgIcon(){return this._svgIcon}set svgIcon(Xe){Xe!==this._svgIcon&&(Xe?this._updateSvgIcon(Xe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Xe)}get fontSet(){return this._fontSet}set fontSet(Xe){const _t=this._cleanupFontValue(Xe);_t!==this._fontSet&&(this._fontSet=_t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Xe){const _t=this._cleanupFontValue(Xe);_t!==this._fontIcon&&(this._fontIcon=_t,this._updateFontIconClasses())}_splitIconName(Xe){if(!Xe)return["",""];const _t=Xe.split(":");switch(_t.length){case 1:return["",_t[0]];case 2:return _t;default:throw Error(`Invalid icon name: "${Xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Xe=this._elementsWithExternalReferences;if(Xe&&Xe.size){const _t=this._location.getPathname();_t!==this._previousPath&&(this._previousPath=_t,this._prependPathToReferences(_t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Xe){this._clearSvgElement();const _t=this._location.getPathname();this._previousPath=_t,this._cacheChildrenWithExternalReferences(Xe),this._prependPathToReferences(_t),this._elementRef.nativeElement.appendChild(Xe)}_clearSvgElement(){const Xe=this._elementRef.nativeElement;let _t=Xe.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();_t--;){const Je=Xe.childNodes[_t];(1!==Je.nodeType||"svg"===Je.nodeName.toLowerCase())&&Je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Xe=this._elementRef.nativeElement,_t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Je=>Je.length>0);this._previousFontSetClass.forEach(Je=>Xe.classList.remove(Je)),_t.forEach(Je=>Xe.classList.add(Je)),this._previousFontSetClass=_t,this.fontIcon!==this._previousFontIconClass&&!_t.includes("mat-ligature-font")&&(this._previousFontIconClass&&Xe.classList.remove(this._previousFontIconClass),this.fontIcon&&Xe.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Xe){return"string"==typeof Xe?Xe.trim().split(" ")[0]:Xe}_prependPathToReferences(Xe){const _t=this._elementsWithExternalReferences;_t&&_t.forEach((Je,gt)=>{Je.forEach(Y=>{gt.setAttribute(Y.name,`url('${Xe}#${Y.value}')`)})})}_cacheChildrenWithExternalReferences(Xe){const _t=Xe.querySelectorAll(G),Je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let gt=0;gt<_t.length;gt++)R.forEach(Y=>{const Ce=_t[gt],ae=Ce.getAttribute(Y),re=ae?ae.match(se):null;if(re){let Se=Je.get(Ce);Se||(Se=[],Je.set(Ce,Se)),Se.push({name:Y,value:re[1]})}})}_updateSvgIcon(Xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Xe){const[_t,Je]=this._splitIconName(Xe);_t&&(this._svgNamespace=_t),Je&&(this._svgName=Je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Je,_t).pipe((0,Q.q)(1)).subscribe(gt=>this._setSvgElement(gt),gt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${_t}:${Je}! ${gt.message}`))})}}}return Oe.\u0275fac=function(Xe){return new(Xe||Oe)(e.Y36(e.SBq),e.Y36(ue),e.$8M("aria-hidden"),e.Y36(xe),e.Y36(e.qLn),e.Y36(he,8))},Oe.\u0275cmp=e.Xpm({type:Oe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Xe,_t){2&Xe&&(e.uIk("data-mat-icon-type",_t._usingFontIcon()?"font":"svg")("data-mat-icon-name",_t._svgName||_t.fontIcon)("data-mat-icon-namespace",_t._svgNamespace||_t.fontSet),e.ekj("mat-icon-inline",_t.inline)("mat-icon-no-color","primary"!==_t.color&&"accent"!==_t.color&&"warn"!==_t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:ee,decls:1,vars:0,template:function(Xe,_t){1&Xe&&(e.F$t(),e.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),Oe})(),Ee=(()=>{class Oe{}return Oe.\u0275fac=function(Xe){return new(Xe||Oe)},Oe.\u0275mod=e.oAB({type:Oe}),Oe.\u0275inj=e.cJS({imports:[c.BQ,c.BQ]}),Oe})()},284:(Ye,pe,h)=>{"use strict";h.d(pe,{Jk:()=>U,Nt:()=>Q,c:()=>te});var e=h(21281),c=h(83353),A=h(39349),w=h(94650),g=h(24006),C=h(3238),T=h(59549),E=h(77579);const U=new w.OlP("MAT_INPUT_VALUE_ACCESSOR"),_=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let V=0;const z=(0,C.FD)(class{constructor(oe,ee,le,de){this._defaultErrorStateMatcher=oe,this._parentForm=ee,this._parentFormGroup=le,this.ngControl=de,this.stateChanges=new E.x}});let Q=(()=>{class oe extends z{constructor(le,de,Te,v,L,B,W,q,ue,ye){super(B,v,L,Te),this._elementRef=le,this._platform=de,this._autofillMonitor=q,this._formField=ye,this._uid="mat-input-"+V++,this.focused=!1,this.stateChanges=new E.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(Ge=>(0,c.qK)().has(Ge)),this._iOSKeyupListener=Ge=>{const ce=Ge.target;!ce.value&&0===ce.selectionStart&&0===ce.selectionEnd&&(ce.setSelectionRange(1,1),ce.setSelectionRange(0,0))};const Me=this._elementRef.nativeElement,we=Me.nodeName.toLowerCase();this._inputValueAccessor=W||Me,this._previousNativeValue=this.value,this.id=this.id,de.IOS&&ue.runOutsideAngular(()=>{le.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===we,this._isTextarea="textarea"===we,this._isInFormField=!!ye,this._isNativeSelect&&(this.controlType=Me.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(le){this._disabled=(0,e.Ig)(le),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(le){this._id=le||this._uid}get required(){var le,de,Te,v;return null!==(le=null!==(de=this._required)&&void 0!==de?de:null===(Te=this.ngControl)||void 0===Te||null===(v=Te.control)||void 0===v?void 0:v.hasValidator(g.kI.required))&&void 0!==le&&le}set required(le){this._required=(0,e.Ig)(le)}get type(){return this._type}set type(le){this._type=le||"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(le){le!==this.value&&(this._inputValueAccessor.value=le,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(le){this._readonly=(0,e.Ig)(le)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(le=>{this.autofilled=le.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(le){this._elementRef.nativeElement.focus(le)}_focusChanged(le){le!==this.focused&&(this.focused=le,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var le;const de=this._formField,Te=!de||"legacy"!==de.appearance||null!==(le=de._hasLabel)&&void 0!==le&&le.call(de)?this.placeholder:null;if(Te!==this._previousPlaceholder){const v=this._elementRef.nativeElement;this._previousPlaceholder=Te,Te?v.setAttribute("placeholder",Te):v.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const le=this._elementRef.nativeElement.value;this._previousNativeValue!==le&&(this._previousNativeValue=le,this.stateChanges.next())}_validateType(){_.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let le=this._elementRef.nativeElement.validity;return le&&le.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const le=this._elementRef.nativeElement,de=le.options[0];return this.focused||le.multiple||!this.empty||!!(le.selectedIndex>-1&&de&&de.label)}return this.focused||!this.empty}setDescribedByIds(le){le.length?this._elementRef.nativeElement.setAttribute("aria-describedby",le.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const le=this._elementRef.nativeElement;return this._isNativeSelect&&(le.multiple||le.size>1)}}return oe.\u0275fac=function(le){return new(le||oe)(w.Y36(w.SBq),w.Y36(c.t4),w.Y36(g.a5,10),w.Y36(g.F,8),w.Y36(g.sg,8),w.Y36(C.rD),w.Y36(U,10),w.Y36(A.Lq),w.Y36(w.R0b),w.Y36(T.G_,8))},oe.\u0275dir=w.lG2({type:oe,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(le,de){1&le&&w.NdJ("focus",function(){return de._focusChanged(!0)})("blur",function(){return de._focusChanged(!1)})("input",function(){return de._onInput()}),2&le&&(w.Ikx("disabled",de.disabled)("required",de.required),w.uIk("id",de.id)("data-placeholder",de.placeholder)("name",de.name||null)("readonly",de.readonly&&!de._isNativeSelect||null)("aria-invalid",de.empty&&de.required?null:de.errorState)("aria-required",de.required),w.ekj("mat-input-server",de._isServer)("mat-native-select-inline",de._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:[w._Bn([{provide:T.Eo,useExisting:oe}]),w.qOj,w.TTD]}),oe})(),te=(()=>{class oe{}return oe.\u0275fac=function(le){return new(le||oe)},oe.\u0275mod=w.oAB({type:oe}),oe.\u0275inj=w.cJS({providers:[C.rD],imports:[A.Ky,T.lN,C.BQ,A.Ky,T.lN]}),oe})()},96338:(Ye,pe,h)=>{"use strict";h.d(pe,{Tg:()=>Ge,i$:()=>ue,ie:()=>G});var e=h(36895),c=h(94650),A=h(3238),w=h(21281),g=h(77579),C=h(82722),V=(h(68675),h(12687),h(95017),h(29521),h(24006),h(44850));const z=["*"],te=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],oe=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],v=(0,A.Id)((0,A.Kr)(class{})),L=(0,A.Kr)(class{}),B=new c.OlP("MatList"),W=new c.OlP("MatNavList");let ue=(()=>{class se extends v{constructor(Ee){super(),this._elementRef=Ee,this._stateChanges=new g.x,"action-list"===this._getListType()&&Ee.nativeElement.classList.add("mat-action-list")}_getListType(){const Ee=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===Ee?"list":"mat-action-list"===Ee?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return se.\u0275fac=function(Ee){return new(Ee||se)(c.Y36(c.SBq))},se.\u0275cmp=c.Xpm({type:se,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[c._Bn([{provide:B,useExisting:se}]),c.qOj,c.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(Ee,Oe){1&Ee&&(c.F$t(),c.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),se})(),ye=(()=>{class se{}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275dir=c.lG2({type:se,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),se})(),Me=(()=>{class se{}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275dir=c.lG2({type:se,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),se})(),Ge=(()=>{class se extends L{constructor(Ee,Oe,ct,Xe){super(),this._element=Ee,this._isInteractiveList=!1,this._destroyed=new g.x,this._disabled=!1,this._isInteractiveList=!!(ct||Xe&&"action-list"===Xe._getListType()),this._list=ct||Xe;const _t=this._getHostElement();"button"===_t.nodeName.toLowerCase()&&!_t.hasAttribute("type")&&_t.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>{Oe.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(Ee){this._disabled=(0,w.Ig)(Ee)}ngAfterContentInit(){(0,A.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return se.\u0275fac=function(Ee){return new(Ee||se)(c.Y36(c.SBq),c.Y36(c.sBO),c.Y36(W,8),c.Y36(B,8))},se.\u0275cmp=c.Xpm({type:se,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Ee,Oe,ct){if(1&Ee&&(c.Suo(ct,ye,5),c.Suo(ct,Me,5),c.Suo(ct,A.X2,5)),2&Ee){let Xe;c.iGM(Xe=c.CRH())&&(Oe._avatar=Xe.first),c.iGM(Xe=c.CRH())&&(Oe._icon=Xe.first),c.iGM(Xe=c.CRH())&&(Oe._lines=Xe)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(Ee,Oe){2&Ee&&c.ekj("mat-list-item-disabled",Oe.disabled)("mat-list-item-with-avatar",Oe._avatar||Oe._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[c.qOj],ngContentSelectors:oe,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(Ee,Oe){1&Ee&&(c.F$t(te),c.TgZ(0,"span",0),c._UZ(1,"span",1),c.Hsn(2),c.TgZ(3,"span",2),c.Hsn(4,1),c.qZA(),c.Hsn(5,2),c.qZA()),2&Ee&&(c.xp6(1),c.Q6J("matRippleTrigger",Oe._getHostElement())("matRippleDisabled",Oe._isRippleDisabled()))},dependencies:[A.wG],encapsulation:2,changeDetection:0}),se})(),G=(()=>{class se{}return se.\u0275fac=function(Ee){return new(Ee||se)},se.\u0275mod=c.oAB({type:se}),se.\u0275inj=c.cJS({imports:[A.uc,A.si,A.BQ,A.us,e.ez,A.uc,A.BQ,A.us,V.t]}),se})()},28255:(Ye,pe,h)=>{"use strict";h.d(pe,{OP:()=>$,Tx:()=>Fe,VK:()=>_t,p6:()=>Se});var e=h(12687),c=h(21281),A=h(29521),w=h(94650),g=h(77579),C=h(50727),T=h(56451),E=h(39646),S=h(53101),U=h(68675),_=h(63900),V=h(95698),z=h(82722),Q=h(39300),te=h(91005),oe=h(37340),ee=h(84080),le=h(36895),de=h(3238),Te=h(40445),v=h(98184),L=h(83353),B=h(67376);const W=["mat-menu-item",""];function q(be,Ue){1&be&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ue=["*"];function ye(be,Ue){if(1&be){const P=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(i){w.CHM(P);const o=w.oxw();return w.KtG(o._handleKeydown(i))})("click",function(){w.CHM(P);const i=w.oxw();return w.KtG(i.closed.emit("click"))})("@transformMenu.start",function(i){w.CHM(P);const o=w.oxw();return w.KtG(o._onAnimationStart(i))})("@transformMenu.done",function(i){w.CHM(P);const o=w.oxw();return w.KtG(o._onAnimationDone(i))}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA()()}if(2&be){const P=w.oxw();w.Q6J("id",P.panelId)("ngClass",P._classList)("@transformMenu",P._panelAnimationState),w.uIk("aria-label",P.ariaLabel||null)("aria-labelledby",P.ariaLabelledby||null)("aria-describedby",P.ariaDescribedby||null)}}const Me={transformMenu:(0,oe.X$)("transformMenu",[(0,oe.SB)("void",(0,oe.oB)({opacity:0,transform:"scale(0.8)"})),(0,oe.eR)("void => enter",(0,oe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,oe.oB)({opacity:1,transform:"scale(1)"}))),(0,oe.eR)("* => void",(0,oe.jt)("100ms 25ms linear",(0,oe.oB)({opacity:0})))]),fadeInItems:(0,oe.X$)("fadeInItems",[(0,oe.SB)("showing",(0,oe.oB)({opacity:1})),(0,oe.eR)("void => *",[(0,oe.oB)({opacity:0}),(0,oe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ce=new w.OlP("MatMenuContent"),G=new w.OlP("MAT_MENU_PANEL"),se=(0,de.Kr)((0,de.Id)(class{}));let $=(()=>{class be extends se{constructor(P,H,i,o,f){var l;super(),this._elementRef=P,this._document=H,this._focusMonitor=i,this._parentMenu=o,this._changeDetectorRef=f,this.role="menuitem",this._hovered=new g.x,this._focused=new g.x,this._highlighted=!1,this._triggersSubmenu=!1,null==o||null===(l=o.addItem)||void 0===l||l.call(o,this)}focus(P,H){this._focusMonitor&&P?this._focusMonitor.focusVia(this._getHostElement(),P,H):this._getHostElement().focus(H),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(P){this.disabled&&(P.preventDefault(),P.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var P;const H=this._elementRef.nativeElement.cloneNode(!0),i=H.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class be{constructor(P,H,i,o){this._elementRef=P,this._ngZone=H,this._defaultOptions=i,this._changeDetectorRef=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=C.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+ct++}get xPosition(){return this._xPosition}set xPosition(P){this._xPosition=P,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(P){this._yPosition=P,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(P){this._overlapTrigger=(0,c.Ig)(P)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(P){this._hasBackdrop=(0,c.Ig)(P)}set panelClass(P){const H=this._previousPanelClass;H&&H.length&&H.split(" ").forEach(i=>{this._classList[i]=!1}),this._previousPanelClass=P,P&&P.length&&(P.split(" ").forEach(i=>{this._classList[i]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(P){this.panelClass=P}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,_.w)(P=>(0,T.T)(...P.map(H=>H._focused)))).subscribe(P=>this._keyManager.updateActiveItem(P)),this._directDescendantItems.changes.subscribe(P=>{var H;const i=this._keyManager;if("enter"===this._panelAnimationState&&null!==(H=i.activeItem)&&void 0!==H&&H._hasFocus()){const o=P.toArray(),f=Math.max(0,Math.min(o.length-1,i.activeItemIndex||0));o[f]&&!o[f].disabled?i.setActiveItem(f):i.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,U.O)(this._directDescendantItems),(0,_.w)(H=>(0,T.T)(...H.map(i=>i._hovered))))}addItem(P){}removeItem(P){}_handleKeydown(P){const H=P.keyCode,i=this._keyManager;switch(H){case A.hY:(0,A.Vb)(P)||(P.preventDefault(),this.closed.emit("keydown"));break;case A.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case A.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(H===A.LH||H===A.JH)&&i.setFocusOrigin("keyboard"),void i.onKeydown(P)}P.stopPropagation()}focusFirstItem(P="program"){this._ngZone.onStable.pipe((0,V.q)(1)).subscribe(()=>{let H=null;if(this._directDescendantItems.length&&(H=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!H||!H.contains(document.activeElement)){const i=this._keyManager;i.setFocusOrigin(P).setFirstItemActive(),!i.activeItem&&H&&H.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(P){const H=Math.min(this._baseElevation+P,24),i=`${this._elevationPrefix}${H}`,o=Object.keys(this._classList).find(f=>f.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}setPositionClasses(P=this.xPosition,H=this.yPosition){var i;const o=this._classList;o["mat-menu-before"]="before"===P,o["mat-menu-after"]="after"===P,o["mat-menu-above"]="above"===H,o["mat-menu-below"]="below"===H,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(P){this._animationDone.next(P),this._isAnimating=!1}_onAnimationStart(P){this._isAnimating=!0,"enter"===P.toState&&0===this._keyManager.activeItemIndex&&(P.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,U.O)(this._allItems)).subscribe(P=>{this._directDescendantItems.reset(P.filter(H=>H._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return be.\u0275fac=function(P){return new(P||be)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Ee),w.Y36(w.sBO))},be.\u0275dir=w.lG2({type:be,contentQueries:function(P,H,i){if(1&P&&(w.Suo(i,ce,5),w.Suo(i,$,5),w.Suo(i,$,4)),2&P){let o;w.iGM(o=w.CRH())&&(H.lazyContent=o.first),w.iGM(o=w.CRH())&&(H._allItems=o),w.iGM(o=w.CRH())&&(H.items=o)}},viewQuery:function(P,H){if(1&P&&w.Gf(w.Rgc,5),2&P){let i;w.iGM(i=w.CRH())&&(H.templateRef=i.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),be})(),_t=(()=>{class be extends Xe{constructor(P,H,i,o){super(P,H,i,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return be.\u0275fac=function(P){return new(P||be)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Ee),w.Y36(w.sBO))},be.\u0275cmp=w.Xpm({type:be,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(P,H){2&P&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:G,useExisting:be}]),w.qOj],ngContentSelectors:ue,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(P,H){1&P&&(w.F$t(),w.YNc(0,ye,3,6,"ng-template"))},dependencies:[le.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Me.transformMenu,Me.fadeInItems]},changeDetection:0}),be})();const Je=new w.OlP("mat-menu-scroll-strategy"),Y={provide:Je,deps:[v.aV],useFactory:function gt(be){return()=>be.scrollStrategies.reposition()}},ae=(0,L.i$)({passive:!0});let re=(()=>{class be{constructor(P,H,i,o,f,l,a,n,t){this._overlay=P,this._element=H,this._viewContainerRef=i,this._menuItemInstance=l,this._dir=a,this._focusMonitor=n,this._ngZone=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w0.EMPTY,this._hoverSubscription=C.w0.EMPTY,this._menuCloseSubscription=C.w0.EMPTY,this._handleTouchStart=r=>{(0,e.yG)(r)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=f instanceof Xe?f:void 0,H.nativeElement.addEventListener("touchstart",this._handleTouchStart,ae),l&&(l._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(P){this.menu=P}get menu(){return this._menu}set menu(P){P!==this._menu&&(this._menu=P,this._menuCloseSubscription.unsubscribe(),P&&(this._menuCloseSubscription=P.close.subscribe(H=>{this._destroyMenu(H),("click"===H||"tab"===H)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(H)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ae),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const P=this.menu;if(this._menuOpen||!P)return;const H=this._createOverlay(P),i=H.getConfig(),o=i.positionStrategy;this._setPosition(P,o),i.hasBackdrop=P.hasBackdrop??!this.triggersSubmenu(),H.attach(this._getPortal(P)),P.lazyContent&&P.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(P),P instanceof Xe&&(P._startAnimation(),P._directDescendantItems.changes.pipe((0,z.R)(P.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){var P;null===(P=this.menu)||void 0===P||P.close.emit()}focus(P,H){this._focusMonitor&&P?this._focusMonitor.focusVia(this._element,P,H):this._element.nativeElement.focus(H)}updatePosition(){var P;null===(P=this._overlayRef)||void 0===P||P.updatePosition()}_destroyMenu(P){if(!this._overlayRef||!this.menuOpen)return;const H=this.menu;var i;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===P||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,H instanceof Xe?(H._resetAnimation(),H.lazyContent?H._animationDone.pipe((0,Q.h)(o=>"void"===o.toState),(0,V.q)(1),(0,z.R)(H.lazyContent._attached)).subscribe({next:()=>H.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==H||null===(i=H.lazyContent)||void 0===i||i.detach())}_initMenu(P){P.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,P.direction=this.dir,this._setMenuElevation(P),P.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(P){if(P.setElevation){let H=0,i=P.parentMenu;for(;i;)H++,i=i.parentMenu;P.setElevation(H)}}_setIsMenuOpen(P){this._menuOpen=P,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(P)}_createOverlay(P){if(!this._overlayRef){const H=this._getOverlayConfig(P);this._subscribeToPositions(P,H.positionStrategy),this._overlayRef=this._overlay.create(H),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(P){return new v.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:P.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:P.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(P,H){P.setPositionClasses&&H.positionChanges.subscribe(i=>{const o="start"===i.connectionPair.overlayX?"after":"before",f="top"===i.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>P.setPositionClasses(o,f)):P.setPositionClasses(o,f)})}_setPosition(P,H){let[i,o]="before"===P.xPosition?["end","start"]:["start","end"],[f,l]="above"===P.yPosition?["bottom","top"]:["top","bottom"],[a,n]=[f,l],[t,r]=[i,o],s=0;if(this.triggersSubmenu()){if(r=i="before"===P.xPosition?"start":"end",o=t="end"===i?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const d=this._parentMaterialMenu.items.first;this._parentInnerPadding=d?d._getHostElement().offsetTop:0}s="bottom"===f?this._parentInnerPadding:-this._parentInnerPadding}}else P.overlapTrigger||(a="top"===f?"bottom":"top",n="top"===l?"bottom":"top");H.withPositions([{originX:i,originY:a,overlayX:t,overlayY:f,offsetY:s},{originX:o,originY:a,overlayX:r,overlayY:f,offsetY:s},{originX:i,originY:n,overlayX:t,overlayY:l,offsetY:-s},{originX:o,originY:n,overlayX:r,overlayY:l,offsetY:-s}])}_menuClosingActions(){const P=this._overlayRef.backdropClick(),H=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,E.of)(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Q.h)(f=>f!==this._menuItemInstance),(0,Q.h)(()=>this._menuOpen)):(0,E.of)();return(0,T.T)(P,i,o,H)}_handleMousedown(P){(0,e.X6)(P)||(this._openedBy=0===P.button?"mouse":void 0,this.triggersSubmenu()&&P.preventDefault())}_handleKeydown(P){const H=P.keyCode;(H===A.K5||H===A.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(H===A.SV&&"ltr"===this.dir||H===A.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(P){this.triggersSubmenu()?(P.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Q.h)(P=>P===this._menuItemInstance&&!P.disabled),(0,te.g)(0,S.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Xe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,V.q)(1),(0,te.g)(0,S.E),(0,z.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(P){return(!this._portal||this._portal.templateRef!==P.templateRef)&&(this._portal=new ee.UE(P.templateRef,this._viewContainerRef)),this._portal}}return be.\u0275fac=function(P){return new(P||be)(w.Y36(v.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(Je),w.Y36(G,8),w.Y36($,10),w.Y36(Te.Is,8),w.Y36(e.tE),w.Y36(w.R0b))},be.\u0275dir=w.lG2({type:be,hostVars:3,hostBindings:function(P,H){1&P&&w.NdJ("click",function(o){return H._handleClick(o)})("mousedown",function(o){return H._handleMousedown(o)})("keydown",function(o){return H._handleKeydown(o)}),2&P&&w.uIk("aria-haspopup",H.menu?"menu":null)("aria-expanded",H.menuOpen||null)("aria-controls",H.menuOpen?H.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),be})(),Se=(()=>{class be extends re{}return be.\u0275fac=function(){let Ue;return function(H){return(Ue||(Ue=w.n5z(be)))(H||be)}}(),be.\u0275dir=w.lG2({type:be,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),be})(),Fe=(()=>{class be{}return be.\u0275fac=function(P){return new(P||be)},be.\u0275mod=w.oAB({type:be}),be.\u0275inj=w.cJS({providers:[Y],imports:[le.ez,de.BQ,de.si,v.U8,B.ZD,de.BQ]}),be})()},98739:(Ye,pe,h)=>{"use strict";h.d(pe,{NW:()=>W,TU:()=>q,ye:()=>oe});var e=h(36895),c=h(94650),A=h(3238),w=h(4859),g=h(84385),C=h(10266),T=h(21281),E=h(77579),S=h(59549);function U(ue,ye){if(1&ue&&(c.TgZ(0,"mat-option",19),c._uU(1),c.qZA()),2&ue){const Me=ye.$implicit;c.Q6J("value",Me),c.xp6(1),c.hij(" ",Me," ")}}function _(ue,ye){if(1&ue){const Me=c.EpF();c.TgZ(0,"mat-form-field",16)(1,"mat-select",17),c.NdJ("selectionChange",function(Ge){c.CHM(Me);const ce=c.oxw(2);return c.KtG(ce._changePageSize(Ge.value))}),c.YNc(2,U,2,2,"mat-option",18),c.qZA()()}if(2&ue){const Me=c.oxw(2);c.Q6J("appearance",Me._formFieldAppearance)("color",Me.color),c.xp6(1),c.Q6J("value",Me.pageSize)("disabled",Me.disabled)("panelClass",Me.selectConfig.panelClass||"")("disableOptionCentering",Me.selectConfig.disableOptionCentering)("aria-label",Me._intl.itemsPerPageLabel),c.xp6(1),c.Q6J("ngForOf",Me._displayedPageSizeOptions)}}function V(ue,ye){if(1&ue&&(c.TgZ(0,"div",20),c._uU(1),c.qZA()),2&ue){const Me=c.oxw(2);c.xp6(1),c.Oqu(Me.pageSize)}}function z(ue,ye){if(1&ue&&(c.TgZ(0,"div",12)(1,"div",13),c._uU(2),c.qZA(),c.YNc(3,_,3,8,"mat-form-field",14),c.YNc(4,V,2,1,"div",15),c.qZA()),2&ue){const Me=c.oxw();c.xp6(2),c.hij(" ",Me._intl.itemsPerPageLabel," "),c.xp6(1),c.Q6J("ngIf",Me._displayedPageSizeOptions.length>1),c.xp6(1),c.Q6J("ngIf",Me._displayedPageSizeOptions.length<=1)}}function Q(ue,ye){if(1&ue){const Me=c.EpF();c.TgZ(0,"button",21),c.NdJ("click",function(){c.CHM(Me);const Ge=c.oxw();return c.KtG(Ge.firstPage())}),c.O4$(),c.TgZ(1,"svg",7),c._UZ(2,"path",22),c.qZA()()}if(2&ue){const Me=c.oxw();c.Q6J("matTooltip",Me._intl.firstPageLabel)("matTooltipDisabled",Me._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Me._previousButtonsDisabled()),c.uIk("aria-label",Me._intl.firstPageLabel)}}function te(ue,ye){if(1&ue){const Me=c.EpF();c.O4$(),c.kcU(),c.TgZ(0,"button",23),c.NdJ("click",function(){c.CHM(Me);const Ge=c.oxw();return c.KtG(Ge.lastPage())}),c.O4$(),c.TgZ(1,"svg",7),c._UZ(2,"path",24),c.qZA()()}if(2&ue){const Me=c.oxw();c.Q6J("matTooltip",Me._intl.lastPageLabel)("matTooltipDisabled",Me._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Me._nextButtonsDisabled()),c.uIk("aria-label",Me._intl.lastPageLabel)}}let oe=(()=>{class ue{constructor(){this.changes=new E.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Me,we,Ge)=>{if(0==Ge||0==we)return`0 of ${Ge}`;const ce=Me*we;return`${ce+1} \u2013 ${ce<(Ge=Math.max(Ge,0))?Math.min(ce+we,Ge):ce+we} of ${Ge}`}}}return ue.\u0275fac=function(Me){return new(Me||ue)},ue.\u0275prov=c.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const le={provide:oe,deps:[[new c.FiY,new c.tp0,oe]],useFactory:function ee(ue){return ue||new oe}},v=new c.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),L=(0,A.Id)((0,A.dB)(class{}));let B=(()=>{class ue extends L{constructor(Me,we,Ge){if(super(),this._intl=Me,this._changeDetectorRef=we,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new c.vpe,this._intlChanges=Me.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Ge){const{pageSize:ce,pageSizeOptions:Ze,hidePageSize:he,showFirstLastButtons:xe}=Ge;null!=ce&&(this._pageSize=ce),null!=Ze&&(this._pageSizeOptions=Ze),null!=he&&(this._hidePageSize=he),null!=xe&&(this._showFirstLastButtons=xe)}}get pageIndex(){return this._pageIndex}set pageIndex(Me){this._pageIndex=Math.max((0,T.su)(Me),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Me){this._length=(0,T.su)(Me),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Me){this._pageSize=Math.max((0,T.su)(Me),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Me){this._pageSizeOptions=(Me||[]).map(we=>(0,T.su)(we)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Me){this._hidePageSize=(0,T.Ig)(Me)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Me){this._showFirstLastButtons=(0,T.Ig)(Me)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Me=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Me)}previousPage(){if(!this.hasPreviousPage())return;const Me=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Me)}firstPage(){if(!this.hasPreviousPage())return;const Me=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Me)}lastPage(){if(!this.hasNextPage())return;const Me=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Me)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Me=this.getNumberOfPages()-1;return this.pageIndexMe-we),this._changeDetectorRef.markForCheck())}_emitPageEvent(Me){this.page.emit({previousPageIndex:Me,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ue.\u0275fac=function(Me){c.$Z()},ue.\u0275dir=c.lG2({type:ue,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[c.qOj]}),ue})(),W=(()=>{class ue extends B{constructor(Me,we,Ge){super(Me,we,Ge),Ge&&null!=Ge.formFieldAppearance&&(this._formFieldAppearance=Ge.formFieldAppearance)}}return ue.\u0275fac=function(Me){return new(Me||ue)(c.Y36(oe),c.Y36(c.sBO),c.Y36(v,8))},ue.\u0275cmp=c.Xpm({type:ue,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[c.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Me,we){1&Me&&(c.TgZ(0,"div",0)(1,"div",1),c.YNc(2,z,5,3,"div",2),c.TgZ(3,"div",3)(4,"div",4),c._uU(5),c.qZA(),c.YNc(6,Q,3,5,"button",5),c.TgZ(7,"button",6),c.NdJ("click",function(){return we.previousPage()}),c.O4$(),c.TgZ(8,"svg",7),c._UZ(9,"path",8),c.qZA()(),c.kcU(),c.TgZ(10,"button",9),c.NdJ("click",function(){return we.nextPage()}),c.O4$(),c.TgZ(11,"svg",7),c._UZ(12,"path",10),c.qZA()(),c.YNc(13,te,3,5,"button",11),c.qZA()()()),2&Me&&(c.xp6(2),c.Q6J("ngIf",!we.hidePageSize),c.xp6(3),c.hij(" ",we._intl.getRangeLabel(we.pageIndex,we.pageSize,we.length)," "),c.xp6(1),c.Q6J("ngIf",we.showFirstLastButtons),c.xp6(1),c.Q6J("matTooltip",we._intl.previousPageLabel)("matTooltipDisabled",we._previousButtonsDisabled())("matTooltipPosition","above")("disabled",we._previousButtonsDisabled()),c.uIk("aria-label",we._intl.previousPageLabel),c.xp6(3),c.Q6J("matTooltip",we._intl.nextPageLabel)("matTooltipDisabled",we._nextButtonsDisabled())("matTooltipPosition","above")("disabled",we._nextButtonsDisabled()),c.uIk("aria-label",we._intl.nextPageLabel),c.xp6(3),c.Q6J("ngIf",we.showFirstLastButtons))},dependencies:[e.sg,e.O5,w.lW,S.KE,g.gD,A.ey,C.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),ue})(),q=(()=>{class ue{}return ue.\u0275fac=function(Me){return new(Me||ue)},ue.\u0275mod=c.oAB({type:ue}),ue.\u0275inj=c.cJS({providers:[le],imports:[e.ez,w.ot,g.LD,C.AV,A.BQ]}),ue})()},73162:(Ye,pe,h)=>{"use strict";h.d(pe,{Cv:()=>V});var e=h(94650),c=h(36895),A=h(3238);let V=(()=>{class z{}return z.\u0275fac=function(te){return new(te||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[c.ez,A.BQ,A.BQ]}),z})()},51572:(Ye,pe,h)=>{"use strict";h.d(pe,{Cq:()=>ee,Ou:()=>oe});var e=h(21281),c=h(83353),A=h(67376),w=h(36895),g=h(94650),C=h(3238),T=h(50727);function E(de,Te){if(1&de&&(g.O4$(),g._UZ(0,"circle",4)),2&de){const v=g.oxw(),L=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+v._spinnerAnimationLabel)("stroke-dashoffset",v._getStrokeDashOffset(),"px")("stroke-dasharray",v._getStrokeCircumference(),"px")("stroke-width",v._getCircleStrokeWidth(),"%")("transform-origin",v._getCircleTransformOrigin(L)),g.uIk("r",v._getCircleRadius())}}function S(de,Te){if(1&de&&(g.O4$(),g._UZ(0,"circle",4)),2&de){const v=g.oxw(),L=g.MAs(1);g.Udp("stroke-dashoffset",v._getStrokeDashOffset(),"px")("stroke-dasharray",v._getStrokeCircumference(),"px")("stroke-width",v._getCircleStrokeWidth(),"%")("transform-origin",v._getCircleTransformOrigin(L)),g.uIk("r",v._getCircleRadius())}}const V=(0,C.pj)(class{constructor(de){this._elementRef=de}},"primary"),z=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Q(){return{diameter:100}}});class oe extends V{constructor(Te,v,L,B,W,q,ue,ye){super(Te),this._document=L,this._diameter=100,this._value=0,this._resizeSubscription=T.w0.EMPTY,this.mode="determinate";const Me=oe._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Me.has(L.head)||Me.set(L.head,new Set([100])),this._noopAnimations="NoopAnimations"===B&&!!W&&!W._forceAnimations,"mat-spinner"===Te.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),W&&(W.color&&(this.color=this.defaultColor=W.color),W.diameter&&(this.diameter=W.diameter),W.strokeWidth&&(this.strokeWidth=W.strokeWidth)),v.isBrowser&&v.SAFARI&&ue&&q&&ye&&(this._resizeSubscription=ue.change(150).subscribe(()=>{"indeterminate"===this.mode&&ye.run(()=>q.markForCheck())}))}get diameter(){return this._diameter}set diameter(Te){this._diameter=(0,e.su)(Te),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Te){this._strokeWidth=(0,e.su)(Te)}get value(){return"determinate"===this.mode?this._value:0}set value(Te){this._value=Math.max(0,Math.min(100,(0,e.su)(Te)))}ngOnInit(){const Te=this._elementRef.nativeElement;this._styleRoot=(0,c.kV)(Te)||this._document.head,this._attachStyleNode(),Te.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Te=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Te} ${Te}`}_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(Te){var v;const L=50*(null!==(v=Te.currentScale)&&void 0!==v?v:1);return`${L}% ${L}%`}_attachStyleNode(){const Te=this._styleRoot,v=this._diameter,L=oe._diameters;let B=L.get(Te);if(!B||!B.has(v)){const W=this._document.createElement("style");W.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),W.textContent=this._getAnimationText(),Te.appendChild(W),B||(B=new Set,L.set(Te,B)),B.add(v)}}_getAnimationText(){const Te=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*Te).replace(/END_VALUE/g,""+.2*Te).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}oe._diameters=new WeakMap,oe.\u0275fac=function(Te){return new(Te||oe)(g.Y36(g.SBq),g.Y36(c.t4),g.Y36(w.K0,8),g.Y36(g.QbO,8),g.Y36(z),g.Y36(g.sBO),g.Y36(A.rL),g.Y36(g.R0b))},oe.\u0275cmp=g.Xpm({type:oe,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(Te,v){2&Te&&(g.uIk("aria-valuemin","determinate"===v.mode?0:null)("aria-valuemax","determinate"===v.mode?100:null)("aria-valuenow","determinate"===v.mode?v.value:null)("mode",v.mode),g.Udp("width",v.diameter,"px")("height",v.diameter,"px"),g.ekj("_mat-animation-noopable",v._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.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(Te,v){1&Te&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,E,1,11,"circle",2),g.YNc(3,S,1,9,"circle",3),g.qZA()),2&Te&&(g.Udp("width",v.diameter,"px")("height",v.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===v.mode),g.uIk("viewBox",v._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.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 ee=(()=>{class de{}return de.\u0275fac=function(v){return new(v||de)},de.\u0275mod=g.oAB({type:de}),de.\u0275inj=g.cJS({imports:[C.BQ,w.ez,C.BQ]}),de})()},71948:(Ye,pe,h)=>{"use strict";h.d(pe,{Fk:()=>L,U0:()=>v,VQ:()=>ee});var e=h(94650),c=h(3238),A=h(12687),w=h(21281),g=h(95017),C=h(24006);const T=["input"],E=function(B){return{enterDuration:B}},S=["*"],U=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function _(){return{color:"accent"}}});let V=0;const z={provide:C.JU,useExisting:(0,e.Gpc)(()=>ee),multi:!0};class Q{constructor(W,q){this.source=W,this.value=q}}const te=new e.OlP("MatRadioGroup");let oe=(()=>{class B{constructor(q){this._changeDetector=q,this._value=null,this._name="mat-radio-group-"+V++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(q){this._name=q,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(q){this._labelPosition="before"===q?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(q){this._value!==q&&(this._value=q,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(q){this._selected=q,this.value=q?q.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q),this._markRadiosForCheck()}get required(){return this._required}set required(q){this._required=(0,w.Ig)(q),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(q=>{q.name=this.name,q._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ue=>{ue.checked=this.value===ue.value,ue.checked&&(this._selected=ue)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Q(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(q=>q._markForCheck())}writeValue(q){this.value=q,this._changeDetector.markForCheck()}registerOnChange(q){this._controlValueAccessorChangeFn=q}registerOnTouched(q){this.onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetector.markForCheck()}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(e.sBO))},B.\u0275dir=e.lG2({type:B,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),B})(),ee=(()=>{class B extends oe{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=e.n5z(B)))(ue||B)}}(),B.\u0275dir=e.lG2({type:B,selectors:[["mat-radio-group"]],contentQueries:function(q,ue,ye){if(1&q&&e.Suo(ye,v,5),2&q){let Me;e.iGM(Me=e.CRH())&&(ue._radios=Me)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([z,{provide:te,useExisting:B}]),e.qOj]}),B})();class le{constructor(W){this._elementRef=W}}const de=(0,c.Kr)((0,c.sb)(le));let Te=(()=>{class B extends de{constructor(q,ue,ye,Me,we,Ge,ce,Ze){super(ue),this._changeDetector=ye,this._focusMonitor=Me,this._radioDispatcher=we,this._providerOverride=ce,this._uniqueId="mat-radio-"+ ++V,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=q,this._noopAnimations="NoopAnimations"===Ge,Ze&&(this.tabIndex=(0,w.su)(Ze,0)),this._removeUniqueSelectionListener=we.listen((he,xe)=>{he!==this.id&&xe===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(q){const ue=(0,w.Ig)(q);this._checked!==ue&&(this._checked=ue,ue&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ue&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ue&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(q){this._value!==q&&(this._value=q,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===q),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(q){this._labelPosition=q}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(q){this._setDisabled((0,w.Ig)(q))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(q){this._required=(0,w.Ig)(q)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(q){this._color=q}get inputId(){return`${this.id||this._uniqueId}-input`}focus(q,ue){ue?this._focusMonitor.focusVia(this._inputElement,ue,q):this._inputElement.nativeElement.focus(q)}_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(q=>{!q&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Q(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(q){q.stopPropagation()}_onInputInteraction(q){if(q.stopPropagation(),!this.checked&&!this.disabled){const ue=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ue&&this.radioGroup._emitChangeEvent())}}_setDisabled(q){this._disabled!==q&&(this._disabled=q,this._changeDetector.markForCheck())}_updateTabIndex(){const q=this.radioGroup;let ue;if(ue=q&&q.selected&&!this.disabled?q.selected===this?this.tabIndex:-1:this.tabIndex,ue!==this._previousTabIndex){var ye;const Me=null===(ye=this._inputElement)||void 0===ye?void 0:ye.nativeElement;Me&&(Me.setAttribute("tabindex",ue+""),this._previousTabIndex=ue)}}}return B.\u0275fac=function(q){e.$Z()},B.\u0275dir=e.lG2({type:B,viewQuery:function(q,ue){if(1&q&&e.Gf(T,5),2&q){let ye;e.iGM(ye=e.CRH())&&(ue._inputElement=ye.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:[e.qOj]}),B})(),v=(()=>{class B extends Te{constructor(q,ue,ye,Me,we,Ge,ce,Ze){super(q,ue,ye,Me,we,Ge,ce,Ze)}}return B.\u0275fac=function(q){return new(q||B)(e.Y36(te,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(g.A8),e.Y36(e.QbO,8),e.Y36(U,8),e.$8M("tabindex"))},B.\u0275cmp=e.Xpm({type:B,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(q,ue){1&q&&e.NdJ("focus",function(){return ue._inputElement.nativeElement.focus()}),2&q&&(e.uIk("tabindex",null)("id",ue.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",ue.checked)("mat-radio-disabled",ue.disabled)("_mat-animation-noopable",ue._noopAnimations)("mat-primary","primary"===ue.color)("mat-accent","accent"===ue.color)("mat-warn","warn"===ue.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:S,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(q,ue){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2),e._UZ(3,"span",3)(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(Me){return ue._onInputInteraction(Me)})("click",function(Me){return ue._onInputClick(Me)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()(),e.TgZ(9,"span",9)(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA()()),2&q){const ye=e.MAs(1);e.uIk("for",ue.inputId),e.xp6(5),e.Q6J("id",ue.inputId)("checked",ue.checked)("disabled",ue.disabled)("required",ue.required),e.uIk("name",ue.name)("value",ue.value)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",ye)("matRippleDisabled",ue._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(17,E,ue._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==ue.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}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),B})(),L=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=e.oAB({type:B}),B.\u0275inj=e.cJS({imports:[c.si,c.BQ,c.BQ]}),B})()},84385:(Ye,pe,h)=>{"use strict";h.d(pe,{$L:()=>Se,LD:()=>Ue,gD:()=>be});var e=h(98184),c=h(36895),A=h(94650),w=h(3238),g=h(59549),C=h(67376),T=h(12687),E=h(40445),S=h(21281),U=h(95017),_=h(29521),V=h(24006),z=h(77579),Q=h(49770),te=h(56451),oe=h(68675),ee=h(63900),le=h(95698),de=h(39300),Te=h(54004),v=h(71884),L=h(82722),B=h(37340);const W=["trigger"],q=["panel"];function ue(P,H){if(1&P&&(A.TgZ(0,"span",8),A._uU(1),A.qZA()),2&P){const i=A.oxw();A.xp6(1),A.Oqu(i.placeholder)}}function ye(P,H){if(1&P&&(A.TgZ(0,"span",12),A._uU(1),A.qZA()),2&P){const i=A.oxw(2);A.xp6(1),A.Oqu(i.triggerValue)}}function Me(P,H){1&P&&A.Hsn(0,0,["*ngSwitchCase","true"])}function we(P,H){if(1&P&&(A.TgZ(0,"span",9),A.YNc(1,ye,2,1,"span",10),A.YNc(2,Me,1,0,"ng-content",11),A.qZA()),2&P){const i=A.oxw();A.Q6J("ngSwitch",!!i.customTrigger),A.xp6(2),A.Q6J("ngSwitchCase",!0)}}function Ge(P,H){if(1&P){const i=A.EpF();A.TgZ(0,"div",13)(1,"div",14,15),A.NdJ("@transformPanel.done",function(f){A.CHM(i);const l=A.oxw();return A.KtG(l._panelDoneAnimatingStream.next(f.toState))})("keydown",function(f){A.CHM(i);const l=A.oxw();return A.KtG(l._handleKeydown(f))}),A.Hsn(3,1),A.qZA()()}if(2&P){const i=A.oxw();A.Q6J("@transformPanelWrap",void 0),A.xp6(1),A.Gre("mat-select-panel ",i._getPanelTheme(),""),A.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),A.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),A.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const ce=[[["mat-select-trigger"]],"*"],Ze=["mat-select-trigger","*"],he={transformPanelWrap:(0,B.X$)("transformPanelWrap",[(0,B.eR)("* => void",(0,B.IO)("@transformPanel",[(0,B.pV)()],{optional:!0}))]),transformPanel:(0,B.X$)("transformPanel",[(0,B.SB)("void",(0,B.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,B.SB)("showing",(0,B.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,B.SB)("showing-multiple",(0,B.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,B.eR)("void => *",(0,B.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,B.eR)("* => void",(0,B.jt)("100ms 25ms linear",(0,B.oB)({opacity:0})))])};let G=0;const _t=new A.OlP("mat-select-scroll-strategy"),gt=new A.OlP("MAT_SELECT_CONFIG"),Y={provide:_t,deps:[e.aV],useFactory:function Je(P){return()=>P.scrollStrategies.reposition()}};class Ce{constructor(H,i){this.source=H,this.value=i}}const ae=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(P,H,i,o,f){this._elementRef=P,this._defaultErrorStateMatcher=H,this._parentForm=i,this._parentFormGroup=o,this.ngControl=f,this.stateChanges=new z.x}})))),re=new A.OlP("MatSelectTrigger");let Se=(()=>{class P{}return P.\u0275fac=function(i){return new(i||P)},P.\u0275dir=A.lG2({type:P,selectors:[["mat-select-trigger"]],features:[A._Bn([{provide:re,useExisting:P}])]}),P})(),Fe=(()=>{class P extends ae{constructor(i,o,f,l,a,n,t,r,s,d,p,M,_e,bt){var Vt,on,Mt;super(a,l,t,r,d),this._viewportRuler=i,this._changeDetectorRef=o,this._ngZone=f,this._dir=n,this._parentFormField=s,this._liveAnnouncer=_e,this._defaultOptions=bt,this._panelOpen=!1,this._compareWith=(ft,je)=>ft===je,this._uid="mat-select-"+G++,this._triggerAriaLabelledBy=null,this._destroy=new z.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+G++,this._panelDoneAnimatingStream=new z.x,this._overlayPanelClass=(null===(Vt=this._defaultOptions)||void 0===Vt?void 0:Vt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(on=null===(Mt=this._defaultOptions)||void 0===Mt?void 0:Mt.disableOptionCentering)&&void 0!==on&&on,this.ariaLabel="",this.optionSelectionChanges=(0,Q.P)(()=>{const ft=this.options;return ft?ft.changes.pipe((0,oe.O)(ft),(0,ee.w)(()=>(0,te.T)(...ft.map(je=>je.onSelectionChange)))):this._ngZone.onStable.pipe((0,le.q)(1),(0,ee.w)(()=>this.optionSelectionChanges))}),this.openedChange=new A.vpe,this._openedStream=this.openedChange.pipe((0,de.h)(ft=>ft),(0,Te.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,de.h)(ft=>!ft),(0,Te.U)(()=>{})),this.selectionChange=new A.vpe,this.valueChange=new A.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=bt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=bt.typeaheadDebounceInterval),this._scrollStrategyFactory=M,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){var i,o,f,l;return null!==(i=null!==(o=this._required)&&void 0!==o?o:null===(f=this.ngControl)||void 0===f||null===(l=f.control)||void 0===l?void 0:l.hasValidator(V.kI.required))&&void 0!==i&&i}set required(i){this._required=(0,S.Ig)(i),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._multiple=(0,S.Ig)(i)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(i){this._disableOptionCentering=(0,S.Ig)(i)}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){this._assignValue(i)&&this._onChange(i)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(i){this._typeaheadDebounceInterval=(0,S.su)(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new U.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,v.x)(),(0,L.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,L.R)(this._destroy)).subscribe(i=>{i.added.forEach(o=>o.select()),i.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,oe.O)(null),(0,L.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const i=this._getTriggerAriaLabelledby(),o=this.ngControl;if(i!==this._triggerAriaLabelledBy){const f=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?f.setAttribute("aria-labelledby",i):f.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(i){(i.disabled||i.userAriaDescribedBy)&&this.stateChanges.next(),i.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(i){this._assignValue(i)}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var i,o;return this.multiple?(null===(i=this._selectionModel)||void 0===i?void 0:i.selected)||[]:null===(o=this._selectionModel)||void 0===o?void 0:o.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const i=this._selectionModel.selected.map(o=>o.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){const o=i.keyCode,f=o===_.JH||o===_.LH||o===_.oh||o===_.SV,l=o===_.K5||o===_.L_,a=this._keyManager;if(!a.isTyping()&&l&&!(0,_.Vb)(i)||(this.multiple||i.altKey)&&f)i.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;a.onKeydown(i);const t=this.selected;t&&n!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(i){const o=this._keyManager,f=i.keyCode,l=f===_.JH||f===_.LH,a=o.isTyping();if(l&&i.altKey)i.preventDefault(),this.close();else if(a||f!==_.K5&&f!==_.L_||!o.activeItem||(0,_.Vb)(i))if(!a&&this._multiple&&f===_.A&&i.ctrlKey){i.preventDefault();const n=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(n?t.select():t.deselect())})}else{const n=o.activeItemIndex;o.onKeydown(i),this._multiple&&l&&i.shiftKey&&o.activeItem&&o.activeItemIndex!==n&&o.activeItem._selectViaInteraction()}else i.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,le.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(i){if(this._selectionModel.selected.forEach(o=>o.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(o=>this._selectOptionByValue(o)),this._sortValues();else{const o=this._selectOptionByValue(i);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(i){const o=this.options.find(f=>{if(this._selectionModel.isSelected(f))return!1;try{return null!=f.value&&this._compareWith(f.value,i)}catch{return!1}});return o&&this._selectionModel.select(o),o}_assignValue(i){return!!(i!==this._value||this._multiple&&Array.isArray(i))&&(this.options&&this._setSelectionByValue(i),this._value=i,!0)}_initKeyManager(){this._keyManager=new T.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,L.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,L.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 i=(0,te.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,L.R)(i)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,te.T)(...this.options.map(o=>o._stateChanges)).pipe((0,L.R)(i)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(i,o){const f=this._selectionModel.isSelected(i);null!=i.value||this._multiple?(f!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),o&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),o&&this.focus())):(i.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(i.value)),f!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const i=this.options.toArray();this._selectionModel.sort((o,f)=>this.sortComparator?this.sortComparator(o,f,i):i.indexOf(o)-i.indexOf(f)),this.stateChanges.next()}}_propagateChanges(i){let o=null;o=this.multiple?this.selected.map(f=>f.value):this.selected?this.selected.value:i,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(){var i;return!this._panelOpen&&!this.disabled&&(null===(i=this.options)||void 0===i?void 0:i.length)>0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){var i;if(this.ariaLabel)return null;const o=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();return this.ariaLabelledby?(o?o+" ":"")+this.ariaLabelledby:o}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var i;if(this.ariaLabel)return null;const o=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();let f=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(f+=" "+this.ariaLabelledby),f}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){i.length?this._elementRef.nativeElement.setAttribute("aria-describedby",i.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return P.\u0275fac=function(i){return new(i||P)(A.Y36(C.rL),A.Y36(A.sBO),A.Y36(A.R0b),A.Y36(w.rD),A.Y36(A.SBq),A.Y36(E.Is,8),A.Y36(V.F,8),A.Y36(V.sg,8),A.Y36(g.G_,8),A.Y36(V.a5,10),A.$8M("tabindex"),A.Y36(_t),A.Y36(T.Kd),A.Y36(gt,8))},P.\u0275dir=A.lG2({type:P,viewQuery:function(i,o){if(1&i&&(A.Gf(W,5),A.Gf(q,5),A.Gf(e.pI,5)),2&i){let f;A.iGM(f=A.CRH())&&(o.trigger=f.first),A.iGM(f=A.CRH())&&(o.panel=f.first),A.iGM(f=A.CRH())&&(o._overlayDir=f.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:[A.qOj,A.TTD]}),P})(),be=(()=>{class P extends Fe{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(i,o,f){const l=this._getItemHeight();return Math.min(Math.max(0,l*i-o+l/2),f)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,L.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,le.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(i){const o=(0,w.CB)(i,this.options,this.optionGroups),f=this._getItemHeight();this.panel.nativeElement.scrollTop=0===i&&1===o?0:(0,w.jH)((i+o)*f,f,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(i){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(i)}_getChangeEvent(i){return new Ce(this,i)}_calculateOverlayOffsetX(){const i=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),f=this._isRtl(),l=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let r=this._selectionModel.selected[0]||this.options.first;a=r&&r.group?32:16}f||(a*=-1);const n=0-(i.left+a-(f?l:0)),t=i.right+a-o.width+(f?0:l);n>0?a+=n+8:t>0&&(a-=t+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(i,o,f){const l=this._getItemHeight(),a=(l-this._triggerRect.height)/2,n=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?i*l:this._scrollTop===f?(i-(this._getItemCount()-n))*l+(l-(this._getItemCount()*l-256)%l):o-l/2,Math.round(-1*t-a))}_checkOverlayWithinViewport(i){const o=this._getItemHeight(),f=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,a=f.height-this._triggerRect.bottom-8,n=Math.abs(this._offsetY),r=Math.min(this._getItemCount()*o,256)-n-this._triggerRect.height;r>a?this._adjustPanelUp(r,a):n>l?this._adjustPanelDown(n,l,i):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(i,o){const f=Math.round(i-o);this._scrollTop-=f,this._offsetY-=f,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(i,o,f){const l=Math.round(i-o);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=f)return this._scrollTop=f,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const i=this._getItemHeight(),o=this._getItemCount(),f=Math.min(o*i,256),a=o*i-f;let n;n=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),n+=(0,w.CB)(n,this.options,this.optionGroups);const t=f/2;this._scrollTop=this._calculateOverlayScroll(n,t,a),this._offsetY=this._calculateOverlayOffsetY(n,t,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const i=this._getItemHeight(),o=(i-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-o+i/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return P.\u0275fac=function(){let H;return function(o){return(H||(H=A.n5z(P)))(o||P)}}(),P.\u0275cmp=A.Xpm({type:P,selectors:[["mat-select"]],contentQueries:function(i,o,f){if(1&i&&(A.Suo(f,re,5),A.Suo(f,w.ey,5),A.Suo(f,w.K7,5)),2&i){let l;A.iGM(l=A.CRH())&&(o.customTrigger=l.first),A.iGM(l=A.CRH())&&(o.options=l),A.iGM(l=A.CRH())&&(o.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(i,o){1&i&&A.NdJ("keydown",function(l){return o._handleKeydown(l)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(A.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()),A.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:[A._Bn([{provide:g.Eo,useExisting:P},{provide:w.HF,useExisting:P}]),A.qOj],ngContentSelectors:Ze,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(i,o){if(1&i&&(A.F$t(ce),A.TgZ(0,"div",0,1),A.NdJ("click",function(){return o.toggle()}),A.TgZ(3,"div",2),A.YNc(4,ue,2,1,"span",3),A.YNc(5,we,3,2,"span",4),A.qZA(),A.TgZ(6,"div",5),A._UZ(7,"div",6),A.qZA()(),A.YNc(8,Ge,4,14,"ng-template",7),A.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const f=A.MAs(1);A.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),A.xp6(3),A.Q6J("ngSwitch",o.empty),A.uIk("id",o._valueId),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(1),A.Q6J("ngSwitchCase",!1),A.xp6(3),A.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",f)("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,e.pI,e.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:[he.transformPanelWrap,he.transformPanel]},changeDetection:0}),P})(),Ue=(()=>{class P{}return P.\u0275fac=function(i){return new(i||P)},P.\u0275mod=A.oAB({type:P}),P.\u0275inj=A.cJS({providers:[Y],imports:[c.ez,e.U8,w.Ng,w.BQ,C.ZD,g.lN,w.Ng,w.BQ]}),P})()},23267:(Ye,pe,h)=>{"use strict";h.d(pe,{JX:()=>ct,Rh:()=>Oe,SJ:()=>_t,TM:()=>Xe});var e=h(67376),c=h(36895),A=h(94650),w=h(3238),g=h(12687),C=h(40445),T=h(21281),E=h(29521),S=h(83353),U=h(77579),_=h(54968),V=h(56451),z=h(39300),Q=h(54004),te=h(69718),oe=h(82722),ee=h(71884),le=h(95698),de=h(68675),Te=h(78372),v=h(37340);const L=["*"],B=["content"];function W(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae._onBackdropClicked())}),A.qZA()}if(2&Je){const Y=A.oxw();A.ekj("mat-drawer-shown",Y._isShowingBackdrop())}}function q(Je,gt){1&Je&&(A.TgZ(0,"mat-drawer-content"),A.Hsn(1,2),A.qZA())}const ue=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ye=["mat-drawer","mat-drawer-content","*"];function Me(Je,gt){if(1&Je){const Y=A.EpF();A.TgZ(0,"div",2),A.NdJ("click",function(){A.CHM(Y);const ae=A.oxw();return A.KtG(ae._onBackdropClicked())}),A.qZA()}if(2&Je){const Y=A.oxw();A.ekj("mat-drawer-shown",Y._isShowingBackdrop())}}function we(Je,gt){1&Je&&(A.TgZ(0,"mat-sidenav-content"),A.Hsn(1,2),A.qZA())}const Ge=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ce=["mat-sidenav","mat-sidenav-content","*"],he={transformDrawer:(0,v.X$)("transform",[(0,v.SB)("open, open-instant",(0,v.oB)({transform:"none",visibility:"visible"})),(0,v.SB)("void",(0,v.oB)({"box-shadow":"none",visibility:"hidden"})),(0,v.eR)("void => open-instant",(0,v.jt)("0ms")),(0,v.eR)("void <=> open, open-instant => void",(0,v.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},j=new A.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function G(){return!1}}),R=new A.OlP("MAT_DRAWER_CONTAINER");let se=(()=>{class Je extends e.PQ{constructor(Y,Ce,ae,re,Se){super(ae,re,Se),this._changeDetectorRef=Y,this._container=Ce}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Ee)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Y,Ce){2&Y&&A.Udp("margin-left",Ce._container._contentMargins.left,"px")("margin-right",Ce._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Je}]),A.qOj],ngContentSelectors:L,decls:1,vars:0,template:function(Y,Ce){1&Y&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Je})(),$=(()=>{class Je{constructor(Y,Ce,ae,re,Se,Fe,be,Ue){this._elementRef=Y,this._focusTrapFactory=Ce,this._focusMonitor=ae,this._platform=re,this._ngZone=Se,this._interactivityChecker=Fe,this._doc=be,this._container=Ue,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U.x,this._animationEnd=new U.x,this._animationState="void",this.openedChange=new A.vpe(!0),this._openedStream=this.openedChange.pipe((0,z.h)(P=>P),(0,Q.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,z.h)(P=>P.fromState!==P.toState&&0===P.toState.indexOf("open")),(0,te.h)(void 0)),this._closedStream=this.openedChange.pipe((0,z.h)(P=>!P),(0,Q.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,z.h)(P=>P.fromState!==P.toState&&"void"===P.toState),(0,te.h)(void 0)),this._destroyed=new U.x,this.onPositionChanged=new A.vpe,this._modeChanged=new U.x,this.openedChange.subscribe(P=>{P?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,_.R)(this._elementRef.nativeElement,"keydown").pipe((0,z.h)(P=>P.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(P)),(0,oe.R)(this._destroyed)).subscribe(P=>this._ngZone.run(()=>{this.close(),P.stopPropagation(),P.preventDefault()}))}),this._animationEnd.pipe((0,ee.x)((P,H)=>P.fromState===H.fromState&&P.toState===H.toState)).subscribe(P=>{const{fromState:H,toState:i}=P;(0===i.indexOf("open")&&"void"===H||"void"===i&&0===H.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Y){(Y="end"===Y?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Y),this._position=Y,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Y){this._mode=Y,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Y){this._disableClose=(0,T.Ig)(Y)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Y){("true"===Y||"false"===Y||null==Y)&&(Y=(0,T.Ig)(Y)),this._autoFocus=Y}get opened(){return this._opened}set opened(Y){this.toggle((0,T.Ig)(Y))}_forceFocus(Y,Ce){this._interactivityChecker.isFocusable(Y)||(Y.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ae=()=>{Y.removeEventListener("blur",ae),Y.removeEventListener("mousedown",ae),Y.removeAttribute("tabindex")};Y.addEventListener("blur",ae),Y.addEventListener("mousedown",ae)})),Y.focus(Ce)}_focusByCssSelector(Y,Ce){let ae=this._elementRef.nativeElement.querySelector(Y);ae&&this._forceFocus(ae,Ce)}_takeFocus(){if(!this._focusTrap)return;const Y=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ce=>{!Ce&&"function"==typeof this._elementRef.nativeElement.focus&&Y.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Y){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Y):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Y=this._doc.activeElement;return!!Y&&this._elementRef.nativeElement.contains(Y)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var Y;this._focusTrap&&this._focusTrap.destroy(),null===(Y=this._anchor)||void 0===Y||Y.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Y){return this.toggle(!0,Y)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Y=!this.opened,Ce){Y&&Ce&&(this._openedVia=Ce);const ae=this._setOpen(Y,!Y&&this._isFocusWithinDrawer(),this._openedVia||"program");return Y||(this._openedVia=null),ae}_setOpen(Y,Ce,ae){return this._opened=Y,Y?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",Ce&&this._restoreFocus(ae)),this._updateFocusTrapState(),new Promise(re=>{this.openedChange.pipe((0,le.q)(1)).subscribe(Se=>re(Se?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Y){const Ce=this._elementRef.nativeElement,ae=Ce.parentNode;"end"===Y?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),ae.insertBefore(this._anchor,Ce)),ae.appendChild(Ce)):this._anchor&&this._anchor.parentNode.insertBefore(Ce,this._anchor)}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(A.SBq),A.Y36(g.qV),A.Y36(g.tE),A.Y36(S.t4),A.Y36(A.R0b),A.Y36(g.ic),A.Y36(c.K0,8),A.Y36(R,8))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-drawer"]],viewQuery:function(Y,Ce){if(1&Y&&A.Gf(B,5),2&Y){let ae;A.iGM(ae=A.CRH())&&(Ce._content=ae.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Y,Ce){1&Y&&A.WFA("@transform.start",function(re){return Ce._animationStarted.next(re)})("@transform.done",function(re){return Ce._animationEnd.next(re)}),2&Y&&(A.uIk("align",null),A.d8E("@transform",Ce._animationState),A.ekj("mat-drawer-end","end"===Ce.position)("mat-drawer-over","over"===Ce.mode)("mat-drawer-push","push"===Ce.mode)("mat-drawer-side","side"===Ce.mode)("mat-drawer-opened",Ce.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:L,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Y,Ce){1&Y&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[he.transformDrawer]},changeDetection:0}),Je})(),Ee=(()=>{class Je{constructor(Y,Ce,ae,re,Se,Fe=!1,be){this._dir=Y,this._element=Ce,this._ngZone=ae,this._changeDetectorRef=re,this._animationMode=be,this._drawers=new A.n_E,this.backdropClick=new A.vpe,this._destroyed=new U.x,this._doCheckSubject=new U.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U.x,Y&&Y.change.pipe((0,oe.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Se.change().pipe((0,oe.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Fe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Y){this._autosize=(0,T.Ig)(Y)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(Y){this._backdropOverride=null==Y?null:(0,T.Ig)(Y)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,de.O)(this._allDrawers),(0,oe.R)(this._destroyed)).subscribe(Y=>{this._drawers.reset(Y.filter(Ce=>!Ce._container||Ce._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,de.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Y=>{this._watchDrawerToggle(Y),this._watchDrawerPosition(Y),this._watchDrawerMode(Y)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Te.b)(10),(0,oe.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Y=>Y.open())}close(){this._drawers.forEach(Y=>Y.close())}updateContentMargins(){let Y=0,Ce=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Y+=this._left._getWidth();else if("push"==this._left.mode){const ae=this._left._getWidth();Y+=ae,Ce-=ae}if(this._right&&this._right.opened)if("side"==this._right.mode)Ce+=this._right._getWidth();else if("push"==this._right.mode){const ae=this._right._getWidth();Ce+=ae,Y-=ae}Y=Y||null,Ce=Ce||null,(Y!==this._contentMargins.left||Ce!==this._contentMargins.right)&&(this._contentMargins={left:Y,right:Ce},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Y){Y._animationStarted.pipe((0,z.h)(Ce=>Ce.fromState!==Ce.toState),(0,oe.R)(this._drawers.changes)).subscribe(Ce=>{"open-instant"!==Ce.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Y.mode&&Y.openedChange.pipe((0,oe.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Y.opened))}_watchDrawerPosition(Y){!Y||Y.onPositionChanged.pipe((0,oe.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,le.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Y){Y&&Y._modeChanged.pipe((0,oe.R)((0,V.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Y){const Ce=this._element.nativeElement.classList,ae="mat-drawer-container-has-open";Y?Ce.add(ae):Ce.remove(ae)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Y=>{"end"==Y.position?this._end=Y:this._start=Y}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Y=>Y&&!Y.disableClose&&this._canHaveBackdrop(Y)).forEach(Y=>Y._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Y){return"side"!==Y.mode||!!this._backdropOverride}_isDrawerOpen(Y){return null!=Y&&Y.opened}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(C.Is,8),A.Y36(A.SBq),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(e.rL),A.Y36(j),A.Y36(A.QbO,8))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-drawer-container"]],contentQueries:function(Y,Ce,ae){if(1&Y&&(A.Suo(ae,se,5),A.Suo(ae,$,5)),2&Y){let re;A.iGM(re=A.CRH())&&(Ce._content=re.first),A.iGM(re=A.CRH())&&(Ce._allDrawers=re)}},viewQuery:function(Y,Ce){if(1&Y&&A.Gf(se,5),2&Y){let ae;A.iGM(ae=A.CRH())&&(Ce._userContent=ae.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Y,Ce){2&Y&&A.ekj("mat-drawer-container-explicit-backdrop",Ce._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[A._Bn([{provide:R,useExisting:Je}])],ngContentSelectors:ye,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Y,Ce){1&Y&&(A.F$t(ue),A.YNc(0,W,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,q,2,0,"mat-drawer-content",1)),2&Y&&(A.Q6J("ngIf",Ce.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!Ce._content))},dependencies:[c.O5,se],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Je})(),Oe=(()=>{class Je extends se{constructor(Y,Ce,ae,re,Se){super(Y,Ce,ae,re,Se)}}return Je.\u0275fac=function(Y){return new(Y||Je)(A.Y36(A.sBO),A.Y36((0,A.Gpc)(()=>Xe)),A.Y36(A.SBq),A.Y36(e.mF),A.Y36(A.R0b))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Y,Ce){2&Y&&A.Udp("margin-left",Ce._container._contentMargins.left,"px")("margin-right",Ce._container._contentMargins.right,"px")},features:[A._Bn([{provide:e.PQ,useExisting:Je}]),A.qOj],ngContentSelectors:L,decls:1,vars:0,template:function(Y,Ce){1&Y&&(A.F$t(),A.Hsn(0))},encapsulation:2,changeDetection:0}),Je})(),ct=(()=>{class Je extends ${constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Y){this._fixedInViewport=(0,T.Ig)(Y)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Y){this._fixedTopGap=(0,T.su)(Y)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Y){this._fixedBottomGap=(0,T.su)(Y)}}return Je.\u0275fac=function(){let gt;return function(Ce){return(gt||(gt=A.n5z(Je)))(Ce||Je)}}(),Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Y,Ce){2&Y&&(A.uIk("align",null),A.Udp("top",Ce.fixedInViewport?Ce.fixedTopGap:null,"px")("bottom",Ce.fixedInViewport?Ce.fixedBottomGap:null,"px"),A.ekj("mat-drawer-end","end"===Ce.position)("mat-drawer-over","over"===Ce.mode)("mat-drawer-push","push"===Ce.mode)("mat-drawer-side","side"===Ce.mode)("mat-drawer-opened",Ce.opened)("mat-sidenav-fixed",Ce.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[A.qOj],ngContentSelectors:L,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Y,Ce){1&Y&&(A.F$t(),A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA())},dependencies:[e.PQ],encapsulation:2,data:{animation:[he.transformDrawer]},changeDetection:0}),Je})(),Xe=(()=>{class Je extends Ee{}return Je.\u0275fac=function(){let gt;return function(Ce){return(gt||(gt=A.n5z(Je)))(Ce||Je)}}(),Je.\u0275cmp=A.Xpm({type:Je,selectors:[["mat-sidenav-container"]],contentQueries:function(Y,Ce,ae){if(1&Y&&(A.Suo(ae,Oe,5),A.Suo(ae,ct,5)),2&Y){let re;A.iGM(re=A.CRH())&&(Ce._content=re.first),A.iGM(re=A.CRH())&&(Ce._allDrawers=re)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Y,Ce){2&Y&&A.ekj("mat-drawer-container-explicit-backdrop",Ce._backdropOverride)},exportAs:["matSidenavContainer"],features:[A._Bn([{provide:R,useExisting:Je}]),A.qOj],ngContentSelectors:ce,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Y,Ce){1&Y&&(A.F$t(Ge),A.YNc(0,Me,1,2,"div",0),A.Hsn(1),A.Hsn(2,1),A.YNc(3,we,2,0,"mat-sidenav-content",1)),2&Y&&(A.Q6J("ngIf",Ce.hasBackdrop),A.xp6(3),A.Q6J("ngIf",!Ce._content))},dependencies:[c.O5,Oe],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),Je})(),_t=(()=>{class Je{}return Je.\u0275fac=function(Y){return new(Y||Je)},Je.\u0275mod=A.oAB({type:Je}),Je.\u0275inj=A.cJS({imports:[c.ez,w.BQ,e.ZD,e.ZD,w.BQ]}),Je})()},90455:(Ye,pe,h)=>{"use strict";h.d(pe,{Rr:()=>oe,rP:()=>Te});var e=h(49643),c=h(94650),A=h(3238),w=h(12687),g=h(21281),C=h(24006);const T=["input"],E=function(v){return{enterDuration:v}},S=["*"],U=new c.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let _=0;const V={provide:C.JU,useExisting:(0,c.Gpc)(()=>oe),multi:!0};class z{constructor(L,B){this.source=L,this.checked=B}}const Q=(0,A.sb)((0,A.pj)((0,A.Kr)((0,A.Id)(class{constructor(v){this._elementRef=v}}))));let te=(()=>{class v extends Q{constructor(B,W,q,ue,ye,Me,we){super(B),this._focusMonitor=W,this._changeDetectorRef=q,this.defaults=ye,this._onChange=Ge=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new c.vpe,this.toggleChange=new c.vpe,this.tabIndex=parseInt(ue)||0,this.color=this.defaultColor=ye.color||"accent",this._noopAnimations="NoopAnimations"===Me,this.id=this._uniqueId=`${we}${++_}`}get required(){return this._required}set required(B){this._required=(0,g.Ig)(B)}get checked(){return this._checked}set checked(B){this._checked=(0,g.Ig)(B),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(B=>{"keyboard"===B||"program"===B?this._focused=!0:B||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(B){this.checked=!!B}registerOnChange(B){this._onChange=B}registerOnTouched(B){this._onTouched=B}setDisabledState(B){this.disabled=B,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return v.\u0275fac=function(B){c.$Z()},v.\u0275dir=c.lG2({type:v,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[c.qOj]}),v})(),oe=(()=>{class v extends te{constructor(B,W,q,ue,ye,Me){super(B,W,q,ue,ye,Me,"mat-slide-toggle-")}_createChangeEvent(B){return new z(this,B)}_onChangeEvent(B){B.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(B){B.stopPropagation()}focus(B,W){W?this._focusMonitor.focusVia(this._inputElement,W,B):this._inputElement.nativeElement.focus(B)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return v.\u0275fac=function(B){return new(B||v)(c.Y36(c.SBq),c.Y36(w.tE),c.Y36(c.sBO),c.$8M("tabindex"),c.Y36(U),c.Y36(c.QbO,8))},v.\u0275cmp=c.Xpm({type:v,selectors:[["mat-slide-toggle"]],viewQuery:function(B,W){if(1&B&&c.Gf(T,5),2&B){let q;c.iGM(q=c.CRH())&&(W._inputElement=q.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(B,W){2&B&&(c.Ikx("id",W.id),c.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),c.ekj("mat-checked",W.checked)("mat-disabled",W.disabled)("mat-slide-toggle-label-before","before"==W.labelPosition)("_mat-animation-noopable",W._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[c._Bn([V]),c.qOj],ngContentSelectors:S,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(B,W){if(1&B&&(c.F$t(),c.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),c.NdJ("change",function(ue){return W._onChangeEvent(ue)})("click",function(ue){return W._onInputClick(ue)}),c.qZA(),c.TgZ(5,"span",5),c._UZ(6,"span",6),c.TgZ(7,"span",7),c._UZ(8,"span",8),c.qZA()()(),c.TgZ(9,"span",9,10),c.NdJ("cdkObserveContent",function(){return W._onLabelTextChange()}),c.TgZ(11,"span",11),c._uU(12,"\xa0"),c.qZA(),c.Hsn(13),c.qZA()()),2&B){const q=c.MAs(1),ue=c.MAs(10);c.uIk("for",W.inputId),c.xp6(2),c.ekj("mat-slide-toggle-bar-no-side-margin",!ue.textContent||!ue.textContent.trim()),c.xp6(1),c.Q6J("id",W.inputId)("required",W.required)("tabIndex",W.tabIndex)("checked",W.checked)("disabled",W.disabled),c.uIk("name",W.name)("aria-checked",W.checked)("aria-label",W.ariaLabel)("aria-labelledby",W.ariaLabelledby)("aria-describedby",W.ariaDescribedby),c.xp6(4),c.Q6J("matRippleTrigger",q)("matRippleDisabled",W.disableRipple||W.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",c.VKq(18,E,W._noopAnimations?0:150))}},dependencies:[A.wG,e.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),v})(),de=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({}),v})(),Te=(()=>{class v{}return v.\u0275fac=function(B){return new(B||v)},v.\u0275mod=c.oAB({type:v}),v.\u0275inj=c.cJS({imports:[de,A.si,A.BQ,e.Q8,de,A.BQ]}),v})()},17009:(Ye,pe,h)=>{"use strict";h.d(pe,{ZX:()=>le});var e=h(98184),c=h(84080),A=h(36895),w=h(94650),g=h(3238),C=h(4859);h(37340);let le=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({imports:[e.U8,c.eL,A.ez,C.ot,g.BQ,g.BQ]}),B})()},96308:(Ye,pe,h)=>{"use strict";h.d(pe,{JX:()=>Me,YE:()=>de,nU:()=>ye});var e=h(94650),c=h(12687),A=h(21281),w=h(29521),g=h(3238),C=h(77579),T=h(56451),E=h(37340),S=h(36895);const U=["mat-sort-header",""];function _(we,Ge){if(1&we){const ce=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){e.CHM(ce);const he=e.oxw();return e.KtG(he._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){e.CHM(ce);const he=e.oxw();return e.KtG(he._disableViewStateAnimation=!1)}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6)(4,"div",7)(5,"div",8),e.qZA()()}if(2&we){const ce=e.oxw();e.Q6J("@arrowOpacity",ce._getArrowViewState())("@arrowPosition",ce._getArrowViewState())("@allowChildren",ce._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",ce._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",ce._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",ce._getArrowDirectionState())}}const V=["*"],ee=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),le=(0,g.dB)((0,g.Id)(class{}));let de=(()=>{class we extends le{constructor(ce){super(),this._defaultOptions=ce,this.sortables=new Map,this._stateChanges=new C.x,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(ce){this._direction=ce}get disableClear(){return this._disableClear}set disableClear(ce){this._disableClear=(0,A.Ig)(ce)}register(ce){this.sortables.set(ce.id,ce)}deregister(ce){this.sortables.delete(ce.id)}sort(ce){this.active!=ce.id?(this.active=ce.id,this.direction=ce.start?ce.start:this.start):this.direction=this.getNextSortDirection(ce),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(ce){var Ze,he,xe;if(!ce)return"";const j=null!==(Ze=null!==(he=ce?.disableClear)&&void 0!==he?he:this.disableClear)&&void 0!==Ze?Ze:!(null===(xe=this._defaultOptions)||void 0===xe||!xe.disableClear);let R=function Te(we,Ge){let ce=["asc","desc"];return"desc"==we&&ce.reverse(),Ge||ce.push(""),ce}(ce.start||this.start,j),G=R.indexOf(this.direction)+1;return G>=R.length&&(G=0),R[G]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return we.\u0275fac=function(ce){return new(ce||we)(e.Y36(ee,8))},we.\u0275dir=e.lG2({type:we,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),we})();const v=g.mZ.ENTERING+" "+g.yN.STANDARD_CURVE,L={indicator:(0,E.X$)("indicator",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"translateY(0px)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"translateY(10px)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(v))]),leftPointer:(0,E.X$)("leftPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(v))]),rightPointer:(0,E.X$)("rightPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(v))]),arrowOpacity:(0,E.X$)("arrowOpacity",[(0,E.SB)("desc-to-active, asc-to-active, active",(0,E.oB)({opacity:1})),(0,E.SB)("desc-to-hint, asc-to-hint, hint",(0,E.oB)({opacity:.54})),(0,E.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,E.oB)({opacity:0})),(0,E.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,E.jt)("0ms")),(0,E.eR)("* <=> *",(0,E.jt)(v))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(v,(0,E.F4)([(0,E.oB)({transform:"translateY(-25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-desc, * => active-to-desc",(0,E.jt)(v,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(25%)"})]))),(0,E.eR)("* => asc-to-hint, * => asc-to-active",(0,E.jt)(v,(0,E.F4)([(0,E.oB)({transform:"translateY(25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-asc, * => active-to-asc",(0,E.jt)(v,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(-25%)"})]))),(0,E.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,E.oB)({transform:"translateY(0)"})),(0,E.SB)("hint-to-desc, active-to-desc, desc",(0,E.oB)({transform:"translateY(-25%)"})),(0,E.SB)("hint-to-asc, active-to-asc, asc",(0,E.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,E.X$)("allowChildren",[(0,E.eR)("* <=> *",[(0,E.IO)("@*",(0,E.pV)(),{optional:!0})])])};let B=(()=>{class we{constructor(){this.changes=new C.x}}return we.\u0275fac=function(ce){return new(ce||we)},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const q={provide:B,deps:[[new e.FiY,new e.tp0,B]],useFactory:function W(we){return we||new B}},ue=(0,g.Id)(class{});let ye=(()=>{class we extends ue{constructor(ce,Ze,he,xe,j,R,G,se){super(),this._intl=ce,this._changeDetectorRef=Ze,this._sort=he,this._columnDef=xe,this._focusMonitor=j,this._elementRef=R,this._ariaDescriber=G,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=se&&se.arrowPosition&&(this.arrowPosition=se?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(ce){this._updateSortActionDescription(ce)}get disableClear(){return this._disableClear}set disableClear(ce){this._disableClear=(0,A.Ig)(ce)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ce=>{const Ze=!!ce;Ze!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ze),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(ce){this._isDisabled()&&ce||(this._showIndicatorHint=ce,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(ce){this._viewState=ce||{},this._disableViewStateAnimation&&(this._viewState={toState:ce.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(ce){!this._isDisabled()&&(ce.keyCode===w.L_||ce.keyCode===w.K5)&&(ce.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const ce=this._viewState.fromState;return(ce?`${ce}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(ce){var Ze,he;this._sortButton&&(null===(Ze=this._ariaDescriber)||void 0===Ze||Ze.removeDescription(this._sortButton,this._sortActionDescription),null===(he=this._ariaDescriber)||void 0===he||he.describe(this._sortButton,ce)),this._sortActionDescription=ce}_handleStateChanges(){this._rerenderSubscription=(0,T.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return we.\u0275fac=function(ce){return new(ce||we)(e.Y36(B),e.Y36(e.sBO),e.Y36(de,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(c.tE),e.Y36(e.SBq),e.Y36(c.$s,8),e.Y36(ee,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(ce,Ze){1&ce&&e.NdJ("click",function(){return Ze._handleClick()})("keydown",function(xe){return Ze._handleKeydown(xe)})("mouseenter",function(){return Ze._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ze._setIndicatorHintVisible(!1)}),2&ce&&(e.uIk("aria-sort",Ze._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ze._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:U,ngContentSelectors:V,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(ce,Ze){1&ce&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,_,6,6,"div",2),e.qZA()),2&ce&&(e.ekj("mat-sort-header-sorted",Ze._isSorted())("mat-sort-header-position-before","before"===Ze.arrowPosition),e.uIk("tabindex",Ze._isDisabled()?null:0)("role",Ze._isDisabled()?null:"button"),e.xp6(3),e.Q6J("ngIf",Ze._renderArrow()))},dependencies:[S.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[L.indicator,L.leftPointer,L.rightPointer,L.arrowOpacity,L.arrowPosition,L.allowChildren]},changeDetection:0}),we})(),Me=(()=>{class we{}return we.\u0275fac=function(ce){return new(ce||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({providers:[q],imports:[S.ez,g.BQ]}),we})()},86257:(Ye,pe,h)=>{"use strict";h.d(pe,{C0:()=>M,BY:()=>p,VY:()=>i,Vq:()=>_e,T5:()=>on,fd:()=>Vt});var e=h(84080),c=h(12687),A=h(40445),w=h(21281),g=h(29521),C=h(94650),T=h(83353),E=h(77579),S=h(39646),U=h(68675),_=h(82722);function V(Mt,ft){1&Mt&&C.Hsn(0)}const z=["*"];let Q=(()=>{class Mt{constructor(je){this._elementRef=je}focus(){this._elementRef.nativeElement.focus()}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.SBq))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),Mt})(),te=(()=>{class Mt{constructor(je){this.template=je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.Rgc))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["","cdkStepLabel",""]]}),Mt})(),oe=0;const de=new C.OlP("STEPPER_GLOBAL_OPTIONS");let Te=(()=>{class Mt{constructor(je,Pe){this._stepper=je,this.interacted=!1,this.interactedStream=new C.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Pe||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(je){this._editable=(0,w.Ig)(je)}get optional(){return this._optional}set optional(je){this._optional=(0,w.Ig)(je)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(je){this._completedOverride=(0,w.Ig)(je)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(je){this._customError=(0,w.Ig)(je)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var je;return null!==(je=this._stepperOptions.showError)&&void 0!==je?je:null!=this._customError}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36((0,C.Gpc)(()=>v)),C.Y36(de,8))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["cdk-step"]],contentQueries:function(je,Pe,Qe){if(1&je&&C.Suo(Qe,te,5),2&je){let qe;C.iGM(qe=C.CRH())&&(Pe.stepLabel=qe.first)}},viewQuery:function(je,Pe){if(1&je&&C.Gf(C.Rgc,7),2&je){let Qe;C.iGM(Qe=C.CRH())&&(Pe.content=Qe.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[C.TTD],ngContentSelectors:z,decls:1,vars:0,template:function(je,Pe){1&je&&(C.F$t(),C.YNc(0,V,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),Mt})(),v=(()=>{class Mt{constructor(je,Pe,Qe){this._dir=je,this._changeDetectorRef=Pe,this._elementRef=Qe,this._destroyed=new E.x,this.steps=new C.n_E,this._sortedHeaders=new C.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new C.vpe,this._orientation="horizontal",this._groupId=oe++}get linear(){return this._linear}set linear(je){this._linear=(0,w.Ig)(je)}get selectedIndex(){return this._selectedIndex}set selectedIndex(je){const Pe=(0,w.su)(je);var Qe;this.steps&&this._steps?(this._isValidIndex(Pe),null===(Qe=this.selected)||void 0===Qe||Qe._markAsInteracted(),this._selectedIndex!==Pe&&!this._anyControlsInvalidOrPending(Pe)&&(Pe>=this._selectedIndex||this.steps.toArray()[Pe].editable)&&this._updateSelectedItemIndex(Pe)):this._selectedIndex=Pe}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(je){this.selectedIndex=je&&this.steps?this.steps.toArray().indexOf(je):-1}get orientation(){return this._orientation}set orientation(je){this._orientation=je,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===je)}ngAfterContentInit(){this._steps.changes.pipe((0,U.O)(this._steps),(0,_.R)(this._destroyed)).subscribe(je=>{this.steps.reset(je.filter(Pe=>Pe._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,U.O)(this._stepHeader),(0,_.R)(this._destroyed)).subscribe(je=>{this._sortedHeaders.reset(je.toArray().sort((Pe,Qe)=>Pe._elementRef.nativeElement.compareDocumentPosition(Qe._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new c.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,S.of)()).pipe((0,U.O)(this._layoutDirection()),(0,_.R)(this._destroyed)).subscribe(je=>this._keyManager.withHorizontalOrientation(je)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(je=>je.reset()),this._stateChanged()}_getStepLabelId(je){return`cdk-step-label-${this._groupId}-${je}`}_getStepContentId(je){return`cdk-step-content-${this._groupId}-${je}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(je){const Pe=je-this._selectedIndex;return Pe<0?"rtl"===this._layoutDirection()?"next":"previous":Pe>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(je,Pe="number"){const Qe=this.steps.toArray()[je],qe=this._isCurrentStep(je);return Qe._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Qe,qe):this._getGuidelineLogic(Qe,qe,Pe)}_getDefaultIndicatorLogic(je,Pe){return je._showError()&&je.hasError&&!Pe?"error":!je.completed||Pe?"number":je.editable?"edit":"done"}_getGuidelineLogic(je,Pe,Qe="number"){return je._showError()&&je.hasError&&!Pe?"error":je.completed&&!Pe?"done":je.completed&&Pe?Qe:je.editable&&Pe?"edit":Qe}_isCurrentStep(je){return this._selectedIndex===je}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(je){const Pe=this.steps.toArray();this.selectionChange.emit({selectedIndex:je,previouslySelectedIndex:this._selectedIndex,selectedStep:Pe[je],previouslySelectedStep:Pe[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(je):this._keyManager.updateActiveItem(je),this._selectedIndex=je,this._stateChanged()}_onKeydown(je){const Pe=(0,g.Vb)(je),Qe=je.keyCode,qe=this._keyManager;null==qe.activeItemIndex||Pe||Qe!==g.L_&&Qe!==g.K5?qe.onKeydown(je):(this.selectedIndex=qe.activeItemIndex,je.preventDefault())}_anyControlsInvalidOrPending(je){return!!(this._linear&&je>=0)&&this.steps.toArray().slice(0,je).some(Pe=>{const Qe=Pe.stepControl;return(Qe?Qe.invalid||Qe.pending||!Pe.interacted:!Pe.completed)&&!Pe.optional&&!Pe._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const je=this._elementRef.nativeElement,Pe=(0,T.ht)();return je===Pe||je.contains(Pe)}_isValidIndex(je){return je>-1&&(!this.steps||je{class Mt{constructor(je){this._stepper=je,this.type="button"}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(v))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(je,Pe){1&je&&C.NdJ("click",function(){return Pe._stepper.previous()}),2&je&&C.Ikx("type",Pe.type)},inputs:{type:"type"}}),Mt})(),W=(()=>{class Mt{}return Mt.\u0275fac=function(je){return new(je||Mt)},Mt.\u0275mod=C.oAB({type:Mt}),Mt.\u0275inj=C.cJS({imports:[A.vT]}),Mt})();var q=h(36895),ue=h(4859),ye=h(3238),Me=h(97392),we=h(50727),Ge=h(63900),ce=h(54004),Ze=h(71884),he=h(37340);function xe(Mt,ft){if(1&Mt&&C.GkF(0,8),2&Mt){const je=C.oxw();C.Q6J("ngTemplateOutlet",je.iconOverrides[je.state])("ngTemplateOutletContext",je._getIconContext())}}function j(Mt,ft){if(1&Mt&&(C.TgZ(0,"span",13),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._getDefaultTextForState(je.state))}}function R(Mt,ft){if(1&Mt&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._intl.completedLabel)}}function G(Mt,ft){if(1&Mt&&(C.TgZ(0,"span",14),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._intl.editableLabel)}}function se(Mt,ft){if(1&Mt&&(C.TgZ(0,"mat-icon",13),C._uU(1),C.qZA()),2&Mt){const je=C.oxw(2);C.xp6(1),C.Oqu(je._getDefaultTextForState(je.state))}}function $(Mt,ft){if(1&Mt&&(C.ynx(0,9),C.YNc(1,j,2,1,"span",10),C.YNc(2,R,2,1,"span",11),C.YNc(3,G,2,1,"span",11),C.YNc(4,se,2,1,"mat-icon",12),C.BQk()),2&Mt){const je=C.oxw();C.Q6J("ngSwitch",je.state),C.xp6(1),C.Q6J("ngSwitchCase","number"),C.xp6(1),C.Q6J("ngIf","done"===je.state),C.xp6(1),C.Q6J("ngIf","edit"===je.state)}}function Ee(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",15),C.GkF(1,16),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Q6J("ngTemplateOutlet",je._templateLabel().template)}}function Oe(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",15),C._uU(1),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Oqu(je.label)}}function ct(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",17),C._uU(1),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Oqu(je._intl.optionalLabel)}}function Xe(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",18),C._uU(1),C.qZA()),2&Mt){const je=C.oxw();C.xp6(1),C.Oqu(je.errorMessage)}}function _t(Mt,ft){}function Je(Mt,ft){if(1&Mt&&(C.Hsn(0),C.YNc(1,_t,0,0,"ng-template",0)),2&Mt){const je=C.oxw();C.xp6(1),C.Q6J("cdkPortalOutlet",je._portal)}}const gt=["*"];function Y(Mt,ft){1&Mt&&C._UZ(0,"div",11)}const Ce=function(Mt,ft){return{step:Mt,i:ft}};function ae(Mt,ft){if(1&Mt&&(C.ynx(0),C.GkF(1,9),C.YNc(2,Y,1,0,"div",10),C.BQk()),2&Mt){const je=ft.$implicit,Pe=ft.index,Qe=ft.last;C.oxw(2);const qe=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",qe)("ngTemplateOutletContext",C.WLB(3,Ce,je,Pe)),C.xp6(1),C.Q6J("ngIf",!Qe)}}const re=function(Mt){return{animationDuration:Mt}},Se=function(Mt,ft){return{value:Mt,params:ft}};function Fe(Mt,ft){if(1&Mt){const je=C.EpF();C.TgZ(0,"div",12),C.NdJ("@horizontalStepTransition.done",function(Qe){C.CHM(je);const qe=C.oxw(2);return C.KtG(qe._animationDone.next(Qe))}),C.GkF(1,13),C.qZA()}if(2&Mt){const je=ft.$implicit,Pe=ft.index,Qe=C.oxw(2);C.Q6J("@horizontalStepTransition",C.WLB(7,Se,Qe._getAnimationDirection(Pe),C.VKq(5,re,Qe._getAnimationDuration())))("id",Qe._getStepContentId(Pe)),C.uIk("aria-labelledby",Qe._getStepLabelId(Pe))("aria-expanded",Qe.selectedIndex===Pe),C.xp6(1),C.Q6J("ngTemplateOutlet",je.content)}}function be(Mt,ft){if(1&Mt&&(C.TgZ(0,"div",4)(1,"div",5),C.YNc(2,ae,3,6,"ng-container",6),C.qZA(),C.TgZ(3,"div",7),C.YNc(4,Fe,2,10,"div",8),C.qZA()()),2&Mt){const je=C.oxw();C.xp6(2),C.Q6J("ngForOf",je.steps),C.xp6(2),C.Q6J("ngForOf",je.steps)}}function Ue(Mt,ft){if(1&Mt){const je=C.EpF();C.TgZ(0,"div",15),C.GkF(1,9),C.TgZ(2,"div",16)(3,"div",17),C.NdJ("@verticalStepTransition.done",function(Qe){C.CHM(je);const qe=C.oxw(2);return C.KtG(qe._animationDone.next(Qe))}),C.TgZ(4,"div",18),C.GkF(5,13),C.qZA()()()()}if(2&Mt){const je=ft.$implicit,Pe=ft.index,Qe=ft.last,qe=C.oxw(2),Be=C.MAs(4);C.xp6(1),C.Q6J("ngTemplateOutlet",Be)("ngTemplateOutletContext",C.WLB(9,Ce,je,Pe)),C.xp6(1),C.ekj("mat-stepper-vertical-line",!Qe),C.xp6(1),C.Q6J("@verticalStepTransition",C.WLB(14,Se,qe._getAnimationDirection(Pe),C.VKq(12,re,qe._getAnimationDuration())))("id",qe._getStepContentId(Pe)),C.uIk("aria-labelledby",qe._getStepLabelId(Pe))("aria-expanded",qe.selectedIndex===Pe),C.xp6(2),C.Q6J("ngTemplateOutlet",je.content)}}function P(Mt,ft){if(1&Mt&&(C.ynx(0),C.YNc(1,Ue,6,17,"div",14),C.BQk()),2&Mt){const je=C.oxw();C.xp6(1),C.Q6J("ngForOf",je.steps)}}function H(Mt,ft){if(1&Mt){const je=C.EpF();C.TgZ(0,"mat-step-header",19),C.NdJ("click",function(){const qe=C.CHM(je).step;return C.KtG(qe.select())})("keydown",function(Qe){C.CHM(je);const qe=C.oxw();return C.KtG(qe._onKeydown(Qe))}),C.qZA()}if(2&Mt){const je=ft.step,Pe=ft.i,Qe=C.oxw();C.ekj("mat-horizontal-stepper-header","horizontal"===Qe.orientation)("mat-vertical-stepper-header","vertical"===Qe.orientation),C.Q6J("tabIndex",Qe._getFocusIndex()===Pe?0:-1)("id",Qe._getStepLabelId(Pe))("index",Pe)("state",Qe._getIndicatorType(Pe,je.state))("label",je.stepLabel||je.label)("selected",Qe.selectedIndex===Pe)("active",Qe._stepIsNavigable(Pe,je))("optional",je.optional)("errorMessage",je.errorMessage)("iconOverrides",Qe._iconOverrides)("disableRipple",Qe.disableRipple||!Qe._stepIsNavigable(Pe,je))("color",je.color||Qe.color),C.uIk("aria-posinset",Pe+1)("aria-setsize",Qe.steps.length)("aria-controls",Qe._getStepContentId(Pe))("aria-selected",Qe.selectedIndex==Pe)("aria-label",je.ariaLabel||null)("aria-labelledby",!je.ariaLabel&&je.ariaLabelledby?je.ariaLabelledby:null)("aria-disabled",!Qe._stepIsNavigable(Pe,je)||null)}}let i=(()=>{class Mt extends te{}return Mt.\u0275fac=function(){let ft;return function(Pe){return(ft||(ft=C.n5z(Mt)))(Pe||Mt)}}(),Mt.\u0275dir=C.lG2({type:Mt,selectors:[["","matStepLabel",""]],features:[C.qOj]}),Mt})(),o=(()=>{class Mt{constructor(){this.changes=new E.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return Mt.\u0275fac=function(je){return new(je||Mt)},Mt.\u0275prov=C.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})();const l={provide:o,deps:[[new C.FiY,new C.tp0,o]],useFactory:function f(Mt){return Mt||new o}},a=(0,ye.pj)(class extends Q{constructor(ft){super(ft)}},"primary");let n=(()=>{class Mt extends a{constructor(je,Pe,Qe,qe){super(Qe),this._intl=je,this._focusMonitor=Pe,this._intlSubscription=je.changes.subscribe(()=>qe.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(je,Pe){je?this._focusMonitor.focusVia(this._elementRef,je,Pe):this._elementRef.nativeElement.focus(Pe)}_stringLabel(){return this.label instanceof i?null:this.label}_templateLabel(){return this.label instanceof i?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(je){return"number"==je?`${this.index+1}`:"edit"==je?"create":"error"==je?"warning":je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(o),C.Y36(c.tE),C.Y36(C.SBq),C.Y36(C.sBO))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[C.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(je,Pe){1&je&&(C._UZ(0,"div",0),C.TgZ(1,"div")(2,"div",1),C.YNc(3,xe,1,2,"ng-container",2),C.YNc(4,$,5,4,"ng-container",3),C.qZA()(),C.TgZ(5,"div",4),C.YNc(6,Ee,2,1,"div",5),C.YNc(7,Oe,2,1,"div",5),C.YNc(8,ct,2,1,"div",6),C.YNc(9,Xe,2,1,"div",7),C.qZA()),2&je&&(C.Q6J("matRippleTrigger",Pe._getHostElement())("matRippleDisabled",Pe.disableRipple),C.xp6(1),C.Gre("mat-step-icon-state-",Pe.state," mat-step-icon"),C.ekj("mat-step-icon-selected",Pe.selected),C.xp6(1),C.Q6J("ngSwitch",!(!Pe.iconOverrides||!Pe.iconOverrides[Pe.state])),C.xp6(1),C.Q6J("ngSwitchCase",!0),C.xp6(2),C.ekj("mat-step-label-active",Pe.active)("mat-step-label-selected",Pe.selected)("mat-step-label-error","error"==Pe.state),C.xp6(1),C.Q6J("ngIf",Pe._templateLabel()),C.xp6(1),C.Q6J("ngIf",Pe._stringLabel()),C.xp6(1),C.Q6J("ngIf",Pe.optional&&"error"!=Pe.state),C.xp6(1),C.Q6J("ngIf","error"==Pe.state))},dependencies:[q.O5,q.tP,q.RF,q.n9,q.ED,Me.Hw,ye.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),Mt})();const t="500ms",r="225ms",s={horizontalStepTransition:(0,he.X$)("horizontalStepTransition",[(0,he.SB)("previous",(0,he.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,he.SB)("current",(0,he.oB)({transform:"none",visibility:"inherit"})),(0,he.SB)("next",(0,he.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,he.eR)("* => *",(0,he.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:t}})]),verticalStepTransition:(0,he.X$)("verticalStepTransition",[(0,he.SB)("previous",(0,he.oB)({height:"0px",visibility:"hidden"})),(0,he.SB)("next",(0,he.oB)({height:"0px",visibility:"hidden"})),(0,he.SB)("current",(0,he.oB)({height:"*",visibility:"inherit"})),(0,he.eR)("* <=> current",(0,he.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:r}})])};let d=(()=>{class Mt{constructor(je){this.templateRef=je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.Rgc))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),Mt})(),p=(()=>{class Mt{constructor(je){this._template=je}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(C.Rgc))},Mt.\u0275dir=C.lG2({type:Mt,selectors:[["ng-template","matStepContent",""]]}),Mt})(),M=(()=>{class Mt extends Te{constructor(je,Pe,Qe,qe){super(je,qe),this._errorStateMatcher=Pe,this._viewContainerRef=Qe,this._isSelected=we.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Ge.w)(()=>this._stepper.selectionChange.pipe((0,ce.U)(je=>je.selectedStep===this),(0,U.O)(this._stepper.selected===this)))).subscribe(je=>{je&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(je,Pe){return this._errorStateMatcher.isErrorState(je,Pe)||!!(je&&je.invalid&&this.interacted)}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36((0,C.Gpc)(()=>_e)),C.Y36(ye.rD,4),C.Y36(C.s_b),C.Y36(de,8))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["mat-step"]],contentQueries:function(je,Pe,Qe){if(1&je&&(C.Suo(Qe,i,5),C.Suo(Qe,p,5)),2&je){let qe;C.iGM(qe=C.CRH())&&(Pe.stepLabel=qe.first),C.iGM(qe=C.CRH())&&(Pe._lazyContent=qe.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[C._Bn([{provide:ye.rD,useExisting:Mt},{provide:Te,useExisting:Mt}]),C.qOj],ngContentSelectors:gt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(je,Pe){1&je&&(C.F$t(),C.YNc(0,Je,2,1,"ng-template"))},dependencies:[e.Pl],encapsulation:2,changeDetection:0}),Mt})(),_e=(()=>{class Mt extends v{constructor(je,Pe,Qe){super(je,Pe,Qe),this.steps=new C.n_E,this.animationDone=new C.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new E.x,this._animationDuration="";const qe=Qe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===qe?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(je){this._animationDuration=/^\d+$/.test(je)?je+"ms":je}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:je,templateRef:Pe})=>this._iconOverrides[je]=Pe),this.steps.changes.pipe((0,_.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ze.x)((je,Pe)=>je.fromState===Pe.fromState&&je.toState===Pe.toState),(0,_.R)(this._destroyed)).subscribe(je=>{"current"===je.toState&&this.animationDone.emit()})}_stepIsNavigable(je,Pe){return Pe.completed||this.selectedIndex===je||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?t:r}}return Mt.\u0275fac=function(je){return new(je||Mt)(C.Y36(A.Is,8),C.Y36(C.sBO),C.Y36(C.SBq))},Mt.\u0275cmp=C.Xpm({type:Mt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(je,Pe,Qe){if(1&je&&(C.Suo(Qe,M,5),C.Suo(Qe,d,5)),2&je){let qe;C.iGM(qe=C.CRH())&&(Pe._steps=qe),C.iGM(qe=C.CRH())&&(Pe._icons=qe)}},viewQuery:function(je,Pe){if(1&je&&C.Gf(n,5),2&je){let Qe;C.iGM(Qe=C.CRH())&&(Pe._stepHeader=Qe)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(je,Pe){2&je&&(C.uIk("aria-orientation",Pe.orientation),C.ekj("mat-stepper-horizontal","horizontal"===Pe.orientation)("mat-stepper-vertical","vertical"===Pe.orientation)("mat-stepper-label-position-end","horizontal"===Pe.orientation&&"end"==Pe.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Pe.orientation&&"bottom"==Pe.labelPosition)("mat-stepper-header-position-bottom","bottom"===Pe.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[C._Bn([{provide:v,useExisting:Mt}]),C.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(je,Pe){1&je&&(C.ynx(0,0),C.YNc(1,be,5,2,"div",1),C.YNc(2,P,2,1,"ng-container",2),C.BQk(),C.YNc(3,H,1,23,"ng-template",null,3,C.W1O)),2&je&&(C.Q6J("ngSwitch",Pe.orientation),C.xp6(1),C.Q6J("ngSwitchCase","horizontal"),C.xp6(1),C.Q6J("ngSwitchCase","vertical"))},dependencies:[q.sg,q.O5,q.tP,q.RF,q.n9,n],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[s.horizontalStepTransition,s.verticalStepTransition]},changeDetection:0}),Mt})(),Vt=(()=>{class Mt extends B{}return Mt.\u0275fac=function(){let ft;return function(Pe){return(ft||(ft=C.n5z(Mt)))(Pe||Mt)}}(),Mt.\u0275dir=C.lG2({type:Mt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(je,Pe){2&je&&C.Ikx("type",Pe.type)},inputs:{type:"type"},features:[C.qOj]}),Mt})(),on=(()=>{class Mt{}return Mt.\u0275fac=function(je){return new(je||Mt)},Mt.\u0275mod=C.oAB({type:Mt}),Mt.\u0275inj=C.cJS({providers:[l,ye.rD],imports:[ye.BQ,q.ez,e.eL,ue.ot,W,Me.Ps,ye.si,ye.BQ]}),Mt})()},30671:(Ye,pe,h)=>{"use strict";h.d(pe,{ev:()=>jt,Dz:()=>ze,w1:()=>Re,ge:()=>st,fO:()=>tt,XQ:()=>mn,as:()=>cn,Gk:()=>Rt,nj:()=>sn,BZ:()=>ve,by:()=>xt,p0:()=>An});var e=h(94650),c=h(40445),A=h(21281),w=h(95017),g=h(83353),C=h(67376),T=h(36895),E=h(77579),S=h(32076),U=h(61135),_=h(45191),V=h(39646),z=h(82722),Q=h(95698);const te=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function de(rt){return class extends rt{constructor(...vt){super(...vt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(vt){const ot=this._sticky;this._sticky=(0,A.Ig)(vt),this._hasStickyChanged=ot!==this._sticky}hasStickyChanged(){const vt=this._hasStickyChanged;return this._hasStickyChanged=!1,vt}resetStickyChanged(){this._hasStickyChanged=!1}}}const Te=new e.OlP("CDK_TABLE");let L=(()=>{class rt{constructor(ot){this.template=ot}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkCellDef",""]]}),rt})(),B=(()=>{class rt{constructor(ot){this.template=ot}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkHeaderCellDef",""]]}),rt})(),W=(()=>{class rt{constructor(ot){this.template=ot}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkFooterCellDef",""]]}),rt})();class q{}const ue=de(q);let ye=(()=>{class rt extends ue{constructor(ot){super(),this._table=ot,this._stickyEnd=!1}get name(){return this._name}set name(ot){this._setNameInput(ot)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ot){const $e=this._stickyEnd;this._stickyEnd=(0,A.Ig)(ot),this._hasStickyChanged=$e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ot){ot&&(this._name=ot,this.cssClassFriendlyName=ot.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkColumnDef",""]],contentQueries:function(ot,$e,At){if(1&ot&&(e.Suo(At,L,5),e.Suo(At,B,5),e.Suo(At,W,5)),2&ot){let Z;e.iGM(Z=e.CRH())&&($e.cell=Z.first),e.iGM(Z=e.CRH())&&($e.headerCell=Z.first),e.iGM(Z=e.CRH())&&($e.footerCell=Z.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),e.qOj]}),rt})();class Me{constructor(vt,ot){ot.nativeElement.classList.add(...vt._columnCssClassName)}}let we=(()=>{class rt extends Me{constructor(ot,$e){super(ot,$e)}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(ye),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),rt})(),ce=(()=>{class rt extends Me{constructor(ot,$e){var At;if(super(ot,$e),1===(null===(At=ot._table)||void 0===At?void 0:At._elementRef.nativeElement.nodeType)){const Z=ot._table._elementRef.nativeElement.getAttribute("role");$e.nativeElement.setAttribute("role","grid"===Z||"treegrid"===Z?"gridcell":"cell")}}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(ye),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),rt})();class Ze{constructor(){this.tasks=[],this.endTasks=[]}}const he=new e.OlP("_COALESCED_STYLE_SCHEDULER");let xe=(()=>{class rt{constructor(ot){this._ngZone=ot,this._currentSchedule=null,this._destroyed=new E.x}schedule(ot){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ot)}scheduleEnd(ot){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ot)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ze,this._getScheduleObservable().pipe((0,z.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ot=this._currentSchedule;this._currentSchedule=new Ze;for(const $e of ot.tasks)$e();for(const $e of ot.endTasks)$e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,S.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Q.q)(1))}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.LFG(e.R0b))},rt.\u0275prov=e.Yz7({token:rt,factory:rt.\u0275fac}),rt})(),R=(()=>{class rt{constructor(ot,$e){this.template=ot,this._differs=$e}ngOnChanges(ot){if(!this._columnsDiffer){const $e=ot.columns&&ot.columns.currentValue||[];this._columnsDiffer=this._differs.find($e).create(),this._columnsDiffer.diff($e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ot){return this instanceof $?ot.headerCell.template:this instanceof ct?ot.footerCell.template:ot.cell.template}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},rt.\u0275dir=e.lG2({type:rt,features:[e.TTD]}),rt})();class G extends R{}const se=de(G);let $=(()=>{class rt extends se{constructor(ot,$e,At){super(ot,$e),this._table=At}ngOnChanges(ot){super.ngOnChanges(ot)}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),rt})();class Ee extends R{}const Oe=de(Ee);let ct=(()=>{class rt extends Oe{constructor(ot,$e,At){super(ot,$e),this._table=At}ngOnChanges(ot){super.ngOnChanges(ot)}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),rt})(),Xe=(()=>{class rt extends R{constructor(ot,$e,At){super(ot,$e),this._table=At}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Te,8))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),rt})(),_t=(()=>{class rt{constructor(ot){this._viewContainer=ot,rt.mostRecentCellOutlet=this}ngOnDestroy(){rt.mostRecentCellOutlet===this&&(rt.mostRecentCellOutlet=null)}}return rt.mostRecentCellOutlet=null,rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","cdkCellOutlet",""]]}),rt})(),Je=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Y=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Ce=(()=>{class rt{constructor(ot){this.templateRef=ot,this._contentClassName="cdk-no-data-row"}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.Rgc))},rt.\u0275dir=e.lG2({type:rt,selectors:[["ng-template","cdkNoDataRow",""]]}),rt})();const ae=["top","bottom","left","right"];class re{constructor(vt,ot,$e,At,Z=!0,ke=!0,mt){this._isNativeHtmlTable=vt,this._stickCellCss=ot,this.direction=$e,this._coalescedStyleScheduler=At,this._isBrowser=Z,this._needsPositionStickyOnElement=ke,this._positionListener=mt,this._cachedCellWidths=[],this._borderCellCss={top:`${ot}-border-elem-top`,bottom:`${ot}-border-elem-bottom`,left:`${ot}-border-elem-left`,right:`${ot}-border-elem-right`}}clearStickyPositioning(vt,ot){const $e=[];for(const At of vt)if(At.nodeType===At.ELEMENT_NODE){$e.push(At);for(let Z=0;Z{for(const At of $e)this._removeStickyStyle(At,ot)})}updateStickyColumns(vt,ot,$e,At=!0){if(!vt.length||!this._isBrowser||!ot.some(Ln=>Ln)&&!$e.some(Ln=>Ln))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Z=vt[0],ke=Z.children.length,mt=this._getCellWidths(Z,At),St=this._getStickyStartColumnPositions(mt,ot),tn=this._getStickyEndColumnPositions(mt,$e),En=ot.lastIndexOf(!0),jn=$e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ln="rtl"===this.direction,Kn=Ln?"right":"left",li=Ln?"left":"right";for(const ci of vt)for(let Wn=0;Wnot[Wn]?ci:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===jn?[]:mt.slice(jn).map((ci,Wn)=>$e[Wn+jn]?ci:null).reverse()}))})}stickRows(vt,ot,$e){if(!this._isBrowser)return;const At="bottom"===$e?vt.slice().reverse():vt,Z="bottom"===$e?ot.slice().reverse():ot,ke=[],mt=[],St=[];for(let En=0,jn=0;En{for(let Ln=0;Ln{ot.some(At=>!At)?this._removeStickyStyle($e,["bottom"]):this._addStickyStyle($e,"bottom",0,!1)})}_removeStickyStyle(vt,ot){for(const At of ot)vt.style[At]="",vt.classList.remove(this._borderCellCss[At]);ae.some(At=>-1===ot.indexOf(At)&&vt.style[At])?vt.style.zIndex=this._getCalculatedZIndex(vt):(vt.style.zIndex="",this._needsPositionStickyOnElement&&(vt.style.position=""),vt.classList.remove(this._stickCellCss))}_addStickyStyle(vt,ot,$e,At){vt.classList.add(this._stickCellCss),At&&vt.classList.add(this._borderCellCss[ot]),vt.style[ot]=`${$e}px`,vt.style.zIndex=this._getCalculatedZIndex(vt),this._needsPositionStickyOnElement&&(vt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(vt){const ot={top:100,bottom:10,left:1,right:1};let $e=0;for(const At of ae)vt.style[At]&&($e+=ot[At]);return $e?`${$e}`:""}_getCellWidths(vt,ot=!0){if(!ot&&this._cachedCellWidths.length)return this._cachedCellWidths;const $e=[],At=vt.children;for(let Z=0;Z0;Z--)ot[Z]&&($e[Z]=At,At+=vt[Z]);return $e}}const f=new e.OlP("CDK_SPL");let a=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","rowOutlet",""]]}),rt})(),n=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","headerRowOutlet",""]]}),rt})(),t=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","footerRowOutlet",""]]}),rt})(),r=(()=>{class rt{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.s_b),e.Y36(e.SBq))},rt.\u0275dir=e.lG2({type:rt,selectors:[["","noDataRowOutlet",""]]}),rt})(),p=(()=>{class rt{constructor(ot,$e,At,Z,ke,mt,St,tn,En,jn,Ln,Kn){this._differs=ot,this._changeDetectorRef=$e,this._elementRef=At,this._dir=ke,this._platform=St,this._viewRepeater=tn,this._coalescedStyleScheduler=En,this._viewportRuler=jn,this._stickyPositioningListener=Ln,this._ngZone=Kn,this._onDestroy=new E.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.vpe,this.viewChange=new U.X({start:0,end:Number.MAX_VALUE}),Z||this._elementRef.nativeElement.setAttribute("role","table"),this._document=mt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ot){this._trackByFn=ot}get dataSource(){return this._dataSource}set dataSource(ot){this._dataSource!==ot&&this._switchDataSource(ot)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ot){this._multiTemplateDataRows=(0,A.Ig)(ot),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ot){this._fixedLayout=(0,A.Ig)(ot),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ot,$e)=>this.trackBy?this.trackBy($e.dataIndex,$e.data):$e),this._viewportRuler.change().pipe((0,z.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const $e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||$e,this._forceRecalculateCellWidths=$e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ot=>{ot.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ot=this._dataDiffer.diff(this._renderRows);if(!ot)return this._updateNoDataRow(),void this.contentChanged.next();const $e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ot,$e,(At,Z,ke)=>this._getEmbeddedViewArgs(At.item,ke),At=>At.item.data,At=>{1===At.operation&&At.context&&this._renderCellTemplateForItem(At.record.item.rowDef,At.context)}),this._updateRowIndexContext(),ot.forEachIdentityChange(At=>{$e.get(At.currentIndex).context.$implicit=At.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Q.q)(1),(0,z.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ot){this._customColumnDefs.add(ot)}removeColumnDef(ot){this._customColumnDefs.delete(ot)}addRowDef(ot){this._customRowDefs.add(ot)}removeRowDef(ot){this._customRowDefs.delete(ot)}addHeaderRowDef(ot){this._customHeaderRowDefs.add(ot),this._headerRowDefChanged=!0}removeHeaderRowDef(ot){this._customHeaderRowDefs.delete(ot),this._headerRowDefChanged=!0}addFooterRowDef(ot){this._customFooterRowDefs.add(ot),this._footerRowDefChanged=!0}removeFooterRowDef(ot){this._customFooterRowDefs.delete(ot),this._footerRowDefChanged=!0}setNoDataRow(ot){this._customNoDataRow=ot}updateStickyHeaderRowStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),At=this._elementRef.nativeElement.querySelector("thead");At&&(At.style.display=ot.length?"":"none");const Z=this._headerRowDefs.map(ke=>ke.sticky);this._stickyStyler.clearStickyPositioning(ot,["top"]),this._stickyStyler.stickRows(ot,Z,"top"),this._headerRowDefs.forEach(ke=>ke.resetStickyChanged())}updateStickyFooterRowStyles(){const ot=this._getRenderedRows(this._footerRowOutlet),At=this._elementRef.nativeElement.querySelector("tfoot");At&&(At.style.display=ot.length?"":"none");const Z=this._footerRowDefs.map(ke=>ke.sticky);this._stickyStyler.clearStickyPositioning(ot,["bottom"]),this._stickyStyler.stickRows(ot,Z,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Z),this._footerRowDefs.forEach(ke=>ke.resetStickyChanged())}updateStickyColumnStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),$e=this._getRenderedRows(this._rowOutlet),At=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ot,...$e,...At],["left","right"]),this._stickyColumnStylesNeedReset=!1),ot.forEach((Z,ke)=>{this._addStickyColumnStyles([Z],this._headerRowDefs[ke])}),this._rowDefs.forEach(Z=>{const ke=[];for(let mt=0;mt<$e.length;mt++)this._renderRows[mt].rowDef===Z&&ke.push($e[mt]);this._addStickyColumnStyles(ke,Z)}),At.forEach((Z,ke)=>{this._addStickyColumnStyles([Z],this._footerRowDefs[ke])}),Array.from(this._columnDefsByName.values()).forEach(Z=>Z.resetStickyChanged())}_getAllRenderRows(){const ot=[],$e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let At=0;At{const mt=At&&At.has(ke)?At.get(ke):[];if(mt.length){const St=mt.shift();return St.dataIndex=$e,St}return{data:ot,rowDef:ke,dataIndex:$e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),M(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach($e=>{this._columnDefsByName.has($e.name),this._columnDefsByName.set($e.name,$e)})}_cacheRowDefs(){this._headerRowDefs=M(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=M(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=M(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ot=this._rowDefs.filter($e=>!$e.when);this._defaultRowDef=ot[0]}_renderUpdatedColumns(){const ot=(ke,mt)=>ke||!!mt.getColumnsDiff(),$e=this._rowDefs.reduce(ot,!1);$e&&this._forceRenderDataRows();const At=this._headerRowDefs.reduce(ot,!1);At&&this._forceRenderHeaderRows();const Z=this._footerRowDefs.reduce(ot,!1);return Z&&this._forceRenderFooterRows(),$e||At||Z}_switchDataSource(ot){this._data=[],(0,w.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ot||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ot}_observeRenderChanges(){if(!this.dataSource)return;let ot;(0,w.Z9)(this.dataSource)?ot=this.dataSource.connect(this):(0,_.b)(this.dataSource)?ot=this.dataSource:Array.isArray(this.dataSource)&&(ot=(0,V.of)(this.dataSource)),this._renderChangeSubscription=ot.pipe((0,z.R)(this._onDestroy)).subscribe($e=>{this._data=$e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ot,$e)=>this._renderRow(this._headerRowOutlet,ot,$e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ot,$e)=>this._renderRow(this._footerRowOutlet,ot,$e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ot,$e){const At=Array.from($e.columns||[]).map(mt=>this._columnDefsByName.get(mt)),Z=At.map(mt=>mt.sticky),ke=At.map(mt=>mt.stickyEnd);this._stickyStyler.updateStickyColumns(ot,Z,ke,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ot){const $e=[];for(let At=0;At!Z.when||Z.when($e,ot));else{let Z=this._rowDefs.find(ke=>ke.when&&ke.when($e,ot))||this._defaultRowDef;Z&&At.push(Z)}return At}_getEmbeddedViewArgs(ot,$e){return{templateRef:ot.rowDef.template,context:{$implicit:ot.data},index:$e}}_renderRow(ot,$e,At,Z={}){const ke=ot.viewContainer.createEmbeddedView($e.template,Z,At);return this._renderCellTemplateForItem($e,Z),ke}_renderCellTemplateForItem(ot,$e){for(let At of this._getCellTemplates(ot))_t.mostRecentCellOutlet&&_t.mostRecentCellOutlet._viewContainer.createEmbeddedView(At,$e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ot=this._rowOutlet.viewContainer;for(let $e=0,At=ot.length;$e{const At=this._columnDefsByName.get($e);return ot.extractCellTemplate(At)}):[]}_applyNativeTableSections(){const ot=this._document.createDocumentFragment(),$e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const At of $e){const Z=this._document.createElement(At.tag);Z.setAttribute("role","rowgroup");for(const ke of At.outlets)Z.appendChild(ke.elementRef.nativeElement);ot.appendChild(Z)}this._elementRef.nativeElement.appendChild(ot)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ot=($e,At)=>$e||At.hasStickyChanged();this._headerRowDefs.reduce(ot,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ot,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ot,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new re(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,V.of)()).pipe((0,z.R)(this._onDestroy)).subscribe($e=>{this._stickyStyler.direction=$e,this.updateStickyColumnStyles()})}_getOwnDefs(ot){return ot.filter($e=>!$e._table||$e._table===this)}_updateNoDataRow(){const ot=this._customNoDataRow||this._noDataRow;if(!ot)return;const $e=0===this._rowOutlet.viewContainer.length;if($e===this._isShowingNoDataRow)return;const At=this._noDataRowOutlet.viewContainer;if($e){const Z=At.createEmbeddedView(ot.templateRef),ke=Z.rootNodes[0];1===Z.rootNodes.length&&ke?.nodeType===this._document.ELEMENT_NODE&&(ke.setAttribute("role","row"),ke.classList.add(ot._contentClassName))}else At.clear();this._isShowingNoDataRow=$e}}return rt.\u0275fac=function(ot){return new(ot||rt)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(c.Is,8),e.Y36(T.K0),e.Y36(g.t4),e.Y36(w.k),e.Y36(he),e.Y36(C.rL),e.Y36(f,12),e.Y36(e.R0b,8))},rt.\u0275cmp=e.Xpm({type:rt,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ot,$e,At){if(1&ot&&(e.Suo(At,Ce,5),e.Suo(At,ye,5),e.Suo(At,Xe,5),e.Suo(At,$,5),e.Suo(At,ct,5)),2&ot){let Z;e.iGM(Z=e.CRH())&&($e._noDataRow=Z.first),e.iGM(Z=e.CRH())&&($e._contentColumnDefs=Z),e.iGM(Z=e.CRH())&&($e._contentRowDefs=Z),e.iGM(Z=e.CRH())&&($e._contentHeaderRowDefs=Z),e.iGM(Z=e.CRH())&&($e._contentFooterRowDefs=Z)}},viewQuery:function(ot,$e){if(1&ot&&(e.Gf(a,7),e.Gf(n,7),e.Gf(t,7),e.Gf(r,7)),2&ot){let At;e.iGM(At=e.CRH())&&($e._rowOutlet=At.first),e.iGM(At=e.CRH())&&($e._headerRowOutlet=At.first),e.iGM(At=e.CRH())&&($e._footerRowOutlet=At.first),e.iGM(At=e.CRH())&&($e._noDataRowOutlet=At.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ot,$e){2&ot&&e.ekj("cdk-table-fixed-layout",$e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Te,useExisting:rt},{provide:w.k,useClass:w.yy},{provide:he,useClass:xe},{provide:f,useValue:null}])],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,$e){1&ot&&(e.F$t(te),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,n,t,r],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),rt})();function M(rt,vt){return rt.concat(Array.from(vt))}let Vt=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275mod=e.oAB({type:rt}),rt.\u0275inj=e.cJS({imports:[C.Cl]}),rt})();var on=h(3238),Mt=h(56451),ft=h(39841),je=h(54004);const Pe=[[["caption"]],[["colgroup"],["col"]]],Qe=["caption","colgroup, col"];let ve=(()=>{class rt extends p{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ot,$e){2&ot&&e.ekj("mat-table-fixed-layout",$e.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:w.k,useClass:w.yy},{provide:p,useExisting:rt},{provide:Te,useExisting:rt},{provide:he,useClass:xe},{provide:f,useValue:null}]),e.qOj],ngContentSelectors:Qe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,$e){1&ot&&(e.F$t(Pe),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[a,n,t,r],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),rt})(),ze=(()=>{class rt extends L{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:L,useExisting:rt}]),e.qOj]}),rt})(),tt=(()=>{class rt extends B{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:B,useExisting:rt}]),e.qOj]}),rt})(),Re=(()=>{class rt extends ye{get name(){return this._name}set name(ot){this._setNameInput(ot)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:ye,useExisting:rt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:rt}]),e.qOj]}),rt})(),st=(()=>{class rt extends we{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),rt})(),jt=(()=>{class rt extends ce{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),rt})(),cn=(()=>{class rt extends ${}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:$,useExisting:rt}]),e.qOj]}),rt})(),sn=(()=>{class rt extends Xe{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275dir=e.lG2({type:rt,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Xe,useExisting:rt}]),e.qOj]}),rt})(),mn=(()=>{class rt extends Je{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Je,useExisting:rt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),Rt=(()=>{class rt extends Y{}return rt.\u0275fac=function(){let vt;return function($e){return(vt||(vt=e.n5z(rt)))($e||rt)}}(),rt.\u0275cmp=e.Xpm({type:rt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Y,useExisting:rt}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},dependencies:[_t],encapsulation:2}),rt})(),An=(()=>{class rt{}return rt.\u0275fac=function(ot){return new(ot||rt)},rt.\u0275mod=e.oAB({type:rt}),rt.\u0275inj=e.cJS({imports:[Vt,on.BQ,on.BQ]}),rt})();class $t extends w.o2{constructor(vt=[]){super(),this._renderData=new U.X([]),this._filter=new U.X(""),this._internalPageChanges=new E.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ot,$e)=>{const At=ot[$e];if((0,A.t6)(At)){const Z=Number(At);return Z<9007199254740991?Z:At}return At},this.sortData=(ot,$e)=>{const At=$e.active,Z=$e.direction;return At&&""!=Z?ot.sort((ke,mt)=>{let St=this.sortingDataAccessor(ke,At),tn=this.sortingDataAccessor(mt,At);const En=typeof St,jn=typeof tn;En!==jn&&("number"===En&&(St+=""),"number"===jn&&(tn+=""));let Ln=0;return null!=St&&null!=tn?St>tn?Ln=1:St{const At=Object.keys(ot).reduce((ke,mt)=>ke+ot[mt]+"\u25ec","").toLowerCase(),Z=$e.trim().toLowerCase();return-1!=At.indexOf(Z)},this._data=new U.X(vt),this._updateChangeSubscription()}get data(){return this._data.value}set data(vt){vt=Array.isArray(vt)?vt:[],this._data.next(vt),this._renderChangesSubscription||this._filterData(vt)}get filter(){return this._filter.value}set filter(vt){this._filter.next(vt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(vt){this._sort=vt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(vt){this._paginator=vt,this._updateChangeSubscription()}_updateChangeSubscription(){var vt;const ot=this._sort?(0,Mt.T)(this._sort.sortChange,this._sort.initialized):(0,V.of)(null),$e=this._paginator?(0,Mt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,V.of)(null),Z=(0,ft.a)([this._data,this._filter]).pipe((0,je.U)(([St])=>this._filterData(St))),ke=(0,ft.a)([Z,ot]).pipe((0,je.U)(([St])=>this._orderData(St))),mt=(0,ft.a)([ke,$e]).pipe((0,je.U)(([St])=>this._pageData(St)));null===(vt=this._renderChangesSubscription)||void 0===vt||vt.unsubscribe(),this._renderChangesSubscription=mt.subscribe(St=>this._renderData.next(St))}_filterData(vt){return this.filteredData=null==this.filter||""===this.filter?vt:vt.filter(ot=>this.filterPredicate(ot,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(vt){return this.sort?this.sortData(vt.slice(),this.sort):vt}_pageData(vt){if(!this.paginator)return vt;const ot=this.paginator.pageIndex*this.paginator.pageSize;return vt.slice(ot,ot+this.paginator.pageSize)}_updatePaginator(vt){Promise.resolve().then(()=>{const ot=this.paginator;if(ot&&(ot.length=vt,ot.pageIndex>0)){const $e=Math.ceil(ot.length/ot.pageSize)-1||0,At=Math.min(ot.pageIndex,$e);At!==ot.pageIndex&&(ot.pageIndex=At,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var vt;null===(vt=this._renderChangesSubscription)||void 0===vt||vt.unsubscribe(),this._renderChangesSubscription=null}}class xt extends $t{}},3848:(Ye,pe,h)=>{"use strict";h.d(pe,{Nh:()=>ze,SP:()=>ft,Vc:()=>ae,uD:()=>Fe,uX:()=>P});var e=h(12687),c=h(49643),A=h(84080),w=h(36895),g=h(94650),C=h(3238),T=h(95698),E=h(68675),S=h(71884),U=h(82722),_=h(63900),V=h(35684),z=h(77579),Q=h(50727),te=h(54968),oe=h(39646),ee=h(56451),le=h(60515),de=h(69751),Te=h(82805),v=h(40445),L=h(37340),B=h(21281),W=h(67376),q=h(83353),ue=h(29521);function ye(tt,at){1&tt&&g.Hsn(0)}const Me=["*"];function we(tt,at){}const Ge=function(tt){return{animationDuration:tt}},ce=function(tt,at){return{value:tt,params:at}},Ze=["tabListContainer"],he=["tabList"],xe=["tabListInner"],j=["nextPaginator"],R=["previousPaginator"],G=["tabBodyWrapper"],se=["tabHeader"];function $(tt,at){}function Ee(tt,at){if(1&tt&&g.YNc(0,$,0,0,"ng-template",10),2&tt){const Re=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",Re.templateLabel)}}function Oe(tt,at){if(1&tt&&g._uU(0),2&tt){const Re=g.oxw().$implicit;g.Oqu(Re.textLabel)}}function ct(tt,at){if(1&tt){const Re=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const Pt=g.CHM(Re),jt=Pt.$implicit,cn=Pt.index,Xt=g.oxw(),sn=g.MAs(1);return g.KtG(Xt._handleClick(jt,sn,cn))})("cdkFocusChange",function(Pt){const cn=g.CHM(Re).index,Xt=g.oxw();return g.KtG(Xt._tabFocusChanged(Pt,cn))}),g.TgZ(1,"div",7),g.YNc(2,Ee,1,1,"ng-template",8),g.YNc(3,Oe,1,1,"ng-template",null,9,g.W1O),g.qZA()()}if(2&tt){const Re=at.$implicit,st=at.index,Pt=g.MAs(4),jt=g.oxw();g.ekj("mat-tab-label-active",jt.selectedIndex===st),g.Q6J("id",jt._getTabLabelId(st))("ngClass",Re.labelClass)("disabled",Re.disabled)("matRippleDisabled",Re.disabled||jt.disableRipple),g.uIk("tabIndex",jt._getTabIndex(Re,st))("aria-posinset",st+1)("aria-setsize",jt._tabs.length)("aria-controls",jt._getTabContentId(st))("aria-selected",jt.selectedIndex===st)("aria-label",Re.ariaLabel||null)("aria-labelledby",!Re.ariaLabel&&Re.ariaLabelledby?Re.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",Re.templateLabel)("ngIfElse",Pt)}}function Xe(tt,at){if(1&tt){const Re=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){g.CHM(Re);const Pt=g.oxw();return g.KtG(Pt._removeTabBodyWrapperHeight())})("_onCentering",function(Pt){g.CHM(Re);const jt=g.oxw();return g.KtG(jt._setTabBodyWrapperHeight(Pt))}),g.qZA()}if(2&tt){const Re=at.$implicit,st=at.index,Pt=g.oxw();g.ekj("mat-tab-body-active",Pt.selectedIndex===st),g.Q6J("id",Pt._getTabContentId(st))("ngClass",Re.bodyClass)("content",Re.content)("position",Re.position)("origin",Re.origin)("animationDuration",Pt.animationDuration)("preserveContent",Pt.preserveContent),g.uIk("tabindex",null!=Pt.contentTabIndex&&Pt.selectedIndex===st?Pt.contentTabIndex:null)("aria-labelledby",Pt._getTabLabelId(st))}}const Je=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function gt(){return at=>({left:at?(at.offsetLeft||0)+"px":"0",width:at?(at.offsetWidth||0)+"px":"0"})}});let Y=(()=>{class tt{constructor(Re,st,Pt,jt){this._elementRef=Re,this._ngZone=st,this._inkBarPositioner=Pt,this._animationMode=jt}alignToElement(Re){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>{const st=this._inkBarPositioner(Re),Pt=this._elementRef.nativeElement;Pt.style.left=st.left,Pt.style.width=st.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Je),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(Re,st){2&Re&&g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode)}}),tt})();const Ce=new g.OlP("MatTabContent");let ae=(()=>{class tt{constructor(Re){this.template=Re}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.Rgc))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:Ce,useExisting:tt}])]}),tt})();const re=new g.OlP("MatTabLabel"),Se=new g.OlP("MAT_TAB");let Fe=(()=>{class tt extends A.ig{constructor(Re,st,Pt){super(Re,st),this._closestTab=Pt}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Se,8))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:re,useExisting:tt}]),g.qOj]}),tt})();const be=(0,C.Id)(class{}),Ue=new g.OlP("MAT_TAB_GROUP");let P=(()=>{class tt extends be{constructor(Re,st){super(),this._viewContainerRef=Re,this._closestTabGroup=st,this.textLabel="",this._contentPortal=null,this._stateChanges=new z.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(Re){this._setTemplateLabelInput(Re)}get content(){return this._contentPortal}ngOnChanges(Re){(Re.hasOwnProperty("textLabel")||Re.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new A.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Re){Re&&Re._closestTab===this&&(this._templateLabel=Re)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.s_b),g.Y36(Ue,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab"]],contentQueries:function(Re,st,Pt){if(1&Re&&(g.Suo(Pt,re,5),g.Suo(Pt,Ce,7,g.Rgc)),2&Re){let jt;g.iGM(jt=g.CRH())&&(st.templateLabel=jt.first),g.iGM(jt=g.CRH())&&(st._explicitContent=jt.first)}},viewQuery:function(Re,st){if(1&Re&&g.Gf(g.Rgc,7),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._implicitContent=Pt.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[g._Bn([{provide:Se,useExisting:tt}]),g.qOj,g.TTD],ngContentSelectors:Me,decls:1,vars:0,template:function(Re,st){1&Re&&(g.F$t(),g.YNc(0,ye,1,0,"ng-template"))},encapsulation:2}),tt})();const H={translateTab:(0,L.X$)("translateTab",[(0,L.SB)("center, void, left-origin-center, right-origin-center",(0,L.oB)({transform:"none"})),(0,L.SB)("left",(0,L.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.SB)("right",(0,L.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,L.eR)("* => left, * => right, left => center, right => center",(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,L.eR)("void => left-origin-center",[(0,L.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,L.eR)("void => right-origin-center",[(0,L.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let i=(()=>{class tt extends A.Pl{constructor(Re,st,Pt,jt){super(Re,st,jt),this._host=Pt,this._centeringSub=Q.w0.EMPTY,this._leavingSub=Q.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,E.O)(this._host._isCenterPosition(this._host._position))).subscribe(Re=>{Re&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>f)),g.Y36(w.K0))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),tt})(),o=(()=>{class tt{constructor(Re,st,Pt){this._elementRef=Re,this._dir=st,this._dirChangeSubscription=Q.w0.EMPTY,this._translateTabComplete=new z.x,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,st&&(this._dirChangeSubscription=st.change.subscribe(jt=>{this._computePositionAnimationState(jt),Pt.markForCheck()})),this._translateTabComplete.pipe((0,S.x)((jt,cn)=>jt.fromState===cn.fromState&&jt.toState===cn.toState)).subscribe(jt=>{this._isCenterPosition(jt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(jt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(Re){this._positionIndex=Re,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(Re){const st=this._isCenterPosition(Re.toState);this._beforeCentering.emit(st),st&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(Re){return"center"==Re||"left-origin-center"==Re||"right-origin-center"==Re}_computePositionAnimationState(Re=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==Re?"left":"right":this._positionIndex>0?"ltr"==Re?"right":"left":"center"}_computePositionFromOrigin(Re){const st=this._getLayoutDirection();return"ltr"==st&&Re<=0||"rtl"==st&&Re>0?"left-origin-center":"right-origin-center"}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(v.Is,8),g.Y36(g.sBO))},tt.\u0275dir=g.lG2({type:tt,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),tt})(),f=(()=>{class tt extends o{constructor(Re,st,Pt){super(Re,st,Pt)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(v.Is,8),g.Y36(g.sBO))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-body"]],viewQuery:function(Re,st){if(1&Re&&g.Gf(A.Pl,5),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._portalHost=Pt.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(Re,st){1&Re&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(jt){return st._onTranslateTabStarted(jt)})("@translateTab.done",function(jt){return st._translateTabComplete.next(jt)}),g.YNc(2,we,0,0,"ng-template",2),g.qZA()),2&Re&&g.Q6J("@translateTab",g.WLB(3,ce,st._position,g.VKq(1,Ge,st.animationDuration)))},dependencies:[i],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[H.translateTab]}}),tt})();const l=new g.OlP("MAT_TABS_CONFIG"),a=(0,C.Id)(class{});let n=(()=>{class tt extends a{constructor(Re){super(),this.elementRef=Re}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq))},tt.\u0275dir=g.lG2({type:tt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Re,st){2&Re&&(g.uIk("aria-disabled",!!st.disabled),g.ekj("mat-tab-disabled",st.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),tt})();const t=(0,q.i$)({passive:!0});let p=(()=>{class tt{constructor(Re,st,Pt,jt,cn,Xt,sn){this._elementRef=Re,this._changeDetectorRef=st,this._viewportRuler=Pt,this._dir=jt,this._ngZone=cn,this._platform=Xt,this._animationMode=sn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new z.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new z.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,cn.runOutsideAngular(()=>{(0,te.R)(Re.nativeElement,"mouseleave").pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(Re){this._disablePagination=(0,B.Ig)(Re)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Re){Re=(0,B.su)(Re),this._selectedIndex!=Re&&(this._selectedIndexChanged=!0,this._selectedIndex=Re,this._keyManager&&this._keyManager.updateActiveItem(Re))}ngAfterViewInit(){(0,te.R)(this._previousPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,te.R)(this._nextPaginator.nativeElement,"touchstart",t).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const Re=this._dir?this._dir.change:(0,oe.of)("ltr"),st=this._viewportRuler.change(150),Pt=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(Pt),(0,ee.T)(Re,st,this._items.changes,this._itemsResized()).pipe((0,U.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Pt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,U.R)(this._destroyed)).subscribe(jt=>{this.indexFocused.emit(jt),this._setTabFocus(jt)})}_itemsResized(){return"function"!=typeof ResizeObserver?le.E:this._items.changes.pipe((0,E.O)(this._items),(0,_.w)(Re=>new de.y(st=>this._ngZone.runOutsideAngular(()=>{const Pt=new ResizeObserver(()=>{st.next()});return Re.forEach(jt=>{Pt.observe(jt.elementRef.nativeElement)}),()=>{Pt.disconnect()}}))),(0,V.T)(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Re){if(!(0,ue.Vb)(Re))switch(Re.keyCode){case ue.K5:case ue.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Re));break;default:this._keyManager.onKeydown(Re)}}_onContentChanges(){const Re=this._elementRef.nativeElement.textContent;Re!==this._currentTextContent&&(this._currentTextContent=Re||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Re){!this._isValidIndex(Re)||this.focusIndex===Re||!this._keyManager||this._keyManager.setActiveItem(Re)}_isValidIndex(Re){if(!this._items)return!0;const st=this._items?this._items.toArray()[Re]:null;return!!st&&!st.disabled}_setTabFocus(Re){if(this._showPaginationControls&&this._scrollToLabel(Re),this._items&&this._items.length){this._items.toArray()[Re].focus();const st=this._tabListContainer.nativeElement;st.scrollLeft="ltr"==this._getLayoutDirection()?0:st.scrollWidth-st.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Re=this.scrollDistance,st="ltr"===this._getLayoutDirection()?-Re:Re;this._tabList.nativeElement.style.transform=`translateX(${Math.round(st)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Re){this._scrollTo(Re)}_scrollHeader(Re){return this._scrollTo(this._scrollDistance+("before"==Re?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Re){this._stopInterval(),this._scrollHeader(Re)}_scrollToLabel(Re){if(this.disablePagination)return;const st=this._items?this._items.toArray()[Re]:null;if(!st)return;const Pt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:jt,offsetWidth:cn}=st.elementRef.nativeElement;let Xt,sn;"ltr"==this._getLayoutDirection()?(Xt=jt,sn=Xt+cn):(sn=this._tabListInner.nativeElement.offsetWidth-jt,Xt=sn-cn);const mn=this.scrollDistance,Nt=this.scrollDistance+Pt;XtNt&&(this.scrollDistance+=sn-Nt+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const Re=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;Re||(this.scrollDistance=0),Re!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=Re}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Re=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,st=Re?Re.elementRef.nativeElement:null;st?this._inkBar.alignToElement(st):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Re,st){st&&null!=st.button&&0!==st.button||(this._stopInterval(),(0,Te.H)(650,100).pipe((0,U.R)((0,ee.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Pt,distance:jt}=this._scrollHeader(Re);(0===jt||jt>=Pt)&&this._stopInterval()}))}_scrollTo(Re){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const st=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(st,Re)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:st,distance:this._scrollDistance}}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{disablePagination:"disablePagination"}}),tt})(),M=(()=>{class tt extends p{constructor(Re,st,Pt,jt,cn,Xt,sn){super(Re,st,Pt,jt,cn,Xt,sn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Re){this._disableRipple=(0,B.Ig)(Re)}_itemSelected(Re){Re.preventDefault()}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),tt})(),_e=(()=>{class tt extends M{constructor(Re,st,Pt,jt,cn,Xt,sn){super(Re,st,Pt,jt,cn,Xt,sn)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(W.rL),g.Y36(v.Is,8),g.Y36(g.R0b),g.Y36(q.t4),g.Y36(g.QbO,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-header"]],contentQueries:function(Re,st,Pt){if(1&Re&&g.Suo(Pt,n,4),2&Re){let jt;g.iGM(jt=g.CRH())&&(st._items=jt)}},viewQuery:function(Re,st){if(1&Re&&(g.Gf(Y,7),g.Gf(Ze,7),g.Gf(he,7),g.Gf(xe,7),g.Gf(j,5),g.Gf(R,5)),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._inkBar=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabListContainer=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabList=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabListInner=Pt.first),g.iGM(Pt=g.CRH())&&(st._nextPaginator=Pt.first),g.iGM(Pt=g.CRH())&&(st._previousPaginator=Pt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(Re,st){2&Re&&g.ekj("mat-tab-header-pagination-controls-enabled",st._showPaginationControls)("mat-tab-header-rtl","rtl"==st._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:Me,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(Re,st){1&Re&&(g.F$t(),g.TgZ(0,"button",0,1),g.NdJ("click",function(){return st._handlePaginatorClick("before")})("mousedown",function(jt){return st._handlePaginatorPress("before",jt)})("touchend",function(){return st._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(jt){return st._handleKeydown(jt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return st._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA()(),g.TgZ(11,"button",9,10),g.NdJ("mousedown",function(jt){return st._handlePaginatorPress("after",jt)})("click",function(){return st._handlePaginatorClick("after")})("touchend",function(){return st._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&Re&&(g.ekj("mat-tab-header-pagination-disabled",st._disableScrollBefore),g.Q6J("matRippleDisabled",st._disableScrollBefore||st.disableRipple)("disabled",st._disableScrollBefore||null),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",st._disableScrollAfter),g.Q6J("matRippleDisabled",st._disableScrollAfter||st.disableRipple)("disabled",st._disableScrollAfter||null))},dependencies:[C.wG,c.wD,Y],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),tt})(),bt=0;class Vt{}const on=(0,C.pj)((0,C.Kr)(class{constructor(tt){this._elementRef=tt}}),"primary");let Mt=(()=>{class tt extends on{constructor(Re,st,Pt,jt){var cn;super(Re),this._changeDetectorRef=st,this._animationMode=jt,this._tabs=new g.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Q.w0.EMPTY,this._tabLabelSubscription=Q.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=bt++,this.animationDuration=Pt&&Pt.animationDuration?Pt.animationDuration:"500ms",this.disablePagination=!(!Pt||null==Pt.disablePagination)&&Pt.disablePagination,this.dynamicHeight=!(!Pt||null==Pt.dynamicHeight)&&Pt.dynamicHeight,this.contentTabIndex=null!==(cn=Pt?.contentTabIndex)&&void 0!==cn?cn:null,this.preserveContent=!(null==Pt||!Pt.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(Re){this._dynamicHeight=(0,B.Ig)(Re)}get selectedIndex(){return this._selectedIndex}set selectedIndex(Re){this._indexToSelect=(0,B.su)(Re,null)}get animationDuration(){return this._animationDuration}set animationDuration(Re){this._animationDuration=/^\d+$/.test(Re+"")?Re+"ms":Re}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Re){this._contentTabIndex=(0,B.su)(Re,null)}get disablePagination(){return this._disablePagination}set disablePagination(Re){this._disablePagination=(0,B.Ig)(Re)}get preserveContent(){return this._preserveContent}set preserveContent(Re){this._preserveContent=(0,B.Ig)(Re)}get backgroundColor(){return this._backgroundColor}set backgroundColor(Re){const st=this._elementRef.nativeElement;st.classList.remove(`mat-background-${this.backgroundColor}`),Re&&st.classList.add(`mat-background-${Re}`),this._backgroundColor=Re}ngAfterContentChecked(){const Re=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Re){const st=null==this._selectedIndex;if(!st){this.selectedTabChange.emit(this._createChangeEvent(Re));const Pt=this._tabBodyWrapper.nativeElement;Pt.style.minHeight=Pt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Pt,jt)=>Pt.isActive=jt===Re),st||(this.selectedIndexChange.emit(Re),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((st,Pt)=>{st.position=Pt-Re,null!=this._selectedIndex&&0==st.position&&!st.origin&&(st.origin=Re-this._selectedIndex)}),this._selectedIndex!==Re&&(this._selectedIndex=Re,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Re=this._clampTabIndex(this._indexToSelect);if(Re===this._selectedIndex){const st=this._tabs.toArray();let Pt;for(let jt=0;jt{st[Re].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Re))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,E.O)(this._allTabs)).subscribe(Re=>{this._tabs.reset(Re.filter(st=>st._closestTabGroup===this||!st._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Re){const st=this._tabHeader;st&&(st.focusIndex=Re)}_focusChanged(Re){this._lastFocusedTabIndex=Re,this.focusChange.emit(this._createChangeEvent(Re))}_createChangeEvent(Re){const st=new Vt;return st.index=Re,this._tabs&&this._tabs.length&&(st.tab=this._tabs.toArray()[Re]),st}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,ee.T)(...this._tabs.map(Re=>Re._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Re){return Math.min(this._tabs.length-1,Math.max(Re||0,0))}_getTabLabelId(Re){return`mat-tab-label-${this._groupId}-${Re}`}_getTabContentId(Re){return`mat-tab-content-${this._groupId}-${Re}`}_setTabBodyWrapperHeight(Re){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const st=this._tabBodyWrapper.nativeElement;st.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(st.style.height=Re+"px")}_removeTabBodyWrapperHeight(){const Re=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Re.clientHeight,Re.style.height="",this.animationDone.emit()}_handleClick(Re,st,Pt){Re.disabled||(this.selectedIndex=st.focusIndex=Pt)}_getTabIndex(Re,st){var Pt;return Re.disabled?null:st===(null!==(Pt=this._lastFocusedTabIndex)&&void 0!==Pt?Pt:this.selectedIndex)?0:-1}_tabFocusChanged(Re,st){Re&&"mouse"!==Re&&"touch"!==Re&&(this._tabHeader.focusIndex=st)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},tt.\u0275dir=g.lG2({type:tt,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),tt})(),ft=(()=>{class tt extends Mt{constructor(Re,st,Pt,jt){super(Re,st,Pt,jt)}}return tt.\u0275fac=function(Re){return new(Re||tt)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(l,8),g.Y36(g.QbO,8))},tt.\u0275cmp=g.Xpm({type:tt,selectors:[["mat-tab-group"]],contentQueries:function(Re,st,Pt){if(1&Re&&g.Suo(Pt,P,5),2&Re){let jt;g.iGM(jt=g.CRH())&&(st._allTabs=jt)}},viewQuery:function(Re,st){if(1&Re&&(g.Gf(G,5),g.Gf(se,5)),2&Re){let Pt;g.iGM(Pt=g.CRH())&&(st._tabBodyWrapper=Pt.first),g.iGM(Pt=g.CRH())&&(st._tabHeader=Pt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(Re,st){2&Re&&g.ekj("mat-tab-group-dynamic-height",st.dynamicHeight)("mat-tab-group-inverted-header","below"===st.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:Ue,useExisting:tt}]),g.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(Re,st){1&Re&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(jt){return st._focusChanged(jt)})("selectFocusedIndex",function(jt){return st.selectedIndex=jt}),g.YNc(2,ct,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Xe,1,11,"mat-tab-body",5),g.qZA()),2&Re&&(g.Q6J("selectedIndex",st.selectedIndex||0)("disableRipple",st.disableRipple)("disablePagination",st.disablePagination),g.xp6(2),g.Q6J("ngForOf",st._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===st._animationMode),g.xp6(2),g.Q6J("ngForOf",st._tabs))},dependencies:[w.mk,w.sg,w.O5,A.Pl,C.wG,e.kH,n,f,_e],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),tt})(),ze=(()=>{class tt{}return tt.\u0275fac=function(Re){return new(Re||tt)},tt.\u0275mod=g.oAB({type:tt}),tt.\u0275inj=g.cJS({imports:[w.ez,C.BQ,A.eL,C.si,c.Q8,e.rt,C.BQ]}),tt})()},10266:(Ye,pe,h)=>{"use strict";h.d(pe,{AV:()=>he,gM:()=>Ge});var e=h(98184),c=h(12687),A=h(36895),w=h(94650),g=h(3238),C=h(67376),T=h(40445),E=h(21281),S=h(29521),U=h(62289),_=h(83353),V=h(84080),z=h(77579),Q=h(82722),te=h(95698);h(37340);const ee=["tooltip"],Te="tooltip-panel",v=(0,_.i$)({passive:!0}),W=new w.OlP("mat-tooltip-scroll-strategy"),ue={provide:W,deps:[e.aV],useFactory:function q(j){return()=>j.scrollStrategies.reposition({scrollThrottle:20})}},ye=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Me(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let we=(()=>{class j{constructor(G,se,$,Ee,Oe,ct,Xe,_t,Je,gt,Y,Ce){this._overlay=G,this._elementRef=se,this._scrollDispatcher=$,this._viewContainerRef=Ee,this._ngZone=Oe,this._platform=ct,this._ariaDescriber=Xe,this._focusMonitor=_t,this._dir=gt,this._defaultOptions=Y,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 z.x,this._scrollStrategy=Je,this._document=Ce,Y&&(Y.position&&(this.position=Y.position),Y.touchGestures&&(this.touchGestures=Y.touchGestures)),gt.change.pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(G){var se;G!==this._position&&(this._position=G,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(se=this._tooltipInstance)||void 0===se||se.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(G){this._disabled=(0,E.Ig)(G),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(G){this._showDelay=(0,E.su)(G)}get hideDelay(){return this._hideDelay}set hideDelay(G){this._hideDelay=(0,E.su)(G),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(G){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=G?String(G).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(G){this._tooltipClass=G,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Q.R)(this._destroyed)).subscribe(G=>{G?"keyboard"===G&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const G=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([se,$])=>{G.removeEventListener(se,$,v)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(G,this.message,"tooltip"),this._focusMonitor.stopMonitoring(G)}show(G=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const se=this._createOverlay();this._detach(),this._portal=this._portal||new V.C5(this._tooltipComponent,this._viewContainerRef);const $=this._tooltipInstance=se.attach(this._portal).instance;$._triggerElement=this._elementRef.nativeElement,$._mouseLeaveHideDelay=this._hideDelay,$.afterHidden().pipe((0,Q.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),$.show(G)}hide(G=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(G)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var G;if(this._overlayRef)return this._overlayRef;const se=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),$=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(se);return $.positionChanges.pipe((0,Q.R)(this._destroyed)).subscribe(Ee=>{this._updateCurrentPositionClass(Ee.connectionPair),this._tooltipInstance&&Ee.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:$,panelClass:`${this._cssClassPrefix}-${Te}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Q.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Q.R)(this._destroyed)).subscribe(()=>{var Ee;return null===(Ee=this._tooltipInstance)||void 0===Ee?void 0:Ee._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Q.R)(this._destroyed)).subscribe(Ee=>{this._isTooltipVisible()&&Ee.keyCode===S.hY&&!(0,S.Vb)(Ee)&&(Ee.preventDefault(),Ee.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(G=this._defaultOptions)&&void 0!==G&&G.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(G){const se=G.getConfig().positionStrategy,$=this._getOrigin(),Ee=this._getOverlayPosition();se.withPositions([this._addOffset({...$.main,...Ee.main}),this._addOffset({...$.fallback,...Ee.fallback})])}_addOffset(G){return G}_getOrigin(){const G=!this._dir||"ltr"==this._dir.value,se=this.position;let $;"above"==se||"below"==se?$={originX:"center",originY:"above"==se?"top":"bottom"}:"before"==se||"left"==se&&G||"right"==se&&!G?$={originX:"start",originY:"center"}:("after"==se||"right"==se&&G||"left"==se&&!G)&&($={originX:"end",originY:"center"});const{x:Ee,y:Oe}=this._invertPosition($.originX,$.originY);return{main:$,fallback:{originX:Ee,originY:Oe}}}_getOverlayPosition(){const G=!this._dir||"ltr"==this._dir.value,se=this.position;let $;"above"==se?$={overlayX:"center",overlayY:"bottom"}:"below"==se?$={overlayX:"center",overlayY:"top"}:"before"==se||"left"==se&&G||"right"==se&&!G?$={overlayX:"end",overlayY:"center"}:("after"==se||"right"==se&&G||"left"==se&&!G)&&($={overlayX:"start",overlayY:"center"});const{x:Ee,y:Oe}=this._invertPosition($.overlayX,$.overlayY);return{main:$,fallback:{overlayX:Ee,overlayY:Oe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,te.q)(1),(0,Q.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(G){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=G,this._tooltipInstance._markForCheck())}_invertPosition(G,se){return"above"===this.position||"below"===this.position?"top"===se?se="bottom":"bottom"===se&&(se="top"):"end"===G?G="start":"start"===G&&(G="end"),{x:G,y:se}}_updateCurrentPositionClass(G){const{overlayY:se,originX:$,originY:Ee}=G;let Oe;if(Oe="center"===se?this._dir&&"rtl"===this._dir.value?"end"===$?"left":"right":"start"===$?"left":"right":"bottom"===se&&"top"===Ee?"above":"below",Oe!==this._currentPosition){const ct=this._overlayRef;if(ct){const Xe=`${this._cssClassPrefix}-${Te}-`;ct.removePanelClass(Xe+this._currentPosition),ct.addPanelClass(Xe+Oe)}this._currentPosition=Oe}}_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 G=[];if(this._platformSupportsMouseEvents())G.push(["mouseleave",se=>{var $;const Ee=se.relatedTarget;(!Ee||null===($=this._overlayRef)||void 0===$||!$.overlayElement.contains(Ee))&&this.hide()}],["wheel",se=>this._wheelListener(se)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const se=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};G.push(["touchend",se],["touchcancel",se])}this._addListeners(G),this._passiveListeners.push(...G)}_addListeners(G){G.forEach(([se,$])=>{this._elementRef.nativeElement.addEventListener(se,$,v)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(G){if(this._isTooltipVisible()){const se=this._document.elementFromPoint(G.clientX,G.clientY),$=this._elementRef.nativeElement;se!==$&&!$.contains(se)&&this.hide()}}_disableNativeGesturesIfNecessary(){const G=this.touchGestures;if("off"!==G){const se=this._elementRef.nativeElement,$=se.style;("on"===G||"INPUT"!==se.nodeName&&"TEXTAREA"!==se.nodeName)&&($.userSelect=$.msUserSelect=$.webkitUserSelect=$.MozUserSelect="none"),("on"===G||!se.draggable)&&($.webkitUserDrag="none"),$.touchAction="none",$.webkitTapHighlightColor="transparent"}}}return j.\u0275fac=function(G){w.$Z()},j.\u0275dir=w.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})(),Ge=(()=>{class j extends we{constructor(G,se,$,Ee,Oe,ct,Xe,_t,Je,gt,Y,Ce){super(G,se,$,Ee,Oe,ct,Xe,_t,Je,gt,Y,Ce),this._tooltipComponent=Ze}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(C.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(_.t4),w.Y36(c.$s),w.Y36(c.tE),w.Y36(W),w.Y36(T.Is,8),w.Y36(ye,8),w.Y36(A.K0))},j.\u0275dir=w.lG2({type:j,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),j})(),ce=(()=>{class j{constructor(G,se){this._changeDetectorRef=G,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new z.x,this._animationsDisabled="NoopAnimations"===se}show(G){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},G)}hide(G){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},G)}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:G}){(!G||!this._triggerElement.contains(G))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:G}){(G===this._showAnimation||G===this._hideAnimation)&&this._finalizeAnimation(G===this._showAnimation)}_finalizeAnimation(G){G?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(G){const se=this._tooltip.nativeElement,$=this._showAnimation,Ee=this._hideAnimation;if(se.classList.remove(G?Ee:$),se.classList.add(G?$:Ee),this._isVisible=G,G&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Oe=getComputedStyle(se);("0s"===Oe.getPropertyValue("animation-duration")||"none"===Oe.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}G&&this._onShow(),this._animationsDisabled&&(se.classList.add("_mat-animation-noopable"),this._finalizeAnimation(G))}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(w.sBO),w.Y36(w.QbO,8))},j.\u0275dir=w.lG2({type:j}),j})(),Ze=(()=>{class j extends ce{constructor(G,se,$){super(G,$),this._breakpointObserver=se,this._isHandset=this._breakpointObserver.observe(U.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return j.\u0275fac=function(G){return new(G||j)(w.Y36(w.sBO),w.Y36(U.Yg),w.Y36(w.QbO,8))},j.\u0275cmp=w.Xpm({type:j,selectors:[["mat-tooltip-component"]],viewQuery:function(G,se){if(1&G&&w.Gf(ee,7),2&G){let $;w.iGM($=w.CRH())&&(se._tooltip=$.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(G,se){1&G&&w.NdJ("mouseleave",function(Ee){return se._handleMouseLeave(Ee)}),2&G&&w.Udp("zoom",se.isVisible()?1:null)},features:[w.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(G,se){if(1&G&&(w.TgZ(0,"div",0,1),w.NdJ("animationend",function(Ee){return se._handleAnimationEnd(Ee)}),w.ALo(2,"async"),w._uU(3),w.qZA()),2&G){let $;w.ekj("mat-tooltip-handset",null==($=w.lcZ(2,4,se._isHandset))?null:$.matches),w.Q6J("ngClass",se.tooltipClass),w.xp6(3),w.Oqu(se.message)}},dependencies:[A.mk,A.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})(),he=(()=>{class j{}return j.\u0275fac=function(G){return new(G||j)},j.\u0275mod=w.oAB({type:j}),j.\u0275inj=w.cJS({providers:[ue],imports:[c.rt,A.ez,e.U8,g.BQ,g.BQ,C.ZD]}),j})()},35423:(Ye,pe,h)=>{"use strict";h.d(pe,{Ar:()=>te,GZ:()=>z,JZ:()=>Te,WX:()=>L,dp:()=>de,eu:()=>ee,fQ:()=>V,gi:()=>oe,kc:()=>v,uo:()=>_});var e=h(57851),c=h(94650),A=h(3238),w=h(21281),g=h(95017),C=h(61135),T=h(56451),E=h(95698),S=h(54004);const U=(0,A.sb)((0,A.Id)(e.Hs));let _=(()=>{class B extends U{constructor(q,ue,ye){super(q,ue),this.tabIndex=Number(ye)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return B.\u0275fac=function(q){return new(q||B)(c.Y36(c.SBq),c.Y36(e._0),c.$8M("tabindex"))},B.\u0275dir=c.lG2({type:B,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[c._Bn([{provide:e.Hs,useExisting:B}]),c.qOj]}),B})(),V=(()=>{class B extends e.rO{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=c.n5z(B)))(ue||B)}}(),B.\u0275dir=c.lG2({type:B,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[c._Bn([{provide:e.rO,useExisting:B}]),c.qOj]}),B})(),z=(()=>{class B extends e.Xx{constructor(q,ue,ye,Me){super(q,ue,ye),this._disabled=!1,this.tabIndex=Number(Me)||0}get disabled(){return this._disabled}set disabled(q){this._disabled=(0,w.Ig)(q)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(q){this._tabIndex=q??0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return B.\u0275fac=function(q){return new(q||B)(c.Y36(c.SBq),c.Y36(e._0),c.Y36(c.ZZ4),c.$8M("tabindex"))},B.\u0275dir=c.lG2({type:B,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[c._Bn([{provide:e.Xx,useExisting:B},{provide:e.Hs,useExisting:B},{provide:e.HI,useExisting:B}]),c.qOj]}),B})(),te=(()=>{class B{constructor(q,ue){this.viewContainer=q,this._node=ue}}return B.\u0275fac=function(q){return new(q||B)(c.Y36(c.s_b),c.Y36(e.HI,8))},B.\u0275dir=c.lG2({type:B,selectors:[["","matTreeNodeOutlet",""]],features:[c._Bn([{provide:e.cu,useExisting:B}])]}),B})(),oe=(()=>{class B extends e._0{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=c.n5z(B)))(ue||B)}}(),B.\u0275cmp=c.Xpm({type:B,selectors:[["mat-tree"]],viewQuery:function(q,ue){if(1&q&&c.Gf(te,7),2&q){let ye;c.iGM(ye=c.CRH())&&(ue._nodeOutlet=ye.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[c._Bn([{provide:e._0,useExisting:B}]),c.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(q,ue){1&q&&c.GkF(0,0)},dependencies:[te],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}"],encapsulation:2}),B})(),ee=(()=>{class B extends e.Ud{}return B.\u0275fac=function(){let W;return function(ue){return(W||(W=c.n5z(B)))(ue||B)}}(),B.\u0275dir=c.lG2({type:B,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[c._Bn([{provide:e.Ud,useExisting:B}]),c.qOj]}),B})(),de=(()=>{class B{}return B.\u0275fac=function(q){return new(q||B)},B.\u0275mod=c.oAB({type:B}),B.\u0275inj=c.cJS({imports:[e.nZ,A.BQ,A.BQ]}),B})();class Te{constructor(W,q,ue,ye){this.transformFunction=W,this.getLevel=q,this.isExpandable=ue,this.getChildren=ye}_flattenNode(W,q,ue,ye){const Me=this.transformFunction(W,q);if(ue.push(Me),this.isExpandable(Me)){const we=this.getChildren(W);we&&(Array.isArray(we)?this._flattenChildren(we,q,ue,ye):we.pipe((0,E.q)(1)).subscribe(Ge=>{this._flattenChildren(Ge,q,ue,ye)}))}return ue}_flattenChildren(W,q,ue,ye){W.forEach((Me,we)=>{let Ge=ye.slice();Ge.push(we!=W.length-1),this._flattenNode(Me,q+1,ue,Ge)})}flattenNodes(W){let q=[];return W.forEach(ue=>this._flattenNode(ue,0,q,[])),q}expandFlattenedNodes(W,q){let ue=[],ye=[];return ye[0]=!0,W.forEach(Me=>{let we=!0;for(let Ge=0;Ge<=this.getLevel(Me);Ge++)we=we&&ye[Ge];we&&ue.push(Me),this.isExpandable(Me)&&(ye[this.getLevel(Me)+1]=q.isExpanded(Me))}),ue}}class v extends g.o2{constructor(W,q,ue){super(),this._treeControl=W,this._treeFlattener=q,this._flattenedData=new C.X([]),this._expandedData=new C.X([]),this._data=new C.X([]),ue&&(this.data=ue)}get data(){return this._data.value}set data(W){this._data.next(W),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(W){return(0,T.T)(W.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,S.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class L extends g.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(W){this._data.next(W)}connect(W){return(0,T.T)(W.viewChange,this._data).pipe((0,S.U)(()=>this.data))}disconnect(){}}},11481:(Ye,pe,h)=>{"use strict";h.d(pe,{Dx:()=>n,H7:()=>cn,b2:()=>i,q6:()=>be,se:()=>ce});var e=h(36895),c=h(94650);class A extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends A{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Ct,Ut){return Rt.addEventListener(Ct,Ut,!1),()=>{Rt.removeEventListener(Ct,Ut,!1)}}dispatchEvent(Rt,Ct){Rt.dispatchEvent(Ct)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Ct){return(Ct=Ct||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Ct){return"window"===Ct?window:"document"===Ct?Rt:"body"===Ct?Rt.body:null}getBaseHref(Rt){const Ct=function C(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Ct?null:function E(Nt){T=T||document.createElement("a"),T.setAttribute("href",Nt);const Rt=T.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Ct)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let T,g=null;const S=new c.OlP("TRANSITION_ID"),_=[{provide:c.ip1,useFactory:function U(Nt,Rt,Ct){return()=>{Ct.get(c.CZH).donePromise.then(()=>{const Ut=(0,e.q)(),Qt=Rt.querySelectorAll(`style[ng-transition="${Nt}"]`);for(let An=0;An{class Nt{build(){return new XMLHttpRequest}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const Q=new c.OlP("EventManagerPlugins");let te=(()=>{class Nt{constructor(Ct,Ut){this._zone=Ut,this._eventNameToPlugin=new Map,Ct.forEach(Qt=>Qt.manager=this),this._plugins=Ct.slice().reverse()}addEventListener(Ct,Ut,Qt){return this._findPluginFor(Ut).addEventListener(Ct,Ut,Qt)}addGlobalEventListener(Ct,Ut,Qt){return this._findPluginFor(Ut).addGlobalEventListener(Ct,Ut,Qt)}getZone(){return this._zone}_findPluginFor(Ct){const Ut=this._eventNameToPlugin.get(Ct);if(Ut)return Ut;const Qt=this._plugins;for(let An=0;An{class Nt{constructor(){this._stylesSet=new Set}addStyles(Ct){const Ut=new Set;Ct.forEach(Qt=>{this._stylesSet.has(Qt)||(this._stylesSet.add(Qt),Ut.add(Qt))}),this.onStylesAdded(Ut)}onStylesAdded(Ct){}getAllStyles(){return Array.from(this._stylesSet)}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})(),le=(()=>{class Nt extends ee{constructor(Ct){super(),this._doc=Ct,this._hostNodes=new Map,this._hostNodes.set(Ct.head,[])}_addStylesToHost(Ct,Ut,Qt){Ct.forEach(An=>{const Dt=this._doc.createElement("style");Dt.textContent=An,Qt.push(Ut.appendChild(Dt))})}addHost(Ct){const Ut=[];this._addStylesToHost(this._stylesSet,Ct,Ut),this._hostNodes.set(Ct,Ut)}removeHost(Ct){const Ut=this._hostNodes.get(Ct);Ut&&Ut.forEach(de),this._hostNodes.delete(Ct)}onStylesAdded(Ct){this._hostNodes.forEach((Ut,Qt)=>{this._addStylesToHost(Ct,Qt,Ut)})}ngOnDestroy(){this._hostNodes.forEach(Ct=>Ct.forEach(de))}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();function de(Nt){(0,e.q)().remove(Nt)}const Te={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},v=/%COMP%/g,B="%COMP%",W=`_nghost-${B}`,q=`_ngcontent-${B}`;function Me(Nt,Rt,Ct){for(let Ut=0;Ut{if("__ngUnwrap__"===Rt)return Nt;!1===Nt(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let ce=(()=>{class Nt{constructor(Ct,Ut,Qt){this.eventManager=Ct,this.sharedStylesHost=Ut,this.appId=Qt,this.rendererByCompId=new Map,this.defaultRenderer=new Ze(Ct)}createRenderer(Ct,Ut){if(!Ct||!Ut)return this.defaultRenderer;switch(Ut.encapsulation){case c.ifc.Emulated:{let Qt=this.rendererByCompId.get(Ut.id);return Qt||(Qt=new R(this.eventManager,this.sharedStylesHost,Ut,this.appId),this.rendererByCompId.set(Ut.id,Qt)),Qt.applyToHost(Ct),Qt}case 1:case c.ifc.ShadowDom:return new G(this.eventManager,this.sharedStylesHost,Ct,Ut);default:if(!this.rendererByCompId.has(Ut.id)){const Qt=Me(Ut.id,Ut.styles,[]);this.sharedStylesHost.addStyles(Qt),this.rendererByCompId.set(Ut.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(te),c.LFG(le),c.LFG(c.AFp))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();class Ze{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Ct){return Ct?document.createElementNS(Te[Ct]||Ct,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Ct){(j(Rt)?Rt.content:Rt).appendChild(Ct)}insertBefore(Rt,Ct,Ut){Rt&&(j(Rt)?Rt.content:Rt).insertBefore(Ct,Ut)}removeChild(Rt,Ct){Rt&&Rt.removeChild(Ct)}selectRootElement(Rt,Ct){let Ut="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Ut)throw new Error(`The selector "${Rt}" did not match any elements`);return Ct||(Ut.textContent=""),Ut}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Ct,Ut,Qt){if(Qt){Ct=Qt+":"+Ct;const An=Te[Qt];An?Rt.setAttributeNS(An,Ct,Ut):Rt.setAttribute(Ct,Ut)}else Rt.setAttribute(Ct,Ut)}removeAttribute(Rt,Ct,Ut){if(Ut){const Qt=Te[Ut];Qt?Rt.removeAttributeNS(Qt,Ct):Rt.removeAttribute(`${Ut}:${Ct}`)}else Rt.removeAttribute(Ct)}addClass(Rt,Ct){Rt.classList.add(Ct)}removeClass(Rt,Ct){Rt.classList.remove(Ct)}setStyle(Rt,Ct,Ut,Qt){Qt&(c.JOm.DashCase|c.JOm.Important)?Rt.style.setProperty(Ct,Ut,Qt&c.JOm.Important?"important":""):Rt.style[Ct]=Ut}removeStyle(Rt,Ct,Ut){Ut&c.JOm.DashCase?Rt.style.removeProperty(Ct):Rt.style[Ct]=""}setProperty(Rt,Ct,Ut){Rt[Ct]=Ut}setValue(Rt,Ct){Rt.nodeValue=Ct}listen(Rt,Ct,Ut){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Ct,we(Ut)):this.eventManager.addEventListener(Rt,Ct,we(Ut))}}function j(Nt){return"TEMPLATE"===Nt.tagName&&void 0!==Nt.content}class R extends Ze{constructor(Rt,Ct,Ut,Qt){super(Rt),this.component=Ut;const An=Me(Qt+"-"+Ut.id,Ut.styles,[]);Ct.addStyles(An),this.contentAttr=function ue(Nt){return q.replace(v,Nt)}(Qt+"-"+Ut.id),this.hostAttr=function ye(Nt){return W.replace(v,Nt)}(Qt+"-"+Ut.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Ct){const Ut=super.createElement(Rt,Ct);return super.setAttribute(Ut,this.contentAttr,""),Ut}}class G extends Ze{constructor(Rt,Ct,Ut,Qt){super(Rt),this.sharedStylesHost=Ct,this.hostEl=Ut,this.shadowRoot=Ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const An=Me(Qt.id,Qt.styles,[]);for(let Dt=0;Dt{class Nt extends oe{constructor(Ct){super(Ct)}supports(Ct){return!0}addEventListener(Ct,Ut,Qt){return Ct.addEventListener(Ut,Qt,!1),()=>this.removeEventListener(Ct,Ut,Qt)}removeEventListener(Ct,Ut,Qt){return Ct.removeEventListener(Ut,Qt)}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const $=["alt","control","meta","shift"],Oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ct={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Xe={alt:Nt=>Nt.altKey,control:Nt=>Nt.ctrlKey,meta:Nt=>Nt.metaKey,shift:Nt=>Nt.shiftKey};let _t=(()=>{class Nt extends oe{constructor(Ct){super(Ct)}supports(Ct){return null!=Nt.parseEventName(Ct)}addEventListener(Ct,Ut,Qt){const An=Nt.parseEventName(Ut),Dt=Nt.eventCallback(An.fullKey,Qt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Ct,An.domEventName,Dt))}static parseEventName(Ct){const Ut=Ct.toLowerCase().split("."),Qt=Ut.shift();if(0===Ut.length||"keydown"!==Qt&&"keyup"!==Qt)return null;const An=Nt._normalizeKey(Ut.pop());let Dt="";if($.forEach(xt=>{const rt=Ut.indexOf(xt);rt>-1&&(Ut.splice(rt,1),Dt+=xt+".")}),Dt+=An,0!=Ut.length||0===An.length)return null;const $t={};return $t.domEventName=Qt,$t.fullKey=Dt,$t}static getEventFullKey(Ct){let Ut="",Qt=function Je(Nt){let Rt=Nt.key;if(null==Rt){if(Rt=Nt.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===Nt.location&&ct.hasOwnProperty(Rt)&&(Rt=ct[Rt]))}return Oe[Rt]||Rt}(Ct);return Qt=Qt.toLowerCase()," "===Qt?Qt="space":"."===Qt&&(Qt="dot"),$.forEach(An=>{An!=Qt&&(0,Xe[An])(Ct)&&(Ut+=An+".")}),Ut+=Qt,Ut}static eventCallback(Ct,Ut,Qt){return An=>{Nt.getEventFullKey(An)===Ct&&Qt.runGuarded(()=>Ut(An))}}static _normalizeKey(Ct){return"esc"===Ct?"escape":Ct}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:Nt.\u0275fac}),Nt})();const be=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:e.bD},{provide:c.g9A,useValue:function ae(){w.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function Se(){return(0,c.RDi)(document),document},deps:[]}]),Ue=new c.OlP(""),P=[{provide:c.rWj,useClass:class V{addToWindow(Rt){c.dqk.getAngularTestability=(Ut,Qt=!0)=>{const An=Rt.findTestabilityInTree(Ut,Qt);if(null==An)throw new Error("Could not find testability for element.");return An},c.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(Ut=>{const Qt=c.dqk.getAllAngularTestabilities();let An=Qt.length,Dt=!1;const $t=function(xt){Dt=Dt||xt,An--,0==An&&Ut(Dt)};Qt.forEach(function(xt){xt.whenStable($t)})})}findTestabilityInTree(Rt,Ct,Ut){return null==Ct?null:Rt.getTestability(Ct)??(Ut?(0,e.q)().isShadowRoot(Ct)?this.findTestabilityInTree(Rt,Ct.host,!0):this.findTestabilityInTree(Rt,Ct.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],H=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function re(){return new c.qLn},deps:[]},{provide:Q,useClass:se,multi:!0,deps:[e.K0,c.R0b,c.Lbi]},{provide:Q,useClass:_t,multi:!0,deps:[e.K0]},{provide:ce,useClass:ce,deps:[te,le,c.AFp]},{provide:c.FYo,useExisting:ce},{provide:ee,useExisting:le},{provide:le,useClass:le,deps:[e.K0]},{provide:te,useClass:te,deps:[Q,c.R0b]},{provide:e.JF,useClass:z,deps:[]},[]];let i=(()=>{class Nt{constructor(Ct){}static withServerTransition(Ct){return{ngModule:Nt,providers:[{provide:c.AFp,useValue:Ct.appId},{provide:S,useExisting:c.AFp},_]}}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(Ue,12))},Nt.\u0275mod=c.oAB({type:Nt}),Nt.\u0275inj=c.cJS({providers:[...H,...P],imports:[e.ez,c.hGG]}),Nt})(),n=(()=>{class Nt{constructor(Ct){this._doc=Ct}getTitle(){return this._doc.title}setTitle(Ct){this._doc.title=Ct||""}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:function(Ct){let Ut=null;return Ut=Ct?new Ct:function a(){return new n((0,c.LFG)(e.K0))}(),Ut},providedIn:"root"}),Nt})();typeof window<"u"&&window;let cn=(()=>{class Nt{}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)},Nt.\u0275prov=c.Yz7({token:Nt,factory:function(Ct){let Ut=null;return Ut=Ct?new(Ct||Nt):c.LFG(sn),Ut},providedIn:"root"}),Nt})(),sn=(()=>{class Nt extends cn{constructor(Ct){super(),this._doc=Ct}sanitize(Ct,Ut){if(null==Ut)return null;switch(Ct){case c.q3G.NONE:return Ut;case c.q3G.HTML:return(0,c.qzn)(Ut,"HTML")?(0,c.z3N)(Ut):(0,c.EiD)(this._doc,String(Ut)).toString();case c.q3G.STYLE:return(0,c.qzn)(Ut,"Style")?(0,c.z3N)(Ut):Ut;case c.q3G.SCRIPT:if((0,c.qzn)(Ut,"Script"))return(0,c.z3N)(Ut);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(Ut,"URL")?(0,c.z3N)(Ut):(0,c.mCW)(String(Ut));case c.q3G.RESOURCE_URL:if((0,c.qzn)(Ut,"ResourceURL"))return(0,c.z3N)(Ut);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ct} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ct){return(0,c.JVY)(Ct)}bypassSecurityTrustStyle(Ct){return(0,c.L6k)(Ct)}bypassSecurityTrustScript(Ct){return(0,c.eBb)(Ct)}bypassSecurityTrustUrl(Ct){return(0,c.LAX)(Ct)}bypassSecurityTrustResourceUrl(Ct){return(0,c.pB0)(Ct)}}return Nt.\u0275fac=function(Ct){return new(Ct||Nt)(c.LFG(e.K0))},Nt.\u0275prov=c.Yz7({token:Nt,factory:function(Ct){let Ut=null;return Ut=Ct?new Ct:function Xt(Nt){return new sn(Nt.get(e.K0))}(c.LFG(c.zs3)),Ut},providedIn:"root"}),Nt})()},94364:(Ye,pe,h)=>{"use strict";h.d(pe,{gz:()=>$n,m2:()=>Gn,OD:()=>Ji,GZ:()=>ps,wN:()=>al,F0:()=>Ti,rH:()=>Na,yS:()=>ka,Bz:()=>ni,lC:()=>Xi});var e=h(94650),c=h(69751),A=h(50727),w=h(54482),g=h(25403);function C(){return(0,w.e)((X,ne)=>{let F=null;X._refCount++;const fe=(0,g.x)(ne,void 0,void 0,void 0,()=>{if(!X||X._refCount<=0||0<--X._refCount)return void(F=null);const He=X._connection,dt=F;F=null,He&&(!dt||He===dt)&&He.unsubscribe(),ne.unsubscribe()});X.subscribe(fe),fe.closed||(F=X.connect())})}class T extends c.y{constructor(ne,F){super(),this.source=ne,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,w.A)(ne)&&(this.lift=ne.lift)}_subscribe(ne){return this.getSubject().subscribe(ne)}getSubject(){const ne=this._subject;return(!ne||ne.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:ne}=this;this._subject=this._connection=null,ne?.unsubscribe()}connect(){let ne=this._connection;if(!ne){ne=this._connection=new A.w0;const F=this.getSubject();ne.add(this.source.subscribe((0,g.x)(F,void 0,()=>{this._teardown(),F.complete()},fe=>{this._teardown(),F.error(fe)},()=>this._teardown()))),ne.closed&&(this._connection=null,ne=A.w0.EMPTY)}return ne}refCount(){return C()(this)}}var E=h(32076),S=h(39646),U=h(61135),_=h(86805),V=h(39841),z=h(97272),Q=h(49770),te=h(89635),oe=h(62843),ee=h(60515),le=h(77579),de=h(36895),Te=h(57359);function v(X,ne){return(0,w.e)((0,Te.U)(X,ne,arguments.length>=2,!0))}var L=h(39300);function B(X){return X<=0?()=>ee.E:(0,w.e)((ne,F)=>{let fe=[];ne.subscribe((0,g.x)(F,He=>{fe.push(He),X{for(const He of fe)F.next(He);F.complete()},void 0,()=>{fe=null}))})}var W=h(18068),q=h(46590),ue=h(44671);function ye(X,ne){const F=arguments.length>=2;return fe=>fe.pipe(X?(0,L.h)((He,dt)=>X(He,dt,fe)):ue.y,B(1),F?(0,q.d)(ne):(0,W.T)(()=>new _.K))}var Me=h(54004),we=h(63900),Ge=h(95698),ce=h(68675),Ze=h(86099),he=h(50590),xe=h(24351),j=h(18505),R=h(70262),G=h(22529),se=h(69718),$=h(28746),Ee=h(8189),Oe=h(11481);const ct="primary";class Xe{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const F=this.params[ne];return Array.isArray(F)?F[0]:F}return null}getAll(ne){if(this.has(ne)){const F=this.params[ne];return Array.isArray(F)?F:[F]}return[]}get keys(){return Object.keys(this.params)}}function _t(X){return new Xe(X)}function Je(X,ne,F){const fe=F.path.split("/");if(fe.length>X.length||"full"===F.pathMatch&&(ne.hasChildren()||fe.lengthfe[dt]===He)}return X===ne}function ae(X){return Array.prototype.concat.apply([],X)}function re(X){return X.length>0?X[X.length-1]:null}function Fe(X,ne){for(const F in X)X.hasOwnProperty(F)&&ne(X[F],F)}function be(X){return(0,e.CqO)(X)?X:(0,e.QGY)(X)?(0,E.D)(Promise.resolve(X)):(0,S.of)(X)}const H={exact:function l(X,ne,F){if(!_e(X.segments,ne.segments)||!r(X.segments,ne.segments,F)||X.numberOfChildren!==ne.numberOfChildren)return!1;for(const fe in ne.children)if(!X.children[fe]||!l(X.children[fe],ne.children[fe],F))return!1;return!0},subset:n},i={exact:function f(X,ne){return Y(X,ne)},subset:function a(X,ne){return Object.keys(ne).length<=Object.keys(X).length&&Object.keys(ne).every(F=>Ce(X[F],ne[F]))},ignored:()=>!0};function o(X,ne,F){return H[F.paths](X.root,ne.root,F.matrixParams)&&i[F.queryParams](X.queryParams,ne.queryParams)&&!("exact"===F.fragment&&X.fragment!==ne.fragment)}function n(X,ne,F){return t(X,ne,ne.segments,F)}function t(X,ne,F,fe){if(X.segments.length>F.length){const He=X.segments.slice(0,F.length);return!(!_e(He,F)||ne.hasChildren()||!r(He,F,fe))}if(X.segments.length===F.length){if(!_e(X.segments,F)||!r(X.segments,F,fe))return!1;for(const He in ne.children)if(!X.children[He]||!n(X.children[He],ne.children[He],fe))return!1;return!0}{const He=F.slice(0,X.segments.length),dt=F.slice(X.segments.length);return!!(_e(X.segments,He)&&r(X.segments,He,fe)&&X.children[ct])&&t(X.children[ct],ne,dt,fe)}}function r(X,ne,F){return ne.every((fe,He)=>i[F](X[He].parameters,fe.parameters))}class s{constructor(ne,F,fe){this.root=ne,this.queryParams=F,this.fragment=fe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return Mt.serialize(this)}}class d{constructor(ne,F){this.segments=ne,this.children=F,this.parent=null,Fe(F,(fe,He)=>fe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft(this)}}class p{constructor(ne,F){this.path=ne,this.parameters=F}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return ze(this)}}function _e(X,ne){return X.length===ne.length&&X.every((F,fe)=>F.path===ne[fe].path)}let Vt=(()=>{class X{}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return new on},providedIn:"root"}),X})();class on{parse(ne){const F=new sn(ne);return new s(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(ne){const F=`/${je(ne.root,!0)}`,fe=function at(X){const ne=Object.keys(X).map(F=>{const fe=X[F];return Array.isArray(fe)?fe.map(He=>`${Qe(F)}=${Qe(He)}`).join("&"):`${Qe(F)}=${Qe(fe)}`}).filter(F=>!!F);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${F}${fe}${"string"==typeof ne.fragment?`#${function qe(X){return encodeURI(X)}(ne.fragment)}`:""}`}}const Mt=new on;function ft(X){return X.segments.map(ne=>ze(ne)).join("/")}function je(X,ne){if(!X.hasChildren())return ft(X);if(ne){const F=X.children[ct]?je(X.children[ct],!1):"",fe=[];return Fe(X.children,(He,dt)=>{dt!==ct&&fe.push(`${dt}:${je(He,!1)}`)}),fe.length>0?`${F}(${fe.join("//")})`:F}{const F=function bt(X,ne){let F=[];return Fe(X.children,(fe,He)=>{He===ct&&(F=F.concat(ne(fe,He)))}),Fe(X.children,(fe,He)=>{He!==ct&&(F=F.concat(ne(fe,He)))}),F}(X,(fe,He)=>He===ct?[je(X.children[ct],!1)]:[`${He}:${je(fe,!1)}`]);return 1===Object.keys(X.children).length&&null!=X.children[ct]?`${ft(X)}/${F[0]}`:`${ft(X)}/(${F.join("//")})`}}function Pe(X){return encodeURIComponent(X).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qe(X){return Pe(X).replace(/%3B/gi,";")}function Be(X){return Pe(X).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function me(X){return decodeURIComponent(X)}function ve(X){return me(X.replace(/\+/g,"%20"))}function ze(X){return`${Be(X.path)}${function tt(X){return Object.keys(X).map(ne=>`;${Be(ne)}=${Be(X[ne])}`).join("")}(X.parameters)}`}const Re=/^[^\/()?;=#]+/;function st(X){const ne=X.match(Re);return ne?ne[0]:""}const Pt=/^[^=?&#]+/,cn=/^[^&#]+/;class sn{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new d([],{}):new d([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let fe={};return this.peekStartsWith("(")&&(fe=this.parseParens(!1)),(ne.length>0||Object.keys(F).length>0)&&(fe[ct]=new d(ne,F)),fe}parseSegment(){const ne=st(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ne),new p(me(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const F=st(this.remaining);if(!F)return;this.capture(F);let fe="";if(this.consumeOptional("=")){const He=st(this.remaining);He&&(fe=He,this.capture(fe))}ne[me(F)]=me(fe)}parseQueryParam(ne){const F=function jt(X){const ne=X.match(Pt);return ne?ne[0]:""}(this.remaining);if(!F)return;this.capture(F);let fe="";if(this.consumeOptional("=")){const yt=function Xt(X){const ne=X.match(cn);return ne?ne[0]:""}(this.remaining);yt&&(fe=yt,this.capture(fe))}const He=ve(F),dt=ve(fe);if(ne.hasOwnProperty(He)){let yt=ne[He];Array.isArray(yt)||(yt=[yt],ne[He]=yt),yt.push(dt)}else ne[He]=dt}parseParens(ne){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const fe=st(this.remaining),He=this.remaining[fe.length];if("/"!==He&&")"!==He&&";"!==He)throw new e.vHH(4010,!1);let dt;fe.indexOf(":")>-1?(dt=fe.slice(0,fe.indexOf(":")),this.capture(dt),this.capture(":")):ne&&(dt=ct);const yt=this.parseChildren();F[dt]=1===Object.keys(yt).length?yt[ct]:new d([],yt),this.consumeOptional("//")}return F}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,!1)}}function mn(X){return X.segments.length>0?new d([],{[ct]:X}):X}function Nt(X){const ne={};for(const fe of Object.keys(X.children)){const dt=Nt(X.children[fe]);(dt.segments.length>0||dt.hasChildren())&&(ne[fe]=dt)}return function Rt(X){if(1===X.numberOfChildren&&X.children[ct]){const ne=X.children[ct];return new d(X.segments.concat(ne.segments),ne.children)}return X}(new d(X.segments,ne))}function Ct(X){return X instanceof s}function $t(X,ne,F,fe,He){var dt;if(0===F.length)return vt(ne.root,ne.root,ne.root,fe,He);const yt=function At(X){if("string"==typeof X[0]&&1===X.length&&"/"===X[0])return new $e(!0,0,X);let ne=0,F=!1;const fe=X.reduce((He,dt,yt)=>{if("object"==typeof dt&&null!=dt){if(dt.outlets){const Ht={};return Fe(dt.outlets,(Jt,un)=>{Ht[un]="string"==typeof Jt?Jt.split("/"):Jt}),[...He,{outlets:Ht}]}if(dt.segmentPath)return[...He,dt.segmentPath]}return"string"!=typeof dt?[...He,dt]:0===yt?(dt.split("/").forEach((Ht,Jt)=>{0==Jt&&"."===Ht||(0==Jt&&""===Ht?F=!0:".."===Ht?ne++:""!=Ht&&He.push(Ht))}),He):[...He,dt]},[]);return new $e(F,ne,fe)}(F);if(yt.toRoot())return vt(ne.root,ne.root,new d([],{}),fe,He);const Jt=function Ht(bn){var _n;const xn=function mt(X,ne,F,fe){if(X.isAbsolute)return new Z(ne.root,!0,0);if(-1===fe)return new Z(F,F===ne.root,0);return function St(X,ne,F){let fe=X,He=ne,dt=F;for(;dt>He;){if(dt-=He,fe=fe.parent,!fe)throw new e.vHH(4005,!1);He=fe.segments.length}return new Z(fe,!1,He-dt)}(F,fe+(xt(X.commands[0])?0:1),X.numberOfDoubleDots)}(yt,ne,null===(_n=X.snapshot)||void 0===_n?void 0:_n._urlSegment,bn),ai=xn.processChildren?jn(xn.segmentGroup,xn.index,yt.commands):En(xn.segmentGroup,xn.index,yt.commands);return vt(ne.root,xn.segmentGroup,ai,fe,He)}(null===(dt=X.snapshot)||void 0===dt?void 0:dt._lastPathIndex);return Jt}function xt(X){return"object"==typeof X&&null!=X&&!X.outlets&&!X.segmentPath}function rt(X){return"object"==typeof X&&null!=X&&X.outlets}function vt(X,ne,F,fe,He){let yt,dt={};fe&&Fe(fe,(Jt,un)=>{dt[un]=Array.isArray(Jt)?Jt.map(bn=>`${bn}`):`${Jt}`}),yt=X===ne?F:ot(X,ne,F);const Ht=mn(Nt(yt));return new s(Ht,dt,He)}function ot(X,ne,F){const fe={};return Fe(X.children,(He,dt)=>{fe[dt]=He===ne?F:ot(He,ne,F)}),new d(X.segments,fe)}class $e{constructor(ne,F,fe){if(this.isAbsolute=ne,this.numberOfDoubleDots=F,this.commands=fe,ne&&fe.length>0&&xt(fe[0]))throw new e.vHH(4003,!1);const He=fe.find(rt);if(He&&He!==re(fe))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Z{constructor(ne,F,fe){this.segmentGroup=ne,this.processChildren=F,this.index=fe}}function En(X,ne,F){if(X||(X=new d([],{})),0===X.segments.length&&X.hasChildren())return jn(X,ne,F);const fe=function Ln(X,ne,F){let fe=0,He=ne;const dt={match:!1,pathIndex:0,commandIndex:0};for(;He=F.length)return dt;const yt=X.segments[He],Ht=F[fe];if(rt(Ht))break;const Jt=`${Ht}`,un=fe0&&void 0===Jt)break;if(Jt&&un&&"object"==typeof un&&void 0===un.outlets){if(!Wn(Jt,un,yt))return dt;fe+=2}else{if(!Wn(Jt,{},yt))return dt;fe++}He++}return{match:!0,pathIndex:He,commandIndex:fe}}(X,ne,F),He=F.slice(fe.commandIndex);if(fe.match&&fe.pathIndex{"string"==typeof dt&&(dt=[dt]),null!==dt&&(He[yt]=En(X.children[yt],ne,dt))}),Fe(X.children,(dt,yt)=>{void 0===fe[yt]&&(He[yt]=dt)}),new d(X.segments,He)}}function Kn(X,ne,F){const fe=X.segments.slice(0,ne);let He=0;for(;He{"string"==typeof F&&(F=[F]),null!==F&&(ne[fe]=Kn(new d([],{}),0,F))}),ne}function ci(X){const ne={};return Fe(X,(F,fe)=>ne[fe]=`${F}`),ne}function Wn(X,ne,F){return X==F.path&&Y(ne,F.parameters)}class Hn{constructor(ne,F){this.id=ne,this.url=F}}class Ji extends Hn{constructor(ne,F,fe="imperative",He=null){super(ne,F),this.type=0,this.navigationTrigger=fe,this.restoredState=He}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Gn extends Hn{constructor(ne,F,fe){super(ne,F),this.urlAfterRedirects=fe,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yn extends Hn{constructor(ne,F,fe,He){super(ne,F),this.reason=fe,this.code=He,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Vi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.error=fe,this.target=He,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends Hn{constructor(ne,F,fe,He,dt){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.shouldActivate=dt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gi extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pr extends Hn{constructor(ne,F,fe,He){super(ne,F),this.urlAfterRedirects=fe,this.state=He,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ir{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fr{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rr{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wt{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class an{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nt{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bt{constructor(ne,F,fe){this.routerEvent=ne,this.position=F,this.anchor=fe,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class et{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const F=this.pathFromRoot(ne);return F.length>1?F[F.length-2]:null}children(ne){const F=Ft(ne,this._root);return F?F.children.map(fe=>fe.value):[]}firstChild(ne){const F=Ft(ne,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(ne){const F=Ke(ne,this._root);return F.length<2?[]:F[F.length-2].children.map(He=>He.value).filter(He=>He!==ne)}pathFromRoot(ne){return Ke(ne,this._root).map(F=>F.value)}}function Ft(X,ne){if(X===ne.value)return ne;for(const F of ne.children){const fe=Ft(X,F);if(fe)return fe}return null}function Ke(X,ne){if(X===ne.value)return[ne];for(const F of ne.children){const fe=Ke(X,F);if(fe.length)return fe.unshift(ne),fe}return[]}class Et{constructor(ne,F){this.value=ne,this.children=F}toString(){return`TreeNode(${this.value})`}}function Wt(X){const ne={};return X&&X.children.forEach(F=>ne[F.value.outlet]=F),ne}class hn extends et{constructor(ne,F){super(ne),this.snapshot=F,Si(this,ne)}toString(){return this.snapshot.toString()}}function wn(X,ne){const F=function zn(X,ne){const yt=new mr([],{},{},"",{},ct,ne,null,X.root,-1,{});return new Vr("",new Et(yt,[]))}(X,ne),fe=new U.X([new p("",{})]),He=new U.X({}),dt=new U.X({}),yt=new U.X({}),Ht=new U.X(""),Jt=new $n(fe,He,yt,Ht,dt,ct,ne,F.root);return Jt.snapshot=F.root,new hn(new Et(Jt,[]),F)}class $n{constructor(ne,F,fe,He,dt,yt,Ht,Jt){this.url=ne,this.params=F,this.queryParams=fe,this.fragment=He,this.data=dt,this.outlet=yt,this.component=Ht,this._futureSnapshot=Jt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Me.U)(ne=>_t(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Me.U)(ne=>_t(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ei(X,ne="emptyOnly"){const F=X.pathFromRoot;let fe=0;if("always"!==ne)for(fe=F.length-1;fe>=1;){const He=F[fe],dt=F[fe-1];if(He.routeConfig&&""===He.routeConfig.path)fe--;else{if(dt.component)break;fe--}}return function la(X){return X.reduce((ne,F)=>{var fe;return{params:{...ne.params,...F.params},data:{...ne.data,...F.data},resolve:{...F.data,...ne.resolve,...null===(fe=F.routeConfig)||void 0===fe?void 0:fe.data,...F._resolvedData}}},{params:{},data:{},resolve:{}})}(F.slice(fe))}class mr{constructor(ne,F,fe,He,dt,yt,Ht,Jt,un,bn,_n,xn){this.url=ne,this.params=F,this.queryParams=fe,this.fragment=He,this.data=dt,this.outlet=yt,this.component=Ht,this.routeConfig=Jt,this._urlSegment=un,this._lastPathIndex=bn,this._correctedLastPathIndex=xn??bn,this._resolve=_n}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(fe=>fe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Vr extends et{constructor(ne,F){super(F),this.url=ne,Si(this,F)}toString(){return Tr(this._root)}}function Si(X,ne){ne.value._routerState=X,ne.children.forEach(F=>Si(X,F))}function Tr(X){const ne=X.children.length>0?` { ${X.children.map(Tr).join(", ")} } `:"";return`${X.value}${ne}`}function gr(X){if(X.snapshot){const ne=X.snapshot,F=X._futureSnapshot;X.snapshot=F,Y(ne.queryParams,F.queryParams)||X.queryParams.next(F.queryParams),ne.fragment!==F.fragment&&X.fragment.next(F.fragment),Y(ne.params,F.params)||X.params.next(F.params),function gt(X,ne){if(X.length!==ne.length)return!1;for(let F=0;FY(F.parameters,ne[fe].parameters))}(X.url,ne.url);return F&&!(!X.parent!=!ne.parent)&&(!X.parent||ar(X.parent,ne.parent))}function sr(X,ne,F){if(F&&X.shouldReuseRoute(ne.value,F.value.snapshot)){const fe=F.value;fe._futureSnapshot=ne.value;const He=function _r(X,ne,F){return ne.children.map(fe=>{for(const He of F.children)if(X.shouldReuseRoute(fe.value,He.value.snapshot))return sr(X,fe,He);return sr(X,fe)})}(X,ne,F);return new Et(fe,He)}{if(X.shouldAttach(ne.value)){const dt=X.retrieve(ne.value);if(null!==dt){const yt=dt.route;return yt.value._futureSnapshot=ne.value,yt.children=ne.children.map(Ht=>sr(X,Ht)),yt}}const fe=function Ar(X){return new $n(new U.X(X.url),new U.X(X.params),new U.X(X.queryParams),new U.X(X.fragment),new U.X(X.data),X.outlet,X.component,X)}(ne.value),He=ne.children.map(dt=>sr(X,dt));return new Et(fe,He)}}const lr="ngNavigationCancelingError";function Fr(X,ne){const{redirectTo:F,navigationBehaviorOptions:fe}=Ct(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,He=Yr(!1,0,ne);return He.url=F,He.navigationBehaviorOptions=fe,He}function Yr(X,ne,F){const fe=new Error("NavigationCancelingError: "+(X||""));return fe[lr]=!0,fe.cancellationCode=ne,F&&(fe.url=F),fe}function wi(X){return $i(X)&&Ct(X.url)}function $i(X){return X&&X[lr]}class Ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Ki,this.attachRef=null}}let Ki=(()=>{class X{constructor(){this.contexts=new Map}onChildOutletCreated(F,fe){const He=this.getOrCreateContext(F);He.outlet=fe,this.contexts.set(F,He)}onChildOutletDestroyed(F){const fe=this.getContext(F);fe&&(fe.outlet=null,fe.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let fe=this.getContext(F);return fe||(fe=new Ur,this.contexts.set(F,fe)),fe}getContext(F){return this.contexts.get(F)||null}}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();const Ii=!1;let Xi=(()=>{class X{constructor(F,fe,He,dt,yt){this.parentContexts=F,this.location=fe,this.changeDetector=dt,this.environmentInjector=yt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=He||ct,F.onChildOutletCreated(this.name,this)}ngOnDestroy(){var F;(null===(F=this.parentContexts.getContext(this.name))||void 0===F?void 0:F.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const F=this.parentContexts.getContext(this.name);F&&F.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,Ii);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,Ii);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,Ii);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,fe){this.activated=F,this._activatedRoute=fe,this.location.insert(F.hostView),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,fe){if(this.isActivated)throw new e.vHH(4013,Ii);this._activatedRoute=F;const He=this.location,yt=F._futureSnapshot.component,Ht=this.parentContexts.getOrCreateContext(this.name).children,Jt=new Jn(F,Ht,He.injector);if(fe&&function eo(X){return!!X.resolveComponentFactory}(fe)){const un=fe.resolveComponentFactory(yt);this.activated=He.createComponent(un,He.length,Jt)}else this.activated=He.createComponent(yt,{index:He.length,injector:Jt,environmentInjector:fe??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return X.\u0275fac=function(F){return new(F||X)(e.Y36(Ki),e.Y36(e.s_b),e.$8M("name"),e.Y36(e.sBO),e.Y36(e.lqb))},X.\u0275dir=e.lG2({type:X,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),X})();class Jn{constructor(ne,F,fe){this.route=ne,this.childContexts=F,this.parent=fe}get(ne,F){return ne===$n?this.route:ne===Ki?this.childContexts:this.parent.get(ne,F)}}let Jr=(()=>{class X{}return X.\u0275fac=function(F){return new(F||X)},X.\u0275cmp=e.Xpm({type:X,selectors:[["ng-component"]],decls:1,vars:0,template:function(F,fe){1&F&&e._UZ(0,"router-outlet")},dependencies:[Xi],encapsulation:2}),X})();function yr(X,ne){var F;return X.providers&&!X._injector&&(X._injector=(0,e.MMx)(X.providers,ne,`Route: ${X.path}`)),null!==(F=X._injector)&&void 0!==F?F:ne}function pt(X){const ne=X.children&&X.children.map(pt),F=ne?{...X,children:ne}:{...X};return!F.component&&!F.loadComponent&&(ne||F.loadChildren)&&F.outlet&&F.outlet!==ct&&(F.component=Jr),F}function Lt(X){return X.outlet||ct}function qt(X,ne){const F=X.filter(fe=>Lt(fe)===ne);return F.push(...X.filter(fe=>Lt(fe)!==ne)),F}function Yt(X){var ne;if(!X)return null;if(null!==(ne=X.routeConfig)&&void 0!==ne&&ne._injector)return X.routeConfig._injector;for(let F=X.parent;F;F=F.parent){const fe=F.routeConfig;if(null!=fe&&fe._loadedInjector)return fe._loadedInjector;if(null!=fe&&fe._injector)return fe._injector}return null}class ii{constructor(ne,F,fe,He){this.routeReuseStrategy=ne,this.futureState=F,this.currState=fe,this.forwardEvent=He}activate(ne){const F=this.futureState._root,fe=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,fe,ne),gr(this.futureState.root),this.activateChildRoutes(F,fe,ne)}deactivateChildRoutes(ne,F,fe){const He=Wt(F);ne.children.forEach(dt=>{const yt=dt.value.outlet;this.deactivateRoutes(dt,He[yt],fe),delete He[yt]}),Fe(He,(dt,yt)=>{this.deactivateRouteAndItsChildren(dt,fe)})}deactivateRoutes(ne,F,fe){const He=ne.value,dt=F?F.value:null;if(He===dt)if(He.component){const yt=fe.getContext(He.outlet);yt&&this.deactivateChildRoutes(ne,F,yt.children)}else this.deactivateChildRoutes(ne,F,fe);else dt&&this.deactivateRouteAndItsChildren(F,fe)}deactivateRouteAndItsChildren(ne,F){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,F):this.deactivateRouteAndOutlet(ne,F)}detachAndStoreRouteSubtree(ne,F){const fe=F.getContext(ne.value.outlet),He=fe&&ne.value.component?fe.children:F,dt=Wt(ne);for(const yt of Object.keys(dt))this.deactivateRouteAndItsChildren(dt[yt],He);if(fe&&fe.outlet){const yt=fe.outlet.detach(),Ht=fe.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:yt,route:ne,contexts:Ht})}}deactivateRouteAndOutlet(ne,F){const fe=F.getContext(ne.value.outlet),He=fe&&ne.value.component?fe.children:F,dt=Wt(ne);for(const yt of Object.keys(dt))this.deactivateRouteAndItsChildren(dt[yt],He);fe&&fe.outlet&&(fe.outlet.deactivate(),fe.children.onOutletDeactivated(),fe.attachRef=null,fe.resolver=null,fe.route=null)}activateChildRoutes(ne,F,fe){const He=Wt(F);ne.children.forEach(dt=>{this.activateRoutes(dt,He[dt.value.outlet],fe),this.forwardEvent(new nt(dt.value.snapshot))}),ne.children.length&&this.forwardEvent(new wt(ne.value.snapshot))}activateRoutes(ne,F,fe){const He=ne.value,dt=F?F.value:null;if(gr(He),He===dt)if(He.component){const Ht=fe.getOrCreateContext(He.outlet);this.activateChildRoutes(ne,F,Ht.children)}else this.activateChildRoutes(ne,F,fe);else if(He.component){const Ht=fe.getOrCreateContext(He.outlet);if(this.routeReuseStrategy.shouldAttach(He.snapshot)){const Jt=this.routeReuseStrategy.retrieve(He.snapshot);this.routeReuseStrategy.store(He.snapshot,null),Ht.children.onOutletReAttached(Jt.contexts),Ht.attachRef=Jt.componentRef,Ht.route=Jt.route.value,Ht.outlet&&Ht.outlet.attach(Jt.componentRef,Jt.route.value),gr(Jt.route.value),this.activateChildRoutes(ne,null,Ht.children)}else{var yt;const Jt=Yt(He.snapshot),un=null!==(yt=Jt?.get(e._Vd))&&void 0!==yt?yt:null;Ht.attachRef=null,Ht.route=He,Ht.resolver=un,Ht.injector=Jt,Ht.outlet&&Ht.outlet.activateWith(He,Ht.injector),this.activateChildRoutes(ne,null,Ht.children)}}else this.activateChildRoutes(ne,null,fe)}}class ti{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class ei{constructor(ne,F){this.component=ne,this.route=F}}function kn(X,ne,F){const fe=X._root;return di(fe,ne?ne._root:null,F,[fe.value])}function qn(X,ne,F){return(Yt(ne)??F).get(X)}function di(X,ne,F,fe,He={canDeactivateChecks:[],canActivateChecks:[]}){const dt=Wt(ne);return X.children.forEach(yt=>{(function rn(X,ne,F,fe,He={canDeactivateChecks:[],canActivateChecks:[]}){const dt=X.value,yt=ne?ne.value:null,Ht=F?F.getContext(X.value.outlet):null;if(yt&&dt.routeConfig===yt.routeConfig){const Jt=function On(X,ne,F){if("function"==typeof F)return F(X,ne);switch(F){case"pathParamsChange":return!_e(X.url,ne.url);case"pathParamsOrQueryParamsChange":return!_e(X.url,ne.url)||!Y(X.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ar(X,ne)||!Y(X.queryParams,ne.queryParams);default:return!ar(X,ne)}}(yt,dt,dt.routeConfig.runGuardsAndResolvers);Jt?He.canActivateChecks.push(new ti(fe)):(dt.data=yt.data,dt._resolvedData=yt._resolvedData),di(X,ne,dt.component?Ht?Ht.children:null:F,fe,He),Jt&&Ht&&Ht.outlet&&Ht.outlet.isActivated&&He.canDeactivateChecks.push(new ei(Ht.outlet.component,yt))}else yt&&Ui(ne,Ht,He),He.canActivateChecks.push(new ti(fe)),di(X,null,dt.component?Ht?Ht.children:null:F,fe,He)})(yt,dt[yt.value.outlet],F,fe.concat([yt.value]),He),delete dt[yt.value.outlet]}),Fe(dt,(yt,Ht)=>Ui(yt,F.getContext(Ht),He)),He}function Ui(X,ne,F){const fe=Wt(X),He=X.value;Fe(fe,(dt,yt)=>{Ui(dt,He.component?ne?ne.children.getContext(yt):null:ne,F)}),F.canDeactivateChecks.push(new ei(He.component&&ne&&ne.outlet&&ne.outlet.isActivated?ne.outlet.component:null,He))}function Li(X){return"function"==typeof X}function gn(X){return X instanceof _.K||"EmptyError"===X?.name}const Qn=Symbol("INITIAL_VALUE");function Xn(){return(0,we.w)(X=>(0,V.a)(X.map(ne=>ne.pipe((0,Ge.q)(1),(0,ce.O)(Qn)))).pipe((0,Me.U)(ne=>{for(const F of ne)if(!0!==F){if(F===Qn)return Qn;if(!1===F||F instanceof s)return F}return!0}),(0,L.h)(ne=>ne!==Qn),(0,Ge.q)(1)))}function $r(X){return(0,te.z)((0,j.b)(ne=>{if(Ct(ne))throw Fr(0,ne)}),(0,Me.U)(ne=>!0===ne))}const Gr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ts(X,ne,F,fe,He){const dt=xa(X,ne,F);return dt.matched?function to(X,ne,F,fe){const He=ne.canMatch;if(!He||0===He.length)return(0,S.of)(!0);const dt=He.map(yt=>{const Ht=X.get(yt),Jt=function Ae(X){return X&&Li(X.canMatch)}(Ht)?Ht.canMatch(ne,F):Ht(ne,F);return be(Jt)});return(0,S.of)(dt).pipe(Xn(),$r())}(fe=yr(ne,fe),ne,F).pipe((0,Me.U)(yt=>!0===yt?dt:{...Gr})):(0,S.of)(dt)}function xa(X,ne,F){var fe;if(""===ne.path)return"full"===ne.pathMatch&&(X.hasChildren()||F.length>0)?{...Gr}:{matched:!0,consumedSegments:[],remainingSegments:F,parameters:{},positionalParamSegments:{}};const dt=(ne.matcher||Je)(F,X,ne);if(!dt)return{...Gr};const yt={};Fe(dt.posParams,(Jt,un)=>{yt[un]=Jt.path});const Ht=dt.consumed.length>0?{...yt,...dt.consumed[dt.consumed.length-1].parameters}:yt;return{matched:!0,consumedSegments:dt.consumed,remainingSegments:F.slice(dt.consumed.length),parameters:Ht,positionalParamSegments:null!==(fe=dt.posParams)&&void 0!==fe?fe:{}}}function ua(X,ne,F,fe,He="corrected"){if(F.length>0&&function Xs(X,ne,F){return F.some(fe=>ha(X,ne,fe)&&Lt(fe)!==ct)}(X,F,fe)){const yt=new d(ne,function no(X,ne,F,fe){const He={};He[ct]=fe,fe._sourceSegment=X,fe._segmentIndexShift=ne.length;for(const dt of F)if(""===dt.path&&Lt(dt)!==ct){const yt=new d([],{});yt._sourceSegment=X,yt._segmentIndexShift=ne.length,He[Lt(dt)]=yt}return He}(X,ne,fe,new d(F,X.children)));return yt._sourceSegment=X,yt._segmentIndexShift=ne.length,{segmentGroup:yt,slicedSegments:[]}}if(0===F.length&&function ns(X,ne,F){return F.some(fe=>ha(X,ne,fe))}(X,F,fe)){const yt=new d(X.segments,function Ks(X,ne,F,fe,He,dt){const yt={};for(const Ht of fe)if(ha(X,F,Ht)&&!He[Lt(Ht)]){const Jt=new d([],{});Jt._sourceSegment=X,Jt._segmentIndexShift="legacy"===dt?X.segments.length:ne.length,yt[Lt(Ht)]=Jt}return{...He,...yt}}(X,ne,F,fe,X.children,He));return yt._sourceSegment=X,yt._segmentIndexShift=ne.length,{segmentGroup:yt,slicedSegments:F}}const dt=new d(X.segments,X.children);return dt._sourceSegment=X,dt._segmentIndexShift=ne.length,{segmentGroup:dt,slicedSegments:F}}function ha(X,ne,F){return(!(X.hasChildren()||ne.length>0)||"full"!==F.pathMatch)&&""===F.path}function yo(X,ne,F,fe){return!!(Lt(X)===fe||fe!==ct&&ha(ne,F,X))&&("**"===X.path||xa(ne,X,F).matched)}function io(X,ne,F){return 0===ne.length&&!X.children[F]}const xi=!1;class xr{constructor(ne){this.segmentGroup=ne||null}}class pi{constructor(ne){this.urlTree=ne}}function pa(X){return(0,oe._)(new xr(X))}function is(X){return(0,oe._)(new pi(X))}class as{constructor(ne,F,fe,He,dt){this.injector=ne,this.configLoader=F,this.urlSerializer=fe,this.urlTree=He,this.config=dt,this.allowRedirects=!0}apply(){const ne=ua(this.urlTree.root,[],[],this.config).segmentGroup,F=new d(ne.segments,ne.children);return this.expandSegmentGroup(this.injector,this.config,F,ct).pipe((0,Me.U)(dt=>this.createUrlTree(Nt(dt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,R.K)(dt=>{if(dt instanceof pi)return this.allowRedirects=!1,this.match(dt.urlTree);throw dt instanceof xr?this.noMatchError(dt):dt}))}match(ne){return this.expandSegmentGroup(this.injector,this.config,ne.root,ct).pipe((0,Me.U)(He=>this.createUrlTree(Nt(He),ne.queryParams,ne.fragment))).pipe((0,R.K)(He=>{throw He instanceof xr?this.noMatchError(He):He}))}noMatchError(ne){return new e.vHH(4002,xi)}createUrlTree(ne,F,fe){const He=mn(ne);return new s(He,F,fe)}expandSegmentGroup(ne,F,fe,He){return 0===fe.segments.length&&fe.hasChildren()?this.expandChildren(ne,F,fe).pipe((0,Me.U)(dt=>new d([],dt))):this.expandSegment(ne,fe,F,fe.segments,He,!0)}expandChildren(ne,F,fe){const He=[];for(const dt of Object.keys(fe.children))"primary"===dt?He.unshift(dt):He.push(dt);return(0,E.D)(He).pipe((0,xe.b)(dt=>{const yt=fe.children[dt],Ht=qt(F,dt);return this.expandSegmentGroup(ne,Ht,yt,dt).pipe((0,Me.U)(Jt=>({segment:Jt,outlet:dt})))}),v((dt,yt)=>(dt[yt.outlet]=yt.segment,dt),{}),ye())}expandSegment(ne,F,fe,He,dt,yt){return(0,E.D)(fe).pipe((0,xe.b)(Ht=>this.expandSegmentAgainstRoute(ne,F,fe,Ht,He,dt,yt).pipe((0,R.K)(un=>{if(un instanceof xr)return(0,S.of)(null);throw un}))),(0,he.P)(Ht=>!!Ht),(0,R.K)((Ht,Jt)=>{if(gn(Ht))return io(F,He,dt)?(0,S.of)(new d([],{})):pa(F);throw Ht}))}expandSegmentAgainstRoute(ne,F,fe,He,dt,yt,Ht){return yo(He,F,dt,yt)?void 0===He.redirectTo?this.matchSegmentAgainstRoute(ne,F,He,dt,yt):Ht&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt):pa(F):pa(F)}expandSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt){return"**"===He.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,fe,He,yt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,F,fe,He){const dt=this.applyRedirectCommands([],fe.redirectTo,{});return fe.redirectTo.startsWith("/")?is(dt):this.lineralizeSegments(fe,dt).pipe((0,Ze.z)(yt=>{const Ht=new d(yt,{});return this.expandSegment(ne,Ht,F,yt,He,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,F,fe,He,dt,yt){const{matched:Ht,consumedSegments:Jt,remainingSegments:un,positionalParamSegments:bn}=xa(F,He,dt);if(!Ht)return pa(F);const _n=this.applyRedirectCommands(Jt,He.redirectTo,bn);return He.redirectTo.startsWith("/")?is(_n):this.lineralizeSegments(He,_n).pipe((0,Ze.z)(xn=>this.expandSegment(ne,F,fe,xn.concat(un),yt,!1)))}matchSegmentAgainstRoute(ne,F,fe,He,dt){return"**"===fe.path?(ne=yr(fe,ne),fe.loadChildren?(fe._loadedRoutes?(0,S.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector}):this.configLoader.loadChildren(ne,fe)).pipe((0,Me.U)(Ht=>(fe._loadedRoutes=Ht.routes,fe._loadedInjector=Ht.injector,new d(He,{})))):(0,S.of)(new d(He,{}))):ts(F,fe,He,ne).pipe((0,we.w)(({matched:yt,consumedSegments:Ht,remainingSegments:Jt})=>{var un;return yt?(ne=null!==(un=fe._injector)&&void 0!==un?un:ne,this.getChildConfig(ne,fe,He).pipe((0,Ze.z)(_n=>{var xn;const ai=null!==(xn=_n.injector)&&void 0!==xn?xn:ne,oi=_n.routes,{segmentGroup:bi,slicedSegments:Ni}=ua(F,Ht,Jt,oi),qi=new d(bi.segments,bi.children);if(0===Ni.length&&qi.hasChildren())return this.expandChildren(ai,oi,qi).pipe((0,Me.U)(za=>new d(Ht,za)));if(0===oi.length&&0===Ni.length)return(0,S.of)(new d(Ht,{}));const vi=Lt(fe)===dt;return this.expandSegment(ai,qi,oi,Ni,vi?ct:dt,!0).pipe((0,Me.U)(ur=>new d(Ht.concat(ur.segments),ur.children)))}))):pa(F)}))}getChildConfig(ne,F,fe){return F.children?(0,S.of)({routes:F.children,injector:ne}):F.loadChildren?void 0!==F._loadedRoutes?(0,S.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):function To(X,ne,F,fe){const He=ne.canLoad;if(void 0===He||0===He.length)return(0,S.of)(!0);const dt=He.map(yt=>{const Ht=X.get(yt),Jt=function wr(X){return X&&Li(X.canLoad)}(Ht)?Ht.canLoad(ne,F):Ht(ne,F);return be(Jt)});return(0,S.of)(dt).pipe(Xn(),$r())}(ne,F,fe).pipe((0,Ze.z)(He=>He?this.configLoader.loadChildren(ne,F).pipe((0,j.b)(dt=>{F._loadedRoutes=dt.routes,F._loadedInjector=dt.injector})):function el(X){return(0,oe._)(Yr(xi,3))}())):(0,S.of)({routes:[],injector:ne})}lineralizeSegments(ne,F){let fe=[],He=F.root;for(;;){if(fe=fe.concat(He.segments),0===He.numberOfChildren)return(0,S.of)(fe);if(He.numberOfChildren>1||!He.children[ct])return(0,oe._)(new e.vHH(4e3,xi));He=He.children[ct]}}applyRedirectCommands(ne,F,fe){return this.applyRedirectCreateUrlTree(F,this.urlSerializer.parse(F),ne,fe)}applyRedirectCreateUrlTree(ne,F,fe,He){const dt=this.createSegmentGroup(ne,F.root,fe,He);return new s(dt,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(ne,F){const fe={};return Fe(ne,(He,dt)=>{if("string"==typeof He&&He.startsWith(":")){const Ht=He.substring(1);fe[dt]=F[Ht]}else fe[dt]=He}),fe}createSegmentGroup(ne,F,fe,He){const dt=this.createSegments(ne,F.segments,fe,He);let yt={};return Fe(F.children,(Ht,Jt)=>{yt[Jt]=this.createSegmentGroup(ne,Ht,fe,He)}),new d(dt,yt)}createSegments(ne,F,fe,He){return F.map(dt=>dt.path.startsWith(":")?this.findPosParam(ne,dt,He):this.findOrReturn(dt,fe))}findPosParam(ne,F,fe){const He=fe[F.path.substring(1)];if(!He)throw new e.vHH(4001,xi);return He}findOrReturn(ne,F){let fe=0;for(const He of F){if(He.path===ne.path)return F.splice(fe),He;fe++}return ne}}class Da{}class nl{constructor(ne,F,fe,He,dt,yt,Ht,Jt){this.injector=ne,this.rootComponentType=F,this.config=fe,this.urlTree=He,this.url=dt,this.paramsInheritanceStrategy=yt,this.relativeLinkResolution=Ht,this.urlSerializer=Jt}recognize(){const ne=ua(this.urlTree.root,[],[],this.config.filter(F=>void 0===F.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,ct).pipe((0,Me.U)(F=>{if(null===F)return null;const fe=new mr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ct,this.rootComponentType,null,this.urlTree.root,-1,{}),He=new Et(fe,F),dt=new Vr(this.url,He);return this.inheritParamsAndData(dt._root),dt}))}inheritParamsAndData(ne){const F=ne.value,fe=Ei(F,this.paramsInheritanceStrategy);F.params=Object.freeze(fe.params),F.data=Object.freeze(fe.data),ne.children.forEach(He=>this.inheritParamsAndData(He))}processSegmentGroup(ne,F,fe,He){return 0===fe.segments.length&&fe.hasChildren()?this.processChildren(ne,F,fe):this.processSegment(ne,F,fe,fe.segments,He)}processChildren(ne,F,fe){return(0,E.D)(Object.keys(fe.children)).pipe((0,xe.b)(He=>{const dt=fe.children[He],yt=qt(F,He);return this.processSegmentGroup(ne,yt,dt,He)}),v((He,dt)=>He&&dt?(He.push(...dt),He):null),(0,G.o)(He=>null!==He),(0,q.d)(null),ye(),(0,Me.U)(He=>{if(null===He)return null;const dt=Mo(He);return function Zr(X){X.sort((ne,F)=>ne.value.outlet===ct?-1:F.value.outlet===ct?1:ne.value.outlet.localeCompare(F.value.outlet))}(dt),dt}))}processSegment(ne,F,fe,He,dt){return(0,E.D)(F).pipe((0,xe.b)(yt=>{var Ht;return this.processSegmentAgainstRoute(null!==(Ht=yt._injector)&&void 0!==Ht?Ht:ne,yt,fe,He,dt)}),(0,he.P)(yt=>!!yt),(0,R.K)(yt=>{if(gn(yt))return io(fe,He,dt)?(0,S.of)([]):(0,S.of)(null);throw yt}))}processSegmentAgainstRoute(ne,F,fe,He,dt){if(F.redirectTo||!yo(F,fe,He,dt))return(0,S.of)(null);let yt;if("**"===F.path){var Ht,Jt;const un=He.length>0?re(He).parameters:{},bn=oo(fe)+He.length,_n=new mr(He,un,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xo(F),Lt(F),null!==(Ht=null!==(Jt=F.component)&&void 0!==Jt?Jt:F._loadedComponent)&&void 0!==Ht?Ht:null,F,ji(fe),bn,rl(F),bn);yt=(0,S.of)({snapshot:_n,consumedSegments:[],remainingSegments:[]})}else yt=ts(fe,F,He,ne).pipe((0,Me.U)(({matched:un,consumedSegments:bn,remainingSegments:_n,parameters:xn})=>{var ai,oi;if(!un)return null;const bi=oo(fe)+bn.length;return{snapshot:new mr(bn,xn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,xo(F),Lt(F),null!==(ai=null!==(oi=F.component)&&void 0!==oi?oi:F._loadedComponent)&&void 0!==ai?ai:null,F,ji(fe),bi,rl(F),bi),consumedSegments:bn,remainingSegments:_n}}));return yt.pipe((0,we.w)(un=>{var bn,_n;if(null===un)return(0,S.of)(null);const{snapshot:xn,consumedSegments:ai,remainingSegments:oi}=un;ne=null!==(bn=F._injector)&&void 0!==bn?bn:ne;const bi=null!==(_n=F._loadedInjector)&&void 0!==_n?_n:ne,Ni=function Sa(X){return X.children?X.children:X.loadChildren?X._loadedRoutes:[]}(F),{segmentGroup:qi,slicedSegments:vi}=ua(fe,ai,oi,Ni.filter(ur=>void 0===ur.redirectTo),this.relativeLinkResolution);if(0===vi.length&&qi.hasChildren())return this.processChildren(bi,Ni,qi).pipe((0,Me.U)(ur=>null===ur?null:[new Et(xn,ur)]));if(0===Ni.length&&0===vi.length)return(0,S.of)([new Et(xn,[])]);const Za=Lt(F)===dt;return this.processSegment(bi,Ni,qi,vi,Za?ct:dt).pipe((0,Me.U)(ur=>null===ur?null:[new Et(xn,ur)]))}))}}function il(X){const ne=X.value.routeConfig;return ne&&""===ne.path&&void 0===ne.redirectTo}function Mo(X){const ne=[],F=new Set;for(const fe of X){if(!il(fe)){ne.push(fe);continue}const He=ne.find(dt=>fe.value.routeConfig===dt.value.routeConfig);void 0!==He?(He.children.push(...fe.children),F.add(He)):ne.push(fe)}for(const fe of F){const He=Mo(fe.children);ne.push(new Et(fe.value,He))}return ne.filter(fe=>!F.has(fe))}function ji(X){let ne=X;for(;ne._sourceSegment;)ne=ne._sourceSegment;return ne}function oo(X){var ne;let F=X,fe=null!==(ne=F._segmentIndexShift)&&void 0!==ne?ne:0;for(;F._sourceSegment;){var He;F=F._sourceSegment,fe+=null!==(He=F._segmentIndexShift)&&void 0!==He?He:0}return fe-1}function xo(X){return X.data||{}}function rl(X){return X.resolve||{}}const ma=Symbol("RouteTitle");function Do(X){return"string"==typeof X.title||null===X.title}function Hr(X){return(0,we.w)(ne=>{const F=X(ne);return F?(0,E.D)(F).pipe((0,Me.U)(()=>ne)):(0,S.of)(ne)})}let Gi=(()=>{class X{buildTitle(F){let fe,He=F.root;for(;void 0!==He;){var dt;fe=null!==(dt=this.getResolvedTitleForRoute(He))&&void 0!==dt?dt:fe,He=He.children.find(yt=>yt.outlet===ct)}return fe}getResolvedTitleForRoute(F){return F.data[ma]}}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return(0,e.f3M)(Dr)},providedIn:"root"}),X})(),Dr=(()=>{class X extends Gi{constructor(F){super(),this.title=F}updateTitle(F){const fe=this.buildTitle(F);void 0!==fe&&this.title.setTitle(fe)}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(Oe.Dx))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class al{}class So extends class ls{shouldDetach(ne){return!1}store(ne,F){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,F){return ne.routeConfig===F.routeConfig}}{}const tr=new e.OlP("",{providedIn:"root",factory:()=>({})}),Kr=new e.OlP("ROUTES");let Oa=(()=>{class X{constructor(F,fe){this.injector=F,this.compiler=fe,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,S.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const fe=be(F.loadComponent()).pipe((0,j.b)(dt=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=dt}),(0,$.x)(()=>{this.componentLoaders.delete(F)})),He=new T(fe,()=>new le.x).pipe(C());return this.componentLoaders.set(F,He),He}loadChildren(F,fe){if(this.childrenLoaders.get(fe))return this.childrenLoaders.get(fe);if(fe._loadedRoutes)return(0,S.of)({routes:fe._loadedRoutes,injector:fe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(fe);const dt=this.loadModuleFactoryOrRoutes(fe.loadChildren).pipe((0,Me.U)(Ht=>{this.onLoadEndListener&&this.onLoadEndListener(fe);let Jt,un,bn=!1;Array.isArray(Ht)?un=Ht:(Jt=Ht.create(F).injector,un=ae(Jt.get(Kr,[],e.XFs.Self|e.XFs.Optional)));return{routes:un.map(pt),injector:Jt}}),(0,$.x)(()=>{this.childrenLoaders.delete(fe)})),yt=new T(dt,()=>new le.x).pipe(C());return this.childrenLoaders.set(fe,yt),yt}loadModuleFactoryOrRoutes(F){return be(F()).pipe((0,Ze.z)(fe=>fe instanceof e.YKP||Array.isArray(fe)?(0,S.of)(fe):(0,E.D)(this.compiler.compileModuleAsync(fe))))}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(e.zs3),e.LFG(e.Sil))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();class Ha{}class co{shouldProcessUrl(ne){return!0}extract(ne){return ne}merge(ne,F){return ne}}function sl(X){throw X}function cs(X,ne,F){return ne.parse("/")}const ds={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},us={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function La(){var X,ne;const F=(0,e.f3M)(Vt),fe=(0,e.f3M)(Ki),He=(0,e.f3M)(de.Ye),dt=(0,e.f3M)(e.zs3),yt=(0,e.f3M)(e.Sil),Ht=null!==(X=(0,e.f3M)(Kr,{optional:!0}))&&void 0!==X?X:[],Jt=null!==(ne=(0,e.f3M)(tr,{optional:!0}))&&void 0!==ne?ne:{},un=(0,e.f3M)(Dr),bn=(0,e.f3M)(Gi,{optional:!0}),_n=(0,e.f3M)(Ha,{optional:!0}),xn=(0,e.f3M)(al,{optional:!0}),ai=new Ti(null,F,fe,He,dt,yt,ae(Ht));return _n&&(ai.urlHandlingStrategy=_n),xn&&(ai.routeReuseStrategy=xn),ai.titleStrategy=bn??un,function Io(X,ne){X.errorHandler&&(ne.errorHandler=X.errorHandler),X.malformedUriErrorHandler&&(ne.malformedUriErrorHandler=X.malformedUriErrorHandler),X.onSameUrlNavigation&&(ne.onSameUrlNavigation=X.onSameUrlNavigation),X.paramsInheritanceStrategy&&(ne.paramsInheritanceStrategy=X.paramsInheritanceStrategy),X.relativeLinkResolution&&(ne.relativeLinkResolution=X.relativeLinkResolution),X.urlUpdateStrategy&&(ne.urlUpdateStrategy=X.urlUpdateStrategy),X.canceledNavigationResolution&&(ne.canceledNavigationResolution=X.canceledNavigationResolution)}(Jt,ai),ai}let Ti=(()=>{class X{constructor(F,fe,He,dt,yt,Ht,Jt){this.rootComponentType=F,this.urlSerializer=fe,this.rootContexts=He,this.location=dt,this.config=Jt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new le.x,this.errorHandler=sl,this.malformedUriErrorHandler=cs,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,S.of)(void 0),this.urlHandlingStrategy=new co,this.routeReuseStrategy=new So,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=yt.get(Oa),this.configLoader.onLoadEndListener=xn=>this.triggerEvent(new fr(xn)),this.configLoader.onLoadStartListener=xn=>this.triggerEvent(new ir(xn)),this.ngModule=yt.get(e.h0i),this.console=yt.get(e.c2e);const _n=yt.get(e.R0b);this.isNgZoneEnabled=_n instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(Jt),this.currentUrlTree=function P(){return new s(new d([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wn(this.currentUrlTree,this.rootComponentType),this.transitions=new U.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var F;return null===(F=this.location.getState())||void 0===F?void 0:F.\u0275routerPageId}setupNavigations(F){const fe=this.events;return F.pipe((0,L.h)(He=>0!==He.id),(0,Me.U)(He=>({...He,extractedUrl:this.urlHandlingStrategy.extract(He.rawUrl)})),(0,we.w)(He=>{let dt=!1,yt=!1;return(0,S.of)(He).pipe((0,j.b)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,we.w)(Ht=>{const Jt=this.browserUrlTree.toString(),un=!this.navigated||Ht.extractedUrl.toString()!==Jt||Jt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||un)&&this.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return Po(Ht.source)&&(this.browserUrlTree=Ht.extractedUrl),(0,S.of)(Ht).pipe((0,we.w)(_n=>{const xn=this.transitions.getValue();return fe.next(new Ji(_n.id,this.serializeUrl(_n.extractedUrl),_n.source,_n.restoredState)),xn!==this.transitions.getValue()?ee.E:Promise.resolve(_n)}),function ro(X,ne,F,fe){return(0,we.w)(He=>function tl(X,ne,F,fe,He){return new as(X,ne,F,fe,He).apply()}(X,ne,F,He.extractedUrl,fe).pipe((0,Me.U)(dt=>({...He,urlAfterRedirects:dt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,j.b)(_n=>{this.currentNavigation={...this.currentNavigation,finalUrl:_n.urlAfterRedirects},He.urlAfterRedirects=_n.urlAfterRedirects}),function so(X,ne,F,fe,He,dt){return(0,Ze.z)(yt=>function ao(X,ne,F,fe,He,dt,yt="emptyOnly",Ht="legacy"){return new nl(X,ne,F,fe,He,yt,Ht,dt).recognize().pipe((0,we.w)(Jt=>null===Jt?function wo(X){return new c.y(ne=>ne.error(X))}(new Da):(0,S.of)(Jt)))}(X,ne,F,yt.urlAfterRedirects,fe.serialize(yt.urlAfterRedirects),fe,He,dt).pipe((0,Me.U)(Ht=>({...yt,targetSnapshot:Ht}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,j.b)(_n=>{if(He.targetSnapshot=_n.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!_n.extras.skipLocationChange){const ai=this.urlHandlingStrategy.merge(_n.urlAfterRedirects,_n.rawUrl);this.setBrowserUrl(ai,_n)}this.browserUrlTree=_n.urlAfterRedirects}const xn=new Fi(_n.id,this.serializeUrl(_n.extractedUrl),this.serializeUrl(_n.urlAfterRedirects),_n.targetSnapshot);fe.next(xn)}));if(un&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:xn,extractedUrl:ai,source:oi,restoredState:bi,extras:Ni}=Ht,qi=new Ji(xn,this.serializeUrl(ai),oi,bi);fe.next(qi);const vi=wn(ai,this.rootComponentType).snapshot;return He={...Ht,targetSnapshot:vi,urlAfterRedirects:ai,extras:{...Ni,skipLocationChange:!1,replaceUrl:!1}},(0,S.of)(He)}return this.rawUrlTree=Ht.rawUrl,Ht.resolve(null),ee.E}),(0,j.b)(Ht=>{const Jt=new Hi(Ht.id,this.serializeUrl(Ht.extractedUrl),this.serializeUrl(Ht.urlAfterRedirects),Ht.targetSnapshot);this.triggerEvent(Jt)}),(0,Me.U)(Ht=>He={...Ht,guards:kn(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)}),function Bi(X,ne){return(0,Ze.z)(F=>{const{targetSnapshot:fe,currentSnapshot:He,guards:{canActivateChecks:dt,canDeactivateChecks:yt}}=F;return 0===yt.length&&0===dt.length?(0,S.of)({...F,guardsResult:!0}):function Rr(X,ne,F,fe){return(0,E.D)(X).pipe((0,Ze.z)(He=>function Eo(X,ne,F,fe,He){const dt=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!dt||0===dt.length)return(0,S.of)(!0);const yt=dt.map(Ht=>{const Jt=qn(Ht,ne,He);return be(function De(X){return X&&Li(X.canDeactivate)}(Jt)?Jt.canDeactivate(X,ne,F,fe):Jt(X,ne,F,fe)).pipe((0,he.P)())});return(0,S.of)(yt).pipe(Xn())}(He.component,He.route,F,ne,fe)),(0,he.P)(He=>!0!==He,!0))}(yt,fe,He,X).pipe((0,Ze.z)(Ht=>Ht&&function hi(X){return"boolean"==typeof X}(Ht)?function da(X,ne,F,fe){return(0,E.D)(ne).pipe((0,xe.b)(He=>(0,z.z)(function qs(X,ne){return null!==X&&ne&&ne(new rr(X)),(0,S.of)(!0)}(He.route.parent,fe),function Or(X,ne){return null!==X&&ne&&ne(new an(X)),(0,S.of)(!0)}(He.route,fe),function Qs(X,ne,F){const fe=ne[ne.length-1],dt=ne.slice(0,ne.length-1).reverse().map(yt=>function Ci(X){const ne=X.routeConfig?X.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:X,guards:ne}:null}(yt)).filter(yt=>null!==yt).map(yt=>(0,Q.P)(()=>{const Ht=yt.guards.map(Jt=>{const un=qn(Jt,yt.node,F);return be(function Ve(X){return X&&Li(X.canActivateChild)}(un)?un.canActivateChild(fe,X):un(fe,X)).pipe((0,he.P)())});return(0,S.of)(Ht).pipe(Xn())}));return(0,S.of)(dt).pipe(Xn())}(X,He.path,F),function es(X,ne,F){const fe=ne.routeConfig?ne.routeConfig.canActivate:null;if(!fe||0===fe.length)return(0,S.of)(!0);const He=fe.map(dt=>(0,Q.P)(()=>{const yt=qn(dt,ne,F);return be(function Mr(X){return X&&Li(X.canActivate)}(yt)?yt.canActivate(ne,X):yt(ne,X)).pipe((0,he.P)())}));return(0,S.of)(He).pipe(Xn())}(X,He.route,F))),(0,he.P)(He=>!0!==He,!0))}(fe,dt,X,ne):(0,S.of)(Ht)),(0,Me.U)(Ht=>({...F,guardsResult:Ht})))})}(this.ngModule.injector,Ht=>this.triggerEvent(Ht)),(0,j.b)(Ht=>{if(He.guardsResult=Ht.guardsResult,Ct(Ht.guardsResult))throw Fr(0,Ht.guardsResult);const Jt=new _i(Ht.id,this.serializeUrl(Ht.extractedUrl),this.serializeUrl(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.triggerEvent(Jt)}),(0,L.h)(Ht=>!!Ht.guardsResult||(this.restoreHistory(Ht),this.cancelNavigationTransition(Ht,"",3),!1)),Hr(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,S.of)(Ht).pipe((0,j.b)(Jt=>{const un=new gi(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(un)}),(0,we.w)(Jt=>{let un=!1;return(0,S.of)(Jt).pipe(function os(X,ne){return(0,Ze.z)(F=>{const{targetSnapshot:fe,guards:{canActivateChecks:He}}=F;if(!He.length)return(0,S.of)(F);let dt=0;return(0,E.D)(He).pipe((0,xe.b)(yt=>function lo(X,ne,F,fe){const He=X.routeConfig,dt=X._resolve;return void 0!==He?.title&&!Do(He)&&(dt[ma]=He.title),function Pa(X,ne,F,fe){const He=function ss(X){return[...Object.keys(X),...Object.getOwnPropertySymbols(X)]}(X);if(0===He.length)return(0,S.of)({});const dt={};return(0,E.D)(He).pipe((0,Ze.z)(yt=>function Qr(X,ne,F,fe){const He=qn(X,ne,fe);return be(He.resolve?He.resolve(ne,F):He(ne,F))}(X[yt],ne,F,fe).pipe((0,he.P)(),(0,j.b)(Ht=>{dt[yt]=Ht}))),B(1),(0,se.h)(dt),(0,R.K)(yt=>gn(yt)?ee.E:(0,oe._)(yt)))}(dt,X,ne,fe).pipe((0,Me.U)(yt=>(X._resolvedData=yt,X.data=Ei(X,F).resolve,He&&Do(He)&&(X.data[ma]=He.title),null)))}(yt.route,fe,X,ne)),(0,j.b)(()=>dt++),B(1),(0,Ze.z)(yt=>dt===He.length?(0,S.of)(F):ee.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,j.b)({next:()=>un=!0,complete:()=>{un||(this.restoreHistory(Jt),this.cancelNavigationTransition(Jt,"",2))}}))}),(0,j.b)(Jt=>{const un=new Pr(Jt.id,this.serializeUrl(Jt.extractedUrl),this.serializeUrl(Jt.urlAfterRedirects),Jt.targetSnapshot);this.triggerEvent(un)}))}),Hr(Ht=>{const Jt=un=>{var bn;const _n=[];null!==(bn=un.routeConfig)&&void 0!==bn&&bn.loadComponent&&!un.routeConfig._loadedComponent&&_n.push(this.configLoader.loadComponent(un.routeConfig).pipe((0,j.b)(xn=>{un.component=xn}),(0,Me.U)(()=>{})));for(const xn of un.children)_n.push(...Jt(xn));return _n};return(0,V.a)(Jt(Ht.targetSnapshot.root)).pipe((0,q.d)(),(0,Ge.q)(1))}),Hr(()=>this.afterPreactivation()),(0,Me.U)(Ht=>{const Jt=function or(X,ne,F){const fe=sr(X,ne._root,F?F._root:void 0);return new hn(fe,ne)}(this.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return He={...Ht,targetRouterState:Jt}}),(0,j.b)(Ht=>{this.currentUrlTree=Ht.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ht.urlAfterRedirects,Ht.rawUrl),this.routerState=Ht.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ht.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ht),this.browserUrlTree=Ht.urlAfterRedirects)}),((X,ne,F)=>(0,Me.U)(fe=>(new ii(ne,fe.targetRouterState,fe.currentRouterState,F).activate(X),fe)))(this.rootContexts,this.routeReuseStrategy,Ht=>this.triggerEvent(Ht)),(0,j.b)({next(){dt=!0},complete(){dt=!0}}),(0,$.x)(()=>{var Ht;dt||yt||this.cancelNavigationTransition(He,"",1),(null===(Ht=this.currentNavigation)||void 0===Ht?void 0:Ht.id)===He.id&&(this.currentNavigation=null)}),(0,R.K)(Ht=>{if(yt=!0,$i(Ht)){wi(Ht)||(this.navigated=!0,this.restoreHistory(He,!0));const un=new Yn(He.id,this.serializeUrl(He.extractedUrl),Ht.message,Ht.cancellationCode);if(fe.next(un),wi(Ht)){const bn=this.urlHandlingStrategy.merge(Ht.url,this.rawUrlTree),_n={skipLocationChange:He.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Po(He.source)};this.scheduleNavigation(bn,"imperative",null,_n,{resolve:He.resolve,reject:He.reject,promise:He.promise})}else He.resolve(!1)}else{var Jt;this.restoreHistory(He,!0);const un=new Vi(He.id,this.serializeUrl(He.extractedUrl),Ht,null!==(Jt=He.targetSnapshot)&&void 0!==Jt?Jt:void 0);fe.next(un);try{He.resolve(this.errorHandler(Ht))}catch(bn){He.reject(bn)}}return ee.E}))}))}resetRootComponentType(F){this.rootComponentType=F,this.routerState.root.component=this.rootComponentType}setTransition(F){this.transitions.next({...this.transitions.value,...F})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(F=>{const fe="popstate"===F.type?"popstate":"hashchange";"popstate"===fe&&setTimeout(()=>{var He;const dt={replaceUrl:!0},yt=null!==(He=F.state)&&void 0!==He&&He.navigationId?F.state:null;if(yt){const Jt={...yt};delete Jt.navigationId,delete Jt.\u0275routerPageId,0!==Object.keys(Jt).length&&(dt.state=Jt)}const Ht=this.parseUrl(F.url);this.scheduleNavigation(Ht,fe,yt,dt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(F){this.events.next(F)}resetConfig(F){this.config=F.map(pt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(F,fe={}){const{relativeTo:He,queryParams:dt,fragment:yt,queryParamsHandling:Ht,preserveFragment:Jt}=fe,un=He||this.routerState.root,bn=Jt?this.currentUrlTree.fragment:yt;let _n=null;switch(Ht){case"merge":_n={...this.currentUrlTree.queryParams,...dt};break;case"preserve":_n=this.currentUrlTree.queryParams;break;default:_n=dt||null}return null!==_n&&(_n=this.removeEmptyProps(_n)),$t(un,this.currentUrlTree,F,_n,bn??null)}navigateByUrl(F,fe={skipLocationChange:!1}){const He=Ct(F)?F:this.parseUrl(F),dt=this.urlHandlingStrategy.merge(He,this.rawUrlTree);return this.scheduleNavigation(dt,"imperative",null,fe)}navigate(F,fe={skipLocationChange:!1}){return function Ba(X){for(let ne=0;ne{const dt=F[He];return null!=dt&&(fe[He]=dt),fe},{})}processNavigations(){this.navigations.subscribe(F=>{var fe;this.navigated=!0,this.lastSuccessfulId=F.id,this.currentPageId=F.targetPageId,this.events.next(new Gn(F.id,this.serializeUrl(F.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(fe=this.titleStrategy)||void 0===fe||fe.updateTitle(this.routerState.snapshot),F.resolve(!0)},F=>{this.console.warn(`Unhandled Navigation Error: ${F}`)})}scheduleNavigation(F,fe,He,dt,yt){if(this.disposed)return Promise.resolve(!1);let Ht,Jt,un;yt?(Ht=yt.resolve,Jt=yt.reject,un=yt.promise):un=new Promise((oi,bi)=>{Ht=oi,Jt=bi});const bn=++this.navigationId;let _n;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(He=this.location.getState()),He&&He.\u0275routerPageId)_n=He.\u0275routerPageId;else if(dt.replaceUrl||dt.skipLocationChange){var xn;_n=null!==(xn=this.browserPageId)&&void 0!==xn?xn:0}else{var ai;_n=(null!==(ai=this.browserPageId)&&void 0!==ai?ai:0)+1}else _n=0;return this.setTransition({id:bn,targetPageId:_n,source:fe,restoredState:He,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:F,extras:dt,resolve:Ht,reject:Jt,promise:un,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),un.catch(oi=>Promise.reject(oi))}setBrowserUrl(F,fe){const He=this.urlSerializer.serialize(F),dt={...fe.extras.state,...this.generateNgRouterState(fe.id,fe.targetPageId)};this.location.isCurrentPathEqualTo(He)||fe.extras.replaceUrl?this.location.replaceState(He,"",dt):this.location.go(He,"",dt)}restoreHistory(F,fe=!1){if("computed"===this.canceledNavigationResolution){var He,dt;const yt=this.currentPageId-F.targetPageId;"popstate"!==F.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(He=this.currentNavigation)||void 0===He?void 0:He.finalUrl)||0===yt?this.currentUrlTree===(null===(dt=this.currentNavigation)||void 0===dt?void 0:dt.finalUrl)&&0===yt&&(this.resetState(F),this.browserUrlTree=F.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(yt)}else"replace"===this.canceledNavigationResolution&&(fe&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=F.currentRouterState,this.currentUrlTree=F.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(F,fe,He){const dt=new Yn(F.id,this.serializeUrl(F.extractedUrl),fe,He);this.triggerEvent(dt),F.resolve(!1)}generateNgRouterState(F,fe){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:fe}:{navigationId:F}}}return X.\u0275fac=function(F){e.$Z()},X.\u0275prov=e.Yz7({token:X,factory:function(){return La()},providedIn:"root"}),X})();function Po(X){return"imperative"!==X}let Na=(()=>{class X{constructor(F,fe,He,dt,yt){this.router=F,this.route=fe,this.tabIndexAttribute=He,this.renderer=dt,this.el=yt,this.commands=null,this.onChanges=new le.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(F){if(null!=this.tabIndexAttribute)return;const fe=this.renderer,He=this.el.nativeElement;null!==F?fe.setAttribute(He,"tabindex",F):fe.removeAttribute(He,"tabindex")}ngOnChanges(F){this.onChanges.next(this)}set routerLink(F){null!=F?(this.commands=Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const F={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,F),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return X.\u0275fac=function(F){return new(F||X)(e.Y36(Ti),e.Y36($n),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},X.\u0275dir=e.lG2({type:X,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(F,fe){1&F&&e.NdJ("click",function(){return fe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),X})(),ka=(()=>{class X{constructor(F,fe,He){this.router=F,this.route=fe,this.locationStrategy=He,this.commands=null,this.href=null,this.onChanges=new le.x,this.subscription=F.events.subscribe(dt=>{dt instanceof Gn&&this.updateTargetUrlAndHref()})}set routerLink(F){this.commands=null!=F?Array.isArray(F)?F:[F]:null}ngOnChanges(F){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(F,fe,He,dt,yt){if(0!==F||fe||He||dt||yt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ht={skipLocationChange:(0,e.D6c)(this.skipLocationChange),replaceUrl:(0,e.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ht),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,e.D6c)(this.preserveFragment)})}}return X.\u0275fac=function(F){return new(F||X)(e.Y36(Ti),e.Y36($n),e.Y36(de.S$))},X.\u0275dir=e.lG2({type:X,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(F,fe){1&F&&e.NdJ("click",function(dt){return fe.onClick(dt.button,dt.ctrlKey,dt.shiftKey,dt.altKey,dt.metaKey)}),2&F&&e.uIk("target",fe.target)("href",fe.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),X})();class Ro{}let ps=(()=>{class X{preload(F,fe){return(0,S.of)(null)}}return X.\u0275fac=function(F){return new(F||X)},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})(),Va=(()=>{class X{constructor(F,fe,He,dt,yt){this.router=F,this.injector=He,this.preloadingStrategy=dt,this.loader=yt}setUpPreloading(){this.subscription=this.router.events.pipe((0,L.h)(F=>F instanceof Gn),(0,xe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,fe){const He=[];for(const Jt of fe){var dt,yt;Jt.providers&&!Jt._injector&&(Jt._injector=(0,e.MMx)(Jt.providers,F,`Route: ${Jt.path}`));const un=null!==(dt=Jt._injector)&&void 0!==dt?dt:F,bn=null!==(yt=Jt._loadedInjector)&&void 0!==yt?yt:un;if(Jt.loadChildren&&!Jt._loadedRoutes&&void 0===Jt.canLoad||Jt.loadComponent&&!Jt._loadedComponent)He.push(this.preloadConfig(un,Jt));else if(Jt.children||Jt._loadedRoutes){var Ht;He.push(this.processRoutes(bn,null!==(Ht=Jt.children)&&void 0!==Ht?Ht:Jt._loadedRoutes))}}return(0,E.D)(He).pipe((0,Ee.J)())}preloadConfig(F,fe){return this.preloadingStrategy.preload(fe,()=>{let He;He=fe.loadChildren&&void 0===fe.canLoad?this.loader.loadChildren(F,fe):(0,S.of)(null);const dt=He.pipe((0,Ze.z)(yt=>{var Ht;return null===yt?(0,S.of)(void 0):(fe._loadedRoutes=yt.routes,fe._loadedInjector=yt.injector,this.processRoutes(null!==(Ht=yt.injector)&&void 0!==Ht?Ht:F,yt.routes))}));if(fe.loadComponent&&!fe._loadedComponent){const yt=this.loader.loadComponent(fe);return(0,E.D)([dt,yt]).pipe((0,Ee.J)())}return dt})}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(Ti),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Ro),e.LFG(Oa))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const Fa=new e.OlP("");let _a=(()=>{class X{constructor(F,fe,He={}){this.router=F,this.viewportScroller=fe,this.options=He,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},He.scrollPositionRestoration=He.scrollPositionRestoration||"disabled",He.anchorScrolling=He.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(F=>{F instanceof Ji?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof Gn&&(this.lastId=F.id,this.scheduleScrollEvent(F,this.router.parseUrl(F.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(F=>{F instanceof Bt&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,fe){this.router.triggerEvent(new Bt(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,fe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return X.\u0275fac=function(F){e.$Z()},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();const fs=new e.OlP("ROUTER_FORROOT_GUARD"),ho=new e.OlP(""),Aa=[de.Ye,{provide:Vt,useClass:on},{provide:Ti,useFactory:La},Ki,{provide:$n,useFactory:function Ul(X){return X.routerState.root},deps:[Ti]},Oa];function cl(){return new e.PXZ("Router",Ti)}let ni=(()=>{class X{constructor(F){}static forRoot(F,fe){return{ngModule:X,providers:[Aa,[],dl(F),{provide:fs,useFactory:zl,deps:[[Ti,new e.FiY,new e.tp0]]},{provide:tr,useValue:fe||{}},null!=fe&&fe.useHash?{provide:de.S$,useClass:de.Do}:{provide:de.S$,useClass:de.b0},{provide:Fa,useFactory:()=>{const X=(0,e.f3M)(Ti),ne=(0,e.f3M)(de.EM),F=(0,e.f3M)(tr);return F.scrollOffset&&ne.setOffset(F.scrollOffset),new _a(X,ne,F)}},null!=fe&&fe.preloadingStrategy?pl(fe.preloadingStrategy):[],{provide:e.PXZ,multi:!0,useFactory:cl},null!=fe&&fe.initialNavigation?Ua(fe):[],[{provide:ul,useFactory:Wl},{provide:e.tb,multi:!0,useExisting:ul}]]}}static forChild(F){return{ngModule:X,providers:[dl(F)]}}}return X.\u0275fac=function(F){return new(F||X)(e.LFG(fs,8))},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({}),X})();function zl(X){return"guarded"}function dl(X){return[{provide:Kr,multi:!0,useValue:X}]}function Wl(){const X=(0,e.f3M)(e.zs3);return ne=>{var F,fe;const He=X.get(e.z2F);if(ne!==He.components[0])return;const dt=X.get(Ti),yt=X.get(hl);1===X.get(ja)&&dt.initialNavigation(),null===(F=X.get(ho,null,e.XFs.Optional))||void 0===F||F.setUpPreloading(),null===(fe=X.get(Fa,null,e.XFs.Optional))||void 0===fe||fe.init(),dt.resetRootComponentType(He.componentTypes[0]),yt.next(),yt.complete()}}const ul=new e.OlP("");function Ua(X){return["disabled"===X.initialNavigation?[{provide:e.ip1,multi:!0,useFactory:()=>{const X=(0,e.f3M)(Ti);return()=>{X.setUpLocationChangeListener()}}},{provide:ja,useValue:2}]:[],"enabledBlocking"===X.initialNavigation?[{provide:ja,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:X=>{const ne=X.get(de.V_,Promise.resolve(null));let F=!1;return()=>ne.then(()=>new Promise(He=>{const dt=X.get(Ti),yt=X.get(hl);(function fe(He){X.get(Ti).events.pipe((0,L.h)(yt=>yt instanceof Gn||yt instanceof Yn||yt instanceof Vi),(0,Me.U)(yt=>yt instanceof Gn||yt instanceof Yn&&(0===yt.code||1===yt.code)&&null),(0,L.h)(yt=>null!==yt),(0,Ge.q)(1)).subscribe(()=>{He()})})(()=>{He(!0),F=!0}),dt.afterPreactivation=()=>(He(!0),F||yt.closed?(0,S.of)(void 0):yt),dt.initialNavigation()}))}}]:[]]}const hl=new e.OlP("",{factory:()=>new le.x}),ja=new e.OlP("",{providedIn:"root",factory:()=>1});function pl(X){return[Va,{provide:ho,useExisting:Va},{provide:Ro,useExisting:X}]}},89383:(Ye,pe,h)=>{"use strict";h.d(pe,{X$:()=>ce,Zw:()=>V,aw:()=>Ze,sK:()=>we});var e=h(94650),c=h(39646),A=h(45191),w=h(4128),g=h(97272),C=h(49770),T=h(95698),E=h(34782),S=h(54004),U=h(24351),_=h(63900);class V{}let z=(()=>{class he extends V{getTranslation(j){return(0,c.of)({})}}return he.\u0275fac=function(){let xe;return function(R){return(xe||(xe=e.n5z(he)))(R||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class Q{}let te=(()=>{class he{handle(j){return j.key}}return he.\u0275fac=function(j){return new(j||he)},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();function oe(he,xe){if(he===xe)return!0;if(null===he||null===xe)return!1;if(he!=he&&xe!=xe)return!0;let G,se,$,j=typeof he;if(j==typeof xe&&"object"==j){if(!Array.isArray(he)){if(Array.isArray(xe))return!1;for(se in $=Object.create(null),he){if(!oe(he[se],xe[se]))return!1;$[se]=!0}for(se in xe)if(!(se in $)&&typeof xe[se]<"u")return!1;return!0}if(!Array.isArray(xe))return!1;if((G=he.length)==xe.length){for(se=0;se{le(xe[R])?R in he?j[R]=de(he[R],xe[R]):Object.assign(j,{[R]:xe[R]}):Object.assign(j,{[R]:xe[R]})}),j}class Te{}let v=(()=>{class he extends Te{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(j,R){let G;return G="string"==typeof j?this.interpolateString(j,R):"function"==typeof j?this.interpolateFunction(j,R):j,G}getValue(j,R){let G="string"==typeof R?R.split("."):[R];R="";do{R+=G.shift(),!ee(j)||!ee(j[R])||"object"!=typeof j[R]&&G.length?G.length?R+=".":j=void 0:(j=j[R],R="")}while(G.length);return j}interpolateFunction(j,R){return j(R)}interpolateString(j,R){return R?j.replace(this.templateMatcher,(G,se)=>{let $=this.getValue(R,se);return ee($)?$:G}):j}}return he.\u0275fac=function(){let xe;return function(R){return(xe||(xe=e.n5z(he)))(R||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class L{}let B=(()=>{class he extends L{compile(j,R){return j}compileTranslations(j,R){return j}}return he.\u0275fac=function(){let xe;return function(R){return(xe||(xe=e.n5z(he)))(R||he)}}(),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})();class W{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const q=new e.OlP("USE_STORE"),ue=new e.OlP("USE_DEFAULT_LANG"),ye=new e.OlP("DEFAULT_LANGUAGE"),Me=new e.OlP("USE_EXTEND");let we=(()=>{class he{constructor(j,R,G,se,$,Ee=!0,Oe=!1,ct=!1,Xe){this.store=j,this.currentLoader=R,this.compiler=G,this.parser=se,this.missingTranslationHandler=$,this.useDefaultLang=Ee,this.isolate=Oe,this.extend=ct,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Xe&&this.setDefaultLang(Xe)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(j){this.isolate?this._defaultLang=j:this.store.defaultLang=j}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(j){this.isolate?this._currentLang=j:this.store.currentLang=j}get langs(){return this.isolate?this._langs:this.store.langs}set langs(j){this.isolate?this._langs=j:this.store.langs=j}get translations(){return this.isolate?this._translations:this.store.translations}set translations(j){this.isolate?this._translations=j:this.store.translations=j}setDefaultLang(j){if(j===this.defaultLang)return;let R=this.retrieveTranslations(j);typeof R<"u"?(null==this.defaultLang&&(this.defaultLang=j),R.pipe((0,T.q)(1)).subscribe(G=>{this.changeDefaultLang(j)})):this.changeDefaultLang(j)}getDefaultLang(){return this.defaultLang}use(j){if(j===this.currentLang)return(0,c.of)(this.translations[j]);let R=this.retrieveTranslations(j);return typeof R<"u"?(this.currentLang||(this.currentLang=j),R.pipe((0,T.q)(1)).subscribe(G=>{this.changeLang(j)}),R):(this.changeLang(j),(0,c.of)(this.translations[j]))}retrieveTranslations(j){let R;return(typeof this.translations[j]>"u"||this.extend)&&(this._translationRequests[j]=this._translationRequests[j]||this.getTranslation(j),R=this._translationRequests[j]),R}getTranslation(j){this.pending=!0;const R=this.currentLoader.getTranslation(j).pipe((0,E.d)(1),(0,T.q)(1));return this.loadingTranslations=R.pipe((0,S.U)(G=>this.compiler.compileTranslations(G,j)),(0,E.d)(1),(0,T.q)(1)),this.loadingTranslations.subscribe({next:G=>{this.translations[j]=this.extend&&this.translations[j]?{...G,...this.translations[j]}:G,this.updateLangs(),this.pending=!1},error:G=>{this.pending=!1}}),R}setTranslation(j,R,G=!1){R=this.compiler.compileTranslations(R,j),this.translations[j]=(G||this.extend)&&this.translations[j]?de(this.translations[j],R):R,this.updateLangs(),this.onTranslationChange.emit({lang:j,translations:this.translations[j]})}getLangs(){return this.langs}addLangs(j){j.forEach(R=>{-1===this.langs.indexOf(R)&&this.langs.push(R)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(j,R,G){let se;if(R instanceof Array){let $={},Ee=!1;for(let Oe of R)$[Oe]=this.getParsedResult(j,Oe,G),(0,A.b)($[Oe])&&(Ee=!0);if(Ee){const Oe=R.map(ct=>(0,A.b)($[ct])?$[ct]:(0,c.of)($[ct]));return(0,w.D)(Oe).pipe((0,S.U)(ct=>{let Xe={};return ct.forEach((_t,Je)=>{Xe[R[Je]]=_t}),Xe}))}return $}if(j&&(se=this.parser.interpolate(this.parser.getValue(j,R),G)),typeof se>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(se=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],R),G)),typeof se>"u"){let $={key:R,translateService:this};typeof G<"u"&&($.interpolateParams=G),se=this.missingTranslationHandler.handle($)}return typeof se<"u"?se:R}get(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,U.b)(G=>(G=this.getParsedResult(G,j,R),(0,A.b)(G)?G:(0,c.of)(G))));{let G=this.getParsedResult(this.translations[this.currentLang],j,R);return(0,A.b)(G)?G:(0,c.of)(G)}}getStreamOnTranslationChange(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,C.P)(()=>this.get(j,R)),this.onTranslationChange.pipe((0,_.w)(G=>{const se=this.getParsedResult(G.translations,j,R);return"function"==typeof se.subscribe?se:(0,c.of)(se)})))}stream(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');return(0,g.z)((0,C.P)(()=>this.get(j,R)),this.onLangChange.pipe((0,_.w)(G=>{const se=this.getParsedResult(G.translations,j,R);return(0,A.b)(se)?se:(0,c.of)(se)})))}instant(j,R){if(!ee(j)||!j.length)throw new Error('Parameter "key" required');let G=this.getParsedResult(this.translations[this.currentLang],j,R);if((0,A.b)(G)){if(j instanceof Array){let se={};return j.forEach(($,Ee)=>{se[j[Ee]]=j[Ee]}),se}return j}return G}set(j,R,G=this.currentLang){this.translations[G][j]=this.compiler.compile(R,G),this.updateLangs(),this.onTranslationChange.emit({lang:G,translations:this.translations[G]})}changeLang(j){this.currentLang=j,this.onLangChange.emit({lang:j,translations:this.translations[j]}),null==this.defaultLang&&this.changeDefaultLang(j)}changeDefaultLang(j){this.defaultLang=j,this.onDefaultLangChange.emit({lang:j,translations:this.translations[j]})}reloadLang(j){return this.resetLang(j),this.getTranslation(j)}resetLang(j){this._translationRequests[j]=void 0,this.translations[j]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof j>"u"?void 0:(-1!==j.indexOf("-")&&(j=j.split("-")[0]),-1!==j.indexOf("_")&&(j=j.split("_")[0]),j)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let j=window.navigator.languages?window.navigator.languages[0]:null;return j=j||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,j}}return he.\u0275fac=function(j){return new(j||he)(e.LFG(W),e.LFG(V),e.LFG(L),e.LFG(Te),e.LFG(Q),e.LFG(ue),e.LFG(q),e.LFG(Me),e.LFG(ye))},he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})(),ce=(()=>{class he{constructor(j,R){this.translate=j,this._ref=R,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(j,R,G){let se=$=>{this.value=void 0!==$?$:j,this.lastKey=j,this._ref.markForCheck()};if(G){let $=this.translate.getParsedResult(G,j,R);(0,A.b)($.subscribe)?$.subscribe(se):se($)}this.translate.get(j,R).subscribe(se)}transform(j,...R){if(!j||!j.length)return j;if(oe(j,this.lastKey)&&oe(R,this.lastParams))return this.value;let G;if(ee(R[0])&&R.length)if("string"==typeof R[0]&&R[0].length){let se=R[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{G=JSON.parse(se)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${R[0]}`)}}else"object"==typeof R[0]&&!Array.isArray(R[0])&&(G=R[0]);return this.lastKey=j,this.lastParams=R,this.updateValue(j,G),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(se=>{this.lastKey&&se.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(j,G,se.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(se=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,G,se.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(j,G))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return he.\u0275fac=function(j){return new(j||he)(e.Y36(we,16),e.Y36(e.sBO,16))},he.\u0275pipe=e.Yjl({name:"translate",type:he,pure:!1}),he.\u0275prov=e.Yz7({token:he,factory:he.\u0275fac}),he})(),Ze=(()=>{class he{static forRoot(j={}){return{ngModule:he,providers:[j.loader||{provide:V,useClass:z},j.compiler||{provide:L,useClass:B},j.parser||{provide:Te,useClass:v},j.missingTranslationHandler||{provide:Q,useClass:te},W,{provide:q,useValue:j.isolate},{provide:ue,useValue:j.useDefaultLang},{provide:Me,useValue:j.extend},{provide:ye,useValue:j.defaultLanguage},we]}}static forChild(j={}){return{ngModule:he,providers:[j.loader||{provide:V,useClass:z},j.compiler||{provide:L,useClass:B},j.parser||{provide:Te,useClass:v},j.missingTranslationHandler||{provide:Q,useClass:te},{provide:q,useValue:j.isolate},{provide:ue,useValue:j.useDefaultLang},{provide:Me,useValue:j.extend},{provide:ye,useValue:j.defaultLanguage},we]}}}return he.\u0275fac=function(j){return new(j||he)},he.\u0275mod=e.oAB({type:he}),he.\u0275inj=e.cJS({}),he})()},51214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(15861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(94650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(36895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(77579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(39646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(32076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(54355),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(62843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(39841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(56451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(18505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(78372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(91005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(63900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(54004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(50590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(95698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(86099),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Ye extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Ye.\u0275fac=function(){let pe;return function(e){return(pe||(pe=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Ye)))(e||Ye)}}(),Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Ye{constructor(){this.data=new Map}getItem(h){return this.data.get(h)}removeItem(h){this.data.delete(h)}setItem(h,e){this.data.set(h,e)}}return Ye.\u0275fac=function(h){return new(h||Ye)},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class ReceivedTokens{}class OAuthEvent{constructor(pe){this.type=pe}}class OAuthSuccessEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthInfoEvent extends OAuthEvent{constructor(pe,h=null){super(pe),this.info=h}}class OAuthErrorEvent extends OAuthEvent{constructor(pe,h,e=null){super(pe),this.reason=h,this.params=e}}function b64DecodeUnicode(Ye){const pe=Ye.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(pe).split("").map(function(h){return"%"+("00"+h.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Ye){return btoa(Ye).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(pe){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=h=>{location.href=h},pe&&Object.assign(this,pe)}}class WebHttpUrlEncodingCodec{encodeKey(pe){return encodeURIComponent(pe)}encodeValue(pe){return encodeURIComponent(pe)}decodeKey(pe){return decodeURIComponent(pe)}decodeValue(pe){return decodeURIComponent(pe)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(pe){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let e=h.inferHashAlgorithm(pe.idTokenHeader),c=yield h.calcHash(pe.accessToken,e),w=base64UrlEncode(c.substr(0,c.length/2)),g=pe.idTokenClaims.at_hash.replace(/=/g,"");return w!==g&&(console.error("exptected at_hash: "+w),console.error("actual at_hash: "+g)),w===g})()}inferHashAlgorithm(pe){let h=pe.alg;if(!h.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+h);return"sha-"+h.substr(2)}}let UrlHelperService=(()=>{class Ye{getHashFragmentParams(h){let e=h||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const c=e.indexOf("?");return e=e.substr(c>-1?c+1:1),this.parseQueryString(e)}parseQueryString(h){const e={};let c,A,w,g,C,T,E;if(null===h)return e;c=h.split("&");for(let S=0;S>6,A[g++]=128|63&C):C<55296||C>=57344?(A[g++]=224|C>>12,A[g++]=128|C>>6&63,A[g++]=128|63&C):(C=65536+((1023&C)<<10|1023&Ye.charCodeAt(++e)),A[g++]=240|C>>18,A[g++]=128|C>>12&63,A[g++]=128|C>>6&63,A[g++]=128|63&C);Ye=A}else{if("object"!==c)throw new Error(ERROR);if(null===Ye)throw new Error(ERROR);if(ARRAY_BUFFER&&Ye.constructor===ArrayBuffer)Ye=new Uint8Array(Ye);else if(!(Array.isArray(Ye)||ARRAY_BUFFER&&ArrayBuffer.isView(Ye)))throw new Error(ERROR)}Ye.length>64&&(Ye=new Sha256(pe,!0).update(Ye).array());var T=[],E=[];for(e=0;e<64;++e){var S=Ye[e]||0;T[e]=92^S,E[e]=54^S}Sha256.call(this,pe,h),this.update(E),this.oKeyPad=T,this.inner=!0,this.sharedMemory=h}Sha256.prototype.update=function(Ye){if(!this.finalized){var pe,h=typeof Ye;if("string"!==h){if("object"!==h)throw new Error(ERROR);if(null===Ye)throw new Error(ERROR);if(ARRAY_BUFFER&&Ye.constructor===ArrayBuffer)Ye=new Uint8Array(Ye);else if(!(Array.isArray(Ye)||ARRAY_BUFFER&&ArrayBuffer.isView(Ye)))throw new Error(ERROR);pe=!0}for(var e,A,c=0,w=Ye.length,g=this.blocks;c>2]|=Ye[c]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[A>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=g[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Ye=this.blocks,pe=this.lastByteIndex;Ye[16]=this.block,Ye[pe>>2]|=EXTRA[3&pe],this.block=Ye[16],pe>=56&&(this.hashed||this.hash(),Ye[0]=this.block,Ye[16]=Ye[1]=Ye[2]=Ye[3]=Ye[4]=Ye[5]=Ye[6]=Ye[7]=Ye[8]=Ye[9]=Ye[10]=Ye[11]=Ye[12]=Ye[13]=Ye[14]=Ye[15]=0),Ye[14]=this.hBytes<<3|this.bytes>>>29,Ye[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var T,_,Q,te,oe,ee,Ye=this.h0,pe=this.h1,h=this.h2,e=this.h3,c=this.h4,A=this.h5,w=this.h6,g=this.h7,C=this.blocks;for(T=16;T<64;++T)C[T]=C[T-16]+(((_=C[T-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)+C[T-7]+(((_=C[T-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10)<<0;for(ee=pe&h,T=0;T<64;T+=4)this.first?(this.is224?(Q=300032,g=(_=C[0]-1413257819)-150054599<<0,e=_+24177077<<0):(Q=704751109,g=(_=C[0]-210244248)-1521486534<<0,e=_+143694565<<0),this.first=!1):(g=e+(_=g+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&A^~c&w)+K[T]+C[T])<<0,e=_+(((Ye>>>2|Ye<<30)^(Ye>>>13|Ye<<19)^(Ye>>>22|Ye<<10))+((Q=Ye&pe)^Ye&h^ee))<<0),w=h+(_=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&c^~g&A)+K[T+1]+C[T+1])<<0,h=_+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((te=e&Ye)^e&pe^Q))<<0,A=pe+(_=A+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&c)+K[T+2]+C[T+2])<<0,pe=_+(((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+((oe=h&e)^h&Ye^te))<<0,c=Ye+(_=c+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&w^~A&g)+K[T+3]+C[T+3])<<0,Ye=_+(((pe>>>2|pe<<30)^(pe>>>13|pe<<19)^(pe>>>22|pe<<10))+((ee=pe&h)^pe&e^oe))<<0;this.h0=this.h0+Ye<<0,this.h1=this.h1+pe<<0,this.h2=this.h2+h<<0,this.h3=this.h3+e<<0,this.h4=this.h4+c<<0,this.h5=this.h5+A<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var Ye=this.h0,pe=this.h1,h=this.h2,e=this.h3,c=this.h4,A=this.h5,w=this.h6,g=this.h7,C=HEX_CHARS[Ye>>28&15]+HEX_CHARS[Ye>>24&15]+HEX_CHARS[Ye>>20&15]+HEX_CHARS[Ye>>16&15]+HEX_CHARS[Ye>>12&15]+HEX_CHARS[Ye>>8&15]+HEX_CHARS[Ye>>4&15]+HEX_CHARS[15&Ye]+HEX_CHARS[pe>>28&15]+HEX_CHARS[pe>>24&15]+HEX_CHARS[pe>>20&15]+HEX_CHARS[pe>>16&15]+HEX_CHARS[pe>>12&15]+HEX_CHARS[pe>>8&15]+HEX_CHARS[pe>>4&15]+HEX_CHARS[15&pe]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[c>>28&15]+HEX_CHARS[c>>24&15]+HEX_CHARS[c>>20&15]+HEX_CHARS[c>>16&15]+HEX_CHARS[c>>12&15]+HEX_CHARS[c>>8&15]+HEX_CHARS[c>>4&15]+HEX_CHARS[15&c]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w];return this.is224||(C+=HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]),C},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Ye=this.h0,pe=this.h1,h=this.h2,e=this.h3,c=this.h4,A=this.h5,w=this.h6,g=this.h7,C=[Ye>>24&255,Ye>>16&255,Ye>>8&255,255&Ye,pe>>24&255,pe>>16&255,pe>>8&255,255&pe,h>>24&255,h>>16&255,h>>8&255,255&h,e>>24&255,e>>16&255,e>>8&255,255&e,c>>24&255,c>>16&255,c>>8&255,255&c,A>>24&255,A>>16&255,A>>8&255,255&A,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||C.push(g>>24&255,g>>16&255,g>>8&255,255&g),C},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Ye=new ArrayBuffer(this.is224?28:32),pe=new DataView(Ye);return pe.setUint32(0,this.h0),pe.setUint32(4,this.h1),pe.setUint32(8,this.h2),pe.setUint32(12,this.h3),pe.setUint32(16,this.h4),pe.setUint32(20,this.h5),pe.setUint32(24,this.h6),this.is224||pe.setUint32(28,this.h7),Ye},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Ye=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Ye),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Ye){if("string"!=typeof Ye)throw new TypeError("expected string");var pe,h=Ye,e=new Uint8Array(h.length);for(pe=0;pe{class Ye{calcHash(h,e){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(h)))})()}toHashString2(h){let e="";for(let c of h)e+=String.fromCharCode(c);return e}toHashString(h){const e=new Uint8Array(h);let c="";for(let A of e)c+=String.fromCharCode(A);return c}}return Ye.\u0275fac=function(h){return new(h||Ye)},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})(),OAuthService=(()=>{class Ye extends AuthConfig{constructor(h,e,c,A,w,g,C,T,E,S){super(),this.ngZone=h,this.http=e,this.config=w,this.urlHelper=g,this.logger=C,this.crypto=T,this.dateTimeService=S,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=E,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),A&&(this.tokenValidationHandler=A),w&&this.configure(w);try{c?this.setStorage(c):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(V){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",V)}if(this.checkLocalStorageAccessable()){var U,_;const V=null===(U=window)||void 0===U||null===(_=U.navigator)||void 0===_?void 0:_.userAgent;(V?.includes("MSIE ")||V?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const h="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(h,h),localStorage.removeItem(h),0))}catch{return!1}}configure(h){Object.assign(this,new AuthConfig,h),this.config=Object.assign({},new AuthConfig,h),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"token_received"===h.type)).subscribe(h=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(h={},e,c=!0){let A=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?A=!0:"logout"===w.type&&(A=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{A&&this.refreshInternal(h,c).catch(g=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(h,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(h,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(h=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(h))}loadDiscoveryDocumentAndLogin(h=null){return this.loadDiscoveryDocumentAndTryLogin(h=h||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof h.state?h.state:""),!1))}debug(...h){this.showDebugInformation&&this.logger.debug.apply(this.logger,h)}validateUrlFromDiscoveryDocument(h){const e=[],c=this.validateUrlForHttps(h),A=this.validateUrlAgainstIssuer(h);return c||e.push("https for all urls required. Also for urls received by discovery."),A||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(h){if(!h)return!0;const e=h.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(h,e){if(!h)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(h))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(h){return!this.strictDiscoveryDocumentValidation||!h||h.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"token_received"===h.type)).subscribe(h=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const h=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),c=this.calcTimeout(e,h);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(c)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}setupIdTokenTimer(){const h=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),c=this.calcTimeout(e,h);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(c)).subscribe(A=>{this.ngZone.run(()=>{this.eventsSubject.next(A)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(h,e){const c=this.dateTimeService.now();return Math.max(0,(e-h)*this.timeoutFactor-(c-h))}setStorage(h){this._storage=h,this.configChanged()}loadDiscoveryDocument(h=null){return new Promise((e,c)=>{h||((h=this.issuer||"").endsWith("/")||(h+="/"),h+=".well-known/openid-configuration"),this.validateUrlForHttps(h)?this.http.get(h).subscribe(A=>{if(!this.validateDiscoveryDocument(A))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void c("discovery_document_validation_error");this.loginUrl=A.authorization_endpoint,this.logoutUrl=A.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=A.grant_types_supported,this.issuer=A.issuer,this.tokenEndpoint=A.token_endpoint,this.userinfoEndpoint=A.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=A.jwks_uri,this.sessionCheckIFrameUrl=A.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(A),this.revocationEndpoint=A.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const C=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:A,jwks:w});this.eventsSubject.next(C),e(C)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),c(w)})},A=>{this.logger.error("error loading discovery document",A),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",A)),c(A)}):c("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((h,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(c=>{this.jwks=c,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),h(c)},c=>{this.logger.error("error loading jwks",c),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",c)),e(c)}):h(null)})}validateDiscoveryDocument(h){let e;return this.skipIssuerCheck||h.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(h.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(h.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(h.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!h.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+h.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(h,e,c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(h,e,c).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((h,e)=>{const c=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:c,observe:"response",responseType:"text"}).subscribe(A=>{if(this.debug("userinfo received",JSON.stringify(A)),A.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(A.body);const g=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!g.sub||w.sub!==g.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");w=Object.assign({},g,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),h({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),h(JSON.parse(A.body))},A=>{this.logger.error("error loading user info",A),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",A)),e(A)})})}fetchTokenUsingPasswordFlow(h,e,c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:h,password:e},c)}fetchTokenUsingGrant(h,e,c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let A=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",h).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(A=A.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(A=A.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))A=A.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))A=A.set(w,e[w]);return c=c.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,A,{headers:c}).subscribe(C=>{this.debug("tokenResponse",C),this.storeAccessTokenResponse(C.access_token,C.refresh_token,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C.scope,this.extractRecognizedCustomParameters(C)),this.oidc&&C.id_token&&this.processIdToken(C.id_token,C.access_token).then(T=>{this.storeIdToken(T),w(C)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(C)},C=>{this.logger.error("Error performing ${grantType} flow",C),this.eventsSubject.next(new OAuthErrorEvent("token_error",C)),g(C)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((h,e)=>{let c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(c=c.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(c=c.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))c=c.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,c,{headers:A}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(g=>this.storeIdToken(g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(g=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),h(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=h=>{const e=this.processMessageEventMessage(h);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(c=>this.debug("tryLogin during silent refresh failed",c))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(h={},e=!0){const c=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(h.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const A=this.document.getElementById(this.silentRefreshIFrameName);A&&this.document.body.removeChild(A),this.silentRefreshSubject=c.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,h).then(S=>{w.setAttribute("src",S),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const C=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>S instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),T=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(S=>"token_received"===S.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([C,T,E]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>{if(S instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===S.type||(S=new OAuthErrorEvent("silent_refresh_error",S)),this.eventsSubject.next(S),S;return"token_received"===S.type&&(S=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(S)),S})).toPromise()}initImplicitFlowInPopup(h){return this.initLoginFlowInPopup(h)}initLoginFlowInPopup(h){return h=h||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((c,A)=>{let C,g=null;h.windowRef?h.windowRef&&!h.windowRef.closed&&(g=h.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(h));const T=V=>{this.tryLogin({customHashFragment:V,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{S(),c(!0)},z=>{S(),A(z)})};g?C=window.setInterval(()=>{(!g||g.closed)&&(S(),A(new OAuthErrorEvent("popup_closed",{})))},500):A(new OAuthErrorEvent("popup_blocked",{}));const S=()=>{window.clearInterval(C),window.removeEventListener("storage",_),window.removeEventListener("message",U),null!==g&&g.close(),g=null},U=V=>{const z=this.processMessageEventMessage(V);z&&null!==z?(window.removeEventListener("storage",_),T(z)):console.log("false event firing")},_=V=>{"auth_hash"===V.key&&(window.removeEventListener("message",U),T(V.newValue))};window.addEventListener("message",U),window.addEventListener("storage",_)}))}calculatePopupFeatures(h){const e=h.height||470,c=h.width||500,A=window.screenLeft+(window.outerWidth-c)/2;return`location=no,toolbar=no,width=${c},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${A}`}processMessageEventMessage(h){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!h||!h.data||"string"!=typeof h.data)return;const c=h.data;return c.startsWith(e)?"#"+c.substr(e.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=h=>{const e=h.origin.toLowerCase(),c=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),c.startsWith(e)){switch(h.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",h)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",c,"event",h)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(h=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(h=>{this.debug("token refresh after session change worked")}).catch(h=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"silently_refreshed"===h.type||"silent_refresh_timeout"===h.type||"silent_refresh_error"===h.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(h=>{"silently_refreshed"!==h.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const h=this.document.getElementById(this.sessionCheckIFrameName);h&&this.document.body.removeChild(h);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const h=this.document.getElementById(this.sessionCheckIFrameName);h||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),h.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(h="",e="",c="",A=!1,w={}){var g=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const C=g;let T;T=c||g.redirectUri;const E=yield g.createAndSaveNonce();if(h=h?E+g.config.nonceStateSeparator+encodeURIComponent(h):E,!g.requestAccessToken&&!g.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");g.responseType=g.config.responseType?g.config.responseType:g.oidc&&g.requestAccessToken?"id_token token":g.oidc&&!g.requestAccessToken?"id_token":"token";const S=C.loginUrl.indexOf("?")>-1?"&":"?";let U=C.scope;g.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let _=C.loginUrl+S+"response_type="+encodeURIComponent(C.responseType)+"&client_id="+encodeURIComponent(C.clientId)+"&state="+encodeURIComponent(h)+"&redirect_uri="+encodeURIComponent(T)+"&scope="+encodeURIComponent(U);if(g.responseType.includes("code")&&!g.disablePKCE){const[V,z]=yield g.createChallangeVerifierPairForPKCE();g.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",z):g._storage.setItem("PKCE_verifier",z),_+="&code_challenge="+V,_+="&code_challenge_method=S256"}e&&(_+="&login_hint="+encodeURIComponent(e)),C.resource&&(_+="&resource="+encodeURIComponent(C.resource)),C.oidc&&(_+="&nonce="+encodeURIComponent(E)),A&&(_+="&prompt=none");for(const V of Object.keys(w))_+="&"+encodeURIComponent(V)+"="+encodeURIComponent(w[V]);if(g.customQueryParams)for(const V of Object.getOwnPropertyNames(g.customQueryParams))_+="&"+V+"="+encodeURIComponent(g.customQueryParams[V]);return _})()}initImplicitFlowInternal(h="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let c={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(c=e),this.createLoginUrl(h,A,null,!1,c).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(h="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(h,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(c=>"discovery_document_loaded"===c.type)).subscribe(c=>this.initImplicitFlowInternal(h,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(h){const e=this;if(h.onTokenReceived){const c={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};h.onTokenReceived(c)}}storeAccessTokenResponse(h,e,c,A,w){if(this._storage.setItem("access_token",h),A&&!Array.isArray(A)?this._storage.setItem("granted_scopes",JSON.stringify(A.split(" "))):A&&Array.isArray(A)&&this._storage.setItem("granted_scopes",JSON.stringify(A)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),c){const g=1e3*c,T=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+T)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,C)=>{this._storage.setItem(C,g)})}tryLogin(h=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(h).then(e=>!0):this.tryLoginImplicitFlow(h)}parseQueryString(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):{}}tryLoginCodeFlow(h=null){var e=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const c=(h=h||{}).customHashFragment?h.customHashFragment.substring(1):window.location.search,A=e.getCodePartsFromUrl(c),w=A.code,g=A.state,C=A.session_state;if(!h.preventClearHashAfterLogin){const S=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,S)}let[T,E]=e.parseState(g);if(e.state=E,A.error){e.debug("error trying to login"),e.handleLoginError(h,A);const S=new OAuthErrorEvent("code_error",{},A);return e.eventsSubject.next(S),Promise.reject(S)}if(!h.disableNonceCheck){if(!T)return e.saveRequestedRoute(),Promise.resolve();if(!h.disableOAuth2StateCheck&&!e.validateNonce(T)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return e.eventsSubject.next(U),Promise.reject(U)}return e.storeSessionState(C),w&&(yield e.getTokenFromCode(w,h),e.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const h=this._storage.getItem("requested_route");h&&history.replaceState(null,"",window.location.origin+h)}getCodePartsFromUrl(h){return h&&0!==h.length?("?"===h.charAt(0)&&(h=h.substr(1)),this.urlHelper.parseQueryString(h)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(h,e){let c=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",h).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let A;A=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),A?c=c.set("code_verifier",A):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(c,e)}fetchAndProcessToken(h,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let c=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const A=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+A)}return this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),new Promise((A,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,h,{headers:c}).subscribe(g=>{this.debug("refresh tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token?this.processIdToken(g.id_token,g.access_token,e.disableNonceCheck).then(C=>{this.storeIdToken(C),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(g)}).catch(C=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",C)),console.error("Error validating tokens"),console.error(C),w(C)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),A(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(h=null){let e;e=(h=h||{}).customHashFragment?this.urlHelper.getHashFragmentParams(h.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const c=e.state;let[A,w]=this.parseState(c);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(h,e);const S=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(S),Promise.reject(S)}const g=e.access_token,C=e.id_token,T=e.session_state,E=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!g||this.requestAccessToken&&!h.disableOAuth2StateCheck&&!c||this.oidc&&!C)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!T&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!h.disableNonceCheck&&!this.validateNonce(A)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,E),this.oidc?this.processIdToken(C,g,h.disableNonceCheck).then(S=>h.validationHandler?h.validationHandler({accessToken:g,idClaims:S.idTokenClaims,idToken:S.idToken,state:c}).then(U=>S):S).then(S=>(this.storeIdToken(S),this.storeSessionState(T),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(h),this.inImplicitFlow=!1,!0)).catch(S=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",S)),this.logger.error("Error validating tokens"),this.logger.error(S),Promise.reject(S))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(h),Promise.resolve(!0))}parseState(h){let e=h,c="";if(h){const A=h.indexOf(this.config.nonceStateSeparator);A>-1&&(e=h.substr(0,A),c=h.substr(A+this.config.nonceStateSeparator.length))}return[e,c]}validateNonce(h){let e;return e=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===h||(console.error("Validating access_token failed, wrong state/nonce.",e,h),!1)}storeIdToken(h){this._storage.setItem("id_token",h.idToken),this._storage.setItem("id_token_claims_obj",h.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+h.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(h){this._storage.setItem("session_state",h)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(h,e){h.onLoginError&&h.onLoginError(e),this.clearHashAfterLogin&&!h.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(h=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:h}processIdToken(h,e,c=!1){const A=h.split("."),g=b64DecodeUnicode(this.padBase64(A[0])),C=JSON.parse(g),E=b64DecodeUnicode(this.padBase64(A[1])),S=JSON.parse(E);let U;if(U=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(S.aud)){if(S.aud.every(oe=>oe!==this.clientId)){const oe="Wrong audience: "+S.aud.join(",");return this.logger.warn(oe),Promise.reject(oe)}}else if(S.aud!==this.clientId){const oe="Wrong audience: "+S.aud;return this.logger.warn(oe),Promise.reject(oe)}if(!S.sub){const oe="No sub claim in id_token";return this.logger.warn(oe),Promise.reject(oe)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==S.sub){const oe=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${S.sub}`;return this.logger.warn(oe),Promise.reject(oe)}if(!S.iat){const oe="No iat claim in id_token";return this.logger.warn(oe),Promise.reject(oe)}if(!this.skipIssuerCheck&&S.iss!==this.issuer){const oe="Wrong issuer: "+S.iss;return this.logger.warn(oe),Promise.reject(oe)}if(!c&&S.nonce!==U){const oe="Wrong nonce: "+S.nonce;return this.logger.warn(oe),Promise.reject(oe)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!S.at_hash){const oe="An at_hash is needed!";return this.logger.warn(oe),Promise.reject(oe)}const _=this.dateTimeService.now(),V=1e3*S.iat,z=1e3*S.exp,Q=this.getClockSkewInMsec();if(V-Q>=_||z+Q<=_){const oe="Token has expired";return console.error(oe),console.error({now:_,issuedAtMSec:V,expiresAtMSec:z}),Promise.reject(oe)}const te={accessToken:e,idToken:h,jwks:this.jwks,idTokenClaims:S,idTokenHeader:C,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(te).then(oe=>({idToken:h,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:C,idTokenHeaderJson:g,idTokenExpiresAt:z})):this.checkAtHash(te).then(oe=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!oe){const ee="Wrong at_hash";return this.logger.warn(ee),Promise.reject(ee)}return this.checkSignature(te).then(ee=>{const de={idToken:h,idTokenClaims:S,idTokenClaimsJson:E,idTokenHeader:C,idTokenHeaderJson:g,idTokenExpiresAt:z};return this.disableAtHashCheck?de:this.checkAtHash(te).then(Te=>{if(this.requestAccessToken&&!Te){const v="Wrong at_hash";return this.logger.warn(v),Promise.reject(v)}return de})})})}getIdentityClaims(){const h=this._storage.getItem("id_token_claims_obj");return h?JSON.parse(h):null}getGrantedScopes(){const h=this._storage.getItem("granted_scopes");return h?JSON.parse(h):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(h){for(;h.length%4!=0;)h+="=";return h}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const h=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(h&&parseInt(h,10)=0&&null!==this._storage.getItem(h)?JSON.parse(this._storage.getItem(h)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(h={},e=""){let c=!1;"boolean"==typeof h&&(c=h,h={});const A=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>this._storage.removeItem(g)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||c||!A&&!this.postLogoutRedirectUri)return;let w;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(A)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});A&&(g=g.set("id_token_hint",A));const C=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";C&&(g=g.set("post_logout_redirect_uri",C),e&&(g=g.set("state",e)));for(let T in h)g=g.set(T,h[T]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const h=this;return this.createNonce().then(function(e){return h.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",e):h._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const h=this.document.getElementById(this.silentRefreshIFrameName);h&&h.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(h=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let c=45,A="";const w=typeof self>"u"?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(c);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(C=>e.charCodeAt(C%e.length)),A=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===c.type)).subscribe(c=>this.initCodeFlowInternal(h,e))}initCodeFlowInternal(h="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let c={},A=null;"string"==typeof e?A=e:"object"==typeof e&&(c=e),this.createLoginUrl(h,A,null,!1,c).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){var h=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!h.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const e=yield h.createNonce();return[base64UrlEncode(yield h.crypto.calcHash(e,"sha-256")),e]})()}extractRecognizedCustomParameters(h){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(c=>{h[c]&&e.set(c,JSON.stringify(h[c]))}),e}revokeTokenAndLogout(h={},e=!1){let c=this.revocationEndpoint,A=this.getAccessToken(),w=this.getRefreshToken();if(!A)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),C=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);C=C.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(T,this.customQueryParams[T]);return new Promise((T,E)=>{let S,U;if(A){let _=g.set("token",A).set("token_type_hint","access_token");S=this.http.post(c,_,{headers:C})}else S=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let _=g.set("token",w).set("token_type_hint","refresh_token");U=this.http.post(c,_,{headers:C})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(S=S.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(_=>0===_.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_))),U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(_=>0===_.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([S,U]).subscribe(_=>{this.logOut(h),T(_),this.logger.info("Token successfully revoked")},_=>{this.logger.error("Error revoking token",_),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",_)),E(_)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Ye.\u0275fac=function(h){return new(h||Ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(pe){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(pe)}}let DefaultOAuthInterceptor=(()=>{class Ye{constructor(h,e,c){this.oAuthService=h,this.errorHandler=e,this.moduleConfig=c}checkUrl(h){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(h):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>h.toLowerCase().startsWith(e.toLowerCase()))}intercept(h,e){const c=h.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(c)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(w=>{if(w){const C=h.headers.set("Authorization","Bearer "+w);h=h.clone({headers:C})}return e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(h).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(h)}}return Ye.\u0275fac=function(h){return new(h||Ye)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Ye.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Ye,factory:Ye.\u0275fac}),Ye})();class NullValidationHandler{validateSignature(pe){return Promise.resolve(null)}validateAtHash(pe){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Ye{static forRoot(h=null,e=NullValidationHandler){return{ngModule:Ye,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:h},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Ye.\u0275fac=function(h){return new(h||Ye)},Ye.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Ye}),Ye.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Ye})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},33231:(Ye,pe,h)=>{"use strict";h.d(pe,{Co:()=>ae,nu:()=>Y});var e=h(29521),c=h(94650),A=h(24006),w=h(3238),g=h(59549),C=h(84385),T=h(61135),E=h(39646),S=h(39841),U=h(77579),_=h(63900),V=h(54004),z=h(68675),Q=h(91005),te=h(82722),oe=h(95698),ee=h(39300),le=h(18505),de=h(67376),Te=h(12687),v=h(56709),L=h(51572),B=h(4859),W=h(97392),q=h(36895),ue=h(10266);const ye=["searchSelectInput"],Me=["innerSelectSearch"];function we(re,Se){if(1&re){const Fe=c.EpF();c.TgZ(0,"mat-checkbox",9),c.NdJ("change",function(Ue){c.CHM(Fe);const P=c.oxw();return c.KtG(P._emitSelectAllBooleanToParent(Ue.checked))}),c.qZA()}if(2&re){const Fe=c.oxw();c.Q6J("color",null==Fe.matFormField?null:Fe.matFormField.color)("checked",Fe.toggleAllCheckboxChecked)("indeterminate",Fe.toggleAllCheckboxIndeterminate)("matTooltip",Fe.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Fe.toogleAllCheckboxTooltipPosition)}}function Ge(re,Se){1&re&&c._UZ(0,"mat-spinner",10)}function ce(re,Se){1&re&&c.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ze(re,Se){if(1&re&&(c.TgZ(0,"mat-icon",14),c._uU(1),c.qZA()),2&re){const Fe=c.oxw(2);c.Q6J("svgIcon",Fe.closeSvgIcon),c.xp6(1),c.hij(" ",Fe.closeSvgIcon?null:Fe.closeIcon," ")}}function he(re,Se){if(1&re){const Fe=c.EpF();c.TgZ(0,"button",11),c.NdJ("click",function(){c.CHM(Fe);const Ue=c.oxw();return c.KtG(Ue._reset(!0))}),c.YNc(1,ce,1,0,"ng-content",12),c.YNc(2,Ze,2,2,"ng-template",null,13,c.W1O),c.qZA()}if(2&re){const Fe=c.MAs(3),be=c.oxw();c.xp6(1),c.Q6J("ngIf",be.clearIcon)("ngIfElse",Fe)}}function xe(re,Se){1&re&&c.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function j(re,Se){if(1&re&&c._uU(0),2&re){const Fe=c.oxw(2);c.Oqu(Fe.noEntriesFoundLabel)}}function R(re,Se){if(1&re&&(c.TgZ(0,"div",15),c.YNc(1,xe,1,0,"ng-content",12),c.YNc(2,j,1,1,"ng-template",null,16,c.W1O),c.qZA()),2&re){const Fe=c.MAs(3),be=c.oxw();c.xp6(1),c.Q6J("ngIf",be.noEntriesFound)("ngIfElse",Fe)}}const G=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],se=function(re,Se){return{"mat-select-search-inner-multiple":re,"mat-select-search-inner-toggle-all":Se}},$=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let Ee=(()=>{class re{}return re.\u0275fac=function(Fe){return new(Fe||re)},re.\u0275dir=c.lG2({type:re,selectors:[["","ngxMatSelectSearchClear",""]]}),re})();const Oe=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ct=new c.OlP("mat-selectsearch-default-options");let Je=(()=>{class re{}return re.\u0275fac=function(Fe){return new(Fe||re)},re.\u0275dir=c.lG2({type:re,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),re})(),Y=(()=>{class re{constructor(Fe,be,Ue,P=null,H,i=null,o){this.matSelect=Fe,this.changeDetectorRef=be,this._viewportRuler=Ue,this.matOption=P,this.liveAnnouncer=H,this.matFormField=i,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=f=>{},this._options$=new T.X(null),this.optionsList$=this._options$.pipe((0,_.w)(f=>f?f.changes.pipe((0,V.U)(l=>l.toArray()),(0,z.O)(f.toArray())):(0,E.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,V.U)(f=>f?f.length:0)),this._formControl=new A.NI(""),this._showNoEntriesFound$=(0,S.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,V.U)(([f,l])=>this.noEntriesFoundLabel&&f&&l===this.getOptionsLengthOffset())),this._onDestroy=new U.x,this.applyDefaultOptions(o)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Fe){this._options$.next(Fe)}get _options(){return this._options$.getValue()}applyDefaultOptions(Fe){if(Fe)for(const be of Oe)Fe.hasOwnProperty(be)&&(this[be]=Fe[be])}ngOnInit(){const Fe="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Fe):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Fe]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Fe]=!0):this.matSelect.panelClass=Fe,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,Q.g)(1),(0,te.R)(this._onDestroy)).subscribe(be=>{be?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,oe.q)(1)).pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,te.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let be=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,te.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ue=this._options.toArray(),P=Ue[this.getOptionsLengthOffset()],H=this.matSelect._keyManager;H&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(be,P)||!H.activeItem||!Ue.find(o=>this.matSelect.compareWith(o,H.activeItem)))&&H.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),be=P})})}),this._showNoEntriesFound$.pipe((0,te.R)(this._onDestroy)).subscribe(be=>{this.matOption&&(be?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,te.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,te.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Fe){this.toggleAll.emit(Fe)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Fe){(Fe.key&&1===Fe.key.length||Fe.keyCode>=e.A&&Fe.keyCode<=e.Z||Fe.keyCode>=e.xE&&Fe.keyCode<=e.aO||Fe.keyCode===e.L_||this.preventHomeEndKeyPropagation&&(Fe.keyCode===e.Sd||Fe.keyCode===e.uR))&&Fe.stopPropagation(),this.matSelect.multiple&&Fe.key&&Fe.keyCode===e.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Fe.keyCode===e.hY&&this.value&&(this._reset(!0),Fe.stopPropagation())}_handleKeyup(Fe){if(Fe.keyCode===e.LH||Fe.keyCode===e.JH){const be=this.matSelect._getAriaActiveDescendant(),Ue=this._options.toArray().findIndex(P=>P.id===be);if(-1!==Ue){const P=this._options.toArray()[Ue];this.liveAnnouncer.announce(P.viewValue+" "+this.getAriaIndex(Ue)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Fe){return 0===this.getOptionsLengthOffset()?Fe+1:Fe}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Fe){this._lastExternalInputValue=Fe,this._formControl.setValue(Fe),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Fe){this._formControl.valueChanges.pipe((0,ee.h)(be=>be!==this._lastExternalInputValue),(0,le.b)(()=>this._lastExternalInputValue=void 0),(0,te.R)(this._onDestroy)).subscribe(Fe)}registerOnTouched(Fe){this.onTouched=Fe}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Fe=this.matSelect.panel.nativeElement,be=Fe.scrollTop;this.searchSelectInput.nativeElement.focus(),Fe.scrollTop=be}_reset(Fe){this._formControl.setValue(""),Fe&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,te.R)(this._onDestroy)).subscribe(Fe=>{let be=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Fe||!Array.isArray(Fe))&&(Fe=[]);const Ue=this.matSelect.options.map(P=>P.value);this.previousSelectedValues.forEach(P=>{!Fe.some(H=>this.matSelect.compareWith(H,P))&&!Ue.some(H=>this.matSelect.compareWith(H,P))&&(Fe.push(P),be=!0)})}this.previousSelectedValues=Fe,be&&this.matSelect._onChange(Fe)})):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 Fe=this.getMatOptionHeight(),be=this.matSelect._keyManager.activeItemIndex||0,Ue=(0,w.CB)(be,this.matSelect.options,this.matSelect.optionGroups),P=(this.matOption?-1:0)+Ue+be,H=this.matSelect.panel.nativeElement.scrollTop,i=this.innerSelectSearch.nativeElement.offsetHeight,o=Math.floor((256-i)/Fe),f=Math.round((H+i)/Fe)-1;f>=P?this.matSelect.panel.nativeElement.scrollTop=P*Fe:f+o<=P&&(this.matSelect.panel.nativeElement.scrollTop=(P+1)*Fe-(256-i))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let be,Fe=this.innerSelectSearch.nativeElement;for(;Fe=Fe.parentElement;)if(Fe.classList.contains("mat-select-panel")){be=Fe;break}be&&(this.innerSelectSearch.nativeElement.style.width=be.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return re.\u0275fac=function(Fe){return new(Fe||re)(c.Y36(C.gD),c.Y36(c.sBO),c.Y36(de.rL),c.Y36(w.ey,8),c.Y36(Te.Kd),c.Y36(g.KE,8),c.Y36(ct,8))},re.\u0275cmp=c.Xpm({type:re,selectors:[["ngx-mat-select-search"]],contentQueries:function(Fe,be,Ue){if(1&Fe&&(c.Suo(Ue,Ee,5),c.Suo(Ue,Je,5)),2&Fe){let P;c.iGM(P=c.CRH())&&(be.clearIcon=P.first),c.iGM(P=c.CRH())&&(be.noEntriesFound=P.first)}},viewQuery:function(Fe,be){if(1&Fe&&(c.Gf(ye,7,c.SBq),c.Gf(Me,7,c.SBq)),2&Fe){let Ue;c.iGM(Ue=c.CRH())&&(be.searchSelectInput=Ue.first),c.iGM(Ue=c.CRH())&&(be.innerSelectSearch=Ue.first)}},hostVars:2,hostBindings:function(Fe,be){2&Fe&&c.ekj("mat-select-search-inside-mat-option",be.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:A.JU,useExisting:(0,c.Gpc)(()=>re),multi:!0}])],ngContentSelectors:$,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(Fe,be){1&Fe&&(c.F$t(G),c._UZ(0,"input",0),c.TgZ(1,"div",1,2),c.YNc(3,we,1,5,"mat-checkbox",3),c.TgZ(4,"input",4,5),c.NdJ("keydown",function(P){return be._handleKeydown(P)})("keyup",function(P){return be._handleKeyup(P)})("blur",function(){return be.onBlur()}),c.qZA(),c.YNc(6,Ge,1,0,"mat-spinner",6),c.YNc(7,he,4,2,"button",7),c.Hsn(8),c.qZA(),c.YNc(9,R,4,2,"div",8),c.ALo(10,"async")),2&Fe&&(c.xp6(1),c.Q6J("ngClass",c.WLB(11,se,be.matSelect.multiple,be._isToggleAllCheckboxVisible())),c.xp6(2),c.Q6J("ngIf",be._isToggleAllCheckboxVisible()),c.xp6(1),c.Q6J("type",be.type)("formControl",be._formControl)("placeholder",be.placeholderLabel),c.uIk("aria-label",be.ariaLabel),c.xp6(2),c.Q6J("ngIf",be.searching),c.xp6(1),c.Q6J("ngIf",!be.hideClearSearchButton&&be.value&&!be.searching),c.xp6(2),c.Q6J("ngIf",c.lcZ(10,9,be._showNoEntriesFound$)))},dependencies:[v.oG,L.Ou,B.lW,W.Hw,q.mk,q.O5,ue.gM,A.Fj,A.JJ,A.oH,q.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}),re})(),ae=(()=>{class re{}return re.\u0275fac=function(Fe){return new(Fe||re)},re.\u0275mod=c.oAB({type:re}),re.\u0275inj=c.cJS({imports:[[q.ez,A.UX,B.ot,v.p9,W.Ps,L.Cq,ue.AV]]}),re})()},15861:(Ye,pe,h)=>{"use strict";function e(A,w,g,C,T,E,S){try{var U=A[E](S),_=U.value}catch(V){return void g(V)}U.done?w(_):Promise.resolve(_).then(C,T)}function c(A){return function(){var w=this,g=arguments;return new Promise(function(C,T){var E=A.apply(w,g);function S(_){e(E,C,T,S,U,"next",_)}function U(_){e(E,C,T,S,U,"throw",_)}S(void 0)})}}h.d(pe,{Z:()=>c})},4147:Ye=>{"use strict";Ye.exports={i8:"9.3.0"}}},Ye=>{Ye(Ye.s=33246)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime.74e0a38ecb52bb70.js b/dist/apps/admin-gui/runtime.fd43b919f88b3efa.js similarity index 92% rename from dist/apps/admin-gui/runtime.74e0a38ecb52bb70.js rename to dist/apps/admin-gui/runtime.fd43b919f88b3efa.js index d8c08c8c6..2d077cfc3 100644 --- a/dist/apps/admin-gui/runtime.74e0a38ecb52bb70.js +++ b/dist/apps/admin-gui/runtime.fd43b919f88b3efa.js @@ -1 +1 @@ -(()=>{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{243:"a5a89586dfc2013d",323:"ca22f168f9fcfe71",374:"b56e397decc61373",493:"2871d9551d589868",641:"2e882839e7971673",858:"026d85900616e3ea",876:"d331d1c61750dfc7",958:"2e2ea41b4cee884f",969:"4d1ca096cb0d6969"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{243:"3cb96387b1cb7424",323:"b4f3219efd392317",374:"44bee678b6d534bf",493:"2871d9551d589868",641:"2e882839e7971673",858:"0b6dd1686d5eb534",876:"892d40f55533ada3",958:"bcbf776bc83cdfbb",969:"fc54f7aaea7c7fb1"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c - + @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/consolidator/main.3aeaf31f77c3a774.js b/dist/apps/consolidator/main.44a67ed10c198d31.js similarity index 99% rename from dist/apps/consolidator/main.3aeaf31f77c3a774.js rename to dist/apps/consolidator/main.44a67ed10c198d31.js index 57f9b7f38..dade3e094 100644 --- a/dist/apps/consolidator/main.3aeaf31f77c3a774.js +++ b/dist/apps/consolidator/main.44a67ed10c198d31.js @@ -1 +1 @@ -(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{8587:(F,z,x)=>{"use strict";var T=x(6895),h=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(o){W=W||document.createElement("a"),W.setAttribute("href",o);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new h.OlP("TRANSITION_ID"),U=[{provide:h.ip1,useFactory:function $(o,r,e){return()=>{e.get(h.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let l=0;l{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const J=new h.OlP("EventManagerPlugins");let ie=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),ge=(()=>{class o extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function Ve(o){(0,T.q)().remove(o)}const Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class o{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case h.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ie),h.LFG(ge),h.LFG(h.AFp))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(h.JOm.DashCase|h.JOm.Important)?r.style.setProperty(e,t,a&h.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&h.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(o){return"_ngcontent-%COMP%".replace(we,o)}(a+"-"+t.id),this.hostAttr=function Te(o){return"_nghost-%COMP%".replace(we,o)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class o extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Rn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},oi={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Tr=(()=>{class o extends de{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,a){const l=o.parseEventName(t),c=o.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=o._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const s=t.indexOf(i);s>-1&&(t.splice(s,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function ql(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&pn.hasOwnProperty(r)&&(r=pn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Rn.forEach(l=>{l!=a&&(0,oi[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{o.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Qe=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:T.bD},{provide:h.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ga(){return(0,h.RDi)(document),document},deps:[]}]),ui=new h.OlP(""),ma=[{provide:h.rWj,useClass:class te{addToWindow(r){h.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},h.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(t=>{const a=h.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],Si=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function kn(){return new h.qLn},deps:[]},{provide:J,useClass:Ei,multi:!0,deps:[T.K0,h.R0b,h.Lbi]},{provide:J,useClass:Tr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,h.AFp]},{provide:h.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,h.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let _a=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:h.AFp,useValue:e.appId},{provide:G,useExisting:h.AFp},U]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ui,12))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[...Si,...ma],imports:[T.ez,h.hGG]}),o})(),Y=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,h.LFG)(T.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let si=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):h.LFG(rt),t},providedIn:"root"}),o})(),rt=(()=>{class o extends si{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case h.q3G.NONE:return t;case h.q3G.HTML:return(0,h.qzn)(t,"HTML")?(0,h.z3N)(t):(0,h.EiD)(this._doc,String(t)).toString();case h.q3G.STYLE:return(0,h.qzn)(t,"Style")?(0,h.z3N)(t):t;case h.q3G.SCRIPT:if((0,h.qzn)(t,"Script"))return(0,h.z3N)(t);throw new Error("unsafe value used in a script context");case h.q3G.URL:return(0,h.qzn)(t,"URL")?(0,h.z3N)(t):(0,h.mCW)(String(t));case h.q3G.RESOURCE_URL:if((0,h.qzn)(t,"ResourceURL"))return(0,h.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,h.JVY)(e)}bypassSecurityTrustStyle(e){return(0,h.L6k)(e)}bypassSecurityTrustScript(e){return(0,h.eBb)(e)}bypassSecurityTrustUrl(e){return(0,h.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,h.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ie(o){return new rt(o.get(T.K0))}(h.LFG(h.zs3)),t},providedIn:"root"}),o})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new h.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let at=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:N,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Rt=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"memberId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yl=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addApplicationMailForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addApplicationMailForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}approveApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkForSimilarRichIdentities(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}consolidateIdentityUsingToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}copyFormFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}createApplicationFormInGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createApplicationFormInVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplicationMailForGroup(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteApplicationMailForVo(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationDataById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationsForGroup(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getApplicationsForVo(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getConsolidatorToken(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForGroupWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForVoWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}rejectApplication(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendInvitation(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let s=new y.LE({encoder:this.encoder});null!=a&&(s=this.addToHttpParams(s,a,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"name")),null!=e&&(s=this.addToHttpParams(s,e,"email")),null!=t&&(s=this.addToHttpParams(s,t,"language"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,a,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=a&&(d=this.addToHttpParams(d,a,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let N="json";return b&&(N=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,a,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=a&&(i=this.addToHttpParams(i,a,"groupId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendMessage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setSendingEnabled(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}submitApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateApplicationMail(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}verifyApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Pr=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==a)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName")),null!=a&&(s=this.addToHttpParams(s,a,"extLogin")),l&&l.forEach(N=>{s=this.addToHttpParams(s,N,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=a&&(i=this.addToHttpParams(i,a,"force"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:N,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),gn=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jl=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:Oe,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(o,12),h.LFG(y.eN,8))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();var dt=(()=>{return(o=dt||(dt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",dt;var o})();let rf=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const s=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,s),u=this.resolveAuthorization(n,s);a.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Ln.Xf)(o()).subscribe(r)})}var Kl=x(9635),_n=x(2843),ei=x(515),Nt=x(727),an=x(4482),zi=x(5403);function Ms(){return(0,an.e)((o,r)=>{let e=null;o._refCount++;const t=(0,zi.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const a=o._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class af extends Vi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,an.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,zi.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Ms()(this)}}var ze=x(4004),Bi=x(3900),Gt=x(5698),Aa=x(3269);function Vt(...o){const r=(0,Aa.yG)(o);return(0,an.e)((e,t)=>{(r?(0,kr.z)(o,e,r):(0,kr.z)(o,e)).subscribe(t)})}var vi=x(5577),on=x(590),Ui=x(4351),Ct=x(8505),M=x(262);function k(o,r,e,t,a){return(l,c)=>{let n=e,i=r,s=0;l.subscribe((0,zi.x)(c,d=>{const u=s++;i=n?o(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(o,r){return(0,an.e)(k(o,r,arguments.length>=2,!0))}function B(o){return o<=0?()=>ei.E:(0,an.e)((r,e)=>{let t=[];r.subscribe((0,zi.x)(e,a=>{t.push(a),o{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ue(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,Xt.h)((a,l)=>o(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new Ss.K))}var Bt=x(9718);function Mt(o){return(0,an.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qt(o){return new Ft(o)}function be(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return o===r}function qt(o){return Array.prototype.concat.apply([],o)}function xa(o){return o.length>0?o[o.length-1]:null}function Ot(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function bn(o){return(0,h.CqO)(o)?o:(0,h.QGY)(o)?(0,wi.D)(Promise.resolve(o)):(0,De.of)(o)}const kC={exact:function jn(o,r,e){if(!sr(o.segments,r.segments)||!Zl(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!jn(o.children[t],r.children[t],e))return!1;return!0},subset:Ea},VC={exact:function Oi(o,r){return Pi(o,r)},subset:function sf(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>Fn(o[e],r[e]))},ignored:()=>!0};function Hs(o,r,e){return kC[e.paths](o.root,r.root,e.matrixParams)&&VC[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Ea(o,r,e){return Nn(o,r,r.segments,e)}function Nn(o,r,e,t){if(o.segments.length>e.length){const a=o.segments.slice(0,e.length);return!(!sr(a,e)||r.hasChildren()||!Zl(a,e,t))}if(o.segments.length===e.length){if(!sr(o.segments,e)||!Zl(o.segments,e,t))return!1;for(const a in r.children)if(!o.children[a]||!Ea(o.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,o.segments.length),l=e.slice(o.segments.length);return!!(sr(o.segments,a)&&Zl(o.segments,a,t)&&o.children[qe])&&Nn(o.children[qe],r,l,t)}}function Zl(o,r,e){return r.every((t,a)=>VC[e](o[a].parameters,t.parameters))}class Br{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return cf.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vo(this)}}class Ps{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function sr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let Xl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(){return new Yd},providedIn:"root"}),o})();class Yd{parse(r){const e=new ic(r);return new Br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Ao(r.root,!0)}`,t=function Jt(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(a=>`${Rs(e)}=${Rs(a)}`).join("&"):`${Rs(e)}=${Rs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function df(o){return encodeURI(o)}(r.fragment)}`:""}`}}const cf=new Yd;function vo(o){return o.segments.map(r=>Ri(r)).join("/")}function Ao(o,r){if(!o.hasChildren())return vo(o);if(r){const e=o.children[qe]?Ao(o.children[qe],!1):"",t=[];return Ot(o.children,(a,l)=>{l!==qe&&t.push(`${l}:${Ao(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function lf(o,r){let e=[];return Ot(o.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(o.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(o,(t,a)=>a===qe?[Ao(o.children[qe],!1)]:[`${a}:${Ao(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[qe]?`${vo(o)}/${e[0]}`:`${vo(o)}/(${e.join("//")})`}}function Qd(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rs(o){return Qd(o).replace(/%3B/gi,";")}function Is(o){return Qd(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ec(o){return decodeURIComponent(o)}function uf(o){return ec(o.replace(/\+/g,"%20"))}function Ri(o){return`${Is(o.path)}${function Or(o){return Object.keys(o).map(r=>`;${Is(r)}=${Is(o[r])}`).join("")}(o.parameters)}`}const hf=/^[^\/()?;=#]+/;function tc(o){const r=o.match(hf);return r?r[0]:""}const pf=/^[^=?&#]+/,OC=/^[^&#]+/;class ic{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=tc(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(r),new Ps(ec(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=tc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=tc(this.remaining);a&&(t=a,this.capture(t))}r[ec(e)]=ec(t)}parseQueryParam(r){const e=function BC(o){const r=o.match(pf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function LC(o){const r=o.match(OC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=uf(e),l=uf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=tc(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new h.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new h.vHH(4011,!1)}}function xo(o){return o.segments.length>0?new gt([],{[qe]:o}):o}function Sa(o){const r={};for(const t of Object.keys(o.children)){const l=Sa(o.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Jd(o){if(1===o.numberOfChildren&&o.children[qe]){const r=o.children[qe];return new gt(o.segments.concat(r.segments),r.children)}return o}(new gt(o.segments,r))}function Lr(o){return o instanceof Br}function jC(o,r,e,t,a){if(0===e.length)return To(r.root,r.root,r.root,t,a);const l=function zC(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new NC(!0,0,o);let r=0,e=!1;const t=o.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,s)=>{n[s]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new NC(e,r,t)}(e);return l.toRoot()?To(r.root,r.root,new gt([],{}),t,a):function c(i){const s=function mf(o,r,e,t){if(o.isAbsolute)return new cr(r.root,!0,0);if(-1===t)return new cr(e,e===r.root,0);return function Vs(o,r,e){let t=o,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new h.vHH(4005,!1);a=t.segments.length}return new cr(t,!1,a-l)}(e,t+(lr(o.commands[0])?0:1),o.numberOfDoubleDots)}(l,r,o.snapshot?._urlSegment,i),d=s.processChildren?zn(s.segmentGroup,s.index,l.commands):nc(s.segmentGroup,s.index,l.commands);return To(r.root,s.segmentGroup,d,t,a)}(o.snapshot?._lastPathIndex)}function lr(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Da(o){return"object"==typeof o&&null!=o&&o.outlets}function To(o,r,e,t,a){let c,l={};t&&Ot(t,(i,s)=>{l[s]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=o===r?e:ff(o,r,e);const n=xo(Sa(c));return new Br(n,l,a)}function ff(o,r,e){const t={};return Ot(o.children,(a,l)=>{t[l]=a===r?e:ff(a,r,e)}),new gt(o.segments,t)}class NC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&lr(t[0]))throw new h.vHH(4003,!1);const a=t.find(Da);if(a&&a!==xa(t))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function nc(o,r,e){if(o||(o=new gt([],{})),0===o.segments.length&&o.hasChildren())return zn(o,r,e);const t=function UC(o,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=o.segments[a],n=e[t];if(Da(n))break;const i=`${n}`,s=t0&&void 0===i)break;if(i&&s&&"object"==typeof s&&void 0===s.outlets){if(!GC(i,s,c))return l;t+=2}else{if(!GC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(o,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=nc(o.children[c],r,l))}),Ot(o.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(o.segments,a)}}function Fr(o,r,e){const t=o.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Fr(new gt([],{}),0,e))}),r}function Bs(o){const r={};return Ot(o,(e,t)=>r[t]=`${e}`),r}function GC(o,r,e){return o==e.path&&Pi(r,e.parameters)}class Un{constructor(r,e){this.id=r,this.url=e}}class rc extends Un{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jr extends Un{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ki extends Un{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bf extends Un{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Os extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xd extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eu extends Un{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ac extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oc extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Cf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ls{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Af{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=sc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=sc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=lc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return lc(r,this._root).map(e=>e.value)}}function sc(o,r){if(o===r.value)return r;for(const e of r.children){const t=sc(o,e);if(t)return t}return null}function lc(o,r){if(o===r.value)return[r];for(const e of r.children){const t=lc(o,e);if(t.length)return t.unshift(r),t}return[]}class Gi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function Eo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class tu extends Af{constructor(r,e){super(r),this.snapshot=e,uc(this,r)}toString(){return this.snapshot.toString()}}function cc(o,r){const e=function $C(o,r){const c=new dr([],{},{},"",{},qe,r,null,o.root,-1,{});return new Ha("",new Gi(c,[]))}(o,r),t=new Yt([new Ps("",{})]),a=new Yt({}),l=new Yt({}),c=new Yt({}),n=new Yt(""),i=new Gn(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new tu(new Gi(i,[]),e)}class Gn{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(r=>Qt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Qt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dc(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function So(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dr{constructor(r,e,t,a,l,c,n,i,s,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=s,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Qt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ha extends Af{constructor(r,e){super(e),this.url=r,uc(this,e)}toString(){return hc(this._root)}}function uc(o,r){r.value._routerState=o,r.children.forEach(e=>uc(o,e))}function hc(o){const r=o.children.length>0?` { ${o.children.map(hc).join(", ")} } `:"";return`${o.value}${r}`}function Nr(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Pi(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),Pi(r.params,e.params)||o.params.next(e.params),function ut(o,r){if(o.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||xf(o.parent,r.parent))}function At(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function U0(o,r,e){return r.children.map(t=>{for(const a of e.children)if(o.shouldReuseRoute(t.value,a.value.snapshot))return At(o,t,a);return At(o,t)})}(o,r,e);return new Gi(t,a)}{if(o.shouldAttach(r.value)){const l=o.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(o,n)),c}}const t=function G0(o){return new Gn(new Yt(o.url),new Yt(o.params),new Yt(o.queryParams),new Yt(o.fragment),new Yt(o.data),o.outlet,o.component,o)}(r.value),a=r.children.map(l=>At(o,l));return new Gi(t,a)}}const Tf="ngNavigationCancelingError";function QC(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=Lr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=JC(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function JC(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[Tf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function KC(o){return ZC(o)&&Lr(o.url)}function ZC(o){return o&&o[Tf]}class js{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new pc,this.attachRef=null}}let pc=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new js,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iu=!1;let Kt=(()=>{class o{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,iu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,iu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,iu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new h.vHH(4013,iu);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new nu(e,n,a.injector);if(t&&function Ns(o){return!!o.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(c);this.activated=a.createComponent(s,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(pc),h.Y36(h.s_b),h.$8M("name"),h.Y36(h.sBO),h.Y36(h.lqb))},o.\u0275dir=h.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class nu{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Gn?this.route:r===pc?this.childContexts:this.parent.get(r,e)}}let XC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&h._UZ(0,"router-outlet")},dependencies:[Kt],encapsulation:2}),o})();function Ef(o,r){return o.providers&&!o._injector&&(o._injector=(0,h.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Mf(o){const r=o.children&&o.children.map(Mf),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=XC),e}function Cn(o){return o.outlet||qe}function au(o,r){const e=o.filter(t=>Cn(t)===r);return e.push(...o.filter(t=>Cn(t)!==r)),e}function qi(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Mo{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=Eo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Eo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Eo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=Eo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new WC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new wf(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(Nr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=qi(a.snapshot),i=n?.get(h._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class ny{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class zs{constructor(r,e){this.component=r,this.route=e}}function ry(o,r,e){const t=o._root;return Us(t,r?r._root:null,e,[t.value])}function fc(o,r,e){return(qi(r)??e).get(o)}function Us(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=Eo(r);return o.children.forEach(c=>{(function oy(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=o.value,c=r?r.value:null,n=e?e.getContext(o.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function sy(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!sr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!sr(o.url,r.url)||!Pi(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xf(o,r)||!Pi(o.queryParams,r.queryParams);default:return!xf(o,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new ny(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Us(o,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new zs(n.outlet.component,c))}else c&&Ra(r,n,a),a.canActivateChecks.push(new ny(t)),Us(o,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Ra(c,e.getContext(n),a)),a}function Ra(o,r,e){const t=Eo(o),a=o.value;Ot(t,(l,c)=>{Ra(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new zs(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Ur(o){return"function"==typeof o}function Ia(o){return o instanceof Ss.K||"EmptyError"===o?.name}const ur=Symbol("INITIAL_VALUE");function Do(){return(0,Bi.w)(o=>(0,Ir.a)(o.map(r=>r.pipe((0,Gt.q)(1),Vt(ur)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===ur)return ur;if(!1===e||e instanceof Br)return e}return!0}),(0,Xt.h)(r=>r!==ur),(0,Gt.q)(1)))}function Ho(o){return(0,Kl.z)((0,Ct.b)(r=>{if(Lr(r))throw QC(0,r)}),(0,ze.U)(r=>!0===r))}const ka={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function If(o,r,e,t,a){const l=mc(o,r,e);return l.matched?function Rf(o,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function cy(o){return o&&Ur(o.canMatch)}(n)?n.canMatch(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(Do(),Ho())}(t=Ef(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...ka})):(0,De.of)(l)}function mc(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...ka}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||be)(e,o,r);if(!a)return{...ka};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function Gr(o,r,e,t,a="corrected"){if(e.length>0&&function py(o,r,e){return e.some(t=>hr(o,r,t)&&Cn(t)!==qe)}(o,e,t)){const c=new gt(r,function kf(o,r,e,t){const a={};a[qe]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Cn(l)!==qe){const c=new gt([],{});c._sourceSegment=o,c._segmentIndexShift=r.length,a[Cn(l)]=c}return a}(o,r,t,new gt(e,o.children)));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function fy(o,r,e){return e.some(t=>hr(o,r,t))}(o,e,t)){const c=new gt(o.segments,function _c(o,r,e,t,a,l){const c={};for(const n of t)if(hr(o,e,n)&&!a[Cn(n)]){const i=new gt([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===l?o.segments.length:r.length,c[Cn(n)]=i}return{...a,...c}}(o,r,e,t,o.children,a));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(o.segments,o.children);return l._sourceSegment=o,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hr(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Po(o,r,e,t){return!!(Cn(o)===t||t!==qe&&hr(r,e,o))&&("**"===o.path||mc(r,o,e).matched)}function Vf(o,r,e){return 0===r.length&&!o.children[e]}const du=!1;class Ws{constructor(r){this.segmentGroup=r||null}}class Bf{constructor(r){this.urlTree=r}}function bc(o){return(0,_n._)(new Ws(o))}function Of(o){return(0,_n._)(new Bf(o))}class Lf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=Gr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(Sa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Bf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ws?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(Sa(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Ws?this.noMatchError(a):a}))}noMatchError(r){return new h.vHH(4002,du)}createUrlTree(r,e,t){const a=xo(r);return new Br(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,wi.D)(a).pipe((0,Ui.b)(l=>{const c=t.children[l],n=au(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ue())}expandSegment(r,e,t,a,l,c){return(0,wi.D)(t).pipe((0,Ui.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(s=>{if(s instanceof Ws)return(0,De.of)(null);throw s}))),(0,on.P)(n=>!!n),(0,M.K)((n,i)=>{if(Ia(n))return Vf(e,a,l)?(0,De.of)(new gt([],{})):bc(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Po(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):bc(e):bc(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Of(l):this.lineralizeSegments(t,l).pipe((0,vi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:s,positionalParamSegments:d}=mc(e,a,l);if(!n)return bc(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?Of(u):this.lineralizeSegments(a,u).pipe((0,vi.z)(f=>this.expandSegment(r,e,t,f.concat(s),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Ef(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):If(e,t,a,r).pipe((0,Bi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,vi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:H}=Gr(e,n,i,f),N=new gt(b.segments,b.children);if(0===H.length&&N.hasChildren())return this.expandChildren(u,f,N).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===H.length)return(0,De.of)(new gt(n,{}));const ae=Cn(t)===l;return this.expandSegment(u,N,f,H,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):bc(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function cu(o,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function Gs(o){return o&&Ur(o.canLoad)}(n)?n.canLoad(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(Do(),Ho())}(r,e,t).pipe((0,vi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function my(o){return(0,_n._)(JC(du,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,_n._)(new h.vHH(4e3,du));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new Br(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new h.vHH(4001,du);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class $0{}class uu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Gr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Gi(t,e),l=new Ha(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=dc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,wi.D)(Object.keys(t.children)).pipe((0,Ui.b)(a=>{const l=t.children[a],c=au(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(o,r=!1){return(0,an.e)((e,t)=>{let a=0;e.subscribe((0,zi.x)(t,l=>{const c=o(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ue(),(0,ze.U)(a=>{if(null===a)return null;const l=wc(a);return function by(o){o.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,wi.D)(e).pipe((0,Ui.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,on.P)(c=>!!c),(0,M.K)(c=>{if(Ia(c))return Vf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Po(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?xa(a).parameters:{},i=zf(t)+a.length,s=new dr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ys(e),Cn(e),e.component??e._loadedComponent??null,e,Nf(t),i,vc(e),i);c=(0,De.of)({snapshot:s,consumedSegments:[],remainingSegments:[]})}else c=If(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:s,parameters:d})=>{if(!n)return null;const u=zf(t)+i.length;return{snapshot:new dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ys(e),Cn(e),e.component??e._loadedComponent??null,e,Nf(t),u,vc(e),u),consumedSegments:i,remainingSegments:s}}));return c.pipe((0,Bi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:s,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function jf(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Gr(t,s,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]));if(0===f.length&&0===H.length)return(0,De.of)([new Gi(i,[])]);const N=Cn(e)===l;return this.processSegment(u,f,b,H,N?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]))}))}}function yc(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function wc(o){const r=[],e=new Set;for(const t of o){if(!yc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=wc(t.children);r.push(new Gi(t.value,a))}return r.filter(t=>!e.has(t))}function Nf(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function zf(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ys(o){return o.data||{}}function vc(o){return o.resolve||{}}const Ac=Symbol("RouteTitle");function qf(o){return"string"==typeof o.title||null===o.title}function hu(o){return(0,Bi.w)(r=>{const e=o(r);return e?(0,wi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let qn=(()=>{class o{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[Ac]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(){return(0,h.f3M)(Ba)},providedIn:"root"}),o})(),Ba=(()=>{class o extends qn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Y))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Ay{}class Ty extends class xy{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const pu=new h.OlP("",{providedIn:"root",factory:()=>({})}),xc=new h.OlP("ROUTES");let fu=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=bn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new af(t,()=>new He.x).pipe(Ms());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,s,d=!1;Array.isArray(n)?s=n:(i=n.create(e).injector,s=qt(i.get(xc,[],h.XFs.Self|h.XFs.Optional)));return{routes:s.map(Mf),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new af(l,()=>new He.x).pipe(Ms());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return bn(e()).pipe((0,vi.z)(t=>t instanceof h.YKP||Array.isArray(t)?(0,De.of)(t):(0,wi.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.zs3),h.LFG(h.Sil))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Sy{}class My{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Q0(o){throw o}function Dy(o,r,e){return r.parse("/")}const Qs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$f={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Io(){const o=(0,h.f3M)(Xl),r=(0,h.f3M)(pc),e=(0,h.f3M)(T.Ye),t=(0,h.f3M)(h.zs3),a=(0,h.f3M)(h.Sil),l=(0,h.f3M)(xc,{optional:!0})??[],c=(0,h.f3M)(pu,{optional:!0})??{},n=(0,h.f3M)(Ba),i=(0,h.f3M)(qn,{optional:!0}),s=(0,h.f3M)(Sy,{optional:!0}),d=(0,h.f3M)(Ay,{optional:!0}),u=new ti(null,o,r,e,t,a,qt(l));return s&&(u.urlHandlingStrategy=s),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function Wn(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(c,u),u}let ti=(()=>{class o{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Q0,this.malformedUriErrorHandler=Dy,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new My,this.routeReuseStrategy=new Ty,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new Cf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new qC(f)),this.ngModule=c.get(h.h0i),this.console=c.get(h.c2e);const u=c.get(h.R0b);this.isNgZoneEnabled=u instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function z0(){return new Br(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cc(this.currentUrlTree,this.rootComponentType),this.transitions=new Yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Xt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Bi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Bi.w)(n=>{const i=this.browserUrlTree.toString(),s=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return gu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Bi.w)(u=>{const f=this.transitions.getValue();return t.next(new rc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?ei.E:Promise.resolve(u)}),function _y(o,r,e,t){return(0,Bi.w)(a=>function Cc(o,r,e,t,a){return new Lf(o,r,e,t,a).apply()}(o,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function Uf(o,r,e,t,a,l){return(0,vi.z)(c=>function Y0(o,r,e,t,a,l,c="emptyOnly",n="legacy"){return new uu(o,r,e,t,a,c,n,l).recognize().pipe((0,Bi.w)(i=>null===i?function Ff(o){return new Vi.y(r=>r.error(o))}(new $0):(0,De.of)(i)))}(o,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new Os(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:N,extras:ae}=n,ke=new rc(f,this.serializeUrl(b),H,N);t.next(ke);const lt=cc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),ei.E}),(0,Ct.b)(n=>{const i=new Xd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ry(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function li(o,r){return(0,vi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Hf(o,r,e,t){return(0,wi.D)(o).pipe((0,vi.z)(a=>function hy(o,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=fc(n,r,a);return bn(function ly(o){return o&&Ur(o.canDeactivate)}(i)?i.canDeactivate(o,r,e,t):i(o,r,e,t)).pipe((0,on.P)())});return(0,De.of)(c).pipe(Do())}(a.component,a.route,e,r,t)),(0,on.P)(a=>!0!==a,!0))}(c,t,a,o).pipe((0,vi.z)(n=>n&&function q0(o){return"boolean"==typeof o}(n)?function Pf(o,r,e,t){return(0,wi.D)(r).pipe((0,Ui.b)(a=>(0,kr.z)(function qs(o,r){return null!==o&&r&&r(new yf(o)),(0,De.of)(!0)}(a.route.parent,t),function lu(o,r){return null!==o&&r&&r(new vf(o)),(0,De.of)(!0)}(a.route,t),function uy(o,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function ay(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Vr(()=>{const n=c.guards.map(i=>{const s=fc(i,c.node,e);return bn(function gc(o){return o&&Ur(o.canActivateChild)}(s)?s.canActivateChild(t,o):s(t,o)).pipe((0,on.P)())});return(0,De.of)(n).pipe(Do())}));return(0,De.of)(l).pipe(Do())}(o,a.path,e),function dy(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Vr(()=>{const c=fc(l,r,e);return bn(function su(o){return o&&Ur(o.canActivate)}(c)?c.canActivate(r,o):c(r,o)).pipe((0,on.P)())}));return(0,De.of)(a).pipe(Do())}(o,a.route,e))),(0,on.P)(a=>!0!==a,!0))}(t,l,o,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Lr(n.guardsResult))throw QC(0,n.guardsResult);const i=new eu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Xt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),hu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const s=new ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}),(0,Bi.w)(i=>{let s=!1;return(0,De.of)(i).pipe(function Gf(o,r){return(0,vi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,wi.D)(a).pipe((0,Ui.b)(c=>function Va(o,r,e,t){const a=o.routeConfig,l=o._resolve;return void 0!==a?.title&&!qf(a)&&(l[Ac]=a.title),function yy(o,r,e,t){const a=function wy(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===a.length)return(0,De.of)({});const l={};return(0,wi.D)(a).pipe((0,vi.z)(c=>function vy(o,r,e,t){const a=fc(o,r,t);return bn(a.resolve?a.resolve(r,e):a(r,e))}(o[c],r,e,t).pipe((0,on.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Ia(c)?ei.E:(0,_n._)(c)))}(l,o,r,t).pipe((0,ze.U)(c=>(o._resolvedData=c,o.data=dc(o,e).resolve,a&&qf(a)&&(o.data[Ac]=a.title),null)))}(c.route,t,o,r)),(0,Ct.b)(()=>l++),B(1),(0,vi.z)(c=>l===a.length?(0,De.of)(e):ei.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const s=new oc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}))}),hu(n=>{const i=s=>{const d=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Ct.b)(u=>{s.component=u}),(0,ze.U)(()=>{})));for(const u of s.children)d.push(...i(u));return d};return(0,Ir.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Gt.q)(1))}),hu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function YC(o,r,e){const t=At(o,r._root,e?e._root:void 0);return new tu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((o,r,e)=>(0,ze.U)(t=>(new Mo(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,ZC(n)){KC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ki(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),KC(n)){const s=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gu(a.source)};this.scheduleNavigation(s,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new bf(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(s){a.reject(s)}}return ei.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Mf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,s=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),jC(s,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Lr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Yf(o){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new jr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,s;c?(n=c.resolve,i=c.reject,s=c.promise):s=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,a){const l=new Ki(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:function(){return Io()},providedIn:"root"}),o})();function gu(o){return"imperative"!==o}let mu=(()=>{class o{constructor(e,t,a){this.router=e,this.route=t,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(l=>{l instanceof jr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,a,l,c){if(0!==e||t||a||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const n={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(ti),h.Y36(Gn),h.Y36(T.S$))},o.\u0275dir=h.lG2({type:o,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&h.uIk("target",t.target)("href",t.href,h.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),o})();class Ec{}let K0=(()=>{class o{preload(e,t){return(0,De.of)(null)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Hy=(()=>{class o{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Xt.h)(e=>e instanceof jr),(0,Ui.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,h.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,wi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,vi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,wi.D)([l,c]).pipe((0,mt.J)())}return l})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ti),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Ec),h.LFG(fu))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const bu=new h.OlP("");let Py=(()=>{class o{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof rc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof jr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ls&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Ls(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Kf=new h.OlP("ROUTER_FORROOT_GUARD"),Cu=new h.OlP(""),Sc=[T.Ye,{provide:Xl,useClass:Yd},{provide:ti,useFactory:Io},pc,{provide:Gn,useFactory:function Zf(o){return o.routerState.root},deps:[ti]},fu];function yu(){return new h.PXZ("Router",ti)}let Mc=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[Sc,[],vu(e),{provide:Kf,useFactory:wu,deps:[[ti,new h.FiY,new h.tp0]]},{provide:pu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:bu,useFactory:()=>{const o=(0,h.f3M)(ti),r=(0,h.f3M)(T.EM),e=(0,h.f3M)(pu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Py(o,r,e)}},t?.preloadingStrategy?ng(t.preloadingStrategy):[],{provide:h.PXZ,multi:!0,useFactory:yu},t?.initialNavigation?ky(t):[],[{provide:eg,useFactory:Iy},{provide:h.tb,multi:!0,useExisting:eg}]]}}static forChild(e){return{ngModule:o,providers:[vu(e)]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Kf,8))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();function wu(o){return"guarded"}function vu(o){return[{provide:xc,multi:!0,useValue:o}]}function Iy(){const o=(0,h.f3M)(h.zs3);return r=>{const e=o.get(h.z2F);if(r!==e.components[0])return;const t=o.get(ti),a=o.get(tg);1===o.get(ig)&&t.initialNavigation(),o.get(Cu,null,h.XFs.Optional)?.setUpPreloading(),o.get(bu,null,h.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const eg=new h.OlP("");function ky(o){return["disabled"===o.initialNavigation?[{provide:h.ip1,multi:!0,useFactory:()=>{const o=(0,h.f3M)(ti);return()=>{o.setUpLocationChangeListener()}}},{provide:ig,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:ig,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:o=>{const r=o.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=o.get(ti),c=o.get(tg);(function t(a){o.get(ti).events.pipe((0,Xt.h)(c=>c instanceof jr||c instanceof Ki||c instanceof bf),(0,ze.U)(c=>c instanceof jr||c instanceof Ki&&(0===c.code||1===c.code)&&null),(0,Xt.h)(c=>null!==c),(0,Gt.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const tg=new h.OlP("",{factory:()=>new He.x}),ig=new h.OlP("",{providedIn:"root",factory:()=>1});function ng(o){return[Hy,{provide:Cu,useExisting:Hy},{provide:Ec,useExisting:o}]}let Dc;try{Dc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Dc=!1}let Oa,ci=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!Dc)&&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 o.\u0275fac=function(e){return new(e||o)(h.LFG(h.Lbi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Hc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ly(){if(Oa)return Oa;if("object"!=typeof document||!document)return Oa=new Set(Hc),Oa;let o=document.createElement("input");return Oa=new Set(Hc.filter(r=>(o.setAttribute("type",r),o.type===r))),Oa}let Ks,Zi,ko;function yn(o){return function xu(){if(null==Ks&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ks=!0}))}finally{Ks=Ks||!1}return Ks}()?o:!!o.capture}function Fy(){if(null==Zi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zi=!1,Zi;if("scrollBehavior"in document.documentElement.style)Zi=!0;else{const o=Element.prototype.scrollTo;Zi=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return Zi}function Vo(o){if(function jy(){if(null==ko){const o=typeof document<"u"?document.head:null;ko=!(!o||!o.createShadowRoot&&!o.attachShadow)}return ko}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bo(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function Ai(o){return o.composedPath?o.composedPath()[0]:o.target}function Pc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $n(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var tl=x(8372);function xg(o){return(0,Xt.h)((r,e)=>o<=e)}function Tg(o,r){return o===r}var Eg=x(5032);function ft(o){return(0,an.e)((r,e)=>{(0,Ln.Xf)(o).subscribe((0,zi.x)(e,()=>e.complete(),Eg.Z)),!e.closed&&r.subscribe(e)})}function it(o){return null!=o&&"false"!=`${o}`}function ln(o,r=0){return Sg(o)?Number(o):r}function Sg(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function Mu(o){return Array.isArray(o)?o:[o]}function Wt(o){return null==o?"":"string"==typeof o?o:`${o}px`}function ni(o){return o instanceof h.SBq?o.nativeElement:o}let Du=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Mg=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ni(e);return new Vi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Du))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),il=(()=>{class o{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new h.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ln(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,tl.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Mg),h.Y36(h.SBq),h.Y36(h.R0b))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),Oo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Du]}),o})();const nl=new Set;let Fa,Pu=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ru}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Dg(o){if(!nl.has(o))try{Fa||(Fa=document.createElement("style"),Fa.setAttribute("type","text/css"),document.head.appendChild(Fa)),Fa.sheet&&(Fa.sheet.insertRule(`@media ${o} {body{ }}`,0),nl.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ru(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Lo=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Hg(Mu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Hg(Mu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ir.a)(a);return l=(0,kr.z)(l.pipe((0,Gt.q)(1)),l.pipe(xg(1),(0,tl.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:s})=>{n.matches=n.matches||i,n.breakpoints[s]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Vi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pu),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Hg(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function Fo(o,r){return(o.getAttribute(r)||"").match(/\S+/g)||[]}const yw="cdk-describedby-message",rl="cdk-describedby-host";let Iu=0,kg=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iu++,this._document=e,this._id=(0,h.f3M)(h.AFp)+"-"+Iu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=ku(t,a);"string"!=typeof t?(Vg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=ku(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${rl}="${this._id}"]`);for(let t=0;t0!=a.indexOf(yw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function bw(o,r,e){const t=Fo(o,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(rl,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Ig(o,r,e){const a=Fo(o,r).filter(l=>l!=e.trim());a.length?o.setAttribute(r,a.join(" ")):o.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(rl)}_isElementDescribedByMessage(e,t){const a=Fo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function ku(o,r){return"string"==typeof o?`${r||""}/${o}`:o}function Vg(o,r){o.id||(o.id=`${yw}-${r}-${Iu++}`)}class Oc extends class wn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,r instanceof h.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,tl.b)(r),(0,Xt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||$n(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof h.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Lc=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function vw(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ww(o){try{return o.frameElement}catch{return null}}(function Sw(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===Bu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Bu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function Og(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Ew(o){return!function Aw(o){return function Tw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function Bg(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function xw(o){return function st(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||Vu(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Vu(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Bu(o){if(!Vu(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Lg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(r)}}let Ou=(()=>{class o{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Lg(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Lc),h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Yn(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function Fc(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Lu=new h.OlP("cdk-input-modality-detector-options"),Fu={ignoreKeys:[18,17,224,91,16]},al=yn({passive:!0,capture:!0});let $T=(()=>{class o{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Yt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ai(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yn(c)?"keyboard":"mouse"),this._mostRecentTarget=Ai(c))},this._onTouchstart=c=>{Fc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ai(c))},this._options={...Fu,...l},this.modalityDetected=this._modality.pipe(xg(1)),this.modalityChanged=this.modalityDetected.pipe(function mw(o,r=le.y){return o=o??Tg,(0,an.e)((e,t)=>{let a,l=!0;e.subscribe((0,zi.x)(t,c=>{const n=r(c);(l||!o(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,al),a.addEventListener("mousedown",this._onMousedown,al),a.addEventListener("touchstart",this._onTouchstart,al)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,al),document.removeEventListener("mousedown",this._onMousedown,al),document.removeEventListener("touchstart",this._onTouchstart,al))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Lu,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const jo=new h.OlP("cdk-focus-monitor-default-options"),jc=yn({passive:!0,capture:!0});let cn=(()=>{class o{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,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 He.x,this._rootNodeFocusAndBlurListener=n=>{for(let s=Ai(n);s;s=s.parentElement)"focus"===n.type?this._onFocus(n,s):this._onBlur(n,s)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ni(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Vo(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new He.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ni(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ni(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=Ai(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,jc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,h.f3M)(Lo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(zu,jg,Nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(zu,jg):2===t&&e.add(zu,Nu)}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Nc=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ng))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Oo]}),o})();const Iw=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function kw(){return(0,h.f3M)(T.K0)}}),zg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Qn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new h.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Vw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?zg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Iw,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Fw=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function Gg(){return!0}});let We=(()=>{class o{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Pc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ng),h.LFG(Fw,8),h.LFG(T.K0))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr,Jr]}),o})();function ja(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=it(r)}}}function No(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function fr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=it(r)}}}function sl(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const qu=new h.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Wu(){return(0,h.f3M)(h.soG)}});class Xi{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const $u=new h.OlP("mat-date-formats"),Nw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Yu(o,r){const e=Array(o);for(let t=0;t{class o extends Xi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Yu(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Yu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Yu(7,a=>this._format(t,new Date(2017,0,a+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Nw.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(qu,8),h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const zw={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 $g=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:Wg}]}),o})(),Uw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:$u,useValue:zw}],imports:[$g]}),o})(),Gc=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),zo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})();class KT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Gw={enterDuration:225,exitDuration:150},Jg=yn({passive:!0}),qw=["mousedown","touchstart"],Ww=["mouseup","mouseleave","touchend","touchcancel"];class $w{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ni(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Gw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function XT(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,s=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,N=new KT(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",N.state=0,t.persistent||(this._mostRecentTransientRipple=N);let ae=null;return!H&&(s||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(N),lt=()=>this._destroyRipple(N);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(N,ae),(H||!s)&&this._finishRippleTransition(N),N}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Gw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ni(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(qw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ww),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=Yn(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Jg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(qw.forEach(r=>{this._triggerElement.removeEventListener(r,this,Jg)}),this._pointerUpEventsRegistered&&Ww.forEach(r=>{this._triggerElement.removeEventListener(r,this,Jg)}))}}const Yw=new h.OlP("mat-ripple-global-options");let Na=(()=>{class o{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new $w(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(ci),h.Y36(Yw,8),h.Y36(h.QbO,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-ripple-unbounded",t.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"]}),o})(),hi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Ju=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We]}),o})(),Ku=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,T.ez,We,Ju]}),o})();const qc=["mat-button",""],Uo=["*"],Wc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],cl=No(ja(fr(class{constructor(o){this._elementRef=o}})));let Zr=(()=>{class o extends cl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Wc)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(cn),h.Y36(h.QbO,8))},o.\u0275cmp=h.Xpm({type:o,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(e,t){if(1&e&&h.Gf(Na,5),2&e){let a;h.iGM(a=h.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.uIk("disabled",t.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:qc,ngContentSelectors:Uo,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(e,t){1&e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&e&&(h.xp6(2),h.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Na],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),o})(),An=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,We]}),o})();var Zu=x(1144),xn=x(576),Xu=x(3268);const eh=["addListener","removeListener"],ev=["addEventListener","removeEventListener"],rE=["on","off"];function $c(o,r,e,t){if((0,xn.m)(e)&&(t=e,e=void 0),t)return $c(o,r,e).pipe((0,Xu.Z)(t));const[a,l]=function im(o){return(0,xn.m)(o.addEventListener)&&(0,xn.m)(o.removeEventListener)}(o)?ev.map(c=>n=>o[c](r,n,e)):function tv(o){return(0,xn.m)(o.addListener)&&(0,xn.m)(o.removeListener)}(o)?eh.map(th(o,r)):function tm(o){return(0,xn.m)(o.on)&&(0,xn.m)(o.off)}(o)?rE.map(th(o,r)):[];if(!a&&(0,Zu.z)(o))return(0,vi.z)(c=>$c(c,r,e))((0,Ln.Xf)(o));if(!a)throw new TypeError("Invalid event target");return new Vi.y(c=>{const n=(...i)=>c.next(1l(n)})}function th(o,r){return e=>t=>o[e](r,t)}var nm=x(4408);const xi={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=xi;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,o(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...o){const{delegate:r}=xi;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=xi;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var am=x(7565);const om=new class aE extends am.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class rm extends nm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=xi.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(xi.cancelAnimationFrame(e),r._scheduled=void 0)}});let ih,lm=1;const Yc={};function cm(o){return o in Yc&&(delete Yc[o],!0)}const dm={setImmediate(o){const r=lm++;return Yc[r]=!0,ih||(ih=Promise.resolve()),ih.then(()=>cm(r)&&o()),r},clearImmediate(o){cm(o)}},{setImmediate:um,clearImmediate:iv}=dm,Qc={setImmediate(...o){const{delegate:r}=Qc;return(r?.setImmediate||um)(...o)},clearImmediate(o){const{delegate:r}=Qc;return(r?.clearImmediate||iv)(o)},delegate:void 0},nh=new class pm extends am.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class hm extends nm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Qc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Qc.clearImmediate(e),r._scheduled=void 0)}});var Jc=x(4986),fm=x(2805);function rv(o,r=Jc.z){return function nv(o){return(0,an.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const s=a;a=null,e.next(s)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,zi.x)(e,s=>{t=!0,a=s,l||(0,Ln.Xf)(o(s)).subscribe(l=(0,zi.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,fm.H)(o,r))}let dl=(()=>{class o{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Vi.y(t=>{this._globalSubscription||this._addGlobalListener();const a=e>0?this._scrolled.pipe(rv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Xt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ni(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>$c(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b),h.LFG(ci),h.LFG(T.K0,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),qo=(()=>{class o{constructor(e,t,a){this._platform=e,this._change=new He.x,this._changeListener=l=>{this._change.next(l)},this._document=a,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(rv(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b),h.LFG(T.K0,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),Ua=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr,Jn,Jr,Jn]}),o})();class ul{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class hl extends ul{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class oh extends ul{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class uv extends ul{constructor(r){super(),this.element=r instanceof h.SBq?r.nativeElement:r}}class Ga{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof hl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof oh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof uv?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fE extends Ga{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let sh=(()=>{class o extends Ga{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(T.K0))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),o})(),ea=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();var $i=x(6451);const Zc=Fy();class hv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Zc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class pv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class wm{enable(){}disable(){}attach(){}}function lh(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function vm(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class fv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();lh(e,[{width:t,height:a,bottom:a,right:t,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 gv=(()=>{class o{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new wm,this.close=c=>new pv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new hv(this._viewportRuler,this._document),this.reposition=c=>new fv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(dl),h.LFG(qo),h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Wo{constructor(r){if(this.scrollStrategy=new wm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class pl{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Xc=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mv=(()=>{class o extends Xc{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),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(e){return new(e||o)(h.LFG(T.K0),h.LFG(h.R0b,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kn=(()=>{class o extends Xc{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=Ai(l)},this._clickListener=l=>{const c=Ai(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const d=i[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(ci),h.LFG(h.R0b,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ta=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Pc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Gt.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=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,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Mu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,$i.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ia="cdk-overlay-connected-position-bounding-box",ed=/([A-Za-z%]+)$/;class dn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,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 He.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(ia),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),s=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(s,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,s,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=s)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ia),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Wa(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),s=this._getOffset(a,"y");i&&(c+=i),s&&(n+=s);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),N=this._subtractOverflows(l.height,f,b),ae=H*N;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:N===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=qa(this._overlayRef.getConfig().minHeight),n=qa(this._overlayRef.getConfig().minWidth),s=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&s}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Wa(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),s=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?s||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,mr(this._boundingBox.style,a)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();mr(t,this._getExactOverlayY(e,r,d)),mr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),s=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),s&&(n+=`translateY(${s}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vm(r,t),isOriginOutsideView:lh(r,t),isOverlayClipped:vm(e,t),isOverlayOutsideView:lh(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Mu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof h.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function mr(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function qa(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(ed);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Wa(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 $a="cdk-global-overlay-wrapper";class Yo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add($a),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),s=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",N="";i?N="flex-start":"center"===d?(N="center",f?H=u:b=u):f?"left"===d||"end"===d?(N="flex-end",b=u):("right"===d||"start"===d)&&(N="flex-start",H=u):"left"===d||"start"===d?(N="flex-start",b=u):("right"===d||"end"===d)&&(N="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=s?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=N,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove($a),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Qo=(()=>{class o{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new Yo}flexibleConnectedTo(e){return new dn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(qo),h.LFG(T.K0),h.LFG(ci),h.LFG(ta))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jo=0,Ti=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=s,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Wo(e);return c.direction=c.direction||this._directionality.value,new di(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Jo++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(h.z2F)),new fE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(gv),h.LFG(ta),h.LFG(h._Vd),h.LFG(Qo),h.LFG(mv),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Qn),h.LFG(T.Ye),h.LFG(Kn),h.LFG(h.QbO,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Tm={provide:new h.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Ti],useFactory:function xm(o){return()=>o.scrollStrategies.reposition()}};let Ya=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Ti,Tm],imports:[Jr,ea,Ua,Ua]}),o})();class ch{}const _r="*";function ri(o,r){return{type:7,name:o,definitions:r,options:{}}}function wt(o,r=null){return{type:4,styles:r,timings:o}}function Em(o,r=null){return{type:3,steps:o,options:r}}function dh(o,r=null){return{type:2,steps:o,options:r}}function Fe(o){return{type:6,styles:o,offset:null}}function pt(o,r,e){return{type:0,name:o,styles:r,options:e}}function _t(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Ko(o=null){return{type:9,options:o}}function Ja(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function td(o){Promise.resolve(null).then(o)}class Zo{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){td(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class id{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?td(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Sm=["connectionContainer"],ph=["inputContainer"],fh=["label"];function vv(o,r){1&o&&(h.ynx(0),h.TgZ(1,"div",14),h._UZ(2,"div",15)(3,"div",16)(4,"div",17),h.qZA(),h.TgZ(5,"div",18),h._UZ(6,"div",15)(7,"div",16)(8,"div",17),h.qZA(),h.BQk())}function Mm(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",19),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.Hsn(1,1),h.qZA()}if(2&o){const e=h.oxw();h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Dm(o,r){if(1&o&&(h.ynx(0),h.Hsn(1,2),h.TgZ(2,"span"),h._uU(3),h.qZA(),h.BQk()),2&o){const e=h.oxw(2);h.xp6(3),h.Oqu(e._control.placeholder)}}function Hm(o,r){1&o&&h.Hsn(0,3,["*ngSwitchCase","true"])}function Pm(o,r){1&o&&(h.TgZ(0,"span",23),h._uU(1," *"),h.qZA())}function Av(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"label",20,21),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.YNc(2,Dm,4,1,"ng-container",12),h.YNc(3,Hm,1,0,"ng-content",12),h.YNc(4,Pm,2,0,"span",22),h.qZA()}if(2&o){const e=h.oxw();h.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),h.uIk("for",e._control.id)("aria-owns",e._control.id),h.xp6(2),h.Q6J("ngSwitchCase",!1),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Rm(o,r){1&o&&(h.TgZ(0,"div",24),h.Hsn(1,4),h.qZA())}function Im(o,r){if(1&o&&(h.TgZ(0,"div",25),h._UZ(1,"span",26),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function gh(o,r){if(1&o&&(h.TgZ(0,"div"),h.Hsn(1,5),h.qZA()),2&o){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState)}}function mh(o,r){if(1&o&&(h.TgZ(0,"div",30),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.Q6J("id",e._hintLabelId),h.xp6(1),h.Oqu(e.hintLabel)}}function km(o,r){if(1&o&&(h.TgZ(0,"div",27),h.YNc(1,mh,2,2,"div",28),h.Hsn(2,6),h._UZ(3,"div",29),h.Hsn(4,7),h.qZA()),2&o){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState),h.xp6(1),h.Q6J("ngIf",e.hintLabel)}}const Vm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Om=0;const _h=new h.OlP("MatError");let Lm=(()=>{class o{constructor(e,t){this.id="mat-error-"+Om++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(h.$8M("aria-live"),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("id",t.id)},inputs:{id:"id"},features:[h._Bn([{provide:_h,useExisting:o}])]}),o})();const Fm={transitionMessages:ri("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ml=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o}),o})(),jm=0;const Nm=new h.OlP("MatHint");let pi=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+jm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(h.uIk("id",t.id)("align",null),h.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[h._Bn([{provide:Nm,useExisting:o}])]}),o})(),rd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-label"]]}),o})(),xv=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const Tv=new h.OlP("MatPrefix"),Sv=new h.OlP("MatSuffix");let bh=0;const Dv=No(class{constructor(o){this._elementRef=o}},"primary"),Um=new h.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ch=new h.OlP("MatFormField");let Gm=(()=>{class o extends Dv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bh++,this._labelId="mat-form-field-label-"+bh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=it(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,$i.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,$c(this._label.nativeElement,"transitionend").pipe((0,Gt.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,a=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Oo,We]}),o})();const Jm={provide:new h.OlP("mat-select-scroll-strategy"),deps:[Ti],useFactory:function ad(o){return()=>o.scrollStrategies.reposition()}};let is=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Jm],imports:[T.ez,Ya,Ku,We,Jn,es,Ku,We]}),o})();const e_=["tooltip"],wh="tooltip-panel",i_=yn({passive:!0}),n_=new h.OlP("mat-tooltip-scroll-strategy"),jv={provide:n_,deps:[Ti],useFactory:function Fv(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Nv=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function zv(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Uv=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=s,this._dir=u,this._defaultOptions=f,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 He.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ln(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,a])=>{e.removeEventListener(t,a,i_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new hl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${wh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!$n(a)&&(a.preventDefault(),a.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(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Gt.q)(1),ft(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${wh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,a])=>{this._elementRef.nativeElement.addEventListener(t,a,i_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return o.\u0275fac=function(e){h.$Z()},o.\u0275dir=h.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),o})(),r_=(()=>{class o extends Uv{constructor(e,t,a,l,c,n,i,s,d,u,f,b){super(e,t,a,l,c,n,i,s,d,u,f,b),this._tooltipComponent=qv}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ti),h.Y36(h.SBq),h.Y36(dl),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(ci),h.Y36(kg),h.Y36(cn),h.Y36(n_),h.Y36(Qn,8),h.Y36(Nv,8),h.Y36(T.K0))},o.\u0275dir=h.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),o})(),Gv=(()=>{class o{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.sBO),h.Y36(h.QbO,8))},o.\u0275dir=h.lG2({type:o}),o})(),qv=(()=>{class o extends Gv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.sBO),h.Y36(Lo),h.Y36(h.QbO,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&h.Gf(e_,7),2&e){let a;h.iGM(a=h.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&h.Udp("zoom",t.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&e){let a;h.ekj("mat-tooltip-handset",null==(a=h.lcZ(2,4,t._isHandset))?null:a.matches),h.Q6J("ngClass",t.tooltipClass),h.xp6(3),h.Oqu(t.message)}},dependencies:[T.mk,T.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}),o})(),_l=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[jv],imports:[Nc,T.ez,Ya,We,We,Jn]}),o})(),od=(()=>{class o{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const o_={provide:od,deps:[[new h.FiY,new h.tp0,od]],useFactory:function a_(o){return o||new od}};let er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[o_],imports:[T.ez,An,is,_l,We]}),o})();var c_=x(1005);const tA=["mat-menu-item",""];function ns(o,r){1&o&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const iA=["*"];function vh(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._handleKeydown(a))})("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationDone(a))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&o){const e=h.oxw();h.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),h.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ah={transformMenu:ri("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ri("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},IE=new h.OlP("MatMenuContent"),xh=new h.OlP("MAT_MENU_PANEL"),sd=fr(ja(class{}));let Ka=(()=>{class o extends sd{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class o{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+d_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=it(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=it(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Oc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Bi.w)(e=>(0,$i.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Bi.w)(t=>(0,$i.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:$n(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},o.\u0275dir=h.lG2({type:o,contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,IE,5),h.Suo(a,Ka,5),h.Suo(a,Ka,4)),2&e){let l;h.iGM(l=h.CRH())&&(t.lazyContent=l.first),h.iGM(l=h.CRH())&&(t._allItems=l),h.iGM(l=h.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&h.Gf(h.Rgc,5),2&e){let a;h.iGM(a=h.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),o})(),aA=(()=>{class o extends rs{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:xh,useExisting:o}]),h.qOj],ngContentSelectors:iA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(h.F$t(),h.YNc(0,vh,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ah.transformMenu,Ah.fadeInItems]},changeDetection:0}),o})();const Th=new h.OlP("mat-menu-scroll-strategy"),h_={provide:Th,deps:[Ti],useFactory:function u_(o){return()=>o.scrollStrategies.reposition()}},p_=yn({passive:!0});let sA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=s,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{Fc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof rs?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,p_),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,p_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof rs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof rs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Xt.h)(a=>"void"===a.toState),(0,Gt.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Wo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,s]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",s="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:s,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:s,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Xt.h)(c=>c!==this._menuItemInstance),(0,Xt.h)(()=>this._menuOpen)):(0,De.of)();return(0,$i.T)(e,a,l,t)}_handleMousedown(e){Yn(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Xt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,c_.g)(0,nh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof rs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Gt.q)(1),(0,c_.g)(0,nh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new oh(e.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ti),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36(Th),h.Y36(xh,8),h.Y36(Ka,10),h.Y36(Qn,8),h.Y36(cn),h.Y36(h.R0b))},o.\u0275dir=h.lG2({type:o,hostVars:3,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&h.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),o})(),lA=(()=>{class o extends sA{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),o})(),na=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[h_],imports:[T.ez,We,hi,Ya,Jn,We]}),o})();var cA=x(4742),dA=x(1810);function Eh(...o){const r=(0,Aa.jO)(o),{args:e,keys:t}=(0,cA.D)(o),a=new Vi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,s=c;for(let d=0;d{u||(u=!0,s--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(s||l.next(t?(0,dA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,Xu.Z)(r)):a}var Cl=x(3099);const f_=["*"];let yl;function wl(o){return function g_(){if(void 0===yl&&(yl=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(yl=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return yl}()?.createHTML(o)||o}function as(o){return Error(`Unable to find icon with the name "${o}"`)}function m_(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function __(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Za{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let os=(()=>{class o{constructor(e,t,a,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new Za(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(h.q3G.HTML,a);if(!c)throw __(a);const n=wl(c);return this._addSvgIconConfig(e,t,new Za("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new Za(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(h.q3G.HTML,t);if(!l)throw __(t);const c=wl(l);return this._addSvgIconSetConfig(e,new Za("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,e);if(!t)throw m_(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(ld(a)):this._loadSvgIconFromConfig(new Za(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>ld(l)))}getNamedSvgIcon(e,t=""){const a=Sh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(as(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(ld(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>ld(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Eh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(s)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw as(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(wl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(wl("")),a=e.attributes;for(let l=0;lwl(s)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,Cl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Sh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let a=0;ar?r.pathname+r.search:""}}}),fA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],C_=fA.map(o=>`[${o}]`).join(", "),cd=/^url\(['"]?#(.*?)['"]?\)$/;let ra=(()=>{class o extends pA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=it(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(C_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),s=i?i.match(cd):null;if(s){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Gt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(os),h.$8M("aria-hidden"),h.Y36(FE),h.Y36(h.qLn),h.Y36(LE,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),h.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:f_,decls:1,vars:0,template:function(e,t){1&e&&(h.F$t(),h.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),o})(),yr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})();function Tn(o){return!!o&&(o instanceof Vi.y||(0,xn.m)(o.lift)&&(0,xn.m)(o.subscribe))}var Al=x(6063);class gA extends He.x{constructor(r=1/0,e=1/0,t=Al.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew gA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class xl{}let w_=(()=>{class o extends xl{getTranslation(e){return(0,De.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Mh{}let Dh=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function dd(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let a,l,c,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),o){if(!dd(o[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=o.length)==r.length){for(l=0;l{oa(r[t])?t in o?e[t]=v_(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Tl{}let A_=(()=>{class o extends Tl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!aa(e)||!aa(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return aa(c)?c:a}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class El{}let x_=(()=>{class o extends El{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Hh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new h.vpe,this.onLangChange=new h.vpe,this.onDefaultLangChange=new h.vpe}}const Ph=new h.OlP("USE_STORE"),Sl=new h.OlP("USE_DEFAULT_LANG"),Rh=new h.OlP("DEFAULT_LANGUAGE"),ud=new h.OlP("USE_EXTEND");let En=(()=>{class o{constructor(e,t,a,l,c,n=!0,i=!1,s=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=s,this.pending=!1,this._onTranslationChange=new h.vpe,this._onLangChange=new h.vpe,this._onDefaultLangChange=new h.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(y_(1),(0,Gt.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),y_(1),(0,Gt.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?v_(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),Tn(c[i])&&(n=!0);return n?Eh(t.map(s=>Tn(c[s])?c[s]:(0,De.of)(c[s]))).pipe((0,ze.U)(s=>{let d={};return s.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ui.b)(a=>Tn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return Tn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,kr.z)(Vr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Bi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,kr.z)(Vr(()=>this.get(e,t)),this.onLangChange.pipe((0,Bi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return Tn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(Tn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Hh),h.LFG(xl),h.LFG(El),h.LFG(Tl),h.LFG(Mh),h.LFG(Sl),h.LFG(Ph),h.LFG(ud),h.LFG(Rh))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),en=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);Tn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(dd(e,this.lastKey)&&dd(t,this.lastParams))return this.value;let a;if(aa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(En,16),h.Y36(h.sBO,16))},o.\u0275pipe=h.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),ss=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:xl,useClass:w_},e.compiler||{provide:El,useClass:x_},e.parser||{provide:Tl,useClass:A_},e.missingTranslationHandler||{provide:Mh,useClass:Dh},Hh,{provide:Ph,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:ud,useValue:e.extend},{provide:Rh,useValue:e.defaultLanguage},En]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:xl,useClass:w_},e.compiler||{provide:El,useClass:x_},e.parser||{provide:Tl,useClass:A_},e.missingTranslationHandler||{provide:Mh,useClass:Dh},{provide:Ph,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:ud,useValue:e.extend},{provide:Rh,useValue:e.defaultLanguage},En]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),hd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[er,na,yr,An,ss,T.ez]}),o})();function mA(o,r){}class Ml{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 T_=(()=>{class o extends Ga{constructor(e,t,a,l,c,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=Bo(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Bo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Bo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Ml),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&h.Gf(sh,7),2&e){let a;h.iGM(a=h.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&h.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,mA,0,0,"ng-template",0)},dependencies:[sh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Ih{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!$n(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const E_=new h.OlP("DialogScrollStrategy"),_A=new h.OlP("DialogData"),bA=new h.OlP("DefaultDialogConfig"),yA={provide:E_,deps:[Ti],useFactory:function CA(o){return()=>o.scrollStrategies.block()}};let S_=0,kh=(()=>{class o{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Vr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Ml,...t}).id=t.id||"cdk-dialog-"+S_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Ih(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){Vh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Vh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Vh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Wo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Ml,useValue:a},{provide:Ih,useValue:t},{provide:di,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=T_;const i=new hl(n,a.viewContainerRef,h.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof h.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new oh(e,null,n,c))}else{const n=a.attachComponentPortal(new hl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:_A,useValue:e.data},{provide:Ih,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Qn,null,h.XFs.Optional))&&c.push({provide:Qn,useValue:{value:e.direction,change:(0,De.of)()}}),h.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ti),h.LFG(h.zs3),h.LFG(bA,8),h.LFG(o,12),h.LFG(ta),h.LFG(E_))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function Vh(o,r){let e=o.length;for(;e--;)r(o[e])}let wA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[kh,yA],imports:[Ya,ea,Nc,ea]}),o})();function M_(o,r){}const ls={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vA={dialogContainer:ri("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",Em([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ja("@*",Ko(),{optional:!0})]),ls),_t("* => void, * => exit",Em([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ja("@*",Ko(),{optional:!0})]),ls)])};class Dl{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=ls.params.enterAnimationDuration,this.exitAnimationDuration=ls.params.exitAnimationDuration}}let Bh=(()=>{class o extends T_{constructor(e,t,a,l,c,n,i,s){super(e,t,a,l,c,n,i,s),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),Oh=(()=>{class o extends Bh{constructor(e,t,a,l,c,n,i,s,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ls.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ls.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(h.sBO),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&h.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(h.Ikx("id",t._config.id),h.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.d8E("@dialogContainer",t._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,M_,0,0,"ng-template",0)},dependencies:[sh],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:[vA.dialogContainer]}}),o})();class Xa{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Xt.h)(a=>"opened"===a.state),(0,Gt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Xt.h)(a=>"closed"===a.state),(0,Gt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,$i.T)(this.backdropClick(),this.keydownEvents().pipe((0,Xt.h)(a=>27===a.keyCode&&!this.disableClose&&!$n(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Lh(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Xt.h)(e=>"closing"===e.state),(0,Gt.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const D_=new h.OlP("MatDialogData"),AA=new h.OlP("mat-dialog-default-options"),pd=new h.OlP("mat-dialog-scroll-strategy"),cs={provide:pd,deps:[Ti],useFactory:function H_(o){return()=>o.scrollStrategies.block()}};let P_=0,xA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Vr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(kh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Dl,...t}).id=t.id||`${this._idPrefix}${P_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dl,useValue:t},{provide:Ml,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),eo=(()=>{class o extends xA{constructor(e,t,a,l,c,n,i,s){super(e,t,l,n,i,c,Xa,Oh,D_,s)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ti),h.LFG(h.zs3),h.LFG(T.Ye,8),h.LFG(AA,8),h.LFG(pd),h.LFG(o,12),h.LFG(ta),h.LFG(h.QbO,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),R_=0,Fh=(()=>{class o{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+R_++}ngOnInit(){this._dialogRef||(this._dialogRef=function TA(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa,8),h.Y36(h.SBq),h.Y36(eo))},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),ds=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),jh=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),us=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[eo,cs],imports:[wA,Ya,ea,We,We]}),o})();function V_(o,r){for(const e of o)if(e.namespace+":"+e.friendlyName===r)return e;return null}function hs(){const o=new Dl;return o.disableClose=!0,o.autoFocus=!1,o}x(4327),new Intl.Collator("cs",{numeric:!0});let fi=(()=>{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let a=null;for(const l of t)l&&!a&&(a=l[e]);return a}get(...e){let t;if(""!==this.branding){const a=this.instanceConfig.brandings[this.branding];for(let l=0;l{class o{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(ti),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=function _d(o,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(o))return l}return""}("idphint",location.search.substring(1));n&&(c.idphint=n)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(a=>a?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Xt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Xt.h)(e=>e instanceof jr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const a of t)if(e.startsWith(a))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(a=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!a||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.zs3),h.LFG(fi),h.LFG(eo),h.LFG(Gn),h.LFG(Hl.Ct))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lS=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ds,en]}),o})(),to=(()=>{class o{constructor(e,t,a,l,c,n){this.authService=e,this.storeService=t,this.authResolver=a,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=hs();this.dialog.open(lS,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const a of e){const l=a.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pl),h.LFG(fi),h.LFG(rf),h.LFG(at),h.LFG(eo),h.LFG(ti))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Uh=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(os),h.LFG(si))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),Gh=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div",2)(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.close()}),h._uU(9),h.ALo(10,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),h.xp6(3),h.hij(" ",h.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),h.xp6(5),h.hij(" ",h.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Fh,ds,jh,Zr,en]}),o})(),qh=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),bd=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new h.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(En))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),U_=(()=>{class o{constructor(e,t,a,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const a=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=hs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Gh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,_n._)(n):l?void this.notificator.showRPCError(i):(0,_n._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pl),h.LFG(qh),h.LFG(bd),h.LFG(fi),h.LFG(eo),h.LFG(to))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),$A=(()=>{class o{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(bd),h.LFG(Pl),h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),G_=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Gn),h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Cd=(()=>{class o{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const a of e)if(a.newApps.admin===t||a.newApps.profile===t||a.newApps.pwdReset===t||a.newApps.consolidator===t||a.newApps.linker===t)return a;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],n=o.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let i;if(n.newApps[e])i=n.newApps[e],"pwdReset"===e&&(i+=`?login-namespace=${t}`);else switch(i=n.oldGuiDomain+"/fed",e){case"admin":i+="/gui/";break;case"profile":i+="/profile/";break;case"pwdReset":i+=`/pwd-reset/?login-namespace=${t}`}return i}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wh=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Qsj),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o}),o})(),sa=(()=>{class o extends Wh{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,features:[h.qOj]}),o})();const Fi=new h.OlP("NgValueAccessor"),JA={provide:Fi,useExisting:(0,h.Gpc)(()=>bi),multi:!0},KA=new h.OlP("CompositionEventMode");let bi=(()=>{class o extends Wh{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function W_(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(KA,8))},o.\u0275dir=h.lG2({type:o,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&h.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[h._Bn([JA]),h.qOj]}),o})();function la(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function $_(o){return null!=o&&"number"==typeof o.length}const Ci=new h.OlP("NgValidators"),io=new h.OlP("NgAsyncValidators"),Y_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class yd{static min(r){return function fs(o){return r=>{if(la(r.value)||la(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(la(r.value)||la(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return wd(r)}static requiredTrue(r){return function J_(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function Yh(o){return la(o.value)||Y_.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function K_(o){return r=>la(r.value)||!$_(r.value)?null:r.value.length$_(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function no(o){if(!o)return vd;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(la(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return Zh(r)}static composeAsync(r){return ep(r)}}function wd(o){return la(o.value)?{required:!0}:null}function vd(o){return null}function Ad(o){return null!=o}function Qh(o){return(0,h.QGY)(o)?(0,wi.D)(o):o}function Jh(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Rl(o,r){return r.map(e=>e(o))}function ZA(o){return o.map(r=>function Kh(o){return!o.validate}(r)?r:e=>r.validate(e))}function Zh(o){if(!o)return null;const r=o.filter(Ad);return 0==r.length?null:function(e){return Jh(Rl(e,r))}}function Xh(o){return null!=o?Zh(ZA(o)):null}function ep(o){if(!o)return null;const r=o.filter(Ad);return 0==r.length?null:function(e){return Eh(Rl(e,r).map(Qh)).pipe((0,ze.U)(Jh))}}function ca(o){return null!=o?ep(ZA(o)):null}function X_(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function tp(o){return o._rawValidators}function xd(o){return o._rawAsyncValidators}function eb(o){return o?Array.isArray(o)?o:[o]:[]}function Td(o,r){return Array.isArray(o)?o.includes(r):o===r}function XA(o,r){const e=eb(r);return eb(o).forEach(a=>{Td(e,a)||e.push(a)}),e}function tb(o,r){return eb(r).filter(e=>!Td(o,e))}class ib{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=Xh(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=ca(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class ji extends ib{get formDirective(){return null}get path(){return null}}class Sn extends ib{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let np=(()=>{class o extends class ip{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Sn,2))},o.\u0275dir=h.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[h.qOj]}),o})();const Sd="VALID",ro="INVALID",kl="PENDING",gs="DISABLED";function ms(o){return(_s(o)?o.validators:o)||null}function ap(o){return Array.isArray(o)?Xh(o):o||null}function Md(o,r){return(_s(r)?r.asyncValidators:o)||null}function sx(o){return Array.isArray(o)?ca(o):o||null}function _s(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class sp{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=ap(this._rawValidators),this._composedAsyncValidatorFn=sx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Sd}get invalid(){return this.status===ro}get pending(){return this.status==kl}get disabled(){return this.status===gs}get enabled(){return this.status!==gs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=ap(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=sx(r)}addValidators(r){this.setValidators(XA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(XA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(tb(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(tb(r,this._rawAsyncValidators))}hasValidator(r){return Td(this._rawValidators,r)}hasAsyncValidator(r){return Td(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=kl,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=gs,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Sd,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Sd||this.status===kl)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?gs:Sd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=Qh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?gs:this.errors?ro:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(ro)?ro:Sd}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){_s(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class ob extends sp{constructor(r,e,t){super(ms(e),Md(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function ab(o,r,e){o._forEachChild((t,a)=>{if(void 0===e[a])throw new h.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function op(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new h.vHH(1e3,"");if(!t[e])throw new h.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Hd(o,r){up(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function CS(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&hp(o,r)})}(o,r),function sb(o,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function dx(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&hp(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function cx(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function cp(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Pd(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function dp(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function up(o,r){const e=tp(o);null!==r.validator?o.setValidators(X_(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=xd(o);null!==r.asyncValidator?o.setAsyncValidators(X_(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const a=()=>o.updateValueAndValidity();dp(r._rawValidators,a),dp(r._rawAsyncValidators,a)}function Pd(o,r){let e=!1;if(null!==o){if(null!==r.validator){const a=tp(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,o.setValidators(l))}}if(null!==r.asyncValidator){const a=xd(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,o.setAsyncValidators(l))}}}const t=()=>{};return dp(r._rawValidators,t),dp(r._rawAsyncValidators,t),e}function hp(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function ux(o,r){up(o,r)}function cb(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const db={provide:ji,useExisting:(0,h.Gpc)(()=>bs)},Vl=(()=>Promise.resolve(null))();let bs=(()=>{class o extends ji{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new ob({},Xh(e),ca(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Hd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new ob({});ux(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,cb(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ci,10),h.Y36(io,10))},o.\u0275dir=h.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([db]),h.qOj]}),o})();function bp(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function ub(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const Cp=class extends sp{constructor(r=null,e,t){super(ms(e),Md(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_s(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ub(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){bp(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){bp(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){ub(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},fx={provide:Sn,useExisting:(0,h.Gpc)(()=>wp)},fb=(()=>Promise.resolve(null))();let wp=(()=>{class o extends Sn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new Cp,this._registered=!1,this.update=new h.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=function mp(o,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===bi?e=l:function gp(o){return Object.getPrototypeOf(o.constructor)===sa}(l)?t=l:a=l}),a||t||e||null}(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function fp(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Hd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){fb.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,h.D6c)(t);fb.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Dd(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(ji,9),h.Y36(Ci,10),h.Y36(io,10),h.Y36(Fi,10),h.Y36(h.sBO,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([fx]),h.qOj,h.TTD]}),o})(),_x=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Rd=new h.OlP("NgModelWithFormControlWarning"),Id={provide:ji,useExisting:(0,h.Gpc)(()=>Cs)};let Cs=(()=>{class o extends ji{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Pd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Hd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){cp(e.control||null,e,!1),function _p(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,cb(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,a=this.form.get(e.path);t!==a&&(cp(t||null,e),(o=>o instanceof Cp)(a)&&(Hd(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ux(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Mn(o,r){return Pd(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){up(this.form,this),this._oldForm&&Pd(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ci,10),h.Y36(io,10))},o.\u0275dir=h.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Id]),h.qOj,h.TTD]}),o})(),ua=(()=>{class o{constructor(){this._validator=vd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):vd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,features:[h.TTD]}),o})();const vx={provide:Ci,useExisting:(0,h.Gpc)(()=>ys),multi:!0};let ys=(()=>{class o extends ua{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=h.D6c,this.createValidator=e=>wd}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([vx]),h.qOj]}),o})(),Hp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[_x]}),o})(),Pp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Hp]}),o})(),Ol=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:Rd,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Hp]}),o})();const Dx=yn({passive:!0});let Hx=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ei.E;const t=ni(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new He.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,Dx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,Dx)}}),l}stopMonitoring(e){const t=ni(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Px=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Rx=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),BS=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let OS=0;const Ix=sl(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let LS=(()=>{class o extends Ix{constructor(e,t,a,l,c,n,i,s,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=u,this._uid="mat-input-"+OS++,this.focused=!1,this.stateChanges=new He.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(H=>Ly().has(H)),this._iOSKeyupListener=H=>{const N=H.target;!N.value&&0===N.selectionStart&&0===N.selectionEnd&&(N.setSelectionRange(1,1),N.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=it(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(yd.required)??!1}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ly().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=it(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){BS.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(ci),h.Y36(Sn,10),h.Y36(bs,8),h.Y36(Cs,8),h.Y36(Gc),h.Y36(Rx,10),h.Y36(Hx),h.Y36(h.R0b),h.Y36(Ch,8))},o.\u0275dir=h.lG2({type:o,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(e,t){1&e&&h.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Ikx("disabled",t.disabled)("required",t.required),h.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),h.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[h._Bn([{provide:ml,useExisting:o}]),h.qOj,h.TTD]}),o})(),Rp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Gc],imports:[Px,es,We,Px,es]}),o})();function FS(o,r){1&o&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let jS=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa),h.Y36(En),h.Y36(bd),h.Y36(Rt),h.Y36(fi))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"input",2,3),h.NdJ("ngModelChange",function(l){return t.subject=l}),h.qZA(),h.YNc(10,FS,3,3,"mat-error",4),h.qZA(),h.TgZ(11,"mat-form-field")(12,"mat-label"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"textarea",5),h.NdJ("ngModelChange",function(l){return t.message=l}),h.ALo(16,"translate"),h._uU(17," "),h.qZA(),h.TgZ(18,"mat-hint"),h._uU(19),h.ALo(20,"translate"),h.qZA()()(),h.TgZ(21,"div",6)(22,"div",7)(23,"button",8),h.NdJ("click",function(){return t.close()}),h._uU(24),h.ALo(25,"translate"),h.qZA(),h.TgZ(26,"button",9),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(27),h.ALo(28,"translate"),h.qZA()()()),2&e){const a=h.MAs(9);h.xp6(1),h.Oqu(h.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),h.xp6(5),h.Oqu(h.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),h.xp6(2),h.Q6J("ngModel",t.subject),h.xp6(2),h.Q6J("ngIf",a.invalid),h.xp6(3),h.Oqu(h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",t.message),h.xp6(4),h.Oqu(h.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),h.xp6(5),h.hij(" ",h.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),h.xp6(2),h.Q6J("disabled",a.invalid),h.xp6(1),h.hij(" ",h.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,bi,np,ys,wp,Zr,Lm,Gm,pi,rd,LS,Fh,ds,jh,en],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),NS=(()=>{class o{transform(e,t,a){return e[`${a}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"localisedText",type:o,pure:!0}),o})(),zS=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),p=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function g(o,r){if(1&o&&(h.TgZ(0,"a",13),h.ALo(1,"localisedLink"),h._UZ(2,"img",14),h.ALo(3,"footerLogoPath"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,2,e,t.language),h.LSH),h.xp6(2),h.s9C("src",h.lcZ(3,5,e.logo),h.LSH)}}function m(o,r){if(1&o&&(h.TgZ(0,"span"),h._UZ(1,"img",14),h.ALo(2,"footerLogoPath"),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.s9C("src",h.lcZ(2,1,e.logo),h.LSH)}}function _(o,r){if(1&o&&(h.TgZ(0,"div"),h.YNc(1,g,4,7,"a",11),h.ALo(2,"localisedLink"),h.YNc(3,m,3,3,"span",12),h.ALo(4,"localisedLink"),h.qZA()),2&o){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",h.xi3(2,2,e,t.language)),h.xp6(2),h.Q6J("ngIf",!h.xi3(4,5,e,t.language))}}const C=function(o){return{"min-height":o}};function w(o,r){if(1&o&&(h.TgZ(0,"div",10),h.YNc(1,_,5,8,"div",5),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,C,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}const v=function(o){return{color:o}};function E(o,r){if(1&o&&(h.TgZ(0,"i",20),h._uU(1),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(2,v,t.linksTextColor)),h.xp6(1),h.hij(" ",e.icon," ")}}function S(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"span",21),h.NdJ("click",function(){h.CHM(e);const a=h.oxw().$implicit,l=h.oxw(3);return h.KtG(l.openDialog(a.dialog))}),h._uU(1),h.ALo(2,"localisedText"),h.qZA()}if(2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,v,t.linksTextColor)),h.xp6(1),h.hij("",h.Dn7(2,2,e,t.language,"label")," ")}}function P(o,r){if(1&o&&(h.TgZ(0,"a",22),h.ALo(1,"localisedLink"),h._uU(2),h.ALo(3,"localisedText"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,3,e,t.language),h.LSH)("ngStyle",h.VKq(10,v,t.linksTextColor)),h.xp6(2),h.Oqu(h.Dn7(3,6,e,t.language,"label"))}}function R(o,r){if(1&o&&(h.TgZ(0,"span",10),h._uU(1),h.ALo(2,"localisedText"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,v,t.linksTextColor)),h.xp6(1),h.Oqu(h.Dn7(2,2,e,t.language,"label"))}}function L(o,r){if(1&o&&(h.TgZ(0,"div",16),h.YNc(1,E,2,4,"i",17),h.YNc(2,S,3,8,"span",18),h.YNc(3,P,4,12,"a",19),h.ALo(4,"localisedLink"),h.YNc(5,R,3,8,"span",9),h.ALo(6,"localisedLink"),h.qZA()),2&o){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",e.icon),h.xp6(1),h.Q6J("ngIf",e.dialog),h.xp6(1),h.Q6J("ngIf",h.xi3(4,4,e,t.language)&&!e.dialog),h.xp6(2),h.Q6J("ngIf",!h.xi3(6,7,e,t.language)&&!e.dialog)}}const X=function(o){return{height:o}};function re(o,r){if(1&o&&(h.TgZ(0,"div",10),h.YNc(1,L,7,10,"div",15),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,X,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}function me(o,r){if(1&o&&(h.TgZ(0,"div",7)(1,"h6",8),h._uU(2),h.ALo(3,"localisedText"),h.qZA(),h.YNc(4,w,2,4,"div",9),h.YNc(5,re,2,4,"div",9),h.qZA()),2&o){const e=r.$implicit,t=h.oxw();h.ekj("my-auto",t.containsLogos),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,v,t.headersTextColor)),h.xp6(1),h.hij(" ",h.Dn7(3,6,e,t.language,"title")," "),h.xp6(2),h.Q6J("ngIf",e.logos),h.xp6(1),h.Q6J("ngIf",e.elements&&!e.logos)}}function Ae(o,r){if(1&o&&(h.TgZ(0,"span")(1,"a",6),h._uU(2),h.qZA()()),2&o){const e=r.$implicit,t=r.index,a=h.oxw();h.xp6(1),h.Q6J("href",e.url,h.LSH)("ngStyle",h.VKq(3,v,a.copyrightTextColor)),h.xp6(1),h.Oqu(t?", "+e.name:e.name)}}const Pe=function(o){return{background:o}};let je=(()=>{class o{constructor(e,t,a){this.storeService=e,this.translateService=t,this.dialog=a,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=hs();"reportIssue"===e&&(t.width="550px",this.dialog.open(jS,t))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(En),h.Y36(eo))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"footer",0)(1,"div",1),h.YNc(2,me,6,12,"div",2),h.qZA(),h._UZ(3,"hr",3),h.TgZ(4,"div",4),h._uU(5),h.YNc(6,Ae,3,5,"span",5),h._uU(7," Version "),h.TgZ(8,"a",6),h._uU(9),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.VKq(8,Pe,t.bgColor)),h.xp6(2),h.Q6J("ngForOf",t.footerColumns),h.xp6(2),h.Q6J("ngStyle",h.VKq(10,v,t.copyrightTextColor)),h.xp6(1),h.hij(" \xa9 ",t.currentYear," Copyright: "),h.xp6(1),h.Q6J("ngForOf",t.copyrightItems),h.xp6(2),h.Q6J("href",t.githubRepository,h.LSH)("ngStyle",h.VKq(12,v,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.version))},dependencies:[T.sg,T.O5,T.PC,NS,zS,p],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),o})();function Ze(o,r){if(1&o&&(h.TgZ(0,"div",8),h._UZ(1,"div",9),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}function ye(o,r){if(1&o&&(h.TgZ(0,"div",10),h._UZ(1,"div",11)(2,"mat-icon",12),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}const $e=function(o){return{color:o}};function bt(o,r){if(1&o&&(h.TgZ(0,"p",13),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.Q6J("ngStyle",h.VKq(2,$e,e.textColor)),h.xp6(1),h.hij(" ",e.headerTitle," ")}}const jt=function(o,r){return{background:o,color:r}},so=function(o,r){return{"min-height":o,"background-color":r}};let Ip=(()=>{class o{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(si),h.Y36(G_),h.Y36(En))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.YNc(1,Ze,2,1,"div",1),h.YNc(2,ye,3,1,"div",2),h.YNc(3,bt,2,4,"p",3),h.qZA(),h.TgZ(4,"div",4)(5,"div",5)(6,"div",6),h._UZ(7,"router-outlet"),h.qZA(),h.TgZ(8,"div",7),h._UZ(9,"perun-web-apps-footer"),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.WLB(5,jt,t.headerBackgroundColor,t.headerTextColor)),h.xp6(1),h.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),h.xp6(1),h.Q6J("ngIf","publications"===t.application),h.xp6(1),h.Q6J("ngIf",!!t.headerTitle),h.xp6(2),h.Q6J("ngStyle",h.WLB(8,so,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,ra,Kt,je],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),o})();const Ll=function(o){return{color:o}};function kp(o,r){if(1&o&&(h.TgZ(0,"button",8),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",4),h._uU(3," apps "),h.qZA()()),2&o){const e=h.oxw(),t=h.MAs(2);h.Q6J("matMenuTriggerFor",t)("matTooltip",h.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),h.xp6(2),h.Q6J("ngStyle",h.VKq(5,Ll,e.iconColor))}}function Vp(o,r){if(1&o&&(h.TgZ(0,"span",9),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.Q6J("ngStyle",h.VKq(6,Ll,e.textColor)),h.xp6(1),h.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function Bp(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"button",2),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onLogOut())}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&o&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"NAV.LOGOUT")," "))}let Op=(()=>{class o{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Pl))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(h.YNc(0,kp,4,7,"button",0),h.TgZ(1,"mat-menu",null,1)(3,"button",2),h.NdJ("click",function(){return t.redirectToUrl()}),h.TgZ(4,"span"),h._uU(5),h.qZA()()(),h.TgZ(6,"button",3)(7,"mat-icon",4),h._uU(8," person "),h.qZA(),h.YNc(9,Vp,2,8,"span",5),h.qZA(),h.TgZ(10,"mat-menu",null,6),h.YNc(12,Bp,3,3,"button",7),h.qZA()),2&e){const a=h.MAs(11);h.Q6J("ngIf",t.url),h.xp6(5),h.Oqu(t.label),h.xp6(1),h.Q6J("matMenuTriggerFor",a),h.xp6(1),h.Q6J("ngStyle",h.VKq(6,Ll,t.iconColor)),h.xp6(2),h.Q6J("ngIf",null!==t.user),h.xp6(3),h.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,ra,aA,Ka,lA,Zr,r_,en],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),o})();function Lp(o,r){1&o&&(h.TgZ(0,"div",6)(1,"span",7),h._uU(2," ~ \u{1f5f2}\xa0 "),h.qZA(),h.TgZ(3,"span",8),h._uU(4," DEVEL "),h.qZA(),h.TgZ(5,"span",7),h._uU(6," \xa0\u{1f5f2} ~ "),h.qZA()())}const Fp=function(o,r){return{background:o,color:r}},jp=function(){return["/consolidate"]},uH=function(o){return{color:o}};let hH=(()=>{class o{constructor(e,t,a){this.storeService=e,this.sanitizer=t,this.otherApplicationService=a,this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.isDevel=this.storeService.getProperty("is_devel"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.profileLabel=this.storeService.getProperty("profile_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo"))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(si),h.Y36(Cd))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:8,vars:20,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"a",1),h._UZ(2,"div",2),h.qZA(),h.TgZ(3,"p",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.YNc(6,Lp,7,0,"div",4),h._UZ(7,"perun-web-apps-header-menu",5),h.qZA()),2&e&&(h.Q6J("ngStyle",h.WLB(14,Fp,t.bgColor,t.textColor)),h.xp6(1),h.Q6J("routerLink",h.DdM(17,jp)),h.xp6(1),h.Q6J("innerHTML",t.logo,h.oJD),h.xp6(1),h.Q6J("ngStyle",h.VKq(18,uH,t.textColor)),h.xp6(1),h.hij(" ",h.lcZ(5,12,"HEADER.TITLE")," "),h.xp6(2),h.Q6J("ngIf",t.isDevel),h.xp6(1),h.Q6J("iconColor",t.iconColor)("label",t.profileLabel)("textColor",t.textColor)("logoutEnabled",t.logoutEnabled)("url",t.profileUrl)("user",t.principal.user))},dependencies:[T.O5,T.PC,mu,Op,en],styles:["#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),o})();const pH=function(o){return{"background-color":o}};function fH(o,r){if(1&o&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-header",1),h.TgZ(2,"div",2)(3,"div",3),h._UZ(4,"router-outlet"),h.qZA(),h.TgZ(5,"div",4),h._UZ(6,"perun-web-apps-footer"),h.qZA()()()),2&o){const e=h.oxw();h.xp6(2),h.Q6J("ngStyle",h.VKq(1,pH,e.contentBackgroundColor))}}function gH(o,r){1&o&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-login-screen-base",5),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Q6J("application","consolidator")("headerTitle",h.lcZ(2,2,"HEADER.TITLE")))}let mH=(()=>{class o{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(to))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(h.YNc(0,fH,7,3,"div",0),h.YNc(1,gH,3,4,"div",0)),2&e&&(h.Q6J("ngIf",!t.isLoginScreenShow),h.xp6(1),h.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[T.O5,T.PC,Kt,Ip,je,hH,en],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),o})();function US(o){return new h.vHH(3e3,!1)}function KH(){return typeof window<"u"&&typeof window.document<"u"}function kx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ws(o){switch(o.length){case 0:return new Zo;case 1:return o[0];default:return new id(o)}}function GS(o,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,s=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&s||new Map;d.forEach((H,N)=>{let ae=N,ke=H;if("offset"!==N)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(N);break;case _r:ke=l.get(N);break;default:ke=r.normalizeStyleValue(N,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),s=b,i=u}),c.length)throw function FH(o){return new h.vHH(3502,!1)}();return n}function Vx(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&Bx(e,"start",o)));break;case"done":o.onDone(()=>t(e&&Bx(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&Bx(e,"destroy",o)))}}function Bx(o,r,e){const l=Ox(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),c=o._data;return null!=c&&(l._data=c),l}function Ox(o,r,e,t,a="",l=0,c){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Dn(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function qS(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let Lx=(o,r)=>!1,WS=(o,r,e)=>[],$S=null;function Fx(o){const r=o.parentNode||o.host;return r===$S?null:r}(kx()||typeof Element<"u")&&(KH()?($S=(()=>document.documentElement)(),Lx=(o,r)=>{for(;r;){if(r===o)return!0;r=Fx(r)}return!1}):Lx=(o,r)=>o.contains(r),WS=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Fl=null,YS=!1;const QS=Lx,JS=WS;let KS=(()=>{class o{validateStyleProperty(e){return function XH(o){Fl||(Fl=function eP(){return typeof document<"u"?document.body:null}()||{},YS=!!Fl.style&&"WebkitAppearance"in Fl.style);let r=!0;return Fl.style&&!function ZH(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Fl.style,!r&&YS&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Fl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return QS(e,t)}getParentElement(e){return Fx(e)}query(e,t,a){return JS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new Zo(a,l)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),jx=(()=>{class o{}return o.NOOP=new KS,o})();const Nx="ng-enter",Rb="ng-leave",Ib="ng-trigger",kb=".ng-trigger",XS="ng-animating",zx=".ng-animating";function vs(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Ux(parseFloat(r[1]),r[2])}function Ux(o,r){return"s"===r?1e3*o:o}function Vb(o,r,e){return o.hasOwnProperty("duration")?o:function nP(o,r,e){let a,l=0,c="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(US()),{duration:0,delay:0,easing:""};a=Ux(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Ux(parseFloat(i),n[4]));const s=n[5];s&&(c=s)}else a=o;if(!e){let n=!1,i=r.length;a<0&&(r.push(function _H(){return new h.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function bH(){return new h.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,US())}return{duration:a,delay:l,easing:c}}(o,r,e)}function Np(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function eM(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function As(o,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of o)r.set(t,a);return r}function iM(o,r,e){return e?r+":"+e+";":""}function nM(o){let r="";for(let e=0;e{const l=qx(a);e&&!e.has(a)&&e.set(a,o.style[l]),o.style[l]=t}),kx()&&nM(o))}function jl(o,r){o.style&&(r.forEach((e,t)=>{const a=qx(t);o.style[a]=""}),kx()&&nM(o))}function zp(o){return Array.isArray(o)?1==o.length?o[0]:dh(o):o}const Gx=new RegExp("{{\\s*(.+?)\\s*}}","g");function rM(o){let r=[];if("string"==typeof o){let e;for(;e=Gx.exec(o);)r.push(e[1]);Gx.lastIndex=0}return r}function Bb(o,r,e){const t=o.toString(),a=t.replace(Gx,(l,c)=>{let n=r[c];return null==n&&(e.push(function yH(o){return new h.vHH(3003,!1)}()),n=""),n.toString()});return a==t?o:a}function Ob(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const oP=/-+([a-z0-9])/g;function qx(o){return o.replace(oP,(...r)=>r[1].toUpperCase())}function sP(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function wH(o){return new h.vHH(3004,!1)}()}}function aM(o,r){return window.getComputedStyle(o)[r]}function pP(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function fP(o,r,e){if(":"==o[0]){const i=function gP(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof i)return void r.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function kH(o){return new h.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(oM(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(oM(c,a))}(t,e,r)):e.push(o),e}const Nb=new Set(["true","1"]),zb=new Set(["false","0"]);function oM(o,r){const e=Nb.has(o)||zb.has(o),t=Nb.has(r)||zb.has(r);return(a,l)=>{let c="*"==o||o==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?Nb.has(o):zb.has(o)),!n&&t&&"boolean"==typeof l&&(n=l?Nb.has(r):zb.has(r)),c&&n}}const mP=new RegExp("s*:selfs*,?","g");function Wx(o,r,e,t){return new _P(o).build(r,e,t)}class _P{constructor(r){this._driver=r}build(r,e,t){const a=new yP(e);return this._resetContextStyleTimingState(a),Hn(this,zp(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function AH(){return new h.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,s=i.name;s.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=s}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function xH(){return new h.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{rM(i).forEach(s=>{c.hasOwnProperty(s)||l.add(s)})})}),l.size&&(Ob(l.values()),e.errors.push(function TH(o,r){return new h.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,zp(r.animation),e);return{type:1,matchers:pP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Nl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:Nl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Nl(r.options)}}visitAnimate(r,e){const t=function vP(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return $x(Vb(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=$x(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Vb(e,r);return $x(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const s={};t.easing&&(s.easing=t.easing),c=Fe(s)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===_r?t.push(n):e.errors.push(new h.vHH(3002,!1)):t.push(eM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const s=e.collectedStyles.get(e.currentQuerySelector),d=s.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function SH(o,r,e,t,a){return new h.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&s.set(i,{startTime:l,endTime:a}),e.options&&function aP(o,r,e){const t=r.params||{},a=rM(o);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function CH(o){return new h.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function MH(){return new h.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,s=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function wP(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=H+N.delay+zt,N.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Hn(this,zp(r.animation),e),options:Nl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Nl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Nl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function bP(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(mP,"")),o=o.replace(/@\*/g,kb).replace(/@\w+/g,e=>kb+"-"+e.slice(1)).replace(/:animating/g,zx),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,zp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Nl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function RH(){return new h.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Vb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,zp(r.animation),e),timings:t,options:null}}}class yP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nl(o){return o?(o=Np(o)).params&&(o.params=function CP(o){return o?Np(o):null}(o.params)):o={},o}function $x(o,r,e){return{duration:o,delay:r,easing:e}}function Yx(o,r,e,t,a,l,c=null,n=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class Ub{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const TP=new RegExp(":enter","g"),SP=new RegExp(":leave","g");function Qx(o,r,e,t,a,l=new Map,c=new Map,n,i,s=[]){return(new MP).buildKeyframes(o,r,e,t,a,l,c,n,i,s)}class MP{buildKeyframes(r,e,t,a,l,c,n,i,s,d=[]){s=s||new Ub;const u=new Jx(r,e,s,a,l,d,[]);u.options=i;const f=i.delay?vs(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let N=b.length-1;N>=0;N--){const ae=b[N];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[Yx(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?vs(t.duration):null,n=null!=t.delay?vs(t.delay):null;return 0!==c&&r.forEach(i=>{const s=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,s.duration+s.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Gb);const c=vs(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?vs(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Vb(e.params?Bb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?vs(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((s,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,s);l&&u.delayNextStep(l),s===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const Gb={};class Jx{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new qb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=vs(t.duration)),null!=t.delay&&(a.delay=vs(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Bb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new Jx(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Gb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new DP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(TP,"."+this._enterClassName)).replace(SP,"."+this._leaveClassName);let s=this._driver.query(this.element,r,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),n.push(...s)}return!l&&0==n.length&&c.push(function IH(o){return new h.vHH(3014,!1)}()),n}}class qb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new qb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function HP(o,r){const e=new Map;let t;return o.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,_r)}else As(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const s=Bb(i,l,t);this._pendingStyles.set(n,s),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,s)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const s=As(n,new Map,this._backFill);s.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||s.set("offset",i/this.duration),a.push(s)});const l=r.size?Ob(r.values()):[],c=e.size?Ob(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return Yx(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class DP extends qb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=As(r[0]);i.set("offset",0),l.push(i);const s=As(r[0]);s.set("offset",cM(n)),l.push(s);const d=r.length-1;for(let u=1;u<=d;u++){let f=As(r[u]);const b=f.get("offset");f.set("offset",cM((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return Yx(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function cM(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class Kx{}const PP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RP extends Kx{normalizePropertyName(r,e){return qx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(PP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function vH(o,r){return new h.vHH(3005,!1)}())}return c+l}}function dM(o,r,e,t,a,l,c,n,i,s,d,u,f){return{type:0,element:o,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:s,postStyleProps:d,totalTime:u,errors:f}}const Zx={};class uM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function IP(o,r,e,t,a){return o.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,s,d){const u=[],f=this.ast.options&&this.ast.options.params||Zx,H=this.buildStyles(t,n&&n.params||Zx,u),N=i&&i.params||Zx,ae=this.buildStyles(a,N,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,xr={params:kP(N,f),delay:this.ast.options?.delay},nr=d?[]:Qx(r,e,this.ast.animation,l,c,H,ae,xr,s,u);let tn=0;if(nr.forEach(po=>{tn=Math.max(po.duration+po.delay,tn)}),u.length)return dM(e,this._triggerName,t,a,zt,H,ae,[],[],lt,yt,tn,u);nr.forEach(po=>{const fo=po.element,PD=Dn(lt,fo,new Set);po.preStyleProps.forEach(Ul=>PD.add(Ul));const Kp=Dn(yt,fo,new Set);po.postStyleProps.forEach(Ul=>Kp.add(Ul)),fo!==e&&ke.add(fo)});const ho=Ob(ke.values());return dM(e,this._triggerName,t,a,zt,H,ae,nr,ho,lt,yt,tn)}}function kP(o,r){const e=Np(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class VP{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Np(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Bb(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class OP{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new VP(a.style,a.options&&a.options.params||{},t))}),hM(this.states,"true","1"),hM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new uM(r,a,this.states))}),this.fallbackTransition=function LP(o,r,e){return new uM(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function hM(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const FP=new Ub;class jP{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Wx(this._driver,e,t,[]);if(t.length)throw function jH(o){return new h.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=GS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=Qx(this._driver,e,l,Nx,Rb,new Map,new Map,t,FP,a),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function NH(){return new h.vHH(3300,!1)}()),c=[]),a.length)throw function zH(o){return new h.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const s=ws(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,s),s.onDestroy(()=>this.destroy(r)),this.players.push(s),s}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function UH(o){return new h.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Ox(e,"","","");return Vx(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(r)}}}const pM="ng-animate-queued",Xx="ng-animate-disabled",qP=[],fM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},WP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tr="__ng_removed";class e0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function JP(o){return o??null}(t?r.value:r),t){const l=Np(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Up="void",t0=new e0(Up);class $P{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,ir(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function GH(o,r){return new h.vHH(3302,!1)}();if(null==t||0==t.length)throw function qH(o){return new h.vHH(3303,!1)}();if(!function KP(o){return"start"==o||"done"==o}(t))throw function WH(o,r){return new h.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(ir(r,Ib),ir(r,Ib+"-"+e),n.set(e,t0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function $H(o){return new h.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new n0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(ir(r,Ib),ir(r,Ib+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const s=new e0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&s.absorbOptions(i.options),n.set(e,s),i||(i=t0),s.value!==Up&&i.value===s.value){if(!function eR(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{jl(r,ae),ha(r,ke)})}return}const f=Dn(this._engine.playersByElement,r,[]);f.forEach(N=>{N.namespaceId==this.id&&N.triggerName==e&&N.queued&&N.destroy()});let b=l.matchTransition(i.value,s.value,r,s.params),H=!1;if(!b){if(!a)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:s,player:c,isFallbackTransition:H}),H||(ir(r,pM),c.onStart(()=>{Od(r,pM)})),c.onDone(()=>{let N=this.players.indexOf(c);N>=0&&this.players.splice(N,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,kb,!0);t.forEach(a=>{if(a[tr])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,s)=>{if(c.set(s,i.value),this._triggers.has(s)){const d=this.trigger(r,s,Up,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&ws(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,s=t.get(c)||t0,d=new e0(Up),u=new n0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:s,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[tr];(!l||l===fM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){ir(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Ox(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Vx(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class YP{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new $P(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const s=t.indexOf(i);t.splice(s+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if(Wb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!Wb(e))return;const l=e[tr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),ir(r,Xx)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Od(r,Xx))}removeNode(r,e,t,a){if(Wb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[tr]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return Wb(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,kb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,zx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ws(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[tr];if(e&&e.setForRemoval){if(r[tr]=fM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Xx)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ws(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function YH(o){return new h.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ub,a=[],l=new Map,c=[],n=new Map,i=new Map,s=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Xe=this.driver.query(Ge,".ng-animate-queued",!0);for(let nt=0;nt{const nt=Nx+N++;H.set(Xe,nt),Ge.forEach(xt=>ir(xt,nt))});const ae=[],ke=new Set,lt=new Set;for(let Ge=0;Geke.add(xt)):lt.add(Xe))}const yt=new Map,zt=_M(f,Array.from(ke));zt.forEach((Ge,Xe)=>{const nt=Rb+N++;yt.set(Xe,nt),Ge.forEach(xt=>ir(xt,nt))}),r.push(()=>{b.forEach((Ge,Xe)=>{const nt=H.get(Xe);Ge.forEach(xt=>Od(xt,nt))}),zt.forEach((Ge,Xe)=>{const nt=yt.get(Xe);Ge.forEach(xt=>Od(xt,nt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const xr=[],nr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(nt=>{const xt=nt.player,Ii=nt.element;if(xr.push(xt),this.collectedEnterElements.length){const Yi=Ii[tr];if(Yi&&Yi.setForMove){if(Yi.previousTriggersValues&&Yi.previousTriggersValues.has(nt.triggerName)){const Gl=Yi.previousTriggersValues.get(nt.triggerName),rr=this.statesByElement.get(nt.element);if(rr&&rr.has(nt.triggerName)){const AC=rr.get(nt.triggerName);AC.value=Gl,rr.set(nt.triggerName,AC)}}return void xt.destroy()}}const fa=!u||!this.driver.containsElement(u,Ii),Pn=yt.get(Ii),Ts=H.get(Ii),ai=this._buildInstruction(nt,t,Ts,Pn,fa);if(ai.errors&&ai.errors.length)return void nr.push(ai);if(fa)return xt.onStart(()=>jl(Ii,ai.fromStyles)),xt.onDestroy(()=>ha(Ii,ai.toStyles)),void a.push(xt);if(nt.isFallbackTransition)return xt.onStart(()=>jl(Ii,ai.fromStyles)),xt.onDestroy(()=>ha(Ii,ai.toStyles)),void a.push(xt);const kD=[];ai.timelines.forEach(Yi=>{Yi.stretchStartingKeyframe=!0,this.disabledNodes.has(Yi.element)||kD.push(Yi)}),ai.timelines=kD,t.append(Ii,ai.timelines),c.push({instruction:ai,player:xt,element:Ii}),ai.queriedElements.forEach(Yi=>Dn(n,Yi,[]).push(xt)),ai.preStyleProps.forEach((Yi,Gl)=>{if(Yi.size){let rr=i.get(Gl);rr||i.set(Gl,rr=new Set),Yi.forEach((AC,F0)=>rr.add(F0))}}),ai.postStyleProps.forEach((Yi,Gl)=>{let rr=s.get(Gl);rr||s.set(Gl,rr=new Set),Yi.forEach((AC,F0)=>rr.add(F0))})});if(nr.length){const Ge=[];nr.forEach(Xe=>{Ge.push(function QH(o,r){return new h.vHH(3505,!1)}())}),xr.forEach(Xe=>Xe.destroy()),this.reportError(Ge)}const tn=new Map,ho=new Map;c.forEach(Ge=>{const Xe=Ge.element;t.has(Xe)&&(ho.set(Xe,Xe),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,tn))}),a.forEach(Ge=>{const Xe=Ge.element;this._getPreviousPlayers(Xe,!1,Ge.namespaceId,Ge.triggerName,null).forEach(xt=>{Dn(tn,Xe,[]).push(xt),xt.destroy()})});const po=ae.filter(Ge=>CM(Ge,i,s)),fo=new Map;mM(fo,this.driver,lt,s,_r).forEach(Ge=>{CM(Ge,i,s)&&po.push(Ge)});const Kp=new Map;b.forEach((Ge,Xe)=>{mM(Kp,this.driver,new Set(Ge),i,"!")}),po.forEach(Ge=>{const Xe=fo.get(Ge),nt=Kp.get(Ge);fo.set(Ge,new Map([...Array.from(Xe?.entries()??[]),...Array.from(nt?.entries()??[])]))});const Ul=[],RD=[],ID={};c.forEach(Ge=>{const{element:Xe,player:nt,instruction:xt}=Ge;if(t.has(Xe)){if(d.has(Xe))return nt.onDestroy(()=>ha(Xe,xt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(xt.totalTime),void a.push(nt);let Ii=ID;if(ho.size>1){let Pn=Xe;const Ts=[];for(;Pn=Pn.parentNode;){const ai=ho.get(Pn);if(ai){Ii=ai;break}Ts.push(Pn)}Ts.forEach(ai=>ho.set(ai,Ii))}const fa=this._buildAnimation(nt.namespaceId,xt,tn,l,Kp,fo);if(nt.setRealPlayer(fa),Ii===ID)Ul.push(nt);else{const Pn=this.playersByElement.get(Ii);Pn&&Pn.length&&(nt.parentPlayer=ws(Pn)),a.push(nt)}}else jl(Xe,xt.fromStyles),nt.onDestroy(()=>ha(Xe,xt.toStyles)),RD.push(nt),d.has(Xe)&&a.push(nt)}),RD.forEach(Ge=>{const Xe=l.get(Ge.element);if(Xe&&Xe.length){const nt=ws(Xe);Ge.setRealPlayer(nt)}}),a.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!fa.destroyed);Ii.length?ZP(this,Xe,Ii):this.processLeaveNode(Xe)}return ae.length=0,Ul.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Xe=this.players.indexOf(Ge);this.players.splice(Xe,1)}),Ge.play()}),Ul}elementContainsData(r,e){let t=!1;const a=e[tr];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Up;n.forEach(s=>{s.queued||!i&&s.triggerName!=a||c.push(s)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const s=i.element,d=s!==l,u=Dn(t,s,[]);this._getPreviousPlayers(s,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}jl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,s=[],d=new Set,u=new Set,f=e.timelines.map(H=>{const N=H.element;d.add(N);const ae=N[tr];if(ae&&ae.removedBeforeQueried)return new Zo(H.duration,H.delay);const ke=N!==i,lt=function XP(o){const r=[];return bM(o,r),r}((t.get(N)||qP).map(tn=>tn.getRealPlayer())).filter(tn=>!!tn.element&&tn.element===N),yt=l.get(N),zt=c.get(N),xr=GS(0,this._normalizer,0,H.keyframes,yt,zt),nr=this._buildPlayer(H,xr,lt);if(H.subTimeline&&a&&u.add(N),ke){const tn=new n0(r,n,N);tn.setRealPlayer(nr),s.push(tn)}return nr});s.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function QP(o,r,e){let t=o.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>ir(H,XS));const b=ws(f);return b.onDestroy(()=>{d.forEach(H=>Od(H,XS)),ha(i,e.toStyles)}),u.forEach(H=>{Dn(a,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Zo(r.duration,r.delay)}}class n0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Zo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Vx(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Wb(o){return o&&1===o.nodeType}function gM(o,r){const e=o.style.display;return o.style.display=r??"none",e}function mM(o,r,e,t,a){const l=[];e.forEach(i=>l.push(gM(i)));const c=[];t.forEach((i,s)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(s,u,a);d.set(u,f),(!f||0==f.length)&&(s[tr]=WP,c.push(s))}),o.set(s,d)});let n=0;return e.forEach(i=>gM(i,l[n++])),c}function _M(o,r){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const s=n.parentNode;return i=e.has(s)?s:a.has(s)?1:c(s),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function ir(o,r){o.classList?.add(r)}function Od(o,r){o.classList?.remove(r)}function ZP(o,r,e){ws(e).onDone(()=>o.processLeaveNode(r))}function bM(o,r){for(let e=0;ea.add(l)):r.set(o,t),e.delete(o),!0}class $b{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new YP(r,e,t),this._timelineEngine=new jP(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Wx(this._driver,l,i,[]);if(i.length)throw function LH(o,r){return new h.vHH(3404,!1)}();n=function BP(o,r,e){return new OP(o,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=qS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=qS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let iR=(()=>{class o{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=o.initialStylesByElement.get(e);l||o.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ha(this._element,this._initialStyles),this._endStyles&&(ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),ha(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function r0(o){let r=null;return o.forEach((e,t)=>{(function nR(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class yM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:aM(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class rR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return QS(r,e)}getParentElement(r){return Fx(r)}query(r,e,t){return JS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const s=new Map,d=c.filter(b=>b instanceof yM);(function lP(o,r){return 0===o||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((H,N)=>s.set(N,H))});let u=function rP(o){return o.length?o[0]instanceof Map?o:o.map(r=>eM(r)):[]}(e).map(b=>As(b));u=function cP(o,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,aM(o,n)))}}return r}(r,u,s);const f=function tR(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=r0(r[0]),r.length>1&&(t=r0(r[r.length-1]))):r instanceof Map&&(e=r0(r)),e||t?new iR(o,e,t):null}(r,u);return new yM(r,u,i,f)}}let aR=(()=>{class o extends ch{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?dh(e):e;return wM(this._renderer,null,t,"register",[a]),new oR(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.FYo),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class oR extends class wv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new sR(this._id,r,e||{},this._renderer)}}class sR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return wM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function wM(o,r,e,t,a){return o.setProperty(r,`@@${e}:${t}`,a)}const vM="@.disabled";let lR=(()=>{class o{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new AM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new cR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.FYo),h.LFG($b),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class AM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==vM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class cR extends AM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==vM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function dR(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function uR(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const xM=[{provide:ch,useClass:aR},{provide:Kx,useFactory:function pR(){return new RP}},{provide:$b,useClass:(()=>{class o extends $b{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(jx),h.LFG(Kx),h.LFG(h.z2F))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:h.FYo,useFactory:function fR(o,r,e){return new lR(o,r,e)},deps:[ue,$b,h.R0b]}],a0=[{provide:jx,useFactory:()=>new rR},{provide:h.QbO,useValue:"BrowserAnimations"},...xM],TM=[{provide:jx,useClass:KS},{provide:h.QbO,useValue:"NoopAnimations"},...xM];let gR=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?TM:a0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:a0,imports:[_a]}),o})(),MM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),Qb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,Oo,MM,We,MM]}),o})();function Jb(o){return o&&"function"==typeof o.connect}class DM{applyChanges(r,e,t,a,l){r.forEachOperation((c,n,i)=>{let s,d;if(null==c.previousIndex){const u=t(c,n,i);s=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==i?(e.remove(n),d=3):(s=e.get(n),e.move(s,i),d=2);l&&l({context:s?.context,operation:d,record:c})})}detach(){}}const Gp=new h.OlP("_ViewRepeater"),PR=[[["caption"]],[["colgroup"],["col"]]],RR=["caption","colgroup, col"];function s0(o){return class extends o{constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(r){const e=this._sticky;this._sticky=it(r),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ld=new h.OlP("CDK_TABLE");let Fd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkCellDef",""]]}),o})(),jd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkHeaderCellDef",""]]}),o})(),Kb=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkFooterCellDef",""]]}),o})();class BR{}const OR=s0(BR);let lo=(()=>{class o extends OR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=it(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,Fd,5),h.Suo(a,jd,5),h.Suo(a,Kb,5)),2&e){let l;h.iGM(l=h.CRH())&&(t.cell=l.first),h.iGM(l=h.CRH())&&(t.headerCell=l.first),h.iGM(l=h.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),h.qOj]}),o})();class l0{constructor(r,e){e.nativeElement.classList.add(...r._columnCssClassName)}}let c0=(()=>{class o extends l0{constructor(e,t){super(e,t)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(lo),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.qOj]}),o})(),d0=(()=>{class o extends l0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const a=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell")}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(lo),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[h.qOj]}),o})();class RM{constructor(){this.tasks=[],this.endTasks=[]}}const u0=new h.OlP("_COALESCED_STYLE_SCHEDULER");let IM=(()=>{class o{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RM,this._getScheduleObservable().pipe(ft(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RM;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,wi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Gt.q)(1))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),h0=(()=>{class o{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof qp?e.headerCell.template:this instanceof Wp?e.footerCell.template:e.cell.template}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4))},o.\u0275dir=h.lG2({type:o,features:[h.TTD]}),o})();class LR extends h0{}const FR=s0(LR);let qp=(()=>{class o extends FR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),o})();class jR extends h0{}const NR=s0(jR);let Wp=(()=>{class o extends NR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),o})(),Zb=(()=>{class o extends h0{constructor(e,t,a){super(e,t),this._table=a}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.qOj]}),o})(),co=(()=>{class o{constructor(e){this._viewContainer=e,o.mostRecentCellOutlet=this}ngOnDestroy(){o.mostRecentCellOutlet===this&&(o.mostRecentCellOutlet=null)}}return o.mostRecentCellOutlet=null,o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkCellOutlet",""]]}),o})(),p0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),g0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),Xb=(()=>{class o{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["ng-template","cdkNoDataRow",""]]}),o})();const kM=["top","bottom","left","right"];class zR{constructor(r,e,t,a,l=!0,c=!0,n){this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=a,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=n,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(r,e){const t=[];for(const a of r)if(a.nodeType===a.ELEMENT_NODE){t.push(a);for(let l=0;l{for(const a of t)this._removeStickyStyle(a,e)})}updateStickyColumns(r,e,t,a=!0){if(!r.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=r[0],c=l.children.length,n=this._getCellWidths(l,a),i=this._getStickyStartColumnPositions(n,e),s=this._getStickyEndColumnPositions(n,t),d=e.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",H=f?"left":"right";for(const N of r)for(let ae=0;aee[ae]?N:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:n.slice(u).map((N,ae)=>t[ae+u]?N:null).reverse()}))})}stickRows(r,e,t){if(!this._isBrowser)return;const a="bottom"===t?r.slice().reverse():r,l="bottom"===t?e.slice().reverse():e,c=[],n=[],i=[];for(let d=0,u=0;d{for(let d=0;d{e.some(a=>!a)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(r,e){for(const a of e)r.style[a]="",r.classList.remove(this._borderCellCss[a]);kM.some(a=>-1===e.indexOf(a)&&r.style[a])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,e,t,a){r.classList.add(this._stickCellCss),a&&r.classList.add(this._borderCellCss[e]),r.style[e]=`${t}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const a of kM)r.style[a]&&(t+=e[a]);return t?`${t}`:""}_getCellWidths(r,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],a=r.children;for(let l=0;l0;l--)e[l]&&(t[l]=a,a+=r[l]);return t}}const m0=new h.OlP("CDK_SPL");let eC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","rowOutlet",""]]}),o})(),tC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","headerRowOutlet",""]]}),o})(),iC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","footerRowOutlet",""]]}),o})(),nC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","noDataRowOutlet",""]]}),o})(),rC=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=c,this._platform=i,this._viewRepeater=s,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new h.vpe,this.viewChange=new Yt({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=n,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=it(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=it(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(ft(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jb(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(a,l,c)=>this._getEmbeddedViewArgs(a.item,c),a=>a.item.data,a=>{1===a.operation&&a.context&&this._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(a=>{t.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&h.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Gt.q)(1),ft(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...a],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let n=0;n{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=0;a{const n=a&&a.has(c)?a.get(c):[];if(n.length){const i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),aC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=aC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=aC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=aC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,n)=>c||!!n.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const a=this._headerRowDefs.reduce(e,!1);a&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||a||l}_switchDataSource(e){this._data=[],Jb(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Jb(this.dataSource)?e=this.dataSource.connect(this):Tn(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,De.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(ft(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const a=Array.from(t.columns||[]).map(n=>this._columnDefsByName.get(n)),l=a.map(n=>n.sticky),c=a.map(n=>n.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let a=0;a!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&a.push(l)}return a}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,a,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,a);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let a of this._getCellTemplates(e))co.mostRecentCellOutlet&&co.mostRecentCellOutlet._viewContainer.createEmbeddedView(a,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,a=e.length;t{const a=this._columnDefsByName.get(t);return e.extractCellTemplate(a)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const a of t){const l=this._document.createElement(a.tag);l.setAttribute("role","rowgroup");for(const c of a.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,a)=>t||a.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new zR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,De.of)()).pipe(ft(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const a=this._noDataRowOutlet.viewContainer;if(t){const l=a.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else a.clear();this._isShowingNoDataRow=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.ZZ4),h.Y36(h.sBO),h.Y36(h.SBq),h.$8M("role"),h.Y36(Qn,8),h.Y36(T.K0),h.Y36(ci),h.Y36(Gp),h.Y36(u0),h.Y36(qo),h.Y36(m0,12),h.Y36(h.R0b,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,Xb,5),h.Suo(a,lo,5),h.Suo(a,Zb,5),h.Suo(a,qp,5),h.Suo(a,Wp,5)),2&e){let l;h.iGM(l=h.CRH())&&(t._noDataRow=l.first),h.iGM(l=h.CRH())&&(t._contentColumnDefs=l),h.iGM(l=h.CRH())&&(t._contentRowDefs=l),h.iGM(l=h.CRH())&&(t._contentHeaderRowDefs=l),h.iGM(l=h.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(h.Gf(eC,7),h.Gf(tC,7),h.Gf(iC,7),h.Gf(nC,7)),2&e){let a;h.iGM(a=h.CRH())&&(t._rowOutlet=a.first),h.iGM(a=h.CRH())&&(t._headerRowOutlet=a.first),h.iGM(a=h.CRH())&&(t._footerRowOutlet=a.first),h.iGM(a=h.CRH())&&(t._noDataRowOutlet=a.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[h._Bn([{provide:Ld,useExisting:o},{provide:Gp,useClass:DM},{provide:u0,useClass:IM},{provide:m0,useValue:null}])],ngContentSelectors:RR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(PR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})();function aC(o,r){return o.concat(Array.from(r))}let GR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Ua]}),o})();const qR=[[["caption"]],[["colgroup"],["col"]]],WR=["caption","colgroup, col"];let _0=(()=>{class o extends rC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[h._Bn([{provide:Gp,useClass:DM},{provide:rC,useExisting:o},{provide:Ld,useExisting:o},{provide:u0,useClass:IM},{provide:m0,useValue:null}]),h.qOj],ngContentSelectors:WR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(qR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})(),oC=(()=>{class o extends Fd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matCellDef",""]],features:[h._Bn([{provide:Fd,useExisting:o}]),h.qOj]}),o})(),sC=(()=>{class o extends jd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matHeaderCellDef",""]],features:[h._Bn([{provide:jd,useExisting:o}]),h.qOj]}),o})(),lC=(()=>{class o extends lo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h._Bn([{provide:lo,useExisting:o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),h.qOj]}),o})(),cC=(()=>{class o extends c0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.qOj]}),o})(),dC=(()=>{class o extends d0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.qOj]}),o})(),BM=(()=>{class o extends qp{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h._Bn([{provide:qp,useExisting:o}]),h.qOj]}),o})(),b0=(()=>{class o extends Zb{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h._Bn([{provide:Zb,useExisting:o}]),h.qOj]}),o})(),OM=(()=>{class o extends p0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h._Bn([{provide:p0,useExisting:o}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),C0=(()=>{class o extends g0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h._Bn([{provide:g0,useExisting:o}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),uC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[GR,We,We]}),o})();class hC extends class nI extends class DR{}{constructor(r=[]){super(),this._renderData=new Yt([]),this._filter=new Yt(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const a=e[t];if(Sg(a)){const l=Number(a);return l<9007199254740991?l:a}return a},this.sortData=(e,t)=>{const a=t.active,l=t.direction;return a&&""!=l?e.sort((c,n)=>{let i=this.sortingDataAccessor(c,a),s=this.sortingDataAccessor(n,a);const d=typeof i,u=typeof s;d!==u&&("number"===d&&(i+=""),"number"===u&&(s+=""));let f=0;return null!=i&&null!=s?i>s?f=1:i{const a=Object.keys(e).reduce((c,n)=>c+e[n]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=a.indexOf(l)},this._data=new Yt(r),this._updateChangeSubscription()}get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}_updateChangeSubscription(){const r=this._sort?(0,$i.T)(this._sort.sortChange,this._sort.initialized):(0,De.of)(null),e=this._paginator?(0,$i.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,De.of)(null),a=(0,Ir.a)([this._data,this._filter]).pipe((0,ze.U)(([n])=>this._filterData(n))),l=(0,Ir.a)([a,r]).pipe((0,ze.U)(([n])=>this._orderData(n))),c=(0,Ir.a)([l,e]).pipe((0,ze.U)(([n])=>this._pageData(n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=c.subscribe(n=>this._renderData.next(n))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const e=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(e,e+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=r,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,a=Math.min(e.pageIndex,t);a!==e.pageIndex&&(e.pageIndex=a,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}let y0=(()=>{class o{constructor(){this.changes=new He.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const aI={provide:y0,deps:[[new h.FiY,new h.tp0,y0]],useFactory:function rI(o){return o||new y0}};let w0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[aI],imports:[T.ez,We]}),o})();function oI(o,r){if(1&o&&(h.O4$(),h._UZ(0,"circle",4)),2&o){const e=h.oxw(),t=h.MAs(1);h.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}function sI(o,r){if(1&o&&(h.O4$(),h._UZ(0,"circle",4)),2&o){const e=h.oxw(),t=h.MAs(1);h.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}const cI=No(class{constructor(o){this._elementRef=o}},"primary"),dI=new h.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function uI(){return{diameter:100}}});class Ar extends cI{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Ar._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ln(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ln(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ln(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Vo(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_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(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Ar._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ar._diameters=new WeakMap,Ar.\u0275fac=function(r){return new(r||Ar)(h.Y36(h.SBq),h.Y36(ci),h.Y36(T.K0,8),h.Y36(h.QbO,8),h.Y36(dI),h.Y36(h.sBO),h.Y36(qo),h.Y36(h.R0b))},Ar.\u0275cmp=h.Xpm({type:Ar,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(h.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[h.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(r,e){1&r&&(h.O4$(),h.TgZ(0,"svg",0,1),h.YNc(2,oI,1,11,"circle",2),h.YNc(3,sI,1,9,"circle",3),h.qZA()),2&r&&(h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.Q6J("ngSwitch","indeterminate"===e.mode),h.uIk("viewBox",e._getViewBox()),h.xp6(2),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.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 pC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,T.ez,We]}),o})(),A0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[yr,T.ez]}),o})();const NM=new h.OlP("mat-chips-default-options");let T0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Gc,{provide:NM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),o})();function E0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?o.setProperty(t,a,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Nd(o,r){const e=r?"":"none";E0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zM(o,r,e){E0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function fC(o,r){return r&&"none"!=r?o+" "+r:o}function UM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function S0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function M0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function D0(o,r,e){const{top:t,bottom:a,left:l,right:c}=o;return e>=t&&e<=a&&r>=l&&r<=c}function $p(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function GM(o,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:s}=o,d=i*r,u=s*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:M0(e)})})}handleScroll(r){const e=Ai(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const s=this.getViewportScrollPosition();l=s.top,c=s.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((s,d)=>{s.clientRect&&e!==d&&e.contains(d)&&$p(s.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function WM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const s=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=s.x-d.x+this._passiveTransform.x,u.y=s.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:n,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new qM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=it(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Nd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ni(t)),this._handles.forEach(t=>Nd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ni(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,gC),e.addEventListener("touchstart",this._pointerDown,JM),e.addEventListener("dragstart",this._nativeDragStart,gC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ni(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Nd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Nd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Yp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),zM(t,!1,H0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Yp(e),l=!a&&0!==e.button,c=this._rootElement,n=Ai(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=a?Fc(e):Yn(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||s)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=M0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){zM(this._rootElement,!0,H0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=ZM(c,this._document),this._previewRef=c,r.matchSize?XM(a,l):a.style.transform=mC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=WM(this._rootElement),XM(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return E0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},H0),Nd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function EI(o){const r=getComputedStyle(o),e=S0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=S0(r,"transition-duration"),c=S0(r,"transition-delay");return UM(l[a])+UM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||Ai(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=ZM(this._placeholderRef,this._document)):t=WM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Yp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Yp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:s}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(s-c);t=KM(t,n.left+l,n.right-(i-l)),a=KM(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Nd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,gC),r.removeEventListener("touchstart",this._pointerDown,JM),r.removeEventListener("dragstart",this._nativeDragStart,gC)}_applyRootElementTransform(r,e){const t=mC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=fC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=mC(r,e);this._preview.style.transform=fC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Yp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=Ai(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&$p(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Vo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ni(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function mC(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function KM(o,r,e){return Math.max(r,Math.min(e,o))}function Yp(o){return"t"===o.type[0]}function ZM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function XM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=mC(r.left,r.top)}function Qp(o,r){return Math.max(0,Math.min(r,o))}class PI{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),s=l[c],u=s.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),H=this._getSiblingOffsetPx(i,l,f),N=l.slice();return function HI(o,r,e){const t=Qp(r,o.length-1),a=Qp(e,o.length-1);if(t===a)return;const l=o[t],c=a{if(N[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:H,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=fC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),$p(ae.clientRect,0,yt)):(zt.style.transform=fC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),$p(ae.clientRect,yt,0))}),this._previousSwap.overlaps=D0(u,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let s=c[l];if(s===r&&(s=c[l+1]),!s&&(null==l||-1===l||l-1&&c.splice(n,1),s&&!this._dragDropRegistry.isDragging(s)){const d=s.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ni(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{$p(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:M0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",s=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[s]:n+=l[i]-c.clientRect[s]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const s=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function TI(o=0,r=Jc.z){return o<0&&(o=0),(0,fm.H)(o,o,r)}(0,om).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ni(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new qM(t),this._sortStrategy=new PI(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ni(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!GM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||GM(c.clientRect,.05,r,e)&&([a,l]=function II(o,r,e,t){const a=iD(r,t),l=nD(r,e);let c=0,n=0;if(a){const i=o.scrollTop;1===a?i>0&&(c=1):o.scrollHeight-i>o.clientHeight&&(c=2)}if(l){const i=o.scrollLeft;1===l?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=iD(i,e),l=nD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ni(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ni(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ni(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&D0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!D0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ni(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Vo(ni(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function iD(o,r){const{top:e,bottom:t,height:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function nD(o,r){const{left:e,right:t,width:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const _C=yn({passive:!1,capture:!0});let kI=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_C)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_C)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_C}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:_C}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Vi.y(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,$i.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const VI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let BI=(()=>{class o{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=VI){return new DI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new RI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(h.R0b),h.LFG(qo),h.LFG(kI))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),OI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[BI],imports:[Jn]}),o})(),rD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez]}),o})(),LI=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"userFullName",type:o,pure:!0}),o})(),FI=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const a=this.storage.get("custom_labels");if(a)for(const l of a)if(l.label===e)return l[t];return e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(En,16),h.Y36(fi,16))},o.\u0275pipe=h.Yjl({name:"customTranslate",type:o,pure:!0}),o})(),jI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),qI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),XI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[qI,We,We]}),o})(),ik=(()=>{class o{constructor(){this.changes=new He.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const hk={provide:new h.OlP("mat-datepicker-scroll-strategy"),deps:[Ti],useFactory:function uk(o){return()=>o.scrollStrategies.reposition()}};let V0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[ik,hk],imports:[T.ez,An,Ya,Nc,ea,We,Jn]}),o})(),Dk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,We]}),o})();new h.OlP("mat-selectsearch-default-options");let kk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[[T.ez,Ol,An,Qb,yr,pC,_l]]}),o})(),uD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Vk=(()=>{class o{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=it(e)}get inset(){return this._inset}set inset(e){this._inset=it(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),h.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),o})(),B0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Bk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),pD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Bk,ea]}),o})(),gD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[zo,We,zo,We]}),o})(),Fk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr]}),o})(),O0=(()=>{class o{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Jk={provide:O0,deps:[[new h.FiY,new h.tp0,O0]],useFactory:function Qk(o){return o||new O0}};let CD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Jk,Gc],imports:[We,T.ez,ea,An,Fk,yr,hi,We]}),o})(),yD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Jn,Jn,We]}),o})(),vD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[zo,hi,We,Ju,T.ez,zo,We,Ju,B0]}),o})(),AD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),m1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,ea,hi,Oo,Nc,We]}),o})(),xD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),TD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[xD,hi,We,Oo,xD,We]}),o})(),L0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,uD,B0,pD,An,gD,Qb,yr,uC,us,pC,es,Rp,Ua,Pp,Ol,CD,V0,Uw,yD,vD,na,AD,w0,er,_l,is,hi,uC,TD,T0,uD,B0,pD,An,gD,Qb,yr,uC,us,pC,es,Rp,Ua,Pp,Ol,CD,V0,Uw,yD,vD,na,AD,w0,er,_l,is,hi,m1,TD,T0]}),o})(),D1=(()=>{class o extends Wg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const H1={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ED=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:D1},{provide:$u,useValue:H1}],imports:[T.ez,Qb,uC,Pp,T0,OI,ss,Mc,w0,er,pC,A0,yr,na,An,_l,es,Ol,Rp,hi,rD,jI,XI,V0,Dk,Ku,is,kk,Ua,us,hd,L0]}),o})();function F1(o,r){1&o&&h._UZ(0,"mat-spinner",3)}function j1(o,r){1&o&&h._UZ(0,"th",15)}function N1(o,r){if(1&o&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.hij(" ",e.userExtSource.extSource.name," ")}}function z1(o,r){1&o&&h._UZ(0,"tr",17)}function U1(o,r){1&o&&h._UZ(0,"tr",18)}function G1(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div")(1,"div",4)(2,"p"),h._uU(3),h.ALo(4,"translate"),h.ALo(5,"customTranslate"),h.qZA(),h.TgZ(6,"div",5),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.TgZ(10,"table",6),h.ynx(11,7),h.YNc(12,j1,1,0,"th",8),h.YNc(13,N1,2,1,"td",9),h.BQk(),h.YNc(14,z1,1,0,"tr",10),h.YNc(15,U1,1,0,"tr",11),h.qZA()(),h.TgZ(16,"div",12)(17,"button",13),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onCancel())}),h._uU(18),h.ALo(19,"translate"),h.ALo(20,"customTranslate"),h.qZA(),h.TgZ(21,"button",14),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onSubmit())}),h._uU(22),h.ALo(23,"translate"),h.ALo(24,"customTranslate"),h.qZA()()()}if(2&o){const e=h.oxw();h.xp6(3),h.hij(" ",h.lcZ(4,7,h.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),h.xp6(4),h.hij(" ",h.lcZ(8,11,h.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(3),h.hij(" ",h.lcZ(19,15,h.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),h.xp6(4),h.hij(" ",h.lcZ(23,19,h.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let q1=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=a,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(n=>this.successMessage=n)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new hC(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa),h.Y36(D_),h.Y36(Pr),h.Y36(En),h.Y36(bd))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div"),h.YNc(5,F1,1,0,"mat-spinner",1),h.YNc(6,G1,25,23,"div",2),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,6,h.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),h.xp6(3),h.Tol(t.theme),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[T.O5,_0,sC,BM,lC,oC,b0,cC,dC,OM,C0,Fh,ds,jh,Zr,Ar,en,FI]}),o})(),RV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,An,yr,Mc,ED,ss,es,Ol,Rp,A0]}),o})(),IV=(()=>{class o{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Pl),h.Y36(ti))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"button",4),h.NdJ("click",function(){return t.startAuth()}),h._uU(7),h.ALo(8,"translate"),h.TgZ(9,"mat-icon"),h._uU(10," login "),h.qZA()()()()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Zr,ra,en],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),o})();const kV=new h.OlP("perun-api-service");class VV{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let BV=(()=>{class o{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function OV(o){return[hn(tinycolor(o).lighten(52),"50"),hn(tinycolor(o).lighten(37),"100"),hn(tinycolor(o).lighten(26),"200"),hn(tinycolor(o).lighten(12),"300"),hn(tinycolor(o).lighten(6),"400"),hn(tinycolor(o),"500"),hn(tinycolor(o).darken(6),"600"),hn(tinycolor(o).darken(12),"700"),hn(tinycolor(o).darken(18),"800"),hn(tinycolor(o).darken(24),"900"),hn(tinycolor(o).lighten(50).saturate(30),"A100"),hn(tinycolor(o).lighten(30).saturate(30),"A200"),hn(tinycolor(o).lighten(10).saturate(15),"A400"),hn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,s=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(fi),h.LFG(at),h.LFG(Y),h.LFG(gn))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function hn(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let LV=(()=>{class o{constructor(e,t,a){this.initAuthService=e,this.appConfigService=t,this.location=a}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(to),h.LFG(BV),h.LFG(T.Ye))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),FV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[LI],imports:[T.ez,L0,ss,rD]}),o})(),jV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[ra,en],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),NV=(()=>{class o{constructor(e,t,a,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=a,this.dialog=l}openLinkerWindow(e,t){let a=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(a="http://localhost:4201/");let l=a+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const i=window.top,u=window.open(l,"_blank",`width=600,height=600,top=${i.outerHeight/2+i.screenY-300}, left=${i.outerWidth/2+i.screenX-300}`);let f;if(u){const H=hs();H.width="450px",H.panelClass="noBorderDialog",f=this.dialog.open(jV,H)}window.addEventListener("message",H=>{sessionStorage.setItem("linkedResult",H.data)});const b=setInterval(()=>{if(u.closed){clearInterval(b),f.close();const H=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(H)}},1e3)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Cd),h.LFG(fi),h.LFG(Hl.Ct),h.LFG(eo))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function zV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," info "),h.qZA())}function UV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," warning "),h.qZA())}function GV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," dangerous "),h.qZA())}function qV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," check_circle "),h.qZA())}const WV=["*"];let $V=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:WV,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0),h.YNc(1,zV,2,0,"mat-icon",1),h.YNc(2,UV,2,0,"mat-icon",1),h.YNc(3,GV,2,0,"mat-icon",1),h.YNc(4,qV,2,0,"mat-icon",1),h.Hsn(5),h.qZA()),2&e&&(h.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","warn"===t.alert_type),h.xp6(1),h.Q6J("ngIf","error"===t.alert_type),h.xp6(1),h.Q6J("ngIf","success"===t.alert_type))},dependencies:[ra,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),HD=(()=>{class o{}return o.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",o.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",o.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",o.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",o.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",o.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",o.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",o.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",o.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",o.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",o.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",o.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",o.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",o.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",o.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",o.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",o.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",o.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",o.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",o.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",o.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",o.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",o.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",o.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",o.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",o.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",o.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",o})();function YV(o,r){1&o&&h._UZ(0,"mat-spinner",2)}function QV(o,r){1&o&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function JV(o,r){1&o&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function KV(o,r){if(1&o&&h._UZ(0,"img",18),2&o){const e=h.oxw(2);h.s9C("src",e.logo,h.LSH),h.Q6J("height",e.height)("width",e.width)}}function ZV(o,r){1&o&&h._UZ(0,"mat-icon",19)}function XV(o,r){1&o&&h._UZ(0,"mat-icon",20)}function eB(o,r){1&o&&h._UZ(0,"th",21)}function tB(o,r){if(1&o&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.hij(" ",e.name,": ")}}function iB(o,r){1&o&&h._UZ(0,"th",21)}function nB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.Oqu(e.value)}}function rB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"span"),h._uU(1),h.TgZ(2,"span",25),h.ALo(3,"translate"),h.TgZ(4,"button",26),h.NdJ("click",function(){const l=h.CHM(e).$implicit,c=h.oxw(4);return h.KtG(c.openDeleteDialog(l))}),h.TgZ(5,"mat-icon"),h._uU(6,"clear"),h.qZA()()(),h._UZ(7,"br"),h.qZA()}if(2&o){const e=r.$implicit,t=h.oxw(4);h.xp6(1),h.hij(" ",e," "),h.xp6(1),h.Q6J("matTooltip",h.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),h.xp6(2),h.Q6J("disabled",e.includes(t.idpProvider))}}function aB(o,r){if(1&o&&(h.TgZ(0,"span"),h.YNc(1,rB,8,6,"span",24),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.Q6J("ngForOf",e.value)}}function oB(o,r){if(1&o&&(h.TgZ(0,"td",23),h.YNc(1,nB,2,1,"span",1),h.YNc(2,aB,2,1,"span",1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.Q6J("ngIf","Linked accounts"!==e.name),h.xp6(1),h.Q6J("ngIf","Linked accounts"===e.name)}}function sB(o,r){1&o&&h._UZ(0,"tr",27)}const lB=function(){return["name","value"]};function cB(o,r){if(1&o&&(h.TgZ(0,"div"),h.YNc(1,QV,3,3,"span",3),h.YNc(2,JV,3,3,"span",3),h.TgZ(3,"div",4)(4,"div",5),h.YNc(5,KV,1,3,"img",6),h.YNc(6,ZV,1,0,"mat-icon",7),h.YNc(7,XV,1,0,"mat-icon",8),h.qZA(),h.TgZ(8,"div")(9,"h2",9),h._uU(10),h.qZA(),h._UZ(11,"mat-divider"),h.TgZ(12,"table",10),h.ynx(13,11),h.YNc(14,eB,1,0,"th",12),h.YNc(15,tB,2,1,"td",13),h.BQk(),h.ynx(16,14),h.YNc(17,iB,1,0,"th",12),h.YNc(18,oB,3,2,"td",15),h.BQk(),h.YNc(19,sB,1,0,"tr",16),h.qZA()()()()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("ngIf",e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.unknownIdentity),h.xp6(3),h.Q6J("ngIf",e.logo),h.xp6(1),h.Q6J("ngIf",!e.logo&&!e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.logo&&e.unknownIdentity),h.xp6(3),h.Oqu(e.idpProvider),h.xp6(2),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",h.DdM(8,lB))}}let dB=(()=>{class o{constructor(e,t,a,l,c){this.oauthService=e,this.userService=t,this.storeService=a,this.initService=l,this.dialog=c,this.idpProvider="",this.dataSource=new hC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new hC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(a=>{if(0!==a.attributes.length){const l=V_(a.attributes,HD.UES_SOURCE_IDP_NAME),c=V_(a.attributes,HD.UES_DEF_MAIL);l?.value&&e.push(`${l.value}${c?.value?" ("+c.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(a=>"Linked accounts"!==a.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new hC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const a=this.getUserLogin(e);null!=a&&""!==a&&this.info.push({name:"Login",value:a}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let a=e.info;for(const l of t)a=a[l],Array.isArray(a)&&(a=a[0]);return String(a)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const a=e.info.given_name,l=e.info.family_name;return a&&l?a+" "+l:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const a=e.info.nickname;return a&&""!==a?a:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(c=>c.attributes.forEach(n=>{"sourceIdPName"===n.baseFriendlyName&&e.includes(n.value)&&t.push(c)}));const a=hs();a.width="450px",a.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(q1,a).afterClosed().subscribe(c=>{c&&this.reloadAccounts()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Hl.Ct),h.Y36(Pr),h.Y36(fi),h.Y36(to),h.Y36(eo))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[h.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.YNc(1,YV,1,0,"mat-spinner",0),h.YNc(2,cB,20,9,"div",1),h.qZA()),2&e&&(h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Vk,Zr,ra,_0,sC,lC,oC,b0,cC,dC,C0,Ar,r_,en],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),o})(),uB=(()=>{class o{transform(e){let t="";return e.forEach(a=>{const l=a.attributes;if(l){const c=l.sourceIdPName;c&&""!==c&&(t=t+c+", ")}}),t.slice(0,-2)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"similarIdentityFriendlyNamesString",type:o,pure:!0}),o})();function hB(o,r){1&o&&(h.TgZ(0,"perun-web-apps-alert",7),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function pB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",10)(1,"div",11),h._UZ(2,"mat-icon",12),h.TgZ(3,"div",13)(4,"div"),h._uU(5),h.qZA(),h.TgZ(6,"div",14),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"similarIdentityFriendlyNamesString"),h.qZA()()(),h.TgZ(10,"button",15),h.NdJ("click",function(){const l=h.CHM(e).$implicit,c=h.oxw(2);return h.KtG(c.openPopUp(l.identities))}),h._uU(11),h.ALo(12,"translate"),h.qZA()()}if(2&o){const e=r.$implicit;h.xp6(5),h.Oqu(e.email),h.xp6(2),h.AsE(" ",h.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",h.lcZ(9,6,e.identities)," "),h.xp6(4),h.hij(" ",h.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function fB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div")(1,"h2"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"p"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,pB,13,10,"div",8),h.TgZ(8,"button",9),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.openPopUp([]))}),h._uU(9),h.ALo(10,"translate"),h.qZA()()}if(2&o){const e=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),h.xp6(3),h.hij(" ",h.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),h.xp6(2),h.Q6J("ngForOf",e.similarIdentities),h.xp6(2),h.hij(" ",h.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function gB(o,r){1&o&&h._UZ(0,"mat-spinner",16)}let mB=(()=>{class o{constructor(e,t,a,l,c){this.storeService=e,this.initService=t,this.registrarService=a,this.router=l,this.openLinkerService=c,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(a=>{a.attributes.sourceIdPName&&t.push(a.extSource.name)}),this.openLinkerService.openLinkerWindow(a=>{"TOKEN_EXPIRED"===a?location.reload():"OK"===a?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===a&&this.router.navigate(["/result",a])},t)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(to),h.Y36(Yl),h.Y36(ti),h.Y36(NV))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,hB,3,3,"perun-web-apps-alert",2),h.TgZ(3,"div",3),h._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),h.TgZ(6,"div"),h.YNc(7,fB,11,10,"div",5),h.YNc(8,gB,1,0,"mat-spinner",6),h.qZA()()()()),2&e&&(h.xp6(2),h.Q6J("ngIf",t.unknownIdentity),h.xp6(2),h.Q6J("reloadData",t.reloadData),h.xp6(3),h.Q6J("ngIf",!t.loading),h.xp6(1),h.Q6J("ngIf",t.loading))},dependencies:[T.sg,T.O5,Zr,ra,Ar,$V,dB,uB,en],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),o})();function _B(o,r){if(1&o&&(h.TgZ(0,"mat-icon",6),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.hij(" ",e.icon," ")}}function bB(o,r){1&o&&h._UZ(0,"mat-icon",7)}function CB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.supportMail," ")}}function yB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.userMail," ")}}function wB(o,r){if(1&o&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.YNc(3,CB,2,1,"span",5),h.YNc(4,yB,2,1,"span",5),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),h.xp6(2),h.Q6J("ngIf","UNKNOWN_ERROR"===e.result),h.xp6(1),h.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function vB(o,r){if(1&o&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.lnq(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",h.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const AB=function(o){return{"background-color":o}},xB=["*"];let TB=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[h.TTD],ngContentSelectors:xB,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0)(1,"div",1)(2,"div"),h.YNc(3,_B,2,1,"mat-icon",2),h.YNc(4,bB,1,0,"mat-icon",3),h.qZA(),h.TgZ(5,"div",4)(6,"h1"),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,wB,5,5,"h5",5),h.YNc(10,vB,4,7,"h5",5),h.qZA()(),h.Hsn(11),h.qZA()),2&e&&(h.Q6J("ngStyle",h.VKq(8,AB,t.color)),h.xp6(3),h.Q6J("ngIf","OK"!==t.result),h.xp6(1),h.Q6J("ngIf","OK"===t.result),h.xp6(3),h.hij(" ",h.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),h.xp6(2),h.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),h.xp6(1),h.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,ra,en],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();const EB=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:IV},{path:"consolidate",component:mB},{path:"result/:result",component:(()=>{class o{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Gn),h.Y36(ti))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),h.NdJ("click",function(){return t.onClick()}),h._uU(4),h.ALo(5,"translate"),h.qZA()()()()),2&e&&(h.xp6(1),h.Q6J("result",t.linkerResult),h.xp6(3),h.hij(" ",h.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[Zr,TB,en],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),o})()}];let SB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Mc.forRoot(EB,{preloadingStrategy:K0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Mc]}),o})(),MB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,us,An,ss]}),o})();const DB={provide:y.TP,useExisting:(0,h.Gpc)(()=>U_),multi:!0};function HB(o){return new VV(o,"./assets/i18n/",".json")}function PB(o){const r={basePath:o.getProperty("api_url")};return new Oe(r)}const RB=o=>()=>o.loadConfigs();let IB=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Uh),h.LFG(En))},o.\u0275mod=h.oAB({type:o,bootstrap:[mH]}),o.\u0275inj=h.cJS({providers:[Uh,{provide:h.ip1,useFactory:RB,multi:!0,deps:[LV]},{provide:Oe,useFactory:PB,deps:[fi]},U_,DB,{provide:kV,useClass:$A},{provide:Hl.Hy,useFactory:()=>localStorage}],imports:[_a,gR,y.JF,Jl,SB,L0,RV,yr,ED,A0,hd,MB,Hl.zr.forRoot(),FV,ss.forRoot({loader:{provide:xl,useFactory:HB,deps:[y.eN]}})]}),o})();(0,h.G48)(),Qe().bootstrapModule(IB).catch(o=>console.error(o))},1302:function(F,z,x){var T;!function(h,V){var O={};!function(h){"use strict";h.__esModule=!0,h.digestLength=32,h.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=h.digestLength,this.blockSize=h.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}h.HMAC=j,h.hash=W,h.default=W,h.hmac=Q;var $=new Uint8Array(h.digestLength);h.hkdf=function U(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=U=U||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,U,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(z,[]))&&(F.exports=h)},9751:(F,z,x)=>{"use strict";x.d(z,{y:()=>Q});var T=x(930),h=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,h.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=G(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,z,x)=>{"use strict";x.d(z,{x:()=>W});var T=x(9751),h=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?h.Lc:(this.currentObservers=null,J.push(U),new h.w0(()=>{this.currentObservers=null,(0,I.P)(J,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:J}=this;te?U.error(ne):J&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:h.Lc}}},930:(F,z,x)=>{"use strict";x.d(z,{Hp:()=>de,Lv:()=>te});var T=x(576),h=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends h.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,h.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,z,x)=>{"use strict";x.d(z,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const J of U)J.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,z,x)=>{"use strict";x.d(z,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,z,x)=>{"use strict";x.d(z,{a:()=>$});var T=x(9751),h=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,h.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function U(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,G.f)(ie,ne,J):J()}},7272:(F,z,x)=>{"use strict";x.d(z,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function h(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,z,x)=>{"use strict";x.d(z,{E:()=>h});const h=new(x(9751).y)(I=>I.complete())},2076:(F,z,x)=>{"use strict";x.d(z,{D:()=>Ye});var T=x(8421),h=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,h.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,h.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,h.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var G=x(9751),U=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new G.y(Te=>{(0,h.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,h.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new G.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new G.y(Te=>{let oe;return(0,h.f)(Te,Ee,()=>{oe=Se[U.h](),(0,h.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,z,x)=>{"use strict";x.d(z,{Xf:()=>ne});var T=x(655),h=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,h.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,z,x)=>{"use strict";x.d(z,{T:()=>j});var T=x(8189),h=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,h.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,z,x)=>{"use strict";x.d(z,{of:()=>V});var T=x(3269),h=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,h.D)(O,I)}},102:(F,z,x)=>{"use strict";x.d(z,{S:()=>j});var T=x(9751),h=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,h.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,z,x)=>{"use strict";x.d(z,{_:()=>V});var T=x(9751),h=x(576);function V(O,I){const j=(0,h.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,z,x)=>{"use strict";x.d(z,{H:()=>I});var T=x(9751),h=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=h.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,z,x)=>{"use strict";x.d(z,{x:()=>h});var T=x(930);function h(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,z,x)=>{"use strict";x.d(z,{K:()=>O});var T=x(8421),h=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,h.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,z,x)=>{"use strict";x.d(z,{b:()=>V});var T=x(5577),h=x(576);function V(O,I){return(0,h.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,z,x)=>{"use strict";x.d(z,{b:()=>O});var T=x(4986),h=x(4482),V=x(5403);function O(I,j=T.z){return(0,h.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const J=$;$=null,Q.next(J)}};function ne(){const J=U+I,ie=j.now();if(ie{$=J,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,z,x)=>{"use strict";x.d(z,{d:()=>V});var T=x(4482),h=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,h.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,z,x)=>{"use strict";x.d(z,{g:()=>te});var T=x(4986),h=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,J){return J?ie=>(0,h.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,J=T.z){const ie=(0,U.H)(ne,J);return $(()=>ie)}},9300:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,z,x)=>{"use strict";x.d(z,{P:()=>W});var T=x(6805),h=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,h.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,z,x)=>{"use strict";x.d(z,{U:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,z,x)=>{"use strict";x.d(z,{h:()=>h});var T=x(4004);function h(V){return(0,T.U)(()=>V)}},8189:(F,z,x)=>{"use strict";x.d(z,{J:()=>V});var T=x(5577),h=x(4671);function V(O=1/0){return(0,T.z)(h.y,O)}},5577:(F,z,x)=>{"use strict";x.d(z,{z:()=>Q});var T=x(4004),h=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,h.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,h.Xf)(U(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return G.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,z,x)=>{"use strict";x.d(z,{B:()=>I});var T=x(8421),h=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new h.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,U))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,G,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,z,x)=>{"use strict";x.d(z,{w:()=>O});var T=x(8421),h=x(4482),V=x(5403);function O(I,j){return(0,h.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,z,x)=>{"use strict";x.d(z,{q:()=>O});var T=x(515),h=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,h.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,z,x)=>{"use strict";x.d(z,{b:()=>I});var T=x(576),h=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,h.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,J=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,J),U.next(J)},()=>{var J;ne=!1,null===(J=G.complete)||void 0===J||J.call(G),U.complete()},J=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,J),U.error(J)},()=>{var J,ie;ne&&(null===(J=G.unsubscribe)||void 0===J||J.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,z,x)=>{"use strict";x.d(z,{T:()=>O});var T=x(6805),h=x(4482),V=x(5403);function O(j=I){return(0,h.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,z,x)=>{"use strict";x.d(z,{V:()=>G});var T=x(4986),h=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,h.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(U){throw new Q(U)}},4408:(F,z,x)=>{"use strict";x.d(z,{o:()=>I});var T=x(727);class h extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends h{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,z,x)=>{"use strict";x.d(z,{v:()=>V});var T=x(6063);class h{constructor(I,j=h.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}h.now=T.l.now;class V extends h{constructor(I,j=h.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,z,x)=>{"use strict";x.d(z,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,z,x)=>{"use strict";x.d(z,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T={setTimeout(h,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(h,V,...O):setTimeout(h,V,...O)},clearTimeout(h){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(h)},delegate:void 0}},2202:(F,z,x)=>{"use strict";x.d(z,{h:()=>h});const h=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,z,x)=>{"use strict";x.d(z,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,z,x)=>{"use strict";x.d(z,{K:()=>h});const h=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,z,x)=>{"use strict";x.d(z,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),h=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,h.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,z,x)=>{"use strict";x.d(z,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:h,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&h(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,z,x)=>{"use strict";function T(h,V){if(h){const O=h.indexOf(V);0<=O&&h.splice(O,1)}}x.d(z,{P:()=>T})},3888:(F,z,x)=>{"use strict";function T(h){const O=h(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(z,{d:()=>T})},1810:(F,z,x)=>{"use strict";function T(h,V){return h.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(z,{n:()=>T})},2806:(F,z,x)=>{"use strict";x.d(z,{O:()=>O,x:()=>V});var T=x(2416);let h=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!h;if(j&&(h={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=h;if(h=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=I)}},9672:(F,z,x)=>{"use strict";function T(h,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?h.add(this.schedule(null,I)):this.unsubscribe()},I);if(h.add(W),!j)return W}x.d(z,{f:()=>T})},4671:(F,z,x)=>{"use strict";function T(h){return h}x.d(z,{y:()=>T})},1144:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(F,z,x)=>{"use strict";x.d(z,{D:()=>h});var T=x(576);function h(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,z,x)=>{"use strict";function T(h){return h instanceof Date&&!isNaN(h)}x.d(z,{q:()=>T})},576:(F,z,x)=>{"use strict";function T(h){return"function"==typeof h}x.d(z,{m:()=>T})},3670:(F,z,x)=>{"use strict";x.d(z,{c:()=>V});var T=x(8822),h=x(576);function V(O){return(0,h.m)(O[T.L])}},6495:(F,z,x)=>{"use strict";x.d(z,{T:()=>V});var T=x(2202),h=x(576);function V(O){return(0,h.m)(O?.[T.h])}},8239:(F,z,x)=>{"use strict";x.d(z,{t:()=>h});var T=x(576);function h(V){return(0,T.m)(V?.then)}},3260:(F,z,x)=>{"use strict";x.d(z,{L:()=>O,Q:()=>V});var T=x(655),h=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,h.m)(I?.getReader)}},3532:(F,z,x)=>{"use strict";x.d(z,{K:()=>h});var T=x(576);function h(V){return V&&(0,T.m)(V.schedule)}},4482:(F,z,x)=>{"use strict";x.d(z,{A:()=>h,e:()=>V});var T=x(576);function h(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(h(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,z,x)=>{"use strict";x.d(z,{Z:()=>O});var T=x(4004);const{isArray:h}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return h(j)?I(...j):I(j)}(I,j))}},5032:(F,z,x)=>{"use strict";function T(){}x.d(z,{Z:()=>T})},9635:(F,z,x)=>{"use strict";x.d(z,{U:()=>V,z:()=>h});var T=x(4671);function h(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(2416),h=x(3410);function V(O){h.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,z,x)=>{"use strict";function T(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(z,{z:()=>T})},655:(F,z,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ei){try{Le(ue.next(Ei))}catch(Rn){ot(Rn)}}function It(Ei){try{Le(ue.throw(Ei))}catch(Rn){ot(Rn)}}function Le(Ei){Ei.done?Me(Ei.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ei.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Ut){ue[Ut]&&(Re[Ut]=function(Dt){return new Promise(function(pn,oi){Me.push([Ut,Dt,pn,oi])>1||Tt(Ut,Dt)})})}function Tt(Ut,Dt){try{!function It(Ut){Ut.value instanceof he?Promise.resolve(Ut.value.v).then(Le,Ei):Rn(Me[0][2],Ut)}(ue[Ut](Dt))}catch(pn){Rn(Me[0][3],pn)}}function Le(Ut){Tt("next",Ut)}function Ei(Ut){Tt("throw",Ut)}function Rn(Ut,Dt){Ut(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(z,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,z,x)=>{"use strict";x.d(z,{Do:()=>Be,EM:()=>Aa,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>Yl,NF:()=>Ms,O5:()=>Hi,Ov:()=>nf,PC:()=>tf,RF:()=>Rr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>ei,ez:()=>_n,mk:()=>Ql,n9:()=>Ji,q:()=>V,sg:()=>gn,w_:()=>j});var T=x(4650);let h=null;function V(){return h}function I(M){h||(h=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function Yl(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Ql=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class Pr{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new Pr(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ue=B.get(pe);B.move(Ue,le),_i(Ue,ee)}});for(let ee=0,pe=B.length;ee{_i(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function _i(M,k){M.context.$implicit=k.item}let Hi=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new rn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Es("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Es("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class rn{constructor(){this.$implicit=null,this.ngIf=null}}function Es(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class va{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Rr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new va(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Rr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),tf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class TC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class EC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const SC=new EC,MC=new TC;let nf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return SC;if((0,T.F4k)(D))return MC;throw function mn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const ei="browser";function Ms(M){return M===ei}let Aa=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function on(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=vi(this.window.history)||vi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function vi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,z,x)=>{"use strict";x.d(z,{JF:()=>Gd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),h=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeQi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Zt=Object.keys(Y.setParams).reduce((Qi,tt)=>Qi.set(tt,Y.setParams[tt]),Zt)),new Ee(q,ce,et,{params:Zt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let Me=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Zt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Zt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Zt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(Q))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new h.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const go=/^\)\]\}',?\n/;let mo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),nn=function Ud(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:nn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:nn,url:Er}=Ne(),gi=null;204!==kt&&(gi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=gi?200:0);let Sr=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof gi){const Mr=gi;gi=gi.replace(go,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ba){gi=Mr,Sr&&(Sr=!1,gi={error:ba,text:gi})}}Sr?(ce.next(new fe({body:gi,headers:Ht,status:kt,statusText:nn,url:Er||void 0})),ce.complete()):ce.error(new ue({error:gi,headers:Ht,status:kt,statusText:nn,url:Er||void 0}))},Zt=Ht=>{const{url:kt}=Ne(),nn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(nn)};let vt=!1;const Qi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Zt),xe.addEventListener("timeout",Zt),xe.addEventListener("abort",Zt),q.reportProgress&&(xe.addEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Zt),xe.removeEventListener("abort",Zt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Zt),q.reportProgress&&(xe.removeEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(T.JF))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new h.OlP("XSRF_COOKIE_NAME"),kn=new h.OlP("XSRF_HEADER_NAME");class ga{}let _o=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(T.K0),h.LFG(h.Lbi),h.LFG(In))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(ga),h.LFG(kn))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ui=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(G),h.LFG(h.zs3))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),_a=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=h.oAB({type:Ce}),Ce.\u0275inj=h.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:ga,useClass:_o},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Gd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=h.oAB({type:Ce}),Ce.\u0275inj=h.cJS({providers:[Me,{provide:Q,useClass:ui},mo,{provide:G,useExisting:mo}],imports:[_a.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,z,x)=>{"use strict";x.d(z,{$8M:()=>dc,$Z:()=>Lw,AFp:()=>ap,ALo:()=>jA,AaK:()=>Q,AsE:()=>Zm,BQk:()=>hh,CHM:()=>Pi,CRH:()=>sa,CZH:()=>ms,CqO:()=>Sm,D6c:()=>VS,DdM:()=>IA,Dn7:()=>UA,EJc:()=>Dd,EiD:()=>Zf,EpF:()=>Zo,F$t:()=>Rm,F4k:()=>nd,FYo:()=>$y,FiY:()=>Ho,G48:()=>wb,Gf:()=>QA,GfV:()=>Jy,GkF:()=>td,Gpc:()=>U,Hsn:()=>Im,Ikx:()=>s_,JOm:()=>pr,JVY:()=>xy,KtG:()=>Fn,L6k:()=>Ty,LAX:()=>pu,LFG:()=>li,LSH:()=>wu,Lbi:()=>ab,Lck:()=>xA,MAs:()=>dh,MMx:()=>ds,NdJ:()=>ph,O4$:()=>hf,OlP:()=>At,Oqu:()=>Km,PXZ:()=>fx,Q6J:()=>Fe,QGY:()=>id,QP$:()=>no,QbO:()=>_S,Qsj:()=>Yy,R0b:()=>un,RDi:()=>by,Rgc:()=>md,SBq:()=>Yr,Sil:()=>up,Suo:()=>Wh,TTD:()=>Yt,TgZ:()=>_t,Tol:()=>$m,Udp:()=>qm,VKq:()=>kA,WFA:()=>fh,WLB:()=>VA,XFs:()=>Qe,Xpm:()=>nn,Xts:()=>Au,Y36:()=>ol,YKP:()=>P_,YNc:()=>wt,Yjl:()=>Wl,Yz7:()=>Dt,ZZ4:()=>Hb,_Bn:()=>H_,_UZ:()=>Ko,_Vd:()=>La,_c5:()=>Hx,_uU:()=>Vv,aQg:()=>Pb,c2e:()=>bS,cJS:()=>oi,cg1:()=>vh,d8E:()=>l_,dDg:()=>ub,dqk:()=>ce,eBb:()=>Ey,eFA:()=>vp,ekj:()=>Wm,eoX:()=>Cp,f3M:()=>Pf,g9A:()=>op,h0i:()=>cs,hGG:()=>kS,hij:()=>yh,iGM:()=>YA,ifc:()=>q,ip1:()=>gs,kL8:()=>nA,kcU:()=>pf,lG2:()=>qd,lcZ:()=>NA,lnq:()=>Xm,lqb:()=>Ai,lri:()=>bs,mCW:()=>Qs,n5z:()=>tu,n_E:()=>Nh,oAB:()=>Mr,oJD:()=>Xf,oxw:()=>Pm,pB0:()=>Wf,q3G:()=>ii,qLn:()=>kc,qOj:()=>Zc,qZA:()=>uh,qzn:()=>Ba,rWj:()=>bp,s9C:()=>gh,sBO:()=>Ab,sIi:()=>pl,s_b:()=>zh,soG:()=>lp,tb:()=>sp,tp0:()=>ka,uIk:()=>mr,vHH:()=>ie,vpe:()=>wr,wAp:()=>Ke,xDo:()=>is,xi3:()=>zA,xp6:()=>Vu,ynx:()=>Ja,z2F:()=>Bl,z3N:()=>qn,zSh:()=>rg,zs3:()=>Yn});var T=x(7579),h=x(727),V=x(9751),O=x(6451),I=x(3099);function j(p){for(let g in p)if(p[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(p,g){for(const m in g)g.hasOwnProperty(m)&&!p.hasOwnProperty(m)&&(p[m]=g[m])}function Q(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Q).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const g=p.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function G(p,g){return null==p||""===p?null===g?"":g:null==g||""===g?p:p+" "+g}const $=j({__forward_ref__:j});function U(p){return p.__forward_ref__=U,p.toString=function(){return Q(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===U}class ie extends Error{constructor(g,m){super(function de(p,g){return`NG0${Math.abs(p)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,g){throw new ie(-201,!1)}function It(p,g){null==p&&function Le(p,g,m,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function oi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Tr(p){return ql(p,In)||ql(p,ga)}function ql(p,g){return p.hasOwnProperty(g)?p[g]:null}function mo(p){return p&&(p.hasOwnProperty(kn)||p.hasOwnProperty(_o))?p[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ga=j({ngInjectableDef:j}),_o=j({ngInjectorDef:j});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let ui;function Si(p){const g=ui;return ui=p,g}function _a(p,g,m){const _=Tr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(p))}function fn(p){return{toString:p}.toString()}var yi=(()=>((yi=yi||{})[yi.OnPush=0]="OnPush",yi[yi.Default=1]="Default",yi))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Zt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Qi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function nn(p){return fn(()=>{const m=!0===p.standalone,_={},C={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===yi.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Ne,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+kt++,styles:p.styles||Ne,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=bo(p.inputs,_),C.outputs=bo(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Sr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Di).filter(Sr):null,C})}function gi(p){return Et(p)||Mi(p)}function Sr(p){return null!==p}function Mr(p){return fn(()=>({type:p.type,bootstrap:p.bootstrap||Ne,declarations:p.declarations||Ne,imports:p.imports||Ne,exports:p.exports||Ne,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function bo(p,g){if(null==p)return ct;const m={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const qd=nn;function Wl(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Je]||null}function Mi(p){return p[Zt]||null}function Di(p){return p[vt]||null}function Ni(p,g){const m=p[Qi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(p)} does not have '\u0275mod' property.`);return m}function Hi(p){return Array.isArray(p)&&"object"==typeof p[1]}function rn(p){return Array.isArray(p)&&!0===p[1]}function Es(p){return 0!=(8&p.flags)}function va(p){return 2==(2&p.flags)}function Rr(p){return 1==(1&p.flags)}function Ji(p){return null!==p.template}function Xp(p){return 0!=(256&p[2])}function De(p,g){return p.hasOwnProperty(tt)?p[tt]:null}class He{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Yt(){return Ss}function Ss(p){return p.type.prototype.ngOnChanges&&(p.setInput=kr),Ir}function Ir(){const p=Ln(this),g=p?.current;if(g){const m=p.previous;if(m===ct)p.previous=g;else for(let _ in g)m[_]=g[_];p.current=null,this.ngOnChanges(g)}}function kr(p,g,m,_){const C=Ln(p)||function Vr(p,g){return p[Vi]=g}(p,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new He(S&&S.currentValue,g,v===ct),p[_]=g}Yt.ngInherit=!0;const Vi="__ngSimpleChanges__";function Ln(p){return p[Vi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function Aa(p,g){return ze(g[p])}function Vt(p,g){return ze(g[p.index])}function on(p,g){return p.data[g]}function Ui(p,g){return p[g]}function Ct(p,g){const m=g[p];return Hi(m)?m:m[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,g){return null==g?null:p[g]}function ee(p){p[18]=0}function pe(p,g){p[5]+=g;let m=p,_=p[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Qd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(p){return le.lFrame.contextLView=p,p[8]}function Fn(p){return le.lFrame.contextLView=null,p}function qt(){let p=xa();for(;null!==p&&64===p.type;)p=p.parent;return p}function xa(){return le.lFrame.currentTNode}function Ot(p,g){const m=le.lFrame;m.currentTNode=p,m.isParent=g}function bn(){return le.lFrame.isParent}function Ds(){le.lFrame.isParent=!1}function Oi(){const p=le.lFrame;let g=p.bindingRootIndex;return-1===g&&(g=p.bindingRootIndex=p.tView.bindingStartIndex),g}function jn(){return le.lFrame.bindingIndex}function Ea(){return le.lFrame.bindingIndex++}function Nn(p){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+p,m}function gt(p,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=p,$d(g)}function $d(p){le.lFrame.currentDirectiveIndex=p}function sr(p){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:p[g]}function lf(){return le.lFrame.currentQueryIndex}function Xl(p){le.lFrame.currentQueryIndex=p}function Yd(p){const g=p[1];return 2===g.type?g.declTNode:1===g.type?p[6]:null}function cf(p,g,m){if(m&Qe.SkipSelf){let C=g,w=p;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Yd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,p=w}const _=le.lFrame=Ao();return _.currentTNode=g,_.lView=p,!0}function vo(p){const g=Ao(),m=p[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=p,g.tView=m,g.contextLView=p,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function Ao(){const p=le.lFrame,g=null===p?null:p.child;return null===g?Qd(p):g}function Qd(p){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=g),g}function Rs(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const df=Rs;function Is(){const p=Rs();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Ri(){return le.lFrame.selectedIndex}function Or(p){le.lFrame.selectedIndex=p}function Jt(){const p=le.lFrame;return on(p.tView,p.selectedIndex)}function hf(){le.lFrame.currentNamespace="svg"}function pf(){!function BC(){le.lFrame.currentNamespace=null}()}function ic(p,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=p.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-m,v),E&&((p.contentHooks||(p.contentHooks=[])).push(m,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(m,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-m,S),P&&((p.viewHooks||(p.viewHooks=[])).push(m,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(m,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(m,R)}}function xo(p,g,m){Lr(p,g,3,m)}function Sa(p,g,m,_){(3&p[2])===m&&Lr(p,g,m,_)}function Jd(p,g){let m=p[2];(3&m)===g&&(m&=2047,m+=1,p[2]=m)}function Lr(p,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else g[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===g){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class ks{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function cr(p,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(p),_=g;for(;m>0;)_=_[15],m--;return _}let Zd=!0;function Bs(p){const g=Zd;return Zd=p,g}let jr=0;const Ki={};function Os(p,g){const m=eu(p,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(p.injectorIndex=g.length,Xd(_.data,p),Xd(g,null),Xd(_.blueprint,null));const C=ac(p,g),w=p.injectorIndex;if(nc(C)){const v=zn(C),E=Fr(C,g),S=E[1].data;for(let P=0;P<8;P++)g[w+P]=E[v+P]|S[v+P]}return g[w+8]=C,w}function Xd(p,g){p.push(0,0,0,0,0,0,0,0,g)}function eu(p,g){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===g[p.injectorIndex+8]?-1:p.injectorIndex}function ac(p,g){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=Gn(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function oc(p,g,m){!function bf(p,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=jr++);const C=255&_;g.data[p+(C>>5)]|=1<=0?255&g:Eo:g}(m);if("function"==typeof w){if(!cf(g,p,_))return _&Qe.Host?Cf(C,0,_):yf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{df()}}else if("number"==typeof w){let v=null,E=eu(p,g),S=-1,P=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?ac(p,g):g[E+8],-1!==S&&lc(_,!1)?(v=g[1],E=zn(S),g=Fr(S,g)):E=-1);-1!==E;){const R=g[1];if(sc(w,E,R.data)){const L=WC(E,g,m,v,_,P);if(L!==Ki)return L}S=g[E+8],-1!==S&&lc(_,g[1].data[E+8]===P)&&sc(w,E,g)?(v=R,E=zn(S),g=Fr(S,g)):E=-1}}return C}function WC(p,g,m,_,C,w){const v=g[1],E=v.data[p+8],R=Ls(E,v,m,null==_?va(E)&&Zd:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Fs(g,v,R,E):Ki}function Ls(p,g,m,_,C){const w=p.providerIndexes,v=g.data,E=1048575&w,S=p.directiveStart,R=w>>20,X=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Ji(re)&&re.type===m)return S}return null}function Fs(p,g,m,_){let C=p[m];const w=g.data;if(function FC(p){return p instanceof ks}(C)){const v=C;v.resolving&&function Ve(p,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${m}`)}(function ge(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[m]));const E=Bs(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Si(v.injectImpl):null;cf(p,_,Qe.Default);try{C=p[m]=v.factory(void 0,w,p,_),g.firstCreatePass&&m>=_.directiveStart&&function LC(p,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=Ss(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(p,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-p,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(p,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,w))}(m,w[m],g)}finally{null!==S&&Si(S),Bs(E),v.resolving=!1,df()}}return C}function sc(p,g,m){return!!(m[g+(p>>5)]&1<{const g=p.prototype.constructor,m=g[tt]||cc(g),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||cc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function cc(p){return ne(p)?()=>{const g=cc(te(p));return g&&g()}:De(p)}function Gn(p){const g=p[1],m=g.type;return 2===m?g.declTNode:1===m?p[6]:null}function dc(p){return function qC(p,g){if("class"===g)return p.classes;if("style"===g)return p.styles;const m=p.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(gf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),p)}const dr="__parameters__";function Nr(p,g,m){return fn(()=>{const _=function hc(p){return function(...m){if(p){const _=p(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(dr)?S[dr]:Object.defineProperty(S,dr,{value:[]})[dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sn(p,g){void 0===g&&(g=p);for(let m=0;mArray.isArray(m)?zr(m,g):g(m))}function ey(p,g,m){g>=p.length?p.push(m):p.splice(g,0,m)}function ru(p,g){return g>=p.length-1?p.pop():p.splice(g,1)[0]}function Pa(p,g){const m=[];for(let _=0;_=0?p[1|_]=m:(_=~_,function iy(p,g,m,_){let C=p.length;if(C==g)p.push(m,_);else if(1===C)p.push(_,p[0]),p[0]=m;else{for(C--,p.push(p[C-1],p[C]);C>g;)p[C]=p[C-2],C--;p[g]=m,p[g+1]=_}}(p,_,g,m)),_}function ou(p,g){const m=Mo(p,g);if(m>=0)return p[1|m]}function Mo(p,g){return function zs(p,g,m){let _=0,C=p.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=p[w<g?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return yc}()?.createHTML(p)||p}function Uf(p){return function vc(){if(void 0===Ys&&(Ys=null,ce.trustedTypes))try{Ys=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Ys}()?.createHTML(p)||p}class Va{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yy extends Va{getTypeName(){return"HTML"}}class wy extends Va{getTypeName(){return"Style"}}class vy extends Va{getTypeName(){return"Script"}}class qf extends Va{getTypeName(){return"URL"}}class hu extends Va{getTypeName(){return"ResourceURL"}}function qn(p){return p instanceof Va?p.changingThisBreaksApplicationSecurity:p}function Ba(p,g){const m=function Ay(p){return p instanceof Va&&p.getTypeName()||null}(p);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function xy(p){return new yy(p)}function Ty(p){return new wy(p)}function Ey(p){return new vy(p)}function pu(p){return new qf(p)}function Wf(p){return new hu(p)}class fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Ro(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class Sy{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Ro(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Ro(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0Qs(g.trim())).join(", ")),this.buf.push(" ",v,'="',Cu(S),'"')}var p;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();_u.hasOwnProperty(m)&&!ti.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(Cu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const Z0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kf=/([^\#-~ |!])/g;function Cu(p){return p.replace(/&/g,"&").replace(Z0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Kf,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function Zf(p,g){let m=null;try{Sc=Sc||function xc(p){const g=new Sy(p);return function My(){try{return!!(new window.DOMParser).parseFromString(Ro(""),"text/html")}catch{return!1}}()?new fu(g):g}(p);let _=g?String(g):"";m=Sc.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=Sc.getInertBodyElement(_)}while(_!==w);return Ro((new qr).sanitizeChildren(yu(m)||m))}finally{if(m){const _=yu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function yu(p){return"content"in p&&function Mc(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ii=(()=>((ii=ii||{})[ii.NONE=0]="NONE",ii[ii.HTML=1]="HTML",ii[ii.STYLE=2]="STYLE",ii[ii.SCRIPT=3]="SCRIPT",ii[ii.URL=4]="URL",ii[ii.RESOURCE_URL=5]="RESOURCE_URL",ii))();function Xf(p){const g=Js();return g?Uf(g.sanitize(ii.HTML,p)||""):Ba(p,"HTML")?Uf(qn(p)):Zf(function jf(){return void 0!==uu?uu:typeof document<"u"?document:void 0}(),he(p))}function wu(p){const g=Js();return g?g.sanitize(ii.URL,p)||"":Ba(p,"URL")?qn(p):Qs(he(p))}function Js(){const p=be();return p&&p[12]}const Au=new At("ENVIRONMENT_INITIALIZER"),ng=new At("INJECTOR",-1),By=new At("INJECTOR_DEF_TYPES");class Dc{get(g,m=Gs){if(m===Gs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ci(...p){return{\u0275providers:Oy(0,p)}}function Oy(p,...g){const m=[],_=new Set;let C;return zr(g,w=>{const v=w;Hc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&Oa(C,m),m}function Oa(p,g){for(let m=0;m{g.push(w)})}}function Hc(p,g,m,_){if(!(p=te(p)))return!1;let C=null,w=mo(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=mo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Hc(P,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{zr(w.imports,R=>{Hc(R,g,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&Oa(P,g)}if(!E){const P=De(C)||(()=>new C);g.push({provide:C,useFactory:P,deps:Ne},{provide:By,useValue:C,multi:!0},{provide:Au,useValue:()=>li(C),multi:!0})}const S=w.providers;null==S||E||zr(S,R=>{g.push(R)})}}return C!==p&&void 0!==p.providers}const Ks=j({provide:String,useValue:j});function xu(p){return null!==p&&"object"==typeof p&&Ks in p}function Zi(p){return"function"==typeof p}const rg=new At("Set Injector scope."),ko={},jy={};let Vo;function Bo(){return void 0===Vo&&(Vo=new Dc),Vo}class Ai{}class Pc extends Ai{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sg(g,v=>this.processProvider(v)),this.records.set(ng,Wr(void 0,this)),C.has("environment")&&this.records.set(Ai,Wr(void 0,this));const w=this.records.get(rg);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(By.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=ur(this),_=Si(void 0);try{return g()}finally{ur(m),Si(_)}}get(g,m=Gs,_=Qe.Default){this.assertNotDestroyed();const C=ur(this),w=Si(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Gy(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(g)&&Tr(g);E=S&&this.injectableDefInScope(S)?Wr(ag(g),ko):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?Bo():this.parent).get(g,m=_&Qe.Optional&&m===Gs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[gc]=v[gc]||[]).unshift(Q(g)),C)throw v;return function uy(p,g,m,_){const C=p[gc];throw g[Df]&&C.unshift(g[Df]),p.message=function hy(p,g,m,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${p.replace(cy,"\n ")}`}("\n"+p.message,C,m,_),p.ngTokenPath=C,p[gc]=null,p}(v,g,"R3InjectorError",this.source)}throw v}finally{Si(w),ur(C)}}resolveInjectorInitializers(){const g=ur(this),m=Si(void 0);try{const _=this.get(Au.multi,Ne,Qe.Self);for(const C of _)C()}finally{ur(g),Si(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Zi(g=te(g))?g:te(g&&g.provide);const _=function og(p){return xu(p)?Wr(void 0,p.useValue):Wr(Ny(p),ko)}(g);if(Zi(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Wr(void 0,ko,!0),C.factory=()=>lu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===ko&&(m.value=jy,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Uy(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ag(p){const g=Tr(p),m=null!==g?g.factory:De(p);if(null!==m)return m;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Tu(p){const g=p.length;if(g>0)throw Pa(g,"?"),new ie(204,!1);const m=function go(p){const g=p&&(p[In]||p[ga]);if(g){const m=function Ud(p){if(p.hasOwnProperty("name"))return p.name;const g=(""+p).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),g}return null}(p);return null!==m?()=>m.factory(p):()=>new p}(p);throw new ie(204,!1)}function Ny(p,g,m){let _;if(Zi(p)){const C=te(p);return De(C)||ag(C)}if(xu(p))_=()=>te(p.useValue);else if(function Zs(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...lu(p.deps||[]));else if(function yn(p){return!(!p||!p.useExisting)}(p))_=()=>li(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function zy(p){return!!p.deps}(p))return De(C)||ag(C);_=()=>new C(...lu(p.deps))}return _}function Wr(p,g,m=!1){return{factory:p,value:g,multi:m?[]:void 0}}function eT(p){return!!p.\u0275providers}function sg(p,g){for(const m of p)Array.isArray(m)?sg(m,g):eT(m)?sg(m.\u0275providers,g):g(m)}class Ic{}class Wy{resolveComponentFactory(g){throw function tT(p){const g=Error(`No component factory found for ${Q(p)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=p,g}(g)}}let La=(()=>{class p{}return p.NULL=new Wy,p})();function Eu(){return $r(qt(),be())}function $r(p,g){return new Yr(Vt(p,g))}let Yr=(()=>{class p{constructor(m){this.nativeElement=m}}return p.__NG_ELEMENT_ID__=Eu,p})();function nT(p){return p instanceof Yr?p.nativeElement:p}class $y{}let Yy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Qy(){const p=be(),m=Ct(qt().index,p);return(Hi(m)?m:p)[11]}(),p})(),rT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class Jy{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const aT=new Jy("14.1.2"),lg={};function pg(p){return p.ngOriginalError}class kc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&pg(g);for(;m&&pg(m);)m=pg(m);return m||null}}const fg=new Map;let bT=0;const mg="__ngContext__";function Li(p,g){Hi(g)?(p[mg]=g[20],function yT(p){fg.set(p[20],p)}(g)):p[mg]=g}function Vc(p){const g=p[mg];return"number"==typeof g?function nw(p){return fg.get(p)||null}(g):g||null}function _g(p){const g=Vc(p);return g?Hi(g)?g:g.lView:null}const ST=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function Qr(p){return p instanceof Function?p():p}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function Cg(p,g){return undefined(p,g)}function Bc(p){const g=p[3];return rn(g)?g[3]:g}function yg(p){return pw(p[13])}function wg(p){return pw(p[4])}function pw(p){for(;null!==p&&!rn(p);)p=p[4];return p}function el(p,g,m,_,C){if(null!=_){let w,v=!1;rn(_)?w=_:Hi(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==m?null==C?it(g,m,E):ft(g,m,E,C||null,!0):1===p&&null!==m?ft(g,m,E,C||null,!0):2===p?function Dg(p,g,m){const _=Wt(p,g);_&&function Sg(p,g,m,_){p.removeChild(g,m,_)}(p,_,g,m)}(g,E,v):3===p&&g.destroyNode(E),null!=w&&function Rg(p,g,m,_,C){const w=m[7];w!==ze(m)&&el(g,p,_,w,C);for(let E=10;E0&&(p[m-1][4]=_[4]);const w=ru(p,10+g);!function OT(p,g){Lo(p,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $n(p,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&Lo(p,g,m,3,null,null),function jT(p){let g=p[13];if(!g)return tl(p[1],p);for(;g;){let m=null;if(Hi(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==p;)Hi(g)&&tl(g[1],g),g=g[3];null===g&&(g=p),Hi(g)&&tl(g[1],g),m=g&&g[4]}g=m}}(g)}}function tl(p,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function mw(p,g){let m;if(null!=p&&null!=(m=p.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();g[7]=null}}(p,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&rn(g[3])){m!==g[3]&&gw(m,g);const _=g[19];null!==_&&_.detachView(p)}!function rw(p){fg.delete(p[20])}(g)}}function Tg(p,g,m){return function Eg(p,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(p,g.parent,m)}function ft(p,g,m,_,C){p.insertBefore(g,m,_,C)}function it(p,g,m){p.appendChild(g,m)}function ln(p,g,m,_,C){null!==_?ft(p,g,m,_,C):it(p,g,m)}function Wt(p,g){return p.parentNode(g)}function _w(p,g,m){return Mg(p,g,m)}let Mg=function Du(p,g,m){return 40&p.type?Vt(p,m):null};function Hu(p,g,m,_){const C=Tg(p,_,g),w=g[11],E=_w(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==Cw(re,P,0)||2&_&&P!==X){if(wn(_))return!1;v=!0}}}}else{if(!v&&!wn(_)&&!wn(S))return!1;if(v&&wn(S))continue;v=!1,_=S|1&_}}return wn(_)||v}function wn(p){return 0==(1&p)}function UT(p,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!wn(v)&&(g+=Bg(w,C),C=""),_=v,w=w||!wn(_);m++}return""!==C&&(g+=Bg(w,C)),g}const st={};function Vu(p){Bu(ut(),be(),Ri()+p,!1)}function Bu(p,g,m,_){if(!_)if(3==(3&g[2])){const w=p.preOrderCheckHooks;null!==w&&xo(g,w,m)}else{const w=p.preOrderHooks;null!==w&&Sa(g,w,0,m)}Or(m)}function Dw(p,g=null,m=null,_){const C=Hw(p,g,m,_);return C.resolveInjectorInitializers(),C}function Hw(p,g=null,m=null,_,C=new Set){const w=[m||Ne,ci(p)];return _=_||("object"==typeof p?void 0:Q(p)),new Pc(w,g||Bo(),_||null,C)}let Yn=(()=>{class p{static create(m,_){if(Array.isArray(m))return Dw({name:""},_,m,"");{const C=m.name??"";return Dw({name:C},m.parent,m.providers,C)}}}return p.THROW_IF_NOT_FOUND=Gs,p.NULL=new Dc,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>li(ng)}),p.__NG_ELEMENT_ID__=-1,p})();function ol(p,g=Qe.Default){const m=be();return null===m?li(p,g):wf(qt(),m,te(p),g)}function Lw(){throw new Error("invalid")}function zc(p,g){return p<<17|g<<2}function vn(p){return p>>17&32767}function We(p){return 2|p}function Kr(p){return(131068&p)>>2}function qg(p,g){return-131069&p|g<<2}function ja(p){return 1|p}function Zw(p,g){const m=p.contentQueries;if(null!==m)for(let _=0;_22&&Bu(p,g,22,!1),m(_,C)}finally{Or(w)}}function An(p,g,m){if(Es(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=p[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function dm(p,g){null!==p.hostBindings&&p.hostBindings(1,g)}function um(p,g){g.flags|=2,(p.components||(p.components=[])).push(g.index)}function Qc(p,g,m){if(m){if(g.exportAs)for(let _=0;_0&&gm(m)}}function gm(p){for(let _=yg(p);null!==_;_=wg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];cl(v,w,v.template,w[8])}else w[5]>0&&gm(w)}const m=p[1].components;if(null!==m)for(let _=0;_0&&gm(C)}}function dE(p,g){const m=Ct(g,p),_=m[1];(function ov(p,g){for(let m=g.length;mPromise.resolve(null))();function cv(p){return p[7]||(p[7]=[])}function dv(p){return p.cleanup||(p.cleanup=[])}function Jn(p,g,m){return(null===p||Ji(p))&&(m=function Bi(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(m[g.index])),m[11]}function Ua(p,g){const m=p[9],_=m?m.get(kc,null):null;_&&_.handleError(g)}function Cm(p,g,m,_,C){for(let w=0;w-1&&(Su(g,_),ru(m,_))}this._attachedToViewContainer=!1}$n(this._lView[1],this._lView)}onDestroy(g){th(this._lView[1],this._lView,null,g)}markForCheck(){mm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _m(p,g,m){const _=g[10];_.begin&&_.begin();try{cl(p,g,p.template,m)}catch(C){throw Ua(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function FT(p,g){Lo(p,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class hE extends Kc{constructor(g){super(g),this._view=g}detectChanges(){lv(this._view)}checkNoChanges(){}get context(){return null}}class ul extends La{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new Ga(m,this.ngModule)}}function hl(p){const g=[];for(let m in p)p.hasOwnProperty(m)&&g.push({propName:p[m],templateName:m});return g}class uv{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,lg,_);return C!==lg||m===lg?C:this.parentInjector.get(g,m,_)}}class Ga extends Ic{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function xw(p){return p.map(Aw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return hl(this.componentDef.inputs)}get outputs(){return hl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof Ai?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new uv(g,w):g,E=v.get($y,null);if(null===E)throw new ie(407,!1);const S=v.get(rT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function $c(p,g,m){return p.selectRootElement(g,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Ag(E.createRenderer(null,this.componentDef),R,function oh(p){const g=p.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function _E(p,g){return{components:[],scheduler:p||ST,clean:uE,playerHandler:g||null,flags:0}}(),me=eh(0,null,null,1,0,null,null,null,null,null),Ae=qc(null,me,re,X,null,null,E,P,S,v,null);let Pe,je;vo(Ae);try{const Ze=function mE(p,g,m,_,C,w){const v=m[1];m[22]=p;const S=Uo(v,22,2,"#host",null),P=S.mergedAttrs=g.hostAttrs;null!==P&&(rh(S,P,!0),null!==p&&(cr(C,p,P),null!==S.classes&&Fo(C,p,S.classes),null!==S.styles&&Ig(C,p,S.styles)));const R=_.createRenderer(p,g),L=qc(m,Xu(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(oc(Os(S,m),v,g.type),um(v,S),hm(S,m.length,1)),dl(m,L),m[22]=L}(L,this.componentDef,Ae,E,P);if(L)if(_)cr(P,L,["ng-version",aT.full]);else{const{attrs:ye,classes:$e}=function Tw(p){const g=[],m=[];let _=1,C=2;for(;_0&&Fo(P,L,$e.join(" "))}if(je=on(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Vs(C.hostAttrs,m=Vs(m,C.hostAttrs))}}(_)}function ym(p){return p===ct?{}:p===Ne?[]:p}function pv(p,g){const m=p.viewQuery;p.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function wm(p,g){const m=p.contentQueries;p.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function lh(p,g){const m=p.hostBindings;p.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Wo=null;function $o(){if(!Wo){const p=ce.Symbol;if(p&&p.iterator)Wo=p.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function vv(p,g,m,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Hm(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,ye,Ze,Ze+1)}}else w=Hm(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const Pe=Ae.length;if(Pe)for(let je=0;je0;)g=g[15],p--;return g}(p,le.lFrame.contextLView))[8]}(p)}function Av(p,g){let m=null;const _=function GT(p){const g=p.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(p);for(let C=0;C=0}const pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rd(p){return p.substring(pi.key,pi.keyEnd)}function Ev(p,g){const m=pi.textEnd;return m===g?-1:(g=pi.keyEnd=function zm(p,g,m){for(;g32;)g++;return g}(p,pi.key=g,m),Xo(p,g,m))}function Xo(p,g,m){for(;g=0;m=Ev(g,m))qi(p,rd(g),!0)}function Zn(p,g,m,_){const C=be(),w=ut(),v=Nn(2);w.firstUpdatePass&&Rv(w,p,v,_),g!==st&&di(C,v,g)&&kv(w,w.data[Ri()],C,C[11],p,C[v+1]=function DE(p,g){return null==p||("string"==typeof g?p+=g:"object"==typeof p&&(p=Q(qn(p)))),p}(g,m),_,v)}function Pv(p,g){return g>=p.expandoStartIndex}function Rv(p,g,m,_){const C=p.data;if(null===C[m+1]){const w=C[Ri()],v=Pv(p,m);Jm(w,_)&&null===g&&!v&&(g=!1),g=function AE(p,g,m,_){const C=sr(p);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=ts(m=Ym(null,p,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||p[v]!==C)if(m=Ym(C,p,g,m,_),null===w){let S=function xE(p,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Kr(_))return p[vn(_)]}(p,g,_);void 0!==S&&Array.isArray(S)&&(S=Ym(null,p,g,S[1],_),S=ts(S,g.attrs,_),function TE(p,g,m,_){p[vn(m?g.classBindings:g.styleBindings)]=_}(p,g,_,S))}else w=function EE(p,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=vn(p[E+1]);p[_+1]=zc(X,E),0!==X&&(p[X+1]=qg(p[X+1],_)),p[E+1]=function Fw(p,g){return 131071&p|g<<17}(p[E+1],_)}else p[_+1]=zc(E,0),0!==E&&(p[E+1]=qg(p[E+1],_)),E=_;else p[_+1]=zc(S,0),0===E?E=_:p[S+1]=qg(p[S+1],_),S=_;P&&(p[_+1]=We(p[_+1])),jm(p,R,_,!0),jm(p,R,_,!1),function vE(p,g,m,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof g&&Mo(w,g)>=0&&(m[_+1]=ja(m[_+1]))}(g,R,p,_,w),v=zc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}function Ym(p,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?ou(X,_):R===_?X:void 0;if(P&&!ad(re)&&(re=ou(S,_)),ad(re)&&(E=re,v))return E;const me=p[C+1];C=v?vn(me):Kr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=ou(S,_))}return E}function ad(p){return void 0!==p}function Jm(p,g){return 0!=(p.flags&(g?16:32))}function Vv(p,g=""){const m=be(),_=ut(),C=p+22,w=_.firstCreatePass?Uo(_,C,1,g,null):_.data[C],v=m[C]=function vg(p,g){return p.createText(g)}(m[11],g);Hu(_,m,v,w),Ot(w,!1)}function Km(p){return yh("",p,""),Km}function yh(p,g,m){const _=be(),C=Wa(_,p,g,m);return C!==st&&Xr(_,Ri(),C),yh}function Zm(p,g,m,_,C){const w=be(),v=function fl(p,g,m,_,C,w){const E=ia(p,jn(),m,C);return Nn(2),E?g+he(m)+_+he(C)+w:st}(w,p,g,m,_,C);return v!==st&&Xr(w,Ri(),v),Zm}function Xm(p,g,m,_,C,w,v){const E=be(),S=function gl(p,g,m,_,C,w,v,E){const P=ed(p,jn(),m,C,v);return Nn(3),P?g+he(m)+_+he(C)+w+he(v)+E:st}(E,p,g,m,_,C,w,v);return S!==st&&Xr(E,Ri(),S),Xm}function is(p,g,m,_,C,w,v,E,S,P,R){const L=be(),X=Yo(L,p,g,m,_,C,w,v,E,S,P,R);return X!==st&&Xr(L,Ri(),X),is}function s_(p,g,m){const _=be();return di(_,Ea(),g)&&xi(ut(),Jt(),_,p,g,_[11],m,!0),s_}function l_(p,g,m){const _=be();if(di(_,Ea(),g)){const w=ut(),v=Jt();xi(w,v,_,p,g,Jn(sr(w.data),v,_),m,!0)}return l_}const er=void 0;var tA=["en",[["a","p"],["AM","PM"],er],[["AM","PM"],er,er],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],er,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],er,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",er,"{1} 'at' {0}",er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function c_(p){const m=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let ns={};function vh(p){const g=function kE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let m=rA(g);if(m)return m;const _=g.split("-")[0];if(m=rA(_),m)return m;if("en"===_)return tA;throw new ie(701,!1)}function nA(p){return vh(p)[Ke.PluralCase]}function rA(p){return p in ns||(ns[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),ns[p]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const bl="en-US";let d_=bl;function Bh(p,g,m,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(Zi(p)||!p.multi){const re=new ks(S,C,ol),me=Lh(E,g,C?R:R+X,L);-1===me?(oc(Os(P,v),w,E),Oh(w,p,g.length),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Lh(E,g,R+X,L),me=Lh(E,g,R,R+X),Ae=re>=0&&m[re],Pe=me>=0&&m[me];if(C&&!Pe||!C&&!Ae){oc(Os(P,v),w,E);const je=function UE(p,g,m,_,C){const w=new ks(p,m,ol);return w.multi=[],w.index=g,w.componentProviders=0,Xa(w,C,_&&!m),w}(C?AA:D_,m.length,C,_,S);!C&&Pe&&(m[me].providerFactory=je),Oh(w,p,g.length,0),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(je),v.push(je)}else Oh(w,p,re>-1?re:me,Xa(m[C?me:re],S,!C&&_));!C&&_&&Pe&&m[me].componentProviders++}}}function Oh(p,g,m,_){const C=Zi(g),w=function Fy(p){return!!p.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&g.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Xa(p,g,m){return m&&p.componentProviders++,p.multi.push(g)-1}function Lh(p,g,m,_){for(let C=m;C<_;C++)if(g[C]===p)return C;return-1}function D_(p,g,m,_){return pd(this.multi,[])}function AA(p,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Fs(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),pd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Dl(p,g,m){const _=ut();if(_.firstCreatePass){const C=Ji(p);Bh(m,_.data,_.blueprint,C,!0),Bh(g,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,g)}}class cs{}class P_{}function xA(p,g){return new R_(p,g??null)}class R_ extends cs{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ul(this);const _=Ni(g);this._bootstrapComponents=Qr(_.bootstrap),this._r3Injector=Hw(g,m,[{provide:cs,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class I_ extends P_{constructor(g){super(),this.moduleType=g}create(g){return new R_(this.moduleType,g)}}class Fh extends cs{constructor(g,m,_){super(),this.componentFactoryResolver=new ul(this),this.instance=null;const C=new Pc([...g,{provide:cs,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],m||Bo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function ds(p,g,m=null){return new Fh(p,g,m).injector}function IA(p,g,m){const _=Oi()+p,C=be();return C[_]===st?Kn(C,_,m?g.call(m):g()):function ta(p,g){return p[g]}(C,_)}function kA(p,g,m,_){return B_(be(),Oi(),p,g,m,_)}function VA(p,g,m,_,C){return O_(be(),Oi(),p,g,m,_,C)}function fd(p,g){const m=p[g];return m===st?void 0:m}function B_(p,g,m,_,C,w){const v=g+m;return di(p,v,C)?Kn(p,v+1,w?_.call(w,C):_(C)):fd(p,v+1)}function O_(p,g,m,_,C,w,v){const E=g+m;return ia(p,E,C,w)?Kn(p,E+2,v?_.call(v,C,w):_(C,w)):fd(p,E+2)}function jA(p,g){const m=ut();let _;const C=p+22;m.firstCreatePass?(_=function eS(p,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(p===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Si(ol);try{const E=Bs(!1),S=w();return Bs(E),function Em(p,g,m,_){m>=p.data.length&&(p.data[m]=null,p.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Si(v)}}function NA(p,g,m){const _=p+22,C=be(),w=Ui(C,_);return gd(C,_)?B_(C,Oi(),g,w.transform,m,w):w.transform(m)}function zA(p,g,m,_){const C=p+22,w=be(),v=Ui(w,C);return gd(w,C)?O_(w,Oi(),g,v.transform,m,_,v):v.transform(m,_)}function UA(p,g,m,_,C){const w=p+22,v=be(),E=Ui(v,w);return gd(v,w)?function L_(p,g,m,_,C,w,v,E){const S=g+m;return ed(p,S,C,w,v)?Kn(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):fd(p,S+3)}(v,Oi(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function gd(p,g){return p[1].data[g].pure}function F_(p){return g=>{setTimeout(p,void 0,g)}}const wr=class iS extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=F_(w),C&&(C=F_(C)),v&&(v=F_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof h.w0&&g.add(E),E}};function nS(){return this._results[$o()]()}class Nh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=$o(),_=Nh.prototype;_[m]||(_[m]=nS)}get changes(){return this._changes||(this._changes=new wr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=sn(g);(this._changesDetected=!function Ef(p,g,m){if(p.length!==g.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=aS,p})();const rS=md,j_=class extends rS{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=qc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Wc(_,C,g),new Kc(C)}};function aS(){return _d(qt(),be())}function _d(p,g){return 4&p.type?new j_(g,p,$r(p,g)):null}let zh=(()=>{class p{}return p.__NG_ELEMENT_ID__=oS,p})();function oS(){return fi(qt(),be())}const sS=zh,qA=class extends sS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return $r(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const g=ac(this._hostTNode,this._hostLView);if(nc(g)){const m=Fr(g,this._hostLView),_=zn(g);return new Gi(m[1].data[_+8],m)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=WA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Ns(p){return"function"==typeof p}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new Ga(Et(g)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(Ai,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(p){return rn(p[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new qA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function NT(p,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const P=w[E+1],R=g[-S];for(let L=10;L{class p{constructor(m){this.appInits=m,this.resolve=ro,this.reject=ro,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return p.\u0275fac=function(m){return new(m||p)(li(gs,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const ap=new At("AppId",{providedIn:"root",factory:function Md(){return`${_s()}${_s()}${_s()}`}});function _s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const op=new At("Platform Initializer"),ab=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),sp=new At("appBootstrapListener"),_S=new At("AnimationModuleType");let bS=(()=>{class p{log(m){console.log(m)}warn(m){console.warn(m)}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const lp=new At("LocaleId",{providedIn:"root",factory:()=>Pf(lp,Qe.Optional|Qe.SkipSelf)||function lx(){return typeof $localize<"u"&&$localize.locale||bl}()}),Dd=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class cx{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let up=(()=>{class p{compileModuleSync(m){return new I_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Qr(Ni(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new Ga(S)),v},[]);return new cx(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const yS=(()=>Promise.resolve(0))();function pp(p){typeof Zone>"u"?yS.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class un{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function lb(){let p=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&g){const m=p[Zone.__symbol__("OriginalDelegate")];m&&(p=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function mp(p){const g=()=>{!function cb(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,_p(p),p.isCheckStableRunning=!0,gp(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),_p(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return hx(p),m.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&g(),db(p)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return hx(p),m.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&g(),db(p)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,_p(p),gp(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!un.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(un.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,fp,ro,ro);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const fp={};function gp(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function _p(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function hx(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function db(p){p._nesting--,gp(p)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const bs=new At(""),bp=new At("");let yp,ub=(()=>{class p{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,yp||(function wS(p){yp=p}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{un.assertNotInAngularZone(),pp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())pp(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return p.\u0275fac=function(m){return new(m||p)(li(un),li(Cp),li(bp))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),Cp=(()=>{class p{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return yp?.findTestabilityInTree(this,m,_)??null}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),vr=null;const px=new At("AllowMultipleToken"),hb=new At("PlatformDestroyListeners");class fx{constructor(g,m){this.name=g,this.token=m}}function vp(p,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Ap();if(!v||v.injector.get(px,!1)){const E=[...m,...w,{provide:C,useValue:!0}];p?p(E):function fb(p){if(vr&&!vr.get(px,!1))throw new ie(400,!1);vr=p;const g=p.get(xp);(function gb(p){const g=p.get(op,null);g&&g.forEach(m=>m())})(p)}(function mx(p=[],g){return Yn.create({name:g,providers:[{provide:rg,useValue:"platform"},{provide:hb,useValue:new Set([()=>vr=null])},...p]})}(E,_))}return function gx(p){const g=Ap();if(!g)throw new ie(401,!1);return g}()}}function Ap(){return vr?.get(xp)??null}let xp=(()=>{class p{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function _b(p,g){let m;return m="noop"===p?new Vl:("zone.js"===p?void 0:p)||new un(g),m}(_?.ngZone,function mb(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:un,useValue:C}];return C.run(()=>{const v=Yn.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(kc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Id(this._modules,E),P.unsubscribe()})}),function Rd(p,g,m){try{const _=m();return id(_)?_.catch(C=>{throw g.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(ms);return P.runInitializers(),P.donePromise.then(()=>(function rs(p){It(p,"Expected localeId to be defined"),"string"==typeof p&&(d_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(lp,bl)||bl),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=bb({},_);return function vS(p,g,m){const _=new I_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Bl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(hb,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(m){return new(m||p)(li(Yn))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function bb(p,g){return Array.isArray(g)?g.reduce(bb,p):{...p,...g}}let Bl=(()=>{class p{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{un.assertNotInAngularZone(),pp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Ic;if(!this._injector.get(ms).done)throw!C&&no(m),new ie(405,false);let v;v=C?m:this._injector.get(La).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function pb(p){return p.isBoundToModule}(v)?void 0:this._injector.get(cs),P=v.create(Yn.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(bs,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Id(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Id(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(sp,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Id(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(m){return new(m||p)(li(un),li(Ai),li(kc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Id(p,g){const m=p.indexOf(g);m>-1&&p.splice(m,1)}let kd=!0;function wb(){kd=!1}let Ab=(()=>{class p{}return p.__NG_ELEMENT_ID__=yx,p})();function yx(p){return function Tp(p,g,m){if(va(p)&&!m){const _=Ct(p.index,g);return new Kc(_,_)}return 47&p.type?new Kc(g[16],g):null}(qt(),be(),16==(16&p))}class Eb{constructor(){}supports(g){return pl(g)}create(g){return new Tx(g)}}const Sb=(p,g)=>g;class Tx{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Sb}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Mb(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new Ex),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ex),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Mb{constructor(g,m){this.item=g,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PS{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Ex{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new PS,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sx(p,g,m){const _=p.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new Ol(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class Ol{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Db(){return new Hb([new Eb])}let Hb=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Db()),deps:[[p,new ka,new Ho]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Db}),p})();function Mx(){return new Pb([new Hp])}let Pb=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Mx()),deps:[[p,new ka,new Ho]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Mx}),p})();const Hx=vp(null,"core",[]);let kS=(()=>{class p{constructor(m){}}return p.\u0275fac=function(m){return new(m||p)(li(Bl))},p.\u0275mod=Mr({type:p}),p.\u0275inj=oi({}),p})();function VS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let z;return function(T){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(z,x,T=null){super(z),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const z=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(z.idTokenHeader),h=yield x.calcHash(z.accessToken,T),O=base64UrlEncode(h.substr(0,h.length/2)),I=z.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(z){let x=z.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const h=T.indexOf("?");return T=T.substr(h>-1?h+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let h,V,O,I,j,W,Q;if(null===x)return T;h=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==h)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(z,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,z,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var z,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);z=!0}for(var T,V,h=0,O=F.length,I=this.blocks;h>2]|=F[h]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,z=this.lastByteIndex;F[16]=this.block,F[z>>2]|=EXTRA[3&z],this.block=F[16],z>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,J,ie,de,he,F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=z&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(J=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&V^~h&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&z)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&h^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&z^J))<<0,V=z+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&h)+K[W+2]+j[W+2])<<0,z=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,h=F+(U=h+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((he=z&x)^z&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+z<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+h<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,z>>24&255,z>>16&255,z>>8&255,255&z,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,h>>24&255,h>>16&255,h>>8&255,255&h,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),z=new DataView(F);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var z,x=F,T=new Uint8Array(x.length);for(z=0;z{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let h of x)T+=String.fromCharCode(h);return T}toHashString(x){const T=new Uint8Array(x);let h="";for(let V of T)h+=String.fromCharCode(V);return h}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,h,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{h?this.setStorage(h):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,h=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,h).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],h=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return h||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),h=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),h=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const h=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(h-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,h)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void h("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),h(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),h(V)}):h("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(h=>{this.jwks=h,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(h)},h=>{this.logger.error("error loading jwks",h),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",h)),T(h)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,h).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:h,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},h)}fetchTokenUsingGrant(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return h=h.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:h}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,h,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(h=>this.debug("tryLogin during silent refresh failed",h))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const h=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=h.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((h,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),h(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,h=x.width||500,V=window.screenLeft+(window.outerWidth-h)/2;return`location=no,toolbar=no,width=${h},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const h=x.data;return h.startsWith(T)?"#"+h.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),h=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),h.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",h,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",h="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=h||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"discovery_document_loaded"===h.type)).subscribe(h=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const h={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(h)}}storeAccessTokenResponse(x,T,h,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),h){const I=1e3*h,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const h=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(h),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?h=h.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(h,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:h}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const h=T.state;let[V,O]=this.parseState(h);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!h||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:h}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,h="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),h=x.substr(V+this.config.nonceStateSeparator.length))}return[T,h]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,h=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!h&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,J=this.getClockSkewInMsec();if(te-J>=U||ne+J<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let h=!1;"boolean"==typeof x&&(h=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||h||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let h=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(h);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===h.type)).subscribe(h=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(h=>{x[h]&&T.set(h,JSON.stringify(x[h]))}),T}revokeTokenAndLogout(x={},T=!1){let h=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(h,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(h,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,h){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=h}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const h=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(h)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,z,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function h(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(z,{Z:()=>h})},4147:F=>{"use strict";F.exports={i8:"9.2.0"}}},F=>{F(F.s=8587)}]); \ No newline at end of file +(self.webpackChunkconsolidator=self.webpackChunkconsolidator||[]).push([[179],{8587:(F,z,x)=>{"use strict";var T=x(6895),h=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(o){W=W||document.createElement("a"),W.setAttribute("href",o);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new h.OlP("TRANSITION_ID"),U=[{provide:h.ip1,useFactory:function $(o,r,e){return()=>{e.get(h.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let l=0;l{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const J=new h.OlP("EventManagerPlugins");let ie=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),ge=(()=>{class o extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function Ve(o){(0,T.q)().remove(o)}const Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class o{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case h.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case h.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ie),h.LFG(ge),h.LFG(h.AFp))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(h.JOm.DashCase|h.JOm.Important)?r.style.setProperty(e,t,a&h.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&h.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(o){return"TEMPLATE"===o.tagName&&void 0!==o.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(o){return"_ngcontent-%COMP%".replace(we,o)}(a+"-"+t.id),this.hostAttr=function Te(o){return"_nghost-%COMP%".replace(we,o)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class o extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Rn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},oi={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let Tr=(()=>{class o extends de{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,a){const l=o.parseEventName(t),c=o.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=o._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const s=t.indexOf(i);s>-1&&(t.splice(s,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function ql(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&pn.hasOwnProperty(r)&&(r=pn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Rn.forEach(l=>{l!=a&&(0,oi[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{o.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Qe=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:T.bD},{provide:h.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ga(){return(0,h.RDi)(document),document},deps:[]}]),ui=new h.OlP(""),ma=[{provide:h.rWj,useClass:class te{addToWindow(r){h.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},h.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(t=>{const a=h.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],Si=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function kn(){return new h.qLn},deps:[]},{provide:J,useClass:Ei,multi:!0,deps:[T.K0,h.R0b,h.Lbi]},{provide:J,useClass:Tr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,h.AFp]},{provide:h.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,h.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let _a=(()=>{class o{constructor(e){}static withServerTransition(e){return{ngModule:o,providers:[{provide:h.AFp,useValue:e.appId},{provide:G,useExisting:h.AFp},U]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ui,12))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[...Si,...ma],imports:[T.ez,h.hGG]}),o})(),Y=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,h.LFG)(T.K0))}(),t},providedIn:"root"}),o})();typeof window<"u"&&window;let si=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):h.LFG(rt),t},providedIn:"root"}),o})(),rt=(()=>{class o extends si{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case h.q3G.NONE:return t;case h.q3G.HTML:return(0,h.qzn)(t,"HTML")?(0,h.z3N)(t):(0,h.EiD)(this._doc,String(t)).toString();case h.q3G.STYLE:return(0,h.qzn)(t,"Style")?(0,h.z3N)(t):t;case h.q3G.SCRIPT:if((0,h.qzn)(t,"Script"))return(0,h.z3N)(t);throw new Error("unsafe value used in a script context");case h.q3G.URL:return(0,h.qzn)(t,"URL")?(0,h.z3N)(t):(0,h.mCW)(String(t));case h.q3G.RESOURCE_URL:if((0,h.qzn)(t,"ResourceURL"))return(0,h.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,h.JVY)(e)}bypassSecurityTrustStyle(e){return(0,h.L6k)(e)}bypassSecurityTrustScript(e){return(0,h.eBb)(e)}bypassSecurityTrustUrl(e){return(0,h.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,h.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function Ie(o){return new rt(o.get(T.K0))}(h.LFG(h.zs3)),t},providedIn:"root"}),o})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new h.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let at=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:N,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Rt=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"memberId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"queue")),null!=a&&(s=this.addToHttpParams(s,a,"subject")),null!=l&&(s=this.addToHttpParams(s,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yl=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addApplicationMailForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addApplicationMailForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}addGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}approveApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkForSimilarRichIdentities(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}consolidateIdentityUsingToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}copyFormFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyFormFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromGroupToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToGroup(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}copyMailsFromVoToVo(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}createApplicationFormInGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createApplicationFormInVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteApplicationMailForGroup(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteApplicationMailForVo(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationDataById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationMailsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getApplicationsForGroup(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getApplicationsForVo(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(N=>{s=this.addToHttpParams(s,N,"state[]")}),null!=a&&(s=this.addToHttpParams(s,a,"dateFrom")),null!=l&&(s=this.addToHttpParams(s,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getConsolidatorToken(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForGroupWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFormItemsForVoWithType(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsToAutoRegistration(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoApplicationForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}rejectApplication(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendInvitation(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let s=new y.LE({encoder:this.encoder});null!=a&&(s=this.addToHttpParams(s,a,"voId")),null!=l&&(s=this.addToHttpParams(s,l,"name")),null!=e&&(s=this.addToHttpParams(s,e,"email")),null!=t&&(s=this.addToHttpParams(s,t,"language"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,a,l,c,n="body",i=!1,s){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=a&&(d=this.addToHttpParams(d,a,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=s&&s.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=s&&s.context;void 0===H&&(H=new y.qT);let N="json";return b&&(N=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,a,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=a&&(i=this.addToHttpParams(i,a,"groupId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,a="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}sendMessage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setSendingEnabled(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}submitApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateApplicationMail(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateForm(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsData(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForGroup(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateFormItemsForVo(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}verifyApplication(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Pr=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==a)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let s=new y.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName")),null!=a&&(s=this.addToHttpParams(s,a,"extLogin")),l&&l.forEach(N=>{s=this.addToHttpParams(s,N,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return f&&(H=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:s,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=a&&(i=this.addToHttpParams(i,a,"force"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",s=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(f=f.set("Accept",H));let N=d&&d.context;void 0===N&&(N=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:N,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:s})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,s=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(s=s.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(s=s.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:s,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let s=l&&l.context;void 0===s&&(s=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(n=n.set("Accept",s));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return s&&(u=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let s,i=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(i=i.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(i=i.set("Authorization","Bearer "+s));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),gn=(()=>{class o{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let s="json";return n&&(s=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:s,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(ht,8),h.LFG(Oe,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jl=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:Oe,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(o,12),h.LFG(y.eN,8))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();var dt=(()=>{return(o=dt||(dt={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",dt;var o})();let rf=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const s=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,s),u=this.resolveAuthorization(n,s);a.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Ln.Xf)(o()).subscribe(r)})}var Kl=x(9635),_n=x(2843),ei=x(515),Nt=x(727),an=x(4482),zi=x(5403);function Ms(){return(0,an.e)((o,r)=>{let e=null;o._refCount++;const t=(0,zi.x)(r,void 0,void 0,void 0,()=>{if(!o||o._refCount<=0||0<--o._refCount)return void(e=null);const a=o._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});o.subscribe(t),t.closed||(e=o.connect())})}class af extends Vi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,an.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,zi.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Ms()(this)}}var ze=x(4004),Bi=x(3900),Gt=x(5698),Aa=x(3269);function Vt(...o){const r=(0,Aa.yG)(o);return(0,an.e)((e,t)=>{(r?(0,kr.z)(o,e,r):(0,kr.z)(o,e)).subscribe(t)})}var vi=x(5577),on=x(590),Ui=x(4351),Ct=x(8505),M=x(262);function k(o,r,e,t,a){return(l,c)=>{let n=e,i=r,s=0;l.subscribe((0,zi.x)(c,d=>{const u=s++;i=n?o(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(o,r){return(0,an.e)(k(o,r,arguments.length>=2,!0))}function B(o){return o<=0?()=>ei.E:(0,an.e)((r,e)=>{let t=[];r.subscribe((0,zi.x)(e,a=>{t.push(a),o{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ue(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,Xt.h)((a,l)=>o(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new Ss.K))}var Bt=x(9718);function Mt(o){return(0,an.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(o)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Qt(o){return new Ft(o)}function be(o,r,e){const t=e.path.split("/");if(t.length>o.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return o===r}function qt(o){return Array.prototype.concat.apply([],o)}function xa(o){return o.length>0?o[o.length-1]:null}function Ot(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function bn(o){return(0,h.CqO)(o)?o:(0,h.QGY)(o)?(0,wi.D)(Promise.resolve(o)):(0,De.of)(o)}const kC={exact:function jn(o,r,e){if(!sr(o.segments,r.segments)||!Zl(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!jn(o.children[t],r.children[t],e))return!1;return!0},subset:Ea},VC={exact:function Oi(o,r){return Pi(o,r)},subset:function sf(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>Fn(o[e],r[e]))},ignored:()=>!0};function Hs(o,r,e){return kC[e.paths](o.root,r.root,e.matrixParams)&&VC[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function Ea(o,r,e){return Nn(o,r,r.segments,e)}function Nn(o,r,e,t){if(o.segments.length>e.length){const a=o.segments.slice(0,e.length);return!(!sr(a,e)||r.hasChildren()||!Zl(a,e,t))}if(o.segments.length===e.length){if(!sr(o.segments,e)||!Zl(o.segments,e,t))return!1;for(const a in r.children)if(!o.children[a]||!Ea(o.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,o.segments.length),l=e.slice(o.segments.length);return!!(sr(o.segments,a)&&Zl(o.segments,a,t)&&o.children[qe])&&Nn(o.children[qe],r,l,t)}}function Zl(o,r,e){return r.every((t,a)=>VC[e](o[a].parameters,t.parameters))}class Br{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return cf.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vo(this)}}class Ps{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Qt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function sr(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}let Xl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(){return new Yd},providedIn:"root"}),o})();class Yd{parse(r){const e=new ic(r);return new Br(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${Ao(r.root,!0)}`,t=function Jt(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(a=>`${Rs(e)}=${Rs(a)}`).join("&"):`${Rs(e)}=${Rs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function df(o){return encodeURI(o)}(r.fragment)}`:""}`}}const cf=new Yd;function vo(o){return o.segments.map(r=>Ri(r)).join("/")}function Ao(o,r){if(!o.hasChildren())return vo(o);if(r){const e=o.children[qe]?Ao(o.children[qe],!1):"",t=[];return Ot(o.children,(a,l)=>{l!==qe&&t.push(`${l}:${Ao(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function lf(o,r){let e=[];return Ot(o.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(o.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(o,(t,a)=>a===qe?[Ao(o.children[qe],!1)]:[`${a}:${Ao(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[qe]?`${vo(o)}/${e[0]}`:`${vo(o)}/(${e.join("//")})`}}function Qd(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rs(o){return Qd(o).replace(/%3B/gi,";")}function Is(o){return Qd(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ec(o){return decodeURIComponent(o)}function uf(o){return ec(o.replace(/\+/g,"%20"))}function Ri(o){return`${Is(o.path)}${function Or(o){return Object.keys(o).map(r=>`;${Is(r)}=${Is(o[r])}`).join("")}(o.parameters)}`}const hf=/^[^\/()?;=#]+/;function tc(o){const r=o.match(hf);return r?r[0]:""}const pf=/^[^=?&#]+/,OC=/^[^&#]+/;class ic{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=tc(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(r),new Ps(ec(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=tc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=tc(this.remaining);a&&(t=a,this.capture(t))}r[ec(e)]=ec(t)}parseQueryParam(r){const e=function BC(o){const r=o.match(pf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function LC(o){const r=o.match(OC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=uf(e),l=uf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=tc(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new h.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new h.vHH(4011,!1)}}function xo(o){return o.segments.length>0?new gt([],{[qe]:o}):o}function Sa(o){const r={};for(const t of Object.keys(o.children)){const l=Sa(o.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Jd(o){if(1===o.numberOfChildren&&o.children[qe]){const r=o.children[qe];return new gt(o.segments.concat(r.segments),r.children)}return o}(new gt(o.segments,r))}function Lr(o){return o instanceof Br}function jC(o,r,e,t,a){if(0===e.length)return To(r.root,r.root,r.root,t,a);const l=function zC(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new NC(!0,0,o);let r=0,e=!1;const t=o.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,s)=>{n[s]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new NC(e,r,t)}(e);return l.toRoot()?To(r.root,r.root,new gt([],{}),t,a):function c(i){const s=function mf(o,r,e,t){if(o.isAbsolute)return new cr(r.root,!0,0);if(-1===t)return new cr(e,e===r.root,0);return function Vs(o,r,e){let t=o,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new h.vHH(4005,!1);a=t.segments.length}return new cr(t,!1,a-l)}(e,t+(lr(o.commands[0])?0:1),o.numberOfDoubleDots)}(l,r,o.snapshot?._urlSegment,i),d=s.processChildren?zn(s.segmentGroup,s.index,l.commands):nc(s.segmentGroup,s.index,l.commands);return To(r.root,s.segmentGroup,d,t,a)}(o.snapshot?._lastPathIndex)}function lr(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function Da(o){return"object"==typeof o&&null!=o&&o.outlets}function To(o,r,e,t,a){let c,l={};t&&Ot(t,(i,s)=>{l[s]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=o===r?e:ff(o,r,e);const n=xo(Sa(c));return new Br(n,l,a)}function ff(o,r,e){const t={};return Ot(o.children,(a,l)=>{t[l]=a===r?e:ff(a,r,e)}),new gt(o.segments,t)}class NC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&lr(t[0]))throw new h.vHH(4003,!1);const a=t.find(Da);if(a&&a!==xa(t))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function nc(o,r,e){if(o||(o=new gt([],{})),0===o.segments.length&&o.hasChildren())return zn(o,r,e);const t=function UC(o,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=o.segments[a],n=e[t];if(Da(n))break;const i=`${n}`,s=t0&&void 0===i)break;if(i&&s&&"object"==typeof s&&void 0===s.outlets){if(!GC(i,s,c))return l;t+=2}else{if(!GC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(o,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=nc(o.children[c],r,l))}),Ot(o.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(o.segments,a)}}function Fr(o,r,e){const t=o.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Fr(new gt([],{}),0,e))}),r}function Bs(o){const r={};return Ot(o,(e,t)=>r[t]=`${e}`),r}function GC(o,r,e){return o==e.path&&Pi(r,e.parameters)}class Un{constructor(r,e){this.id=r,this.url=e}}class rc extends Un{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class jr extends Un{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ki extends Un{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class bf extends Un{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Os extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xd extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eu extends Un{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ac extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oc extends Un{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Cf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wf{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class WC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ls{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Af{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=sc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=sc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=lc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return lc(r,this._root).map(e=>e.value)}}function sc(o,r){if(o===r.value)return r;for(const e of r.children){const t=sc(o,e);if(t)return t}return null}function lc(o,r){if(o===r.value)return[r];for(const e of r.children){const t=lc(o,e);if(t.length)return t.unshift(r),t}return[]}class Gi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function Eo(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class tu extends Af{constructor(r,e){super(r),this.snapshot=e,uc(this,r)}toString(){return this.snapshot.toString()}}function cc(o,r){const e=function $C(o,r){const c=new dr([],{},{},"",{},qe,r,null,o.root,-1,{});return new Ha("",new Gi(c,[]))}(o,r),t=new Yt([new Ps("",{})]),a=new Yt({}),l=new Yt({}),c=new Yt({}),n=new Yt(""),i=new Gn(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new tu(new Gi(i,[]),e)}class Gn{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(r=>Qt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Qt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dc(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function So(o){return o.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dr{constructor(r,e,t,a,l,c,n,i,s,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=s,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Qt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Qt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ha extends Af{constructor(r,e){super(e),this.url=r,uc(this,e)}toString(){return hc(this._root)}}function uc(o,r){r.value._routerState=o,r.children.forEach(e=>uc(o,e))}function hc(o){const r=o.children.length>0?` { ${o.children.map(hc).join(", ")} } `:"";return`${o.value}${r}`}function Nr(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Pi(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),Pi(r.params,e.params)||o.params.next(e.params),function ut(o,r){if(o.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||xf(o.parent,r.parent))}function At(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function U0(o,r,e){return r.children.map(t=>{for(const a of e.children)if(o.shouldReuseRoute(t.value,a.value.snapshot))return At(o,t,a);return At(o,t)})}(o,r,e);return new Gi(t,a)}{if(o.shouldAttach(r.value)){const l=o.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(o,n)),c}}const t=function G0(o){return new Gn(new Yt(o.url),new Yt(o.params),new Yt(o.queryParams),new Yt(o.fragment),new Yt(o.data),o.outlet,o.component,o)}(r.value),a=r.children.map(l=>At(o,l));return new Gi(t,a)}}const Tf="ngNavigationCancelingError";function QC(o,r){const{redirectTo:e,navigationBehaviorOptions:t}=Lr(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=JC(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function JC(o,r,e){const t=new Error("NavigationCancelingError: "+(o||""));return t[Tf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function KC(o){return ZC(o)&&Lr(o.url)}function ZC(o){return o&&o[Tf]}class js{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new pc,this.attachRef=null}}let pc=(()=>{class o{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new js,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iu=!1;let Kt=(()=>{class o{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,iu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,iu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,iu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new h.vHH(4013,iu);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new nu(e,n,a.injector);if(t&&function Ns(o){return!!o.resolveComponentFactory}(t)){const s=t.resolveComponentFactory(c);this.activated=a.createComponent(s,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(pc),h.Y36(h.s_b),h.$8M("name"),h.Y36(h.sBO),h.Y36(h.lqb))},o.\u0275dir=h.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class nu{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Gn?this.route:r===pc?this.childContexts:this.parent.get(r,e)}}let XC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&h._UZ(0,"router-outlet")},dependencies:[Kt],encapsulation:2}),o})();function Ef(o,r){return o.providers&&!o._injector&&(o._injector=(0,h.MMx)(o.providers,r,`Route: ${o.path}`)),o._injector??r}function Mf(o){const r=o.children&&o.children.map(Mf),e=r?{...o,children:r}:{...o};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=XC),e}function Cn(o){return o.outlet||qe}function au(o,r){const e=o.filter(t=>Cn(t)===r);return e.push(...o.filter(t=>Cn(t)!==r)),e}function qi(o){if(!o)return null;if(o.routeConfig?._injector)return o.routeConfig._injector;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Mo{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=Eo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Eo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=Eo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=Eo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new WC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new wf(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(Nr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=qi(a.snapshot),i=n?.get(h._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class ny{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class zs{constructor(r,e){this.component=r,this.route=e}}function ry(o,r,e){const t=o._root;return Us(t,r?r._root:null,e,[t.value])}function fc(o,r,e){return(qi(r)??e).get(o)}function Us(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=Eo(r);return o.children.forEach(c=>{(function oy(o,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=o.value,c=r?r.value:null,n=e?e.getContext(o.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function sy(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!sr(o.url,r.url);case"pathParamsOrQueryParamsChange":return!sr(o.url,r.url)||!Pi(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xf(o,r)||!Pi(o.queryParams,r.queryParams);default:return!xf(o,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new ny(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Us(o,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new zs(n.outlet.component,c))}else c&&Ra(r,n,a),a.canActivateChecks.push(new ny(t)),Us(o,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Ra(c,e.getContext(n),a)),a}function Ra(o,r,e){const t=Eo(o),a=o.value;Ot(t,(l,c)=>{Ra(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new zs(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Ur(o){return"function"==typeof o}function Ia(o){return o instanceof Ss.K||"EmptyError"===o?.name}const ur=Symbol("INITIAL_VALUE");function Do(){return(0,Bi.w)(o=>(0,Ir.a)(o.map(r=>r.pipe((0,Gt.q)(1),Vt(ur)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===ur)return ur;if(!1===e||e instanceof Br)return e}return!0}),(0,Xt.h)(r=>r!==ur),(0,Gt.q)(1)))}function Ho(o){return(0,Kl.z)((0,Ct.b)(r=>{if(Lr(r))throw QC(0,r)}),(0,ze.U)(r=>!0===r))}const ka={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function If(o,r,e,t,a){const l=mc(o,r,e);return l.matched?function Rf(o,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function cy(o){return o&&Ur(o.canMatch)}(n)?n.canMatch(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(Do(),Ho())}(t=Ef(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...ka})):(0,De.of)(l)}function mc(o,r,e){if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?{...ka}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||be)(e,o,r);if(!a)return{...ka};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function Gr(o,r,e,t,a="corrected"){if(e.length>0&&function py(o,r,e){return e.some(t=>hr(o,r,t)&&Cn(t)!==qe)}(o,e,t)){const c=new gt(r,function kf(o,r,e,t){const a={};a[qe]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Cn(l)!==qe){const c=new gt([],{});c._sourceSegment=o,c._segmentIndexShift=r.length,a[Cn(l)]=c}return a}(o,r,t,new gt(e,o.children)));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function fy(o,r,e){return e.some(t=>hr(o,r,t))}(o,e,t)){const c=new gt(o.segments,function _c(o,r,e,t,a,l){const c={};for(const n of t)if(hr(o,e,n)&&!a[Cn(n)]){const i=new gt([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===l?o.segments.length:r.length,c[Cn(n)]=i}return{...a,...c}}(o,r,e,t,o.children,a));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(o.segments,o.children);return l._sourceSegment=o,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hr(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Po(o,r,e,t){return!!(Cn(o)===t||t!==qe&&hr(r,e,o))&&("**"===o.path||mc(r,o,e).matched)}function Vf(o,r,e){return 0===r.length&&!o.children[e]}const du=!1;class Ws{constructor(r){this.segmentGroup=r||null}}class Bf{constructor(r){this.urlTree=r}}function bc(o){return(0,_n._)(new Ws(o))}function Of(o){return(0,_n._)(new Bf(o))}class Lf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=Gr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(Sa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Bf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ws?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(Sa(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Ws?this.noMatchError(a):a}))}noMatchError(r){return new h.vHH(4002,du)}createUrlTree(r,e,t){const a=xo(r);return new Br(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,wi.D)(a).pipe((0,Ui.b)(l=>{const c=t.children[l],n=au(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ue())}expandSegment(r,e,t,a,l,c){return(0,wi.D)(t).pipe((0,Ui.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(s=>{if(s instanceof Ws)return(0,De.of)(null);throw s}))),(0,on.P)(n=>!!n),(0,M.K)((n,i)=>{if(Ia(n))return Vf(e,a,l)?(0,De.of)(new gt([],{})):bc(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Po(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):bc(e):bc(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Of(l):this.lineralizeSegments(t,l).pipe((0,vi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:s,positionalParamSegments:d}=mc(e,a,l);if(!n)return bc(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?Of(u):this.lineralizeSegments(a,u).pipe((0,vi.z)(f=>this.expandSegment(r,e,t,f.concat(s),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Ef(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):If(e,t,a,r).pipe((0,Bi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,vi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:H}=Gr(e,n,i,f),N=new gt(b.segments,b.children);if(0===H.length&&N.hasChildren())return this.expandChildren(u,f,N).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===H.length)return(0,De.of)(new gt(n,{}));const ae=Cn(t)===l;return this.expandSegment(u,N,f,H,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):bc(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function cu(o,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=o.get(c),i=function Gs(o){return o&&Ur(o.canLoad)}(n)?n.canLoad(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(Do(),Ho())}(r,e,t).pipe((0,vi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function my(o){return(0,_n._)(JC(du,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,_n._)(new h.vHH(4e3,du));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new Br(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new h.vHH(4001,du);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class $0{}class uu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Gr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Gi(t,e),l=new Ha(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=dc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,wi.D)(Object.keys(t.children)).pipe((0,Ui.b)(a=>{const l=t.children[a],c=au(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(o,r=!1){return(0,an.e)((e,t)=>{let a=0;e.subscribe((0,zi.x)(t,l=>{const c=o(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ue(),(0,ze.U)(a=>{if(null===a)return null;const l=wc(a);return function by(o){o.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,wi.D)(e).pipe((0,Ui.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,on.P)(c=>!!c),(0,M.K)(c=>{if(Ia(c))return Vf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Po(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?xa(a).parameters:{},i=zf(t)+a.length,s=new dr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ys(e),Cn(e),e.component??e._loadedComponent??null,e,Nf(t),i,vc(e),i);c=(0,De.of)({snapshot:s,consumedSegments:[],remainingSegments:[]})}else c=If(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:s,parameters:d})=>{if(!n)return null;const u=zf(t)+i.length;return{snapshot:new dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ys(e),Cn(e),e.component??e._loadedComponent??null,e,Nf(t),u,vc(e),u),consumedSegments:i,remainingSegments:s}}));return c.pipe((0,Bi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:s,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function jf(o){return o.children?o.children:o.loadChildren?o._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Gr(t,s,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]));if(0===f.length&&0===H.length)return(0,De.of)([new Gi(i,[])]);const N=Cn(e)===l;return this.processSegment(u,f,b,H,N?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]))}))}}function yc(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function wc(o){const r=[],e=new Set;for(const t of o){if(!yc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=wc(t.children);r.push(new Gi(t.value,a))}return r.filter(t=>!e.has(t))}function Nf(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function zf(o){let r=o,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ys(o){return o.data||{}}function vc(o){return o.resolve||{}}const Ac=Symbol("RouteTitle");function qf(o){return"string"==typeof o.title||null===o.title}function hu(o){return(0,Bi.w)(r=>{const e=o(r);return e?(0,wi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let qn=(()=>{class o{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[Ac]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:function(){return(0,h.f3M)(Ba)},providedIn:"root"}),o})(),Ba=(()=>{class o extends qn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Y))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Ay{}class Ty extends class xy{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const pu=new h.OlP("",{providedIn:"root",factory:()=>({})}),xc=new h.OlP("ROUTES");let fu=(()=>{class o{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=bn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new af(t,()=>new He.x).pipe(Ms());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,s,d=!1;Array.isArray(n)?s=n:(i=n.create(e).injector,s=qt(i.get(xc,[],h.XFs.Self|h.XFs.Optional)));return{routes:s.map(Mf),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new af(l,()=>new He.x).pipe(Ms());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return bn(e()).pipe((0,vi.z)(t=>t instanceof h.YKP||Array.isArray(t)?(0,De.of)(t):(0,wi.D)(this.compiler.compileModuleAsync(t))))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.zs3),h.LFG(h.Sil))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Sy{}class My{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Q0(o){throw o}function Dy(o,r,e){return r.parse("/")}const Qs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},$f={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Io(){const o=(0,h.f3M)(Xl),r=(0,h.f3M)(pc),e=(0,h.f3M)(T.Ye),t=(0,h.f3M)(h.zs3),a=(0,h.f3M)(h.Sil),l=(0,h.f3M)(xc,{optional:!0})??[],c=(0,h.f3M)(pu,{optional:!0})??{},n=(0,h.f3M)(Ba),i=(0,h.f3M)(qn,{optional:!0}),s=(0,h.f3M)(Sy,{optional:!0}),d=(0,h.f3M)(Ay,{optional:!0}),u=new ti(null,o,r,e,t,a,qt(l));return s&&(u.urlHandlingStrategy=s),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function Wn(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(c,u),u}let ti=(()=>{class o{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.x,this.errorHandler=Q0,this.malformedUriErrorHandler=Dy,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new My,this.routeReuseStrategy=new Ty,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new Cf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new qC(f)),this.ngModule=c.get(h.h0i),this.console=c.get(h.c2e);const u=c.get(h.R0b);this.isNgZoneEnabled=u instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function z0(){return new Br(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=cc(this.currentUrlTree,this.rootComponentType),this.transitions=new Yt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Xt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Bi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Bi.w)(n=>{const i=this.browserUrlTree.toString(),s=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||s)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return gu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Bi.w)(u=>{const f=this.transitions.getValue();return t.next(new rc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?ei.E:Promise.resolve(u)}),function _y(o,r,e,t){return(0,Bi.w)(a=>function Cc(o,r,e,t,a){return new Lf(o,r,e,t,a).apply()}(o,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function Uf(o,r,e,t,a,l){return(0,vi.z)(c=>function Y0(o,r,e,t,a,l,c="emptyOnly",n="legacy"){return new uu(o,r,e,t,a,c,n,l).recognize().pipe((0,Bi.w)(i=>null===i?function Ff(o){return new Vi.y(r=>r.error(o))}(new $0):(0,De.of)(i)))}(o,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new Os(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(s&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:H,restoredState:N,extras:ae}=n,ke=new rc(f,this.serializeUrl(b),H,N);t.next(ke);const lt=cc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),ei.E}),(0,Ct.b)(n=>{const i=new Xd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ry(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function li(o,r){return(0,vi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Hf(o,r,e,t){return(0,wi.D)(o).pipe((0,vi.z)(a=>function hy(o,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=fc(n,r,a);return bn(function ly(o){return o&&Ur(o.canDeactivate)}(i)?i.canDeactivate(o,r,e,t):i(o,r,e,t)).pipe((0,on.P)())});return(0,De.of)(c).pipe(Do())}(a.component,a.route,e,r,t)),(0,on.P)(a=>!0!==a,!0))}(c,t,a,o).pipe((0,vi.z)(n=>n&&function q0(o){return"boolean"==typeof o}(n)?function Pf(o,r,e,t){return(0,wi.D)(r).pipe((0,Ui.b)(a=>(0,kr.z)(function qs(o,r){return null!==o&&r&&r(new yf(o)),(0,De.of)(!0)}(a.route.parent,t),function lu(o,r){return null!==o&&r&&r(new vf(o)),(0,De.of)(!0)}(a.route,t),function uy(o,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function ay(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Vr(()=>{const n=c.guards.map(i=>{const s=fc(i,c.node,e);return bn(function gc(o){return o&&Ur(o.canActivateChild)}(s)?s.canActivateChild(t,o):s(t,o)).pipe((0,on.P)())});return(0,De.of)(n).pipe(Do())}));return(0,De.of)(l).pipe(Do())}(o,a.path,e),function dy(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Vr(()=>{const c=fc(l,r,e);return bn(function su(o){return o&&Ur(o.canActivate)}(c)?c.canActivate(r,o):c(r,o)).pipe((0,on.P)())}));return(0,De.of)(a).pipe(Do())}(o,a.route,e))),(0,on.P)(a=>!0!==a,!0))}(t,l,o,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Lr(n.guardsResult))throw QC(0,n.guardsResult);const i=new eu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Xt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),hu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const s=new ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}),(0,Bi.w)(i=>{let s=!1;return(0,De.of)(i).pipe(function Gf(o,r){return(0,vi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,wi.D)(a).pipe((0,Ui.b)(c=>function Va(o,r,e,t){const a=o.routeConfig,l=o._resolve;return void 0!==a?.title&&!qf(a)&&(l[Ac]=a.title),function yy(o,r,e,t){const a=function wy(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}(o);if(0===a.length)return(0,De.of)({});const l={};return(0,wi.D)(a).pipe((0,vi.z)(c=>function vy(o,r,e,t){const a=fc(o,r,t);return bn(a.resolve?a.resolve(r,e):a(r,e))}(o[c],r,e,t).pipe((0,on.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Ia(c)?ei.E:(0,_n._)(c)))}(l,o,r,t).pipe((0,ze.U)(c=>(o._resolvedData=c,o.data=dc(o,e).resolve,a&&qf(a)&&(o.data[Ac]=a.title),null)))}(c.route,t,o,r)),(0,Ct.b)(()=>l++),B(1),(0,vi.z)(c=>l===a.length?(0,De.of)(e):ei.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>s=!0,complete:()=>{s||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const s=new oc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(s)}))}),hu(n=>{const i=s=>{const d=[];s.routeConfig?.loadComponent&&!s.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(s.routeConfig).pipe((0,Ct.b)(u=>{s.component=u}),(0,ze.U)(()=>{})));for(const u of s.children)d.push(...i(u));return d};return(0,Ir.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Gt.q)(1))}),hu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function YC(o,r,e){const t=At(o,r._root,e?e._root:void 0);return new tu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((o,r,e)=>(0,ze.U)(t=>(new Mo(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,ZC(n)){KC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ki(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),KC(n)){const s=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gu(a.source)};this.scheduleNavigation(s,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new bf(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(s){a.reject(s)}}return ei.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Mf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,s=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),jC(s,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Lr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Yf(o){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new jr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,s;c?(n=c.resolve,i=c.reject,s=c.promise):s=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,a){const l=new Ki(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:function(){return Io()},providedIn:"root"}),o})();function gu(o){return"imperative"!==o}let mu=(()=>{class o{constructor(e,t,a){this.router=e,this.route=t,this.locationStrategy=a,this.commands=null,this.href=null,this.onChanges=new He.x,this.subscription=e.events.subscribe(l=>{l instanceof jr&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,a,l,c){if(0!==e||t||a||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const n={skipLocationChange:(0,h.D6c)(this.skipLocationChange),replaceUrl:(0,h.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,n),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,h.D6c)(this.preserveFragment)})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(ti),h.Y36(Gn),h.Y36(T.S$))},o.\u0275dir=h.lG2({type:o,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&h.uIk("target",t.target)("href",t.href,h.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[h.TTD]}),o})();class Ec{}let K0=(()=>{class o{preload(e,t){return(0,De.of)(null)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Hy=(()=>{class o{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Xt.h)(e=>e instanceof jr),(0,Ui.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,h.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,wi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,vi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,wi.D)([l,c]).pipe((0,mt.J)())}return l})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ti),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Ec),h.LFG(fu))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const bu=new h.OlP("");let Py=(()=>{class o{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof rc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof jr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ls&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Ls(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Kf=new h.OlP("ROUTER_FORROOT_GUARD"),Cu=new h.OlP(""),Sc=[T.Ye,{provide:Xl,useClass:Yd},{provide:ti,useFactory:Io},pc,{provide:Gn,useFactory:function Zf(o){return o.routerState.root},deps:[ti]},fu];function yu(){return new h.PXZ("Router",ti)}let Mc=(()=>{class o{constructor(e){}static forRoot(e,t){return{ngModule:o,providers:[Sc,[],vu(e),{provide:Kf,useFactory:wu,deps:[[ti,new h.FiY,new h.tp0]]},{provide:pu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:bu,useFactory:()=>{const o=(0,h.f3M)(ti),r=(0,h.f3M)(T.EM),e=(0,h.f3M)(pu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Py(o,r,e)}},t?.preloadingStrategy?ng(t.preloadingStrategy):[],{provide:h.PXZ,multi:!0,useFactory:yu},t?.initialNavigation?ky(t):[],[{provide:eg,useFactory:Iy},{provide:h.tb,multi:!0,useExisting:eg}]]}}static forChild(e){return{ngModule:o,providers:[vu(e)]}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Kf,8))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();function wu(o){return"guarded"}function vu(o){return[{provide:xc,multi:!0,useValue:o}]}function Iy(){const o=(0,h.f3M)(h.zs3);return r=>{const e=o.get(h.z2F);if(r!==e.components[0])return;const t=o.get(ti),a=o.get(tg);1===o.get(ig)&&t.initialNavigation(),o.get(Cu,null,h.XFs.Optional)?.setUpPreloading(),o.get(bu,null,h.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const eg=new h.OlP("");function ky(o){return["disabled"===o.initialNavigation?[{provide:h.ip1,multi:!0,useFactory:()=>{const o=(0,h.f3M)(ti);return()=>{o.setUpLocationChangeListener()}}},{provide:ig,useValue:2}]:[],"enabledBlocking"===o.initialNavigation?[{provide:ig,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:o=>{const r=o.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=o.get(ti),c=o.get(tg);(function t(a){o.get(ti).events.pipe((0,Xt.h)(c=>c instanceof jr||c instanceof Ki||c instanceof bf),(0,ze.U)(c=>c instanceof jr||c instanceof Ki&&(0===c.code||1===c.code)&&null),(0,Xt.h)(c=>null!==c),(0,Gt.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const tg=new h.OlP("",{factory:()=>new He.x}),ig=new h.OlP("",{providedIn:"root",factory:()=>1});function ng(o){return[Hy,{provide:Cu,useExisting:Hy},{provide:Ec,useExisting:o}]}let Dc;try{Dc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Dc=!1}let Oa,ci=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!Dc)&&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 o.\u0275fac=function(e){return new(e||o)(h.LFG(h.Lbi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Hc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ly(){if(Oa)return Oa;if("object"!=typeof document||!document)return Oa=new Set(Hc),Oa;let o=document.createElement("input");return Oa=new Set(Hc.filter(r=>(o.setAttribute("type",r),o.type===r))),Oa}let Ks,Zi,ko;function yn(o){return function xu(){if(null==Ks&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ks=!0}))}finally{Ks=Ks||!1}return Ks}()?o:!!o.capture}function Fy(){if(null==Zi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Zi=!1,Zi;if("scrollBehavior"in document.documentElement.style)Zi=!0;else{const o=Element.prototype.scrollTo;Zi=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return Zi}function Vo(o){if(function jy(){if(null==ko){const o=typeof document<"u"?document.head:null;ko=!(!o||!o.createShadowRoot&&!o.attachShadow)}return ko}()){const r=o.getRootNode?o.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Bo(){let o=typeof document<"u"&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function Ai(o){return o.composedPath?o.composedPath()[0]:o.target}function Pc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $n(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var tl=x(8372);function xg(o){return(0,Xt.h)((r,e)=>o<=e)}function Tg(o,r){return o===r}var Eg=x(5032);function ft(o){return(0,an.e)((r,e)=>{(0,Ln.Xf)(o).subscribe((0,zi.x)(e,()=>e.complete(),Eg.Z)),!e.closed&&r.subscribe(e)})}function it(o){return null!=o&&"false"!=`${o}`}function ln(o,r=0){return Sg(o)?Number(o):r}function Sg(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function Mu(o){return Array.isArray(o)?o:[o]}function Wt(o){return null==o?"":"string"==typeof o?o:`${o}px`}function ni(o){return o instanceof h.SBq?o.nativeElement:o}let Du=(()=>{class o{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Mg=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ni(e);return new Vi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Du))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),il=(()=>{class o{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new h.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ln(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,tl.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Mg),h.Y36(h.SBq),h.Y36(h.R0b))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),Oo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Du]}),o})();const nl=new Set;let Fa,Pu=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ru}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Dg(o){if(!nl.has(o))try{Fa||(Fa=document.createElement("style"),Fa.setAttribute("type","text/css"),document.head.appendChild(Fa)),Fa.sheet&&(Fa.sheet.insertRule(`@media ${o} {body{ }}`,0),nl.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ru(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Lo=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Hg(Mu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Hg(Mu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ir.a)(a);return l=(0,kr.z)(l.pipe((0,Gt.q)(1)),l.pipe(xg(1),(0,tl.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:s})=>{n.matches=n.matches||i,n.breakpoints[s]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Vi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pu),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Hg(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function Fo(o,r){return(o.getAttribute(r)||"").match(/\S+/g)||[]}const yw="cdk-describedby-message",rl="cdk-describedby-host";let Iu=0,kg=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iu++,this._document=e,this._id=(0,h.f3M)(h.AFp)+"-"+Iu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=ku(t,a);"string"!=typeof t?(Vg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=ku(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${rl}="${this._id}"]`);for(let t=0;t0!=a.indexOf(yw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function bw(o,r,e){const t=Fo(o,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(rl,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Ig(o,r,e){const a=Fo(o,r).filter(l=>l!=e.trim());a.length?o.setAttribute(r,a.join(" ")):o.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(rl)}_isElementDescribedByMessage(e,t){const a=Fo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function ku(o,r){return"string"==typeof o?`${r||""}/${o}`:o}function Vg(o,r){o.id||(o.id=`${yw}-${r}-${Iu++}`)}class Oc extends class wn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.x,this.change=new He.x,r instanceof h.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,tl.b)(r),(0,Xt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||$n(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof h.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Lc=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function vw(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ww(o){try{return o.frameElement}catch{return null}}(function Sw(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===Bu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Bu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function Og(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Ew(o){return!function Aw(o){return function Tw(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function Bg(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function xw(o){return function st(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||Vu(o))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Vu(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Bu(o){if(!Vu(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Lg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(r)}}let Ou=(()=>{class o{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Lg(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Lc),h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Yn(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function Fc(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Lu=new h.OlP("cdk-input-modality-detector-options"),Fu={ignoreKeys:[18,17,224,91,16]},al=yn({passive:!0,capture:!0});let $T=(()=>{class o{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Yt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ai(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yn(c)?"keyboard":"mouse"),this._mostRecentTarget=Ai(c))},this._onTouchstart=c=>{Fc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ai(c))},this._options={...Fu,...l},this.modalityDetected=this._modality.pipe(xg(1)),this.modalityChanged=this.modalityDetected.pipe(function mw(o,r=le.y){return o=o??Tg,(0,an.e)((e,t)=>{let a,l=!0;e.subscribe((0,zi.x)(t,c=>{const n=r(c);(l||!o(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,al),a.addEventListener("mousedown",this._onMousedown,al),a.addEventListener("touchstart",this._onTouchstart,al)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,al),document.removeEventListener("mousedown",this._onMousedown,al),document.removeEventListener("touchstart",this._onTouchstart,al))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Lu,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const jo=new h.OlP("cdk-focus-monitor-default-options"),jc=yn({passive:!0,capture:!0});let cn=(()=>{class o{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,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 He.x,this._rootNodeFocusAndBlurListener=n=>{for(let s=Ai(n);s;s=s.parentElement)"focus"===n.type?this._onFocus(n,s):this._onBlur(n,s)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ni(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Vo(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new He.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ni(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ni(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=Ai(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,jc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class o{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,h.f3M)(Lo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(zu,jg,Nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(zu,jg):2===t&&e.add(zu,Nu)}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Nc=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ng))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Oo]}),o})();const Iw=new h.OlP("cdk-dir-doc",{providedIn:"root",factory:function kw(){return(0,h.f3M)(T.K0)}}),zg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Qn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new h.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Vw(o){const r=o?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?zg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Iw,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Fw=new h.OlP("mat-sanity-checks",{providedIn:"root",factory:function Gg(){return!0}});let We=(()=>{class o{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Pc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ng),h.LFG(Fw,8),h.LFG(T.K0))},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr,Jr]}),o})();function ja(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=it(r)}}}function No(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function fr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=it(r)}}}function sl(o){return class extends o{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const qu=new h.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Wu(){return(0,h.f3M)(h.soG)}});class Xi{constructor(){this._localeChanges=new He.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const $u=new h.OlP("mat-date-formats"),Nw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Yu(o,r){const e=Array(o);for(let t=0;t{class o extends Xi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Yu(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Yu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Yu(7,a=>this._format(t,new Date(2017,0,a+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Nw.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(qu,8),h.LFG(ci))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const zw={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 $g=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:Wg}]}),o})(),Uw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:$u,useValue:zw}],imports:[$g]}),o})(),Gc=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),zo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})();class KT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Gw={enterDuration:225,exitDuration:150},Jg=yn({passive:!0}),qw=["mousedown","touchstart"],Ww=["mouseup","mouseleave","touchend","touchcancel"];class $w{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ni(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Gw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function XT(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,s=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${s}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,N=new KT(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",N.state=0,t.persistent||(this._mostRecentTransientRipple=N);let ae=null;return!H&&(s||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(N),lt=()=>this._destroyRipple(N);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(N,ae),(H||!s)&&this._finishRippleTransition(N),N}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Gw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ni(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(qw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ww),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=Yn(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Jg)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(qw.forEach(r=>{this._triggerElement.removeEventListener(r,this,Jg)}),this._pointerUpEventsRegistered&&Ww.forEach(r=>{this._triggerElement.removeEventListener(r,this,Jg)}))}}const Yw=new h.OlP("mat-ripple-global-options");let Na=(()=>{class o{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new $w(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(ci),h.Y36(Yw,8),h.Y36(h.QbO,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-ripple-unbounded",t.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"]}),o})(),hi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Ju=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We]}),o})(),Ku=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,T.ez,We,Ju]}),o})();const qc=["mat-button",""],Uo=["*"],Wc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],cl=No(ja(fr(class{constructor(o){this._elementRef=o}})));let Zr=(()=>{class o extends cl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Wc)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(cn),h.Y36(h.QbO,8))},o.\u0275cmp=h.Xpm({type:o,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(e,t){if(1&e&&h.Gf(Na,5),2&e){let a;h.iGM(a=h.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(h.uIk("disabled",t.disabled||null),h.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.qOj],attrs:qc,ngContentSelectors:Uo,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(e,t){1&e&&(h.F$t(),h.TgZ(0,"span",0),h.Hsn(1),h.qZA(),h._UZ(2,"span",1)(3,"span",2)),2&e&&(h.xp6(2),h.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),h.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Na],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),o})(),An=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,We]}),o})();var Zu=x(1144),xn=x(576),Xu=x(3268);const eh=["addListener","removeListener"],ev=["addEventListener","removeEventListener"],rE=["on","off"];function $c(o,r,e,t){if((0,xn.m)(e)&&(t=e,e=void 0),t)return $c(o,r,e).pipe((0,Xu.Z)(t));const[a,l]=function im(o){return(0,xn.m)(o.addEventListener)&&(0,xn.m)(o.removeEventListener)}(o)?ev.map(c=>n=>o[c](r,n,e)):function tv(o){return(0,xn.m)(o.addListener)&&(0,xn.m)(o.removeListener)}(o)?eh.map(th(o,r)):function tm(o){return(0,xn.m)(o.on)&&(0,xn.m)(o.off)}(o)?rE.map(th(o,r)):[];if(!a&&(0,Zu.z)(o))return(0,vi.z)(c=>$c(c,r,e))((0,Ln.Xf)(o));if(!a)throw new TypeError("Invalid event target");return new Vi.y(c=>{const n=(...i)=>c.next(1l(n)})}function th(o,r){return e=>t=>o[e](r,t)}var nm=x(4408);const xi={schedule(o){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=xi;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,o(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...o){const{delegate:r}=xi;return(r?.requestAnimationFrame||requestAnimationFrame)(...o)},cancelAnimationFrame(...o){const{delegate:r}=xi;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...o)},delegate:void 0};var am=x(7565);const om=new class aE extends am.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class rm extends nm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=xi.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(xi.cancelAnimationFrame(e),r._scheduled=void 0)}});let ih,lm=1;const Yc={};function cm(o){return o in Yc&&(delete Yc[o],!0)}const dm={setImmediate(o){const r=lm++;return Yc[r]=!0,ih||(ih=Promise.resolve()),ih.then(()=>cm(r)&&o()),r},clearImmediate(o){cm(o)}},{setImmediate:um,clearImmediate:iv}=dm,Qc={setImmediate(...o){const{delegate:r}=Qc;return(r?.setImmediate||um)(...o)},clearImmediate(o){const{delegate:r}=Qc;return(r?.clearImmediate||iv)(o)},delegate:void 0},nh=new class pm extends am.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class hm extends nm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Qc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Qc.clearImmediate(e),r._scheduled=void 0)}});var Jc=x(4986),fm=x(2805);function rv(o,r=Jc.z){return function nv(o){return(0,an.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const s=a;a=null,e.next(s)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,zi.x)(e,s=>{t=!0,a=s,l||(0,Ln.Xf)(o(s)).subscribe(l=(0,zi.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,fm.H)(o,r))}let dl=(()=>{class o{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new He.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Vi.y(t=>{this._globalSubscription||this._addGlobalListener();const a=e>0?this._scrolled.pipe(rv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Xt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ni(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>$c(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b),h.LFG(ci),h.LFG(T.K0,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),qo=(()=>{class o{constructor(e,t,a){this._platform=e,this._change=new He.x,this._changeListener=l=>{this._change.next(l)},this._document=a,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(rv(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b),h.LFG(T.K0,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),Ua=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr,Jn,Jr,Jn]}),o})();class ul{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class hl extends ul{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class oh extends ul{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class uv extends ul{constructor(r){super(),this.element=r instanceof h.SBq?r.nativeElement:r}}class Ga{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof hl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof oh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof uv?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class fE extends Ga{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||h.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let sh=(()=>{class o extends Ga{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new h.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h._Vd),h.Y36(h.s_b),h.Y36(T.K0))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[h.qOj]}),o})(),ea=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();var $i=x(6451);const Zc=Fy();class hv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Zc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Zc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class pv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class wm{enable(){}disable(){}attach(){}}function lh(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function vm(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class fv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();lh(e,[{width:t,height:a,bottom:a,right:t,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 gv=(()=>{class o{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new wm,this.close=c=>new pv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new hv(this._viewportRuler,this._document),this.reposition=c=>new fv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(dl),h.LFG(qo),h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Wo{constructor(r){if(this.scrollStrategy=new wm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class pl{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Xc=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mv=(()=>{class o extends Xc{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),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(e){return new(e||o)(h.LFG(T.K0),h.LFG(h.R0b,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kn=(()=>{class o extends Xc{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=Ai(l)},this._clickListener=l=>{const c=Ai(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const d=i[s];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(ci),h.LFG(h.R0b,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ta=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Pc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new He.x,this._outsidePointerEvents=new He.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Gt.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=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,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Mu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,$i.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const ia="cdk-overlay-connected-position-bounding-box",ed=/([A-Za-z%]+)$/;class dn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,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 He.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(ia),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),s=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(s,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,s,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=s)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ia),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Wa(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),s=this._getOffset(a,"y");i&&(c+=i),s&&(n+=s);let f=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),N=this._subtractOverflows(l.height,f,b),ae=H*N;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:N===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=qa(this._overlayRef.getConfig().minHeight),n=qa(this._overlayRef.getConfig().minWidth),s=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&s}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Wa(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),s=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?s||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,mr(this._boundingBox.style,a)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();mr(t,this._getExactOverlayY(e,r,d)),mr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),s=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),s&&(n+=`translateY(${s}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vm(r,t),isOriginOutsideView:lh(r,t),isOverlayClipped:vm(e,t),isOverlayOutsideView:lh(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Mu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof h.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function mr(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function qa(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(ed);return e&&"px"!==e?null:parseFloat(r)}return o||null}function Wa(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 $a="cdk-global-overlay-wrapper";class Yo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add($a),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),s=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",H="",N="";i?N="flex-start":"center"===d?(N="center",f?H=u:b=u):f?"left"===d||"end"===d?(N="flex-end",b=u):("right"===d||"start"===d)&&(N="flex-start",H=u):"left"===d||"start"===d?(N="flex-start",b=u):("right"===d||"end"===d)&&(N="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=s?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=N,e.alignItems=s?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove($a),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Qo=(()=>{class o{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new Yo}flexibleConnectedTo(e){return new dn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(qo),h.LFG(T.K0),h.LFG(ci),h.LFG(ta))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Jo=0,Ti=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=s,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Wo(e);return c.direction=c.direction||this._directionality.value,new di(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Jo++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(h.z2F)),new fE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(gv),h.LFG(ta),h.LFG(h._Vd),h.LFG(Qo),h.LFG(mv),h.LFG(h.zs3),h.LFG(h.R0b),h.LFG(T.K0),h.LFG(Qn),h.LFG(T.Ye),h.LFG(Kn),h.LFG(h.QbO,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const Tm={provide:new h.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Ti],useFactory:function xm(o){return()=>o.scrollStrategies.reposition()}};let Ya=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Ti,Tm],imports:[Jr,ea,Ua,Ua]}),o})();class ch{}const _r="*";function ri(o,r){return{type:7,name:o,definitions:r,options:{}}}function wt(o,r=null){return{type:4,styles:r,timings:o}}function Em(o,r=null){return{type:3,steps:o,options:r}}function dh(o,r=null){return{type:2,steps:o,options:r}}function Fe(o){return{type:6,styles:o,offset:null}}function pt(o,r,e){return{type:0,name:o,styles:r,options:e}}function _t(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function Ko(o=null){return{type:9,options:o}}function Ja(o,r,e=null){return{type:11,selector:o,animation:r,options:e}}function td(o){Promise.resolve(null).then(o)}class Zo{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){td(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class id{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?td(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Sm=["connectionContainer"],ph=["inputContainer"],fh=["label"];function vv(o,r){1&o&&(h.ynx(0),h.TgZ(1,"div",14),h._UZ(2,"div",15)(3,"div",16)(4,"div",17),h.qZA(),h.TgZ(5,"div",18),h._UZ(6,"div",15)(7,"div",16)(8,"div",17),h.qZA(),h.BQk())}function Mm(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",19),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.Hsn(1,1),h.qZA()}if(2&o){const e=h.oxw();h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Dm(o,r){if(1&o&&(h.ynx(0),h.Hsn(1,2),h.TgZ(2,"span"),h._uU(3),h.qZA(),h.BQk()),2&o){const e=h.oxw(2);h.xp6(3),h.Oqu(e._control.placeholder)}}function Hm(o,r){1&o&&h.Hsn(0,3,["*ngSwitchCase","true"])}function Pm(o,r){1&o&&(h.TgZ(0,"span",23),h._uU(1," *"),h.qZA())}function Av(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"label",20,21),h.NdJ("cdkObserveContent",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.updateOutlineGap())}),h.YNc(2,Dm,4,1,"ng-container",12),h.YNc(3,Hm,1,0,"ng-content",12),h.YNc(4,Pm,2,0,"span",22),h.qZA()}if(2&o){const e=h.oxw();h.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),h.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),h.uIk("for",e._control.id)("aria-owns",e._control.id),h.xp6(2),h.Q6J("ngSwitchCase",!1),h.xp6(1),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Rm(o,r){1&o&&(h.TgZ(0,"div",24),h.Hsn(1,4),h.qZA())}function Im(o,r){if(1&o&&(h.TgZ(0,"div",25),h._UZ(1,"span",26),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function gh(o,r){if(1&o&&(h.TgZ(0,"div"),h.Hsn(1,5),h.qZA()),2&o){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState)}}function mh(o,r){if(1&o&&(h.TgZ(0,"div",30),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.Q6J("id",e._hintLabelId),h.xp6(1),h.Oqu(e.hintLabel)}}function km(o,r){if(1&o&&(h.TgZ(0,"div",27),h.YNc(1,mh,2,2,"div",28),h.Hsn(2,6),h._UZ(3,"div",29),h.Hsn(4,7),h.qZA()),2&o){const e=h.oxw();h.Q6J("@transitionMessages",e._subscriptAnimationState),h.xp6(1),h.Q6J("ngIf",e.hintLabel)}}const Vm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Bm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Om=0;const _h=new h.OlP("MatError");let Lm=(()=>{class o{constructor(e,t){this.id="mat-error-"+Om++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(h.$8M("aria-live"),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("id",t.id)},inputs:{id:"id"},features:[h._Bn([{provide:_h,useExisting:o}])]}),o})();const Fm={transitionMessages:ri("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ml=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o}),o})(),jm=0;const Nm=new h.OlP("MatHint");let pi=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+jm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(h.uIk("id",t.id)("align",null),h.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[h._Bn([{provide:Nm,useExisting:o}])]}),o})(),rd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-label"]]}),o})(),xv=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const Tv=new h.OlP("MatPrefix"),Sv=new h.OlP("MatSuffix");let bh=0;const Dv=No(class{constructor(o){this._elementRef=o}},"primary"),Um=new h.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ch=new h.OlP("MatFormField");let Gm=(()=>{class o extends Dv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+bh++,this._labelId="mat-form-field-label-"+bh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=it(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,$i.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,$c(this._label.nativeElement,"transitionend").pipe((0,Gt.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,a=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Oo,We]}),o})();const Jm={provide:new h.OlP("mat-select-scroll-strategy"),deps:[Ti],useFactory:function ad(o){return()=>o.scrollStrategies.reposition()}};let is=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Jm],imports:[T.ez,Ya,Ku,We,Jn,es,Ku,We]}),o})();const e_=["tooltip"],wh="tooltip-panel",i_=yn({passive:!0}),n_=new h.OlP("mat-tooltip-scroll-strategy"),jv={provide:n_,deps:[Ti],useFactory:function Fv(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Nv=new h.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function zv(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Uv=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=s,this._dir=u,this._defaultOptions=f,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 He.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ln(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ln(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,a])=>{e.removeEventListener(t,a,i_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new hl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${wh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!$n(a)&&(a.preventDefault(),a.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(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Gt.q)(1),ft(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${wh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,a])=>{this._elementRef.nativeElement.addEventListener(t,a,i_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return o.\u0275fac=function(e){h.$Z()},o.\u0275dir=h.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),o})(),r_=(()=>{class o extends Uv{constructor(e,t,a,l,c,n,i,s,d,u,f,b){super(e,t,a,l,c,n,i,s,d,u,f,b),this._tooltipComponent=qv}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ti),h.Y36(h.SBq),h.Y36(dl),h.Y36(h.s_b),h.Y36(h.R0b),h.Y36(ci),h.Y36(kg),h.Y36(cn),h.Y36(n_),h.Y36(Qn,8),h.Y36(Nv,8),h.Y36(T.K0))},o.\u0275dir=h.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[h.qOj]}),o})(),Gv=(()=>{class o{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new He.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.sBO),h.Y36(h.QbO,8))},o.\u0275dir=h.lG2({type:o}),o})(),qv=(()=>{class o extends Gv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.sBO),h.Y36(Lo),h.Y36(h.QbO,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&h.Gf(e_,7),2&e){let a;h.iGM(a=h.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&h.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&h.Udp("zoom",t.isVisible()?1:null)},features:[h.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(h.TgZ(0,"div",0,1),h.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),h.ALo(2,"async"),h._uU(3),h.qZA()),2&e){let a;h.ekj("mat-tooltip-handset",null==(a=h.lcZ(2,4,t._isHandset))?null:a.matches),h.Q6J("ngClass",t.tooltipClass),h.xp6(3),h.Oqu(t.message)}},dependencies:[T.mk,T.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}),o})(),_l=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[jv],imports:[Nc,T.ez,Ya,We,We,Jn]}),o})(),od=(()=>{class o{constructor(){this.changes=new He.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const o_={provide:od,deps:[[new h.FiY,new h.tp0,od]],useFactory:function a_(o){return o||new od}};let er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[o_],imports:[T.ez,An,is,_l,We]}),o})();var c_=x(1005);const tA=["mat-menu-item",""];function ns(o,r){1&o&&(h.O4$(),h.TgZ(0,"svg",2),h._UZ(1,"polygon",3),h.qZA())}const iA=["*"];function vh(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",0),h.NdJ("keydown",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._handleKeydown(a))})("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){h.CHM(e);const l=h.oxw();return h.KtG(l._onAnimationDone(a))}),h.TgZ(1,"div",1),h.Hsn(2),h.qZA()()}if(2&o){const e=h.oxw();h.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),h.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ah={transformMenu:ri("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ri("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},IE=new h.OlP("MatMenuContent"),xh=new h.OlP("MAT_MENU_PANEL"),sd=fr(ja(class{}));let Ka=(()=>{class o extends sd{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new He.x,this._focused=new He.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class o{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new h.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new h.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+d_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=it(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=it(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Oc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Bi.w)(e=>(0,$i.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Bi.w)(t=>(0,$i.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:$n(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Gt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},o.\u0275dir=h.lG2({type:o,contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,IE,5),h.Suo(a,Ka,5),h.Suo(a,Ka,4)),2&e){let l;h.iGM(l=h.CRH())&&(t.lazyContent=l.first),h.iGM(l=h.CRH())&&(t._allItems=l),h.iGM(l=h.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&h.Gf(h.Rgc,5),2&e){let a;h.iGM(a=h.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),o})(),aA=(()=>{class o extends rs{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(h.R0b),h.Y36($t),h.Y36(h.sBO))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&h.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[h._Bn([{provide:xh,useExisting:o}]),h.qOj],ngContentSelectors:iA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(h.F$t(),h.YNc(0,vh,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ah.transformMenu,Ah.fadeInItems]},changeDetection:0}),o})();const Th=new h.OlP("mat-menu-scroll-strategy"),h_={provide:Th,deps:[Ti],useFactory:function u_(o){return()=>o.scrollStrategies.reposition()}},p_=yn({passive:!0});let sA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=s,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{Fc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new h.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new h.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof rs?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,p_),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,p_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof rs&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof rs?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Xt.h)(a=>"void"===a.toState),(0,Gt.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Wo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,s]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",s="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:s,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:s,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Xt.h)(c=>c!==this._menuItemInstance),(0,Xt.h)(()=>this._menuOpen)):(0,De.of)();return(0,$i.T)(e,a,l,t)}_handleMousedown(e){Yn(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Xt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,c_.g)(0,nh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof rs&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Gt.q)(1),(0,c_.g)(0,nh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new oh(e.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ti),h.Y36(h.SBq),h.Y36(h.s_b),h.Y36(Th),h.Y36(xh,8),h.Y36(Ka,10),h.Y36(Qn,8),h.Y36(cn),h.Y36(h.R0b))},o.\u0275dir=h.lG2({type:o,hostVars:3,hostBindings:function(e,t){1&e&&h.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&h.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),o})(),lA=(()=>{class o extends sA{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[h.qOj]}),o})(),na=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[h_],imports:[T.ez,We,hi,Ya,Jn,We]}),o})();var cA=x(4742),dA=x(1810);function Eh(...o){const r=(0,Aa.jO)(o),{args:e,keys:t}=(0,cA.D)(o),a=new Vi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,s=c;for(let d=0;d{u||(u=!0,s--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(s||l.next(t?(0,dA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,Xu.Z)(r)):a}var Cl=x(3099);const f_=["*"];let yl;function wl(o){return function g_(){if(void 0===yl&&(yl=null,typeof window<"u")){const o=window;void 0!==o.trustedTypes&&(yl=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return yl}()?.createHTML(o)||o}function as(o){return Error(`Unable to find icon with the name "${o}"`)}function m_(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function __(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Za{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let os=(()=>{class o{constructor(e,t,a,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new Za(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(h.q3G.HTML,a);if(!c)throw __(a);const n=wl(c);return this._addSvgIconConfig(e,t,new Za("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new Za(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(h.q3G.HTML,t);if(!l)throw __(t);const c=wl(l);return this._addSvgIconSetConfig(e,new Za("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(h.q3G.RESOURCE_URL,e);if(!t)throw m_(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(ld(a)):this._loadSvgIconFromConfig(new Za(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>ld(l)))}getNamedSvgIcon(e,t=""){const a=Sh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(as(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(ld(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>ld(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Eh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const s=`Loading icon set URL: ${this._sanitizer.sanitize(h.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(s)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw as(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(wl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(wl("")),a=e.attributes;for(let l=0;lwl(s)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,Cl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Sh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let a=0;ar?r.pathname+r.search:""}}}),fA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],C_=fA.map(o=>`[${o}]`).join(", "),cd=/^url\(['"]?#(.*?)['"]?\)$/;let ra=(()=>{class o extends pA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=it(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(C_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),s=i?i.match(cd):null;if(s){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:s[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Gt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(os),h.$8M("aria-hidden"),h.Y36(FE),h.Y36(h.qLn),h.Y36(LE,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),h.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[h.qOj],ngContentSelectors:f_,decls:1,vars:0,template:function(e,t){1&e&&(h.F$t(),h.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),o})(),yr=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})();function Tn(o){return!!o&&(o instanceof Vi.y||(0,xn.m)(o.lift)&&(0,xn.m)(o.subscribe))}var Al=x(6063);class gA extends He.x{constructor(r=1/0,e=1/0,t=Al.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew gA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class xl{}let w_=(()=>{class o extends xl{getTranslation(e){return(0,De.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Mh{}let Dh=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function dd(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let a,l,c,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),o){if(!dd(o[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=o.length)==r.length){for(l=0;l{oa(r[t])?t in o?e[t]=v_(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Tl{}let A_=(()=>{class o extends Tl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!aa(e)||!aa(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return aa(c)?c:a}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class El{}let x_=(()=>{class o extends El{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class Hh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new h.vpe,this.onLangChange=new h.vpe,this.onDefaultLangChange=new h.vpe}}const Ph=new h.OlP("USE_STORE"),Sl=new h.OlP("USE_DEFAULT_LANG"),Rh=new h.OlP("DEFAULT_LANGUAGE"),ud=new h.OlP("USE_EXTEND");let En=(()=>{class o{constructor(e,t,a,l,c,n=!0,i=!1,s=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=s,this.pending=!1,this._onTranslationChange=new h.vpe,this._onLangChange=new h.vpe,this._onDefaultLangChange=new h.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Gt.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(y_(1),(0,Gt.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),y_(1),(0,Gt.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?v_(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),Tn(c[i])&&(n=!0);return n?Eh(t.map(s=>Tn(c[s])?c[s]:(0,De.of)(c[s]))).pipe((0,ze.U)(s=>{let d={};return s.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ui.b)(a=>Tn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return Tn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,kr.z)(Vr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Bi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');return(0,kr.z)(Vr(()=>this.get(e,t)),this.onLangChange.pipe((0,Bi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return Tn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!aa(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(Tn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Hh),h.LFG(xl),h.LFG(El),h.LFG(Tl),h.LFG(Mh),h.LFG(Sl),h.LFG(Ph),h.LFG(ud),h.LFG(Rh))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),en=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);Tn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(dd(e,this.lastKey)&&dd(t,this.lastParams))return this.value;let a;if(aa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(En,16),h.Y36(h.sBO,16))},o.\u0275pipe=h.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),ss=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:xl,useClass:w_},e.compiler||{provide:El,useClass:x_},e.parser||{provide:Tl,useClass:A_},e.missingTranslationHandler||{provide:Mh,useClass:Dh},Hh,{provide:Ph,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:ud,useValue:e.extend},{provide:Rh,useValue:e.defaultLanguage},En]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:xl,useClass:w_},e.compiler||{provide:El,useClass:x_},e.parser||{provide:Tl,useClass:A_},e.missingTranslationHandler||{provide:Mh,useClass:Dh},{provide:Ph,useValue:e.isolate},{provide:Sl,useValue:e.useDefaultLang},{provide:ud,useValue:e.extend},{provide:Rh,useValue:e.defaultLanguage},En]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),hd=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[er,na,yr,An,ss,T.ez]}),o})();function mA(o,r){}class Ml{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 T_=(()=>{class o extends Ga{constructor(e,t,a,l,c,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=Bo(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Bo();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Bo())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Ml),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&h.Gf(sh,7),2&e){let a;h.iGM(a=h.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&h.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,mA,0,0,"ng-template",0)},dependencies:[sh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),o})();class Ih{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new He.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!$n(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const E_=new h.OlP("DialogScrollStrategy"),_A=new h.OlP("DialogData"),bA=new h.OlP("DefaultDialogConfig"),yA={provide:E_,deps:[Ti],useFactory:function CA(o){return()=>o.scrollStrategies.block()}};let S_=0,kh=(()=>{class o{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Vr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Ml,...t}).id=t.id||"cdk-dialog-"+S_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Ih(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){Vh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){Vh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Vh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Wo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Ml,useValue:a},{provide:Ih,useValue:t},{provide:di,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=T_;const i=new hl(n,a.viewContainerRef,h.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof h.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new oh(e,null,n,c))}else{const n=a.attachComponentPortal(new hl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:_A,useValue:e.data},{provide:Ih,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Qn,null,h.XFs.Optional))&&c.push({provide:Qn,useValue:{value:e.direction,change:(0,De.of)()}}),h.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ti),h.LFG(h.zs3),h.LFG(bA,8),h.LFG(o,12),h.LFG(ta),h.LFG(E_))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();function Vh(o,r){let e=o.length;for(;e--;)r(o[e])}let wA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[kh,yA],imports:[Ya,ea,Nc,ea]}),o})();function M_(o,r){}const ls={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vA={dialogContainer:ri("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",Em([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ja("@*",Ko(),{optional:!0})]),ls),_t("* => void, * => exit",Em([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ja("@*",Ko(),{optional:!0})]),ls)])};class Dl{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=ls.params.enterAnimationDuration,this.exitAnimationDuration=ls.params.exitAnimationDuration}}let Bh=(()=>{class o extends T_{constructor(e,t,a,l,c,n,i,s){super(e,t,a,l,c,n,i,s),this._animationStateChanged=new h.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["ng-component"]],features:[h.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),o})(),Oh=(()=>{class o extends Bh{constructor(e,t,a,l,c,n,i,s,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=s,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ls.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ls.params.exitAnimationDuration}}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(Ou),h.Y36(T.K0,8),h.Y36(Dl),h.Y36(Lc),h.Y36(h.R0b),h.Y36(di),h.Y36(h.sBO),h.Y36(cn))},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&h.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(h.Ikx("id",t._config.id),h.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),h.d8E("@dialogContainer",t._getAnimationState()))},features:[h.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&h.YNc(0,M_,0,0,"ng-template",0)},dependencies:[sh],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:[vA.dialogContainer]}}),o})();class Xa{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new He.x,this._beforeClosed=new He.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Xt.h)(a=>"opened"===a.state),(0,Gt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Xt.h)(a=>"closed"===a.state),(0,Gt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,$i.T)(this.backdropClick(),this.keydownEvents().pipe((0,Xt.h)(a=>27===a.keyCode&&!this.disableClose&&!$n(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Lh(o,r,e){o._closeInteractionType=r,o.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Xt.h)(e=>"closing"===e.state),(0,Gt.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const D_=new h.OlP("MatDialogData"),AA=new h.OlP("mat-dialog-default-options"),pd=new h.OlP("mat-dialog-scroll-strategy"),cs={provide:pd,deps:[Ti],useFactory:function H_(o){return()=>o.scrollStrategies.block()}};let P_=0,xA=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=s,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.x,this._afterOpenedAtThisLevel=new He.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Vr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(kh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Dl,...t}).id=t.id||`${this._idPrefix}${P_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dl,useValue:t},{provide:Ml,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){h.$Z()},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),eo=(()=>{class o extends xA{constructor(e,t,a,l,c,n,i,s){super(e,t,l,n,i,c,Xa,Oh,D_,s)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Ti),h.LFG(h.zs3),h.LFG(T.Ye,8),h.LFG(AA,8),h.LFG(pd),h.LFG(o,12),h.LFG(ta),h.LFG(h.QbO,8))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),R_=0,Fh=(()=>{class o{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+R_++}ngOnInit(){this._dialogRef||(this._dialogRef=function TA(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa,8),h.Y36(h.SBq),h.Y36(eo))},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&h.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),ds=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),jh=(()=>{class o{constructor(){this.align="start"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&h.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),o})(),us=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[eo,cs],imports:[wA,Ya,ea,We,We]}),o})();function V_(o,r){for(const e of o)if(e.namespace+":"+e.friendlyName===r)return e;return null}function hs(){const o=new Dl;return o.disableClose=!0,o.autoFocus=!1,o}x(4327),new Intl.Collator("cs",{numeric:!0});let fi=(()=>{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let a=null;for(const l of t)l&&!a&&(a=l[e]);return a}get(...e){let t;if(""!==this.branding){const a=this.instanceConfig.brandings[this.branding];for(let l=0;l{class o{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(ti),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=function _d(o,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(o))return l}return""}("idphint",location.search.substring(1));n&&(c.idphint=n)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(a=>a?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Xt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Xt.h)(e=>e instanceof jr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const a of t)if(e.startsWith(a))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(a=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!a||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.zs3),h.LFG(fi),h.LFG(eo),h.LFG(Gn),h.LFG(Hl.Ct))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lS=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(h.TgZ(0,"h2",0),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[ds,en]}),o})(),to=(()=>{class o{constructor(e,t,a,l,c,n){this.authService=e,this.storeService=t,this.authResolver=a,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=hs();this.dialog.open(lS,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const a of e){const l=a.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pl),h.LFG(fi),h.LFG(rf),h.LFG(at),h.LFG(eo),h.LFG(ti))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Uh=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(os),h.LFG(si))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),Gh=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div",2)(7,"div",3)(8,"button",4),h.NdJ("click",function(){return t.close()}),h._uU(9),h.ALo(10,"translate"),h.qZA()()()),2&e&&(h.xp6(1),h.Oqu(h.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),h.xp6(3),h.hij(" ",h.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),h.xp6(5),h.hij(" ",h.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Fh,ds,jh,Zr,en]}),o})(),qh=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),bd=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new h.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(En))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),U_=(()=>{class o{constructor(e,t,a,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const a=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=hs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Gh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,_n._)(n):l?void this.notificator.showRPCError(i):(0,_n._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Pl),h.LFG(qh),h.LFG(bd),h.LFG(fi),h.LFG(eo),h.LFG(to))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),$A=(()=>{class o{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(bd),h.LFG(Pl),h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),G_=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Gn),h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Cd=(()=>{class o{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const a of e)if(a.newApps.admin===t||a.newApps.profile===t||a.newApps.pwdReset===t||a.newApps.consolidator===t||a.newApps.linker===t)return a;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],n=o.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let i;if(n.newApps[e])i=n.newApps[e],"pwdReset"===e&&(i+=`?login-namespace=${t}`);else switch(i=n.oldGuiDomain+"/fed",e){case"admin":i+="/gui/";break;case"profile":i+="/profile/";break;case"pwdReset":i+=`/pwd-reset/?login-namespace=${t}`}return i}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(fi))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wh=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Qsj),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o}),o})(),sa=(()=>{class o extends Wh{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,features:[h.qOj]}),o})();const Fi=new h.OlP("NgValueAccessor"),JA={provide:Fi,useExisting:(0,h.Gpc)(()=>bi),multi:!0},KA=new h.OlP("CompositionEventMode");let bi=(()=>{class o extends Wh{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function W_(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(KA,8))},o.\u0275dir=h.lG2({type:o,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&h.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[h._Bn([JA]),h.qOj]}),o})();function la(o){return null==o||("string"==typeof o||Array.isArray(o))&&0===o.length}function $_(o){return null!=o&&"number"==typeof o.length}const Ci=new h.OlP("NgValidators"),io=new h.OlP("NgAsyncValidators"),Y_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class yd{static min(r){return function fs(o){return r=>{if(la(r.value)||la(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(la(r.value)||la(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return wd(r)}static requiredTrue(r){return function J_(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function Yh(o){return la(o.value)||Y_.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function K_(o){return r=>la(r.value)||!$_(r.value)?null:r.value.length$_(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function no(o){if(!o)return vd;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(la(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return Zh(r)}static composeAsync(r){return ep(r)}}function wd(o){return la(o.value)?{required:!0}:null}function vd(o){return null}function Ad(o){return null!=o}function Qh(o){return(0,h.QGY)(o)?(0,wi.D)(o):o}function Jh(o){let r={};return o.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Rl(o,r){return r.map(e=>e(o))}function ZA(o){return o.map(r=>function Kh(o){return!o.validate}(r)?r:e=>r.validate(e))}function Zh(o){if(!o)return null;const r=o.filter(Ad);return 0==r.length?null:function(e){return Jh(Rl(e,r))}}function Xh(o){return null!=o?Zh(ZA(o)):null}function ep(o){if(!o)return null;const r=o.filter(Ad);return 0==r.length?null:function(e){return Eh(Rl(e,r).map(Qh)).pipe((0,ze.U)(Jh))}}function ca(o){return null!=o?ep(ZA(o)):null}function X_(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function tp(o){return o._rawValidators}function xd(o){return o._rawAsyncValidators}function eb(o){return o?Array.isArray(o)?o:[o]:[]}function Td(o,r){return Array.isArray(o)?o.includes(r):o===r}function XA(o,r){const e=eb(r);return eb(o).forEach(a=>{Td(e,a)||e.push(a)}),e}function tb(o,r){return eb(r).filter(e=>!Td(o,e))}class ib{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=Xh(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=ca(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class ji extends ib{get formDirective(){return null}get path(){return null}}class Sn extends ib{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let np=(()=>{class o extends class ip{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Sn,2))},o.\u0275dir=h.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&h.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[h.qOj]}),o})();const Sd="VALID",ro="INVALID",kl="PENDING",gs="DISABLED";function ms(o){return(_s(o)?o.validators:o)||null}function ap(o){return Array.isArray(o)?Xh(o):o||null}function Md(o,r){return(_s(r)?r.asyncValidators:o)||null}function sx(o){return Array.isArray(o)?ca(o):o||null}function _s(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}class sp{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=ap(this._rawValidators),this._composedAsyncValidatorFn=sx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Sd}get invalid(){return this.status===ro}get pending(){return this.status==kl}get disabled(){return this.status===gs}get enabled(){return this.status!==gs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=ap(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=sx(r)}addValidators(r){this.setValidators(XA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(XA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(tb(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(tb(r,this._rawAsyncValidators))}hasValidator(r){return Td(this._rawValidators,r)}hasAsyncValidator(r){return Td(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=kl,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=gs,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Sd,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Sd||this.status===kl)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?gs:Sd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=kl,this._hasOwnPendingAsyncValidator=!0;const e=Qh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?gs:this.errors?ro:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(kl)?kl:this._anyControlsHaveStatus(ro)?ro:Sd}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){_s(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class ob extends sp{constructor(r,e,t){super(ms(e),Md(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function ab(o,r,e){o._forEachChild((t,a)=>{if(void 0===e[a])throw new h.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function op(o,r,e){const t=o.controls;if(!(r?Object.keys(t):t).length)throw new h.vHH(1e3,"");if(!t[e])throw new h.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Hd(o,r){up(o,r),r.valueAccessor.writeValue(o.value),o.disabled&&r.valueAccessor.setDisabledState?.(!0),function CS(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&hp(o,r)})}(o,r),function sb(o,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function dx(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&hp(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function cx(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function cp(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Pd(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function dp(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function up(o,r){const e=tp(o);null!==r.validator?o.setValidators(X_(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=xd(o);null!==r.asyncValidator?o.setAsyncValidators(X_(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const a=()=>o.updateValueAndValidity();dp(r._rawValidators,a),dp(r._rawAsyncValidators,a)}function Pd(o,r){let e=!1;if(null!==o){if(null!==r.validator){const a=tp(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,o.setValidators(l))}}if(null!==r.asyncValidator){const a=xd(o);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,o.setAsyncValidators(l))}}}const t=()=>{};return dp(r._rawValidators,t),dp(r._rawAsyncValidators,t),e}function hp(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function ux(o,r){up(o,r)}function cb(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const db={provide:ji,useExisting:(0,h.Gpc)(()=>bs)},Vl=(()=>Promise.resolve(null))();let bs=(()=>{class o extends ji{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new h.vpe,this.form=new ob({},Xh(e),ca(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Hd(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new ob({});ux(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,cb(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ci,10),h.Y36(io,10))},o.\u0275dir=h.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([db]),h.qOj]}),o})();function bp(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}function ub(o){return"object"==typeof o&&null!==o&&2===Object.keys(o).length&&"value"in o&&"disabled"in o}const Cp=class extends sp{constructor(r=null,e,t){super(ms(e),Md(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_s(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=ub(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){bp(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){bp(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){ub(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},fx={provide:Sn,useExisting:(0,h.Gpc)(()=>wp)},fb=(()=>Promise.resolve(null))();let wp=(()=>{class o extends Sn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new Cp,this._registered=!1,this.update=new h.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=function mp(o,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===bi?e=l:function gp(o){return Object.getPrototypeOf(o.constructor)===sa}(l)?t=l:a=l}),a||t||e||null}(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function fp(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Hd(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){fb.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,h.D6c)(t);fb.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Dd(o,r){return[...r.path,o]}(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(ji,9),h.Y36(Ci,10),h.Y36(io,10),h.Y36(Fi,10),h.Y36(h.sBO,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([fx]),h.qOj,h.TTD]}),o})(),_x=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Rd=new h.OlP("NgModelWithFormControlWarning"),Id={provide:ji,useExisting:(0,h.Gpc)(()=>Cs)};let Cs=(()=>{class o extends ji{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Pd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Hd(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){cp(e.control||null,e,!1),function _p(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,cb(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,a=this.form.get(e.path);t!==a&&(cp(t||null,e),(o=>o instanceof Cp)(a)&&(Hd(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ux(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Mn(o,r){return Pd(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){up(this.form,this),this._oldForm&&Pd(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ci,10),h.Y36(io,10))},o.\u0275dir=h.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&h.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Id]),h.qOj,h.TTD]}),o})(),ua=(()=>{class o{constructor(){this._validator=vd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):vd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=h.lG2({type:o,features:[h.TTD]}),o})();const vx={provide:Ci,useExisting:(0,h.Gpc)(()=>ys),multi:!0};let ys=(()=>{class o extends ua{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=h.D6c,this.createValidator=e=>wd}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&h.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[h._Bn([vx]),h.qOj]}),o})(),Hp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[_x]}),o})(),Pp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Hp]}),o})(),Ol=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:Rd,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Hp]}),o})();const Dx=yn({passive:!0});let Hx=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ei.E;const t=ni(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new He.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,Dx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,Dx)}}),l}stopMonitoring(e){const t=ni(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(ci),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Px=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})();const Rx=new h.OlP("MAT_INPUT_VALUE_ACCESSOR"),BS=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let OS=0;const Ix=sl(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new He.x}});let LS=(()=>{class o extends Ix{constructor(e,t,a,l,c,n,i,s,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=s,this._formField=u,this._uid="mat-input-"+OS++,this.focused=!1,this.stateChanges=new He.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(H=>Ly().has(H)),this._iOSKeyupListener=H=>{const N=H.target;!N.value&&0===N.selectionStart&&0===N.selectionEnd&&(N.setSelectionRange(1,1),N.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=it(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(yd.required)??!1}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ly().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=it(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){BS.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.SBq),h.Y36(ci),h.Y36(Sn,10),h.Y36(bs,8),h.Y36(Cs,8),h.Y36(Gc),h.Y36(Rx,10),h.Y36(Hx),h.Y36(h.R0b),h.Y36(Ch,8))},o.\u0275dir=h.lG2({type:o,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(e,t){1&e&&h.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(h.Ikx("disabled",t.disabled)("required",t.required),h.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),h.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[h._Bn([{provide:ml,useExisting:o}]),h.qOj,h.TTD]}),o})(),Rp=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Gc],imports:[Px,es,We,Px,es]}),o})();function FS(o,r){1&o&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let jS=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa),h.Y36(En),h.Y36(bd),h.Y36(Rt),h.Y36(fi))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.qZA(),h.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),h._uU(6),h.ALo(7,"translate"),h.qZA(),h.TgZ(8,"input",2,3),h.NdJ("ngModelChange",function(l){return t.subject=l}),h.qZA(),h.YNc(10,FS,3,3,"mat-error",4),h.qZA(),h.TgZ(11,"mat-form-field")(12,"mat-label"),h._uU(13),h.ALo(14,"translate"),h.qZA(),h.TgZ(15,"textarea",5),h.NdJ("ngModelChange",function(l){return t.message=l}),h.ALo(16,"translate"),h._uU(17," "),h.qZA(),h.TgZ(18,"mat-hint"),h._uU(19),h.ALo(20,"translate"),h.qZA()()(),h.TgZ(21,"div",6)(22,"div",7)(23,"button",8),h.NdJ("click",function(){return t.close()}),h._uU(24),h.ALo(25,"translate"),h.qZA(),h.TgZ(26,"button",9),h.NdJ("click",function(){return t.sendBugReport()}),h._uU(27),h.ALo(28,"translate"),h.qZA()()()),2&e){const a=h.MAs(9);h.xp6(1),h.Oqu(h.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),h.xp6(5),h.Oqu(h.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),h.xp6(2),h.Q6J("ngModel",t.subject),h.xp6(2),h.Q6J("ngIf",a.invalid),h.xp6(3),h.Oqu(h.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),h.xp6(2),h.s9C("placeholder",h.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),h.Q6J("ngModel",t.message),h.xp6(4),h.Oqu(h.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),h.xp6(5),h.hij(" ",h.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),h.xp6(2),h.Q6J("disabled",a.invalid),h.xp6(1),h.hij(" ",h.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,bi,np,ys,wp,Zr,Lm,Gm,pi,rd,LS,Fh,ds,jh,en],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),NS=(()=>{class o{transform(e,t,a){return e[`${a}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"localisedText",type:o,pure:!0}),o})(),zS=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),p=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function g(o,r){if(1&o&&(h.TgZ(0,"a",13),h.ALo(1,"localisedLink"),h._UZ(2,"img",14),h.ALo(3,"footerLogoPath"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,2,e,t.language),h.LSH),h.xp6(2),h.s9C("src",h.lcZ(3,5,e.logo),h.LSH)}}function m(o,r){if(1&o&&(h.TgZ(0,"span"),h._UZ(1,"img",14),h.ALo(2,"footerLogoPath"),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.s9C("src",h.lcZ(2,1,e.logo),h.LSH)}}function _(o,r){if(1&o&&(h.TgZ(0,"div"),h.YNc(1,g,4,7,"a",11),h.ALo(2,"localisedLink"),h.YNc(3,m,3,3,"span",12),h.ALo(4,"localisedLink"),h.qZA()),2&o){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",h.xi3(2,2,e,t.language)),h.xp6(2),h.Q6J("ngIf",!h.xi3(4,5,e,t.language))}}const C=function(o){return{"min-height":o}};function w(o,r){if(1&o&&(h.TgZ(0,"div",10),h.YNc(1,_,5,8,"div",5),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,C,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}const v=function(o){return{color:o}};function E(o,r){if(1&o&&(h.TgZ(0,"i",20),h._uU(1),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(2,v,t.linksTextColor)),h.xp6(1),h.hij(" ",e.icon," ")}}function S(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"span",21),h.NdJ("click",function(){h.CHM(e);const a=h.oxw().$implicit,l=h.oxw(3);return h.KtG(l.openDialog(a.dialog))}),h._uU(1),h.ALo(2,"localisedText"),h.qZA()}if(2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,v,t.linksTextColor)),h.xp6(1),h.hij("",h.Dn7(2,2,e,t.language,"label")," ")}}function P(o,r){if(1&o&&(h.TgZ(0,"a",22),h.ALo(1,"localisedLink"),h._uU(2),h.ALo(3,"localisedText"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("href",h.xi3(1,3,e,t.language),h.LSH)("ngStyle",h.VKq(10,v,t.linksTextColor)),h.xp6(2),h.Oqu(h.Dn7(3,6,e,t.language,"label"))}}function R(o,r){if(1&o&&(h.TgZ(0,"span",10),h._uU(1),h.ALo(2,"localisedText"),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw(3);h.Q6J("ngStyle",h.VKq(6,v,t.linksTextColor)),h.xp6(1),h.Oqu(h.Dn7(2,2,e,t.language,"label"))}}function L(o,r){if(1&o&&(h.TgZ(0,"div",16),h.YNc(1,E,2,4,"i",17),h.YNc(2,S,3,8,"span",18),h.YNc(3,P,4,12,"a",19),h.ALo(4,"localisedLink"),h.YNc(5,R,3,8,"span",9),h.ALo(6,"localisedLink"),h.qZA()),2&o){const e=r.$implicit,t=h.oxw(3);h.xp6(1),h.Q6J("ngIf",e.icon),h.xp6(1),h.Q6J("ngIf",e.dialog),h.xp6(1),h.Q6J("ngIf",h.xi3(4,4,e,t.language)&&!e.dialog),h.xp6(2),h.Q6J("ngIf",!h.xi3(6,7,e,t.language)&&!e.dialog)}}const X=function(o){return{height:o}};function re(o,r){if(1&o&&(h.TgZ(0,"div",10),h.YNc(1,L,7,10,"div",15),h.qZA()),2&o){const e=h.oxw().$implicit,t=h.oxw();h.Q6J("ngStyle",h.VKq(2,X,t.columnContentHeight+"px")),h.xp6(1),h.Q6J("ngForOf",e.elements)}}function me(o,r){if(1&o&&(h.TgZ(0,"div",7)(1,"h6",8),h._uU(2),h.ALo(3,"localisedText"),h.qZA(),h.YNc(4,w,2,4,"div",9),h.YNc(5,re,2,4,"div",9),h.qZA()),2&o){const e=r.$implicit,t=h.oxw();h.ekj("my-auto",t.containsLogos),h.xp6(1),h.Q6J("ngStyle",h.VKq(10,v,t.headersTextColor)),h.xp6(1),h.hij(" ",h.Dn7(3,6,e,t.language,"title")," "),h.xp6(2),h.Q6J("ngIf",e.logos),h.xp6(1),h.Q6J("ngIf",e.elements&&!e.logos)}}function Ae(o,r){if(1&o&&(h.TgZ(0,"span")(1,"a",6),h._uU(2),h.qZA()()),2&o){const e=r.$implicit,t=r.index,a=h.oxw();h.xp6(1),h.Q6J("href",e.url,h.LSH)("ngStyle",h.VKq(3,v,a.copyrightTextColor)),h.xp6(1),h.Oqu(t?", "+e.name:e.name)}}const Pe=function(o){return{background:o}};let je=(()=>{class o{constructor(e,t,a){this.storeService=e,this.translateService=t,this.dialog=a,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=hs();"reportIssue"===e&&(t.width="550px",this.dialog.open(jS,t))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(En),h.Y36(eo))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"footer",0)(1,"div",1),h.YNc(2,me,6,12,"div",2),h.qZA(),h._UZ(3,"hr",3),h.TgZ(4,"div",4),h._uU(5),h.YNc(6,Ae,3,5,"span",5),h._uU(7," Version "),h.TgZ(8,"a",6),h._uU(9),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.VKq(8,Pe,t.bgColor)),h.xp6(2),h.Q6J("ngForOf",t.footerColumns),h.xp6(2),h.Q6J("ngStyle",h.VKq(10,v,t.copyrightTextColor)),h.xp6(1),h.hij(" \xa9 ",t.currentYear," Copyright: "),h.xp6(1),h.Q6J("ngForOf",t.copyrightItems),h.xp6(2),h.Q6J("href",t.githubRepository,h.LSH)("ngStyle",h.VKq(12,v,t.copyrightTextColor)),h.xp6(1),h.Oqu(t.version))},dependencies:[T.sg,T.O5,T.PC,NS,zS,p],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),o})();function Ze(o,r){if(1&o&&(h.TgZ(0,"div",8),h._UZ(1,"div",9),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}function ye(o,r){if(1&o&&(h.TgZ(0,"div",10),h._UZ(1,"div",11)(2,"mat-icon",12),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("innerHTML",e.logo,h.oJD)}}const $e=function(o){return{color:o}};function bt(o,r){if(1&o&&(h.TgZ(0,"p",13),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.Q6J("ngStyle",h.VKq(2,$e,e.textColor)),h.xp6(1),h.hij(" ",e.headerTitle," ")}}const jt=function(o,r){return{background:o,color:r}},so=function(o,r){return{"min-height":o,"background-color":r}};let Ip=(()=>{class o{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(si),h.Y36(G_),h.Y36(En))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0),h.YNc(1,Ze,2,1,"div",1),h.YNc(2,ye,3,1,"div",2),h.YNc(3,bt,2,4,"p",3),h.qZA(),h.TgZ(4,"div",4)(5,"div",5)(6,"div",6),h._UZ(7,"router-outlet"),h.qZA(),h.TgZ(8,"div",7),h._UZ(9,"perun-web-apps-footer"),h.qZA()()()),2&e&&(h.Q6J("ngStyle",h.WLB(5,jt,t.headerBackgroundColor,t.headerTextColor)),h.xp6(1),h.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),h.xp6(1),h.Q6J("ngIf","publications"===t.application),h.xp6(1),h.Q6J("ngIf",!!t.headerTitle),h.xp6(2),h.Q6J("ngStyle",h.WLB(8,so,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[T.O5,T.PC,ra,Kt,je],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),o})();const Ll=function(o){return{color:o}};function kp(o,r){if(1&o&&(h.TgZ(0,"button",8),h.ALo(1,"translate"),h.TgZ(2,"mat-icon",4),h._uU(3," apps "),h.qZA()()),2&o){const e=h.oxw(),t=h.MAs(2);h.Q6J("matMenuTriggerFor",t)("matTooltip",h.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),h.xp6(2),h.Q6J("ngStyle",h.VKq(5,Ll,e.iconColor))}}function Vp(o,r){if(1&o&&(h.TgZ(0,"span",9),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.Q6J("ngStyle",h.VKq(6,Ll,e.textColor)),h.xp6(1),h.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function Bp(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"button",2),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onLogOut())}),h._uU(1),h.ALo(2,"translate"),h.qZA()}2&o&&(h.xp6(1),h.hij(" ",h.lcZ(2,1,"NAV.LOGOUT")," "))}let Op=(()=>{class o{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Pl))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(h.YNc(0,kp,4,7,"button",0),h.TgZ(1,"mat-menu",null,1)(3,"button",2),h.NdJ("click",function(){return t.redirectToUrl()}),h.TgZ(4,"span"),h._uU(5),h.qZA()()(),h.TgZ(6,"button",3)(7,"mat-icon",4),h._uU(8," person "),h.qZA(),h.YNc(9,Vp,2,8,"span",5),h.qZA(),h.TgZ(10,"mat-menu",null,6),h.YNc(12,Bp,3,3,"button",7),h.qZA()),2&e){const a=h.MAs(11);h.Q6J("ngIf",t.url),h.xp6(5),h.Oqu(t.label),h.xp6(1),h.Q6J("matMenuTriggerFor",a),h.xp6(1),h.Q6J("ngStyle",h.VKq(6,Ll,t.iconColor)),h.xp6(2),h.Q6J("ngIf",null!==t.user),h.xp6(3),h.Q6J("ngIf",t.logoutEnabled)}},dependencies:[T.O5,T.PC,ra,aA,Ka,lA,Zr,r_,en],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),o})();function Lp(o,r){1&o&&(h.TgZ(0,"div",6)(1,"span",7),h._uU(2," ~ \u{1f5f2}\xa0 "),h.qZA(),h.TgZ(3,"span",8),h._uU(4," DEVEL "),h.qZA(),h.TgZ(5,"span",7),h._uU(6," \xa0\u{1f5f2} ~ "),h.qZA()())}const Fp=function(o,r){return{background:o,color:r}},jp=function(){return["/consolidate"]},uH=function(o){return{color:o}};let hH=(()=>{class o{constructor(e,t,a){this.storeService=e,this.sanitizer=t,this.otherApplicationService=a,this.bgColor=this.storeService.getProperty("theme").nav_bg_color,this.textColor=this.storeService.getProperty("theme").nav_text_color,this.iconColor=this.storeService.getProperty("theme").nav_icon_color,this.isDevel=this.storeService.getProperty("is_devel"),this.logoutEnabled=this.storeService.getProperty("log_out_enabled"),this.profileLabel=this.storeService.getProperty("profile_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.getProperty("logo"))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(si),h.Y36(Cd))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:8,vars:20,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"a",1),h._UZ(2,"div",2),h.qZA(),h.TgZ(3,"p",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.YNc(6,Lp,7,0,"div",4),h._UZ(7,"perun-web-apps-header-menu",5),h.qZA()),2&e&&(h.Q6J("ngStyle",h.WLB(14,Fp,t.bgColor,t.textColor)),h.xp6(1),h.Q6J("routerLink",h.DdM(17,jp)),h.xp6(1),h.Q6J("innerHTML",t.logo,h.oJD),h.xp6(1),h.Q6J("ngStyle",h.VKq(18,uH,t.textColor)),h.xp6(1),h.hij(" ",h.lcZ(5,12,"HEADER.TITLE")," "),h.xp6(2),h.Q6J("ngIf",t.isDevel),h.xp6(1),h.Q6J("iconColor",t.iconColor)("label",t.profileLabel)("textColor",t.textColor)("logoutEnabled",t.logoutEnabled)("url",t.profileUrl)("user",t.principal.user))},dependencies:[T.O5,T.PC,mu,Op,en],styles:["#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}"]}),o})();const pH=function(o){return{"background-color":o}};function fH(o,r){if(1&o&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-header",1),h.TgZ(2,"div",2)(3,"div",3),h._UZ(4,"router-outlet"),h.qZA(),h.TgZ(5,"div",4),h._UZ(6,"perun-web-apps-footer"),h.qZA()()()),2&o){const e=h.oxw();h.xp6(2),h.Q6J("ngStyle",h.VKq(1,pH,e.contentBackgroundColor))}}function gH(o,r){1&o&&(h.TgZ(0,"div"),h._UZ(1,"perun-web-apps-login-screen-base",5),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Q6J("application","consolidator")("headerTitle",h.lcZ(2,2,"HEADER.TITLE")))}let mH=(()=>{class o{constructor(e,t){this.store=e,this.initAuth=t,this.contentBackgroundColor=this.store.getProperty("theme").content_bg_color,this.isLoginScreenShow=this.initAuth.isLoginScreenShown()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(to))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-root"]],decls:2,vars:2,consts:[[4,"ngIf"],["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[3,"application","headerTitle"]],template:function(e,t){1&e&&(h.YNc(0,fH,7,3,"div",0),h.YNc(1,gH,3,4,"div",0)),2&e&&(h.Q6J("ngIf",!t.isLoginScreenShow),h.xp6(1),h.Q6J("ngIf",t.isLoginScreenShow))},dependencies:[T.O5,T.PC,Kt,Ip,je,hH,en],styles:["#content-inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:100vh;padding-top:64px;justify-content:space-between}#content-wrap[_ngcontent-%COMP%]{padding:25px}#footer[_ngcontent-%COMP%]{bottom:0;width:100%}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}"]}),o})();function US(o){return new h.vHH(3e3,!1)}function KH(){return typeof window<"u"&&typeof window.document<"u"}function kx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ws(o){switch(o.length){case 0:return new Zo;case 1:return o[0];default:return new id(o)}}function GS(o,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,s=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&s||new Map;d.forEach((H,N)=>{let ae=N,ke=H;if("offset"!==N)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(N);break;case _r:ke=l.get(N);break;default:ke=r.normalizeStyleValue(N,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),s=b,i=u}),c.length)throw function FH(o){return new h.vHH(3502,!1)}();return n}function Vx(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&Bx(e,"start",o)));break;case"done":o.onDone(()=>t(e&&Bx(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&Bx(e,"destroy",o)))}}function Bx(o,r,e){const l=Ox(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,e.totalTime??o.totalTime,!!e.disabled),c=o._data;return null!=c&&(l._data=c),l}function Ox(o,r,e,t,a="",l=0,c){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Dn(o,r,e){let t=o.get(r);return t||o.set(r,t=e),t}function qS(o){const r=o.indexOf(":");return[o.substring(1,r),o.slice(r+1)]}let Lx=(o,r)=>!1,WS=(o,r,e)=>[],$S=null;function Fx(o){const r=o.parentNode||o.host;return r===$S?null:r}(kx()||typeof Element<"u")&&(KH()?($S=(()=>document.documentElement)(),Lx=(o,r)=>{for(;r;){if(r===o)return!0;r=Fx(r)}return!1}):Lx=(o,r)=>o.contains(r),WS=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Fl=null,YS=!1;const QS=Lx,JS=WS;let KS=(()=>{class o{validateStyleProperty(e){return function XH(o){Fl||(Fl=function eP(){return typeof document<"u"?document.body:null}()||{},YS=!!Fl.style&&"WebkitAppearance"in Fl.style);let r=!0;return Fl.style&&!function ZH(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Fl.style,!r&&YS&&(r="Webkit"+o.charAt(0).toUpperCase()+o.slice(1)in Fl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return QS(e,t)}getParentElement(e){return Fx(e)}query(e,t,a){return JS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new Zo(a,l)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),jx=(()=>{class o{}return o.NOOP=new KS,o})();const Nx="ng-enter",Rb="ng-leave",Ib="ng-trigger",kb=".ng-trigger",XS="ng-animating",zx=".ng-animating";function vs(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Ux(parseFloat(r[1]),r[2])}function Ux(o,r){return"s"===r?1e3*o:o}function Vb(o,r,e){return o.hasOwnProperty("duration")?o:function nP(o,r,e){let a,l=0,c="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(US()),{duration:0,delay:0,easing:""};a=Ux(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Ux(parseFloat(i),n[4]));const s=n[5];s&&(c=s)}else a=o;if(!e){let n=!1,i=r.length;a<0&&(r.push(function _H(){return new h.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function bH(){return new h.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,US())}return{duration:a,delay:l,easing:c}}(o,r,e)}function Np(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function eM(o){const r=new Map;return Object.keys(o).forEach(e=>{r.set(e,o[e])}),r}function As(o,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of o)r.set(t,a);return r}function iM(o,r,e){return e?r+":"+e+";":""}function nM(o){let r="";for(let e=0;e{const l=qx(a);e&&!e.has(a)&&e.set(a,o.style[l]),o.style[l]=t}),kx()&&nM(o))}function jl(o,r){o.style&&(r.forEach((e,t)=>{const a=qx(t);o.style[a]=""}),kx()&&nM(o))}function zp(o){return Array.isArray(o)?1==o.length?o[0]:dh(o):o}const Gx=new RegExp("{{\\s*(.+?)\\s*}}","g");function rM(o){let r=[];if("string"==typeof o){let e;for(;e=Gx.exec(o);)r.push(e[1]);Gx.lastIndex=0}return r}function Bb(o,r,e){const t=o.toString(),a=t.replace(Gx,(l,c)=>{let n=r[c];return null==n&&(e.push(function yH(o){return new h.vHH(3003,!1)}()),n=""),n.toString()});return a==t?o:a}function Ob(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const oP=/-+([a-z0-9])/g;function qx(o){return o.replace(oP,(...r)=>r[1].toUpperCase())}function sP(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw function wH(o){return new h.vHH(3004,!1)}()}}function aM(o,r){return window.getComputedStyle(o)[r]}function pP(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function fP(o,r,e){if(":"==o[0]){const i=function gP(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof i)return void r.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function kH(o){return new h.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(oM(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(oM(c,a))}(t,e,r)):e.push(o),e}const Nb=new Set(["true","1"]),zb=new Set(["false","0"]);function oM(o,r){const e=Nb.has(o)||zb.has(o),t=Nb.has(r)||zb.has(r);return(a,l)=>{let c="*"==o||o==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?Nb.has(o):zb.has(o)),!n&&t&&"boolean"==typeof l&&(n=l?Nb.has(r):zb.has(r)),c&&n}}const mP=new RegExp("s*:selfs*,?","g");function Wx(o,r,e,t){return new _P(o).build(r,e,t)}class _P{constructor(r){this._driver=r}build(r,e,t){const a=new yP(e);return this._resetContextStyleTimingState(a),Hn(this,zp(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function AH(){return new h.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,s=i.name;s.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=s}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function xH(){return new h.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{rM(i).forEach(s=>{c.hasOwnProperty(s)||l.add(s)})})}),l.size&&(Ob(l.values()),e.errors.push(function TH(o,r){return new h.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,zp(r.animation),e);return{type:1,matchers:pP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Nl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:Nl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Nl(r.options)}}visitAnimate(r,e){const t=function vP(o,r){if(o.hasOwnProperty("duration"))return o;if("number"==typeof o)return $x(Vb(o,r).duration,0,"");const e=o;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=$x(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Vb(e,r);return $x(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const s={};t.easing&&(s.easing=t.easing),c=Fe(s)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===_r?t.push(n):e.errors.push(new h.vHH(3002,!1)):t.push(eM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const s=e.collectedStyles.get(e.currentQuerySelector),d=s.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function SH(o,r,e,t,a){return new h.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&s.set(i,{startTime:l,endTime:a}),e.options&&function aP(o,r,e){const t=r.params||{},a=rM(o);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function CH(o){return new h.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function MH(){return new h.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,s=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function wP(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(o instanceof Map&&o.has("offset")){const e=o;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=H+N.delay+zt,N.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Hn(this,zp(r.animation),e),options:Nl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Nl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Nl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function bP(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(mP,"")),o=o.replace(/@\*/g,kb).replace(/@\w+/g,e=>kb+"-"+e.slice(1)).replace(/:animating/g,zx),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,zp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Nl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function RH(){return new h.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Vb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,zp(r.animation),e),timings:t,options:null}}}class yP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nl(o){return o?(o=Np(o)).params&&(o.params=function CP(o){return o?Np(o):null}(o.params)):o={},o}function $x(o,r,e){return{duration:o,delay:r,easing:e}}function Yx(o,r,e,t,a,l,c=null,n=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class Ub{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const TP=new RegExp(":enter","g"),SP=new RegExp(":leave","g");function Qx(o,r,e,t,a,l=new Map,c=new Map,n,i,s=[]){return(new MP).buildKeyframes(o,r,e,t,a,l,c,n,i,s)}class MP{buildKeyframes(r,e,t,a,l,c,n,i,s,d=[]){s=s||new Ub;const u=new Jx(r,e,s,a,l,d,[]);u.options=i;const f=i.delay?vs(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let N=b.length-1;N>=0;N--){const ae=b[N];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[Yx(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?vs(t.duration):null,n=null!=t.delay?vs(t.delay):null;return 0!==c&&r.forEach(i=>{const s=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,s.duration+s.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Gb);const c=vs(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?vs(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Vb(e.params?Bb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?vs(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((s,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,s);l&&u.delayNextStep(l),s===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const Gb={};class Jx{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new qb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=vs(t.duration)),null!=t.delay&&(a.delay=vs(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Bb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new Jx(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Gb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new DP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(TP,"."+this._enterClassName)).replace(SP,"."+this._leaveClassName);let s=this._driver.query(this.element,r,1!=t);0!==t&&(s=t<0?s.slice(s.length+t,s.length):s.slice(0,t)),n.push(...s)}return!l&&0==n.length&&c.push(function IH(o){return new h.vHH(3014,!1)}()),n}}class qb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new qb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function HP(o,r){const e=new Map;let t;return o.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,_r)}else As(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const s=Bb(i,l,t);this._pendingStyles.set(n,s),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,s)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const s=As(n,new Map,this._backFill);s.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||s.set("offset",i/this.duration),a.push(s)});const l=r.size?Ob(r.values()):[],c=e.size?Ob(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return Yx(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class DP extends qb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=As(r[0]);i.set("offset",0),l.push(i);const s=As(r[0]);s.set("offset",cM(n)),l.push(s);const d=r.length-1;for(let u=1;u<=d;u++){let f=As(r[u]);const b=f.get("offset");f.set("offset",cM((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return Yx(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function cM(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class Kx{}const PP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RP extends Kx{normalizePropertyName(r,e){return qx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(PP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function vH(o,r){return new h.vHH(3005,!1)}())}return c+l}}function dM(o,r,e,t,a,l,c,n,i,s,d,u,f){return{type:0,element:o,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:s,postStyleProps:d,totalTime:u,errors:f}}const Zx={};class uM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function IP(o,r,e,t,a){return o.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,s,d){const u=[],f=this.ast.options&&this.ast.options.params||Zx,H=this.buildStyles(t,n&&n.params||Zx,u),N=i&&i.params||Zx,ae=this.buildStyles(a,N,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,xr={params:kP(N,f),delay:this.ast.options?.delay},nr=d?[]:Qx(r,e,this.ast.animation,l,c,H,ae,xr,s,u);let tn=0;if(nr.forEach(po=>{tn=Math.max(po.duration+po.delay,tn)}),u.length)return dM(e,this._triggerName,t,a,zt,H,ae,[],[],lt,yt,tn,u);nr.forEach(po=>{const fo=po.element,PD=Dn(lt,fo,new Set);po.preStyleProps.forEach(Ul=>PD.add(Ul));const Kp=Dn(yt,fo,new Set);po.postStyleProps.forEach(Ul=>Kp.add(Ul)),fo!==e&&ke.add(fo)});const ho=Ob(ke.values());return dM(e,this._triggerName,t,a,zt,H,ae,nr,ho,lt,yt,tn)}}function kP(o,r){const e=Np(r);for(const t in o)o.hasOwnProperty(t)&&null!=o[t]&&(e[t]=o[t]);return e}class VP{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Np(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Bb(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class OP{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new VP(a.style,a.options&&a.options.params||{},t))}),hM(this.states,"true","1"),hM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new uM(r,a,this.states))}),this.fallbackTransition=function LP(o,r,e){return new uM(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function hM(o,r,e){o.has(r)?o.has(e)||o.set(e,o.get(r)):o.has(e)&&o.set(r,o.get(e))}const FP=new Ub;class jP{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Wx(this._driver,e,t,[]);if(t.length)throw function jH(o){return new h.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=GS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=Qx(this._driver,e,l,Nx,Rb,new Map,new Map,t,FP,a),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function NH(){return new h.vHH(3300,!1)}()),c=[]),a.length)throw function zH(o){return new h.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const s=ws(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,s),s.onDestroy(()=>this.destroy(r)),this.players.push(s),s}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function UH(o){return new h.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Ox(e,"","","");return Vx(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(r)}}}const pM="ng-animate-queued",Xx="ng-animate-disabled",qP=[],fM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},WP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},tr="__ng_removed";class e0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function JP(o){return o??null}(t?r.value:r),t){const l=Np(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Up="void",t0=new e0(Up);class $P{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,ir(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function GH(o,r){return new h.vHH(3302,!1)}();if(null==t||0==t.length)throw function qH(o){return new h.vHH(3303,!1)}();if(!function KP(o){return"start"==o||"done"==o}(t))throw function WH(o,r){return new h.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(ir(r,Ib),ir(r,Ib+"-"+e),n.set(e,t0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function $H(o){return new h.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new n0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(ir(r,Ib),ir(r,Ib+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const s=new e0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&s.absorbOptions(i.options),n.set(e,s),i||(i=t0),s.value!==Up&&i.value===s.value){if(!function eR(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{jl(r,ae),ha(r,ke)})}return}const f=Dn(this._engine.playersByElement,r,[]);f.forEach(N=>{N.namespaceId==this.id&&N.triggerName==e&&N.queued&&N.destroy()});let b=l.matchTransition(i.value,s.value,r,s.params),H=!1;if(!b){if(!a)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:s,player:c,isFallbackTransition:H}),H||(ir(r,pM),c.onStart(()=>{Od(r,pM)})),c.onDone(()=>{let N=this.players.indexOf(c);N>=0&&this.players.splice(N,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,kb,!0);t.forEach(a=>{if(a[tr])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,s)=>{if(c.set(s,i.value),this._triggers.has(s)){const d=this.trigger(r,s,Up,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&ws(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,s=t.get(c)||t0,d=new e0(Up),u=new n0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:s,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[tr];(!l||l===fM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){ir(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Ox(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Vx(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class YP{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new $P(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const s=t.indexOf(i);t.splice(s+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if(Wb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!Wb(e))return;const l=e[tr];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),ir(r,Xx)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Od(r,Xx))}removeNode(r,e,t,a){if(Wb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[tr]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return Wb(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,kb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,zx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return ws(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[tr];if(e&&e.setForRemoval){if(r[tr]=fM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Xx)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ws(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function YH(o){return new h.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ub,a=[],l=new Map,c=[],n=new Map,i=new Map,s=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Xe=this.driver.query(Ge,".ng-animate-queued",!0);for(let nt=0;nt{const nt=Nx+N++;H.set(Xe,nt),Ge.forEach(xt=>ir(xt,nt))});const ae=[],ke=new Set,lt=new Set;for(let Ge=0;Geke.add(xt)):lt.add(Xe))}const yt=new Map,zt=_M(f,Array.from(ke));zt.forEach((Ge,Xe)=>{const nt=Rb+N++;yt.set(Xe,nt),Ge.forEach(xt=>ir(xt,nt))}),r.push(()=>{b.forEach((Ge,Xe)=>{const nt=H.get(Xe);Ge.forEach(xt=>Od(xt,nt))}),zt.forEach((Ge,Xe)=>{const nt=yt.get(Xe);Ge.forEach(xt=>Od(xt,nt))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const xr=[],nr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(nt=>{const xt=nt.player,Ii=nt.element;if(xr.push(xt),this.collectedEnterElements.length){const Yi=Ii[tr];if(Yi&&Yi.setForMove){if(Yi.previousTriggersValues&&Yi.previousTriggersValues.has(nt.triggerName)){const Gl=Yi.previousTriggersValues.get(nt.triggerName),rr=this.statesByElement.get(nt.element);if(rr&&rr.has(nt.triggerName)){const AC=rr.get(nt.triggerName);AC.value=Gl,rr.set(nt.triggerName,AC)}}return void xt.destroy()}}const fa=!u||!this.driver.containsElement(u,Ii),Pn=yt.get(Ii),Ts=H.get(Ii),ai=this._buildInstruction(nt,t,Ts,Pn,fa);if(ai.errors&&ai.errors.length)return void nr.push(ai);if(fa)return xt.onStart(()=>jl(Ii,ai.fromStyles)),xt.onDestroy(()=>ha(Ii,ai.toStyles)),void a.push(xt);if(nt.isFallbackTransition)return xt.onStart(()=>jl(Ii,ai.fromStyles)),xt.onDestroy(()=>ha(Ii,ai.toStyles)),void a.push(xt);const kD=[];ai.timelines.forEach(Yi=>{Yi.stretchStartingKeyframe=!0,this.disabledNodes.has(Yi.element)||kD.push(Yi)}),ai.timelines=kD,t.append(Ii,ai.timelines),c.push({instruction:ai,player:xt,element:Ii}),ai.queriedElements.forEach(Yi=>Dn(n,Yi,[]).push(xt)),ai.preStyleProps.forEach((Yi,Gl)=>{if(Yi.size){let rr=i.get(Gl);rr||i.set(Gl,rr=new Set),Yi.forEach((AC,F0)=>rr.add(F0))}}),ai.postStyleProps.forEach((Yi,Gl)=>{let rr=s.get(Gl);rr||s.set(Gl,rr=new Set),Yi.forEach((AC,F0)=>rr.add(F0))})});if(nr.length){const Ge=[];nr.forEach(Xe=>{Ge.push(function QH(o,r){return new h.vHH(3505,!1)}())}),xr.forEach(Xe=>Xe.destroy()),this.reportError(Ge)}const tn=new Map,ho=new Map;c.forEach(Ge=>{const Xe=Ge.element;t.has(Xe)&&(ho.set(Xe,Xe),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,tn))}),a.forEach(Ge=>{const Xe=Ge.element;this._getPreviousPlayers(Xe,!1,Ge.namespaceId,Ge.triggerName,null).forEach(xt=>{Dn(tn,Xe,[]).push(xt),xt.destroy()})});const po=ae.filter(Ge=>CM(Ge,i,s)),fo=new Map;mM(fo,this.driver,lt,s,_r).forEach(Ge=>{CM(Ge,i,s)&&po.push(Ge)});const Kp=new Map;b.forEach((Ge,Xe)=>{mM(Kp,this.driver,new Set(Ge),i,"!")}),po.forEach(Ge=>{const Xe=fo.get(Ge),nt=Kp.get(Ge);fo.set(Ge,new Map([...Array.from(Xe?.entries()??[]),...Array.from(nt?.entries()??[])]))});const Ul=[],RD=[],ID={};c.forEach(Ge=>{const{element:Xe,player:nt,instruction:xt}=Ge;if(t.has(Xe)){if(d.has(Xe))return nt.onDestroy(()=>ha(Xe,xt.toStyles)),nt.disabled=!0,nt.overrideTotalTime(xt.totalTime),void a.push(nt);let Ii=ID;if(ho.size>1){let Pn=Xe;const Ts=[];for(;Pn=Pn.parentNode;){const ai=ho.get(Pn);if(ai){Ii=ai;break}Ts.push(Pn)}Ts.forEach(ai=>ho.set(ai,Ii))}const fa=this._buildAnimation(nt.namespaceId,xt,tn,l,Kp,fo);if(nt.setRealPlayer(fa),Ii===ID)Ul.push(nt);else{const Pn=this.playersByElement.get(Ii);Pn&&Pn.length&&(nt.parentPlayer=ws(Pn)),a.push(nt)}}else jl(Xe,xt.fromStyles),nt.onDestroy(()=>ha(Xe,xt.toStyles)),RD.push(nt),d.has(Xe)&&a.push(nt)}),RD.forEach(Ge=>{const Xe=l.get(Ge.element);if(Xe&&Xe.length){const nt=ws(Xe);Ge.setRealPlayer(nt)}}),a.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!fa.destroyed);Ii.length?ZP(this,Xe,Ii):this.processLeaveNode(Xe)}return ae.length=0,Ul.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Xe=this.players.indexOf(Ge);this.players.splice(Xe,1)}),Ge.play()}),Ul}elementContainsData(r,e){let t=!1;const a=e[tr];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Up;n.forEach(s=>{s.queued||!i&&s.triggerName!=a||c.push(s)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const s=i.element,d=s!==l,u=Dn(t,s,[]);this._getPreviousPlayers(s,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}jl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,s=[],d=new Set,u=new Set,f=e.timelines.map(H=>{const N=H.element;d.add(N);const ae=N[tr];if(ae&&ae.removedBeforeQueried)return new Zo(H.duration,H.delay);const ke=N!==i,lt=function XP(o){const r=[];return bM(o,r),r}((t.get(N)||qP).map(tn=>tn.getRealPlayer())).filter(tn=>!!tn.element&&tn.element===N),yt=l.get(N),zt=c.get(N),xr=GS(0,this._normalizer,0,H.keyframes,yt,zt),nr=this._buildPlayer(H,xr,lt);if(H.subTimeline&&a&&u.add(N),ke){const tn=new n0(r,n,N);tn.setRealPlayer(nr),s.push(tn)}return nr});s.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function QP(o,r,e){let t=o.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&o.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>ir(H,XS));const b=ws(f);return b.onDestroy(()=>{d.forEach(H=>Od(H,XS)),ha(i,e.toStyles)}),u.forEach(H=>{Dn(a,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Zo(r.duration,r.delay)}}class n0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Zo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Vx(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Wb(o){return o&&1===o.nodeType}function gM(o,r){const e=o.style.display;return o.style.display=r??"none",e}function mM(o,r,e,t,a){const l=[];e.forEach(i=>l.push(gM(i)));const c=[];t.forEach((i,s)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(s,u,a);d.set(u,f),(!f||0==f.length)&&(s[tr]=WP,c.push(s))}),o.set(s,d)});let n=0;return e.forEach(i=>gM(i,l[n++])),c}function _M(o,r){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const s=n.parentNode;return i=e.has(s)?s:a.has(s)?1:c(s),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function ir(o,r){o.classList?.add(r)}function Od(o,r){o.classList?.remove(r)}function ZP(o,r,e){ws(e).onDone(()=>o.processLeaveNode(r))}function bM(o,r){for(let e=0;ea.add(l)):r.set(o,t),e.delete(o),!0}class $b{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new YP(r,e,t),this._timelineEngine=new jP(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Wx(this._driver,l,i,[]);if(i.length)throw function LH(o,r){return new h.vHH(3404,!1)}();n=function BP(o,r,e){return new OP(o,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=qS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=qS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let iR=(()=>{class o{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=o.initialStylesByElement.get(e);l||o.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ha(this._element,this._initialStyles),this._endStyles&&(ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),ha(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function r0(o){let r=null;return o.forEach((e,t)=>{(function nR(o){return"display"===o||"position"===o})(t)&&(r=r||new Map,r.set(t,e))}),r}class yM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:aM(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class rR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return QS(r,e)}getParentElement(r){return Fx(r)}query(r,e,t){return JS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const s=new Map,d=c.filter(b=>b instanceof yM);(function lP(o,r){return 0===o||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((H,N)=>s.set(N,H))});let u=function rP(o){return o.length?o[0]instanceof Map?o:o.map(r=>eM(r)):[]}(e).map(b=>As(b));u=function cP(o,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,aM(o,n)))}}return r}(r,u,s);const f=function tR(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=r0(r[0]),r.length>1&&(t=r0(r[r.length-1]))):r instanceof Map&&(e=r0(r)),e||t?new iR(o,e,t):null}(r,u);return new yM(r,u,i,f)}}let aR=(()=>{class o extends ch{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:h.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?dh(e):e;return wM(this._renderer,null,t,"register",[a]),new oR(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.FYo),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class oR extends class wv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new sR(this._id,r,e||{},this._renderer)}}class sR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return wM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function wM(o,r,e,t,a){return o.setProperty(r,`@@${e}:${t}`,a)}const vM="@.disabled";let lR=(()=>{class o{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new AM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new cR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.FYo),h.LFG($b),h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();class AM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==vM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class cR extends AM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==vM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function dR(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function uR(o){const r=o.indexOf(".");return[o.substring(0,r),o.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const xM=[{provide:ch,useClass:aR},{provide:Kx,useFactory:function pR(){return new RP}},{provide:$b,useClass:(()=>{class o extends $b{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(jx),h.LFG(Kx),h.LFG(h.z2F))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})()},{provide:h.FYo,useFactory:function fR(o,r,e){return new lR(o,r,e)},deps:[ue,$b,h.R0b]}],a0=[{provide:jx,useFactory:()=>new rR},{provide:h.QbO,useValue:"BrowserAnimations"},...xM],TM=[{provide:jx,useClass:KS},{provide:h.QbO,useValue:"NoopAnimations"},...xM];let gR=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?TM:a0}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:a0,imports:[_a]}),o})(),MM=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),Qb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,Oo,MM,We,MM]}),o})();function Jb(o){return o&&"function"==typeof o.connect}class DM{applyChanges(r,e,t,a,l){r.forEachOperation((c,n,i)=>{let s,d;if(null==c.previousIndex){const u=t(c,n,i);s=e.createEmbeddedView(u.templateRef,u.context,u.index),d=1}else null==i?(e.remove(n),d=3):(s=e.get(n),e.move(s,i),d=2);l&&l({context:s?.context,operation:d,record:c})})}detach(){}}const Gp=new h.OlP("_ViewRepeater"),PR=[[["caption"]],[["colgroup"],["col"]]],RR=["caption","colgroup, col"];function s0(o){return class extends o{constructor(...r){super(...r),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(r){const e=this._sticky;this._sticky=it(r),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const r=this._hasStickyChanged;return this._hasStickyChanged=!1,r}resetStickyChanged(){this._hasStickyChanged=!1}}}const Ld=new h.OlP("CDK_TABLE");let Fd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkCellDef",""]]}),o})(),jd=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkHeaderCellDef",""]]}),o})(),Kb=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkFooterCellDef",""]]}),o})();class BR{}const OR=s0(BR);let lo=(()=>{class o extends OR{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=it(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,Fd,5),h.Suo(a,jd,5),h.Suo(a,Kb,5)),2&e){let l;h.iGM(l=h.CRH())&&(t.cell=l.first),h.iGM(l=h.CRH())&&(t.headerCell=l.first),h.iGM(l=h.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),h.qOj]}),o})();class l0{constructor(r,e){e.nativeElement.classList.add(...r._columnCssClassName)}}let c0=(()=>{class o extends l0{constructor(e,t){super(e,t)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(lo),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.qOj]}),o})(),d0=(()=>{class o extends l0{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const a=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===a||"treegrid"===a?"gridcell":"cell")}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(lo),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[h.qOj]}),o})();class RM{constructor(){this.tasks=[],this.endTasks=[]}}const u0=new h.OlP("_COALESCED_STYLE_SCHEDULER");let IM=(()=>{class o{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RM,this._getScheduleObservable().pipe(ft(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RM;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,wi.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Gt.q)(1))}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})(),h0=(()=>{class o{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof qp?e.headerCell.template:this instanceof Wp?e.footerCell.template:e.cell.template}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4))},o.\u0275dir=h.lG2({type:o,features:[h.TTD]}),o})();class LR extends h0{}const FR=s0(LR);let qp=(()=>{class o extends FR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),o})();class jR extends h0{}const NR=s0(jR);let Wp=(()=>{class o extends NR{constructor(e,t,a){super(e,t),this._table=a}ngOnChanges(e){super.ngOnChanges(e)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.qOj,h.TTD]}),o})(),Zb=(()=>{class o extends h0{constructor(e,t,a){super(e,t),this._table=a}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc),h.Y36(h.ZZ4),h.Y36(Ld,8))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.qOj]}),o})(),co=(()=>{class o{constructor(e){this._viewContainer=e,o.mostRecentCellOutlet=this}ngOnDestroy(){o.mostRecentCellOutlet===this&&(o.mostRecentCellOutlet=null)}}return o.mostRecentCellOutlet=null,o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b))},o.\u0275dir=h.lG2({type:o,selectors:[["","cdkCellOutlet",""]]}),o})(),p0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),g0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),Xb=(()=>{class o{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.Rgc))},o.\u0275dir=h.lG2({type:o,selectors:[["ng-template","cdkNoDataRow",""]]}),o})();const kM=["top","bottom","left","right"];class zR{constructor(r,e,t,a,l=!0,c=!0,n){this._isNativeHtmlTable=r,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=a,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=n,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(r,e){const t=[];for(const a of r)if(a.nodeType===a.ELEMENT_NODE){t.push(a);for(let l=0;l{for(const a of t)this._removeStickyStyle(a,e)})}updateStickyColumns(r,e,t,a=!0){if(!r.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=r[0],c=l.children.length,n=this._getCellWidths(l,a),i=this._getStickyStartColumnPositions(n,e),s=this._getStickyEndColumnPositions(n,t),d=e.lastIndexOf(!0),u=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",H=f?"left":"right";for(const N of r)for(let ae=0;aee[ae]?N:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===u?[]:n.slice(u).map((N,ae)=>t[ae+u]?N:null).reverse()}))})}stickRows(r,e,t){if(!this._isBrowser)return;const a="bottom"===t?r.slice().reverse():r,l="bottom"===t?e.slice().reverse():e,c=[],n=[],i=[];for(let d=0,u=0;d{for(let d=0;d{e.some(a=>!a)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(r,e){for(const a of e)r.style[a]="",r.classList.remove(this._borderCellCss[a]);kM.some(a=>-1===e.indexOf(a)&&r.style[a])?r.style.zIndex=this._getCalculatedZIndex(r):(r.style.zIndex="",this._needsPositionStickyOnElement&&(r.style.position=""),r.classList.remove(this._stickCellCss))}_addStickyStyle(r,e,t,a){r.classList.add(this._stickCellCss),a&&r.classList.add(this._borderCellCss[e]),r.style[e]=`${t}px`,r.style.zIndex=this._getCalculatedZIndex(r),this._needsPositionStickyOnElement&&(r.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(r){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const a of kM)r.style[a]&&(t+=e[a]);return t?`${t}`:""}_getCellWidths(r,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],a=r.children;for(let l=0;l0;l--)e[l]&&(t[l]=a,a+=r[l]);return t}}const m0=new h.OlP("CDK_SPL");let eC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","rowOutlet",""]]}),o})(),tC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","headerRowOutlet",""]]}),o})(),iC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","footerRowOutlet",""]]}),o})(),nC=(()=>{class o{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.s_b),h.Y36(h.SBq))},o.\u0275dir=h.lG2({type:o,selectors:[["","noDataRowOutlet",""]]}),o})(),rC=(()=>{class o{constructor(e,t,a,l,c,n,i,s,d,u,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=a,this._dir=c,this._platform=i,this._viewRepeater=s,this._coalescedStyleScheduler=d,this._viewportRuler=u,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new h.vpe,this.viewChange=new Yt({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=n,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=it(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=it(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(ft(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jb(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(a,l,c)=>this._getEmbeddedViewArgs(a.item,c),a=>a.item.data,a=>{1===a.operation&&a.context&&this._renderCellTemplateForItem(a.record.item.rowDef,a.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(a=>{t.get(a.currentIndex).context.$implicit=a.item.data}),this._updateNoDataRow(),this._ngZone&&h.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Gt.q)(1),ft(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),a=this._elementRef.nativeElement.querySelector("thead");a&&(a.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),a=this._elementRef.nativeElement.querySelector("tfoot");a&&(a.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),a=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...a],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let n=0;n{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=0;a{const n=a&&a.has(c)?a.get(c):[];if(n.length){const i=n.shift();return i.dataIndex=t,i}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),aC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=aC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=aC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=aC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,n)=>c||!!n.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const a=this._headerRowDefs.reduce(e,!1);a&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||a||l}_switchDataSource(e){this._data=[],Jb(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Jb(this.dataSource)?e=this.dataSource.connect(this):Tn(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,De.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(ft(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const a=Array.from(t.columns||[]).map(n=>this._columnDefsByName.get(n)),l=a.map(n=>n.sticky),c=a.map(n=>n.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let a=0;a!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&a.push(l)}return a}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,a,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,a);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let a of this._getCellTemplates(e))co.mostRecentCellOutlet&&co.mostRecentCellOutlet._viewContainer.createEmbeddedView(a,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,a=e.length;t{const a=this._columnDefsByName.get(t);return e.extractCellTemplate(a)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const a of t){const l=this._document.createElement(a.tag);l.setAttribute("role","rowgroup");for(const c of a.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,a)=>t||a.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new zR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,De.of)()).pipe(ft(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const a=this._noDataRowOutlet.viewContainer;if(t){const l=a.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else a.clear();this._isShowingNoDataRow=t}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(h.ZZ4),h.Y36(h.sBO),h.Y36(h.SBq),h.$8M("role"),h.Y36(Qn,8),h.Y36(T.K0),h.Y36(ci),h.Y36(Gp),h.Y36(u0),h.Y36(qo),h.Y36(m0,12),h.Y36(h.R0b,8))},o.\u0275cmp=h.Xpm({type:o,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,a){if(1&e&&(h.Suo(a,Xb,5),h.Suo(a,lo,5),h.Suo(a,Zb,5),h.Suo(a,qp,5),h.Suo(a,Wp,5)),2&e){let l;h.iGM(l=h.CRH())&&(t._noDataRow=l.first),h.iGM(l=h.CRH())&&(t._contentColumnDefs=l),h.iGM(l=h.CRH())&&(t._contentRowDefs=l),h.iGM(l=h.CRH())&&(t._contentHeaderRowDefs=l),h.iGM(l=h.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(h.Gf(eC,7),h.Gf(tC,7),h.Gf(iC,7),h.Gf(nC,7)),2&e){let a;h.iGM(a=h.CRH())&&(t._rowOutlet=a.first),h.iGM(a=h.CRH())&&(t._headerRowOutlet=a.first),h.iGM(a=h.CRH())&&(t._footerRowOutlet=a.first),h.iGM(a=h.CRH())&&(t._noDataRowOutlet=a.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[h._Bn([{provide:Ld,useExisting:o},{provide:Gp,useClass:DM},{provide:u0,useClass:IM},{provide:m0,useValue:null}])],ngContentSelectors:RR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(PR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})();function aC(o,r){return o.concat(Array.from(r))}let GR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Ua]}),o})();const qR=[[["caption"]],[["colgroup"],["col"]]],WR=["caption","colgroup, col"];let _0=(()=>{class o extends rC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[h._Bn([{provide:Gp,useClass:DM},{provide:rC,useExisting:o},{provide:Ld,useExisting:o},{provide:u0,useClass:IM},{provide:m0,useValue:null}]),h.qOj],ngContentSelectors:WR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.F$t(qR),h.Hsn(0),h.Hsn(1,1),h.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[eC,tC,iC,nC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),o})(),oC=(()=>{class o extends Fd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matCellDef",""]],features:[h._Bn([{provide:Fd,useExisting:o}]),h.qOj]}),o})(),sC=(()=>{class o extends jd{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matHeaderCellDef",""]],features:[h._Bn([{provide:jd,useExisting:o}]),h.qOj]}),o})(),lC=(()=>{class o extends lo{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h._Bn([{provide:lo,useExisting:o},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:o}]),h.qOj]}),o})(),cC=(()=>{class o extends c0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.qOj]}),o})(),dC=(()=>{class o extends d0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.qOj]}),o})(),BM=(()=>{class o extends qp{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h._Bn([{provide:qp,useExisting:o}]),h.qOj]}),o})(),b0=(()=>{class o extends Zb{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275dir=h.lG2({type:o,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h._Bn([{provide:Zb,useExisting:o}]),h.qOj]}),o})(),OM=(()=>{class o extends p0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h._Bn([{provide:p0,useExisting:o}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),C0=(()=>{class o extends g0{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h._Bn([{provide:g0,useExisting:o}]),h.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&h.GkF(0,0)},dependencies:[co],encapsulation:2}),o})(),uC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[GR,We,We]}),o})();class hC extends class nI extends class DR{}{constructor(r=[]){super(),this._renderData=new Yt([]),this._filter=new Yt(""),this._internalPageChanges=new He.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const a=e[t];if(Sg(a)){const l=Number(a);return l<9007199254740991?l:a}return a},this.sortData=(e,t)=>{const a=t.active,l=t.direction;return a&&""!=l?e.sort((c,n)=>{let i=this.sortingDataAccessor(c,a),s=this.sortingDataAccessor(n,a);const d=typeof i,u=typeof s;d!==u&&("number"===d&&(i+=""),"number"===u&&(s+=""));let f=0;return null!=i&&null!=s?i>s?f=1:i{const a=Object.keys(e).reduce((c,n)=>c+e[n]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=a.indexOf(l)},this._data=new Yt(r),this._updateChangeSubscription()}get data(){return this._data.value}set data(r){r=Array.isArray(r)?r:[],this._data.next(r),this._renderChangesSubscription||this._filterData(r)}get filter(){return this._filter.value}set filter(r){this._filter.next(r),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(r){this._sort=r,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(r){this._paginator=r,this._updateChangeSubscription()}_updateChangeSubscription(){const r=this._sort?(0,$i.T)(this._sort.sortChange,this._sort.initialized):(0,De.of)(null),e=this._paginator?(0,$i.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,De.of)(null),a=(0,Ir.a)([this._data,this._filter]).pipe((0,ze.U)(([n])=>this._filterData(n))),l=(0,Ir.a)([a,r]).pipe((0,ze.U)(([n])=>this._orderData(n))),c=(0,Ir.a)([l,e]).pipe((0,ze.U)(([n])=>this._pageData(n)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=c.subscribe(n=>this._renderData.next(n))}_filterData(r){return this.filteredData=null==this.filter||""===this.filter?r:r.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(r){return this.sort?this.sortData(r.slice(),this.sort):r}_pageData(r){if(!this.paginator)return r;const e=this.paginator.pageIndex*this.paginator.pageSize;return r.slice(e,e+this.paginator.pageSize)}_updatePaginator(r){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=r,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,a=Math.min(e.pageIndex,t);a!==e.pageIndex&&(e.pageIndex=a,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}let y0=(()=>{class o{constructor(){this.changes=new He.x}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const aI={provide:y0,deps:[[new h.FiY,new h.tp0,y0]],useFactory:function rI(o){return o||new y0}};let w0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[aI],imports:[T.ez,We]}),o})();function oI(o,r){if(1&o&&(h.O4$(),h._UZ(0,"circle",4)),2&o){const e=h.oxw(),t=h.MAs(1);h.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}function sI(o,r){if(1&o&&(h.O4$(),h._UZ(0,"circle",4)),2&o){const e=h.oxw(),t=h.MAs(1);h.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),h.uIk("r",e._getCircleRadius())}}const cI=No(class{constructor(o){this._elementRef=o}},"primary"),dI=new h.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function uI(){return{diameter:100}}});class Ar extends cI{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const s=Ar._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(t.head)||s.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=ln(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=ln(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,ln(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Vo(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_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(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Ar._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ar._diameters=new WeakMap,Ar.\u0275fac=function(r){return new(r||Ar)(h.Y36(h.SBq),h.Y36(ci),h.Y36(T.K0,8),h.Y36(h.QbO,8),h.Y36(dI),h.Y36(h.sBO),h.Y36(qo),h.Y36(h.R0b))},Ar.\u0275cmp=h.Xpm({type:Ar,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(h.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[h.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(r,e){1&r&&(h.O4$(),h.TgZ(0,"svg",0,1),h.YNc(2,oI,1,11,"circle",2),h.YNc(3,sI,1,9,"circle",3),h.qZA()),2&r&&(h.Udp("width",e.diameter,"px")("height",e.diameter,"px"),h.Q6J("ngSwitch","indeterminate"===e.mode),h.uIk("viewBox",e._getViewBox()),h.xp6(2),h.Q6J("ngSwitchCase",!0),h.xp6(1),h.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.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 pC=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,T.ez,We]}),o})(),A0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[yr,T.ez]}),o})();const NM=new h.OlP("mat-chips-default-options");let T0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Gc,{provide:NM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),o})();function E0(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?o.setProperty(t,a,e?.has(t)?"important":""):o.removeProperty(t)}return o}function Nd(o,r){const e=r?"":"none";E0(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zM(o,r,e){E0(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function fC(o,r){return r&&"none"!=r?o+" "+r:o}function UM(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function S0(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function M0(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function D0(o,r,e){const{top:t,bottom:a,left:l,right:c}=o;return e>=t&&e<=a&&r>=l&&r<=c}function $p(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function GM(o,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:s}=o,d=i*r,u=s*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:M0(e)})})}handleScroll(r){const e=Ai(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const s=this.getViewportScrollPosition();l=s.top,c=s.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((s,d)=>{s.clientRect&&e!==d&&e.contains(d)&&$p(s.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function WM(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const s=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(s),this._dropContainer)this._updateActiveDropContainer(s,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=s.x-d.x+this._passiveTransform.x,u.y=s.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:s,event:n,distance:this._getDragDistance(s),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new qM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=it(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Nd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ni(t)),this._handles.forEach(t=>Nd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ni(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,gC),e.addEventListener("touchstart",this._pointerDown,JM),e.addEventListener("dragstart",this._nativeDragStart,gC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ni(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Nd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Nd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Yp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),zM(t,!1,H0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Yp(e),l=!a&&0!==e.button,c=this._rootElement,n=Ai(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),s=a?Fc(e):Yn(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||s)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=M0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){zM(this._rootElement,!0,H0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=ZM(c,this._document),this._previewRef=c,r.matchSize?XM(a,l):a.style.transform=mC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=WM(this._rootElement),XM(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return E0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},H0),Nd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function EI(o){const r=getComputedStyle(o),e=S0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=S0(r,"transition-duration"),c=S0(r,"transition-delay");return UM(l[a])+UM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||Ai(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=ZM(this._placeholderRef,this._document)):t=WM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Yp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Yp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:s}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(s-c);t=KM(t,n.left+l,n.right-(i-l)),a=KM(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Nd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,gC),r.removeEventListener("touchstart",this._pointerDown,JM),r.removeEventListener("dragstart",this._nativeDragStart,gC)}_applyRootElementTransform(r,e){const t=mC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=fC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=mC(r,e);this._preview.style.transform=fC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Yp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=Ai(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&$p(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Vo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ni(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function mC(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function KM(o,r,e){return Math.max(r,Math.min(e,o))}function Yp(o){return"t"===o.type[0]}function ZM(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function XM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=mC(r.left,r.top)}function Qp(o,r){return Math.max(0,Math.min(r,o))}class PI{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),s=l[c],u=s.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),H=this._getSiblingOffsetPx(i,l,f),N=l.slice();return function HI(o,r,e){const t=Qp(r,o.length-1),a=Qp(e,o.length-1);if(t===a)return;const l=o[t],c=a{if(N[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:H,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=fC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),$p(ae.clientRect,0,yt)):(zt.style.transform=fC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),$p(ae.clientRect,yt,0))}),this._previousSwap.overlaps=D0(u,e,t),this._previousSwap.drag=s.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let s=c[l];if(s===r&&(s=c[l+1]),!s&&(null==l||-1===l||l-1&&c.splice(n,1),s&&!this._dragDropRegistry.isDragging(s)){const d=s.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ni(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{$p(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:M0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",s=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[s]:n+=l[i]-c.clientRect[s]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const s=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&s===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.x,this.entered=new He.x,this.exited=new He.x,this.dropped=new He.x,this.sorted=new He.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function TI(o=0,r=Jc.z){return o<0&&(o=0),(0,fm.H)(o,o,r)}(0,om).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ni(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new qM(t),this._sortStrategy=new PI(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ni(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!GM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||GM(c.clientRect,.05,r,e)&&([a,l]=function II(o,r,e,t){const a=iD(r,t),l=nD(r,e);let c=0,n=0;if(a){const i=o.scrollTop;1===a?i>0&&(c=1):o.scrollHeight-i>o.clientHeight&&(c=2)}if(l){const i=o.scrollLeft;1===l?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=iD(i,e),l=nD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ni(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ni(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ni(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&D0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!D0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ni(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Vo(ni(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function iD(o,r){const{top:e,bottom:t,height:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function nD(o,r){const{left:e,right:t,width:a}=o,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const _C=yn({passive:!1,capture:!0});let kI=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new He.x,this.pointerUp=new He.x,this.scroll=new He.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,_C)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,_C)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:_C}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:_C}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Vi.y(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,$i.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(h.R0b),h.LFG(T.K0))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const VI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let BI=(()=>{class o{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=VI){return new DI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new RI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(T.K0),h.LFG(h.R0b),h.LFG(qo),h.LFG(kI))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),OI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[BI],imports:[Jn]}),o})(),rD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez]}),o})(),LI=(()=>{class o{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"userFullName",type:o,pure:!0}),o})(),FI=(()=>{class o{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const a=this.storage.get("custom_labels");if(a)for(const l of a)if(l.label===e)return l[t];return e}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(En,16),h.Y36(fi,16))},o.\u0275pipe=h.Yjl({name:"customTranslate",type:o,pure:!0}),o})(),jI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),qI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),XI=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[qI,We,We]}),o})(),ik=(()=>{class o{constructor(){this.changes=new He.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const hk={provide:new h.OlP("mat-datepicker-scroll-strategy"),deps:[Ti],useFactory:function uk(o){return()=>o.scrollStrategies.reposition()}};let V0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[ik,hk],imports:[T.ez,An,Ya,Nc,ea,We,Jn]}),o})(),Dk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[hi,We,We]}),o})();new h.OlP("mat-selectsearch-default-options");let kk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[[T.ez,Ol,An,Qb,yr,pC,_l]]}),o})(),uD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Vk=(()=>{class o{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=it(e)}get inset(){return this._inset}set inset(e){this._inset=it(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,t){2&e&&(h.uIk("aria-orientation",t.vertical?"vertical":"horizontal"),h.ekj("mat-divider-vertical",t.vertical)("mat-divider-horizontal",!t.vertical)("mat-divider-inset",t.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,t){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),o})(),B0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),Bk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),pD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Bk,ea]}),o})(),gD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[zo,We,zo,We]}),o})(),Fk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Jr]}),o})(),O0=(()=>{class o{constructor(){this.changes=new He.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Jk={provide:O0,deps:[[new h.FiY,new h.tp0,O0]],useFactory:function Qk(o){return o||new O0}};let CD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[Jk,Gc],imports:[We,T.ez,ea,An,Fk,yr,hi,We]}),o})(),yD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,Jn,Jn,We]}),o})(),vD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[zo,hi,We,Ju,T.ez,zo,We,Ju,B0]}),o})(),AD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[We,We]}),o})(),m1=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,We,ea,hi,Oo,Nc,We]}),o})(),xD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({}),o})(),TD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[xD,hi,We,Oo,xD,We]}),o})(),L0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,uD,B0,pD,An,gD,Qb,yr,uC,us,pC,es,Rp,Ua,Pp,Ol,CD,V0,Uw,yD,vD,na,AD,w0,er,_l,is,hi,uC,TD,T0,uD,B0,pD,An,gD,Qb,yr,uC,us,pC,es,Rp,Ua,Pp,Ol,CD,V0,Uw,yD,vD,na,AD,w0,er,_l,is,hi,m1,TD,T0]}),o})(),D1=(()=>{class o extends Wg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=h.n5z(o)))(t||o)}}(),o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac}),o})();const H1={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let ED=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[{provide:Xi,useClass:D1},{provide:$u,useValue:H1}],imports:[T.ez,Qb,uC,Pp,T0,OI,ss,Mc,w0,er,pC,A0,yr,na,An,_l,es,Ol,Rp,hi,rD,jI,XI,V0,Dk,Ku,is,kk,Ua,us,hd,L0]}),o})();function F1(o,r){1&o&&h._UZ(0,"mat-spinner",3)}function j1(o,r){1&o&&h._UZ(0,"th",15)}function N1(o,r){if(1&o&&(h.TgZ(0,"td",16),h._uU(1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.hij(" ",e.userExtSource.extSource.name," ")}}function z1(o,r){1&o&&h._UZ(0,"tr",17)}function U1(o,r){1&o&&h._UZ(0,"tr",18)}function G1(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div")(1,"div",4)(2,"p"),h._uU(3),h.ALo(4,"translate"),h.ALo(5,"customTranslate"),h.qZA(),h.TgZ(6,"div",5),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"customTranslate"),h.qZA(),h.TgZ(10,"table",6),h.ynx(11,7),h.YNc(12,j1,1,0,"th",8),h.YNc(13,N1,2,1,"td",9),h.BQk(),h.YNc(14,z1,1,0,"tr",10),h.YNc(15,U1,1,0,"tr",11),h.qZA()(),h.TgZ(16,"div",12)(17,"button",13),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onCancel())}),h._uU(18),h.ALo(19,"translate"),h.ALo(20,"customTranslate"),h.qZA(),h.TgZ(21,"button",14),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.onSubmit())}),h._uU(22),h.ALo(23,"translate"),h.ALo(24,"customTranslate"),h.qZA()()()}if(2&o){const e=h.oxw();h.xp6(3),h.hij(" ",h.lcZ(4,7,h.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),h.xp6(4),h.hij(" ",h.lcZ(8,11,h.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),h.xp6(3),h.Q6J("dataSource",e.dataSource),h.xp6(4),h.Q6J("matHeaderRowDef",e.displayedColumns),h.xp6(1),h.Q6J("matRowDefColumns",e.displayedColumns),h.xp6(3),h.hij(" ",h.lcZ(19,15,h.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),h.xp6(4),h.hij(" ",h.lcZ(23,19,h.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let q1=(()=>{class o{constructor(e,t,a,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=a,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(n=>this.successMessage=n)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new hC(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Xa),h.Y36(D_),h.Y36(Pr),h.Y36(En),h.Y36(bd))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"h1",0),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"customTranslate"),h.qZA(),h.TgZ(4,"div"),h.YNc(5,F1,1,0,"mat-spinner",1),h.YNc(6,G1,25,23,"div",2),h.qZA()),2&e&&(h.xp6(1),h.hij(" ",h.lcZ(2,6,h.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),h.xp6(3),h.Tol(t.theme),h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[T.O5,_0,sC,BM,lC,oC,b0,cC,dC,OM,C0,Fh,ds,jh,Zr,Ar,en,FI]}),o})(),RV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,An,yr,Mc,ED,ss,es,Ol,Rp,A0]}),o})(),IV=(()=>{class o{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Pl),h.Y36(ti))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"button",4),h.NdJ("click",function(){return t.startAuth()}),h._uU(7),h.ALo(8,"translate"),h.TgZ(9,"mat-icon"),h._uU(10," login "),h.qZA()()()()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Zr,ra,en],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),o})();const kV=new h.OlP("perun-api-service");class VV{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let BV=(()=>{class o{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function OV(o){return[hn(tinycolor(o).lighten(52),"50"),hn(tinycolor(o).lighten(37),"100"),hn(tinycolor(o).lighten(26),"200"),hn(tinycolor(o).lighten(12),"300"),hn(tinycolor(o).lighten(6),"400"),hn(tinycolor(o),"500"),hn(tinycolor(o).darken(6),"600"),hn(tinycolor(o).darken(12),"700"),hn(tinycolor(o).darken(18),"800"),hn(tinycolor(o).darken(24),"900"),hn(tinycolor(o).lighten(50).saturate(30),"A100"),hn(tinycolor(o).lighten(30).saturate(30),"A200"),hn(tinycolor(o).lighten(10).saturate(15),"A400"),hn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,s=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,s)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(y.eN),h.LFG(fi),h.LFG(at),h.LFG(Y),h.LFG(gn))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function hn(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let LV=(()=>{class o{constructor(e,t,a){this.initAuthService=e,this.appConfigService=t,this.location=a}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.simpleLoadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(to),h.LFG(BV),h.LFG(T.Ye))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),FV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({providers:[LI],imports:[T.ez,L0,ss,rD]}),o})(),jV=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),h._uU(3," info "),h.qZA(),h._uU(4),h.ALo(5,"translate"),h.qZA(),h.TgZ(6,"div"),h._uU(7),h.ALo(8,"translate"),h.qZA()()),2&e&&(h.xp6(4),h.hij(" ",h.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),h.xp6(3),h.hij(" ",h.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[ra,en],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),o})(),NV=(()=>{class o{constructor(e,t,a,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=a,this.dialog=l}openLinkerWindow(e,t){let a=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(a="http://localhost:4201/");let l=a+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const i=window.top,u=window.open(l,"_blank",`width=600,height=600,top=${i.outerHeight/2+i.screenY-300}, left=${i.outerWidth/2+i.screenX-300}`);let f;if(u){const H=hs();H.width="450px",H.panelClass="noBorderDialog",f=this.dialog.open(jV,H)}window.addEventListener("message",H=>{sessionStorage.setItem("linkedResult",H.data)});const b=setInterval(()=>{if(u.closed){clearInterval(b),f.close();const H=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(H)}},1e3)}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Cd),h.LFG(fi),h.LFG(Hl.Ct),h.LFG(eo))},o.\u0275prov=h.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function zV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," info "),h.qZA())}function UV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," warning "),h.qZA())}function GV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," dangerous "),h.qZA())}function qV(o,r){1&o&&(h.TgZ(0,"mat-icon",2),h._uU(1," check_circle "),h.qZA())}const WV=["*"];let $V=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:WV,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0),h.YNc(1,zV,2,0,"mat-icon",1),h.YNc(2,UV,2,0,"mat-icon",1),h.YNc(3,GV,2,0,"mat-icon",1),h.YNc(4,qV,2,0,"mat-icon",1),h.Hsn(5),h.qZA()),2&e&&(h.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","info"===t.alert_type),h.xp6(1),h.Q6J("ngIf","warn"===t.alert_type),h.xp6(1),h.Q6J("ngIf","error"===t.alert_type),h.xp6(1),h.Q6J("ngIf","success"===t.alert_type))},dependencies:[ra,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})(),HD=(()=>{class o{}return o.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",o.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",o.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",o.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",o.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",o.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",o.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",o.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",o.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",o.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",o.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",o.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",o.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",o.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",o.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",o.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",o.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",o.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",o.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",o.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",o.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",o.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",o.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",o.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",o.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",o.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",o.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",o})();function YV(o,r){1&o&&h._UZ(0,"mat-spinner",2)}function QV(o,r){1&o&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_NOT_KNOW")))}function JV(o,r){1&o&&(h.TgZ(0,"span",17),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"LIST_OF_IDENTITIES.SIGN_KNOW")))}function KV(o,r){if(1&o&&h._UZ(0,"img",18),2&o){const e=h.oxw(2);h.s9C("src",e.logo,h.LSH),h.Q6J("height",e.height)("width",e.width)}}function ZV(o,r){1&o&&h._UZ(0,"mat-icon",19)}function XV(o,r){1&o&&h._UZ(0,"mat-icon",20)}function eB(o,r){1&o&&h._UZ(0,"th",21)}function tB(o,r){if(1&o&&(h.TgZ(0,"td",22),h._uU(1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.hij(" ",e.name,": ")}}function iB(o,r){1&o&&h._UZ(0,"th",21)}function nB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.Oqu(e.value)}}function rB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"span"),h._uU(1),h.TgZ(2,"span",25),h.ALo(3,"translate"),h.TgZ(4,"button",26),h.NdJ("click",function(){const l=h.CHM(e).$implicit,c=h.oxw(4);return h.KtG(c.openDeleteDialog(l))}),h.TgZ(5,"mat-icon"),h._uU(6,"clear"),h.qZA()()(),h._UZ(7,"br"),h.qZA()}if(2&o){const e=r.$implicit,t=h.oxw(4);h.xp6(1),h.hij(" ",e," "),h.xp6(1),h.Q6J("matTooltip",h.lcZ(3,4,"LIST_OF_IDENTITIES.DELETE_DISABLED_TOOLTIP"))("matTooltipDisabled",!e.includes(t.idpProvider)),h.xp6(2),h.Q6J("disabled",e.includes(t.idpProvider))}}function aB(o,r){if(1&o&&(h.TgZ(0,"span"),h.YNc(1,rB,8,6,"span",24),h.qZA()),2&o){const e=h.oxw().$implicit;h.xp6(1),h.Q6J("ngForOf",e.value)}}function oB(o,r){if(1&o&&(h.TgZ(0,"td",23),h.YNc(1,nB,2,1,"span",1),h.YNc(2,aB,2,1,"span",1),h.qZA()),2&o){const e=r.$implicit;h.xp6(1),h.Q6J("ngIf","Linked accounts"!==e.name),h.xp6(1),h.Q6J("ngIf","Linked accounts"===e.name)}}function sB(o,r){1&o&&h._UZ(0,"tr",27)}const lB=function(){return["name","value"]};function cB(o,r){if(1&o&&(h.TgZ(0,"div"),h.YNc(1,QV,3,3,"span",3),h.YNc(2,JV,3,3,"span",3),h.TgZ(3,"div",4)(4,"div",5),h.YNc(5,KV,1,3,"img",6),h.YNc(6,ZV,1,0,"mat-icon",7),h.YNc(7,XV,1,0,"mat-icon",8),h.qZA(),h.TgZ(8,"div")(9,"h2",9),h._uU(10),h.qZA(),h._UZ(11,"mat-divider"),h.TgZ(12,"table",10),h.ynx(13,11),h.YNc(14,eB,1,0,"th",12),h.YNc(15,tB,2,1,"td",13),h.BQk(),h.ynx(16,14),h.YNc(17,iB,1,0,"th",12),h.YNc(18,oB,3,2,"td",15),h.BQk(),h.YNc(19,sB,1,0,"tr",16),h.qZA()()()()),2&o){const e=h.oxw();h.xp6(1),h.Q6J("ngIf",e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.unknownIdentity),h.xp6(3),h.Q6J("ngIf",e.logo),h.xp6(1),h.Q6J("ngIf",!e.logo&&!e.unknownIdentity),h.xp6(1),h.Q6J("ngIf",!e.logo&&e.unknownIdentity),h.xp6(3),h.Oqu(e.idpProvider),h.xp6(2),h.Q6J("dataSource",e.dataSource),h.xp6(7),h.Q6J("matRowDefColumns",h.DdM(8,lB))}}let dB=(()=>{class o{constructor(e,t,a,l,c){this.oauthService=e,this.userService=t,this.storeService=a,this.initService=l,this.dialog=c,this.idpProvider="",this.dataSource=new hC,this.info=[],this.loading=!1}ngOnInit(){this.loading=!0,this.initProfileAndPrincipal()}ngOnChanges(){0!==this.reloadData&&(this.info=[],this.initProfileAndPrincipal())}initProfileAndPrincipal(){this.oauthService.loadUserProfile().then(e=>{this.setIdpInfo(e),this.initService.simpleLoadPrincipal().then(()=>{this.userId=this.storeService.getPerunPrincipal().userId,this.unknownIdentity=-1===this.userId,this.reloadAccounts()})})}reloadAccounts(){if(this.loading=!0,this.unknownIdentity)this.dataSource=new hC(this.info),this.loading=!1;else{const e=[];this.userService.getRichUserExtSources(this.userId).subscribe(t=>{this.userExtSources=t,t.forEach(a=>{if(0!==a.attributes.length){const l=V_(a.attributes,HD.UES_SOURCE_IDP_NAME),c=V_(a.attributes,HD.UES_DEF_MAIL);l?.value&&e.push(`${l.value}${c?.value?" ("+c.value+")":""}`)}}),0!==this.info.length&&(this.info=this.info.filter(a=>"Linked accounts"!==a.name)),this.info.push({name:"Linked accounts",value:e}),this.dataSource=new hC(this.info),this.loading=!1})}}setIdpInfo(e){const t=this.getUserName(e);null!=t&&""!==t&&this.info.push({name:"Name",value:t});const a=this.getUserLogin(e);null!=a&&""!==a&&this.info.push({name:"Login",value:a}),e.info.email&&this.info.push({name:"Email",value:e.info.email}),this.idpProvider=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_provider_userinfo")),this.logo=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_userinfo")),this.width=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_width_userinfo")),this.height=this.getNestedItem(e,this.storeService.getProperty("path_to_idp_logo_height_userinfo"))}getNestedItem(e,t){let a=e.info;for(const l of t)a=a[l],Array.isArray(a)&&(a=a[0]);return String(a)}getUserName(e){const t=e.info.name;if(t&&""!==t)return t;const a=e.info.given_name,l=e.info.family_name;return a&&l?a+" "+l:""}getUserLogin(e){const t=e.info.preferred_username;if(t&&""!==t)return t;const a=e.info.nickname;return a&&""!==a?a:""}openDeleteDialog(e){const t=[];this.userExtSources.filter(c=>c.attributes.forEach(n=>{"sourceIdPName"===n.baseFriendlyName&&e.includes(n.value)&&t.push(c)}));const a=hs();a.width="450px",a.data={theme:"user-theme",userId:this.userId,extSources:t},this.dialog.open(q1,a).afterClosed().subscribe(c=>{c&&this.reloadAccounts()})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Hl.Ct),h.Y36(Pr),h.Y36(fi),h.Y36(to),h.Y36(eo))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-list-of-identities"]],inputs:{reloadData:"reloadData"},features:[h.TTD],decls:3,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["class","mt-n3",4,"ngIf"],[1,"identity-flexbox"],[1,"d-flex","align-items-center","justify-content-center"],["class","logo text-center",3,"height","width","src",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-identity",4,"ngIf"],["svgIcon","perun-info-grey","class","perun-icon perun-icon-identity",4,"ngIf"],[1,"px-3"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold px-3","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pr-3","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mt-n3"],[1,"logo","text-center",3,"height","width","src"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-identity"],["svgIcon","perun-info-grey",1,"perun-icon","perun-icon-identity"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold","px-3"],["mat-cell","",1,"pr-3"],[4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipDisabled"],["mat-icon-button","","color","warn",3,"disabled","click"],["mat-row",""]],template:function(e,t){1&e&&(h.TgZ(0,"div"),h.YNc(1,YV,1,0,"mat-spinner",0),h.YNc(2,cB,20,9,"div",1),h.qZA()),2&e&&(h.xp6(1),h.Q6J("ngIf",t.loading),h.xp6(1),h.Q6J("ngIf",!t.loading))},dependencies:[T.sg,T.O5,Vk,Zr,ra,_0,sC,lC,oC,b0,cC,dC,C0,Ar,r_,en],styles:[".logo[_ngcontent-%COMP%]{display:block;margin-top:auto;margin-bottom:auto}.perun-icon-identity[_ngcontent-%COMP%]{transform:scale(3.5);margin-left:.9rem;margin-top:1rem;color:#000}.identity-flexbox[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:.5rem 1rem;margin-top:.5rem}"]}),o})(),uB=(()=>{class o{transform(e){let t="";return e.forEach(a=>{const l=a.attributes;if(l){const c=l.sourceIdPName;c&&""!==c&&(t=t+c+", ")}}),t.slice(0,-2)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=h.Yjl({name:"similarIdentityFriendlyNamesString",type:o,pure:!0}),o})();function hB(o,r){1&o&&(h.TgZ(0,"perun-web-apps-alert",7),h._uU(1),h.ALo(2,"translate"),h.qZA()),2&o&&(h.xp6(1),h.Oqu(h.lcZ(2,1,"MAIN_WINDOW.IS_NOT_KNOWN_IDENTITY")))}function pB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div",10)(1,"div",11),h._UZ(2,"mat-icon",12),h.TgZ(3,"div",13)(4,"div"),h._uU(5),h.qZA(),h.TgZ(6,"div",14),h._uU(7),h.ALo(8,"translate"),h.ALo(9,"similarIdentityFriendlyNamesString"),h.qZA()()(),h.TgZ(10,"button",15),h.NdJ("click",function(){const l=h.CHM(e).$implicit,c=h.oxw(2);return h.KtG(c.openPopUp(l.identities))}),h._uU(11),h.ALo(12,"translate"),h.qZA()()}if(2&o){const e=r.$implicit;h.xp6(5),h.Oqu(e.email),h.xp6(2),h.AsE(" ",h.lcZ(8,4,"MAIN_WINDOW.LINKED_ACCOUNTS"),": ",h.lcZ(9,6,e.identities)," "),h.xp6(4),h.hij(" ",h.lcZ(12,8,"MAIN_WINDOW.CONNECT_THIS_ACCOUNT")," ")}}function fB(o,r){if(1&o){const e=h.EpF();h.TgZ(0,"div")(1,"h2"),h._uU(2),h.ALo(3,"translate"),h.qZA(),h.TgZ(4,"p"),h._uU(5),h.ALo(6,"translate"),h.qZA(),h.YNc(7,pB,13,10,"div",8),h.TgZ(8,"button",9),h.NdJ("click",function(){h.CHM(e);const a=h.oxw();return h.KtG(a.openPopUp([]))}),h._uU(9),h.ALo(10,"translate"),h.qZA()()}if(2&o){const e=h.oxw();h.xp6(2),h.hij(" ",h.lcZ(3,4,"MAIN_WINDOW.TITLE_"+e.titleHelpTranslatePath)," "),h.xp6(3),h.hij(" ",h.lcZ(6,6,"MAIN_WINDOW."+e.titleHelpTranslatePath+"_HELP")," "),h.xp6(2),h.Q6J("ngForOf",e.similarIdentities),h.xp6(2),h.hij(" ",h.lcZ(10,8,"MAIN_WINDOW.CONNECT_OTHER_ACCOUNT")," ")}}function gB(o,r){1&o&&h._UZ(0,"mat-spinner",16)}let mB=(()=>{class o{constructor(e,t,a,l,c){this.storeService=e,this.initService=t,this.registrarService=a,this.router=l,this.openLinkerService=c,this.loading=!1,this.similarIdentities=[],this.titleHelpTranslatePath="SIMILAR_FOUND",this.reloadData=0}ngOnInit(){this.initData()}initData(){this.loading=!0,this.initService.simpleLoadPrincipal().then(()=>{this.unknownIdentity=-1===this.storeService.getPerunPrincipal().userId,this.reloadSimilarIdentities()})}reloadSimilarIdentities(){this.registrarService.checkForSimilarRichIdentities().subscribe(e=>{this.similarIdentities=e.slice(0,2),0===this.similarIdentities.length&&(this.titleHelpTranslatePath="NO_SIMILAR_FOUND"),this.loading=!1})}openPopUp(e){const t=[];e.forEach(a=>{a.attributes.sourceIdPName&&t.push(a.extSource.name)}),this.openLinkerService.openLinkerWindow(a=>{"TOKEN_EXPIRED"===a?location.reload():"OK"===a?(this.reloadData++,this.initData()):"MESSAGE_SENT_TO_SUPPORT"===a&&this.router.navigate(["/result",a])},t)}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi),h.Y36(to),h.Y36(Yl),h.Y36(ti),h.Y36(NV))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-main-window"]],decls:9,vars:4,consts:[[1,"d-flex"],[1,"d-inline-block","ml-auto","mr-auto"],["alert_type","warn",4,"ngIf"],[1,"main-flexbox","card","p-4","mat-elevation-z3"],[1,"identities-list",3,"reloadData"],[4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn"],["class","card d-flex mt-3 p-2 identity-card mat-elevation-z3",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],[1,"card","d-flex","mt-3","p-2","identity-card","mat-elevation-z3"],[1,"d-flex","flex-row"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-similar"],[1,"ml-3","mt-1"],[1,"pl-1"],["mat-flat-button","","color","accent",1,"ml-auto","mr-2","mb-2","mt-3",3,"click"],[1,"mr-auto","ml-auto"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"div",1),h.YNc(2,hB,3,3,"perun-web-apps-alert",2),h.TgZ(3,"div",3),h._UZ(4,"perun-web-apps-list-of-identities",4)(5,"br"),h.TgZ(6,"div"),h.YNc(7,fB,11,10,"div",5),h.YNc(8,gB,1,0,"mat-spinner",6),h.qZA()()()()),2&e&&(h.xp6(2),h.Q6J("ngIf",t.unknownIdentity),h.xp6(2),h.Q6J("reloadData",t.reloadData),h.xp6(3),h.Q6J("ngIf",!t.loading),h.xp6(1),h.Q6J("ngIf",t.loading))},dependencies:[T.sg,T.O5,Zr,ra,Ar,$V,dB,uB,en],styles:[".identities-list[_ngcontent-%COMP%]{max-width:650px}.main-flexbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;gap:1.5rem}.perun-icon-similar[_ngcontent-%COMP%]{transform:scale(2);margin-left:1rem;margin-top:1rem;color:#000}.identity-card[_ngcontent-%COMP%]{background-color:#f5f5f5;max-width:450px}"]}),o})();function _B(o,r){if(1&o&&(h.TgZ(0,"mat-icon",6),h._uU(1),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.hij(" ",e.icon," ")}}function bB(o,r){1&o&&h._UZ(0,"mat-icon",7)}function CB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.supportMail," ")}}function yB(o,r){if(1&o&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&o){const e=h.oxw(2);h.xp6(1),h.hij(" ",e.userMail," ")}}function wB(o,r){if(1&o&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.YNc(3,CB,2,1,"span",5),h.YNc(4,yB,2,1,"span",5),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.hij(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),h.xp6(2),h.Q6J("ngIf","UNKNOWN_ERROR"===e.result),h.xp6(1),h.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function vB(o,r){if(1&o&&(h.TgZ(0,"h5"),h._uU(1),h.ALo(2,"translate"),h.ALo(3,"translate"),h.qZA()),2&o){const e=h.oxw();h.xp6(1),h.lnq(" ",h.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",h.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const AB=function(o){return{"background-color":o}},xB=["*"];let TB=(()=>{class o{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(fi))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[h.TTD],ngContentSelectors:xB,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(h.F$t(),h.TgZ(0,"div",0)(1,"div",1)(2,"div"),h.YNc(3,_B,2,1,"mat-icon",2),h.YNc(4,bB,1,0,"mat-icon",3),h.qZA(),h.TgZ(5,"div",4)(6,"h1"),h._uU(7),h.ALo(8,"translate"),h.qZA(),h.YNc(9,wB,5,5,"h5",5),h.YNc(10,vB,4,7,"h5",5),h.qZA()(),h.Hsn(11),h.qZA()),2&e&&(h.Q6J("ngStyle",h.VKq(8,AB,t.color)),h.xp6(3),h.Q6J("ngIf","OK"!==t.result),h.xp6(1),h.Q6J("ngIf","OK"===t.result),h.xp6(3),h.hij(" ",h.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),h.xp6(2),h.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),h.xp6(1),h.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,ra,en],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),o})();const EB=[{path:"",redirectTo:"consolidate",pathMatch:"full"},{path:"login",component:IV},{path:"consolidate",component:mB},{path:"result/:result",component:(()=>{class o{constructor(e,t){this.route=e,this.router=t}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result})}onClick(){this.router.navigate(["/consolidate"],{queryParamsHandling:"merge"})}}return o.\u0275fac=function(e){return new(e||o)(h.Y36(Gn),h.Y36(ti))},o.\u0275cmp=h.Xpm({type:o,selectors:[["perun-web-apps-show-result-page"]],decls:6,vars:4,consts:[[1,"show-result","ml-auto","mr-auto"],[3,"result"],[1,"d-flex","flex-column","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(h.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),h.NdJ("click",function(){return t.onClick()}),h._uU(4),h.ALo(5,"translate"),h.qZA()()()()),2&e&&(h.xp6(1),h.Q6J("result",t.linkerResult),h.xp6(3),h.hij(" ",h.lcZ(5,2,"SHOW_RESULT.BACK_HOME")," "))},dependencies:[Zr,TB,en],styles:[".show-result[_ngcontent-%COMP%]{max-width:55vw!important}"]}),o})()}];let SB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[Mc.forRoot(EB,{preloadingStrategy:K0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),Mc]}),o})(),MB=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=h.oAB({type:o}),o.\u0275inj=h.cJS({imports:[T.ez,us,An,ss]}),o})();const DB={provide:y.TP,useExisting:(0,h.Gpc)(()=>U_),multi:!0};function HB(o){return new VV(o,"./assets/i18n/",".json")}function PB(o){const r={basePath:o.getProperty("api_url")};return new Oe(r)}const RB=o=>()=>o.loadConfigs();let IB=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(h.LFG(Uh),h.LFG(En))},o.\u0275mod=h.oAB({type:o,bootstrap:[mH]}),o.\u0275inj=h.cJS({providers:[Uh,{provide:h.ip1,useFactory:RB,multi:!0,deps:[LV]},{provide:Oe,useFactory:PB,deps:[fi]},U_,DB,{provide:kV,useClass:$A},{provide:Hl.Hy,useFactory:()=>localStorage}],imports:[_a,gR,y.JF,Jl,SB,L0,RV,yr,ED,A0,hd,MB,Hl.zr.forRoot(),FV,ss.forRoot({loader:{provide:xl,useFactory:HB,deps:[y.eN]}})]}),o})();(0,h.G48)(),Qe().bootstrapModule(IB).catch(o=>console.error(o))},1302:function(F,z,x){var T;!function(h,V){var O={};!function(h){"use strict";h.__esModule=!0,h.digestLength=32,h.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=h.digestLength,this.blockSize=h.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}h.HMAC=j,h.hash=W,h.default=W,h.hmac=Q;var $=new Uint8Array(h.digestLength);h.hkdf=function U(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=U=U||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,U,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(z,[]))&&(F.exports=h)},9751:(F,z,x)=>{"use strict";x.d(z,{y:()=>Q});var T=x(930),h=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,h.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=G(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,z,x)=>{"use strict";x.d(z,{x:()=>W});var T=x(9751),h=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?h.Lc:(this.currentObservers=null,J.push(U),new h.w0(()=>{this.currentObservers=null,(0,I.P)(J,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:J}=this;te?U.error(ne):J&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:h.Lc}}},930:(F,z,x)=>{"use strict";x.d(z,{Hp:()=>de,Lv:()=>te});var T=x(576),h=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends h.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,h.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,z,x)=>{"use strict";x.d(z,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const J of U)J.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,z,x)=>{"use strict";x.d(z,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,z,x)=>{"use strict";x.d(z,{a:()=>$});var T=x(9751),h=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,h.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function U(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,G.f)(ie,ne,J):J()}},7272:(F,z,x)=>{"use strict";x.d(z,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function h(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,z,x)=>{"use strict";x.d(z,{E:()=>h});const h=new(x(9751).y)(I=>I.complete())},2076:(F,z,x)=>{"use strict";x.d(z,{D:()=>Ye});var T=x(8421),h=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,h.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,h.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,h.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var G=x(9751),U=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new G.y(Te=>{(0,h.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,h.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new G.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new G.y(Te=>{let oe;return(0,h.f)(Te,Ee,()=>{oe=Se[U.h](),(0,h.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,z,x)=>{"use strict";x.d(z,{Xf:()=>ne});var T=x(655),h=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,h.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Ve(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,z,x)=>{"use strict";x.d(z,{T:()=>j});var T=x(8189),h=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,h.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,z,x)=>{"use strict";x.d(z,{of:()=>V});var T=x(3269),h=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,h.D)(O,I)}},102:(F,z,x)=>{"use strict";x.d(z,{S:()=>j});var T=x(9751),h=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,h.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,z,x)=>{"use strict";x.d(z,{_:()=>V});var T=x(9751),h=x(576);function V(O,I){const j=(0,h.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,z,x)=>{"use strict";x.d(z,{H:()=>I});var T=x(9751),h=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=h.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,z,x)=>{"use strict";x.d(z,{x:()=>h});var T=x(930);function h(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,z,x)=>{"use strict";x.d(z,{K:()=>O});var T=x(8421),h=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,h.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,z,x)=>{"use strict";x.d(z,{b:()=>V});var T=x(5577),h=x(576);function V(O,I){return(0,h.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,z,x)=>{"use strict";x.d(z,{b:()=>O});var T=x(4986),h=x(4482),V=x(5403);function O(I,j=T.z){return(0,h.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const J=$;$=null,Q.next(J)}};function ne(){const J=U+I,ie=j.now();if(ie{$=J,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,z,x)=>{"use strict";x.d(z,{d:()=>V});var T=x(4482),h=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,h.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,z,x)=>{"use strict";x.d(z,{g:()=>te});var T=x(4986),h=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,J){return J?ie=>(0,h.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,J=T.z){const ie=(0,U.H)(ne,J);return $(()=>ie)}},9300:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,z,x)=>{"use strict";x.d(z,{P:()=>W});var T=x(6805),h=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,h.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,z,x)=>{"use strict";x.d(z,{U:()=>V});var T=x(4482),h=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,h.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,z,x)=>{"use strict";x.d(z,{h:()=>h});var T=x(4004);function h(V){return(0,T.U)(()=>V)}},8189:(F,z,x)=>{"use strict";x.d(z,{J:()=>V});var T=x(5577),h=x(4671);function V(O=1/0){return(0,T.z)(h.y,O)}},5577:(F,z,x)=>{"use strict";x.d(z,{z:()=>Q});var T=x(4004),h=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,h.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,h.Xf)(U(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return G.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,z,x)=>{"use strict";x.d(z,{B:()=>I});var T=x(8421),h=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new h.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,U))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,G,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,z,x)=>{"use strict";x.d(z,{w:()=>O});var T=x(8421),h=x(4482),V=x(5403);function O(I,j){return(0,h.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,z,x)=>{"use strict";x.d(z,{q:()=>O});var T=x(515),h=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,h.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,z,x)=>{"use strict";x.d(z,{b:()=>I});var T=x(576),h=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,h.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,J=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,J),U.next(J)},()=>{var J;ne=!1,null===(J=G.complete)||void 0===J||J.call(G),U.complete()},J=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,J),U.error(J)},()=>{var J,ie;ne&&(null===(J=G.unsubscribe)||void 0===J||J.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,z,x)=>{"use strict";x.d(z,{T:()=>O});var T=x(6805),h=x(4482),V=x(5403);function O(j=I){return(0,h.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,z,x)=>{"use strict";x.d(z,{V:()=>G});var T=x(4986),h=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,h.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(U){throw new Q(U)}},4408:(F,z,x)=>{"use strict";x.d(z,{o:()=>I});var T=x(727);class h extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends h{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,z,x)=>{"use strict";x.d(z,{v:()=>V});var T=x(6063);class h{constructor(I,j=h.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}h.now=T.l.now;class V extends h{constructor(I,j=h.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,z,x)=>{"use strict";x.d(z,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,z,x)=>{"use strict";x.d(z,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T={setTimeout(h,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(h,V,...O):setTimeout(h,V,...O)},clearTimeout(h){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(h)},delegate:void 0}},2202:(F,z,x)=>{"use strict";x.d(z,{h:()=>h});const h=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,z,x)=>{"use strict";x.d(z,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,z,x)=>{"use strict";x.d(z,{K:()=>h});const h=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,z,x)=>{"use strict";x.d(z,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),h=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,h.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,z,x)=>{"use strict";x.d(z,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:h,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&h(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,z,x)=>{"use strict";function T(h,V){if(h){const O=h.indexOf(V);0<=O&&h.splice(O,1)}}x.d(z,{P:()=>T})},3888:(F,z,x)=>{"use strict";function T(h){const O=h(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(z,{d:()=>T})},1810:(F,z,x)=>{"use strict";function T(h,V){return h.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(z,{n:()=>T})},2806:(F,z,x)=>{"use strict";x.d(z,{O:()=>O,x:()=>V});var T=x(2416);let h=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!h;if(j&&(h={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=h;if(h=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=I)}},9672:(F,z,x)=>{"use strict";function T(h,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?h.add(this.schedule(null,I)):this.unsubscribe()},I);if(h.add(W),!j)return W}x.d(z,{f:()=>T})},4671:(F,z,x)=>{"use strict";function T(h){return h}x.d(z,{y:()=>T})},1144:(F,z,x)=>{"use strict";x.d(z,{z:()=>T});const T=h=>h&&"number"==typeof h.length&&"function"!=typeof h},2206:(F,z,x)=>{"use strict";x.d(z,{D:()=>h});var T=x(576);function h(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,z,x)=>{"use strict";function T(h){return h instanceof Date&&!isNaN(h)}x.d(z,{q:()=>T})},576:(F,z,x)=>{"use strict";function T(h){return"function"==typeof h}x.d(z,{m:()=>T})},3670:(F,z,x)=>{"use strict";x.d(z,{c:()=>V});var T=x(8822),h=x(576);function V(O){return(0,h.m)(O[T.L])}},6495:(F,z,x)=>{"use strict";x.d(z,{T:()=>V});var T=x(2202),h=x(576);function V(O){return(0,h.m)(O?.[T.h])}},8239:(F,z,x)=>{"use strict";x.d(z,{t:()=>h});var T=x(576);function h(V){return(0,T.m)(V?.then)}},3260:(F,z,x)=>{"use strict";x.d(z,{L:()=>O,Q:()=>V});var T=x(655),h=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,h.m)(I?.getReader)}},3532:(F,z,x)=>{"use strict";x.d(z,{K:()=>h});var T=x(576);function h(V){return V&&(0,T.m)(V.schedule)}},4482:(F,z,x)=>{"use strict";x.d(z,{A:()=>h,e:()=>V});var T=x(576);function h(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(h(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,z,x)=>{"use strict";x.d(z,{Z:()=>O});var T=x(4004);const{isArray:h}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return h(j)?I(...j):I(j)}(I,j))}},5032:(F,z,x)=>{"use strict";function T(){}x.d(z,{Z:()=>T})},9635:(F,z,x)=>{"use strict";x.d(z,{U:()=>V,z:()=>h});var T=x(4671);function h(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,z,x)=>{"use strict";x.d(z,{h:()=>V});var T=x(2416),h=x(3410);function V(O){h.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,z,x)=>{"use strict";function T(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(z,{z:()=>T})},655:(F,z,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ei){try{Le(ue.next(Ei))}catch(Rn){ot(Rn)}}function It(Ei){try{Le(ue.throw(Ei))}catch(Rn){ot(Rn)}}function Le(Ei){Ei.done?Me(Ei.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ei.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Ut){ue[Ut]&&(Re[Ut]=function(Dt){return new Promise(function(pn,oi){Me.push([Ut,Dt,pn,oi])>1||Tt(Ut,Dt)})})}function Tt(Ut,Dt){try{!function It(Ut){Ut.value instanceof he?Promise.resolve(Ut.value.v).then(Le,Ei):Rn(Me[0][2],Ut)}(ue[Ut](Dt))}catch(pn){Rn(Me[0][3],pn)}}function Le(Ut){Tt("next",Ut)}function Ei(Ut){Tt("throw",Ut)}function Rn(Ut,Dt){Ut(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(z,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,z,x)=>{"use strict";x.d(z,{Do:()=>Be,EM:()=>Aa,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>Yl,NF:()=>Ms,O5:()=>Hi,Ov:()=>nf,PC:()=>tf,RF:()=>Rr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>ei,ez:()=>_n,mk:()=>Ql,n9:()=>Ji,q:()=>V,sg:()=>gn,w_:()=>j});var T=x(4650);let h=null;function V(){return h}function I(M){h||(h=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function Yl(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Ql=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class Pr{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new Pr(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ue=B.get(pe);B.move(Ue,le),_i(Ue,ee)}});for(let ee=0,pe=B.length;ee{_i(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function _i(M,k){M.context.$implicit=k.item}let Hi=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new rn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){Es("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){Es("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class rn{constructor(){this.$implicit=null,this.ngIf=null}}function Es(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class va{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Rr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new va(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Rr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),tf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class TC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class EC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const SC=new EC,MC=new TC;let nf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return SC;if((0,T.F4k)(D))return MC;throw function mn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const ei="browser";function Ms(M){return M===ei}let Aa=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function on(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=vi(this.window.history)||vi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function vi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,z,x)=>{"use strict";x.d(z,{JF:()=>Gd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),h=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeQi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Zt=Object.keys(Y.setParams).reduce((Qi,tt)=>Qi.set(tt,Y.setParams[tt]),Zt)),new Ee(q,ce,et,{params:Zt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let Me=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Zt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Zt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Zt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(Q))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new h.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const go=/^\)\]\}',?\n/;let mo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),nn=function Ud(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:nn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:nn,url:Er}=Ne(),gi=null;204!==kt&&(gi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=gi?200:0);let Sr=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof gi){const Mr=gi;gi=gi.replace(go,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ba){gi=Mr,Sr&&(Sr=!1,gi={error:ba,text:gi})}}Sr?(ce.next(new fe({body:gi,headers:Ht,status:kt,statusText:nn,url:Er||void 0})),ce.complete()):ce.error(new ue({error:gi,headers:Ht,status:kt,statusText:nn,url:Er||void 0}))},Zt=Ht=>{const{url:kt}=Ne(),nn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(nn)};let vt=!1;const Qi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Zt),xe.addEventListener("timeout",Zt),xe.addEventListener("abort",Zt),q.reportProgress&&(xe.addEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Zt),xe.removeEventListener("abort",Zt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Zt),q.reportProgress&&(xe.removeEventListener("progress",Qi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(T.JF))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new h.OlP("XSRF_COOKIE_NAME"),kn=new h.OlP("XSRF_HEADER_NAME");class ga{}let _o=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(T.K0),h.LFG(h.Lbi),h.LFG(In))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(ga),h.LFG(kn))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ui=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(h.LFG(G),h.LFG(h.zs3))},Ce.\u0275prov=h.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),_a=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=h.oAB({type:Ce}),Ce.\u0275inj=h.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:ga,useClass:_o},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Gd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=h.oAB({type:Ce}),Ce.\u0275inj=h.cJS({providers:[Me,{provide:Q,useClass:ui},mo,{provide:G,useExisting:mo}],imports:[_a.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,z,x)=>{"use strict";x.d(z,{$8M:()=>dc,$Z:()=>Lw,AFp:()=>ap,ALo:()=>jA,AaK:()=>Q,AsE:()=>Zm,BQk:()=>hh,CHM:()=>Pi,CRH:()=>sa,CZH:()=>ms,CqO:()=>Sm,D6c:()=>VS,DdM:()=>IA,Dn7:()=>UA,EJc:()=>Dd,EiD:()=>Zf,EpF:()=>Zo,F$t:()=>Rm,F4k:()=>nd,FYo:()=>$y,FiY:()=>Ho,G48:()=>wb,Gf:()=>QA,GfV:()=>Jy,GkF:()=>td,Gpc:()=>U,Hsn:()=>Im,Ikx:()=>s_,JOm:()=>pr,JVY:()=>xy,KtG:()=>Fn,L6k:()=>Ty,LAX:()=>pu,LFG:()=>li,LSH:()=>wu,Lbi:()=>ab,Lck:()=>xA,MAs:()=>dh,MMx:()=>ds,NdJ:()=>ph,O4$:()=>hf,OlP:()=>At,Oqu:()=>Km,PXZ:()=>fx,Q6J:()=>Fe,QGY:()=>id,QP$:()=>no,QbO:()=>_S,Qsj:()=>Yy,R0b:()=>un,RDi:()=>by,Rgc:()=>md,SBq:()=>Yr,Sil:()=>up,Suo:()=>Wh,TTD:()=>Yt,TgZ:()=>_t,Tol:()=>$m,Udp:()=>qm,VKq:()=>kA,WFA:()=>fh,WLB:()=>VA,XFs:()=>Qe,Xpm:()=>nn,Xts:()=>Au,Y36:()=>ol,YKP:()=>P_,YNc:()=>wt,Yjl:()=>Wl,Yz7:()=>Dt,ZZ4:()=>Hb,_Bn:()=>H_,_UZ:()=>Ko,_Vd:()=>La,_c5:()=>Hx,_uU:()=>Vv,aQg:()=>Pb,c2e:()=>bS,cJS:()=>oi,cg1:()=>vh,d8E:()=>l_,dDg:()=>ub,dqk:()=>ce,eBb:()=>Ey,eFA:()=>vp,ekj:()=>Wm,eoX:()=>Cp,f3M:()=>Pf,g9A:()=>op,h0i:()=>cs,hGG:()=>kS,hij:()=>yh,iGM:()=>YA,ifc:()=>q,ip1:()=>gs,kL8:()=>nA,kcU:()=>pf,lG2:()=>qd,lcZ:()=>NA,lnq:()=>Xm,lqb:()=>Ai,lri:()=>bs,mCW:()=>Qs,n5z:()=>tu,n_E:()=>Nh,oAB:()=>Mr,oJD:()=>Xf,oxw:()=>Pm,pB0:()=>Wf,q3G:()=>ii,qLn:()=>kc,qOj:()=>Zc,qZA:()=>uh,qzn:()=>Ba,rWj:()=>bp,s9C:()=>gh,sBO:()=>Ab,sIi:()=>pl,s_b:()=>zh,soG:()=>lp,tb:()=>sp,tp0:()=>ka,uIk:()=>mr,vHH:()=>ie,vpe:()=>wr,wAp:()=>Ke,xDo:()=>is,xi3:()=>zA,xp6:()=>Vu,ynx:()=>Ja,z2F:()=>Bl,z3N:()=>qn,zSh:()=>rg,zs3:()=>Yn});var T=x(7579),h=x(727),V=x(9751),O=x(6451),I=x(3099);function j(p){for(let g in p)if(p[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(p,g){for(const m in g)g.hasOwnProperty(m)&&!p.hasOwnProperty(m)&&(p[m]=g[m])}function Q(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(Q).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const g=p.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function G(p,g){return null==p||""===p?null===g?"":g:null==g||""===g?p:p+" "+g}const $=j({__forward_ref__:j});function U(p){return p.__forward_ref__=U,p.toString=function(){return Q(this())},p}function te(p){return ne(p)?p():p}function ne(p){return"function"==typeof p&&p.hasOwnProperty($)&&p.__forward_ref__===U}class ie extends Error{constructor(g,m){super(function de(p,g){return`NG0${Math.abs(p)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(p){return"string"==typeof p?p:null==p?"":String(p)}function _e(p,g){throw new ie(-201,!1)}function It(p,g){null==p&&function Le(p,g,m,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,p,null,"!=")}function Dt(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function oi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Tr(p){return ql(p,In)||ql(p,ga)}function ql(p,g){return p.hasOwnProperty(g)?p[g]:null}function mo(p){return p&&(p.hasOwnProperty(kn)||p.hasOwnProperty(_o))?p[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ga=j({ngInjectableDef:j}),_o=j({ngInjectorDef:j});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let ui;function Si(p){const g=ui;return ui=p,g}function _a(p,g,m){const _=Tr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(p))}function fn(p){return{toString:p}.toString()}var yi=(()=>((yi=yi||{})[yi.OnPush=0]="OnPush",yi[yi.Default=1]="Default",yi))(),q=(()=>{return(p=q||(q={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",q;var p})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Zt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Qi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function nn(p){return fn(()=>{const m=!0===p.standalone,_={},C={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===yi.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||Ne,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||q.Emulated,id:"c"+kt++,styles:p.styles||Ne,_:null,setInput:null,schemas:p.schemas||null,tView:null},w=p.dependencies,v=p.features;return C.inputs=bo(p.inputs,_),C.outputs=bo(p.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Sr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Di).filter(Sr):null,C})}function gi(p){return Et(p)||Mi(p)}function Sr(p){return null!==p}function Mr(p){return fn(()=>({type:p.type,bootstrap:p.bootstrap||Ne,declarations:p.declarations||Ne,imports:p.imports||Ne,exports:p.exports||Ne,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function bo(p,g){if(null==p)return ct;const m={};for(const _ in p)if(p.hasOwnProperty(_)){let C=p[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const qd=nn;function Wl(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function Et(p){return p[Je]||null}function Mi(p){return p[Zt]||null}function Di(p){return p[vt]||null}function Ni(p,g){const m=p[Qi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(p)} does not have '\u0275mod' property.`);return m}function Hi(p){return Array.isArray(p)&&"object"==typeof p[1]}function rn(p){return Array.isArray(p)&&!0===p[1]}function Es(p){return 0!=(8&p.flags)}function va(p){return 2==(2&p.flags)}function Rr(p){return 1==(1&p.flags)}function Ji(p){return null!==p.template}function Xp(p){return 0!=(256&p[2])}function De(p,g){return p.hasOwnProperty(tt)?p[tt]:null}class He{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Yt(){return Ss}function Ss(p){return p.type.prototype.ngOnChanges&&(p.setInput=kr),Ir}function Ir(){const p=Ln(this),g=p?.current;if(g){const m=p.previous;if(m===ct)p.previous=g;else for(let _ in g)m[_]=g[_];p.current=null,this.ngOnChanges(g)}}function kr(p,g,m,_){const C=Ln(p)||function Vr(p,g){return p[Vi]=g}(p,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new He(S&&S.currentValue,g,v===ct),p[_]=g}Yt.ngInherit=!0;const Vi="__ngSimpleChanges__";function Ln(p){return p[Vi]||null}function ze(p){for(;Array.isArray(p);)p=p[0];return p}function Aa(p,g){return ze(g[p])}function Vt(p,g){return ze(g[p.index])}function on(p,g){return p.data[g]}function Ui(p,g){return p[g]}function Ct(p,g){const m=g[p];return Hi(m)?m:m[0]}function M(p){return 4==(4&p[2])}function k(p){return 64==(64&p[2])}function B(p,g){return null==g?null:p[g]}function ee(p){p[18]=0}function pe(p,g){p[5]+=g;let m=p,_=p[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Qd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(p){return le.lFrame.contextLView=p,p[8]}function Fn(p){return le.lFrame.contextLView=null,p}function qt(){let p=xa();for(;null!==p&&64===p.type;)p=p.parent;return p}function xa(){return le.lFrame.currentTNode}function Ot(p,g){const m=le.lFrame;m.currentTNode=p,m.isParent=g}function bn(){return le.lFrame.isParent}function Ds(){le.lFrame.isParent=!1}function Oi(){const p=le.lFrame;let g=p.bindingRootIndex;return-1===g&&(g=p.bindingRootIndex=p.tView.bindingStartIndex),g}function jn(){return le.lFrame.bindingIndex}function Ea(){return le.lFrame.bindingIndex++}function Nn(p){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+p,m}function gt(p,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=p,$d(g)}function $d(p){le.lFrame.currentDirectiveIndex=p}function sr(p){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:p[g]}function lf(){return le.lFrame.currentQueryIndex}function Xl(p){le.lFrame.currentQueryIndex=p}function Yd(p){const g=p[1];return 2===g.type?g.declTNode:1===g.type?p[6]:null}function cf(p,g,m){if(m&Qe.SkipSelf){let C=g,w=p;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Yd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,p=w}const _=le.lFrame=Ao();return _.currentTNode=g,_.lView=p,!0}function vo(p){const g=Ao(),m=p[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=p,g.tView=m,g.contextLView=p,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function Ao(){const p=le.lFrame,g=null===p?null:p.child;return null===g?Qd(p):g}function Qd(p){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=g),g}function Rs(){const p=le.lFrame;return le.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const df=Rs;function Is(){const p=Rs();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Ri(){return le.lFrame.selectedIndex}function Or(p){le.lFrame.selectedIndex=p}function Jt(){const p=le.lFrame;return on(p.tView,p.selectedIndex)}function hf(){le.lFrame.currentNamespace="svg"}function pf(){!function BC(){le.lFrame.currentNamespace=null}()}function ic(p,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=p.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(p.contentHooks||(p.contentHooks=[])).push(-m,v),E&&((p.contentHooks||(p.contentHooks=[])).push(m,E),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(m,E)),S&&(p.viewHooks||(p.viewHooks=[])).push(-m,S),P&&((p.viewHooks||(p.viewHooks=[])).push(m,P),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(m,P)),null!=R&&(p.destroyHooks||(p.destroyHooks=[])).push(m,R)}}function xo(p,g,m){Lr(p,g,3,m)}function Sa(p,g,m,_){(3&p[2])===m&&Lr(p,g,m,_)}function Jd(p,g){let m=p[2];(3&m)===g&&(m&=2047,m+=1,p[2]=m)}function Lr(p,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&p[18]:0;S=_)break}else g[S]<0&&(p[18]+=65536),(E>11>16&&(3&p[2])===g){p[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class ks{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function cr(p,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(p),_=g;for(;m>0;)_=_[15],m--;return _}let Zd=!0;function Bs(p){const g=Zd;return Zd=p,g}let jr=0;const Ki={};function Os(p,g){const m=eu(p,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(p.injectorIndex=g.length,Xd(_.data,p),Xd(g,null),Xd(_.blueprint,null));const C=ac(p,g),w=p.injectorIndex;if(nc(C)){const v=zn(C),E=Fr(C,g),S=E[1].data;for(let P=0;P<8;P++)g[w+P]=E[v+P]|S[v+P]}return g[w+8]=C,w}function Xd(p,g){p.push(0,0,0,0,0,0,0,0,g)}function eu(p,g){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===g[p.injectorIndex+8]?-1:p.injectorIndex}function ac(p,g){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=Gn(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function oc(p,g,m){!function bf(p,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=jr++);const C=255&_;g.data[p+(C>>5)]|=1<=0?255&g:Eo:g}(m);if("function"==typeof w){if(!cf(g,p,_))return _&Qe.Host?Cf(C,0,_):yf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{df()}}else if("number"==typeof w){let v=null,E=eu(p,g),S=-1,P=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?ac(p,g):g[E+8],-1!==S&&lc(_,!1)?(v=g[1],E=zn(S),g=Fr(S,g)):E=-1);-1!==E;){const R=g[1];if(sc(w,E,R.data)){const L=WC(E,g,m,v,_,P);if(L!==Ki)return L}S=g[E+8],-1!==S&&lc(_,g[1].data[E+8]===P)&&sc(w,E,g)?(v=R,E=zn(S),g=Fr(S,g)):E=-1}}return C}function WC(p,g,m,_,C,w){const v=g[1],E=v.data[p+8],R=Ls(E,v,m,null==_?va(E)&&Zd:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Fs(g,v,R,E):Ki}function Ls(p,g,m,_,C){const w=p.providerIndexes,v=g.data,E=1048575&w,S=p.directiveStart,R=w>>20,X=C?E+R:p.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Ji(re)&&re.type===m)return S}return null}function Fs(p,g,m,_){let C=p[m];const w=g.data;if(function FC(p){return p instanceof ks}(C)){const v=C;v.resolving&&function Ve(p,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${m}`)}(function ge(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():he(p)}(w[m]));const E=Bs(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Si(v.injectImpl):null;cf(p,_,Qe.Default);try{C=p[m]=v.factory(void 0,w,p,_),g.firstCreatePass&&m>=_.directiveStart&&function LC(p,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=Ss(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(p,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-p,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(p,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(p,w))}(m,w[m],g)}finally{null!==S&&Si(S),Bs(E),v.resolving=!1,df()}}return C}function sc(p,g,m){return!!(m[g+(p>>5)]&1<{const g=p.prototype.constructor,m=g[tt]||cc(g),_=Object.prototype;let C=Object.getPrototypeOf(p.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||cc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function cc(p){return ne(p)?()=>{const g=cc(te(p));return g&&g()}:De(p)}function Gn(p){const g=p[1],m=g.type;return 2===m?g.declTNode:1===m?p[6]:null}function dc(p){return function qC(p,g){if("class"===g)return p.classes;if("style"===g)return p.styles;const m=p.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(gf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),p)}const dr="__parameters__";function Nr(p,g,m){return fn(()=>{const _=function hc(p){return function(...m){if(p){const _=p(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(dr)?S[dr]:Object.defineProperty(S,dr,{value:[]})[dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=p,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function sn(p,g){void 0===g&&(g=p);for(let m=0;mArray.isArray(m)?zr(m,g):g(m))}function ey(p,g,m){g>=p.length?p.push(m):p.splice(g,0,m)}function ru(p,g){return g>=p.length-1?p.pop():p.splice(g,1)[0]}function Pa(p,g){const m=[];for(let _=0;_=0?p[1|_]=m:(_=~_,function iy(p,g,m,_){let C=p.length;if(C==g)p.push(m,_);else if(1===C)p.push(_,p[0]),p[0]=m;else{for(C--,p.push(p[C-1],p[C]);C>g;)p[C]=p[C-2],C--;p[g]=m,p[g+1]=_}}(p,_,g,m)),_}function ou(p,g){const m=Mo(p,g);if(m>=0)return p[1|m]}function Mo(p,g){return function zs(p,g,m){let _=0,C=p.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=p[w<g?C=w:_=w+1}return~(C<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return yc}()?.createHTML(p)||p}function Uf(p){return function vc(){if(void 0===Ys&&(Ys=null,ce.trustedTypes))try{Ys=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Ys}()?.createHTML(p)||p}class Va{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yy extends Va{getTypeName(){return"HTML"}}class wy extends Va{getTypeName(){return"Style"}}class vy extends Va{getTypeName(){return"Script"}}class qf extends Va{getTypeName(){return"URL"}}class hu extends Va{getTypeName(){return"ResourceURL"}}function qn(p){return p instanceof Va?p.changingThisBreaksApplicationSecurity:p}function Ba(p,g){const m=function Ay(p){return p instanceof Va&&p.getTypeName()||null}(p);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function xy(p){return new yy(p)}function Ty(p){return new wy(p)}function Ey(p){return new vy(p)}function pu(p){return new qf(p)}function Wf(p){return new hu(p)}class fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Ro(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class Sy{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Ro(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Ro(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0Qs(g.trim())).join(", ")),this.buf.push(" ",v,'="',Cu(S),'"')}var p;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();_u.hasOwnProperty(m)&&!ti.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(Cu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const Z0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kf=/([^\#-~ |!])/g;function Cu(p){return p.replace(/&/g,"&").replace(Z0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(Kf,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Sc;function Zf(p,g){let m=null;try{Sc=Sc||function xc(p){const g=new Sy(p);return function My(){try{return!!(new window.DOMParser).parseFromString(Ro(""),"text/html")}catch{return!1}}()?new fu(g):g}(p);let _=g?String(g):"";m=Sc.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=Sc.getInertBodyElement(_)}while(_!==w);return Ro((new qr).sanitizeChildren(yu(m)||m))}finally{if(m){const _=yu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function yu(p){return"content"in p&&function Mc(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ii=(()=>((ii=ii||{})[ii.NONE=0]="NONE",ii[ii.HTML=1]="HTML",ii[ii.STYLE=2]="STYLE",ii[ii.SCRIPT=3]="SCRIPT",ii[ii.URL=4]="URL",ii[ii.RESOURCE_URL=5]="RESOURCE_URL",ii))();function Xf(p){const g=Js();return g?Uf(g.sanitize(ii.HTML,p)||""):Ba(p,"HTML")?Uf(qn(p)):Zf(function jf(){return void 0!==uu?uu:typeof document<"u"?document:void 0}(),he(p))}function wu(p){const g=Js();return g?g.sanitize(ii.URL,p)||"":Ba(p,"URL")?qn(p):Qs(he(p))}function Js(){const p=be();return p&&p[12]}const Au=new At("ENVIRONMENT_INITIALIZER"),ng=new At("INJECTOR",-1),By=new At("INJECTOR_DEF_TYPES");class Dc{get(g,m=Gs){if(m===Gs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ci(...p){return{\u0275providers:Oy(0,p)}}function Oy(p,...g){const m=[],_=new Set;let C;return zr(g,w=>{const v=w;Hc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&Oa(C,m),m}function Oa(p,g){for(let m=0;m{g.push(w)})}}function Hc(p,g,m,_){if(!(p=te(p)))return!1;let C=null,w=mo(p);const v=!w&&Et(p);if(w||v){if(v&&!v.standalone)return!1;C=p}else{const S=p.ngModule;if(w=mo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Hc(P,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{zr(w.imports,R=>{Hc(R,g,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&Oa(P,g)}if(!E){const P=De(C)||(()=>new C);g.push({provide:C,useFactory:P,deps:Ne},{provide:By,useValue:C,multi:!0},{provide:Au,useValue:()=>li(C),multi:!0})}const S=w.providers;null==S||E||zr(S,R=>{g.push(R)})}}return C!==p&&void 0!==p.providers}const Ks=j({provide:String,useValue:j});function xu(p){return null!==p&&"object"==typeof p&&Ks in p}function Zi(p){return"function"==typeof p}const rg=new At("Set Injector scope."),ko={},jy={};let Vo;function Bo(){return void 0===Vo&&(Vo=new Dc),Vo}class Ai{}class Pc extends Ai{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,sg(g,v=>this.processProvider(v)),this.records.set(ng,Wr(void 0,this)),C.has("environment")&&this.records.set(Ai,Wr(void 0,this));const w=this.records.get(rg);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(By.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=ur(this),_=Si(void 0);try{return g()}finally{ur(m),Si(_)}}get(g,m=Gs,_=Qe.Default){this.assertNotDestroyed();const C=ur(this),w=Si(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Gy(p){return"function"==typeof p||"object"==typeof p&&p instanceof At}(g)&&Tr(g);E=S&&this.injectableDefInScope(S)?Wr(ag(g),ko):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?Bo():this.parent).get(g,m=_&Qe.Optional&&m===Gs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[gc]=v[gc]||[]).unshift(Q(g)),C)throw v;return function uy(p,g,m,_){const C=p[gc];throw g[Df]&&C.unshift(g[Df]),p.message=function hy(p,g,m,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${p.replace(cy,"\n ")}`}("\n"+p.message,C,m,_),p.ngTokenPath=C,p[gc]=null,p}(v,g,"R3InjectorError",this.source)}throw v}finally{Si(w),ur(C)}}resolveInjectorInitializers(){const g=ur(this),m=Si(void 0);try{const _=this.get(Au.multi,Ne,Qe.Self);for(const C of _)C()}finally{ur(g),Si(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Zi(g=te(g))?g:te(g&&g.provide);const _=function og(p){return xu(p)?Wr(void 0,p.useValue):Wr(Ny(p),ko)}(g);if(Zi(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Wr(void 0,ko,!0),C.factory=()=>lu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===ko&&(m.value=jy,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Uy(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ag(p){const g=Tr(p),m=null!==g?g.factory:De(p);if(null!==m)return m;if(p instanceof At)throw new ie(204,!1);if(p instanceof Function)return function Tu(p){const g=p.length;if(g>0)throw Pa(g,"?"),new ie(204,!1);const m=function go(p){const g=p&&(p[In]||p[ga]);if(g){const m=function Ud(p){if(p.hasOwnProperty("name"))return p.name;const g=(""+p).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),g}return null}(p);return null!==m?()=>m.factory(p):()=>new p}(p);throw new ie(204,!1)}function Ny(p,g,m){let _;if(Zi(p)){const C=te(p);return De(C)||ag(C)}if(xu(p))_=()=>te(p.useValue);else if(function Zs(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...lu(p.deps||[]));else if(function yn(p){return!(!p||!p.useExisting)}(p))_=()=>li(te(p.useExisting));else{const C=te(p&&(p.useClass||p.provide));if(!function zy(p){return!!p.deps}(p))return De(C)||ag(C);_=()=>new C(...lu(p.deps))}return _}function Wr(p,g,m=!1){return{factory:p,value:g,multi:m?[]:void 0}}function eT(p){return!!p.\u0275providers}function sg(p,g){for(const m of p)Array.isArray(m)?sg(m,g):eT(m)?sg(m.\u0275providers,g):g(m)}class Ic{}class Wy{resolveComponentFactory(g){throw function tT(p){const g=Error(`No component factory found for ${Q(p)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=p,g}(g)}}let La=(()=>{class p{}return p.NULL=new Wy,p})();function Eu(){return $r(qt(),be())}function $r(p,g){return new Yr(Vt(p,g))}let Yr=(()=>{class p{constructor(m){this.nativeElement=m}}return p.__NG_ELEMENT_ID__=Eu,p})();function nT(p){return p instanceof Yr?p.nativeElement:p}class $y{}let Yy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Qy(){const p=be(),m=Ct(qt().index,p);return(Hi(m)?m:p)[11]}(),p})(),rT=(()=>{class p{}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:()=>null}),p})();class Jy{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const aT=new Jy("14.1.2"),lg={};function pg(p){return p.ngOriginalError}class kc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&pg(g);for(;m&&pg(m);)m=pg(m);return m||null}}const fg=new Map;let bT=0;const mg="__ngContext__";function Li(p,g){Hi(g)?(p[mg]=g[20],function yT(p){fg.set(p[20],p)}(g)):p[mg]=g}function Vc(p){const g=p[mg];return"number"==typeof g?function nw(p){return fg.get(p)||null}(g):g||null}function _g(p){const g=Vc(p);return g?Hi(g)?g:g.lView:null}const ST=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function Qr(p){return p instanceof Function?p():p}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function Cg(p,g){return undefined(p,g)}function Bc(p){const g=p[3];return rn(g)?g[3]:g}function yg(p){return pw(p[13])}function wg(p){return pw(p[4])}function pw(p){for(;null!==p&&!rn(p);)p=p[4];return p}function el(p,g,m,_,C){if(null!=_){let w,v=!1;rn(_)?w=_:Hi(_)&&(v=!0,_=_[0]);const E=ze(_);0===p&&null!==m?null==C?it(g,m,E):ft(g,m,E,C||null,!0):1===p&&null!==m?ft(g,m,E,C||null,!0):2===p?function Dg(p,g,m){const _=Wt(p,g);_&&function Sg(p,g,m,_){p.removeChild(g,m,_)}(p,_,g,m)}(g,E,v):3===p&&g.destroyNode(E),null!=w&&function Rg(p,g,m,_,C){const w=m[7];w!==ze(m)&&el(g,p,_,w,C);for(let E=10;E0&&(p[m-1][4]=_[4]);const w=ru(p,10+g);!function OT(p,g){Lo(p,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $n(p,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&Lo(p,g,m,3,null,null),function jT(p){let g=p[13];if(!g)return tl(p[1],p);for(;g;){let m=null;if(Hi(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==p;)Hi(g)&&tl(g[1],g),g=g[3];null===g&&(g=p),Hi(g)&&tl(g[1],g),m=g&&g[4]}g=m}}(g)}}function tl(p,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function mw(p,g){let m;if(null!=p&&null!=(m=p.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();g[7]=null}}(p,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&rn(g[3])){m!==g[3]&&gw(m,g);const _=g[19];null!==_&&_.detachView(p)}!function rw(p){fg.delete(p[20])}(g)}}function Tg(p,g,m){return function Eg(p,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=p.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(p,g.parent,m)}function ft(p,g,m,_,C){p.insertBefore(g,m,_,C)}function it(p,g,m){p.appendChild(g,m)}function ln(p,g,m,_,C){null!==_?ft(p,g,m,_,C):it(p,g,m)}function Wt(p,g){return p.parentNode(g)}function _w(p,g,m){return Mg(p,g,m)}let Mg=function Du(p,g,m){return 40&p.type?Vt(p,m):null};function Hu(p,g,m,_){const C=Tg(p,_,g),w=g[11],E=_w(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==Cw(re,P,0)||2&_&&P!==X){if(wn(_))return!1;v=!0}}}}else{if(!v&&!wn(_)&&!wn(S))return!1;if(v&&wn(S))continue;v=!1,_=S|1&_}}return wn(_)||v}function wn(p){return 0==(1&p)}function UT(p,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!wn(v)&&(g+=Bg(w,C),C=""),_=v,w=w||!wn(_);m++}return""!==C&&(g+=Bg(w,C)),g}const st={};function Vu(p){Bu(ut(),be(),Ri()+p,!1)}function Bu(p,g,m,_){if(!_)if(3==(3&g[2])){const w=p.preOrderCheckHooks;null!==w&&xo(g,w,m)}else{const w=p.preOrderHooks;null!==w&&Sa(g,w,0,m)}Or(m)}function Dw(p,g=null,m=null,_){const C=Hw(p,g,m,_);return C.resolveInjectorInitializers(),C}function Hw(p,g=null,m=null,_,C=new Set){const w=[m||Ne,ci(p)];return _=_||("object"==typeof p?void 0:Q(p)),new Pc(w,g||Bo(),_||null,C)}let Yn=(()=>{class p{static create(m,_){if(Array.isArray(m))return Dw({name:""},_,m,"");{const C=m.name??"";return Dw({name:C},m.parent,m.providers,C)}}}return p.THROW_IF_NOT_FOUND=Gs,p.NULL=new Dc,p.\u0275prov=Dt({token:p,providedIn:"any",factory:()=>li(ng)}),p.__NG_ELEMENT_ID__=-1,p})();function ol(p,g=Qe.Default){const m=be();return null===m?li(p,g):wf(qt(),m,te(p),g)}function Lw(){throw new Error("invalid")}function zc(p,g){return p<<17|g<<2}function vn(p){return p>>17&32767}function We(p){return 2|p}function Kr(p){return(131068&p)>>2}function qg(p,g){return-131069&p|g<<2}function ja(p){return 1|p}function Zw(p,g){const m=p.contentQueries;if(null!==m)for(let _=0;_22&&Bu(p,g,22,!1),m(_,C)}finally{Or(w)}}function An(p,g,m){if(Es(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=p[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function dm(p,g){null!==p.hostBindings&&p.hostBindings(1,g)}function um(p,g){g.flags|=2,(p.components||(p.components=[])).push(g.index)}function Qc(p,g,m){if(m){if(g.exportAs)for(let _=0;_0&&gm(m)}}function gm(p){for(let _=yg(p);null!==_;_=wg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];cl(v,w,v.template,w[8])}else w[5]>0&&gm(w)}const m=p[1].components;if(null!==m)for(let _=0;_0&&gm(C)}}function dE(p,g){const m=Ct(g,p),_=m[1];(function ov(p,g){for(let m=g.length;mPromise.resolve(null))();function cv(p){return p[7]||(p[7]=[])}function dv(p){return p.cleanup||(p.cleanup=[])}function Jn(p,g,m){return(null===p||Ji(p))&&(m=function Bi(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(m[g.index])),m[11]}function Ua(p,g){const m=p[9],_=m?m.get(kc,null):null;_&&_.handleError(g)}function Cm(p,g,m,_,C){for(let w=0;w-1&&(Su(g,_),ru(m,_))}this._attachedToViewContainer=!1}$n(this._lView[1],this._lView)}onDestroy(g){th(this._lView[1],this._lView,null,g)}markForCheck(){mm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function _m(p,g,m){const _=g[10];_.begin&&_.begin();try{cl(p,g,p.template,m)}catch(C){throw Ua(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function FT(p,g){Lo(p,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class hE extends Kc{constructor(g){super(g),this._view=g}detectChanges(){lv(this._view)}checkNoChanges(){}get context(){return null}}class ul extends La{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new Ga(m,this.ngModule)}}function hl(p){const g=[];for(let m in p)p.hasOwnProperty(m)&&g.push({propName:p[m],templateName:m});return g}class uv{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,lg,_);return C!==lg||m===lg?C:this.parentInjector.get(g,m,_)}}class Ga extends Ic{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function xw(p){return p.map(Aw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return hl(this.componentDef.inputs)}get outputs(){return hl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof Ai?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new uv(g,w):g,E=v.get($y,null);if(null===E)throw new ie(407,!1);const S=v.get(rT,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function $c(p,g,m){return p.selectRootElement(g,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Ag(E.createRenderer(null,this.componentDef),R,function oh(p){const g=p.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function _E(p,g){return{components:[],scheduler:p||ST,clean:uE,playerHandler:g||null,flags:0}}(),me=eh(0,null,null,1,0,null,null,null,null,null),Ae=qc(null,me,re,X,null,null,E,P,S,v,null);let Pe,je;vo(Ae);try{const Ze=function mE(p,g,m,_,C,w){const v=m[1];m[22]=p;const S=Uo(v,22,2,"#host",null),P=S.mergedAttrs=g.hostAttrs;null!==P&&(rh(S,P,!0),null!==p&&(cr(C,p,P),null!==S.classes&&Fo(C,p,S.classes),null!==S.styles&&Ig(C,p,S.styles)));const R=_.createRenderer(p,g),L=qc(m,Xu(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(oc(Os(S,m),v,g.type),um(v,S),hm(S,m.length,1)),dl(m,L),m[22]=L}(L,this.componentDef,Ae,E,P);if(L)if(_)cr(P,L,["ng-version",aT.full]);else{const{attrs:ye,classes:$e}=function Tw(p){const g=[],m=[];let _=1,C=2;for(;_0&&Fo(P,L,$e.join(" "))}if(je=on(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=p[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Vs(C.hostAttrs,m=Vs(m,C.hostAttrs))}}(_)}function ym(p){return p===ct?{}:p===Ne?[]:p}function pv(p,g){const m=p.viewQuery;p.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function wm(p,g){const m=p.contentQueries;p.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function lh(p,g){const m=p.hostBindings;p.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Wo=null;function $o(){if(!Wo){const p=ce.Symbol;if(p&&p.iterator)Wo=p.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function vv(p,g,m,_){const C=p.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(p,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=Hm(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,ye,Ze,Ze+1)}}else w=Hm(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const Pe=Ae.length;if(Pe)for(let je=0;je0;)g=g[15],p--;return g}(p,le.lFrame.contextLView))[8]}(p)}function Av(p,g){let m=null;const _=function GT(p){const g=p.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(p);for(let C=0;C=0}const pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rd(p){return p.substring(pi.key,pi.keyEnd)}function Ev(p,g){const m=pi.textEnd;return m===g?-1:(g=pi.keyEnd=function zm(p,g,m){for(;g32;)g++;return g}(p,pi.key=g,m),Xo(p,g,m))}function Xo(p,g,m){for(;g=0;m=Ev(g,m))qi(p,rd(g),!0)}function Zn(p,g,m,_){const C=be(),w=ut(),v=Nn(2);w.firstUpdatePass&&Rv(w,p,v,_),g!==st&&di(C,v,g)&&kv(w,w.data[Ri()],C,C[11],p,C[v+1]=function DE(p,g){return null==p||("string"==typeof g?p+=g:"object"==typeof p&&(p=Q(qn(p)))),p}(g,m),_,v)}function Pv(p,g){return g>=p.expandoStartIndex}function Rv(p,g,m,_){const C=p.data;if(null===C[m+1]){const w=C[Ri()],v=Pv(p,m);Jm(w,_)&&null===g&&!v&&(g=!1),g=function AE(p,g,m,_){const C=sr(p);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=ts(m=Ym(null,p,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||p[v]!==C)if(m=Ym(C,p,g,m,_),null===w){let S=function xE(p,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Kr(_))return p[vn(_)]}(p,g,_);void 0!==S&&Array.isArray(S)&&(S=Ym(null,p,g,S[1],_),S=ts(S,g.attrs,_),function TE(p,g,m,_){p[vn(m?g.classBindings:g.styleBindings)]=_}(p,g,_,S))}else w=function EE(p,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const X=vn(p[E+1]);p[_+1]=zc(X,E),0!==X&&(p[X+1]=qg(p[X+1],_)),p[E+1]=function Fw(p,g){return 131071&p|g<<17}(p[E+1],_)}else p[_+1]=zc(E,0),0!==E&&(p[E+1]=qg(p[E+1],_)),E=_;else p[_+1]=zc(S,0),0===E?E=_:p[S+1]=qg(p[S+1],_),S=_;P&&(p[_+1]=We(p[_+1])),jm(p,R,_,!0),jm(p,R,_,!1),function vE(p,g,m,_,C){const w=C?p.residualClasses:p.residualStyles;null!=w&&"string"==typeof g&&Mo(w,g)>=0&&(m[_+1]=ja(m[_+1]))}(g,R,p,_,w),v=zc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}function Ym(p,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=p[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?ou(X,_):R===_?X:void 0;if(P&&!ad(re)&&(re=ou(S,_)),ad(re)&&(E=re,v))return E;const me=p[C+1];C=v?vn(me):Kr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=ou(S,_))}return E}function ad(p){return void 0!==p}function Jm(p,g){return 0!=(p.flags&(g?16:32))}function Vv(p,g=""){const m=be(),_=ut(),C=p+22,w=_.firstCreatePass?Uo(_,C,1,g,null):_.data[C],v=m[C]=function vg(p,g){return p.createText(g)}(m[11],g);Hu(_,m,v,w),Ot(w,!1)}function Km(p){return yh("",p,""),Km}function yh(p,g,m){const _=be(),C=Wa(_,p,g,m);return C!==st&&Xr(_,Ri(),C),yh}function Zm(p,g,m,_,C){const w=be(),v=function fl(p,g,m,_,C,w){const E=ia(p,jn(),m,C);return Nn(2),E?g+he(m)+_+he(C)+w:st}(w,p,g,m,_,C);return v!==st&&Xr(w,Ri(),v),Zm}function Xm(p,g,m,_,C,w,v){const E=be(),S=function gl(p,g,m,_,C,w,v,E){const P=ed(p,jn(),m,C,v);return Nn(3),P?g+he(m)+_+he(C)+w+he(v)+E:st}(E,p,g,m,_,C,w,v);return S!==st&&Xr(E,Ri(),S),Xm}function is(p,g,m,_,C,w,v,E,S,P,R){const L=be(),X=Yo(L,p,g,m,_,C,w,v,E,S,P,R);return X!==st&&Xr(L,Ri(),X),is}function s_(p,g,m){const _=be();return di(_,Ea(),g)&&xi(ut(),Jt(),_,p,g,_[11],m,!0),s_}function l_(p,g,m){const _=be();if(di(_,Ea(),g)){const w=ut(),v=Jt();xi(w,v,_,p,g,Jn(sr(w.data),v,_),m,!0)}return l_}const er=void 0;var tA=["en",[["a","p"],["AM","PM"],er],[["AM","PM"],er,er],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],er,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],er,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",er,"{1} 'at' {0}",er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function c_(p){const m=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let ns={};function vh(p){const g=function kE(p){return p.toLowerCase().replace(/_/g,"-")}(p);let m=rA(g);if(m)return m;const _=g.split("-")[0];if(m=rA(_),m)return m;if("en"===_)return tA;throw new ie(701,!1)}function nA(p){return vh(p)[Ke.PluralCase]}function rA(p){return p in ns||(ns[p]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[p]),ns[p]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const bl="en-US";let d_=bl;function Bh(p,g,m,_,C){if(p=te(p),Array.isArray(p))for(let w=0;w>20;if(Zi(p)||!p.multi){const re=new ks(S,C,ol),me=Lh(E,g,C?R:R+X,L);-1===me?(oc(Os(P,v),w,E),Oh(w,p,g.length),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Lh(E,g,R+X,L),me=Lh(E,g,R,R+X),Ae=re>=0&&m[re],Pe=me>=0&&m[me];if(C&&!Pe||!C&&!Ae){oc(Os(P,v),w,E);const je=function UE(p,g,m,_,C){const w=new ks(p,m,ol);return w.multi=[],w.index=g,w.componentProviders=0,Xa(w,C,_&&!m),w}(C?AA:D_,m.length,C,_,S);!C&&Pe&&(m[me].providerFactory=je),Oh(w,p,g.length,0),g.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(je),v.push(je)}else Oh(w,p,re>-1?re:me,Xa(m[C?me:re],S,!C&&_));!C&&_&&Pe&&m[me].componentProviders++}}}function Oh(p,g,m,_){const C=Zi(g),w=function Fy(p){return!!p.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const P=p.destroyHooks||(p.destroyHooks=[]);if(!C&&g.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Xa(p,g,m){return m&&p.componentProviders++,p.multi.push(g)-1}function Lh(p,g,m,_){for(let C=m;C<_;C++)if(g[C]===p)return C;return-1}function D_(p,g,m,_){return pd(this.multi,[])}function AA(p,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Fs(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),pd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Dl(p,g,m){const _=ut();if(_.firstCreatePass){const C=Ji(p);Bh(m,_.data,_.blueprint,C,!0),Bh(g,_.data,_.blueprint,C,!1)}}(_,C?C(p):p,g)}}class cs{}class P_{}function xA(p,g){return new R_(p,g??null)}class R_ extends cs{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ul(this);const _=Ni(g);this._bootstrapComponents=Qr(_.bootstrap),this._r3Injector=Hw(g,m,[{provide:cs,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class I_ extends P_{constructor(g){super(),this.moduleType=g}create(g){return new R_(this.moduleType,g)}}class Fh extends cs{constructor(g,m,_){super(),this.componentFactoryResolver=new ul(this),this.instance=null;const C=new Pc([...g,{provide:cs,useValue:this},{provide:La,useValue:this.componentFactoryResolver}],m||Bo(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function ds(p,g,m=null){return new Fh(p,g,m).injector}function IA(p,g,m){const _=Oi()+p,C=be();return C[_]===st?Kn(C,_,m?g.call(m):g()):function ta(p,g){return p[g]}(C,_)}function kA(p,g,m,_){return B_(be(),Oi(),p,g,m,_)}function VA(p,g,m,_,C){return O_(be(),Oi(),p,g,m,_,C)}function fd(p,g){const m=p[g];return m===st?void 0:m}function B_(p,g,m,_,C,w){const v=g+m;return di(p,v,C)?Kn(p,v+1,w?_.call(w,C):_(C)):fd(p,v+1)}function O_(p,g,m,_,C,w,v){const E=g+m;return ia(p,E,C,w)?Kn(p,E+2,v?_.call(v,C,w):_(C,w)):fd(p,E+2)}function jA(p,g){const m=ut();let _;const C=p+22;m.firstCreatePass?(_=function eS(p,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(p===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Si(ol);try{const E=Bs(!1),S=w();return Bs(E),function Em(p,g,m,_){m>=p.data.length&&(p.data[m]=null,p.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Si(v)}}function NA(p,g,m){const _=p+22,C=be(),w=Ui(C,_);return gd(C,_)?B_(C,Oi(),g,w.transform,m,w):w.transform(m)}function zA(p,g,m,_){const C=p+22,w=be(),v=Ui(w,C);return gd(w,C)?O_(w,Oi(),g,v.transform,m,_,v):v.transform(m,_)}function UA(p,g,m,_,C){const w=p+22,v=be(),E=Ui(v,w);return gd(v,w)?function L_(p,g,m,_,C,w,v,E){const S=g+m;return ed(p,S,C,w,v)?Kn(p,S+3,E?_.call(E,C,w,v):_(C,w,v)):fd(p,S+3)}(v,Oi(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function gd(p,g){return p[1].data[g].pure}function F_(p){return g=>{setTimeout(p,void 0,g)}}const wr=class iS extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=F_(w),C&&(C=F_(C)),v&&(v=F_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof h.w0&&g.add(E),E}};function nS(){return this._results[$o()]()}class Nh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=$o(),_=Nh.prototype;_[m]||(_[m]=nS)}get changes(){return this._changes||(this._changes=new wr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=sn(g);(this._changesDetected=!function Ef(p,g,m){if(p.length!==g.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=aS,p})();const rS=md,j_=class extends rS{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=qc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Wc(_,C,g),new Kc(C)}};function aS(){return _d(qt(),be())}function _d(p,g){return 4&p.type?new j_(g,p,$r(p,g)):null}let zh=(()=>{class p{}return p.__NG_ELEMENT_ID__=oS,p})();function oS(){return fi(qt(),be())}const sS=zh,qA=class extends sS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return $r(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const g=ac(this._hostTNode,this._hostLView);if(nc(g)){const m=Fr(g,this._hostLView),_=zn(g);return new Gi(m[1].data[_+8],m)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=WA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Ns(p){return"function"==typeof p}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new Ga(Et(g)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?P:this.parentInjector).get(Ai,null);X&&(w=X)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(p){return rn(p[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new qA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function NT(p,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const P=w[E+1],R=g[-S];for(let L=10;L{class p{constructor(m){this.appInits=m,this.resolve=ro,this.reject=ro,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return p.\u0275fac=function(m){return new(m||p)(li(gs,8))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const ap=new At("AppId",{providedIn:"root",factory:function Md(){return`${_s()}${_s()}${_s()}`}});function _s(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const op=new At("Platform Initializer"),ab=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),sp=new At("appBootstrapListener"),_S=new At("AnimationModuleType");let bS=(()=>{class p{log(m){console.log(m)}warn(m){console.warn(m)}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const lp=new At("LocaleId",{providedIn:"root",factory:()=>Pf(lp,Qe.Optional|Qe.SkipSelf)||function lx(){return typeof $localize<"u"&&$localize.locale||bl}()}),Dd=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class cx{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let up=(()=>{class p{compileModuleSync(m){return new I_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Qr(Ni(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new Ga(S)),v},[]);return new cx(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const yS=(()=>Promise.resolve(0))();function pp(p){typeof Zone>"u"?yS.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class un{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function lb(){let p=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&p&&g){const m=p[Zone.__symbol__("OriginalDelegate")];m&&(p=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function mp(p){const g=()=>{!function cb(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ce,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,_p(p),p.isCheckStableRunning=!0,gp(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),_p(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return hx(p),m.invokeTask(C,w,v,E)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||p.shouldCoalesceRunChangeDetection)&&g(),db(p)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return hx(p),m.invoke(C,w,v,E,S)}finally{p.shouldCoalesceRunChangeDetection&&g(),db(p)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(p._hasPendingMicrotasks=w.microTask,_p(p),gp(p)):"macroTask"==w.change&&(p.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),p.runOutsideAngular(()=>p.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!un.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(un.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,fp,ro,ro);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const fp={};function gp(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function _p(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function hx(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function db(p){p._nesting--,gp(p)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const bs=new At(""),bp=new At("");let yp,ub=(()=>{class p{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,yp||(function wS(p){yp=p}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{un.assertNotInAngularZone(),pp(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())pp(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return p.\u0275fac=function(m){return new(m||p)(li(un),li(Cp),li(bp))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac}),p})(),Cp=(()=>{class p{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return yp?.findTestabilityInTree(this,m,_)??null}}return p.\u0275fac=function(m){return new(m||p)},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),vr=null;const px=new At("AllowMultipleToken"),hb=new At("PlatformDestroyListeners");class fx{constructor(g,m){this.name=g,this.token=m}}function vp(p,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Ap();if(!v||v.injector.get(px,!1)){const E=[...m,...w,{provide:C,useValue:!0}];p?p(E):function fb(p){if(vr&&!vr.get(px,!1))throw new ie(400,!1);vr=p;const g=p.get(xp);(function gb(p){const g=p.get(op,null);g&&g.forEach(m=>m())})(p)}(function mx(p=[],g){return Yn.create({name:g,providers:[{provide:rg,useValue:"platform"},{provide:hb,useValue:new Set([()=>vr=null])},...p]})}(E,_))}return function gx(p){const g=Ap();if(!g)throw new ie(401,!1);return g}()}}function Ap(){return vr?.get(xp)??null}let xp=(()=>{class p{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function _b(p,g){let m;return m="noop"===p?new Vl:("zone.js"===p?void 0:p)||new un(g),m}(_?.ngZone,function mb(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:un,useValue:C}];return C.run(()=>{const v=Yn.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(kc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Id(this._modules,E),P.unsubscribe()})}),function Rd(p,g,m){try{const _=m();return id(_)?_.catch(C=>{throw g.runOutsideAngular(()=>p.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>p.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(ms);return P.runInitializers(),P.donePromise.then(()=>(function rs(p){It(p,"Expected localeId to be defined"),"string"==typeof p&&(d_=p.toLowerCase().replace(/_/g,"-"))}(E.injector.get(lp,bl)||bl),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=bb({},_);return function vS(p,g,m){const _=new I_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Bl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(hb,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(m){return new(m||p)(li(Yn))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function bb(p,g){return Array.isArray(g)?g.reduce(bb,p):{...p,...g}}let Bl=(()=>{class p{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{un.assertNotInAngularZone(),pp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Ic;if(!this._injector.get(ms).done)throw!C&&no(m),new ie(405,false);let v;v=C?m:this._injector.get(La).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function pb(p){return p.isBoundToModule}(v)?void 0:this._injector.get(cs),P=v.create(Yn.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(bs,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Id(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Id(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(sp,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Id(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(m){return new(m||p)(li(un),li(Ai),li(kc))},p.\u0275prov=Dt({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Id(p,g){const m=p.indexOf(g);m>-1&&p.splice(m,1)}let kd=!0;function wb(){kd=!1}let Ab=(()=>{class p{}return p.__NG_ELEMENT_ID__=yx,p})();function yx(p){return function Tp(p,g,m){if(va(p)&&!m){const _=Ct(p.index,g);return new Kc(_,_)}return 47&p.type?new Kc(g[16],g):null}(qt(),be(),16==(16&p))}class Eb{constructor(){}supports(g){return pl(g)}create(g){return new Tx(g)}}const Sb=(p,g)=>g;class Tx{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Sb}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Mb(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new Ex),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ex),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Mb{constructor(g,m){this.item=g,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PS{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Ex{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new PS,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sx(p,g,m){const _=p.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new Ol(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class Ol{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Db(){return new Hb([new Eb])}let Hb=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Db()),deps:[[p,new ka,new Ho]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Db}),p})();function Mx(){return new Pb([new Hp])}let Pb=(()=>{class p{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new p(m)}static extend(m){return{provide:p,useFactory:_=>p.create(m,_||Mx()),deps:[[p,new ka,new Ho]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=Dt({token:p,providedIn:"root",factory:Mx}),p})();const Hx=vp(null,"core",[]);let kS=(()=>{class p{constructor(m){}}return p.\u0275fac=function(m){return new(m||p)(li(Bl))},p.\u0275mod=Mr({type:p}),p.\u0275inj=oi({}),p})();function VS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let z;return function(T){return(z||(z=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(z){this.type=z}}class OAuthSuccessEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(z,x=null){super(z),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(z,x,T=null){super(z),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const z=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(z).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(z){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},z&&Object.assign(this,z)}}class WebHttpUrlEncodingCodec{encodeKey(z){return encodeURIComponent(z)}encodeValue(z){return encodeURIComponent(z)}decodeKey(z){return decodeURIComponent(z)}decodeValue(z){return decodeURIComponent(z)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(z){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(z.idTokenHeader),h=yield x.calcHash(z.accessToken,T),O=base64UrlEncode(h.substr(0,h.length/2)),I=z.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(z){let x=z.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const h=T.indexOf("?");return T=T.substr(h>-1?h+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let h,V,O,I,j,W,Q;if(null===x)return T;h=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==h)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(z,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,z,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var z,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);z=!0}for(var T,V,h=0,O=F.length,I=this.blocks;h>2]|=F[h]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,z=this.lastByteIndex;F[16]=this.block,F[z>>2]|=EXTRA[3&z],this.block=F[16],z>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,J,ie,de,he,F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=z&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(J=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&V^~h&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&z)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&h^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&z^J))<<0,V=z+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&h)+K[W+2]+j[W+2])<<0,z=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,h=F+(U=h+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((he=z&x)^z&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+z<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+h<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[h>>28&15]+HEX_CHARS[h>>24&15]+HEX_CHARS[h>>20&15]+HEX_CHARS[h>>16&15]+HEX_CHARS[h>>12&15]+HEX_CHARS[h>>8&15]+HEX_CHARS[h>>4&15]+HEX_CHARS[15&h]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,z=this.h1,x=this.h2,T=this.h3,h=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,z>>24&255,z>>16&255,z>>8&255,255&z,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,h>>24&255,h>>16&255,h>>8&255,255&h,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),z=new DataView(F);return z.setUint32(0,this.h0),z.setUint32(4,this.h1),z.setUint32(8,this.h2),z.setUint32(12,this.h3),z.setUint32(16,this.h4),z.setUint32(20,this.h5),z.setUint32(24,this.h6),this.is224||z.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var z,x=F,T=new Uint8Array(x.length);for(z=0;z{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let h of x)T+=String.fromCharCode(h);return T}toHashString(x){const T=new Uint8Array(x);let h="";for(let V of T)h+=String.fromCharCode(V);return h}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,h,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{h?this.setStorage(h):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,h=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,h).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],h=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return h||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),h=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),h=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(h)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const h=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(h-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,h)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void h("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),h(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),h(V)}):h("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(h=>{this.jwks=h,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(h)},h=>{this.logger.error("error loading jwks",h),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",h)),T(h)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,h).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:h,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},h)}fetchTokenUsingGrant(x,T,h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return h=h.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:h}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(h=h.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(h=h.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))h=h.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,h,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(h=>this.debug("tryLogin during silent refresh failed",h))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const h=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=h.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((h,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),h(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,h=x.width||500,V=window.screenLeft+(window.outerWidth-h)/2;return`location=no,toolbar=no,width=${h},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const h=x.data;return h.startsWith(T)?"#"+h.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),h=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),h.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",h,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",h="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=h||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(h=>"discovery_document_loaded"===h.type)).subscribe(h=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const h={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(h)}}storeAccessTokenResponse(x,T,h,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),h){const I=1e3*h,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const h=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(h),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let h=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?h=h.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(h,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let h=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);h=h.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:h}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const h=T.state;let[V,O]=this.parseState(h);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!h||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:h}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,h="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),h=x.substr(V+this.config.nonceStateSeparator.length))}return[T,h]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,h=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!h&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,J=this.getClockSkewInMsec();if(te-J>=U||ne+J<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let h=!1;"boolean"==typeof x&&(h=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||h||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let h=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(h);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===h.type)).subscribe(h=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let h={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(h=T),this.createLoginUrl(x,V,null,!1,h).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(h=>{x[h]&&T.set(h,JSON.stringify(x[h]))}),T}revokeTokenAndLogout(x={},T=!1){let h=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(h,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(h,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(z){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(z)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,h){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=h}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const h=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(h)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(z){return Promise.resolve(null)}validateAtHash(z){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,z,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function h(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(z,{Z:()=>h})},4147:F=>{"use strict";F.exports={i8:"9.3.0"}}},F=>{F(F.s=8587)}]); \ No newline at end of file diff --git a/dist/apps/linker/index.html b/dist/apps/linker/index.html index 3144d01d0..fcd764aef 100644 --- a/dist/apps/linker/index.html +++ b/dist/apps/linker/index.html @@ -6,7 +6,7 @@ - + @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/linker/main.3c5d53c5b44d1d9e.js b/dist/apps/linker/main.f8060792658f8d0a.js similarity index 99% rename from dist/apps/linker/main.3c5d53c5b44d1d9e.js rename to dist/apps/linker/main.f8060792658f8d0a.js index e6c4e964a..4b9c9e35d 100644 --- a/dist/apps/linker/main.3c5d53c5b44d1d9e.js +++ b/dist/apps/linker/main.f8060792658f8d0a.js @@ -1 +1 @@ -(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{4957:(F,N,x)=>{"use strict";var T=x(6895),g=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new g.OlP("TRANSITION_ID"),U=[{provide:g.ip1,useFactory:function $(s,r,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,T.q)(),o=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const X=new g.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Be),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function Be(s){(0,T.q)().remove(s)}const Oe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ie(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new Dt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case g.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ie),g.LFG(ge),g.LFG(g.AFp))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Ie{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Oe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(vt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(vt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,o){if(o){e=o+":"+e;const l=Oe[o];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const o=Oe[t];o?r.removeAttributeNS(o,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,o){o&(g.JOm.DashCase|g.JOm.Important)?r.style.setProperty(e,t,o&g.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&g.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function vt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class Dt extends Ie{constructor(r,e,t,o){super(r),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Se(s){return"_ngcontent-%COMP%".replace(we,s)}(o+"-"+t.id),this.hostAttr=function Ee(s){return"_nghost-%COMP%".replace(we,s)}(o+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Ie{constructor(r,e,t,o){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Rn=["alt","control","meta","shift"],xt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},yn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ai={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let Mr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,o){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=s._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const a=t.indexOf(i);a>-1&&(t.splice(a,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function Ol(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&yn.hasOwnProperty(r)&&(r=yn[r]))}return xt[r]||r}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Rn.forEach(l=>{l!=o&&(0,ai[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{s.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ye=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ta(){return(0,g.RDi)(document),document},deps:[]}]),li=new g.OlP(""),ia=[{provide:g.rWj,useClass:class te{addToWindow(r){g.dqk.getAngularTestability=(t,o=!0)=>{const l=r.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},g.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const o=g.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:g.lri,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]}],Ti=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function kn(){return new g.qLn},deps:[]},{provide:X,useClass:xi,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:X,useClass:Mr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,g.AFp]},{provide:g.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[X,g.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let na=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:g.AFp,useValue:e.appId},{provide:G,useExisting:g.AFp},U]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(li,12))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[...Ti,...ia],imports:[T.ez,g.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,g.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let mi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):g.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends mi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case g.q3G.NONE:return t;case g.q3G.HTML:return(0,g.qzn)(t,"HTML")?(0,g.z3N)(t):(0,g.EiD)(this._doc,String(t)).toString();case g.q3G.STYLE:return(0,g.qzn)(t,"Style")?(0,g.z3N)(t):t;case g.q3G.SCRIPT:if((0,g.qzn)(t,"Script"))return(0,g.z3N)(t);throw new Error("unsafe value used in a script context");case g.q3G.URL:return(0,g.qzn)(t,"URL")?(0,g.z3N)(t):(0,g.mCW)(String(t));case g.q3G.RESOURCE_URL:if((0,g.qzn)(t,"ResourceURL"))return(0,g.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,g.JVY)(e)}bypassSecurityTrustStyle(e){return(0,g.L6k)(e)}bypassSecurityTrustScript(e){return(0,g.eBb)(e)}bypassSecurityTrustUrl(e){return(0,g.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,g.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function ke(s){return new nt(s.get(T.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),s})();var gt=x(2076),Pe=x(9646),Me=x(7579);class Lt extends Me.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Rt=x(6805),or=x(9841),Vi=x(7272),Je=x(9751),Vn=x(8421);function en(s){return new Je.y(r=>{(0,Vn.Xf)(s()).subscribe(r)})}var aa=x(9635),yi=x(2843),Ft=x(515),Yt=x(727),ci=x(4482),jt=x(5403);function vn(){return(0,ci.e)((s,r)=>{let e=null;s._refCount++;const t=(0,jt.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const o=s._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class ns extends Je.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ci.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Yt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,jt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Yt.w0.EMPTY)}return r}refCount(){return vn()(this)}}var Ne=x(4004),Gi=x(3900),ii=x(5698),oa=x(3269);function Bi(...s){const r=(0,oa.yG)(s);return(0,ci.e)((e,t)=>{(r?(0,Vi.z)(s,e,r):(0,Vi.z)(s,e)).subscribe(t)})}var qt=x(9300),di=x(5577),Mi=x(590),It=x(4351),Wt=x(8505),St=x(262);function tn(s,r,e,t,o){return(l,c)=>{let n=e,i=r,a=0;l.subscribe((0,jt.x)(c,d=>{const u=a++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function sa(s,r){return(0,ci.e)(tn(s,r,arguments.length>=2,!0))}function Bn(s){return s<=0?()=>Ft.E:(0,ci.e)((r,e)=>{let t=[];r.subscribe((0,jt.x)(e,o=>{t.push(o),s{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var sr=x(8068),Di=x(6590),Fl=x(4671);function kp(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,qt.h)((o,l)=>s(o,l,t)):Fl.y,Bn(1),e?(0,Di.d)(r):(0,sr.T)(()=>new Rt.K))}var Pd=x(9718);function la(s){return(0,ci.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var rs=x(8189);const ut="primary";class on{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ca(s){return new on(s)}function Vp(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===o)}return s===r}function Id(s){return Array.prototype.concat.apply([],s)}function kd(s){return s.length>0?s[s.length-1]:null}function _i(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function On(s){return(0,g.CqO)(s)?s:(0,g.QGY)(s)?(0,gt.D)(Promise.resolve(s)):(0,Pe.of)(s)}const Op={exact:function Nl(s,r,e){if(!cr(s.segments,r.segments)||!Ka(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Nl(s.children[t],r.children[t],e))return!1;return!0},subset:os},Vd={exact:function lr(s,r){return An(s,r)},subset:function Ja(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>Rd(s[e],r[e]))},ignored:()=>!0};function Bd(s,r,e){return Op[e.paths](s.root,r.root,e.matrixParams)&&Vd[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function os(s,r,e){return zl(s,r,r.segments,e)}function zl(s,r,e,t){if(s.segments.length>e.length){const o=s.segments.slice(0,e.length);return!(!cr(o,e)||r.hasChildren()||!Ka(o,e,t))}if(s.segments.length===e.length){if(!cr(s.segments,e)||!Ka(s.segments,e,t))return!1;for(const o in r.children)if(!s.children[o]||!os(s.children[o],r.children[o],t))return!1;return!0}{const o=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(cr(s.segments,o)&&Ka(s.segments,o,t)&&s.children[ut])&&zl(s.children[ut],r,l,t)}}function Ka(s,r,e){return r.every((t,o)=>Vd[e](s[o].parameters,t.parameters))}class sn{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return ls.serialize(this)}}class lt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,_i(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xa(this)}}class da{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ca(this.parameters)),this._parameterMap}toString(){return eo(this)}}function cr(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let Za=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return new ss},providedIn:"root"}),s})();class ss{parse(r){const e=new ce(r);return new sn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${cs(r.root,!0)}`,t=function Li(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(o=>`${ds(e)}=${ds(o)}`).join("&"):`${ds(e)}=${ds(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Vb(s){return encodeURI(s)}(r.fragment)}`:""}`}}const ls=new ss;function Xa(s){return s.segments.map(r=>eo(r)).join("/")}function cs(s,r){if(!s.hasChildren())return Xa(s);if(r){const e=s.children[ut]?cs(s.children[ut],!1):"",t=[];return _i(s.children,(o,l)=>{l!==ut&&t.push(`${l}:${cs(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Oi(s,r){let e=[];return _i(s.children,(t,o)=>{o===ut&&(e=e.concat(r(t,o)))}),_i(s.children,(t,o)=>{o!==ut&&(e=e.concat(r(t,o)))}),e}(s,(t,o)=>o===ut?[cs(s.children[ut],!1)]:[`${o}:${cs(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[ut]?`${Xa(s)}/${e[0]}`:`${Xa(s)}/(${e.join("//")})`}}function Qt(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ds(s){return Qt(s).replace(/%3B/gi,";")}function Rr(s){return Qt(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wi(s){return decodeURIComponent(s)}function us(s){return wi(s.replace(/\+/g,"%20"))}function eo(s){return`${Rr(s.path)}${function ua(s){return Object.keys(s).map(r=>`;${Rr(r)}=${Rr(s[r])}`).join("")}(s.parameters)}`}const M=/^[^\/()?;=#]+/;function k(s){const r=s.match(M);return r?r[0]:""}const D=/^[^=?&#]+/,ee=/^[^&#]+/;class ce{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ut]=new lt(r,e)),t}parseSegment(){const r=k(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(r),new da(wi(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=k(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=k(this.remaining);o&&(t=o,this.capture(t))}r[wi(e)]=wi(t)}parseQueryParam(r){const e=function B(s){const r=s.match(D);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function pe(s){const r=s.match(ee);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=us(e),l=us(t);if(r.hasOwnProperty(o)){let c=r[o];Array.isArray(c)||(c=[c],r[o]=c),c.push(l)}else r[o]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=k(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new g.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=ut);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[ut]:new lt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new g.vHH(4011,!1)}}function Ue(s){return s.segments.length>0?new lt([],{[ut]:s}):s}function Mt(s){const r={};for(const t of Object.keys(s.children)){const l=Mt(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function kt(s){if(1===s.numberOfChildren&&s.children[ut]){const r=s.children[ut];return new lt(s.segments.concat(r.segments),r.children)}return s}(new lt(s.segments,r))}function Ct(s){return s instanceof sn}function be(s,r,e,t,o){if(0===e.length)return qi(r.root,r.root,r.root,t,o);const l=function dr(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new ha(!0,0,s);let r=0,e=!1;const t=s.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return _i(l.outlets,(i,a)=>{n[a]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new ha(e,r,t)}(e);return l.toRoot()?qi(r.root,r.root,new lt([],{}),t,o):function c(i){const a=function Ld(s,r,e,t){if(s.isAbsolute)return new Fi(r.root,!0,0);if(-1===t)return new Fi(e,e===r.root,0);return function Bb(s,r,e){let t=s,o=r,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new g.vHH(4005,!1);o=t.segments.length}return new Fi(t,!1,o-l)}(e,t+(rt(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=a.processChildren?Ir(a.segmentGroup,a.index,l.commands):Lp(a.segmentGroup,a.index,l.commands);return qi(r.root,a.segmentGroup,d,t,o)}(s.snapshot?._lastPathIndex)}function rt(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function xn(s){return"object"==typeof s&&null!=s&&s.outlets}function qi(s,r,e,t,o){let c,l={};t&&_i(t,(i,a)=>{l[a]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:$t(s,r,e);const n=Ue(Mt(c));return new sn(n,l,o)}function $t(s,r,e){const t={};return _i(s.children,(o,l)=>{t[l]=o===r?e:$t(o,r,e)}),new lt(s.segments,t)}class ha{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&rt(t[0]))throw new g.vHH(4003,!1);const o=t.find(xn);if(o&&o!==kd(t))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Fi{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Lp(s,r,e){if(s||(s=new lt([],{})),0===s.segments.length&&s.hasChildren())return Ir(s,r,e);const t=function ji(s,r,e){let t=0,o=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=s.segments[o],n=e[t];if(xn(n))break;const i=`${n}`,a=t0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ln(i,a,c))return l;t+=2}else{if(!Ln(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(s,r,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=Lp(s.children[c],r,l))}),_i(s.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new lt(s.segments,o)}}function Tn(s,r,e){const t=s.segments.slice(0,r);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Tn(new lt([],{}),0,e))}),r}function pa(s){const r={};return _i(s,(e,t)=>r[t]=`${e}`),r}function Ln(s,r,e){return s==e.path&&An(r,e.parameters)}class ur{constructor(r,e){this.id=r,this.url=e}}class Gl extends ur{constructor(r,e,t="imperative",o=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class kr extends ur{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ql extends ur{constructor(r,e,t,o){super(r,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Wl extends ur{constructor(r,e,t,o){super(r,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fd extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jp extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jd extends ur{constructor(r,e,t,o,l){super(r,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lb extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Np extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nd{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zp{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Up{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gp{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qp{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zd{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wp{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hi{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Fn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Fn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=Nt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return Nt(r,this._root).map(e=>e.value)}}function Fn(s,r){if(s===r.value)return r;for(const e of r.children){const t=Fn(s,e);if(t)return t}return null}function Nt(s,r){if(s===r.value)return[r];for(const e of r.children){const t=Nt(s,e);if(t.length)return t.unshift(r),t}return[]}class jn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function to(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class Ud extends Hi{constructor(r,e){super(r),this.snapshot=e,Ql(this,r)}toString(){return this.snapshot.toString()}}function $p(s,r){const e=function jb(s,r){const c=new fa([],{},{},"",{},ut,r,null,s.root,-1,{});return new Yl("",new jn(c,[]))}(s,r),t=new Lt([new da("",{})]),o=new Lt({}),l=new Lt({}),c=new Lt({}),n=new Lt(""),i=new Vr(t,o,c,n,l,ut,r,e.root);return i.snapshot=e.root,new Ud(new jn(i,[]),e)}class Vr{constructor(r,e,t,o,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Ne.U)(r=>ca(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ne.U)(r=>ca(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hs(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function $l(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class fa{constructor(r,e,t,o,l,c,n,i,a,d,u,p){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=a,this._lastPathIndex=d,this._correctedLastPathIndex=p??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ca(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yl extends Hi{constructor(r,e){super(e),this.url=r,Ql(this,e)}toString(){return Yp(this._root)}}function Ql(s,r){r.value._routerState=s,r.children.forEach(e=>Ql(s,e))}function Yp(s){const r=s.children.length>0?` { ${s.children.map(Yp).join(", ")} } `:"";return`${s.value}${r}`}function Nn(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,An(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),An(r.params,e.params)||s.params.next(e.params),function Bp(s,r){if(s.length!==r.length)return!1;for(let e=0;eAn(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||ga(s.parent,r.parent))}function ps(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const o=function fs(s,r,e){return r.children.map(t=>{for(const o of e.children)if(s.shouldReuseRoute(t.value,o.value.snapshot))return ps(s,t,o);return ps(s,t)})}(s,r,e);return new jn(t,o)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>ps(s,n)),c}}const t=function Gd(s){return new Vr(new Lt(s.url),new Lt(s.params),new Lt(s.queryParams),new Lt(s.fragment),new Lt(s.data),s.outlet,s.component,s)}(r.value),o=r.children.map(l=>ps(s,l));return new jn(t,o)}}const qd="ngNavigationCancelingError";function Qp(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Ct(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=zb(!1,0,r);return o.url=e,o.navigationBehaviorOptions=t,o}function zb(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[qd]=!0,t.cancellationCode=r,e&&(t.url=e),t}function Ub(s){return gs(s)&&Ct(s.url)}function gs(s){return s&&s[qd]}class Jp{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new io,this.attachRef=null}}let io=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jp,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const ma=!1;let Jl=(()=>{class s{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=o||ut,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,ma);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,ma);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,ma);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new g.vHH(4013,ma);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new Kp(e,n,o.injector);if(t&&function no(s){return!!s.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(c);this.activated=o.createComponent(a,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(io),g.Y36(g.s_b),g.$8M("name"),g.Y36(g.sBO),g.Y36(g.lqb))},s.\u0275dir=g.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class Kp{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Vr?this.route:r===io?this.childContexts:this.parent.get(r,e)}}let Zp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[Jl],encapsulation:2}),s})();function _a(s,r){return s.providers&&!s._injector&&(s._injector=(0,g.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function ba(s){const r=s.children&&s.children.map(ba),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ut&&(e.component=Zp),e}function Wi(s){return s.outlet||ut}function Zl(s,r){const e=s.filter(t=>Wi(t)===r);return e.push(...s.filter(t=>Wi(t)!==r)),e}function ms(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class $b{constructor(r,e,t,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const o=to(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),_i(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=to(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=to(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const o=to(e);r.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new zd(l.value.snapshot))}),r.children.length&&this.forwardEvent(new Gp(r.value.snapshot))}activateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(Nn(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nn(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=ms(o.snapshot),i=n?.get(g._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class $d{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class _s{constructor(r,e){this.component=r,this.route=e}}function ef(s,r,e){const t=s._root;return Br(t,r?r._root:null,e,[t.value])}function ec(s,r,e){return(ms(r)??e).get(s)}function Br(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=to(r);return s.children.forEach(c=>{(function bs(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function Yb(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!cr(s.url,r.url);case"pathParamsOrQueryParamsChange":return!cr(s.url,r.url)||!An(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ga(s,r)||!An(s.queryParams,r.queryParams);default:return!ga(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new $d(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Br(s,r,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new _s(n.outlet.component,c))}else c&&ro(r,n,o),o.canActivateChecks.push(new $d(t)),Br(s,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),_i(l,(c,n)=>ro(c,e.getContext(n),o)),o}function ro(s,r,e){const t=to(s),o=s.value;_i(t,(l,c)=>{ro(l,o.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new _s(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function ao(s){return"function"==typeof s}function Or(s){return s instanceof Rt.K||"EmptyError"===s?.name}const hr=Symbol("INITIAL_VALUE");function Ca(){return(0,Gi.w)(s=>(0,or.a)(s.map(r=>r.pipe((0,ii.q)(1),Bi(hr)))).pipe((0,Ne.U)(r=>{for(const e of r)if(!0!==e){if(e===hr)return hr;if(!1===e||e instanceof sn)return e}return!0}),(0,qt.h)(r=>r!==hr),(0,ii.q)(1)))}function Zb(s){return(0,aa.z)((0,Wt.b)(r=>{if(Ct(r))throw Qp(0,r)}),(0,Ne.U)(r=>!0===r))}const sf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function co(s,r,e,t,o){const l=lf(s,r,e);return l.matched?function ox(s,r,e,t){const o=r.canMatch;if(!o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function rf(s){return s&&ao(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),Zb())}(t=_a(r,t),r,e).pipe((0,Ne.U)(c=>!0===c?l:{...sf})):(0,Pe.of)(l)}function lf(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...sf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(r.matcher||Vp)(e,s,r);if(!o)return{...sf};const l={};_i(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function Jd(s,r,e,t,o="corrected"){if(e.length>0&&function Cs(s,r,e){return e.some(t=>tc(s,r,t)&&Wi(t)!==ut)}(s,e,t)){const c=new lt(r,function Kd(s,r,e,t){const o={};o[ut]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Wi(l)!==ut){const c=new lt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,o[Wi(l)]=c}return o}(s,r,t,new lt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function sx(s,r,e){return e.some(t=>tc(s,r,t))}(s,e,t)){const c=new lt(s.segments,function ui(s,r,e,t,o,l){const c={};for(const n of t)if(tc(s,e,n)&&!o[Wi(n)]){const i=new lt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Wi(n)]=i}return{...o,...c}}(s,r,e,t,s.children,o));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new lt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function tc(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function $i(s,r,e,t){return!!(Wi(s)===t||t!==ut&&tc(r,e,s))&&("**"===s.path||lf(r,s,e).matched)}function Un(s,r,e){return 0===r.length&&!s.children[e]}const ys=!1;class ya{constructor(r){this.segmentGroup=r||null}}class uo{constructor(r){this.urlTree=r}}function ho(s){return(0,yi._)(new ya(s))}function cf(s){return(0,yi._)(new uo(s))}class df{constructor(r,e,t,o,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const r=Jd(this.urlTree.root,[],[],this.config).segmentGroup,e=new lt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ut).pipe((0,Ne.U)(l=>this.createUrlTree(Mt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,St.K)(l=>{if(l instanceof uo)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof ya?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ut).pipe((0,Ne.U)(o=>this.createUrlTree(Mt(o),r.queryParams,r.fragment))).pipe((0,St.K)(o=>{throw o instanceof ya?this.noMatchError(o):o}))}noMatchError(r){return new g.vHH(4002,ys)}createUrlTree(r,e,t){const o=Ue(r);return new sn(o,e,t)}expandSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,Ne.U)(l=>new lt([],l))):this.expandSegment(r,t,e,t.segments,o,!0)}expandChildren(r,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,gt.D)(o).pipe((0,It.b)(l=>{const c=t.children[l],n=Zl(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,Ne.U)(i=>({segment:i,outlet:l})))}),sa((l,c)=>(l[c.outlet]=c.segment,l),{}),kp())}expandSegment(r,e,t,o,l,c){return(0,gt.D)(t).pipe((0,It.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,o,l,c).pipe((0,St.K)(a=>{if(a instanceof ya)return(0,Pe.of)(null);throw a}))),(0,Mi.P)(n=>!!n),(0,St.K)((n,i)=>{if(Or(n))return Un(e,o,l)?(0,Pe.of)(new lt([],{})):ho(e);throw n}))}expandSegmentAgainstRoute(r,e,t,o,l,c,n){return $i(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(r,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c):ho(e):ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?cf(l):this.lineralizeSegments(t,l).pipe((0,di.z)(c=>{const n=new lt(c,{});return this.expandSegment(r,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:a,positionalParamSegments:d}=lf(e,o,l);if(!n)return ho(e);const u=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?cf(u):this.lineralizeSegments(o,u).pipe((0,di.z)(p=>this.expandSegment(r,e,t,p.concat(a),c,!1)))}matchSegmentAgainstRoute(r,e,t,o,l){return"**"===t.path?(r=_a(t,r),t.loadChildren?(t._loadedRoutes?(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,Ne.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new lt(o,{})))):(0,Pe.of)(new lt(o,{}))):co(e,t,o,r).pipe((0,Gi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,o).pipe((0,di.z)(d=>{const u=d.injector??r,p=d.routes,{segmentGroup:b,slicedSegments:H}=Jd(e,n,i,p),z=new lt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(u,p,z).pipe((0,Ne.U)(mt=>new lt(n,mt)));if(0===p.length&&0===H.length)return(0,Pe.of)(new lt(n,{}));const ae=Wi(t)===l;return this.expandSegment(u,z,p,H,ae?ut:l,!0).pipe((0,Ne.U)(ot=>new lt(n.concat(ot.segments),ot.children)))})):ho(e)))}getChildConfig(r,e,t){return e.children?(0,Pe.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,Pe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function ax(s,r,e,t){const o=r.canLoad;if(void 0===o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function Qb(s){return s&&ao(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),Zb())}(r,e,t).pipe((0,di.z)(o=>o?this.configLoader.loadChildren(r,e).pipe((0,Wt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function lx(s){return(0,yi._)(zb(ys,3))}())):(0,Pe.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,Pe.of)(t);if(o.numberOfChildren>1||!o.children[ut])return(0,yi._)(new g.vHH(4e3,ys));o=o.children[ut]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,o){const l=this.createSegmentGroup(r,e.root,t,o);return new sn(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return _i(r,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(r,e,t,o){const l=this.createSegments(r,e.segments,t,o);let c={};return _i(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,o)}),new lt(l,c)}createSegments(r,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,o):this.findOrReturn(l,t))}findPosParam(r,e,t){const o=t[e.path.substring(1)];if(!o)throw new g.vHH(4001,ys);return o}findOrReturn(r,e){let t=0;for(const o of e){if(o.path===r.path)return e.splice(t),o;t++}return r}}class fo{}class eC{constructor(r,e,t,o,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Jd(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ut).pipe((0,Ne.U)(e=>{if(null===e)return null;const t=new fa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new jn(t,e),l=new Yl(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=hs(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,o)}processChildren(r,e,t){return(0,gt.D)(Object.keys(t.children)).pipe((0,It.b)(o=>{const l=t.children[o],c=Zl(e,o);return this.processSegmentGroup(r,c,l,o)}),sa((o,l)=>o&&l?(o.push(...l),o):null),function jl(s,r=!1){return(0,ci.e)((e,t)=>{let o=0;e.subscribe((0,jt.x)(t,l=>{const c=s(l,o++);(c||r)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,Di.d)(null),kp(),(0,Ne.U)(o=>{if(null===o)return null;const l=hf(o);return function tC(s){s.sort((r,e)=>r.value.outlet===ut?-1:e.value.outlet===ut?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,o,l){return(0,gt.D)(e).pipe((0,It.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,o,l)),(0,Mi.P)(c=>!!c),(0,St.K)(c=>{if(Or(c))return Un(t,o,l)?(0,Pe.of)([]):(0,Pe.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,o,l){if(e.redirectTo||!$i(e,t,o,l))return(0,Pe.of)(null);let c;if("**"===e.path){const n=o.length>0?kd(o).parameters:{},i=ws(t)+o.length,a=new fa(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,go(e),Wi(e),e.component??e._loadedComponent??null,e,ic(t),i,nc(e),i);c=(0,Pe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else c=co(t,e,o,r).pipe((0,Ne.U)(({matched:n,consumedSegments:i,remainingSegments:a,parameters:d})=>{if(!n)return null;const u=ws(t)+i.length;return{snapshot:new fa(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,go(e),Wi(e),e.component??e._loadedComponent??null,e,ic(t),u,nc(e),u),consumedSegments:i,remainingSegments:a}}));return c.pipe((0,Gi.w)(n=>{if(null===n)return(0,Pe.of)(null);const{snapshot:i,consumedSegments:a,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,p=function iC(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Jd(t,a,d,p.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,p,b).pipe((0,Ne.U)(ae=>null===ae?null:[new jn(i,ae)]));if(0===p.length&&0===H.length)return(0,Pe.of)([new jn(i,[])]);const z=Wi(e)===l;return this.processSegment(u,p,b,H,z?ut:l).pipe((0,Ne.U)(ae=>null===ae?null:[new jn(i,ae)]))}))}}function nC(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function hf(s){const r=[],e=new Set;for(const t of s){if(!nC(t)){r.push(t);continue}const o=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):r.push(t)}for(const t of e){const o=hf(t.children);r.push(new jn(t.value,o))}return r.filter(t=>!e.has(t))}function ic(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function ws(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function go(s){return s.data||{}}function nc(s){return s.resolve||{}}const Zd=Symbol("RouteTitle");function ff(s){return"string"==typeof s.title||null===s.title}function Jt(s){return(0,Gi.w)(r=>{const e=s(r);return e?(0,gt.D)(e).pipe((0,Ne.U)(()=>r)):(0,Pe.of)(r)})}let Xd=(()=>{class s{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===ut);return t}getResolvedTitleForRoute(e){return e.data[Zd]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return(0,g.f3M)(eu)},providedIn:"root"}),s})(),eu=(()=>{class s extends Xd{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Y))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class tu{}class lC extends class As{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const iu=new g.OlP("",{providedIn:"root",factory:()=>({})}),wa=new g.OlP("ROUTES");let oc=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Pe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=On(e.loadComponent()).pipe((0,Wt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),la(()=>{this.componentLoaders.delete(e)})),o=new ns(t,()=>new Me.x).pipe(vn());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Ne.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,a,d=!1;Array.isArray(n)?a=n:(i=n.create(e).injector,a=Id(i.get(wa,[],g.XFs.Self|g.XFs.Optional)));return{routes:a.map(ba),injector:i}}),la(()=>{this.childrenLoaders.delete(t)})),c=new ns(l,()=>new Me.x).pipe(vn());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return On(e()).pipe((0,di.z)(t=>t instanceof g.YKP||Array.isArray(t)?(0,Pe.of)(t):(0,gt.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(g.Sil))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class xs{}class dC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Es(s){throw s}function sc(s,r,e){return r.parse("/")}const gf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function va(){const s=(0,g.f3M)(Za),r=(0,g.f3M)(io),e=(0,g.f3M)(T.Ye),t=(0,g.f3M)(g.zs3),o=(0,g.f3M)(g.Sil),l=(0,g.f3M)(wa,{optional:!0})??[],c=(0,g.f3M)(iu,{optional:!0})??{},n=(0,g.f3M)(eu),i=(0,g.f3M)(Xd,{optional:!0}),a=(0,g.f3M)(xs,{optional:!0}),d=(0,g.f3M)(tu,{optional:!0}),u=new Kt(null,s,r,e,t,o,Id(l));return a&&(u.urlHandlingStrategy=a),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function hC(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let Kt=(()=>{class s{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me.x,this.errorHandler=Es,this.malformedUriErrorHandler=sc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Pe.of)(void 0),this.urlHandlingStrategy=new dC,this.routeReuseStrategy=new lC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(oc),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new zp(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Nd(p)),this.ngModule=c.get(g.h0i),this.console=c.get(g.c2e);const u=c.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function as(){return new sn(new lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$p(this.currentUrlTree,this.rootComponentType),this.transitions=new Lt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,qt.h)(o=>0!==o.id),(0,Ne.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,Gi.w)(o=>{let l=!1,c=!1;return(0,Pe.of)(o).pipe((0,Wt.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Gi.w)(n=>{const i=this.browserUrlTree.toString(),a=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return fC(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,Pe.of)(n).pipe((0,Gi.w)(u=>{const p=this.transitions.getValue();return t.next(new Gl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Ft.E:Promise.resolve(u)}),function nn(s,r,e,t){return(0,Gi.w)(o=>function cx(s,r,e,t,o){return new df(s,r,e,t,o).apply()}(s,r,e,o.extractedUrl,t).pipe((0,Ne.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},o.urlAfterRedirects=u.urlAfterRedirects}),function rc(s,r,e,t,o,l){return(0,di.z)(c=>function uf(s,r,e,t,o,l,c="emptyOnly",n="legacy"){return new eC(s,r,e,t,o,c,n,l).recognize().pipe((0,Gi.w)(i=>null===i?function dx(s){return new Je.y(r=>r.error(s))}(new fo):(0,Pe.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,Ne.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(u=>{if(o.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const p=new Fd(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,Ve=new Gl(p,this.serializeUrl(b),H,z);t.next(Ve);const ot=$p(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ot,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,Pe.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ft.E}),(0,Wt.b)(n=>{const i=new jp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,Ne.U)(n=>o={...n,guards:ef(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function Qd(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,Pe.of)({...e,guardsResult:!0}):function lo(s,r,e,t){return(0,gt.D)(s).pipe((0,di.z)(o=>function rx(s,r,e,t,o){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Pe.of)(!0);const c=l.map(n=>{const i=ec(n,r,o);return On(function Jb(s){return s&&ao(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,Mi.P)())});return(0,Pe.of)(c).pipe(Ca())}(o.component,o.route,e,r,t)),(0,Mi.P)(o=>!0!==o,!0))}(c,t,o,s).pipe((0,di.z)(n=>n&&function oo(s){return"boolean"==typeof s}(n)?function tx(s,r,e,t){return(0,gt.D)(r).pipe((0,It.b)(o=>(0,Vi.z)(function Ht(s,r){return null!==s&&r&&r(new Up(s)),(0,Pe.of)(!0)}(o.route.parent,t),function Kb(s,r){return null!==s&&r&&r(new qp(s)),(0,Pe.of)(!0)}(o.route,t),function nx(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function tf(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>en(()=>{const n=c.guards.map(i=>{const a=ec(i,c.node,e);return On(function Yd(s){return s&&ao(s.canActivateChild)}(a)?a.canActivateChild(t,s):a(t,s)).pipe((0,Mi.P)())});return(0,Pe.of)(n).pipe(Ca())}));return(0,Pe.of)(l).pipe(Ca())}(s,o.path,e),function ix(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Pe.of)(!0);const o=t.map(l=>en(()=>{const c=ec(l,r,e);return On(function nf(s){return s&&ao(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,Mi.P)())}));return(0,Pe.of)(o).pipe(Ca())}(s,o.route,e))),(0,Mi.P)(o=>!0!==o,!0))}(t,l,s,r):(0,Pe.of)(n)),(0,Ne.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Wt.b)(n=>{if(o.guardsResult=n.guardsResult,Ct(n.guardsResult))throw Qp(0,n.guardsResult);const i=new jd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,qt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Jt(n=>{if(n.guards.canActivateChecks.length)return(0,Pe.of)(n).pipe((0,Wt.b)(i=>{const a=new Lb(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}),(0,Gi.w)(i=>{let a=!1;return(0,Pe.of)(i).pipe(function oC(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,Pe.of)(e);let l=0;return(0,gt.D)(o).pipe((0,It.b)(c=>function sC(s,r,e,t){const o=s.routeConfig,l=s._resolve;return void 0!==o?.title&&!ff(o)&&(l[Zd]=o.title),function pf(s,r,e,t){const o=function vs(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===o.length)return(0,Pe.of)({});const l={};return(0,gt.D)(o).pipe((0,di.z)(c=>function mo(s,r,e,t){const o=ec(s,r,t);return On(o.resolve?o.resolve(r,e):o(r,e))}(s[c],r,e,t).pipe((0,Mi.P)(),(0,Wt.b)(n=>{l[c]=n}))),Bn(1),(0,Pd.h)(l),(0,St.K)(c=>Or(c)?Ft.E:(0,yi._)(c)))}(l,s,r,t).pipe((0,Ne.U)(c=>(s._resolvedData=c,s.data=hs(s,e).resolve,o&&ff(o)&&(s.data[Zd]=o.title),null)))}(c.route,t,s,r)),(0,Wt.b)(()=>l++),Bn(1),(0,di.z)(c=>l===o.length?(0,Pe.of)(e):Ft.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Wt.b)(i=>{const a=new Np(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}))}),Jt(n=>{const i=a=>{const d=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,Wt.b)(u=>{a.component=u}),(0,Ne.U)(()=>{})));for(const u of a.children)d.push(...i(u));return d};return(0,or.a)(i(n.targetSnapshot.root)).pipe((0,Di.d)(),(0,ii.q)(1))}),Jt(()=>this.afterPreactivation()),(0,Ne.U)(n=>{const i=function Nb(s,r,e){const t=ps(s,r._root,e?e._root:void 0);return new Ud(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,Wt.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((s,r,e)=>(0,Ne.U)(t=>(new $b(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Wt.b)({next(){l=!0},complete(){l=!0}}),la(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,St.K)(n=>{if(c=!0,gs(n)){Ub(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new ql(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),Ub(n)){const a=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fC(o.source)};this.scheduleNavigation(a,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new Wl(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(a){o.reject(a)}}return Ft.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ba),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,a=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),be(a,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=Ct(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function pC(s){for(let r=0;r{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new kr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,a;c?(n=c.resolve,i=c.reject,a=c.promise):a=new Promise((p,b)=>{n=p,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),u=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,o){const l=new ql(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:function(){return va()},providedIn:"root"}),s})();function fC(s){return"imperative"!==s}class mf{}let au=(()=>{class s{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,qt.h)(e=>e instanceof kr),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,g.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,gt.D)(o).pipe((0,rs.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Pe.of)(null);const l=o.pipe((0,di.z)(c=>null===c?(0,Pe.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,gt.D)([l,c]).pipe((0,rs.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Kt),g.LFG(g.Sil),g.LFG(g.lqb),g.LFG(mf),g.LFG(oc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const _f=new g.OlP("");let bf=(()=>{class s{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Gl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof kr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wp&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Wp(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const _C=new g.OlP("ROUTER_FORROOT_GUARD"),cc=new g.OlP(""),bC=[T.Ye,{provide:Za,useClass:ss},{provide:Kt,useFactory:va},io,{provide:Vr,useFactory:function Cf(s){return s.routerState.root},deps:[Kt]},oc];function dc(){return new g.PXZ("Router",Kt)}let _o=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[bC,[],Ss(e),{provide:_C,useFactory:px,deps:[[Kt,new g.FiY,new g.tp0]]},{provide:iu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:_f,useFactory:()=>{const s=(0,g.f3M)(Kt),r=(0,g.f3M)(T.EM),e=(0,g.f3M)(iu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new bf(s,r,e)}},t?.preloadingStrategy?xC(t.preloadingStrategy):[],{provide:g.PXZ,multi:!0,useFactory:dc},t?.initialNavigation?yf(t):[],[{provide:su,useFactory:ou},{provide:g.tb,multi:!0,useExisting:su}]]}}static forChild(e){return{ngModule:s,providers:[Ss(e)]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(_C,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();function px(s){return"guarded"}function Ss(s){return[{provide:wa,multi:!0,useValue:s}]}function ou(){const s=(0,g.f3M)(g.zs3);return r=>{const e=s.get(g.z2F);if(r!==e.components[0])return;const t=s.get(Kt),o=s.get(Lr);1===s.get(lu)&&t.initialNavigation(),s.get(cc,null,g.XFs.Optional)?.setUpPreloading(),s.get(_f,null,g.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const su=new g.OlP("");function yf(s){return["disabled"===s.initialNavigation?[{provide:g.ip1,multi:!0,useFactory:()=>{const s=(0,g.f3M)(Kt);return()=>{s.setUpLocationChangeListener()}}},{provide:lu,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:lu,useValue:0},{provide:g.ip1,multi:!0,deps:[g.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(o=>{const l=s.get(Kt),c=s.get(Lr);(function t(o){s.get(Kt).events.pipe((0,qt.h)(c=>c instanceof kr||c instanceof ql||c instanceof Wl),(0,Ne.U)(c=>c instanceof kr||c instanceof ql&&(0===c.code||1===c.code)&&null),(0,qt.h)(c=>null!==c),(0,ii.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,Pe.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Lr=new g.OlP("",{factory:()=>new Me.x}),lu=new g.OlP("",{providedIn:"root",factory:()=>1});function xC(s){return[au,{provide:cc,useExisting:au},{provide:mf,useExisting:s}]}let Co=(()=>{class s{constructor(){this.title="linker"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[Jl]}),s})();var Ms=x(1214);let cu;try{cu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{cu=!1}let yo,hi=(()=>{class s{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!cu)&&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 s.\u0275fac=function(e){return new(e||s)(g.LFG(g.Lbi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const vf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function du(){if(yo)return yo;if("object"!=typeof document||!document)return yo=new Set(vf),yo;let s=document.createElement("input");return yo=new Set(vf.filter(r=>(s.setAttribute("type",r),s.type===r))),yo}let Ds,wo,pc;function Gn(s){return function TC(){if(null==Ds&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ds=!0}))}finally{Ds=Ds||!1}return Ds}()?s:!!s.capture}function EC(){if(null==wo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wo=!1,wo;if("scrollBehavior"in document.documentElement.style)wo=!0;else{const s=Element.prototype.scrollTo;wo=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return wo}function jr(s){if(function qn(){if(null==pc){const s=typeof document<"u"?document.head:null;pc=!(!s||!s.createShadowRoot&&!s.attachShadow)}return pc}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function fc(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function ln(s){return s.composedPath?s.composedPath()[0]:s.target}function gc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function pr(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Ac=x(8372);function xc(s){return(0,qt.h)((r,e)=>s<=e)}function Rs(s,r){return s===r}var mu=x(5032);function zt(s){return(0,ci.e)((r,e)=>{(0,Vn.Xf)(s).subscribe((0,jt.x)(e,()=>e.complete(),mu.Z)),!e.closed&&r.subscribe(e)})}function ct(s){return null!=s&&"false"!=`${s}`}function cn(s,r=0){return function KC(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Is(s){return Array.isArray(s)?s:[s]}function oi(s){return null==s?"":"string"==typeof s?s:`${s}px`}function Zt(s){return s instanceof g.SBq?s.nativeElement:s}let qf=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ZC=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zt(e);return new Je.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Me.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(qf))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),_u=(()=>{class s{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Ac.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(ZC),g.Y36(g.SBq),g.Y36(g.R0b))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),ks=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[qf]}),s})();const xa=new Set;let Yi,XC=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aT}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ey(s){if(!xa.has(s))try{Yi||(Yi=document.createElement("style"),Yi.setAttribute("type","text/css"),document.head.appendChild(Yi)),Yi.sheet&&(Yi.sheet.insertRule(`@media ${s} {body{ }}`,0),xa.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function aT(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let oT=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Me.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return bu(Is(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=bu(Is(e)).map(c=>this._registerQuery(c).observable);let l=(0,or.a)(o);return l=(0,Vi.z)(l.pipe((0,ii.q)(1)),l.pipe(xc(1),(0,Ac.b)(0))),l.pipe((0,Ne.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:a})=>{n.matches=n.matches||i,n.breakpoints[a]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Je.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Bi(t),(0,Ne.U)(({matches:c})=>({query:e,matches:c})),zt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(XC),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function bu(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let Vs=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Cu(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ay(s){try{return s.frameElement}catch{return null}}(function vu(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===yu(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=yu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function wu(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function eg(s){return!function sy(s){return function cy(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function oy(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function ly(s){return function dy(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Xf(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Xf(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function yu(s){if(!Xf(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class uy{constructor(r,e,t,o,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ii.q)(1)).subscribe(r)}}let Au=(()=>{class s{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new uy(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Vs),g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function tg(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function To(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const my=new g.OlP("cdk-input-modality-detector-options"),ig={ignoreKeys:[18,17,224,91,16]},Ea=Gn({passive:!0,capture:!0});let Tu=(()=>{class s{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Lt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ln(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(tg(c)?"keyboard":"mouse"),this._mostRecentTarget=ln(c))},this._onTouchstart=c=>{To(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ln(c))},this._options={...ig,...l},this.modalityDetected=this._modality.pipe(xc(1)),this.modalityChanged=this.modalityDetected.pipe(function Pi(s,r=Fl.y){return s=s??Rs,(0,ci.e)((e,t)=>{let o,l=!0;e.subscribe((0,jt.x)(t,c=>{const n=r(c);(l||!s(o,n))&&(l=!1,o=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ea),o.addEventListener("mousedown",this._onMousedown,Ea),o.addEventListener("touchstart",this._onTouchstart,Ea)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ea),document.removeEventListener("mousedown",this._onMousedown,Ea),document.removeEventListener("touchstart",this._onTouchstart,Ea))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(my,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const rg=new g.OlP("cdk-focus-monitor-default-options"),Eo=Gn({passive:!0,capture:!0});let dn=(()=>{class s{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,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 Me.x,this._rootNodeFocusAndBlurListener=n=>{for(let a=ln(n);a;a=a.parentElement)"focus"===n.type?this._onFocus(n,a):this._onBlur(n,a)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=Zt(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,Pe.of)(null);const l=jr(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Me.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Zt(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=Zt(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=ln(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Eo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Eo)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(zt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Eo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Eo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,g.f3M)(oT).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(Mu,Su,ag),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Mu,Su):2===t&&e.add(Mu,ag)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),So=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Du))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[ks]}),s})();const og=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function cT(){return(0,g.f3M)(T.K0)}}),sg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Nr=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new g.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Cy(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?sg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(og,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const Ay=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function vy(){return!0}});let Ae=(()=>{class s{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!gc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Du),g.LFG(Ay,8),g.LFG(T.K0))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo,Mo]}),s})();function Sc(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ct(r)}}}function Sa(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function zr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ct(r)}}}function Hu(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Sy=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function mT(){return(0,g.f3M)(g.soG)}});class hn{constructor(){this._localeChanges=new Me.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),o=this.isValid(e);return t&&o?!this.compareDate(r,e):t==o}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Os=new g.OlP("mat-date-formats"),Ma=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Pu(s,r){const e=Array(s);for(let t=0;t{class s extends hn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Pu(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Pu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Pu(7,o=>this._format(t,new Date(2017,0,o+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ma.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Sy,8),g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ru={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 My=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:hn,useClass:Mc}]}),s})(),Dy=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:Os,useValue:Ru}],imports:[My]}),s})(),Dc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Pc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})();class Do{constructor(r,e,t,o=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ug={enterDuration:225,exitDuration:150},Ho=Gn({passive:!0}),pg=["mousedown","touchstart"],Iu=["mouseup","mouseleave","touchend","touchcancel"];class fg{constructor(r,e,t,o){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Zt(t))}fadeInRipple(r,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...ug,...t.animation};t.centered&&(r=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function Py(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),o=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+o*o)}(r,e,o),n=r-o.left,i=e-o.top,a=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new Do(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(a||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ve=()=>this._finishRippleTransition(z),ot=()=>this._destroyRipple(z);d.addEventListener("transitionend",Ve),d.addEventListener("transitioncancel",ot),ae={onTransitionEnd:Ve,onTransitionCancel:ot}}),this._activeRipples.set(z,ae),(H||!a)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...ug,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Zt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(pg))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Iu),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=tg(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Ho)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(pg.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ho)}),this._pointerUpEventsRegistered&&Iu.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ho)}))}}const gg=new g.OlP("mat-ripple-global-options");let Da=(()=>{class s{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new fg(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(hi),g.Y36(gg,8),g.Y36(g.QbO,8))},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&g.ekj("mat-ripple-unbounded",t.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"]}),s})(),pn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),ku=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae]}),s})(),Rc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,T.ez,Ae,ku]}),s})();const By=["mat-button",""],Bu=["*"],Cg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lu=Sa(Sc(zr(class{constructor(s){this._elementRef=s}})));let yg=(()=>{class s extends Lu{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Cg)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(dn),g.Y36(g.QbO,8))},s.\u0275cmp=g.Xpm({type:s,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(e,t){if(1&e&&g.Gf(Da,5),2&e){let o;g.iGM(o=g.CRH())&&(t.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(g.uIk("disabled",t.disabled||null),g.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[g.qOj],attrs:By,ngContentSelectors:Bu,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(e,t){1&e&&(g.F$t(),g.TgZ(0,"span",0),g.Hsn(1),g.qZA(),g._UZ(2,"span",1)(3,"span",2)),2&e&&(g.xp6(2),g.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),g.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Da],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),fr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,Ae]}),s})();var Ic=x(1144),fn=x(576),kc=x(3268);const Fu=["addListener","removeListener"],ju=["addEventListener","removeEventListener"],bT=["on","off"];function Fs(s,r,e,t){if((0,fn.m)(e)&&(t=e,e=void 0),t)return Fs(s,r,e).pipe((0,kc.Z)(t));const[o,l]=function vg(s){return(0,fn.m)(s.addEventListener)&&(0,fn.m)(s.removeEventListener)}(s)?ju.map(c=>n=>s[c](r,n,e)):function Ly(s){return(0,fn.m)(s.addListener)&&(0,fn.m)(s.removeListener)}(s)?Fu.map(wg(s,r)):function Fy(s){return(0,fn.m)(s.on)&&(0,fn.m)(s.off)}(s)?bT.map(wg(s,r)):[];if(!o&&(0,Ic.z)(s))return(0,di.z)(c=>Fs(c,r,e))((0,Vn.Xf)(s));if(!o)throw new TypeError("Invalid event target");return new Je.y(c=>{const n=(...i)=>c.next(1l(n)})}function wg(s,r){return e=>t=>s[e](r,t)}var jy=x(4408);const js={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=js;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=r(l=>{e=void 0,s(l)});return new Yt.w0(()=>e?.(o))},requestAnimationFrame(...s){const{delegate:r}=js;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=js;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var Nu=x(7565);const xg=new class Ag extends Nu.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class CT extends jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=js.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(js.cancelAnimationFrame(e),r._scheduled=void 0)}});let Eg,yT=1;const zu={};function Ny(s){return s in zu&&(delete zu[s],!0)}const wT={setImmediate(s){const r=yT++;return zu[r]=!0,Eg||(Eg=Promise.resolve()),Eg.then(()=>Ny(r)&&s()),r},clearImmediate(s){Ny(s)}},{setImmediate:vT,clearImmediate:AT}=wT,Uu={setImmediate(...s){const{delegate:r}=Uu;return(r?.setImmediate||vT)(...s)},clearImmediate(s){const{delegate:r}=Uu;return(r?.clearImmediate||AT)(s)},delegate:void 0};new class Gr extends Nu.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class xT extends jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Uu.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(Uu.clearImmediate(e),r._scheduled=void 0)}});var qu=x(4986),$u=x(2805);function Ns(s,r=qu.z){return function Wu(s){return(0,ci.e)((r,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const a=o;o=null,e.next(a)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,jt.x)(e,a=>{t=!0,o=a,l||(0,Vn.Xf)(s(a)).subscribe(l=(0,jt.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,$u.H)(s,r))}let Uy=(()=>{class s{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new Me.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Je.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Ns(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Pe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,qt.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=Zt(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Fs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(hi),g.LFG(T.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$n=(()=>{class s{constructor(e,t,o){this._platform=e,this._change=new Me.x,this._changeListener=l=>{this._change.next(l)},this._document=o,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Ns(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(T.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),qr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo,Yn,Mo,Yn]}),s})();class Oc{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Qu extends Oc{constructor(r,e,t,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class Qi extends Oc{constructor(r,e,t,o){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Rg extends Oc{constructor(r){super(),this.element=r instanceof g.SBq?r.nativeElement:r}}class Ju{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Qu?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof Qi?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Rg?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Yy extends Ju{constructor(r,e,t,o,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let o;return r.viewContainerRef?(o=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(r.injector||this._defaultInjector||g.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=r,o}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Ku=(()=>{class s extends Ju{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(T.K0))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),s})(),gr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var mr=x(6451);const kg=EC();class Jy{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=oi(-this._previousScrollPosition.left),r.style.top=oi(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),kg&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kg&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Vg{constructor(r,e,t,o){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Bg{enable(){}disable(){}attach(){}}function gn(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Lc(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class Zy{constructor(r,e,t,o){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();gn(e,[{width:t,height:o,bottom:o,right:t,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 Xy=(()=>{class s{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Bg,this.close=c=>new Vg(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new Jy(this._viewportRuler,this._document),this.reposition=c=>new Zy(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Uy),g.LFG($n),g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class ew{constructor(r){if(this.scrollStrategy=new Bg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class iw{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Lg=(()=>{class s{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),nw=(()=>{class s extends Lg{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),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 s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fc=(()=>{class s extends Lg{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=ln(l)},this._clickListener=l=>{const c=ln(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const d=i[a];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(hi),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Po=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||gc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me.x,this._outsidePointerEvents=new Me.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ii.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=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,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=oi(this._config.width),r.height=oi(this._config.height),r.minWidth=oi(this._config.minWidth),r.minHeight=oi(this._config.minHeight),r.maxWidth=oi(this._config.maxWidth),r.maxHeight=oi(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const o=Is(e||[]).filter(l=>!!l);o.length&&(t?r.classList.add(...o):r.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(zt((0,mr.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Zu="cdk-overlay-connected-position-bounding-box",Xu=/([A-Za-z%]+)$/;class Fg{constructor(r,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,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 Me.x,this._resizeSubscription=Yt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Zu),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,o,n),a=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(a,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,a,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=a)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ro(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Zu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let o,l;if("center"==t.originX)o=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(r,e,t){let o,l;return o="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+o,y:r.y+l}}_getOverlayFit(r,e,t,o){const l=jc(e);let{x:c,y:n}=r,i=this._getOffset(o,"x"),a=this._getOffset(o,"y");i&&(c+=i),a&&(n+=a);let p=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,p,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=rw(this._overlayRef.getConfig().minHeight),n=rw(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=o)&&a}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const o=jc(e),l=this._viewportRect,c=Math.max(r.x+o.width-l.width,0),n=Math.max(r.y+o.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),a=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=o.width<=l.width?a||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)p=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:p,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=oi(t.height),o.top=oi(t.top),o.bottom=oi(t.bottom),o.width=oi(t.width),o.left=oi(t.left),o.right=oi(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=oi(l)),c&&(o.maxWidth=oi(c))}this._lastBoundingBoxSize=t,Ro(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Ro(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ro(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Ro(t,this._getExactOverlayY(e,r,d)),Ro(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),a=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),a&&(n+=`translateY(${a}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=oi(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=oi(c.maxWidth):l&&(t.maxWidth="")),Ro(this._pane.style,t)}_getExactOverlayY(r,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=oi(l.y),o}_getExactOverlayX(r,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=oi(l.x),o}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Lc(r,t),isOriginOutsideView:gn(r,t),isOverlayClipped:Lc(e,t),isOverlayOutsideView:gn(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,o)=>t-Math.max(o,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Is(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof g.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Ro(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function rw(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(Xu);return e&&"px"!==e?null:parseFloat(r)}return s||null}function jc(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const eh="cdk-global-overlay-wrapper";class jg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(eh),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),a=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",p?H=u:b=u):p?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",H=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(eh),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Ng=(()=>{class s{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new jg}flexibleConnectedTo(e){return new Fg(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG($n),g.LFG(T.K0),g.LFG(hi),g.LFG(Po))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zg=0,mn=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u,p,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=a,this._directionality=d,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new ew(e);return c.direction=c.direction||this._directionality.value,new Us(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+zg++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new Yy(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Xy),g.LFG(Po),g.LFG(g._Vd),g.LFG(Ng),g.LFG(nw),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(Nr),g.LFG(T.Ye),g.LFG(Fc),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const ih={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[mn],useFactory:function aw(s){return()=>s.scrollStrategies.reposition()}};let Pa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[mn,ih],imports:[Mo,gr,qr,qr]}),s})();class Ug{}const _r="*";function si(s,r){return{type:7,name:s,definitions:r,options:{}}}function yt(s,r=null){return{type:4,styles:r,timings:s}}function ow(s,r=null){return{type:3,steps:s,options:r}}function Gg(s,r=null){return{type:2,steps:s,options:r}}function je(s){return{type:6,styles:s,offset:null}}function ht(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Io(s=null){return{type:9,options:s}}function ko(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function qg(s){Promise.resolve(null).then(s)}class qs{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Wg{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,o=0;const l=this.players.length;0==l?qg(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const lw=["connectionContainer"],Uc=["inputContainer"],Ia=["label"];function UT(s,r){1&s&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Ws(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.Hsn(1,1),g.qZA()}if(2&s){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function cw(s,r){if(1&s&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&s){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function dw(s,r){1&s&&g.Hsn(0,3,["*ngSwitchCase","true"])}function rh(s,r){1&s&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function uw(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.YNc(2,cw,4,1,"ng-container",12),g.YNc(3,dw,1,0,"ng-content",12),g.YNc(4,rh,2,0,"span",22),g.qZA()}if(2&s){const e=g.oxw();g.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),g.uIk("for",e._control.id)("aria-owns",e._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Qn(s,r){1&s&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function $s(s,r){if(1&s&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Ri(s,r){if(1&s&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ka(s,r){if(1&s&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function Gc(s,r){if(1&s&&(g.TgZ(0,"div",27),g.YNc(1,ka,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const _n=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ah=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Vo=new g.OlP("MatError"),Bo={transitionMessages:si("transitionMessages",[ht("enter",je({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let br=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s}),s})();const $g=new g.OlP("MatHint");let oh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-label"]]}),s})(),Yg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const Qg=new g.OlP("MatPrefix"),Jg=new g.OlP("MatSuffix");let sh=0;const mw=Sa(class{constructor(s){this._elementRef=s}},"primary"),Zg=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),lh=new g.OlP("MatFormField");let Xg=(()=>{class s extends mw{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+sh++,this._labelId="mat-form-field-label-"+sh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Bi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(zt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,mr.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Bi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Bi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(zt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Fs(this._label.nativeElement,"transitionend").pipe((0,ii.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${o}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,ks,Ae]}),s})();const ph={provide:new g.OlP("mat-select-scroll-strategy"),deps:[mn],useFactory:function om(s){return()=>s.scrollStrategies.reposition()}};let el=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[ph],imports:[T.ez,Pa,Rc,Ae,Yn,Cr,Rc,Ae]}),s})();const Iw={provide:new g.OlP("mat-tooltip-scroll-strategy"),deps:[mn],useFactory:function cm(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}};let il=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Iw],imports:[So,T.ez,Pa,Ae,Ae,Yn]}),s})(),bn=(()=>{class s{constructor(){this.changes=new Me.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lw={provide:bn,deps:[[new g.FiY,new g.tp0,bn]],useFactory:function Ow(s){return s||new bn}};let Wc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Lw],imports:[T.ez,fr,el,il,Ae]}),s})();const Jw={provide:new g.OlP("mat-menu-scroll-strategy"),deps:[mn],useFactory:function wm(s){return()=>s.scrollStrategies.reposition()}};let Yc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Jw],imports:[T.ez,Ae,pn,Pa,Yn,Ae]}),s})();var Kw=x(4742),Zw=x(1810);function mh(...s){const r=(0,oa.jO)(s),{args:e,keys:t}=(0,Kw.D)(s),o=new Je.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,a=c;for(let d=0;d{u||(u=!0,a--),n[d]=p},()=>i--,void 0,()=>{(!i||!u)&&(a||l.next(t?(0,Zw.n)(t,n):n),l.complete())}))}});return r?o.pipe((0,kc.Z)(r)):o}var vm=x(3099),y=x(529);const Xw=["*"];let Qc;function nl(s){return function ev(){if(void 0===Qc&&(Qc=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Qc=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Qc}()?.createHTML(s)||s}function Am(s){return Error(`Unable to find icon with the name "${s}"`)}function xm(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function _h(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class $r{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Oo=(()=>{class s{constructor(e,t,o,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new $r(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(g.q3G.HTML,o);if(!c)throw _h(o);const n=nl(c);return this._addSvgIconConfig(e,t,new $r("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new $r(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(g.q3G.HTML,t);if(!l)throw _h(t);const c=nl(l);return this._addSvgIconSetConfig(e,new $r("",c,o))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(g.q3G.RESOURCE_URL,e);if(!t)throw xm(e);const o=this._cachedIconsByUrl.get(t);return o?(0,Pe.of)(rl(o)):this._loadSvgIconFromConfig(new $r(e,null)).pipe((0,Wt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Ne.U)(l=>rl(l)))}getNamedSvgIcon(e,t=""){const o=bh(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,yi._)(Am(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Pe.of)(rl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Ne.U)(t=>rl(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,Pe.of)(o):mh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,St.K)(n=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(a)),(0,Pe.of)(null)})))).pipe((0,Ne.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Am(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,Ne.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Pe.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(nl(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(nl("")),o=e.attributes;for(let l=0;lnl(a)),la(()=>this._inProgressUrlFetches.delete(c)),(0,vm.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(bh(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let o=0;or?r.pathname+r.search:""}}}),Mm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nv=Mm.map(s=>`[${s}]`).join(", "),Lo=/^url\(['"]?#(.*?)['"]?\)$/;let rv=(()=>{class s extends Sm{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Yt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(nv),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),a=i?i.match(Lo):null;if(a){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,ii.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Oo),g.$8M("aria-hidden"),g.Y36(yh),g.Y36(g.qLn),g.Y36(Ch,8))},s.\u0275cmp=g.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(g.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),g.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[g.qOj],ngContentSelectors:Xw,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),s})(),Sn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})();function wr(s){return!!s&&(s instanceof Je.y||(0,fn.m)(s.lift)&&(0,fn.m)(s.subscribe))}var Dm=x(6063);class Hm extends Me.x{constructor(r=1/0,e=1/0,t=Dm.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew Hm(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class qe{}let Pm=(()=>{class s extends qe{getTranslation(e){return(0,Pe.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class wh{}let Rm=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function vr(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let o,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!vr(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((o=s.length)==r.length){for(l=0;l{Fo(r[t])?t in s?e[t]=al(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Bt{}let ov=(()=>{class s extends Bt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return Yr(c)?c:o}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class ol{}let vh=(()=>{class s extends ol{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Im{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new g.vpe,this.onLangChange=new g.vpe,this.onDefaultLangChange=new g.vpe}}const Jc=new g.OlP("USE_STORE"),Kc=new g.OlP("USE_DEFAULT_LANG"),Zc=new g.OlP("DEFAULT_LANGUAGE"),Xc=new g.OlP("USE_EXTEND");let sl=(()=>{class s{constructor(e,t,o,l,c,n=!0,i=!1,a=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=a,this.pending=!1,this._onTranslationChange=new g.vpe,this._onLangChange=new g.vpe,this._onDefaultLangChange=new g.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Pe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Pe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(av(1),(0,ii.q)(1));return this.loadingTranslations=t.pipe((0,Ne.U)(o=>this.compiler.compileTranslations(o,e)),av(1),(0,ii.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?al(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),wr(c[i])&&(n=!0);return n?mh(t.map(a=>wr(c[a])?c[a]:(0,Pe.of)(c[a]))).pipe((0,Ne.U)(a=>{let d={};return a.forEach((u,p)=>{d[t[p]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,It.b)(o=>wr(o=this.getParsedResult(o,e,t))?o:(0,Pe.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return wr(o)?o:(0,Pe.of)(o)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vi.z)(en(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Gi.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,Pe.of)(l)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vi.z)(en(()=>this.get(e,t)),this.onLangChange.pipe((0,Gi.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return wr(l)?l:(0,Pe.of)(l)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(wr(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Im),g.LFG(qe),g.LFG(ol),g.LFG(Bt),g.LFG(wh),g.LFG(Kc),g.LFG(Jc),g.LFG(Xc),g.LFG(Zc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),ll=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);wr(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(vr(e,this.lastKey)&&vr(t,this.lastParams))return this.value;let o;if(Yr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(sl,16),g.Y36(g.sBO,16))},s.\u0275pipe=g.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),Zn=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Pm},e.compiler||{provide:ol,useClass:vh},e.parser||{provide:Bt,useClass:ov},e.missingTranslationHandler||{provide:wh,useClass:Rm},Im,{provide:Jc,useValue:e.isolate},{provide:Kc,useValue:e.useDefaultLang},{provide:Xc,useValue:e.extend},{provide:Zc,useValue:e.defaultLanguage},sl]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Pm},e.compiler||{provide:ol,useClass:vh},e.parser||{provide:Bt,useClass:ov},e.missingTranslationHandler||{provide:wh,useClass:Rm},{provide:Jc,useValue:e.isolate},{provide:Kc,useValue:e.useDefaultLang},{provide:Xc,useValue:e.extend},{provide:Zc,useValue:e.defaultLanguage},sl]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),km=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Wc,Yc,Sn,fr,Zn,T.ez]}),s})();function sv(s,r){}class ed{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 xh=(()=>{class s extends Ju{constructor(e,t,o,l,c,n,i,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=fc(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=fc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ed),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&g.Gf(Ku,7),2&e){let o;g.iGM(o=g.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&g.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,sv,0,0,"ng-template",0)},dependencies:[Ku],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class td{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Me.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!pr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Th=new g.OlP("DialogScrollStrategy"),lv=new g.OlP("DialogData"),cl=new g.OlP("DefaultDialogConfig"),cv={provide:Th,deps:[mn],useFactory:function dl(s){return()=>s.scrollStrategies.block()}};let dv=0,Vm=(()=>{class s{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._ariaHiddenElements=new Map,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bi(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new ed,...t}).id=t.id||"cdk-dialog-"+dv++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new td(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){id(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){id(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),id(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ew({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:ed,useValue:o},{provide:td,useValue:t},{provide:Us,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=xh;const i=new Qu(n,o.viewContainerRef,g.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof g.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new Qi(e,null,n,c))}else{const n=o.attachComponentPortal(new Qu(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:lv,useValue:e.data},{provide:td,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(Nr,null,g.XFs.Optional))&&c.push({provide:Nr,useValue:{value:e.direction,change:(0,Pe.of)()}}),g.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(mn),g.LFG(g.zs3),g.LFG(cl,8),g.LFG(s,12),g.LFG(Po),g.LFG(Th))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function id(s,r){let e=s.length;for(;e--;)r(s[e])}let Bm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Vm,cv],imports:[Pa,gr,So,gr]}),s})();function Om(s,r){}const jo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Lm={dialogContainer:si("dialogContainer",[ht("void, exit",je({opacity:0,transform:"scale(0.7)"})),ht("enter",je({transform:"none"})),_t("* => enter",ow([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),ko("@*",Io(),{optional:!0})]),jo),_t("* => void, * => exit",ow([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),ko("@*",Io(),{optional:!0})]),jo)])};class ul{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=jo.params.enterAnimationDuration,this.exitAnimationDuration=jo.params.exitAnimationDuration}}let uv=(()=>{class s extends xh{constructor(e,t,o,l,c,n,i,a){super(e,t,o,l,c,n,i,a),this._animationStateChanged=new g.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ul),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],features:[g.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),lE=(()=>{class s extends uv{constructor(e,t,o,l,c,n,i,a,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||jo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||jo.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ul),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(g.sBO),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(g.Ikx("id",t._config.id),g.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._getAnimationState()))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,Om,0,0,"ng-template",0)},dependencies:[Ku],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:[Lm.dialogContainer]}}),s})();class nd{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Me.x,this._beforeClosed=new Me.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,qt.h)(o=>"opened"===o.state),(0,ii.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,qt.h)(o=>"closed"===o.state),(0,ii.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,mr.T)(this.backdropClick(),this.keydownEvents().pipe((0,qt.h)(o=>27===o.keyCode&&!this.disableClose&&!pr(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function cE(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,qt.h)(e=>"closing"===e.state),(0,ii.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const dE=new g.OlP("MatDialogData"),Fm=new g.OlP("mat-dialog-default-options"),hl=new g.OlP("mat-dialog-scroll-strategy"),jm={provide:hl,deps:[mn],useFactory:function hv(s){return()=>s.scrollStrategies.block()}};let pl=0,pv=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._idPrefix="mat-dialog-",this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bi(void 0))),this._scrollStrategy=n,this._dialog=t.get(Vm)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new ul,...t}).id=t.id||`${this._idPrefix}${pl++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ul,useValue:t},{provide:ed,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),No=(()=>{class s extends pv{constructor(e,t,o,l,c,n,i,a){super(e,t,l,n,i,c,nd,lE,dE,a)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(mn),g.LFG(g.zs3),g.LFG(T.Ye,8),g.LFG(Fm,8),g.LFG(hl),g.LFG(s,12),g.LFG(Po),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),fv=0,Nm=(()=>{class s{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+fv++}ngOnInit(){this._dialogRef||(this._dialogRef=function gv(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd,8),g.Y36(g.SBq),g.Y36(No))},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&g.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),rd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),zm=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),Ar=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[No,jm],imports:[Bm,Pa,gr,Ae,Ae]}),s})();function Eh(){const s=new ul;return s.disableClose=!0,s.autoFocus=!1,s}function ml(s,r){const e=r.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class Xt{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ei=new g.OlP("basePath");class et{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let _l=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=o&&(u=this.addToHttpParams(u,o,"complementaryObjectName")),l&&l.forEach(Ve=>{u=this.addToHttpParams(u,Ve,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,p=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(p=p.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(p=p.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(p=p.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:p,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zm=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Xm=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addApplicationMailForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addApplicationMailForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}approveApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkForSimilarRichIdentities(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}consolidateIdentityUsingToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}copyFormFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}createApplicationFormInGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createApplicationFormInVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplicationMailForGroup(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteApplicationMailForVo(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationDataById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationsForGroup(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getApplicationsForVo(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getConsolidatorToken(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForGroupWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForVoWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}rejectApplication(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitation(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new y.LE({encoder:this.encoder});null!=o&&(a=this.addToHttpParams(a,o,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=o&&(d=this.addToHttpParams(d,o,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,o,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=o&&(i=this.addToHttpParams(i,o,"groupId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendMessage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setSendingEnabled(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}submitApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateApplicationMail(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}verifyApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mh=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),i_=(()=>{class s{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:s,providers:[{provide:et,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(s,12),g.LFG(y.eN,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let n_=(()=>{class s{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const o=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of o)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,o){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(o.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const a=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,a),u=this.resolveAuthorization(n,a);o.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let o=null;for(const l of t)l&&!o&&(o=l[e]);return o}get(...e){let t;if(""!==this.branding){const o=this.instanceConfig.brandings[this.branding];for(let l=0;l{class s{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Kt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=ml("idphint",location.search.substring(1));n&&(c.idphint=n)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(o=>o?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,qt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,qt.h)(e=>e instanceof kr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const o of t)if(e.startsWith(o))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(o=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!o||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(Qr),g.LFG(No),g.LFG(Vr),g.LFG(Ms.Ct))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),KE=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(g.TgZ(0,"h2",0),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[rd,ll]}),s})(),ld=(()=>{class s{constructor(e,t,o,l,c,n){this.authService=e,this.storeService=t,this.authResolver=o,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Eh();this.dialog.open(KE,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const o of e){const l=o.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Rh),g.LFG(Qr),g.LFG(n_),g.LFG(_l),g.LFG(No),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ih=(()=>{class s{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Oo),g.LFG(mi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),kh=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"div",2)(7,"div",3)(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),g.qZA()()()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),g.xp6(5),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Nm,rd,zm,yg,ll]}),s})(),Vh=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),a_=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new g.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(sl))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),o_=(()=>{class s{constructor(e,t,o,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const o=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Eh();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(kh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{la(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,yi._)(n):l?void this.notificator.showRPCError(i):(0,yi._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Rh),g.LFG(Vh),g.LFG(a_),g.LFG(Qr),g.LFG(No),g.LFG(ld))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),eA=(()=>{class s{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,St.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,St.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,St.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,St.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,yi._)(c)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(a_),g.LFG(Rh),g.LFG(Qr))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Bh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez]}),s})(),Oh=(()=>{class s{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=g.Yjl({name:"userFullName",type:s,pure:!0}),s})();function sA(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){const e=g.oxw(),t=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function nS(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}const d_=Sa(class{constructor(s){this._elementRef=s}},"primary"),yl=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function lA(){return{diameter:100}}});class Xn extends d_{constructor(r,e,t,o,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Yt.w0.EMPTY,this.mode="determinate";const a=Xn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=cn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=cn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,cn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=jr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_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(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Xn._diameters;let o=t.get(r);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),o||(o=new Set,t.set(r,o)),o.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Xn._diameters=new WeakMap,Xn.\u0275fac=function(r){return new(r||Xn)(g.Y36(g.SBq),g.Y36(hi),g.Y36(T.K0,8),g.Y36(g.QbO,8),g.Y36(yl),g.Y36(g.sBO),g.Y36($n),g.Y36(g.R0b))},Xn.\u0275cmp=g.Xpm({type:Xn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(g.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.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(r,e){1&r&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,sA,1,11,"circle",2),g.YNc(3,nS,1,9,"circle",3),g.qZA()),2&r&&(g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===e.mode),g.uIk("viewBox",e._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.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 wl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,T.ez,Ae]}),s})();const u_=Gn({passive:!0});let zo=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ft.E;const t=Zt(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new Me.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,u_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,u_)}}),l}stopMonitoring(e){const t=Zt(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fh=(()=>{class s{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new Me.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=cn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=cn(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ct(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Fs(this._getWindow(),"resize").pipe(Ns(16),zt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(g.R0b),g.Y36(T.K0,8))},s.\u0275dir=g.lG2({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&g.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),s})(),jh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),Nh=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq))},s.\u0275dir=g.lG2({type:s}),s})(),er=(()=>{class s extends Nh{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275dir=g.lG2({type:s,features:[g.qOj]}),s})();const Ai=new g.OlP("NgValueAccessor"),cA={provide:Ai,useExisting:(0,g.Gpc)(()=>cd),multi:!0},Uo=new g.OlP("CompositionEventMode");let cd=(()=>{class s extends Nh{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function h_(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(Uo,8))},s.\u0275dir=g.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&g.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[g._Bn([cA]),g.qOj]}),s})();function tr(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function dA(s){return null!=s&&"number"==typeof s.length}const fi=new g.OlP("NgValidators"),Ba=new g.OlP("NgAsyncValidators"),uA=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Uh{static min(r){return function f_(s){return r=>{if(tr(r.value)||tr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(tr(r.value)||tr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return function qh(s){return tr(s.value)?{required:!0}:null}(r)}static requiredTrue(r){return function g_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Wh(s){return tr(s.value)||uA.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function $h(s){return r=>tr(r.value)||!dA(r.value)?null:r.value.lengthdA(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function __(s){if(!s)return vl;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(tr(t.value))return null;const o=t.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return w_(r)}static composeAsync(r){return Kh(r)}}function vl(s){return null}function b_(s){return null!=s}function Yh(s){return(0,g.QGY)(s)?(0,gt.D)(s):s}function Qh(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Jh(s,r){return r.map(e=>e(s))}function y_(s){return s.map(r=>function C_(s){return!s.validate}(r)?r:e=>r.validate(e))}function w_(s){if(!s)return null;const r=s.filter(b_);return 0==r.length?null:function(e){return Qh(Jh(e,r))}}function v_(s){return null!=s?w_(y_(s)):null}function Kh(s){if(!s)return null;const r=s.filter(b_);return 0==r.length?null:function(e){return mh(Jh(e,r).map(Yh)).pipe((0,Ne.U)(Qh))}}function A_(s){return null!=s?Kh(y_(s)):null}function hA(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function pA(s){return s._rawValidators}function fA(s){return s._rawAsyncValidators}function x_(s){return s?Array.isArray(s)?s:[s]:[]}function Zh(s,r){return Array.isArray(s)?s.includes(r):s===r}function gA(s,r){const e=x_(r);return x_(s).forEach(o=>{Zh(e,o)||e.push(o)}),e}function mA(s,r){return x_(r).filter(e=>!Zh(s,e))}class Al{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=v_(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=A_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Ki extends Al{get formDirective(){return null}get path(){return null}}class Mn extends Al{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let CA=(()=>{class s extends class xl{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Mn,2))},s.\u0275dir=g.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[g.qOj]}),s})();const Go="VALID",tp="INVALID",Ii="PENDING",Tl="DISABLED";function El(s){return(qo(s)?s.validators:s)||null}function M_(s){return Array.isArray(s)?v_(s):s||null}function zi(s,r){return(qo(r)?r.asyncValidators:s)||null}function D_(s){return Array.isArray(s)?A_(s):s||null}function qo(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}class pd{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=M_(this._rawValidators),this._composedAsyncValidatorFn=D_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Go}get invalid(){return this.status===tp}get pending(){return this.status==Ii}get disabled(){return this.status===Tl}get enabled(){return this.status!==Tl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=M_(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=D_(r)}addValidators(r){this.setValidators(gA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(gA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(mA(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(mA(r,this._rawAsyncValidators))}hasValidator(r){return Zh(this._rawValidators,r)}hasAsyncValidator(r){return Zh(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Ii,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Tl,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Go,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Go||this.status===Ii)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tl:Go}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Ii,this._hasOwnPendingAsyncValidator=!0;const e=Yh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?Tl:this.errors?tp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ii)?Ii:this._anyControlsHaveStatus(tp)?tp:Go}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){qo(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class fd extends pd{constructor(r,e,t){super(El(e),zi(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function P_(s,r,e){s._forEachChild((t,o)=>{if(void 0===e[o])throw new g.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function H_(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[e])throw new g.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const o=this.controls[t];o&&o.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,o)=>{t.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Wo(s,r){_d(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function Tr(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&SA(s,r)})}(s,r),function MA(s,r){const e=(t,o)=>{r.valueAccessor.writeValue(t),o&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function EA(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&SA(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function Jr(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function md(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Yo(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function $o(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function _d(s,r){const e=pA(s);null!==r.validator?s.setValidators(hA(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=fA(s);null!==r.asyncValidator?s.setAsyncValidators(hA(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const o=()=>s.updateValueAndValidity();$o(r._rawValidators,o),$o(r._rawAsyncValidators,o)}function Yo(s,r){let e=!1;if(null!==s){if(null!==r.validator){const o=pA(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.validator);l.length!==o.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const o=fA(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.asyncValidator);l.length!==o.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return $o(r._rawValidators,t),$o(r._rawAsyncValidators,t),e}function SA(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function I_(s,r){_d(s,r)}function RA(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const kA={provide:Ki,useExisting:(0,g.Gpc)(()=>Jo)},Qo=(()=>Promise.resolve(null))();let Jo=(()=>{class s extends Ki{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new fd({},v_(e),A_(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Qo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Wo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Qo.then(()=>{const t=this._findContainer(e.path),o=new fd({});I_(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Qo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,RA(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Ba,10))},s.\u0275dir=g.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([kA]),g.qOj]}),s})();function Ml(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function Dl(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const np=class extends pd{constructor(r=null,e,t){super(El(e),zi(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Dl(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Ml(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Ml(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){Dl(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},VA={provide:Mn,useExisting:(0,g.Gpc)(()=>N_)},j_=(()=>Promise.resolve(null))();let N_=(()=>{class s extends Mn{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new np,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=function Sl(s,r){if(!r)return null;let e,t,o;return Array.isArray(r),r.forEach(l=>{l.constructor===cd?e=l:function V_(s){return Object.getPrototypeOf(s.constructor)===er}(l)?t=l:o=l}),o||t||e||null}(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function ip(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){j_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,g.D6c)(t);j_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function gd(s,r){return[...r.path,s]}(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Ki,9),g.Y36(fi,10),g.Y36(Ba,10),g.Y36(Ai,10),g.Y36(g.sBO,8))},s.\u0275dir=g.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g._Bn([VA]),g.qOj,g.TTD]}),s})(),Hl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const bd=new g.OlP("NgModelWithFormControlWarning"),LA={provide:Ki,useExisting:(0,g.Gpc)(()=>Oa)};let Oa=(()=>{class s extends Ki{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new g.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Wo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){md(e.control||null,e,!1),function B_(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,RA(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,o=this.form.get(e.path);t!==o&&(md(t||null,e),(s=>s instanceof np)(o)&&(Wo(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);I_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function DA(s,r){return Yo(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_d(this.form,this),this._oldForm&&Yo(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Ba,10))},s.\u0275dir=g.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([LA]),g.qOj,g.TTD]}),s})(),h=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Hl]}),s})(),f=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[h]}),s})(),m=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:bd,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[h]}),s})();const J=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),re=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let me=0;const xe=Hu(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Me.x}});let Re=(()=>{class s extends xe{constructor(e,t,o,l,c,n,i,a,d,u){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+me++,this.focused=!1,this.stateChanges=new Me.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(H=>du().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,b=p.nodeName.toLowerCase();this._inputValueAccessor=i||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Uh.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&du().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){re.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(Mn,10),g.Y36(Jo,8),g.Y36(Oa,8),g.Y36(Dc),g.Y36(J,10),g.Y36(zo),g.Y36(g.R0b),g.Y36(lh,8))},s.\u0275dir=g.lG2({type:s,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(e,t){1&e&&g.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(g.Ikx("disabled",t.disabled)("required",t.required),g.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),g.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[g._Bn([{provide:br,useExisting:s}]),g.qOj,g.TTD]}),s})(),Fe=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Dc],imports:[jh,Cr,Ae,jh,Cr]}),s})();function Ke(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function ye(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function We(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function ft(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const Ot=["*"];let La=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Ot,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0),g.YNc(1,Ke,2,0,"mat-icon",1),g.YNc(2,ye,2,0,"mat-icon",1),g.YNc(3,We,2,0,"mat-icon",1),g.YNc(4,ft,2,0,"mat-icon",1),g.Hsn(5),g.qZA()),2&e&&(g.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","warn"===t.alert_type),g.xp6(1),g.Q6J("ngIf","error"===t.alert_type),g.xp6(1),g.Q6J("ngIf","success"===t.alert_type))},dependencies:[rv,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})();function fp(s,r){1&s&&g._UZ(0,"mat-spinner",7)}function gp(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-form-field",10)(5,"textarea",11),g.NdJ("ngModelChange",function(o){g.CHM(e);const l=g.oxw();return g.KtG(l.message=o)}),g.ALo(6,"translate"),g.qZA()()()}if(2&s){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),g.xp6(3),g.s9C("placeholder",g.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),g.Q6J("ngModel",e.message)}}let mp=(()=>{class s{constructor(e,t,o,l,c,n){this.dialogRef=e,this.storeService=t,this.authzService=o,this.oAuthStorage=l,this.rtMessages=c,this.userFullNamePipe=n,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",ml("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(o=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,o.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const o=this.storeService.getProperty("config");let l=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return l=l.concat("\n\n"),l=l.concat("Information about users: \n\n"),l=l.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),l=l.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),l=l.concat("Perun instance: "+o+"\n"),l=l.concat("Sended from new Consolidator Gui, version: ",x(4147).i8),l.split("\n").join("\n ")}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd),g.Y36(Qr),g.Y36(_l),g.Y36(Ms.Hy),g.Y36(Zm),g.Y36(Oh))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(g.TgZ(0,"div")(1,"div",0)(2,"h1",1),g._uU(3),g.ALo(4,"translate"),g.qZA()(),g.YNc(5,fp,1,0,"mat-spinner",2),g.YNc(6,gp,7,7,"div",3),g.TgZ(7,"div",4)(8,"button",5),g.NdJ("click",function(){return t.onCancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"button",6),g.NdJ("click",function(){return t.onSend()}),g._uU(12),g.ALo(13,"translate"),g.qZA()()()),2&e&&(g.xp6(3),g.hij(" ",g.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[T.O5,yg,Nm,rd,zm,Xn,Xg,Fh,Re,cd,CA,N_,La,ll]}),s})();function _p(s,r){if(1&s&&(g.TgZ(0,"mat-icon",6),g._uU(1),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",e.icon," ")}}function bp(s,r){1&s&&g._UZ(0,"mat-icon",7)}function Cp(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.supportMail," ")}}function yp(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.userMail," ")}}function wp(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.YNc(3,Cp,2,1,"span",5),g.YNc(4,yp,2,1,"span",5),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),g.xp6(2),g.Q6J("ngIf","UNKNOWN_ERROR"===e.result),g.xp6(1),g.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function vp(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"translate"),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.lnq(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",g.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const iH=function(s){return{"background-color":s}},nH=["*"];let rH=(()=>{class s{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Qr))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[g.TTD],ngContentSelectors:nH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"div"),g.YNc(3,_p,2,1,"mat-icon",2),g.YNc(4,bp,1,0,"mat-icon",3),g.qZA(),g.TgZ(5,"div",4)(6,"h1"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.YNc(9,wp,5,5,"h5",5),g.YNc(10,vp,4,7,"h5",5),g.qZA()(),g.Hsn(11),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,iH,t.color)),g.xp6(3),g.Q6J("ngIf","OK"!==t.result),g.xp6(1),g.Q6J("ngIf","OK"===t.result),g.xp6(3),g.hij(" ",g.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),g.xp6(2),g.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),g.xp6(1),g.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,rv,ll],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),s})();function aH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.loginAgain())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function oH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.sendMessageToSupport())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function sH(s,r){1&s&&(g.TgZ(0,"div",7),g._UZ(1,"mat-spinner",8),g.qZA())}const lH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class s{constructor(e,t,o){this.route=e,this.dialog=t,this.oauthService=o,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,o="yes";for(;""!==o;)t++,o=ml("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=Eh();e.width="1000px",this.dialog.open(mp,e).afterClosed().subscribe(o=>{!0===o?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===o&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Vr),g.Y36(No),g.Y36(Ms.Ct))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),g.NdJ("click",function(){return t.closeWindow()}),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.YNc(6,aH,3,3,"button",4),g.YNc(7,oH,3,3,"button",4),g.qZA()(),g.YNc(8,sH,2,0,"div",5),g.qZA()),2&e&&(g.xp6(1),g.Q6J("result",t.linkerResult),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),g.xp6(2),g.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),g.xp6(1),g.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),g.xp6(1),g.Q6J("ngIf",t.loading))},dependencies:[T.O5,yg,Xn,rH,ll],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),s})()}];let cH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[_o.forRoot(lH),_o]}),s})();class dH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let uH=(()=>{class s{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function hH(s){return[Cn(tinycolor(s).lighten(52),"50"),Cn(tinycolor(s).lighten(37),"100"),Cn(tinycolor(s).lighten(26),"200"),Cn(tinycolor(s).lighten(12),"300"),Cn(tinycolor(s).lighten(6),"400"),Cn(tinycolor(s),"500"),Cn(tinycolor(s).darken(6),"600"),Cn(tinycolor(s).darken(12),"700"),Cn(tinycolor(s).darken(18),"800"),Cn(tinycolor(s).darken(24),"900"),Cn(tinycolor(s).lighten(50).saturate(30),"A100"),Cn(tinycolor(s).lighten(30).saturate(30),"A200"),Cn(tinycolor(s).lighten(10).saturate(15),"A400"),Cn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,a=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(Qr),g.LFG(_l),g.LFG(Y),g.LFG(Mh))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Cn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let pH=(()=>{class s{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=ml("formerToken",e);return new Promise(o=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"]),o()})},l=>{let n="UNKNOWN_ERROR";switch(l.error.name){case"InvalidTokenException":case"ExpiredTokenException":n="TOKEN_EXPIRED";break;case"IdentityUnknownException":n="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":n="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":n="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":n="IDENTITY_LINKED"}this.router.navigate(["/result",n],{queryParamsHandling:"merge"}),o()})})}consolidatePreviousLogins(e,t){return new Promise(o=>{const l=ml("formerToken"+e.toString(),t);null==l||""===l?o():this.registrarService.consolidate({accessToken:l}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())})})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Xm),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),fH=(()=>{class s{constructor(e,t,o,l){this.initAuthService=e,this.appConfigService=t,this.location=o,this.linkIdentitiesService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate()):this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ld),g.LFG(uH),g.LFG(T.Ye),g.LFG(pH))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const gH=new g.OlP("perun-api-service");let ES=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),DS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),Q_=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,ks,DS,Ae,DS]}),s})(),XA=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),DH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),PS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,DH,gr]}),s})(),IS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Pc,Ae,Pc,Ae]}),s})(),RH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo]}),s})(),e0=(()=>{class s{constructor(){this.changes=new Me.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const UH={provide:e0,deps:[[new g.FiY,new g.tp0,e0]],useFactory:function zH(s){return s||new e0}};let OS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[UH,Dc],imports:[Ae,T.ez,gr,fr,RH,Sn,pn,Ae]}),s})(),rP=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[qr]}),s})(),ob=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[rP,Ae,Ae]}),s})(),xP=(()=>{class s{constructor(){this.changes=new Me.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const kP={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[mn],useFactory:function IP(s){return()=>s.scrollStrategies.reposition()}};let p0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[xP,kP],imports:[T.ez,fr,Pa,So,gr,Ae,Yn]}),s})(),XS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,Yn,Yn,Ae]}),s})(),tM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Pc,pn,Ae,ku,T.ez,Pc,Ae,ku,XA]}),s})(),iM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),f0=(()=>{class s{constructor(){this.changes=new Me.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const eR={provide:f0,deps:[[new g.FiY,new g.tp0,f0]],useFactory:function XP(s){return s||new f0}};let g0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[eR],imports:[T.ez,Ae]}),s})(),aR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,gr,pn,ks,So,Ae]}),s})(),nM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),rM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[nM,pn,Ae,ks,nM,Ae]}),s})();const lM=new g.OlP("mat-chips-default-options");let _0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Dc,{provide:lM,useValue:{separatorKeyCodes:[13]}}],imports:[Ae]}),s})(),b0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,ES,XA,PS,fr,IS,Q_,Sn,ob,Ar,wl,Cr,Fe,qr,f,m,OS,p0,Dy,XS,tM,Yc,iM,g0,Wc,il,el,pn,ob,rM,_0,ES,XA,PS,fr,IS,Q_,Sn,ob,Ar,wl,Cr,Fe,qr,f,m,OS,p0,Dy,XS,tM,Yc,iM,g0,Wc,il,el,pn,aR,rM,_0]}),s})(),C0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Sn,T.ez]}),s})();function y0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const o=r[t];o?s.setProperty(t,o,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Td(s,r){const e=r?"":"none";y0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function cM(s,r,e){y0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function db(s,r){return r&&"none"!=r?s+" "+r:s}function dM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function w0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function v0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function A0(s,r,e){const{top:t,bottom:o,left:l,right:c}=s;return e>=t&&e<=o&&r>=l&&r<=c}function Ep(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function uM(s,r,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:a}=s,d=i*r,u=a*r;return t>o-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:v0(e)})})}handleScroll(r){const e=ln(r),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const a=this.getViewportScrollPosition();l=a.top,c=a.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((a,d)=>{a.clientRect&&e!==d&&e.contains(d)&&Ep(a.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function pM(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const a=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-d.x+this._passiveTransform.x,u.y=a.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:n,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new hM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ct(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Td(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Zt(t)),this._handles.forEach(t=>Td(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Zt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,ub),e.addEventListener("touchstart",this._pointerDown,_M),e.addEventListener("dragstart",this._nativeDragStart,ub)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Zt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Td(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Td(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Sp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),cM(t,!1,x0),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=Sp(e),l=!o&&0!==e.button,c=this._rootElement,n=ln(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=o?To(e):tg(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||a)return;if(this._handles.length){const p=c.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=v0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){cM(this._rootElement,!0,x0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(r),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,o),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let o;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),o=CM(c,this._document),this._previewRef=c,r.matchSize?yM(o,l):o.style.transform=hb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=pM(this._rootElement),yM(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return y0(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},x0),Td(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function PR(s){const r=getComputedStyle(s),e=w0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=w0(r,"transition-duration"),c=w0(r,"transition-delay");return dM(l[o])+dM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||ln(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=CM(this._placeholderRef,this._document)):t=pM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():r,c=Sp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Sp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:a}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(a-c);t=bM(t,n.left+l,n.right-(i-l)),o=bM(o,d,u)}return{x:t,y:o}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Td(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,ub),r.removeEventListener("touchstart",this._pointerDown,_M),r.removeEventListener("dragstart",this._nativeDragStart,ub)}_applyRootElementTransform(r,e){const t=hb(r,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=db(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=hb(r,e);this._preview.style.transform=db(o,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Sp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=ln(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Ep(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Zt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function hb(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function bM(s,r,e){return Math.max(r,Math.min(e,s))}function Sp(s){return"t"===s.type[0]}function CM(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function yM(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=hb(r.left,r.top)}function Mp(s,r){return Math.max(0,Math.min(r,s))}class BR{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),a=l[c],u=a.clientRect,p=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,p),H=this._getSiblingOffsetPx(i,l,p),z=l.slice();return function VR(s,r,e){const t=Mp(r,s.length-1),o=Mp(e,s.length-1);if(t===o)return;const l=s[t],c=o{if(z[Ve]===ae)return;const ot=ae.drag===r,mt=ot?b:H,Ut=ot?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=mt,n?(Ut.style.transform=db(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Ep(ae.clientRect,0,mt)):(Ut.style.transform=db(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Ep(ae.clientRect,mt,0))}),this._previousSwap.overlaps=A0(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(r,e,t):o,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let a=c[l];if(a===r&&(a=c[l+1]),!a&&(null==l||-1===l||l-1&&c.splice(n,1),a&&!this._dragDropRegistry.isDragging(a)){const d=a.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else Zt(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Ep(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:v0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const o="horizontal"===this.orientation;let l=o?e.left-r.left:e.top-r.top;return-1===t&&(l+=o?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const o="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",a=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[a]:n+=l[i]-c.clientRect[a]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(o){const a=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me.x,this.entered=new Me.x,this.exited=new Me.x,this.dropped=new Me.x,this.sorted=new Me.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Yt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function HR(s=0,r=qu.z){return s<0&&(s=0),(0,$u.H)(s,s,r)}(0,xg).pipe(zt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=Zt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new hM(t),this._sortStrategy=new BR(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===r.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Zt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,o){if(this.sortingDisabled||!this._clientRect||!uM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||uM(c.clientRect,.05,r,e)&&([o,l]=function LR(s,r,e,t){const o=AM(r,t),l=xM(r,e);let c=0,n=0;if(o){const i=s.scrollTop;1===o?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=AM(i,e),l=xM(i,r),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Zt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Zt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Zt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&A0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(o=>o._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!A0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=Zt(this.element);return o===l||l.contains(o)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=jr(Zt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function AM(s,r){const{top:e,bottom:t,height:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function xM(s,r){const{left:e,right:t,width:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const pb=Gn({passive:!1,capture:!0});let FR=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new Me.x,this.pointerUp=new Me.x,this.scroll=new Me.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,pb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,pb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:pb}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:pb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Je.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,mr.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const jR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let NR=(()=>{class s{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=jR){return new kR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new OR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(g.R0b),g.LFG($n),g.LFG(FR))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[NR],imports:[Yn]}),s})(),UR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),YR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),iI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[YR,Ae,Ae]}),s})(),gI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,Ae]}),s})();new g.OlP("mat-selectsearch-default-options");let yI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[[T.ez,m,fr,Q_,Sn,wl,il]]}),s})(),wI=(()=>{class s extends Mc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const vI={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let MM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:hn,useClass:wI},{provide:Os,useValue:vI}],imports:[T.ez,Q_,ob,f,_0,zR,Zn,_o,g0,Wc,wl,C0,Sn,Yc,fr,il,Cr,m,Fe,pn,Bh,UR,iI,p0,gI,Rc,el,yI,qr,Ar,km,b0]}),s})(),Ik=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,fr,Sn,_o,MM,Zn,Cr,m,Fe,C0]}),s})(),Vk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ar,fr,Zn]}),s})(),Bk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Oh],imports:[T.ez,b0,Zn,Bh]}),s})();function IM(s){return new g.vHH(3e3,!1)}function b1(){return typeof window<"u"&&typeof window.document<"u"}function D0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Xo(s){switch(s.length){case 0:return new qs;case 1:return s[0];default:return new Wg(s)}}function kM(s,r,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,a=null;if(t.forEach(d=>{const u=d.get("offset"),p=u==i,b=p&&a||new Map;d.forEach((H,z)=>{let ae=z,Ve=H;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),Ve){case"!":Ve=o.get(z);break;case _r:Ve=l.get(z);break;default:Ve=r.normalizeStyleValue(z,ae,Ve,c)}b.set(ae,Ve)}),p||n.push(b),a=b,i=u}),c.length)throw function o1(s){return new g.vHH(3502,!1)}();return n}function H0(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&P0(e,"start",s)));break;case"done":s.onDone(()=>t(e&&P0(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&P0(e,"destroy",s)))}}function P0(s,r,e){const l=R0(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function R0(s,r,e,t,o="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Dn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function VM(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let I0=(s,r)=>!1,BM=(s,r,e)=>[],OM=null;function k0(s){const r=s.parentNode||s.host;return r===OM?null:r}(D0()||typeof Element<"u")&&(b1()?(OM=(()=>document.documentElement)(),I0=(s,r)=>{for(;r;){if(r===s)return!0;r=k0(r)}return!1}):I0=(s,r)=>s.contains(r),BM=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Rl=null,LM=!1;const FM=I0,jM=BM;let NM=(()=>{class s{validateStyleProperty(e){return function y1(s){Rl||(Rl=function w1(){return typeof document<"u"?document.body:null}()||{},LM=!!Rl.style&&"WebkitAppearance"in Rl.style);let r=!0;return Rl.style&&!function C1(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Rl.style,!r&&LM&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Rl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return FM(e,t)}getParentElement(e){return k0(e)}query(e,t,o){return jM(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new qs(o,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),V0=(()=>{class s{}return s.NOOP=new NM,s})();const B0="ng-enter",mb="ng-leave",_b="ng-trigger",bb=".ng-trigger",UM="ng-animating",O0=".ng-animating";function es(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:L0(parseFloat(r[1]),r[2])}function L0(s,r){return"s"===r?1e3*s:s}function Cb(s,r,e){return s.hasOwnProperty("duration")?s:function x1(s,r,e){let o,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(IM()),{duration:0,delay:0,easing:""};o=L0(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=L0(parseFloat(i),n[4]));const a=n[5];a&&(c=a)}else o=s;if(!e){let n=!1,i=r.length;o<0&&(r.push(function Ok(){return new g.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function Lk(){return new g.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,IM())}return{duration:o,delay:l,easing:c}}(s,r,e)}function Hp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GM(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function ts(s,r=new Map,e){if(e)for(let[t,o]of e)r.set(t,o);for(let[t,o]of s)r.set(t,o);return r}function WM(s,r,e){return e?r+":"+e+";":""}function $M(s){let r="";for(let e=0;e{const l=j0(o);e&&!e.has(o)&&e.set(o,s.style[l]),s.style[l]=t}),D0()&&$M(s))}function Il(s,r){s.style&&(r.forEach((e,t)=>{const o=j0(t);s.style[o]=""}),D0()&&$M(s))}function Pp(s){return Array.isArray(s)?1==s.length?s[0]:Gg(s):s}const F0=new RegExp("{{\\s*(.+?)\\s*}}","g");function YM(s){let r=[];if("string"==typeof s){let e;for(;e=F0.exec(s);)r.push(e[1]);F0.lastIndex=0}return r}function yb(s,r,e){const t=s.toString(),o=t.replace(F0,(l,c)=>{let n=r[c];return null==n&&(e.push(function jk(s){return new g.vHH(3003,!1)}()),n=""),n.toString()});return o==t?s:o}function wb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const S1=/-+([a-z0-9])/g;function j0(s){return s.replace(S1,(...r)=>r[1].toUpperCase())}function M1(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function Nk(s){return new g.vHH(3004,!1)}()}}function QM(s,r){return window.getComputedStyle(s)[r]}function k1(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function V1(s,r,e){if(":"==s[0]){const i=function B1(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function e1(s){return new g.vHH(3015,!1)}()),r;const o=t[1],l=t[2],c=t[3];r.push(JM(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&r.push(JM(c,o))}(t,e,r)):e.push(s),e}const Tb=new Set(["true","1"]),Eb=new Set(["false","0"]);function JM(s,r){const e=Tb.has(s)||Eb.has(s),t=Tb.has(r)||Eb.has(r);return(o,l)=>{let c="*"==s||s==o,n="*"==r||r==l;return!c&&e&&"boolean"==typeof o&&(c=o?Tb.has(s):Eb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?Tb.has(r):Eb.has(r)),c&&n}}const O1=new RegExp("s*:selfs*,?","g");function N0(s,r,e,t){return new L1(s).build(r,e,t)}class L1{constructor(r){this._driver=r}build(r,e,t){const o=new N1(e);return this._resetContextStyleTimingState(o),Hn(this,Pp(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function Uk(){return new g.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,a=i.name;a.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=a}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function Gk(){return new g.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),o=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{YM(i).forEach(a=>{c.hasOwnProperty(a)||l.add(a)})})}),l.size&&(wb(l.values()),e.errors.push(function qk(s,r){return new g.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:o?{params:o}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,Pp(r.animation),e);return{type:1,matchers:k1(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:kl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:kl(r.options)}}visitGroup(r,e){const t=e.currentTime;let o=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:kl(r.options)}}visitAnimate(r,e){const t=function U1(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return z0(Cb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=z0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=Cb(e,r);return z0(o.duration,o.delay,o.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let o,l=r.styles?r.styles:je({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const a={};t.easing&&(a.easing=t.easing),c=je(a)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of o)"string"==typeof n?n===_r?t.push(n):e.errors.push(new g.vHH(3002,!1)):t.push(GM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const a=e.collectedStyles.get(e.currentQuerySelector),d=a.get(i);let u=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function $k(s,r,e,t,o){return new g.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&a.set(i,{startTime:l,endTime:o}),e.options&&function E1(s,r,e){const t=r.params||{},o=YM(s);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function Fk(s){return new g.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Yk(){return new g.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,a=0;const d=r.steps.map(Ve=>{const ot=this._makeStyleAst(Ve,e);let mt=null!=ot.offset?ot.offset:function z1(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(ot.styles),Ut=0;return null!=mt&&(l++,Ut=ot.offset=mt),i=i||Ut<0||Ut>1,n=n||Ut0&&l{const mt=p>0?ot==b?1:p*ot:c[ot],Ut=mt*ae;e.currentTime=H+z.delay+Ut,z.duration=Ut,this._validateStyleAst(Ve,e),Ve.offset=mt,t.styles.push(Ve)}),t}visitReference(r,e){return{type:8,animation:Hn(this,Pp(r.animation),e),options:kl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:kl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:kl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,o=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function F1(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(O1,"")),s=s.replace(/@\*/g,bb).replace(/@\w+/g,e=>bb+"-"+e.slice(1)).replace(/:animating/g,O0),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,Pp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:kl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function Zk(){return new g.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Cb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,Pp(r.animation),e),timings:t,options:null}}}class N1{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function kl(s){return s?(s=Hp(s)).params&&(s.params=function j1(s){return s?Hp(s):null}(s.params)):s={},s}function z0(s,r,e){return{duration:s,delay:r,easing:e}}function U0(s,r,e,t,o,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class Sb{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const W1=new RegExp(":enter","g"),Y1=new RegExp(":leave","g");function G0(s,r,e,t,o,l=new Map,c=new Map,n,i,a=[]){return(new Q1).buildKeyframes(s,r,e,t,o,l,c,n,i,a)}class Q1{buildKeyframes(r,e,t,o,l,c,n,i,a,d=[]){a=a||new Sb;const u=new q0(r,e,a,o,l,d,[]);u.options=i;const p=i.delay?es(i.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[U0(e,[],[],[],0,p,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?es(t.duration):null,n=null!=t.delay?es(t.delay):null;return 0!==c&&r.forEach(i=>{const a=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,a.duration+a.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let o=e;const l=r.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Mb);const c=es(l.delay);o.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let o=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?es(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Cb(e.params?yb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,o=r.options||{},l=o.delay?es(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Mb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((a,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,a);l&&u.delayNextStep(l),a===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,o=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=o.currentTime-u+(o.startTime-t.currentTimeline.startTime)}}const Mb={};class q0{constructor(r,e,t,o,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Db(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let o=this.options;null!=t.duration&&(o.duration=es(t.duration)),null!=t.delay&&(o.delay=es(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=yb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return r}createSubContext(r=null,e,t){const o=e||this.element,l=new q0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Mb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const o={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new J1(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,o,l,c){let n=[];if(o&&n.push(this.element),r.length>0){r=(r=r.replace(W1,"."+this._enterClassName)).replace(Y1,"."+this._leaveClassName);let a=this._driver.query(this.element,r,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),n.push(...a)}return!l&&0==n.length&&c.push(function Xk(s){return new g.vHH(3014,!1)}()),n}}class Db{constructor(r,e,t,o){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Db(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function K1(s,r){const e=new Map;let t;return s.forEach(o=>{if("*"===o){t=t||r.keys();for(let l of t)e.set(l,_r)}else ts(o,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const a=yb(i,l,t);this._pendingStyles.set(n,a),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const a=ts(n,new Map,this._backFill);a.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||a.set("offset",i/this.duration),o.push(a)});const l=r.size?wb(r.values()):[],c=e.size?wb(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return U0(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class J1 extends Db{constructor(r,e,t,o,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=ts(r[0]);i.set("offset",0),l.push(i);const a=ts(r[0]);a.set("offset",XM(n)),l.push(a);const d=r.length-1;for(let u=1;u<=d;u++){let p=ts(r[u]);const b=p.get("offset");p.set("offset",XM((e+b*t)/c)),l.push(p)}t=c,e=0,o="",r=l}return U0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function XM(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class W0{}const Z1=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class X1 extends W0{normalizePropertyName(r,e){return j0(r)}normalizeStyleValue(r,e,t,o){let l="";const c=t.toString().trim();if(Z1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function zk(s,r){return new g.vHH(3005,!1)}())}return c+l}}function eD(s,r,e,t,o,l,c,n,i,a,d,u,p){return{type:0,element:s,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:a,postStyleProps:d,totalTime:u,errors:p}}const $0={};class tD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,o){return function eV(s,r,e,t,o){return s.some(l=>l(r,e,t,o))}(this.ast.matchers,r,e,t,o)}buildStyles(r,e,t){let o=this._stateStyles.get("*");return void 0!==r&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(e,t):new Map}build(r,e,t,o,l,c,n,i,a,d){const u=[],p=this.ast.options&&this.ast.options.params||$0,H=this.buildStyles(t,n&&n.params||$0,u),z=i&&i.params||$0,ae=this.buildStyles(o,z,u),Ve=new Set,ot=new Map,mt=new Map,Ut="void"===o,Sr={params:tV(z,p),delay:this.ast.options?.delay},rr=d?[]:G0(r,e,this.ast.animation,l,c,H,ae,Sr,a,u);let rn=0;if(rr.forEach(Ua=>{rn=Math.max(Ua.duration+Ua.delay,rn)}),u.length)return eD(e,this._triggerName,t,o,Ut,H,ae,[],[],ot,mt,rn,u);rr.forEach(Ua=>{const Ga=Ua.element,mD=Dn(ot,Ga,new Set);Ua.preStyleProps.forEach(Vl=>mD.add(Vl));const Ip=Dn(mt,Ga,new Set);Ua.postStyleProps.forEach(Vl=>Ip.add(Vl)),Ga!==e&&Ve.add(Ga)});const za=wb(Ve.values());return eD(e,this._triggerName,t,o,Ut,H,ae,rr,za,ot,mt,rn)}}function tV(s,r){const e=Hp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class iV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,o=Hp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=yb(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class rV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new iV(o.style,o.options&&o.options.params||{},t))}),iD(this.states,"true","1"),iD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new tD(r,o,this.states))}),this.fallbackTransition=function aV(s,r,e){return new tD(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,o){return this.transitionFactories.find(c=>c.match(r,e,t,o))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function iD(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const oV=new Sb;class sV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=N0(this._driver,e,t,[]);if(t.length)throw function s1(s){return new g.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const o=r.element,l=kM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(o,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const o=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=G0(this._driver,e,l,B0,mb,new Map,new Map,t,oV,o),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(o.push(function l1(){return new g.vHH(3300,!1)}()),c=[]),o.length)throw function c1(s){return new g.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((p,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const a=Xo(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,a),a.onDestroy(()=>this.destroy(r)),this.players.push(a),a}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function d1(s){return new g.vHH(3301,!1)}();return e}listen(r,e,t,o){const l=R0(e,"","","");return H0(this._getPlayer(r),t,l,o),()=>{}}command(r,e,t,o){if("register"==t)return void this.register(r,o[0]);if("create"==t)return void this.create(r,e,o[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(r)}}}const nD="ng-animate-queued",Y0="ng-animate-disabled",hV=[],rD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ir="__ng_removed";class Q0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function _V(s){return s??null}(t?r.value:r),t){const l=Hp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const Rp="void",J0=new Q0(Rp);class fV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,nr(e,this._hostClassName)}listen(r,e,t,o){if(!this._triggers.has(e))throw function u1(s,r){return new g.vHH(3302,!1)}();if(null==t||0==t.length)throw function h1(s){return new g.vHH(3303,!1)}();if(!function bV(s){return"start"==s||"done"==s}(t))throw function p1(s,r){return new g.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(nr(r,_b),nr(r,_b+"-"+e),n.set(e,J0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function f1(s){return new g.vHH(3401,!1)}();return e}trigger(r,e,t,o=!0){const l=this._getTrigger(e),c=new K0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(nr(r,_b),nr(r,_b+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const a=new Q0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&a.absorbOptions(i.options),n.set(e,a),i||(i=J0),a.value!==Rp&&i.value===a.value){if(!function wV(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let o=0;o{Il(r,ae),Xr(r,Ve)})}return}const p=Dn(this._engine.playersByElement,r,[]);p.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,a.value,r,a.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:a,player:c,isFallbackTransition:H}),H||(nr(r,nD),c.onStart(()=>{Sd(r,nD)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let Ve=ae.indexOf(c);Ve>=0&&ae.splice(Ve,1)}}),this.players.push(c),p.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,bb,!0);t.forEach(o=>{if(o[ir])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(r,e,t,o){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,a)=>{if(c.set(a,i.value),this._triggers.has(a)){const d=this.trigger(r,a,Rp,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&Xo(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,a=t.get(c)||J0,d=new Q0(Rp),u=new K0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:a,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)o=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(r),o)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[ir];(!l||l===rD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){nr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=R0(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,H0(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class gV{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new fV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const a=t.indexOf(i);t.splice(a+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return o.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let o=this._namespaceLookup[r];o&&o.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,o){if(Hb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(r,e,t,o){if(!Hb(e))return;const l=e[ir];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),nr(r,Y0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Sd(r,Y0))}removeNode(r,e,t,o){if(Hb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(r,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(r,e,t,o,l){this.collectedLeaveElements.push(e),e[ir]={namespaceId:r,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,o,l){return Hb(e)?this._fetchNamespace(r).listen(e,t,o,l):()=>{}}_buildInstruction(r,e,t,o,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,o,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,bb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,O0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Xo(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[ir];if(e&&e.setForRemoval){if(r[ir]=rD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Y0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Xo(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(r){throw function g1(s){return new g.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Sb,o=[],l=new Map,c=[],n=new Map,i=new Map,a=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Ze=this.driver.query(Ge,".ng-animate-queued",!0);for(let it=0;it{const it=B0+z++;H.set(Ze,it),Ge.forEach(wt=>nr(wt,it))});const ae=[],Ve=new Set,ot=new Set;for(let Ge=0;GeVe.add(wt)):ot.add(Ze))}const mt=new Map,Ut=sD(p,Array.from(Ve));Ut.forEach((Ge,Ze)=>{const it=mb+z++;mt.set(Ze,it),Ge.forEach(wt=>nr(wt,it))}),r.push(()=>{b.forEach((Ge,Ze)=>{const it=H.get(Ze);Ge.forEach(wt=>Sd(wt,it))}),Ut.forEach((Ge,Ze)=>{const it=mt.get(Ze);Ge.forEach(wt=>Sd(wt,it))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Sr=[],rr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(it=>{const wt=it.player,ki=it.element;if(Sr.push(wt),this.collectedEnterElements.length){const Zi=ki[ir];if(Zi&&Zi.setForMove){if(Zi.previousTriggersValues&&Zi.previousTriggersValues.has(it.triggerName)){const Bl=Zi.previousTriggersValues.get(it.triggerName),ar=this.statesByElement.get(it.element);if(ar&&ar.has(it.triggerName)){const Ib=ar.get(it.triggerName);Ib.value=Bl,ar.set(it.triggerName,Ib)}}return void wt.destroy()}}const ea=!u||!this.driver.containsElement(u,ki),Pn=mt.get(ki),is=H.get(ki),ri=this._buildInstruction(it,t,is,Pn,ea);if(ri.errors&&ri.errors.length)return void rr.push(ri);if(ea)return wt.onStart(()=>Il(ki,ri.fromStyles)),wt.onDestroy(()=>Xr(ki,ri.toStyles)),void o.push(wt);if(it.isFallbackTransition)return wt.onStart(()=>Il(ki,ri.fromStyles)),wt.onDestroy(()=>Xr(ki,ri.toStyles)),void o.push(wt);const CD=[];ri.timelines.forEach(Zi=>{Zi.stretchStartingKeyframe=!0,this.disabledNodes.has(Zi.element)||CD.push(Zi)}),ri.timelines=CD,t.append(ki,ri.timelines),c.push({instruction:ri,player:wt,element:ki}),ri.queriedElements.forEach(Zi=>Dn(n,Zi,[]).push(wt)),ri.preStyleProps.forEach((Zi,Bl)=>{if(Zi.size){let ar=i.get(Bl);ar||i.set(Bl,ar=new Set),Zi.forEach((Ib,ex)=>ar.add(ex))}}),ri.postStyleProps.forEach((Zi,Bl)=>{let ar=a.get(Bl);ar||a.set(Bl,ar=new Set),Zi.forEach((Ib,ex)=>ar.add(ex))})});if(rr.length){const Ge=[];rr.forEach(Ze=>{Ge.push(function m1(s,r){return new g.vHH(3505,!1)}())}),Sr.forEach(Ze=>Ze.destroy()),this.reportError(Ge)}const rn=new Map,za=new Map;c.forEach(Ge=>{const Ze=Ge.element;t.has(Ze)&&(za.set(Ze,Ze),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,rn))}),o.forEach(Ge=>{const Ze=Ge.element;this._getPreviousPlayers(Ze,!1,Ge.namespaceId,Ge.triggerName,null).forEach(wt=>{Dn(rn,Ze,[]).push(wt),wt.destroy()})});const Ua=ae.filter(Ge=>cD(Ge,i,a)),Ga=new Map;oD(Ga,this.driver,ot,a,_r).forEach(Ge=>{cD(Ge,i,a)&&Ua.push(Ge)});const Ip=new Map;b.forEach((Ge,Ze)=>{oD(Ip,this.driver,new Set(Ge),i,"!")}),Ua.forEach(Ge=>{const Ze=Ga.get(Ge),it=Ip.get(Ge);Ga.set(Ge,new Map([...Array.from(Ze?.entries()??[]),...Array.from(it?.entries()??[])]))});const Vl=[],_D=[],bD={};c.forEach(Ge=>{const{element:Ze,player:it,instruction:wt}=Ge;if(t.has(Ze)){if(d.has(Ze))return it.onDestroy(()=>Xr(Ze,wt.toStyles)),it.disabled=!0,it.overrideTotalTime(wt.totalTime),void o.push(it);let ki=bD;if(za.size>1){let Pn=Ze;const is=[];for(;Pn=Pn.parentNode;){const ri=za.get(Pn);if(ri){ki=ri;break}is.push(Pn)}is.forEach(ri=>za.set(ri,ki))}const ea=this._buildAnimation(it.namespaceId,wt,rn,l,Ip,Ga);if(it.setRealPlayer(ea),ki===bD)Vl.push(it);else{const Pn=this.playersByElement.get(ki);Pn&&Pn.length&&(it.parentPlayer=Xo(Pn)),o.push(it)}}else Il(Ze,wt.fromStyles),it.onDestroy(()=>Xr(Ze,wt.toStyles)),_D.push(it),d.has(Ze)&&o.push(it)}),_D.forEach(Ge=>{const Ze=l.get(Ge.element);if(Ze&&Ze.length){const it=Xo(Ze);Ge.setRealPlayer(it)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ea.destroyed);ki.length?CV(this,Ze,ki):this.processLeaveNode(Ze)}return ae.length=0,Vl.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Ze=this.players.indexOf(Ge);this.players.splice(Ze,1)}),Ge.play()}),Vl}elementContainsData(r,e){let t=!1;const o=e[ir];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Rp;n.forEach(a=>{a.queued||!i&&a.triggerName!=o||c.push(a)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const a=i.element,d=a!==l,u=Dn(t,a,[]);this._getPreviousPlayers(a,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}Il(l,e.fromStyles)}_buildAnimation(r,e,t,o,l,c){const n=e.triggerName,i=e.element,a=[],d=new Set,u=new Set,p=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[ir];if(ae&&ae.removedBeforeQueried)return new qs(H.duration,H.delay);const Ve=z!==i,ot=function yV(s){const r=[];return lD(s,r),r}((t.get(z)||hV).map(rn=>rn.getRealPlayer())).filter(rn=>!!rn.element&&rn.element===z),mt=l.get(z),Ut=c.get(z),Sr=kM(0,this._normalizer,0,H.keyframes,mt,Ut),rr=this._buildPlayer(H,Sr,ot);if(H.subTimeline&&o&&u.add(z),Ve){const rn=new K0(r,n,z);rn.setRealPlayer(rr),a.push(rn)}return rr});a.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function mV(s,r,e){let t=s.get(r);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>nr(H,UM));const b=Xo(p);return b.onDestroy(()=>{d.forEach(H=>Sd(H,UM)),Xr(i,e.toStyles)}),u.forEach(H=>{Dn(o,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new qs(r.duration,r.delay)}}class K0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new qs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>H0(r,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Hb(s){return s&&1===s.nodeType}function aD(s,r){const e=s.style.display;return s.style.display=r??"none",e}function oD(s,r,e,t,o){const l=[];e.forEach(i=>l.push(aD(i)));const c=[];t.forEach((i,a)=>{const d=new Map;i.forEach(u=>{const p=r.computeStyle(a,u,o);d.set(u,p),(!p||0==p.length)&&(a[ir]=pV,c.push(a))}),s.set(a,d)});let n=0;return e.forEach(i=>aD(i,l[n++])),c}function sD(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const o=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const a=n.parentNode;return i=e.has(a)?a:o.has(a)?1:c(a),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function nr(s,r){s.classList?.add(r)}function Sd(s,r){s.classList?.remove(r)}function CV(s,r,e){Xo(e).onDone(()=>s.processLeaveNode(r))}function lD(s,r){for(let e=0;eo.add(l)):r.set(s,t),e.delete(s),!0}class Pb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new gV(r,e,t),this._timelineEngine=new sV(r,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(r,e,t,o,l){const c=r+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=N0(this._driver,l,i,[]);if(i.length)throw function a1(s,r){return new g.vHH(3404,!1)}();n=function nV(s,r,e){return new rV(s,r,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,o){this._transitionEngine.insertNode(r,e,t,o)}onRemove(r,e,t,o){this._transitionEngine.removeNode(r,e,o||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,o){if("@"==t.charAt(0)){const[l,c]=VM(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(r,e,t,o)}listen(r,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=VM(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,o,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let AV=(()=>{class s{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Xr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xr(this._element,this._initialStyles),this._endStyles&&(Xr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Il(this._element,this._endStyles),this._endStyles=null),Xr(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function Z0(s){let r=null;return s.forEach((e,t)=>{(function xV(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class dD{constructor(r,e,t,o){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&r.set(o,this._finished?t:QM(this.element,o))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class TV{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return FM(r,e)}getParentElement(r){return k0(r)}query(r,e,t){return jM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const a=new Map,d=c.filter(b=>b instanceof dD);(function D1(s,r){return 0===s||0===r})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>a.set(z,H))});let u=function T1(s){return s.length?s[0]instanceof Map?s:s.map(r=>GM(r)):[]}(e).map(b=>ts(b));u=function H1(s,r,e){if(e.size&&r.length){let t=r[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,QM(s,n)))}}return r}(r,u,a);const p=function vV(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=Z0(r[0]),r.length>1&&(t=Z0(r[r.length-1]))):r instanceof Map&&(e=Z0(r)),e||t?new AV(s,e,t):null}(r,u);return new dD(r,u,i,p)}}let EV=(()=>{class s extends Ug{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:g.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?Gg(e):e;return uD(this._renderer,null,t,"register",[o]),new SV(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class SV extends class Gs{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new MV(this._id,r,e||{},this._renderer)}}class MV{constructor(r,e,t,o){this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return uD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function uD(s,r,e,t,o){return s.setProperty(r,`@@${e}:${t}`,o)}const hD="@.disabled";let DV=(()=>{class s{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new pD("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new HV(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(Pb),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class pD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,o=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,o)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,o){this.delegate.setAttribute(r,e,t,o)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,o){this.delegate.setStyle(r,e,t,o)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==hD?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class HV extends pD{constructor(r,e,t,o){super(e,t,o),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hD?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const o=function PV(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function RV(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const fD=[{provide:Ug,useClass:EV},{provide:W0,useFactory:function kV(){return new X1}},{provide:Pb,useClass:(()=>{class s extends Pb{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(V0),g.LFG(W0),g.LFG(g.z2F))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:g.FYo,useFactory:function VV(s,r,e){return new DV(s,r,e)},deps:[ue,Pb,g.R0b]}],X0=[{provide:V0,useFactory:()=>new TV},{provide:g.QbO,useValue:"BrowserAnimations"},...fD],gD=[{provide:V0,useClass:NM},{provide:g.QbO,useValue:"NoopAnimations"},...fD];let BV=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?gD:X0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:X0,imports:[na]}),s})();const OV={provide:y.TP,useExisting:(0,g.Gpc)(()=>o_),multi:!0};function LV(s){return new dH(s,"./assets/i18n/",".json")}function FV(s){const r={basePath:s.getProperty("api_url")};return new et(r)}const jV=s=>()=>s.loadConfigs();let NV=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Ih),g.LFG(sl))},s.\u0275mod=g.oAB({type:s,bootstrap:[Co]}),s.\u0275inj=g.cJS({providers:[Ih,{provide:g.ip1,useFactory:jV,multi:!0,deps:[fH]},{provide:et,useFactory:FV,deps:[Qr]},o_,OV,{provide:gH,useClass:eA},{provide:Ms.Hy,useFactory:()=>localStorage}],imports:[na,BV,y.JF,i_,cH,b0,Ik,Sn,MM,C0,km,Vk,Ms.zr.forRoot(),Bk,Zn.forRoot({loader:{provide:qe,useFactory:LV,deps:[y.eN]}})]}),s})();(0,g.G48)(),Ye().bootstrapModule(NV).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(g,V){var O={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,X,ie,de,he){for(var ge,Be,Oe,we,_e,ve,$e,De,Se,Ee,oe,se,fe;he>=64;){for(ge=X[0],Be=X[1],Oe=X[2],we=X[3],_e=X[4],ve=X[5],$e=X[6],De=X[7],Ee=0;Ee<16;Ee++)ne[Ee]=(255&ie[oe=de+4*Ee])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Ee=16;Ee<64;Ee++)ne[Ee]=((se=((Se=ne[Ee-2])>>>17|Se<<15)^(Se>>>19|Se<<13)^Se>>>10)+ne[Ee-7]|0)+((fe=((Se=ne[Ee-15])>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3)+ne[Ee-16]|0);for(Ee=0;Ee<64;Ee++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&$e)|0)+(De+(V[Ee]+ne[Ee]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Be^ge&Oe^Be&Oe)|0,De=$e,$e=ve,ve=_e,_e=we+se|0,we=Oe,Oe=Be,Be=ge,ge=se+fe|0;X[0]+=ge,X[1]+=Be,X[2]+=Oe,X[3]+=we,X[4]+=_e,X[5]+=ve,X[6]+=$e,X[7]+=De,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=g.digestLength,this.blockSize=g.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var X=0;X0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,X,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;return this},ne.prototype.finish=function(X){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Be=ie%64<56?64:128;this.buffer[de]=128;for(var Oe=de+1;Oe>>24&255,this.buffer[Be-7]=he>>>16&255,this.buffer[Be-6]=he>>>8&255,this.buffer[Be-5]=he>>>0&255,this.buffer[Be-4]=ge>>>24&255,this.buffer[Be-3]=ge>>>16&255,this.buffer[Be-2]=ge>>>8&255,this.buffer[Be-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Oe=0;Oe<8;Oe++)X[4*Oe+0]=this.state[Oe]>>>24&255,X[4*Oe+1]=this.state[Oe]>>>16&255,X[4*Oe+2]=this.state[Oe]>>>8&255,X[4*Oe+3]=this.state[Oe]>>>0&255;return this},ne.prototype.digest=function(){var X=new Uint8Array(this.digestLength);return this.finish(X),X},ne.prototype._saveState=function(X){for(var ie=0;iethis.blockSize)(new I).update(X).finish(ie).clean();else for(var de=0;de1&&X.update(ne),ie&&X.update(ie),X.update(de),X.finish(ne),de[0]++}g.HMAC=j,g.hash=W,g.default=W,g.hmac=Q;var $=new Uint8Array(g.digestLength);g.hkdf=function U(ne,X,ie,de){void 0===X&&(X=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(X,ne),Be=new j(ge),Oe=new Uint8Array(Be.digestLength),we=Oe.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Be[1]=$e>>>16&255,Be[2]=$e>>>8&255,Be[3]=$e>>>0&255,he.reset(),he.update(X),he.update(Be),he.finish(we);for(var De=0;De=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,X=document.createElement("a");X.download=U=U||$.name||"download",X.rel="noopener","string"==typeof $?(X.href=$,X.origin===location.origin?j(X):I(X.href)?O($,U,te):j(X,X.target="_blank")):(X.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(X.href)},4e4),setTimeout(function(){j(X)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var X="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||X&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Oe=he.result;Oe=de?Oe:Oe.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Oe:location=Oe,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Be=ge.createObjectURL($);ne?ne.location=Be:location.href=Be,ne=null,setTimeout(function(){ge.revokeObjectURL(Be)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(N,[]))&&(F.exports=g)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),g=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(X){X&&(this._subscribe=X)}lift(X){const ie=new te;return ie.source=this,ie.operator=X,ie}subscribe(X,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,g.Nn)(te)}(X)?X:new T.Hp(X,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Be}=this;he.add(ge?ge.call(he,Be):Be?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(X){try{return this._subscribe(X)}catch(ie){X.error(ie)}}forEach(X,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Be=>{try{X(Be)}catch(Oe){he(Oe),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(X){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(X)}[V.L](){return this}pipe(...X){return(0,O.U)(X)(this)}toPromise(X){return new(X=G(X))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),g=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:X}=this;return te||ne?g.Lc:(this.currentObservers=null,X.push(U),new g.w0(()=>{this.currentObservers=null,(0,I.P)(X,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:X}=this;te?U.error(ne):X&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:g.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),g=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends g.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Nn)(_e)&&_e.add(this)):this.destination=Oe}static create(_e,ve,$e){return new de(_e,ve,$e)}next(_e){this.isStopped?Be(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Be(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Be(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function X(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch($e){he($e)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch($e){he($e)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,$e){let De;if(super(),(0,T.m)(_e)||!_e)De={next:_e??void 0,error:ve??void 0,complete:$e??void 0};else{let Se;this&&V.v.useDeprecatedNextContext?(Se=Object.create(_e),Se.unsubscribe=()=>this.unsubscribe(),De={next:_e.next&&X(_e.next,Se),error:_e.error&&X(_e.error,Se),complete:_e.complete&&X(_e.complete,Se)}):De=_e}this.destination=new ie(De)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Be(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Oe={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const X of U)X.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(X){$=X instanceof V?X.errors:[X]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const X of ne)try{Q(X)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),g=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const X=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,g.D)(ne);if(0===de.length)return(0,V.D)([],X);const ge=new T.y(function U(ne,X,ie=O.y){return de=>{te(X,()=>{const{length:he}=ne,ge=new Array(he);let Be=he,Oe=he;for(let we=0;we{const _e=(0,V.D)(ne[we],X);let ve=!1;_e.subscribe((0,Q.x)(de,$e=>{ge[we]=$e,ve||(ve=!0,Oe--),Oe||de.next(ie(ge.slice()))},()=>{--Be||de.complete()}))},de)},de)}}(de,X,he?Be=>(0,W.n)(he,Be):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,X,ie){ne?(0,G.f)(ie,ne,X):X()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function g(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>g});const g=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>$e});var T=x(8421),g=x(9672),V=x(4482),O=x(5403);function I(De,Se=0){return(0,V.e)((Ee,oe)=>{Ee.subscribe((0,O.x)(oe,se=>(0,g.f)(oe,De,()=>oe.next(se),Se),()=>(0,g.f)(oe,De,()=>oe.complete(),Se),se=>(0,g.f)(oe,De,()=>oe.error(se),Se)))})}function j(De,Se=0){return(0,V.e)((Ee,oe)=>{oe.add(De.schedule(()=>Ee.subscribe(oe),Se))})}var G=x(9751),U=x(2202),te=x(576);function X(De,Se){if(!De)throw new Error("Iterable cannot be null");return new G.y(Ee=>{(0,g.f)(Ee,Se,()=>{const oe=De[Symbol.asyncIterator]();(0,g.f)(Ee,Se,()=>{oe.next().then(se=>{se.done?Ee.complete():Ee.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Be=x(2206),Oe=x(4532),we=x(3260);function $e(De,Se){return Se?function ve(De,Se){if(null!=De){if((0,ie.c)(De))return function W(De,Se){return(0,T.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,he.z)(De))return function $(De,Se){return new G.y(Ee=>{let oe=0;return Se.schedule(function(){oe===De.length?Ee.complete():(Ee.next(De[oe++]),Ee.closed||this.schedule())})})}(De,Se);if((0,de.t)(De))return function Q(De,Se){return(0,T.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,Be.D)(De))return X(De,Se);if((0,ge.T)(De))return function ne(De,Se){return new G.y(Ee=>{let oe;return(0,g.f)(Ee,Se,()=>{oe=De[U.h](),(0,g.f)(Ee,Se,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Ee.error(ue)}fe?Ee.complete():Ee.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(De,Se);if((0,we.L)(De))return function _e(De,Se){return X((0,we.Q)(De),Se)}(De,Se)}throw(0,Oe.z)(De)}(De,Se):(0,T.Xf)(De)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),g=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function X(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,g.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Be(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Oe(we,_e){var ve,$e,De,Se;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!($e=yield ve.next()).done;)if(_e.next($e.value),_e.closed)return}catch(Ee){De={error:Ee}}finally{try{$e&&!$e.done&&(Se=ve.return)&&(yield Se.call(ve))}finally{if(De)throw De.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),g=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,g.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),g=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,g.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),g=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,g.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),g=x(576);function V(O,I){const j=(0,g.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),g=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=g.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>g});var T=x(930);function g(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),g=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,g.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),g=x(576);function V(O,I){return(0,g.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),g=x(4482),V=x(5403);function O(I,j=T.z){return(0,g.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const X=$;$=null,Q.next(X)}};function ne(){const X=U+I,ie=j.now();if(ie{$=X,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),g=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,g.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),g=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,X){return X?ie=>(0,g.z)(X.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,X)=>{ne.subscribe((0,I.x)(X,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,X=T.z){const ie=(0,U.H)(ne,X);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),g=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),g=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,g.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),g=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});var T=x(4004);function g(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),g=x(4671);function V(O=1/0){return(0,T.z)(g.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),g=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((X,ie)=>$(te,X,ne,ie))((0,g.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,X,ie,de){const he=[];let ge=0,Be=0,Oe=!1;const we=()=>{Oe&&!he.length&&!ge&&$.complete()},_e=$e=>ge{X&&$.next($e),ge++;let De=!1;(0,g.Xf)(U($e,Be++)).subscribe((0,I.x)($,Se=>{ne?.(Se),X?_e(Se):$.next(Se)},()=>{De=!0},void 0,()=>{if(De)try{for(ge--;he.length&&geve(Se)):ve(Se)}we()}catch(Se){$.error(Se)}}))};return G.subscribe((0,I.x)($,_e,()=>{Oe=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),g=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new g.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,X,ie,de=0,he=!1,ge=!1;const Be=()=>{X?.unsubscribe(),X=void 0},Oe=()=>{Be(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Oe(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Be();const $e=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(X=j(we,U))}),$e.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:De=>$e.next(De),error:De=>{ge=!0,Be(),X=j(Oe,G,De),$e.error(De)},complete:()=>{he=!0,Be(),X=j(Oe,$),$e.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),g=x(4482),V=x(5403);function O(I,j){return(0,g.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let X=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,X++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),g=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,g.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),g=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,g.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,X=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,X),U.next(X)},()=>{var X;ne=!1,null===(X=G.complete)||void 0===X||X.call(G),U.complete()},X=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,X),U.error(X)},()=>{var X,ie;ne&&(null===(X=G.unsubscribe)||void 0===X||X.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),g=x(4482),V=x(5403);function O(j=I){return(0,g.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>G});var T=x(4986),g=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:X,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,g.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==X)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Be)=>{let Oe,we,_e=null,ve=0;const $e=De=>{we=(0,W.f)(Be,de,()=>{try{Oe.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Be)}catch(Se){Be.error(Se)}},De)};Oe=ge.subscribe((0,j.x)(Be,De=>{we?.unsubscribe(),ve++,Be.next(_e=De),X>0&&$e(X)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&$e(null!=ne?"number"==typeof ne?ne:+ne-de.now():X)})}function $(U){throw new Q(U)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class g extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends g{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class g{constructor(I,j=g.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}g.now=T.l.now;class V extends g{constructor(I,j=g.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(g,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(g,V,...O):setTimeout(g,V,...O)},clearTimeout(g){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(g)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});const g=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});const g=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),g=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,g.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:g,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&g(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(g,V){if(g){const O=g.indexOf(V);0<=O&&g.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(g){const O=g(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(g,V){return g.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let g=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!g;if(j&&(g={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=g;if(g=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=I)}},9672:(F,N,x)=>{"use strict";function T(g,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?g.add(this.schedule(null,I)):this.unsubscribe()},I);if(g.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(g){return g}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>g});var T=x(576);function g(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(g){return g instanceof Date&&!isNaN(g)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(g){return"function"==typeof g}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),g=x(576);function V(O){return(0,g.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),g=x(576);function V(O){return(0,g.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>g});var T=x(576);function g(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),g=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,g.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});var T=x(576);function g(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>g,e:()=>V});var T=x(576);function g(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(g(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:g}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return g(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>g});var T=x(4671);function g(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),g=x(3410);function V(O){g.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,at){function vt(xi){try{Le(ue.next(xi))}catch(Rn){at(Rn)}}function Dt(xi){try{Le(ue.throw(xi))}catch(Rn){at(Rn)}}function Le(xi){xi.done?He(xi.value):function Ie(He){return He instanceof fe?He:new fe(function(at){at(He)})}(xi.value).then(vt,Dt)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ue=fe.apply(oe,se||[]),He=[];return Ie={},at("next"),at("throw"),at("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function at(Gt){ue[Gt]&&(Ie[Gt]=function(xt){return new Promise(function(yn,ai){He.push([Gt,xt,yn,ai])>1||vt(Gt,xt)})})}function vt(Gt,xt){try{!function Dt(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,xi):Rn(He[0][2],Gt)}(ue[Gt](xt))}catch(yn){Rn(He[0][3],yn)}}function Le(Gt){vt("next",Gt)}function xi(Gt){vt("throw",Gt)}function Rn(Gt,xt){Gt(xt),He.shift(),He.length&&vt(He[0][0],He[0][1])}}function Oe(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(at){return new Promise(function(vt,Dt){!function Ie(He,at,vt,Dt){Promise.resolve(Dt).then(function(Le){He({value:Le,done:vt})},at)}(vt,Dt,(at=oe[He](at)).done,at.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Oe,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Oe,EM:()=>Rr,HT:()=>I,JF:()=>Li,K0:()=>W,Mx:()=>Gi,NF:()=>Xa,O5:()=>St,PC:()=>la,RF:()=>sr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Be,bD:()=>Oi,ez:()=>cr,n9:()=>Di,q:()=>V,w_:()=>j});var T=x(4650);let g=null;function V(){return g}function I(M){g||(g=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function X(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Be)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return X(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Oe=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=X(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie($e(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,$e(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=X,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function $e(M){return M.replace(/\/index.html$/,"")}function Gi(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let St=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new tn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){sa("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){sa("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class tn{constructor(){this.$implicit=null,this.ngIf=null}}function sa(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Bn{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let sr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Bn(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(sr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),la=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),ce=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,ce):this._renderer.removeStyle(this._ngEl.nativeElement,ee,ce)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})(),cr=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Oi="browser";function Xa(M){return M===Oi}let Rr=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new wi((0,T.LFG)(W),window)}),M})();class wi{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function eo(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const ce=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(ce)return ce}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=us(this.window.history)||us(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function us(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Li{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Dd,LE:()=>ge,TP:()=>vt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Oe});var T=x(6895),g=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const le=q.indexOf(":");if(le>0){const Te=q.slice(0,le),Xe=Te.toLowerCase(),st=q.slice(le+1).trim();this.maybeSetNormalizedName(Te,Xe),this.headers.has(Xe)?this.headers.get(Xe).push(st):this.headers.set(Xe,[st])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let le=Y[q];const Te=q.toLowerCase();"string"==typeof le&&(le=[le]),le.length>0&&(this.headers.set(Te,le),this.maybeSetNormalizedName(q,Te))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let le=Y.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(Y.name,q);const Te=("a"===Y.op?this.headers.get(q):void 0)||[];Te.push(...le),this.headers.set(q,Te);break;case"d":const Xe=Y.value;if(Xe){let st=this.headers.get(q);if(!st)return;st=st.filter(ze=>-1===Xe.indexOf(ze)),0===st.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,st)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const X=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(X,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Te=>{const Xe=Te.indexOf("="),[st,ze]=-1==Xe?[Y.decodeKey(Te),""]:[Y.decodeKey(Te.slice(0,Xe)),Y.decodeValue(Te.slice(Xe+1))],Qe=q.get(st)||[];Qe.push(ze),q.set(st,Qe)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const le=Y.fromObject[q],Te=Array.isArray(le)?le.map(he):[he(le)];this.map.set(q,Te)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(le=>{const Te=Y[le];Array.isArray(Te)?Te.forEach(Xe=>{q.push({param:le,value:Xe,op:"a"})}):q.push({param:le,value:Te,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(le=>q+"="+this.encoder.encodeValue(le)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let le=this.map.get(Y.param)||[];const Te=le.indexOf(he(Y.value));-1!==Te&&le.splice(Te,1),le.length>0?this.map.set(Y.param,le):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Oe{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function $e(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Se{constructor(Y,q,le,Te){let Xe;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==le?le:null,Xe=Te):Xe=le,Xe&&(this.reportProgress=!!Xe.reportProgress,this.withCredentials=!!Xe.withCredentials,Xe.responseType&&(this.responseType=Xe.responseType),Xe.headers&&(this.headers=Xe.headers),Xe.context&&(this.context=Xe.context),Xe.params&&(this.params=Xe.params)),this.headers||(this.headers=new $),this.context||(this.context=new Oe),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=q;else{const ze=q.indexOf("?");this.urlWithParams=q+(-1===ze?"?":zeXi.set(tt,Y.setHeaders[tt]),Qe)),Y.setParams&&(ti=Object.keys(Y.setParams).reduce((Xi,tt)=>Xi.set(tt,Y.setParams[tt]),ti)),new Se(q,le,Xe,{params:ti,headers:Qe,context:bt,reportProgress:ze,responseType:Te,withCredentials:st})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class oe{constructor(Y,q=200,le="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||le,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Ee.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Ee.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Ie(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,le,Te={}){let Xe;if(q instanceof Se)Xe=q;else{let Qe,ti;Qe=Te.headers instanceof $?Te.headers:new $(Te.headers),Te.params&&(ti=Te.params instanceof ge?Te.params:new ge({fromObject:Te.params})),Xe=new Se(q,le,void 0!==Te.body?Te.body:null,{headers:Qe,context:Te.context,params:ti,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const st=(0,V.of)(Xe).pipe((0,I.b)(Qe=>this.handler.handle(Qe)));if(q instanceof Se||"events"===Te.observe)return st;const ze=st.pipe((0,j.h)(Qe=>Qe instanceof fe));switch(Te.observe||"body"){case"body":switch(Xe.responseType){case"arraybuffer":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&!(Qe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Qe.body}));case"blob":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&!(Qe.body instanceof Blob))throw new Error("Response is not a Blob.");return Qe.body}));case"text":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&"string"!=typeof Qe.body)throw new Error("Response is not a string.");return Qe.body}));default:return ze.pipe((0,W.U)(Qe=>Qe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(q,le={}){return this.request("DELETE",q,le)}get(q,le={}){return this.request("GET",q,le)}head(q,le={}){return this.request("HEAD",q,le)}jsonp(q,le){return this.request("JSONP",q,{params:(new ge).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,le={}){return this.request("OPTIONS",q,le)}patch(q,le,Te={}){return this.request("PATCH",q,Ie(Te,le))}post(q,le,Te={}){return this.request("POST",q,Ie(Te,le))}put(q,le,Te={}){return this.request("PUT",q,Ie(Te,le))}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(Q))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class at{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const vt=new g.OlP("HTTP_INTERCEPTORS");let Dt=(()=>{class Ce{intercept(q,le){return le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const qa=/^\)\]\}',?\n/;let Wa=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(le=>{const Te=this.xhrFactory.build();if(Te.open(q.method,q.urlWithParams),q.withCredentials&&(Te.withCredentials=!0),q.headers.forEach((Tt,Pt)=>Te.setRequestHeader(Tt,Pt.join(","))),q.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Tt=q.detectContentTypeHeader();null!==Tt&&Te.setRequestHeader("Content-Type",Tt)}if(q.responseType){const Tt=q.responseType.toLowerCase();Te.responseType="json"!==Tt?Tt:"text"}const Xe=q.serializeBody();let st=null;const ze=()=>{if(null!==st)return st;const Tt=Te.statusText||"OK",Pt=new $(Te.getAllResponseHeaders()),an=function Md(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(Te)||q.url;return st=new se({headers:Pt,status:Te.status,statusText:Tt,url:an}),st},Qe=()=>{let{headers:Tt,status:Pt,statusText:an,url:Dr}=ze(),gi=null;204!==Pt&&(gi=typeof Te.response>"u"?Te.responseText:Te.response),0===Pt&&(Pt=gi?200:0);let Hr=Pt>=200&&Pt<300;if("json"===q.responseType&&"string"==typeof gi){const Pr=gi;gi=gi.replace(qa,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ra){gi=Pr,Hr&&(Hr=!1,gi={error:ra,text:gi})}}Hr?(le.next(new fe({body:gi,headers:Tt,status:Pt,statusText:an,url:Dr||void 0})),le.complete()):le.error(new ue({error:gi,headers:Tt,status:Pt,statusText:an,url:Dr||void 0}))},ti=Tt=>{const{url:Pt}=ze(),an=new ue({error:Tt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Pt||void 0});le.error(an)};let bt=!1;const Xi=Tt=>{bt||(le.next(ze()),bt=!0);let Pt={type:Ee.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Pt.total=Tt.total),"text"===q.responseType&&!!Te.responseText&&(Pt.partialText=Te.responseText),le.next(Pt)},tt=Tt=>{let Pt={type:Ee.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Pt.total=Tt.total),le.next(Pt)};return Te.addEventListener("load",Qe),Te.addEventListener("error",ti),Te.addEventListener("timeout",ti),Te.addEventListener("abort",ti),q.reportProgress&&(Te.addEventListener("progress",Xi),null!==Xe&&Te.upload&&Te.upload.addEventListener("progress",tt)),Te.send(Xe),le.next({type:Ee.Sent}),()=>{Te.removeEventListener("error",ti),Te.removeEventListener("abort",ti),Te.removeEventListener("load",Qe),Te.removeEventListener("timeout",ti),q.reportProgress&&(Te.removeEventListener("progress",Xi),null!==Xe&&Te.upload&&Te.upload.removeEventListener("progress",tt)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(T.JF))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new g.OlP("XSRF_COOKIE_NAME"),kn=new g.OlP("XSRF_HEADER_NAME");class ta{}let $a=(()=>{class Ce{constructor(q,le,Te){this.doc=q,this.platform=le,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(In))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Ye=(()=>{class Ce{constructor(q,le){this.tokenService=q,this.headerName=le}intercept(q,le){const Te=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||Te.startsWith("http://")||Te.startsWith("https://"))return le.handle(q);const Xe=this.tokenService.getToken();return null!==Xe&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,Xe)})),le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(ta),g.LFG(kn))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),li=(()=>{class Ce{constructor(q,le){this.backend=q,this.injector=le,this.chain=null}handle(q){if(null===this.chain){const le=this.injector.get(vt,[]);this.chain=le.reduceRight((Te,Xe)=>new at(Te,Xe),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(G),g.LFG(g.zs3))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),na=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Ye,useClass:Dt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[Ye,{provide:vt,useExisting:Ye,multi:!0},{provide:ta,useClass:$a},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Dd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[He,{provide:Q,useClass:li},Wa,{provide:G,useExisting:Wa}],imports:[na.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>af,$Z:()=>ky,AFp:()=>_A,ALo:()=>Kv,AaK:()=>Q,BQk:()=>hh,CHM:()=>xn,CRH:()=>nA,CZH:()=>xl,CqO:()=>Cw,D6c:()=>hp,EJc:()=>cS,EiD:()=>Sf,EpF:()=>_w,F$t:()=>om,F4k:()=>bw,FYo:()=>UC,FiY:()=>wa,G48:()=>fS,Gf:()=>Oh,GfV:()=>GC,GkF:()=>tm,Gpc:()=>U,Hsn:()=>Tw,Ikx:()=>Ch,JOm:()=>En,JVY:()=>cu,KtG:()=>qi,L6k:()=>hi,LAX:()=>yo,LFG:()=>Jt,LSH:()=>Df,Lbi:()=>ud,Lck:()=>PE,MAs:()=>Xg,MMx:()=>ad,NdJ:()=>nm,O4$:()=>jn,OlP:()=>Ht,Oqu:()=>_m,PXZ:()=>I_,Q6J:()=>Cr,QGY:()=>im,QP$:()=>zo,QbO:()=>yA,Qsj:()=>Ox,R0b:()=>zi,RDi:()=>bC,Rgc:()=>sd,SBq:()=>wc,Sil:()=>S_,Suo:()=>iA,TTD:()=>Ja,TgZ:()=>ch,Udp:()=>pm,VKq:()=>Km,WFA:()=>rm,XFs:()=>Ye,Xpm:()=>an,Xts:()=>Hf,Y36:()=>Ls,YKP:()=>Rv,YNc:()=>Zg,Yjl:()=>Ll,Yz7:()=>xt,ZZ4:()=>dp,_Bn:()=>Pv,_UZ:()=>dh,_Vd:()=>yc,_c5:()=>WA,_uU:()=>qw,aQg:()=>Er,c2e:()=>sS,cJS:()=>ai,cg1:()=>Sn,d8E:()=>yh,dDg:()=>gd,dqk:()=>le,eBb:()=>fx,eFA:()=>PA,ekj:()=>fm,eoX:()=>Wo,f3M:()=>eu,g9A:()=>dd,h0i:()=>gl,hGG:()=>$A,hij:()=>gh,iGM:()=>Bh,ifc:()=>q,ip1:()=>Mn,kL8:()=>Dm,kcU:()=>Ud,lG2:()=>Hd,lcZ:()=>Zv,lnq:()=>bm,lqb:()=>Ao,lri:()=>R_,mCW:()=>hc,n5z:()=>nf,n_E:()=>Dh,oAB:()=>Pr,oxw:()=>Aw,pB0:()=>vf,q3G:()=>ni,qLn:()=>vc,qOj:()=>Io,qZA:()=>qc,qzn:()=>Co,rWj:()=>TA,s9C:()=>ph,sBO:()=>F_,sIi:()=>Ws,s_b:()=>Ph,soG:()=>ep,tb:()=>T_,tp0:()=>xs,uIk:()=>ah,vHH:()=>ie,vpe:()=>xr,wAp:()=>qe,xp6:()=>xy,ynx:()=>uh,z2F:()=>Ml,z3N:()=>Fr,zSh:()=>If,zs3:()=>Ma});var T=x(7579),g=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let f in h)if(h[f]===j)return f;throw Error("Could not find renamed property on target object.")}function W(h,f){for(const m in f)f.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=f[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const f=h.toString();if(null==f)return""+f;const m=f.indexOf("\n");return-1===m?f:f.substring(0,m)}function G(h,f){return null==h||""===h?null===f?"":f:null==f||""===f?h:h+" "+f}const $=j({__forward_ref__:j});function U(h){return h.__forward_ref__=U,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===U}class ie extends Error{constructor(f,m){super(function de(h,f){return`NG0${Math.abs(h)}${f?": "+f.trim():""}`}(f,m)),this.code=f}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,f){throw new ie(-201,!1)}function Dt(h,f){null==h&&function Le(h,f,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${f} <=Actual]`))}(f,h,null,"!=")}function xt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ai(h){return{providers:h.providers||[],imports:h.imports||[]}}function Mr(h){return Ol(h,In)||Ol(h,ta)}function Ol(h,f){return h.hasOwnProperty(f)?h[f]:null}function Wa(h){return h&&(h.hasOwnProperty(kn)||h.hasOwnProperty($a))?h[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ta=j({ngInjectableDef:j}),$a=j({ngInjectorDef:j});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let li;function Ti(h){const f=li;return li=h,f}function na(h,f,m){const _=Mr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==f?f:void _e(Q(h))}function wn(h){return{toString:h}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const le=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),st={},ze=[],Qe=j({\u0275cmp:j}),ti=j({\u0275dir:j}),bt=j({\u0275pipe:j}),Xi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Tt=j({__NG_ELEMENT_ID__:j});let Pt=0;function an(h){return wn(()=>{const m=!0===h.standalone,_={},C={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||ze,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+Pt++,styles:h.styles||ze,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=Ya(h.inputs,_),C.outputs=Ya(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Hr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Si).filter(Hr):null,C})}function gi(h){return At(h)||Ei(h)}function Hr(h){return null!==h}function Pr(h){return wn(()=>({type:h.type,bootstrap:h.bootstrap||ze,declarations:h.declarations||ze,imports:h.imports||ze,exports:h.exports||ze,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Ya(h,f){if(null==h)return st;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,f&&(f[C]=w)}return m}const Hd=an;function Ll(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function At(h){return h[Qe]||null}function Ei(h){return h[ti]||null}function Si(h){return h[bt]||null}function Ui(h,f){const m=h[Xi]||null;if(!m&&!0===f)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function St(h){return Array.isArray(h)&&"object"==typeof h[1]}function tn(h){return Array.isArray(h)&&!0===h[1]}function sa(h){return 0!=(8&h.flags)}function Bn(h){return 2==(2&h.flags)}function sr(h){return 1==(1&h.flags)}function Di(h){return null!==h.template}function Fl(h){return 0!=(256&h[2])}function lr(h,f){return h.hasOwnProperty(tt)?h[tt]:null}class Nl{constructor(f,m,_){this.previousValue=f,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Ja(){return os}function os(h){return h.type.prototype.ngOnChanges&&(h.setInput=Ka),zl}function zl(){const h=lt(this),f=h?.current;if(f){const m=h.previous;if(m===st)h.previous=f;else for(let _ in f)m[_]=f[_];h.current=null,this.ngOnChanges(f)}}function Ka(h,f,m,_){const C=lt(h)||function da(h,f){return h[sn]=f}(h,{previous:st,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Nl(S&&S.currentValue,f,v===st),h[_]=f}Ja.ngInherit=!0;const sn="__ngSimpleChanges__";function lt(h){return h[sn]||null}function Qt(h){for(;Array.isArray(h);)h=h[0];return h}function Rr(h,f){return Qt(f[h])}function wi(h,f){return Qt(f[h.index])}function eo(h,f){return h.data[f]}function ua(h,f){return h[f]}function Li(h,f){const m=f[h];return St(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,f){return null==f?null:h[f]}function ee(h){h[18]=0}function pe(h,f){h[5]+=f;let m=h,_=h[3];for(;null!==_&&(1===f&&1===m[5]||-1===f&&0===m[5]);)_[5]+=f,m=_,_=_[3]}const ce={lFrame:Up(null),bindingsEnabled:!0};function bi(){return ce.bindingsEnabled}function be(){return ce.lFrame.lView}function rt(){return ce.lFrame.tView}function xn(h){return ce.lFrame.contextLView=h,h[8]}function qi(h){return ce.lFrame.contextLView=null,h}function $t(){let h=ha();for(;null!==h&&64===h.type;)h=h.parent;return h}function ha(){return ce.lFrame.currentTNode}function Fi(h,f){const m=ce.lFrame;m.currentTNode=h,m.isParent=f}function Od(){return ce.lFrame.isParent}function Ld(){ce.lFrame.isParent=!1}function ji(){const h=ce.lFrame;let f=h.bindingRootIndex;return-1===f&&(f=h.bindingRootIndex=h.tView.bindingStartIndex),f}function pa(){return ce.lFrame.bindingIndex++}function Ln(h){const f=ce.lFrame,m=f.bindingIndex;return f.bindingIndex=f.bindingIndex+h,m}function kr(h,f){const m=ce.lFrame;m.bindingIndex=m.bindingRootIndex=h,Wl(f)}function Wl(h){ce.lFrame.currentDirectiveIndex=h}function Fd(h){const f=ce.lFrame.currentDirectiveIndex;return-1===f?null:h[f]}function jp(){return ce.lFrame.currentQueryIndex}function jd(h){ce.lFrame.currentQueryIndex=h}function Lb(h){const f=h[1];return 2===f.type?f.declTNode:1===f.type?h[6]:null}function Np(h,f,m){if(m&Ye.SkipSelf){let C=f,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Lb(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;f=C,h=w}const _=ce.lFrame=zp();return _.currentTNode=f,_.lView=h,!0}function Nd(h){const f=zp(),m=h[1];ce.lFrame=f,f.currentTNode=m.firstChild,f.lView=h,f.tView=m,f.contextLView=h,f.bindingIndex=m.bindingStartIndex,f.inI18n=!1}function zp(){const h=ce.lFrame,f=null===h?null:h.child;return null===f?Up(h):f}function Up(h){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=f),f}function Gp(){const h=ce.lFrame;return ce.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const qp=Gp;function zd(){const h=Gp();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Hi(){return ce.lFrame.selectedIndex}function Fn(h){ce.lFrame.selectedIndex=h}function Nt(){const h=ce.lFrame;return eo(h.tView,h.selectedIndex)}function jn(){ce.lFrame.currentNamespace="svg"}function Ud(){!function $p(){ce.lFrame.currentNamespace=null}()}function hs(h,f){for(let m=f.directiveStart,_=f.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),E&&((h.contentHooks||(h.contentHooks=[])).push(m,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,E)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),P&&((h.viewHooks||(h.viewHooks=[])).push(m,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function $l(h,f,m){Ql(h,f,3,m)}function fa(h,f,m,_){(3&h[2])===m&&Ql(h,f,m,_)}function Yl(h,f){let m=h[2];(3&m)===f&&(m&=2047,m+=1,h[2]=m)}function Ql(h,f,m,_){const w=_??-1,v=f.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else f[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===f){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class ga{constructor(f,m,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function gs(h,f,m){let _=0;for(;_f){v=w-1;break}}}for(;w>16}(h),_=f;for(;m>0;)_=_[15],m--;return _}let Xp=!0;function Wd(h){const f=Xp;return Xp=h,f}let qb=0;const zn={};function ba(h,f){const m=Zl(h,f);if(-1!==m)return m;const _=f[1];_.firstCreatePass&&(h.injectorIndex=f.length,Wi(_.data,h),Wi(f,null),Wi(_.blueprint,null));const C=ms(h,f),w=h.injectorIndex;if(Kp(C)){const v=no(C),E=_a(C,f),S=E[1].data;for(let P=0;P<8;P++)f[w+P]=E[v+P]|S[v+P]}return f[w+8]=C,w}function Wi(h,f){h.push(0,0,0,0,0,0,0,0,f)}function Zl(h,f){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===f[h.injectorIndex+8]?-1:h.injectorIndex}function ms(h,f){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=f;for(;null!==C;){if(_=rf(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function Xl(h,f,m){!function Wb(h,f,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Tt)&&(_=m[Tt]),null==_&&(_=m[Tt]=qb++);const C=255&_;f.data[h+(C>>5)]|=1<=0?255&f:Qb:f}(m);if("function"==typeof w){if(!Np(f,h,_))return _&Ye.Host?$d(C,0,_):_s(f,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;_e()}finally{qp()}}else if("number"==typeof w){let v=null,E=Zl(h,f),S=-1,P=_&Ye.Host?f[16][6]:null;for((-1===E||_&Ye.SkipSelf)&&(S=-1===E?ms(h,f):f[E+8],-1!==S&&ao(_,!1)?(v=f[1],E=no(S),f=_a(S,f)):E=-1);-1!==E;){const R=f[1];if(ro(w,E,R.data)){const L=ec(E,f,m,v,_,P);if(L!==zn)return L}S=f[E+8],-1!==S&&ao(_,f[1].data[E+8]===P)&&ro(w,E,f)?(v=R,E=no(S),f=_a(S,f)):E=-1}}return C}function ec(h,f,m,_,C,w){const v=f[1],E=v.data[h+8],R=Br(E,v,m,null==_?Bn(E)&&Xp:_!=v&&0!=(3&E.type),C&Ye.Host&&w===E);return null!==R?bs(f,v,R,E):zn}function Br(h,f,m,_,C){const w=h.providerIndexes,v=f.data,E=1048575&w,S=h.directiveStart,R=w>>20,J=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Di(re)&&re.type===m)return S}return null}function bs(h,f,m,_){let C=h[m];const w=f.data;if(function Nb(h){return h instanceof ga}(C)){const v=C;v.resolving&&function Be(h,f){const m=f?`. Dependency path: ${f.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const E=Wd(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ti(v.injectImpl):null;Np(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),f.firstCreatePass&&m>=_.directiveStart&&function Vr(h,f,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=f.type.prototype;if(_){const v=os(f);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],f)}finally{null!==S&&Ti(S),Wd(E),v.resolving=!1,qp()}}return C}function ro(h,f,m){return!!(m[f+(h>>5)]&1<{const f=h.prototype.constructor,m=f[tt]||Yd(f),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||Yd(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function Yd(h){return ne(h)?()=>{const f=Yd(te(h));return f&&f()}:lr(h)}function rf(h){const f=h[1],m=f.type;return 2===m?f.declTNode:1===m?h[6]:null}function af(h){return function $b(h,f){if("class"===f)return h.classes;if("style"===f)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(Jp(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===f)return m[C+1];C+=2}}}return null}($t(),h)}const Or="__parameters__";function lo(h,f,m){return wn(()=>{const _=function Qd(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(f);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(Or)?S[Or]:Object.defineProperty(S,Or,{value:[]})[Or];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Ht{constructor(f,m){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=xt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $i(h,f){void 0===f&&(f=h);for(let m=0;mArray.isArray(m)?Un(m,f):f(m))}function ys(h,f,m){f>=h.length?h.push(m):h.splice(f,0,m)}function ya(h,f){return f>=h.length-1?h.pop():h.splice(f,1)[0]}function uo(h,f){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function Xb(h,f,m,_){let C=h.length;if(C==f)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>f;)h[C]=h[C-2],C--;h[f]=m,h[f+1]=_}}(h,_,f,m)),_}function po(h,f){const m=fo(h,f);if(m>=0)return h[1|m]}function fo(h,f){return function uf(h,f,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<f?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return dc}()?.createHTML(h)||h}class Lr{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wC extends Lr{getTypeName(){return"HTML"}}class lu extends Lr{getTypeName(){return"Style"}}class vC extends Lr{getTypeName(){return"Script"}}class AC extends Lr{getTypeName(){return"URL"}}class xC extends Lr{getTypeName(){return"ResourceURL"}}function Fr(h){return h instanceof Lr?h.changingThisBreaksApplicationSecurity:h}function Co(h,f){const m=function Ms(h){return h instanceof Lr&&h.getTypeName()||null}(h);if(null!=m&&m!==f){if("ResourceURL"===m&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===f}function cu(h){return new wC(h)}function hi(h){return new lu(h)}function fx(h){return new vC(h)}function yo(h){return new AC(h)}function vf(h){return new xC(h)}class Ds{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const m=(new window.DOMParser).parseFromString(bo(f),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(f):(m.removeChild(m.firstChild),m)}catch{return null}}}class TC{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(f){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=bo(f),m;const _=this.inertDocument.createElement("body");return _.innerHTML=bo(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const m=f.attributes;for(let C=m.length-1;0hc(f.trim())).join(", ")),this.buf.push(" ",v,'="',DC(S),'"')}var h;return this.buf.push(">"),!0}endElement(f){const m=f.nodeName.toLowerCase();xf.hasOwnProperty(m)&&!fc.hasOwnProperty(m)&&(this.buf.push(""))}chars(f){this.buf.push(DC(f))}checkClobberedElement(f,m){if(m&&(f.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return m}}const Ef=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bx=/([^\#-~ |!])/g;function DC(h){return h.replace(/&/g,"&").replace(Ef,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(bx,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let _c;function Sf(h,f){let m=null;try{_c=_c||function du(h){const f=new TC(h);return function Gn(){try{return!!(new window.DOMParser).parseFromString(bo(""),"text/html")}catch{return!1}}()?new Ds(f):f}(h);let _=f?String(f):"";m=_c.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=_c.getInertBodyElement(_)}while(_!==w);return bo((new Tf).sanitizeChildren(hu(m)||m))}finally{if(m){const _=hu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function hu(h){return"content"in h&&function Mf(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Df(h){const f=function bc(){const h=be();return h&&h[12]}();return f?f.sanitize(ni.URL,h)||"":Co(h,"URL")?Fr(h):hc(he(h))}const Hf=new Ht("ENVIRONMENT_INITIALIZER"),IC=new Ht("INJECTOR",-1),Pf=new Ht("INJECTOR_DEF_TYPES");class kC{get(f,m=go){if(m===go){const _=new Error(`NullInjectorError: No provider for ${Q(f)}!`);throw _.name="NullInjectorError",_}return m}}function Ax(...h){return{\u0275providers:VC(0,h)}}function VC(h,...f){const m=[],_=new Set;let C;return Un(f,w=>{const v=w;Cc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&BC(C,m),m}function BC(h,f){for(let m=0;m{f.push(w)})}}function Cc(h,f,m,_){if(!(h=te(h)))return!1;let C=null,w=Wa(h);const v=!w&&At(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=Wa(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Cc(P,f,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{Un(w.imports,R=>{Cc(R,f,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&BC(P,f)}if(!E){const P=lr(C)||(()=>new C);f.push({provide:C,useFactory:P,deps:ze},{provide:Pf,useValue:C,multi:!0},{provide:Hf,useValue:()=>Jt(C),multi:!0})}const S=w.providers;null==S||E||Un(S,R=>{f.push(R)})}}return C!==h&&void 0!==h.providers}const xx=j({provide:String,useValue:j});function Rf(h){return null!==h&&"object"==typeof h&&xx in h}function vo(h){return"function"==typeof h}const If=new Ht("Set Injector scope."),fu={},Ex={};let kf;function gu(){return void 0===kf&&(kf=new kC),kf}class Ao{}class FC extends Ao{constructor(f,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bf(f,v=>this.processProvider(v)),this.records.set(IC,Hs(void 0,this)),C.has("environment")&&this.records.set(Ao,Hs(void 0,this));const w=this.records.get(If);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Pf.multi,ze,Ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const m=mo(this),_=Ti(void 0);try{return f()}finally{mo(m),Ti(_)}}get(f,m=go,_=Ye.Default){this.assertNotDestroyed();const C=mo(this),w=Ti(void 0);try{if(!(_&Ye.SkipSelf)){let E=this.records.get(f);if(void 0===E){const S=function Px(h){return"function"==typeof h||"object"==typeof h&&h instanceof Ht}(f)&&Mr(f);E=S&&this.injectableDefInScope(S)?Hs(Vf(f),fu):null,this.records.set(f,E)}if(null!=E)return this.hydrate(f,E)}return(_&Ye.Self?gu():this.parent).get(f,m=_&Ye.Optional&&m===go?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[rc]=v[rc]||[]).unshift(Q(f)),C)throw v;return function cC(h,f,m,_){const C=h[rc];throw f[pf]&&C.unshift(f[pf]),h.message=function iu(h,f,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(f);if(Array.isArray(f))C=f.map(Q).join(" -> ");else if("object"==typeof f){let w=[];for(let v in f)if(f.hasOwnProperty(v)){let E=f[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(oC,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[rc]=null,h}(v,f,"R3InjectorError",this.source)}throw v}finally{Ti(w),mo(C)}}resolveInjectorInitializers(){const f=mo(this),m=Ti(void 0);try{const _=this.get(Hf.multi,ze,Ye.Self);for(const C of _)C()}finally{mo(f),Ti(m)}}toString(){const f=[],m=this.records;for(const _ of m.keys())f.push(Q(_));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(f){let m=vo(f=te(f))?f:te(f&&f.provide);const _=function Mx(h){return Rf(h)?Hs(void 0,h.useValue):Hs(jC(h),fu)}(f);if(vo(f)||!0!==f.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Hs(void 0,fu,!0),C.factory=()=>tu(C.multi),this.records.set(m,C)),m=f,C.multi.push(f)}this.records.set(m,_)}hydrate(f,m){return m.value===fu&&(m.value=Ex,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Hx(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(f){if(!f.providedIn)return!1;const m=te(f.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function Vf(h){const f=Mr(h),m=null!==f?f.factory:lr(h);if(null!==m)return m;if(h instanceof Ht)throw new ie(204,!1);if(h instanceof Function)return function Sx(h){const f=h.length;if(f>0)throw uo(f,"?"),new ie(204,!1);const m=function qa(h){const f=h&&(h[In]||h[ta]);if(f){const m=function Md(h){if(h.hasOwnProperty("name"))return h.name;const f=(""+h).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),f}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function jC(h,f,m){let _;if(vo(h)){const C=te(h);return lr(C)||Vf(C)}if(Rf(h))_=()=>te(h.useValue);else if(function LC(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...tu(h.deps||[]));else if(function OC(h){return!(!h||!h.useExisting)}(h))_=()=>Jt(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function Dx(h){return!!h.deps}(h))return lr(C)||Vf(C);_=()=>new C(...tu(h.deps))}return _}function Hs(h,f,m=!1){return{factory:h,value:f,multi:m?[]:void 0}}function Rx(h){return!!h.\u0275providers}function Bf(h,f){for(const m of h)Array.isArray(m)?Bf(m,f):Rx(m)?Bf(m.\u0275providers,f):f(m)}class Of{}class kx{resolveComponentFactory(f){throw function Ix(h){const f=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=h,f}(f)}}let yc=(()=>{class h{}return h.NULL=new kx,h})();function Vx(){return Ps($t(),be())}function Ps(h,f){return new wc(wi(h,f))}let wc=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=Vx,h})();function Bx(h){return h instanceof wc?h.nativeElement:h}class UC{}let Ox=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Lx(){const h=be(),m=Li($t().index,h);return(St(m)?m:h)[11]}(),h})(),Fx=(()=>{class h{}return h.\u0275prov=xt({token:h,providedIn:"root",factory:()=>null}),h})();class GC{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const jx=new GC("14.1.2"),Lf={};function Uf(h){return h.ngOriginalError}class vc{constructor(){this._console=console}handleError(f){const m=this._findOriginalError(f);this._console.error("ERROR",f),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(f){let m=f&&Uf(f);for(;m&&Uf(m);)m=Uf(m);return m||null}}const Gf=new Map;let Zx=0;const xc="__ngContext__";function Pi(h,f){St(f)?(h[xc]=f[20],function eT(h){Gf.set(h[20],h)}(f)):h[xc]=f}function Rs(h){const f=h[xc];return"number"==typeof f?function JC(h){return Gf.get(h)||null}(f):f||null}function mu(h){const f=Rs(h);return f?St(f)?f:f.lView:null}const ZC=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(le))();function Yi(h){return h instanceof Function?h():h}var En=(()=>((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();function $f(h,f){return undefined(h,f)}function Tc(h){const f=h[3];return tn(f)?f[3]:f}function Qf(h){return Kf(h[13])}function Jf(h){return Kf(h[4])}function Kf(h){for(;null!==h&&!tn(h);)h=h[4];return h}function Ta(h,f,m,_,C){if(null!=_){let w,v=!1;tn(_)?w=_:St(_)&&(v=!0,_=_[0]);const E=Qt(_);0===h&&null!==m?null==C?fy(f,m,E):xo(f,m,E,C||null,!0):1===h&&null!==m?xo(f,m,E,C||null,!0):2===h?function rg(h,f,m){const _=To(h,f);_&&function sT(h,f,m,_){h.removeChild(f,m,_)}(h,_,f,m)}(f,E,v):3===h&&f.destroyNode(E),null!=w&&function ag(h,f,m,_,C){const w=m[7];w!==Qt(m)&&Ta(f,h,_,w,C);for(let E=10;E0&&(h[m-1][4]=_[4]);const w=ya(h,10+f);!function oy(h,f){dn(h,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function eg(h,f){if(!(128&f[2])){const m=f[11];m.destroyNode&&dn(h,f,m,3,null,null),function cy(h){let f=h[13];if(!f)return vu(h[1],h);for(;f;){let m=null;if(St(f))m=f[13];else{const _=f[10];_&&(m=_)}if(!m){for(;f&&!f[4]&&f!==h;)St(f)&&vu(f[1],f),f=f[3];null===f&&(f=h),St(f)&&vu(f[1],f),m=f&&f[4]}f=m}}(f)}}function vu(h,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function Au(h,f){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();f[7]=null}}(h,f),1===f[1].type&&f[11].destroy();const m=f[17];if(null!==m&&tn(f[3])){m!==f[3]&&yu(m,f);const _=f[19];null!==_&&_.detachView(h)}!function tT(h){Gf.delete(h[20])}(f)}}function hy(h,f,m){return function py(h,f,m){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return wi(_,m)}(h,f.parent,m)}function xo(h,f,m,_,C){h.insertBefore(f,m,_,C)}function fy(h,f,m){h.appendChild(f,m)}function gy(h,f,m,_,C){null!==_?xo(h,f,m,_,C):fy(h,f,m)}function To(h,f){return h.parentNode(f)}function ig(h,f,m){return Ea(h,f,m)}let Ea=function xu(h,f,m){return 40&h.type?wi(h,m):null};function Ec(h,f,m,_){const C=hy(h,_,f),w=f[11],E=ig(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?J:null;if(re&&-1!==og(re,P,0)||2&_&&P!==J){if(un(_))return!1;v=!0}}}}else{if(!v&&!un(_)&&!un(S))return!1;if(v&&un(S))continue;v=!1,_=S|1&_}}return un(_)||v}function un(h){return 0==(1&h)}function uT(h,f,m,_){if(null===f)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!un(v)&&(f+=cg(w,C),C=""),_=v,w=w||!un(_);m++}return""!==C&&(f+=cg(w,C)),f}const Ae={};function xy(h){Ty(rt(),be(),Hi()+h,!1)}function Ty(h,f,m,_){if(!_)if(3==(3&f[2])){const w=h.preOrderCheckHooks;null!==w&&$l(f,w,m)}else{const w=h.preOrderHooks;null!==w&&fa(f,w,0,m)}Fn(m)}function hn(h,f=null,m=null,_){const C=Os(h,f,m,_);return C.resolveInjectorInitializers(),C}function Os(h,f=null,m=null,_,C=new Set){const w=[m||ze,Ax(h)];return _=_||("object"==typeof h?void 0:Q(h)),new FC(w,f||gu(),_||null,C)}let Ma=(()=>{class h{static create(m,_){if(Array.isArray(m))return hn({name:""},_,m,"");{const C=m.name??"";return hn({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=go,h.NULL=new kC,h.\u0275prov=xt({token:h,providedIn:"any",factory:()=>Jt(IC)}),h.__NG_ELEMENT_ID__=-1,h})();function Ls(h,f=Ye.Default){const m=be();return null===m?Jt(h,f):ef($t(),m,te(h),f)}function ky(){throw new Error("invalid")}function Vu(h,f){return h<<17|f<<2}function Wn(h){return h>>17&32767}function Bu(h){return 2|h}function Ur(h){return(131068&h)>>2}function Ou(h,f){return-131069&h|f<<2}function Lu(h){return 1|h}function Mg(h,f){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Ty(h,f,22,!1),m(_,C)}finally{Fn(w)}}function qy(h,f,m){if(sa(f)){const C=f.directiveEnd;for(let w=f.directiveStart;w0;){const m=h[--f];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function gr(h,f){null!==h.hostBindings&&h.hostBindings(1,f)}function mr(h,f){f.flags|=2,(h.components||(h.components=[])).push(f.index)}function Jy(h,f,m){if(m){if(f.exportAs)for(let _=0;_0&&Og(m)}}function Og(h){for(let _=Qf(h);null!==_;_=Jf(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];Bc(v,w,v.template,w[8])}else w[5]>0&&Og(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Og(C)}}function Lg(h,f){const m=Li(f,h),_=m[1];(function nw(h,f){for(let m=f.length;mPromise.resolve(null))();function eh(h){return h[7]||(h[7]=[])}function jg(h){return h.cleanup||(h.cleanup=[])}function Ng(h,f,m){return(null===h||Di(h))&&(m=function ds(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[f.index])),m[11]}function zg(h,f){const m=h[9],_=m?m.get(vc,null):null;_&&_.handleError(f)}function mn(h,f,m,_,C){for(let w=0;w-1&&(wu(f,_),ya(m,_))}this._attachedToViewContainer=!1}eg(this._lView[1],this._lView)}onDestroy(f){Wy(this._lView[1],this._lView,null,f)}markForCheck(){Po(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Xu(h,f,m){const _=f[10];_.begin&&_.begin();try{Bc(h,f,h.template,m)}catch(C){throw zg(f,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ly(h,f){dn(h,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=f}}class aw extends zc{constructor(f){super(f),this._view=f}detectChanges(){Fg(this._view)}checkNoChanges(){}get context(){return null}}class ih extends yc{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const m=At(f);return new Gs(m,this.ngModule)}}function Pa(h){const f=[];for(let m in h)h.hasOwnProperty(m)&&f.push({propName:h[m],templateName:m});return f}class Ug{constructor(f,m){this.injector=f,this.parentInjector=m}get(f,m,_){const C=this.injector.get(f,Lf,_);return C!==Lf||m===Lf?C:this.parentInjector.get(f,m,_)}}class Gs extends Of{constructor(f,m){super(),this.componentDef=f,this.ngModule=m,this.componentType=f.type,this.selector=function vy(h){return h.map(wy).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Pa(this.componentDef.inputs)}get outputs(){return Pa(this.componentDef.outputs)}create(f,m,_,C){let w=(C=C||this.ngModule)instanceof Ao?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new Ug(f,w):f,E=v.get(UC,null);if(null===E)throw new ie(407,!1);const S=v.get(Fx,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function RT(h,f,m){return h.selectRootElement(f,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Cu(E.createRenderer(null,this.componentDef),R,function jT(h){const f=h.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(R)),J=this.componentDef.onPush?288:272,re=function ht(h,f){return{components:[],scheduler:h||ZC,clean:FT,playerHandler:f||null,flags:0}}(),me=qr(0,null,null,1,0,null,null,null,null,null),xe=Vc(null,me,re,J,null,null,E,P,S,v,null);let Re,Fe;Nd(xe);try{const Ke=function Gg(h,f,m,_,C,w){const v=m[1];m[22]=h;const S=$n(v,22,2,"#host",null),P=S.mergedAttrs=f.hostAttrs;null!==P&&(Nc(S,P,!0),null!==h&&(gs(C,h,P),null!==S.classes&&So(C,h,S.classes),null!==S.styles&&Du(C,h,S.styles)));const R=_.createRenderer(h,f),L=Vc(m,Yn(f),null,f.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(Xl(ba(S,m),v,f.type),mr(v,S),Ky(S,m.length,1)),Fc(m,L),m[22]=L}(L,this.componentDef,xe,E,P);if(L)if(_)gs(P,L,["ng-version",jx.full]);else{const{attrs:ye,classes:We}=function Ay(h){const f=[],m=[];let _=1,C=2;for(;_0&&So(P,L,We.join(" "))}if(Fe=eo(me,22),void 0!==m){const ye=Fe.projection=[];for(let We=0;We=0;_--){const C=h[_];C.hostVars=f+=C.hostVars,C.hostAttrs=ma(C.hostAttrs,m=ma(m,C.hostAttrs))}}(_)}function ko(h){return h===st?{}:h===ze?[]:h}function zT(h,f){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{f(_,C),m(_,C)}:f}function qg(h,f){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{f(_,C,w),m(_,C,w)}:f}function qs(h,f){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{f(_,C),m(_,C)}:f}let Uc=null;function Ia(){if(!Uc){const h=le.Symbol;if(h&&h.iterator)Uc=h.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(Qt(ft[_.index])):_.index;let We=null;if(!E&&S&&(We=function am(h,f,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,f,C,_.index)),null!==We)(We.__ngLastListenerFn__||We).__ngNextListenerFn__=w,We.__ngLastListenerFn__=w,re=!1;else{w=vw(_,f,L,w,!1);const ft=m.listen(Fe,C,w);J.push(w,ft),R&&R.push(C,ye,Ke,Ke+1)}}else w=vw(_,f,L,w,!1);const me=_.outputs;let xe;if(re&&null!==me&&(xe=me[C])){const Re=xe.length;if(Re)for(let Fe=0;Fe0;)f=f[15],h--;return f}(h,ce.lFrame.contextLView))[8]}(h)}function xw(h,f){let m=null;const _=function hT(h){const f=h.attrs;if(null!=f){const m=f.indexOf(5);if(0==(1&m))return f[m+1]}return null}(h);for(let C=0;C=0}function pm(h,f,m){return Jn(h,f,m,!1),pm}function fm(h,f){return Jn(h,f,null,!0),fm}function Jn(h,f,m,_){const C=be(),w=rt(),v=Ln(2);w.firstUpdatePass&&function jw(h,f,m,_){const C=h.data;if(null===C[m+1]){const w=C[Hi()],v=function Fw(h,f){return f>=h.expandoStartIndex}(h,m);(function Gw(h,f){return 0!=(h.flags&(f?16:32))})(w,_)&&null===f&&!v&&(f=!1),f=function ZT(h,f,m,_){const C=Fd(h);let w=_?f.residualClasses:f.residualStyles;if(null===C)0===(_?f.classBindings:f.styleBindings)&&(m=$c(m=gm(null,h,f,m,_),f.attrs,_),w=null);else{const v=f.directiveStylingLast;if(-1===v||h[v]!==C)if(m=gm(C,h,f,m,_),null===w){let S=function Wc(h,f,m){const _=m?f.classBindings:f.styleBindings;if(0!==Ur(_))return h[Wn(_)]}(h,f,_);void 0!==S&&Array.isArray(S)&&(S=gm(null,h,f,S[1],_),S=$c(S,f.attrs,_),function XT(h,f,m,_){h[Wn(m?f.classBindings:f.styleBindings)]=_}(h,f,_,S))}else w=function eE(h,f,m){let _;const C=f.directiveEnd;for(let w=1+f.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Wn(h[E+1]);h[_+1]=Vu(J,E),0!==J&&(h[J+1]=Ou(h[J+1],_)),h[E+1]=function By(h,f){return 131071&h|f<<17}(h[E+1],_)}else h[_+1]=Vu(E,0),0!==E&&(h[E+1]=Ou(h[E+1],_)),E=_;else h[_+1]=Vu(S,0),0===E?E=_:h[S+1]=Ou(h[S+1],_),S=_;P&&(h[_+1]=Bu(h[_+1])),Rw(h,R,_,!0),Rw(h,R,_,!1),function $T(h,f,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof f&&fo(w,f)>=0&&(m[_+1]=Lu(m[_+1]))}(f,R,h,_,w),v=Vu(E,S),w?f.classBindings=v:f.styleBindings=v}(C,w,f,m,v,_)}}(w,h,v,_),f!==Ae&&Ri(C,v,f)&&function zw(h,f,m,_,C,w,v,E){if(!(3&f.type))return;const S=h.data,P=S[E+1];fh(function Cg(h){return 1==(1&h)}(P)?Uw(S,f,m,C,Ur(P),v):void 0)||(fh(w)||function Rc(h){return 2==(2&h)}(P)&&(w=Uw(S,null,m,C,E,v)),function Mu(h,f,m,_,C){if(f)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:En.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=En.Important),h.setStyle(m,_,C,w))}}(_,v,Rr(Hi(),m),C,w))}(w,w.data[Hi()],C,C[11],h,C[v+1]=function iE(h,f){return null==h||("string"==typeof f?h+=f:"object"==typeof h&&(h=Q(Fr(h)))),h}(f,m),_,v)}function gm(h,f,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let J=m[C+1];J===Ae&&(J=L?ze:void 0);let re=L?po(J,_):R===_?J:void 0;if(P&&!fh(re)&&(re=po(S,_)),fh(re)&&(E=re,v))return E;const me=h[C+1];C=v?Wn(me):Ur(me)}if(null!==f){let S=w?f.residualClasses:f.residualStyles;null!=S&&(E=po(S,_))}return E}function fh(h){return void 0!==h}function qw(h,f=""){const m=be(),_=rt(),C=h+22,w=_.firstCreatePass?$n(_,C,1,f,null):_.data[C],v=m[C]=function Zf(h,f){return h.createText(f)}(m[11],f);Ec(_,m,v,w),Fi(w,!1)}function _m(h){return gh("",h,""),_m}function gh(h,f,m){const _=be(),C=Vo(_,h,f,m);return C!==Ae&&Wr(_,Hi(),C),gh}function bm(h,f,m,_,C,w,v){const E=be(),S=Bo(E,h,f,m,_,C,w,v);return S!==Ae&&Wr(E,Hi(),S),bm}function Ch(h,f,m){const _=be();return Ri(_,pa(),f)&&Qi(rt(),Nt(),_,h,f,_[11],m,!0),Ch}function yh(h,f,m){const _=be();if(Ri(_,pa(),f)){const w=rt(),v=Nt();Qi(w,v,_,h,f,Ng(Fd(w.data),v,_),m,!0)}return yh}const Va=void 0;var nv=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Va,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Va,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mm(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let Lo={};function Sn(h){const f=function Pm(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=Hm(f);if(m)return m;const _=f.split("-")[0];if(m=Hm(_),m)return m;if("en"===_)return nv;throw new ie(701,!1)}function Dm(h){return Sn(h)[qe.PluralCase]}function Hm(h){return h in Lo||(Lo[h]=le.ng&&le.ng.common&&le.ng.common.locales&&le.ng.common.locales[h]),Lo[h]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const vr="en-US";let ol=vr;function qm(h,f,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(vo(h)||!h.multi){const re=new ga(S,C,Ls),me=$m(E,f,C?R:R+J,L);-1===me?(Xl(ba(P,v),w,E),Wm(w,h,f.length),f.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=$m(E,f,R+J,L),me=$m(E,f,R,R+J),xe=re>=0&&m[re],Re=me>=0&&m[me];if(C&&!Re||!C&&!xe){Xl(ba(P,v),w,E);const Fe=function HE(h,f,m,_,C){const w=new ga(h,m,Ls);return w.multi=[],w.index=f,w.componentProviders=0,Hv(w,C,_&&!m),w}(C?DE:ME,m.length,C,_,S);!C&&Re&&(m[me].providerFactory=Fe),Wm(w,h,f.length,0),f.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Fe),v.push(Fe)}else Wm(w,h,re>-1?re:me,Hv(m[C?me:re],S,!C&&_));!C&&_&&Re&&m[me].componentProviders++}}}function Wm(h,f,m,_){const C=vo(f),w=function Tx(h){return!!h.useClass}(f);if(C||w){const S=(w?te(f.useClass):f).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&f.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Hv(h,f,m){return m&&h.componentProviders++,h.multi.push(f)-1}function $m(h,f,m,_){for(let C=m;C<_;C++)if(f[C]===h)return C;return-1}function ME(h,f,m,_){return Sh(this.multi,[])}function DE(h,f,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=bs(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),Sh(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Eh(h,f,m){const _=rt();if(_.firstCreatePass){const C=Di(h);qm(m,_.data,_.blueprint,C,!0),qm(f,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,f)}}class gl{}class Rv{}function PE(h,f){return new Iv(h,f??null)}class Iv extends gl{constructor(f,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ih(this);const _=Ui(f);this._bootstrapComponents=Yi(_.bootstrap),this._r3Injector=Os(f,m,[{provide:gl,useValue:this},{provide:yc,useValue:this.componentFactoryResolver}],Q(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Ym extends Rv{constructor(f){super(),this.moduleType=f}create(f){return new Iv(this.moduleType,f)}}class RE extends gl{constructor(f,m,_){super(),this.componentFactoryResolver=new ih(this),this.instance=null;const C=new FC([...f,{provide:gl,useValue:this},{provide:yc,useValue:this.componentFactoryResolver}],m||gu(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function ad(h,f,m=null){return new RE(h,f,m).injector}function Km(h,f,m,_){return e_(be(),ji(),h,f,m,_)}function e_(h,f,m,_,C,w){const v=f+m;return Ri(h,v,C)?function Qn(h,f,m){return h[f]=m}(h,v+1,w?_.call(w,C):_(C)):function bl(h,f){const m=h[f];return m===Ae?void 0:m}(h,v+1)}function Kv(h,f){const m=rt();let _;const C=h+22;m.firstCreatePass?(_=function FE(h,f){if(f)for(let m=f.length-1;m>=0;m--){const _=f[m];if(h===_.name)return _}}(f,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=lr(_.type)),v=Ti(Ls);try{const E=Wd(!1),S=w();return Wd(E),function lh(h,f,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),f[m]=_}(m,be(),C,S),S}finally{Ti(v)}}function Zv(h,f,m){const _=h+22,C=be(),w=ua(C,_);return function od(h,f){return h[1].data[f].pure}(C,_)?e_(C,ji(),f,w.transform,m,w):w.transform(m)}function t_(h){return f=>{setTimeout(h,void 0,f)}}const xr=class GE extends T.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,m,_){let C=f,w=m||(()=>null),v=_;if(f&&"object"==typeof f){const S=f;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=t_(w),C&&(C=t_(C)),v&&(v=t_(v)));const E=super.subscribe({next:C,error:w,complete:v});return f instanceof g.w0&&f.add(E),E}};function qE(){return this._results[Ia()]()}class Dh{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Ia(),_=Dh.prototype;_[m]||(_[m]=qE)}get changes(){return this._changes||(this._changes=new xr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,m){return this._results.reduce(f,m)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,m){const _=this;_.dirty=!1;const C=$i(f);(this._changesDetected=!function tc(h,f,m){if(h.length!==f.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=YE,h})();const WE=sd,$E=class extends WE{constructor(f,m,_){super(),this._declarationLView=f,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(f,m){const _=this._declarationTContainer.tViews,C=Vc(this._declarationLView,_,f,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Yu(_,C,f),new zc(C)}};function YE(){return Hh($t(),be())}function Hh(h,f){return 4&h.type?new $E(f,h,Ps(h,f)):null}let Ph=(()=>{class h{}return h.__NG_ELEMENT_ID__=QE,h})();function QE(){return n_($t(),be())}const JE=Ph,Xv=class extends JE{constructor(f,m,_){super(),this._lContainer=f,this._hostTNode=m,this._hostLView=_}get element(){return Ps(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){const f=ms(this._hostTNode,this._hostLView);if(Kp(f)){const m=_a(f,this._hostLView),_=no(f);return new oo(m[1].data[_+8],m)}return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const m=i_(this._lContainer);return null!==m&&m[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=f.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(f,m,_,C,w){const v=f&&!function Cs(h){return"function"==typeof h}(f);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?f:new Gs(At(f)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const J=(v?P:this.parentInjector).get(Ao,null);J&&(w=J)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(f,m){const _=f._lView,C=_[1];if(function D(h){return tn(h[3])}(_)){const R=this.indexOf(f);if(-1!==R)this.detach(R);else{const L=_[3],J=new Xv(L,L[6],L[3]);J.detach(J.indexOf(f))}}const w=this._adjustIndex(m),v=this._lContainer;!function dy(h,f,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=f),_0)_.push(v[E/2]);else{const P=w[E+1],R=f[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=Al,this.reject=Al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(Jt(Mn,8))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const _A=new Ht("AppId",{providedIn:"root",factory:function bA(){return`${Xh()}${Xh()}${Xh()}`}});function Xh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dd=new Ht("Platform Initializer"),ud=new Ht("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),T_=new Ht("appBootstrapListener"),yA=new Ht("AnimationModuleType");let sS=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const ep=new Ht("LocaleId",{providedIn:"root",factory:()=>eu(ep,Ye.Optional|Ye.SkipSelf)||function lS(){return typeof $localize<"u"&&$localize.locale||vr}()}),cS=new Ht("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class wA{constructor(f,m){this.ngModuleFactory=f,this.componentFactories=m}}let S_=(()=>{class h{compileModuleSync(m){return new Ym(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Yi(Ui(m).declarations).reduce((v,E)=>{const S=At(E);return S&&v.push(new Gs(S)),v},[]);return new wA(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Tl=(()=>Promise.resolve(0))();function El(h){typeof Zone>"u"?Tl.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class zi{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function M_(){let h=le.requestAnimationFrame,f=le.cancelAnimationFrame;if(typeof Zone<"u"&&h&&f){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function P_(h){const f=()=>{!function H_(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(le,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,pd(h),h.isCheckStableRunning=!0,qo(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),pd(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return fd(h),m.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&f(),xA(h)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return fd(h),m.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&f(),xA(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,pd(h),qo(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(zi.isInAngularZone())throw new ie(909,!1)}run(f,m,_){return this._inner.run(f,m,_)}runTask(f,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,f,D_,Al,Al);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(f,m,_){return this._inner.runGuarded(f,m,_)}runOutsideAngular(f){return this._outer.run(f)}}const D_={};function qo(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function pd(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function fd(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function xA(h){h._nesting--,qo(h)}class uS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(f,m,_){return f.apply(m,_)}runGuarded(f,m,_){return f.apply(m,_)}runOutsideAngular(f){return f()}runTask(f,m,_,C){return f.apply(m,_)}}const R_=new Ht(""),TA=new Ht("");let $o,gd=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$o||(function md(h){$o=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zi.assertNotInAngularZone(),El(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())El(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(Jt(zi),Jt(Wo),Jt(TA))},h.\u0275prov=xt({token:h,factory:h.\u0275fac}),h})(),Wo=(()=>{class h{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return $o?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Jr=null;const _d=new Ht("AllowMultipleToken"),Yo=new Ht("PlatformDestroyListeners");class I_{constructor(f,m){this.name=f,this.token=m}}function PA(h,f,m=[]){const _=`Platform: ${f}`,C=new Ht(_);return(w=[])=>{let v=Sl();if(!v||v.injector.get(_d,!1)){const E=[...m,...w,{provide:C,useValue:!0}];h?h(E):function DA(h){if(Jr&&!Jr.get(_d,!1))throw new ie(400,!1);Jr=h;const f=h.get(B_);(function k_(h){const f=h.get(dd,null);f&&f.forEach(m=>m())})(h)}(function V_(h=[],f){return Ma.create({name:f,providers:[{provide:If,useValue:"platform"},{provide:Yo,useValue:new Set([()=>Jr=null])},...h]})}(E,_))}return function ip(h){const f=Sl();if(!f)throw new ie(401,!1);return f}()}}function Sl(){return Jr?.get(B_)??null}let B_=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function kA(h,f){let m;return m="noop"===h?new uS:("zone.js"===h?void 0:h)||new zi(f),m}(_?.ngZone,function IA(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:zi,useValue:C}];return C.run(()=>{const v=Ma.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(vc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Dl(this._modules,E),P.unsubscribe()})}),function Qo(h,f,m){try{const _=m();return im(_)?_.catch(C=>{throw f.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw f.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(xl);return P.runInitializers(),P.donePromise.then(()=>(function vh(h){Dt(h,"Expected localeId to be defined"),"string"==typeof h&&(ol=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(ep,vr)||vr),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=Jo({},_);return function EA(h,f,m){const _=new Ym(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Ml);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(Yo,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(Jt(Ma))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Jo(h,f){return Array.isArray(f)?f.reduce(Jo,h):{...h,...f}}let Ml=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{zi.assertNotInAngularZone(),El(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{zi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Of;if(!this._injector.get(xl).done)throw!C&&zo(m),new ie(405,false);let v;v=C?m:this._injector.get(yc).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function MA(h){return h.isBoundToModule}(v)?void 0:this._injector.get(gl),P=v.create(Ma.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(R_,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Dl(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Dl(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(T_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Dl(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(Jt(zi),Jt(Ao),Jt(vc))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Dl(h,f){const m=h.indexOf(f);m>-1&&h.splice(m,1)}let O_=!0;function fS(){O_=!1}let F_=(()=>{class h{}return h.__NG_ELEMENT_ID__=VA,h})();function VA(h){return function j_(h,f,m){if(Bn(h)&&!m){const _=Li(h.index,f);return new zc(_,_)}return 47&h.type?new zc(f[16],f):null}($t(),be(),16==(16&h))}class sp{constructor(){}supports(f){return Ws(f)}create(f){return new q_(f)}}const jA=(h,f)=>f;class q_{constructor(f){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||jA}forEachItem(f){let m;for(m=this._itHead;null!==m;m=m._next)f(m)}forEachOperation(f){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex<$_(_,C,w)?m:_,E=$_(v,C,w),S=v.currentIndex;if(v===_)C--,_=_._nextRemoved;else if(m=m._next,null==v.previousIndex)C++;else{w||(w=[]);const P=E-C,R=S-C;if(P!=R){for(let J=0;J{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,m,_,C){let w;return null===f?w=this._itTail:(w=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._reinsertAfter(f,w,C)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._moveAfter(f,w,C)):f=this._addAfter(new NA(m,_),w,C),f}_verifyReinsertion(f,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?f=this._reinsertAfter(w,f._prev,C):f.currentIndex!=C&&(f.currentIndex=C,this._addToMoves(f,C)),f}_truncate(f){for(;null!==f;){const m=f._next;this._addToRemovals(this._unlink(f)),f=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(f,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const C=f._prevRemoved,w=f._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(f,m,_),this._addToMoves(f,_),f}_moveAfter(f,m,_){return this._unlink(f),this._insertAfter(f,m,_),this._addToMoves(f,_),f}_addAfter(f,m,_){return this._insertAfter(f,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,m,_){const C=null===m?this._itHead:m._next;return f._next=C,f._prev=m,null===C?this._itTail=f:C._prev=f,null===m?this._itHead=f:m._next=f,null===this._linkedRecords&&(this._linkedRecords=new W_),this._linkedRecords.put(f),f.currentIndex=_,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const m=f._prev,_=f._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,f}_addToMoves(f,m){return f.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W_),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,m){return f.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class NA{constructor(f,m){this.item=f,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class lp{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const m=f._prevDup,_=f._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class W_{constructor(){this.map=new Map}put(f){const m=f.trackById;let _=this.map.get(m);_||(_=new lp,this.map.set(m,_)),_.add(f)}get(f,m){const C=this.map.get(f);return C?C.get(f,m):null}remove(f){const m=f.trackById;return this.map.get(m).remove(f)&&this.map.delete(m),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $_(h,f,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,m){if(f){const _=f._prev;return m._next=f,m._prev=_,f._prev=m,_&&(_._next=m),f===this._mapHead&&(this._mapHead=m),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(f,m){if(this._records.has(f)){const C=this._records.get(f);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new wS(f);return this._records.set(f,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,m){Object.is(m,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=m,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,m){f instanceof Map?f.forEach(m):Object.keys(f).forEach(_=>m(f[_],_))}}class wS{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function yd(){return new dp([new sp])}let dp=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||yd()),deps:[[h,new xs,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:yd}),h})();function up(){return new Er([new cp])}let Er=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||up()),deps:[[h,new xs,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:up}),h})();const WA=PA(null,"core",[]);let $A=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(Jt(Ml))},h.\u0275mod=Pr({type:h}),h.\u0275inj=ai({}),h})();function hp(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),g=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(g.substr(0,g.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const g=T.indexOf("?");return T=T.substr(g>-1?g+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let g,V,O,I,j,W,Q;if(null===x)return T;g=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==g)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,g=0,O=F.length,I=this.blocks;g>2]|=F[g]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,X,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(X=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(X=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&V^~g&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((X=F&N)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^X))<<0,V=N+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&g)+K[W+2]+j[W+2])<<0,N=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,g=F+(U=g+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+g<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,g>>24&255,g>>16&255,g>>8&255,255&g,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let g of x)T+=String.fromCharCode(g);return T}toHashString(x){const T=new Uint8Array(x);let g="";for(let V of T)g+=String.fromCharCode(V);return g}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,g,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{g?this.setStorage(g):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,g=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,g).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],g=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return g||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),g=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),g=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const g=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(g-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,g)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),g(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),g(V)}):g("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),T(g)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,g).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:g,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},g)}fetchTokenUsingGrant(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:g}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,g,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const g=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=g.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((g,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),g(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,g=x.width||500,V=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const g=x.data;return g.startsWith(T)?"#"+g.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",g,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",g="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=g||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let g={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(g=T),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const g={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(g)}}storeAccessTokenResponse(x,T,g,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const g=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(g),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?g=g.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:g}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const g=T.state;let[V,O]=this.parseState(g);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!g||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:g}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,g="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),g=x.substr(V+this.config.nonceStateSeparator.length))}return[T,g]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,g=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!g&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,X=this.getClockSkewInMsec();if(te-X>=U||ne+X<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Be={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Be:this.checkAtHash(ie).then(Oe=>{if(this.requestAccessToken&&!Oe){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Be})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let g=!1;"boolean"==typeof x&&(g=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||g||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let g=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(g);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let g={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(g=T),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{x[g]&&T.set(g,JSON.stringify(x[g]))}),T}revokeTokenAndLogout(x={},T=!1){let g=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(g,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(g,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,g){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=g}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const g=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(g)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function g(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(N,{Z:()=>g})},4147:F=>{"use strict";F.exports={i8:"9.2.0"}}},F=>{F(F.s=4957)}]); \ No newline at end of file +(self.webpackChunklinker=self.webpackChunklinker||[]).push([[179],{4957:(F,N,x)=>{"use strict";var T=x(6895),g=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const G=new g.OlP("TRANSITION_ID"),U=[{provide:g.ip1,useFactory:function $(s,r,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,T.q)(),o=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const X=new g.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,o){return this._findPluginFor(t).addEventListener(e,t,o)}addGlobalEventListener(e,t,o){return this._findPluginFor(t).addGlobalEventListener(e,t,o)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const o=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),t.add(o))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,o){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,o.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Be),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,o)=>{this._addStylesToHost(e,o,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function Be(s){(0,T.q)().remove(s)}const Oe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,o){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Ie(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let o=this.rendererByCompId.get(t.id);return o||(o=new Dt(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,o)),o.applyToHost(e),o}case 1:case g.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const o=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ie),g.LFG(ge),g.LFG(g.AFp))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Ie{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Oe[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(vt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(vt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,o){if(o){e=o+":"+e;const l=Oe[o];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const o=Oe[t];o?r.removeAttributeNS(o,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,o){o&(g.JOm.DashCase|g.JOm.Important)?r.style.setProperty(e,t,o&g.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&g.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function vt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class Dt extends Ie{constructor(r,e,t,o){super(r),this.component=t;const l=oe(o+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Se(s){return"_ngcontent-%COMP%".replace(we,s)}(o+"-"+t.id),this.hostAttr=function Ee(s){return"_nghost-%COMP%".replace(we,s)}(o+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Ie{constructor(r,e,t,o){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(o.id,o.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o){return e.addEventListener(t,o,!1),()=>this.removeEventListener(e,t,o)}removeEventListener(e,t,o){return e.removeEventListener(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Rn=["alt","control","meta","shift"],xt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},yn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ai={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let Mr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,o){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),o=t.shift();if(0===t.length||"keydown"!==o&&"keyup"!==o)return null;const l=s._normalizeKey(t.pop());let c="";if(Rn.forEach(i=>{const a=t.indexOf(i);a>-1&&(t.splice(a,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=o,n.fullKey=c,n}static getEventFullKey(e){let t="",o=function Ol(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&yn.hasOwnProperty(r)&&(r=yn[r]))}return xt[r]||r}(e);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Rn.forEach(l=>{l!=o&&(0,ai[l])(e)&&(t+=l+".")}),t+=o,t}static eventCallback(e,t,o){return l=>{s.getEventFullKey(l)===e&&o.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ye=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function In(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function ta(){return(0,g.RDi)(document),document},deps:[]}]),li=new g.OlP(""),ia=[{provide:g.rWj,useClass:class te{addToWindow(r){g.dqk.getAngularTestability=(t,o=!0)=>{const l=r.findTestabilityInTree(t,o);if(null==l)throw new Error("Could not find testability for element.");return l},g.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const o=g.dqk.getAllAngularTestabilities();let l=o.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};o.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:g.lri,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b,g.eoX,g.rWj]}],Ti=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function kn(){return new g.qLn},deps:[]},{provide:X,useClass:xi,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:X,useClass:Mr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,g.AFp]},{provide:g.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[X,g.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let na=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:g.AFp,useValue:e.appId},{provide:G,useExisting:g.AFp},U]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(li,12))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[...Ti,...ia],imports:[T.ez,g.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,g.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let mi=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):g.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends mi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case g.q3G.NONE:return t;case g.q3G.HTML:return(0,g.qzn)(t,"HTML")?(0,g.z3N)(t):(0,g.EiD)(this._doc,String(t)).toString();case g.q3G.STYLE:return(0,g.qzn)(t,"Style")?(0,g.z3N)(t):t;case g.q3G.SCRIPT:if((0,g.qzn)(t,"Script"))return(0,g.z3N)(t);throw new Error("unsafe value used in a script context");case g.q3G.URL:return(0,g.qzn)(t,"URL")?(0,g.z3N)(t):(0,g.mCW)(String(t));case g.q3G.RESOURCE_URL:if((0,g.qzn)(t,"ResourceURL"))return(0,g.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,g.JVY)(e)}bypassSecurityTrustStyle(e){return(0,g.L6k)(e)}bypassSecurityTrustScript(e){return(0,g.eBb)(e)}bypassSecurityTrustUrl(e){return(0,g.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,g.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function ke(s){return new nt(s.get(T.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),s})();var gt=x(2076),Pe=x(9646),Me=x(7579);class Lt extends Me.x{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return!e.closed&&r.next(this._value),e}getValue(){const{hasError:r,thrownError:e,_value:t}=this;if(r)throw e;return this._throwIfClosed(),t}next(r){super.next(this._value=r)}}var Rt=x(6805),or=x(9841),Vi=x(7272),Je=x(9751),Vn=x(8421);function en(s){return new Je.y(r=>{(0,Vn.Xf)(s()).subscribe(r)})}var aa=x(9635),yi=x(2843),Ft=x(515),Yt=x(727),ci=x(4482),jt=x(5403);function vn(){return(0,ci.e)((s,r)=>{let e=null;s._refCount++;const t=(0,jt.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const o=s._connection,l=e;e=null,o&&(!l||o===l)&&o.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class ns extends Je.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,ci.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Yt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,jt.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Yt.w0.EMPTY)}return r}refCount(){return vn()(this)}}var Ne=x(4004),Gi=x(3900),ii=x(5698),oa=x(3269);function Bi(...s){const r=(0,oa.yG)(s);return(0,ci.e)((e,t)=>{(r?(0,Vi.z)(s,e,r):(0,Vi.z)(s,e)).subscribe(t)})}var qt=x(9300),di=x(5577),Mi=x(590),It=x(4351),Wt=x(8505),St=x(262);function tn(s,r,e,t,o){return(l,c)=>{let n=e,i=r,a=0;l.subscribe((0,jt.x)(c,d=>{const u=a++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},o&&(()=>{n&&c.next(i),c.complete()})))}}function sa(s,r){return(0,ci.e)(tn(s,r,arguments.length>=2,!0))}function Bn(s){return s<=0?()=>Ft.E:(0,ci.e)((r,e)=>{let t=[];r.subscribe((0,jt.x)(e,o=>{t.push(o),s{for(const o of t)e.next(o);e.complete()},void 0,()=>{t=null}))})}var sr=x(8068),Di=x(6590),Fl=x(4671);function kp(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,qt.h)((o,l)=>s(o,l,t)):Fl.y,Bn(1),e?(0,Di.d)(r):(0,sr.T)(()=>new Rt.K))}var Pd=x(9718);function la(s){return(0,ci.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var rs=x(8189);const ut="primary";class on{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ca(s){return new on(s)}function Vp(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===o)}return s===r}function Id(s){return Array.prototype.concat.apply([],s)}function kd(s){return s.length>0?s[s.length-1]:null}function _i(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function On(s){return(0,g.CqO)(s)?s:(0,g.QGY)(s)?(0,gt.D)(Promise.resolve(s)):(0,Pe.of)(s)}const Op={exact:function Nl(s,r,e){if(!cr(s.segments,r.segments)||!Ka(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Nl(s.children[t],r.children[t],e))return!1;return!0},subset:os},Vd={exact:function lr(s,r){return An(s,r)},subset:function Ja(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>Rd(s[e],r[e]))},ignored:()=>!0};function Bd(s,r,e){return Op[e.paths](s.root,r.root,e.matrixParams)&&Vd[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function os(s,r,e){return zl(s,r,r.segments,e)}function zl(s,r,e,t){if(s.segments.length>e.length){const o=s.segments.slice(0,e.length);return!(!cr(o,e)||r.hasChildren()||!Ka(o,e,t))}if(s.segments.length===e.length){if(!cr(s.segments,e)||!Ka(s.segments,e,t))return!1;for(const o in r.children)if(!s.children[o]||!os(s.children[o],r.children[o],t))return!1;return!0}{const o=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(cr(s.segments,o)&&Ka(s.segments,o,t)&&s.children[ut])&&zl(s.children[ut],r,l,t)}}function Ka(s,r,e){return r.every((t,o)=>Vd[e](s[o].parameters,t.parameters))}class sn{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return ls.serialize(this)}}class lt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,_i(e,(t,o)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xa(this)}}class da{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ca(this.parameters)),this._parameterMap}toString(){return eo(this)}}function cr(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let Za=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return new ss},providedIn:"root"}),s})();class ss{parse(r){const e=new ce(r);return new sn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${cs(r.root,!0)}`,t=function Li(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(o=>`${ds(e)}=${ds(o)}`).join("&"):`${ds(e)}=${ds(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function Vb(s){return encodeURI(s)}(r.fragment)}`:""}`}}const ls=new ss;function Xa(s){return s.segments.map(r=>eo(r)).join("/")}function cs(s,r){if(!s.hasChildren())return Xa(s);if(r){const e=s.children[ut]?cs(s.children[ut],!1):"",t=[];return _i(s.children,(o,l)=>{l!==ut&&t.push(`${l}:${cs(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Oi(s,r){let e=[];return _i(s.children,(t,o)=>{o===ut&&(e=e.concat(r(t,o)))}),_i(s.children,(t,o)=>{o!==ut&&(e=e.concat(r(t,o)))}),e}(s,(t,o)=>o===ut?[cs(s.children[ut],!1)]:[`${o}:${cs(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[ut]?`${Xa(s)}/${e[0]}`:`${Xa(s)}/(${e.join("//")})`}}function Qt(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ds(s){return Qt(s).replace(/%3B/gi,";")}function Rr(s){return Qt(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wi(s){return decodeURIComponent(s)}function us(s){return wi(s.replace(/\+/g,"%20"))}function eo(s){return`${Rr(s.path)}${function ua(s){return Object.keys(s).map(r=>`;${Rr(r)}=${Rr(s[r])}`).join("")}(s.parameters)}`}const M=/^[^\/()?;=#]+/;function k(s){const r=s.match(M);return r?r[0]:""}const D=/^[^=?&#]+/,ee=/^[^&#]+/;class ce{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new lt([],{}):new lt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ut]=new lt(r,e)),t}parseSegment(){const r=k(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new g.vHH(4009,!1);return this.capture(r),new da(wi(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=k(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const o=k(this.remaining);o&&(t=o,this.capture(t))}r[wi(e)]=wi(t)}parseQueryParam(r){const e=function B(s){const r=s.match(D);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function pe(s){const r=s.match(ee);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const o=us(e),l=us(t);if(r.hasOwnProperty(o)){let c=r[o];Array.isArray(c)||(c=[c],r[o]=c),c.push(l)}else r[o]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=k(this.remaining),o=this.remaining[t.length];if("/"!==o&&")"!==o&&";"!==o)throw new g.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=ut);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[ut]:new lt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new g.vHH(4011,!1)}}function Ue(s){return s.segments.length>0?new lt([],{[ut]:s}):s}function Mt(s){const r={};for(const t of Object.keys(s.children)){const l=Mt(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function kt(s){if(1===s.numberOfChildren&&s.children[ut]){const r=s.children[ut];return new lt(s.segments.concat(r.segments),r.children)}return s}(new lt(s.segments,r))}function Ct(s){return s instanceof sn}function be(s,r,e,t,o){if(0===e.length)return qi(r.root,r.root,r.root,t,o);const l=function dr(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new ha(!0,0,s);let r=0,e=!1;const t=s.reduce((o,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return _i(l.outlets,(i,a)=>{n[a]="string"==typeof i?i.split("/"):i}),[...o,{outlets:n}]}if(l.segmentPath)return[...o,l.segmentPath]}return"string"!=typeof l?[...o,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&o.push(n))}),o):[...o,l]},[]);return new ha(e,r,t)}(e);return l.toRoot()?qi(r.root,r.root,new lt([],{}),t,o):function c(i){const a=function Ld(s,r,e,t){if(s.isAbsolute)return new Fi(r.root,!0,0);if(-1===t)return new Fi(e,e===r.root,0);return function Bb(s,r,e){let t=s,o=r,l=e;for(;l>o;){if(l-=o,t=t.parent,!t)throw new g.vHH(4005,!1);o=t.segments.length}return new Fi(t,!1,o-l)}(e,t+(rt(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=a.processChildren?Ir(a.segmentGroup,a.index,l.commands):Lp(a.segmentGroup,a.index,l.commands);return qi(r.root,a.segmentGroup,d,t,o)}(s.snapshot?._lastPathIndex)}function rt(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function xn(s){return"object"==typeof s&&null!=s&&s.outlets}function qi(s,r,e,t,o){let c,l={};t&&_i(t,(i,a)=>{l[a]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:$t(s,r,e);const n=Ue(Mt(c));return new sn(n,l,o)}function $t(s,r,e){const t={};return _i(s.children,(o,l)=>{t[l]=o===r?e:$t(o,r,e)}),new lt(s.segments,t)}class ha{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&rt(t[0]))throw new g.vHH(4003,!1);const o=t.find(xn);if(o&&o!==kd(t))throw new g.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Fi{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function Lp(s,r,e){if(s||(s=new lt([],{})),0===s.segments.length&&s.hasChildren())return Ir(s,r,e);const t=function ji(s,r,e){let t=0,o=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return l;const c=s.segments[o],n=e[t];if(xn(n))break;const i=`${n}`,a=t0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!Ln(i,a,c))return l;t+=2}else{if(!Ln(i,{},c))return l;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}(s,r,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(o[c]=Lp(s.children[c],r,l))}),_i(s.children,(l,c)=>{void 0===t[c]&&(o[c]=l)}),new lt(s.segments,o)}}function Tn(s,r,e){const t=s.segments.slice(0,r);let o=0;for(;o{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Tn(new lt([],{}),0,e))}),r}function pa(s){const r={};return _i(s,(e,t)=>r[t]=`${e}`),r}function Ln(s,r,e){return s==e.path&&An(r,e.parameters)}class ur{constructor(r,e){this.id=r,this.url=e}}class Gl extends ur{constructor(r,e,t="imperative",o=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class kr extends ur{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ql extends ur{constructor(r,e,t,o){super(r,e),this.reason=t,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Wl extends ur{constructor(r,e,t,o){super(r,e),this.error=t,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fd extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jp extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jd extends ur{constructor(r,e,t,o,l){super(r,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Lb extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Np extends ur{constructor(r,e,t,o){super(r,e),this.urlAfterRedirects=t,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nd{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class zp{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Up{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gp{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class qp{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zd{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wp{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hi{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Fn(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Fn(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=Nt(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return Nt(r,this._root).map(e=>e.value)}}function Fn(s,r){if(s===r.value)return r;for(const e of r.children){const t=Fn(s,e);if(t)return t}return null}function Nt(s,r){if(s===r.value)return[r];for(const e of r.children){const t=Nt(s,e);if(t.length)return t.unshift(r),t}return[]}class jn{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function to(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class Ud extends Hi{constructor(r,e){super(r),this.snapshot=e,Ql(this,r)}toString(){return this.snapshot.toString()}}function $p(s,r){const e=function jb(s,r){const c=new fa([],{},{},"",{},ut,r,null,s.root,-1,{});return new Yl("",new jn(c,[]))}(s,r),t=new Lt([new da("",{})]),o=new Lt({}),l=new Lt({}),c=new Lt({}),n=new Lt(""),i=new Vr(t,o,c,n,l,ut,r,e.root);return i.snapshot=e.root,new Ud(new jn(i,[]),e)}class Vr{constructor(r,e,t,o,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Ne.U)(r=>ca(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ne.U)(r=>ca(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function hs(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const o=e[t],l=e[t-1];if(o.routeConfig&&""===o.routeConfig.path)t--;else{if(l.component)break;t--}}return function $l(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class fa{constructor(r,e,t,o,l,c,n,i,a,d,u,p){this.url=r,this.params=e,this.queryParams=t,this.fragment=o,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=a,this._lastPathIndex=d,this._correctedLastPathIndex=p??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ca(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ca(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yl extends Hi{constructor(r,e){super(e),this.url=r,Ql(this,e)}toString(){return Yp(this._root)}}function Ql(s,r){r.value._routerState=s,r.children.forEach(e=>Ql(s,e))}function Yp(s){const r=s.children.length>0?` { ${s.children.map(Yp).join(", ")} } `:"";return`${s.value}${r}`}function Nn(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,An(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),An(r.params,e.params)||s.params.next(e.params),function Bp(s,r){if(s.length!==r.length)return!1;for(let e=0;eAn(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||ga(s.parent,r.parent))}function ps(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const o=function fs(s,r,e){return r.children.map(t=>{for(const o of e.children)if(s.shouldReuseRoute(t.value,o.value.snapshot))return ps(s,t,o);return ps(s,t)})}(s,r,e);return new jn(t,o)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>ps(s,n)),c}}const t=function Gd(s){return new Vr(new Lt(s.url),new Lt(s.params),new Lt(s.queryParams),new Lt(s.fragment),new Lt(s.data),s.outlet,s.component,s)}(r.value),o=r.children.map(l=>ps(s,l));return new jn(t,o)}}const qd="ngNavigationCancelingError";function Qp(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Ct(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=zb(!1,0,r);return o.url=e,o.navigationBehaviorOptions=t,o}function zb(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[qd]=!0,t.cancellationCode=r,e&&(t.url=e),t}function Ub(s){return gs(s)&&Ct(s.url)}function gs(s){return s&&s[qd]}class Jp{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new io,this.attachRef=null}}let io=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Jp,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const ma=!1;let Jl=(()=>{class s{constructor(e,t,o,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=o||ut,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.vHH(4012,ma);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.vHH(4012,ma);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.vHH(4012,ma);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new g.vHH(4013,ma);this._activatedRoute=e;const o=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new Kp(e,n,o.injector);if(t&&function no(s){return!!s.resolveComponentFactory}(t)){const a=t.resolveComponentFactory(c);this.activated=o.createComponent(a,o.length,i)}else this.activated=o.createComponent(c,{index:o.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(io),g.Y36(g.s_b),g.$8M("name"),g.Y36(g.sBO),g.Y36(g.lqb))},s.\u0275dir=g.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class Kp{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Vr?this.route:r===io?this.childContexts:this.parent.get(r,e)}}let Zp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[Jl],encapsulation:2}),s})();function _a(s,r){return s.providers&&!s._injector&&(s._injector=(0,g.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function ba(s){const r=s.children&&s.children.map(ba),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==ut&&(e.component=Zp),e}function Wi(s){return s.outlet||ut}function Zl(s,r){const e=s.filter(t=>Wi(t)===r);return e.push(...s.filter(t=>Wi(t)!==r)),e}function ms(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class $b{constructor(r,e,t,o){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=o}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Nn(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const o=to(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,o[c],t),delete o[c]}),_i(o,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(o===l)if(o.component){const c=t.getContext(o.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=to(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),o=t&&r.value.component?t.children:e,l=to(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],o);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const o=to(e);r.children.forEach(l=>{this.activateRoutes(l,o[l.value.outlet],t),this.forwardEvent(new zd(l.value.snapshot))}),r.children.length&&this.forwardEvent(new Gp(r.value.snapshot))}activateRoutes(r,e,t){const o=r.value,l=e?e.value:null;if(Nn(o),o===l)if(o.component){const c=t.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(o.component){const c=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const n=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Nn(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=ms(o.snapshot),i=n?.get(g._Vd)??null;c.attachRef=null,c.route=o,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(o,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class $d{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class _s{constructor(r,e){this.component=r,this.route=e}}function ef(s,r,e){const t=s._root;return Br(t,r?r._root:null,e,[t.value])}function ec(s,r,e){return(ms(r)??e).get(s)}function Br(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=to(r);return s.children.forEach(c=>{(function bs(s,r,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function Yb(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!cr(s.url,r.url);case"pathParamsOrQueryParamsChange":return!cr(s.url,r.url)||!An(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ga(s,r)||!An(s.queryParams,r.queryParams);default:return!ga(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?o.canActivateChecks.push(new $d(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Br(s,r,l.component?n?n.children:null:e,t,o),i&&n&&n.outlet&&n.outlet.isActivated&&o.canDeactivateChecks.push(new _s(n.outlet.component,c))}else c&&ro(r,n,o),o.canActivateChecks.push(new $d(t)),Br(s,null,l.component?n?n.children:null:e,t,o)})(c,l[c.value.outlet],e,t.concat([c.value]),o),delete l[c.value.outlet]}),_i(l,(c,n)=>ro(c,e.getContext(n),o)),o}function ro(s,r,e){const t=to(s),o=s.value;_i(t,(l,c)=>{ro(l,o.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new _s(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function ao(s){return"function"==typeof s}function Or(s){return s instanceof Rt.K||"EmptyError"===s?.name}const hr=Symbol("INITIAL_VALUE");function Ca(){return(0,Gi.w)(s=>(0,or.a)(s.map(r=>r.pipe((0,ii.q)(1),Bi(hr)))).pipe((0,Ne.U)(r=>{for(const e of r)if(!0!==e){if(e===hr)return hr;if(!1===e||e instanceof sn)return e}return!0}),(0,qt.h)(r=>r!==hr),(0,ii.q)(1)))}function Zb(s){return(0,aa.z)((0,Wt.b)(r=>{if(Ct(r))throw Qp(0,r)}),(0,Ne.U)(r=>!0===r))}const sf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function co(s,r,e,t,o){const l=lf(s,r,e);return l.matched?function ox(s,r,e,t){const o=r.canMatch;if(!o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function rf(s){return s&&ao(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),Zb())}(t=_a(r,t),r,e).pipe((0,Ne.U)(c=>!0===c?l:{...sf})):(0,Pe.of)(l)}function lf(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...sf}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(r.matcher||Vp)(e,s,r);if(!o)return{...sf};const l={};_i(o.posParams,(n,i)=>{l[i]=n.path});const c=o.consumed.length>0?{...l,...o.consumed[o.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:c,positionalParamSegments:o.posParams??{}}}function Jd(s,r,e,t,o="corrected"){if(e.length>0&&function Cs(s,r,e){return e.some(t=>tc(s,r,t)&&Wi(t)!==ut)}(s,e,t)){const c=new lt(r,function Kd(s,r,e,t){const o={};o[ut]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Wi(l)!==ut){const c=new lt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,o[Wi(l)]=c}return o}(s,r,t,new lt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function sx(s,r,e){return e.some(t=>tc(s,r,t))}(s,e,t)){const c=new lt(s.segments,function ui(s,r,e,t,o,l){const c={};for(const n of t)if(tc(s,e,n)&&!o[Wi(n)]){const i=new lt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Wi(n)]=i}return{...o,...c}}(s,r,e,t,s.children,o));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new lt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function tc(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function $i(s,r,e,t){return!!(Wi(s)===t||t!==ut&&tc(r,e,s))&&("**"===s.path||lf(r,s,e).matched)}function Un(s,r,e){return 0===r.length&&!s.children[e]}const ys=!1;class ya{constructor(r){this.segmentGroup=r||null}}class uo{constructor(r){this.urlTree=r}}function ho(s){return(0,yi._)(new ya(s))}function cf(s){return(0,yi._)(new uo(s))}class df{constructor(r,e,t,o,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=o,this.config=l,this.allowRedirects=!0}apply(){const r=Jd(this.urlTree.root,[],[],this.config).segmentGroup,e=new lt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,ut).pipe((0,Ne.U)(l=>this.createUrlTree(Mt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,St.K)(l=>{if(l instanceof uo)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof ya?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,ut).pipe((0,Ne.U)(o=>this.createUrlTree(Mt(o),r.queryParams,r.fragment))).pipe((0,St.K)(o=>{throw o instanceof ya?this.noMatchError(o):o}))}noMatchError(r){return new g.vHH(4002,ys)}createUrlTree(r,e,t){const o=Ue(r);return new sn(o,e,t)}expandSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,Ne.U)(l=>new lt([],l))):this.expandSegment(r,t,e,t.segments,o,!0)}expandChildren(r,e,t){const o=[];for(const l of Object.keys(t.children))"primary"===l?o.unshift(l):o.push(l);return(0,gt.D)(o).pipe((0,It.b)(l=>{const c=t.children[l],n=Zl(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,Ne.U)(i=>({segment:i,outlet:l})))}),sa((l,c)=>(l[c.outlet]=c.segment,l),{}),kp())}expandSegment(r,e,t,o,l,c){return(0,gt.D)(t).pipe((0,It.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,o,l,c).pipe((0,St.K)(a=>{if(a instanceof ya)return(0,Pe.of)(null);throw a}))),(0,Mi.P)(n=>!!n),(0,St.K)((n,i)=>{if(Or(n))return Un(e,o,l)?(0,Pe.of)(new lt([],{})):ho(e);throw n}))}expandSegmentAgainstRoute(r,e,t,o,l,c,n){return $i(o,e,l,c)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(r,e,o,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c):ho(e):ho(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,o,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,o){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?cf(l):this.lineralizeSegments(t,l).pipe((0,di.z)(c=>{const n=new lt(c,{});return this.expandSegment(r,n,e,c,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,o,l,c){const{matched:n,consumedSegments:i,remainingSegments:a,positionalParamSegments:d}=lf(e,o,l);if(!n)return ho(e);const u=this.applyRedirectCommands(i,o.redirectTo,d);return o.redirectTo.startsWith("/")?cf(u):this.lineralizeSegments(o,u).pipe((0,di.z)(p=>this.expandSegment(r,e,t,p.concat(a),c,!1)))}matchSegmentAgainstRoute(r,e,t,o,l){return"**"===t.path?(r=_a(t,r),t.loadChildren?(t._loadedRoutes?(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,Ne.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new lt(o,{})))):(0,Pe.of)(new lt(o,{}))):co(e,t,o,r).pipe((0,Gi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,o).pipe((0,di.z)(d=>{const u=d.injector??r,p=d.routes,{segmentGroup:b,slicedSegments:H}=Jd(e,n,i,p),z=new lt(b.segments,b.children);if(0===H.length&&z.hasChildren())return this.expandChildren(u,p,z).pipe((0,Ne.U)(mt=>new lt(n,mt)));if(0===p.length&&0===H.length)return(0,Pe.of)(new lt(n,{}));const ae=Wi(t)===l;return this.expandSegment(u,z,p,H,ae?ut:l,!0).pipe((0,Ne.U)(ot=>new lt(n.concat(ot.segments),ot.children)))})):ho(e)))}getChildConfig(r,e,t){return e.children?(0,Pe.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,Pe.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function ax(s,r,e,t){const o=r.canLoad;if(void 0===o||0===o.length)return(0,Pe.of)(!0);const l=o.map(c=>{const n=s.get(c),i=function Qb(s){return s&&ao(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return On(i)});return(0,Pe.of)(l).pipe(Ca(),Zb())}(r,e,t).pipe((0,di.z)(o=>o?this.configLoader.loadChildren(r,e).pipe((0,Wt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function lx(s){return(0,yi._)(zb(ys,3))}())):(0,Pe.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),0===o.numberOfChildren)return(0,Pe.of)(t);if(o.numberOfChildren>1||!o.children[ut])return(0,yi._)(new g.vHH(4e3,ys));o=o.children[ut]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,o){const l=this.createSegmentGroup(r,e.root,t,o);return new sn(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return _i(r,(o,l)=>{if("string"==typeof o&&o.startsWith(":")){const n=o.substring(1);t[l]=e[n]}else t[l]=o}),t}createSegmentGroup(r,e,t,o){const l=this.createSegments(r,e.segments,t,o);let c={};return _i(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,o)}),new lt(l,c)}createSegments(r,e,t,o){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,o):this.findOrReturn(l,t))}findPosParam(r,e,t){const o=t[e.path.substring(1)];if(!o)throw new g.vHH(4001,ys);return o}findOrReturn(r,e){let t=0;for(const o of e){if(o.path===r.path)return e.splice(t),o;t++}return r}}class fo{}class eC{constructor(r,e,t,o,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=o,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=Jd(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,ut).pipe((0,Ne.U)(e=>{if(null===e)return null;const t=new fa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new jn(t,e),l=new Yl(this.url,o);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=hs(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(r,e,t,o){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,o)}processChildren(r,e,t){return(0,gt.D)(Object.keys(t.children)).pipe((0,It.b)(o=>{const l=t.children[o],c=Zl(e,o);return this.processSegmentGroup(r,c,l,o)}),sa((o,l)=>o&&l?(o.push(...l),o):null),function jl(s,r=!1){return(0,ci.e)((e,t)=>{let o=0;e.subscribe((0,jt.x)(t,l=>{const c=s(l,o++);(c||r)&&t.next(l),!c&&t.complete()}))})}(o=>null!==o),(0,Di.d)(null),kp(),(0,Ne.U)(o=>{if(null===o)return null;const l=hf(o);return function tC(s){s.sort((r,e)=>r.value.outlet===ut?-1:e.value.outlet===ut?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,o,l){return(0,gt.D)(e).pipe((0,It.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,o,l)),(0,Mi.P)(c=>!!c),(0,St.K)(c=>{if(Or(c))return Un(t,o,l)?(0,Pe.of)([]):(0,Pe.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,o,l){if(e.redirectTo||!$i(e,t,o,l))return(0,Pe.of)(null);let c;if("**"===e.path){const n=o.length>0?kd(o).parameters:{},i=ws(t)+o.length,a=new fa(o,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,go(e),Wi(e),e.component??e._loadedComponent??null,e,ic(t),i,nc(e),i);c=(0,Pe.of)({snapshot:a,consumedSegments:[],remainingSegments:[]})}else c=co(t,e,o,r).pipe((0,Ne.U)(({matched:n,consumedSegments:i,remainingSegments:a,parameters:d})=>{if(!n)return null;const u=ws(t)+i.length;return{snapshot:new fa(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,go(e),Wi(e),e.component??e._loadedComponent??null,e,ic(t),u,nc(e),u),consumedSegments:i,remainingSegments:a}}));return c.pipe((0,Gi.w)(n=>{if(null===n)return(0,Pe.of)(null);const{snapshot:i,consumedSegments:a,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,p=function iC(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:H}=Jd(t,a,d,p.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===H.length&&b.hasChildren())return this.processChildren(u,p,b).pipe((0,Ne.U)(ae=>null===ae?null:[new jn(i,ae)]));if(0===p.length&&0===H.length)return(0,Pe.of)([new jn(i,[])]);const z=Wi(e)===l;return this.processSegment(u,p,b,H,z?ut:l).pipe((0,Ne.U)(ae=>null===ae?null:[new jn(i,ae)]))}))}}function nC(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function hf(s){const r=[],e=new Set;for(const t of s){if(!nC(t)){r.push(t);continue}const o=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==o?(o.children.push(...t.children),e.add(o)):r.push(t)}for(const t of e){const o=hf(t.children);r.push(new jn(t.value,o))}return r.filter(t=>!e.has(t))}function ic(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function ws(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function go(s){return s.data||{}}function nc(s){return s.resolve||{}}const Zd=Symbol("RouteTitle");function ff(s){return"string"==typeof s.title||null===s.title}function Jt(s){return(0,Gi.w)(r=>{const e=s(r);return e?(0,gt.D)(e).pipe((0,Ne.U)(()=>r)):(0,Pe.of)(r)})}let Xd=(()=>{class s{buildTitle(e){let t,o=e.root;for(;void 0!==o;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(l=>l.outlet===ut);return t}getResolvedTitleForRoute(e){return e.data[Zd]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:function(){return(0,g.f3M)(eu)},providedIn:"root"}),s})(),eu=(()=>{class s extends Xd{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Y))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class tu{}class lC extends class As{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const iu=new g.OlP("",{providedIn:"root",factory:()=>({})}),wa=new g.OlP("ROUTES");let oc=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Pe.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=On(e.loadComponent()).pipe((0,Wt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),la(()=>{this.componentLoaders.delete(e)})),o=new ns(t,()=>new Me.x).pipe(vn());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Pe.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Ne.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,a,d=!1;Array.isArray(n)?a=n:(i=n.create(e).injector,a=Id(i.get(wa,[],g.XFs.Self|g.XFs.Optional)));return{routes:a.map(ba),injector:i}}),la(()=>{this.childrenLoaders.delete(t)})),c=new ns(l,()=>new Me.x).pipe(vn());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return On(e()).pipe((0,di.z)(t=>t instanceof g.YKP||Array.isArray(t)?(0,Pe.of)(t):(0,gt.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(g.Sil))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class xs{}class dC{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function Es(s){throw s}function sc(s,r,e){return r.parse("/")}const gf={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},uC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function va(){const s=(0,g.f3M)(Za),r=(0,g.f3M)(io),e=(0,g.f3M)(T.Ye),t=(0,g.f3M)(g.zs3),o=(0,g.f3M)(g.Sil),l=(0,g.f3M)(wa,{optional:!0})??[],c=(0,g.f3M)(iu,{optional:!0})??{},n=(0,g.f3M)(eu),i=(0,g.f3M)(Xd,{optional:!0}),a=(0,g.f3M)(xs,{optional:!0}),d=(0,g.f3M)(tu,{optional:!0}),u=new Kt(null,s,r,e,t,o,Id(l));return a&&(u.urlHandlingStrategy=a),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function hC(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let Kt=(()=>{class s{constructor(e,t,o,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=o,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me.x,this.errorHandler=Es,this.malformedUriErrorHandler=sc,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Pe.of)(void 0),this.urlHandlingStrategy=new dC,this.routeReuseStrategy=new lC,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(oc),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new zp(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Nd(p)),this.ngModule=c.get(g.h0i),this.console=c.get(g.c2e);const u=c.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function as(){return new sn(new lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$p(this.currentUrlTree,this.rootComponentType),this.transitions=new Lt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,qt.h)(o=>0!==o.id),(0,Ne.U)(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),(0,Gi.w)(o=>{let l=!1,c=!1;return(0,Pe.of)(o).pipe((0,Wt.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Gi.w)(n=>{const i=this.browserUrlTree.toString(),a=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return fC(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,Pe.of)(n).pipe((0,Gi.w)(u=>{const p=this.transitions.getValue();return t.next(new Gl(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),p!==this.transitions.getValue()?Ft.E:Promise.resolve(u)}),function nn(s,r,e,t){return(0,Gi.w)(o=>function cx(s,r,e,t,o){return new df(s,r,e,t,o).apply()}(s,r,e,o.extractedUrl,t).pipe((0,Ne.U)(l=>({...o,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Wt.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},o.urlAfterRedirects=u.urlAfterRedirects}),function rc(s,r,e,t,o,l){return(0,di.z)(c=>function uf(s,r,e,t,o,l,c="emptyOnly",n="legacy"){return new eC(s,r,e,t,o,c,n,l).recognize().pipe((0,Gi.w)(i=>null===i?function dx(s){return new Je.y(r=>r.error(s))}(new fo):(0,Pe.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,o,l).pipe((0,Ne.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Wt.b)(u=>{if(o.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const p=new Fd(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(p)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:b,source:H,restoredState:z,extras:ae}=n,Ve=new Gl(p,this.serializeUrl(b),H,z);t.next(Ve);const ot=$p(b,this.rootComponentType).snapshot;return o={...n,targetSnapshot:ot,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,Pe.of)(o)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ft.E}),(0,Wt.b)(n=>{const i=new jp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,Ne.U)(n=>o={...n,guards:ef(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function Qd(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,Pe.of)({...e,guardsResult:!0}):function lo(s,r,e,t){return(0,gt.D)(s).pipe((0,di.z)(o=>function rx(s,r,e,t,o){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Pe.of)(!0);const c=l.map(n=>{const i=ec(n,r,o);return On(function Jb(s){return s&&ao(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,Mi.P)())});return(0,Pe.of)(c).pipe(Ca())}(o.component,o.route,e,r,t)),(0,Mi.P)(o=>!0!==o,!0))}(c,t,o,s).pipe((0,di.z)(n=>n&&function oo(s){return"boolean"==typeof s}(n)?function tx(s,r,e,t){return(0,gt.D)(r).pipe((0,It.b)(o=>(0,Vi.z)(function Ht(s,r){return null!==s&&r&&r(new Up(s)),(0,Pe.of)(!0)}(o.route.parent,t),function Kb(s,r){return null!==s&&r&&r(new qp(s)),(0,Pe.of)(!0)}(o.route,t),function nx(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function tf(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>en(()=>{const n=c.guards.map(i=>{const a=ec(i,c.node,e);return On(function Yd(s){return s&&ao(s.canActivateChild)}(a)?a.canActivateChild(t,s):a(t,s)).pipe((0,Mi.P)())});return(0,Pe.of)(n).pipe(Ca())}));return(0,Pe.of)(l).pipe(Ca())}(s,o.path,e),function ix(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Pe.of)(!0);const o=t.map(l=>en(()=>{const c=ec(l,r,e);return On(function nf(s){return s&&ao(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,Mi.P)())}));return(0,Pe.of)(o).pipe(Ca())}(s,o.route,e))),(0,Mi.P)(o=>!0!==o,!0))}(t,l,s,r):(0,Pe.of)(n)),(0,Ne.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Wt.b)(n=>{if(o.guardsResult=n.guardsResult,Ct(n.guardsResult))throw Qp(0,n.guardsResult);const i=new jd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,qt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),Jt(n=>{if(n.guards.canActivateChecks.length)return(0,Pe.of)(n).pipe((0,Wt.b)(i=>{const a=new Lb(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}),(0,Gi.w)(i=>{let a=!1;return(0,Pe.of)(i).pipe(function oC(s,r){return(0,di.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return(0,Pe.of)(e);let l=0;return(0,gt.D)(o).pipe((0,It.b)(c=>function sC(s,r,e,t){const o=s.routeConfig,l=s._resolve;return void 0!==o?.title&&!ff(o)&&(l[Zd]=o.title),function pf(s,r,e,t){const o=function vs(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===o.length)return(0,Pe.of)({});const l={};return(0,gt.D)(o).pipe((0,di.z)(c=>function mo(s,r,e,t){const o=ec(s,r,t);return On(o.resolve?o.resolve(r,e):o(r,e))}(s[c],r,e,t).pipe((0,Mi.P)(),(0,Wt.b)(n=>{l[c]=n}))),Bn(1),(0,Pd.h)(l),(0,St.K)(c=>Or(c)?Ft.E:(0,yi._)(c)))}(l,s,r,t).pipe((0,Ne.U)(c=>(s._resolvedData=c,s.data=hs(s,e).resolve,o&&ff(o)&&(s.data[Zd]=o.title),null)))}(c.route,t,s,r)),(0,Wt.b)(()=>l++),Bn(1),(0,di.z)(c=>l===o.length?(0,Pe.of)(e):Ft.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Wt.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Wt.b)(i=>{const a=new Np(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}))}),Jt(n=>{const i=a=>{const d=[];a.routeConfig?.loadComponent&&!a.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(a.routeConfig).pipe((0,Wt.b)(u=>{a.component=u}),(0,Ne.U)(()=>{})));for(const u of a.children)d.push(...i(u));return d};return(0,or.a)(i(n.targetSnapshot.root)).pipe((0,Di.d)(),(0,ii.q)(1))}),Jt(()=>this.afterPreactivation()),(0,Ne.U)(n=>{const i=function Nb(s,r,e){const t=ps(s,r._root,e?e._root:void 0);return new Ud(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return o={...n,targetRouterState:i}}),(0,Wt.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((s,r,e)=>(0,Ne.U)(t=>(new $b(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Wt.b)({next(){l=!0},complete(){l=!0}}),la(()=>{l||c||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),(0,St.K)(n=>{if(c=!0,gs(n)){Ub(n)||(this.navigated=!0,this.restoreHistory(o,!0));const i=new ql(o.id,this.serializeUrl(o.extractedUrl),n.message,n.cancellationCode);if(t.next(i),Ub(n)){const a=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||fC(o.source)};this.scheduleNavigation(a,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const i=new Wl(o.id,this.serializeUrl(o.extractedUrl),n,o.targetSnapshot??void 0);t.next(i);try{o.resolve(this.errorHandler(n))}catch(a){o.reject(a)}}return Ft.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const o={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(o.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ba),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:o,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,a=o||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),be(a,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const o=Ct(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function pC(s){for(let r=0;r{const l=e[o];return null!=l&&(t[o]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new kr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,o,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,a;c?(n=c.resolve,i=c.reject,a=c.promise):a=new Promise((p,b)=>{n=p,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),u=o&&o.\u0275routerPageId?o.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(p=>Promise.reject(p))}setBrowserUrl(e,t){const o=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(o)||t.extras.replaceUrl?this.location.replaceState(o,"",l):this.location.go(o,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,o){const l=new ql(e.id,this.serializeUrl(e.extractedUrl),t,o);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:function(){return va()},providedIn:"root"}),s})();function fC(s){return"imperative"!==s}class mf{}let au=(()=>{class s{constructor(e,t,o,l,c){this.router=e,this.injector=o,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,qt.h)(e=>e instanceof kr),(0,It.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const o=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,g.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?o.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&o.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,gt.D)(o).pipe((0,rs.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;o=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Pe.of)(null);const l=o.pipe((0,di.z)(c=>null===c?(0,Pe.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,gt.D)([l,c]).pipe((0,rs.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Kt),g.LFG(g.Sil),g.LFG(g.lqb),g.LFG(mf),g.LFG(oc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const _f=new g.OlP("");let bf=(()=>{class s{constructor(e,t,o={}){this.router=e,this.viewportScroller=t,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Gl?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof kr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wp&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Wp(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const _C=new g.OlP("ROUTER_FORROOT_GUARD"),cc=new g.OlP(""),bC=[T.Ye,{provide:Za,useClass:ss},{provide:Kt,useFactory:va},io,{provide:Vr,useFactory:function Cf(s){return s.routerState.root},deps:[Kt]},oc];function dc(){return new g.PXZ("Router",Kt)}let _o=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[bC,[],Ss(e),{provide:_C,useFactory:px,deps:[[Kt,new g.FiY,new g.tp0]]},{provide:iu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:_f,useFactory:()=>{const s=(0,g.f3M)(Kt),r=(0,g.f3M)(T.EM),e=(0,g.f3M)(iu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new bf(s,r,e)}},t?.preloadingStrategy?xC(t.preloadingStrategy):[],{provide:g.PXZ,multi:!0,useFactory:dc},t?.initialNavigation?yf(t):[],[{provide:su,useFactory:ou},{provide:g.tb,multi:!0,useExisting:su}]]}}static forChild(e){return{ngModule:s,providers:[Ss(e)]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(_C,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();function px(s){return"guarded"}function Ss(s){return[{provide:wa,multi:!0,useValue:s}]}function ou(){const s=(0,g.f3M)(g.zs3);return r=>{const e=s.get(g.z2F);if(r!==e.components[0])return;const t=s.get(Kt),o=s.get(Lr);1===s.get(lu)&&t.initialNavigation(),s.get(cc,null,g.XFs.Optional)?.setUpPreloading(),s.get(_f,null,g.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.next(),o.complete()}}const su=new g.OlP("");function yf(s){return["disabled"===s.initialNavigation?[{provide:g.ip1,multi:!0,useFactory:()=>{const s=(0,g.f3M)(Kt);return()=>{s.setUpLocationChangeListener()}}},{provide:lu,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:lu,useValue:0},{provide:g.ip1,multi:!0,deps:[g.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(o=>{const l=s.get(Kt),c=s.get(Lr);(function t(o){s.get(Kt).events.pipe((0,qt.h)(c=>c instanceof kr||c instanceof ql||c instanceof Wl),(0,Ne.U)(c=>c instanceof kr||c instanceof ql&&(0===c.code||1===c.code)&&null),(0,qt.h)(c=>null!==c),(0,ii.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),e=!0}),l.afterPreactivation=()=>(o(!0),e||c.closed?(0,Pe.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Lr=new g.OlP("",{factory:()=>new Me.x}),lu=new g.OlP("",{providedIn:"root",factory:()=>1});function xC(s){return[au,{provide:cc,useExisting:au},{provide:mf,useExisting:s}]}let Co=(()=>{class s{constructor(){this.title="linker"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-root"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},dependencies:[Jl]}),s})();var Ms=x(1214);let cu;try{cu=typeof Intl<"u"&&Intl.v8BreakIterator}catch{cu=!1}let yo,hi=(()=>{class s{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!cu)&&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 s.\u0275fac=function(e){return new(e||s)(g.LFG(g.Lbi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const vf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function du(){if(yo)return yo;if("object"!=typeof document||!document)return yo=new Set(vf),yo;let s=document.createElement("input");return yo=new Set(vf.filter(r=>(s.setAttribute("type",r),s.type===r))),yo}let Ds,wo,pc;function Gn(s){return function TC(){if(null==Ds&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ds=!0}))}finally{Ds=Ds||!1}return Ds}()?s:!!s.capture}function EC(){if(null==wo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wo=!1,wo;if("scrollBehavior"in document.documentElement.style)wo=!0;else{const s=Element.prototype.scrollTo;wo=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return wo}function jr(s){if(function qn(){if(null==pc){const s=typeof document<"u"?document.head:null;pc=!(!s||!s.createShadowRoot&&!s.attachShadow)}return pc}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function fc(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function ln(s){return s.composedPath?s.composedPath()[0]:s.target}function gc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function pr(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Ac=x(8372);function xc(s){return(0,qt.h)((r,e)=>s<=e)}function Rs(s,r){return s===r}var mu=x(5032);function zt(s){return(0,ci.e)((r,e)=>{(0,Vn.Xf)(s).subscribe((0,jt.x)(e,()=>e.complete(),mu.Z)),!e.closed&&r.subscribe(e)})}function ct(s){return null!=s&&"false"!=`${s}`}function cn(s,r=0){return function KC(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Is(s){return Array.isArray(s)?s:[s]}function oi(s){return null==s?"":"string"==typeof s?s:`${s}px`}function Zt(s){return s instanceof g.SBq?s.nativeElement:s}let qf=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ZC=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zt(e);return new Je.y(o=>{const c=this._observeElement(t).subscribe(o);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Me.x,o=this._mutationObserverFactory.create(l=>t.next(l));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(qf))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),_u=(()=>{class s{constructor(e,t,o){this._contentObserver=e,this._elementRef=t,this._ngZone=o,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=ct(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Ac.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(ZC),g.Y36(g.SBq),g.Y36(g.R0b))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),ks=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[qf]}),s})();const xa=new Set;let Yi,XC=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aT}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ey(s){if(!xa.has(s))try{Yi||(Yi=document.createElement("style"),Yi.setAttribute("type","text/css"),document.head.appendChild(Yi)),Yi.sheet&&(Yi.sheet.insertRule(`@media ${s} {body{ }}`,0),xa.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function aT(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let oT=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Me.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return bu(Is(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){const o=bu(Is(e)).map(c=>this._registerQuery(c).observable);let l=(0,or.a)(o);return l=(0,Vi.z)(l.pipe((0,ii.q)(1)),l.pipe(xc(1),(0,Ac.b)(0))),l.pipe((0,Ne.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:a})=>{n.matches=n.matches||i,n.breakpoints[a]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Je.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Bi(t),(0,Ne.U)(({matches:c})=>({query:e,matches:c})),zt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(XC),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function bu(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}let Vs=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Cu(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ay(s){try{return s.frameElement}catch{return null}}(function vu(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===yu(t)||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),l=yu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function wu(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==l:"video"===o?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function eg(s){return!function sy(s){return function cy(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function oy(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function ly(s){return function dy(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Xf(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Xf(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function yu(s){if(!Xf(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class uy{constructor(r,e,t,o,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,ii.q)(1)).subscribe(r)}}let Au=(()=>{class s{constructor(e,t,o){this._checker=e,this._ngZone=t,this._document=o}create(e,t=!1){return new uy(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Vs),g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function tg(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function To(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const my=new g.OlP("cdk-input-modality-detector-options"),ig={ignoreKeys:[18,17,224,91,16]},Ea=Gn({passive:!0,capture:!0});let Tu=(()=>{class s{constructor(e,t,o,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Lt(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ln(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(tg(c)?"keyboard":"mouse"),this._mostRecentTarget=ln(c))},this._onTouchstart=c=>{To(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ln(c))},this._options={...ig,...l},this.modalityDetected=this._modality.pipe(xc(1)),this.modalityChanged=this.modalityDetected.pipe(function Pi(s,r=Fl.y){return s=s??Rs,(0,ci.e)((e,t)=>{let o,l=!0;e.subscribe((0,jt.x)(t,c=>{const n=r(c);(l||!s(o,n))&&(l=!1,o=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,Ea),o.addEventListener("mousedown",this._onMousedown,Ea),o.addEventListener("touchstart",this._onTouchstart,Ea)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ea),document.removeEventListener("mousedown",this._onMousedown,Ea),document.removeEventListener("touchstart",this._onTouchstart,Ea))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(my,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const rg=new g.OlP("cdk-focus-monitor-default-options"),Eo=Gn({passive:!0,capture:!0});let dn=(()=>{class s{constructor(e,t,o,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=o,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 Me.x,this._rootNodeFocusAndBlurListener=n=>{for(let a=ln(n);a;a=a.parentElement)"focus"===n.type?this._onFocus(n,a):this._onBlur(n,a)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const o=Zt(e);if(!this._platform.isBrowser||1!==o.nodeType)return(0,Pe.of)(null);const l=jr(o)||this._getDocument(),c=this._elementInfo.get(o);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Me.x,rootNode:l};return this._elementInfo.set(o,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Zt(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){const l=Zt(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const o=this._elementInfo.get(t),l=ln(e);!o||!o.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),o)}_onBlur(e,t){const o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Eo),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Eo)}),this._rootNodeFocusListenerCount.set(t,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(zt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Eo),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Eo),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((o,l)=>{(l===e||o.checkChildren&&l.contains(e))&&t.push([l,o])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,g.f3M)(oT).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(Mu,Su,ag),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Mu,Su):2===t&&e.add(Mu,ag)}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),So=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Du))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[ks]}),s})();const og=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function cT(){return(0,g.f3M)(T.K0)}}),sg=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Nr=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new g.vpe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function Cy(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?sg.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(og,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const Ay=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function vy(){return!0}});let Ae=(()=>{class s{constructor(e,t,o){this._sanityChecks=t,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!gc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Du),g.LFG(Ay,8),g.LFG(T.K0))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo,Mo]}),s})();function Sc(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=ct(r)}}}function Sa(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function zr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=ct(r)}}}function Hu(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const Sy=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function mT(){return(0,g.f3M)(g.soG)}});class hn{constructor(){this._localeChanges=new Me.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),o=this.isValid(e);return t&&o?!this.compareDate(r,e):t==o}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Os=new g.OlP("mat-date-formats"),Ma=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Pu(s,r){const e=Array(s);for(let t=0;t{class s extends hn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Pu(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Pu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Pu(7,o=>this._format(t,new Date(2017,0,o+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,o){let l=this._createDateWithOverflow(e,t,o);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ma.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,o){const l=new Date;return l.setFullYear(e,t,o),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Sy,8),g.LFG(hi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const Ru={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 My=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:hn,useClass:Mc}]}),s})(),Dy=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:Os,useValue:Ru}],imports:[My]}),s})(),Dc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Pc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})();class Do{constructor(r,e,t,o=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ug={enterDuration:225,exitDuration:150},Ho=Gn({passive:!0}),pg=["mousedown","touchstart"],Iu=["mouseup","mouseleave","touchend","touchcancel"];class fg{constructor(r,e,t,o){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Zt(t))}fadeInRipple(r,e,t={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...ug,...t.animation};t.centered&&(r=o.left+o.width/2,e=o.top+o.height/2);const c=t.radius||function Py(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),o=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+o*o)}(r,e,o),n=r-o.left,i=e-o.top,a=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,H="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new Do(this,d,t,H);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!H&&(a||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ve=()=>this._finishRippleTransition(z),ot=()=>this._destroyRipple(z);d.addEventListener("transitionend",Ve),d.addEventListener("transitioncancel",ot),ae={onTransitionEnd:Ve,onTransitionCancel:ot}}),this._activeRipples.set(z,ae),(H||!a)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...ug,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Zt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(pg))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Iu),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=tg(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Ho)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(pg.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ho)}),this._pointerUpEventsRegistered&&Iu.forEach(r=>{this._triggerElement.removeEventListener(r,this,Ho)}))}}const gg=new g.OlP("mat-ripple-global-options");let Da=(()=>{class s{constructor(e,t,o,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new fg(this,t,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(hi),g.Y36(gg,8),g.Y36(g.QbO,8))},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&g.ekj("mat-ripple-unbounded",t.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"]}),s})(),pn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),ku=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae]}),s})(),Rc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,T.ez,Ae,ku]}),s})();const By=["mat-button",""],Bu=["*"],Cg=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lu=Sa(Sc(zr(class{constructor(s){this._elementRef=s}})));let yg=(()=>{class s extends Lu{constructor(e,t,o){super(e),this._focusMonitor=t,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Cg)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(dn),g.Y36(g.QbO,8))},s.\u0275cmp=g.Xpm({type:s,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(e,t){if(1&e&&g.Gf(Da,5),2&e){let o;g.iGM(o=g.CRH())&&(t.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(g.uIk("disabled",t.disabled||null),g.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[g.qOj],attrs:By,ngContentSelectors:Bu,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(e,t){1&e&&(g.F$t(),g.TgZ(0,"span",0),g.Hsn(1),g.qZA(),g._UZ(2,"span",1)(3,"span",2)),2&e&&(g.xp6(2),g.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),g.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Da],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),fr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,Ae]}),s})();var Ic=x(1144),fn=x(576),kc=x(3268);const Fu=["addListener","removeListener"],ju=["addEventListener","removeEventListener"],bT=["on","off"];function Fs(s,r,e,t){if((0,fn.m)(e)&&(t=e,e=void 0),t)return Fs(s,r,e).pipe((0,kc.Z)(t));const[o,l]=function vg(s){return(0,fn.m)(s.addEventListener)&&(0,fn.m)(s.removeEventListener)}(s)?ju.map(c=>n=>s[c](r,n,e)):function Ly(s){return(0,fn.m)(s.addListener)&&(0,fn.m)(s.removeListener)}(s)?Fu.map(wg(s,r)):function Fy(s){return(0,fn.m)(s.on)&&(0,fn.m)(s.off)}(s)?bT.map(wg(s,r)):[];if(!o&&(0,Ic.z)(s))return(0,di.z)(c=>Fs(c,r,e))((0,Vn.Xf)(s));if(!o)throw new TypeError("Invalid event target");return new Je.y(c=>{const n=(...i)=>c.next(1l(n)})}function wg(s,r){return e=>t=>s[e](r,t)}var jy=x(4408);const js={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=js;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const o=r(l=>{e=void 0,s(l)});return new Yt.w0(()=>e?.(o))},requestAnimationFrame(...s){const{delegate:r}=js;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=js;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var Nu=x(7565);const xg=new class Ag extends Nu.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class CT extends jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=js.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(js.cancelAnimationFrame(e),r._scheduled=void 0)}});let Eg,yT=1;const zu={};function Ny(s){return s in zu&&(delete zu[s],!0)}const wT={setImmediate(s){const r=yT++;return zu[r]=!0,Eg||(Eg=Promise.resolve()),Eg.then(()=>Ny(r)&&s()),r},clearImmediate(s){Ny(s)}},{setImmediate:vT,clearImmediate:AT}=wT,Uu={setImmediate(...s){const{delegate:r}=Uu;return(r?.setImmediate||vT)(...s)},clearImmediate(s){const{delegate:r}=Uu;return(r?.clearImmediate||AT)(s)},delegate:void 0};new class Gr extends Nu.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let o;r=r||t.shift();do{if(o=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,o){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw o}}}(class xT extends jy.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Uu.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(o=>o.id===e)||(Uu.clearImmediate(e),r._scheduled=void 0)}});var qu=x(4986),$u=x(2805);function Ns(s,r=qu.z){return function Wu(s){return(0,ci.e)((r,e)=>{let t=!1,o=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const a=o;o=null,e.next(a)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,jt.x)(e,a=>{t=!0,o=a,l||(0,Vn.Xf)(s(a)).subscribe(l=(0,jt.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,$u.H)(s,r))}let Uy=(()=>{class s{constructor(e,t,o){this._ngZone=e,this._platform=t,this._scrolled=new Me.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Je.y(t=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Ns(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Pe.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,qt.h)(l=>!l||o.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((o,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let o=Zt(t),l=e.getElementRef().nativeElement;do{if(o==l)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Fs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(hi),g.LFG(T.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$n=(()=>{class s{constructor(e,t,o){this._platform=e,this._change=new Me.x,this._changeListener=l=>{this._change.next(l)},this._document=o,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),o=e.documentElement,l=o.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Ns(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b),g.LFG(T.K0,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),qr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo,Yn,Mo,Yn]}),s})();class Oc{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class Qu extends Oc{constructor(r,e,t,o){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=o}}class Qi extends Oc{constructor(r,e,t,o){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class Rg extends Oc{constructor(r){super(),this.element=r instanceof g.SBq?r.nativeElement:r}}class Ju{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof Qu?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof Qi?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof Rg?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Yy extends Ju{constructor(r,e,t,o,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=o,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let o;return r.viewContainerRef?(o=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=t.create(r.injector||this._defaultInjector||g.zs3.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=r,o}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);-1!==o&&e.remove(o)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Ku=(()=>{class s extends Ju{constructor(e,t,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(T.K0))},s.\u0275dir=g.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),s})(),gr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var mr=x(6451);const kg=EC();class Jy{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=oi(-this._previousScrollPosition.left),r.style.top=oi(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,o=this._document.body.style,l=t.scrollBehavior||"",c=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),kg&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kg&&(t.scrollBehavior=l,o.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Vg{constructor(r,e,t,o){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Bg{enable(){}disable(){}attach(){}}function gn(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Lc(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class Zy{constructor(r,e,t,o){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=o,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();gn(e,[{width:t,height:o,bottom:o,right:t,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 Xy=(()=>{class s{constructor(e,t,o,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=o,this.noop=()=>new Bg,this.close=c=>new Vg(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new Jy(this._viewportRuler,this._document),this.reposition=c=>new Zy(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Uy),g.LFG($n),g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class ew{constructor(r){if(this.scrollStrategy=new Bg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class iw{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Lg=(()=>{class s{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),nw=(()=>{class s extends Lg{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=o=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(o)):n.next(o);break}}}add(e){super.add(e),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 s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fc=(()=>{class s extends Lg{constructor(e,t,o){super(e),this._platform=t,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=ln(l)},this._clickListener=l=>{const c=ln(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let a=i.length-1;a>-1;a--){const d=i[a];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(hi),g.LFG(g.R0b,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Po=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||gc()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Me.x,this._outsidePointerEvents=new Me.x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ii.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=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,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=oi(this._config.width),r.height=oi(this._config.height),r.minWidth=oi(this._config.minWidth),r.minHeight=oi(this._config.minHeight),r.maxWidth=oi(this._config.maxWidth),r.maxHeight=oi(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const o=Is(e||[]).filter(l=>!!l);o.length&&(t?r.classList.add(...o):r.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(zt((0,mr.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Zu="cdk-overlay-connected-position-bounding-box",Xu=/([A-Za-z%]+)$/;class Fg{constructor(r,e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l,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 Me.x,this._resizeSubscription=Yt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Zu),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,o,n),a=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(a,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,a,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=a)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ro(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Zu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let o,l;if("center"==t.originX)o=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;o="start"==t.originX?c:n}return e.left<0&&(o-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:o,y:l}}_getOverlayPoint(r,e,t){let o,l;return o="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+o,y:r.y+l}}_getOverlayFit(r,e,t,o){const l=jc(e);let{x:c,y:n}=r,i=this._getOffset(o,"x"),a=this._getOffset(o,"y");i&&(c+=i),a&&(n+=a);let p=0-n,b=n+l.height-t.height,H=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,p,b),ae=H*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:H==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const o=t.bottom-e.y,l=t.right-e.x,c=rw(this._overlayRef.getConfig().minHeight),n=rw(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=o)&&a}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const o=jc(e),l=this._viewportRect,c=Math.max(r.x+o.width-l.width,0),n=Math.max(r.y+o.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),a=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=o.width<=l.width?a||-c:r.xH&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-H/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)p=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),H=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>H&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-H/2)}return{top:c,left:u,bottom:n,right:p,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;o.height=oi(t.height),o.top=oi(t.top),o.bottom=oi(t.bottom),o.width=oi(t.width),o.left=oi(t.left),o.right=oi(t.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(o.maxHeight=oi(l)),c&&(o.maxWidth=oi(c))}this._lastBoundingBoxSize=t,Ro(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Ro(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ro(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},o=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(o){const d=this._viewportRuler.getViewportScrollPosition();Ro(t,this._getExactOverlayY(e,r,d)),Ro(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),a=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),a&&(n+=`translateY(${a}px)`),t.transform=n.trim(),c.maxHeight&&(o?t.maxHeight=oi(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(o?t.maxWidth=oi(c.maxWidth):l&&(t.maxWidth="")),Ro(this._pane.style,t)}_getExactOverlayY(r,e,t){let o={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?o.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":o.top=oi(l.y),o}_getExactOverlayX(r,e,t){let c,o={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?o.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":o.left=oi(l.x),o}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Lc(r,t),isOriginOutsideView:gn(r,t),isOverlayClipped:Lc(e,t),isOverlayOutsideView:gn(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,o)=>t-Math.max(o,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Is(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof g.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function Ro(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function rw(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(Xu);return e&&"px"!==e?null:parseFloat(r)}return s||null}function jc(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const eh="cdk-global-overlay-wrapper";class jg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(eh),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==o&&"100vw"!==o||c&&"100%"!==c&&"100vw"!==c),a=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,p="rtl"===this._overlayRef.getConfig().direction;let b="",H="",z="";i?z="flex-start":"center"===d?(z="center",p?H=u:b=u):p?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",H=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",H=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":H,e.justifyContent=z,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(eh),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Ng=(()=>{class s{constructor(e,t,o,l){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=l}global(){return new jg}flexibleConnectedTo(e){return new Fg(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG($n),g.LFG(T.K0),g.LFG(hi),g.LFG(Po))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zg=0,mn=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u,p,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=o,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=a,this._directionality=d,this._location=u,this._outsideClickDispatcher=p,this._animationsModuleType=b}create(e){const t=this._createHostElement(),o=this._createPaneElement(t),l=this._createPortalOutlet(o),c=new ew(e);return c.direction=c.direction||this._directionality.value,new Us(l,t,o,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+zg++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new Yy(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Xy),g.LFG(Po),g.LFG(g._Vd),g.LFG(Ng),g.LFG(nw),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(Nr),g.LFG(T.Ye),g.LFG(Fc),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const ih={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[mn],useFactory:function aw(s){return()=>s.scrollStrategies.reposition()}};let Pa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[mn,ih],imports:[Mo,gr,qr,qr]}),s})();class Ug{}const _r="*";function si(s,r){return{type:7,name:s,definitions:r,options:{}}}function yt(s,r=null){return{type:4,styles:r,timings:s}}function ow(s,r=null){return{type:3,steps:s,options:r}}function Gg(s,r=null){return{type:2,steps:s,options:r}}function je(s){return{type:6,styles:s,offset:null}}function ht(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Io(s=null){return{type:9,options:s}}function ko(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function qg(s){Promise.resolve(null).then(s)}class qs{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Wg{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,o=0;const l=this.players.length;0==l?qg(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++o==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const o=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(o)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const lw=["connectionContainer"],Uc=["inputContainer"],Ia=["label"];function UT(s,r){1&s&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function Ws(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.Hsn(1,1),g.qZA()}if(2&s){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function cw(s,r){if(1&s&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&s){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function dw(s,r){1&s&&g.Hsn(0,3,["*ngSwitchCase","true"])}function rh(s,r){1&s&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function uw(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.updateOutlineGap())}),g.YNc(2,cw,4,1,"ng-container",12),g.YNc(3,dw,1,0,"ng-content",12),g.YNc(4,rh,2,0,"span",22),g.qZA()}if(2&s){const e=g.oxw();g.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),g.uIk("for",e._control.id)("aria-owns",e._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Qn(s,r){1&s&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function $s(s,r){if(1&s&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Ri(s,r){if(1&s&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ka(s,r){if(1&s&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function Gc(s,r){if(1&s&&(g.TgZ(0,"div",27),g.YNc(1,ka,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&s){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const _n=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ah=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Vo=new g.OlP("MatError"),Bo={transitionMessages:si("transitionMessages",[ht("enter",je({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[je({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let br=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s}),s})();const $g=new g.OlP("MatHint");let oh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-label"]]}),s})(),Yg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const Qg=new g.OlP("MatPrefix"),Jg=new g.OlP("MatSuffix");let sh=0;const mw=Sa(class{constructor(s){this._elementRef=s}},"primary"),Zg=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),lh=new g.OlP("MatFormField");let Xg=(()=>{class s extends mw{constructor(e,t,o,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=o,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Me.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+sh++,this._labelId="mat-form-field-label-"+sh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=ct(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Bi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(zt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(zt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,mr.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Bi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Bi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(zt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Fs(this._label.nativeElement,"transitionend").pipe((0,ii.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,o=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${o}, ${l}`);for(let u=0;u0?.75*H+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,ks,Ae]}),s})();const ph={provide:new g.OlP("mat-select-scroll-strategy"),deps:[mn],useFactory:function om(s){return()=>s.scrollStrategies.reposition()}};let el=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[ph],imports:[T.ez,Pa,Rc,Ae,Yn,Cr,Rc,Ae]}),s})();const Iw={provide:new g.OlP("mat-tooltip-scroll-strategy"),deps:[mn],useFactory:function cm(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}};let il=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Iw],imports:[So,T.ez,Pa,Ae,Ae,Yn]}),s})(),bn=(()=>{class s{constructor(){this.changes=new Me.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,o)=>{if(0==o||0==t)return`0 of ${o}`;const l=e*t;return`${l+1} \u2013 ${l<(o=Math.max(o,0))?Math.min(l+t,o):l+t} of ${o}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lw={provide:bn,deps:[[new g.FiY,new g.tp0,bn]],useFactory:function Ow(s){return s||new bn}};let Wc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Lw],imports:[T.ez,fr,el,il,Ae]}),s})();const Jw={provide:new g.OlP("mat-menu-scroll-strategy"),deps:[mn],useFactory:function wm(s){return()=>s.scrollStrategies.reposition()}};let Yc=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Jw],imports:[T.ez,Ae,pn,Pa,Yn,Ae]}),s})();var Kw=x(4742),Zw=x(1810);function mh(...s){const r=(0,oa.jO)(s),{args:e,keys:t}=(0,Kw.D)(s),o=new Je.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,a=c;for(let d=0;d{u||(u=!0,a--),n[d]=p},()=>i--,void 0,()=>{(!i||!u)&&(a||l.next(t?(0,Zw.n)(t,n):n),l.complete())}))}});return r?o.pipe((0,kc.Z)(r)):o}var vm=x(3099),y=x(529);const Xw=["*"];let Qc;function nl(s){return function ev(){if(void 0===Qc&&(Qc=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Qc=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Qc}()?.createHTML(s)||s}function Am(s){return Error(`Unable to find icon with the name "${s}"`)}function xm(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function _h(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class $r{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let Oo=(()=>{class s{constructor(e,t,o,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,l){return this._addSvgIconConfig(e,t,new $r(o,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,l){const c=this._sanitizer.sanitize(g.q3G.HTML,o);if(!c)throw _h(o);const n=nl(c);return this._addSvgIconConfig(e,t,new $r("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new $r(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){const l=this._sanitizer.sanitize(g.q3G.HTML,t);if(!l)throw _h(t);const c=nl(l);return this._addSvgIconSetConfig(e,new $r("",c,o))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(g.q3G.RESOURCE_URL,e);if(!t)throw xm(e);const o=this._cachedIconsByUrl.get(t);return o?(0,Pe.of)(rl(o)):this._loadSvgIconFromConfig(new $r(e,null)).pipe((0,Wt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Ne.U)(l=>rl(l)))}getNamedSvgIcon(e,t=""){const o=bh(t,e);let l=this._svgIconConfigs.get(o);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(o,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,yi._)(Am(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Pe.of)(rl(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Ne.U)(t=>rl(t)))}_getSvgFromIconSetConfigs(e,t){const o=this._extractIconWithNameFromAnySet(e,t);return o?(0,Pe.of)(o):mh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,St.K)(n=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(a)),(0,Pe.of)(null)})))).pipe((0,Ne.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Am(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){const l=t[o];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t),(0,Ne.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Pe.of)(null):this._fetchIcon(e).pipe((0,Wt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,o);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),o);const n=this._svgElementFromString(nl(""));return n.appendChild(c),this._setSvgAttributes(n,o)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){const t=this._svgElementFromString(nl("")),o=e.attributes;for(let l=0;lnl(a)),la(()=>this._inProgressUrlFetches.delete(c)),(0,vm.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(bh(e,t),o),this}_addSvgIconSetConfig(e,t){const o=this._iconSetConfigs.get(e);return o?o.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let o=0;or?r.pathname+r.search:""}}}),Mm=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],nv=Mm.map(s=>`[${s}]`).join(", "),Lo=/^url\(['"]?#(.*?)['"]?\)$/;let rv=(()=>{class s extends Sm{constructor(e,t,o,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Yt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=ct(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const o=e.childNodes[t];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((o,l)=>{o.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(nv),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),a=i?i.match(Lo):null;if(a){let d=o.get(n);d||(d=[],o.set(n,d)),d.push({name:c,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe((0,ii.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${o}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Oo),g.$8M("aria-hidden"),g.Y36(yh),g.Y36(g.qLn),g.Y36(Ch,8))},s.\u0275cmp=g.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(g.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),g.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[g.qOj],ngContentSelectors:Xw,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),s})(),Sn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})();function wr(s){return!!s&&(s instanceof Je.y||(0,fn.m)(s.lift)&&(0,fn.m)(s.subscribe))}var Dm=x(6063);class Hm extends Me.x{constructor(r=1/0,e=1/0,t=Dm.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:o,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!o&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:o}=this,l=o.slice();for(let c=0;cnew Hm(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}class qe{}let Pm=(()=>{class s extends qe{getTranslation(e){return(0,Pe.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class wh{}let Rm=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function vr(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let o,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!vr(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((o=s.length)==r.length){for(l=0;l{Fo(r[t])?t in s?e[t]=al(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class Bt{}let ov=(()=>{class s extends Bt{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let o;return o="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,o}getValue(e,t){let o="string"==typeof t?t.split("."):[t];t="";do{t+=o.shift(),!Yr(e)||!Yr(e[t])||"object"!=typeof e[t]&&o.length?o.length?t+=".":e=void 0:(e=e[t],t="")}while(o.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(o,l)=>{let c=this.getValue(t,l);return Yr(c)?c:o}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class ol{}let vh=(()=>{class s extends ol{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class Im{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new g.vpe,this.onLangChange=new g.vpe,this.onDefaultLangChange=new g.vpe}}const Jc=new g.OlP("USE_STORE"),Kc=new g.OlP("USE_DEFAULT_LANG"),Zc=new g.OlP("DEFAULT_LANGUAGE"),Xc=new g.OlP("USE_EXTEND");let sl=(()=>{class s{constructor(e,t,o,l,c,n=!0,i=!1,a=!1,d){this.store=e,this.currentLoader=t,this.compiler=o,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=a,this.pending=!1,this._onTranslationChange=new g.vpe,this._onLangChange=new g.vpe,this._onDefaultLangChange=new g.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Pe.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,ii.q)(1)).subscribe(o=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Pe.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(av(1),(0,ii.q)(1));return this.loadingTranslations=t.pipe((0,Ne.U)(o=>this.compiler.compileTranslations(o,e)),av(1),(0,ii.q)(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),t}setTranslation(e,t,o=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(o||this.extend)&&this.translations[e]?al(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,o){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,o),wr(c[i])&&(n=!0);return n?mh(t.map(a=>wr(c[a])?c[a]:(0,Pe.of)(c[a]))).pipe((0,Ne.U)(a=>{let d={};return a.forEach((u,p)=>{d[t[p]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),o)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),o)),typeof l>"u"){let c={key:t,translateService:this};typeof o<"u"&&(c.interpolateParams=o),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,It.b)(o=>wr(o=this.getParsedResult(o,e,t))?o:(0,Pe.of)(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,t);return wr(o)?o:(0,Pe.of)(o)}}getStreamOnTranslationChange(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vi.z)(en(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Gi.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return"function"==typeof l.subscribe?l:(0,Pe.of)(l)})))}stream(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');return(0,Vi.z)(en(()=>this.get(e,t)),this.onLangChange.pipe((0,Gi.w)(o=>{const l=this.getParsedResult(o.translations,e,t);return wr(l)?l:(0,Pe.of)(l)})))}instant(e,t){if(!Yr(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,t);if(wr(o)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return o}set(e,t,o=this.currentLang){this.translations[o][e]=this.compiler.compile(t,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Im),g.LFG(qe),g.LFG(ol),g.LFG(Bt),g.LFG(wh),g.LFG(Kc),g.LFG(Jc),g.LFG(Xc),g.LFG(Zc))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),ll=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,o){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(o){let c=this.translate.getParsedResult(o,e,t);wr(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(vr(e,this.lastKey)&&vr(t,this.lastParams))return this.value;let o;if(Yr(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(o=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(sl,16),g.Y36(g.sBO,16))},s.\u0275pipe=g.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),Zn=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Pm},e.compiler||{provide:ol,useClass:vh},e.parser||{provide:Bt,useClass:ov},e.missingTranslationHandler||{provide:wh,useClass:Rm},Im,{provide:Jc,useValue:e.isolate},{provide:Kc,useValue:e.useDefaultLang},{provide:Xc,useValue:e.extend},{provide:Zc,useValue:e.defaultLanguage},sl]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:qe,useClass:Pm},e.compiler||{provide:ol,useClass:vh},e.parser||{provide:Bt,useClass:ov},e.missingTranslationHandler||{provide:wh,useClass:Rm},{provide:Jc,useValue:e.isolate},{provide:Kc,useValue:e.useDefaultLang},{provide:Xc,useValue:e.extend},{provide:Zc,useValue:e.defaultLanguage},sl]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),km=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Wc,Yc,Sn,fr,Zn,T.ez]}),s})();function sv(s,r){}class ed{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 xh=(()=>{class s extends Ju{constructor(e,t,o,l,c,n,i,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=a,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const o=fc(),l=this._elementRef.nativeElement;(!o||o===this._document.body||o===l||l.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=fc();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=fc())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ed),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&g.Gf(Ku,7),2&e){let o;g.iGM(o=g.CRH())&&(t._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&g.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,sv,0,0,"ng-template",0)},dependencies:[Ku],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class td{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Me.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!pr(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const Th=new g.OlP("DialogScrollStrategy"),lv=new g.OlP("DialogData"),cl=new g.OlP("DefaultDialogConfig"),cv={provide:Th,deps:[mn],useFactory:function dl(s){return()=>s.scrollStrategies.block()}};let dv=0,Vm=(()=>{class s{constructor(e,t,o,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=o,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._ariaHiddenElements=new Map,this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bi(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new ed,...t}).id=t.id||"cdk-dialog-"+dv++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new td(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){id(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){id(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),id(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ew({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){const l=o.injector??o.viewContainerRef?.injector,c=[{provide:ed,useValue:o},{provide:td,useValue:t},{provide:Us,useValue:e}];let n;o.container?"function"==typeof o.container?n=o.container:(n=o.container.type,c.push(...o.container.providers(o))):n=xh;const i=new Qu(n,o.viewContainerRef,g.zs3.create({parent:l||this._injector,providers:c}),o.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,o,l){const c=this._createInjector(l,t,o);if(e instanceof g.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),o.attachTemplatePortal(new Qi(e,null,n,c))}else{const n=o.attachComponentPortal(new Qu(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,o){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:lv,useValue:e.data},{provide:td,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,o)):c.push(...e.providers)),e.direction&&(!l||!l.get(Nr,null,g.XFs.Optional))&&c.push({provide:Nr,useValue:{value:e.direction,change:(0,Pe.of)()}}),g.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){const l=t[o];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(mn),g.LFG(g.zs3),g.LFG(cl,8),g.LFG(s,12),g.LFG(Po),g.LFG(Th))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();function id(s,r){let e=s.length;for(;e--;)r(s[e])}let Bm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Vm,cv],imports:[Pa,gr,So,gr]}),s})();function Om(s,r){}const jo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Lm={dialogContainer:si("dialogContainer",[ht("void, exit",je({opacity:0,transform:"scale(0.7)"})),ht("enter",je({transform:"none"})),_t("* => enter",ow([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",je({transform:"none",opacity:1})),ko("@*",Io(),{optional:!0})]),jo),_t("* => void, * => exit",ow([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",je({opacity:0})),ko("@*",Io(),{optional:!0})]),jo)])};class ul{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=jo.params.enterAnimationDuration,this.exitAnimationDuration=jo.params.exitAnimationDuration}}let uv=(()=>{class s extends xh{constructor(e,t,o,l,c,n,i,a){super(e,t,o,l,c,n,i,a),this._animationStateChanged=new g.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ul),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["ng-component"]],features:[g.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),lE=(()=>{class s extends uv{constructor(e,t,o,l,c,n,i,a,d){super(e,t,o,l,c,n,i,d),this._changeDetectorRef=a,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||jo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||jo.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(Au),g.Y36(T.K0,8),g.Y36(ul),g.Y36(Vs),g.Y36(g.R0b),g.Y36(Us),g.Y36(g.sBO),g.Y36(dn))},s.\u0275cmp=g.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(g.Ikx("id",t._config.id),g.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._getAnimationState()))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,Om,0,0,"ng-template",0)},dependencies:[Ku],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:[Lm.dialogContainer]}}),s})();class nd{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Me.x,this._beforeClosed=new Me.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,qt.h)(o=>"opened"===o.state),(0,ii.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,qt.h)(o=>"closed"===o.state),(0,ii.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,mr.T)(this.backdropClick(),this.keydownEvents().pipe((0,qt.h)(o=>27===o.keyCode&&!this.disableClose&&!pr(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function cE(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,qt.h)(e=>"closing"===e.state),(0,ii.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const dE=new g.OlP("MatDialogData"),Fm=new g.OlP("mat-dialog-default-options"),hl=new g.OlP("mat-dialog-scroll-strategy"),jm={provide:hl,deps:[mn],useFactory:function hv(s){return()=>s.scrollStrategies.block()}};let pl=0,pv=(()=>{class s{constructor(e,t,o,l,c,n,i,a,d,u){this._overlay=e,this._defaultOptions=o,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Me.x,this._afterOpenedAtThisLevel=new Me.x,this._idPrefix="mat-dialog-",this.afterAllClosed=en(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Bi(void 0))),this._scrollStrategy=n,this._dialog=t.get(Vm)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let o;(t={...this._defaultOptions||new ul,...t}).id=t.id||`${this._idPrefix}${pl++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:ul,useValue:t},{provide:ed,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(c,n,i)=>(o=new this._dialogRefConstructor(c,t,i),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=l.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(o);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){g.$Z()},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),No=(()=>{class s extends pv{constructor(e,t,o,l,c,n,i,a){super(e,t,l,n,i,c,nd,lE,dE,a)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(mn),g.LFG(g.zs3),g.LFG(T.Ye,8),g.LFG(Fm,8),g.LFG(hl),g.LFG(s,12),g.LFG(Po),g.LFG(g.QbO,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),fv=0,Nm=(()=>{class s{constructor(e,t,o){this._dialogRef=e,this._elementRef=t,this._dialog=o,this.id="mat-dialog-title-"+fv++}ngOnInit(){this._dialogRef||(this._dialogRef=function gv(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd,8),g.Y36(g.SBq),g.Y36(No))},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&g.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),rd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),zm=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=g.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),Ar=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[No,jm],imports:[Bm,Pa,gr,Ae,Ae]}),s})();function Eh(){const s=new ul;return s.disableClose=!0,s.autoFocus=!1,s}function ml(s,r){const e=r.split("&");for(const t of e){const[o,l]=t.split("=");if(o.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class Xt{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ei=new g.OlP("basePath");class et{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let _l=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAllPolicies(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=o&&(i=this.addToHttpParams(i,o,"complementaryObjectName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,o,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=o&&(u=this.addToHttpParams(u,o,"complementaryObjectName")),l&&l.forEach(Ve=>{u=this.addToHttpParams(u,Ve,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,p=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(p=p.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(p=p.set("Authorization","Bearer "+b));let H=d&&d.httpHeaderAccept;void 0===H&&(H=this.configuration.selectHeaderAccept(["application/json"])),void 0!==H&&(p=p.set("Accept",H));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return H&&(ae=H.startsWith("text")?"text":this.configuration.isJsonMime(H)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:p,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getLoggedUser(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getPerunPrincipal(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getUserRoleNames(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getUserRoles(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVosWhereUserIsInRoles(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}isFacilityAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isGroupAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}isPerunAdmin(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",o=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}keepAlive(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithGroupComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}unsetRoleWithUserComplementaryObject(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zm=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}sentMessageToRTWithMemberQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,o,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=o&&(i=this.addToHttpParams(i,o,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=o&&(a=this.addToHttpParams(a,o,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Xm=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}addApplicationMailForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addApplicationMailForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}addGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}approveApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}checkForSimilarRichIdentities(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}consolidateIdentityUsingToken(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}copyFormFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyFormFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromGroupToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromGroup")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToGroup(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toGroup"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}copyMailsFromVoToVo(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"fromVo")),null!=t&&(n=this.addToHttpParams(n,t,"toVo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}createApplicationFormInGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}createApplicationFormInVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}deleteApplicationMailForGroup(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteApplicationMailForVo(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"id"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(p=>{c=this.addToHttpParams(c,p,"groups[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationDataById(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationMailsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getApplicationsForGroup(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsForMember(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getApplicationsForVo(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),t&&t.forEach(z=>{a=this.addToHttpParams(a,z,"state[]")}),null!=o&&(a=this.addToHttpParams(a,o,"dateFrom")),null!=l&&(a=this.addToHttpParams(a,l,"dateTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getApplicationsPage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}getConsolidatorToken(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForGroupWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getFormItemsForVoWithType(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"type"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}getGroupApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getGroupsToAutoRegistration(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}getVoApplicationForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}rejectApplication(e,t,o="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"id")),null!=t&&(n=this.addToHttpParams(n,t,"reason"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendInvitation(e,t,o,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let a=new y.LE({encoder:this.encoder});null!=o&&(a=this.addToHttpParams(a,o,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"name")),null!=e&&(a=this.addToHttpParams(a,e,"email")),null!=t&&(a=this.addToHttpParams(a,t,"language"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let p=i&&i.httpHeaderAccept;void 0===p&&(p=this.configuration.selectHeaderAccept(["application/json"])),void 0!==p&&(d=d.set("Accept",p));let b=i&&i.context;void 0===b&&(b=new y.qT);let H="json";return p&&(H=p.startsWith("text")?"text":this.configuration.isJsonMime(p)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:a,responseType:H,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sendInvitationForGroup(e,t,o,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let d=new y.LE({encoder:this.encoder});null!=o&&(d=this.addToHttpParams(d,o,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"groupId")),null!=c&&(d=this.addToHttpParams(d,c,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let p,u=this.defaultHeaders;p=this.configuration.lookupCredential("BasicAuth"),p&&(u=u.set("Authorization","Basic "+p)),p=this.configuration.lookupCredential("BearerAuth"),p&&(u=u.set("Authorization","Bearer "+p));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let H=a&&a.context;void 0===H&&(H=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:H,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}sendInvitationGroupToExistingUser(e,t,o,l="body",c=!1,n){let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"userId")),null!=t&&(i=this.addToHttpParams(i,t,"voId")),null!=o&&(i=this.addToHttpParams(i,o,"groupId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let p=n&&n.context;void 0===p&&(p=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:p,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,o="body",l=!1,c){let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userId")),null!=t&&(n=this.addToHttpParams(n,t,"voId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let p="json";return d&&(p=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:u,params:n,responseType:p,withCredentials:this.configuration.withCredentials,headers:i,observe:o,reportProgress:l})}sendMessage(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}setSendingEnabled(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}submitApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateApplicationMail(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateForm(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsData(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForGroup(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}updateFormItemsForVo(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let p="json";return i&&(p=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:a,responseType:p,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:o})}verifyApplication(e,t="body",o=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:o})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Mh=(()=>{class s{constructor(e,t,o){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new et,o&&(this.configuration=o),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Xt}addToHttpParams(e,t,o){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,o):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,o){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,o));else if(t instanceof Date){if(null==o)throw Error("key may not be null if value is Date");e=e.append(o,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=o?`${o}.${l}`:l));else{if(null==o)throw Error("key may not be null if value is not object or array");e=e.append(o,t)}return e}getAppsConfig(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,o){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=o&&o.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=o&&o.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(ei,8),g.LFG(et,8))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),i_=(()=>{class s{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:s,providers:[{provide:et,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(s,12),g.LFG(y.eN,8))},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let n_=(()=>{class s{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const o=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of o)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,o){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(o.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(o=>{this.allRolesManagementRules=o,e()},o=>t(o))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(o=>{o.primaryObject===t&&e.push(o.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let o=e.beanName;o.startsWith("Rich")&&(o=o.substring(4)),this.assignAvailableRoles(t,o);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,o){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const H of Object.keys(b.entitiesToManage))i="User"===H?[H].concat(i):i.concat(H);break}const a=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,a),u=this.resolveAuthorization(n,a);o.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const o of e){let l=!0;for(const c of Object.keys(o)){const n=o[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const o of e){let l=o.beanName;switch(o.beanName.startsWith("Rich")&&(l=o.beanName.substring(4)),t[l]?t[l].push(o.id):t[l]=[o.id],l){case"Member":t.User?t.User.push(o.userId):t.User=[o.userId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId];break;case"Resource":t.Facility?t.Facility.push(o.facilityId):t.Facility=[o.facilityId],t.Vo?t.Vo.push(o.voId):t.Vo=[o.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let o=[];for(o.push(e);0!==o.length;){const c=o.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),o=o.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let o=null;for(const l of t)l&&!o&&(o=l[e]);return o}get(...e){let t;if(""!==this.branding){const o=this.instanceConfig.brandings[this.branding];for(let l=0;l{class s{constructor(e,t,o,l,c){this.injector=e,this.store=t,this.dialog=o,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Kt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=ml("idphint",location.search.substring(1));n&&(c.idphint=n)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let o=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],o=t[c[1]])}),t.default&&!o?(this.filterShortname="default",t.default):o}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(o=>o?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,qt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const o=sessionStorage.getItem("auth:queryParams");let l=[];o&&(l=o.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,qt.h)(e=>e instanceof kr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const o of t)if(e.startsWith(o))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(o=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!o||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.zs3),g.LFG(Qr),g.LFG(No),g.LFG(Vr),g.LFG(Ms.Ct))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),KE=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(g.TgZ(0,"h2",0),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[rd,ll]}),s})(),ld=(()=>{class s{constructor(e,t,o,l,c,n){this.authService=e,this.storeService=t,this.authResolver=o,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Eh();this.dialog.open(KE,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const o of e){const l=o.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Rh),g.LFG(Qr),g.LFG(n_),g.LFG(_l),g.LFG(No),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ih=(()=>{class s{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Oo),g.LFG(mi))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),kh=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"div",2)(7,"div",3)(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),g.qZA()()()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),g.xp6(5),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Nm,rd,zm,yg,ll]}),s})(),Vh=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),a_=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new g.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,o,l,c){this.addNotification.emit({type:"error",error:t,description:o,title:e,actionText:void 0===l&&void 0!==o?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,o,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===o&&void 0!==t?this.getDefaultActionMessage():o,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(sl))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),o_=(()=>{class s{constructor(e,t,o,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=o,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const o=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==o&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Eh();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(kh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{la(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Wt.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,yi._)(n):l?void this.notificator.showRPCError(i):(0,yi._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let o;console.error(e);const l=e.error;if(l.errorId&&(o=l),void 0!==o)return o.urlWithParams=t.urlWithParams,o.call=t.url,o.payload=t.body,o}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Rh),g.LFG(Vh),g.LFG(a_),g.LFG(Qr),g.LFG(No),g.LFG(ld))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),eA=(()=>{class s{constructor(e,t,o,l){this.http=e,this.notificator=t,this.authService=o,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.get(o,{headers:this.getHeaders()}).pipe((0,St.K)(l=>this.formatErrors(l,o,null,t)))}put(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,St.K)(n=>this.formatErrors(n,l,c,o)))}post(e,t={},o=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,St.K)(i=>this.formatErrors(i,l,c,o)))}delete(e,t=!0){const o=`${this.getApiUrl()}${e}`;return this.http.delete(o,{headers:this.getHeaders()}).pipe((0,St.K)(l=>this.formatErrors(l,o,null,t)))}formatErrors(e,t,o,l){const c=e.error;return c.call=t,c.payload=o,l&&this.notificator.showRPCError(e.error),(0,yi._)(c)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(a_),g.LFG(Rh),g.LFG(Qr))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Bh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez]}),s})(),Oh=(()=>{class s{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=g.Yjl({name:"userFullName",type:s,pure:!0}),s})();function sA(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){const e=g.oxw(),t=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function nS(s,r){if(1&s&&(g.O4$(),g._UZ(0,"circle",4)),2&s){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}const d_=Sa(class{constructor(s){this._elementRef=s}},"primary"),yl=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function lA(){return{diameter:100}}});class Xn extends d_{constructor(r,e,t,o,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Yt.w0.EMPTY,this.mode="determinate";const a=Xn._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=cn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=cn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,cn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=jr(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_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(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Xn._diameters;let o=t.get(r);if(!o||!o.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),o||(o=new Set,t.set(r,o)),o.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Xn._diameters=new WeakMap,Xn.\u0275fac=function(r){return new(r||Xn)(g.Y36(g.SBq),g.Y36(hi),g.Y36(T.K0,8),g.Y36(g.QbO,8),g.Y36(yl),g.Y36(g.sBO),g.Y36($n),g.Y36(g.R0b))},Xn.\u0275cmp=g.Xpm({type:Xn,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(g.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.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(r,e){1&r&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,sA,1,11,"circle",2),g.YNc(3,nS,1,9,"circle",3),g.qZA()),2&r&&(g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===e.mode),g.uIk("viewBox",e._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.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 wl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,T.ez,Ae]}),s})();const u_=Gn({passive:!0});let zo=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ft.E;const t=Zt(e),o=this._monitoredElements.get(t);if(o)return o.subject;const l=new Me.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,u_),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,u_)}}),l}stopMonitoring(e){const t=Zt(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(hi),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fh=(()=>{class s{constructor(e,t,o,l){this._elementRef=e,this._platform=t,this._ngZone=o,this._destroyed=new Me.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=cn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=cn(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=ct(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Fs(this._getWindow(),"resize").pipe(Ns(16),zt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",o=this._platform.FIREFOX,l=o&&this._hasFocus,c=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const n=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),n}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,o=t.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,o)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(g.R0b),g.Y36(T.K0,8))},s.\u0275dir=g.lG2({type:s,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&g.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),s})(),jh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),Nh=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq))},s.\u0275dir=g.lG2({type:s}),s})(),er=(()=>{class s extends Nh{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275dir=g.lG2({type:s,features:[g.qOj]}),s})();const Ai=new g.OlP("NgValueAccessor"),cA={provide:Ai,useExisting:(0,g.Gpc)(()=>cd),multi:!0},Uo=new g.OlP("CompositionEventMode");let cd=(()=>{class s extends Nh{constructor(e,t,o){super(e,t),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function h_(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(Uo,8))},s.\u0275dir=g.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&g.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[g._Bn([cA]),g.qOj]}),s})();function tr(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function dA(s){return null!=s&&"number"==typeof s.length}const fi=new g.OlP("NgValidators"),Ba=new g.OlP("NgAsyncValidators"),uA=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Uh{static min(r){return function f_(s){return r=>{if(tr(r.value)||tr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(tr(r.value)||tr(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return function qh(s){return tr(s.value)?{required:!0}:null}(r)}static requiredTrue(r){return function g_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Wh(s){return tr(s.value)||uA.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function $h(s){return r=>tr(r.value)||!dA(r.value)?null:r.value.lengthdA(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function __(s){if(!s)return vl;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(tr(t.value))return null;const o=t.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return w_(r)}static composeAsync(r){return Kh(r)}}function vl(s){return null}function b_(s){return null!=s}function Yh(s){return(0,g.QGY)(s)?(0,gt.D)(s):s}function Qh(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Jh(s,r){return r.map(e=>e(s))}function y_(s){return s.map(r=>function C_(s){return!s.validate}(r)?r:e=>r.validate(e))}function w_(s){if(!s)return null;const r=s.filter(b_);return 0==r.length?null:function(e){return Qh(Jh(e,r))}}function v_(s){return null!=s?w_(y_(s)):null}function Kh(s){if(!s)return null;const r=s.filter(b_);return 0==r.length?null:function(e){return mh(Jh(e,r).map(Yh)).pipe((0,Ne.U)(Qh))}}function A_(s){return null!=s?Kh(y_(s)):null}function hA(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function pA(s){return s._rawValidators}function fA(s){return s._rawAsyncValidators}function x_(s){return s?Array.isArray(s)?s:[s]:[]}function Zh(s,r){return Array.isArray(s)?s.includes(r):s===r}function gA(s,r){const e=x_(r);return x_(s).forEach(o=>{Zh(e,o)||e.push(o)}),e}function mA(s,r){return x_(r).filter(e=>!Zh(s,e))}class Al{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=v_(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=A_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Ki extends Al{get formDirective(){return null}get path(){return null}}class Mn extends Al{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let CA=(()=>{class s extends class xl{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Mn,2))},s.\u0275dir=g.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[g.qOj]}),s})();const Go="VALID",tp="INVALID",Ii="PENDING",Tl="DISABLED";function El(s){return(qo(s)?s.validators:s)||null}function M_(s){return Array.isArray(s)?v_(s):s||null}function zi(s,r){return(qo(r)?r.asyncValidators:s)||null}function D_(s){return Array.isArray(s)?A_(s):s||null}function qo(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}class pd{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=M_(this._rawValidators),this._composedAsyncValidatorFn=D_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Go}get invalid(){return this.status===tp}get pending(){return this.status==Ii}get disabled(){return this.status===Tl}get enabled(){return this.status!==Tl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=M_(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=D_(r)}addValidators(r){this.setValidators(gA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(gA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(mA(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(mA(r,this._rawAsyncValidators))}hasValidator(r){return Zh(this._rawValidators,r)}hasAsyncValidator(r){return Zh(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Ii,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Tl,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Go,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Go||this.status===Ii)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tl:Go}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Ii,this._hasOwnPendingAsyncValidator=!0;const e=Yh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?Tl:this.errors?tp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ii)?Ii:this._anyControlsHaveStatus(tp)?tp:Go}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){qo(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class fd extends pd{constructor(r,e,t){super(El(e),zi(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){(function P_(s,r,e){s._forEachChild((t,o)=>{if(void 0===e[o])throw new g.vHH(1002,"")})})(this,0,r),Object.keys(r).forEach(t=>{(function H_(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[e])throw new g.vHH(1001,"")})(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const o=this.controls[t];o&&o.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,o)=>{t.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((o,l)=>{t=e(t,o,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Wo(s,r){_d(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function Tr(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&SA(s,r)})}(s,r),function MA(s,r){const e=(t,o)=>{r.valueAccessor.writeValue(t),o&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function EA(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&SA(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function Jr(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function md(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Yo(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function $o(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function _d(s,r){const e=pA(s);null!==r.validator?s.setValidators(hA(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=fA(s);null!==r.asyncValidator?s.setAsyncValidators(hA(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const o=()=>s.updateValueAndValidity();$o(r._rawValidators,o),$o(r._rawAsyncValidators,o)}function Yo(s,r){let e=!1;if(null!==s){if(null!==r.validator){const o=pA(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.validator);l.length!==o.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const o=fA(s);if(Array.isArray(o)&&o.length>0){const l=o.filter(c=>c!==r.asyncValidator);l.length!==o.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return $o(r._rawValidators,t),$o(r._rawAsyncValidators,t),e}function SA(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function I_(s,r){_d(s,r)}function RA(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}const kA={provide:Ki,useExisting:(0,g.Gpc)(()=>Jo)},Qo=(()=>Promise.resolve(null))();let Jo=(()=>{class s extends Ki{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new fd({},v_(e),A_(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Qo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Wo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Qo.then(()=>{const t=this._findContainer(e.path),o=new fd({});I_(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Qo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,RA(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Ba,10))},s.\u0275dir=g.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([kA]),g.qOj]}),s})();function Ml(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function Dl(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const np=class extends pd{constructor(r=null,e,t){super(El(e),zi(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),qo(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Dl(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){Ml(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){Ml(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){Dl(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},VA={provide:Mn,useExisting:(0,g.Gpc)(()=>N_)},j_=(()=>Promise.resolve(null))();let N_=(()=>{class s extends Mn{constructor(e,t,o,l,c){super(),this._changeDetectorRef=c,this.control=new np,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=function Sl(s,r){if(!r)return null;let e,t,o;return Array.isArray(r),r.forEach(l=>{l.constructor===cd?e=l:function V_(s){return Object.getPrototypeOf(s.constructor)===er}(l)?t=l:o=l}),o||t||e||null}(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function ip(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){j_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,o=0!==t&&(0,g.D6c)(t);j_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function gd(s,r){return[...r.path,s]}(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Ki,9),g.Y36(fi,10),g.Y36(Ba,10),g.Y36(Ai,10),g.Y36(g.sBO,8))},s.\u0275dir=g.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g._Bn([VA]),g.qOj,g.TTD]}),s})(),Hl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})();const bd=new g.OlP("NgModelWithFormControlWarning"),LA={provide:Ki,useExisting:(0,g.Gpc)(()=>Oa)};let Oa=(()=>{class s extends Ki{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new g.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Wo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){md(e.control||null,e,!1),function B_(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,RA(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,o=this.form.get(e.path);t!==o&&(md(t||null,e),(s=>s instanceof np)(o)&&(Wo(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);I_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function DA(s,r){return Yo(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_d(this.form,this),this._oldForm&&Yo(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(fi,10),g.Y36(Ba,10))},s.\u0275dir=g.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([LA]),g.qOj,g.TTD]}),s})(),h=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Hl]}),s})(),f=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[h]}),s})(),m=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:bd,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[h]}),s})();const J=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),re=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let me=0;const xe=Hu(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Me.x}});let Re=(()=>{class s extends xe{constructor(e,t,o,l,c,n,i,a,d,u){super(n,l,c,o),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+me++,this.focused=!1,this.stateChanges=new Me.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(H=>du().has(H)),this._iOSKeyupListener=H=>{const z=H.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const p=this._elementRef.nativeElement,b=p.nodeName.toLowerCase();this._inputValueAccessor=i||p,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=ct(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Uh.required)??!1}set required(e){this._required=ct(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&du().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=ct(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=t,t?o.setAttribute("placeholder",t):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){re.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(g.SBq),g.Y36(hi),g.Y36(Mn,10),g.Y36(Jo,8),g.Y36(Oa,8),g.Y36(Dc),g.Y36(J,10),g.Y36(zo),g.Y36(g.R0b),g.Y36(lh,8))},s.\u0275dir=g.lG2({type:s,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(e,t){1&e&&g.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(g.Ikx("disabled",t.disabled)("required",t.required),g.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),g.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[g._Bn([{provide:br,useExisting:s}]),g.qOj,g.TTD]}),s})(),Fe=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Dc],imports:[jh,Cr,Ae,jh,Cr]}),s})();function Ke(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function ye(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function We(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function ft(s,r){1&s&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const Ot=["*"];let La=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Ot,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0),g.YNc(1,Ke,2,0,"mat-icon",1),g.YNc(2,ye,2,0,"mat-icon",1),g.YNc(3,We,2,0,"mat-icon",1),g.YNc(4,ft,2,0,"mat-icon",1),g.Hsn(5),g.qZA()),2&e&&(g.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","warn"===t.alert_type),g.xp6(1),g.Q6J("ngIf","error"===t.alert_type),g.xp6(1),g.Q6J("ngIf","success"===t.alert_type))},dependencies:[rv,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})();function fp(s,r){1&s&&g._UZ(0,"mat-spinner",7)}function gp(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"div",8)(1,"perun-web-apps-alert",9),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-form-field",10)(5,"textarea",11),g.NdJ("ngModelChange",function(o){g.CHM(e);const l=g.oxw();return g.KtG(l.message=o)}),g.ALo(6,"translate"),g.qZA()()()}if(2&s){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBTITLE")," "),g.xp6(3),g.s9C("placeholder",g.lcZ(6,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.PLACEHOLDER")),g.Q6J("ngModel",e.message)}}let mp=(()=>{class s{constructor(e,t,o,l,c,n){this.dialogRef=e,this.storeService=t,this.authzService=o,this.oAuthStorage=l,this.rtMessages=c,this.userFullNamePipe=n,this.loading=!1,this.message="Hello, during the linking of my accounts I encountered a situation where the system cannot automatically link these accounts. Therefore I want to ask you for help with linking my accounts."}onCancel(){this.dialogRef.close(null)}onSend(){this.loading=!0;const e=this.storeService.getPerunPrincipal().user,t=location.search.substring(1);this.oAuthStorage.setItem("access_token",ml("formerToken",t)),this.authzService.getPerunPrincipal().subscribe(o=>{this.rtMessages.sentMessageToRTWithQueue("perun","Account linking: The accounts could not be automatically linked.",this.getFullEmailBody(e,o.user)).subscribe({next:()=>{this.loading=!1,this.dialogRef.close(!0)},error:()=>{this.loading=!1,this.dialogRef.close(!1)}})})}getFullEmailBody(e,t){const o=this.storeService.getProperty("config");let l=this.message+"\n________________________________________________________________________\n\nAccount linking: The accounts could not be automatically linked.\nThe user proved his identities, but they were connected to different users.\nBy this message the user is asking for help with identity consolidation.\n";return l=l.concat("\n\n"),l=l.concat("Information about users: \n\n"),l=l.concat("First user: \nid="+t.id.toString()+"\nName: "+this.userFullNamePipe.transform(t)+"\n\n"),l=l.concat("Second user: \nid="+e.id.toString()+"\nName: "+this.userFullNamePipe.transform(e)+"\n\n"),l=l.concat("Perun instance: "+o+"\n"),l=l.concat("Sended from new Consolidator Gui, version: ",x(4147).i8),l.split("\n").join("\n ")}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(nd),g.Y36(Qr),g.Y36(_l),g.Y36(Ms.Hy),g.Y36(Zm),g.Y36(Oh))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-send-message-dialog"]],decls:14,vars:11,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","cdkTextareaAutosize","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,t){1&e&&(g.TgZ(0,"div")(1,"div",0)(2,"h1",1),g._uU(3),g.ALo(4,"translate"),g.qZA()(),g.YNc(5,fp,1,0,"mat-spinner",2),g.YNc(6,gp,7,7,"div",3),g.TgZ(7,"div",4)(8,"button",5),g.NdJ("click",function(){return t.onCancel()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.TgZ(11,"button",6),g.NdJ("click",function(){return t.onSend()}),g._uU(12),g.ALo(13,"translate"),g.qZA()()()),2&e&&(g.xp6(3),g.hij(" ",g.lcZ(4,5,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.TITLE")," "),g.xp6(2),g.Q6J("ngIf",t.loading),g.xp6(1),g.Q6J("ngIf",!t.loading),g.xp6(3),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(13,9,"SHARED_LIB.CONSOLIDATOR.SEND_MESSAGE_TO_SUPPORT_DIALOG.SUBMIT")," "))},dependencies:[T.O5,yg,Nm,rd,zm,Xn,Xg,Fh,Re,cd,CA,N_,La,ll]}),s})();function _p(s,r){if(1&s&&(g.TgZ(0,"mat-icon",6),g._uU(1),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",e.icon," ")}}function bp(s,r){1&s&&g._UZ(0,"mat-icon",7)}function Cp(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.supportMail," ")}}function yp(s,r){if(1&s&&(g.TgZ(0,"span"),g._uU(1),g.qZA()),2&s){const e=g.oxw(2);g.xp6(1),g.hij(" ",e.userMail," ")}}function wp(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.YNc(3,Cp,2,1,"span",5),g.YNc(4,yp,2,1,"span",5),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.hij(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR."+e.result+"_SUBTITLE")," "),g.xp6(2),g.Q6J("ngIf","UNKNOWN_ERROR"===e.result),g.xp6(1),g.Q6J("ngIf","MESSAGE_SENT_TO_SUPPORT"===e.result)}}function vp(s,r){if(1&s&&(g.TgZ(0,"h5"),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"translate"),g.qZA()),2&s){const e=g.oxw();g.xp6(1),g.lnq(" ",g.lcZ(2,3,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_1")," ",e.userMail," ",g.lcZ(3,5,"SHARED_LIB.CONSOLIDATOR.OK_SUBTITLE_WITH_MAIL_2")," ")}}const iH=function(s){return{"background-color":s}},nH=["*"];let rH=(()=>{class s{constructor(e){this.store=e,this.supportMail=this.store.getProperty("support_mail"),this.userMail=this.store.getPerunPrincipal().additionalInformations.mail,this.color="",this.icon="",this.greenColor="#e0ffd4",this.blueColor="#d4f2ff",this.redColor="#ffd4d4",this.warningIcon="warning",this.infoIcon="info",this.messageSent="mark_email_read"}ngOnChanges(){switch(this.result){case"OK":this.color=this.greenColor;break;case"IDENTITY_REGISTERED_ALREADY":case"UNKNOWN_ERROR":this.color=this.redColor,this.icon=this.warningIcon;break;case"IDENTITY_IDENTICAL":case"IDENTITY_LINKED":case"IDENTITY_UNKNOWN":this.color=this.blueColor,this.icon=this.infoIcon;break;case"MESSAGE_SENT_TO_SUPPORT":this.color=this.blueColor,this.icon=this.messageSent;break;case"TOKEN_EXPIRED":this.color=this.blueColor,this.icon=this.warningIcon}}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Qr))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-consolidation-result"]],inputs:{result:"result"},features:[g.TTD],ngContentSelectors:nH,decls:12,vars:10,consts:[[1,"p-4","m-3",3,"ngStyle"],[1,"d-flex","pb-5","flex-row"],["class","mat-icon-war mr-4",4,"ngIf"],["svgIcon","perun-verify-grey","class","perun-icon perun-icon-detail",4,"ngIf"],[1,"ml-5"],[4,"ngIf"],[1,"mat-icon-war","mr-4"],["svgIcon","perun-verify-grey",1,"perun-icon","perun-icon-detail"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0)(1,"div",1)(2,"div"),g.YNc(3,_p,2,1,"mat-icon",2),g.YNc(4,bp,1,0,"mat-icon",3),g.qZA(),g.TgZ(5,"div",4)(6,"h1"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.YNc(9,wp,5,5,"h5",5),g.YNc(10,vp,4,7,"h5",5),g.qZA()(),g.Hsn(11),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,iH,t.color)),g.xp6(3),g.Q6J("ngIf","OK"!==t.result),g.xp6(1),g.Q6J("ngIf","OK"===t.result),g.xp6(3),g.hij(" ",g.lcZ(8,6,"SHARED_LIB.CONSOLIDATOR."+t.result+"_TITLE")," "),g.xp6(2),g.Q6J("ngIf",!(t.userMail&&"OK"===t.result)),g.xp6(1),g.Q6J("ngIf",t.userMail&&"OK"===t.result))},dependencies:[T.O5,T.PC,rv,ll],styles:[".mat-icon-war[_ngcontent-%COMP%]{font-size:82px}.perun-icon-detail[_ngcontent-%COMP%]{transform:scale(4.5);margin-left:3rem;margin-top:1.5rem;color:#000}"]}),s})();function aH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.loginAgain())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.LOG_OTHER_BUTTON")," "))}function oH(s,r){if(1&s){const e=g.EpF();g.TgZ(0,"button",6),g.NdJ("click",function(){g.CHM(e);const o=g.oxw();return g.KtG(o.sendMessageToSupport())}),g._uU(1),g.ALo(2,"translate"),g.qZA()}2&s&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHOW_RESULT.CONTACT_SUPPORT_BUTTON")," "))}function sH(s,r){1&s&&(g.TgZ(0,"div",7),g._UZ(1,"mat-spinner",8),g.qZA())}const lH=[{path:"",redirectTo:"result",pathMatch:"full"},{path:"result/:result",component:(()=>{class s{constructor(e,t,o){this.route=e,this.dialog=t,this.oauthService=o,this.linkerResult="UNKNOWN_ERROR",this.loading=!1,this.openerWindow=window.opener}ngOnInit(){this.route.params.subscribe(e=>{this.linkerResult=e.result,this.openerWindow.postMessage(this.linkerResult,"*")})}closeWindow(){window.close()}loginAgain(){let e=location.search.substring(1);if("IDENTITY_UNKNOWN"===this.linkerResult){let t=0,o="yes";for(;""!==o;)t++,o=ml("formerToken"+t.toString(),e);e+="&formerToken"+t.toString()+"="+this.oauthService.getAccessToken()}sessionStorage.setItem("auth:queryParams",e),this.oauthService.initLoginFlow()}sendMessageToSupport(){const e=Eh();e.width="1000px",this.dialog.open(mp,e).afterClosed().subscribe(o=>{!0===o?(this.linkerResult="MESSAGE_SENT_TO_SUPPORT",this.openerWindow.postMessage(this.linkerResult,"*")):!1===o&&(this.linkerResult="UNKNOWN_ERROR",this.openerWindow.postMessage(this.linkerResult,"*"))})}}return s.\u0275fac=function(e){return new(e||s)(g.Y36(Vr),g.Y36(No),g.Y36(Ms.Ct))},s.\u0275cmp=g.Xpm({type:s,selectors:[["perun-web-apps-show-result"]],decls:9,vars:7,consts:[[1,"position-relative"],[3,"result"],[1,"d-flex","mt-5"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent","class","ml-2",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"],[1,"spinner-container"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0)(1,"perun-web-apps-consolidation-result",1)(2,"div",2)(3,"button",3),g.NdJ("click",function(){return t.closeWindow()}),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.YNc(6,aH,3,3,"button",4),g.YNc(7,oH,3,3,"button",4),g.qZA()(),g.YNc(8,sH,2,0,"div",5),g.qZA()),2&e&&(g.xp6(1),g.Q6J("result",t.linkerResult),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHOW_RESULT.CLOSE_WINDOW_BUTTON")," "),g.xp6(2),g.Q6J("ngIf","IDENTITY_IDENTICAL"===t.linkerResult||"IDENTITY_UNKNOWN"===t.linkerResult||"IDENTITY_LINKED"===t.linkerResult),g.xp6(1),g.Q6J("ngIf","IDENTITY_REGISTERED_ALREADY"===t.linkerResult),g.xp6(1),g.Q6J("ngIf",t.loading))},dependencies:[T.O5,yg,Xn,rH,ll],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;left:1rem;bottom:0;right:1rem;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}"]}),s})()}];let cH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[_o.forRoot(lH),_o]}),s})();class dH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let uH=(()=>{class s{constructor(e,t,o,l,c){this.http=e,this.storeService=t,this.authzSevice=o,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(o=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),o()})}setEntityTheme(e,t){const o=function hH(s){return[Cn(tinycolor(s).lighten(52),"50"),Cn(tinycolor(s).lighten(37),"100"),Cn(tinycolor(s).lighten(26),"200"),Cn(tinycolor(s).lighten(12),"300"),Cn(tinycolor(s).lighten(6),"400"),Cn(tinycolor(s),"500"),Cn(tinycolor(s).darken(6),"600"),Cn(tinycolor(s).darken(12),"700"),Cn(tinycolor(s).darken(18),"800"),Cn(tinycolor(s).darken(24),"900"),Cn(tinycolor(s).lighten(50).saturate(30),"A100"),Cn(tinycolor(s).lighten(30).saturate(30),"A200"),Cn(tinycolor(s).lighten(10).saturate(15),"A400"),Cn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of o){const i=`--${e}-theme-primary-contrast-${l.name}`,a=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const o=document.location.hostname;t?.brandings?.[o]&&this.storeService.setBanding(o),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(o=>{this.storeService.setAppsConfig(o),e()},o=>t(o))})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(y.eN),g.LFG(Qr),g.LFG(_l),g.LFG(Y),g.LFG(Mh))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Cn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let pH=(()=>{class s{constructor(e,t){this.registrarService=e,this.router=t}consolidate(){const e=location.search.substring(1),t=ml("formerToken",e);return new Promise(o=>{this.registrarService.consolidate({accessToken:t}).subscribe(()=>{this.consolidatePreviousLogins(1,e).then(()=>{this.router.navigate(["/result","OK"]),o()})},l=>{let n="UNKNOWN_ERROR";switch(l.error.name){case"InvalidTokenException":case"ExpiredTokenException":n="TOKEN_EXPIRED";break;case"IdentityUnknownException":n="IDENTITY_UNKNOWN";break;case"IdentityAlreadyInUseException":n="IDENTITY_REGISTERED_ALREADY";break;case"IdentityIsSameException":n="IDENTITY_IDENTICAL";break;case"IdentitiesAlreadyJoinedException":n="IDENTITY_LINKED"}this.router.navigate(["/result",n],{queryParamsHandling:"merge"}),o()})})}consolidatePreviousLogins(e,t){return new Promise(o=>{const l=ml("formerToken"+e.toString(),t);null==l||""===l?o():this.registrarService.consolidate({accessToken:l}).subscribe(()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())},()=>{this.consolidatePreviousLogins(e+1,t).then(()=>o())})})}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Xm),g.LFG(Kt))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),fH=(()=>{class s{constructor(e,t,o,l){this.initAuthService=e,this.appConfigService=t,this.location=o,this.linkIdentitiesService=l}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.simpleLoadPrincipal().then(()=>this.linkIdentitiesService.consolidate()):this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(ld),g.LFG(uH),g.LFG(T.Ye),g.LFG(pH))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const gH=new g.OlP("perun-api-service");let ES=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),DS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),Q_=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,ks,DS,Ae,DS]}),s})(),XA=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),DH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),PS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,DH,gr]}),s})(),IS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Pc,Ae,Pc,Ae]}),s})(),RH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Mo]}),s})(),e0=(()=>{class s{constructor(){this.changes=new Me.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const UH={provide:e0,deps:[[new g.FiY,new g.tp0,e0]],useFactory:function zH(s){return s||new e0}};let OS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[UH,Dc],imports:[Ae,T.ez,gr,fr,RH,Sn,pn,Ae]}),s})(),rP=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[qr]}),s})(),ob=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[rP,Ae,Ae]}),s})(),xP=(()=>{class s{constructor(){this.changes=new Me.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const kP={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[mn],useFactory:function IP(s){return()=>s.scrollStrategies.reposition()}};let p0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[xP,kP],imports:[T.ez,fr,Pa,So,gr,Ae,Yn]}),s})(),XS=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,Yn,Yn,Ae]}),s})(),tM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Pc,pn,Ae,ku,T.ez,Pc,Ae,ku,XA]}),s})(),iM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Ae,Ae]}),s})(),f0=(()=>{class s{constructor(){this.changes=new Me.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const eR={provide:f0,deps:[[new g.FiY,new g.tp0,f0]],useFactory:function XP(s){return s||new f0}};let g0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[eR],imports:[T.ez,Ae]}),s})(),aR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ae,gr,pn,ks,So,Ae]}),s})(),nM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),rM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[nM,pn,Ae,ks,nM,Ae]}),s})();const lM=new g.OlP("mat-chips-default-options");let _0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Dc,{provide:lM,useValue:{separatorKeyCodes:[13]}}],imports:[Ae]}),s})(),b0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,ES,XA,PS,fr,IS,Q_,Sn,ob,Ar,wl,Cr,Fe,qr,f,m,OS,p0,Dy,XS,tM,Yc,iM,g0,Wc,il,el,pn,ob,rM,_0,ES,XA,PS,fr,IS,Q_,Sn,ob,Ar,wl,Cr,Fe,qr,f,m,OS,p0,Dy,XS,tM,Yc,iM,g0,Wc,il,el,pn,aR,rM,_0]}),s})(),C0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[Sn,T.ez]}),s})();function y0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const o=r[t];o?s.setProperty(t,o,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Td(s,r){const e=r?"":"none";y0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function cM(s,r,e){y0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function db(s,r){return r&&"none"!=r?s+" "+r:s}function dM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function w0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function v0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function A0(s,r,e){const{top:t,bottom:o,left:l,right:c}=s;return e>=t&&e<=o&&r>=l&&r<=c}function Ep(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function uM(s,r,e,t){const{top:o,right:l,bottom:c,left:n,width:i,height:a}=s,d=i*r,u=a*r;return t>o-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:v0(e)})})}handleScroll(r){const e=ln(r),t=this.positions.get(e);if(!t)return null;const o=t.scrollPosition;let l,c;if(e===this._document){const a=this.getViewportScrollPosition();l=a.top,c=a.left}else l=e.scrollTop,c=e.scrollLeft;const n=o.top-l,i=o.left-c;return this.positions.forEach((a,d)=>{a.clientRect&&e!==d&&e.contains(d)&&Ep(a.clientRect,n,i)}),o.top=l,o.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function pM(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let o=0;o{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),H=this._dropContainer;if(!b)return void this._endDragSequence(n);(!H||!H.isDragging()&&!H.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const a=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=a.x-d.x+this._passiveTransform.x,u.y=a.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:n,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new hM(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=ct(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Td(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Zt(t)),this._handles.forEach(t=>Td(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Zt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,ub),e.addEventListener("touchstart",this._pointerDown,_M),e.addEventListener("dragstart",this._nativeDragStart,ub)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Zt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Td(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Td(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Sp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,o=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();o.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),cM(t,!1,x0),this._document.body.appendChild(o.replaceChild(l,t)),this._getPreviewInsertionPoint(o,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),o=Sp(e),l=!o&&0!==e.button,c=this._rootElement,n=ln(e),i=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=o?To(e):tg(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||a)return;if(this._handles.length){const p=c.style;this._rootElementTapHighlight=p.webkitTapHighlightColor||"",p.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(p=>this._updateOnScroll(p)),this._boundaryElement&&(this._boundaryRect=v0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){cM(this._rootElement,!0,x0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(r),l=this._getDragDistance(o),c=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:l,dropPoint:o,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:o,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:o}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,o),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let o;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),o=CM(c,this._document),this._previewRef=c,r.matchSize?yM(o,l):o.style.transform=hb(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=pM(this._rootElement),yM(o,this._initialClientRect),this._initialTransform&&(o.style.transform=this._initialTransform);return y0(o.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},x0),Td(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>o.classList.add(l)):o.classList.add(e)),o}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function PR(s){const r=getComputedStyle(s),e=w0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const o=e.indexOf(t),l=w0(r,"transition-duration"),c=w0(r,"transition-delay");return dM(l[o])+dM(c[o])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const o=c=>{(!c||ln(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",o),t(),clearTimeout(l))},l=setTimeout(o,1.5*e);this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=CM(this._placeholderRef,this._document)):t=pM(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const o=e===this._rootElement?null:e,l=o?o.getBoundingClientRect():r,c=Sp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Sp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,o=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=o,n.y=l,n.matrixTransform(c.inverse())}}return{x:o,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:o}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?o=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:a}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(a-c);t=bM(t,n.left+l,n.right-(i-l)),o=bM(o,d,u)}return{x:t,y:o}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,o=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(o.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(o.y=t>l.y?1:-1,l.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Td(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,ub),r.removeEventListener("touchstart",this._pointerDown,_M),r.removeEventListener("dragstart",this._nativeDragStart,ub)}_applyRootElementTransform(r,e){const t=hb(r,e),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=db(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,o=hb(r,e);this._preview.style.transform=db(o,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(0===o.width&&0===o.height||0===t.width&&0===t.height)return;const l=o.left-t.left,c=t.right-o.right,n=o.top-t.top,i=t.bottom-o.bottom;o.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,o.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Sp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=ln(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Ep(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jr(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return Zt(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function hb(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function bM(s,r,e){return Math.max(r,Math.min(e,s))}function Sp(s){return"t"===s.type[0]}function CM(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function yM(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=hb(r.left,r.top)}function Mp(s,r){return Math.max(0,Math.min(r,s))}class BR{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,o){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,o);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),a=l[c],u=a.clientRect,p=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,p),H=this._getSiblingOffsetPx(i,l,p),z=l.slice();return function VR(s,r,e){const t=Mp(r,s.length-1),o=Mp(e,s.length-1);if(t===o)return;const l=s[t],c=o{if(z[Ve]===ae)return;const ot=ae.drag===r,mt=ot?b:H,Ut=ot?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=mt,n?(Ut.style.transform=db(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Ep(ae.clientRect,0,mt)):(Ut.style.transform=db(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Ep(ae.clientRect,mt,0))}),this._previousSwap.overlaps=A0(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=n?o.x:o.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,o){const l=null==o||o<0?this._getItemIndexFromPointerPosition(r,e,t):o,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let a=c[l];if(a===r&&(a=c[l+1]),!a&&(null==l||-1===l||l-1&&c.splice(n,1),a&&!this._dragDropRegistry.isDragging(a)){const d=a.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else Zt(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(o=>o.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Ep(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:v0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const o="horizontal"===this.orientation;let l=o?e.left-r.left:e.top-r.top;return-1===t&&(l+=o?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const o="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[o?"width":"height"]*t;if(c){const i=o?"left":"top",a=o?"right":"bottom";-1===t?n-=c.clientRect[i]-l[a]:n+=l[i]-c.clientRect[a]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,o="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return o?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return o?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,o){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(o){const a=l?o.x:o.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me.x,this.entered=new Me.x,this.exited=new Me.x,this.dropped=new Me.x,this.sorted=new Me.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Yt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function HR(s=0,r=qu.z){return s<0&&(s=0),(0,$u.H)(s,s,r)}(0,xg).pipe(zt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=Zt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new hM(t),this._sortStrategy=new BR(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,o){this._draggingStarted(),null==o&&this.sortingDisabled&&(o=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,o,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>-1===r.indexOf(o))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=Zt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,o){if(this.sortingDisabled||!this._clientRect||!uM(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,o);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,o=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||uM(c.clientRect,.05,r,e)&&([o,l]=function LR(s,r,e,t){const o=AM(r,t),l=xM(r,e);let c=0,n=0;if(o){const i=s.scrollTop;1===o?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(o||l)&&(t=n))}),!o&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};o=AM(i,e),l=xM(i,r),t=window}t&&(o!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=l,this._scrollNode=t,(o||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Zt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Zt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=Zt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&A0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(o=>o._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!A0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const o=this._getShadowRoot().elementFromPoint(e,t);if(!o)return!1;const l=Zt(this.element);return o===l||l.contains(o)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=jr(Zt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function AM(s,r){const{top:e,bottom:t,height:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function xM(s,r){const{left:e,right:t,width:o}=s,l=.05*o;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const pb=Gn({passive:!1,capture:!0});let FR=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=o=>o.isDragging(),this.pointerMove=new Me.x,this.pointerUp=new Me.x,this.scroll=new Me.x,this._preventDefaultWhileDragging=o=>{this._activeDragInstances.length>0&&o.preventDefault()},this._persistentTouchmoveListener=o=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&o.preventDefault(),this.pointerMove.next(o))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,pb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,pb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const o=t.type.startsWith("touch");this._globalListeners.set(o?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:pb}),o||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:pb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Je.y(o=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&o.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,mr.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.R0b),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const jR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let NR=(()=>{class s{constructor(e,t,o,l){this._document=e,this._ngZone=t,this._viewportRuler=o,this._dragDropRegistry=l}createDrag(e,t=jR){return new kR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new OR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(g.R0b),g.LFG($n),g.LFG(FR))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[NR],imports:[Yn]}),s})(),UR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),YR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({}),s})(),iI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[YR,Ae,Ae]}),s})(),gI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[pn,Ae,Ae]}),s})();new g.OlP("mat-selectsearch-default-options");let yI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[[T.ez,m,fr,Q_,Sn,wl,il]]}),s})(),wI=(()=>{class s extends Mc{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=g.n5z(s)))(t||s)}}(),s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();const vI={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let MM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[{provide:hn,useClass:wI},{provide:Os,useValue:vI}],imports:[T.ez,Q_,ob,f,_0,zR,Zn,_o,g0,Wc,wl,C0,Sn,Yc,fr,il,Cr,m,Fe,pn,Bh,UR,iI,p0,gI,Rc,el,yI,qr,Ar,km,b0]}),s})(),Ik=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,fr,Sn,_o,MM,Zn,Cr,m,Fe,C0]}),s})(),Vk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({imports:[T.ez,Ar,fr,Zn]}),s})(),Bk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:[Oh],imports:[T.ez,b0,Zn,Bh]}),s})();function IM(s){return new g.vHH(3e3,!1)}function b1(){return typeof window<"u"&&typeof window.document<"u"}function D0(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Xo(s){switch(s.length){case 0:return new qs;case 1:return s[0];default:return new Wg(s)}}function kM(s,r,e,t,o=new Map,l=new Map){const c=[],n=[];let i=-1,a=null;if(t.forEach(d=>{const u=d.get("offset"),p=u==i,b=p&&a||new Map;d.forEach((H,z)=>{let ae=z,Ve=H;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),Ve){case"!":Ve=o.get(z);break;case _r:Ve=l.get(z);break;default:Ve=r.normalizeStyleValue(z,ae,Ve,c)}b.set(ae,Ve)}),p||n.push(b),a=b,i=u}),c.length)throw function o1(s){return new g.vHH(3502,!1)}();return n}function H0(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&P0(e,"start",s)));break;case"done":s.onDone(()=>t(e&&P0(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&P0(e,"destroy",s)))}}function P0(s,r,e){const l=R0(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function R0(s,r,e,t,o="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:o,totalTime:l,disabled:!!c}}function Dn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function VM(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let I0=(s,r)=>!1,BM=(s,r,e)=>[],OM=null;function k0(s){const r=s.parentNode||s.host;return r===OM?null:r}(D0()||typeof Element<"u")&&(b1()?(OM=(()=>document.documentElement)(),I0=(s,r)=>{for(;r;){if(r===s)return!0;r=k0(r)}return!1}):I0=(s,r)=>s.contains(r),BM=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Rl=null,LM=!1;const FM=I0,jM=BM;let NM=(()=>{class s{validateStyleProperty(e){return function y1(s){Rl||(Rl=function w1(){return typeof document<"u"?document.body:null}()||{},LM=!!Rl.style&&"WebkitAppearance"in Rl.style);let r=!0;return Rl.style&&!function C1(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Rl.style,!r&&LM&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Rl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return FM(e,t)}getParentElement(e){return k0(e)}query(e,t,o){return jM(e,t,o)}computeStyle(e,t,o){return o||""}animate(e,t,o,l,c,n=[],i){return new qs(o,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})(),V0=(()=>{class s{}return s.NOOP=new NM,s})();const B0="ng-enter",mb="ng-leave",_b="ng-trigger",bb=".ng-trigger",UM="ng-animating",O0=".ng-animating";function es(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:L0(parseFloat(r[1]),r[2])}function L0(s,r){return"s"===r?1e3*s:s}function Cb(s,r,e){return s.hasOwnProperty("duration")?s:function x1(s,r,e){let o,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(IM()),{duration:0,delay:0,easing:""};o=L0(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=L0(parseFloat(i),n[4]));const a=n[5];a&&(c=a)}else o=s;if(!e){let n=!1,i=r.length;o<0&&(r.push(function Ok(){return new g.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function Lk(){return new g.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,IM())}return{duration:o,delay:l,easing:c}}(s,r,e)}function Hp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GM(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function ts(s,r=new Map,e){if(e)for(let[t,o]of e)r.set(t,o);for(let[t,o]of s)r.set(t,o);return r}function WM(s,r,e){return e?r+":"+e+";":""}function $M(s){let r="";for(let e=0;e{const l=j0(o);e&&!e.has(o)&&e.set(o,s.style[l]),s.style[l]=t}),D0()&&$M(s))}function Il(s,r){s.style&&(r.forEach((e,t)=>{const o=j0(t);s.style[o]=""}),D0()&&$M(s))}function Pp(s){return Array.isArray(s)?1==s.length?s[0]:Gg(s):s}const F0=new RegExp("{{\\s*(.+?)\\s*}}","g");function YM(s){let r=[];if("string"==typeof s){let e;for(;e=F0.exec(s);)r.push(e[1]);F0.lastIndex=0}return r}function yb(s,r,e){const t=s.toString(),o=t.replace(F0,(l,c)=>{let n=r[c];return null==n&&(e.push(function jk(s){return new g.vHH(3003,!1)}()),n=""),n.toString()});return o==t?s:o}function wb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const S1=/-+([a-z0-9])/g;function j0(s){return s.replace(S1,(...r)=>r[1].toUpperCase())}function M1(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Hn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function Nk(s){return new g.vHH(3004,!1)}()}}function QM(s,r){return window.getComputedStyle(s)[r]}function k1(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function V1(s,r,e){if(":"==s[0]){const i=function B1(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function e1(s){return new g.vHH(3015,!1)}()),r;const o=t[1],l=t[2],c=t[3];r.push(JM(o,c));"<"==l[0]&&!("*"==o&&"*"==c)&&r.push(JM(c,o))}(t,e,r)):e.push(s),e}const Tb=new Set(["true","1"]),Eb=new Set(["false","0"]);function JM(s,r){const e=Tb.has(s)||Eb.has(s),t=Tb.has(r)||Eb.has(r);return(o,l)=>{let c="*"==s||s==o,n="*"==r||r==l;return!c&&e&&"boolean"==typeof o&&(c=o?Tb.has(s):Eb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?Tb.has(r):Eb.has(r)),c&&n}}const O1=new RegExp("s*:selfs*,?","g");function N0(s,r,e,t){return new L1(s).build(r,e,t)}class L1{constructor(r){this._driver=r}build(r,e,t){const o=new N1(e);return this._resetContextStyleTimingState(o),Hn(this,Pp(r),o)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,o=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function Uk(){return new g.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,a=i.name;a.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=a}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,o+=i.depCount,c.push(i)}else e.errors.push(function Gk(){return new g.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:o,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),o=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=o||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{YM(i).forEach(a=>{c.hasOwnProperty(a)||l.add(a)})})}),l.size&&(wb(l.values()),e.errors.push(function qk(s,r){return new g.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:o?{params:o}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Hn(this,Pp(r.animation),e);return{type:1,matchers:k1(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:kl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Hn(this,t,e)),options:kl(r.options)}}visitGroup(r,e){const t=e.currentTime;let o=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Hn(this,c,e);return o=Math.max(o,e.currentTime),n});return e.currentTime=o,{type:3,steps:l,options:kl(r.options)}}visitAnimate(r,e){const t=function U1(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return z0(Cb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=z0(0,0,"");return l.dynamic=!0,l.strValue=e,l}const o=Cb(e,r);return z0(o.duration,o.delay,o.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let o,l=r.styles?r.styles:je({});if(5==l.type)o=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const a={};t.easing&&(a.easing=t.easing),c=je(a)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,o=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:o,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],o=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of o)"string"==typeof n?n===_r?t.push(n):e.errors.push(new g.vHH(3002,!1)):t.push(GM(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let o=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const a=e.collectedStyles.get(e.currentQuerySelector),d=a.get(i);let u=!0;d&&(l!=o&&l>=d.startTime&&o<=d.endTime&&(e.errors.push(function $k(s,r,e,t,o){return new g.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&a.set(i,{startTime:l,endTime:o}),e.options&&function E1(s,r,e){const t=r.params||{},o=YM(s);o.length&&o.forEach(l=>{t.hasOwnProperty(l)||e.push(function Fk(s){return new g.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Yk(){return new g.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,a=0;const d=r.steps.map(Ve=>{const ot=this._makeStyleAst(Ve,e);let mt=null!=ot.offset?ot.offset:function z1(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(ot.styles),Ut=0;return null!=mt&&(l++,Ut=ot.offset=mt),i=i||Ut<0||Ut>1,n=n||Ut0&&l{const mt=p>0?ot==b?1:p*ot:c[ot],Ut=mt*ae;e.currentTime=H+z.delay+Ut,z.duration=Ut,this._validateStyleAst(Ve,e),Ve.offset=mt,t.styles.push(Ve)}),t}visitReference(r,e){return{type:8,animation:Hn(this,Pp(r.animation),e),options:kl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:kl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:kl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,o=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function F1(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(O1,"")),s=s.replace(/@\*/g,bb).replace(/@\w+/g,e=>bb+"-"+e.slice(1)).replace(/:animating/g,O0),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Dn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Hn(this,Pp(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:o.limit||0,optional:!!o.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:kl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function Zk(){return new g.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Cb(r.timings,e.errors,!0);return{type:12,animation:Hn(this,Pp(r.animation),e),timings:t,options:null}}}class N1{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function kl(s){return s?(s=Hp(s)).params&&(s.params=function j1(s){return s?Hp(s):null}(s.params)):s={},s}function z0(s,r,e){return{duration:s,delay:r,easing:e}}function U0(s,r,e,t,o,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:o,delay:l,totalTime:o+l,easing:c,subTimeline:n}}class Sb{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const W1=new RegExp(":enter","g"),Y1=new RegExp(":leave","g");function G0(s,r,e,t,o,l=new Map,c=new Map,n,i,a=[]){return(new Q1).buildKeyframes(s,r,e,t,o,l,c,n,i,a)}class Q1{buildKeyframes(r,e,t,o,l,c,n,i,a,d=[]){a=a||new Sb;const u=new q0(r,e,a,o,l,d,[]);u.options=i;const p=i.delay?es(i.delay):0;u.currentTimeline.delayNextStep(p),u.currentTimeline.setStyles([c],null,u.errors,i),Hn(this,t,u);const b=u.timelines.filter(H=>H.containsAnimation());if(b.length&&n.size){let H;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){H=ae;break}}H&&!H.allowOnlyTimelineStyles()&&H.setStyles([n],null,u.errors,i)}return b.length?b.map(H=>H.buildKeyframes()):[U0(e,[],[],[],0,p,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const o=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,o,o.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?es(t.duration):null,n=null!=t.delay?es(t.delay):null;return 0!==c&&r.forEach(i=>{const a=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,a.duration+a.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Hn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let o=e;const l=r.options;if(l&&(l.params||l.delay)&&(o=e.createSubContext(l),o.transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Mb);const c=es(l.delay);o.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Hn(this,c,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>t&&o.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let o=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?es(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Hn(this,c,n),o=Math.max(o,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(o),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Cb(e.params?yb(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),o=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),o.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,o=e.currentAnimateTimings;!o&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=o&&o.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,o=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(o+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,o=r.options||{},l=o.delay?es(o.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Mb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((a,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,a);l&&u.delayNextStep(l),a===e.element&&(i=u.currentTimeline),Hn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,o=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Hn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=o.currentTime-u+(o.startTime-t.currentTimeline.startTime)}}const Mb={};class q0{constructor(r,e,t,o,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=o,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Db(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let o=this.options;null!=t.duration&&(o.duration=es(t.duration)),null!=t.delay&&(o.delay=es(t.delay));const l=t.params;if(l){let c=o.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=yb(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(o=>{t[o]=e[o]})}}return r}createSubContext(r=null,e,t){const o=e||this.element,l=new q0(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=Mb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const o={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new J1(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,o,r.stretchStartingKeyframe);return this.timelines.push(l),o}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,o,l,c){let n=[];if(o&&n.push(this.element),r.length>0){r=(r=r.replace(W1,"."+this._enterClassName)).replace(Y1,"."+this._leaveClassName);let a=this._driver.query(this.element,r,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),n.push(...a)}return!l&&0==n.length&&c.push(function Xk(s){return new g.vHH(3014,!1)}()),n}}class Db{constructor(r,e,t,o){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Db(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,o){e&&this._previousKeyframe.set("easing",e);const l=o&&o.params||{},c=function K1(s,r){const e=new Map;let t;return s.forEach(o=>{if("*"===o){t=t||r.keys();for(let l of t)e.set(l,_r)}else ts(o,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const a=yb(i,l,t);this._pendingStyles.set(n,a),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,a)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const o=this._styleSummary.get(t);(!o||e.time>o.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((n,i)=>{const a=ts(n,new Map,this._backFill);a.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||a.set("offset",i/this.duration),o.push(a)});const l=r.size?wb(r.values()):[],c=e.size?wb(e.values()):[];if(t){const n=o[0],i=new Map(n);n.set("offset",0),i.set("offset",1),o=[n,i]}return U0(this.element,o,l,c,this.duration,this.startTime,this.easing,!1)}}class J1 extends Db{constructor(r,e,t,o,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=o,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=ts(r[0]);i.set("offset",0),l.push(i);const a=ts(r[0]);a.set("offset",XM(n)),l.push(a);const d=r.length-1;for(let u=1;u<=d;u++){let p=ts(r[u]);const b=p.get("offset");p.set("offset",XM((e+b*t)/c)),l.push(p)}t=c,e=0,o="",r=l}return U0(this.element,r,this.preStyleProps,this.postStyleProps,t,e,o,!0)}}function XM(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class W0{}const Z1=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class X1 extends W0{normalizePropertyName(r,e){return j0(r)}normalizeStyleValue(r,e,t,o){let l="";const c=t.toString().trim();if(Z1.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&o.push(function zk(s,r){return new g.vHH(3005,!1)}())}return c+l}}function eD(s,r,e,t,o,l,c,n,i,a,d,u,p){return{type:0,element:s,triggerName:r,isRemovalTransition:o,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:a,postStyleProps:d,totalTime:u,errors:p}}const $0={};class tD{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,o){return function eV(s,r,e,t,o){return s.some(l=>l(r,e,t,o))}(this.ast.matchers,r,e,t,o)}buildStyles(r,e,t){let o=this._stateStyles.get("*");return void 0!==r&&(o=this._stateStyles.get(r?.toString())||o),o?o.buildStyles(e,t):new Map}build(r,e,t,o,l,c,n,i,a,d){const u=[],p=this.ast.options&&this.ast.options.params||$0,H=this.buildStyles(t,n&&n.params||$0,u),z=i&&i.params||$0,ae=this.buildStyles(o,z,u),Ve=new Set,ot=new Map,mt=new Map,Ut="void"===o,Sr={params:tV(z,p),delay:this.ast.options?.delay},rr=d?[]:G0(r,e,this.ast.animation,l,c,H,ae,Sr,a,u);let rn=0;if(rr.forEach(Ua=>{rn=Math.max(Ua.duration+Ua.delay,rn)}),u.length)return eD(e,this._triggerName,t,o,Ut,H,ae,[],[],ot,mt,rn,u);rr.forEach(Ua=>{const Ga=Ua.element,mD=Dn(ot,Ga,new Set);Ua.preStyleProps.forEach(Vl=>mD.add(Vl));const Ip=Dn(mt,Ga,new Set);Ua.postStyleProps.forEach(Vl=>Ip.add(Vl)),Ga!==e&&Ve.add(Ga)});const za=wb(Ve.values());return eD(e,this._triggerName,t,o,Ut,H,ae,rr,za,ot,mt,rn)}}function tV(s,r){const e=Hp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class iV{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,o=Hp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(o[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=yb(c,o,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class rV{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new iV(o.style,o.options&&o.options.params||{},t))}),iD(this.states,"true","1"),iD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new tD(r,o,this.states))}),this.fallbackTransition=function aV(s,r,e){return new tD(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,o){return this.transitionFactories.find(c=>c.match(r,e,t,o))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function iD(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const oV=new Sb;class sV{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=N0(this._driver,e,t,[]);if(t.length)throw function s1(s){return new g.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const o=r.element,l=kM(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(o,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const o=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=G0(this._driver,e,l,B0,mb,new Map,new Map,t,oV,o),c.forEach(d=>{const u=Dn(n,d.element,new Map);d.postStyleProps.forEach(p=>u.set(p,null))})):(o.push(function l1(){return new g.vHH(3300,!1)}()),c=[]),o.length)throw function c1(s){return new g.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((p,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const a=Xo(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,a),a.onDestroy(()=>this.destroy(r)),this.players.push(a),a}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function d1(s){return new g.vHH(3301,!1)}();return e}listen(r,e,t,o){const l=R0(e,"","","");return H0(this._getPlayer(r),t,l,o),()=>{}}command(r,e,t,o){if("register"==t)return void this.register(r,o[0]);if("create"==t)return void this.create(r,e,o[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(r)}}}const nD="ng-animate-queued",Y0="ng-animate-disabled",hV=[],rD={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ir="__ng_removed";class Q0{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function _V(s){return s??null}(t?r.value:r),t){const l=Hp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(o=>{null==t[o]&&(t[o]=e[o])})}}}const Rp="void",J0=new Q0(Rp);class fV{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,nr(e,this._hostClassName)}listen(r,e,t,o){if(!this._triggers.has(e))throw function u1(s,r){return new g.vHH(3302,!1)}();if(null==t||0==t.length)throw function h1(s){return new g.vHH(3303,!1)}();if(!function bV(s){return"start"==s||"done"==s}(t))throw function p1(s,r){return new g.vHH(3400,!1)}();const l=Dn(this._elementListeners,r,[]),c={name:e,phase:t,callback:o};l.push(c);const n=Dn(this._engine.statesByElement,r,new Map);return n.has(e)||(nr(r,_b),nr(r,_b+"-"+e),n.set(e,J0)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function f1(s){return new g.vHH(3401,!1)}();return e}trigger(r,e,t,o=!0){const l=this._getTrigger(e),c=new K0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(nr(r,_b),nr(r,_b+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const a=new Q0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&a.absorbOptions(i.options),n.set(e,a),i||(i=J0),a.value!==Rp&&i.value===a.value){if(!function wV(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let o=0;o{Il(r,ae),Xr(r,Ve)})}return}const p=Dn(this._engine.playersByElement,r,[]);p.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,a.value,r,a.params),H=!1;if(!b){if(!o)return;b=l.fallbackTransition,H=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:a,player:c,isFallbackTransition:H}),H||(nr(r,nD),c.onStart(()=>{Sd(r,nD)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let Ve=ae.indexOf(c);Ve>=0&&ae.splice(Ve,1)}}),this.players.push(c),p.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(o=>o.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,bb,!0);t.forEach(o=>{if(o[ir])return;const l=this._engine.fetchNamespacesByElement(o);l.size?l.forEach(c=>c.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(r,e,t,o){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,a)=>{if(c.set(a,i.value),this._triggers.has(a)){const d=this.trigger(r,a,Rp,o);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&Xo(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const o=new Set;e.forEach(l=>{const c=l.name;if(o.has(c))return;o.add(c);const i=this._triggers.get(c).fallbackTransition,a=t.get(c)||J0,d=new Q0(Rp),u=new K0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:a,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let o=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)o=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(r),o)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[ir];(!l||l===rD)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){nr(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const o=t.player;if(o.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=R0(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,H0(t.player,n.phase,i,n.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(t)}),this._queue=[],e.sort((t,o)=>{const l=t.transition.ast.depCount,c=o.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,o.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class gV{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new fV(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,o=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=o.get(n);if(i){const a=t.indexOf(i);t.splice(a+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return o.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let o=this._namespaceLookup[r];o&&o.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const o=this._namespaceList.indexOf(t);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let o of t.values())if(o.namespaceId){const l=this._fetchNamespace(o.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,o){if(Hb(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,o),!0}return!1}insertNode(r,e,t,o){if(!Hb(e))return;const l=e[ir];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}o&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),nr(r,Y0)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Sd(r,Y0))}removeNode(r,e,t,o){if(Hb(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,o):this.markElementAsRemoved(r,e,!1,o),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(r,e,t,o,l){this.collectedLeaveElements.push(e),e[ir]={namespaceId:r,setForRemoval:o,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,o,l){return Hb(e)?this._fetchNamespace(r).listen(e,t,o,l):()=>{}}_buildInstruction(r,e,t,o,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,o,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,bb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,O0,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return Xo(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[ir];if(e&&e.setForRemoval){if(r[ir]=rD,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Y0)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,o)=>this._balanceNamespaceList(t,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Xo(e).onDone(()=>{t.forEach(o=>o())}):t.forEach(o=>o())}}reportError(r){throw function g1(s){return new g.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Sb,o=[],l=new Map,c=[],n=new Map,i=new Map,a=new Map,d=new Set;this.disabledNodes.forEach(Ge=>{d.add(Ge);const Ze=this.driver.query(Ge,".ng-animate-queued",!0);for(let it=0;it{const it=B0+z++;H.set(Ze,it),Ge.forEach(wt=>nr(wt,it))});const ae=[],Ve=new Set,ot=new Set;for(let Ge=0;GeVe.add(wt)):ot.add(Ze))}const mt=new Map,Ut=sD(p,Array.from(Ve));Ut.forEach((Ge,Ze)=>{const it=mb+z++;mt.set(Ze,it),Ge.forEach(wt=>nr(wt,it))}),r.push(()=>{b.forEach((Ge,Ze)=>{const it=H.get(Ze);Ge.forEach(wt=>Sd(wt,it))}),Ut.forEach((Ge,Ze)=>{const it=mt.get(Ze);Ge.forEach(wt=>Sd(wt,it))}),ae.forEach(Ge=>{this.processLeaveNode(Ge)})});const Sr=[],rr=[];for(let Ge=this._namespaceList.length-1;Ge>=0;Ge--)this._namespaceList[Ge].drainQueuedTransitions(e).forEach(it=>{const wt=it.player,ki=it.element;if(Sr.push(wt),this.collectedEnterElements.length){const Zi=ki[ir];if(Zi&&Zi.setForMove){if(Zi.previousTriggersValues&&Zi.previousTriggersValues.has(it.triggerName)){const Bl=Zi.previousTriggersValues.get(it.triggerName),ar=this.statesByElement.get(it.element);if(ar&&ar.has(it.triggerName)){const Ib=ar.get(it.triggerName);Ib.value=Bl,ar.set(it.triggerName,Ib)}}return void wt.destroy()}}const ea=!u||!this.driver.containsElement(u,ki),Pn=mt.get(ki),is=H.get(ki),ri=this._buildInstruction(it,t,is,Pn,ea);if(ri.errors&&ri.errors.length)return void rr.push(ri);if(ea)return wt.onStart(()=>Il(ki,ri.fromStyles)),wt.onDestroy(()=>Xr(ki,ri.toStyles)),void o.push(wt);if(it.isFallbackTransition)return wt.onStart(()=>Il(ki,ri.fromStyles)),wt.onDestroy(()=>Xr(ki,ri.toStyles)),void o.push(wt);const CD=[];ri.timelines.forEach(Zi=>{Zi.stretchStartingKeyframe=!0,this.disabledNodes.has(Zi.element)||CD.push(Zi)}),ri.timelines=CD,t.append(ki,ri.timelines),c.push({instruction:ri,player:wt,element:ki}),ri.queriedElements.forEach(Zi=>Dn(n,Zi,[]).push(wt)),ri.preStyleProps.forEach((Zi,Bl)=>{if(Zi.size){let ar=i.get(Bl);ar||i.set(Bl,ar=new Set),Zi.forEach((Ib,ex)=>ar.add(ex))}}),ri.postStyleProps.forEach((Zi,Bl)=>{let ar=a.get(Bl);ar||a.set(Bl,ar=new Set),Zi.forEach((Ib,ex)=>ar.add(ex))})});if(rr.length){const Ge=[];rr.forEach(Ze=>{Ge.push(function m1(s,r){return new g.vHH(3505,!1)}())}),Sr.forEach(Ze=>Ze.destroy()),this.reportError(Ge)}const rn=new Map,za=new Map;c.forEach(Ge=>{const Ze=Ge.element;t.has(Ze)&&(za.set(Ze,Ze),this._beforeAnimationBuild(Ge.player.namespaceId,Ge.instruction,rn))}),o.forEach(Ge=>{const Ze=Ge.element;this._getPreviousPlayers(Ze,!1,Ge.namespaceId,Ge.triggerName,null).forEach(wt=>{Dn(rn,Ze,[]).push(wt),wt.destroy()})});const Ua=ae.filter(Ge=>cD(Ge,i,a)),Ga=new Map;oD(Ga,this.driver,ot,a,_r).forEach(Ge=>{cD(Ge,i,a)&&Ua.push(Ge)});const Ip=new Map;b.forEach((Ge,Ze)=>{oD(Ip,this.driver,new Set(Ge),i,"!")}),Ua.forEach(Ge=>{const Ze=Ga.get(Ge),it=Ip.get(Ge);Ga.set(Ge,new Map([...Array.from(Ze?.entries()??[]),...Array.from(it?.entries()??[])]))});const Vl=[],_D=[],bD={};c.forEach(Ge=>{const{element:Ze,player:it,instruction:wt}=Ge;if(t.has(Ze)){if(d.has(Ze))return it.onDestroy(()=>Xr(Ze,wt.toStyles)),it.disabled=!0,it.overrideTotalTime(wt.totalTime),void o.push(it);let ki=bD;if(za.size>1){let Pn=Ze;const is=[];for(;Pn=Pn.parentNode;){const ri=za.get(Pn);if(ri){ki=ri;break}is.push(Pn)}is.forEach(ri=>za.set(ri,ki))}const ea=this._buildAnimation(it.namespaceId,wt,rn,l,Ip,Ga);if(it.setRealPlayer(ea),ki===bD)Vl.push(it);else{const Pn=this.playersByElement.get(ki);Pn&&Pn.length&&(it.parentPlayer=Xo(Pn)),o.push(it)}}else Il(Ze,wt.fromStyles),it.onDestroy(()=>Xr(Ze,wt.toStyles)),_D.push(it),d.has(Ze)&&o.push(it)}),_D.forEach(Ge=>{const Ze=l.get(Ge.element);if(Ze&&Ze.length){const it=Xo(Ze);Ge.setRealPlayer(it)}}),o.forEach(Ge=>{Ge.parentPlayer?Ge.syncPlayerEvents(Ge.parentPlayer):Ge.destroy()});for(let Ge=0;Ge!ea.destroyed);ki.length?CV(this,Ze,ki):this.processLeaveNode(Ze)}return ae.length=0,Vl.forEach(Ge=>{this.players.push(Ge),Ge.onDone(()=>{Ge.destroy();const Ze=this.players.indexOf(Ge);this.players.splice(Ze,1)}),Ge.play()}),Vl}elementContainsData(r,e){let t=!1;const o=e[ir];return o&&o.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,o,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Rp;n.forEach(a=>{a.queued||!i&&a.triggerName!=o||c.push(a)})}}return(t||o)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||o&&o!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const a=i.element,d=a!==l,u=Dn(t,a,[]);this._getPreviousPlayers(a,d,c,n,e.toState).forEach(b=>{const H=b.getRealPlayer();H.beforeDestroy&&H.beforeDestroy(),b.destroy(),u.push(b)})}Il(l,e.fromStyles)}_buildAnimation(r,e,t,o,l,c){const n=e.triggerName,i=e.element,a=[],d=new Set,u=new Set,p=e.timelines.map(H=>{const z=H.element;d.add(z);const ae=z[ir];if(ae&&ae.removedBeforeQueried)return new qs(H.duration,H.delay);const Ve=z!==i,ot=function yV(s){const r=[];return lD(s,r),r}((t.get(z)||hV).map(rn=>rn.getRealPlayer())).filter(rn=>!!rn.element&&rn.element===z),mt=l.get(z),Ut=c.get(z),Sr=kM(0,this._normalizer,0,H.keyframes,mt,Ut),rr=this._buildPlayer(H,Sr,ot);if(H.subTimeline&&o&&u.add(z),Ve){const rn=new K0(r,n,z);rn.setRealPlayer(rr),a.push(rn)}return rr});a.forEach(H=>{Dn(this.playersByQueriedElement,H.element,[]).push(H),H.onDone(()=>function mV(s,r,e){let t=s.get(r);if(t){if(t.length){const o=t.indexOf(e);t.splice(o,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,H.element,H))}),d.forEach(H=>nr(H,UM));const b=Xo(p);return b.onDestroy(()=>{d.forEach(H=>Sd(H,UM)),Xr(i,e.toStyles)}),u.forEach(H=>{Dn(o,H,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new qs(r.duration,r.delay)}}class K0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new qs,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(o=>H0(r,t,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Dn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Hb(s){return s&&1===s.nodeType}function aD(s,r){const e=s.style.display;return s.style.display=r??"none",e}function oD(s,r,e,t,o){const l=[];e.forEach(i=>l.push(aD(i)));const c=[];t.forEach((i,a)=>{const d=new Map;i.forEach(u=>{const p=r.computeStyle(a,u,o);d.set(u,p),(!p||0==p.length)&&(a[ir]=pV,c.push(a))}),s.set(a,d)});let n=0;return e.forEach(i=>aD(i,l[n++])),c}function sD(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const o=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const a=n.parentNode;return i=e.has(a)?a:o.has(a)?1:c(a),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function nr(s,r){s.classList?.add(r)}function Sd(s,r){s.classList?.remove(r)}function CV(s,r,e){Xo(e).onDone(()=>s.processLeaveNode(r))}function lD(s,r){for(let e=0;eo.add(l)):r.set(s,t),e.delete(s),!0}class Pb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(o,l)=>{},this._transitionEngine=new gV(r,e,t),this._timelineEngine=new sV(r,e,t),this._transitionEngine.onRemovalComplete=(o,l)=>this.onRemovalComplete(o,l)}registerTrigger(r,e,t,o,l){const c=r+"-"+o;let n=this._triggerCache[c];if(!n){const i=[],d=N0(this._driver,l,i,[]);if(i.length)throw function a1(s,r){return new g.vHH(3404,!1)}();n=function nV(s,r,e){return new rV(s,r,e)}(o,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,o,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,o){this._transitionEngine.insertNode(r,e,t,o)}onRemove(r,e,t,o){this._transitionEngine.removeNode(r,e,o||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,o){if("@"==t.charAt(0)){const[l,c]=VM(t);this._timelineEngine.command(l,e,c,o)}else this._transitionEngine.trigger(r,e,t,o)}listen(r,e,t,o,l){if("@"==t.charAt(0)){const[c,n]=VM(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,o,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let AV=(()=>{class s{constructor(e,t,o){this._element=e,this._startStyles=t,this._endStyles=o,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Xr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xr(this._element,this._initialStyles),this._endStyles&&(Xr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Il(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Il(this._element,this._endStyles),this._endStyles=null),Xr(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function Z0(s){let r=null;return s.forEach((e,t)=>{(function xV(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class dD{constructor(r,e,t,o){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,o)=>{"offset"!==o&&r.set(o,this._finished?t:QM(this.element,o))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class TV{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return FM(r,e)}getParentElement(r){return k0(r)}query(r,e,t){return jM(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,o,l,c=[]){const i={duration:t,delay:o,fill:0==o?"both":"forwards"};l&&(i.easing=l);const a=new Map,d=c.filter(b=>b instanceof dD);(function D1(s,r){return 0===s||0===r})(t,o)&&d.forEach(b=>{b.currentSnapshot.forEach((H,z)=>a.set(z,H))});let u=function T1(s){return s.length?s[0]instanceof Map?s:s.map(r=>GM(r)):[]}(e).map(b=>ts(b));u=function H1(s,r,e){if(e.size&&r.length){let t=r[0],o=[];if(e.forEach((l,c)=>{t.has(c)||o.push(c),t.set(c,l)}),o.length)for(let l=1;lc.set(n,QM(s,n)))}}return r}(r,u,a);const p=function vV(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=Z0(r[0]),r.length>1&&(t=Z0(r[r.length-1]))):r instanceof Map&&(e=Z0(r)),e||t?new AV(s,e,t):null}(r,u);return new dD(r,u,i,p)}}let EV=(()=>{class s extends Ug{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:g.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?Gg(e):e;return uD(this._renderer,null,t,"register",[o]),new SV(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(T.K0))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class SV extends class Gs{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new MV(this._id,r,e||{},this._renderer)}}class MV{constructor(r,e,t,o){this.id=r,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return uD(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function uD(s,r,e,t,o){return s.setProperty(r,`@@${e}:${t}`,o)}const hD="@.disabled";let DV=(()=>{class s{constructor(e,t,o){this.delegate=e,this.engine=t,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new pD("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new HV(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,o){e>=0&&et(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(g.FYo),g.LFG(Pb),g.LFG(g.R0b))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})();class pD{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,o=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,o)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,o){this.delegate.setAttribute(r,e,t,o)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,o){this.delegate.setStyle(r,e,t,o)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==hD?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class HV extends pD{constructor(r,e,t,o){super(e,t,o),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hD?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const o=function PV(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function RV(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,o,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const fD=[{provide:Ug,useClass:EV},{provide:W0,useFactory:function kV(){return new X1}},{provide:Pb,useClass:(()=>{class s extends Pb{constructor(e,t,o,l){super(e.body,t,o)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(T.K0),g.LFG(V0),g.LFG(W0),g.LFG(g.z2F))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:g.FYo,useFactory:function VV(s,r,e){return new DV(s,r,e)},deps:[ue,Pb,g.R0b]}],X0=[{provide:V0,useFactory:()=>new TV},{provide:g.QbO,useValue:"BrowserAnimations"},...fD],gD=[{provide:V0,useClass:NM},{provide:g.QbO,useValue:"NoopAnimations"},...fD];let BV=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?gD:X0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=g.oAB({type:s}),s.\u0275inj=g.cJS({providers:X0,imports:[na]}),s})();const OV={provide:y.TP,useExisting:(0,g.Gpc)(()=>o_),multi:!0};function LV(s){return new dH(s,"./assets/i18n/",".json")}function FV(s){const r={basePath:s.getProperty("api_url")};return new et(r)}const jV=s=>()=>s.loadConfigs();let NV=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(g.LFG(Ih),g.LFG(sl))},s.\u0275mod=g.oAB({type:s,bootstrap:[Co]}),s.\u0275inj=g.cJS({providers:[Ih,{provide:g.ip1,useFactory:jV,multi:!0,deps:[fH]},{provide:et,useFactory:FV,deps:[Qr]},o_,OV,{provide:gH,useClass:eA},{provide:Ms.Hy,useFactory:()=>localStorage}],imports:[na,BV,y.JF,i_,cH,b0,Ik,Sn,MM,C0,km,Vk,Ms.zr.forRoot(),Bk,Zn.forRoot({loader:{provide:qe,useFactory:LV,deps:[y.eN]}})]}),s})();(0,g.G48)(),Ye().bootstrapModule(NV).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(g,V){var O={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,X,ie,de,he){for(var ge,Be,Oe,we,_e,ve,$e,De,Se,Ee,oe,se,fe;he>=64;){for(ge=X[0],Be=X[1],Oe=X[2],we=X[3],_e=X[4],ve=X[5],$e=X[6],De=X[7],Ee=0;Ee<16;Ee++)ne[Ee]=(255&ie[oe=de+4*Ee])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Ee=16;Ee<64;Ee++)ne[Ee]=((se=((Se=ne[Ee-2])>>>17|Se<<15)^(Se>>>19|Se<<13)^Se>>>10)+ne[Ee-7]|0)+((fe=((Se=ne[Ee-15])>>>7|Se<<25)^(Se>>>18|Se<<14)^Se>>>3)+ne[Ee-16]|0);for(Ee=0;Ee<64;Ee++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&$e)|0)+(De+(V[Ee]+ne[Ee]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Be^ge&Oe^Be&Oe)|0,De=$e,$e=ve,ve=_e,_e=we+se|0,we=Oe,Oe=Be,Be=ge,ge=se+fe|0;X[0]+=ge,X[1]+=Be,X[2]+=Oe,X[3]+=we,X[4]+=_e,X[5]+=ve,X[6]+=$e,X[7]+=De,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=g.digestLength,this.blockSize=g.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var X=0;X0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,X,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=X[de++],ie--;return this},ne.prototype.finish=function(X){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Be=ie%64<56?64:128;this.buffer[de]=128;for(var Oe=de+1;Oe>>24&255,this.buffer[Be-7]=he>>>16&255,this.buffer[Be-6]=he>>>8&255,this.buffer[Be-5]=he>>>0&255,this.buffer[Be-4]=ge>>>24&255,this.buffer[Be-3]=ge>>>16&255,this.buffer[Be-2]=ge>>>8&255,this.buffer[Be-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Oe=0;Oe<8;Oe++)X[4*Oe+0]=this.state[Oe]>>>24&255,X[4*Oe+1]=this.state[Oe]>>>16&255,X[4*Oe+2]=this.state[Oe]>>>8&255,X[4*Oe+3]=this.state[Oe]>>>0&255;return this},ne.prototype.digest=function(){var X=new Uint8Array(this.digestLength);return this.finish(X),X},ne.prototype._saveState=function(X){for(var ie=0;iethis.blockSize)(new I).update(X).finish(ie).clean();else for(var de=0;de1&&X.update(ne),ie&&X.update(ie),X.update(de),X.finish(ne),de[0]++}g.HMAC=j,g.hash=W,g.default=W,g.hmac=Q;var $=new Uint8Array(g.digestLength);g.hkdf=function U(ne,X,ie,de){void 0===X&&(X=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(X,ne),Be=new j(ge),Oe=new Uint8Array(Be.digestLength),we=Oe.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Be[1]=$e>>>16&255,Be[2]=$e>>>8&255,Be[3]=$e>>>0&255,he.reset(),he.update(X),he.update(Be),he.finish(we);for(var De=0;De=U.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(U)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,U,te){var ne=W.URL||W.webkitURL,X=document.createElement("a");X.download=U=U||$.name||"download",X.rel="noopener","string"==typeof $?(X.href=$,X.origin===location.origin?j(X):I(X.href)?O($,U,te):j(X,X.target="_blank")):(X.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(X.href)},4e4),setTimeout(function(){j(X)},0))}:"msSaveOrOpenBlob"in navigator?function($,U,te){if(U=U||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,U){return typeof U>"u"?U={autoBom:!1}:"object"!=typeof U&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),U);else if(I($))O($,U,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,U,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,U,te);var X="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||X&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Oe=he.result;Oe=de?Oe:Oe.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Oe:location=Oe,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Be=ge.createObjectURL($);ne?ne.location=Be:location.href=Be,ne=null,setTimeout(function(){ge.revokeObjectURL(Be)},4e4)}});W.saveAs=G.saveAs=G,F.exports=G}.apply(N,[]))&&(F.exports=g)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),g=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(X){X&&(this._subscribe=X)}lift(X){const ie=new te;return ie.source=this,ie.operator=X,ie}subscribe(X,ie,de){const he=function U(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,g.Nn)(te)}(X)?X:new T.Hp(X,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Be}=this;he.add(ge?ge.call(he,Be):Be?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(X){try{return this._subscribe(X)}catch(ie){X.error(ie)}}forEach(X,ie){return new(ie=G(ie))((de,he)=>{const ge=new T.Hp({next:Be=>{try{X(Be)}catch(Oe){he(Oe),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(X){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(X)}[V.L](){return this}pipe(...X){return(0,O.U)(X)(this)}toPromise(X){return new(X=G(X))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function G(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),g=x(727);const O=(0,x(3888).d)(G=>function(){G(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class G extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(U){const te=new Q(this,this);return te.operator=U,te}_throwIfClosed(){if(this.closed)throw new O}next(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(U)}})}error(U){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=U;const{observers:te}=this;for(;te.length;)te.shift().error(U)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:U}=this;for(;U.length;)U.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var U;return(null===(U=this.observers)||void 0===U?void 0:U.length)>0}_trySubscribe(U){return this._throwIfClosed(),super._trySubscribe(U)}_subscribe(U){return this._throwIfClosed(),this._checkFinalizedStatuses(U),this._innerSubscribe(U)}_innerSubscribe(U){const{hasError:te,isStopped:ne,observers:X}=this;return te||ne?g.Lc:(this.currentObservers=null,X.push(U),new g.w0(()=>{this.currentObservers=null,(0,I.P)(X,U)}))}_checkFinalizedStatuses(U){const{hasError:te,thrownError:ne,isStopped:X}=this;te?U.error(ne):X&&U.complete()}asObservable(){const U=new T.y;return U.source=this,U}}return G.create=($,U)=>new Q($,U),G})();class Q extends W{constructor($,U){super(),this.destination=$,this.source=U}next($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.next)||void 0===te||te.call(U,$)}error($){var U,te;null===(te=null===(U=this.destination)||void 0===U?void 0:U.error)||void 0===te||te.call(U,$)}complete(){var $,U;null===(U=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===U||U.call($)}_subscribe($){var U,te;return null!==(te=null===(U=this.source)||void 0===U?void 0:U.subscribe($))&&void 0!==te?te:g.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),g=x(727),V=x(2416),O=x(7849),I=x(5032);const j=G("C",void 0,void 0);function G(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),U=x(2806);class te extends g.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Nn)(_e)&&_e.add(this)):this.destination=Oe}static create(_e,ve,$e){return new de(_e,ve,$e)}next(_e){this.isStopped?Be(function Q(we){return G("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Be(function W(we){return G("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Be(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function X(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch($e){he($e)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch($e){he($e)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,$e){let De;if(super(),(0,T.m)(_e)||!_e)De={next:_e??void 0,error:ve??void 0,complete:$e??void 0};else{let Se;this&&V.v.useDeprecatedNextContext?(Se=Object.create(_e),Se.unsubscribe=()=>this.unsubscribe(),De={next:_e.next&&X(_e.next,Se),error:_e.error&&X(_e.error,Se),complete:_e.complete&&X(_e.complete,Se)}):De=_e}this.destination=new ie(De)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,U.O)(we):(0,O.h)(we)}function Be(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Oe={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(G=>function(U){G(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:U}=this;if(U)if(this._parentage=null,Array.isArray(U))for(const X of U)X.remove(this);else U.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(X){$=X instanceof V?X.errors:[X]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const X of ne)try{Q(X)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var U;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(U=this._finalizers)&&void 0!==U?U:[]).push($)}}_hasParent($){const{_parentage:U}=this;return U===$||Array.isArray(U)&&U.includes($)}_addParent($){const{_parentage:U}=this;this._parentage=Array.isArray(U)?(U.push($),U):U?[U,$]:$}_removeParent($){const{_parentage:U}=this;U===$?this._parentage=null:Array.isArray(U)&&(0,O.P)(U,$)}remove($){const{_finalizers:U}=this;U&&(0,O.P)(U,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const G=new I;return G.closed=!0,G})();const j=I.EMPTY;function W(G){return G instanceof I||G&&"closed"in G&&(0,T.m)(G.remove)&&(0,T.m)(G.add)&&(0,T.m)(G.unsubscribe)}function Q(G){(0,T.m)(G)?G():G.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),g=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),G=x(9672);function $(...ne){const X=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,g.D)(ne);if(0===de.length)return(0,V.D)([],X);const ge=new T.y(function U(ne,X,ie=O.y){return de=>{te(X,()=>{const{length:he}=ne,ge=new Array(he);let Be=he,Oe=he;for(let we=0;we{const _e=(0,V.D)(ne[we],X);let ve=!1;_e.subscribe((0,Q.x)(de,$e=>{ge[we]=$e,ve||(ve=!0,Oe--),Oe||de.next(ie(ge.slice()))},()=>{--Be||de.complete()}))},de)},de)}}(de,X,he?Be=>(0,W.n)(he,Be):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,X,ie){ne?(0,G.f)(ie,ne,X):X()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function g(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>g});const g=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>$e});var T=x(8421),g=x(9672),V=x(4482),O=x(5403);function I(De,Se=0){return(0,V.e)((Ee,oe)=>{Ee.subscribe((0,O.x)(oe,se=>(0,g.f)(oe,De,()=>oe.next(se),Se),()=>(0,g.f)(oe,De,()=>oe.complete(),Se),se=>(0,g.f)(oe,De,()=>oe.error(se),Se)))})}function j(De,Se=0){return(0,V.e)((Ee,oe)=>{oe.add(De.schedule(()=>Ee.subscribe(oe),Se))})}var G=x(9751),U=x(2202),te=x(576);function X(De,Se){if(!De)throw new Error("Iterable cannot be null");return new G.y(Ee=>{(0,g.f)(Ee,Se,()=>{const oe=De[Symbol.asyncIterator]();(0,g.f)(Ee,Se,()=>{oe.next().then(se=>{se.done?Ee.complete():Ee.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Be=x(2206),Oe=x(4532),we=x(3260);function $e(De,Se){return Se?function ve(De,Se){if(null!=De){if((0,ie.c)(De))return function W(De,Se){return(0,T.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,he.z)(De))return function $(De,Se){return new G.y(Ee=>{let oe=0;return Se.schedule(function(){oe===De.length?Ee.complete():(Ee.next(De[oe++]),Ee.closed||this.schedule())})})}(De,Se);if((0,de.t)(De))return function Q(De,Se){return(0,T.Xf)(De).pipe(j(Se),I(Se))}(De,Se);if((0,Be.D)(De))return X(De,Se);if((0,ge.T)(De))return function ne(De,Se){return new G.y(Ee=>{let oe;return(0,g.f)(Ee,Se,()=>{oe=De[U.h](),(0,g.f)(Ee,Se,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Ee.error(ue)}fe?Ee.complete():Ee.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(De,Se);if((0,we.L)(De))return function _e(De,Se){return X((0,we.Q)(De),Se)}(De,Se)}throw(0,Oe.z)(De)}(De,Se):(0,T.Xf)(De)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),g=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),G=x(3260),$=x(576),U=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function X(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,g.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,U.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,G.L)(we))return function Be(we){return ge((0,G.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Oe(we,_e){var ve,$e,De,Se;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!($e=yield ve.next()).done;)if(_e.next($e.value),_e.closed)return}catch(Ee){De={error:Ee}}finally{try{$e&&!$e.done&&(Se=ve.return)&&(yield Se.call(ve))}finally{if(De)throw De.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),g=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),G=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,g.Xf)($[0]):(0,T.J)(G)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),g=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,g.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),g=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,g.Xf)(Q[0]):new T.y(function W(Q){return G=>{let $=[];for(let U=0;$&&!G.closed&&U{if($){for(let ne=0;ne<$.length;ne++)ne!==U&&$[ne].unsubscribe();$=null}G.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),g=x(576);function V(O,I){const j=(0,g.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),g=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=g.P){let G=-1;return null!=W&&((0,V.K)(W)?Q=W:G=W),new T.y($=>{let U=(0,O.q)(j)?+j-Q.now():j;U<0&&(U=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=G?this.schedule(void 0,G):$.complete())},U)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>g});var T=x(930);function g(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,G,$){super(I),this.onFinalize=G,this.shouldUnsubscribe=$,this._next=j?function(U){try{j(U)}catch(te){I.error(te)}}:super._next,this._error=Q?function(U){try{Q(U)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(U){I.error(U)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),g=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,G=!1;Q=j.subscribe((0,g.x)(W,void 0,void 0,U=>{$=(0,T.Xf)(I(U,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):G=!0})),G&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),g=x(576);function V(O,I){return(0,g.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),g=x(4482),V=x(5403);function O(I,j=T.z){return(0,g.e)((W,Q)=>{let G=null,$=null,U=null;const te=()=>{if(G){G.unsubscribe(),G=null;const X=$;$=null,Q.next(X)}};function ne(){const X=U+I,ie=j.now();if(ie{$=X,U=j.now(),G||(G=j.schedule(ne,I),Q.add(G))},()=>{te(),Q.complete()},void 0,()=>{$=G=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),g=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,g.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),g=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),G=x(5577);function $(ne,X){return X?ie=>(0,g.z)(X.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,X)=>{ne.subscribe((0,I.x)(X,j.Z))})}()),ie.pipe($(ne))):(0,G.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var U=x(2805);function te(ne,X=T.z){const ie=(0,U.H)(ne,X);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),g=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>O.call(I,G,Q++)&&W.next(G)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),g=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,G){const $=arguments.length>=2;return U=>U.pipe(Q?(0,g.h)((te,ne)=>Q(te,ne,U)):j.y,(0,V.q)(1),$?(0,O.d)(G):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),g=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,g.x)(W,G=>{W.next(O.call(I,G,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});var T=x(4004);function g(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),g=x(4671);function V(O=1/0){return(0,T.z)(g.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),g=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(G,$,U=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((X,ie)=>$(te,X,ne,ie))((0,g.Xf)(G(te,ne))),U):("number"==typeof $&&(U=$),(0,V.e)((te,ne)=>function j(G,$,U,te,ne,X,ie,de){const he=[];let ge=0,Be=0,Oe=!1;const we=()=>{Oe&&!he.length&&!ge&&$.complete()},_e=$e=>ge{X&&$.next($e),ge++;let De=!1;(0,g.Xf)(U($e,Be++)).subscribe((0,I.x)($,Se=>{ne?.(Se),X?_e(Se):$.next(Se)},()=>{De=!0},void 0,()=>{if(De)try{for(ge--;he.length&&geve(Se)):ve(Se)}we()}catch(Se){$.error(Se)}}))};return G.subscribe((0,I.x)($,_e,()=>{Oe=!0,we()})),()=>{de?.()}}(te,ne,G,U)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),g=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new g.x),resetOnError:G=!0,resetOnComplete:$=!0,resetOnRefCountZero:U=!0}=W;return te=>{let ne,X,ie,de=0,he=!1,ge=!1;const Be=()=>{X?.unsubscribe(),X=void 0},Oe=()=>{Be(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Oe(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Be();const $e=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(X=j(we,U))}),$e.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:De=>$e.next(De),error:De=>{ge=!0,Be(),X=j(Oe,G,De),$e.error(De)},complete:()=>{he=!0,Be(),X=j(Oe,$),$e.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...G){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...G).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),g=x(4482),V=x(5403);function O(I,j){return(0,g.e)((W,Q)=>{let G=null,$=0,U=!1;const te=()=>U&&!G&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{G?.unsubscribe();let X=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(G=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,X++):de),()=>{G=null,te()}))},()=>{U=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),g=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,g.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,G=>{++Q<=I&&(W.next(G),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),g=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const G=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return G?(0,g.e)(($,U)=>{var te;null===(te=G.subscribe)||void 0===te||te.call(G);let ne=!0;$.subscribe((0,V.x)(U,X=>{var ie;null===(ie=G.next)||void 0===ie||ie.call(G,X),U.next(X)},()=>{var X;ne=!1,null===(X=G.complete)||void 0===X||X.call(G),U.complete()},X=>{var ie;ne=!1,null===(ie=G.error)||void 0===ie||ie.call(G,X),U.error(X)},()=>{var X,ie;ne&&(null===(X=G.unsubscribe)||void 0===X||X.call(G)),null===(ie=G.finalize)||void 0===ie||ie.call(G)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),g=x(4482),V=x(5403);function O(j=I){return(0,g.e)((W,Q)=>{let G=!1;W.subscribe((0,V.x)(Q,$=>{G=!0,Q.next($)},()=>G?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>G});var T=x(4986),g=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(U=>function(ne=null){U(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function G(U,te){const{first:ne,each:X,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,g.q)(U)?{first:U}:"number"==typeof U?{each:U}:U;if(null==ne&&null==X)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Be)=>{let Oe,we,_e=null,ve=0;const $e=De=>{we=(0,W.f)(Be,de,()=>{try{Oe.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Be)}catch(Se){Be.error(Se)}},De)};Oe=ge.subscribe((0,j.x)(Be,De=>{we?.unsubscribe(),ve++,Be.next(_e=De),X>0&&$e(X)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&$e(null!=ne?"number"==typeof ne?ne:+ne-de.now():X)})}function $(U){throw new Q(U)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class g extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:G}=V;return G?.setInterval?G.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends g{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const G=this.id,$=this.scheduler;return null!=G&&(this.id=this.recycleAsyncId($,G,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,G=0){return V.setInterval(W.flush.bind(W,this),G)}recycleAsyncId(W,Q,G=0){if(null!=G&&this.delay===G&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const G=this._execute(W,Q);if(G)return G;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,G=!1;try{this.work(W)}catch(U){G=!0,$=U||new Error("Scheduled action threw falsy error")}if(G)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:G}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(G,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class g{constructor(I,j=g.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}g.now=T.l.now;class V extends g{constructor(I,j=g.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(g,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(g,V,...O):setTimeout(g,V,...O)},clearTimeout(g){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(g)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>g});const g=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});const g=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),g=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,g.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:g,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&g(W)===V}(Q)){const G=O(Q);return{args:G.map($=>Q[$]),keys:G}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(g,V){if(g){const O=g.indexOf(V);0<=O&&g.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(g){const O=g(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(g,V){return g.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let g=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!g;if(j&&(g={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=g;if(g=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=I)}},9672:(F,N,x)=>{"use strict";function T(g,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?g.add(this.schedule(null,I)):this.unsubscribe()},I);if(g.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(g){return g}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>g});var T=x(576);function g(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(g){return g instanceof Date&&!isNaN(g)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(g){return"function"==typeof g}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),g=x(576);function V(O){return(0,g.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),g=x(576);function V(O){return(0,g.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>g});var T=x(576);function g(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),g=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:G}=yield(0,T.qq)(W.read());if(G)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,g.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>g});var T=x(576);function g(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>g,e:()=>V});var T=x(576);function g(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(g(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:g}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return g(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>g});var T=x(4671);function g(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),g=x(3410);function V(O){g.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(He,at){function vt(xi){try{Le(ue.next(xi))}catch(Rn){at(Rn)}}function Dt(xi){try{Le(ue.throw(xi))}catch(Rn){at(Rn)}}function Le(xi){xi.done?He(xi.value):function Ie(He){return He instanceof fe?He:new fe(function(at){at(He)})}(xi.value).then(vt,Dt)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ue=fe.apply(oe,se||[]),He=[];return Ie={},at("next"),at("throw"),at("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function at(Gt){ue[Gt]&&(Ie[Gt]=function(xt){return new Promise(function(yn,ai){He.push([Gt,xt,yn,ai])>1||vt(Gt,xt)})})}function vt(Gt,xt){try{!function Dt(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,xi):Rn(He[0][2],Gt)}(ue[Gt](xt))}catch(yn){Rn(He[0][3],yn)}}function Le(Gt){vt("next",Gt)}function xi(Gt){vt("throw",Gt)}function Rn(Gt,xt){Gt(xt),He.shift(),He.length&&vt(He[0][0],He[0][1])}}function Oe(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(He){fe[He]=oe[He]&&function(at){return new Promise(function(vt,Dt){!function Ie(He,at,vt,Dt){Promise.resolve(Dt).then(function(Le){He({value:Le,done:vt})},at)}(vt,Dt,(at=oe[He](at)).done,at.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Oe,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Oe,EM:()=>Rr,HT:()=>I,JF:()=>Li,K0:()=>W,Mx:()=>Gi,NF:()=>Xa,O5:()=>St,PC:()=>la,RF:()=>sr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Be,bD:()=>Oi,ez:()=>cr,n9:()=>Di,q:()=>V,w_:()=>j});var T=x(4650);let g=null;function V(){return g}function I(M){g||(g=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function G(){return(0,T.LFG)(U)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let U=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new U((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function X(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Be)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return X(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){const ce=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Oe=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=X(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(D,B,ce)}replaceState(D,B,ee,pe){let ce=this.prepareExternalUrl(ee+de(pe));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie($e(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,$e(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=X,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function $e(M){return M.replace(/\/index.html$/,"")}function Gi(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let St=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new tn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){sa("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){sa("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class tn{constructor(){this.$implicit=null,this.ngIf=null}}function sa(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Bn{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let sr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Bn(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(sr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),la=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),ce=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,ce):this._renderer.removeStyle(this._ngEl.nativeElement,ee,ce)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})(),cr=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Oi="browser";function Xa(M){return M===Oi}let Rr=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new wi((0,T.LFG)(W),window)}),M})();class wi{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function eo(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const ce=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(ce)return ce}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=us(this.window.history)||us(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function us(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Li{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Dd,LE:()=>ge,TP:()=>vt,WM:()=>$,Zn:()=>fe,eN:()=>He,qT:()=>Oe});var T=x(6895),g=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class G{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const le=q.indexOf(":");if(le>0){const Te=q.slice(0,le),Xe=Te.toLowerCase(),st=q.slice(le+1).trim();this.maybeSetNormalizedName(Te,Xe),this.headers.has(Xe)?this.headers.get(Xe).push(st):this.headers.set(Xe,[st])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let le=Y[q];const Te=q.toLowerCase();"string"==typeof le&&(le=[le]),le.length>0&&(this.headers.set(Te,le),this.maybeSetNormalizedName(q,Te))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let le=Y.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(Y.name,q);const Te=("a"===Y.op?this.headers.get(q):void 0)||[];Te.push(...le),this.headers.set(q,Te);break;case"d":const Xe=Y.value;if(Xe){let st=this.headers.get(q);if(!st)return;st=st.filter(ze=>-1===Xe.indexOf(ze)),0===st.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,st)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const X=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(X,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Te=>{const Xe=Te.indexOf("="),[st,ze]=-1==Xe?[Y.decodeKey(Te),""]:[Y.decodeKey(Te.slice(0,Xe)),Y.decodeValue(Te.slice(Xe+1))],Qe=q.get(st)||[];Qe.push(ze),q.set(st,Qe)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const le=Y.fromObject[q],Te=Array.isArray(le)?le.map(he):[he(le)];this.map.set(q,Te)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(le=>{const Te=Y[le];Array.isArray(Te)?Te.forEach(Xe=>{q.push({param:le,value:Xe,op:"a"})}):q.push({param:le,value:Te,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(le=>q+"="+this.encoder.encodeValue(le)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let le=this.map.get(Y.param)||[];const Te=le.indexOf(he(Y.value));-1!==Te&&le.splice(Te,1),le.length>0?this.map.set(Y.param,le):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Oe{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function $e(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Se{constructor(Y,q,le,Te){let Xe;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==le?le:null,Xe=Te):Xe=le,Xe&&(this.reportProgress=!!Xe.reportProgress,this.withCredentials=!!Xe.withCredentials,Xe.responseType&&(this.responseType=Xe.responseType),Xe.headers&&(this.headers=Xe.headers),Xe.context&&(this.context=Xe.context),Xe.params&&(this.params=Xe.params)),this.headers||(this.headers=new $),this.context||(this.context=new Oe),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=q;else{const ze=q.indexOf("?");this.urlWithParams=q+(-1===ze?"?":zeXi.set(tt,Y.setHeaders[tt]),Qe)),Y.setParams&&(ti=Object.keys(Y.setParams).reduce((Xi,tt)=>Xi.set(tt,Y.setParams[tt]),ti)),new Se(q,le,Xe,{params:ti,headers:Qe,context:bt,reportProgress:ze,responseType:Te,withCredentials:st})}}var Ee=(()=>((Ee=Ee||{})[Ee.Sent=0]="Sent",Ee[Ee.UploadProgress=1]="UploadProgress",Ee[Ee.ResponseHeader=2]="ResponseHeader",Ee[Ee.DownloadProgress=3]="DownloadProgress",Ee[Ee.Response=4]="Response",Ee[Ee.User=5]="User",Ee))();class oe{constructor(Y,q=200,le="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||le,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Ee.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Ee.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Ie(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let He=(()=>{class Ce{constructor(q){this.handler=q}request(q,le,Te={}){let Xe;if(q instanceof Se)Xe=q;else{let Qe,ti;Qe=Te.headers instanceof $?Te.headers:new $(Te.headers),Te.params&&(ti=Te.params instanceof ge?Te.params:new ge({fromObject:Te.params})),Xe=new Se(q,le,void 0!==Te.body?Te.body:null,{headers:Qe,context:Te.context,params:ti,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const st=(0,V.of)(Xe).pipe((0,I.b)(Qe=>this.handler.handle(Qe)));if(q instanceof Se||"events"===Te.observe)return st;const ze=st.pipe((0,j.h)(Qe=>Qe instanceof fe));switch(Te.observe||"body"){case"body":switch(Xe.responseType){case"arraybuffer":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&!(Qe.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Qe.body}));case"blob":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&!(Qe.body instanceof Blob))throw new Error("Response is not a Blob.");return Qe.body}));case"text":return ze.pipe((0,W.U)(Qe=>{if(null!==Qe.body&&"string"!=typeof Qe.body)throw new Error("Response is not a string.");return Qe.body}));default:return ze.pipe((0,W.U)(Qe=>Qe.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(q,le={}){return this.request("DELETE",q,le)}get(q,le={}){return this.request("GET",q,le)}head(q,le={}){return this.request("HEAD",q,le)}jsonp(q,le){return this.request("JSONP",q,{params:(new ge).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,le={}){return this.request("OPTIONS",q,le)}patch(q,le,Te={}){return this.request("PATCH",q,Ie(Te,le))}post(q,le,Te={}){return this.request("POST",q,Ie(Te,le))}put(q,le,Te={}){return this.request("PUT",q,Ie(Te,le))}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(Q))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class at{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const vt=new g.OlP("HTTP_INTERCEPTORS");let Dt=(()=>{class Ce{intercept(q,le){return le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const qa=/^\)\]\}',?\n/;let Wa=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(le=>{const Te=this.xhrFactory.build();if(Te.open(q.method,q.urlWithParams),q.withCredentials&&(Te.withCredentials=!0),q.headers.forEach((Tt,Pt)=>Te.setRequestHeader(Tt,Pt.join(","))),q.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Tt=q.detectContentTypeHeader();null!==Tt&&Te.setRequestHeader("Content-Type",Tt)}if(q.responseType){const Tt=q.responseType.toLowerCase();Te.responseType="json"!==Tt?Tt:"text"}const Xe=q.serializeBody();let st=null;const ze=()=>{if(null!==st)return st;const Tt=Te.statusText||"OK",Pt=new $(Te.getAllResponseHeaders()),an=function Md(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(Te)||q.url;return st=new se({headers:Pt,status:Te.status,statusText:Tt,url:an}),st},Qe=()=>{let{headers:Tt,status:Pt,statusText:an,url:Dr}=ze(),gi=null;204!==Pt&&(gi=typeof Te.response>"u"?Te.responseText:Te.response),0===Pt&&(Pt=gi?200:0);let Hr=Pt>=200&&Pt<300;if("json"===q.responseType&&"string"==typeof gi){const Pr=gi;gi=gi.replace(qa,"");try{gi=""!==gi?JSON.parse(gi):null}catch(ra){gi=Pr,Hr&&(Hr=!1,gi={error:ra,text:gi})}}Hr?(le.next(new fe({body:gi,headers:Tt,status:Pt,statusText:an,url:Dr||void 0})),le.complete()):le.error(new ue({error:gi,headers:Tt,status:Pt,statusText:an,url:Dr||void 0}))},ti=Tt=>{const{url:Pt}=ze(),an=new ue({error:Tt,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:Pt||void 0});le.error(an)};let bt=!1;const Xi=Tt=>{bt||(le.next(ze()),bt=!0);let Pt={type:Ee.DownloadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Pt.total=Tt.total),"text"===q.responseType&&!!Te.responseText&&(Pt.partialText=Te.responseText),le.next(Pt)},tt=Tt=>{let Pt={type:Ee.UploadProgress,loaded:Tt.loaded};Tt.lengthComputable&&(Pt.total=Tt.total),le.next(Pt)};return Te.addEventListener("load",Qe),Te.addEventListener("error",ti),Te.addEventListener("timeout",ti),Te.addEventListener("abort",ti),q.reportProgress&&(Te.addEventListener("progress",Xi),null!==Xe&&Te.upload&&Te.upload.addEventListener("progress",tt)),Te.send(Xe),le.next({type:Ee.Sent}),()=>{Te.removeEventListener("error",ti),Te.removeEventListener("abort",ti),Te.removeEventListener("load",Qe),Te.removeEventListener("timeout",ti),q.reportProgress&&(Te.removeEventListener("progress",Xi),null!==Xe&&Te.upload&&Te.upload.removeEventListener("progress",tt)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(T.JF))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const In=new g.OlP("XSRF_COOKIE_NAME"),kn=new g.OlP("XSRF_HEADER_NAME");class ta{}let $a=(()=>{class Ce{constructor(q,le,Te){this.doc=q,this.platform=le,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(In))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Ye=(()=>{class Ce{constructor(q,le){this.tokenService=q,this.headerName=le}intercept(q,le){const Te=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||Te.startsWith("http://")||Te.startsWith("https://"))return le.handle(q);const Xe=this.tokenService.getToken();return null!==Xe&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,Xe)})),le.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(ta),g.LFG(kn))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),li=(()=>{class Ce{constructor(q,le){this.backend=q,this.injector=le,this.chain=null}handle(q){if(null===this.chain){const le=this.injector.get(vt,[]);this.chain=le.reduceRight((Te,Xe)=>new at(Te,Xe),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(g.LFG(G),g.LFG(g.zs3))},Ce.\u0275prov=g.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),na=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Ye,useClass:Dt}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:In,useValue:q.cookieName}:[],q.headerName?{provide:kn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[Ye,{provide:vt,useExisting:Ye,multi:!0},{provide:ta,useClass:$a},{provide:In,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Dd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=g.oAB({type:Ce}),Ce.\u0275inj=g.cJS({providers:[He,{provide:Q,useClass:li},Wa,{provide:G,useExisting:Wa}],imports:[na.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>af,$Z:()=>ky,AFp:()=>_A,ALo:()=>Kv,AaK:()=>Q,BQk:()=>hh,CHM:()=>xn,CRH:()=>nA,CZH:()=>xl,CqO:()=>Cw,D6c:()=>hp,EJc:()=>cS,EiD:()=>Sf,EpF:()=>_w,F$t:()=>om,F4k:()=>bw,FYo:()=>UC,FiY:()=>wa,G48:()=>fS,Gf:()=>Oh,GfV:()=>GC,GkF:()=>tm,Gpc:()=>U,Hsn:()=>Tw,Ikx:()=>Ch,JOm:()=>En,JVY:()=>cu,KtG:()=>qi,L6k:()=>hi,LAX:()=>yo,LFG:()=>Jt,LSH:()=>Df,Lbi:()=>ud,Lck:()=>PE,MAs:()=>Xg,MMx:()=>ad,NdJ:()=>nm,O4$:()=>jn,OlP:()=>Ht,Oqu:()=>_m,PXZ:()=>I_,Q6J:()=>Cr,QGY:()=>im,QP$:()=>zo,QbO:()=>yA,Qsj:()=>Ox,R0b:()=>zi,RDi:()=>bC,Rgc:()=>sd,SBq:()=>wc,Sil:()=>S_,Suo:()=>iA,TTD:()=>Ja,TgZ:()=>ch,Udp:()=>pm,VKq:()=>Km,WFA:()=>rm,XFs:()=>Ye,Xpm:()=>an,Xts:()=>Hf,Y36:()=>Ls,YKP:()=>Rv,YNc:()=>Zg,Yjl:()=>Ll,Yz7:()=>xt,ZZ4:()=>dp,_Bn:()=>Pv,_UZ:()=>dh,_Vd:()=>yc,_c5:()=>WA,_uU:()=>qw,aQg:()=>Er,c2e:()=>sS,cJS:()=>ai,cg1:()=>Sn,d8E:()=>yh,dDg:()=>gd,dqk:()=>le,eBb:()=>fx,eFA:()=>PA,ekj:()=>fm,eoX:()=>Wo,f3M:()=>eu,g9A:()=>dd,h0i:()=>gl,hGG:()=>$A,hij:()=>gh,iGM:()=>Bh,ifc:()=>q,ip1:()=>Mn,kL8:()=>Dm,kcU:()=>Ud,lG2:()=>Hd,lcZ:()=>Zv,lnq:()=>bm,lqb:()=>Ao,lri:()=>R_,mCW:()=>hc,n5z:()=>nf,n_E:()=>Dh,oAB:()=>Pr,oxw:()=>Aw,pB0:()=>vf,q3G:()=>ni,qLn:()=>vc,qOj:()=>Io,qZA:()=>qc,qzn:()=>Co,rWj:()=>TA,s9C:()=>ph,sBO:()=>F_,sIi:()=>Ws,s_b:()=>Ph,soG:()=>ep,tb:()=>T_,tp0:()=>xs,uIk:()=>ah,vHH:()=>ie,vpe:()=>xr,wAp:()=>qe,xp6:()=>xy,ynx:()=>uh,z2F:()=>Ml,z3N:()=>Fr,zSh:()=>If,zs3:()=>Ma});var T=x(7579),g=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let f in h)if(h[f]===j)return f;throw Error("Could not find renamed property on target object.")}function W(h,f){for(const m in f)f.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=f[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const f=h.toString();if(null==f)return""+f;const m=f.indexOf("\n");return-1===m?f:f.substring(0,m)}function G(h,f){return null==h||""===h?null===f?"":f:null==f||""===f?h:h+" "+f}const $=j({__forward_ref__:j});function U(h){return h.__forward_ref__=U,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===U}class ie extends Error{constructor(f,m){super(function de(h,f){return`NG0${Math.abs(h)}${f?": "+f.trim():""}`}(f,m)),this.code=f}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,f){throw new ie(-201,!1)}function Dt(h,f){null==h&&function Le(h,f,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${f} <=Actual]`))}(f,h,null,"!=")}function xt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ai(h){return{providers:h.providers||[],imports:h.imports||[]}}function Mr(h){return Ol(h,In)||Ol(h,ta)}function Ol(h,f){return h.hasOwnProperty(f)?h[f]:null}function Wa(h){return h&&(h.hasOwnProperty(kn)||h.hasOwnProperty($a))?h[kn]:null}const In=j({\u0275prov:j}),kn=j({\u0275inj:j}),ta=j({ngInjectableDef:j}),$a=j({ngInjectorDef:j});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let li;function Ti(h){const f=li;return li=h,f}function na(h,f,m){const _=Mr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==f?f:void _e(Q(h))}function wn(h){return{toString:h}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const le=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),st={},ze=[],Qe=j({\u0275cmp:j}),ti=j({\u0275dir:j}),bt=j({\u0275pipe:j}),Xi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Tt=j({__NG_ELEMENT_ID__:j});let Pt=0;function an(h){return wn(()=>{const m=!0===h.standalone,_={},C={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||ze,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+Pt++,styles:h.styles||ze,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=Ya(h.inputs,_),C.outputs=Ya(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(gi).filter(Hr):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Si).filter(Hr):null,C})}function gi(h){return At(h)||Ei(h)}function Hr(h){return null!==h}function Pr(h){return wn(()=>({type:h.type,bootstrap:h.bootstrap||ze,declarations:h.declarations||ze,imports:h.imports||ze,exports:h.exports||ze,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Ya(h,f){if(null==h)return st;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,f&&(f[C]=w)}return m}const Hd=an;function Ll(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function At(h){return h[Qe]||null}function Ei(h){return h[ti]||null}function Si(h){return h[bt]||null}function Ui(h,f){const m=h[Xi]||null;if(!m&&!0===f)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function St(h){return Array.isArray(h)&&"object"==typeof h[1]}function tn(h){return Array.isArray(h)&&!0===h[1]}function sa(h){return 0!=(8&h.flags)}function Bn(h){return 2==(2&h.flags)}function sr(h){return 1==(1&h.flags)}function Di(h){return null!==h.template}function Fl(h){return 0!=(256&h[2])}function lr(h,f){return h.hasOwnProperty(tt)?h[tt]:null}class Nl{constructor(f,m,_){this.previousValue=f,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function Ja(){return os}function os(h){return h.type.prototype.ngOnChanges&&(h.setInput=Ka),zl}function zl(){const h=lt(this),f=h?.current;if(f){const m=h.previous;if(m===st)h.previous=f;else for(let _ in f)m[_]=f[_];h.current=null,this.ngOnChanges(f)}}function Ka(h,f,m,_){const C=lt(h)||function da(h,f){return h[sn]=f}(h,{previous:st,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Nl(S&&S.currentValue,f,v===st),h[_]=f}Ja.ngInherit=!0;const sn="__ngSimpleChanges__";function lt(h){return h[sn]||null}function Qt(h){for(;Array.isArray(h);)h=h[0];return h}function Rr(h,f){return Qt(f[h])}function wi(h,f){return Qt(f[h.index])}function eo(h,f){return h.data[f]}function ua(h,f){return h[f]}function Li(h,f){const m=f[h];return St(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,f){return null==f?null:h[f]}function ee(h){h[18]=0}function pe(h,f){h[5]+=f;let m=h,_=h[3];for(;null!==_&&(1===f&&1===m[5]||-1===f&&0===m[5]);)_[5]+=f,m=_,_=_[3]}const ce={lFrame:Up(null),bindingsEnabled:!0};function bi(){return ce.bindingsEnabled}function be(){return ce.lFrame.lView}function rt(){return ce.lFrame.tView}function xn(h){return ce.lFrame.contextLView=h,h[8]}function qi(h){return ce.lFrame.contextLView=null,h}function $t(){let h=ha();for(;null!==h&&64===h.type;)h=h.parent;return h}function ha(){return ce.lFrame.currentTNode}function Fi(h,f){const m=ce.lFrame;m.currentTNode=h,m.isParent=f}function Od(){return ce.lFrame.isParent}function Ld(){ce.lFrame.isParent=!1}function ji(){const h=ce.lFrame;let f=h.bindingRootIndex;return-1===f&&(f=h.bindingRootIndex=h.tView.bindingStartIndex),f}function pa(){return ce.lFrame.bindingIndex++}function Ln(h){const f=ce.lFrame,m=f.bindingIndex;return f.bindingIndex=f.bindingIndex+h,m}function kr(h,f){const m=ce.lFrame;m.bindingIndex=m.bindingRootIndex=h,Wl(f)}function Wl(h){ce.lFrame.currentDirectiveIndex=h}function Fd(h){const f=ce.lFrame.currentDirectiveIndex;return-1===f?null:h[f]}function jp(){return ce.lFrame.currentQueryIndex}function jd(h){ce.lFrame.currentQueryIndex=h}function Lb(h){const f=h[1];return 2===f.type?f.declTNode:1===f.type?h[6]:null}function Np(h,f,m){if(m&Ye.SkipSelf){let C=f,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Lb(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;f=C,h=w}const _=ce.lFrame=zp();return _.currentTNode=f,_.lView=h,!0}function Nd(h){const f=zp(),m=h[1];ce.lFrame=f,f.currentTNode=m.firstChild,f.lView=h,f.tView=m,f.contextLView=h,f.bindingIndex=m.bindingStartIndex,f.inI18n=!1}function zp(){const h=ce.lFrame,f=null===h?null:h.child;return null===f?Up(h):f}function Up(h){const f={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=f),f}function Gp(){const h=ce.lFrame;return ce.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const qp=Gp;function zd(){const h=Gp();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Hi(){return ce.lFrame.selectedIndex}function Fn(h){ce.lFrame.selectedIndex=h}function Nt(){const h=ce.lFrame;return eo(h.tView,h.selectedIndex)}function jn(){ce.lFrame.currentNamespace="svg"}function Ud(){!function $p(){ce.lFrame.currentNamespace=null}()}function hs(h,f){for(let m=f.directiveStart,_=f.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),E&&((h.contentHooks||(h.contentHooks=[])).push(m,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,E)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),P&&((h.viewHooks||(h.viewHooks=[])).push(m,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function $l(h,f,m){Ql(h,f,3,m)}function fa(h,f,m,_){(3&h[2])===m&&Ql(h,f,m,_)}function Yl(h,f){let m=h[2];(3&m)===f&&(m&=2047,m+=1,h[2]=m)}function Ql(h,f,m,_){const w=_??-1,v=f.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else f[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===f){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class ga{constructor(f,m,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function gs(h,f,m){let _=0;for(;_f){v=w-1;break}}}for(;w>16}(h),_=f;for(;m>0;)_=_[15],m--;return _}let Xp=!0;function Wd(h){const f=Xp;return Xp=h,f}let qb=0;const zn={};function ba(h,f){const m=Zl(h,f);if(-1!==m)return m;const _=f[1];_.firstCreatePass&&(h.injectorIndex=f.length,Wi(_.data,h),Wi(f,null),Wi(_.blueprint,null));const C=ms(h,f),w=h.injectorIndex;if(Kp(C)){const v=no(C),E=_a(C,f),S=E[1].data;for(let P=0;P<8;P++)f[w+P]=E[v+P]|S[v+P]}return f[w+8]=C,w}function Wi(h,f){h.push(0,0,0,0,0,0,0,0,f)}function Zl(h,f){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===f[h.injectorIndex+8]?-1:h.injectorIndex}function ms(h,f){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=f;for(;null!==C;){if(_=rf(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function Xl(h,f,m){!function Wb(h,f,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Tt)&&(_=m[Tt]),null==_&&(_=m[Tt]=qb++);const C=255&_;f.data[h+(C>>5)]|=1<=0?255&f:Qb:f}(m);if("function"==typeof w){if(!Np(f,h,_))return _&Ye.Host?$d(C,0,_):_s(f,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;_e()}finally{qp()}}else if("number"==typeof w){let v=null,E=Zl(h,f),S=-1,P=_&Ye.Host?f[16][6]:null;for((-1===E||_&Ye.SkipSelf)&&(S=-1===E?ms(h,f):f[E+8],-1!==S&&ao(_,!1)?(v=f[1],E=no(S),f=_a(S,f)):E=-1);-1!==E;){const R=f[1];if(ro(w,E,R.data)){const L=ec(E,f,m,v,_,P);if(L!==zn)return L}S=f[E+8],-1!==S&&ao(_,f[1].data[E+8]===P)&&ro(w,E,f)?(v=R,E=no(S),f=_a(S,f)):E=-1}}return C}function ec(h,f,m,_,C,w){const v=f[1],E=v.data[h+8],R=Br(E,v,m,null==_?Bn(E)&&Xp:_!=v&&0!=(3&E.type),C&Ye.Host&&w===E);return null!==R?bs(f,v,R,E):zn}function Br(h,f,m,_,C){const w=h.providerIndexes,v=f.data,E=1048575&w,S=h.directiveStart,R=w>>20,J=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Di(re)&&re.type===m)return S}return null}function bs(h,f,m,_){let C=h[m];const w=f.data;if(function Nb(h){return h instanceof ga}(C)){const v=C;v.resolving&&function Be(h,f){const m=f?`. Dependency path: ${f.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const E=Wd(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ti(v.injectImpl):null;Np(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),f.firstCreatePass&&m>=_.directiveStart&&function Vr(h,f,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=f.type.prototype;if(_){const v=os(f);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],f)}finally{null!==S&&Ti(S),Wd(E),v.resolving=!1,qp()}}return C}function ro(h,f,m){return!!(m[f+(h>>5)]&1<{const f=h.prototype.constructor,m=f[tt]||Yd(f),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||Yd(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function Yd(h){return ne(h)?()=>{const f=Yd(te(h));return f&&f()}:lr(h)}function rf(h){const f=h[1],m=f.type;return 2===m?f.declTNode:1===m?h[6]:null}function af(h){return function $b(h,f){if("class"===f)return h.classes;if("style"===f)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(Jp(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===f)return m[C+1];C+=2}}}return null}($t(),h)}const Or="__parameters__";function lo(h,f,m){return wn(()=>{const _=function Qd(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(f);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,P,R){const L=S.hasOwnProperty(Or)?S[Or]:Object.defineProperty(S,Or,{value:[]})[Or];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Ht{constructor(f,m){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=xt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function $i(h,f){void 0===f&&(f=h);for(let m=0;mArray.isArray(m)?Un(m,f):f(m))}function ys(h,f,m){f>=h.length?h.push(m):h.splice(f,0,m)}function ya(h,f){return f>=h.length-1?h.pop():h.splice(f,1)[0]}function uo(h,f){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function Xb(h,f,m,_){let C=h.length;if(C==f)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>f;)h[C]=h[C-2],C--;h[f]=m,h[f+1]=_}}(h,_,f,m)),_}function po(h,f){const m=fo(h,f);if(m>=0)return h[1|m]}function fo(h,f){return function uf(h,f,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<f?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return dc}()?.createHTML(h)||h}class Lr{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class wC extends Lr{getTypeName(){return"HTML"}}class lu extends Lr{getTypeName(){return"Style"}}class vC extends Lr{getTypeName(){return"Script"}}class AC extends Lr{getTypeName(){return"URL"}}class xC extends Lr{getTypeName(){return"ResourceURL"}}function Fr(h){return h instanceof Lr?h.changingThisBreaksApplicationSecurity:h}function Co(h,f){const m=function Ms(h){return h instanceof Lr&&h.getTypeName()||null}(h);if(null!=m&&m!==f){if("ResourceURL"===m&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===f}function cu(h){return new wC(h)}function hi(h){return new lu(h)}function fx(h){return new vC(h)}function yo(h){return new AC(h)}function vf(h){return new xC(h)}class Ds{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const m=(new window.DOMParser).parseFromString(bo(f),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(f):(m.removeChild(m.firstChild),m)}catch{return null}}}class TC{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(f){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=bo(f),m;const _=this.inertDocument.createElement("body");return _.innerHTML=bo(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const m=f.attributes;for(let C=m.length-1;0hc(f.trim())).join(", ")),this.buf.push(" ",v,'="',DC(S),'"')}var h;return this.buf.push(">"),!0}endElement(f){const m=f.nodeName.toLowerCase();xf.hasOwnProperty(m)&&!fc.hasOwnProperty(m)&&(this.buf.push(""))}chars(f){this.buf.push(DC(f))}checkClobberedElement(f,m){if(m&&(f.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return m}}const Ef=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bx=/([^\#-~ |!])/g;function DC(h){return h.replace(/&/g,"&").replace(Ef,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(bx,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let _c;function Sf(h,f){let m=null;try{_c=_c||function du(h){const f=new TC(h);return function Gn(){try{return!!(new window.DOMParser).parseFromString(bo(""),"text/html")}catch{return!1}}()?new Ds(f):f}(h);let _=f?String(f):"";m=_c.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=_c.getInertBodyElement(_)}while(_!==w);return bo((new Tf).sanitizeChildren(hu(m)||m))}finally{if(m){const _=hu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function hu(h){return"content"in h&&function Mf(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var ni=(()=>((ni=ni||{})[ni.NONE=0]="NONE",ni[ni.HTML=1]="HTML",ni[ni.STYLE=2]="STYLE",ni[ni.SCRIPT=3]="SCRIPT",ni[ni.URL=4]="URL",ni[ni.RESOURCE_URL=5]="RESOURCE_URL",ni))();function Df(h){const f=function bc(){const h=be();return h&&h[12]}();return f?f.sanitize(ni.URL,h)||"":Co(h,"URL")?Fr(h):hc(he(h))}const Hf=new Ht("ENVIRONMENT_INITIALIZER"),IC=new Ht("INJECTOR",-1),Pf=new Ht("INJECTOR_DEF_TYPES");class kC{get(f,m=go){if(m===go){const _=new Error(`NullInjectorError: No provider for ${Q(f)}!`);throw _.name="NullInjectorError",_}return m}}function Ax(...h){return{\u0275providers:VC(0,h)}}function VC(h,...f){const m=[],_=new Set;let C;return Un(f,w=>{const v=w;Cc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&BC(C,m),m}function BC(h,f){for(let m=0;m{f.push(w)})}}function Cc(h,f,m,_){if(!(h=te(h)))return!1;let C=null,w=Wa(h);const v=!w&&At(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=Wa(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const P of S)Cc(P,f,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let P;_.add(C);try{Un(w.imports,R=>{Cc(R,f,m,_)&&(P||(P=[]),P.push(R))})}finally{}void 0!==P&&BC(P,f)}if(!E){const P=lr(C)||(()=>new C);f.push({provide:C,useFactory:P,deps:ze},{provide:Pf,useValue:C,multi:!0},{provide:Hf,useValue:()=>Jt(C),multi:!0})}const S=w.providers;null==S||E||Un(S,R=>{f.push(R)})}}return C!==h&&void 0!==h.providers}const xx=j({provide:String,useValue:j});function Rf(h){return null!==h&&"object"==typeof h&&xx in h}function vo(h){return"function"==typeof h}const If=new Ht("Set Injector scope."),fu={},Ex={};let kf;function gu(){return void 0===kf&&(kf=new kC),kf}class Ao{}class FC extends Ao{constructor(f,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bf(f,v=>this.processProvider(v)),this.records.set(IC,Hs(void 0,this)),C.has("environment")&&this.records.set(Ao,Hs(void 0,this));const w=this.records.get(If);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Pf.multi,ze,Ye.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const f of this._ngOnDestroyHooks)f.ngOnDestroy();for(const f of this._onDestroyHooks)f()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(f){this._onDestroyHooks.push(f)}runInContext(f){this.assertNotDestroyed();const m=mo(this),_=Ti(void 0);try{return f()}finally{mo(m),Ti(_)}}get(f,m=go,_=Ye.Default){this.assertNotDestroyed();const C=mo(this),w=Ti(void 0);try{if(!(_&Ye.SkipSelf)){let E=this.records.get(f);if(void 0===E){const S=function Px(h){return"function"==typeof h||"object"==typeof h&&h instanceof Ht}(f)&&Mr(f);E=S&&this.injectableDefInScope(S)?Hs(Vf(f),fu):null,this.records.set(f,E)}if(null!=E)return this.hydrate(f,E)}return(_&Ye.Self?gu():this.parent).get(f,m=_&Ye.Optional&&m===go?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[rc]=v[rc]||[]).unshift(Q(f)),C)throw v;return function cC(h,f,m,_){const C=h[rc];throw f[pf]&&C.unshift(f[pf]),h.message=function iu(h,f,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(f);if(Array.isArray(f))C=f.map(Q).join(" -> ");else if("object"==typeof f){let w=[];for(let v in f)if(f.hasOwnProperty(v)){let E=f[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(oC,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[rc]=null,h}(v,f,"R3InjectorError",this.source)}throw v}finally{Ti(w),mo(C)}}resolveInjectorInitializers(){const f=mo(this),m=Ti(void 0);try{const _=this.get(Hf.multi,ze,Ye.Self);for(const C of _)C()}finally{mo(f),Ti(m)}}toString(){const f=[],m=this.records;for(const _ of m.keys())f.push(Q(_));return`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(f){let m=vo(f=te(f))?f:te(f&&f.provide);const _=function Mx(h){return Rf(h)?Hs(void 0,h.useValue):Hs(jC(h),fu)}(f);if(vo(f)||!0!==f.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Hs(void 0,fu,!0),C.factory=()=>tu(C.multi),this.records.set(m,C)),m=f,C.multi.push(f)}this.records.set(m,_)}hydrate(f,m){return m.value===fu&&(m.value=Ex,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Hx(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(f){if(!f.providedIn)return!1;const m=te(f.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function Vf(h){const f=Mr(h),m=null!==f?f.factory:lr(h);if(null!==m)return m;if(h instanceof Ht)throw new ie(204,!1);if(h instanceof Function)return function Sx(h){const f=h.length;if(f>0)throw uo(f,"?"),new ie(204,!1);const m=function qa(h){const f=h&&(h[In]||h[ta]);if(f){const m=function Md(h){if(h.hasOwnProperty("name"))return h.name;const f=(""+h).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),f}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function jC(h,f,m){let _;if(vo(h)){const C=te(h);return lr(C)||Vf(C)}if(Rf(h))_=()=>te(h.useValue);else if(function LC(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...tu(h.deps||[]));else if(function OC(h){return!(!h||!h.useExisting)}(h))_=()=>Jt(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function Dx(h){return!!h.deps}(h))return lr(C)||Vf(C);_=()=>new C(...tu(h.deps))}return _}function Hs(h,f,m=!1){return{factory:h,value:f,multi:m?[]:void 0}}function Rx(h){return!!h.\u0275providers}function Bf(h,f){for(const m of h)Array.isArray(m)?Bf(m,f):Rx(m)?Bf(m.\u0275providers,f):f(m)}class Of{}class kx{resolveComponentFactory(f){throw function Ix(h){const f=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=h,f}(f)}}let yc=(()=>{class h{}return h.NULL=new kx,h})();function Vx(){return Ps($t(),be())}function Ps(h,f){return new wc(wi(h,f))}let wc=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=Vx,h})();function Bx(h){return h instanceof wc?h.nativeElement:h}class UC{}let Ox=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Lx(){const h=be(),m=Li($t().index,h);return(St(m)?m:h)[11]}(),h})(),Fx=(()=>{class h{}return h.\u0275prov=xt({token:h,providedIn:"root",factory:()=>null}),h})();class GC{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const jx=new GC("14.1.2"),Lf={};function Uf(h){return h.ngOriginalError}class vc{constructor(){this._console=console}handleError(f){const m=this._findOriginalError(f);this._console.error("ERROR",f),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(f){let m=f&&Uf(f);for(;m&&Uf(m);)m=Uf(m);return m||null}}const Gf=new Map;let Zx=0;const xc="__ngContext__";function Pi(h,f){St(f)?(h[xc]=f[20],function eT(h){Gf.set(h[20],h)}(f)):h[xc]=f}function Rs(h){const f=h[xc];return"number"==typeof f?function JC(h){return Gf.get(h)||null}(f):f||null}function mu(h){const f=Rs(h);return f?St(f)?f:f.lView:null}const ZC=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(le))();function Yi(h){return h instanceof Function?h():h}var En=(()=>((En=En||{})[En.Important=1]="Important",En[En.DashCase=2]="DashCase",En))();function $f(h,f){return undefined(h,f)}function Tc(h){const f=h[3];return tn(f)?f[3]:f}function Qf(h){return Kf(h[13])}function Jf(h){return Kf(h[4])}function Kf(h){for(;null!==h&&!tn(h);)h=h[4];return h}function Ta(h,f,m,_,C){if(null!=_){let w,v=!1;tn(_)?w=_:St(_)&&(v=!0,_=_[0]);const E=Qt(_);0===h&&null!==m?null==C?fy(f,m,E):xo(f,m,E,C||null,!0):1===h&&null!==m?xo(f,m,E,C||null,!0):2===h?function rg(h,f,m){const _=To(h,f);_&&function sT(h,f,m,_){h.removeChild(f,m,_)}(h,_,f,m)}(f,E,v):3===h&&f.destroyNode(E),null!=w&&function ag(h,f,m,_,C){const w=m[7];w!==Qt(m)&&Ta(f,h,_,w,C);for(let E=10;E0&&(h[m-1][4]=_[4]);const w=ya(h,10+f);!function oy(h,f){dn(h,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function eg(h,f){if(!(128&f[2])){const m=f[11];m.destroyNode&&dn(h,f,m,3,null,null),function cy(h){let f=h[13];if(!f)return vu(h[1],h);for(;f;){let m=null;if(St(f))m=f[13];else{const _=f[10];_&&(m=_)}if(!m){for(;f&&!f[4]&&f!==h;)St(f)&&vu(f[1],f),f=f[3];null===f&&(f=h),St(f)&&vu(f[1],f),m=f&&f[4]}f=m}}(f)}}function vu(h,f){if(!(128&f[2])){f[2]&=-65,f[2]|=128,function Au(h,f){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();f[7]=null}}(h,f),1===f[1].type&&f[11].destroy();const m=f[17];if(null!==m&&tn(f[3])){m!==f[3]&&yu(m,f);const _=f[19];null!==_&&_.detachView(h)}!function tT(h){Gf.delete(h[20])}(f)}}function hy(h,f,m){return function py(h,f,m){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return wi(_,m)}(h,f.parent,m)}function xo(h,f,m,_,C){h.insertBefore(f,m,_,C)}function fy(h,f,m){h.appendChild(f,m)}function gy(h,f,m,_,C){null!==_?xo(h,f,m,_,C):fy(h,f,m)}function To(h,f){return h.parentNode(f)}function ig(h,f,m){return Ea(h,f,m)}let Ea=function xu(h,f,m){return 40&h.type?wi(h,m):null};function Ec(h,f,m,_){const C=hy(h,_,f),w=f[11],E=ig(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?J:null;if(re&&-1!==og(re,P,0)||2&_&&P!==J){if(un(_))return!1;v=!0}}}}else{if(!v&&!un(_)&&!un(S))return!1;if(v&&un(S))continue;v=!1,_=S|1&_}}return un(_)||v}function un(h){return 0==(1&h)}function uT(h,f,m,_){if(null===f)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!un(v)&&(f+=cg(w,C),C=""),_=v,w=w||!un(_);m++}return""!==C&&(f+=cg(w,C)),f}const Ae={};function xy(h){Ty(rt(),be(),Hi()+h,!1)}function Ty(h,f,m,_){if(!_)if(3==(3&f[2])){const w=h.preOrderCheckHooks;null!==w&&$l(f,w,m)}else{const w=h.preOrderHooks;null!==w&&fa(f,w,0,m)}Fn(m)}function hn(h,f=null,m=null,_){const C=Os(h,f,m,_);return C.resolveInjectorInitializers(),C}function Os(h,f=null,m=null,_,C=new Set){const w=[m||ze,Ax(h)];return _=_||("object"==typeof h?void 0:Q(h)),new FC(w,f||gu(),_||null,C)}let Ma=(()=>{class h{static create(m,_){if(Array.isArray(m))return hn({name:""},_,m,"");{const C=m.name??"";return hn({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=go,h.NULL=new kC,h.\u0275prov=xt({token:h,providedIn:"any",factory:()=>Jt(IC)}),h.__NG_ELEMENT_ID__=-1,h})();function Ls(h,f=Ye.Default){const m=be();return null===m?Jt(h,f):ef($t(),m,te(h),f)}function ky(){throw new Error("invalid")}function Vu(h,f){return h<<17|f<<2}function Wn(h){return h>>17&32767}function Bu(h){return 2|h}function Ur(h){return(131068&h)>>2}function Ou(h,f){return-131069&h|f<<2}function Lu(h){return 1|h}function Mg(h,f){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Ty(h,f,22,!1),m(_,C)}finally{Fn(w)}}function qy(h,f,m){if(sa(f)){const C=f.directiveEnd;for(let w=f.directiveStart;w0;){const m=h[--f];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function gr(h,f){null!==h.hostBindings&&h.hostBindings(1,f)}function mr(h,f){f.flags|=2,(h.components||(h.components=[])).push(f.index)}function Jy(h,f,m){if(m){if(f.exportAs)for(let _=0;_0&&Og(m)}}function Og(h){for(let _=Qf(h);null!==_;_=Jf(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];Bc(v,w,v.template,w[8])}else w[5]>0&&Og(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Og(C)}}function Lg(h,f){const m=Li(f,h),_=m[1];(function nw(h,f){for(let m=f.length;mPromise.resolve(null))();function eh(h){return h[7]||(h[7]=[])}function jg(h){return h.cleanup||(h.cleanup=[])}function Ng(h,f,m){return(null===h||Di(h))&&(m=function ds(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[f.index])),m[11]}function zg(h,f){const m=h[9],_=m?m.get(vc,null):null;_&&_.handleError(f)}function mn(h,f,m,_,C){for(let w=0;w-1&&(wu(f,_),ya(m,_))}this._attachedToViewContainer=!1}eg(this._lView[1],this._lView)}onDestroy(f){Wy(this._lView[1],this._lView,null,f)}markForCheck(){Po(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Xu(h,f,m){const _=f[10];_.begin&&_.begin();try{Bc(h,f,h.template,m)}catch(C){throw zg(f,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ly(h,f){dn(h,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=f}}class aw extends zc{constructor(f){super(f),this._view=f}detectChanges(){Fg(this._view)}checkNoChanges(){}get context(){return null}}class ih extends yc{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const m=At(f);return new Gs(m,this.ngModule)}}function Pa(h){const f=[];for(let m in h)h.hasOwnProperty(m)&&f.push({propName:h[m],templateName:m});return f}class Ug{constructor(f,m){this.injector=f,this.parentInjector=m}get(f,m,_){const C=this.injector.get(f,Lf,_);return C!==Lf||m===Lf?C:this.parentInjector.get(f,m,_)}}class Gs extends Of{constructor(f,m){super(),this.componentDef=f,this.ngModule=m,this.componentType=f.type,this.selector=function vy(h){return h.map(wy).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return Pa(this.componentDef.inputs)}get outputs(){return Pa(this.componentDef.outputs)}create(f,m,_,C){let w=(C=C||this.ngModule)instanceof Ao?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new Ug(f,w):f,E=v.get(UC,null);if(null===E)throw new ie(407,!1);const S=v.get(Fx,null),P=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function RT(h,f,m){return h.selectRootElement(f,m===q.ShadowDom)}(P,_,this.componentDef.encapsulation):Cu(E.createRenderer(null,this.componentDef),R,function jT(h){const f=h.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(R)),J=this.componentDef.onPush?288:272,re=function ht(h,f){return{components:[],scheduler:h||ZC,clean:FT,playerHandler:f||null,flags:0}}(),me=qr(0,null,null,1,0,null,null,null,null,null),xe=Vc(null,me,re,J,null,null,E,P,S,v,null);let Re,Fe;Nd(xe);try{const Ke=function Gg(h,f,m,_,C,w){const v=m[1];m[22]=h;const S=$n(v,22,2,"#host",null),P=S.mergedAttrs=f.hostAttrs;null!==P&&(Nc(S,P,!0),null!==h&&(gs(C,h,P),null!==S.classes&&So(C,h,S.classes),null!==S.styles&&Du(C,h,S.styles)));const R=_.createRenderer(h,f),L=Vc(m,Yn(f),null,f.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(Xl(ba(S,m),v,f.type),mr(v,S),Ky(S,m.length,1)),Fc(m,L),m[22]=L}(L,this.componentDef,xe,E,P);if(L)if(_)gs(P,L,["ng-version",jx.full]);else{const{attrs:ye,classes:We}=function Ay(h){const f=[],m=[];let _=1,C=2;for(;_0&&So(P,L,We.join(" "))}if(Fe=eo(me,22),void 0!==m){const ye=Fe.projection=[];for(let We=0;We=0;_--){const C=h[_];C.hostVars=f+=C.hostVars,C.hostAttrs=ma(C.hostAttrs,m=ma(m,C.hostAttrs))}}(_)}function ko(h){return h===st?{}:h===ze?[]:h}function zT(h,f){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{f(_,C),m(_,C)}:f}function qg(h,f){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{f(_,C,w),m(_,C,w)}:f}function qs(h,f){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{f(_,C),m(_,C)}:f}let Uc=null;function Ia(){if(!Uc){const h=le.Symbol;if(h&&h.iterator)Uc=h.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(Qt(ft[_.index])):_.index;let We=null;if(!E&&S&&(We=function am(h,f,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,f,C,_.index)),null!==We)(We.__ngLastListenerFn__||We).__ngNextListenerFn__=w,We.__ngLastListenerFn__=w,re=!1;else{w=vw(_,f,L,w,!1);const ft=m.listen(Fe,C,w);J.push(w,ft),R&&R.push(C,ye,Ke,Ke+1)}}else w=vw(_,f,L,w,!1);const me=_.outputs;let xe;if(re&&null!==me&&(xe=me[C])){const Re=xe.length;if(Re)for(let Fe=0;Fe0;)f=f[15],h--;return f}(h,ce.lFrame.contextLView))[8]}(h)}function xw(h,f){let m=null;const _=function hT(h){const f=h.attrs;if(null!=f){const m=f.indexOf(5);if(0==(1&m))return f[m+1]}return null}(h);for(let C=0;C=0}function pm(h,f,m){return Jn(h,f,m,!1),pm}function fm(h,f){return Jn(h,f,null,!0),fm}function Jn(h,f,m,_){const C=be(),w=rt(),v=Ln(2);w.firstUpdatePass&&function jw(h,f,m,_){const C=h.data;if(null===C[m+1]){const w=C[Hi()],v=function Fw(h,f){return f>=h.expandoStartIndex}(h,m);(function Gw(h,f){return 0!=(h.flags&(f?16:32))})(w,_)&&null===f&&!v&&(f=!1),f=function ZT(h,f,m,_){const C=Fd(h);let w=_?f.residualClasses:f.residualStyles;if(null===C)0===(_?f.classBindings:f.styleBindings)&&(m=$c(m=gm(null,h,f,m,_),f.attrs,_),w=null);else{const v=f.directiveStylingLast;if(-1===v||h[v]!==C)if(m=gm(C,h,f,m,_),null===w){let S=function Wc(h,f,m){const _=m?f.classBindings:f.styleBindings;if(0!==Ur(_))return h[Wn(_)]}(h,f,_);void 0!==S&&Array.isArray(S)&&(S=gm(null,h,f,S[1],_),S=$c(S,f.attrs,_),function XT(h,f,m,_){h[Wn(m?f.classBindings:f.styleBindings)]=_}(h,f,_,S))}else w=function eE(h,f,m){let _;const C=f.directiveEnd;for(let w=1+f.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Wn(h[E+1]);h[_+1]=Vu(J,E),0!==J&&(h[J+1]=Ou(h[J+1],_)),h[E+1]=function By(h,f){return 131071&h|f<<17}(h[E+1],_)}else h[_+1]=Vu(E,0),0!==E&&(h[E+1]=Ou(h[E+1],_)),E=_;else h[_+1]=Vu(S,0),0===E?E=_:h[S+1]=Ou(h[S+1],_),S=_;P&&(h[_+1]=Bu(h[_+1])),Rw(h,R,_,!0),Rw(h,R,_,!1),function $T(h,f,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof f&&fo(w,f)>=0&&(m[_+1]=Lu(m[_+1]))}(f,R,h,_,w),v=Vu(E,S),w?f.classBindings=v:f.styleBindings=v}(C,w,f,m,v,_)}}(w,h,v,_),f!==Ae&&Ri(C,v,f)&&function zw(h,f,m,_,C,w,v,E){if(!(3&f.type))return;const S=h.data,P=S[E+1];fh(function Cg(h){return 1==(1&h)}(P)?Uw(S,f,m,C,Ur(P),v):void 0)||(fh(w)||function Rc(h){return 2==(2&h)}(P)&&(w=Uw(S,null,m,C,E,v)),function Mu(h,f,m,_,C){if(f)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:En.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=En.Important),h.setStyle(m,_,C,w))}}(_,v,Rr(Hi(),m),C,w))}(w,w.data[Hi()],C,C[11],h,C[v+1]=function iE(h,f){return null==h||("string"==typeof f?h+=f:"object"==typeof h&&(h=Q(Fr(h)))),h}(f,m),_,v)}function gm(h,f,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,L=null===R;let J=m[C+1];J===Ae&&(J=L?ze:void 0);let re=L?po(J,_):R===_?J:void 0;if(P&&!fh(re)&&(re=po(S,_)),fh(re)&&(E=re,v))return E;const me=h[C+1];C=v?Wn(me):Ur(me)}if(null!==f){let S=w?f.residualClasses:f.residualStyles;null!=S&&(E=po(S,_))}return E}function fh(h){return void 0!==h}function qw(h,f=""){const m=be(),_=rt(),C=h+22,w=_.firstCreatePass?$n(_,C,1,f,null):_.data[C],v=m[C]=function Zf(h,f){return h.createText(f)}(m[11],f);Ec(_,m,v,w),Fi(w,!1)}function _m(h){return gh("",h,""),_m}function gh(h,f,m){const _=be(),C=Vo(_,h,f,m);return C!==Ae&&Wr(_,Hi(),C),gh}function bm(h,f,m,_,C,w,v){const E=be(),S=Bo(E,h,f,m,_,C,w,v);return S!==Ae&&Wr(E,Hi(),S),bm}function Ch(h,f,m){const _=be();return Ri(_,pa(),f)&&Qi(rt(),Nt(),_,h,f,_[11],m,!0),Ch}function yh(h,f,m){const _=be();if(Ri(_,pa(),f)){const w=rt(),v=Nt();Qi(w,v,_,h,f,Ng(Fd(w.data),v,_),m,!0)}return yh}const Va=void 0;var nv=["en",[["a","p"],["AM","PM"],Va],[["AM","PM"],Va,Va],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Va,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Va,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Va,"{1} 'at' {0}",Va],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mm(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let Lo={};function Sn(h){const f=function Pm(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=Hm(f);if(m)return m;const _=f.split("-")[0];if(m=Hm(_),m)return m;if("en"===_)return nv;throw new ie(701,!1)}function Dm(h){return Sn(h)[qe.PluralCase]}function Hm(h){return h in Lo||(Lo[h]=le.ng&&le.ng.common&&le.ng.common.locales&&le.ng.common.locales[h]),Lo[h]}var qe=(()=>((qe=qe||{})[qe.LocaleId=0]="LocaleId",qe[qe.DayPeriodsFormat=1]="DayPeriodsFormat",qe[qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",qe[qe.DaysFormat=3]="DaysFormat",qe[qe.DaysStandalone=4]="DaysStandalone",qe[qe.MonthsFormat=5]="MonthsFormat",qe[qe.MonthsStandalone=6]="MonthsStandalone",qe[qe.Eras=7]="Eras",qe[qe.FirstDayOfWeek=8]="FirstDayOfWeek",qe[qe.WeekendRange=9]="WeekendRange",qe[qe.DateFormat=10]="DateFormat",qe[qe.TimeFormat=11]="TimeFormat",qe[qe.DateTimeFormat=12]="DateTimeFormat",qe[qe.NumberSymbols=13]="NumberSymbols",qe[qe.NumberFormats=14]="NumberFormats",qe[qe.CurrencyCode=15]="CurrencyCode",qe[qe.CurrencySymbol=16]="CurrencySymbol",qe[qe.CurrencyName=17]="CurrencyName",qe[qe.Currencies=18]="Currencies",qe[qe.Directionality=19]="Directionality",qe[qe.PluralCase=20]="PluralCase",qe[qe.ExtraData=21]="ExtraData",qe))();const vr="en-US";let ol=vr;function qm(h,f,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(vo(h)||!h.multi){const re=new ga(S,C,Ls),me=$m(E,f,C?R:R+J,L);-1===me?(Xl(ba(P,v),w,E),Wm(w,h,f.length),f.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=$m(E,f,R+J,L),me=$m(E,f,R,R+J),xe=re>=0&&m[re],Re=me>=0&&m[me];if(C&&!Re||!C&&!xe){Xl(ba(P,v),w,E);const Fe=function HE(h,f,m,_,C){const w=new ga(h,m,Ls);return w.multi=[],w.index=f,w.componentProviders=0,Hv(w,C,_&&!m),w}(C?DE:ME,m.length,C,_,S);!C&&Re&&(m[me].providerFactory=Fe),Wm(w,h,f.length,0),f.push(E),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Fe),v.push(Fe)}else Wm(w,h,re>-1?re:me,Hv(m[C?me:re],S,!C&&_));!C&&_&&Re&&m[me].componentProviders++}}}function Wm(h,f,m,_){const C=vo(f),w=function Tx(h){return!!h.useClass}(f);if(C||w){const S=(w?te(f.useClass):f).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&f.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function Hv(h,f,m){return m&&h.componentProviders++,h.multi.push(f)-1}function $m(h,f,m,_){for(let C=m;C<_;C++)if(f[C]===h)return C;return-1}function ME(h,f,m,_){return Sh(this.multi,[])}function DE(h,f,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=bs(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),Sh(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Eh(h,f,m){const _=rt();if(_.firstCreatePass){const C=Di(h);qm(m,_.data,_.blueprint,C,!0),qm(f,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,f)}}class gl{}class Rv{}function PE(h,f){return new Iv(h,f??null)}class Iv extends gl{constructor(f,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ih(this);const _=Ui(f);this._bootstrapComponents=Yi(_.bootstrap),this._r3Injector=Os(f,m,[{provide:gl,useValue:this},{provide:yc,useValue:this.componentFactoryResolver}],Q(f),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(f)}get injector(){return this._r3Injector}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Ym extends Rv{constructor(f){super(),this.moduleType=f}create(f){return new Iv(this.moduleType,f)}}class RE extends gl{constructor(f,m,_){super(),this.componentFactoryResolver=new ih(this),this.instance=null;const C=new FC([...f,{provide:gl,useValue:this},{provide:yc,useValue:this.componentFactoryResolver}],m||gu(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(f){this.injector.onDestroy(f)}}function ad(h,f,m=null){return new RE(h,f,m).injector}function Km(h,f,m,_){return e_(be(),ji(),h,f,m,_)}function e_(h,f,m,_,C,w){const v=f+m;return Ri(h,v,C)?function Qn(h,f,m){return h[f]=m}(h,v+1,w?_.call(w,C):_(C)):function bl(h,f){const m=h[f];return m===Ae?void 0:m}(h,v+1)}function Kv(h,f){const m=rt();let _;const C=h+22;m.firstCreatePass?(_=function FE(h,f){if(f)for(let m=f.length-1;m>=0;m--){const _=f[m];if(h===_.name)return _}}(f,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=lr(_.type)),v=Ti(Ls);try{const E=Wd(!1),S=w();return Wd(E),function lh(h,f,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),f[m]=_}(m,be(),C,S),S}finally{Ti(v)}}function Zv(h,f,m){const _=h+22,C=be(),w=ua(C,_);return function od(h,f){return h[1].data[f].pure}(C,_)?e_(C,ji(),f,w.transform,m,w):w.transform(m)}function t_(h){return f=>{setTimeout(h,void 0,f)}}const xr=class GE extends T.x{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,m,_){let C=f,w=m||(()=>null),v=_;if(f&&"object"==typeof f){const S=f;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=t_(w),C&&(C=t_(C)),v&&(v=t_(v)));const E=super.subscribe({next:C,error:w,complete:v});return f instanceof g.w0&&f.add(E),E}};function qE(){return this._results[Ia()]()}class Dh{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Ia(),_=Dh.prototype;_[m]||(_[m]=qE)}get changes(){return this._changes||(this._changes=new xr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,m){return this._results.reduce(f,m)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,m){const _=this;_.dirty=!1;const C=$i(f);(this._changesDetected=!function tc(h,f,m){if(h.length!==f.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=YE,h})();const WE=sd,$E=class extends WE{constructor(f,m,_){super(),this._declarationLView=f,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(f,m){const _=this._declarationTContainer.tViews,C=Vc(this._declarationLView,_,f,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Yu(_,C,f),new zc(C)}};function YE(){return Hh($t(),be())}function Hh(h,f){return 4&h.type?new $E(f,h,Ps(h,f)):null}let Ph=(()=>{class h{}return h.__NG_ELEMENT_ID__=QE,h})();function QE(){return n_($t(),be())}const JE=Ph,Xv=class extends JE{constructor(f,m,_){super(),this._lContainer=f,this._hostTNode=m,this._hostLView=_}get element(){return Ps(this._hostTNode,this._hostLView)}get injector(){return new oo(this._hostTNode,this._hostLView)}get parentInjector(){const f=ms(this._hostTNode,this._hostLView);if(Kp(f)){const m=_a(f,this._hostLView),_=no(f);return new oo(m[1].data[_+8],m)}return new oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const m=i_(this._lContainer);return null!==m&&m[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=f.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(f,m,_,C,w){const v=f&&!function Cs(h){return"function"==typeof h}(f);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?f:new Gs(At(f)),P=_||this.parentInjector;if(!w&&null==S.ngModule){const J=(v?P:this.parentInjector).get(Ao,null);J&&(w=J)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,E),R}insert(f,m){const _=f._lView,C=_[1];if(function D(h){return tn(h[3])}(_)){const R=this.indexOf(f);if(-1!==R)this.detach(R);else{const L=_[3],J=new Xv(L,L[6],L[3]);J.detach(J.indexOf(f))}}const w=this._adjustIndex(m),v=this._lContainer;!function dy(h,f,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=f),_0)_.push(v[E/2]);else{const P=w[E+1],R=f[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=Al,this.reject=Al,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(Jt(Mn,8))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const _A=new Ht("AppId",{providedIn:"root",factory:function bA(){return`${Xh()}${Xh()}${Xh()}`}});function Xh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dd=new Ht("Platform Initializer"),ud=new Ht("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),T_=new Ht("appBootstrapListener"),yA=new Ht("AnimationModuleType");let sS=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const ep=new Ht("LocaleId",{providedIn:"root",factory:()=>eu(ep,Ye.Optional|Ye.SkipSelf)||function lS(){return typeof $localize<"u"&&$localize.locale||vr}()}),cS=new Ht("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class wA{constructor(f,m){this.ngModuleFactory=f,this.componentFactories=m}}let S_=(()=>{class h{compileModuleSync(m){return new Ym(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Yi(Ui(m).declarations).reduce((v,E)=>{const S=At(E);return S&&v.push(new Gs(S)),v},[]);return new wA(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const Tl=(()=>Promise.resolve(0))();function El(h){typeof Zone>"u"?Tl.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class zi{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function M_(){let h=le.requestAnimationFrame,f=le.cancelAnimationFrame;if(typeof Zone<"u"&&h&&f){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function P_(h){const f=()=>{!function H_(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(le,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,pd(h),h.isCheckStableRunning=!0,qo(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),pd(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return fd(h),m.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&f(),xA(h)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return fd(h),m.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&f(),xA(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,pd(h),qo(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zi.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(zi.isInAngularZone())throw new ie(909,!1)}run(f,m,_){return this._inner.run(f,m,_)}runTask(f,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,f,D_,Al,Al);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(f,m,_){return this._inner.runGuarded(f,m,_)}runOutsideAngular(f){return this._outer.run(f)}}const D_={};function qo(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function pd(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function fd(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function xA(h){h._nesting--,qo(h)}class uS{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(f,m,_){return f.apply(m,_)}runGuarded(f,m,_){return f.apply(m,_)}runOutsideAngular(f){return f()}runTask(f,m,_,C){return f.apply(m,_)}}const R_=new Ht(""),TA=new Ht("");let $o,gd=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,$o||(function md(h){$o=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zi.assertNotInAngularZone(),El(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())El(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(Jt(zi),Jt(Wo),Jt(TA))},h.\u0275prov=xt({token:h,factory:h.\u0275fac}),h})(),Wo=(()=>{class h{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return $o?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Jr=null;const _d=new Ht("AllowMultipleToken"),Yo=new Ht("PlatformDestroyListeners");class I_{constructor(f,m){this.name=f,this.token=m}}function PA(h,f,m=[]){const _=`Platform: ${f}`,C=new Ht(_);return(w=[])=>{let v=Sl();if(!v||v.injector.get(_d,!1)){const E=[...m,...w,{provide:C,useValue:!0}];h?h(E):function DA(h){if(Jr&&!Jr.get(_d,!1))throw new ie(400,!1);Jr=h;const f=h.get(B_);(function k_(h){const f=h.get(dd,null);f&&f.forEach(m=>m())})(h)}(function V_(h=[],f){return Ma.create({name:f,providers:[{provide:If,useValue:"platform"},{provide:Yo,useValue:new Set([()=>Jr=null])},...h]})}(E,_))}return function ip(h){const f=Sl();if(!f)throw new ie(401,!1);return f}()}}function Sl(){return Jr?.get(B_)??null}let B_=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function kA(h,f){let m;return m="noop"===h?new uS:("zone.js"===h?void 0:h)||new zi(f),m}(_?.ngZone,function IA(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:zi,useValue:C}];return C.run(()=>{const v=Ma.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(vc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const P=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Dl(this._modules,E),P.unsubscribe()})}),function Qo(h,f,m){try{const _=m();return im(_)?_.catch(C=>{throw f.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw f.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const P=E.injector.get(xl);return P.runInitializers(),P.donePromise.then(()=>(function vh(h){Dt(h,"Expected localeId to be defined"),"string"==typeof h&&(ol=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(ep,vr)||vr),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=Jo({},_);return function EA(h,f,m){const _=new Ym(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Ml);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(Yo,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(Jt(Ma))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Jo(h,f){return Array.isArray(f)?f.reduce(Jo,h):{...h,...f}}let Ml=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{zi.assertNotInAngularZone(),El(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const P=this._zone.onUnstable.subscribe(()=>{zi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),P.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Of;if(!this._injector.get(xl).done)throw!C&&zo(m),new ie(405,false);let v;v=C?m:this._injector.get(yc).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function MA(h){return h.isBoundToModule}(v)?void 0:this._injector.get(gl),P=v.create(Ma.NULL,[],_||v.selector,E),R=P.location.nativeElement,L=P.injector.get(R_,null);return L?.registerApplication(R),P.onDestroy(()=>{this.detachView(P.hostView),Dl(this.components,P),L?.unregisterApplication(R)}),this._loadComponent(P),P}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Dl(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(T_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Dl(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(Jt(zi),Jt(Ao),Jt(vc))},h.\u0275prov=xt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Dl(h,f){const m=h.indexOf(f);m>-1&&h.splice(m,1)}let O_=!0;function fS(){O_=!1}let F_=(()=>{class h{}return h.__NG_ELEMENT_ID__=VA,h})();function VA(h){return function j_(h,f,m){if(Bn(h)&&!m){const _=Li(h.index,f);return new zc(_,_)}return 47&h.type?new zc(f[16],f):null}($t(),be(),16==(16&h))}class sp{constructor(){}supports(f){return Ws(f)}create(f){return new q_(f)}}const jA=(h,f)=>f;class q_{constructor(f){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=f||jA}forEachItem(f){let m;for(m=this._itHead;null!==m;m=m._next)f(m)}forEachOperation(f){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex<$_(_,C,w)?m:_,E=$_(v,C,w),S=v.currentIndex;if(v===_)C--,_=_._nextRemoved;else if(m=m._next,null==v.previousIndex)C++;else{w||(w=[]);const P=E-C,R=S-C;if(P!=R){for(let J=0;J{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,m,_,C){let w;return null===f?w=this._itTail:(w=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._reinsertAfter(f,w,C)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._moveAfter(f,w,C)):f=this._addAfter(new NA(m,_),w,C),f}_verifyReinsertion(f,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?f=this._reinsertAfter(w,f._prev,C):f.currentIndex!=C&&(f.currentIndex=C,this._addToMoves(f,C)),f}_truncate(f){for(;null!==f;){const m=f._next;this._addToRemovals(this._unlink(f)),f=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(f,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const C=f._prevRemoved,w=f._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(f,m,_),this._addToMoves(f,_),f}_moveAfter(f,m,_){return this._unlink(f),this._insertAfter(f,m,_),this._addToMoves(f,_),f}_addAfter(f,m,_){return this._insertAfter(f,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,m,_){const C=null===m?this._itHead:m._next;return f._next=C,f._prev=m,null===C?this._itTail=f:C._prev=f,null===m?this._itHead=f:m._next=f,null===this._linkedRecords&&(this._linkedRecords=new W_),this._linkedRecords.put(f),f.currentIndex=_,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const m=f._prev,_=f._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,f}_addToMoves(f,m){return f.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W_),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,m){return f.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class NA{constructor(f,m){this.item=f,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class lp{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const m=f._prevDup,_=f._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class W_{constructor(){this.map=new Map}put(f){const m=f.trackById;let _=this.map.get(m);_||(_=new lp,this.map.set(m,_)),_.add(f)}get(f,m){const C=this.map.get(f);return C?C.get(f,m):null}remove(f){const m=f.trackById;return this.map.get(m).remove(f)&&this.map.delete(m),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $_(h,f,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,m){if(f){const _=f._prev;return m._next=f,m._prev=_,f._prev=m,_&&(_._next=m),f===this._mapHead&&(this._mapHead=m),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(f,m){if(this._records.has(f)){const C=this._records.get(f);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new wS(f);return this._records.set(f,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,m){Object.is(m,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=m,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,m){f instanceof Map?f.forEach(m):Object.keys(f).forEach(_=>m(f[_],_))}}class wS{constructor(f){this.key=f,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function yd(){return new dp([new sp])}let dp=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||yd()),deps:[[h,new xs,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:yd}),h})();function up(){return new Er([new cp])}let Er=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||up()),deps:[[h,new xs,new wa]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=xt({token:h,providedIn:"root",factory:up}),h})();const WA=PA(null,"core",[]);let $A=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(Jt(Ml))},h.\u0275mod=Pr({type:h}),h.\u0275inj=ai({}),h})();function hp(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),g=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(g.substr(0,g.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const g=T.indexOf("?");return T=T.substr(g>-1?g+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let g,V,O,I,j,W,Q;if(null===x)return T;g=x.split("&");for(let G=0;G>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==g)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var G=F[T]||0;W[T]=92^G,Q[T]=54^G}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,g=0,O=F.length,I=this.blocks;g>2]|=F[g]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,U,X,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((U=j[W-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+j[W-7]+(((U=j[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(X=300032,I=(U=j[0]-1413257819)-150054599<<0,T=U+24177077<<0):(X=704751109,I=(U=j[0]-210244248)-1521486534<<0,T=U+143694565<<0),this.first=!1):(I=T+(U=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&V^~g&O)+K[W]+j[W])<<0,T=U+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((X=F&N)^F&x^he))<<0),O=x+(U=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&V)+K[W+1]+j[W+1])<<0,x=U+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^X))<<0,V=N+(U=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&g)+K[W+2]+j[W+2])<<0,N=U+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,g=F+(U=g+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=U+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+g<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,g=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,g>>24&255,g>>16&255,g>>8&255,255&g,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let g of x)T+=String.fromCharCode(g);return T}toHashString(x){const T=new Uint8Array(x);let g="";for(let V of T)g+=String.fromCharCode(V);return g}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,g,V,O,I,j,W,Q,G){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{g?this.setStorage(g):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,g=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,g).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],g=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return g||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),g=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),g=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(g)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const g=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(g-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,g)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),g(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),g(V)}):g("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),T(g)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,g).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:g,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},g)}fetchTokenUsingGrant(x,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:g}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,g,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const g=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=g.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(G=>{O.setAttribute("src",G),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((g,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),g(!0)},ne=>{G(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(G(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(j),window.removeEventListener("storage",U),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",U),W(ne)):console.log("false event firing")},U=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",U)}))}calculatePopupFeatures(x){const T=x.height||470,g=x.width||500,V=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const g=x.data;return g.startsWith(T)?"#"+g.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",g,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",g="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=g||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const G=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let U=j.loginUrl+G+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),U+="&code_challenge="+te,U+="&code_challenge_method=S256"}T&&(U+="&login_hint="+encodeURIComponent(T)),j.resource&&(U+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(U+="&nonce="+encodeURIComponent(Q)),V&&(U+="&prompt=none");for(const te of Object.keys(O))U+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))U+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return U})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let g={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(g=T),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const g={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(g)}}storeAccessTokenResponse(x,T,g,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const g=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(g),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const G=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,G)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const G=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(G),Promise.reject(G)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?g=g.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:g}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const g=T.state;let[V,O]=this.parseState(g);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!g||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(G=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:g}).then($=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,g="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),g=x.substr(V+this.config.nonceStateSeparator.length))}return[T,g]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,g=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),G=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+G.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(G.aud!==this.clientId){const de="Wrong audience: "+G.aud;return this.logger.warn(de),Promise.reject(de)}if(!G.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!G.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const de="Wrong issuer: "+G.iss;return this.logger.warn(de),Promise.reject(de)}if(!g&&G.nonce!==$){const de="Wrong nonce: "+G.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const U=this.dateTimeService.now(),te=1e3*G.iat,ne=1e3*G.exp,X=this.getClockSkewInMsec();if(te-X>=U||ne+X<=U){const de="Token has expired";return console.error(de),console.error({now:U,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:G,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Be={idToken:x,idTokenClaims:G,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Be:this.checkAtHash(ie).then(Oe=>{if(this.requestAccessToken&&!Oe){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Be})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let g=!1;"boolean"==typeof x&&(g=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||g||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let g=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(g);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let g={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(g=T),this.createLoginUrl(x,V,null,!1,g).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{x[g]&&T.set(g,JSON.stringify(x[g]))}),T}revokeTokenAndLogout(x={},T=!1){let g=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let G,$;if(V){let U=I.set("token",V).set("token_type_hint","access_token");G=this.http.post(g,U,{headers:j})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let U=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(g,U,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(U=>0===U.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([G,$]).subscribe(U=>{this.logOut(x),W(U),this.logger.info("Token successfully revoked")},U=>{this.logger.error("Error revoking token",U),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",U)),Q(U)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,g){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=g}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const g=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(g)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,G){try{var $=V[Q](G),U=$.value}catch(te){return void I(te)}$.done?O(U):Promise.resolve(U).then(j,W)}function g(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function G(U){T(Q,j,W,G,$,"next",U)}function $(U){T(Q,j,W,G,$,"throw",U)}G(void 0)})}}x.d(N,{Z:()=>g})},4147:F=>{"use strict";F.exports={i8:"9.3.0"}}},F=>{F(F.s=4957)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/index.html b/dist/apps/password-reset/index.html index e62ef28fa..29908df28 100644 --- a/dist/apps/password-reset/index.html +++ b/dist/apps/password-reset/index.html @@ -5,9 +5,9 @@ PasswordReset - + - + diff --git a/dist/apps/password-reset/main.f79d87753bfbfb62.js b/dist/apps/password-reset/main.0327b0acc0534b7d.js similarity index 99% rename from dist/apps/password-reset/main.f79d87753bfbfb62.js rename to dist/apps/password-reset/main.0327b0acc0534b7d.js index 1499d4e4c..0bb1d54dc 100644 --- a/dist/apps/password-reset/main.f79d87753bfbfb62.js +++ b/dist/apps/password-reset/main.0327b0acc0534b7d.js @@ -1 +1 @@ -(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{7926:(F,N,x)=>{"use strict";var T=x(6895),p=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const U=new p.OlP("TRANSITION_ID"),G=[{provide:p.ip1,useFactory:function $(s,r,e){return()=>{e.get(p.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const J=new p.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function Ve(s){(0,T.q)().remove(s)}const Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case p.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case p.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ie),p.LFG(ge),p.LFG(p.AFp))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(p.JOm.DashCase|p.JOm.Important)?r.style.setProperty(e,t,a&p.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&p.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(s){return"_ngcontent-%COMP%".replace(we,s)}(a+"-"+t.id),this.hostAttr=function Te(s){return"_nghost-%COMP%".replace(we,s)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Hn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ri={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let xr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,a){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=s._normalizeKey(t.pop());let c="";if(Hn.forEach(i=>{const o=t.indexOf(i);o>-1&&(t.splice(o,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function ql(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&pn.hasOwnProperty(r)&&(r=pn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Hn.forEach(l=>{l!=a&&(0,ri[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{s.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Qe=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:T.bD},{provide:p.g9A,useValue:function Pn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function pa(){return(0,p.RDi)(document),document},deps:[]}]),ci=new p.OlP(""),fa=[{provide:p.rWj,useClass:class te{addToWindow(r){p.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},p.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(t=>{const a=p.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Ei=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Rn(){return new p.qLn},deps:[]},{provide:J,useClass:Ti,multi:!0,deps:[T.K0,p.R0b,p.Lbi]},{provide:J,useClass:xr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,p.AFp]},{provide:p.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,p.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let ga=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:p.AFp,useValue:e.appId},{provide:U,useExisting:p.AFp},G]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ci,12))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[...Ei,...fa],imports:[T.ez,p.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,p.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let ai=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):p.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends ai{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case p.q3G.NONE:return t;case p.q3G.HTML:return(0,p.qzn)(t,"HTML")?(0,p.z3N)(t):(0,p.EiD)(this._doc,String(t)).toString();case p.q3G.STYLE:return(0,p.qzn)(t,"Style")?(0,p.z3N)(t):t;case p.q3G.SCRIPT:if((0,p.qzn)(t,"Script"))return(0,p.z3N)(t);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(t,"URL")?(0,p.z3N)(t):(0,p.mCW)(String(t));case p.q3G.RESOURCE_URL:if((0,p.qzn)(t,"ResourceURL"))return(0,p.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,p.JVY)(e)}bypassSecurityTrustStyle(e){return(0,p.L6k)(e)}bypassSecurityTrustScript(e){return(0,p.eBb)(e)}bypassSecurityTrustUrl(e){return(0,p.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,p.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ie(s){return new nt(s.get(T.K0))}(p.LFG(p.zs3)),t},providedIn:"root"}),s})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new p.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Mr=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}convertAttributeToNonunique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}convertAttributeToUnique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteAttributeDefinitions(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAllAttributeDefinitions(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,a,l,c,n,i,o,d,u,f,b="body",P=!1,z){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=a&&(ae=this.addToHttpParams(ae,a,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=o&&(ae=this.addToHttpParams(ae,o,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=u&&(ae=this.addToHttpParams(ae,u,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let lt,ke=this.defaultHeaders;lt=this.configuration.lookupCredential("BasicAuth"),lt&&(ke=ke.set("Authorization","Basic "+lt)),lt=this.configuration.lookupCredential("BearerAuth"),lt&&(ke=ke.set("Authorization","Bearer "+lt));let yt=z&&z.httpHeaderAccept;void 0===yt&&(yt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==yt&&(ke=ke.set("Accept",yt));let zt=z&&z.context;void 0===zt&&(zt=new y.qT);let Ar="json";return yt&&(Ar=yt.startsWith("text")?"text":this.configuration.isJsonMime(yt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:zt,params:ae,responseType:Ar,withCredentials:this.configuration.withCredentials,headers:ke,observe:b,reportProgress:P})}getAttributeDefinitionById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionsByNamespace(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeModulesDependenciesForAttributeGraphText(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributesDefinitionWithRights(e,t,a,l,c,n,i,o,d="body",u=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=a&&(b=this.addToHttpParams(b,a,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=o&&(b=this.addToHttpParams(b,o,"userExtSource"));let z,P=this.defaultHeaders;z=this.configuration.lookupCredential("BasicAuth"),z&&(P=P.set("Authorization","Basic "+z)),z=this.configuration.lookupCredential("BearerAuth"),z&&(P=P.set("Authorization","Bearer "+z));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(P=P.set("Accept",ae));let ke=f&&f.context;void 0===ke&&(ke=new y.qT);let lt="json";return ae&&(lt=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ke,params:b,responseType:lt,withCredentials:this.configuration.withCredentials,headers:P,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesWithKeys(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getEntitylessKeys(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFacilityAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==a)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"user")),null!=l&&(o=this.addToHttpParams(o,l,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupResourceAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getHostAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getHostAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getHostAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLogins(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAndUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(P=>{i=this.addToHttpParams(i,P,"attrNames[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberGroupAttributesByNames(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacility(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacilityService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"workWithUserAttributes"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let P=o&&o.context;void 0===P&&(P=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:P,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesResourceService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesResourceServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesUserFacility(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesVoService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getResourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==a)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"workWithGroupAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserFacilityAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getVoAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getVoAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,a,l,c,n,i="body",o=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=a&&(u=this.addToHttpParams(u,a,"group")),null!=l&&(u=this.addToHttpParams(u,l,"user")),null!=c&&(u=this.addToHttpParams(u,c,"member")),n&&n.forEach(ke=>{u=this.addToHttpParams(u,ke,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"attributes[]")});let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let P=o&&o.context;void 0===P&&(P=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:P,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeFacilityAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeGroupAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeGroupResourceAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeHostAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeMemberAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeMemberAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeResourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUesAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserFacilityAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeVoAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeVoAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setEntitylessAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceGroupUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAndUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupWithGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",o=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ar=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==a)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=a&&(o=this.addToHttpParams(o,a,"extLogin")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=a&&(i=this.addToHttpParams(i,a,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",o=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),gn=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ql=(()=>{class s{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:s,providers:[{provide:Oe,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(s,12),p.LFG(y.eN,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let df=(()=>{class s{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const P of Object.keys(b.entitiesToManage))i="User"===P?[P].concat(i):i.concat(P);break}const o=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,o),u=this.resolveAuthorization(n,o);a.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Bn.Xf)(s()).subscribe(r)})}var Jl=x(9635),_n=x(2843),Zt=x(515),Nt=x(727),rn=x(4482),Ni=x(5403);function Es(){return(0,rn.e)((s,r)=>{let e=null;s._refCount++;const t=(0,Ni.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const a=s._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class uf extends Vi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,rn.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Ni.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Es()(this)}}var ze=x(4004),Hi=x(3900),Ut=x(5698),ya=x(3269);function Vt(...s){const r=(0,ya.yG)(s);return(0,rn.e)((e,t)=>{(r?(0,Rr.z)(s,e,r):(0,Rr.z)(s,e)).subscribe(t)})}var wi=x(5577),an=x(590),zi=x(4351),Ct=x(8505),M=x(262);function k(s,r,e,t,a){return(l,c)=>{let n=e,i=r,o=0;l.subscribe((0,Ni.x)(c,d=>{const u=o++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(s,r){return(0,rn.e)(k(s,r,arguments.length>=2,!0))}function B(s){return s<=0?()=>Zt.E:(0,rn.e)((r,e)=>{let t=[];r.subscribe((0,Ni.x)(e,a=>{t.push(a),s{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ge(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,Kt.h)((a,l)=>s(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new xs.K))}var Bt=x(9718);function Mt(s){return(0,rn.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yt(s){return new Ft(s)}function be(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return s===r}function qt(s){return Array.prototype.concat.apply([],s)}function wa(s){return s.length>0?s[s.length-1]:null}function Ot(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function bn(s){return(0,p.CqO)(s)?s:(0,p.QGY)(s)?(0,yi.D)(Promise.resolve(s)):(0,De.of)(s)}const MC={exact:function Ln(s,r,e){if(!or(s.segments,r.segments)||!Kl(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Ln(s.children[t],r.children[t],e))return!1;return!0},subset:Aa},DC={exact:function Bi(s,r){return Pi(s,r)},subset:function hf(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>On(s[e],r[e]))},ignored:()=>!0};function Ms(s,r,e){return MC[e.paths](s.root,r.root,e.matrixParams)&&DC[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function Aa(s,r,e){return Fn(s,r,r.segments,e)}function Fn(s,r,e,t){if(s.segments.length>e.length){const a=s.segments.slice(0,e.length);return!(!or(a,e)||r.hasChildren()||!Kl(a,e,t))}if(s.segments.length===e.length){if(!or(s.segments,e)||!Kl(s.segments,e,t))return!1;for(const a in r.children)if(!s.children[a]||!Aa(s.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(or(s.segments,a)&&Kl(s.segments,a,t)&&s.children[qe])&&Fn(s.children[qe],r,l,t)}}function Kl(s,r,e){return r.every((t,a)=>DC[e](s[a].parameters,t.parameters))}class kr{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return ff.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yo(this)}}class Ds{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function or(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let Zl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return new Yd},providedIn:"root"}),s})();class Yd{parse(r){const e=new tc(r);return new kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${wo(r.root,!0)}`,t=function Qt(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(a=>`${Hs(e)}=${Hs(a)}`).join("&"):`${Hs(e)}=${Hs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function gf(s){return encodeURI(s)}(r.fragment)}`:""}`}}const ff=new Yd;function yo(s){return s.segments.map(r=>Ri(r)).join("/")}function wo(s,r){if(!s.hasChildren())return yo(s);if(r){const e=s.children[qe]?wo(s.children[qe],!1):"",t=[];return Ot(s.children,(a,l)=>{l!==qe&&t.push(`${l}:${wo(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function pf(s,r){let e=[];return Ot(s.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(s.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(s,(t,a)=>a===qe?[wo(s.children[qe],!1)]:[`${a}:${wo(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[qe]?`${yo(s)}/${e[0]}`:`${yo(s)}/(${e.join("//")})`}}function Qd(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hs(s){return Qd(s).replace(/%3B/gi,";")}function Ps(s){return Qd(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xl(s){return decodeURIComponent(s)}function mf(s){return Xl(s.replace(/\+/g,"%20"))}function Ri(s){return`${Ps(s.path)}${function Vr(s){return Object.keys(s).map(r=>`;${Ps(r)}=${Ps(s[r])}`).join("")}(s.parameters)}`}const _f=/^[^\/()?;=#]+/;function ec(s){const r=s.match(_f);return r?r[0]:""}const bf=/^[^=?&#]+/,PC=/^[^&#]+/;class tc{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=ec(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new p.vHH(4009,!1);return this.capture(r),new Ds(Xl(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=ec(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=ec(this.remaining);a&&(t=a,this.capture(t))}r[Xl(e)]=Xl(t)}parseQueryParam(r){const e=function HC(s){const r=s.match(bf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function RC(s){const r=s.match(PC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=mf(e),l=mf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ec(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new p.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new p.vHH(4011,!1)}}function vo(s){return s.segments.length>0?new gt([],{[qe]:s}):s}function xa(s){const r={};for(const t of Object.keys(s.children)){const l=xa(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Jd(s){if(1===s.numberOfChildren&&s.children[qe]){const r=s.children[qe];return new gt(s.segments.concat(r.segments),r.children)}return s}(new gt(s.segments,r))}function Br(s){return s instanceof kr}function kC(s,r,e,t,a){if(0===e.length)return Ao(r.root,r.root,r.root,t,a);const l=function BC(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new VC(!0,0,s);let r=0,e=!1;const t=s.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,o)=>{n[o]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new VC(e,r,t)}(e);return l.toRoot()?Ao(r.root,r.root,new gt([],{}),t,a):function c(i){const o=function wf(s,r,e,t){if(s.isAbsolute)return new lr(r.root,!0,0);if(-1===t)return new lr(e,e===r.root,0);return function Is(s,r,e){let t=s,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new p.vHH(4005,!1);a=t.segments.length}return new lr(t,!1,a-l)}(e,t+(sr(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=o.processChildren?jn(o.segmentGroup,o.index,l.commands):ic(o.segmentGroup,o.index,l.commands);return Ao(r.root,o.segmentGroup,d,t,a)}(s.snapshot?._lastPathIndex)}function sr(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function Ea(s){return"object"==typeof s&&null!=s&&s.outlets}function Ao(s,r,e,t,a){let c,l={};t&&Ot(t,(i,o)=>{l[o]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:Cf(s,r,e);const n=vo(xa(c));return new kr(n,l,a)}function Cf(s,r,e){const t={};return Ot(s.children,(a,l)=>{t[l]=a===r?e:Cf(a,r,e)}),new gt(s.segments,t)}class VC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&sr(t[0]))throw new p.vHH(4003,!1);const a=t.find(Ea);if(a&&a!==wa(t))throw new p.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class lr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function ic(s,r,e){if(s||(s=new gt([],{})),0===s.segments.length&&s.hasChildren())return jn(s,r,e);const t=function OC(s,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=s.segments[a],n=e[t];if(Ea(n))break;const i=`${n}`,o=t0&&void 0===i)break;if(i&&o&&"object"==typeof o&&void 0===o.outlets){if(!LC(i,o,c))return l;t+=2}else{if(!LC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(s,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=ic(s.children[c],r,l))}),Ot(s.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(s.segments,a)}}function Or(s,r,e){const t=s.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Or(new gt([],{}),0,e))}),r}function ks(s){const r={};return Ot(s,(e,t)=>r[t]=`${e}`),r}function LC(s,r,e){return s==e.path&&Pi(r,e.parameters)}class Nn{constructor(r,e){this.id=r,this.url=e}}class nc extends Nn{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lr extends Nn{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ji extends Nn{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Af extends Nn{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vs extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xd extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eu extends Nn{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rc extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ac extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Tf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ef{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bs{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Mf{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=oc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=oc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=sc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return sc(r,this._root).map(e=>e.value)}}function oc(s,r){if(s===r.value)return r;for(const e of r.children){const t=oc(s,e);if(t)return t}return null}function sc(s,r){if(s===r.value)return[r];for(const e of r.children){const t=sc(s,e);if(t.length)return t.unshift(r),t}return[]}class Gi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function xo(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class tu extends Mf{constructor(r,e){super(r),this.snapshot=e,dc(this,r)}toString(){return this.snapshot.toString()}}function lc(s,r){const e=function NC(s,r){const c=new dr([],{},{},"",{},qe,r,null,s.root,-1,{});return new Sa("",new Gi(c,[]))}(s,r),t=new di([new Ds("",{})]),a=new di({}),l=new di({}),c=new di({}),n=new di(""),i=new cr(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new tu(new Gi(i,[]),e)}class cr{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(r=>Yt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Yt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cc(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function To(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dr{constructor(r,e,t,a,l,c,n,i,o,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=o,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Yt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sa extends Mf{constructor(r,e){super(e),this.url=r,dc(this,e)}toString(){return uc(this._root)}}function dc(s,r){r.value._routerState=s,r.children.forEach(e=>dc(s,e))}function uc(s){const r=s.children.length>0?` { ${s.children.map(uc).join(", ")} } `:"";return`${s.value}${r}`}function Fr(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,Pi(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),Pi(r.params,e.params)||s.params.next(e.params),function ut(s,r){if(s.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||Df(s.parent,r.parent))}function At(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function V0(s,r,e){return r.children.map(t=>{for(const a of e.children)if(s.shouldReuseRoute(t.value,a.value.snapshot))return At(s,t,a);return At(s,t)})}(s,r,e);return new Gi(t,a)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(s,n)),c}}const t=function B0(s){return new cr(new di(s.url),new di(s.params),new di(s.queryParams),new di(s.fragment),new di(s.data),s.outlet,s.component,s)}(r.value),a=r.children.map(l=>At(s,l));return new Gi(t,a)}}const Hf="ngNavigationCancelingError";function GC(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Br(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=UC(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function UC(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[Hf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function qC(s){return WC(s)&&Br(s.url)}function WC(s){return s&&s[Hf]}class Ls{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new hc,this.attachRef=null}}let hc=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Ls,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const iu=!1;let oi=(()=>{class s{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.vHH(4012,iu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.vHH(4012,iu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.vHH(4012,iu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new p.vHH(4013,iu);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new nu(e,n,a.injector);if(t&&function Fs(s){return!!s.resolveComponentFactory}(t)){const o=t.resolveComponentFactory(c);this.activated=a.createComponent(o,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(hc),p.Y36(p.s_b),p.$8M("name"),p.Y36(p.sBO),p.Y36(p.lqb))},s.\u0275dir=p.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class nu{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===cr?this.route:r===hc?this.childContexts:this.parent.get(r,e)}}let $C=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},dependencies:[oi],encapsulation:2}),s})();function Pf(s,r){return s.providers&&!s._injector&&(s._injector=(0,p.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function If(s){const r=s.children&&s.children.map(If),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=$C),e}function Cn(s){return s.outlet||qe}function au(s,r){const e=s.filter(t=>Cn(t)===r);return e.push(...s.filter(t=>Cn(t)!==r)),e}function Ui(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Eo{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Fr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=xo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=xo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=xo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=xo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new jC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new Ef(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(Fr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Fr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=Ui(a.snapshot),i=n?.get(p._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class KC{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class js{constructor(r,e){this.component=r,this.route=e}}function ZC(s,r,e){const t=s._root;return Ns(t,r?r._root:null,e,[t.value])}function pc(s,r,e){return(Ui(r)??e).get(s)}function Ns(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=xo(r);return s.children.forEach(c=>{(function ey(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function ty(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!or(s.url,r.url);case"pathParamsOrQueryParamsChange":return!or(s.url,r.url)||!Pi(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Df(s,r)||!Pi(s.queryParams,r.queryParams);default:return!Df(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new KC(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Ns(s,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new js(n.outlet.component,c))}else c&&Da(r,n,a),a.canActivateChecks.push(new KC(t)),Ns(s,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Da(c,e.getContext(n),a)),a}function Da(s,r,e){const t=xo(s),a=s.value;Ot(t,(l,c)=>{Da(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new js(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Nr(s){return"function"==typeof s}function Ha(s){return s instanceof xs.K||"EmptyError"===s?.name}const ur=Symbol("INITIAL_VALUE");function So(){return(0,Hi.w)(s=>(0,Ts.a)(s.map(r=>r.pipe((0,Ut.q)(1),Vt(ur)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===ur)return ur;if(!1===e||e instanceof kr)return e}return!0}),(0,Kt.h)(r=>r!==ur),(0,Ut.q)(1)))}function Mo(s){return(0,Jl.z)((0,Ct.b)(r=>{if(Br(r))throw GC(0,r)}),(0,ze.U)(r=>!0===r))}const Pa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Lf(s,r,e,t,a){const l=gc(s,r,e);return l.matched?function Of(s,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function ny(s){return s&&Nr(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(So(),Mo())}(t=Pf(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...Pa})):(0,De.of)(l)}function gc(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...Pa}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||be)(e,s,r);if(!a)return{...Pa};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function zr(s,r,e,t,a="corrected"){if(e.length>0&&function sy(s,r,e){return e.some(t=>hr(s,r,t)&&Cn(t)!==qe)}(s,e,t)){const c=new gt(r,function Ff(s,r,e,t){const a={};a[qe]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Cn(l)!==qe){const c=new gt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,a[Cn(l)]=c}return a}(s,r,t,new gt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function ly(s,r,e){return e.some(t=>hr(s,r,t))}(s,e,t)){const c=new gt(s.segments,function mc(s,r,e,t,a,l){const c={};for(const n of t)if(hr(s,e,n)&&!a[Cn(n)]){const i=new gt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Cn(n)]=i}return{...a,...c}}(s,r,e,t,s.children,a));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hr(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Do(s,r,e,t){return!!(Cn(s)===t||t!==qe&&hr(r,e,s))&&("**"===s.path||gc(r,s,e).matched)}function jf(s,r,e){return 0===r.length&&!s.children[e]}const du=!1;class Us{constructor(r){this.segmentGroup=r||null}}class Nf{constructor(r){this.urlTree=r}}function _c(s){return(0,_n._)(new Us(s))}function zf(s){return(0,_n._)(new Nf(s))}class Gf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=zr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(xa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Nf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Us?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(xa(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Us?this.noMatchError(a):a}))}noMatchError(r){return new p.vHH(4002,du)}createUrlTree(r,e,t){const a=vo(r);return new kr(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,yi.D)(a).pipe((0,zi.b)(l=>{const c=t.children[l],n=au(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ge())}expandSegment(r,e,t,a,l,c){return(0,yi.D)(t).pipe((0,zi.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(o=>{if(o instanceof Us)return(0,De.of)(null);throw o}))),(0,an.P)(n=>!!n),(0,M.K)((n,i)=>{if(Ha(n))return jf(e,a,l)?(0,De.of)(new gt([],{})):_c(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Do(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):_c(e):_c(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?zf(l):this.lineralizeSegments(t,l).pipe((0,wi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:o,positionalParamSegments:d}=gc(e,a,l);if(!n)return _c(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?zf(u):this.lineralizeSegments(a,u).pipe((0,wi.z)(f=>this.expandSegment(r,e,t,f.concat(o),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Pf(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):Lf(e,t,a,r).pipe((0,Hi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,wi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:P}=zr(e,n,i,f),z=new gt(b.segments,b.children);if(0===P.length&&z.hasChildren())return this.expandChildren(u,f,z).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===P.length)return(0,De.of)(new gt(n,{}));const ae=Cn(t)===l;return this.expandSegment(u,z,f,P,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):_c(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function cu(s,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function zs(s){return s&&Nr(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(So(),Mo())}(r,e,t).pipe((0,wi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function dy(s){return(0,_n._)(UC(du,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,_n._)(new p.vHH(4e3,du));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new kr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new p.vHH(4001,du);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class F0{}class uu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=zr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Gi(t,e),l=new Sa(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=cc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,yi.D)(Object.keys(t.children)).pipe((0,zi.b)(a=>{const l=t.children[a],c=au(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(s,r=!1){return(0,rn.e)((e,t)=>{let a=0;e.subscribe((0,Ni.x)(t,l=>{const c=s(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ge(),(0,ze.U)(a=>{if(null===a)return null;const l=yc(a);return function hy(s){s.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,yi.D)(e).pipe((0,zi.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,an.P)(c=>!!c),(0,M.K)(c=>{if(Ha(c))return jf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Do(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?wa(a).parameters:{},i=$f(t)+a.length,o=new dr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),Cn(e),e.component??e._loadedComponent??null,e,Wf(t),i,wc(e),i);c=(0,De.of)({snapshot:o,consumedSegments:[],remainingSegments:[]})}else c=Lf(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:o,parameters:d})=>{if(!n)return null;const u=$f(t)+i.length;return{snapshot:new dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),Cn(e),e.component??e._loadedComponent??null,e,Wf(t),u,wc(e),u),consumedSegments:i,remainingSegments:o}}));return c.pipe((0,Hi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:o,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function qf(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:P}=zr(t,o,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===P.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]));if(0===f.length&&0===P.length)return(0,De.of)([new Gi(i,[])]);const z=Cn(e)===l;return this.processSegment(u,f,b,P,z?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]))}))}}function Cc(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function yc(s){const r=[],e=new Set;for(const t of s){if(!Cc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=yc(t.children);r.push(new Gi(t.value,a))}return r.filter(t=>!e.has(t))}function Wf(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function $f(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ws(s){return s.data||{}}function wc(s){return s.resolve||{}}const vc=Symbol("RouteTitle");function Jf(s){return"string"==typeof s.title||null===s.title}function hu(s){return(0,Hi.w)(r=>{const e=s(r);return e?(0,yi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let zn=(()=>{class s{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[vc]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return(0,p.f3M)(Ia)},providedIn:"root"}),s})(),Ia=(()=>{class s extends zn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Y))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class _y{}class Cy extends class by{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const pu=new p.OlP("",{providedIn:"root",factory:()=>({})}),Ac=new p.OlP("ROUTES");let fu=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=bn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new uf(t,()=>new Pe.x).pipe(Es());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,o,d=!1;Array.isArray(n)?o=n:(i=n.create(e).injector,o=qt(i.get(Ac,[],p.XFs.Self|p.XFs.Optional)));return{routes:o.map(If),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new uf(l,()=>new Pe.x).pipe(Es());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return bn(e()).pipe((0,wi.z)(t=>t instanceof p.YKP||Array.isArray(t)?(0,De.of)(t):(0,yi.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(p.Sil))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class wy{}class vy{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function N0(s){throw s}function Ay(s,r,e){return r.parse("/")}const $s={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Po(){const s=(0,p.f3M)(Zl),r=(0,p.f3M)(hc),e=(0,p.f3M)(T.Ye),t=(0,p.f3M)(p.zs3),a=(0,p.f3M)(p.Sil),l=(0,p.f3M)(Ac,{optional:!0})??[],c=(0,p.f3M)(pu,{optional:!0})??{},n=(0,p.f3M)(Ia),i=(0,p.f3M)(zn,{optional:!0}),o=(0,p.f3M)(wy,{optional:!0}),d=(0,p.f3M)(_y,{optional:!0}),u=new _i(null,s,r,e,t,a,qt(l));return o&&(u.urlHandlingStrategy=o),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function Gn(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let _i=(()=>{class s{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe.x,this.errorHandler=N0,this.malformedUriErrorHandler=Ay,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new vy,this.routeReuseStrategy=new Cy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new xf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new FC(f)),this.ngModule=c.get(p.h0i),this.console=c.get(p.c2e);const u=c.get(p.R0b);this.isNgZoneEnabled=u instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function k0(){return new kr(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lc(this.currentUrlTree,this.rootComponentType),this.transitions=new di({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Kt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Hi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Hi.w)(n=>{const i=this.browserUrlTree.toString(),o=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||o)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return gu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Hi.w)(u=>{const f=this.transitions.getValue();return t.next(new nc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Zt.E:Promise.resolve(u)}),function uy(s,r,e,t){return(0,Hi.w)(a=>function bc(s,r,e,t,a){return new Gf(s,r,e,t,a).apply()}(s,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function Yf(s,r,e,t,a,l){return(0,wi.z)(c=>function j0(s,r,e,t,a,l,c="emptyOnly",n="legacy"){return new uu(s,r,e,t,a,c,n,l).recognize().pipe((0,Hi.w)(i=>null===i?function Uf(s){return new Vi.y(r=>r.error(s))}(new F0):(0,De.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new Vs(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(o&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:P,restoredState:z,extras:ae}=n,ke=new nc(f,this.serializeUrl(b),P,z);t.next(ke);const lt=lc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Zt.E}),(0,Ct.b)(n=>{const i=new Xd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ZC(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function si(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Vf(s,r,e,t){return(0,yi.D)(s).pipe((0,wi.z)(a=>function oy(s,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=pc(n,r,a);return bn(function iy(s){return s&&Nr(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,an.P)())});return(0,De.of)(c).pipe(So())}(a.component,a.route,e,r,t)),(0,an.P)(a=>!0!==a,!0))}(c,t,a,s).pipe((0,wi.z)(n=>n&&function O0(s){return"boolean"==typeof s}(n)?function Bf(s,r,e,t){return(0,yi.D)(r).pipe((0,zi.b)(a=>(0,Rr.z)(function Gs(s,r){return null!==s&&r&&r(new Tf(s)),(0,De.of)(!0)}(a.route.parent,t),function lu(s,r){return null!==s&&r&&r(new Sf(s)),(0,De.of)(!0)}(a.route,t),function ay(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function XC(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Ir(()=>{const n=c.guards.map(i=>{const o=pc(i,c.node,e);return bn(function fc(s){return s&&Nr(s.canActivateChild)}(o)?o.canActivateChild(t,s):o(t,s)).pipe((0,an.P)())});return(0,De.of)(n).pipe(So())}));return(0,De.of)(l).pipe(So())}(s,a.path,e),function ry(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Ir(()=>{const c=pc(l,r,e);return bn(function su(s){return s&&Nr(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,an.P)())}));return(0,De.of)(a).pipe(So())}(s,a.route,e))),(0,an.P)(a=>!0!==a,!0))}(t,l,s,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Br(n.guardsResult))throw GC(0,n.guardsResult);const i=new eu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Kt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),hu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const o=new rc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}),(0,Hi.w)(i=>{let o=!1;return(0,De.of)(i).pipe(function Qf(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,yi.D)(a).pipe((0,zi.b)(c=>function Ra(s,r,e,t){const a=s.routeConfig,l=s._resolve;return void 0!==a?.title&&!Jf(a)&&(l[vc]=a.title),function fy(s,r,e,t){const a=function gy(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===a.length)return(0,De.of)({});const l={};return(0,yi.D)(a).pipe((0,wi.z)(c=>function my(s,r,e,t){const a=pc(s,r,t);return bn(a.resolve?a.resolve(r,e):a(r,e))}(s[c],r,e,t).pipe((0,an.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Ha(c)?Zt.E:(0,_n._)(c)))}(l,s,r,t).pipe((0,ze.U)(c=>(s._resolvedData=c,s.data=cc(s,e).resolve,a&&Jf(a)&&(s.data[vc]=a.title),null)))}(c.route,t,s,r)),(0,Ct.b)(()=>l++),B(1),(0,wi.z)(c=>l===a.length?(0,De.of)(e):Zt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>o=!0,complete:()=>{o||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const o=new ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}))}),hu(n=>{const i=o=>{const d=[];o.routeConfig?.loadComponent&&!o.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(o.routeConfig).pipe((0,Ct.b)(u=>{o.component=u}),(0,ze.U)(()=>{})));for(const u of o.children)d.push(...i(u));return d};return(0,Ts.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Ut.q)(1))}),hu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function zC(s,r,e){const t=At(s,r._root,e?e._root:void 0);return new tu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((s,r,e)=>(0,ze.U)(t=>(new Eo(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,WC(n)){qC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ji(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),qC(n)){const o=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gu(a.source)};this.scheduleNavigation(o,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new Af(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(o){a.reject(o)}}return Zt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(If),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,o=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),kC(o,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Br(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Xf(s){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Lr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,o;c?(n=c.resolve,i=c.reject,o=c.promise):o=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:o,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),o.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,a){const l=new Ji(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:function(){return Po()},providedIn:"root"}),s})();function gu(s){return"imperative"!==s}class Tc{}let xy=(()=>{class s{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Kt.h)(e=>e instanceof Lr),(0,zi.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,p.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,yi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,wi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,yi.D)([l,c]).pipe((0,mt.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(_i),p.LFG(p.Sil),p.LFG(p.lqb),p.LFG(Tc),p.LFG(fu))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const _u=new p.OlP("");let Ty=(()=>{class s{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Lr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Bs&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Bs(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const ng=new p.OlP("ROUTER_FORROOT_GUARD"),bu=new p.OlP(""),Ec=[T.Ye,{provide:Zl,useClass:Yd},{provide:_i,useFactory:Po},hc,{provide:cr,useFactory:function rg(s){return s.routerState.root},deps:[_i]},fu];function Cu(){return new p.PXZ("Router",_i)}let yu=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[Ec,[],vu(e),{provide:ng,useFactory:wu,deps:[[_i,new p.FiY,new p.tp0]]},{provide:pu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:_u,useFactory:()=>{const s=(0,p.f3M)(_i),r=(0,p.f3M)(T.EM),e=(0,p.f3M)(pu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Ty(s,r,e)}},t?.preloadingStrategy?cg(t.preloadingStrategy):[],{provide:p.PXZ,multi:!0,useFactory:Cu},t?.initialNavigation?My(t):[],[{provide:og,useFactory:Sy},{provide:p.tb,multi:!0,useExisting:og}]]}}static forChild(e){return{ngModule:s,providers:[vu(e)]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ng,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();function wu(s){return"guarded"}function vu(s){return[{provide:Ac,multi:!0,useValue:s}]}function Sy(){const s=(0,p.f3M)(p.zs3);return r=>{const e=s.get(p.z2F);if(r!==e.components[0])return;const t=s.get(_i),a=s.get(sg);1===s.get(lg)&&t.initialNavigation(),s.get(bu,null,p.XFs.Optional)?.setUpPreloading(),s.get(_u,null,p.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const og=new p.OlP("");function My(s){return["disabled"===s.initialNavigation?[{provide:p.ip1,multi:!0,useFactory:()=>{const s=(0,p.f3M)(_i);return()=>{s.setUpLocationChangeListener()}}},{provide:lg,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:lg,useValue:0},{provide:p.ip1,multi:!0,deps:[p.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=s.get(_i),c=s.get(sg);(function t(a){s.get(_i).events.pipe((0,Kt.h)(c=>c instanceof Lr||c instanceof Ji||c instanceof Af),(0,ze.U)(c=>c instanceof Lr||c instanceof Ji&&(0===c.code||1===c.code)&&null),(0,Kt.h)(c=>null!==c),(0,Ut.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const sg=new p.OlP("",{factory:()=>new Pe.x}),lg=new p.OlP("",{providedIn:"root",factory:()=>1});function cg(s){return[xy,{provide:bu,useExisting:xy},{provide:Tc,useExisting:s}]}let Sc;try{Sc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sc=!1}let ka,ei=(()=>{class s{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!Sc)&&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 s.\u0275fac=function(e){return new(e||s)(p.LFG(p.Lbi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Mc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ry(){if(ka)return ka;if("object"!=typeof document||!document)return ka=new Set(Mc),ka;let s=document.createElement("input");return ka=new Set(Mc.filter(r=>(s.setAttribute("type",r),s.type===r))),ka}let Qs,Ki,Ro;function yn(s){return function xu(){if(null==Qs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qs=!0}))}finally{Qs=Qs||!1}return Qs}()?s:!!s.capture}function Iy(){if(null==Ki){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ki=!1,Ki;if("scrollBehavior"in document.documentElement.style)Ki=!0;else{const s=Element.prototype.scrollTo;Ki=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return Ki}function Io(s){if(function ky(){if(null==Ro){const s=typeof document<"u"?document.head:null;Ro=!(!s||!s.createShadowRoot&&!s.attachShadow)}return Ro}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function ko(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function vi(s){return s.composedPath?s.composedPath()[0]:s.target}function Dc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Un(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Xs=x(8372);function Hg(s){return(0,Kt.h)((r,e)=>s<=e)}function Pg(s,r){return s===r}var Rg=x(5032);function ft(s){return(0,rn.e)((r,e)=>{(0,Bn.Xf)(s).subscribe((0,Ni.x)(e,()=>e.complete(),Rg.Z)),!e.closed&&r.subscribe(e)})}function at(s){return null!=s&&"false"!=`${s}`}function sn(s,r=0){return function uw(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Mu(s){return Array.isArray(s)?s:[s]}function Wt(s){return null==s?"":"string"==typeof s?s:`${s}px`}function ti(s){return s instanceof p.SBq?s.nativeElement:s}let Du=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ig=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ti(e);return new Vi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Pe.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Du))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),el=(()=>{class s{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=sn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Xs.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Ig),p.Y36(p.SBq),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),Vo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Du]}),s})();const tl=new Set;let Ba,Pu=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ru}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function kg(s){if(!tl.has(s))try{Ba||(Ba=document.createElement("style"),Ba.setAttribute("type","text/css"),document.head.appendChild(Ba)),Ba.sheet&&(Ba.sheet.insertRule(`@media ${s} {body{ }}`,0),tl.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Ru(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let Bo=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Pe.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Vg(Mu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Vg(Mu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ts.a)(a);return l=(0,Rr.z)(l.pipe((0,Ut.q)(1)),l.pipe(Hg(1),(0,Xs.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:o})=>{n.matches=n.matches||i,n.breakpoints[o]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Vi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Pu),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vg(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function Oo(s,r){return(s.getAttribute(r)||"").match(/\S+/g)||[]}const gw="cdk-describedby-message",il="cdk-describedby-host";let Iu=0,Fg=(()=>{class s{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iu++,this._document=e,this._id=(0,p.f3M)(p.AFp)+"-"+Iu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=ku(t,a);"string"!=typeof t?(jg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=ku(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${il}="${this._id}"]`);for(let t=0;t0!=a.indexOf(gw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function pw(s,r,e){const t=Oo(s,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),s.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(il,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Lg(s,r,e){const a=Oo(s,r).filter(l=>l!=e.trim());a.length?s.setAttribute(r,a.join(" ")):s.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(il)}_isElementDescribedByMessage(e,t){const a=Oo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function ku(s,r){return"string"==typeof s?`${r||""}/${s}`:s}function jg(s,r){s.id||(s.id=`${gw}-${r}-${Iu++}`)}class Vc extends class wn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Pe.x,this.change=new Pe.x,r instanceof p.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,Xs.b)(r),(0,Kt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||Un(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Bc=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function _w(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function mw(s){try{return s.frameElement}catch{return null}}(function vw(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===Bu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Bu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function zg(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function ww(s){return!function bw(s){return function yw(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function Ng(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function Cw(s){return function st(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Vu(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vu(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Bu(s){if(!Vu(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Gg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(r)}}let Ou=(()=>{class s{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Gg(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Bc),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function qn(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function Oc(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Lu=new p.OlP("cdk-input-modality-detector-options"),Fu={ignoreKeys:[18,17,224,91,16]},nl=yn({passive:!0,capture:!0});let LT=(()=>{class s{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new di(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(qn(c)?"keyboard":"mouse"),this._mostRecentTarget=vi(c))},this._onTouchstart=c=>{Oc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(c))},this._options={...Fu,...l},this.modalityDetected=this._modality.pipe(Hg(1)),this.modalityChanged=this.modalityDetected.pipe(function dw(s,r=le.y){return s=s??Pg,(0,rn.e)((e,t)=>{let a,l=!0;e.subscribe((0,Ni.x)(t,c=>{const n=r(c);(l||!s(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,nl),a.addEventListener("mousedown",this._onMousedown,nl),a.addEventListener("touchstart",this._onTouchstart,nl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,nl),document.removeEventListener("mousedown",this._onMousedown,nl),document.removeEventListener("touchstart",this._onTouchstart,nl))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Lu,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lo=new p.OlP("cdk-focus-monitor-default-options"),Lc=yn({passive:!0,capture:!0});let ln=(()=>{class s{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,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 Pe.x,this._rootNodeFocusAndBlurListener=n=>{for(let o=vi(n);o;o=o.parentElement)"focus"===n.type?this._onFocus(n,o):this._onBlur(n,o)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ti(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Io(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Pe.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ti(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ti(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=vi(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Lc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Lc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Lc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Lc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,p.f3M)(Bo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(zu,qg,Nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(zu,qg):2===t&&e.add(zu,Nu)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fc=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Wg))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Vo]}),s})();const Mw=new p.OlP("cdk-dir-doc",{providedIn:"root",factory:function Dw(){return(0,p.f3M)(T.K0)}}),$g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Wn=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new p.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Hw(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?$g.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Mw,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const kw=new p.OlP("mat-sanity-checks",{providedIn:"root",factory:function Qg(){return!0}});let We=(()=>{class s{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Dc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Wg),p.LFG(kw,8),p.LFG(T.K0))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr,Yr]}),s})();function Oa(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=at(r)}}}function La(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function fr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=at(r)}}}function al(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const qu=new p.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Wu(){return(0,p.f3M)(p.soG)}});class Zi{constructor(){this._localeChanges=new Pe.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const $u=new p.OlP("mat-date-formats"),Bw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Yu(s,r){const e=Array(s);for(let t=0;t{class s extends Zi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Yu(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Yu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Yu(7,a=>this._format(t,new Date(2017,0,a+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Bw.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(qu,8),p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Ow={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 Zg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:Zi,useClass:Kg}]}),s})(),Lw=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:$u,useValue:Ow}],imports:[Zg]}),s})(),zc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();class zT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Fw={enterDuration:225,exitDuration:150},tm=yn({passive:!0}),jw=["mousedown","touchstart"],Nw=["mouseup","mouseleave","touchend","touchcancel"];class zw{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ti(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Fw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function UT(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,o=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${o}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,P="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new zT(this,d,t,P);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!P&&(o||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(z),lt=()=>this._destroyRipple(z);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(z,ae),(P||!o)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Fw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ti(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Nw),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=qn(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,tm)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(jw.forEach(r=>{this._triggerElement.removeEventListener(r,this,tm)}),this._pointerUpEventsRegistered&&Nw.forEach(r=>{this._triggerElement.removeEventListener(r,this,tm)}))}}const Gw=new p.OlP("mat-ripple-global-options");let Fa=(()=>{class s{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new zw(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(ei),p.Y36(Gw,8),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-ripple-unbounded",t.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"]}),s})(),ui=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),Ju=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We]}),s})(),Ku=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,T.ez,We,Ju]}),s})();const Gc=["mat-button",""],jo=["*"],Uc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sl=La(Oa(fr(class{constructor(s){this._elementRef=s}})));let qc=(()=>{class s extends sl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Uc)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ln),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,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(e,t){if(1&e&&p.Gf(Fa,5),2&e){let a;p.iGM(a=p.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(p.uIk("disabled",t.disabled||null),p.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[p.qOj],attrs:Gc,ngContentSelectors:jo,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(e,t){1&e&&(p.F$t(),p.TgZ(0,"span",0),p.Hsn(1),p.qZA(),p._UZ(2,"span",1)(3,"span",2)),2&e&&(p.xp6(2),p.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),p.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Fa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),$n=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,We]}),s})();var Zu=x(1144),An=x(576),Xu=x(3268);const eh=["addListener","removeListener"],Qw=["addEventListener","removeEventListener"],QT=["on","off"];function Wc(s,r,e,t){if((0,An.m)(e)&&(t=e,e=void 0),t)return Wc(s,r,e).pipe((0,Xu.Z)(t));const[a,l]=function sm(s){return(0,An.m)(s.addEventListener)&&(0,An.m)(s.removeEventListener)}(s)?Qw.map(c=>n=>s[c](r,n,e)):function Jw(s){return(0,An.m)(s.addListener)&&(0,An.m)(s.removeListener)}(s)?eh.map(th(s,r)):function om(s){return(0,An.m)(s.on)&&(0,An.m)(s.off)}(s)?QT.map(th(s,r)):[];if(!a&&(0,Zu.z)(s))return(0,wi.z)(c=>Wc(c,r,e))((0,Bn.Xf)(s));if(!a)throw new TypeError("Invalid event target");return new Vi.y(c=>{const n=(...i)=>c.next(1l(n)})}function th(s,r){return e=>t=>s[e](r,t)}var lm=x(4408);const Ai={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Ai;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,s(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...s){const{delegate:r}=Ai;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=Ai;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var dm=x(7565);const um=new class JT extends dm.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class cm extends lm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Ai.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Ai.cancelAnimationFrame(e),r._scheduled=void 0)}});let ih,pm=1;const $c={};function fm(s){return s in $c&&(delete $c[s],!0)}const gm={setImmediate(s){const r=pm++;return $c[r]=!0,ih||(ih=Promise.resolve()),ih.then(()=>fm(r)&&s()),r},clearImmediate(s){fm(s)}},{setImmediate:mm,clearImmediate:Kw}=gm,Yc={setImmediate(...s){const{delegate:r}=Yc;return(r?.setImmediate||mm)(...s)},clearImmediate(s){const{delegate:r}=Yc;return(r?.clearImmediate||Kw)(s)},delegate:void 0},nh=new class bm extends dm.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class _m extends lm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Yc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Yc.clearImmediate(e),r._scheduled=void 0)}});var Qc=x(4986),rh=x(2805);function Xw(s,r=Qc.z){return function Zw(s){return(0,rn.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const o=a;a=null,e.next(o)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Ni.x)(e,o=>{t=!0,a=o,l||(0,Bn.Xf)(s(o)).subscribe(l=(0,Ni.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,rh.H)(s,r))}let ll=(()=>{class s{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new Pe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Vi.y(t=>{this._globalSubscription||this._addGlobalListener();const a=e>0?this._scrolled.pipe(Xw(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Kt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ti(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Wc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(ei),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zo=(()=>{class s{constructor(e,t,a){this._platform=e,this._change=new Pe.x,this._changeListener=l=>{this._change.next(l)},this._document=a,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Xw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Na=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr,Yn,Yr,Yn]}),s})();class cl{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class dl extends cl{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class sh extends cl{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class ov extends cl{constructor(r){super(),this.element=r instanceof p.SBq?r.nativeElement:r}}class za{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof dl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof sh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof ov?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class aE extends za{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||p.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let lh=(()=>{class s extends za{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),s})(),Kr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var cn=x(6451);const Kc=Iy();class sv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Kc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Kc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class lv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tm{enable(){}disable(){}attach(){}}function ch(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Em(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class cv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();ch(e,[{width:t,height:a,bottom:a,right:t,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 dv=(()=>{class s{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new Tm,this.close=c=>new lv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new sv(this._viewportRuler,this._document),this.reposition=c=>new cv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ll),p.LFG(zo),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class Go{constructor(r){if(this.scrollStrategy=new Tm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class ul{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Zc=(()=>{class s{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),uv=(()=>{class s extends Zc{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),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 s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qn=(()=>{class s extends Zc{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=vi(l)},this._clickListener=l=>{const c=vi(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let o=i.length-1;o>-1;o--){const d=i[o];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(ei),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zr=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Dc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Pe.x,this._outsidePointerEvents=new Pe.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ut.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=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,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Mu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,cn.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Xr="cdk-overlay-connected-position-bounding-box",Xc=/([A-Za-z%]+)$/;class dn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,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 Pe.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Xr),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),o=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(o,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,o,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=o)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Xr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Ua(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),o=this._getOffset(a,"y");i&&(c+=i),o&&(n+=o);let f=0-n,b=n+l.height-t.height,P=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,f,b),ae=P*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:P==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=Ga(this._overlayRef.getConfig().minHeight),n=Ga(this._overlayRef.getConfig().minWidth),o=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&o}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Ua(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),o=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?o||-c:r.xP&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-P/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),P=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>P&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-P/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,mr(this._boundingBox.style,a)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();mr(t,this._getExactOverlayY(e,r,d)),mr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),o&&(n+=`translateY(${o}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Em(r,t),isOriginOutsideView:ch(r,t),isOverlayClipped:Em(e,t),isOverlayOutsideView:ch(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Mu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof p.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function mr(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function Ga(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(Xc);return e&&"px"!==e?null:parseFloat(r)}return s||null}function Ua(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const qa="cdk-global-overlay-wrapper";class qo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(qa),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),o=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",P="",z="";i?z="flex-start":"center"===d?(z="center",f?P=u:b=u):f?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",P=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",P=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=o?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":P,e.justifyContent=z,e.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(qa),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Wo=(()=>{class s{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new qo}flexibleConnectedTo(e){return new dn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(zo),p.LFG(T.K0),p.LFG(ei),p.LFG(Zr))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$o=0,xi=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=o,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Go(e);return c.direction=c.direction||this._directionality.value,new li(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+$o++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(p.z2F)),new aE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(dv),p.LFG(Zr),p.LFG(p._Vd),p.LFG(Wo),p.LFG(uv),p.LFG(p.zs3),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Wn),p.LFG(T.Ye),p.LFG(Qn),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Dm={provide:new p.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xi],useFactory:function Mm(s){return()=>s.scrollStrategies.reposition()}};let Wa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[xi,Dm],imports:[Yr,Kr,Na,Na]}),s})();class dh{}const _r="*";function ii(s,r){return{type:7,name:s,definitions:r,options:{}}}function wt(s,r=null){return{type:4,styles:r,timings:s}}function Hm(s,r=null){return{type:3,steps:s,options:r}}function uh(s,r=null){return{type:2,steps:s,options:r}}function Fe(s){return{type:6,styles:s,offset:null}}function pt(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Yo(s=null){return{type:9,options:s}}function Ya(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function ed(s){Promise.resolve(null).then(s)}class Qo{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ed(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class td{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?ed(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Pm=["connectionContainer"],fh=["inputContainer"],gh=["label"];function _v(s,r){1&s&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function Rm(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&s){const e=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Im(s,r){if(1&s&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&s){const e=p.oxw(2);p.xp6(3),p.Oqu(e._control.placeholder)}}function km(s,r){1&s&&p.Hsn(0,3,["*ngSwitchCase","true"])}function Vm(s,r){1&s&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function bv(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.updateOutlineGap())}),p.YNc(2,Im,4,1,"ng-container",12),p.YNc(3,km,1,0,"ng-content",12),p.YNc(4,Vm,2,0,"span",22),p.qZA()}if(2&s){const e=p.oxw();p.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),p.uIk("for",e._control.id)("aria-owns",e._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Bm(s,r){1&s&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function Om(s,r){if(1&s&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function mh(s,r){if(1&s&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState)}}function _h(s,r){if(1&s&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&s){const e=p.oxw(2);p.Q6J("id",e._hintLabelId),p.xp6(1),p.Oqu(e.hintLabel)}}function Lm(s,r){if(1&s&&(p.TgZ(0,"div",27),p.YNc(1,_h,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",e.hintLabel)}}const Fm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nm=0;const bh=new p.OlP("MatError");let Ch=(()=>{class s{constructor(e,t){this.id="mat-error-"+Nm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return s.\u0275fac=function(e){return new(e||s)(p.$8M("aria-live"),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("id",t.id)},inputs:{id:"id"},features:[p._Bn([{provide:bh,useExisting:s}])]}),s})();const zm={transitionMessages:ii("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let fl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s}),s})(),Gm=0;const Um=new p.OlP("MatHint");let hi=(()=>{class s{constructor(){this.align="start",this.id="mat-hint-"+Gm++}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(p.uIk("id",t.id)("align",null),p.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[p._Bn([{provide:Um,useExisting:s}])]}),s})(),gl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-label"]]}),s})(),Cv=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const yv=new p.OlP("MatPrefix"),qm=new p.OlP("MatSuffix");let Wm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","matSuffix",""]],features:[p._Bn([{provide:qm,useExisting:s}])]}),s})(),yh=0;const vv=La(class{constructor(s){this._elementRef=s}},"primary"),Ym=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),wh=new p.OlP("MatFormField");let vh=(()=>{class s extends vv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+yh++,this._labelId="mat-form-field-label-"+yh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=at(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,cn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Wc(this._label.nativeElement,"transitionend").pipe((0,Ut.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,a=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*P+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Vo,We]}),s})();const Xm={provide:new p.OlP("mat-select-scroll-strategy"),deps:[xi],useFactory:function nd(s){return()=>s.scrollStrategies.reposition()}};let ml=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Xm],imports:[T.ez,Wa,Ku,We,Yn,Ko,Ku,We]}),s})();const i_=["tooltip"],xh="tooltip-panel",r_=yn({passive:!0}),a_=new p.OlP("mat-tooltip-scroll-strategy"),Vv={provide:a_,deps:[xi],useFactory:function kv(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}},Bv=new p.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ov(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Lv=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=o,this._dir=u,this._defaultOptions=f,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 Pe.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=sn(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=sn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,a])=>{e.removeEventListener(t,a,r_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new dl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${xh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!Un(a)&&(a.preventDefault(),a.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(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ut.q)(1),ft(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${xh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,a])=>{this._elementRef.nativeElement.addEventListener(t,a,r_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275dir=p.lG2({type:s,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),s})(),Fv=(()=>{class s extends Lv{constructor(e,t,a,l,c,n,i,o,d,u,f,b){super(e,t,a,l,c,n,i,o,d,u,f,b),this._tooltipComponent=Nv}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(xi),p.Y36(p.SBq),p.Y36(ll),p.Y36(p.s_b),p.Y36(p.R0b),p.Y36(ei),p.Y36(Fg),p.Y36(ln),p.Y36(a_),p.Y36(Wn,8),p.Y36(Bv,8),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[p.qOj]}),s})(),jv=(()=>{class s{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Pe.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.sBO),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s}),s})(),Nv=(()=>{class s extends jv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.sBO),p.Y36(Bo),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&p.Gf(i_,7),2&e){let a;p.iGM(a=p.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&p.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&p.Udp("zoom",t.isVisible()?1:null)},features:[p.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(p.TgZ(0,"div",0,1),p.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),p.ALo(2,"async"),p._uU(3),p.qZA()),2&e){let a;p.ekj("mat-tooltip-handset",null==(a=p.lcZ(2,4,t._isHandset))?null:a.matches),p.Q6J("ngClass",t.tooltipClass),p.xp6(3),p.Oqu(t.message)}},dependencies:[T.mk,T.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}),s})(),Xo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Vv],imports:[Fc,T.ez,Wa,We,We,Yn]}),s})(),rd=(()=>{class s{constructor(){this.changes=new Pe.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const s_={provide:rd,deps:[[new p.FiY,new p.tp0,rd]],useFactory:function o_(s){return s||new rd}};let Zn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[s_],imports:[T.ez,$n,ml,Xo,We]}),s})();var d_=x(1005);const Kv=["mat-menu-item",""];function es(s,r){1&s&&(p.O4$(),p.TgZ(0,"svg",2),p._UZ(1,"polygon",3),p.qZA())}const Zv=["*"];function Th(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",0),p.NdJ("keydown",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._handleKeydown(a))})("click",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._onAnimationDone(a))}),p.TgZ(1,"div",1),p.Hsn(2),p.qZA()()}if(2&s){const e=p.oxw();p.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),p.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Eh={transformMenu:ii("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ii("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xE=new p.OlP("MatMenuContent"),Sh=new p.OlP("MAT_MENU_PANEL"),ad=fr(Oa(class{}));let Qa=(()=>{class s extends ad{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new Pe.x,this._focused=new Pe.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class s{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new p.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new p.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+u_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=at(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=at(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Vc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Hi.w)(e=>(0,cn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Hi.w)(t=>(0,cn.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:Un(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36($t),p.Y36(p.sBO))},s.\u0275dir=p.lG2({type:s,contentQueries:function(e,t,a){if(1&e&&(p.Suo(a,xE,5),p.Suo(a,Qa,5),p.Suo(a,Qa,4)),2&e){let l;p.iGM(l=p.CRH())&&(t.lazyContent=l.first),p.iGM(l=p.CRH())&&(t._allItems=l),p.iGM(l=p.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&p.Gf(p.Rgc,5),2&e){let a;p.iGM(a=p.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),s})(),tA=(()=>{class s extends ts{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36($t),p.Y36(p.sBO))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&p.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[p._Bn([{provide:Sh,useExisting:s}]),p.qOj],ngContentSelectors:Zv,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(p.F$t(),p.YNc(0,Th,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Eh.transformMenu,Eh.fadeInItems]},changeDetection:0}),s})();const Mh=new p.OlP("mat-menu-scroll-strategy"),p_={provide:Mh,deps:[xi],useFactory:function h_(s){return()=>s.scrollStrategies.reposition()}},f_=yn({passive:!0});let nA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=o,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{Oc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new p.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new p.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof ts?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,f_),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,f_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof ts&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof ts?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Kt.h)(a=>"void"===a.toState),(0,Ut.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Go({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,o]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",o="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:o,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:o,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Kt.h)(c=>c!==this._menuItemInstance),(0,Kt.h)(()=>this._menuOpen)):(0,De.of)();return(0,cn.T)(e,a,l,t)}_handleMousedown(e){qn(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Kt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,d_.g)(0,nh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ts&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ut.q)(1),(0,d_.g)(0,nh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new sh(e.templateRef,this._viewContainerRef)),this._portal}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(xi),p.Y36(p.SBq),p.Y36(p.s_b),p.Y36(Mh),p.Y36(Sh,8),p.Y36(Qa,10),p.Y36(Wn,8),p.Y36(ln),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,hostVars:3,hostBindings:function(e,t){1&e&&p.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&p.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),s})(),rA=(()=>{class s extends nA{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[p.qOj]}),s})(),ea=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[p_],imports:[T.ez,We,ui,Wa,Yn,We]}),s})();var aA=x(4742),oA=x(1810);function Dh(...s){const r=(0,ya.jO)(s),{args:e,keys:t}=(0,aA.D)(s),a=new Vi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,o=c;for(let d=0;d{u||(u=!0,o--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(o||l.next(t?(0,oA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,Xu.Z)(r)):a}var bl=x(3099);const g_=["*"];let Cl;function yl(s){return function m_(){if(void 0===Cl&&(Cl=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Cl=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Cl}()?.createHTML(s)||s}function is(s){return Error(`Unable to find icon with the name "${s}"`)}function __(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function b_(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class Ja{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let ns=(()=>{class s{constructor(e,t,a,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new Ja(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(p.q3G.HTML,a);if(!c)throw b_(a);const n=yl(c);return this._addSvgIconConfig(e,t,new Ja("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new Ja(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(p.q3G.HTML,t);if(!l)throw b_(t);const c=yl(l);return this._addSvgIconSetConfig(e,new Ja("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(p.q3G.RESOURCE_URL,e);if(!t)throw __(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(od(a)):this._loadSvgIconFromConfig(new Ja(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>od(l)))}getNamedSvgIcon(e,t=""){const a=Hh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(is(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(od(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>od(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Dh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const o=`Loading icon set URL: ${this._sanitizer.sanitize(p.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(o)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw is(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(yl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(yl("")),a=e.attributes;for(let l=0;lyl(o)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,bl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Hh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let a=0;ar?r.pathname+r.search:""}}}),dA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],y_=dA.map(s=>`[${s}]`).join(", "),sd=/^url\(['"]?#(.*?)['"]?\)$/;let Ph=(()=>{class s extends cA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=at(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(y_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),o=i?i.match(sd):null;if(o){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Ut.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ns),p.$8M("aria-hidden"),p.Y36(HE),p.Y36(p.qLn),p.Y36(DE,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),p.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[p.qOj],ngContentSelectors:g_,decls:1,vars:0,template:function(e,t){1&e&&(p.F$t(),p.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),s})(),yr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();function xn(s){return!!s&&(s instanceof Vi.y||(0,An.m)(s.lift)&&(0,An.m)(s.subscribe))}var vl=x(6063);class uA extends Pe.x{constructor(r=1/0,e=1/0,t=vl.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew uA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class Al{}let v_=(()=>{class s extends Al{getTranslation(e){return(0,De.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Rh{}let Ih=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function ld(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let a,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!ld(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=s.length)==r.length){for(l=0;l{ia(r[t])?t in s?e[t]=A_(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class xl{}let x_=(()=>{class s extends xl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!ta(e)||!ta(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return ta(c)?c:a}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Tl{}let T_=(()=>{class s extends Tl{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class kh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new p.vpe,this.onLangChange=new p.vpe,this.onDefaultLangChange=new p.vpe}}const Vh=new p.OlP("USE_STORE"),El=new p.OlP("USE_DEFAULT_LANG"),Bh=new p.OlP("DEFAULT_LANGUAGE"),cd=new p.OlP("USE_EXTEND");let Xi=(()=>{class s{constructor(e,t,a,l,c,n=!0,i=!1,o=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=o,this.pending=!1,this._onTranslationChange=new p.vpe,this._onLangChange=new p.vpe,this._onDefaultLangChange=new p.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(w_(1),(0,Ut.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),w_(1),(0,Ut.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?A_(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),xn(c[i])&&(n=!0);return n?Dh(t.map(o=>xn(c[o])?c[o]:(0,De.of)(c[o]))).pipe((0,ze.U)(o=>{let d={};return o.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,zi.b)(a=>xn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return xn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,Rr.z)(Ir(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Hi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,Rr.z)(Ir(()=>this.get(e,t)),this.onLangChange.pipe((0,Hi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return xn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(xn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(kh),p.LFG(Al),p.LFG(Tl),p.LFG(xl),p.LFG(Rh),p.LFG(El),p.LFG(Vh),p.LFG(cd),p.LFG(Bh))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Ka=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);xn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(ld(e,this.lastKey)&&ld(t,this.lastParams))return this.value;let a;if(ta(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi,16),p.Y36(p.sBO,16))},s.\u0275pipe=p.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Sl=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:Al,useClass:v_},e.compiler||{provide:Tl,useClass:T_},e.parser||{provide:xl,useClass:x_},e.missingTranslationHandler||{provide:Rh,useClass:Ih},kh,{provide:Vh,useValue:e.isolate},{provide:El,useValue:e.useDefaultLang},{provide:cd,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},Xi]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:Al,useClass:v_},e.compiler||{provide:Tl,useClass:T_},e.parser||{provide:xl,useClass:x_},e.missingTranslationHandler||{provide:Rh,useClass:Ih},{provide:Vh,useValue:e.isolate},{provide:El,useValue:e.useDefaultLang},{provide:cd,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},Xi]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Oh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Zn,ea,yr,$n,Sl,T.ez]}),s})();function hA(s,r){}class Ml{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 E_=(()=>{class s extends za{constructor(e,t,a,l,c,n,i,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=ko(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ko();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ko())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Ml),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&p.Gf(lh,7),2&e){let a;p.iGM(a=p.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&p.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,hA,0,0,"ng-template",0)},dependencies:[lh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class Lh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Pe.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Un(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const S_=new p.OlP("DialogScrollStrategy"),pA=new p.OlP("DialogData"),fA=new p.OlP("DefaultDialogConfig"),mA={provide:S_,deps:[xi],useFactory:function gA(s){return()=>s.scrollStrategies.block()}};let M_=0,Fh=(()=>{class s{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Ir(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Ml,...t}).id=t.id||"cdk-dialog-"+M_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Lh(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){jh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Go({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Ml,useValue:a},{provide:Lh,useValue:t},{provide:li,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=E_;const i=new dl(n,a.viewContainerRef,p.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof p.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new sh(e,null,n,c))}else{const n=a.attachComponentPortal(new dl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:pA,useValue:e.data},{provide:Lh,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Wn,null,p.XFs.Optional))&&c.push({provide:Wn,useValue:{value:e.direction,change:(0,De.of)()}}),p.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xi),p.LFG(p.zs3),p.LFG(fA,8),p.LFG(s,12),p.LFG(Zr),p.LFG(S_))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function jh(s,r){let e=s.length;for(;e--;)r(s[e])}let _A=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Fh,mA],imports:[Wa,Kr,Fc,Kr]}),s})();function D_(s,r){}const rs={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},bA={dialogContainer:ii("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",Hm([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ya("@*",Yo(),{optional:!0})]),rs),_t("* => void, * => exit",Hm([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ya("@*",Yo(),{optional:!0})]),rs)])};class Dl{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=rs.params.enterAnimationDuration,this.exitAnimationDuration=rs.params.exitAnimationDuration}}let Nh=(()=>{class s extends E_{constructor(e,t,a,l,c,n,i,o){super(e,t,a,l,c,n,i,o),this._animationStateChanged=new p.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Dl),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],features:[p.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),zh=(()=>{class s extends Nh{constructor(e,t,a,l,c,n,i,o,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||rs.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||rs.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Dl),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(p.sBO),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&p.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(p.Ikx("id",t._config.id),p.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),p.d8E("@dialogContainer",t._getAnimationState()))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,D_,0,0,"ng-template",0)},dependencies:[lh],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:[bA.dialogContainer]}}),s})();class as{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Pe.x,this._beforeClosed=new Pe.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Kt.h)(a=>"opened"===a.state),(0,Ut.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Kt.h)(a=>"closed"===a.state),(0,Ut.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,cn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Kt.h)(a=>27===a.keyCode&&!this.disableClose&&!Un(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Gh(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Kt.h)(e=>"closing"===e.state),(0,Ut.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const CA=new p.OlP("MatDialogData"),yA=new p.OlP("mat-dialog-default-options"),dd=new p.OlP("mat-dialog-scroll-strategy"),os={provide:dd,deps:[xi],useFactory:function H_(s){return()=>s.scrollStrategies.block()}};let P_=0,wA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=o,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Ir(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(Fh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Dl,...t}).id=t.id||`${this._idPrefix}${P_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dl,useValue:t},{provide:Ml,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ss=(()=>{class s extends wA{constructor(e,t,a,l,c,n,i,o){super(e,t,l,n,i,c,as,zh,CA,o)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xi),p.LFG(p.zs3),p.LFG(T.Ye,8),p.LFG(yA,8),p.LFG(dd),p.LFG(s,12),p.LFG(Zr),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),R_=0,k_=(()=>{class s{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+R_++}ngOnInit(){this._dialogRef||(this._dialogRef=function vA(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as,8),p.Y36(p.SBq),p.Y36(ss))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&p.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),Hl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),V_=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),ls=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[ss,os],imports:[_A,Wa,Kr,We,We]}),s})();function hd(){const s=new Dl;return s.disableClose=!0,s.autoFocus=!1,s}function cs(s,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class G_{static passwordMatchValidator(r){const e=r.get("passwordCtrl").value,t=r.get("passwordAgainCtrl").value;return r.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(r){return e=>{if(!e.value)return null;let t=0;for(const a of r)t+=a.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Wi=(()=>{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let a=null;for(const l of t)l&&!a&&(a=l[e]);return a}get(...e){let t;if(""!==this.branding){const a=this.instanceConfig.brandings[this.branding];for(let l=0;l{class s{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(_i),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=cs("idphint",location.search.substring(1));n&&(c.idphint=n)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(a=>a?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Kt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Kt.h)(e=>e instanceof Lr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const a of t)if(e.startsWith(a))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(a=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!a||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(Wi),p.LFG(ss),p.LFG(cr),p.LFG(Wh.Ct))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$h=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(p.TgZ(0,"h2",0),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Hl,Ka]}),s})(),gd=(()=>{class s{constructor(e,t,a,l,c,n){this.authService=e,this.storeService=t,this.authResolver=a,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=hd();this.dialog.open($h,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const a of e){const l=a.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(U_),p.LFG(Wi),p.LFG(df),p.LFG(rt),p.LFG(ss),p.LFG(_i))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),md=(()=>{class s{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ns),p.LFG(ai))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Yh=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",2)(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.close()}),p._uU(9),p.ALo(10,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),p.xp6(5),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[k_,Hl,V_,qc,Ka]}),s})(),q_=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qh=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new p.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Xi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),W_=(()=>{class s{constructor(e,t,a,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const a=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=hd();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Yh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,_n._)(n):l?void this.notificator.showRPCError(i):(0,_n._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(U_),p.LFG(q_),p.LFG(Qh),p.LFG(Wi),p.LFG(ss),p.LFG(gd))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),GA=(()=>{class s{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qh),p.LFG(U_),p.LFG(Wi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),_d=(()=>{class s{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(cr),p.LFG(Wi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Jh=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s}),s})(),na=(()=>{class s extends Jh{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,features:[p.qOj]}),s})();const Li=new p.OlP("NgValueAccessor"),$A={provide:Li,useExisting:(0,p.Gpc)(()=>pi),multi:!0},YA=new p.OlP("CompositionEventMode");let pi=(()=>{class s extends Jh{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Y_(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq),p.Y36(YA,8))},s.\u0275dir=p.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&p.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[p._Bn([$A]),p.qOj]}),s})();function ra(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function Q_(s){return null!=s&&"number"==typeof s.length}const bi=new p.OlP("NgValidators"),Za=new p.OlP("NgAsyncValidators"),J_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class us{static min(r){return function hs(s){return r=>{if(ra(r.value)||ra(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(ra(r.value)||ra(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return bd(r)}static requiredTrue(r){return function Z_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Zh(s){return ra(s.value)||J_.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function X_(s){return r=>ra(r.value)||!Q_(r.value)?null:r.value.lengthQ_(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function Xa(s){if(!s)return Cd;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(ra(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return ip(r)}static composeAsync(r){return rp(r)}}function bd(s){return ra(s.value)?{required:!0}:null}function Cd(s){return null}function yd(s){return null!=s}function Xh(s){return(0,p.QGY)(s)?(0,yi.D)(s):s}function ep(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Pl(s,r){return r.map(e=>e(s))}function QA(s){return s.map(r=>function tp(s){return!s.validate}(r)?r:e=>r.validate(e))}function ip(s){if(!s)return null;const r=s.filter(yd);return 0==r.length?null:function(e){return ep(Pl(e,r))}}function np(s){return null!=s?ip(QA(s)):null}function rp(s){if(!s)return null;const r=s.filter(yd);return 0==r.length?null:function(e){return Dh(Pl(e,r).map(Xh)).pipe((0,ze.U)(ep))}}function aa(s){return null!=s?rp(QA(s)):null}function tb(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function ap(s){return s._rawValidators}function wd(s){return s._rawAsyncValidators}function ib(s){return s?Array.isArray(s)?s:[s]:[]}function vd(s,r){return Array.isArray(s)?s.includes(r):s===r}function JA(s,r){const e=ib(r);return ib(s).forEach(a=>{vd(e,a)||e.push(a)}),e}function nb(s,r){return ib(r).filter(e=>!vd(s,e))}class rb{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=np(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=aa(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Fi extends rb{get formDirective(){return null}get path(){return null}}class Tn extends rb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class op{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ad=(()=>{class s extends op{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Tn,2))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[p.qOj]}),s})(),sp=(()=>{class s extends op{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[p.qOj]}),s})();const Td="VALID",eo="INVALID",Il="PENDING",ps="DISABLED";function fs(s){return(gs(s)?s.validators:s)||null}function cp(s){return Array.isArray(s)?np(s):s||null}function Ed(s,r){return(gs(r)?r.asyncValidators:s)||null}function nx(s){return Array.isArray(s)?aa(s):s||null}function gs(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}function dp(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new p.vHH(1e3,"");if(!t[e])throw new p.vHH(1001,"")}function sb(s,r,e){s._forEachChild((t,a)=>{if(void 0===e[a])throw new p.vHH(1002,"")})}class kl{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=cp(this._rawValidators),this._composedAsyncValidatorFn=nx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Td}get invalid(){return this.status===eo}get pending(){return this.status==Il}get disabled(){return this.status===ps}get enabled(){return this.status!==ps}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=cp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=nx(r)}addValidators(r){this.setValidators(JA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(JA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(nb(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(nb(r,this._rawAsyncValidators))}hasValidator(r){return vd(this._rawValidators,r)}hasAsyncValidator(r){return vd(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Il,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=ps,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Td,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Td||this.status===Il)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ps:Td}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Il,this._hasOwnPendingAsyncValidator=!0;const e=Xh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new p.vpe,this.statusChanges=new p.vpe}_calculateStatus(){return this._allControlsDisabled()?ps:this.errors?eo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Il)?Il:this._anyControlsHaveStatus(eo)?eo:Td}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){gs(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class up extends kl{constructor(r,e,t){super(fs(e),Ed(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){sb(this,0,r),Object.keys(r).forEach(t=>{dp(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Sd(s,r){return[...r.path,s]}function Md(s,r){gp(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function uS(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&mp(s,r)})}(s,r),function lb(s,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function ox(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&mp(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function ax(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function pp(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Dd(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function fp(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function gp(s,r){const e=ap(s);null!==r.validator?s.setValidators(tb(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=wd(s);null!==r.asyncValidator?s.setAsyncValidators(tb(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const a=()=>s.updateValueAndValidity();fp(r._rawValidators,a),fp(r._rawAsyncValidators,a)}function Dd(s,r){let e=!1;if(null!==s){if(null!==r.validator){const a=ap(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const a=wd(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return fp(r._rawValidators,t),fp(r._rawAsyncValidators,t),e}function mp(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function sx(s,r){gp(s,r)}function bp(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function db(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yp(s,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===pi?e=l:function Cp(s){return Object.getPrototypeOf(s.constructor)===na}(l)?t=l:a=l}),a||t||e||null}const ub={provide:Fi,useExisting:(0,p.Gpc)(()=>ms)},Vl=(()=>Promise.resolve(null))();let ms=(()=>{class s extends Fi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.vpe,this.form=new up({},np(e),aa(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Md(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new up({});sx(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,db(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(bi,10),p.Y36(Za,10))},s.\u0275dir=p.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([ub]),p.qOj]}),s})();function vp(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function hb(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const to=class extends kl{constructor(r=null,e,t){super(fs(e),Ed(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gs(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hb(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){vp(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){vp(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){hb(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},pb=to,dx={provide:Tn,useExisting:(0,p.Gpc)(()=>xp)},mb=(()=>Promise.resolve(null))();let xp=(()=>{class s extends Tn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new to,this._registered=!1,this.update=new p.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=yp(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Md(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){mb.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,p.D6c)(t);mb.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Sd(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,9),p.Y36(bi,10),p.Y36(Za,10),p.Y36(Li,10),p.Y36(p.sBO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p._Bn([dx]),p.qOj,p.TTD]}),s})(),px=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Hd=new p.OlP("NgModelWithFormControlWarning"),Pd={provide:Fi,useExisting:(0,p.Gpc)(()=>sa)};let sa=(()=>{class s extends Fi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Md(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){pp(e.control||null,e,!1),function wp(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,db(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,a=this.form.get(e.path);t!==a&&(pp(t||null,e),(s=>s instanceof to)(a)&&(Md(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);sx(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function En(s,r){return Dd(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gp(this.form,this),this._oldForm&&Dd(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(bi,10),p.Y36(Za,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([Pd]),p.qOj,p.TTD]}),s})();const mS={provide:Tn,useExisting:(0,p.Gpc)(()=>xb)};let xb=(()=>{class s extends Tn{constructor(e,t,a,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new p.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=yp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),bp(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Sd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return s._ngModelWarningSentOnce=!1,s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,13),p.Y36(bi,10),p.Y36(Za,10),p.Y36(Li,10),p.Y36(Hd,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[p._Bn([mS]),p.qOj,p.TTD]}),s})(),la=(()=>{class s{constructor(){this._validator=Cd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Cd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,features:[p.TTD]}),s})();const _x={provide:bi,useExisting:(0,p.Gpc)(()=>no),multi:!0};let no=(()=>{class s extends la{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.D6c,this.createValidator=e=>bd}enabled(e){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[p._Bn([_x]),p.qOj]}),s})(),Ip=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[px]}),s})(),kp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ip]}),s})(),ao=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:Hd,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ip]}),s})();class Vp extends kl{constructor(r,e,t){super(fs(e),Ed(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){let a=this._adjustIndex(r);a<0&&(a=0),this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){sb(this,0,r),r.forEach((t,a)=>{dp(this,!1,a),this.at(a).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((t,a)=>{this.at(a)&&this.at(a).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}}function Bp(s){return!!s&&(void 0!==s.asyncValidators||void 0!==s.validators||void 0!==s.updateOn)}let Op=(()=>{class s{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new s;return e.useNonNullable=!0,e}group(e,t=null){const a=this._reduceControls(e);let l={};return Bp(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new up(a,l)}control(e,t,a){let l={};return this.useNonNullable?(Bp(t)?l=t:(l.validators=t,l.asyncValidators=a),new to(e,{...l,nonNullable:!0})):new to(e,t,a)}array(e,t,a){const l=e.map(c=>this._createControl(c));return new Vp(l,t,a)}_reduceControls(e){const t={};return Object.keys(e).forEach(a=>{t[a]=this._createControl(e[a])}),t}_createControl(e){return e instanceof to||e instanceof kl?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:ao}),s})(),Ax=(()=>{class s extends Op{group(e,t=null){return super.group(e,t)}control(e,t,a){return super.control(e,t,a)}array(e,t,a){return super.array(e,t,a)}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:ao}),s})();const xx=yn({passive:!0});let Tx=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zt.E;const t=ti(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new Pe.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,xx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,xx)}}),l}stopMonitoring(e){const t=ti(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ex=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Sx=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),ES=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let SS=0;const Mx=al(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Pe.x}});let Dx=(()=>{class s extends Mx{constructor(e,t,a,l,c,n,i,o,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=o,this._formField=u,this._uid="mat-input-"+SS++,this.focused=!1,this.stateChanges=new Pe.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(P=>Ry().has(P)),this._iOSKeyupListener=P=>{const z=P.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=at(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(us.required)??!1}set required(e){this._required=at(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ry().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=at(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ES.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ei),p.Y36(Tn,10),p.Y36(ms,8),p.Y36(sa,8),p.Y36(zc),p.Y36(Sx,10),p.Y36(Tx),p.Y36(p.R0b),p.Y36(wh,8))},s.\u0275dir=p.lG2({type:s,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(e,t){1&e&&p.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(p.Ikx("disabled",t.disabled)("required",t.required),p.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),p.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[p._Bn([{provide:fl,useExisting:s}]),p.qOj,p.TTD]}),s})(),Lp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[zc],imports:[Ex,Ko,We,Ex,Ko]}),s})();function MS(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let DS=(()=>{class s{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as),p.Y36(Xi),p.Y36(Qh),p.Y36(Rt),p.Y36(Wi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"input",2,3),p.NdJ("ngModelChange",function(l){return t.subject=l}),p.qZA(),p.YNc(10,MS,3,3,"mat-error",4),p.qZA(),p.TgZ(11,"mat-form-field")(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"textarea",5),p.NdJ("ngModelChange",function(l){return t.message=l}),p.ALo(16,"translate"),p._uU(17," "),p.qZA(),p.TgZ(18,"mat-hint"),p._uU(19),p.ALo(20,"translate"),p.qZA()()(),p.TgZ(21,"div",6)(22,"div",7)(23,"button",8),p.NdJ("click",function(){return t.close()}),p._uU(24),p.ALo(25,"translate"),p.qZA(),p.TgZ(26,"button",9),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(27),p.ALo(28,"translate"),p.qZA()()()),2&e){const a=p.MAs(9);p.xp6(1),p.Oqu(p.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),p.xp6(5),p.Oqu(p.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),p.xp6(2),p.Q6J("ngModel",t.subject),p.xp6(2),p.Q6J("ngIf",a.invalid),p.xp6(3),p.Oqu(p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",t.message),p.xp6(4),p.Oqu(p.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),p.xp6(5),p.hij(" ",p.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),p.xp6(2),p.Q6J("disabled",a.invalid),p.xp6(1),p.hij(" ",p.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,pi,Ad,no,xp,qc,Ch,vh,hi,gl,Dx,k_,Hl,V_,Ka],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),s})(),HS=(()=>{class s{transform(e,t,a){return e[`${a}_${t}`]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"localisedText",type:s,pure:!0}),s})(),PS=(()=>{class s{transform(e,t){return e["link_"+t]||e.link_en}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"localisedLink",type:s,pure:!0}),s})(),h=(()=>{class s{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"footerLogoPath",type:s,pure:!0}),s})();function g(s,r){if(1&s&&(p.TgZ(0,"a",13),p.ALo(1,"localisedLink"),p._UZ(2,"img",14),p.ALo(3,"footerLogoPath"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,2,e,t.language),p.LSH),p.xp6(2),p.s9C("src",p.lcZ(3,5,e.logo),p.LSH)}}function m(s,r){if(1&s&&(p.TgZ(0,"span"),p._UZ(1,"img",14),p.ALo(2,"footerLogoPath"),p.qZA()),2&s){const e=p.oxw().$implicit;p.xp6(1),p.s9C("src",p.lcZ(2,1,e.logo),p.LSH)}}function _(s,r){if(1&s&&(p.TgZ(0,"div"),p.YNc(1,g,4,7,"a",11),p.ALo(2,"localisedLink"),p.YNc(3,m,3,3,"span",12),p.ALo(4,"localisedLink"),p.qZA()),2&s){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",p.xi3(2,2,e,t.language)),p.xp6(2),p.Q6J("ngIf",!p.xi3(4,5,e,t.language))}}const C=function(s){return{"min-height":s}};function w(s,r){if(1&s&&(p.TgZ(0,"div",10),p.YNc(1,_,5,8,"div",5),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,C,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}const v=function(s){return{color:s}};function E(s,r){if(1&s&&(p.TgZ(0,"i",20),p._uU(1),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(2,v,t.linksTextColor)),p.xp6(1),p.hij(" ",e.icon," ")}}function S(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"span",21),p.NdJ("click",function(){p.CHM(e);const a=p.oxw().$implicit,l=p.oxw(3);return p.KtG(l.openDialog(a.dialog))}),p._uU(1),p.ALo(2,"localisedText"),p.qZA()}if(2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,v,t.linksTextColor)),p.xp6(1),p.hij("",p.Dn7(2,2,e,t.language,"label")," ")}}function H(s,r){if(1&s&&(p.TgZ(0,"a",22),p.ALo(1,"localisedLink"),p._uU(2),p.ALo(3,"localisedText"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,3,e,t.language),p.LSH)("ngStyle",p.VKq(10,v,t.linksTextColor)),p.xp6(2),p.Oqu(p.Dn7(3,6,e,t.language,"label"))}}function R(s,r){if(1&s&&(p.TgZ(0,"span",10),p._uU(1),p.ALo(2,"localisedText"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,v,t.linksTextColor)),p.xp6(1),p.Oqu(p.Dn7(2,2,e,t.language,"label"))}}function L(s,r){if(1&s&&(p.TgZ(0,"div",16),p.YNc(1,E,2,4,"i",17),p.YNc(2,S,3,8,"span",18),p.YNc(3,H,4,12,"a",19),p.ALo(4,"localisedLink"),p.YNc(5,R,3,8,"span",9),p.ALo(6,"localisedLink"),p.qZA()),2&s){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",e.icon),p.xp6(1),p.Q6J("ngIf",e.dialog),p.xp6(1),p.Q6J("ngIf",p.xi3(4,4,e,t.language)&&!e.dialog),p.xp6(2),p.Q6J("ngIf",!p.xi3(6,7,e,t.language)&&!e.dialog)}}const X=function(s){return{height:s}};function re(s,r){if(1&s&&(p.TgZ(0,"div",10),p.YNc(1,L,7,10,"div",15),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,X,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}function me(s,r){if(1&s&&(p.TgZ(0,"div",7)(1,"h6",8),p._uU(2),p.ALo(3,"localisedText"),p.qZA(),p.YNc(4,w,2,4,"div",9),p.YNc(5,re,2,4,"div",9),p.qZA()),2&s){const e=r.$implicit,t=p.oxw();p.ekj("my-auto",t.containsLogos),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,v,t.headersTextColor)),p.xp6(1),p.hij(" ",p.Dn7(3,6,e,t.language,"title")," "),p.xp6(2),p.Q6J("ngIf",e.logos),p.xp6(1),p.Q6J("ngIf",e.elements&&!e.logos)}}function Ae(s,r){if(1&s&&(p.TgZ(0,"span")(1,"a",6),p._uU(2),p.qZA()()),2&s){const e=r.$implicit,t=r.index,a=p.oxw();p.xp6(1),p.Q6J("href",e.url,p.LSH)("ngStyle",p.VKq(3,v,a.copyrightTextColor)),p.xp6(1),p.Oqu(t?", "+e.name:e.name)}}const He=function(s){return{background:s}};let je=(()=>{class s{constructor(e,t,a){this.storeService=e,this.translateService=t,this.dialog=a,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=hd();"reportIssue"===e&&(t.width="550px",this.dialog.open(DS,t))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(Xi),p.Y36(ss))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(p.TgZ(0,"footer",0)(1,"div",1),p.YNc(2,me,6,12,"div",2),p.qZA(),p._UZ(3,"hr",3),p.TgZ(4,"div",4),p._uU(5),p.YNc(6,Ae,3,5,"span",5),p._uU(7," Version "),p.TgZ(8,"a",6),p._uU(9),p.qZA()()()),2&e&&(p.Q6J("ngStyle",p.VKq(8,He,t.bgColor)),p.xp6(2),p.Q6J("ngForOf",t.footerColumns),p.xp6(2),p.Q6J("ngStyle",p.VKq(10,v,t.copyrightTextColor)),p.xp6(1),p.hij(" \xa9 ",t.currentYear," Copyright: "),p.xp6(1),p.Q6J("ngForOf",t.copyrightItems),p.xp6(2),p.Q6J("href",t.githubRepository,p.LSH)("ngStyle",p.VKq(12,v,t.copyrightTextColor)),p.xp6(1),p.Oqu(t.version))},dependencies:[T.sg,T.O5,T.PC,HS,PS,h],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),s})();const Ze=["*",[["mat-toolbar-row"]]],ye=["*","mat-toolbar-row"],$e=La(class{constructor(s){this._elementRef=s}});let bt=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),s})(),jt=(()=>{class s extends $e{constructor(e,t,a){super(e),this._platform=t,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ei),p.Y36(T.K0))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-toolbar"]],contentQueries:function(e,t,a){if(1&e&&p.Suo(a,bt,5),2&e){let l;p.iGM(l=p.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[p.qOj],ngContentSelectors:ye,decls:2,vars:0,template:function(e,t){1&e&&(p.F$t(Ze),p.Hsn(0),p.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),s})(),Vd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();function Fp(s,r){1&s&&(p.TgZ(0,"div",10)(1,"span",11),p._uU(2," ~ \u{1f5f2}\xa0 "),p.qZA(),p.TgZ(3,"span",12),p._uU(4," DEVEL "),p.qZA(),p.TgZ(5,"span",11),p._uU(6," \xa0\u{1f5f2} ~ "),p.qZA()())}const jp=function(s){return{background:s}},Ol=function(s){return{color:s}};let Np=(()=>{class s{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.label=this.storeService.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`),this.isDevel=this.storeService.get("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(ai),p.Y36(_d),p.Y36(Xi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(p.TgZ(0,"mat-toolbar",0)(1,"div",1),p._UZ(2,"a",2),p.TgZ(3,"p",3),p._uU(4),p.qZA()(),p.YNc(5,Fp,7,0,"div",4),p.TgZ(6,"div",5)(7,"button",6)(8,"mat-icon",7),p._uU(9," language "),p.qZA()(),p.TgZ(10,"mat-menu",null,8)(12,"button",9),p.NdJ("click",function(){return t.changeLanguage()}),p._uU(13),p.ALo(14,"translate"),p.qZA()()()()),2&e){const a=p.MAs(11);p.Q6J("ngStyle",p.VKq(11,jp,t.bgColor)),p.xp6(2),p.Q6J("innerHTML",t.logo,p.oJD),p.xp6(1),p.Q6J("ngStyle",p.VKq(13,Ol,t.textColor)),p.xp6(1),p.Oqu(t.label),p.xp6(1),p.Q6J("ngIf",t.isDevel),p.xp6(1),p.Q6J("ngStyle",p.VKq(15,Ol,t.textColor)),p.xp6(1),p.Q6J("matMenuTriggerFor",a),p.xp6(1),p.Q6J("ngStyle",p.VKq(17,Ol,t.iconColor)),p.xp6(5),p.hij(" ",p.lcZ(14,9,"HEADER.LANGUAGE")," ")}},dependencies:[T.O5,T.PC,Ph,qc,tA,Qa,rA,jt,Ka],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),s})();function zp(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function Gp(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}const iH=La(class{constructor(s){this._elementRef=s}},"primary"),nH=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function rH(){return{diameter:100}}});class ca extends iH{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const o=ca._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(t.head)||o.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=sn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=sn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,sn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Io(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_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(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=ca._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ca._diameters=new WeakMap,ca.\u0275fac=function(r){return new(r||ca)(p.Y36(p.SBq),p.Y36(ei),p.Y36(T.K0,8),p.Y36(p.QbO,8),p.Y36(nH),p.Y36(p.sBO),p.Y36(zo),p.Y36(p.R0b))},ca.\u0275cmp=p.Xpm({type:ca,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(p.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.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(r,e){1&r&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,zp,1,11,"circle",2),p.YNc(3,Gp,1,9,"circle",3),p.qZA()),2&r&&(p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===e.mode),p.uIk("viewBox",e._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.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 qp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,T.ez,We]}),s})(),Hx=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[yr,T.ez]}),s})(),oH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ko,Xo,ao,Lp,Sl,qp,yr,Hx]}),s})();class sH{isErrorState(r){return!(!r?.invalid||!r?.dirty)}}const lH=(s,r,e,t=500)=>a=>(0,rh.H)(t).pipe((0,Hi.w)(()=>(e.dontHandleErrorForNext(),s&&"No namespace"!==s?r.checkPasswordStrength({password:a.value,namespace:s}):(0,De.of)(null))),(0,ze.U)(()=>null),(0,M.K)(l=>{const c=l.error,n={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,De.of)(n)}));function cH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," info "),p.qZA())}function dH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," warning "),p.qZA())}function uH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," dangerous "),p.qZA())}function hH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," check_circle "),p.qZA())}const pH=["*"];let Px=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:pH,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.YNc(1,cH,2,0,"mat-icon",1),p.YNc(2,dH,2,0,"mat-icon",1),p.YNc(3,uH,2,0,"mat-icon",1),p.YNc(4,hH,2,0,"mat-icon",1),p.Hsn(5),p.qZA()),2&e&&(p.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","warn"===t.alert_type),p.xp6(1),p.Q6J("ngIf","error"===t.alert_type),p.xp6(1),p.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ph,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})();function fH(s,r){1&s&&p._UZ(0,"mat-spinner",12),2&s&&p.Q6J("diameter",18)}function gH(s,r){if(1&s&&(p.TgZ(0,"mat-icon",13),p._uU(1," error "),p.qZA()),2&s){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function mH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function _H(s,r){if(1&s&&(p.TgZ(0,"mat-error",14),p._uU(1),p.qZA()),2&s){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip()),p.xp6(1),p.Oqu(e.getErrorTooltip())}}function bH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function CH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let yH=(()=>{class s{constructor(e,t,a){this.translator=e,this.usersManagerService=t,this.store=a,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new sH,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(a=>"preferredLanguage"===a.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi),p.Y36(ar),p.Y36(Wi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[p.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"mat-form-field",1),p._UZ(2,"input",2),p.ALo(3,"translate"),p.YNc(4,fH,1,1,"mat-spinner",3),p.TgZ(5,"mat-icon",4),p.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),p._uU(6),p.qZA(),p.YNc(7,gH,2,2,"mat-icon",5),p.YNc(8,mH,3,3,"mat-error",6),p.YNc(9,_H,2,2,"mat-error",7),p.qZA(),p.TgZ(10,"mat-form-field",8)(11,"mat-label"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p._UZ(14,"input",9),p.TgZ(15,"mat-icon",4),p.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),p._uU(16),p.qZA(),p.YNc(17,bH,3,3,"mat-error",6),p.YNc(18,CH,3,3,"mat-error",6),p.qZA(),p.TgZ(19,"perun-web-apps-alert",10),p._UZ(20,"div",11),p.qZA()()),2&e&&(p.Q6J("formGroup",t.formGroup),p.xp6(1),p.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),p.xp6(1),p.s9C("placeholder",p.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),p.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),p.xp6(2),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),p.xp6(2),p.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),p.xp6(3),p.Oqu(p.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),p.xp6(2),p.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),p.xp6(2),p.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),p.xp6(2),p.Q6J("innerHTML",t.passwordRequirement,p.oJD))},dependencies:[T.O5,Ch,vh,gl,Wm,Fv,pi,Ad,sp,no,sa,xb,Dx,ca,Ph,Px,Ka],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),s})();function wH(s,r){if(1&s&&p._UZ(0,"perun-web-apps-password-form",4),2&s){const e=p.oxw();p.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function vH(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div")(1,"button",5),p.NdJ("click",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.onSubmit())}),p._uU(2),p.ALo(3,"translate"),p.qZA()()}if(2&s){const e=p.oxw();p.xp6(1),p.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),p.xp6(1),p.hij(" ",p.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function AH(s,r){if(1&s&&(p.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function xH(s,r){1&s&&p._UZ(0,"mat-spinner",8)}let TH=(()=>{class s{constructor(e,t,a,l,c){this.storeService=e,this.translate=t,this.apiRequestConfiguration=a,this.usersService=l,this._formBuilder=c,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(e=>{this.language=e.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new pb("",us.required,[lH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new pb("",us.required)},{validators:G_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(Xi),p.Y36(q_),p.Y36(ar),p.Y36(Ax))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:4,vars:4,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(p.YNc(0,wH,1,3,"perun-web-apps-password-form",0),p.YNc(1,vH,4,4,"div",1),p.YNc(2,AH,4,3,"div",2),p.YNc(3,xH,1,0,"mat-spinner",3)),2&e&&(p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading))},dependencies:[T.O5,qc,ca,sp,sa,Px,yH,Ka]}),s})(),EH=(()=>{class s{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(p.TgZ(0,"perun-web-apps-alert",0),p._UZ(1,"div",1),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.invalidRequestMessage,p.oJD))},dependencies:[Px],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})();function SH(s,r){if(1&s&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9)(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function MH(s,r){if(1&s&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9)(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function DH(s,r){if(1&s&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-password-reset-form",10)),2&s){const e=p.oxw();p.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function HH(s,r){1&s&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-invalid-request-alert"))}let PH=(()=>{class s{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(ai))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:14,vars:8,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p._UZ(1,"div",0),p.TgZ(2,"div",1)(3,"h1"),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.O4$(),p.TgZ(6,"svg",2)(7,"g",3),p._UZ(8,"path",4)(9,"path",5),p.qZA()()(),p.YNc(10,SH,4,4,"p",6),p.YNc(11,MH,4,4,"p",6),p.YNc(12,DH,1,5,"perun-web-apps-password-reset-form",7),p.YNc(13,HH,1,0,"perun-web-apps-invalid-request-alert",8),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.passwordResetLogo,p.oJD),p.xp6(3),p.hij(" ",p.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),p.xp6(6),p.Q6J("ngIf",t.login),p.xp6(1),p.Q6J("ngIf",t.namespace),p.xp6(1),p.Q6J("ngIf",t.validToken||t.authWithoutToken),p.xp6(1),p.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[T.O5,TH,EH,Ka],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),s})();const RH=["footer"],IH=function(s){return{background:s}},kH=function(s){return{"min-height":s}};let VH=(()=>{class s{constructor(e,t,a,l,c,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=a,this.translateService=l,this.store=c,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode=t.includes("activation")?"activation":"reset",this.namespace=cs("namespace",t),t.includes("token")?(this.token=cs("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(a=>{const l=a.find(c=>c.friendlyNameParameter===this.namespace);this.login=l?String(l.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ss),p.Y36(ar),p.Y36(_d),p.Y36(Xi),p.Y36(Wi),p.Y36(Mr),p.Y36(p.sBO))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&p.Gf(RH,5),2&e){let a;p.iGM(a=p.CRH())&&(t.footer=a.first)}},decls:8,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-header",0),p.TgZ(2,"div",1)(3,"div",2),p._UZ(4,"perun-web-apps-password-reset-page",3),p.qZA(),p.TgZ(5,"div",null,4),p._UZ(7,"perun-web-apps-footer"),p.qZA()()()),2&e&&(p.xp6(2),p.Q6J("ngStyle",p.VKq(8,IH,t.contentBackgroundColor)),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,kH,t.contentHeight)),p.xp6(1),p.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},dependencies:[T.PC,je,Np,PH],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),s})();class BH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}function RS(s){return new p.vHH(3e3,!1)}function _P(){return typeof window<"u"&&typeof window.document<"u"}function Rx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bs(s){switch(s.length){case 0:return new Qo;case 1:return s[0];default:return new td(s)}}function IS(s,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,o=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&o||new Map;d.forEach((P,z)=>{let ae=z,ke=P;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(z);break;case _r:ke=l.get(z);break;default:ke=r.normalizeStyleValue(z,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),o=b,i=u}),c.length)throw function aP(s){return new p.vHH(3502,!1)}();return n}function Ix(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&kx(e,"start",s)));break;case"done":s.onDone(()=>t(e&&kx(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&kx(e,"destroy",s)))}}function kx(s,r,e){const l=Vx(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function Vx(s,r,e,t,a="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Sn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function kS(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let Bx=(s,r)=>!1,VS=(s,r,e)=>[],BS=null;function Ox(s){const r=s.parentNode||s.host;return r===BS?null:r}(Rx()||typeof Element<"u")&&(_P()?(BS=(()=>document.documentElement)(),Bx=(s,r)=>{for(;r;){if(r===s)return!0;r=Ox(r)}return!1}):Bx=(s,r)=>s.contains(r),VS=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Fl=null,OS=!1;const LS=Bx,FS=VS;let jS=(()=>{class s{validateStyleProperty(e){return function CP(s){Fl||(Fl=function yP(){return typeof document<"u"?document.body:null}()||{},OS=!!Fl.style&&"WebkitAppearance"in Fl.style);let r=!0;return Fl.style&&!function bP(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Fl.style,!r&&OS&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Fl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return LS(e,t)}getParentElement(e){return Ox(e)}query(e,t,a){return FS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new Qo(a,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Lx=(()=>{class s{}return s.NOOP=new jS,s})();const Fx="ng-enter",Ib="ng-leave",kb="ng-trigger",Vb=".ng-trigger",zS="ng-animating",jx=".ng-animating";function Cs(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Nx(parseFloat(r[1]),r[2])}function Nx(s,r){return"s"===r?1e3*s:s}function Bb(s,r,e){return s.hasOwnProperty("duration")?s:function AP(s,r,e){let a,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(RS()),{duration:0,delay:0,easing:""};a=Nx(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Nx(parseFloat(i),n[4]));const o=n[5];o&&(c=o)}else a=s;if(!e){let n=!1,i=r.length;a<0&&(r.push(function OH(){return new p.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function LH(){return new p.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,RS())}return{duration:a,delay:l,easing:c}}(s,r,e)}function Wp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GS(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function ys(s,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of s)r.set(t,a);return r}function qS(s,r,e){return e?r+":"+e+";":""}function WS(s){let r="";for(let e=0;e{const l=Gx(a);e&&!e.has(a)&&e.set(a,s.style[l]),s.style[l]=t}),Rx()&&WS(s))}function jl(s,r){s.style&&(r.forEach((e,t)=>{const a=Gx(t);s.style[a]=""}),Rx()&&WS(s))}function $p(s){return Array.isArray(s)?1==s.length?s[0]:uh(s):s}const zx=new RegExp("{{\\s*(.+?)\\s*}}","g");function $S(s){let r=[];if("string"==typeof s){let e;for(;e=zx.exec(s);)r.push(e[1]);zx.lastIndex=0}return r}function Ob(s,r,e){const t=s.toString(),a=t.replace(zx,(l,c)=>{let n=r[c];return null==n&&(e.push(function jH(s){return new p.vHH(3003,!1)}()),n=""),n.toString()});return a==t?s:a}function Lb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const EP=/-+([a-z0-9])/g;function Gx(s){return s.replace(EP,(...r)=>r[1].toUpperCase())}function SP(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function NH(s){return new p.vHH(3004,!1)}()}}function YS(s,r){return window.getComputedStyle(s)[r]}function IP(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function kP(s,r,e){if(":"==s[0]){const i=function VP(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function eP(s){return new p.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(QS(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(QS(c,a))}(t,e,r)):e.push(s),e}const zb=new Set(["true","1"]),Gb=new Set(["false","0"]);function QS(s,r){const e=zb.has(s)||Gb.has(s),t=zb.has(r)||Gb.has(r);return(a,l)=>{let c="*"==s||s==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?zb.has(s):Gb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?zb.has(r):Gb.has(r)),c&&n}}const BP=new RegExp("s*:selfs*,?","g");function Ux(s,r,e,t){return new OP(s).build(r,e,t)}class OP{constructor(r){this._driver=r}build(r,e,t){const a=new jP(e);return this._resetContextStyleTimingState(a),Mn(this,$p(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function GH(){return new p.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,o=i.name;o.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=o}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function UH(){return new p.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{$S(i).forEach(o=>{c.hasOwnProperty(o)||l.add(o)})})}),l.size&&(Lb(l.values()),e.errors.push(function qH(s,r){return new p.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Mn(this,$p(r.animation),e);return{type:1,matchers:IP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Nl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Mn(this,t,e)),options:Nl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Mn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Nl(r.options)}}visitAnimate(r,e){const t=function zP(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return qx(Bb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=qx(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Bb(e,r);return qx(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const o={};t.easing&&(o.easing=t.easing),c=Fe(o)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===_r?t.push(n):e.errors.push(new p.vHH(3002,!1)):t.push(GS(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const o=e.collectedStyles.get(e.currentQuerySelector),d=o.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function $H(s,r,e,t,a){return new p.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&o.set(i,{startTime:l,endTime:a}),e.options&&function TP(s,r,e){const t=r.params||{},a=$S(s);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function FH(s){return new p.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function YH(){return new p.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,o=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function NP(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=P+z.delay+zt,z.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Mn(this,$p(r.animation),e),options:Nl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Nl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Nl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function LP(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(BP,"")),s=s.replace(/@\*/g,Vb).replace(/@\w+/g,e=>Vb+"-"+e.slice(1)).replace(/:animating/g,jx),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Sn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Mn(this,$p(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Nl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function ZH(){return new p.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Bb(r.timings,e.errors,!0);return{type:12,animation:Mn(this,$p(r.animation),e),timings:t,options:null}}}class jP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nl(s){return s?(s=Wp(s)).params&&(s.params=function FP(s){return s?Wp(s):null}(s.params)):s={},s}function qx(s,r,e){return{duration:s,delay:r,easing:e}}function Wx(s,r,e,t,a,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class Ub{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const qP=new RegExp(":enter","g"),$P=new RegExp(":leave","g");function $x(s,r,e,t,a,l=new Map,c=new Map,n,i,o=[]){return(new YP).buildKeyframes(s,r,e,t,a,l,c,n,i,o)}class YP{buildKeyframes(r,e,t,a,l,c,n,i,o,d=[]){o=o||new Ub;const u=new Yx(r,e,o,a,l,d,[]);u.options=i;const f=i.delay?Cs(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Mn(this,t,u);const b=u.timelines.filter(P=>P.containsAnimation());if(b.length&&n.size){let P;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){P=ae;break}}P&&!P.allowOnlyTimelineStyles()&&P.setStyles([n],null,u.errors,i)}return b.length?b.map(P=>P.buildKeyframes()):[Wx(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?Cs(t.duration):null,n=null!=t.delay?Cs(t.delay):null;return 0!==c&&r.forEach(i=>{const o=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,o.duration+o.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Mn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=qb);const c=Cs(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Mn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?Cs(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Mn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Bb(e.params?Ob(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?Cs(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((o,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,o);l&&u.delayNextStep(l),o===e.element&&(i=u.currentTimeline),Mn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Mn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const qb={};class Yx{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Wb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=Cs(t.duration)),null!=t.delay&&(a.delay=Cs(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Ob(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new Yx(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=qb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new QP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(qP,"."+this._enterClassName)).replace($P,"."+this._leaveClassName);let o=this._driver.query(this.element,r,1!=t);0!==t&&(o=t<0?o.slice(o.length+t,o.length):o.slice(0,t)),n.push(...o)}return!l&&0==n.length&&c.push(function XH(s){return new p.vHH(3014,!1)}()),n}}class Wb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Wb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function JP(s,r){const e=new Map;let t;return s.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,_r)}else ys(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const o=Ob(i,l,t);this._pendingStyles.set(n,o),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,o)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const o=ys(n,new Map,this._backFill);o.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||o.set("offset",i/this.duration),a.push(o)});const l=r.size?Lb(r.values()):[],c=e.size?Lb(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return Wx(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class QP extends Wb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=ys(r[0]);i.set("offset",0),l.push(i);const o=ys(r[0]);o.set("offset",ZS(n)),l.push(o);const d=r.length-1;for(let u=1;u<=d;u++){let f=ys(r[u]);const b=f.get("offset");f.set("offset",ZS((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return Wx(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function ZS(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class Qx{}const KP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ZP extends Qx{normalizePropertyName(r,e){return Gx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(KP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function zH(s,r){return new p.vHH(3005,!1)}())}return c+l}}function XS(s,r,e,t,a,l,c,n,i,o,d,u,f){return{type:0,element:s,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:o,postStyleProps:d,totalTime:u,errors:f}}const Jx={};class eM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function XP(s,r,e,t,a){return s.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,o,d){const u=[],f=this.ast.options&&this.ast.options.params||Jx,P=this.buildStyles(t,n&&n.params||Jx,u),z=i&&i.params||Jx,ae=this.buildStyles(a,z,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,Ar={params:eR(z,f),delay:this.ast.options?.delay},tr=d?[]:$x(r,e,this.ast.animation,l,c,P,ae,Ar,o,u);let en=0;if(tr.forEach(uo=>{en=Math.max(uo.duration+uo.delay,en)}),u.length)return XS(e,this._triggerName,t,a,zt,P,ae,[],[],lt,yt,en,u);tr.forEach(uo=>{const ho=uo.element,wD=Sn(lt,ho,new Set);uo.preStyleProps.forEach(Gl=>wD.add(Gl));const nf=Sn(yt,ho,new Set);uo.postStyleProps.forEach(Gl=>nf.add(Gl)),ho!==e&&ke.add(ho)});const co=Lb(ke.values());return XS(e,this._triggerName,t,a,zt,P,ae,tr,co,lt,yt,en)}}function eR(s,r){const e=Wp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class tR{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Wp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Ob(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class nR{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new tR(a.style,a.options&&a.options.params||{},t))}),tM(this.states,"true","1"),tM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new eM(r,a,this.states))}),this.fallbackTransition=function rR(s,r,e){return new eM(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function tM(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const aR=new Ub;class oR{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Ux(this._driver,e,t,[]);if(t.length)throw function oP(s){return new p.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=IS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=$x(this._driver,e,l,Fx,Ib,new Map,new Map,t,aR,a),c.forEach(d=>{const u=Sn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function sP(){return new p.vHH(3300,!1)}()),c=[]),a.length)throw function lP(s){return new p.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const o=bs(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,o),o.onDestroy(()=>this.destroy(r)),this.players.push(o),o}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function cP(s){return new p.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Vx(e,"","","");return Ix(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(r)}}}const iM="ng-animate-queued",Kx="ng-animate-disabled",uR=[],nM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xn="__ng_removed";class Zx{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function mR(s){return s??null}(t?r.value:r),t){const l=Wp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Yp="void",Xx=new Zx(Yp);class pR{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,er(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function dP(s,r){return new p.vHH(3302,!1)}();if(null==t||0==t.length)throw function uP(s){return new p.vHH(3303,!1)}();if(!function _R(s){return"start"==s||"done"==s}(t))throw function hP(s,r){return new p.vHH(3400,!1)}();const l=Sn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Sn(this._engine.statesByElement,r,new Map);return n.has(e)||(er(r,kb),er(r,kb+"-"+e),n.set(e,Xx)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function pP(s){return new p.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new e0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(er(r,kb),er(r,kb+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const o=new Zx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&o.absorbOptions(i.options),n.set(e,o),i||(i=Xx),o.value!==Yp&&i.value===o.value){if(!function yR(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{jl(r,ae),da(r,ke)})}return}const f=Sn(this._engine.playersByElement,r,[]);f.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,o.value,r,o.params),P=!1;if(!b){if(!a)return;b=l.fallbackTransition,P=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:o,player:c,isFallbackTransition:P}),P||(er(r,iM),c.onStart(()=>{Bd(r,iM)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Vb,!0);t.forEach(a=>{if(a[Xn])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,o)=>{if(c.set(o,i.value),this._triggers.has(o)){const d=this.trigger(r,o,Yp,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&bs(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,o=t.get(c)||Xx,d=new Zx(Yp),u=new e0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:o,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[Xn];(!l||l===nM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){er(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Vx(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Ix(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class fR{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new pR(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const o=t.indexOf(i);t.splice(o+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if($b(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!$b(e))return;const l=e[Xn];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),er(r,Kx)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Bd(r,Kx))}removeNode(r,e,t,a){if($b(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[Xn]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return $b(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,Vb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,jx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return bs(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[Xn];if(e&&e.setForRemoval){if(r[Xn]=nM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Kx)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bs(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function fP(s){return new p.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ub,a=[],l=new Map,c=[],n=new Map,i=new Map,o=new Map,d=new Set;this.disabledNodes.forEach(Ue=>{d.add(Ue);const Xe=this.driver.query(Ue,".ng-animate-queued",!0);for(let it=0;it{const it=Fx+z++;P.set(Xe,it),Ue.forEach(xt=>er(xt,it))});const ae=[],ke=new Set,lt=new Set;for(let Ue=0;Ueke.add(xt)):lt.add(Xe))}const yt=new Map,zt=oM(f,Array.from(ke));zt.forEach((Ue,Xe)=>{const it=Ib+z++;yt.set(Xe,it),Ue.forEach(xt=>er(xt,it))}),r.push(()=>{b.forEach((Ue,Xe)=>{const it=P.get(Xe);Ue.forEach(xt=>Bd(xt,it))}),zt.forEach((Ue,Xe)=>{const it=yt.get(Xe);Ue.forEach(xt=>Bd(xt,it))}),ae.forEach(Ue=>{this.processLeaveNode(Ue)})});const Ar=[],tr=[];for(let Ue=this._namespaceList.length-1;Ue>=0;Ue--)this._namespaceList[Ue].drainQueuedTransitions(e).forEach(it=>{const xt=it.player,Ii=it.element;if(Ar.push(xt),this.collectedEnterElements.length){const $i=Ii[Xn];if($i&&$i.setForMove){if($i.previousTriggersValues&&$i.previousTriggersValues.has(it.triggerName)){const Ul=$i.previousTriggersValues.get(it.triggerName),ir=this.statesByElement.get(it.element);if(ir&&ir.has(it.triggerName)){const _C=ir.get(it.triggerName);_C.value=Ul,ir.set(it.triggerName,_C)}}return void xt.destroy()}}const ha=!u||!this.driver.containsElement(u,Ii),Dn=yt.get(Ii),vs=P.get(Ii),ni=this._buildInstruction(it,t,vs,Dn,ha);if(ni.errors&&ni.errors.length)return void tr.push(ni);if(ha)return xt.onStart(()=>jl(Ii,ni.fromStyles)),xt.onDestroy(()=>da(Ii,ni.toStyles)),void a.push(xt);if(it.isFallbackTransition)return xt.onStart(()=>jl(Ii,ni.fromStyles)),xt.onDestroy(()=>da(Ii,ni.toStyles)),void a.push(xt);const xD=[];ni.timelines.forEach($i=>{$i.stretchStartingKeyframe=!0,this.disabledNodes.has($i.element)||xD.push($i)}),ni.timelines=xD,t.append(Ii,ni.timelines),c.push({instruction:ni,player:xt,element:Ii}),ni.queriedElements.forEach($i=>Sn(n,$i,[]).push(xt)),ni.preStyleProps.forEach(($i,Ul)=>{if($i.size){let ir=i.get(Ul);ir||i.set(Ul,ir=new Set),$i.forEach((_C,P0)=>ir.add(P0))}}),ni.postStyleProps.forEach(($i,Ul)=>{let ir=o.get(Ul);ir||o.set(Ul,ir=new Set),$i.forEach((_C,P0)=>ir.add(P0))})});if(tr.length){const Ue=[];tr.forEach(Xe=>{Ue.push(function gP(s,r){return new p.vHH(3505,!1)}())}),Ar.forEach(Xe=>Xe.destroy()),this.reportError(Ue)}const en=new Map,co=new Map;c.forEach(Ue=>{const Xe=Ue.element;t.has(Xe)&&(co.set(Xe,Xe),this._beforeAnimationBuild(Ue.player.namespaceId,Ue.instruction,en))}),a.forEach(Ue=>{const Xe=Ue.element;this._getPreviousPlayers(Xe,!1,Ue.namespaceId,Ue.triggerName,null).forEach(xt=>{Sn(en,Xe,[]).push(xt),xt.destroy()})});const uo=ae.filter(Ue=>lM(Ue,i,o)),ho=new Map;aM(ho,this.driver,lt,o,_r).forEach(Ue=>{lM(Ue,i,o)&&uo.push(Ue)});const nf=new Map;b.forEach((Ue,Xe)=>{aM(nf,this.driver,new Set(Ue),i,"!")}),uo.forEach(Ue=>{const Xe=ho.get(Ue),it=nf.get(Ue);ho.set(Ue,new Map([...Array.from(Xe?.entries()??[]),...Array.from(it?.entries()??[])]))});const Gl=[],vD=[],AD={};c.forEach(Ue=>{const{element:Xe,player:it,instruction:xt}=Ue;if(t.has(Xe)){if(d.has(Xe))return it.onDestroy(()=>da(Xe,xt.toStyles)),it.disabled=!0,it.overrideTotalTime(xt.totalTime),void a.push(it);let Ii=AD;if(co.size>1){let Dn=Xe;const vs=[];for(;Dn=Dn.parentNode;){const ni=co.get(Dn);if(ni){Ii=ni;break}vs.push(Dn)}vs.forEach(ni=>co.set(ni,Ii))}const ha=this._buildAnimation(it.namespaceId,xt,en,l,nf,ho);if(it.setRealPlayer(ha),Ii===AD)Gl.push(it);else{const Dn=this.playersByElement.get(Ii);Dn&&Dn.length&&(it.parentPlayer=bs(Dn)),a.push(it)}}else jl(Xe,xt.fromStyles),it.onDestroy(()=>da(Xe,xt.toStyles)),vD.push(it),d.has(Xe)&&a.push(it)}),vD.forEach(Ue=>{const Xe=l.get(Ue.element);if(Xe&&Xe.length){const it=bs(Xe);Ue.setRealPlayer(it)}}),a.forEach(Ue=>{Ue.parentPlayer?Ue.syncPlayerEvents(Ue.parentPlayer):Ue.destroy()});for(let Ue=0;Ue!ha.destroyed);Ii.length?bR(this,Xe,Ii):this.processLeaveNode(Xe)}return ae.length=0,Gl.forEach(Ue=>{this.players.push(Ue),Ue.onDone(()=>{Ue.destroy();const Xe=this.players.indexOf(Ue);this.players.splice(Xe,1)}),Ue.play()}),Gl}elementContainsData(r,e){let t=!1;const a=e[Xn];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Yp;n.forEach(o=>{o.queued||!i&&o.triggerName!=a||c.push(o)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const o=i.element,d=o!==l,u=Sn(t,o,[]);this._getPreviousPlayers(o,d,c,n,e.toState).forEach(b=>{const P=b.getRealPlayer();P.beforeDestroy&&P.beforeDestroy(),b.destroy(),u.push(b)})}jl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,o=[],d=new Set,u=new Set,f=e.timelines.map(P=>{const z=P.element;d.add(z);const ae=z[Xn];if(ae&&ae.removedBeforeQueried)return new Qo(P.duration,P.delay);const ke=z!==i,lt=function CR(s){const r=[];return sM(s,r),r}((t.get(z)||uR).map(en=>en.getRealPlayer())).filter(en=>!!en.element&&en.element===z),yt=l.get(z),zt=c.get(z),Ar=IS(0,this._normalizer,0,P.keyframes,yt,zt),tr=this._buildPlayer(P,Ar,lt);if(P.subTimeline&&a&&u.add(z),ke){const en=new e0(r,n,z);en.setRealPlayer(tr),o.push(en)}return tr});o.forEach(P=>{Sn(this.playersByQueriedElement,P.element,[]).push(P),P.onDone(()=>function gR(s,r,e){let t=s.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,P.element,P))}),d.forEach(P=>er(P,zS));const b=bs(f);return b.onDestroy(()=>{d.forEach(P=>Bd(P,zS)),da(i,e.toStyles)}),u.forEach(P=>{Sn(a,P,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Qo(r.duration,r.delay)}}class e0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Qo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Ix(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Sn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function $b(s){return s&&1===s.nodeType}function rM(s,r){const e=s.style.display;return s.style.display=r??"none",e}function aM(s,r,e,t,a){const l=[];e.forEach(i=>l.push(rM(i)));const c=[];t.forEach((i,o)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(o,u,a);d.set(u,f),(!f||0==f.length)&&(o[Xn]=hR,c.push(o))}),s.set(o,d)});let n=0;return e.forEach(i=>rM(i,l[n++])),c}function oM(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const o=n.parentNode;return i=e.has(o)?o:a.has(o)?1:c(o),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function er(s,r){s.classList?.add(r)}function Bd(s,r){s.classList?.remove(r)}function bR(s,r,e){bs(e).onDone(()=>s.processLeaveNode(r))}function sM(s,r){for(let e=0;ea.add(l)):r.set(s,t),e.delete(s),!0}class Yb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new fR(r,e,t),this._timelineEngine=new oR(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Ux(this._driver,l,i,[]);if(i.length)throw function rP(s,r){return new p.vHH(3404,!1)}();n=function iR(s,r,e){return new nR(s,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=kS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=kS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let vR=(()=>{class s{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&da(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(da(this._element,this._initialStyles),this._endStyles&&(da(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),da(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function t0(s){let r=null;return s.forEach((e,t)=>{(function AR(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class cM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:YS(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class xR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return LS(r,e)}getParentElement(r){return Ox(r)}query(r,e,t){return FS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const o=new Map,d=c.filter(b=>b instanceof cM);(function MP(s,r){return 0===s||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((P,z)=>o.set(z,P))});let u=function xP(s){return s.length?s[0]instanceof Map?s:s.map(r=>GS(r)):[]}(e).map(b=>ys(b));u=function DP(s,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,YS(s,n)))}}return r}(r,u,o);const f=function wR(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=t0(r[0]),r.length>1&&(t=t0(r[r.length-1]))):r instanceof Map&&(e=t0(r)),e||t?new vR(s,e,t):null}(r,u);return new cM(r,u,i,f)}}let TR=(()=>{class s extends dh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?uh(e):e;return dM(this._renderer,null,t,"register",[a]),new ER(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class ER extends class mv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new SR(this._id,r,e||{},this._renderer)}}class SR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return dM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function dM(s,r,e,t,a){return s.setProperty(r,`@@${e}:${t}`,a)}const uM="@.disabled";let MR=(()=>{class s{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new hM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new DR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(Yb),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class hM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==uM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class DR extends hM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function HR(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function PR(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const pM=[{provide:dh,useClass:TR},{provide:Qx,useFactory:function IR(){return new ZP}},{provide:Yb,useClass:(()=>{class s extends Yb{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(Lx),p.LFG(Qx),p.LFG(p.z2F))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:p.FYo,useFactory:function kR(s,r,e){return new MR(s,r,e)},deps:[ue,Yb,p.R0b]}],n0=[{provide:Lx,useFactory:()=>new xR},{provide:p.QbO,useValue:"BrowserAnimations"},...pM],fM=[{provide:Lx,useClass:jS},{provide:p.QbO,useValue:"NoopAnimations"},...pM];let VR=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?fM:n0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:n0,imports:[ga]}),s})(),BR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,ls,$n,Sl]}),s})();const OR=[];let LR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[yu.forRoot(OR,{relativeLinkResolution:"legacy"}),T.ez,yu]}),s})(),FR=(()=>{class s{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function jR(s){return[hn(tinycolor(s).lighten(52),"50"),hn(tinycolor(s).lighten(37),"100"),hn(tinycolor(s).lighten(26),"200"),hn(tinycolor(s).lighten(12),"300"),hn(tinycolor(s).lighten(6),"400"),hn(tinycolor(s),"500"),hn(tinycolor(s).darken(6),"600"),hn(tinycolor(s).darken(12),"700"),hn(tinycolor(s).darken(18),"800"),hn(tinycolor(s).darken(24),"900"),hn(tinycolor(s).lighten(50).saturate(30),"A100"),hn(tinycolor(s).lighten(30).saturate(30),"A200"),hn(tinycolor(s).lighten(10).saturate(15),"A400"),hn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,o=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,o)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Wi),p.LFG(rt),p.LFG(Y),p.LFG(gn))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function hn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let NR=(()=>{class s{constructor(e,t,a){this.initAuthService=e,this.appConfigService=t,this.location=a}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substr(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.location.go("/"),location.reload(),e}).then(e=>e?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(gd),p.LFG(FR),p.LFG(T.Ye))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const zR=new p.OlP("perun-api-service");let gM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),bM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Jb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,Vo,bM,We,bM]}),s})(),r0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),iI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),yM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,iI,Kr]}),s})(),vM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Fo,We,Fo,We]}),s})(),aI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr]}),s})(),a0=(()=>{class s{constructor(){this.changes=new Pe.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const mI={provide:a0,deps:[[new p.FiY,new p.tp0,a0]],useFactory:function gI(s){return s||new a0}};let EM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[mI,zc],imports:[We,T.ez,Kr,$n,aI,yr,ui,We]}),s})(),PI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Na]}),s})(),sC=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[PI,We,We]}),s})(),KI=(()=>{class s{constructor(){this.changes=new Pe.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const sk={provide:new p.OlP("mat-datepicker-scroll-strategy"),deps:[xi],useFactory:function ok(s){return()=>s.scrollStrategies.reposition()}};let _0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[KI,sk],imports:[T.ez,$n,Wa,Fc,Kr,We,Yn]}),s})(),zM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Yn,Yn,We]}),s})(),UM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Fo,ui,We,Ju,T.ez,Fo,We,Ju,r0]}),s})(),b0=(()=>{class s{constructor(){this.changes=new Pe.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Sk={provide:b0,deps:[[new p.FiY,new p.tp0,b0]],useFactory:function Ek(s){return s||new b0}};let C0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Sk],imports:[T.ez,We]}),s})(),Rk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Kr,ui,Vo,Fc,We]}),s})(),qM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),WM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[qM,ui,We,Vo,qM,We]}),s})();const JM=new p.OlP("mat-chips-default-options");let w0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[zc,{provide:JM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),s})(),KM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,gM,r0,yM,$n,vM,Jb,yr,sC,ls,qp,Ko,Lp,Na,kp,ao,EM,_0,Lw,zM,UM,ea,Vd,C0,Zn,Xo,ml,ui,sC,WM,w0,gM,r0,yM,$n,vM,Jb,yr,sC,ls,qp,Ko,Lp,Na,kp,ao,EM,_0,Lw,zM,UM,ea,Vd,C0,Zn,Xo,ml,ui,Rk,WM,w0]}),s})();function v0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?s.setProperty(t,a,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Nd(s,r){const e=r?"":"none";v0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function ZM(s,r,e){v0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function uC(s,r){return r&&"none"!=r?s+" "+r:s}function XM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function A0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function x0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function T0(s,r,e){const{top:t,bottom:a,left:l,right:c}=s;return e>=t&&e<=a&&r>=l&&r<=c}function Zp(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function eD(s,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:o}=s,d=i*r,u=o*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:x0(e)})})}handleScroll(r){const e=vi(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const o=this.getViewportScrollPosition();l=o.top,c=o.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((o,d)=>{o.clientRect&&e!==d&&e.contains(d)&&Zp(o.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function iD(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),P=this._dropContainer;if(!b)return void this._endDragSequence(n);(!P||!P.isDragging()&&!P.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const o=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(o),this._dropContainer)this._updateActiveDropContainer(o,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=o.x-d.x+this._passiveTransform.x,u.y=o.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:o,event:n,distance:this._getDragDistance(o),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new tD(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=at(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Nd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ti(t)),this._handles.forEach(t=>Nd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ti(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,hC),e.addEventListener("touchstart",this._pointerDown,oD),e.addEventListener("dragstart",this._nativeDragStart,hC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ti(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Nd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Nd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Xp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),ZM(t,!1,E0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Xp(e),l=!a&&0!==e.button,c=this._rootElement,n=vi(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),o=a?Oc(e):qn(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||o)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=x0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){ZM(this._rootElement,!0,E0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=lD(c,this._document),this._previewRef=c,r.matchSize?cD(a,l):a.style.transform=pC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=iD(this._rootElement),cD(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return v0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},E0),Nd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function a1(s){const r=getComputedStyle(s),e=A0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=A0(r,"transition-duration"),c=A0(r,"transition-delay");return XM(l[a])+XM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||vi(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=lD(this._placeholderRef,this._document)):t=iD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Xp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Xp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:o}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(o-c);t=sD(t,n.left+l,n.right-(i-l)),a=sD(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Nd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,hC),r.removeEventListener("touchstart",this._pointerDown,oD),r.removeEventListener("dragstart",this._nativeDragStart,hC)}_applyRootElementTransform(r,e){const t=pC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=uC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=pC(r,e);this._preview.style.transform=uC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Xp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=vi(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Zp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Io(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ti(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function pC(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function sD(s,r,e){return Math.max(r,Math.min(e,s))}function Xp(s){return"t"===s.type[0]}function lD(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function cD(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=pC(r.left,r.top)}function ef(s,r){return Math.max(0,Math.min(r,s))}class d1{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),o=l[c],u=o.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),P=this._getSiblingOffsetPx(i,l,f),z=l.slice();return function c1(s,r,e){const t=ef(r,s.length-1),a=ef(e,s.length-1);if(t===a)return;const l=s[t],c=a{if(z[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:P,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=uC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Zp(ae.clientRect,0,yt)):(zt.style.transform=uC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Zp(ae.clientRect,yt,0))}),this._previousSwap.overlaps=T0(u,e,t),this._previousSwap.drag=o.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let o=c[l];if(o===r&&(o=c[l+1]),!o&&(null==l||-1===l||l-1&&c.splice(n,1),o&&!this._dragDropRegistry.isDragging(o)){const d=o.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ti(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Zp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:x0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",o=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[o]:n+=l[i]-c.clientRect[o]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const o=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&o===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Pe.x,this.entered=new Pe.x,this.exited=new Pe.x,this.dropped=new Pe.x,this.sorted=new Pe.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function r1(s=0,r=Qc.z){return s<0&&(s=0),(0,rh.H)(s,s,r)}(0,um).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ti(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new tD(t),this._sortStrategy=new d1(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ti(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!eD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||eD(c.clientRect,.05,r,e)&&([a,l]=function h1(s,r,e,t){const a=hD(r,t),l=pD(r,e);let c=0,n=0;if(a){const i=s.scrollTop;1===a?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=hD(i,e),l=pD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ti(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ti(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ti(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&T0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!T0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ti(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Io(ti(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function hD(s,r){const{top:e,bottom:t,height:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function pD(s,r){const{left:e,right:t,width:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const fC=yn({passive:!1,capture:!0});let p1=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new Pe.x,this.pointerUp=new Pe.x,this.scroll=new Pe.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,fC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,fC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fC}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:fC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Vi.y(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,cn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const f1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let g1=(()=>{class s{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=f1){return new l1(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new u1(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b),p.LFG(zo),p.LFG(p1))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),m1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[g1],imports:[Yn]}),s})(),_1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez]}),s})(),b1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),A1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),P1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[A1,We,We]}),s})(),U1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,We]}),s})();new p.OlP("mat-selectsearch-default-options");let Q1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[[T.ez,ao,$n,Jb,yr,qp,Xo]]}),s})(),J1=(()=>{class s extends Kg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const K1={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Z1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:Zi,useClass:J1},{provide:$u,useValue:K1}],imports:[T.ez,Jb,sC,kp,w0,m1,Sl,yu,C0,Zn,qp,Hx,yr,ea,$n,Xo,Ko,ao,Lp,ui,_1,b1,P1,_0,U1,Ku,ml,Q1,Na,ls,Oh,KM]}),s})();const KV={provide:y.TP,useExisting:(0,p.Gpc)(()=>W_),multi:!0};function ZV(s){return new BH(s,"./assets/i18n/",".json")}function XV(s){const r={basePath:s.get("api_url")};return new Oe(r)}const eB=s=>()=>s.loadConfigs();let tB=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(md),p.LFG(Xi))},s.\u0275mod=p.oAB({type:s,bootstrap:[VH]}),s.\u0275inj=p.cJS({providers:[md,{provide:p.ip1,useFactory:eB,multi:!0,deps:[NR]},{provide:Oe,useFactory:XV,deps:[Wi]},W_,KV,{provide:zR,useClass:GA},{provide:Wh.Hy,useFactory:()=>localStorage}],imports:[ga,Sl.forRoot({loader:{provide:Al,useFactory:ZV,deps:[y.eN]}}),VR,yr,BR,Ql,y.JF,LR,KM,Hx,oH,Wh.zr.forRoot(),Z1]}),s})();(0,p.G48)(),Qe().bootstrapModule(tB).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(p,V){var O={};!function(p){"use strict";p.__esModule=!0,p.digestLength=32,p.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=p.digestLength,this.blockSize=p.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}p.HMAC=j,p.hash=W,p.default=W,p.hmac=Q;var $=new Uint8Array(p.digestLength);p.hkdf=function G(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=G.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(G)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,G,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=G=G||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,G,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,G,te){if(G=G||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),G);else if(I($))O($,G,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,G,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,G,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=U.saveAs=U,F.exports=U}.apply(N,[]))&&(F.exports=p)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),p=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function G(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,p.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=U(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=U(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function U(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),p=x(727);const O=(0,x(3888).d)(U=>function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class U extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const te=new Q(this,this);return te.operator=G,te}_throwIfClosed(){if(this.closed)throw new O}next(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(G)}})}error(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:te}=this;for(;te.length;)te.shift().error(G)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?p.Lc:(this.currentObservers=null,J.push(G),new p.w0(()=>{this.currentObservers=null,(0,I.P)(J,G)}))}_checkFinalizedStatuses(G){const{hasError:te,thrownError:ne,isStopped:J}=this;te?G.error(ne):J&&G.complete()}asObservable(){const G=new T.y;return G.source=this,G}}return U.create=($,G)=>new Q($,G),U})();class Q extends W{constructor($,G){super(),this.destination=$,this.source=G}next($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===te||te.call(G,$)}error($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===te||te.call(G,$)}complete(){var $,G;null===(G=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===G||G.call($)}_subscribe($){var G,te;return null!==(te=null===(G=this.source)||void 0===G?void 0:G.subscribe($))&&void 0!==te?te:p.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),p=x(727),V=x(2416),O=x(7849),I=x(5032);const j=U("C",void 0,void 0);function U(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),G=x(2806);class te extends p.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,p.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return U("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return U("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(U=>function(G){U(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const J of G)J.remove(this);else G.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var G;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push($)}}_hasParent($){const{_parentage:G}=this;return G===$||Array.isArray(G)&&G.includes($)}_addParent($){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push($),G):G?[G,$]:$}_removeParent($){const{_parentage:G}=this;G===$?this._parentage=null:Array.isArray(G)&&(0,O.P)(G,$)}remove($){const{_finalizers:G}=this;G&&(0,O.P)(G,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const U=new I;return U.closed=!0,U})();const j=I.EMPTY;function W(U){return U instanceof I||U&&"closed"in U&&(0,T.m)(U.remove)&&(0,T.m)(U.add)&&(0,T.m)(U.unsubscribe)}function Q(U){(0,T.m)(U)?U():U.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),p=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),U=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,p.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function G(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,U.f)(ie,ne,J):J()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function p(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>p});const p=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>Ye});var T=x(8421),p=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,p.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,p.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,p.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var U=x(9751),G=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new U.y(Te=>{(0,p.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,p.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new U.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new U.y(Te=>{let oe;return(0,p.f)(Te,Ee,()=>{oe=Se[G.h](),(0,p.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),p=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),U=x(3260),$=x(576),G=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,p.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,G.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,U.L)(we))return function Ve(we){return ge((0,U.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),p=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),U=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,p.Xf)($[0]):(0,T.J)(U)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),p=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,p.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),p=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,p.Xf)(Q[0]):new T.y(function W(Q){return U=>{let $=[];for(let G=0;$&&!U.closed&&G{if($){for(let ne=0;ne<$.length;ne++)ne!==G&&$[ne].unsubscribe();$=null}U.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),p=x(576);function V(O,I){const j=(0,p.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),p=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=p.P){let U=-1;return null!=W&&((0,V.K)(W)?Q=W:U=W),new T.y($=>{let G=(0,O.q)(j)?+j-Q.now():j;G<0&&(G=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=U?this.schedule(void 0,U):$.complete())},G)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>p});var T=x(930);function p(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,U,$){super(I),this.onFinalize=U,this.shouldUnsubscribe=$,this._next=j?function(G){try{j(G)}catch(te){I.error(te)}}:super._next,this._error=Q?function(G){try{Q(G)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(G){I.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),p=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,U=!1;Q=j.subscribe((0,p.x)(W,void 0,void 0,G=>{$=(0,T.Xf)(I(G,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):U=!0})),U&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),p=x(576);function V(O,I){return(0,p.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),p=x(4482),V=x(5403);function O(I,j=T.z){return(0,p.e)((W,Q)=>{let U=null,$=null,G=null;const te=()=>{if(U){U.unsubscribe(),U=null;const J=$;$=null,Q.next(J)}};function ne(){const J=G+I,ie=j.now();if(ie{$=J,G=j.now(),U||(U=j.schedule(ne,I),Q.add(U))},()=>{te(),Q.complete()},void 0,()=>{$=U=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),p=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,p.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),p=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),U=x(5577);function $(ne,J){return J?ie=>(0,p.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,U.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var G=x(2805);function te(ne,J=T.z){const ie=(0,G.H)(ne,J);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),p=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,p.x)(W,U=>O.call(I,U,Q++)&&W.next(U)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),p=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,U){const $=arguments.length>=2;return G=>G.pipe(Q?(0,p.h)((te,ne)=>Q(te,ne,G)):j.y,(0,V.q)(1),$?(0,O.d)(U):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),p=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,p.x)(W,U=>{W.next(O.call(I,U,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>p});var T=x(4004);function p(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),p=x(4671);function V(O=1/0){return(0,T.z)(p.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),p=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(U,$,G=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,p.Xf)(U(te,ne))),G):("number"==typeof $&&(G=$),(0,V.e)((te,ne)=>function j(U,$,G,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,p.Xf)(G(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return U.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,U,G)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),p=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new p.x),resetOnError:U=!0,resetOnComplete:$=!0,resetOnRefCountZero:G=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,G))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,U,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...U){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...U).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),p=x(4482),V=x(5403);function O(I,j){return(0,p.e)((W,Q)=>{let U=null,$=0,G=!1;const te=()=>G&&!U&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{U?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(U=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{U=null,te()}))},()=>{G=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),p=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,p.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,U=>{++Q<=I&&(W.next(U),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),p=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const U=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return U?(0,p.e)(($,G)=>{var te;null===(te=U.subscribe)||void 0===te||te.call(U);let ne=!0;$.subscribe((0,V.x)(G,J=>{var ie;null===(ie=U.next)||void 0===ie||ie.call(U,J),G.next(J)},()=>{var J;ne=!1,null===(J=U.complete)||void 0===J||J.call(U),G.complete()},J=>{var ie;ne=!1,null===(ie=U.error)||void 0===ie||ie.call(U,J),G.error(J)},()=>{var J,ie;ne&&(null===(J=U.unsubscribe)||void 0===J||J.call(U)),null===(ie=U.finalize)||void 0===ie||ie.call(U)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),p=x(4482),V=x(5403);function O(j=I){return(0,p.e)((W,Q)=>{let U=!1;W.subscribe((0,V.x)(Q,$=>{U=!0,Q.next($)},()=>U?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>U});var T=x(4986),p=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(G=>function(ne=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function U(G,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,p.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(G){throw new Q(G)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class p extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:U}=V;return U?.setInterval?U.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends p{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const U=this.id,$=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId($,U,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,U=0){return V.setInterval(W.flush.bind(W,this),U)}recycleAsyncId(W,Q,U=0){if(null!=U&&this.delay===U&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(W,Q);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,U=!1;try{this.work(W)}catch(G){U=!0,$=G||new Error("Scheduled action threw falsy error")}if(U)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:U}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(U,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class p{constructor(I,j=p.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}p.now=T.l.now;class V extends p{constructor(I,j=p.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(p,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(p,V,...O):setTimeout(p,V,...O)},clearTimeout(p){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(p)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>p});const p=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>p});const p=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),p=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,p.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:p,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&p(W)===V}(Q)){const U=O(Q);return{args:U.map($=>Q[$]),keys:U}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(p,V){if(p){const O=p.indexOf(V);0<=O&&p.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(p){const O=p(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(p,V){return p.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let p=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!p;if(j&&(p={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=p;if(p=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=I)}},9672:(F,N,x)=>{"use strict";function T(p,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?p.add(this.schedule(null,I)):this.unsubscribe()},I);if(p.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(p){return p}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>p});var T=x(576);function p(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(p){return p instanceof Date&&!isNaN(p)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(p){return"function"==typeof p}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),p=x(576);function V(O){return(0,p.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),p=x(576);function V(O){return(0,p.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>p});var T=x(576);function p(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),p=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:U}=yield(0,T.qq)(W.read());if(U)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,p.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>p});var T=x(576);function p(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>p,e:()=>V});var T=x(576);function p(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(p(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:p}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return p(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>p});var T=x(4671);function p(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),p=x(3410);function V(O){p.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ti){try{Le(ue.next(Ti))}catch(Hn){ot(Hn)}}function It(Ti){try{Le(ue.throw(Ti))}catch(Hn){ot(Hn)}}function Le(Ti){Ti.done?Me(Ti.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ti.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Gt){ue[Gt]&&(Re[Gt]=function(Dt){return new Promise(function(pn,ri){Me.push([Gt,Dt,pn,ri])>1||Tt(Gt,Dt)})})}function Tt(Gt,Dt){try{!function It(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,Ti):Hn(Me[0][2],Gt)}(ue[Gt](Dt))}catch(pn){Hn(Me[0][3],pn)}}function Le(Gt){Tt("next",Gt)}function Ti(Gt){Tt("throw",Gt)}function Hn(Gt,Dt){Gt(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Be,EM:()=>ya,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>qd,NF:()=>Es,O5:()=>Di,Ov:()=>cf,PC:()=>lf,RF:()=>Pr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>Zt,ez:()=>_n,mk:()=>Yl,n9:()=>Qi,q:()=>V,sg:()=>gn,w_:()=>j});var T=x(4650);let p=null;function V(){return p}function I(M){p||(p=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function U(){return(0,T.LFG)(G)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let G=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new G((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function qd(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Yl=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class ar{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new ar(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ge=B.get(pe);B.move(Ge,le),mi(Ge,ee)}});for(let ee=0,pe=B.length;ee{mi(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function mi(M,k){M.context.$implicit=k.item}let Di=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new nn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){As("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){As("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class nn{constructor(){this.$implicit=null,this.ngIf=null}}function As(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Ca{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Pr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Ca(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Pr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),lf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class CC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class yC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const wC=new yC,vC=new CC;let cf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return wC;if((0,T.F4k)(D))return vC;throw function mn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Zt="browser";function Es(M){return M===Zt}let ya=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function an(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Gd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),p=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class U{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeYi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Jt=Object.keys(Y.setParams).reduce((Yi,tt)=>Yi.set(tt,Y.setParams[tt]),Jt)),new Ee(q,ce,et,{params:Jt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let Me=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Jt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Jt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Jt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(Q))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new p.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const po=/^\)\]\}',?\n/;let fo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),tn=function zd(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:tn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:tn,url:Tr}=Ne(),fi=null;204!==kt&&(fi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=fi?200:0);let Er=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof fi){const Sr=fi;fi=fi.replace(po,"");try{fi=""!==fi?JSON.parse(fi):null}catch(ma){fi=Sr,Er&&(Er=!1,fi={error:ma,text:fi})}}Er?(ce.next(new fe({body:fi,headers:Ht,status:kt,statusText:tn,url:Tr||void 0})),ce.complete()):ce.error(new ue({error:fi,headers:Ht,status:kt,statusText:tn,url:Tr||void 0}))},Jt=Ht=>{const{url:kt}=Ne(),tn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(tn)};let vt=!1;const Yi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Jt),xe.addEventListener("timeout",Jt),xe.addEventListener("abort",Jt),q.reportProgress&&(xe.addEventListener("progress",Yi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Jt),xe.removeEventListener("abort",Jt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Jt),q.reportProgress&&(xe.removeEventListener("progress",Yi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.JF))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Pn=new p.OlP("XSRF_COOKIE_NAME"),Rn=new p.OlP("XSRF_HEADER_NAME");class pa{}let go=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.K0),p.LFG(p.Lbi),p.LFG(Pn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(pa),p.LFG(Rn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ci=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(U),p.LFG(p.zs3))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ga=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:Pn,useValue:q.cookieName}:[],q.headerName?{provide:Rn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:pa,useClass:go},{provide:Pn,useValue:"XSRF-TOKEN"},{provide:Rn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Gd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Me,{provide:Q,useClass:ci},fo,{provide:U,useExisting:fo}],imports:[ga.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>cc,$Z:()=>Iw,AFp:()=>cp,ALo:()=>VA,AaK:()=>Q,AsE:()=>t_,BQk:()=>ph,CHM:()=>Pi,CRH:()=>na,CZH:()=>fs,CqO:()=>Pm,D6c:()=>TS,Dn7:()=>LA,EJc:()=>Sd,EiD:()=>rg,EpF:()=>Qo,F$t:()=>Bm,F4k:()=>id,FYo:()=>Ny,FiY:()=>Mo,G48:()=>Ab,Gf:()=>WA,GfV:()=>Uy,GkF:()=>ed,Gpc:()=>G,Hsn:()=>Om,Ikx:()=>l_,JOm:()=>pr,JVY:()=>by,KtG:()=>On,L6k:()=>Cy,LAX:()=>pu,LFG:()=>si,LSH:()=>wu,Lbi:()=>sb,Lck:()=>wA,MAs:()=>uh,MMx:()=>Hl,NdJ:()=>fh,O4$:()=>_f,OlP:()=>At,Oqu:()=>e_,PXZ:()=>dx,Q6J:()=>Fe,QGY:()=>td,QP$:()=>Xa,QbO:()=>cS,Qsj:()=>zy,R0b:()=>un,RDi:()=>hy,Rgc:()=>fd,SBq:()=>Wr,Sil:()=>gp,Suo:()=>Jh,TTD:()=>di,TgZ:()=>_t,Udp:()=>Qm,VKq:()=>HA,WFA:()=>gh,XFs:()=>Qe,Xpm:()=>tn,Xts:()=>Au,Y36:()=>rl,YKP:()=>P_,YNc:()=>wt,Yjl:()=>Wl,Yz7:()=>Dt,ZZ4:()=>Rb,_Bn:()=>H_,_UZ:()=>Yo,_Vd:()=>Va,_c5:()=>Tx,_uU:()=>Dv,aQg:()=>Op,c2e:()=>dS,cJS:()=>ri,cg1:()=>Th,d8E:()=>c_,dDg:()=>hb,dqk:()=>ce,eBb:()=>yy,eFA:()=>Tp,ekj:()=>Jm,eoX:()=>to,f3M:()=>Bf,g9A:()=>dp,h0i:()=>os,hGG:()=>xS,hij:()=>Ah,iGM:()=>qA,ifc:()=>q,ip1:()=>ps,kL8:()=>Xv,kcU:()=>bf,lG2:()=>Ud,lcZ:()=>BA,lqb:()=>vi,lri:()=>ms,mCW:()=>$s,n5z:()=>tu,n_E:()=>Uh,oAB:()=>Sr,oJD:()=>ag,oxw:()=>Vm,pB0:()=>Kf,q3G:()=>Xt,qLn:()=>Rc,qOj:()=>Kc,qZA:()=>hh,qzn:()=>Ia,rWj:()=>vp,s9C:()=>mh,sBO:()=>Eb,sIi:()=>ul,s_b:()=>qh,soG:()=>hp,tb:()=>kl,tp0:()=>Pa,uIk:()=>mr,vHH:()=>ie,vpe:()=>wr,wAp:()=>Ke,xi3:()=>OA,xp6:()=>Vu,ynx:()=>Ya,z2F:()=>Bl,z3N:()=>zn,zSh:()=>dg,zs3:()=>qn});var T=x(7579),p=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let g in h)if(h[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(h,g){for(const m in g)g.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=g[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function U(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const $=j({__forward_ref__:j});function G(h){return h.__forward_ref__=G,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===G}class ie extends Error{constructor(g,m){super(function de(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,g){throw new ie(-201,!1)}function It(h,g){null==h&&function Le(h,g,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,h,null,"!=")}function Dt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ri(h){return{providers:h.providers||[],imports:h.imports||[]}}function xr(h){return ql(h,Pn)||ql(h,pa)}function ql(h,g){return h.hasOwnProperty(g)?h[g]:null}function fo(h){return h&&(h.hasOwnProperty(Rn)||h.hasOwnProperty(go))?h[Rn]:null}const Pn=j({\u0275prov:j}),Rn=j({\u0275inj:j}),pa=j({ngInjectableDef:j}),go=j({ngInjectorDef:j});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let ci;function Ei(h){const g=ci;return ci=h,g}function ga(h,g,m){const _=xr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(h))}function fn(h){return{toString:h}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Jt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Yi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function tn(h){return fn(()=>{const m=!0===h.standalone,_={},C={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||Ne,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+kt++,styles:h.styles||Ne,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=mo(h.inputs,_),C.outputs=mo(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(fi).filter(Er):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Mi).filter(Er):null,C})}function fi(h){return Et(h)||Si(h)}function Er(h){return null!==h}function Sr(h){return fn(()=>({type:h.type,bootstrap:h.bootstrap||Ne,declarations:h.declarations||Ne,imports:h.imports||Ne,exports:h.exports||Ne,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function mo(h,g){if(null==h)return ct;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const Ud=tn;function Wl(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function Et(h){return h[Je]||null}function Si(h){return h[Jt]||null}function Mi(h){return h[vt]||null}function ji(h,g){const m=h[Yi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function Di(h){return Array.isArray(h)&&"object"==typeof h[1]}function nn(h){return Array.isArray(h)&&!0===h[1]}function As(h){return 0!=(8&h.flags)}function Ca(h){return 2==(2&h.flags)}function Pr(h){return 1==(1&h.flags)}function Qi(h){return null!==h.template}function af(h){return 0!=(256&h[2])}function De(h,g){return h.hasOwnProperty(tt)?h[tt]:null}class Pe{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function di(){return xs}function xs(h){return h.type.prototype.ngOnChanges&&(h.setInput=Rr),Ts}function Ts(){const h=Bn(this),g=h?.current;if(g){const m=h.previous;if(m===ct)h.previous=g;else for(let _ in g)m[_]=g[_];h.current=null,this.ngOnChanges(g)}}function Rr(h,g,m,_){const C=Bn(h)||function Ir(h,g){return h[Vi]=g}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Pe(S&&S.currentValue,g,v===ct),h[_]=g}di.ngInherit=!0;const Vi="__ngSimpleChanges__";function Bn(h){return h[Vi]||null}function ze(h){for(;Array.isArray(h);)h=h[0];return h}function ya(h,g){return ze(g[h])}function Vt(h,g){return ze(g[h.index])}function an(h,g){return h.data[g]}function zi(h,g){return h[g]}function Ct(h,g){const m=g[h];return Di(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,g){return null==g?null:h[g]}function ee(h){h[18]=0}function pe(h,g){h[5]+=g;let m=h,_=h[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Qd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(h){return le.lFrame.contextLView=h,h[8]}function On(h){return le.lFrame.contextLView=null,h}function qt(){let h=wa();for(;null!==h&&64===h.type;)h=h.parent;return h}function wa(){return le.lFrame.currentTNode}function Ot(h,g){const m=le.lFrame;m.currentTNode=h,m.isParent=g}function bn(){return le.lFrame.isParent}function Ss(){le.lFrame.isParent=!1}function Bi(){const h=le.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function Aa(){return le.lFrame.bindingIndex++}function Fn(h){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,m}function gt(h,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=h,$d(g)}function $d(h){le.lFrame.currentDirectiveIndex=h}function or(h){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function pf(){return le.lFrame.currentQueryIndex}function Zl(h){le.lFrame.currentQueryIndex=h}function Yd(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function ff(h,g,m){if(m&Qe.SkipSelf){let C=g,w=h;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Yd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,h=w}const _=le.lFrame=wo();return _.currentTNode=g,_.lView=h,!0}function yo(h){const g=wo(),m=h[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=h,g.tView=m,g.contextLView=h,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function wo(){const h=le.lFrame,g=null===h?null:h.child;return null===g?Qd(h):g}function Qd(h){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function Hs(){const h=le.lFrame;return le.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const gf=Hs;function Ps(){const h=Hs();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Ri(){return le.lFrame.selectedIndex}function Vr(h){le.lFrame.selectedIndex=h}function Qt(){const h=le.lFrame;return an(h.tView,h.selectedIndex)}function _f(){le.lFrame.currentNamespace="svg"}function bf(){!function HC(){le.lFrame.currentNamespace=null}()}function tc(h,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:H,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),E&&((h.contentHooks||(h.contentHooks=[])).push(m,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,E)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),H&&((h.viewHooks||(h.viewHooks=[])).push(m,H),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,H)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function vo(h,g,m){Br(h,g,3,m)}function xa(h,g,m,_){(3&h[2])===m&&Br(h,g,m,_)}function Jd(h,g){let m=h[2];(3&m)===g&&(m&=2047,m+=1,h[2]=m)}function Br(h,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else g[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===g){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Rs{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function lr(h,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(h),_=g;for(;m>0;)_=_[15],m--;return _}let Zd=!0;function ks(h){const g=Zd;return Zd=h,g}let Lr=0;const Ji={};function Vs(h,g){const m=eu(h,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(h.injectorIndex=g.length,Xd(_.data,h),Xd(g,null),Xd(_.blueprint,null));const C=rc(h,g),w=h.injectorIndex;if(ic(C)){const v=jn(C),E=Or(C,g),S=E[1].data;for(let H=0;H<8;H++)g[w+H]=E[v+H]|S[v+H]}return g[w+8]=C,w}function Xd(h,g){h.push(0,0,0,0,0,0,0,0,g)}function eu(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function rc(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=cr(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function ac(h,g,m){!function Af(h,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=Lr++);const C=255&_;g.data[h+(C>>5)]|=1<=0?255&g:xo:g}(m);if("function"==typeof w){if(!ff(g,h,_))return _&Qe.Host?xf(C,0,_):Tf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{gf()}}else if("number"==typeof w){let v=null,E=eu(h,g),S=-1,H=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?rc(h,g):g[E+8],-1!==S&&sc(_,!1)?(v=g[1],E=jn(S),g=Or(S,g)):E=-1);-1!==E;){const R=g[1];if(oc(w,E,R.data)){const L=jC(E,g,m,v,_,H);if(L!==Ji)return L}S=g[E+8],-1!==S&&sc(_,g[1].data[E+8]===H)&&oc(w,E,g)?(v=R,E=jn(S),g=Or(S,g)):E=-1}}return C}function jC(h,g,m,_,C,w){const v=g[1],E=v.data[h+8],R=Bs(E,v,m,null==_?Ca(E)&&Zd:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Os(g,v,R,E):Ji}function Bs(h,g,m,_,C){const w=h.providerIndexes,v=g.data,E=1048575&w,S=h.directiveStart,R=w>>20,X=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Qi(re)&&re.type===m)return S}return null}function Os(h,g,m,_){let C=h[m];const w=g.data;if(function IC(h){return h instanceof Rs}(C)){const v=C;v.resolving&&function Ve(h,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const E=ks(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ei(v.injectImpl):null;ff(h,_,Qe.Default);try{C=h[m]=v.factory(void 0,w,h,_),g.firstCreatePass&&m>=_.directiveStart&&function RC(h,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=xs(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],g)}finally{null!==S&&Ei(S),ks(E),v.resolving=!1,gf()}}return C}function oc(h,g,m){return!!(m[g+(h>>5)]&1<{const g=h.prototype.constructor,m=g[tt]||lc(g),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||lc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function lc(h){return ne(h)?()=>{const g=lc(te(h));return g&&g()}:De(h)}function cr(h){const g=h[1],m=g.type;return 2===m?g.declTNode:1===m?h[6]:null}function cc(h){return function FC(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(yf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),h)}const dr="__parameters__";function Fr(h,g,m){return fn(()=>{const _=function uc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,H,R){const L=S.hasOwnProperty(dr)?S[dr]:Object.defineProperty(S,dr,{value:[]})[dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function on(h,g){void 0===g&&(g=h);for(let m=0;mArray.isArray(m)?jr(m,g):g(m))}function YC(h,g,m){g>=h.length?h.push(m):h.splice(g,0,m)}function ru(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function Ma(h,g){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function JC(h,g,m,_){let C=h.length;if(C==g)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>g;)h[C]=h[C-2],C--;h[g]=m,h[g+1]=_}}(h,_,g,m)),_}function ou(h,g){const m=Eo(h,g);if(m>=0)return h[1|m]}function Eo(h,g){return function js(h,g,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<g?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Cc}()?.createHTML(h)||h}function Yf(h){return function wc(){if(void 0===Ws&&(Ws=null,ce.trustedTypes))try{Ws=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Ws}()?.createHTML(h)||h}class Ra{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fy extends Ra{getTypeName(){return"HTML"}}class gy extends Ra{getTypeName(){return"Style"}}class my extends Ra{getTypeName(){return"Script"}}class Jf extends Ra{getTypeName(){return"URL"}}class hu extends Ra{getTypeName(){return"ResourceURL"}}function zn(h){return h instanceof Ra?h.changingThisBreaksApplicationSecurity:h}function Ia(h,g){const m=function _y(h){return h instanceof Ra&&h.getTypeName()||null}(h);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function by(h){return new fy(h)}function Cy(h){return new gy(h)}function yy(h){return new my(h)}function pu(h){return new Jf(h)}function Kf(h){return new hu(h)}class fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Ho(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class wy{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Ho(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Ho(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0$s(g.trim())).join(", ")),this.buf.push(" ",v,'="',bu(S),'"')}var h;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();mu.hasOwnProperty(m)&&!_i.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(bu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const G0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ng=/([^\#-~ |!])/g;function bu(h){return h.replace(/&/g,"&").replace(G0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(ng,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Ec;function rg(h,g){let m=null;try{Ec=Ec||function Ac(h){const g=new wy(h);return function vy(){try{return!!(new window.DOMParser).parseFromString(Ho(""),"text/html")}catch{return!1}}()?new fu(g):g}(h);let _=g?String(g):"";m=Ec.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=Ec.getInertBodyElement(_)}while(_!==w);return Ho((new Gr).sanitizeChildren(Cu(m)||m))}finally{if(m){const _=Cu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Cu(h){return"content"in h&&function yu(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function ag(h){const g=Ys();return g?Yf(g.sanitize(Xt.HTML,h)||""):Ia(h,"HTML")?Yf(zn(h)):rg(function qf(){return void 0!==uu?uu:typeof document<"u"?document:void 0}(),he(h))}function wu(h){const g=Ys();return g?g.sanitize(Xt.URL,h)||"":Ia(h,"URL")?zn(h):$s(he(h))}function Ys(){const h=be();return h&&h[12]}const Au=new At("ENVIRONMENT_INITIALIZER"),cg=new At("INJECTOR",-1),Hy=new At("INJECTOR_DEF_TYPES");class Sc{get(g,m=zs){if(m===zs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ei(...h){return{\u0275providers:Py(0,h)}}function Py(h,...g){const m=[],_=new Set;let C;return jr(g,w=>{const v=w;Mc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&ka(C,m),m}function ka(h,g){for(let m=0;m{g.push(w)})}}function Mc(h,g,m,_){if(!(h=te(h)))return!1;let C=null,w=fo(h);const v=!w&&Et(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=fo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const H of S)Mc(H,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let H;_.add(C);try{jr(w.imports,R=>{Mc(R,g,m,_)&&(H||(H=[]),H.push(R))})}finally{}void 0!==H&&ka(H,g)}if(!E){const H=De(C)||(()=>new C);g.push({provide:C,useFactory:H,deps:Ne},{provide:Hy,useValue:C,multi:!0},{provide:Au,useValue:()=>si(C),multi:!0})}const S=w.providers;null==S||E||jr(S,R=>{g.push(R)})}}return C!==h&&void 0!==h.providers}const Qs=j({provide:String,useValue:j});function xu(h){return null!==h&&"object"==typeof h&&Qs in h}function Ki(h){return"function"==typeof h}const dg=new At("Set Injector scope."),Ro={},ky={};let Io;function ko(){return void 0===Io&&(Io=new Sc),Io}class vi{}class Dc extends vi{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pg(g,v=>this.processProvider(v)),this.records.set(cg,Ur(void 0,this)),C.has("environment")&&this.records.set(vi,Ur(void 0,this));const w=this.records.get(dg);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Hy.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=ur(this),_=Ei(void 0);try{return g()}finally{ur(m),Ei(_)}}get(g,m=zs,_=Qe.Default){this.assertNotDestroyed();const C=ur(this),w=Ei(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Ly(h){return"function"==typeof h||"object"==typeof h&&h instanceof At}(g)&&xr(g);E=S&&this.injectableDefInScope(S)?Ur(ug(g),Ro):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?ko():this.parent).get(g,m=_&Qe.Optional&&m===zs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[fc]=v[fc]||[]).unshift(Q(g)),C)throw v;return function ay(h,g,m,_){const C=h[fc];throw g[kf]&&C.unshift(g[kf]),h.message=function oy(h,g,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(ny,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[fc]=null,h}(v,g,"R3InjectorError",this.source)}throw v}finally{Ei(w),ur(C)}}resolveInjectorInitializers(){const g=ur(this),m=Ei(void 0);try{const _=this.get(Au.multi,Ne,Qe.Self);for(const C of _)C()}finally{ur(g),Ei(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Ki(g=te(g))?g:te(g&&g.provide);const _=function hg(h){return xu(h)?Ur(void 0,h.useValue):Ur(Vy(h),Ro)}(g);if(Ki(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Ur(void 0,Ro,!0),C.factory=()=>lu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===Ro&&(m.value=ky,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Oy(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ug(h){const g=xr(h),m=null!==g?g.factory:De(h);if(null!==m)return m;if(h instanceof At)throw new ie(204,!1);if(h instanceof Function)return function Tu(h){const g=h.length;if(g>0)throw Ma(g,"?"),new ie(204,!1);const m=function po(h){const g=h&&(h[Pn]||h[pa]);if(g){const m=function zd(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),g}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function Vy(h,g,m){let _;if(Ki(h)){const C=te(h);return De(C)||ug(C)}if(xu(h))_=()=>te(h.useValue);else if(function Js(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...lu(h.deps||[]));else if(function yn(h){return!(!h||!h.useExisting)}(h))_=()=>si(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function By(h){return!!h.deps}(h))return De(C)||ug(C);_=()=>new C(...lu(h.deps))}return _}function Ur(h,g,m=!1){return{factory:h,value:g,multi:m?[]:void 0}}function q0(h){return!!h.\u0275providers}function pg(h,g){for(const m of h)Array.isArray(m)?pg(m,g):q0(m)?pg(m.\u0275providers,g):g(m)}class Pc{}class jy{resolveComponentFactory(g){throw function W0(h){const g=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let Va=(()=>{class h{}return h.NULL=new jy,h})();function Eu(){return qr(qt(),be())}function qr(h,g){return new Wr(Vt(h,g))}let Wr=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=Eu,h})();function Y0(h){return h instanceof Wr?h.nativeElement:h}class Ny{}let zy=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Gy(){const h=be(),m=Ct(qt().index,h);return(Di(m)?m:h)[11]}(),h})(),Q0=(()=>{class h{}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:()=>null}),h})();class Uy{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const J0=new Uy("14.1.2"),fg={};function Cg(h){return h.ngOriginalError}class Rc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&Cg(g);for(;m&&Cg(m);)m=Cg(m);return m||null}}const yg=new Map;let cT=0;const vg="__ngContext__";function Oi(h,g){Di(g)?(h[vg]=g[20],function uT(h){yg.set(h[20],h)}(g)):h[vg]=g}function Ic(h){const g=h[vg];return"number"==typeof g?function Ky(h){return yg.get(h)||null}(g):g||null}function Ag(h){const g=Ic(h);return g?Di(g)?g:g.lView:null}const bT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function $r(h){return h instanceof Function?h():h}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function Tg(h,g){return undefined(h,g)}function kc(h){const g=h[3];return nn(g)?g[3]:g}function Eg(h){return sw(h[13])}function Sg(h){return sw(h[4])}function sw(h){for(;null!==h&&!nn(h);)h=h[4];return h}function Zs(h,g,m,_,C){if(null!=_){let w,v=!1;nn(_)?w=_:Di(_)&&(v=!0,_=_[0]);const E=ze(_);0===h&&null!==m?null==C?at(g,m,E):ft(g,m,E,C||null,!0):1===h&&null!==m?ft(g,m,E,C||null,!0):2===h?function kg(h,g,m){const _=Wt(h,g);_&&function uw(h,g,m,_){h.removeChild(g,m,_)}(h,_,g,m)}(g,E,v):3===h&&g.destroyNode(E),null!=w&&function Og(h,g,m,_,C){const w=m[7];w!==ze(m)&&Zs(g,h,_,w,C);for(let E=10;E0&&(h[m-1][4]=_[4]);const w=ru(h,10+g);!function MT(h,g){Bo(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Un(h,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&Bo(h,g,m,3,null,null),function PT(h){let g=h[13];if(!g)return Xs(h[1],h);for(;g;){let m=null;if(Di(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==h;)Di(g)&&Xs(g[1],g),g=g[3];null===g&&(g=h),Di(g)&&Xs(g[1],g),m=g&&g[4]}g=m}}(g)}}function Xs(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function dw(h,g){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=H]():_[C=-H].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();g[7]=null}}(h,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&nn(g[3])){m!==g[3]&&cw(m,g);const _=g[19];null!==_&&_.detachView(h)}!function Zy(h){yg.delete(h[20])}(g)}}function Pg(h,g,m){return function Rg(h,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(h,g.parent,m)}function ft(h,g,m,_,C){h.insertBefore(g,m,_,C)}function at(h,g,m){h.appendChild(g,m)}function sn(h,g,m,_,C){null!==_?ft(h,g,m,_,C):at(h,g,m)}function Wt(h,g){return h.parentNode(g)}function hw(h,g,m){return Ig(h,g,m)}let Ig=function Du(h,g,m){return 40&h.type?Vt(h,m):null};function Hu(h,g,m,_){const C=Pg(h,_,g),w=g[11],E=hw(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==fw(re,H,0)||2&_&&H!==X){if(wn(_))return!1;v=!0}}}}else{if(!v&&!wn(_)&&!wn(S))return!1;if(v&&wn(S))continue;v=!1,_=S|1&_}}return wn(_)||v}function wn(h){return 0==(1&h)}function kT(h,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!wn(v)&&(g+=Ng(w,C),C=""),_=v,w=w||!wn(_);m++}return""!==C&&(g+=Ng(w,C)),g}const st={};function Vu(h){Bu(ut(),be(),Ri()+h,!1)}function Bu(h,g,m,_){if(!_)if(3==(3&g[2])){const w=h.preOrderCheckHooks;null!==w&&vo(g,w,m)}else{const w=h.preOrderHooks;null!==w&&xa(g,w,0,m)}Vr(m)}function xw(h,g=null,m=null,_){const C=Tw(h,g,m,_);return C.resolveInjectorInitializers(),C}function Tw(h,g=null,m=null,_,C=new Set){const w=[m||Ne,ei(h)];return _=_||("object"==typeof h?void 0:Q(h)),new Dc(w,g||ko(),_||null,C)}let qn=(()=>{class h{static create(m,_){if(Array.isArray(m))return xw({name:""},_,m,"");{const C=m.name??"";return xw({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=zs,h.NULL=new Sc,h.\u0275prov=Dt({token:h,providedIn:"any",factory:()=>si(cg)}),h.__NG_ELEMENT_ID__=-1,h})();function rl(h,g=Qe.Default){const m=be();return null===m?si(h,g):Ef(qt(),m,te(h),g)}function Iw(){throw new Error("invalid")}function jc(h,g){return h<<17|g<<2}function vn(h){return h>>17&32767}function We(h){return 2|h}function Qr(h){return(131068&h)>>2}function Jg(h,g){return-131069&h|g<<2}function Oa(h){return 1|h}function $w(h,g){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Bu(h,g,22,!1),m(_,C)}finally{Vr(w)}}function $n(h,g,m){if(As(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=h[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function gm(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function mm(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function Yc(h,g,m){if(m){if(g.exportAs)for(let _=0;_0&&Cm(m)}}function Cm(h){for(let _=Eg(h);null!==_;_=Sg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];sl(v,w,v.template,w[8])}else w[5]>0&&Cm(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Cm(C)}}function tE(h,g){const m=Ct(g,h),_=m[1];(function tv(h,g){for(let m=g.length;mPromise.resolve(null))();function rv(h){return h[7]||(h[7]=[])}function av(h){return h.cleanup||(h.cleanup=[])}function Yn(h,g,m){return(null===h||Qi(h))&&(m=function Hi(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[g.index])),m[11]}function Na(h,g){const m=h[9],_=m?m.get(Rc,null):null;_&&_.handleError(g)}function Am(h,g,m,_,C){for(let w=0;w-1&&(Su(g,_),ru(m,_))}this._attachedToViewContainer=!1}Un(this._lView[1],this._lView)}onDestroy(g){th(this._lView[1],this._lView,null,g)}markForCheck(){ym(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function wm(h,g,m){const _=g[10];_.begin&&_.begin();try{sl(h,g,h.template,m)}catch(C){throw Na(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function HT(h,g){Bo(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class nE extends Jc{constructor(g){super(g),this._view=g}detectChanges(){nv(this._view)}checkNoChanges(){}get context(){return null}}class cl extends Va{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new za(m,this.ngModule)}}function dl(h){const g=[];for(let m in h)h.hasOwnProperty(m)&&g.push({propName:h[m],templateName:m});return g}class ov{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,fg,_);return C!==fg||m===fg?C:this.parentInjector.get(g,m,_)}}class za extends Pc{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function Cw(h){return h.map(bw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return dl(this.componentDef.inputs)}get outputs(){return dl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof vi?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new ov(g,w):g,E=v.get(Ny,null);if(null===E)throw new ie(407,!1);const S=v.get(Q0,null),H=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function Wc(h,g,m){return h.selectRootElement(g,m===q.ShadowDom)}(H,_,this.componentDef.encapsulation):Dg(E.createRenderer(null,this.componentDef),R,function sh(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function lE(h,g){return{components:[],scheduler:h||bT,clean:iE,playerHandler:g||null,flags:0}}(),me=eh(0,null,null,1,0,null,null,null,null,null),Ae=Gc(null,me,re,X,null,null,E,H,S,v,null);let He,je;yo(Ae);try{const Ze=function sE(h,g,m,_,C,w){const v=m[1];m[22]=h;const S=jo(v,22,2,"#host",null),H=S.mergedAttrs=g.hostAttrs;null!==H&&(ah(S,H,!0),null!==h&&(lr(C,h,H),null!==S.classes&&Oo(C,h,S.classes),null!==S.styles&&Lg(C,h,S.styles)));const R=_.createRenderer(h,g),L=Gc(m,Xu(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(ac(Vs(S,m),v,g.type),mm(v,S),_m(S,m.length,1)),ll(m,L),m[22]=L}(L,this.componentDef,Ae,E,H);if(L)if(_)lr(H,L,["ng-version",J0.full]);else{const{attrs:ye,classes:$e}=function yw(h){const g=[],m=[];let _=1,C=2;for(;_0&&Oo(H,L,$e.join(" "))}if(je=an(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=h[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Is(C.hostAttrs,m=Is(m,C.hostAttrs))}}(_)}function xm(h){return h===ct?{}:h===Ne?[]:h}function lv(h,g){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function Tm(h,g){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function ch(h,g){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Go=null;function Uo(){if(!Go){const h=ce.Symbol;if(h&&h.iterator)Go=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function _v(h,g,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=km(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,ye,Ze,Ze+1)}}else w=km(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const He=Ae.length;if(He)for(let je=0;je0;)g=g[15],h--;return g}(h,le.lFrame.contextLView))[8]}(h)}function bv(h,g){let m=null;const _=function VT(h){const g=h.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(h);for(let C=0;C=0}function Qm(h,g,m){return Jn(h,g,m,!1),Qm}function Jm(h,g){return Jn(h,g,null,!0),Jm}function Jn(h,g,m,_){const C=be(),w=ut(),v=Fn(2);w.firstUpdatePass&&function Ev(h,g,m,_){const C=h.data;if(null===C[m+1]){const w=C[Ri()],v=function Tv(h,g){return g>=h.expandoStartIndex}(h,m);(function Xm(h,g){return 0!=(h.flags&(g?16:32))})(w,_)&&null===g&&!v&&(g=!1),g=function fE(h,g,m,_){const C=or(h);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=Zo(m=Km(null,h,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Km(C,h,g,m,_),null===w){let S=function gE(h,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Qr(_))return h[vn(_)]}(h,g,_);void 0!==S&&Array.isArray(S)&&(S=Km(null,h,g,S[1],_),S=Zo(S,g.attrs,_),function mE(h,g,m,_){h[vn(m?g.classBindings:g.styleBindings)]=_}(h,g,_,S))}else w=function _E(h,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(H=!0)}else R=m;if(C)if(0!==S){const X=vn(h[E+1]);h[_+1]=jc(X,E),0!==X&&(h[X+1]=Jg(h[X+1],_)),h[E+1]=function kw(h,g){return 131071&h|g<<17}(h[E+1],_)}else h[_+1]=jc(E,0),0!==E&&(h[E+1]=Jg(h[E+1],_)),E=_;else h[_+1]=jc(S,0),0===E?E=_:h[S+1]=Jg(h[S+1],_),S=_;H&&(h[_+1]=We(h[_+1])),Gm(h,R,_,!0),Gm(h,R,_,!1),function pE(h,g,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof g&&Eo(w,g)>=0&&(m[_+1]=Oa(m[_+1]))}(g,R,h,_,w),v=jc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}(w,h,v,_),g!==st&&li(C,v,g)&&function Mv(h,g,m,_,C,w,v,E){if(!(3&g.type))return;const S=h.data,H=S[E+1];nd(function Vw(h){return 1==(1&h)}(H)?Zm(S,g,m,C,Qr(H),v):void 0)||(nd(w)||function Qg(h){return 2==(2&h)}(H)&&(w=Zm(S,null,m,C,E,v)),function pw(h,g,m,_,C){if(g)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:pr.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=pr.Important),h.setStyle(m,_,C,w))}}(_,v,ya(Ri(),m),C,w))}(w,w.data[Ri()],C,C[11],h,C[v+1]=function yE(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=Q(zn(h)))),h}(g,m),_,v)}function Km(h,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=h[C],H=Array.isArray(S),R=H?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?ou(X,_):R===_?X:void 0;if(H&&!nd(re)&&(re=ou(S,_)),nd(re)&&(E=re,v))return E;const me=h[C+1];C=v?vn(me):Qr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=ou(S,_))}return E}function nd(h){return void 0!==h}function Dv(h,g=""){const m=be(),_=ut(),C=h+22,w=_.firstCreatePass?jo(_,C,1,g,null):_.data[C],v=m[C]=function Mg(h,g){return h.createText(g)}(m[11],g);Hu(_,m,v,w),Ot(w,!1)}function e_(h){return Ah("",h,""),e_}function Ah(h,g,m){const _=be(),C=Ua(_,h,g,m);return C!==st&&Jr(_,Ri(),C),Ah}function t_(h,g,m,_,C){const w=be(),v=hl(w,h,g,m,_,C);return v!==st&&Jr(w,Ri(),v),t_}function l_(h,g,m){const _=be();return li(_,Aa(),g)&&Ai(ut(),Qt(),_,h,g,_[11],m,!0),l_}function c_(h,g,m){const _=be();if(li(_,Aa(),g)){const w=ut(),v=Qt();Ai(w,v,_,h,g,Yn(or(w.data),v,_),m,!0)}return c_}const Zn=void 0;var Kv=["en",[["a","p"],["AM","PM"],Zn],[["AM","PM"],Zn,Zn],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zn,"{1} 'at' {0}",Zn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function d_(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let es={};function Th(h){const g=function TE(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=eA(g);if(m)return m;const _=g.split("-")[0];if(m=eA(_),m)return m;if("en"===_)return Kv;throw new ie(701,!1)}function Xv(h){return Th(h)[Ke.PluralCase]}function eA(h){return h in es||(es[h]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[h]),es[h]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const _l="en-US";let u_=_l;function Nh(h,g,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(Ki(h)||!h.multi){const re=new Rs(S,C,rl),me=Gh(E,g,C?R:R+X,L);-1===me?(ac(Vs(H,v),w,E),zh(w,h,g.length),g.push(E),H.directiveStart++,H.directiveEnd++,C&&(H.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Gh(E,g,R+X,L),me=Gh(E,g,R,R+X),Ae=re>=0&&m[re],He=me>=0&&m[me];if(C&&!He||!C&&!Ae){ac(Vs(H,v),w,E);const je=function kE(h,g,m,_,C){const w=new Rs(h,m,rl);return w.multi=[],w.index=g,w.componentProviders=0,as(w,C,_&&!m),w}(C?yA:CA,m.length,C,_,S);!C&&He&&(m[me].providerFactory=je),zh(w,h,g.length,0),g.push(E),H.directiveStart++,H.directiveEnd++,C&&(H.providerIndexes+=1048576),m.push(je),v.push(je)}else zh(w,h,re>-1?re:me,as(m[C?me:re],S,!C&&_));!C&&_&&He&&m[me].componentProviders++}}}function zh(h,g,m,_){const C=Ki(g),w=function Iy(h){return!!h.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const H=h.destroyHooks||(h.destroyHooks=[]);if(!C&&g.multi){const R=H.indexOf(m);-1===R?H.push(m,[_,S]):H[R+1].push(_,S)}else H.push(m,S)}}}function as(h,g,m){return m&&h.componentProviders++,h.multi.push(g)-1}function Gh(h,g,m,_){for(let C=m;C<_;C++)if(g[C]===h)return C;return-1}function CA(h,g,m,_){return dd(this.multi,[])}function yA(h,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Os(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),dd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Dl(h,g,m){const _=ut();if(_.firstCreatePass){const C=Qi(h);Nh(m,_.data,_.blueprint,C,!0),Nh(g,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,g)}}class os{}class P_{}function wA(h,g){return new R_(h,g??null)}class R_ extends os{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const _=ji(g);this._bootstrapComponents=$r(_.bootstrap),this._r3Injector=Tw(g,m,[{provide:os,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class I_ extends P_{constructor(g){super(),this.moduleType=g}create(g){return new R_(this.moduleType,g)}}class k_ extends os{constructor(g,m,_){super(),this.componentFactoryResolver=new cl(this),this.instance=null;const C=new Dc([...g,{provide:os,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],m||ko(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Hl(h,g,m=null){return new k_(h,g,m).injector}function HA(h,g,m,_){return O_(be(),Bi(),h,g,m,_)}function ud(h,g){const m=h[g];return m===st?void 0:m}function O_(h,g,m,_,C,w){const v=g+m;return li(h,v,C)?Qn(h,v+1,w?_.call(w,C):_(C)):ud(h,v+1)}function F_(h,g,m,_,C,w,v,E){const S=g+m;return function Xc(h,g,m,_,C){const w=Xr(h,g,m,_);return li(h,g+2,C)||w}(h,S,C,w,v)?Qn(h,S+3,E?_.call(E,C,w,v):_(C,w,v)):ud(h,S+3)}function VA(h,g){const m=ut();let _;const C=h+22;m.firstCreatePass?(_=function YE(h,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(h===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Ei(rl);try{const E=ks(!1),S=w();return ks(E),function Hm(h,g,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Ei(v)}}function BA(h,g,m){const _=h+22,C=be(),w=zi(C,_);return pd(C,_)?O_(C,Bi(),g,w.transform,m,w):w.transform(m)}function OA(h,g,m,_){const C=h+22,w=be(),v=zi(w,C);return pd(w,C)?function L_(h,g,m,_,C,w,v){const E=g+m;return Xr(h,E,C,w)?Qn(h,E+2,v?_.call(v,C,w):_(C,w)):ud(h,E+2)}(w,Bi(),g,v.transform,m,_,v):v.transform(m,_)}function LA(h,g,m,_,C){const w=h+22,v=be(),E=zi(v,w);return pd(v,w)?F_(v,Bi(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function pd(h,g){return h[1].data[g].pure}function j_(h){return g=>{setTimeout(h,void 0,g)}}const wr=class JE extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=j_(w),C&&(C=j_(C)),v&&(v=j_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof p.w0&&g.add(E),E}};function KE(){return this._results[Uo()]()}class Uh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Uo(),_=Uh.prototype;_[m]||(_[m]=KE)}get changes(){return this._changes||(this._changes=new wr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=on(g);(this._changesDetected=!function Pf(h,g,m){if(h.length!==g.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=XE,h})();const ZE=fd,N_=class extends ZE{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=Gc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Uc(_,C,g),new Jc(C)}};function XE(){return cs(qt(),be())}function cs(h,g){return 4&h.type?new N_(g,h,qr(h,g)):null}let qh=(()=>{class h{}return h.__NG_ELEMENT_ID__=eS,h})();function eS(){return G_(qt(),be())}const tS=qh,jA=class extends tS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return qr(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const g=rc(this._hostTNode,this._hostLView);if(ic(g)){const m=Or(g,this._hostLView),_=jn(g);return new Gi(m[1].data[_+8],m)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=NA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Fs(h){return"function"==typeof h}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new za(Et(g)),H=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?H:this.parentInjector).get(vi,null);X&&(w=X)}const R=S.create(H,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(h){return nn(h[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new jA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function RT(h,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const H=w[E+1],R=g[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=eo,this.reject=eo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(si(ps,8))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const cp=new At("AppId",{providedIn:"root",factory:function Ed(){return`${gs()}${gs()}${gs()}`}});function gs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dp=new At("Platform Initializer"),sb=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),kl=new At("appBootstrapListener"),cS=new At("AnimationModuleType");let dS=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const hp=new At("LocaleId",{providedIn:"root",factory:()=>Bf(hp,Qe.Optional|Qe.SkipSelf)||function rx(){return typeof $localize<"u"&&$localize.locale||_l}()}),Sd=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class ax{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let gp=(()=>{class h{compileModuleSync(m){return new I_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=$r(ji(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new za(S)),v},[]);return new ax(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const hS=(()=>Promise.resolve(0))();function _p(h){typeof Zone>"u"?hS.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class un{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function cb(){let h=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function yp(h){const g=()=>{!function db(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(ce,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,wp(h),h.isCheckStableRunning=!0,Cp(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),wp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return lx(h),m.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&g(),ub(h)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return lx(h),m.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&g(),ub(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,wp(h),Cp(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!un.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(un.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,bp,eo,eo);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const bp={};function Cp(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function wp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function lx(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function ub(h){h._nesting--,Cp(h)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const ms=new At(""),vp=new At("");let Ap,hb=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ap||(function pb(h){Ap=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{un.assertNotInAngularZone(),_p(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())_p(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(si(un),si(to),si(vp))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac}),h})(),to=(()=>{class h{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return Ap?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),vr=null;const cx=new At("AllowMultipleToken"),fb=new At("PlatformDestroyListeners");class dx{constructor(g,m){this.name=g,this.token=m}}function Tp(h,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Ep();if(!v||v.injector.get(cx,!1)){const E=[...m,...w,{provide:C,useValue:!0}];h?h(E):function mb(h){if(vr&&!vr.get(cx,!1))throw new ie(400,!1);vr=h;const g=h.get(Sp);(function _b(h){const g=h.get(dp,null);g&&g.forEach(m=>m())})(h)}(function hx(h=[],g){return qn.create({name:g,providers:[{provide:dg,useValue:"platform"},{provide:fb,useValue:new Set([()=>vr=null])},...h]})}(E,_))}return function ux(h){const g=Ep();if(!g)throw new ie(401,!1);return g}()}}function Ep(){return vr?.get(Sp)??null}let Sp=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function Cb(h,g){let m;return m="noop"===h?new Vl:("zone.js"===h?void 0:h)||new un(g),m}(_?.ngZone,function bb(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:un,useValue:C}];return C.run(()=>{const v=qn.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(Rc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const H=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Pd(this._modules,E),H.unsubscribe()})}),function Hd(h,g,m){try{const _=m();return td(_)?_.catch(C=>{throw g.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const H=E.injector.get(fs);return H.runInitializers(),H.donePromise.then(()=>(function ts(h){It(h,"Expected localeId to be defined"),"string"==typeof h&&(u_=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(hp,_l)||_l),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=yb({},_);return function pS(h,g,m){const _=new I_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Bl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(fb,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(si(qn))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function yb(h,g){return Array.isArray(g)?g.reduce(yb,h):{...h,...g}}let Bl=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{un.assertNotInAngularZone(),_p(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const H=this._zone.onUnstable.subscribe(()=>{un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),H.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Pc;if(!this._injector.get(fs).done)throw!C&&Xa(m),new ie(405,false);let v;v=C?m:this._injector.get(Va).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function gb(h){return h.isBoundToModule}(v)?void 0:this._injector.get(os),H=v.create(qn.NULL,[],_||v.selector,E),R=H.location.nativeElement,L=H.injector.get(ms,null);return L?.registerApplication(R),H.onDestroy(()=>{this.detachView(H.hostView),Pd(this.components,H),L?.unregisterApplication(R)}),this._loadComponent(H),H}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Pd(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(kl,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Pd(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(si(un),si(vi),si(Rc))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Pd(h,g){const m=h.indexOf(g);m>-1&&h.splice(m,1)}let Rd=!0;function Ab(){Rd=!1}let Eb=(()=>{class h{}return h.__NG_ELEMENT_ID__=gx,h})();function gx(h){return function Mp(h,g,m){if(Ca(h)&&!m){const _=Ct(h.index,g);return new Jc(_,_)}return 47&h.type?new Jc(g[16],g):null}(qt(),be(),16==(16&h))}class Db{constructor(){}supports(g){return ul(g)}create(g){return new yx(g)}}const Hb=(h,g)=>g;class yx{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Hb}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Pb(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new wx),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wx),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Pb{constructor(g,m){this.item=g,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class vS{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class wx{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new vS,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vx(h,g,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new ao(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class ao{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Vp(){return new Rb([new Db])}let Rb=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Vp()),deps:[[h,new Pa,new Mo]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:Vp}),h})();function Bp(){return new Op([new Ip])}let Op=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Bp()),deps:[[h,new Pa,new Mo]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:Bp}),h})();const Tx=Tp(null,"core",[]);let xS=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(si(Bl))},h.\u0275mod=Sr({type:h}),h.\u0275inj=ri({}),h})();function TS(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),p=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(p.substr(0,p.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const p=T.indexOf("?");return T=T.substr(p>-1?p+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let p,V,O,I,j,W,Q;if(null===x)return T;p=x.split("&");for(let U=0;U>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==p)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var U=F[T]||0;W[T]=92^U,Q[T]=54^U}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,p=0,O=F.length,I=this.blocks;p>2]|=F[p]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,G,J,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((G=j[W-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+j[W-7]+(((G=j[W-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(G=j[0]-1413257819)-150054599<<0,T=G+24177077<<0):(J=704751109,I=(G=j[0]-210244248)-1521486534<<0,T=G+143694565<<0),this.first=!1):(I=T+(G=I+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&V^~p&O)+K[W]+j[W])<<0,T=G+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&N)^F&x^he))<<0),O=x+(G=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&p^~I&V)+K[W+1]+j[W+1])<<0,x=G+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^J))<<0,V=N+(G=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&p)+K[W+2]+j[W+2])<<0,N=G+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,p=F+(G=p+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+p<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,p>>24&255,p>>16&255,p>>8&255,255&p,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let p of x)T+=String.fromCharCode(p);return T}toHashString(x){const T=new Uint8Array(x);let p="";for(let V of T)p+=String.fromCharCode(V);return p}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,p,V,O,I,j,W,Q,U){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{p?this.setStorage(p):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,p=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,p).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],p=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return p||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),p=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),p=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const p=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(p-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,p)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void p("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),p(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),p(V)}):p("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(p=>{this.jwks=p,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(p)},p=>{this.logger.error("error loading jwks",p),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",p)),T(p)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,p).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:p,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},p)}fetchTokenUsingGrant(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return p=p.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:p}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,p,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(p=>this.debug("tryLogin during silent refresh failed",p))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const p=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=p.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{O.setAttribute("src",U),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((p,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),p(!0)},ne=>{U(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(U(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(j),window.removeEventListener("storage",G),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",G),W(ne)):console.log("false event firing")},G=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",G)}))}calculatePopupFeatures(x){const T=x.height||470,p=x.width||500,V=window.screenLeft+(window.outerWidth-p)/2;return`location=no,toolbar=no,width=${p},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const p=x.data;return p.startsWith(T)?"#"+p.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),p=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),p.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",p,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",p="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=p||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const U=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let G=j.loginUrl+U+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),G+="&code_challenge="+te,G+="&code_challenge_method=S256"}T&&(G+="&login_hint="+encodeURIComponent(T)),j.resource&&(G+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(G+="&nonce="+encodeURIComponent(Q)),V&&(G+="&prompt=none");for(const te of Object.keys(O))G+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))G+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return G})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,V,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"discovery_document_loaded"===p.type)).subscribe(p=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const p={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(p)}}storeAccessTokenResponse(x,T,p,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),p){const I=1e3*p,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const p=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(p),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const U=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,U)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const U=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(U),Promise.reject(U)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?p=p.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(p,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:p}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const p=T.state;let[V,O]=this.parseState(p);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!p||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:U.idTokenClaims,idToken:U.idToken,state:p}).then($=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,p="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),p=x.substr(V+this.config.nonceStateSeparator.length))}return[T,p]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,p=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),U=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+U.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(U.aud!==this.clientId){const de="Wrong audience: "+U.aud;return this.logger.warn(de),Promise.reject(de)}if(!U.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!U.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const de="Wrong issuer: "+U.iss;return this.logger.warn(de),Promise.reject(de)}if(!p&&U.nonce!==$){const de="Wrong nonce: "+U.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const G=this.dateTimeService.now(),te=1e3*U.iat,ne=1e3*U.exp,J=this.getClockSkewInMsec();if(te-J>=G||ne+J<=G){const de="Token has expired";return console.error(de),console.error({now:G,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let p=!1;"boolean"==typeof x&&(p=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||p||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let p=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(p);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===p.type)).subscribe(p=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,V,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>{x[p]&&T.set(p,JSON.stringify(x[p]))}),T}revokeTokenAndLogout(x={},T=!1){let p=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let U,$;if(V){let G=I.set("token",V).set("token_type_hint","access_token");U=this.http.post(p,G,{headers:j})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let G=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(p,G,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([U,$]).subscribe(G=>{this.logOut(x),W(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),Q(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,p){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=p}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const p=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(p)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,U){try{var $=V[Q](U),G=$.value}catch(te){return void I(te)}$.done?O(G):Promise.resolve(G).then(j,W)}function p(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function U(G){T(Q,j,W,U,$,"next",G)}function $(G){T(Q,j,W,U,$,"throw",G)}U(void 0)})}}x.d(N,{Z:()=>p})},4147:F=>{"use strict";F.exports={i8:"9.2.0"}}},F=>{F(F.s=7926)}]); \ No newline at end of file +(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{7926:(F,N,x)=>{"use strict";var T=x(6895),p=x(4650);class V extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class O extends V{static makeCurrent(){(0,T.HT)(new O)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function j(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function Q(s){W=W||document.createElement("a"),W.setAttribute("href",s);const r=W.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let W,I=null;const U=new p.OlP("TRANSITION_ID"),G=[{provide:p.ip1,useFactory:function $(s,r,e){return()=>{e.get(p.CZH).donePromise.then(()=>{const t=(0,T.q)(),a=r.querySelectorAll(`style[ng-transition="${s}"]`);for(let l=0;l{class s{build(){return new XMLHttpRequest}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const J=new p.OlP("EventManagerPlugins");let ie=(()=>{class s{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(a=>a.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,a){return this._findPluginFor(t).addEventListener(e,t,a)}addGlobalEventListener(e,t,a){return this._findPluginFor(t).addGlobalEventListener(e,t,a)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const a=this._plugins;for(let l=0;l{class s{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(a=>{this._stylesSet.has(a)||(this._stylesSet.add(a),t.add(a))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ge=(()=>{class s extends he{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,a){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,a.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ve),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,a)=>{this._addStylesToHost(e,a,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ve))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function Ve(s){(0,T.q)().remove(s)}const Be={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},we=/%COMP%/g;function oe(s,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return s;!1===s(r)&&(r.preventDefault(),r.returnValue=!1)}}let ue=(()=>{class s{constructor(e,t,a){this.eventManager=e,this.sharedStylesHost=t,this.appId=a,this.rendererByCompId=new Map,this.defaultRenderer=new Re(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case p.ifc.Emulated:{let a=this.rendererByCompId.get(t.id);return a||(a=new It(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,a)),a.applyToHost(e),a}case 1:case p.ifc.ShadowDom:return new Le(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const a=oe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(a),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ie),p.LFG(ge),p.LFG(p.AFp))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Re{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){(Tt(r)?r.content:r).appendChild(e)}insertBefore(r,e,t){r&&(Tt(r)?r.content:r).insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,a){if(a){e=a+":"+e;const l=Be[a];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const a=Be[t];a?r.removeAttributeNS(a,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,a){a&(p.JOm.DashCase|p.JOm.Important)?r.style.setProperty(e,t,a&p.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&p.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,se(t)):this.eventManager.addEventListener(r,e,se(t))}}function Tt(s){return"TEMPLATE"===s.tagName&&void 0!==s.content}class It extends Re{constructor(r,e,t,a){super(r),this.component=t;const l=oe(a+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ee(s){return"_ngcontent-%COMP%".replace(we,s)}(a+"-"+t.id),this.hostAttr=function Te(s){return"_nghost-%COMP%".replace(we,s)}(a+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Le extends Re{constructor(r,e,t,a){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=oe(a.id,a.styles,[]);for(let c=0;c{class s extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,a){return e.addEventListener(t,a,!1),()=>this.removeEventListener(e,t,a)}removeEventListener(e,t,a){return e.removeEventListener(t,a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Hn=["alt","control","meta","shift"],Dt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},ri={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey};let xr=(()=>{class s extends de{constructor(e){super(e)}supports(e){return null!=s.parseEventName(e)}addEventListener(e,t,a){const l=s.parseEventName(t),c=s.eventCallback(l.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),a=t.shift();if(0===t.length||"keydown"!==a&&"keyup"!==a)return null;const l=s._normalizeKey(t.pop());let c="";if(Hn.forEach(i=>{const o=t.indexOf(i);o>-1&&(t.splice(o,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=a,n.fullKey=c,n}static getEventFullKey(e){let t="",a=function ql(s){let r=s.key;if(null==r){if(r=s.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===s.location&&pn.hasOwnProperty(r)&&(r=pn[r]))}return Dt[r]||r}(e);return a=a.toLowerCase()," "===a?a="space":"."===a&&(a="dot"),Hn.forEach(l=>{l!=a&&(0,ri[l])(e)&&(t+=l+".")}),t+=a,t}static eventCallback(e,t,a){return l=>{s.getEventFullKey(l)===e&&a.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Qe=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:T.bD},{provide:p.g9A,useValue:function Pn(){O.makeCurrent()},multi:!0},{provide:T.K0,useFactory:function pa(){return(0,p.RDi)(document),document},deps:[]}]),ci=new p.OlP(""),fa=[{provide:p.rWj,useClass:class te{addToWindow(r){p.dqk.getAngularTestability=(t,a=!0)=>{const l=r.findTestabilityInTree(t,a);if(null==l)throw new Error("Could not find testability for element.");return l},p.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(t=>{const a=p.dqk.getAllAngularTestabilities();let l=a.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};a.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){return null==e?null:r.getTestability(e)??(t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Ei=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Rn(){return new p.qLn},deps:[]},{provide:J,useClass:Ti,multi:!0,deps:[T.K0,p.R0b,p.Lbi]},{provide:J,useClass:xr,multi:!0,deps:[T.K0]},{provide:ue,useClass:ue,deps:[ie,ge,p.AFp]},{provide:p.FYo,useExisting:ue},{provide:he,useExisting:ge},{provide:ge,useClass:ge,deps:[T.K0]},{provide:ie,useClass:ie,deps:[J,p.R0b]},{provide:T.JF,useClass:ne,deps:[]},[]];let ga=(()=>{class s{constructor(e){}static withServerTransition(e){return{ngModule:s,providers:[{provide:p.AFp,useValue:e.appId},{provide:U,useExisting:p.AFp},G]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ci,12))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[...Ei,...fa],imports:[T.ez,p.hGG]}),s})(),Y=(()=>{class s{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ce(){return new Y((0,p.LFG)(T.K0))}(),t},providedIn:"root"}),s})();typeof window<"u"&&window;let ai=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new(e||s):p.LFG(nt),t},providedIn:"root"}),s})(),nt=(()=>{class s extends ai{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case p.q3G.NONE:return t;case p.q3G.HTML:return(0,p.qzn)(t,"HTML")?(0,p.z3N)(t):(0,p.EiD)(this._doc,String(t)).toString();case p.q3G.STYLE:return(0,p.qzn)(t,"Style")?(0,p.z3N)(t):t;case p.q3G.SCRIPT:if((0,p.qzn)(t,"Script"))return(0,p.z3N)(t);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.qzn)(t,"URL")?(0,p.z3N)(t):(0,p.mCW)(String(t));case p.q3G.RESOURCE_URL:if((0,p.qzn)(t,"ResourceURL"))return(0,p.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,p.JVY)(e)}bypassSecurityTrustStyle(e){return(0,p.L6k)(e)}bypassSecurityTrustScript(e){return(0,p.eBb)(e)}bypassSecurityTrustUrl(e){return(0,p.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,p.pB0)(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:function(e){let t=null;return t=e?new e:function Ie(s){return new nt(s.get(T.K0))}(p.LFG(p.zs3)),t},providedIn:"root"}),s})();var y=x(529);class St{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const ht=new p.OlP("basePath");class Oe{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let Mr=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}convertAttributeToNonunique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}convertAttributeToUnique(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}createAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}deleteAttributeDefinitions(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAllAttributeDefinitions(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,a,l,c,n,i,o,d,u,f,b="body",P=!1,z){let ae=new y.LE({encoder:this.encoder});null!=e&&(ae=this.addToHttpParams(ae,e,"attributeName")),null!=t&&(ae=this.addToHttpParams(ae,t,"attributeId")),null!=a&&(ae=this.addToHttpParams(ae,a,"facility")),null!=l&&(ae=this.addToHttpParams(ae,l,"user")),null!=c&&(ae=this.addToHttpParams(ae,c,"vo")),null!=n&&(ae=this.addToHttpParams(ae,n,"resource")),null!=i&&(ae=this.addToHttpParams(ae,i,"member")),null!=o&&(ae=this.addToHttpParams(ae,o,"group")),null!=d&&(ae=this.addToHttpParams(ae,d,"host")),null!=u&&(ae=this.addToHttpParams(ae,u,"userExtSource")),null!=f&&(ae=this.addToHttpParams(ae,f,"key"));let lt,ke=this.defaultHeaders;lt=this.configuration.lookupCredential("BasicAuth"),lt&&(ke=ke.set("Authorization","Basic "+lt)),lt=this.configuration.lookupCredential("BearerAuth"),lt&&(ke=ke.set("Authorization","Bearer "+lt));let yt=z&&z.httpHeaderAccept;void 0===yt&&(yt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==yt&&(ke=ke.set("Accept",yt));let zt=z&&z.context;void 0===zt&&(zt=new y.qT);let Ar="json";return yt&&(Ar=yt.startsWith("text")?"text":this.configuration.isJsonMime(yt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:zt,params:ae,responseType:Ar,withCredentials:this.configuration.withCredentials,headers:ke,observe:b,reportProgress:P})}getAttributeDefinitionById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeDefinitionsByNamespace(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeModulesDependenciesForAttributeGraphText(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAttributesDefinitionWithRights(e,t,a,l,c,n,i,o,d="body",u=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=a&&(b=this.addToHttpParams(b,a,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=o&&(b=this.addToHttpParams(b,o,"userExtSource"));let z,P=this.defaultHeaders;z=this.configuration.lookupCredential("BasicAuth"),z&&(P=P.set("Authorization","Basic "+z)),z=this.configuration.lookupCredential("BearerAuth"),z&&(P=P.set("Authorization","Bearer "+z));let ae=f&&f.httpHeaderAccept;void 0===ae&&(ae=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ae&&(P=P.set("Accept",ae));let ke=f&&f.context;void 0===ke&&(ke=new y.qT);let lt="json";return ae&&(lt=ae.startsWith("text")?"text":this.configuration.isJsonMime(ae)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:ke,params:b,responseType:lt,withCredentials:this.configuration.withCredentials,headers:P,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesByName(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getEntitylessAttributesWithKeys(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getEntitylessKeys(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFacilityAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getFacilityAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==a)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"user")),null!=l&&(o=this.addToHttpParams(o,l,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupResourceAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getHostAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getHostAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getHostAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLogins(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAndUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(P=>{i=this.addToHttpParams(i,P,"attrNames[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getMemberAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getMemberGroupAttributesByNames(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacility(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesFacilityService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"workWithUserAttributes"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let P=o&&o.context;void 0===P&&(P=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:P,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=a&&(o=this.addToHttpParams(o,a,"member")),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesResourceService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesResourceServices(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRequiredAttributesUserFacility(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getRequiredAttributesVoService(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getResourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==a)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"workWithGroupAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=a&&(o=this.addToHttpParams(o,a,"member")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserFacilityAttributeById(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=a&&(i=this.addToHttpParams(i,a,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=a&&(i=this.addToHttpParams(i,a,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getVoAttributeById(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getVoAttributeByName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVoAttributesByNames(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,a,l,c,n,i="body",o=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=a&&(u=this.addToHttpParams(u,a,"group")),null!=l&&(u=this.addToHttpParams(u,l,"user")),null!=c&&(u=this.addToHttpParams(u,c,"member")),n&&n.forEach(ke=>{u=this.addToHttpParams(u,ke,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}removeAttributesForFacilityResourceUserMember(e,t,a,l,c,n="body",i=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=a&&(d=this.addToHttpParams(d,a,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(ae=>{d=this.addToHttpParams(d,ae,"attributes[]")});let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=o&&o.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let P=o&&o.context;void 0===P&&(P=new y.qT);let z="json";return b&&(z=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:P,params:d,responseType:z,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeFacilityAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeFacilityAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeGroupAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeGroupAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeGroupResourceAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeHostAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeMemberAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeMemberAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")}),null!=a&&(i=this.addToHttpParams(i,a,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),a&&a.forEach(z=>{o=this.addToHttpParams(o,z,"attributes[]")}),null!=l&&(o=this.addToHttpParams(o,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeResourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeResourceAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUesAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSourceAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserFacilityAttribute(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=a&&(i=this.addToHttpParams(i,a,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),a&&a.forEach(P=>{i=this.addToHttpParams(i,P,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}removeVoAttribute(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeVoAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setAttributePolicyCollections(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setAttributeRights(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setEntitylessAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceGroupUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityResourceUserMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setFacilityUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setGroupResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setHostAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberGroupWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAndUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setMemberWithUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setResourceGroupWithGroupAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserExtSourceAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setUserFacilityAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttribute(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setVoAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateAttributeDefinition(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAllPolicies(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=a&&(i=this.addToHttpParams(i,a,"complementaryObjectName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,a,l,c,n,i="body",o=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==a)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=a&&(u=this.addToHttpParams(u,a,"complementaryObjectName")),l&&l.forEach(ke=>{u=this.addToHttpParams(u,ke,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}getFacilitiesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getLoggedUser(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getPerunPrincipal(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserRoleNames(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserRoles(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsInRoles(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}isFacilityAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isGroupAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isPerunAdmin(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}keepAlive(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}setRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithGroupComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}unsetRoleWithUserComplementaryObject(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Rt=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}sentMessageToRTWithMemberQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"memberId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==a)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=a&&(i=this.addToHttpParams(i,a,"text"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"queue")),null!=a&&(o=this.addToHttpParams(o,a,"subject")),null!=l&&(o=this.addToHttpParams(o,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),ar=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}addSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}addUserExtSource(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}anonymizeUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}changePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}checkPasswordResetRequestByTokenIsValid(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}checkPasswordStrength(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createAlternativePassword(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}createServiceUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}deleteAlternativePassword(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==a)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=a&&(i=this.addToHttpParams(i,a,"passwordId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deletePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}deleteUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findRichUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}findRichUsersWithAttributes(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}findUsers(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}generateAccountForName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getAssignedRichResourcesForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getGroupsForFacilityWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getPendingPreferredEmailChanges(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUserWithAttributes(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithAttributesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getRichUsersWithoutVoWithAttributes(e,t="body",a=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSpecificUsersByUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getSponsorsForMember(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,a,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==a)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let o=new y.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName")),null!=a&&(o=this.addToHttpParams(o,a,"extLogin")),l&&l.forEach(z=>{o=this.addToHttpParams(o,z,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let P="json";return f&&(P=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:o,responseType:P,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByExtLoginAndExtSourceName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceById(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}getUserExtSources(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUserExtSourcesByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsers(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersBySpecificUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getUsersPage(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}getVosWhereUserIsAdmin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}getVosWhereUserIsMember(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}isLoginAvailable(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}loginExist(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeSpecificUserOwner(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}removeUserExtSource(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=a&&(i=this.addToHttpParams(i,a,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,a,l,c,n,i="body",o=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=a&&(u=this.addToHttpParams(u,a,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let P=d&&d.httpHeaderAccept;void 0===P&&(P=this.configuration.selectHeaderAccept(["application/json"])),void 0!==P&&(f=f.set("Accept",P));let z=d&&d.context;void 0===z&&(z=new y.qT);let ae="json";return P&&(ae=P.startsWith("text")?"text":this.configuration.isJsonMime(P)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:z,params:u,responseType:ae,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:o})}reservePasswordForLogin(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reservePasswordForUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}reserveRandomPassword(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}setLogin(e,t,a,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"login")),null!=a&&(i=this.addToHttpParams(i,a,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:o,observe:l,reportProgress:c})}updateUser(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let o=l&&l.context;void 0===o&&(o=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:a})}updateUserExtSourceLastAccess(e,t="body",a=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(n=n.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return o&&(u=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:a})}validatePasswordForLogin(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePasswordForUser(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,a="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let o,i=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(i=i.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(i=i.set("Authorization","Bearer "+o));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:a,reportProgress:l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),gn=(()=>{class s{constructor(e,t,a){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new Oe,a&&(this.configuration=a),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new St}addToHttpParams(e,t,a){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,a):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,a){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,a));else if(t instanceof Date){if(null==a)throw Error("key may not be null if value is Date");e=e.append(a,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=a?`${a}.${l}`:l));else{if(null==a)throw Error("key may not be null if value is not object or array");e=e.append(a,t)}return e}getAppsConfig(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,a){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=a&&a.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=a&&a.context;void 0===i&&(i=new y.qT);let o="json";return n&&(o=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:o,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(ht,8),p.LFG(Oe,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ql=(()=>{class s{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:s,providers:[{provide:Oe,useFactory:e}]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(s,12),p.LFG(y.eN,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var dt=(()=>{return(s=dt||(dt={})).PERUNADMIN="PERUNADMIN",s.PERUNOBSERVER="PERUNOBSERVER",s.VOADMIN="VOADMIN",s.GROUPADMIN="GROUPADMIN",s.GROUPOBSERVER="GROUPOBSERVER",s.SELF="SELF",s.FACILITYADMIN="FACILITYADMIN",s.FACILITIYOBSERVER="FACILITYOBSERVER",s.RESOURCEADMIN="RESOURCEADMIN",s.RESOURCESELFSERVICE="RESOURCESELFSERVICE",s.REGISTRAR="REGISTRAR",s.ENGINE="ENGINE",s.RPC="RPC",s.NOTIFICATIONS="NOTIFICATIONS",s.SERVICEUSER="SERVICEUSER",s.SPONSOR="SPONSOR",s.VOOBSERVER="VOOBSERVER",s.TOPGROUPCREATOR="TOPGROUPCREATOR",s.SECURITYADMIN="SECURITYADMIN",s.CABINETADMIN="CABINETADMIN",s.UNKNOWNROLENAME="UNKNOWNROLENAME",s.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",s.UNKNOWN="UNKNOWN",s.MEMBERSHIP="MEMBERSHIP",dt;var s})();let df=(()=>{class s{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const a=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of a)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,a){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(a.toString()))}canManageFacilities(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER,dt.FACILITYADMIN,dt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(dt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(dt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(dt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(dt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(dt.PERUNADMIN,dt.VOOBSERVER,dt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(dt.PERUNADMIN,dt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(a=>{this.allRolesManagementRules=a,e()},a=>t(a))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(a=>{a.primaryObject===t&&e.push(a.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let a=e.beanName;a.startsWith("Rich")&&(a=a.substring(4)),this.assignAvailableRoles(t,a);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,a){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const P of Object.keys(b.entitiesToManage))i="User"===P?[P].concat(i):i.concat(P);break}const o=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,o),u=this.resolveAuthorization(n,o);a.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const a of e){let l=!0;for(const c of Object.keys(a)){const n=a[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const a of e){let l=a.beanName;switch(a.beanName.startsWith("Rich")&&(l=a.beanName.substring(4)),t[l]?t[l].push(a.id):t[l]=[a.id],l){case"Member":t.User?t.User.push(a.userId):t.User=[a.userId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId];break;case"Resource":t.Facility?t.Facility.push(a.facilityId):t.Facility=[a.facilityId],t.Vo?t.Vo.push(a.voId):t.Vo=[a.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let a=[];for(a.push(e);0!==a.length;){const c=a.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),a=a.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Bn.Xf)(s()).subscribe(r)})}var Jl=x(9635),_n=x(2843),Zt=x(515),Nt=x(727),rn=x(4482),Ni=x(5403);function Es(){return(0,rn.e)((s,r)=>{let e=null;s._refCount++;const t=(0,Ni.x)(r,void 0,void 0,void 0,()=>{if(!s||s._refCount<=0||0<--s._refCount)return void(e=null);const a=s._connection,l=e;e=null,a&&(!l||a===l)&&a.unsubscribe(),r.unsubscribe()});s.subscribe(t),t.closed||(e=s.connect())})}class uf extends Vi.y{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,rn.A)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new Nt.w0;const e=this.getSubject();r.add(this.source.subscribe((0,Ni.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),r.closed&&(this._connection=null,r=Nt.w0.EMPTY)}return r}refCount(){return Es()(this)}}var ze=x(4004),Hi=x(3900),Ut=x(5698),ya=x(3269);function Vt(...s){const r=(0,ya.yG)(s);return(0,rn.e)((e,t)=>{(r?(0,Rr.z)(s,e,r):(0,Rr.z)(s,e)).subscribe(t)})}var wi=x(5577),an=x(590),zi=x(4351),Ct=x(8505),M=x(262);function k(s,r,e,t,a){return(l,c)=>{let n=e,i=r,o=0;l.subscribe((0,Ni.x)(c,d=>{const u=o++;i=n?s(i,d,u):(n=!0,d),t&&c.next(i)},a&&(()=>{n&&c.next(i),c.complete()})))}}function D(s,r){return(0,rn.e)(k(s,r,arguments.length>=2,!0))}function B(s){return s<=0?()=>Zt.E:(0,rn.e)((r,e)=>{let t=[];r.subscribe((0,Ni.x)(e,a=>{t.push(a),s{for(const a of t)e.next(a);e.complete()},void 0,()=>{t=null}))})}var ee=x(8068),pe=x(6590),le=x(4671);function Ge(s,r){const e=arguments.length>=2;return t=>t.pipe(s?(0,Kt.h)((a,l)=>s(a,l,t)):le.y,B(1),e?(0,pe.d)(r):(0,ee.T)(()=>new xs.K))}var Bt=x(9718);function Mt(s){return(0,rn.e)((r,e)=>{try{r.subscribe(e)}finally{e.add(s)}})}var mt=x(8189);const qe="primary";class Ft{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Yt(s){return new Ft(s)}function be(s,r,e){const t=e.path.split("/");if(t.length>s.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===a)}return s===r}function qt(s){return Array.prototype.concat.apply([],s)}function wa(s){return s.length>0?s[s.length-1]:null}function Ot(s,r){for(const e in s)s.hasOwnProperty(e)&&r(s[e],e)}function bn(s){return(0,p.CqO)(s)?s:(0,p.QGY)(s)?(0,yi.D)(Promise.resolve(s)):(0,De.of)(s)}const MC={exact:function Ln(s,r,e){if(!or(s.segments,r.segments)||!Kl(s.segments,r.segments,e)||s.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!s.children[t]||!Ln(s.children[t],r.children[t],e))return!1;return!0},subset:Aa},DC={exact:function Bi(s,r){return Pi(s,r)},subset:function hf(s,r){return Object.keys(r).length<=Object.keys(s).length&&Object.keys(r).every(e=>On(s[e],r[e]))},ignored:()=>!0};function Ms(s,r,e){return MC[e.paths](s.root,r.root,e.matrixParams)&&DC[e.queryParams](s.queryParams,r.queryParams)&&!("exact"===e.fragment&&s.fragment!==r.fragment)}function Aa(s,r,e){return Fn(s,r,r.segments,e)}function Fn(s,r,e,t){if(s.segments.length>e.length){const a=s.segments.slice(0,e.length);return!(!or(a,e)||r.hasChildren()||!Kl(a,e,t))}if(s.segments.length===e.length){if(!or(s.segments,e)||!Kl(s.segments,e,t))return!1;for(const a in r.children)if(!s.children[a]||!Aa(s.children[a],r.children[a],t))return!1;return!0}{const a=e.slice(0,s.segments.length),l=e.slice(s.segments.length);return!!(or(s.segments,a)&&Kl(s.segments,a,t)&&s.children[qe])&&Fn(s.children[qe],r,l,t)}}function Kl(s,r,e){return r.every((t,a)=>DC[e](s[a].parameters,t.parameters))}class kr{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return ff.serialize(this)}}class gt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,Ot(e,(t,a)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yo(this)}}class Ds{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Yt(this.parameters)),this._parameterMap}toString(){return Ri(this)}}function or(s,r){return s.length===r.length&&s.every((e,t)=>e.path===r[t].path)}let Zl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return new Yd},providedIn:"root"}),s})();class Yd{parse(r){const e=new tc(r);return new kr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${wo(r.root,!0)}`,t=function Qt(s){const r=Object.keys(s).map(e=>{const t=s[e];return Array.isArray(t)?t.map(a=>`${Hs(e)}=${Hs(a)}`).join("&"):`${Hs(e)}=${Hs(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function gf(s){return encodeURI(s)}(r.fragment)}`:""}`}}const ff=new Yd;function yo(s){return s.segments.map(r=>Ri(r)).join("/")}function wo(s,r){if(!s.hasChildren())return yo(s);if(r){const e=s.children[qe]?wo(s.children[qe],!1):"",t=[];return Ot(s.children,(a,l)=>{l!==qe&&t.push(`${l}:${wo(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function pf(s,r){let e=[];return Ot(s.children,(t,a)=>{a===qe&&(e=e.concat(r(t,a)))}),Ot(s.children,(t,a)=>{a!==qe&&(e=e.concat(r(t,a)))}),e}(s,(t,a)=>a===qe?[wo(s.children[qe],!1)]:[`${a}:${wo(t,!1)}`]);return 1===Object.keys(s.children).length&&null!=s.children[qe]?`${yo(s)}/${e[0]}`:`${yo(s)}/(${e.join("//")})`}}function Qd(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hs(s){return Qd(s).replace(/%3B/gi,";")}function Ps(s){return Qd(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xl(s){return decodeURIComponent(s)}function mf(s){return Xl(s.replace(/\+/g,"%20"))}function Ri(s){return`${Ps(s.path)}${function Vr(s){return Object.keys(s).map(r=>`;${Ps(r)}=${Ps(s[r])}`).join("")}(s.parameters)}`}const _f=/^[^\/()?;=#]+/;function ec(s){const r=s.match(_f);return r?r[0]:""}const bf=/^[^=?&#]+/,PC=/^[^&#]+/;class tc{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[qe]=new gt(r,e)),t}parseSegment(){const r=ec(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new p.vHH(4009,!1);return this.capture(r),new Ds(Xl(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=ec(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const a=ec(this.remaining);a&&(t=a,this.capture(t))}r[Xl(e)]=Xl(t)}parseQueryParam(r){const e=function HC(s){const r=s.match(bf);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function RC(s){const r=s.match(PC);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const a=mf(e),l=mf(t);if(r.hasOwnProperty(a)){let c=r[a];Array.isArray(c)||(c=[c],r[a]=c),c.push(l)}else r[a]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ec(this.remaining),a=this.remaining[t.length];if("/"!==a&&")"!==a&&";"!==a)throw new p.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=qe);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[qe]:new gt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new p.vHH(4011,!1)}}function vo(s){return s.segments.length>0?new gt([],{[qe]:s}):s}function xa(s){const r={};for(const t of Object.keys(s.children)){const l=xa(s.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Jd(s){if(1===s.numberOfChildren&&s.children[qe]){const r=s.children[qe];return new gt(s.segments.concat(r.segments),r.children)}return s}(new gt(s.segments,r))}function Br(s){return s instanceof kr}function kC(s,r,e,t,a){if(0===e.length)return Ao(r.root,r.root,r.root,t,a);const l=function BC(s){if("string"==typeof s[0]&&1===s.length&&"/"===s[0])return new VC(!0,0,s);let r=0,e=!1;const t=s.reduce((a,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return Ot(l.outlets,(i,o)=>{n[o]="string"==typeof i?i.split("/"):i}),[...a,{outlets:n}]}if(l.segmentPath)return[...a,l.segmentPath]}return"string"!=typeof l?[...a,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&a.push(n))}),a):[...a,l]},[]);return new VC(e,r,t)}(e);return l.toRoot()?Ao(r.root,r.root,new gt([],{}),t,a):function c(i){const o=function wf(s,r,e,t){if(s.isAbsolute)return new lr(r.root,!0,0);if(-1===t)return new lr(e,e===r.root,0);return function Is(s,r,e){let t=s,a=r,l=e;for(;l>a;){if(l-=a,t=t.parent,!t)throw new p.vHH(4005,!1);a=t.segments.length}return new lr(t,!1,a-l)}(e,t+(sr(s.commands[0])?0:1),s.numberOfDoubleDots)}(l,r,s.snapshot?._urlSegment,i),d=o.processChildren?jn(o.segmentGroup,o.index,l.commands):ic(o.segmentGroup,o.index,l.commands);return Ao(r.root,o.segmentGroup,d,t,a)}(s.snapshot?._lastPathIndex)}function sr(s){return"object"==typeof s&&null!=s&&!s.outlets&&!s.segmentPath}function Ea(s){return"object"==typeof s&&null!=s&&s.outlets}function Ao(s,r,e,t,a){let c,l={};t&&Ot(t,(i,o)=>{l[o]=Array.isArray(i)?i.map(d=>`${d}`):`${i}`}),c=s===r?e:Cf(s,r,e);const n=vo(xa(c));return new kr(n,l,a)}function Cf(s,r,e){const t={};return Ot(s.children,(a,l)=>{t[l]=a===r?e:Cf(a,r,e)}),new gt(s.segments,t)}class VC{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&sr(t[0]))throw new p.vHH(4003,!1);const a=t.find(Ea);if(a&&a!==wa(t))throw new p.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class lr{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function ic(s,r,e){if(s||(s=new gt([],{})),0===s.segments.length&&s.hasChildren())return jn(s,r,e);const t=function OC(s,r,e){let t=0,a=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;a=e.length)return l;const c=s.segments[a],n=e[t];if(Ea(n))break;const i=`${n}`,o=t0&&void 0===i)break;if(i&&o&&"object"==typeof o&&void 0===o.outlets){if(!LC(i,o,c))return l;t+=2}else{if(!LC(i,{},c))return l;t++}a++}return{match:!0,pathIndex:a,commandIndex:t}}(s,r,e),a=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(a[c]=ic(s.children[c],r,l))}),Ot(s.children,(l,c)=>{void 0===t[c]&&(a[c]=l)}),new gt(s.segments,a)}}function Or(s,r,e){const t=s.segments.slice(0,r);let a=0;for(;a{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Or(new gt([],{}),0,e))}),r}function ks(s){const r={};return Ot(s,(e,t)=>r[t]=`${e}`),r}function LC(s,r,e){return s==e.path&&Pi(r,e.parameters)}class Nn{constructor(r,e){this.id=r,this.url=e}}class nc extends Nn{constructor(r,e,t="imperative",a=null){super(r,e),this.type=0,this.navigationTrigger=t,this.restoredState=a}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lr extends Nn{constructor(r,e,t){super(r,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ji extends Nn{constructor(r,e,t,a){super(r,e),this.reason=t,this.code=a,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Af extends Nn{constructor(r,e,t,a){super(r,e),this.error=t,this.target=a,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Vs extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xd extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eu extends Nn{constructor(r,e,t,a,l){super(r,e),this.urlAfterRedirects=t,this.state=a,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rc extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ac extends Nn{constructor(r,e,t,a){super(r,e),this.urlAfterRedirects=t,this.state=a,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class FC{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class xf{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Tf{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ef{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sf{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jC{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bs{constructor(r,e,t){this.routerEvent=r,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Mf{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=oc(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=oc(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=sc(r,this._root);return e.length<2?[]:e[e.length-2].children.map(a=>a.value).filter(a=>a!==r)}pathFromRoot(r){return sc(r,this._root).map(e=>e.value)}}function oc(s,r){if(s===r.value)return r;for(const e of r.children){const t=oc(s,e);if(t)return t}return null}function sc(s,r){if(s===r.value)return[r];for(const e of r.children){const t=sc(s,e);if(t.length)return t.unshift(r),t}return[]}class Gi{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function xo(s){const r={};return s&&s.children.forEach(e=>r[e.value.outlet]=e),r}class tu extends Mf{constructor(r,e){super(r),this.snapshot=e,dc(this,r)}toString(){return this.snapshot.toString()}}function lc(s,r){const e=function NC(s,r){const c=new dr([],{},{},"",{},qe,r,null,s.root,-1,{});return new Sa("",new Gi(c,[]))}(s,r),t=new di([new Ds("",{})]),a=new di({}),l=new di({}),c=new di({}),n=new di(""),i=new cr(t,a,c,n,l,qe,r,e.root);return i.snapshot=e.root,new tu(new Gi(i,[]),e)}class cr{constructor(r,e,t,a,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ze.U)(r=>Yt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ze.U)(r=>Yt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cc(s,r="emptyOnly"){const e=s.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const a=e[t],l=e[t-1];if(a.routeConfig&&""===a.routeConfig.path)t--;else{if(l.component)break;t--}}return function To(s){return s.reduce((r,e)=>({params:{...r.params,...e.params},data:{...r.data,...e.data},resolve:{...e.data,...r.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dr{constructor(r,e,t,a,l,c,n,i,o,d,u,f){this.url=r,this.params=e,this.queryParams=t,this.fragment=a,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=o,this._lastPathIndex=d,this._correctedLastPathIndex=f??d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Yt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Yt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Sa extends Mf{constructor(r,e){super(e),this.url=r,dc(this,e)}toString(){return uc(this._root)}}function dc(s,r){r.value._routerState=s,r.children.forEach(e=>dc(s,e))}function uc(s){const r=s.children.length>0?` { ${s.children.map(uc).join(", ")} } `:"";return`${s.value}${r}`}function Fr(s){if(s.snapshot){const r=s.snapshot,e=s._futureSnapshot;s.snapshot=e,Pi(r.queryParams,e.queryParams)||s.queryParams.next(e.queryParams),r.fragment!==e.fragment&&s.fragment.next(e.fragment),Pi(r.params,e.params)||s.params.next(e.params),function ut(s,r){if(s.length!==r.length)return!1;for(let e=0;ePi(e.parameters,r[t].parameters))}(s.url,r.url);return e&&!(!s.parent!=!r.parent)&&(!s.parent||Df(s.parent,r.parent))}function At(s,r,e){if(e&&s.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const a=function V0(s,r,e){return r.children.map(t=>{for(const a of e.children)if(s.shouldReuseRoute(t.value,a.value.snapshot))return At(s,t,a);return At(s,t)})}(s,r,e);return new Gi(t,a)}{if(s.shouldAttach(r.value)){const l=s.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>At(s,n)),c}}const t=function B0(s){return new cr(new di(s.url),new di(s.params),new di(s.queryParams),new di(s.fragment),new di(s.data),s.outlet,s.component,s)}(r.value),a=r.children.map(l=>At(s,l));return new Gi(t,a)}}const Hf="ngNavigationCancelingError";function GC(s,r){const{redirectTo:e,navigationBehaviorOptions:t}=Br(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,a=UC(!1,0,r);return a.url=e,a.navigationBehaviorOptions=t,a}function UC(s,r,e){const t=new Error("NavigationCancelingError: "+(s||""));return t[Hf]=!0,t.cancellationCode=r,e&&(t.url=e),t}function qC(s){return WC(s)&&Br(s.url)}function WC(s){return s&&s[Hf]}class Ls{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new hc,this.attachRef=null}}let hc=(()=>{class s{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const a=this.getOrCreateContext(e);a.outlet=t,this.contexts.set(e,a)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Ls,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const iu=!1;let oi=(()=>{class s{constructor(e,t,a,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=a||qe,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.vHH(4012,iu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.vHH(4012,iu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.vHH(4012,iu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new p.vHH(4013,iu);this._activatedRoute=e;const a=this.location,c=e._futureSnapshot.component,n=this.parentContexts.getOrCreateContext(this.name).children,i=new nu(e,n,a.injector);if(t&&function Fs(s){return!!s.resolveComponentFactory}(t)){const o=t.resolveComponentFactory(c);this.activated=a.createComponent(o,a.length,i)}else this.activated=a.createComponent(c,{index:a.length,injector:i,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(hc),p.Y36(p.s_b),p.$8M("name"),p.Y36(p.sBO),p.Y36(p.lqb))},s.\u0275dir=p.lG2({type:s,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),s})();class nu{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===cr?this.route:r===hc?this.childContexts:this.parent.get(r,e)}}let $C=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},dependencies:[oi],encapsulation:2}),s})();function Pf(s,r){return s.providers&&!s._injector&&(s._injector=(0,p.MMx)(s.providers,r,`Route: ${s.path}`)),s._injector??r}function If(s){const r=s.children&&s.children.map(If),e=r?{...s,children:r}:{...s};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==qe&&(e.component=$C),e}function Cn(s){return s.outlet||qe}function au(s,r){const e=s.filter(t=>Cn(t)===r);return e.push(...s.filter(t=>Cn(t)!==r)),e}function Ui(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let r=s.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Eo{constructor(r,e,t,a){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=a}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Fr(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const a=xo(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,a[c],t),delete a[c]}),Ot(a,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(a===l)if(a.component){const c=t.getContext(a.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=xo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),a=t&&r.value.component?t.children:e,l=xo(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],a);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const a=xo(e);r.children.forEach(l=>{this.activateRoutes(l,a[l.value.outlet],t),this.forwardEvent(new jC(l.value.snapshot))}),r.children.length&&this.forwardEvent(new Ef(r.value.snapshot))}activateRoutes(r,e,t){const a=r.value,l=e?e.value:null;if(Fr(a),a===l)if(a.component){const c=t.getOrCreateContext(a.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(a.component){const c=t.getOrCreateContext(a.outlet);if(this.routeReuseStrategy.shouldAttach(a.snapshot)){const n=this.routeReuseStrategy.retrieve(a.snapshot);this.routeReuseStrategy.store(a.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Fr(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=Ui(a.snapshot),i=n?.get(p._Vd)??null;c.attachRef=null,c.route=a,c.resolver=i,c.injector=n,c.outlet&&c.outlet.activateWith(a,c.injector),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class KC{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class js{constructor(r,e){this.component=r,this.route=e}}function ZC(s,r,e){const t=s._root;return Ns(t,r?r._root:null,e,[t.value])}function pc(s,r,e){return(Ui(r)??e).get(s)}function Ns(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=xo(r);return s.children.forEach(c=>{(function ey(s,r,e,t,a={canDeactivateChecks:[],canActivateChecks:[]}){const l=s.value,c=r?r.value:null,n=e?e.getContext(s.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function ty(s,r,e){if("function"==typeof e)return e(s,r);switch(e){case"pathParamsChange":return!or(s.url,r.url);case"pathParamsOrQueryParamsChange":return!or(s.url,r.url)||!Pi(s.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Df(s,r)||!Pi(s.queryParams,r.queryParams);default:return!Df(s,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?a.canActivateChecks.push(new KC(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Ns(s,r,l.component?n?n.children:null:e,t,a),i&&n&&n.outlet&&n.outlet.isActivated&&a.canDeactivateChecks.push(new js(n.outlet.component,c))}else c&&Da(r,n,a),a.canActivateChecks.push(new KC(t)),Ns(s,null,l.component?n?n.children:null:e,t,a)})(c,l[c.value.outlet],e,t.concat([c.value]),a),delete l[c.value.outlet]}),Ot(l,(c,n)=>Da(c,e.getContext(n),a)),a}function Da(s,r,e){const t=xo(s),a=s.value;Ot(t,(l,c)=>{Da(l,a.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new js(a.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,a))}function Nr(s){return"function"==typeof s}function Ha(s){return s instanceof xs.K||"EmptyError"===s?.name}const ur=Symbol("INITIAL_VALUE");function So(){return(0,Hi.w)(s=>(0,Ts.a)(s.map(r=>r.pipe((0,Ut.q)(1),Vt(ur)))).pipe((0,ze.U)(r=>{for(const e of r)if(!0!==e){if(e===ur)return ur;if(!1===e||e instanceof kr)return e}return!0}),(0,Kt.h)(r=>r!==ur),(0,Ut.q)(1)))}function Mo(s){return(0,Jl.z)((0,Ct.b)(r=>{if(Br(r))throw GC(0,r)}),(0,ze.U)(r=>!0===r))}const Pa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Lf(s,r,e,t,a){const l=gc(s,r,e);return l.matched?function Of(s,r,e,t){const a=r.canMatch;if(!a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function ny(s){return s&&Nr(s.canMatch)}(n)?n.canMatch(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(So(),Mo())}(t=Pf(r,t),r,e).pipe((0,ze.U)(c=>!0===c?l:{...Pa})):(0,De.of)(l)}function gc(s,r,e){if(""===r.path)return"full"===r.pathMatch&&(s.hasChildren()||e.length>0)?{...Pa}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const a=(r.matcher||be)(e,s,r);if(!a)return{...Pa};const l={};Ot(a.posParams,(n,i)=>{l[i]=n.path});const c=a.consumed.length>0?{...l,...a.consumed[a.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:a.consumed,remainingSegments:e.slice(a.consumed.length),parameters:c,positionalParamSegments:a.posParams??{}}}function zr(s,r,e,t,a="corrected"){if(e.length>0&&function sy(s,r,e){return e.some(t=>hr(s,r,t)&&Cn(t)!==qe)}(s,e,t)){const c=new gt(r,function Ff(s,r,e,t){const a={};a[qe]=t,t._sourceSegment=s,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Cn(l)!==qe){const c=new gt([],{});c._sourceSegment=s,c._segmentIndexShift=r.length,a[Cn(l)]=c}return a}(s,r,t,new gt(e,s.children)));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function ly(s,r,e){return e.some(t=>hr(s,r,t))}(s,e,t)){const c=new gt(s.segments,function mc(s,r,e,t,a,l){const c={};for(const n of t)if(hr(s,e,n)&&!a[Cn(n)]){const i=new gt([],{});i._sourceSegment=s,i._segmentIndexShift="legacy"===l?s.segments.length:r.length,c[Cn(n)]=i}return{...a,...c}}(s,r,e,t,s.children,a));return c._sourceSegment=s,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new gt(s.segments,s.children);return l._sourceSegment=s,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function hr(s,r,e){return(!(s.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function Do(s,r,e,t){return!!(Cn(s)===t||t!==qe&&hr(r,e,s))&&("**"===s.path||gc(r,s,e).matched)}function jf(s,r,e){return 0===r.length&&!s.children[e]}const du=!1;class Us{constructor(r){this.segmentGroup=r||null}}class Nf{constructor(r){this.urlTree=r}}function _c(s){return(0,_n._)(new Us(s))}function zf(s){return(0,_n._)(new Nf(s))}class Gf{constructor(r,e,t,a,l){this.injector=r,this.configLoader=e,this.urlSerializer=t,this.urlTree=a,this.config=l,this.allowRedirects=!0}apply(){const r=zr(this.urlTree.root,[],[],this.config).segmentGroup,e=new gt(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,e,qe).pipe((0,ze.U)(l=>this.createUrlTree(xa(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,M.K)(l=>{if(l instanceof Nf)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Us?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,qe).pipe((0,ze.U)(a=>this.createUrlTree(xa(a),r.queryParams,r.fragment))).pipe((0,M.K)(a=>{throw a instanceof Us?this.noMatchError(a):a}))}noMatchError(r){return new p.vHH(4002,du)}createUrlTree(r,e,t){const a=vo(r);return new kr(a,e,t)}expandSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,ze.U)(l=>new gt([],l))):this.expandSegment(r,t,e,t.segments,a,!0)}expandChildren(r,e,t){const a=[];for(const l of Object.keys(t.children))"primary"===l?a.unshift(l):a.push(l);return(0,yi.D)(a).pipe((0,zi.b)(l=>{const c=t.children[l],n=au(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,ze.U)(i=>({segment:i,outlet:l})))}),D((l,c)=>(l[c.outlet]=c.segment,l),{}),Ge())}expandSegment(r,e,t,a,l,c){return(0,yi.D)(t).pipe((0,zi.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,a,l,c).pipe((0,M.K)(o=>{if(o instanceof Us)return(0,De.of)(null);throw o}))),(0,an.P)(n=>!!n),(0,M.K)((n,i)=>{if(Ha(n))return jf(e,a,l)?(0,De.of)(new gt([],{})):_c(e);throw n}))}expandSegmentAgainstRoute(r,e,t,a,l,c,n){return Do(a,e,l,c)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(r,e,a,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c):_c(e):_c(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,a,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,a){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?zf(l):this.lineralizeSegments(t,l).pipe((0,wi.z)(c=>{const n=new gt(c,{});return this.expandSegment(r,n,e,c,a,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,a,l,c){const{matched:n,consumedSegments:i,remainingSegments:o,positionalParamSegments:d}=gc(e,a,l);if(!n)return _c(e);const u=this.applyRedirectCommands(i,a.redirectTo,d);return a.redirectTo.startsWith("/")?zf(u):this.lineralizeSegments(a,u).pipe((0,wi.z)(f=>this.expandSegment(r,e,t,f.concat(o),c,!1)))}matchSegmentAgainstRoute(r,e,t,a,l){return"**"===t.path?(r=Pf(t,r),t.loadChildren?(t._loadedRoutes?(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(r,t)).pipe((0,ze.U)(n=>(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,new gt(a,{})))):(0,De.of)(new gt(a,{}))):Lf(e,t,a,r).pipe((0,Hi.w)(({matched:c,consumedSegments:n,remainingSegments:i})=>c?this.getChildConfig(r=t._injector??r,t,a).pipe((0,wi.z)(d=>{const u=d.injector??r,f=d.routes,{segmentGroup:b,slicedSegments:P}=zr(e,n,i,f),z=new gt(b.segments,b.children);if(0===P.length&&z.hasChildren())return this.expandChildren(u,f,z).pipe((0,ze.U)(yt=>new gt(n,yt)));if(0===f.length&&0===P.length)return(0,De.of)(new gt(n,{}));const ae=Cn(t)===l;return this.expandSegment(u,z,f,P,ae?qe:l,!0).pipe((0,ze.U)(lt=>new gt(n.concat(lt.segments),lt.children)))})):_c(e)))}getChildConfig(r,e,t){return e.children?(0,De.of)({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?(0,De.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function cu(s,r,e,t){const a=r.canLoad;if(void 0===a||0===a.length)return(0,De.of)(!0);const l=a.map(c=>{const n=s.get(c),i=function zs(s){return s&&Nr(s.canLoad)}(n)?n.canLoad(r,e):n(r,e);return bn(i)});return(0,De.of)(l).pipe(So(),Mo())}(r,e,t).pipe((0,wi.z)(a=>a?this.configLoader.loadChildren(r,e).pipe((0,Ct.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function dy(s){return(0,_n._)(UC(du,3))}())):(0,De.of)({routes:[],injector:r})}lineralizeSegments(r,e){let t=[],a=e.root;for(;;){if(t=t.concat(a.segments),0===a.numberOfChildren)return(0,De.of)(t);if(a.numberOfChildren>1||!a.children[qe])return(0,_n._)(new p.vHH(4e3,du));a=a.children[qe]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreateUrlTree(r,e,t,a){const l=this.createSegmentGroup(r,e.root,t,a);return new kr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return Ot(r,(a,l)=>{if("string"==typeof a&&a.startsWith(":")){const n=a.substring(1);t[l]=e[n]}else t[l]=a}),t}createSegmentGroup(r,e,t,a){const l=this.createSegments(r,e.segments,t,a);let c={};return Ot(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,a)}),new gt(l,c)}createSegments(r,e,t,a){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,a):this.findOrReturn(l,t))}findPosParam(r,e,t){const a=t[e.path.substring(1)];if(!a)throw new p.vHH(4001,du);return a}findOrReturn(r,e){let t=0;for(const a of e){if(a.path===r.path)return e.splice(t),a;t++}return r}}class F0{}class uu{constructor(r,e,t,a,l,c,n,i){this.injector=r,this.rootComponentType=e,this.config=t,this.urlTree=a,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=n,this.urlSerializer=i}recognize(){const r=zr(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,qe).pipe((0,ze.U)(e=>{if(null===e)return null;const t=new dr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},qe,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new Gi(t,e),l=new Sa(this.url,a);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(r){const e=r.value,t=cc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(a=>this.inheritParamsAndData(a))}processSegmentGroup(r,e,t,a){return 0===t.segments.length&&t.hasChildren()?this.processChildren(r,e,t):this.processSegment(r,e,t,t.segments,a)}processChildren(r,e,t){return(0,yi.D)(Object.keys(t.children)).pipe((0,zi.b)(a=>{const l=t.children[a],c=au(e,a);return this.processSegmentGroup(r,c,l,a)}),D((a,l)=>a&&l?(a.push(...l),a):null),function Lt(s,r=!1){return(0,rn.e)((e,t)=>{let a=0;e.subscribe((0,Ni.x)(t,l=>{const c=s(l,a++);(c||r)&&t.next(l),!c&&t.complete()}))})}(a=>null!==a),(0,pe.d)(null),Ge(),(0,ze.U)(a=>{if(null===a)return null;const l=yc(a);return function hy(s){s.sort((r,e)=>r.value.outlet===qe?-1:e.value.outlet===qe?1:r.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(r,e,t,a,l){return(0,yi.D)(e).pipe((0,zi.b)(c=>this.processSegmentAgainstRoute(c._injector??r,c,t,a,l)),(0,an.P)(c=>!!c),(0,M.K)(c=>{if(Ha(c))return jf(t,a,l)?(0,De.of)([]):(0,De.of)(null);throw c}))}processSegmentAgainstRoute(r,e,t,a,l){if(e.redirectTo||!Do(e,t,a,l))return(0,De.of)(null);let c;if("**"===e.path){const n=a.length>0?wa(a).parameters:{},i=$f(t)+a.length,o=new dr(a,n,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),Cn(e),e.component??e._loadedComponent??null,e,Wf(t),i,wc(e),i);c=(0,De.of)({snapshot:o,consumedSegments:[],remainingSegments:[]})}else c=Lf(t,e,a,r).pipe((0,ze.U)(({matched:n,consumedSegments:i,remainingSegments:o,parameters:d})=>{if(!n)return null;const u=$f(t)+i.length;return{snapshot:new dr(i,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(e),Cn(e),e.component??e._loadedComponent??null,e,Wf(t),u,wc(e),u),consumedSegments:i,remainingSegments:o}}));return c.pipe((0,Hi.w)(n=>{if(null===n)return(0,De.of)(null);const{snapshot:i,consumedSegments:o,remainingSegments:d}=n;r=e._injector??r;const u=e._loadedInjector??r,f=function qf(s){return s.children?s.children:s.loadChildren?s._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:P}=zr(t,o,d,f.filter(ae=>void 0===ae.redirectTo),this.relativeLinkResolution);if(0===P.length&&b.hasChildren())return this.processChildren(u,f,b).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]));if(0===f.length&&0===P.length)return(0,De.of)([new Gi(i,[])]);const z=Cn(e)===l;return this.processSegment(u,f,b,P,z?qe:l).pipe((0,ze.U)(ae=>null===ae?null:[new Gi(i,ae)]))}))}}function Cc(s){const r=s.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function yc(s){const r=[],e=new Set;for(const t of s){if(!Cc(t)){r.push(t);continue}const a=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==a?(a.children.push(...t.children),e.add(a)):r.push(t)}for(const t of e){const a=yc(t.children);r.push(new Gi(t.value,a))}return r.filter(t=>!e.has(t))}function Wf(s){let r=s;for(;r._sourceSegment;)r=r._sourceSegment;return r}function $f(s){let r=s,e=r._segmentIndexShift??0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift??0;return e-1}function Ws(s){return s.data||{}}function wc(s){return s.resolve||{}}const vc=Symbol("RouteTitle");function Jf(s){return"string"==typeof s.title||null===s.title}function hu(s){return(0,Hi.w)(r=>{const e=s(r);return e?(0,yi.D)(e).pipe((0,ze.U)(()=>r)):(0,De.of)(r)})}let zn=(()=>{class s{buildTitle(e){let t,a=e.root;for(;void 0!==a;)t=this.getResolvedTitleForRoute(a)??t,a=a.children.find(l=>l.outlet===qe);return t}getResolvedTitleForRoute(e){return e.data[vc]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:function(){return(0,p.f3M)(Ia)},providedIn:"root"}),s})(),Ia=(()=>{class s extends zn{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Y))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class _y{}class Cy extends class by{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const pu=new p.OlP("",{providedIn:"root",factory:()=>({})}),Ac=new p.OlP("ROUTES");let fu=(()=>{class s{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,De.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=bn(e.loadComponent()).pipe((0,Ct.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Mt(()=>{this.componentLoaders.delete(e)})),a=new uf(t,()=>new Pe.x).pipe(Es());return this.componentLoaders.set(e,a),a}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,De.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,ze.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);let i,o,d=!1;Array.isArray(n)?o=n:(i=n.create(e).injector,o=qt(i.get(Ac,[],p.XFs.Self|p.XFs.Optional)));return{routes:o.map(If),injector:i}}),Mt(()=>{this.childrenLoaders.delete(t)})),c=new uf(l,()=>new Pe.x).pipe(Es());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return bn(e()).pipe((0,wi.z)(t=>t instanceof p.YKP||Array.isArray(t)?(0,De.of)(t):(0,yi.D)(this.compiler.compileModuleAsync(t))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(p.Sil))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class wy{}class vy{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function N0(s){throw s}function Ay(s,r,e){return r.parse("/")}const $s={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zf={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Po(){const s=(0,p.f3M)(Zl),r=(0,p.f3M)(hc),e=(0,p.f3M)(T.Ye),t=(0,p.f3M)(p.zs3),a=(0,p.f3M)(p.Sil),l=(0,p.f3M)(Ac,{optional:!0})??[],c=(0,p.f3M)(pu,{optional:!0})??{},n=(0,p.f3M)(Ia),i=(0,p.f3M)(zn,{optional:!0}),o=(0,p.f3M)(wy,{optional:!0}),d=(0,p.f3M)(_y,{optional:!0}),u=new _i(null,s,r,e,t,a,qt(l));return o&&(u.urlHandlingStrategy=o),d&&(u.routeReuseStrategy=d),u.titleStrategy=i??n,function Gn(s,r){s.errorHandler&&(r.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(r.malformedUriErrorHandler=s.malformedUriErrorHandler),s.onSameUrlNavigation&&(r.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.relativeLinkResolution&&(r.relativeLinkResolution=s.relativeLinkResolution),s.urlUpdateStrategy&&(r.urlUpdateStrategy=s.urlUpdateStrategy),s.canceledNavigationResolution&&(r.canceledNavigationResolution=s.canceledNavigationResolution)}(c,u),u}let _i=(()=>{class s{constructor(e,t,a,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=a,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pe.x,this.errorHandler=N0,this.malformedUriErrorHandler=Ay,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,De.of)(void 0),this.urlHandlingStrategy=new vy,this.routeReuseStrategy=new Cy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(fu),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new xf(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new FC(f)),this.ngModule=c.get(p.h0i),this.console=c.get(p.c2e);const u=c.get(p.R0b);this.isNgZoneEnabled=u instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function k0(){return new kr(new gt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lc(this.currentUrlTree,this.rootComponentType),this.transitions=new di({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Kt.h)(a=>0!==a.id),(0,ze.U)(a=>({...a,extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),(0,Hi.w)(a=>{let l=!1,c=!1;return(0,De.of)(a).pipe((0,Ct.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Hi.w)(n=>{const i=this.browserUrlTree.toString(),o=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||o)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return gu(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,De.of)(n).pipe((0,Hi.w)(u=>{const f=this.transitions.getValue();return t.next(new nc(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Zt.E:Promise.resolve(u)}),function uy(s,r,e,t){return(0,Hi.w)(a=>function bc(s,r,e,t,a){return new Gf(s,r,e,t,a).apply()}(s,r,e,a.extractedUrl,t).pipe((0,ze.U)(l=>({...a,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Ct.b)(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},a.urlAfterRedirects=u.urlAfterRedirects}),function Yf(s,r,e,t,a,l){return(0,wi.z)(c=>function j0(s,r,e,t,a,l,c="emptyOnly",n="legacy"){return new uu(s,r,e,t,a,c,n,l).recognize().pipe((0,Hi.w)(i=>null===i?function Uf(s){return new Vi.y(r=>r.error(s))}(new F0):(0,De.of)(i)))}(s,r,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,a,l).pipe((0,ze.U)(n=>({...c,targetSnapshot:n}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Ct.b)(u=>{if(a.targetSnapshot=u.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new Vs(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(o&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:P,restoredState:z,extras:ae}=n,ke=new nc(f,this.serializeUrl(b),P,z);t.next(ke);const lt=lc(b,this.rootComponentType).snapshot;return a={...n,targetSnapshot:lt,urlAfterRedirects:b,extras:{...ae,skipLocationChange:!1,replaceUrl:!1}},(0,De.of)(a)}return this.rawUrlTree=n.rawUrl,n.resolve(null),Zt.E}),(0,Ct.b)(n=>{const i=new Xd(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,ze.U)(n=>a={...n,guards:ZC(n.targetSnapshot,n.currentSnapshot,this.rootContexts)}),function si(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,currentSnapshot:a,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,De.of)({...e,guardsResult:!0}):function Vf(s,r,e,t){return(0,yi.D)(s).pipe((0,wi.z)(a=>function oy(s,r,e,t,a){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,De.of)(!0);const c=l.map(n=>{const i=pc(n,r,a);return bn(function iy(s){return s&&Nr(s.canDeactivate)}(i)?i.canDeactivate(s,r,e,t):i(s,r,e,t)).pipe((0,an.P)())});return(0,De.of)(c).pipe(So())}(a.component,a.route,e,r,t)),(0,an.P)(a=>!0!==a,!0))}(c,t,a,s).pipe((0,wi.z)(n=>n&&function O0(s){return"boolean"==typeof s}(n)?function Bf(s,r,e,t){return(0,yi.D)(r).pipe((0,zi.b)(a=>(0,Rr.z)(function Gs(s,r){return null!==s&&r&&r(new Tf(s)),(0,De.of)(!0)}(a.route.parent,t),function lu(s,r){return null!==s&&r&&r(new Sf(s)),(0,De.of)(!0)}(a.route,t),function ay(s,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function XC(s){const r=s.routeConfig?s.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:s,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Ir(()=>{const n=c.guards.map(i=>{const o=pc(i,c.node,e);return bn(function fc(s){return s&&Nr(s.canActivateChild)}(o)?o.canActivateChild(t,s):o(t,s)).pipe((0,an.P)())});return(0,De.of)(n).pipe(So())}));return(0,De.of)(l).pipe(So())}(s,a.path,e),function ry(s,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,De.of)(!0);const a=t.map(l=>Ir(()=>{const c=pc(l,r,e);return bn(function su(s){return s&&Nr(s.canActivate)}(c)?c.canActivate(r,s):c(r,s)).pipe((0,an.P)())}));return(0,De.of)(a).pipe(So())}(s,a.route,e))),(0,an.P)(a=>!0!==a,!0))}(t,l,s,r):(0,De.of)(n)),(0,ze.U)(n=>({...e,guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,Ct.b)(n=>{if(a.guardsResult=n.guardsResult,Br(n.guardsResult))throw GC(0,n.guardsResult);const i=new eu(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,Kt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,"",3),!1)),hu(n=>{if(n.guards.canActivateChecks.length)return(0,De.of)(n).pipe((0,Ct.b)(i=>{const o=new rc(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}),(0,Hi.w)(i=>{let o=!1;return(0,De.of)(i).pipe(function Qf(s,r){return(0,wi.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:a}}=e;if(!a.length)return(0,De.of)(e);let l=0;return(0,yi.D)(a).pipe((0,zi.b)(c=>function Ra(s,r,e,t){const a=s.routeConfig,l=s._resolve;return void 0!==a?.title&&!Jf(a)&&(l[vc]=a.title),function fy(s,r,e,t){const a=function gy(s){return[...Object.keys(s),...Object.getOwnPropertySymbols(s)]}(s);if(0===a.length)return(0,De.of)({});const l={};return(0,yi.D)(a).pipe((0,wi.z)(c=>function my(s,r,e,t){const a=pc(s,r,t);return bn(a.resolve?a.resolve(r,e):a(r,e))}(s[c],r,e,t).pipe((0,an.P)(),(0,Ct.b)(n=>{l[c]=n}))),B(1),(0,Bt.h)(l),(0,M.K)(c=>Ha(c)?Zt.E:(0,_n._)(c)))}(l,s,r,t).pipe((0,ze.U)(c=>(s._resolvedData=c,s.data=cc(s,e).resolve,a&&Jf(a)&&(s.data[vc]=a.title),null)))}(c.route,t,s,r)),(0,Ct.b)(()=>l++),B(1),(0,wi.z)(c=>l===a.length?(0,De.of)(e):Zt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Ct.b)({next:()=>o=!0,complete:()=>{o||(this.restoreHistory(i),this.cancelNavigationTransition(i,"",2))}}))}),(0,Ct.b)(i=>{const o=new ac(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(o)}))}),hu(n=>{const i=o=>{const d=[];o.routeConfig?.loadComponent&&!o.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(o.routeConfig).pipe((0,Ct.b)(u=>{o.component=u}),(0,ze.U)(()=>{})));for(const u of o.children)d.push(...i(u));return d};return(0,Ts.a)(i(n.targetSnapshot.root)).pipe((0,pe.d)(),(0,Ut.q)(1))}),hu(()=>this.afterPreactivation()),(0,ze.U)(n=>{const i=function zC(s,r,e){const t=At(s,r._root,e?e._root:void 0);return new tu(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return a={...n,targetRouterState:i}}),(0,Ct.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((s,r,e)=>(0,ze.U)(t=>(new Eo(r,t.targetRouterState,t.currentRouterState,e).activate(s),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,Ct.b)({next(){l=!0},complete(){l=!0}}),Mt(()=>{l||c||this.cancelNavigationTransition(a,"",1),this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),(0,M.K)(n=>{if(c=!0,WC(n)){qC(n)||(this.navigated=!0,this.restoreHistory(a,!0));const i=new Ji(a.id,this.serializeUrl(a.extractedUrl),n.message,n.cancellationCode);if(t.next(i),qC(n)){const o=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),d={skipLocationChange:a.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gu(a.source)};this.scheduleNavigation(o,"imperative",null,d,{resolve:a.resolve,reject:a.reject,promise:a.promise})}else a.resolve(!1)}else{this.restoreHistory(a,!0);const i=new Af(a.id,this.serializeUrl(a.extractedUrl),n,a.targetSnapshot??void 0);t.next(i);try{a.resolve(this.errorHandler(n))}catch(o){a.reject(o)}}return Zt.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const a={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const n={...l};delete n.navigationId,delete n.\u0275routerPageId,0!==Object.keys(n).length&&(a.state=n)}const c=this.parseUrl(e.url);this.scheduleNavigation(c,t,l,a)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(If),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:a,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,o=a||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u={...this.currentUrlTree.queryParams,...l};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),kC(o,this.currentUrlTree,e,u,d??null)}navigateByUrl(e,t={skipLocationChange:!1}){const a=Br(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Xf(s){for(let r=0;r{const l=e[a];return null!=l&&(t[a]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Lr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,a,l,c){if(this.disposed)return Promise.resolve(!1);let n,i,o;c?(n=c.resolve,i=c.reject,o=c.promise):o=new Promise((f,b)=>{n=f,i=b});const d=++this.navigationId;let u;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),u=a&&a.\u0275routerPageId?a.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):u=0,this.setTransition({id:d,targetPageId:u,source:t,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:n,reject:i,promise:o,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),o.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const a=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(a)||t.extras.replaceUrl?this.location.replaceState(a,"",l):this.location.go(a,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const a=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===a?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===a&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(a)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,a){const l=new Ji(e.id,this.serializeUrl(e.extractedUrl),t,a);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:function(){return Po()},providedIn:"root"}),s})();function gu(s){return"imperative"!==s}class Tc{}let xy=(()=>{class s{constructor(e,t,a,l,c){this.router=e,this.injector=a,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Kt.h)(e=>e instanceof Lr),(0,zi.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const a=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,p.MMx)(l.providers,e,`Route: ${l.path}`));const c=l._injector??e,n=l._loadedInjector??c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(n,l.children??l._loadedRoutes))}return(0,yi.D)(a).pipe((0,mt.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let a;a=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,De.of)(null);const l=a.pipe((0,wi.z)(c=>null===c?(0,De.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(c.injector??e,c.routes))));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,yi.D)([l,c]).pipe((0,mt.J)())}return l})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(_i),p.LFG(p.Sil),p.LFG(p.lqb),p.LFG(Tc),p.LFG(fu))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const _u=new p.OlP("");let Ty=(()=>{class s{constructor(e,t,a={}){this.router=e,this.viewportScroller=t,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof nc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Lr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Bs&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Bs(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const ng=new p.OlP("ROUTER_FORROOT_GUARD"),bu=new p.OlP(""),Ec=[T.Ye,{provide:Zl,useClass:Yd},{provide:_i,useFactory:Po},hc,{provide:cr,useFactory:function rg(s){return s.routerState.root},deps:[_i]},fu];function Cu(){return new p.PXZ("Router",_i)}let yu=(()=>{class s{constructor(e){}static forRoot(e,t){return{ngModule:s,providers:[Ec,[],vu(e),{provide:ng,useFactory:wu,deps:[[_i,new p.FiY,new p.tp0]]},{provide:pu,useValue:t||{}},t?.useHash?{provide:T.S$,useClass:T.Do}:{provide:T.S$,useClass:T.b0},{provide:_u,useFactory:()=>{const s=(0,p.f3M)(_i),r=(0,p.f3M)(T.EM),e=(0,p.f3M)(pu);return e.scrollOffset&&r.setOffset(e.scrollOffset),new Ty(s,r,e)}},t?.preloadingStrategy?cg(t.preloadingStrategy):[],{provide:p.PXZ,multi:!0,useFactory:Cu},t?.initialNavigation?My(t):[],[{provide:og,useFactory:Sy},{provide:p.tb,multi:!0,useExisting:og}]]}}static forChild(e){return{ngModule:s,providers:[vu(e)]}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ng,8))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();function wu(s){return"guarded"}function vu(s){return[{provide:Ac,multi:!0,useValue:s}]}function Sy(){const s=(0,p.f3M)(p.zs3);return r=>{const e=s.get(p.z2F);if(r!==e.components[0])return;const t=s.get(_i),a=s.get(sg);1===s.get(lg)&&t.initialNavigation(),s.get(bu,null,p.XFs.Optional)?.setUpPreloading(),s.get(_u,null,p.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),a.next(),a.complete()}}const og=new p.OlP("");function My(s){return["disabled"===s.initialNavigation?[{provide:p.ip1,multi:!0,useFactory:()=>{const s=(0,p.f3M)(_i);return()=>{s.setUpLocationChangeListener()}}},{provide:lg,useValue:2}]:[],"enabledBlocking"===s.initialNavigation?[{provide:lg,useValue:0},{provide:p.ip1,multi:!0,deps:[p.zs3],useFactory:s=>{const r=s.get(T.V_,Promise.resolve(null));let e=!1;return()=>r.then(()=>new Promise(a=>{const l=s.get(_i),c=s.get(sg);(function t(a){s.get(_i).events.pipe((0,Kt.h)(c=>c instanceof Lr||c instanceof Ji||c instanceof Af),(0,ze.U)(c=>c instanceof Lr||c instanceof Ji&&(0===c.code||1===c.code)&&null),(0,Kt.h)(c=>null!==c),(0,Ut.q)(1)).subscribe(()=>{a()})})(()=>{a(!0),e=!0}),l.afterPreactivation=()=>(a(!0),e||c.closed?(0,De.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const sg=new p.OlP("",{factory:()=>new Pe.x}),lg=new p.OlP("",{providedIn:"root",factory:()=>1});function cg(s){return[xy,{provide:bu,useExisting:xy},{provide:Tc,useExisting:s}]}let Sc;try{Sc=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Sc=!1}let ka,ei=(()=>{class s{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!Sc)&&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 s.\u0275fac=function(e){return new(e||s)(p.LFG(p.Lbi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Mc=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Ry(){if(ka)return ka;if("object"!=typeof document||!document)return ka=new Set(Mc),ka;let s=document.createElement("input");return ka=new Set(Mc.filter(r=>(s.setAttribute("type",r),s.type===r))),ka}let Qs,Ki,Ro;function yn(s){return function xu(){if(null==Qs&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qs=!0}))}finally{Qs=Qs||!1}return Qs}()?s:!!s.capture}function Iy(){if(null==Ki){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Ki=!1,Ki;if("scrollBehavior"in document.documentElement.style)Ki=!0;else{const s=Element.prototype.scrollTo;Ki=!!s&&!/\{\s*\[native code\]\s*\}/.test(s.toString())}}return Ki}function Io(s){if(function ky(){if(null==Ro){const s=typeof document<"u"?document.head:null;Ro=!(!s||!s.createShadowRoot&&!s.attachShadow)}return Ro}()){const r=s.getRootNode?s.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function ko(){let s=typeof document<"u"&&document?document.activeElement:null;for(;s&&s.shadowRoot;){const r=s.shadowRoot.activeElement;if(r===s)break;s=r}return s}function vi(s){return s.composedPath?s.composedPath()[0]:s.target}function Dc(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Un(s,...r){return r.length?r.some(e=>s[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var Xs=x(8372);function Hg(s){return(0,Kt.h)((r,e)=>s<=e)}function Pg(s,r){return s===r}var Rg=x(5032);function ft(s){return(0,rn.e)((r,e)=>{(0,Bn.Xf)(s).subscribe((0,Ni.x)(e,()=>e.complete(),Rg.Z)),!e.closed&&r.subscribe(e)})}function at(s){return null!=s&&"false"!=`${s}`}function sn(s,r=0){return function uw(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}(s)?Number(s):r}function Mu(s){return Array.isArray(s)?s:[s]}function Wt(s){return null==s?"":"string"==typeof s?s:`${s}px`}function ti(s){return s instanceof p.SBq?s.nativeElement:s}let Du=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ig=(()=>{class s{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=ti(e);return new Vi.y(a=>{const c=this._observeElement(t).subscribe(a);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Pe.x,a=this._mutationObserverFactory.create(l=>t.next(l));a&&a.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:a,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:a}=this._observedElements.get(e);t&&t.disconnect(),a.complete(),this._observedElements.delete(e)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Du))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),el=(()=>{class s{constructor(e,t,a){this._contentObserver=e,this._elementRef=t,this._ngZone=a,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=sn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Xs.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Ig),p.Y36(p.SBq),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),s})(),Vo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Du]}),s})();const tl=new Set;let Ba,Pu=(()=>{class s{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ru}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function kg(s){if(!tl.has(s))try{Ba||(Ba=document.createElement("style"),Ba.setAttribute("type","text/css"),document.head.appendChild(Ba)),Ba.sheet&&(Ba.sheet.insertRule(`@media ${s} {body{ }}`,0),tl.add(s))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Ru(s){return{matches:"all"===s||""===s,media:s,addListener:()=>{},removeListener:()=>{}}}let Bo=(()=>{class s{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Pe.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Vg(Mu(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){const a=Vg(Mu(e)).map(c=>this._registerQuery(c).observable);let l=(0,Ts.a)(a);return l=(0,Rr.z)(l.pipe((0,Ut.q)(1)),l.pipe(Hg(1),(0,Xs.b)(0))),l.pipe((0,ze.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:o})=>{n.matches=n.matches||i,n.breakpoints[o]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Vi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(Vt(t),(0,ze.U)(({matches:c})=>({query:e,matches:c})),ft(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Pu),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vg(s){return s.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}function Oo(s,r){return(s.getAttribute(r)||"").match(/\S+/g)||[]}const gw="cdk-describedby-message",il="cdk-describedby-host";let Iu=0,Fg=(()=>{class s{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Iu++,this._document=e,this._id=(0,p.f3M)(p.AFp)+"-"+Iu++}describe(e,t,a){if(!this._canBeDescribed(e,t))return;const l=ku(t,a);"string"!=typeof t?(jg(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,a),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,a){if(!t||!this._isElementNode(e))return;const l=ku(t,a);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const c=this._messageRegistry.get(l);c&&0===c.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${il}="${this._id}"]`);for(let t=0;t0!=a.indexOf(gw));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const a=this._messageRegistry.get(t);(function pw(s,r,e){const t=Oo(s,r);t.some(a=>a.trim()==e.trim())||(t.push(e.trim()),s.setAttribute(r,t.join(" ")))})(e,"aria-describedby",a.messageElement.id),e.setAttribute(il,this._id),a.referenceCount++}_removeMessageReference(e,t){const a=this._messageRegistry.get(t);a.referenceCount--,function Lg(s,r,e){const a=Oo(s,r).filter(l=>l!=e.trim());a.length?s.setAttribute(r,a.join(" ")):s.removeAttribute(r)}(e,"aria-describedby",a.messageElement.id),e.removeAttribute(il)}_isElementDescribedByMessage(e,t){const a=Oo(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=a.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const a=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!a||l&&l.trim()===a)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function ku(s,r){return"string"==typeof s?`${r||""}/${s}`:s}function jg(s,r){s.id||(s.id=`${gw}-${r}-${Iu++}`)}class Vc extends class wn{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Pe.x,this._typeaheadSubscription=Nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Pe.x,this.change=new Pe.x,r instanceof p.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const a=e.toArray().indexOf(this._activeItem);a>-1&&a!==this._activeItemIndex&&(this._activeItemIndex=a)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ct.b)(e=>this._pressedLetters.push(e)),(0,Xs.b)(r),(0,Kt.h)(()=>this._pressedLetters.length>0),(0,ze.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let a=1;a!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&a){this.setNextItemActive();break}return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&a){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&a){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}return;default:return void((a||Un(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const a=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[a]))return void this.setActiveItem(a)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let Bc=(()=>{class s{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function _w(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function mw(s){try{return s.frameElement}catch{return null}}(function vw(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(e));if(t&&(-1===Bu(t)||!this.isVisible(t)))return!1;let a=e.nodeName.toLowerCase(),l=Bu(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===a||"object"===a||this._platform.WEBKIT&&this._platform.IOS&&!function zg(s){let r=s.nodeName.toLowerCase(),e="input"===r&&s.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===a?!!e.hasAttribute("controls")&&-1!==l:"video"===a?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function ww(s){return!function bw(s){return function yw(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function Ng(s){let r=s.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(s)||function Cw(s){return function st(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||Vu(s))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function Vu(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let r=s.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function Bu(s){if(!Vu(s))return null;const r=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Gg{constructor(r,e,t,a,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=a,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const a=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(a)return a}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(r)}}let Ou=(()=>{class s{constructor(e,t,a){this._checker=e,this._ngZone=t,this._document=a}create(e,t=!1){return new Gg(e,this._checker,this._ngZone,this._document,t)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Bc),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function qn(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function Oc(s){const r=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const Lu=new p.OlP("cdk-input-modality-detector-options"),Fu={ignoreKeys:[18,17,224,91,16]},nl=yn({passive:!0,capture:!0});let LT=(()=>{class s{constructor(e,t,a,l){this._platform=e,this._mostRecentTarget=null,this._modality=new di(null),this._lastTouchMs=0,this._onKeydown=c=>{this._options?.ignoreKeys?.some(n=>n===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=vi(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(qn(c)?"keyboard":"mouse"),this._mostRecentTarget=vi(c))},this._onTouchstart=c=>{Oc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=vi(c))},this._options={...Fu,...l},this.modalityDetected=this._modality.pipe(Hg(1)),this.modalityChanged=this.modalityDetected.pipe(function dw(s,r=le.y){return s=s??Pg,(0,rn.e)((e,t)=>{let a,l=!0;e.subscribe((0,Ni.x)(t,c=>{const n=r(c);(l||!s(a,n))&&(l=!1,a=n,t.next(c))}))})}()),e.isBrowser&&t.runOutsideAngular(()=>{a.addEventListener("keydown",this._onKeydown,nl),a.addEventListener("mousedown",this._onMousedown,nl),a.addEventListener("touchstart",this._onTouchstart,nl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,nl),document.removeEventListener("mousedown",this._onMousedown,nl),document.removeEventListener("touchstart",this._onTouchstart,nl))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Lu,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Lo=new p.OlP("cdk-focus-monitor-default-options"),Lc=yn({passive:!0,capture:!0});let ln=(()=>{class s{constructor(e,t,a,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=a,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 Pe.x,this._rootNodeFocusAndBlurListener=n=>{for(let o=vi(n);o;o=o.parentElement)"focus"===n.type?this._onFocus(n,o):this._onBlur(n,o)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const a=ti(e);if(!this._platform.isBrowser||1!==a.nodeType)return(0,De.of)(null);const l=Io(a)||this._getDocument(),c=this._elementInfo.get(a);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new Pe.x,rootNode:l};return this._elementInfo.set(a,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=ti(e),a=this._elementInfo.get(t);a&&(a.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(a))}focusVia(e,t,a){const l=ti(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(a))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const a=this._elementInfo.get(t),l=vi(e);!a||!a.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),a)}_onBlur(e,t){const a=this._elementInfo.get(t);!a||a.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(a,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,a=this._rootNodeFocusListenerCount.get(t)||0;a||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Lc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Lc)}),this._rootNodeFocusListenerCount.set(t,a+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ft(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const a=this._rootNodeFocusListenerCount.get(t);a>1?this._rootNodeFocusListenerCount.set(t,a-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Lc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Lc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,a){this._setClasses(e,t),this._emitOrigin(a,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((a,l)=>{(l===e||a.checkChildren&&l.contains(e))&&t.push([l,a])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:a}=this._inputModalityDetector;if("mouse"!==a||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class s{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,p.f3M)(Bo).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,a=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(zu,qg,Nu),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(zu,qg):2===t&&e.add(zu,Nu)}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fc=(()=>{class s{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Wg))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Vo]}),s})();const Mw=new p.OlP("cdk-dir-doc",{providedIn:"root",factory:function Dw(){return(0,p.f3M)(T.K0)}}),$g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Wn=(()=>{class s{constructor(e){if(this.value="ltr",this.change=new p.vpe,e){const a=e.documentElement?e.documentElement.dir:null;this.value=function Hw(s){const r=s?.toLowerCase()||"";return"auto"===r&&typeof navigator<"u"&&navigator?.language?$g.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||a||"ltr")}}ngOnDestroy(){this.change.complete()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Mw,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const kw=new p.OlP("mat-sanity-checks",{providedIn:"root",factory:function Qg(){return!0}});let We=(()=>{class s{constructor(e,t,a){this._sanityChecks=t,this._document=a,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Dc()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Wg),p.LFG(kw,8),p.LFG(T.K0))},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr,Yr]}),s})();function Oa(s){return class extends s{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=at(r)}}}function La(s,r){return class extends s{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function fr(s){return class extends s{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=at(r)}}}function al(s){return class extends s{constructor(...r){super(...r),this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const qu=new p.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Wu(){return(0,p.f3M)(p.soG)}});class Zi{constructor(){this._localeChanges=new Pe.x,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),a=this.isValid(e);return t&&a?!this.compareDate(r,e):t==a}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const $u=new p.OlP("mat-date-formats"),Bw=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Yu(s,r){const e=Array(s);for(let t=0;t{class s extends Zi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Yu(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Yu(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Yu(7,a=>this._format(t,new Date(2017,0,a+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,a){let l=this._createDateWithOverflow(e,t,a);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const a=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Bw.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,a){const l=new Date;return l.setFullYear(e,t,a),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(qu,8),p.LFG(ei))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Ow={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 Zg=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:Zi,useClass:Kg}]}),s})(),Lw=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:$u,useValue:Ow}],imports:[Zg]}),s})(),zc=(()=>{class s{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Fo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();class zT{constructor(r,e,t,a=!1){this._renderer=r,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=a,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Fw={enterDuration:225,exitDuration:150},tm=yn({passive:!0}),jw=["mousedown","touchstart"],Nw=["mouseup","mouseleave","touchend","touchcancel"];class zw{constructor(r,e,t,a){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,a.isBrowser&&(this._containerElement=ti(t))}fadeInRipple(r,e,t={}){const a=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Fw,...t.animation};t.centered&&(r=a.left+a.width/2,e=a.top+a.height/2);const c=t.radius||function UT(s,r,e){const t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),a=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+a*a)}(r,e,a),n=r-a.left,i=e-a.top,o=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${o}ms`,this._containerElement.appendChild(d);const u=window.getComputedStyle(d),b=u.transitionDuration,P="none"===u.transitionProperty||"0s"===b||"0s, 0s"===b,z=new zT(this,d,t,P);d.style.transform="scale3d(1, 1, 1)",z.state=0,t.persistent||(this._mostRecentTransientRipple=z);let ae=null;return!P&&(o||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ke=()=>this._finishRippleTransition(z),lt=()=>this._destroyRipple(z);d.addEventListener("transitionend",ke),d.addEventListener("transitioncancel",lt),ae={onTransitionEnd:ke,onTransitionCancel:lt}}),this._activeRipples.set(z,ae),(P||!o)&&this._finishRippleTransition(z),z}fadeOutRipple(r){if(2===r.state||3===r.state)return;const e=r.element,t={...Fw,...r.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",r.state=2,(r._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(r)}fadeOutAll(){this._getActiveRipples().forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=ti(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(jw))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Nw),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(r){0===r.state?this._startFadeOutTransition(r):2===r.state&&this._destroyRipple(r)}_startFadeOutTransition(r){const e=r===this._mostRecentTransientRipple,{persistent:t}=r.config;r.state=1,!t&&(!e||!this._isPointerDown)&&r.fadeOut()}_destroyRipple(r){const e=this._activeRipples.get(r)??null;this._activeRipples.delete(r),this._activeRipples.size||(this._containerRect=null),r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),r.state=3,null!==e&&(r.element.removeEventListener("transitionend",e.onTransitionEnd),r.element.removeEventListener("transitioncancel",e.onTransitionCancel)),r.element.remove()}_onMousedown(r){const e=qn(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,tm)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(jw.forEach(r=>{this._triggerElement.removeEventListener(r,this,tm)}),this._pointerUpEventsRegistered&&Nw.forEach(r=>{this._triggerElement.removeEventListener(r,this,tm)}))}}const Gw=new p.OlP("mat-ripple-global-options");let Fa=(()=>{class s{constructor(e,t,a,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new zw(this,t,e,a)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,a){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...a}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(ei),p.Y36(Gw,8),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-ripple-unbounded",t.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"]}),s})(),ui=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),Ju=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We]}),s})(),Ku=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,T.ez,We,Ju]}),s})();const Gc=["mat-button",""],jo=["*"],Uc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],sl=La(Oa(fr(class{constructor(s){this._elementRef=s}})));let qc=(()=>{class s extends sl{constructor(e,t,a){super(e),this._focusMonitor=t,this._animationMode=a,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Uc)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ln),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,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(e,t){if(1&e&&p.Gf(Fa,5),2&e){let a;p.iGM(a=p.CRH())&&(t.ripple=a.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(p.uIk("disabled",t.disabled||null),p.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[p.qOj],attrs:Gc,ngContentSelectors:jo,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(e,t){1&e&&(p.F$t(),p.TgZ(0,"span",0),p.Hsn(1),p.qZA(),p._UZ(2,"span",1)(3,"span",2)),2&e&&(p.xp6(2),p.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),p.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Fa],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),s})(),$n=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,We]}),s})();var Zu=x(1144),An=x(576),Xu=x(3268);const eh=["addListener","removeListener"],Qw=["addEventListener","removeEventListener"],QT=["on","off"];function Wc(s,r,e,t){if((0,An.m)(e)&&(t=e,e=void 0),t)return Wc(s,r,e).pipe((0,Xu.Z)(t));const[a,l]=function sm(s){return(0,An.m)(s.addEventListener)&&(0,An.m)(s.removeEventListener)}(s)?Qw.map(c=>n=>s[c](r,n,e)):function Jw(s){return(0,An.m)(s.addListener)&&(0,An.m)(s.removeListener)}(s)?eh.map(th(s,r)):function om(s){return(0,An.m)(s.on)&&(0,An.m)(s.off)}(s)?QT.map(th(s,r)):[];if(!a&&(0,Zu.z)(s))return(0,wi.z)(c=>Wc(c,r,e))((0,Bn.Xf)(s));if(!a)throw new TypeError("Invalid event target");return new Vi.y(c=>{const n=(...i)=>c.next(1l(n)})}function th(s,r){return e=>t=>s[e](r,t)}var lm=x(4408);const Ai={schedule(s){let r=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=Ai;t&&(r=t.requestAnimationFrame,e=t.cancelAnimationFrame);const a=r(l=>{e=void 0,s(l)});return new Nt.w0(()=>e?.(a))},requestAnimationFrame(...s){const{delegate:r}=Ai;return(r?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:r}=Ai;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var dm=x(7565);const um=new class JT extends dm.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class cm extends lm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Ai.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Ai.cancelAnimationFrame(e),r._scheduled=void 0)}});let ih,pm=1;const $c={};function fm(s){return s in $c&&(delete $c[s],!0)}const gm={setImmediate(s){const r=pm++;return $c[r]=!0,ih||(ih=Promise.resolve()),ih.then(()=>fm(r)&&s()),r},clearImmediate(s){fm(s)}},{setImmediate:mm,clearImmediate:Kw}=gm,Yc={setImmediate(...s){const{delegate:r}=Yc;return(r?.setImmediate||mm)(...s)},clearImmediate(s){const{delegate:r}=Yc;return(r?.clearImmediate||Kw)(s)},delegate:void 0},nh=new class bm extends dm.v{flush(r){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let a;r=r||t.shift();do{if(a=r.execute(r.state,r.delay))break}while((r=t[0])&&r.id===e&&t.shift());if(this._active=!1,a){for(;(r=t[0])&&r.id===e&&t.shift();)r.unsubscribe();throw a}}}(class _m extends lm.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}requestAsyncId(r,e,t=0){return null!==t&&t>0?super.requestAsyncId(r,e,t):(r.actions.push(this),r._scheduled||(r._scheduled=Yc.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(r,e,t);r.actions.some(a=>a.id===e)||(Yc.clearImmediate(e),r._scheduled=void 0)}});var Qc=x(4986),rh=x(2805);function Xw(s,r=Qc.z){return function Zw(s){return(0,rn.e)((r,e)=>{let t=!1,a=null,l=null,c=!1;const n=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const o=a;a=null,e.next(o)}c&&e.complete()},i=()=>{l=null,c&&e.complete()};r.subscribe((0,Ni.x)(e,o=>{t=!0,a=o,l||(0,Bn.Xf)(s(o)).subscribe(l=(0,Ni.x)(e,n,i))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,rh.H)(s,r))}let ll=(()=>{class s{constructor(e,t,a){this._ngZone=e,this._platform=t,this._scrolled=new Pe.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=a}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Vi.y(t=>{this._globalSubscription||this._addGlobalListener();const a=e>0?this._scrolled.pipe(Xw(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{a.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,De.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const a=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Kt.h)(l=>!l||a.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((a,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let a=ti(t),l=e.getElementRef().nativeElement;do{if(a==l)return!0}while(a=a.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Wc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(ei),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),zo=(()=>{class s{constructor(e,t,a){this._platform=e,this._change=new Pe.x,this._changeListener=l=>{this._change.next(l)},this._document=a,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:a}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+a,right:e.left+t,height:a,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),a=e.documentElement,l=a.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||a.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||a.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Xw(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b),p.LFG(T.K0,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Yn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Na=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr,Yn,Yr,Yn]}),s})();class cl{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class dl extends cl{constructor(r,e,t,a){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=a}}class sh extends cl{constructor(r,e,t,a){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t,this.injector=a}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class ov extends cl{constructor(r){super(),this.element=r instanceof p.SBq?r.nativeElement:r}}class za{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof dl?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof sh?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof ov?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class aE extends za{constructor(r,e,t,a,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=a,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let a;return r.viewContainerRef?(a=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>a.destroy())):(a=t.create(r.injector||this._defaultInjector||p.zs3.NULL),this._appRef.attachView(a.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(a.hostView),a.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(a)),this._attachedPortal=r,a}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context,{injector:r.injector});return t.rootNodes.forEach(a=>this.outletElement.appendChild(a)),t.detectChanges(),this.setDisposeFn(()=>{let a=e.indexOf(t);-1!==a&&e.remove(a)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let lh=(()=>{class s extends za{constructor(e,t,a){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=a}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),s})(),Kr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();var cn=x(6451);const Kc=Iy();class sv{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Wt(-this._previousScrollPosition.left),r.style.top=Wt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,a=this._document.body.style,l=t.scrollBehavior||"",c=a.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Kc&&(t.scrollBehavior=a.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Kc&&(t.scrollBehavior=l,a.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class lv{constructor(r,e,t,a){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=a,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tm{enable(){}disable(){}attach(){}}function ch(s,r){return r.some(e=>s.bottome.bottom||s.righte.right)}function Em(s,r){return r.some(e=>s.tope.bottom||s.lefte.right)}class cv{constructor(r,e,t,a){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=a,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:a}=this._viewportRuler.getViewportSize();ch(e,[{width:t,height:a,bottom:a,right:t,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 dv=(()=>{class s{constructor(e,t,a,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=a,this.noop=()=>new Tm,this.close=c=>new lv(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new sv(this._viewportRuler,this._document),this.reposition=c=>new cv(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ll),p.LFG(zo),p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();class Go{constructor(r){if(this.scrollStrategy=new Tm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class ul{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}let Zc=(()=>{class s{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),uv=(()=>{class s extends Zc{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=a=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const n=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>n.next(a)):n.next(a);break}}}add(e){super.add(e),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 s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qn=(()=>{class s extends Zc{constructor(e,t,a){super(e),this._platform=t,this._ngZone=a,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=vi(l)},this._clickListener=l=>{const c=vi(l),n="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const i=this._attachedOverlays.slice();for(let o=i.length-1;o>-1;o--){const d=i[o];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(d.overlayElement.contains(c)||d.overlayElement.contains(n))break;const u=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(l)):u.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(ei),p.LFG(p.R0b,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Zr=(()=>{class s{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Dc()){const a=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Pe.x,this._outsidePointerEvents=new Pe.x,a.scrollStrategy&&(this._scrollStrategy=a.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=a.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(r);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ut.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){const r=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,r&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config={...this._config,...r},this._updateElementSize()}setDirection(r){this._config={...this._config,direction:r},this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Wt(this._config.width),r.height=Wt(this._config.height),r.minWidth=Wt(this._config.minWidth),r.minHeight=Wt(this._config.minHeight),r.maxWidth=Wt(this._config.maxWidth),r.maxHeight=Wt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="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(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(r){if(this._animationsDisabled)return void this._disposeBackdrop(r);r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",this._backdropTransitionendHandler)}),r.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(r)},500))}}_toggleClasses(r,e,t){const a=Mu(e||[]).filter(l=>!!l);a.length&&(t?r.classList.add(...a):r.classList.remove(...a))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(ft((0,cn.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",this._backdropTransitionendHandler),r.remove(),this._backdropElement===r&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Xr="cdk-overlay-connected-position-bounding-box",Xc=/([A-Za-z%]+)$/;class dn{constructor(r,e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l,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 Pe.x,this._resizeSubscription=Nt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(r)}get positions(){return this._preferredPositions}attach(r){this._validatePositions(),r.hostElement.classList.add(Xr),this._overlayRef=r,this._boundingBox=r.hostElement,this._pane=r.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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,a=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,a,n),o=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(o,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,o,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=o)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&mr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Xr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let a,l;if("center"==t.originX)a=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;a="start"==t.originX?c:n}return e.left<0&&(a-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:a,y:l}}_getOverlayPoint(r,e,t){let a,l;return a="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+a,y:r.y+l}}_getOverlayFit(r,e,t,a){const l=Ua(e);let{x:c,y:n}=r,i=this._getOffset(a,"x"),o=this._getOffset(a,"y");i&&(c+=i),o&&(n+=o);let f=0-n,b=n+l.height-t.height,P=this._subtractOverflows(l.width,0-c,c+l.width-t.width),z=this._subtractOverflows(l.height,f,b),ae=P*z;return{visibleArea:ae,isCompletelyWithinViewport:l.width*l.height===ae,fitsInViewportVertically:z===l.height,fitsInViewportHorizontally:P==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const a=t.bottom-e.y,l=t.right-e.x,c=Ga(this._overlayRef.getConfig().minHeight),n=Ga(this._overlayRef.getConfig().minWidth),o=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=a)&&o}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const a=Ua(e),l=this._viewportRect,c=Math.max(r.x+a.width-l.width,0),n=Math.max(r.y+a.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),o=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=a.width<=l.width?o||-c:r.xP&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-P/2)}if("end"===e.overlayX&&!a||"start"===e.overlayX&&a)f=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!a||"end"===e.overlayX&&a)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),P=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>P&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-P/2)}return{top:c,left:u,bottom:n,right:f,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const a={};if(this._hasExactPosition())a.top=a.left="0",a.bottom=a.right=a.maxHeight=a.maxWidth="",a.width=a.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;a.height=Wt(t.height),a.top=Wt(t.top),a.bottom=Wt(t.bottom),a.width=Wt(t.width),a.left=Wt(t.left),a.right=Wt(t.right),a.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",a.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(a.maxHeight=Wt(l)),c&&(a.maxWidth=Wt(c))}this._lastBoundingBoxSize=t,mr(this._boundingBox.style,a)}_resetBoundingBoxStyles(){mr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){mr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},a=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(a){const d=this._viewportRuler.getViewportScrollPosition();mr(t,this._getExactOverlayY(e,r,d)),mr(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),o&&(n+=`translateY(${o}px)`),t.transform=n.trim(),c.maxHeight&&(a?t.maxHeight=Wt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(a?t.maxWidth=Wt(c.maxWidth):l&&(t.maxWidth="")),mr(this._pane.style,t)}_getExactOverlayY(r,e,t){let a={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?a.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":a.top=Wt(l.y),a}_getExactOverlayX(r,e,t){let c,a={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?a.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":a.left=Wt(l.x),a}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(a=>a.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Em(r,t),isOriginOutsideView:ch(r,t),isOverlayClipped:Em(e,t),isOverlayOutsideView:ch(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,a)=>t-Math.max(a,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?r.offsetX??this._offsetX:r.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&Mu(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof p.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function mr(s,r){for(let e in r)r.hasOwnProperty(e)&&(s[e]=r[e]);return s}function Ga(s){if("number"!=typeof s&&null!=s){const[r,e]=s.split(Xc);return e&&"px"!==e?null:parseFloat(r)}return s||null}function Ua(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}const qa="cdk-global-overlay-wrapper";class qo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(qa),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._xOffset=r,this._xPosition="left",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._xOffset=r,this._xPosition="right",this}start(r=""){return this._xOffset=r,this._xPosition="start",this}end(r=""){return this._xOffset=r,this._xPosition="end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._xPosition="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:a,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==a&&"100vw"!==a||c&&"100%"!==c&&"100vw"!==c),o=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n),d=this._xPosition,u=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",P="",z="";i?z="flex-start":"center"===d?(z="center",f?P=u:b=u):f?"left"===d||"end"===d?(z="flex-end",b=u):("right"===d||"start"===d)&&(z="flex-start",P=u):"left"===d||"start"===d?(z="flex-start",b=u):("right"===d||"end"===d)&&(z="flex-end",P=u),r.position=this._cssPosition,r.marginLeft=i?"0":b,r.marginTop=o?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=i?"0":P,e.justifyContent=z,e.alignItems=o?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(qa),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Wo=(()=>{class s{constructor(e,t,a,l){this._viewportRuler=e,this._document=t,this._platform=a,this._overlayContainer=l}global(){return new qo}flexibleConnectedTo(e){return new dn(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(zo),p.LFG(T.K0),p.LFG(ei),p.LFG(Zr))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$o=0,xi=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=a,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=o,this._directionality=d,this._location=u,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),a=this._createPaneElement(t),l=this._createPortalOutlet(a),c=new Go(e);return c.direction=c.direction||this._directionality.value,new li(l,t,a,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+$o++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(p.z2F)),new aE(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(dv),p.LFG(Zr),p.LFG(p._Vd),p.LFG(Wo),p.LFG(uv),p.LFG(p.zs3),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(Wn),p.LFG(T.Ye),p.LFG(Qn),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const Dm={provide:new p.OlP("cdk-connected-overlay-scroll-strategy"),deps:[xi],useFactory:function Mm(s){return()=>s.scrollStrategies.reposition()}};let Wa=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[xi,Dm],imports:[Yr,Kr,Na,Na]}),s})();class dh{}const _r="*";function ii(s,r){return{type:7,name:s,definitions:r,options:{}}}function wt(s,r=null){return{type:4,styles:r,timings:s}}function Hm(s,r=null){return{type:3,steps:s,options:r}}function uh(s,r=null){return{type:2,steps:s,options:r}}function Fe(s){return{type:6,styles:s,offset:null}}function pt(s,r,e){return{type:0,name:s,styles:r,options:e}}function _t(s,r,e=null){return{type:1,expr:s,animation:r,options:e}}function Yo(s=null){return{type:9,options:s}}function Ya(s,r,e=null){return{type:11,selector:s,animation:r,options:e}}function ed(s){Promise.resolve(null).then(s)}class Qo{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ed(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class td{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,a=0;const l=this.players.length;0==l?ed(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++a==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const a=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(a)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Pm=["connectionContainer"],fh=["inputContainer"],gh=["label"];function _v(s,r){1&s&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15)(3,"div",16)(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15)(7,"div",16)(8,"div",17),p.qZA(),p.BQk())}function Rm(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.updateOutlineGap())}),p.Hsn(1,1),p.qZA()}if(2&s){const e=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Im(s,r){if(1&s&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&s){const e=p.oxw(2);p.xp6(3),p.Oqu(e._control.placeholder)}}function km(s,r){1&s&&p.Hsn(0,3,["*ngSwitchCase","true"])}function Vm(s,r){1&s&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function bv(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.updateOutlineGap())}),p.YNc(2,Im,4,1,"ng-container",12),p.YNc(3,km,1,0,"ng-content",12),p.YNc(4,Vm,2,0,"span",22),p.qZA()}if(2&s){const e=p.oxw();p.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),p.uIk("for",e._control.id)("aria-owns",e._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Bm(s,r){1&s&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function Om(s,r){if(1&s&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&s){const e=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function mh(s,r){if(1&s&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState)}}function _h(s,r){if(1&s&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&s){const e=p.oxw(2);p.Q6J("id",e._hintLabelId),p.xp6(1),p.Oqu(e.hintLabel)}}function Lm(s,r){if(1&s&&(p.TgZ(0,"div",27),p.YNc(1,_h,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&s){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",e.hintLabel)}}const Fm=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],jm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nm=0;const bh=new p.OlP("MatError");let Ch=(()=>{class s{constructor(e,t){this.id="mat-error-"+Nm++,e||t.nativeElement.setAttribute("aria-live","polite")}}return s.\u0275fac=function(e){return new(e||s)(p.$8M("aria-live"),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("id",t.id)},inputs:{id:"id"},features:[p._Bn([{provide:bh,useExisting:s}])]}),s})();const zm={transitionMessages:ii("transitionMessages",[pt("enter",Fe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Fe({opacity:0,transform:"translateY(-5px)"}),wt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let fl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s}),s})(),Gm=0;const Um=new p.OlP("MatHint");let hi=(()=>{class s{constructor(){this.align="start",this.id="mat-hint-"+Gm++}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(p.uIk("id",t.id)("align",null),p.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[p._Bn([{provide:Um,useExisting:s}])]}),s})(),gl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-label"]]}),s})(),Cv=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-placeholder"]]}),s})();const yv=new p.OlP("MatPrefix"),qm=new p.OlP("MatSuffix");let Wm=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","matSuffix",""]],features:[p._Bn([{provide:qm,useExisting:s}])]}),s})(),yh=0;const vv=La(class{constructor(s){this._elementRef=s}},"primary"),Ym=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),wh=new p.OlP("MatFormField");let vh=(()=>{class s extends vv{constructor(e,t,a,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=a,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Pe.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+yh++,this._labelId="mat-form-field-label-"+yh++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=at(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Vt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ft(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ft(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,cn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ft(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Wc(this._label.nativeElement,"transitionend").pipe((0,Ut.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,a=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,a=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${a}, ${l}`);for(let u=0;u0?.75*P+10:0}for(let d=0;d{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Vo,We]}),s})();const Xm={provide:new p.OlP("mat-select-scroll-strategy"),deps:[xi],useFactory:function nd(s){return()=>s.scrollStrategies.reposition()}};let ml=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Xm],imports:[T.ez,Wa,Ku,We,Yn,Ko,Ku,We]}),s})();const i_=["tooltip"],xh="tooltip-panel",r_=yn({passive:!0}),a_=new p.OlP("mat-tooltip-scroll-strategy"),Vv={provide:a_,deps:[xi],useFactory:function kv(s){return()=>s.scrollStrategies.reposition({scrollThrottle:20})}},Bv=new p.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ov(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Lv=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=a,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=o,this._dir=u,this._defaultOptions=f,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 Pe.x,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ft(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=at(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=sn(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=sn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ft(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,a])=>{e.removeEventListener(t,a,r_)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new dl(this._tooltipComponent,this._viewContainerRef);const a=this._tooltipInstance=t.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(ft(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${xh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ft(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ft(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ft(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&27===a.keyCode&&!Un(a)&&(a.preventDefault(),a.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(e){const t=e.getConfig().positionStrategy,a=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...a.main,...l.main}),this._addOffset({...a.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t||"below"==t?a={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let a;"above"==t?a={overlayX:"center",overlayY:"bottom"}:"below"==t?a={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?a={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(a={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ut.q)(1),ft(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:a,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===a?"left":"right":"start"===a?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${xh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const a=t.relatedTarget;(!a||!this._overlayRef?.overlayElement.contains(a))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,a])=>{this._elementRef.nativeElement.addEventListener(t,a,r_)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,a=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),("on"===e||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}}return s.\u0275fac=function(e){p.$Z()},s.\u0275dir=p.lG2({type:s,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),s})(),Fv=(()=>{class s extends Lv{constructor(e,t,a,l,c,n,i,o,d,u,f,b){super(e,t,a,l,c,n,i,o,d,u,f,b),this._tooltipComponent=Nv}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(xi),p.Y36(p.SBq),p.Y36(ll),p.Y36(p.s_b),p.Y36(p.R0b),p.Y36(ei),p.Y36(Fg),p.Y36(ln),p.Y36(a_),p.Y36(Wn,8),p.Y36(Bv,8),p.Y36(T.K0))},s.\u0275dir=p.lG2({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[p.qOj]}),s})(),jv=(()=>{class s{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Pe.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,a=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:a),t.classList.add(e?a:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.sBO),p.Y36(p.QbO,8))},s.\u0275dir=p.lG2({type:s}),s})(),Nv=(()=>{class s extends jv{constructor(e,t,a){super(e,a),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.sBO),p.Y36(Bo),p.Y36(p.QbO,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&p.Gf(i_,7),2&e){let a;p.iGM(a=p.CRH())&&(t._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&p.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&p.Udp("zoom",t.isVisible()?1:null)},features:[p.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(p.TgZ(0,"div",0,1),p.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),p.ALo(2,"async"),p._uU(3),p.qZA()),2&e){let a;p.ekj("mat-tooltip-handset",null==(a=p.lcZ(2,4,t._isHandset))?null:a.matches),p.Q6J("ngClass",t.tooltipClass),p.xp6(3),p.Oqu(t.message)}},dependencies:[T.mk,T.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}),s})(),Xo=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Vv],imports:[Fc,T.ez,Wa,We,We,Yn]}),s})(),rd=(()=>{class s{constructor(){this.changes=new Pe.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,a)=>{if(0==a||0==t)return`0 of ${a}`;const l=e*t;return`${l+1} \u2013 ${l<(a=Math.max(a,0))?Math.min(l+t,a):l+t} of ${a}`}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const s_={provide:rd,deps:[[new p.FiY,new p.tp0,rd]],useFactory:function o_(s){return s||new rd}};let Zn=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[s_],imports:[T.ez,$n,ml,Xo,We]}),s})();var d_=x(1005);const Kv=["mat-menu-item",""];function es(s,r){1&s&&(p.O4$(),p.TgZ(0,"svg",2),p._UZ(1,"polygon",3),p.qZA())}const Zv=["*"];function Th(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div",0),p.NdJ("keydown",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._handleKeydown(a))})("click",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.closed.emit("click"))})("@transformMenu.start",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._onAnimationStart(a))})("@transformMenu.done",function(a){p.CHM(e);const l=p.oxw();return p.KtG(l._onAnimationDone(a))}),p.TgZ(1,"div",1),p.Hsn(2),p.qZA()()}if(2&s){const e=p.oxw();p.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),p.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Eh={transformMenu:ii("transformMenu",[pt("void",Fe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",wt("120ms cubic-bezier(0, 0, 0.2, 1)",Fe({opacity:1,transform:"scale(1)"}))),_t("* => void",wt("100ms 25ms linear",Fe({opacity:0})))]),fadeInItems:ii("fadeInItems",[pt("showing",Fe({opacity:1})),_t("void => *",[Fe({opacity:0}),wt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},xE=new p.OlP("MatMenuContent"),Sh=new p.OlP("MAT_MENU_PANEL"),ad=fr(Oa(class{}));let Qa=(()=>{class s extends ad{constructor(e,t,a,l,c){super(),this._elementRef=e,this._document=t,this._focusMonitor=a,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new Pe.x,this._focused=new Pe.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let a=0;a{class s{constructor(e,t,a,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=a,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new p.n_E,this._tabSubscription=Nt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Pe.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new p.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+u_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=at(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=at(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Vc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Hi.w)(e=>(0,cn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const a=e.toArray(),l=Math.max(0,Math.min(a.length-1,t.activeItemIndex||0));a[l]&&!a[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Vt(this._directDescendantItems),(0,Hi.w)(t=>(0,cn.T)(...t.map(a=>a._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,a=this._keyManager;switch(t){case 27:Un(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&a.setFocusOrigin("keyboard"),void a.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ut.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const a=this._keyManager;a.setFocusOrigin(e).setFirstItemActive(),!a.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),a=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(e=this.xPosition,t=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===e,a["mat-menu-after"]="after"===e,a["mat-menu-above"]="above"===t,a["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Vt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36($t),p.Y36(p.sBO))},s.\u0275dir=p.lG2({type:s,contentQueries:function(e,t,a){if(1&e&&(p.Suo(a,xE,5),p.Suo(a,Qa,5),p.Suo(a,Qa,4)),2&e){let l;p.iGM(l=p.CRH())&&(t.lazyContent=l.first),p.iGM(l=p.CRH())&&(t._allItems=l),p.iGM(l=p.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&p.Gf(p.Rgc,5),2&e){let a;p.iGM(a=p.CRH())&&(t.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),s})(),tA=(()=>{class s extends ts{constructor(e,t,a,l){super(e,t,a,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36($t),p.Y36(p.sBO))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&p.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[p._Bn([{provide:Sh,useExisting:s}]),p.qOj],ngContentSelectors:Zv,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(p.F$t(),p.YNc(0,Th,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Eh.transformMenu,Eh.fadeInItems]},changeDetection:0}),s})();const Mh=new p.OlP("mat-menu-scroll-strategy"),p_={provide:Mh,deps:[xi],useFactory:function h_(s){return()=>s.scrollStrategies.reposition()}},f_=yn({passive:!0});let nA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d){this._overlay=e,this._element=t,this._viewContainerRef=a,this._menuItemInstance=n,this._dir=i,this._focusMonitor=o,this._ngZone=d,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Nt.w0.EMPTY,this._hoverSubscription=Nt.w0.EMPTY,this._menuCloseSubscription=Nt.w0.EMPTY,this._handleTouchStart=u=>{Oc(u)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new p.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new p.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof ts?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,f_),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,f_),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),a=t.getConfig(),l=a.positionStrategy;this._setPosition(e,l),a.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof ts&&(e._startAnimation(),e._directDescendantItems.changes.pipe(ft(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof ts?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Kt.h)(a=>"void"===a.toState),(0,Ut.q)(1),ft(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,a=e.parentMenu;for(;a;)t++,a=a.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Go({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(a=>{const l="start"===a.connectionPair.overlayX?"after":"before",c="top"===a.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[a,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,n]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[i,o]=[c,n],[d,u]=[a,l],f=0;if(this.triggersSubmenu()){if(u=a="before"===e.xPosition?"start":"end",l=d="end"===a?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(i="top"===c?"bottom":"top",o="top"===n?"bottom":"top");t.withPositions([{originX:a,originY:i,overlayX:d,overlayY:c,offsetY:f},{originX:l,originY:i,overlayX:u,overlayY:c,offsetY:f},{originX:a,originY:o,overlayX:d,overlayY:n,offsetY:-f},{originX:l,originY:o,overlayX:u,overlayY:n,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,De.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Kt.h)(c=>c!==this._menuItemInstance),(0,Kt.h)(()=>this._menuOpen)):(0,De.of)();return(0,cn.T)(e,a,l,t)}_handleMousedown(e){qn(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Kt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,d_.g)(0,nh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof ts&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ut.q)(1),(0,d_.g)(0,nh),ft(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new sh(e.templateRef,this._viewContainerRef)),this._portal}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(xi),p.Y36(p.SBq),p.Y36(p.s_b),p.Y36(Mh),p.Y36(Sh,8),p.Y36(Qa,10),p.Y36(Wn,8),p.Y36(ln),p.Y36(p.R0b))},s.\u0275dir=p.lG2({type:s,hostVars:3,hostBindings:function(e,t){1&e&&p.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&p.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),s})(),rA=(()=>{class s extends nA{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[p.qOj]}),s})(),ea=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[p_],imports:[T.ez,We,ui,Wa,Yn,We]}),s})();var aA=x(4742),oA=x(1810);function Dh(...s){const r=(0,ya.jO)(s),{args:e,keys:t}=(0,aA.D)(s),a=new Vi.y(l=>{const{length:c}=e;if(!c)return void l.complete();const n=new Array(c);let i=c,o=c;for(let d=0;d{u||(u=!0,o--),n[d]=f},()=>i--,void 0,()=>{(!i||!u)&&(o||l.next(t?(0,oA.n)(t,n):n),l.complete())}))}});return r?a.pipe((0,Xu.Z)(r)):a}var bl=x(3099);const g_=["*"];let Cl;function yl(s){return function m_(){if(void 0===Cl&&(Cl=null,typeof window<"u")){const s=window;void 0!==s.trustedTypes&&(Cl=s.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return Cl}()?.createHTML(s)||s}function is(s){return Error(`Unable to find icon with the name "${s}"`)}function __(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function b_(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class Ja{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let ns=(()=>{class s{constructor(e,t,a,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=a}addSvgIcon(e,t,a){return this.addSvgIconInNamespace("",e,t,a)}addSvgIconLiteral(e,t,a){return this.addSvgIconLiteralInNamespace("",e,t,a)}addSvgIconInNamespace(e,t,a,l){return this._addSvgIconConfig(e,t,new Ja(a,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,a,l){const c=this._sanitizer.sanitize(p.q3G.HTML,a);if(!c)throw b_(a);const n=yl(c);return this._addSvgIconConfig(e,t,new Ja("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,a){return this._addSvgIconSetConfig(e,new Ja(t,null,a))}addSvgIconSetLiteralInNamespace(e,t,a){const l=this._sanitizer.sanitize(p.q3G.HTML,t);if(!l)throw b_(t);const c=yl(l);return this._addSvgIconSetConfig(e,new Ja("",c,a))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(p.q3G.RESOURCE_URL,e);if(!t)throw __(e);const a=this._cachedIconsByUrl.get(t);return a?(0,De.of)(od(a)):this._loadSvgIconFromConfig(new Ja(e,null)).pipe((0,Ct.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ze.U)(l=>od(l)))}getNamedSvgIcon(e,t=""){const a=Hh(t,e);let l=this._svgIconConfigs.get(a);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(a,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,_n._)(is(a))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,De.of)(od(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ze.U)(t=>od(t)))}_getSvgFromIconSetConfigs(e,t){const a=this._extractIconWithNameFromAnySet(e,t);return a?(0,De.of)(a):Dh(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,M.K)(n=>{const o=`Loading icon set URL: ${this._sanitizer.sanitize(p.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(o)),(0,De.of)(null)})))).pipe((0,ze.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw is(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let a=t.length-1;a>=0;a--){const l=t[a];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t),(0,ze.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,De.of)(null):this._fetchIcon(e).pipe((0,Ct.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,a){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,a);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),a);const n=this._svgElementFromString(yl(""));return n.appendChild(c),this._setSvgAttributes(n,a)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const a=t.querySelector("svg");if(!a)throw Error(" tag not found");return a}_toSvgElement(e){const t=this._svgElementFromString(yl("")),a=e.attributes;for(let l=0;lyl(o)),Mt(()=>this._inProgressUrlFetches.delete(c)),(0,bl.B)());return this._inProgressUrlFetches.set(c,i),i}_addSvgIconConfig(e,t,a){return this._svgIconConfigs.set(Hh(e,t),a),this}_addSvgIconSetConfig(e,t){const a=this._iconSetConfigs.get(e);return a?a.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let a=0;ar?r.pathname+r.search:""}}}),dA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],y_=dA.map(s=>`[${s}]`).join(", "),sd=/^url\(['"]?#(.*?)['"]?\)$/;let Ph=(()=>{class s extends cA{constructor(e,t,a,l,c,n){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Nt.w0.EMPTY,n&&(n.color&&(this.color=this.defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),a||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=at(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const a=e.childNodes[t];(1!==a.nodeType||"svg"===a.nodeName.toLowerCase())&&a.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(a=>a.length>0);this._previousFontSetClass.forEach(a=>e.classList.remove(a)),t.forEach(a=>e.classList.add(a)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((a,l)=>{a.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(y_),a=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),o=i?i.match(sd):null;if(o){let d=a.get(n);d||(d=[],a.set(n,d)),d.push({name:c,value:o[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,a]=this._splitIconName(e);t&&(this._svgNamespace=t),a&&(this._svgName=a),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(a,t).pipe((0,Ut.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${a}! ${l.message}`))})}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ns),p.$8M("aria-hidden"),p.Y36(HE),p.Y36(p.qLn),p.Y36(DE,8))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),p.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[p.qOj],ngContentSelectors:g_,decls:1,vars:0,template:function(e,t){1&e&&(p.F$t(),p.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),s})(),yr=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();function xn(s){return!!s&&(s instanceof Vi.y||(0,An.m)(s.lift)&&(0,An.m)(s.subscribe))}var vl=x(6063);class uA extends Pe.x{constructor(r=1/0,e=1/0,t=vl.l){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:t,_infiniteTimeWindow:a,_timestampProvider:l,_windowTime:c}=this;e||(t.push(r),!a&&t.push(l.now()+c)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:t,_buffer:a}=this,l=a.slice();for(let c=0;cnew uA(t,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}class Al{}let v_=(()=>{class s extends Al{getTranslation(e){return(0,De.of)({})}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Rh{}let Ih=(()=>{class s{handle(e){return e.key}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function ld(s,r){if(s===r)return!0;if(null===s||null===r)return!1;if(s!=s&&r!=r)return!0;let a,l,c,e=typeof s;if(e==typeof r&&"object"==e){if(!Array.isArray(s)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),s){if(!ld(s[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&typeof r[l]<"u")return!1;return!0}if(!Array.isArray(r))return!1;if((a=s.length)==r.length){for(l=0;l{ia(r[t])?t in s?e[t]=A_(s[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class xl{}let x_=(()=>{class s extends xl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let a;return a="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,a}getValue(e,t){let a="string"==typeof t?t.split("."):[t];t="";do{t+=a.shift(),!ta(e)||!ta(e[t])||"object"!=typeof e[t]&&a.length?a.length?t+=".":e=void 0:(e=e[t],t="")}while(a.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(a,l)=>{let c=this.getValue(t,l);return ta(c)?c:a}):e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class Tl{}let T_=(()=>{class s extends Tl{compile(e,t){return e}compileTranslations(e,t){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class kh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new p.vpe,this.onLangChange=new p.vpe,this.onDefaultLangChange=new p.vpe}}const Vh=new p.OlP("USE_STORE"),El=new p.OlP("USE_DEFAULT_LANG"),Bh=new p.OlP("DEFAULT_LANGUAGE"),cd=new p.OlP("USE_EXTEND");let Xi=(()=>{class s{constructor(e,t,a,l,c,n=!0,i=!1,o=!1,d){this.store=e,this.currentLoader=t,this.compiler=a,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=o,this.pending=!1,this._onTranslationChange=new p.vpe,this._onLangChange=new p.vpe,this._onDefaultLangChange=new p.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,De.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ut.q)(1)).subscribe(a=>{this.changeLang(e)}),t):(this.changeLang(e),(0,De.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(w_(1),(0,Ut.q)(1));return this.loadingTranslations=t.pipe((0,ze.U)(a=>this.compiler.compileTranslations(a,e)),w_(1),(0,Ut.q)(1)),this.loadingTranslations.subscribe({next:a=>{this.translations[e]=this.extend&&this.translations[e]?{...a,...this.translations[e]}:a,this.updateLangs(),this.pending=!1},error:a=>{this.pending=!1}}),t}setTranslation(e,t,a=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(a||this.extend)&&this.translations[e]?A_(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,a){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,a),xn(c[i])&&(n=!0);return n?Dh(t.map(o=>xn(c[o])?c[o]:(0,De.of)(c[o]))).pipe((0,ze.U)(o=>{let d={};return o.forEach((u,f)=>{d[t[f]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),a)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),a)),typeof l>"u"){let c={key:t,translateService:this};typeof a<"u"&&(c.interpolateParams=a),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,zi.b)(a=>xn(a=this.getParsedResult(a,e,t))?a:(0,De.of)(a)));{let a=this.getParsedResult(this.translations[this.currentLang],e,t);return xn(a)?a:(0,De.of)(a)}}getStreamOnTranslationChange(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,Rr.z)(Ir(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Hi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return"function"==typeof l.subscribe?l:(0,De.of)(l)})))}stream(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');return(0,Rr.z)(Ir(()=>this.get(e,t)),this.onLangChange.pipe((0,Hi.w)(a=>{const l=this.getParsedResult(a.translations,e,t);return xn(l)?l:(0,De.of)(l)})))}instant(e,t){if(!ta(e)||!e.length)throw new Error('Parameter "key" required');let a=this.getParsedResult(this.translations[this.currentLang],e,t);if(xn(a)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return a}set(e,t,a=this.currentLang){this.translations[a][e]=this.compiler.compile(t,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(kh),p.LFG(Al),p.LFG(Tl),p.LFG(xl),p.LFG(Rh),p.LFG(El),p.LFG(Vh),p.LFG(cd),p.LFG(Bh))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Ka=(()=>{class s{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,a){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(a){let c=this.translate.getParsedResult(a,e,t);xn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(ld(e,this.lastKey)&&ld(t,this.lastParams))return this.value;let a;if(ta(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{a=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(a=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,a),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,a))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi,16),p.Y36(p.sBO,16))},s.\u0275pipe=p.Yjl({name:"translate",type:s,pure:!1}),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Sl=(()=>{class s{static forRoot(e={}){return{ngModule:s,providers:[e.loader||{provide:Al,useClass:v_},e.compiler||{provide:Tl,useClass:T_},e.parser||{provide:xl,useClass:x_},e.missingTranslationHandler||{provide:Rh,useClass:Ih},kh,{provide:Vh,useValue:e.isolate},{provide:El,useValue:e.useDefaultLang},{provide:cd,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},Xi]}}static forChild(e={}){return{ngModule:s,providers:[e.loader||{provide:Al,useClass:v_},e.compiler||{provide:Tl,useClass:T_},e.parser||{provide:xl,useClass:x_},e.missingTranslationHandler||{provide:Rh,useClass:Ih},{provide:Vh,useValue:e.isolate},{provide:El,useValue:e.useDefaultLang},{provide:cd,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},Xi]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Oh=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Zn,ea,yr,$n,Sl,T.ez]}),s})();function hA(s,r){}class Ml{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 E_=(()=>{class s extends za{constructor(e,t,a,l,c,n,i,o){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=n,this._overlayRef=i,this._focusMonitor=o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>{this._portalOutlet.hasAttached();const u=this._portalOutlet.attachDomPortal(d);return this._contentAttached(),u},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=a}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const a=()=>{e.removeEventListener("blur",a),e.removeEventListener("mousedown",a),e.removeAttribute("tabindex")};e.addEventListener("blur",a),e.addEventListener("mousedown",a)})),e.focus(t)}_focusByCssSelector(e,t){let a=this._elementRef.nativeElement.querySelector(e);a&&this._forceFocus(a,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const a=ko(),l=this._elementRef.nativeElement;(!a||a===this._document.body||a===l||l.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=ko();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ko())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Ml),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&p.Gf(lh,7),2&e){let a;p.iGM(a=p.CRH())&&(t._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&p.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,hA,0,0,"ng-template",0)},dependencies:[lh],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),s})();class Lh{constructor(r,e){this.overlayRef=r,this.config=e,this.closed=new Pe.x,this.disableClose=e.disableClose,this.backdropClick=r.backdropClick(),this.keydownEvents=r.keydownEvents(),this.outsidePointerEvents=r.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!Un(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(r,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(r),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(r="",e=""){return this.overlayRef.updateSize({width:r,height:e}),this}addPanelClass(r){return this.overlayRef.addPanelClass(r),this}removePanelClass(r){return this.overlayRef.removePanelClass(r),this}}const S_=new p.OlP("DialogScrollStrategy"),pA=new p.OlP("DialogData"),fA=new p.OlP("DefaultDialogConfig"),mA={provide:S_,deps:[xi],useFactory:function gA(s){return()=>s.scrollStrategies.block()}};let M_=0,Fh=(()=>{class s{constructor(e,t,a,l,c,n){this._overlay=e,this._injector=t,this._defaultOptions=a,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._ariaHiddenElements=new Map,this.afterAllClosed=Ir(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Ml,...t}).id=t.id||"cdk-dialog-"+M_++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),n=new Lh(c,t),i=this._attachContainer(c,n,t);return n.containerInstance=i,this._attachDialogContent(e,n,i,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(n),n.closed.subscribe(()=>this._removeOpenDialog(n,!0)),this.afterOpened.next(n),n}closeAll(){jh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jh(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Go({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,a){const l=a.injector??a.viewContainerRef?.injector,c=[{provide:Ml,useValue:a},{provide:Lh,useValue:t},{provide:li,useValue:e}];let n;a.container?"function"==typeof a.container?n=a.container:(n=a.container.type,c.push(...a.container.providers(a))):n=E_;const i=new dl(n,a.viewContainerRef,p.zs3.create({parent:l||this._injector,providers:c}),a.componentFactoryResolver);return e.attach(i).instance}_attachDialogContent(e,t,a,l){const c=this._createInjector(l,t,a);if(e instanceof p.Rgc){let n={$implicit:l.data,dialogRef:t};l.templateContext&&(n={...n,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),a.attachTemplatePortal(new sh(e,null,n,c))}else{const n=a.attachComponentPortal(new dl(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=n.instance}}_createInjector(e,t,a){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:pA,useValue:e.data},{provide:Lh,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,a)):c.push(...e.providers)),e.direction&&(!l||!l.get(Wn,null,p.XFs.Optional))&&c.push({provide:Wn,useValue:{value:e.direction,change:(0,De.of)()}}),p.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const a=this.openDialogs.indexOf(e);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let a=t.length-1;a>-1;a--){const l=t[a];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xi),p.LFG(p.zs3),p.LFG(fA,8),p.LFG(s,12),p.LFG(Zr),p.LFG(S_))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();function jh(s,r){let e=s.length;for(;e--;)r(s[e])}let _A=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Fh,mA],imports:[Wa,Kr,Fc,Kr]}),s})();function D_(s,r){}const rs={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},bA={dialogContainer:ii("dialogContainer",[pt("void, exit",Fe({opacity:0,transform:"scale(0.7)"})),pt("enter",Fe({transform:"none"})),_t("* => enter",Hm([wt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Fe({transform:"none",opacity:1})),Ya("@*",Yo(),{optional:!0})]),rs),_t("* => void, * => exit",Hm([wt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Fe({opacity:0})),Ya("@*",Yo(),{optional:!0})]),rs)])};class Dl{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=rs.params.enterAnimationDuration,this.exitAnimationDuration=rs.params.exitAnimationDuration}}let Nh=(()=>{class s extends E_{constructor(e,t,a,l,c,n,i,o){super(e,t,a,l,c,n,i,o),this._animationStateChanged=new p.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Dl),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["ng-component"]],features:[p.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),s})(),zh=(()=>{class s extends Nh{constructor(e,t,a,l,c,n,i,o,d){super(e,t,a,l,c,n,i,d),this._changeDetectorRef=o,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||rs.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||rs.params.exitAnimationDuration}}}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(Ou),p.Y36(T.K0,8),p.Y36(Dl),p.Y36(Bc),p.Y36(p.R0b),p.Y36(li),p.Y36(p.sBO),p.Y36(ln))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&p.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(p.Ikx("id",t._config.id),p.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),p.d8E("@dialogContainer",t._getAnimationState()))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,D_,0,0,"ng-template",0)},dependencies:[lh],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:[bA.dialogContainer]}}),s})();class as{constructor(r,e,t){this._ref=r,this._containerInstance=t,this._afterOpened=new Pe.x,this._beforeClosed=new Pe.x,this._state=0,this.disableClose=e.disableClose,this.id=r.id,t._animationStateChanged.pipe((0,Kt.h)(a=>"opened"===a.state),(0,Ut.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Kt.h)(a=>"closed"===a.state),(0,Ut.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,cn.T)(this.backdropClick(),this.keydownEvents().pipe((0,Kt.h)(a=>27===a.keyCode&&!this.disableClose&&!Un(a)))).subscribe(a=>{this.disableClose||(a.preventDefault(),function Gh(s,r,e){s._closeInteractionType=r,s.close(e)}(this,"keydown"===a.type?"keyboard":"mouse"))})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,Kt.h)(e=>"closing"===e.state),(0,Ut.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(r){let e=this._ref.config.positionStrategy;return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(r="",e=""){return this._ref.updateSize(r,e),this}addPanelClass(r){return this._ref.addPanelClass(r),this}removePanelClass(r){return this._ref.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const CA=new p.OlP("MatDialogData"),yA=new p.OlP("mat-dialog-default-options"),dd=new p.OlP("mat-dialog-scroll-strategy"),os={provide:dd,deps:[xi],useFactory:function H_(s){return()=>s.scrollStrategies.block()}};let P_=0,wA=(()=>{class s{constructor(e,t,a,l,c,n,i,o,d,u){this._overlay=e,this._defaultOptions=a,this._parentDialog=l,this._dialogRefConstructor=i,this._dialogContainerType=o,this._dialogDataToken=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Pe.x,this._afterOpenedAtThisLevel=new Pe.x,this._idPrefix="mat-dialog-",this.afterAllClosed=Ir(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Vt(void 0))),this._scrollStrategy=n,this._dialog=t.get(Fh)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let a;(t={...this._defaultOptions||new Dl,...t}).id=t.id||`${this._idPrefix}${P_++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Dl,useValue:t},{provide:Ml,useValue:t}]},templateContext:()=>({dialogRef:a}),providers:(c,n,i)=>(a=new this._dialogRefConstructor(c,t,i),a.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:a}])});return a.componentInstance=l.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(a);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return s.\u0275fac=function(e){p.$Z()},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),ss=(()=>{class s extends wA{constructor(e,t,a,l,c,n,i,o){super(e,t,l,n,i,c,as,zh,CA,o)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(xi),p.LFG(p.zs3),p.LFG(T.Ye,8),p.LFG(yA,8),p.LFG(dd),p.LFG(s,12),p.LFG(Zr),p.LFG(p.QbO,8))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),R_=0,k_=(()=>{class s{constructor(e,t,a){this._dialogRef=e,this._elementRef=t,this._dialog=a,this.id="mat-dialog-title-"+R_++}ngOnInit(){this._dialogRef||(this._dialogRef=function vA(s,r){let e=s.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as,8),p.Y36(p.SBq),p.Y36(ss))},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&p.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),s})(),Hl=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),s})(),V_=(()=>{class s{constructor(){this.align="start"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),s})(),ls=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[ss,os],imports:[_A,Wa,Kr,We,We]}),s})();function hd(){const s=new Dl;return s.disableClose=!0,s.autoFocus=!1,s}function cs(s,r){const e=r.split("&");for(const t of e){const[a,l]=t.split("=");if(a.includes(s))return l}return""}x(4327),new Intl.Collator("cs",{numeric:!0});class G_{static passwordMatchValidator(r){const e=r.get("passwordCtrl").value,t=r.get("passwordAgainCtrl").value;return r.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(r){return e=>{if(!e.value)return null;let t=0;for(const a of r)t+=a.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Wi=(()=>{class s{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let a=null;for(const l of t)l&&!a&&(a=l[e]);return a}get(...e){let t;if(""!==this.branding){const a=this.instanceConfig.brandings[this.branding];for(let l=0;l{class s{constructor(e,t,a,l,c){this.injector=e,this.store=t,this.dialog=a,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(_i),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const n=cs("idphint",location.search.substring(1));n&&(c.idphint=n)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let a=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],a=t[c[1]])}),t.default&&!a?(this.filterShortname="default",t.default):a}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(a=>a?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Kt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const a=sessionStorage.getItem("auth:queryParams");let l=[];a&&(l=a.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Kt.h)(e=>e instanceof Lr)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const a of t)if(e.startsWith(a))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(a=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!a||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.zs3),p.LFG(Wi),p.LFG(ss),p.LFG(cr),p.LFG(Wh.Ct))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),$h=(()=>{class s{constructor(e){this.dialogRef=e}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(p.TgZ(0,"h2",0),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Hl,Ka]}),s})(),gd=(()=>{class s{constructor(e,t,a,l,c,n){this.authService=e,this.storeService=t,this.authResolver=a,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=hd();this.dialog.open($h,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const a of e){const l=a.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(U_),p.LFG(Wi),p.LFG(df),p.LFG(rt),p.LFG(ss),p.LFG(_i))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),md=(()=>{class s{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ns),p.LFG(ai))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Yh=(()=>{class s{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",2)(7,"div",3)(8,"button",4),p.NdJ("click",function(){return t.close()}),p._uU(9),p.ALo(10,"translate"),p.qZA()()()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),p.xp6(5),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[k_,Hl,V_,qc,Ka]}),s})(),q_=(()=>{class s{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Qh=(()=>{class s{constructor(e){this.translate=e,this.addNotification=new p.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,a,l,c){this.addNotification.emit({type:"error",error:t,description:a,title:e,actionText:void 0===l&&void 0!==a?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,a,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===a&&void 0!==t?this.getDefaultActionMessage():a,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(Xi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),W_=(()=>{class s{constructor(e,t,a,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=a,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const a=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==a&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=hd();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Yh,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Mt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Ct.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,_n._)(n):l?void this.notificator.showRPCError(i):(0,_n._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let a;console.error(e);const l=e.error;if(l.errorId&&(a=l),void 0!==a)return a.urlWithParams=t.urlWithParams,a.call=t.url,a.payload=t.body,a}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(U_),p.LFG(q_),p.LFG(Qh),p.LFG(Wi),p.LFG(ss),p.LFG(gd))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),GA=(()=>{class s{constructor(e,t,a,l){this.http=e,this.notificator=t,this.authService=a,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.get(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}put(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,M.K)(n=>this.formatErrors(n,l,c,a)))}post(e,t={},a=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,M.K)(i=>this.formatErrors(i,l,c,a)))}delete(e,t=!0){const a=`${this.getApiUrl()}${e}`;return this.http.delete(a,{headers:this.getHeaders()}).pipe((0,M.K)(l=>this.formatErrors(l,a,null,t)))}formatErrors(e,t,a,l){const c=e.error;return c.call=t,c.payload=a,l&&this.notificator.showRPCError(e.error),(0,_n._)(c)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Qh),p.LFG(U_),p.LFG(Wi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),_d=(()=>{class s{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),a=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:a&&t.includes(a[0])?a[0]:"en"}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(cr),p.LFG(Wi))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Jh=(()=>{class s{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=a=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq))},s.\u0275dir=p.lG2({type:s}),s})(),na=(()=>{class s extends Jh{}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,features:[p.qOj]}),s})();const Li=new p.OlP("NgValueAccessor"),$A={provide:Li,useExisting:(0,p.Gpc)(()=>pi),multi:!0},YA=new p.OlP("CompositionEventMode");let pi=(()=>{class s extends Jh{constructor(e,t,a){super(e,t),this._compositionMode=a,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Y_(){const s=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.Qsj),p.Y36(p.SBq),p.Y36(YA,8))},s.\u0275dir=p.lG2({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&p.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[p._Bn([$A]),p.qOj]}),s})();function ra(s){return null==s||("string"==typeof s||Array.isArray(s))&&0===s.length}function Q_(s){return null!=s&&"number"==typeof s.length}const bi=new p.OlP("NgValidators"),Za=new p.OlP("NgAsyncValidators"),J_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class us{static min(r){return function hs(s){return r=>{if(ra(r.value)||ra(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(ra(r.value)||ra(s))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>s?{max:{max:s,actual:r.value}}:null}}(r)}static required(r){return bd(r)}static requiredTrue(r){return function Z_(s){return!0===s.value?null:{required:!0}}(r)}static email(r){return function Zh(s){return ra(s.value)||J_.test(s.value)?null:{email:!0}}(r)}static minLength(r){return function X_(s){return r=>ra(r.value)||!Q_(r.value)?null:r.value.lengthQ_(r.value)&&r.value.length>s?{maxlength:{requiredLength:s,actualLength:r.value.length}}:null}(r)}static pattern(r){return function Xa(s){if(!s)return Cd;let r,e;return"string"==typeof s?(e="","^"!==s.charAt(0)&&(e+="^"),e+=s,"$"!==s.charAt(s.length-1)&&(e+="$"),r=new RegExp(e)):(e=s.toString(),r=s),t=>{if(ra(t.value))return null;const a=t.value;return r.test(a)?null:{pattern:{requiredPattern:e,actualValue:a}}}}(r)}static nullValidator(r){return null}static compose(r){return ip(r)}static composeAsync(r){return rp(r)}}function bd(s){return ra(s.value)?{required:!0}:null}function Cd(s){return null}function yd(s){return null!=s}function Xh(s){return(0,p.QGY)(s)?(0,yi.D)(s):s}function ep(s){let r={};return s.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function Pl(s,r){return r.map(e=>e(s))}function QA(s){return s.map(r=>function tp(s){return!s.validate}(r)?r:e=>r.validate(e))}function ip(s){if(!s)return null;const r=s.filter(yd);return 0==r.length?null:function(e){return ep(Pl(e,r))}}function np(s){return null!=s?ip(QA(s)):null}function rp(s){if(!s)return null;const r=s.filter(yd);return 0==r.length?null:function(e){return Dh(Pl(e,r).map(Xh)).pipe((0,ze.U)(ep))}}function aa(s){return null!=s?rp(QA(s)):null}function tb(s,r){return null===s?[r]:Array.isArray(s)?[...s,r]:[s,r]}function ap(s){return s._rawValidators}function wd(s){return s._rawAsyncValidators}function ib(s){return s?Array.isArray(s)?s:[s]:[]}function vd(s,r){return Array.isArray(s)?s.includes(r):s===r}function JA(s,r){const e=ib(r);return ib(s).forEach(a=>{vd(e,a)||e.push(a)}),e}function nb(s,r){return ib(r).filter(e=>!vd(s,e))}class rb{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=np(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=aa(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Fi extends rb{get formDirective(){return null}get path(){return null}}class Tn extends rb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class op{constructor(r){this._cd=r}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ad=(()=>{class s extends op{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Tn,2))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[p.qOj]}),s})(),sp=(()=>{class s extends op{constructor(e){super(e)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[p.qOj]}),s})();const Td="VALID",eo="INVALID",Il="PENDING",ps="DISABLED";function fs(s){return(gs(s)?s.validators:s)||null}function cp(s){return Array.isArray(s)?np(s):s||null}function Ed(s,r){return(gs(r)?r.asyncValidators:s)||null}function nx(s){return Array.isArray(s)?aa(s):s||null}function gs(s){return null!=s&&!Array.isArray(s)&&"object"==typeof s}function dp(s,r,e){const t=s.controls;if(!(r?Object.keys(t):t).length)throw new p.vHH(1e3,"");if(!t[e])throw new p.vHH(1001,"")}function sb(s,r,e){s._forEachChild((t,a)=>{if(void 0===e[a])throw new p.vHH(1002,"")})}class kl{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=cp(this._rawValidators),this._composedAsyncValidatorFn=nx(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===Td}get invalid(){return this.status===eo}get pending(){return this.status==Il}get disabled(){return this.status===ps}get enabled(){return this.status!==ps}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=cp(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=nx(r)}addValidators(r){this.setValidators(JA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(JA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(nb(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(nb(r,this._rawAsyncValidators))}hasValidator(r){return vd(this._rawValidators,r)}hasAsyncValidator(r){return vd(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Il,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=ps,this.errors=null,this._forEachChild(t=>{t.disable({...r,onlySelf:!0})}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Td,this._forEachChild(t=>{t.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Td||this.status===Il)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ps:Td}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Il,this._hasOwnPendingAsyncValidator=!0;const e=Xh(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,a)=>t&&t._find(a),this)}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new p.vpe,this.statusChanges=new p.vpe}_calculateStatus(){return this._allControlsDisabled()?ps:this.errors?eo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Il)?Il:this._anyControlsHaveStatus(eo)?eo:Td}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){gs(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}}class up extends kl{constructor(r,e,t){super(fs(e),Ed(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){sb(this,0,r),Object.keys(r).forEach(t=>{dp(this,!0,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{const a=this.controls[t];a&&a.patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&r(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,a)=>((t.enabled||this.disabled)&&(e[a]=t.value),e))}_reduceChildren(r,e){let t=r;return this._forEachChild((a,l)=>{t=e(t,a,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}function Sd(s,r){return[...r.path,s]}function Md(s,r){gp(s,r),r.valueAccessor.writeValue(s.value),s.disabled&&r.valueAccessor.setDisabledState?.(!0),function uS(s,r){r.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,"change"===s.updateOn&&mp(s,r)})}(s,r),function lb(s,r){const e=(t,a)=>{r.valueAccessor.writeValue(t),a&&r.viewToModelUpdate(t)};s.registerOnChange(e),r._registerOnDestroy(()=>{s._unregisterOnChange(e)})}(s,r),function ox(s,r){r.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,"blur"===s.updateOn&&s._pendingChange&&mp(s,r),"submit"!==s.updateOn&&s.markAsTouched()})}(s,r),function ax(s,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),r._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}(s,r)}function pp(s,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Dd(s,r),s&&(r._invokeOnDestroyCallbacks(),s._registerOnCollectionChange(()=>{}))}function fp(s,r){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function gp(s,r){const e=ap(s);null!==r.validator?s.setValidators(tb(e,r.validator)):"function"==typeof e&&s.setValidators([e]);const t=wd(s);null!==r.asyncValidator?s.setAsyncValidators(tb(t,r.asyncValidator)):"function"==typeof t&&s.setAsyncValidators([t]);const a=()=>s.updateValueAndValidity();fp(r._rawValidators,a),fp(r._rawAsyncValidators,a)}function Dd(s,r){let e=!1;if(null!==s){if(null!==r.validator){const a=ap(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.validator);l.length!==a.length&&(e=!0,s.setValidators(l))}}if(null!==r.asyncValidator){const a=wd(s);if(Array.isArray(a)&&a.length>0){const l=a.filter(c=>c!==r.asyncValidator);l.length!==a.length&&(e=!0,s.setAsyncValidators(l))}}}const t=()=>{};return fp(r._rawValidators,t),fp(r._rawAsyncValidators,t),e}function mp(s,r){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function sx(s,r){gp(s,r)}function bp(s,r){if(!s.hasOwnProperty("model"))return!1;const e=s.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function db(s,r){s._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yp(s,r){if(!r)return null;let e,t,a;return Array.isArray(r),r.forEach(l=>{l.constructor===pi?e=l:function Cp(s){return Object.getPrototypeOf(s.constructor)===na}(l)?t=l:a=l}),a||t||e||null}const ub={provide:Fi,useExisting:(0,p.Gpc)(()=>ms)},Vl=(()=>Promise.resolve(null))();let ms=(()=>{class s extends Fi{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.vpe,this.form=new up({},np(e),aa(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Vl.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Md(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path),a=new up({});sx(a,e),t.registerControl(e.name,a),a.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Vl.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Vl.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,db(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(bi,10),p.Y36(Za,10))},s.\u0275dir=p.lG2({type:s,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([ub]),p.qOj]}),s})();function vp(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}function hb(s){return"object"==typeof s&&null!==s&&2===Object.keys(s).length&&"value"in s&&"disabled"in s}const to=class extends kl{constructor(r=null,e,t){super(fs(e),Ed(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gs(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=hb(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){vp(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){vp(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){hb(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},pb=to,dx={provide:Tn,useExisting:(0,p.Gpc)(()=>xp)},mb=(()=>Promise.resolve(null))();let xp=(()=>{class s extends Tn{constructor(e,t,a,l,c){super(),this._changeDetectorRef=c,this.control=new to,this._registered=!1,this.update=new p.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=yp(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),bp(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Md(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){mb.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,a=0!==t&&(0,p.D6c)(t);mb.then(()=>{a&&!this.control.disabled?this.control.disable():!a&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Sd(e,this._parent):[e]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,9),p.Y36(bi,10),p.Y36(Za,10),p.Y36(Li,10),p.Y36(p.sBO,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p._Bn([dx]),p.qOj,p.TTD]}),s})(),px=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Hd=new p.OlP("NgModelWithFormControlWarning"),Pd={provide:Fi,useExisting:(0,p.Gpc)(()=>sa)};let sa=(()=>{class s extends Fi{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Dd(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Md(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){pp(e.control||null,e,!1),function wp(s,r){const e=s.indexOf(r);e>-1&&s.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,db(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,a=this.form.get(e.path);t!==a&&(pp(t||null,e),(s=>s instanceof to)(a)&&(Md(a,e),e.control=a))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);sx(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function En(s,r){return Dd(s,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gp(this.form,this),this._oldForm&&Dd(this._oldForm,this)}_checkFormPresent(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(bi,10),p.Y36(Za,10))},s.\u0275dir=p.lG2({type:s,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([Pd]),p.qOj,p.TTD]}),s})();const mS={provide:Tn,useExisting:(0,p.Gpc)(()=>xb)};let xb=(()=>{class s extends Tn{constructor(e,t,a,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new p.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(a),this.valueAccessor=yp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),bp(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Sd(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return s._ngModelWarningSentOnce=!1,s.\u0275fac=function(e){return new(e||s)(p.Y36(Fi,13),p.Y36(bi,10),p.Y36(Za,10),p.Y36(Li,10),p.Y36(Hd,8))},s.\u0275dir=p.lG2({type:s,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[p._Bn([mS]),p.qOj,p.TTD]}),s})(),la=(()=>{class s{constructor(){this._validator=Cd}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Cd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,features:[p.TTD]}),s})();const _x={provide:bi,useExisting:(0,p.Gpc)(()=>no),multi:!0};let no=(()=>{class s extends la{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=p.D6c,this.createValidator=e=>bd}enabled(e){return e}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275dir=p.lG2({type:s,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[p._Bn([_x]),p.qOj]}),s})(),Ip=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[px]}),s})(),kp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ip]}),s})(),ao=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:Hd,useValue:e.warnOnNgModelWithFormControl}]}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Ip]}),s})();class Vp extends kl{constructor(r,e,t){super(fs(e),Ed(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){let t=this._adjustIndex(r);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){let a=this._adjustIndex(r);a<0&&(a=0),this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){sb(this,0,r),r.forEach((t,a)=>{dp(this,!1,a),this.at(a).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((t,a)=>{this.at(a)&&this.at(a).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,a)=>{t.reset(r[a],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}}function Bp(s){return!!s&&(void 0!==s.asyncValidators||void 0!==s.validators||void 0!==s.updateOn)}let Op=(()=>{class s{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new s;return e.useNonNullable=!0,e}group(e,t=null){const a=this._reduceControls(e);let l={};return Bp(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new up(a,l)}control(e,t,a){let l={};return this.useNonNullable?(Bp(t)?l=t:(l.validators=t,l.asyncValidators=a),new to(e,{...l,nonNullable:!0})):new to(e,t,a)}array(e,t,a){const l=e.map(c=>this._createControl(c));return new Vp(l,t,a)}_reduceControls(e){const t={};return Object.keys(e).forEach(a=>{t[a]=this._createControl(e[a])}),t}_createControl(e){return e instanceof to||e instanceof kl?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:ao}),s})(),Ax=(()=>{class s extends Op{group(e,t=null){return super.group(e,t)}control(e,t,a){return super.control(e,t,a)}array(e,t,a){return super.array(e,t,a)}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:ao}),s})();const xx=yn({passive:!0});let Tx=(()=>{class s{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Zt.E;const t=ti(e),a=this._monitoredElements.get(t);if(a)return a.subject;const l=new Pe.x,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,xx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,xx)}}),l}stopMonitoring(e){const t=ti(e),a=this._monitoredElements.get(t);a&&(a.unlisten(),a.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(ei),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),Ex=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})();const Sx=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),ES=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let SS=0;const Mx=al(class{constructor(s,r,e,t){this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new Pe.x}});let Dx=(()=>{class s extends Mx{constructor(e,t,a,l,c,n,i,o,d,u){super(n,l,c,a),this._elementRef=e,this._platform=t,this._autofillMonitor=o,this._formField=u,this._uid="mat-input-"+SS++,this.focused=!1,this.stateChanges=new Pe.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(P=>Ry().has(P)),this._iOSKeyupListener=P=>{const z=P.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=at(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(us.required)??!1}set required(e){this._required=at(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Ry().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=at(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const a=this._elementRef.nativeElement;this._previousPlaceholder=t,t?a.setAttribute("placeholder",t):a.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){ES.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ei),p.Y36(Tn,10),p.Y36(ms,8),p.Y36(sa,8),p.Y36(zc),p.Y36(Sx,10),p.Y36(Tx),p.Y36(p.R0b),p.Y36(wh,8))},s.\u0275dir=p.lG2({type:s,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(e,t){1&e&&p.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(p.Ikx("disabled",t.disabled)("required",t.required),p.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),p.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[p._Bn([{provide:fl,useExisting:s}]),p.qOj,p.TTD]}),s})(),Lp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[zc],imports:[Ex,Ko,We,Ex,Ko]}),s})();function MS(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let DS=(()=>{class s{constructor(e,t,a,l,c){this.dialogRef=e,this.translate=t,this.notificator=a,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(as),p.Y36(Xi),p.Y36(Qh),p.Y36(Rt),p.Y36(Wi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"input",2,3),p.NdJ("ngModelChange",function(l){return t.subject=l}),p.qZA(),p.YNc(10,MS,3,3,"mat-error",4),p.qZA(),p.TgZ(11,"mat-form-field")(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"textarea",5),p.NdJ("ngModelChange",function(l){return t.message=l}),p.ALo(16,"translate"),p._uU(17," "),p.qZA(),p.TgZ(18,"mat-hint"),p._uU(19),p.ALo(20,"translate"),p.qZA()()(),p.TgZ(21,"div",6)(22,"div",7)(23,"button",8),p.NdJ("click",function(){return t.close()}),p._uU(24),p.ALo(25,"translate"),p.qZA(),p.TgZ(26,"button",9),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(27),p.ALo(28,"translate"),p.qZA()()()),2&e){const a=p.MAs(9);p.xp6(1),p.Oqu(p.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),p.xp6(5),p.Oqu(p.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),p.xp6(2),p.Q6J("ngModel",t.subject),p.xp6(2),p.Q6J("ngIf",a.invalid),p.xp6(3),p.Oqu(p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",t.message),p.xp6(4),p.Oqu(p.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),p.xp6(5),p.hij(" ",p.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),p.xp6(2),p.Q6J("disabled",a.invalid),p.xp6(1),p.hij(" ",p.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[T.O5,pi,Ad,no,xp,qc,Ch,vh,hi,gl,Dx,k_,Hl,V_,Ka],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),s})(),HS=(()=>{class s{transform(e,t,a){return e[`${a}_${t}`]}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"localisedText",type:s,pure:!0}),s})(),PS=(()=>{class s{transform(e,t){return e["link_"+t]||e.link_en}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"localisedLink",type:s,pure:!0}),s})(),h=(()=>{class s{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275pipe=p.Yjl({name:"footerLogoPath",type:s,pure:!0}),s})();function g(s,r){if(1&s&&(p.TgZ(0,"a",13),p.ALo(1,"localisedLink"),p._UZ(2,"img",14),p.ALo(3,"footerLogoPath"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,2,e,t.language),p.LSH),p.xp6(2),p.s9C("src",p.lcZ(3,5,e.logo),p.LSH)}}function m(s,r){if(1&s&&(p.TgZ(0,"span"),p._UZ(1,"img",14),p.ALo(2,"footerLogoPath"),p.qZA()),2&s){const e=p.oxw().$implicit;p.xp6(1),p.s9C("src",p.lcZ(2,1,e.logo),p.LSH)}}function _(s,r){if(1&s&&(p.TgZ(0,"div"),p.YNc(1,g,4,7,"a",11),p.ALo(2,"localisedLink"),p.YNc(3,m,3,3,"span",12),p.ALo(4,"localisedLink"),p.qZA()),2&s){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",p.xi3(2,2,e,t.language)),p.xp6(2),p.Q6J("ngIf",!p.xi3(4,5,e,t.language))}}const C=function(s){return{"min-height":s}};function w(s,r){if(1&s&&(p.TgZ(0,"div",10),p.YNc(1,_,5,8,"div",5),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,C,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}const v=function(s){return{color:s}};function E(s,r){if(1&s&&(p.TgZ(0,"i",20),p._uU(1),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(2,v,t.linksTextColor)),p.xp6(1),p.hij(" ",e.icon," ")}}function S(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"span",21),p.NdJ("click",function(){p.CHM(e);const a=p.oxw().$implicit,l=p.oxw(3);return p.KtG(l.openDialog(a.dialog))}),p._uU(1),p.ALo(2,"localisedText"),p.qZA()}if(2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,v,t.linksTextColor)),p.xp6(1),p.hij("",p.Dn7(2,2,e,t.language,"label")," ")}}function H(s,r){if(1&s&&(p.TgZ(0,"a",22),p.ALo(1,"localisedLink"),p._uU(2),p.ALo(3,"localisedText"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,3,e,t.language),p.LSH)("ngStyle",p.VKq(10,v,t.linksTextColor)),p.xp6(2),p.Oqu(p.Dn7(3,6,e,t.language,"label"))}}function R(s,r){if(1&s&&(p.TgZ(0,"span",10),p._uU(1),p.ALo(2,"localisedText"),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,v,t.linksTextColor)),p.xp6(1),p.Oqu(p.Dn7(2,2,e,t.language,"label"))}}function L(s,r){if(1&s&&(p.TgZ(0,"div",16),p.YNc(1,E,2,4,"i",17),p.YNc(2,S,3,8,"span",18),p.YNc(3,H,4,12,"a",19),p.ALo(4,"localisedLink"),p.YNc(5,R,3,8,"span",9),p.ALo(6,"localisedLink"),p.qZA()),2&s){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",e.icon),p.xp6(1),p.Q6J("ngIf",e.dialog),p.xp6(1),p.Q6J("ngIf",p.xi3(4,4,e,t.language)&&!e.dialog),p.xp6(2),p.Q6J("ngIf",!p.xi3(6,7,e,t.language)&&!e.dialog)}}const X=function(s){return{height:s}};function re(s,r){if(1&s&&(p.TgZ(0,"div",10),p.YNc(1,L,7,10,"div",15),p.qZA()),2&s){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,X,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}function me(s,r){if(1&s&&(p.TgZ(0,"div",7)(1,"h6",8),p._uU(2),p.ALo(3,"localisedText"),p.qZA(),p.YNc(4,w,2,4,"div",9),p.YNc(5,re,2,4,"div",9),p.qZA()),2&s){const e=r.$implicit,t=p.oxw();p.ekj("my-auto",t.containsLogos),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,v,t.headersTextColor)),p.xp6(1),p.hij(" ",p.Dn7(3,6,e,t.language,"title")," "),p.xp6(2),p.Q6J("ngIf",e.logos),p.xp6(1),p.Q6J("ngIf",e.elements&&!e.logos)}}function Ae(s,r){if(1&s&&(p.TgZ(0,"span")(1,"a",6),p._uU(2),p.qZA()()),2&s){const e=r.$implicit,t=r.index,a=p.oxw();p.xp6(1),p.Q6J("href",e.url,p.LSH)("ngStyle",p.VKq(3,v,a.copyrightTextColor)),p.xp6(1),p.Oqu(t?", "+e.name:e.name)}}const He=function(s){return{background:s}};let je=(()=>{class s{constructor(e,t,a){this.storeService=e,this.translateService=t,this.dialog=a,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=hd();"reportIssue"===e&&(t.width="550px",this.dialog.open(DS,t))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(Xi),p.Y36(ss))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(p.TgZ(0,"footer",0)(1,"div",1),p.YNc(2,me,6,12,"div",2),p.qZA(),p._UZ(3,"hr",3),p.TgZ(4,"div",4),p._uU(5),p.YNc(6,Ae,3,5,"span",5),p._uU(7," Version "),p.TgZ(8,"a",6),p._uU(9),p.qZA()()()),2&e&&(p.Q6J("ngStyle",p.VKq(8,He,t.bgColor)),p.xp6(2),p.Q6J("ngForOf",t.footerColumns),p.xp6(2),p.Q6J("ngStyle",p.VKq(10,v,t.copyrightTextColor)),p.xp6(1),p.hij(" \xa9 ",t.currentYear," Copyright: "),p.xp6(1),p.Q6J("ngForOf",t.copyrightItems),p.xp6(2),p.Q6J("href",t.githubRepository,p.LSH)("ngStyle",p.VKq(12,v,t.copyrightTextColor)),p.xp6(1),p.Oqu(t.version))},dependencies:[T.sg,T.O5,T.PC,HS,PS,h],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),s})();const Ze=["*",[["mat-toolbar-row"]]],ye=["*","mat-toolbar-row"],$e=La(class{constructor(s){this._elementRef=s}});let bt=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275dir=p.lG2({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),s})(),jt=(()=>{class s extends $e{constructor(e,t,a){super(e),this._platform=t,this._document=a}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(p.SBq),p.Y36(ei),p.Y36(T.K0))},s.\u0275cmp=p.Xpm({type:s,selectors:[["mat-toolbar"]],contentQueries:function(e,t,a){if(1&e&&p.Suo(a,bt,5),2&e){let l;p.iGM(l=p.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[p.qOj],ngContentSelectors:ye,decls:2,vars:0,template:function(e,t){1&e&&(p.F$t(Ze),p.Hsn(0),p.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),s})(),Vd=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})();function Fp(s,r){1&s&&(p.TgZ(0,"div",10)(1,"span",11),p._uU(2," ~ \u{1f5f2}\xa0 "),p.qZA(),p.TgZ(3,"span",12),p._uU(4," DEVEL "),p.qZA(),p.TgZ(5,"span",11),p._uU(6," \xa0\u{1f5f2} ~ "),p.qZA()())}const jp=function(s){return{background:s}},Ol=function(s){return{color:s}};let Np=(()=>{class s{constructor(e,t,a,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=a,this.translateService=l,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.label=this.storeService.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`),this.isDevel=this.storeService.get("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(ai),p.Y36(_d),p.Y36(Xi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(p.TgZ(0,"mat-toolbar",0)(1,"div",1),p._UZ(2,"a",2),p.TgZ(3,"p",3),p._uU(4),p.qZA()(),p.YNc(5,Fp,7,0,"div",4),p.TgZ(6,"div",5)(7,"button",6)(8,"mat-icon",7),p._uU(9," language "),p.qZA()(),p.TgZ(10,"mat-menu",null,8)(12,"button",9),p.NdJ("click",function(){return t.changeLanguage()}),p._uU(13),p.ALo(14,"translate"),p.qZA()()()()),2&e){const a=p.MAs(11);p.Q6J("ngStyle",p.VKq(11,jp,t.bgColor)),p.xp6(2),p.Q6J("innerHTML",t.logo,p.oJD),p.xp6(1),p.Q6J("ngStyle",p.VKq(13,Ol,t.textColor)),p.xp6(1),p.Oqu(t.label),p.xp6(1),p.Q6J("ngIf",t.isDevel),p.xp6(1),p.Q6J("ngStyle",p.VKq(15,Ol,t.textColor)),p.xp6(1),p.Q6J("matMenuTriggerFor",a),p.xp6(1),p.Q6J("ngStyle",p.VKq(17,Ol,t.iconColor)),p.xp6(5),p.hij(" ",p.lcZ(14,9,"HEADER.LANGUAGE")," ")}},dependencies:[T.O5,T.PC,Ph,qc,tA,Qa,rA,jt,Ka],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),s})();function zp(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function Gp(s,r){if(1&s&&(p.O4$(),p._UZ(0,"circle",4)),2&s){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}const iH=La(class{constructor(s){this._elementRef=s}},"primary"),nH=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function rH(){return{diameter:100}}});class ca extends iH{constructor(r,e,t,a,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Nt.w0.EMPTY,this.mode="determinate";const o=ca._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(t.head)||o.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===a&&!!l&&!l._forceAnimations,"mat-spinner"===r.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=sn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=sn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,sn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Io(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_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(r){const e=50*(r.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=ca._diameters;let a=t.get(r);if(!a||!a.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),a||(a=new Set,t.set(r,a)),a.add(e)}}_getAnimationText(){const r=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*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}ca._diameters=new WeakMap,ca.\u0275fac=function(r){return new(r||ca)(p.Y36(p.SBq),p.Y36(ei),p.Y36(T.K0,8),p.Y36(p.QbO,8),p.Y36(nH),p.Y36(p.sBO),p.Y36(zo),p.Y36(p.R0b))},ca.\u0275cmp=p.Xpm({type:ca,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(p.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.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(r,e){1&r&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,zp,1,11,"circle",2),p.YNc(3,Gp,1,9,"circle",3),p.qZA()),2&r&&(p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===e.mode),p.uIk("viewBox",e._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.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 qp=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,T.ez,We]}),s})(),Hx=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[yr,T.ez]}),s})(),oH=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,Ko,Xo,ao,Lp,Sl,qp,yr,Hx]}),s})();class sH{isErrorState(r){return!(!r?.invalid||!r?.dirty)}}const lH=(s,r,e,t=500)=>a=>(0,rh.H)(t).pipe((0,Hi.w)(()=>(e.dontHandleErrorForNext(),s&&"No namespace"!==s?r.checkPasswordStrength({password:a.value,namespace:s}):(0,De.of)(null))),(0,ze.U)(()=>null),(0,M.K)(l=>{const c=l.error,n={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,De.of)(n)}));function cH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," info "),p.qZA())}function dH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," warning "),p.qZA())}function uH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," dangerous "),p.qZA())}function hH(s,r){1&s&&(p.TgZ(0,"mat-icon",2),p._uU(1," check_circle "),p.qZA())}const pH=["*"];let Px=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:pH,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.YNc(1,cH,2,0,"mat-icon",1),p.YNc(2,dH,2,0,"mat-icon",1),p.YNc(3,uH,2,0,"mat-icon",1),p.YNc(4,hH,2,0,"mat-icon",1),p.Hsn(5),p.qZA()),2&e&&(p.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","warn"===t.alert_type),p.xp6(1),p.Q6J("ngIf","error"===t.alert_type),p.xp6(1),p.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ph,T.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),s})();function fH(s,r){1&s&&p._UZ(0,"mat-spinner",12),2&s&&p.Q6J("diameter",18)}function gH(s,r){if(1&s&&(p.TgZ(0,"mat-icon",13),p._uU(1," error "),p.qZA()),2&s){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function mH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function _H(s,r){if(1&s&&(p.TgZ(0,"mat-error",14),p._uU(1),p.qZA()),2&s){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip()),p.xp6(1),p.Oqu(e.getErrorTooltip())}}function bH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function CH(s,r){1&s&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&s&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let yH=(()=>{class s{constructor(e,t,a){this.translator=e,this.usersManagerService=t,this.store=a,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new sH,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(a=>"preferredLanguage"===a.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi),p.Y36(ar),p.Y36(Wi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[p.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0)(1,"mat-form-field",1),p._UZ(2,"input",2),p.ALo(3,"translate"),p.YNc(4,fH,1,1,"mat-spinner",3),p.TgZ(5,"mat-icon",4),p.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),p._uU(6),p.qZA(),p.YNc(7,gH,2,2,"mat-icon",5),p.YNc(8,mH,3,3,"mat-error",6),p.YNc(9,_H,2,2,"mat-error",7),p.qZA(),p.TgZ(10,"mat-form-field",8)(11,"mat-label"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p._UZ(14,"input",9),p.TgZ(15,"mat-icon",4),p.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),p._uU(16),p.qZA(),p.YNc(17,bH,3,3,"mat-error",6),p.YNc(18,CH,3,3,"mat-error",6),p.qZA(),p.TgZ(19,"perun-web-apps-alert",10),p._UZ(20,"div",11),p.qZA()()),2&e&&(p.Q6J("formGroup",t.formGroup),p.xp6(1),p.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),p.xp6(1),p.s9C("placeholder",p.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),p.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),p.xp6(2),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),p.xp6(2),p.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),p.xp6(3),p.Oqu(p.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),p.xp6(2),p.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),p.xp6(2),p.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),p.xp6(2),p.Q6J("innerHTML",t.passwordRequirement,p.oJD))},dependencies:[T.O5,Ch,vh,gl,Wm,Fv,pi,Ad,sp,no,sa,xb,Dx,ca,Ph,Px,Ka],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),s})();function wH(s,r){if(1&s&&p._UZ(0,"perun-web-apps-password-form",4),2&s){const e=p.oxw();p.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function vH(s,r){if(1&s){const e=p.EpF();p.TgZ(0,"div")(1,"button",5),p.NdJ("click",function(){p.CHM(e);const a=p.oxw();return p.KtG(a.onSubmit())}),p._uU(2),p.ALo(3,"translate"),p.qZA()()}if(2&s){const e=p.oxw();p.xp6(1),p.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),p.xp6(1),p.hij(" ",p.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function AH(s,r){if(1&s&&(p.TgZ(0,"div",6)(1,"perun-web-apps-alert",7),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function xH(s,r){1&s&&p._UZ(0,"mat-spinner",8)}let TH=(()=>{class s{constructor(e,t,a,l,c){this.storeService=e,this.translate=t,this.apiRequestConfiguration=a,this.usersService=l,this._formBuilder=c,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(e=>{this.language=e.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new pb("",us.required,[lH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new pb("",us.required)},{validators:G_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin({login:this.login,namespace:this.namespace,newPassword:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken({token:this.token,password:this.newPasswdForm.get("passwordCtrl").value}).subscribe(()=>{this.success=!0,this.loading=!1})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(Xi),p.Y36(q_),p.Y36(ar),p.Y36(Ax))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:4,vars:4,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(p.YNc(0,wH,1,3,"perun-web-apps-password-form",0),p.YNc(1,vH,4,4,"div",1),p.YNc(2,AH,4,3,"div",2),p.YNc(3,xH,1,0,"mat-spinner",3)),2&e&&(p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading))},dependencies:[T.O5,qc,ca,sp,sa,Px,yH,Ka]}),s})(),EH=(()=>{class s{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Xi))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(p.TgZ(0,"perun-web-apps-alert",0),p._UZ(1,"div",1),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.invalidRequestMessage,p.oJD))},dependencies:[Px],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),s})();function SH(s,r){if(1&s&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9)(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function MH(s,r){if(1&s&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9)(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA()()),2&s){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function DH(s,r){if(1&s&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-password-reset-form",10)),2&s){const e=p.oxw();p.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function HH(s,r){1&s&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-invalid-request-alert"))}let PH=(()=>{class s{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(Wi),p.Y36(ai))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:14,vars:8,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p._UZ(1,"div",0),p.TgZ(2,"div",1)(3,"h1"),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.O4$(),p.TgZ(6,"svg",2)(7,"g",3),p._UZ(8,"path",4)(9,"path",5),p.qZA()()(),p.YNc(10,SH,4,4,"p",6),p.YNc(11,MH,4,4,"p",6),p.YNc(12,DH,1,5,"perun-web-apps-password-reset-form",7),p.YNc(13,HH,1,0,"perun-web-apps-invalid-request-alert",8),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.passwordResetLogo,p.oJD),p.xp6(3),p.hij(" ",p.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),p.xp6(6),p.Q6J("ngIf",t.login),p.xp6(1),p.Q6J("ngIf",t.namespace),p.xp6(1),p.Q6J("ngIf",t.validToken||t.authWithoutToken),p.xp6(1),p.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},dependencies:[T.O5,TH,EH,Ka],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),s})();const RH=["footer"],IH=function(s){return{background:s}},kH=function(s){return{"min-height":s}};let VH=(()=>{class s{constructor(e,t,a,l,c,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=a,this.translateService=l,this.store=c,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode=t.includes("activation")?"activation":"reset",this.namespace=cs("namespace",t),t.includes("token")?(this.token=cs("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(a=>{const l=a.find(c=>c.friendlyNameParameter===this.namespace);this.login=l?String(l.value):""}))}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return s.\u0275fac=function(e){return new(e||s)(p.Y36(ss),p.Y36(ar),p.Y36(_d),p.Y36(Xi),p.Y36(Wi),p.Y36(Mr),p.Y36(p.sBO))},s.\u0275cmp=p.Xpm({type:s,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&p.Gf(RH,5),2&e){let a;p.iGM(a=p.CRH())&&(t.footer=a.first)}},decls:8,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-header",0),p.TgZ(2,"div",1)(3,"div",2),p._UZ(4,"perun-web-apps-password-reset-page",3),p.qZA(),p.TgZ(5,"div",null,4),p._UZ(7,"perun-web-apps-footer"),p.qZA()()()),2&e&&(p.xp6(2),p.Q6J("ngStyle",p.VKq(8,IH,t.contentBackgroundColor)),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,kH,t.contentHeight)),p.xp6(1),p.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},dependencies:[T.PC,je,Np,PH],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),s})();class BH{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}function RS(s){return new p.vHH(3e3,!1)}function _P(){return typeof window<"u"&&typeof window.document<"u"}function Rx(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function bs(s){switch(s.length){case 0:return new Qo;case 1:return s[0];default:return new td(s)}}function IS(s,r,e,t,a=new Map,l=new Map){const c=[],n=[];let i=-1,o=null;if(t.forEach(d=>{const u=d.get("offset"),f=u==i,b=f&&o||new Map;d.forEach((P,z)=>{let ae=z,ke=P;if("offset"!==z)switch(ae=r.normalizePropertyName(ae,c),ke){case"!":ke=a.get(z);break;case _r:ke=l.get(z);break;default:ke=r.normalizeStyleValue(z,ae,ke,c)}b.set(ae,ke)}),f||n.push(b),o=b,i=u}),c.length)throw function aP(s){return new p.vHH(3502,!1)}();return n}function Ix(s,r,e,t){switch(r){case"start":s.onStart(()=>t(e&&kx(e,"start",s)));break;case"done":s.onDone(()=>t(e&&kx(e,"done",s)));break;case"destroy":s.onDestroy(()=>t(e&&kx(e,"destroy",s)))}}function kx(s,r,e){const l=Vx(s.element,s.triggerName,s.fromState,s.toState,r||s.phaseName,e.totalTime??s.totalTime,!!e.disabled),c=s._data;return null!=c&&(l._data=c),l}function Vx(s,r,e,t,a="",l=0,c){return{element:s,triggerName:r,fromState:e,toState:t,phaseName:a,totalTime:l,disabled:!!c}}function Sn(s,r,e){let t=s.get(r);return t||s.set(r,t=e),t}function kS(s){const r=s.indexOf(":");return[s.substring(1,r),s.slice(r+1)]}let Bx=(s,r)=>!1,VS=(s,r,e)=>[],BS=null;function Ox(s){const r=s.parentNode||s.host;return r===BS?null:r}(Rx()||typeof Element<"u")&&(_P()?(BS=(()=>document.documentElement)(),Bx=(s,r)=>{for(;r;){if(r===s)return!0;r=Ox(r)}return!1}):Bx=(s,r)=>s.contains(r),VS=(s,r,e)=>{if(e)return Array.from(s.querySelectorAll(r));const t=s.querySelector(r);return t?[t]:[]});let Fl=null,OS=!1;const LS=Bx,FS=VS;let jS=(()=>{class s{validateStyleProperty(e){return function CP(s){Fl||(Fl=function yP(){return typeof document<"u"?document.body:null}()||{},OS=!!Fl.style&&"WebkitAppearance"in Fl.style);let r=!0;return Fl.style&&!function bP(s){return"ebkit"==s.substring(1,6)}(s)&&(r=s in Fl.style,!r&&OS&&(r="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in Fl.style)),r}(e)}matchesElement(e,t){return!1}containsElement(e,t){return LS(e,t)}getParentElement(e){return Ox(e)}query(e,t,a){return FS(e,t,a)}computeStyle(e,t,a){return a||""}animate(e,t,a,l,c,n=[],i){return new Qo(a,l)}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})(),Lx=(()=>{class s{}return s.NOOP=new jS,s})();const Fx="ng-enter",Ib="ng-leave",kb="ng-trigger",Vb=".ng-trigger",zS="ng-animating",jx=".ng-animating";function Cs(s){if("number"==typeof s)return s;const r=s.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Nx(parseFloat(r[1]),r[2])}function Nx(s,r){return"s"===r?1e3*s:s}function Bb(s,r,e){return s.hasOwnProperty("duration")?s:function AP(s,r,e){let a,l=0,c="";if("string"==typeof s){const n=s.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(RS()),{duration:0,delay:0,easing:""};a=Nx(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Nx(parseFloat(i),n[4]));const o=n[5];o&&(c=o)}else a=s;if(!e){let n=!1,i=r.length;a<0&&(r.push(function OH(){return new p.vHH(3100,!1)}()),n=!0),l<0&&(r.push(function LH(){return new p.vHH(3101,!1)}()),n=!0),n&&r.splice(i,0,RS())}return{duration:a,delay:l,easing:c}}(s,r,e)}function Wp(s,r={}){return Object.keys(s).forEach(e=>{r[e]=s[e]}),r}function GS(s){const r=new Map;return Object.keys(s).forEach(e=>{r.set(e,s[e])}),r}function ys(s,r=new Map,e){if(e)for(let[t,a]of e)r.set(t,a);for(let[t,a]of s)r.set(t,a);return r}function qS(s,r,e){return e?r+":"+e+";":""}function WS(s){let r="";for(let e=0;e{const l=Gx(a);e&&!e.has(a)&&e.set(a,s.style[l]),s.style[l]=t}),Rx()&&WS(s))}function jl(s,r){s.style&&(r.forEach((e,t)=>{const a=Gx(t);s.style[a]=""}),Rx()&&WS(s))}function $p(s){return Array.isArray(s)?1==s.length?s[0]:uh(s):s}const zx=new RegExp("{{\\s*(.+?)\\s*}}","g");function $S(s){let r=[];if("string"==typeof s){let e;for(;e=zx.exec(s);)r.push(e[1]);zx.lastIndex=0}return r}function Ob(s,r,e){const t=s.toString(),a=t.replace(zx,(l,c)=>{let n=r[c];return null==n&&(e.push(function jH(s){return new p.vHH(3003,!1)}()),n=""),n.toString()});return a==t?s:a}function Lb(s){const r=[];let e=s.next();for(;!e.done;)r.push(e.value),e=s.next();return r}const EP=/-+([a-z0-9])/g;function Gx(s){return s.replace(EP,(...r)=>r[1].toUpperCase())}function SP(s){return s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Mn(s,r,e){switch(r.type){case 7:return s.visitTrigger(r,e);case 0:return s.visitState(r,e);case 1:return s.visitTransition(r,e);case 2:return s.visitSequence(r,e);case 3:return s.visitGroup(r,e);case 4:return s.visitAnimate(r,e);case 5:return s.visitKeyframes(r,e);case 6:return s.visitStyle(r,e);case 8:return s.visitReference(r,e);case 9:return s.visitAnimateChild(r,e);case 10:return s.visitAnimateRef(r,e);case 11:return s.visitQuery(r,e);case 12:return s.visitStagger(r,e);default:throw function NH(s){return new p.vHH(3004,!1)}()}}function YS(s,r){return window.getComputedStyle(s)[r]}function IP(s,r){const e=[];return"string"==typeof s?s.split(/\s*,\s*/).forEach(t=>function kP(s,r,e){if(":"==s[0]){const i=function VP(s,r){switch(s){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(s,e);if("function"==typeof i)return void r.push(i);s=i}const t=s.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function eP(s){return new p.vHH(3015,!1)}()),r;const a=t[1],l=t[2],c=t[3];r.push(QS(a,c));"<"==l[0]&&!("*"==a&&"*"==c)&&r.push(QS(c,a))}(t,e,r)):e.push(s),e}const zb=new Set(["true","1"]),Gb=new Set(["false","0"]);function QS(s,r){const e=zb.has(s)||Gb.has(s),t=zb.has(r)||Gb.has(r);return(a,l)=>{let c="*"==s||s==a,n="*"==r||r==l;return!c&&e&&"boolean"==typeof a&&(c=a?zb.has(s):Gb.has(s)),!n&&t&&"boolean"==typeof l&&(n=l?zb.has(r):Gb.has(r)),c&&n}}const BP=new RegExp("s*:selfs*,?","g");function Ux(s,r,e,t){return new OP(s).build(r,e,t)}class OP{constructor(r){this._driver=r}build(r,e,t){const a=new jP(e);return this._resetContextStyleTimingState(a),Mn(this,$p(r),a)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles=new Map,r.collectedStyles.set("",new Map),r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,a=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push(function GH(){return new p.vHH(3006,!1)}()),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,o=i.name;o.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=o}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,a+=i.depCount,c.push(i)}else e.errors.push(function UH(){return new p.vHH(3007,!1)}())}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:a,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),a=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=a||{};t.styles.forEach(n=>{n instanceof Map&&n.forEach(i=>{$S(i).forEach(o=>{c.hasOwnProperty(o)||l.add(o)})})}),l.size&&(Lb(l.values()),e.errors.push(function qH(s,r){return new p.vHH(3008,!1)}()))}return{type:0,name:r.name,style:t,options:a?{params:a}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Mn(this,$p(r.animation),e);return{type:1,matchers:IP(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Nl(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Mn(this,t,e)),options:Nl(r.options)}}visitGroup(r,e){const t=e.currentTime;let a=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Mn(this,c,e);return a=Math.max(a,e.currentTime),n});return e.currentTime=a,{type:3,steps:l,options:Nl(r.options)}}visitAnimate(r,e){const t=function zP(s,r){if(s.hasOwnProperty("duration"))return s;if("number"==typeof s)return qx(Bb(s,r).duration,0,"");const e=s;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=qx(0,0,"");return l.dynamic=!0,l.strValue=e,l}const a=Bb(e,r);return qx(a.duration,a.delay,a.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let a,l=r.styles?r.styles:Fe({});if(5==l.type)a=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const o={};t.easing&&(o.easing=t.easing),c=Fe(o)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,a=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:a,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[],a=Array.isArray(r.styles)?r.styles:[r.styles];for(let n of a)"string"==typeof n?n===_r?t.push(n):e.errors.push(new p.vHH(3002,!1)):t.push(GS(n));let l=!1,c=null;return t.forEach(n=>{if(n instanceof Map&&(n.has("easing")&&(c=n.get("easing"),n.delete("easing")),!l))for(let i of n.values())if(i.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:r.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let a=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&c.forEach((n,i)=>{const o=e.collectedStyles.get(e.currentQuerySelector),d=o.get(i);let u=!0;d&&(l!=a&&l>=d.startTime&&a<=d.endTime&&(e.errors.push(function $H(s,r,e,t,a){return new p.vHH(3010,!1)}()),u=!1),l=d.startTime),u&&o.set(i,{startTime:l,endTime:a}),e.options&&function TP(s,r,e){const t=r.params||{},a=$S(s);a.length&&a.forEach(l=>{t.hasOwnProperty(l)||e.push(function FH(s){return new p.vHH(3001,!1)}())})}(n,e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function YH(){return new p.vHH(3011,!1)}()),t;let l=0;const c=[];let n=!1,i=!1,o=0;const d=r.steps.map(ke=>{const lt=this._makeStyleAst(ke,e);let yt=null!=lt.offset?lt.offset:function NP(s){if("string"==typeof s)return null;let r=null;if(Array.isArray(s))s.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;r=parseFloat(t.get("offset")),t.delete("offset")}});else if(s instanceof Map&&s.has("offset")){const e=s;r=parseFloat(e.get("offset")),e.delete("offset")}return r}(lt.styles),zt=0;return null!=yt&&(l++,zt=lt.offset=yt),i=i||zt<0||zt>1,n=n||zt0&&l{const yt=f>0?lt==b?1:f*lt:c[lt],zt=yt*ae;e.currentTime=P+z.delay+zt,z.duration=zt,this._validateStyleAst(ke,e),ke.offset=yt,t.styles.push(ke)}),t}visitReference(r,e){return{type:8,animation:Mn(this,$p(r.animation),e),options:Nl(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:Nl(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:Nl(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,a=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function LP(s){const r=!!s.split(/\s*,\s*/).find(e=>":self"==e);return r&&(s=s.replace(BP,"")),s=s.replace(/@\*/g,Vb).replace(/@\w+/g,e=>Vb+"-"+e.slice(1)).replace(/:animating/g,jx),[s,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Sn(e.collectedStyles,e.currentQuerySelector,new Map);const n=Mn(this,$p(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:Nl(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push(function ZH(){return new p.vHH(3013,!1)}());const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:Bb(r.timings,e.errors,!0);return{type:12,animation:Mn(this,$p(r.animation),e),timings:t,options:null}}}class jP{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Nl(s){return s?(s=Wp(s)).params&&(s.params=function FP(s){return s?Wp(s):null}(s.params)):s={},s}function qx(s,r,e){return{duration:s,delay:r,easing:e}}function Wx(s,r,e,t,a,l,c=null,n=!1){return{type:1,element:s,keyframes:r,preStyleProps:e,postStyleProps:t,duration:a,delay:l,totalTime:a+l,easing:c,subTimeline:n}}class Ub{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const qP=new RegExp(":enter","g"),$P=new RegExp(":leave","g");function $x(s,r,e,t,a,l=new Map,c=new Map,n,i,o=[]){return(new YP).buildKeyframes(s,r,e,t,a,l,c,n,i,o)}class YP{buildKeyframes(r,e,t,a,l,c,n,i,o,d=[]){o=o||new Ub;const u=new Yx(r,e,o,a,l,d,[]);u.options=i;const f=i.delay?Cs(i.delay):0;u.currentTimeline.delayNextStep(f),u.currentTimeline.setStyles([c],null,u.errors,i),Mn(this,t,u);const b=u.timelines.filter(P=>P.containsAnimation());if(b.length&&n.size){let P;for(let z=b.length-1;z>=0;z--){const ae=b[z];if(ae.element===e){P=ae;break}}P&&!P.allowOnlyTimelineStyles()&&P.setStyles([n],null,u.errors,i)}return b.length?b.map(P=>P.buildKeyframes()):[Wx(e,[],[],[],0,f,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const a=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,a,a.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?Cs(t.duration):null,n=null!=t.delay?Cs(t.delay):null;return 0!==c&&r.forEach(i=>{const o=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,o.duration+o.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Mn(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let a=e;const l=r.options;if(l&&(l.params||l.delay)&&(a=e.createSubContext(l),a.transformIntoNewTimeline(),null!=l.delay)){6==a.previousNode.type&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=qb);const c=Cs(l.delay);a.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Mn(this,c,a)),a.currentTimeline.applyStylesToKeyframe(),a.subContextCount>t&&a.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let a=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?Cs(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Mn(this,c,n),a=Math.max(a,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(a),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return Bb(e.params?Ob(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),a=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),a.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,a=e.currentAnimateTimings;!a&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=a&&a.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,a=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(a+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,a=r.options||{},l=a.delay?Cs(a.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qb);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!a.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((o,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,o);l&&u.delayNextStep(l),o===e.element&&(i=u.currentTimeline),Mn(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,a=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Mn(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=a.currentTime-u+(a.startTime-t.currentTimeline.startTime)}}const qb={};class Yx{constructor(r,e,t,a,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=a,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qb,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Wb(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let a=this.options;null!=t.duration&&(a.duration=Cs(t.duration)),null!=t.delay&&(a.delay=Cs(t.delay));const l=t.params;if(l){let c=a.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Ob(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(a=>{t[a]=e[a]})}}return r}createSubContext(r=null,e,t){const a=e||this.element,l=new Yx(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=qb,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const a={duration:e??r.duration,delay:this.currentTimeline.currentTime+(t??0)+r.delay,easing:""},l=new QP(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,a,r.stretchStartingKeyframe);return this.timelines.push(l),a}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,a,l,c){let n=[];if(a&&n.push(this.element),r.length>0){r=(r=r.replace(qP,"."+this._enterClassName)).replace($P,"."+this._leaveClassName);let o=this._driver.query(this.element,r,1!=t);0!==t&&(o=t<0?o.slice(o.length+t,o.length):o.slice(0,t)),n.push(...o)}return!l&&0==n.length&&c.push(function XH(s){return new p.vHH(3014,!1)}()),n}}class Wb{constructor(r,e,t,a){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=a,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Wb(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles.set(r,e),this._globalTimelineStyles.set(r,e),this._styleSummary.set(r,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&this._previousKeyframe.set("easing",r);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||_r),this._currentKeyframe.set(e,_r);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,a){e&&this._previousKeyframe.set("easing",e);const l=a&&a.params||{},c=function JP(s,r){const e=new Map;let t;return s.forEach(a=>{if("*"===a){t=t||r.keys();for(let l of t)e.set(l,_r)}else ys(a,e)}),e}(r,this._globalTimelineStyles);for(let[n,i]of c){const o=Ob(i,l,t);this._pendingStyles.set(n,o),this._localTimelineStyles.has(n)||this._backFill.set(n,this._globalTimelineStyles.get(n)??_r),this._updateStyle(n,o)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((r,e)=>{this._currentKeyframe.set(e,r)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((r,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,r)}))}snapshotCurrentStyles(){for(let[r,e]of this._localTimelineStyles)this._pendingStyles.set(r,e),this._updateStyle(r,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){r._styleSummary.forEach((e,t)=>{const a=this._styleSummary.get(t);(!a||e.time>a.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let a=[];this._keyframes.forEach((n,i)=>{const o=ys(n,new Map,this._backFill);o.forEach((d,u)=>{"!"===d?r.add(u):d===_r&&e.add(u)}),t||o.set("offset",i/this.duration),a.push(o)});const l=r.size?Lb(r.values()):[],c=e.size?Lb(e.values()):[];if(t){const n=a[0],i=new Map(n);n.set("offset",0),i.set("offset",1),a=[n,i]}return Wx(this.element,a,l,c,this.duration,this.startTime,this.easing,!1)}}class QP extends Wb{constructor(r,e,t,a,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=a,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:a}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=ys(r[0]);i.set("offset",0),l.push(i);const o=ys(r[0]);o.set("offset",ZS(n)),l.push(o);const d=r.length-1;for(let u=1;u<=d;u++){let f=ys(r[u]);const b=f.get("offset");f.set("offset",ZS((e+b*t)/c)),l.push(f)}t=c,e=0,a="",r=l}return Wx(this.element,r,this.preStyleProps,this.postStyleProps,t,e,a,!0)}}function ZS(s,r=3){const e=Math.pow(10,r-1);return Math.round(s*e)/e}class Qx{}const KP=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class ZP extends Qx{normalizePropertyName(r,e){return Gx(r)}normalizeStyleValue(r,e,t,a){let l="";const c=t.toString().trim();if(KP.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&a.push(function zH(s,r){return new p.vHH(3005,!1)}())}return c+l}}function XS(s,r,e,t,a,l,c,n,i,o,d,u,f){return{type:0,element:s,triggerName:r,isRemovalTransition:a,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:o,postStyleProps:d,totalTime:u,errors:f}}const Jx={};class eM{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,a){return function XP(s,r,e,t,a){return s.some(l=>l(r,e,t,a))}(this.ast.matchers,r,e,t,a)}buildStyles(r,e,t){let a=this._stateStyles.get("*");return void 0!==r&&(a=this._stateStyles.get(r?.toString())||a),a?a.buildStyles(e,t):new Map}build(r,e,t,a,l,c,n,i,o,d){const u=[],f=this.ast.options&&this.ast.options.params||Jx,P=this.buildStyles(t,n&&n.params||Jx,u),z=i&&i.params||Jx,ae=this.buildStyles(a,z,u),ke=new Set,lt=new Map,yt=new Map,zt="void"===a,Ar={params:eR(z,f),delay:this.ast.options?.delay},tr=d?[]:$x(r,e,this.ast.animation,l,c,P,ae,Ar,o,u);let en=0;if(tr.forEach(uo=>{en=Math.max(uo.duration+uo.delay,en)}),u.length)return XS(e,this._triggerName,t,a,zt,P,ae,[],[],lt,yt,en,u);tr.forEach(uo=>{const ho=uo.element,wD=Sn(lt,ho,new Set);uo.preStyleProps.forEach(Gl=>wD.add(Gl));const nf=Sn(yt,ho,new Set);uo.postStyleProps.forEach(Gl=>nf.add(Gl)),ho!==e&&ke.add(ho)});const co=Lb(ke.values());return XS(e,this._triggerName,t,a,zt,P,ae,tr,co,lt,yt,en)}}function eR(s,r){const e=Wp(r);for(const t in s)s.hasOwnProperty(t)&&null!=s[t]&&(e[t]=s[t]);return e}class tR{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t=new Map,a=Wp(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!==c&&(a[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,n)=>{c&&(c=Ob(c,a,e));const i=this.normalizer.normalizePropertyName(n,e);c=this.normalizer.normalizeStyleValue(n,i,c,e),t.set(i,c)})}),t}}class nR{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(a=>{this.states.set(a.name,new tR(a.style,a.options&&a.options.params||{},t))}),tM(this.states,"true","1"),tM(this.states,"false","0"),e.transitions.forEach(a=>{this.transitionFactories.push(new eM(r,a,this.states))}),this.fallbackTransition=function rR(s,r,e){return new eM(s,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,a){return this.transitionFactories.find(c=>c.match(r,e,t,a))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function tM(s,r,e){s.has(r)?s.has(e)||s.set(e,s.get(r)):s.has(e)&&s.set(r,s.get(e))}const aR=new Ub;class oR{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(r,e){const t=[],l=Ux(this._driver,e,t,[]);if(t.length)throw function oP(s){return new p.vHH(3503,!1)}();this._animations.set(r,l)}_buildPlayer(r,e,t){const a=r.element,l=IS(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(a,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const a=[],l=this._animations.get(r);let c;const n=new Map;if(l?(c=$x(this._driver,e,l,Fx,Ib,new Map,new Map,t,aR,a),c.forEach(d=>{const u=Sn(n,d.element,new Map);d.postStyleProps.forEach(f=>u.set(f,null))})):(a.push(function sP(){return new p.vHH(3300,!1)}()),c=[]),a.length)throw function lP(s){return new p.vHH(3504,!1)}();n.forEach((d,u)=>{d.forEach((f,b)=>{d.set(b,this._driver.computeStyle(u,b,_r))})});const o=bs(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(r,o),o.onDestroy(()=>this.destroy(r)),this.players.push(o),o}destroy(r){const e=this._getPlayer(r);e.destroy(),this._playersById.delete(r);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById.get(r);if(!e)throw function cP(s){return new p.vHH(3301,!1)}();return e}listen(r,e,t,a){const l=Vx(e,"","","");return Ix(this._getPlayer(r),t,l,a),()=>{}}command(r,e,t,a){if("register"==t)return void this.register(r,a[0]);if("create"==t)return void this.create(r,e,a[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(r)}}}const iM="ng-animate-queued",Kx="ng-animate-disabled",uR=[],nM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},hR={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xn="__ng_removed";class Zx{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function mR(s){return s??null}(t?r.value:r),t){const l=Wp(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(a=>{null==t[a]&&(t[a]=e[a])})}}}const Yp="void",Xx=new Zx(Yp);class pR{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,er(e,this._hostClassName)}listen(r,e,t,a){if(!this._triggers.has(e))throw function dP(s,r){return new p.vHH(3302,!1)}();if(null==t||0==t.length)throw function uP(s){return new p.vHH(3303,!1)}();if(!function _R(s){return"start"==s||"done"==s}(t))throw function hP(s,r){return new p.vHH(3400,!1)}();const l=Sn(this._elementListeners,r,[]),c={name:e,phase:t,callback:a};l.push(c);const n=Sn(this._engine.statesByElement,r,new Map);return n.has(e)||(er(r,kb),er(r,kb+"-"+e),n.set(e,Xx)),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers.has(e)||n.delete(e)})}}register(r,e){return!this._triggers.has(r)&&(this._triggers.set(r,e),!0)}_getTrigger(r){const e=this._triggers.get(r);if(!e)throw function pP(s){return new p.vHH(3401,!1)}();return e}trigger(r,e,t,a=!0){const l=this._getTrigger(e),c=new e0(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(er(r,kb),er(r,kb+"-"+e),this._engine.statesByElement.set(r,n=new Map));let i=n.get(e);const o=new Zx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&o.absorbOptions(i.options),n.set(e,o),i||(i=Xx),o.value!==Yp&&i.value===o.value){if(!function yR(s,r){const e=Object.keys(s),t=Object.keys(r);if(e.length!=t.length)return!1;for(let a=0;a{jl(r,ae),da(r,ke)})}return}const f=Sn(this._engine.playersByElement,r,[]);f.forEach(z=>{z.namespaceId==this.id&&z.triggerName==e&&z.queued&&z.destroy()});let b=l.matchTransition(i.value,o.value,r,o.params),P=!1;if(!b){if(!a)return;b=l.fallbackTransition,P=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:o,player:c,isFallbackTransition:P}),P||(er(r,iM),c.onStart(()=>{Bd(r,iM)})),c.onDone(()=>{let z=this.players.indexOf(c);z>=0&&this.players.splice(z,1);const ae=this._engine.playersByElement.get(r);if(ae){let ke=ae.indexOf(c);ke>=0&&ae.splice(ke,1)}}),this.players.push(c),f.push(c),c}deregister(r){this._triggers.delete(r),this._engine.statesByElement.forEach(e=>e.delete(r)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(a=>a.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,Vb,!0);t.forEach(a=>{if(a[Xn])return;const l=this._engine.fetchNamespacesByElement(a);l.size?l.forEach(c=>c.triggerLeaveAnimation(a,e,!1,!0)):this.clearElementCache(a)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(a=>this.clearElementCache(a)))}triggerLeaveAnimation(r,e,t,a){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(l.forEach((i,o)=>{if(c.set(o,i.value),this._triggers.has(o)){const d=this.trigger(r,o,Yp,a);d&&n.push(d)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&bs(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const a=new Set;e.forEach(l=>{const c=l.name;if(a.has(c))return;a.add(c);const i=this._triggers.get(c).fallbackTransition,o=t.get(c)||Xx,d=new Zx(Yp),u=new e0(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:o,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let a=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)a=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){a=!0;break}}}if(this.prepareLeaveAnimationListeners(r),a)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[Xn];(!l||l===nM)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){er(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const a=t.player;if(a.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Vx(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Ix(t.player,n.phase,i,n.callback)}}),a.markedForDestroy?this._engine.afterFlush(()=>{a.destroy()}):e.push(t)}),this._queue=[],e.sort((t,a)=>{const l=t.transition.ast.depCount,c=a.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,a.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class fR{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(a,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new pR(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList,a=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,n=this.driver.getParentElement(e);for(;n;){const i=a.get(n);if(i){const o=t.indexOf(i);t.splice(o+1,0,r),c=!0;break}n=this.driver.getParentElement(n)}c||t.unshift(r)}else t.push(r);return a.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let a=this._namespaceLookup[r];a&&a.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const a=this._namespaceList.indexOf(t);a>=0&&this._namespaceList.splice(a,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t)for(let a of t.values())if(a.namespaceId){const l=this._fetchNamespace(a.namespaceId);l&&e.add(l)}return e}trigger(r,e,t,a){if($b(e)){const l=this._fetchNamespace(r);if(l)return l.trigger(e,t,a),!0}return!1}insertNode(r,e,t,a){if(!$b(e))return;const l=e[Xn];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}a&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),er(r,Kx)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Bd(r,Kx))}removeNode(r,e,t,a){if($b(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,a):this.markElementAsRemoved(r,e,!1,a),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,a)}}else this._onRemovalComplete(e,a)}markElementAsRemoved(r,e,t,a,l){this.collectedLeaveElements.push(e),e[Xn]={namespaceId:r,setForRemoval:a,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,a,l){return $b(e)?this._fetchNamespace(r).listen(e,t,a,l):()=>{}}_buildInstruction(r,e,t,a,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,a,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,Vb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,jx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return bs(this.players).onDone(()=>r());r()})}processLeaveNode(r){const e=r[Xn];if(e&&e.setForRemoval){if(r[Xn]=nM,e.namespaceId){this.destroyInnerAnimations(r);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(r)}this._onRemovalComplete(r,e.setForRemoval)}r.classList?.contains(Kx)&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,a)=>this._balanceNamespaceList(t,a)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bs(e).onDone(()=>{t.forEach(a=>a())}):t.forEach(a=>a())}}reportError(r){throw function fP(s){return new p.vHH(3402,!1)}()}_flushAnimations(r,e){const t=new Ub,a=[],l=new Map,c=[],n=new Map,i=new Map,o=new Map,d=new Set;this.disabledNodes.forEach(Ue=>{d.add(Ue);const Xe=this.driver.query(Ue,".ng-animate-queued",!0);for(let it=0;it{const it=Fx+z++;P.set(Xe,it),Ue.forEach(xt=>er(xt,it))});const ae=[],ke=new Set,lt=new Set;for(let Ue=0;Ueke.add(xt)):lt.add(Xe))}const yt=new Map,zt=oM(f,Array.from(ke));zt.forEach((Ue,Xe)=>{const it=Ib+z++;yt.set(Xe,it),Ue.forEach(xt=>er(xt,it))}),r.push(()=>{b.forEach((Ue,Xe)=>{const it=P.get(Xe);Ue.forEach(xt=>Bd(xt,it))}),zt.forEach((Ue,Xe)=>{const it=yt.get(Xe);Ue.forEach(xt=>Bd(xt,it))}),ae.forEach(Ue=>{this.processLeaveNode(Ue)})});const Ar=[],tr=[];for(let Ue=this._namespaceList.length-1;Ue>=0;Ue--)this._namespaceList[Ue].drainQueuedTransitions(e).forEach(it=>{const xt=it.player,Ii=it.element;if(Ar.push(xt),this.collectedEnterElements.length){const $i=Ii[Xn];if($i&&$i.setForMove){if($i.previousTriggersValues&&$i.previousTriggersValues.has(it.triggerName)){const Ul=$i.previousTriggersValues.get(it.triggerName),ir=this.statesByElement.get(it.element);if(ir&&ir.has(it.triggerName)){const _C=ir.get(it.triggerName);_C.value=Ul,ir.set(it.triggerName,_C)}}return void xt.destroy()}}const ha=!u||!this.driver.containsElement(u,Ii),Dn=yt.get(Ii),vs=P.get(Ii),ni=this._buildInstruction(it,t,vs,Dn,ha);if(ni.errors&&ni.errors.length)return void tr.push(ni);if(ha)return xt.onStart(()=>jl(Ii,ni.fromStyles)),xt.onDestroy(()=>da(Ii,ni.toStyles)),void a.push(xt);if(it.isFallbackTransition)return xt.onStart(()=>jl(Ii,ni.fromStyles)),xt.onDestroy(()=>da(Ii,ni.toStyles)),void a.push(xt);const xD=[];ni.timelines.forEach($i=>{$i.stretchStartingKeyframe=!0,this.disabledNodes.has($i.element)||xD.push($i)}),ni.timelines=xD,t.append(Ii,ni.timelines),c.push({instruction:ni,player:xt,element:Ii}),ni.queriedElements.forEach($i=>Sn(n,$i,[]).push(xt)),ni.preStyleProps.forEach(($i,Ul)=>{if($i.size){let ir=i.get(Ul);ir||i.set(Ul,ir=new Set),$i.forEach((_C,P0)=>ir.add(P0))}}),ni.postStyleProps.forEach(($i,Ul)=>{let ir=o.get(Ul);ir||o.set(Ul,ir=new Set),$i.forEach((_C,P0)=>ir.add(P0))})});if(tr.length){const Ue=[];tr.forEach(Xe=>{Ue.push(function gP(s,r){return new p.vHH(3505,!1)}())}),Ar.forEach(Xe=>Xe.destroy()),this.reportError(Ue)}const en=new Map,co=new Map;c.forEach(Ue=>{const Xe=Ue.element;t.has(Xe)&&(co.set(Xe,Xe),this._beforeAnimationBuild(Ue.player.namespaceId,Ue.instruction,en))}),a.forEach(Ue=>{const Xe=Ue.element;this._getPreviousPlayers(Xe,!1,Ue.namespaceId,Ue.triggerName,null).forEach(xt=>{Sn(en,Xe,[]).push(xt),xt.destroy()})});const uo=ae.filter(Ue=>lM(Ue,i,o)),ho=new Map;aM(ho,this.driver,lt,o,_r).forEach(Ue=>{lM(Ue,i,o)&&uo.push(Ue)});const nf=new Map;b.forEach((Ue,Xe)=>{aM(nf,this.driver,new Set(Ue),i,"!")}),uo.forEach(Ue=>{const Xe=ho.get(Ue),it=nf.get(Ue);ho.set(Ue,new Map([...Array.from(Xe?.entries()??[]),...Array.from(it?.entries()??[])]))});const Gl=[],vD=[],AD={};c.forEach(Ue=>{const{element:Xe,player:it,instruction:xt}=Ue;if(t.has(Xe)){if(d.has(Xe))return it.onDestroy(()=>da(Xe,xt.toStyles)),it.disabled=!0,it.overrideTotalTime(xt.totalTime),void a.push(it);let Ii=AD;if(co.size>1){let Dn=Xe;const vs=[];for(;Dn=Dn.parentNode;){const ni=co.get(Dn);if(ni){Ii=ni;break}vs.push(Dn)}vs.forEach(ni=>co.set(ni,Ii))}const ha=this._buildAnimation(it.namespaceId,xt,en,l,nf,ho);if(it.setRealPlayer(ha),Ii===AD)Gl.push(it);else{const Dn=this.playersByElement.get(Ii);Dn&&Dn.length&&(it.parentPlayer=bs(Dn)),a.push(it)}}else jl(Xe,xt.fromStyles),it.onDestroy(()=>da(Xe,xt.toStyles)),vD.push(it),d.has(Xe)&&a.push(it)}),vD.forEach(Ue=>{const Xe=l.get(Ue.element);if(Xe&&Xe.length){const it=bs(Xe);Ue.setRealPlayer(it)}}),a.forEach(Ue=>{Ue.parentPlayer?Ue.syncPlayerEvents(Ue.parentPlayer):Ue.destroy()});for(let Ue=0;Ue!ha.destroyed);Ii.length?bR(this,Xe,Ii):this.processLeaveNode(Xe)}return ae.length=0,Gl.forEach(Ue=>{this.players.push(Ue),Ue.onDone(()=>{Ue.destroy();const Xe=this.players.indexOf(Ue);this.players.splice(Xe,1)}),Ue.play()}),Gl}elementContainsData(r,e){let t=!1;const a=e[Xn];return a&&a.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,a,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==Yp;n.forEach(o=>{o.queued||!i&&o.triggerName!=a||c.push(o)})}}return(t||a)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||a&&a!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const o=i.element,d=o!==l,u=Sn(t,o,[]);this._getPreviousPlayers(o,d,c,n,e.toState).forEach(b=>{const P=b.getRealPlayer();P.beforeDestroy&&P.beforeDestroy(),b.destroy(),u.push(b)})}jl(l,e.fromStyles)}_buildAnimation(r,e,t,a,l,c){const n=e.triggerName,i=e.element,o=[],d=new Set,u=new Set,f=e.timelines.map(P=>{const z=P.element;d.add(z);const ae=z[Xn];if(ae&&ae.removedBeforeQueried)return new Qo(P.duration,P.delay);const ke=z!==i,lt=function CR(s){const r=[];return sM(s,r),r}((t.get(z)||uR).map(en=>en.getRealPlayer())).filter(en=>!!en.element&&en.element===z),yt=l.get(z),zt=c.get(z),Ar=IS(0,this._normalizer,0,P.keyframes,yt,zt),tr=this._buildPlayer(P,Ar,lt);if(P.subTimeline&&a&&u.add(z),ke){const en=new e0(r,n,z);en.setRealPlayer(tr),o.push(en)}return tr});o.forEach(P=>{Sn(this.playersByQueriedElement,P.element,[]).push(P),P.onDone(()=>function gR(s,r,e){let t=s.get(r);if(t){if(t.length){const a=t.indexOf(e);t.splice(a,1)}0==t.length&&s.delete(r)}return t}(this.playersByQueriedElement,P.element,P))}),d.forEach(P=>er(P,zS));const b=bs(f);return b.onDestroy(()=>{d.forEach(P=>Bd(P,zS)),da(i,e.toStyles)}),u.forEach(P=>{Sn(a,P,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Qo(r.duration,r.delay)}}class e0{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Qo,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,this._queuedCallbacks.forEach((e,t)=>{e.forEach(a=>Ix(r,t,void 0,a))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Sn(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function $b(s){return s&&1===s.nodeType}function rM(s,r){const e=s.style.display;return s.style.display=r??"none",e}function aM(s,r,e,t,a){const l=[];e.forEach(i=>l.push(rM(i)));const c=[];t.forEach((i,o)=>{const d=new Map;i.forEach(u=>{const f=r.computeStyle(o,u,a);d.set(u,f),(!f||0==f.length)&&(o[Xn]=hR,c.push(o))}),s.set(o,d)});let n=0;return e.forEach(i=>rM(i,l[n++])),c}function oM(s,r){const e=new Map;if(s.forEach(n=>e.set(n,[])),0==r.length)return e;const a=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const o=n.parentNode;return i=e.has(o)?o:a.has(o)?1:c(o),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function er(s,r){s.classList?.add(r)}function Bd(s,r){s.classList?.remove(r)}function bR(s,r,e){bs(e).onDone(()=>s.processLeaveNode(r))}function sM(s,r){for(let e=0;ea.add(l)):r.set(s,t),e.delete(s),!0}class Yb{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(a,l)=>{},this._transitionEngine=new fR(r,e,t),this._timelineEngine=new oR(r,e,t),this._transitionEngine.onRemovalComplete=(a,l)=>this.onRemovalComplete(a,l)}registerTrigger(r,e,t,a,l){const c=r+"-"+a;let n=this._triggerCache[c];if(!n){const i=[],d=Ux(this._driver,l,i,[]);if(i.length)throw function rP(s,r){return new p.vHH(3404,!1)}();n=function iR(s,r,e){return new nR(s,r,e)}(a,d,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,a,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,a){this._transitionEngine.insertNode(r,e,t,a)}onRemove(r,e,t,a){this._transitionEngine.removeNode(r,e,a||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,a){if("@"==t.charAt(0)){const[l,c]=kS(t);this._timelineEngine.command(l,e,c,a)}else this._transitionEngine.trigger(r,e,t,a)}listen(r,e,t,a,l){if("@"==t.charAt(0)){const[c,n]=kS(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,a,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let vR=(()=>{class s{constructor(e,t,a){this._element=e,this._startStyles=t,this._endStyles=a,this._state=0;let l=s.initialStylesByElement.get(e);l||s.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&da(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(da(this._element,this._initialStyles),this._endStyles&&(da(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),da(this._element,this._initialStyles),this._state=3)}}return s.initialStylesByElement=new WeakMap,s})();function t0(s){let r=null;return s.forEach((e,t)=>{(function AR(s){return"display"===s||"position"===s})(t)&&(r=r||new Map,r.set(t,e))}),r}class cM{constructor(r,e,t,a){this.element=r,this.keyframes=e,this.options=t,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(r){const e=[];return r.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(r,e,t){return r.animate(this._convertKeyframesToObject(e),t)}onStart(r){this._originalOnStartFns.push(r),this._onStartFns.push(r)}onDone(r){this._originalOnDoneFns.push(r),this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,a)=>{"offset"!==a&&r.set(a,this._finished?t:YS(this.element,a))}),this.currentSnapshot=r}triggerCallback(r){const e="start"===r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class xR{validateStyleProperty(r){return!0}validateAnimatableStyleProperty(r){return!0}matchesElement(r,e){return!1}containsElement(r,e){return LS(r,e)}getParentElement(r){return Ox(r)}query(r,e,t){return FS(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,a,l,c=[]){const i={duration:t,delay:a,fill:0==a?"both":"forwards"};l&&(i.easing=l);const o=new Map,d=c.filter(b=>b instanceof cM);(function MP(s,r){return 0===s||0===r})(t,a)&&d.forEach(b=>{b.currentSnapshot.forEach((P,z)=>o.set(z,P))});let u=function xP(s){return s.length?s[0]instanceof Map?s:s.map(r=>GS(r)):[]}(e).map(b=>ys(b));u=function DP(s,r,e){if(e.size&&r.length){let t=r[0],a=[];if(e.forEach((l,c)=>{t.has(c)||a.push(c),t.set(c,l)}),a.length)for(let l=1;lc.set(n,YS(s,n)))}}return r}(r,u,o);const f=function wR(s,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=t0(r[0]),r.length>1&&(t=t0(r[r.length-1]))):r instanceof Map&&(e=t0(r)),e||t?new vR(s,e,t):null}(r,u);return new cM(r,u,i,f)}}let TR=(()=>{class s extends dh{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const a=Array.isArray(e)?uh(e):e;return dM(this._renderer,null,t,"register",[a]),new ER(t,this._renderer)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class ER extends class mv{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new SR(this._id,r,e||{},this._renderer)}}class SR{constructor(r,e,t,a){this.id=r,this.element=e,this._renderer=a,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return dM(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function dM(s,r,e,t,a){return s.setProperty(r,`@@${e}:${t}`,a)}const uM="@.disabled";let MR=(()=>{class s{constructor(e,t,a){this.delegate=e,this.engine=t,this._zone=a,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=c?.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new hM("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new DR(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,a){e>=0&&et(a)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,a]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.FYo),p.LFG(Yb),p.LFG(p.R0b))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();class hM{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?a=>e.destroyNode(a):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,a=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,a)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,a){this.delegate.setAttribute(r,e,t,a)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,a){this.delegate.setStyle(r,e,t,a)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==uM?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class DR extends hM{constructor(r,e,t,a){super(e,t,a),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uM?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.slice(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const a=function HR(s){switch(s){case"body":return document.body;case"document":return document;case"window":return window;default:return s}}(r);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function PR(s){const r=s.indexOf(".");return[s.substring(0,r),s.slice(r+1)]}(l)),this.engine.listen(this.namespaceId,a,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}const pM=[{provide:dh,useClass:TR},{provide:Qx,useFactory:function IR(){return new ZP}},{provide:Yb,useClass:(()=>{class s extends Yb{constructor(e,t,a,l){super(e.body,t,a)}ngOnDestroy(){this.flush()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(Lx),p.LFG(Qx),p.LFG(p.z2F))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})()},{provide:p.FYo,useFactory:function kR(s,r,e){return new MR(s,r,e)},deps:[ue,Yb,p.R0b]}],n0=[{provide:Lx,useFactory:()=>new xR},{provide:p.QbO,useValue:"BrowserAnimations"},...pM],fM=[{provide:Lx,useClass:jS},{provide:p.QbO,useValue:"NoopAnimations"},...pM];let VR=(()=>{class s{static withConfig(e){return{ngModule:s,providers:e.disableAnimations?fM:n0}}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:n0,imports:[ga]}),s})(),BR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,ls,$n,Sl]}),s})();const OR=[];let LR=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[yu.forRoot(OR,{relativeLinkResolution:"legacy"}),T.ez,yu]}),s})(),FR=(()=>{class s{constructor(e,t,a,l,c){this.http=e,this.storeService=t,this.authzSevice=a,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(a=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),a()})}setEntityTheme(e,t){const a=function jR(s){return[hn(tinycolor(s).lighten(52),"50"),hn(tinycolor(s).lighten(37),"100"),hn(tinycolor(s).lighten(26),"200"),hn(tinycolor(s).lighten(12),"300"),hn(tinycolor(s).lighten(6),"400"),hn(tinycolor(s),"500"),hn(tinycolor(s).darken(6),"600"),hn(tinycolor(s).darken(12),"700"),hn(tinycolor(s).darken(18),"800"),hn(tinycolor(s).darken(24),"900"),hn(tinycolor(s).lighten(50).saturate(30),"A100"),hn(tinycolor(s).lighten(30).saturate(30),"A200"),hn(tinycolor(s).lighten(10).saturate(15),"A400"),hn(tinycolor(s).lighten(5).saturate(5),"A700")]}(t);for(const l of a){const i=`--${e}-theme-primary-contrast-${l.name}`,o=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,o)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const a=document.location.hostname;t?.brandings?.[a]&&this.storeService.setBanding(a),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(a=>{this.storeService.setAppsConfig(a),e()},a=>t(a))})}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(y.eN),p.LFG(Wi),p.LFG(rt),p.LFG(Y),p.LFG(gn))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function hn(s,r){const e=tinycolor(s),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let NR=(()=>{class s{constructor(e,t,a){this.initAuthService=e,this.appConfigService=t,this.location=a}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substr(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.location.go("/"),location.reload(),e}).then(e=>e?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(gd),p.LFG(FR),p.LFG(T.Ye))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const zR=new p.OlP("perun-api-service");let gM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),bM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),Jb=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,Vo,bM,We,bM]}),s})(),r0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[We,We]}),s})(),iI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),yM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,iI,Kr]}),s})(),vM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Fo,We,Fo,We]}),s})(),aI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Yr]}),s})(),a0=(()=>{class s{constructor(){this.changes=new Pe.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const mI={provide:a0,deps:[[new p.FiY,new p.tp0,a0]],useFactory:function gI(s){return s||new a0}};let EM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[mI,zc],imports:[We,T.ez,Kr,$n,aI,yr,ui,We]}),s})(),PI=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Na]}),s})(),sC=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[PI,We,We]}),s})(),KI=(()=>{class s{constructor(){this.changes=new Pe.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const sk={provide:new p.OlP("mat-datepicker-scroll-strategy"),deps:[xi],useFactory:function ok(s){return()=>s.scrollStrategies.reposition()}};let _0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[KI,sk],imports:[T.ez,$n,Wa,Fc,Kr,We,Yn]}),s})(),zM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Yn,Yn,We]}),s})(),UM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[Fo,ui,We,Ju,T.ez,Fo,We,Ju,r0]}),s})(),b0=(()=>{class s{constructor(){this.changes=new Pe.x}}return s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const Sk={provide:b0,deps:[[new p.FiY,new p.tp0,b0]],useFactory:function Ek(s){return s||new b0}};let C0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[Sk],imports:[T.ez,We]}),s})(),Rk=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,We,Kr,ui,Vo,Fc,We]}),s})(),qM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),WM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[qM,ui,We,Vo,qM,We]}),s})();const JM=new p.OlP("mat-chips-default-options");let w0=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[zc,{provide:JM,useValue:{separatorKeyCodes:[13]}}],imports:[We]}),s})(),KM=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez,gM,r0,yM,$n,vM,Jb,yr,sC,ls,qp,Ko,Lp,Na,kp,ao,EM,_0,Lw,zM,UM,ea,Vd,C0,Zn,Xo,ml,ui,sC,WM,w0,gM,r0,yM,$n,vM,Jb,yr,sC,ls,qp,Ko,Lp,Na,kp,ao,EM,_0,Lw,zM,UM,ea,Vd,C0,Zn,Xo,ml,ui,Rk,WM,w0]}),s})();function v0(s,r,e){for(let t in r)if(r.hasOwnProperty(t)){const a=r[t];a?s.setProperty(t,a,e?.has(t)?"important":""):s.removeProperty(t)}return s}function Nd(s,r){const e=r?"":"none";v0(s.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function ZM(s,r,e){v0(s.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function uC(s,r){return r&&"none"!=r?s+" "+r:s}function XM(s){const r=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*r}function A0(s,r){return s.getPropertyValue(r).split(",").map(t=>t.trim())}function x0(s){const r=s.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function T0(s,r,e){const{top:t,bottom:a,left:l,right:c}=s;return e>=t&&e<=a&&r>=l&&r<=c}function Zp(s,r,e){s.top+=r,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function eD(s,r,e,t){const{top:a,right:l,bottom:c,left:n,width:i,height:o}=s,d=i*r,u=o*r;return t>a-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:x0(e)})})}handleScroll(r){const e=vi(r),t=this.positions.get(e);if(!t)return null;const a=t.scrollPosition;let l,c;if(e===this._document){const o=this.getViewportScrollPosition();l=o.top,c=o.left}else l=e.scrollTop,c=e.scrollLeft;const n=a.top-l,i=a.left-c;return this.positions.forEach((o,d)=>{o.clientRect&&e!==d&&e.contains(d)&&Zp(o.clientRect,n,i)}),a.top=l,a.left=c,{top:n,left:i}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function iD(s){const r=s.cloneNode(!0),e=r.querySelectorAll("[id]"),t=s.nodeName.toLowerCase();r.removeAttribute("id");for(let a=0;a{if(this.beforeStarted.next(),this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),P=this._dropContainer;if(!b)return void this._endDragSequence(n);(!P||!P.isDragging()&&!P.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}n.preventDefault();const o=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(o),this._dropContainer)this._updateActiveDropContainer(o,i);else{const d=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,u=this._activeTransform;u.x=o.x-d.x+this._passiveTransform.x,u.y=o.y-d.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:o,event:n,distance:this._getDragDistance(o),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this._nativeDragStart=n=>{if(this._handles.length){const i=this._getTargetHandle(n);i&&!this._disabledHandles.has(i)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new tD(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=at(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Nd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>ti(t)),this._handles.forEach(t=>Nd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=ti(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,hC),e.addEventListener("touchstart",this._pointerDown,oD),e.addEventListener("dragstart",this._nativeDragStart,hC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?ti(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Nd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Nd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:r}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:r})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Xp(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,a=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();a.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),ZM(t,!1,E0),this._document.body.appendChild(a.replaceChild(l,t)),this._getPreviewInsertionPoint(a,n).appendChild(this._preview),this.started.next({source:this,event:r}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:r}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),a=Xp(e),l=!a&&0!==e.button,c=this._rootElement,n=vi(e),i=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),o=a?Oc(e):qn(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||o)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=x0(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){ZM(this._rootElement,!0,E0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),a=this._getPointerPositionOnPage(r),l=this._getDragDistance(a),c=e._isOverContainer(a.x,a.y);this.ended.next({source:this,distance:l,dropPoint:a,event:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:a,event:r}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,a),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:a}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,a),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(r,e):this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let a;if(t&&r){const l=r.matchSize?this._initialClientRect:null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),a=lD(c,this._document),this._previewRef=c,r.matchSize?cD(a,l):a.style.transform=pC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else a=iD(this._rootElement),cD(a,this._initialClientRect),this._initialTransform&&(a.style.transform=this._initialTransform);return v0(a.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},E0),Nd(a,!1),a.classList.add("cdk-drag-preview"),a.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>a.classList.add(l)):a.classList.add(e)),a}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function a1(s){const r=getComputedStyle(s),e=A0(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const a=e.indexOf(t),l=A0(r,"transition-duration"),c=A0(r,"transition-delay");return XM(l[a])+XM(c[a])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const a=c=>{(!c||vi(c)===this._preview&&"transform"===c.propertyName)&&(this._preview?.removeEventListener("transitionend",a),t(),clearTimeout(l))},l=setTimeout(a,1.5*e);this._preview.addEventListener("transitionend",a)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=lD(this._placeholderRef,this._document)):t=iD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e,t){const a=e===this._rootElement?null:e,l=a?a.getBoundingClientRect():r,c=Xp(t)?t.targetTouches[0]:t,n=this._getViewportScrollPosition();return{x:l.left-r.left+(c.pageX-l.left-n.left),y:l.top-r.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Xp(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,a=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=a,n.y=l,n.matrixTransform(c.inverse())}}return{x:a,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:a}=this.constrainPosition?this.constrainPosition(r,this,this._initialClientRect,this._pickupPositionInElement):r;if("x"===this.lockAxis||"x"===e?a=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,{width:i,height:o}=this._getPreviewRect(),d=n.top+c,u=n.bottom-(o-c);t=sD(t,n.left+l,n.right-(i-l)),a=sD(a,d,u)}return{x:t,y:a}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,a=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(a.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(a.y=t>l.y?1:-1,l.y=t),a}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Nd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,hC),r.removeEventListener("touchstart",this._pointerDown,oD),r.removeEventListener("dragstart",this._nativeDragStart,hC)}_applyRootElementTransform(r,e){const t=pC(r,e),a=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=a.transform&&"none"!=a.transform?a.transform:""),a.transform=uC(t,this._initialTransform)}_applyPreviewTransform(r,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,a=pC(r,e);this._preview.style.transform=uC(a,t)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),a=this._boundaryElement.getBoundingClientRect();if(0===a.width&&0===a.height||0===t.width&&0===t.height)return;const l=a.left-t.left,c=t.right-a.right,n=a.top-t.top,i=t.bottom-a.bottom;a.width>t.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,a.height>t.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Xp(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=vi(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Zp(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Io(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const a=this._document;return e||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body}return ti(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(r){return this._handles.find(e=>r.target&&(r.target===e||e.contains(r.target)))}}function pC(s,r){return`translate3d(${Math.round(s)}px, ${Math.round(r)}px, 0)`}function sD(s,r,e){return Math.max(r,Math.min(e,s))}function Xp(s){return"t"===s.type[0]}function lD(s,r){const e=s.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(a=>t.appendChild(a)),t}function cD(s,r){s.style.width=`${r.width}px`,s.style.height=`${r.height}px`,s.style.transform=pC(r.left,r.top)}function ef(s,r){return Math.max(0,Math.min(r,s))}class d1{constructor(r,e){this._element=r,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(r){this.withItems(r)}sort(r,e,t,a){const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,a);if(-1===c&&l.length>0)return null;const n="horizontal"===this.orientation,i=l.findIndex(ae=>ae.drag===r),o=l[c],u=o.clientRect,f=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,f),P=this._getSiblingOffsetPx(i,l,f),z=l.slice();return function c1(s,r,e){const t=ef(r,s.length-1),a=ef(e,s.length-1);if(t===a)return;const l=s[t],c=a{if(z[ke]===ae)return;const lt=ae.drag===r,yt=lt?b:P,zt=lt?r.getPlaceholderElement():ae.drag.getRootElement();ae.offset+=yt,n?(zt.style.transform=uC(`translate3d(${Math.round(ae.offset)}px, 0, 0)`,ae.initialTransform),Zp(ae.clientRect,0,yt)):(zt.style.transform=uC(`translate3d(0, ${Math.round(ae.offset)}px, 0)`,ae.initialTransform),Zp(ae.clientRect,yt,0))}),this._previousSwap.overlaps=T0(u,e,t),this._previousSwap.drag=o.drag,this._previousSwap.delta=n?a.x:a.y,{previousIndex:i,currentIndex:c}}enter(r,e,t,a){const l=null==a||a<0?this._getItemIndexFromPointerPosition(r,e,t):a,c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let o=c[l];if(o===r&&(o=c[l+1]),!o&&(null==l||-1===l||l-1&&c.splice(n,1),o&&!this._dragDropRegistry.isDragging(o)){const d=o.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else ti(this._element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions()}withItems(r){this._activeDraggables=r.slice(),this._cacheItemPositions()}withSortPredicate(r){this._sortPredicate=r}reset(){this._activeDraggables.forEach(r=>{const e=r.getRootElement();if(e){const t=this._itemPositions.find(a=>a.drag===r)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(r){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r)}updateOnScroll(r,e){this._itemPositions.forEach(({clientRect:t})=>{Zp(t,r,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const r="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:x0(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(r,e,t){const a="horizontal"===this.orientation;let l=a?e.left-r.left:e.top-r.top;return-1===t&&(l+=a?e.width-r.width:e.height-r.height),l}_getSiblingOffsetPx(r,e,t){const a="horizontal"===this.orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[a?"width":"height"]*t;if(c){const i=a?"left":"top",o=a?"right":"bottom";-1===t?n-=c.clientRect[i]-l[o]:n+=l[i]-c.clientRect[o]}return n}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,a="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return a?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return a?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,a){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(a){const o=l?a.x:a.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&o===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new Pe.x,this.entered=new Pe.x,this.exited=new Pe.x,this.dropped=new Pe.x,this.sorted=new Pe.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Nt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Pe.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function r1(s=0,r=Qc.z){return s<0&&(s=0),(0,rh.H)(s,s,r)}(0,um).pipe(ft(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=ti(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new tD(t),this._sortStrategy=new d1(this.element,e),this._sortStrategy.withSortPredicate((c,n)=>this.sortPredicate(c,n,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,a){this._draggingStarted(),null==a&&this.sortingDisabled&&(a=this._draggables.indexOf(r)),this._sortStrategy.enter(r,e,t,a),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,a,l,c,n,i={}){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:a,isPointerOverContainer:l,distance:c,dropPoint:n,event:i})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(a=>a.isDragging()).every(a=>-1===r.indexOf(a))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(r){return this._sortStrategy.direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._sortStrategy.orientation=r,this}withScrollableParents(r){const e=ti(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?this._sortStrategy.getItemIndex(r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,a){if(this.sortingDisabled||!this._clientRect||!eD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(r,e,t,a);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:r})}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,a=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||eD(c.clientRect,.05,r,e)&&([a,l]=function h1(s,r,e,t){const a=hD(r,t),l=pD(r,e);let c=0,n=0;if(a){const i=s.scrollTop;1===a?i>0&&(c=1):s.scrollHeight-i>s.clientHeight&&(c=2)}if(l){const i=s.scrollLeft;1===l?i>0&&(n=1):s.scrollWidth-i>s.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(a||l)&&(t=n))}),!a&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};a=hD(i,e),l=pD(i,r),t=window}t&&(a!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=a,this._horizontalScrollDirection=l,this._scrollNode=t,(a||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=ti(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=ti(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_reset(){this._isDragging=!1;const r=ti(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(r,e){return null!=this._clientRect&&T0(this._clientRect,r,e)}_getSiblingContainerFromPosition(r,e,t){return this._siblings.find(a=>a._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!T0(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const a=this._getShadowRoot().elementFromPoint(e,t);if(!a)return!1;const l=ti(this.element);return a===l||l.contains(a)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(a=>this.enterPredicate(a,this)||this._draggables.indexOf(a)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Io(ti(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function hD(s,r){const{top:e,bottom:t,height:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function pD(s,r){const{left:e,right:t,width:a}=s,l=.05*a;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const fC=yn({passive:!1,capture:!0});let p1=(()=>{class s{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=a=>a.isDragging(),this.pointerMove=new Pe.x,this.pointerUp=new Pe.x,this.scroll=new Pe.x,this._preventDefaultWhileDragging=a=>{this._activeDragInstances.length>0&&a.preventDefault()},this._persistentTouchmoveListener=a=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&a.preventDefault(),this.pointerMove.next(a))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,fC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,fC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const a=t.type.startsWith("touch");this._globalListeners.set(a?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fC}),a||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:fC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Vi.y(a=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&a.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,cn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(p.R0b),p.LFG(T.K0))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const f1={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let g1=(()=>{class s{constructor(e,t,a,l){this._document=e,this._ngZone=t,this._viewportRuler=a,this._dragDropRegistry=l}createDrag(e,t=f1){return new l1(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new u1(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(T.K0),p.LFG(p.R0b),p.LFG(zo),p.LFG(p1))},s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),m1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[g1],imports:[Yn]}),s})(),_1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[T.ez]}),s})(),b1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),A1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({}),s})(),P1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[A1,We,We]}),s})(),U1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[ui,We,We]}),s})();new p.OlP("mat-selectsearch-default-options");let Q1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({imports:[[T.ez,ao,$n,Jb,yr,qp,Xo]]}),s})(),J1=(()=>{class s extends Kg{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return s.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(s)))(t||s)}}(),s.\u0275prov=p.Yz7({token:s,factory:s.\u0275fac}),s})();const K1={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Z1=(()=>{class s{}return s.\u0275fac=function(e){return new(e||s)},s.\u0275mod=p.oAB({type:s}),s.\u0275inj=p.cJS({providers:[{provide:Zi,useClass:J1},{provide:$u,useValue:K1}],imports:[T.ez,Jb,sC,kp,w0,m1,Sl,yu,C0,Zn,qp,Hx,yr,ea,$n,Xo,Ko,ao,Lp,ui,_1,b1,P1,_0,U1,Ku,ml,Q1,Na,ls,Oh,KM]}),s})();const KV={provide:y.TP,useExisting:(0,p.Gpc)(()=>W_),multi:!0};function ZV(s){return new BH(s,"./assets/i18n/",".json")}function XV(s){const r={basePath:s.get("api_url")};return new Oe(r)}const eB=s=>()=>s.loadConfigs();let tB=(()=>{class s{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return s.\u0275fac=function(e){return new(e||s)(p.LFG(md),p.LFG(Xi))},s.\u0275mod=p.oAB({type:s,bootstrap:[VH]}),s.\u0275inj=p.cJS({providers:[md,{provide:p.ip1,useFactory:eB,multi:!0,deps:[NR]},{provide:Oe,useFactory:XV,deps:[Wi]},W_,KV,{provide:zR,useClass:GA},{provide:Wh.Hy,useFactory:()=>localStorage}],imports:[ga,Sl.forRoot({loader:{provide:Al,useFactory:ZV,deps:[y.eN]}}),VR,yr,BR,Ql,y.JF,LR,KM,Hx,oH,Wh.zr.forRoot(),Z1]}),s})();(0,p.G48)(),Qe().bootstrapModule(tB).catch(s=>console.error(s))},1302:function(F,N,x){var T;!function(p,V){var O={};!function(p){"use strict";p.__esModule=!0,p.digestLength=32,p.blockSize=64;var V=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function O(ne,J,ie,de,he){for(var ge,Ve,Be,we,_e,ve,Ye,Se,Ee,Te,oe,se,fe;he>=64;){for(ge=J[0],Ve=J[1],Be=J[2],we=J[3],_e=J[4],ve=J[5],Ye=J[6],Se=J[7],Te=0;Te<16;Te++)ne[Te]=(255&ie[oe=de+4*Te])<<24|(255&ie[oe+1])<<16|(255&ie[oe+2])<<8|255&ie[oe+3];for(Te=16;Te<64;Te++)ne[Te]=((se=((Ee=ne[Te-2])>>>17|Ee<<15)^(Ee>>>19|Ee<<13)^Ee>>>10)+ne[Te-7]|0)+((fe=((Ee=ne[Te-15])>>>7|Ee<<25)^(Ee>>>18|Ee<<14)^Ee>>>3)+ne[Te-16]|0);for(Te=0;Te<64;Te++)se=(((_e>>>6|_e<<26)^(_e>>>11|_e<<21)^(_e>>>25|_e<<7))+(_e&ve^~_e&Ye)|0)+(Se+(V[Te]+ne[Te]|0)|0)|0,fe=((ge>>>2|ge<<30)^(ge>>>13|ge<<19)^(ge>>>22|ge<<10))+(ge&Ve^ge&Be^Ve&Be)|0,Se=Ye,Ye=ve,ve=_e,_e=we+se|0,we=Be,Be=Ve,Ve=ge,ge=se+fe|0;J[0]+=ge,J[1]+=Ve,J[2]+=Be,J[3]+=we,J[4]+=_e,J[5]+=ve,J[6]+=Ye,J[7]+=Se,de+=64,he-=64}return de}var I=function(){function ne(){this.digestLength=p.digestLength,this.blockSize=p.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ne.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ne.prototype.clean=function(){for(var J=0;J0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;64===this.bufferLength&&(O(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(de=O(this.temp,this.state,J,de,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=J[de++],ie--;return this},ne.prototype.finish=function(J){if(!this.finished){var ie=this.bytesHashed,de=this.bufferLength,he=ie/536870912|0,ge=ie<<3,Ve=ie%64<56?64:128;this.buffer[de]=128;for(var Be=de+1;Be>>24&255,this.buffer[Ve-7]=he>>>16&255,this.buffer[Ve-6]=he>>>8&255,this.buffer[Ve-5]=he>>>0&255,this.buffer[Ve-4]=ge>>>24&255,this.buffer[Ve-3]=ge>>>16&255,this.buffer[Ve-2]=ge>>>8&255,this.buffer[Ve-1]=ge>>>0&255,O(this.temp,this.state,this.buffer,0,Ve),this.finished=!0}for(Be=0;Be<8;Be++)J[4*Be+0]=this.state[Be]>>>24&255,J[4*Be+1]=this.state[Be]>>>16&255,J[4*Be+2]=this.state[Be]>>>8&255,J[4*Be+3]=this.state[Be]>>>0&255;return this},ne.prototype.digest=function(){var J=new Uint8Array(this.digestLength);return this.finish(J),J},ne.prototype._saveState=function(J){for(var ie=0;iethis.blockSize)(new I).update(J).finish(ie).clean();else for(var de=0;de1&&J.update(ne),ie&&J.update(ie),J.update(de),J.finish(ne),de[0]++}p.HMAC=j,p.hash=W,p.default=W,p.hmac=Q;var $=new Uint8Array(p.digestLength);p.hkdf=function G(ne,J,ie,de){void 0===J&&(J=$),void 0===de&&(de=32);for(var he=new Uint8Array([1]),ge=Q(J,ne),Ve=new j(ge),Be=new Uint8Array(Ve.digestLength),we=Be.length,_e=new Uint8Array(de),ve=0;ve>>24&255,Ve[1]=Ye>>>16&255,Ve[2]=Ye>>>8&255,Ve[3]=Ye>>>0&255,he.reset(),he.update(J),he.update(Ve),he.finish(we);for(var Se=0;Se=G.status}function j($){try{$.dispatchEvent(new MouseEvent("click"))}catch{var G=document.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),$.dispatchEvent(G)}}var W="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,Q=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=W.saveAs||("object"!=typeof window||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function($,G,te){var ne=W.URL||W.webkitURL,J=document.createElement("a");J.download=G=G||$.name||"download",J.rel="noopener","string"==typeof $?(J.href=$,J.origin===location.origin?j(J):I(J.href)?O($,G,te):j(J,J.target="_blank")):(J.href=ne.createObjectURL($),setTimeout(function(){ne.revokeObjectURL(J.href)},4e4),setTimeout(function(){j(J)},0))}:"msSaveOrOpenBlob"in navigator?function($,G,te){if(G=G||$.name||"download","string"!=typeof $)navigator.msSaveOrOpenBlob(function V($,G){return typeof G>"u"?G={autoBom:!1}:"object"!=typeof G&&(console.warn("Deprecated: Expected third argument to be a object"),G={autoBom:!G}),G.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test($.type)?new Blob(["\ufeff",$],{type:$.type}):$}($,te),G);else if(I($))O($,G,te);else{var ne=document.createElement("a");ne.href=$,ne.target="_blank",setTimeout(function(){j(ne)})}}:function($,G,te,ne){if((ne=ne||open("","_blank"))&&(ne.document.title=ne.document.body.innerText="downloading..."),"string"==typeof $)return O($,G,te);var J="application/octet-stream"===$.type,ie=/constructor/i.test(W.HTMLElement)||W.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||J&&ie||Q)&&typeof FileReader<"u"){var he=new FileReader;he.onloadend=function(){var Be=he.result;Be=de?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),ne?ne.location.href=Be:location=Be,ne=null},he.readAsDataURL($)}else{var ge=W.URL||W.webkitURL,Ve=ge.createObjectURL($);ne?ne.location=Ve:location.href=Ve,ne=null,setTimeout(function(){ge.revokeObjectURL(Ve)},4e4)}});W.saveAs=U.saveAs=U,F.exports=U}.apply(N,[]))&&(F.exports=p)},9751:(F,N,x)=>{"use strict";x.d(N,{y:()=>Q});var T=x(930),p=x(727),V=x(8822),O=x(9635),I=x(2416),j=x(576),W=x(2806);let Q=(()=>{class te{constructor(J){J&&(this._subscribe=J)}lift(J){const ie=new te;return ie.source=this,ie.operator=J,ie}subscribe(J,ie,de){const he=function G(te){return te&&te instanceof T.Lv||function $(te){return te&&(0,j.m)(te.next)&&(0,j.m)(te.error)&&(0,j.m)(te.complete)}(te)&&(0,p.Nn)(te)}(J)?J:new T.Hp(J,ie,de);return(0,W.x)(()=>{const{operator:ge,source:Ve}=this;he.add(ge?ge.call(he,Ve):Ve?this._subscribe(he):this._trySubscribe(he))}),he}_trySubscribe(J){try{return this._subscribe(J)}catch(ie){J.error(ie)}}forEach(J,ie){return new(ie=U(ie))((de,he)=>{const ge=new T.Hp({next:Ve=>{try{J(Ve)}catch(Be){he(Be),ge.unsubscribe()}},error:he,complete:de});this.subscribe(ge)})}_subscribe(J){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(J)}[V.L](){return this}pipe(...J){return(0,O.U)(J)(this)}toPromise(J){return new(J=U(J))((ie,de)=>{let he;this.subscribe(ge=>he=ge,ge=>de(ge),()=>ie(he))})}}return te.create=ne=>new te(ne),te})();function U(te){var ne;return null!==(ne=te??I.v.Promise)&&void 0!==ne?ne:Promise}},7579:(F,N,x)=>{"use strict";x.d(N,{x:()=>W});var T=x(9751),p=x(727);const O=(0,x(3888).d)(U=>function(){U(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var I=x(8737),j=x(2806);let W=(()=>{class U extends T.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(G){const te=new Q(this,this);return te.operator=G,te}_throwIfClosed(){if(this.closed)throw new O}next(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const te of this.currentObservers)te.next(G)}})}error(G){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=G;const{observers:te}=this;for(;te.length;)te.shift().error(G)}})}complete(){(0,j.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:G}=this;for(;G.length;)G.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var G;return(null===(G=this.observers)||void 0===G?void 0:G.length)>0}_trySubscribe(G){return this._throwIfClosed(),super._trySubscribe(G)}_subscribe(G){return this._throwIfClosed(),this._checkFinalizedStatuses(G),this._innerSubscribe(G)}_innerSubscribe(G){const{hasError:te,isStopped:ne,observers:J}=this;return te||ne?p.Lc:(this.currentObservers=null,J.push(G),new p.w0(()=>{this.currentObservers=null,(0,I.P)(J,G)}))}_checkFinalizedStatuses(G){const{hasError:te,thrownError:ne,isStopped:J}=this;te?G.error(ne):J&&G.complete()}asObservable(){const G=new T.y;return G.source=this,G}}return U.create=($,G)=>new Q($,G),U})();class Q extends W{constructor($,G){super(),this.destination=$,this.source=G}next($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.next)||void 0===te||te.call(G,$)}error($){var G,te;null===(te=null===(G=this.destination)||void 0===G?void 0:G.error)||void 0===te||te.call(G,$)}complete(){var $,G;null===(G=null===($=this.destination)||void 0===$?void 0:$.complete)||void 0===G||G.call($)}_subscribe($){var G,te;return null!==(te=null===(G=this.source)||void 0===G?void 0:G.subscribe($))&&void 0!==te?te:p.Lc}}},930:(F,N,x)=>{"use strict";x.d(N,{Hp:()=>de,Lv:()=>te});var T=x(576),p=x(727),V=x(2416),O=x(7849),I=x(5032);const j=U("C",void 0,void 0);function U(we,_e,ve){return{kind:we,value:_e,error:ve}}var $=x(3410),G=x(2806);class te extends p.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,p.Nn)(_e)&&_e.add(this)):this.destination=Be}static create(_e,ve,Ye){return new de(_e,ve,Ye)}next(_e){this.isStopped?Ve(function Q(we){return U("N",we,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Ve(function W(we){return U("E",void 0,we)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Ve(j,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function J(we,_e){return ne.call(we,_e)}class ie{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(Ye){he(Ye)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(Ye){he(Ye)}else he(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){he(ve)}}}class de extends te{constructor(_e,ve,Ye){let Se;if(super(),(0,T.m)(_e)||!_e)Se={next:_e??void 0,error:ve??void 0,complete:Ye??void 0};else{let Ee;this&&V.v.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),Se={next:_e.next&&J(_e.next,Ee),error:_e.error&&J(_e.error,Ee),complete:_e.complete&&J(_e.complete,Ee)}):Se=_e}this.destination=new ie(Se)}}function he(we){V.v.useDeprecatedSynchronousErrorHandling?(0,G.O)(we):(0,O.h)(we)}function Ve(we,_e){const{onStoppedNotification:ve}=V.v;ve&&$.z.setTimeout(()=>ve(we,_e))}const Be={closed:!0,next:I.Z,error:function ge(we){throw we},complete:I.Z}},727:(F,N,x)=>{"use strict";x.d(N,{Lc:()=>j,w0:()=>I,Nn:()=>W});var T=x(576);const V=(0,x(3888).d)(U=>function(G){U(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((te,ne)=>`${ne+1}) ${te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G});var O=x(8737);class I{constructor($){this.initialTeardown=$,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let $;if(!this.closed){this.closed=!0;const{_parentage:G}=this;if(G)if(this._parentage=null,Array.isArray(G))for(const J of G)J.remove(this);else G.remove(this);const{initialTeardown:te}=this;if((0,T.m)(te))try{te()}catch(J){$=J instanceof V?J.errors:[J]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const J of ne)try{Q(J)}catch(ie){$=$??[],ie instanceof V?$=[...$,...ie.errors]:$.push(ie)}}if($)throw new V($)}}add($){var G;if($&&$!==this)if(this.closed)Q($);else{if($ instanceof I){if($.closed||$._hasParent(this))return;$._addParent(this)}(this._finalizers=null!==(G=this._finalizers)&&void 0!==G?G:[]).push($)}}_hasParent($){const{_parentage:G}=this;return G===$||Array.isArray(G)&&G.includes($)}_addParent($){const{_parentage:G}=this;this._parentage=Array.isArray(G)?(G.push($),G):G?[G,$]:$}_removeParent($){const{_parentage:G}=this;G===$?this._parentage=null:Array.isArray(G)&&(0,O.P)(G,$)}remove($){const{_finalizers:G}=this;G&&(0,O.P)(G,$),$ instanceof I&&$._removeParent(this)}}I.EMPTY=(()=>{const U=new I;return U.closed=!0,U})();const j=I.EMPTY;function W(U){return U instanceof I||U&&"closed"in U&&(0,T.m)(U.remove)&&(0,T.m)(U.add)&&(0,T.m)(U.unsubscribe)}function Q(U){(0,T.m)(U)?U():U.unsubscribe()}},2416:(F,N,x)=>{"use strict";x.d(N,{v:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(F,N,x)=>{"use strict";x.d(N,{a:()=>$});var T=x(9751),p=x(4742),V=x(2076),O=x(4671),I=x(3268),j=x(3269),W=x(1810),Q=x(5403),U=x(9672);function $(...ne){const J=(0,j.yG)(ne),ie=(0,j.jO)(ne),{args:de,keys:he}=(0,p.D)(ne);if(0===de.length)return(0,V.D)([],J);const ge=new T.y(function G(ne,J,ie=O.y){return de=>{te(J,()=>{const{length:he}=ne,ge=new Array(he);let Ve=he,Be=he;for(let we=0;we{const _e=(0,V.D)(ne[we],J);let ve=!1;_e.subscribe((0,Q.x)(de,Ye=>{ge[we]=Ye,ve||(ve=!0,Be--),Be||de.next(ie(ge.slice()))},()=>{--Ve||de.complete()}))},de)},de)}}(de,J,he?Ve=>(0,W.n)(he,Ve):O.y));return ie?ge.pipe((0,I.Z)(ie)):ge}function te(ne,J,ie){ne?(0,U.f)(ie,ne,J):J()}},7272:(F,N,x)=>{"use strict";x.d(N,{z:()=>I});var T=x(8189),V=x(3269),O=x(2076);function I(...j){return function p(){return(0,T.J)(1)}()((0,O.D)(j,(0,V.yG)(j)))}},515:(F,N,x)=>{"use strict";x.d(N,{E:()=>p});const p=new(x(9751).y)(I=>I.complete())},2076:(F,N,x)=>{"use strict";x.d(N,{D:()=>Ye});var T=x(8421),p=x(9672),V=x(4482),O=x(5403);function I(Se,Ee=0){return(0,V.e)((Te,oe)=>{Te.subscribe((0,O.x)(oe,se=>(0,p.f)(oe,Se,()=>oe.next(se),Ee),()=>(0,p.f)(oe,Se,()=>oe.complete(),Ee),se=>(0,p.f)(oe,Se,()=>oe.error(se),Ee)))})}function j(Se,Ee=0){return(0,V.e)((Te,oe)=>{oe.add(Se.schedule(()=>Te.subscribe(oe),Ee))})}var U=x(9751),G=x(2202),te=x(576);function J(Se,Ee){if(!Se)throw new Error("Iterable cannot be null");return new U.y(Te=>{(0,p.f)(Te,Ee,()=>{const oe=Se[Symbol.asyncIterator]();(0,p.f)(Te,Ee,()=>{oe.next().then(se=>{se.done?Te.complete():Te.next(se.value)})},0,!0)})})}var ie=x(3670),de=x(8239),he=x(1144),ge=x(6495),Ve=x(2206),Be=x(4532),we=x(3260);function Ye(Se,Ee){return Ee?function ve(Se,Ee){if(null!=Se){if((0,ie.c)(Se))return function W(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,he.z)(Se))return function $(Se,Ee){return new U.y(Te=>{let oe=0;return Ee.schedule(function(){oe===Se.length?Te.complete():(Te.next(Se[oe++]),Te.closed||this.schedule())})})}(Se,Ee);if((0,de.t)(Se))return function Q(Se,Ee){return(0,T.Xf)(Se).pipe(j(Ee),I(Ee))}(Se,Ee);if((0,Ve.D)(Se))return J(Se,Ee);if((0,ge.T)(Se))return function ne(Se,Ee){return new U.y(Te=>{let oe;return(0,p.f)(Te,Ee,()=>{oe=Se[G.h](),(0,p.f)(Te,Ee,()=>{let se,fe;try{({value:se,done:fe}=oe.next())}catch(ue){return void Te.error(ue)}fe?Te.complete():Te.next(se)},0,!0)}),()=>(0,te.m)(oe?.return)&&oe.return()})}(Se,Ee);if((0,we.L)(Se))return function _e(Se,Ee){return J((0,we.Q)(Se),Ee)}(Se,Ee)}throw(0,Be.z)(Se)}(Se,Ee):(0,T.Xf)(Se)}},8421:(F,N,x)=>{"use strict";x.d(N,{Xf:()=>ne});var T=x(655),p=x(1144),V=x(8239),O=x(9751),I=x(3670),j=x(2206),W=x(4532),Q=x(6495),U=x(3260),$=x(576),G=x(7849),te=x(8822);function ne(we){if(we instanceof O.y)return we;if(null!=we){if((0,I.c)(we))return function J(we){return new O.y(_e=>{const ve=we[te.L]();if((0,$.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(we);if((0,p.z)(we))return function ie(we){return new O.y(_e=>{for(let ve=0;ve{we.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,G.h)})}(we);if((0,j.D)(we))return ge(we);if((0,Q.T)(we))return function he(we){return new O.y(_e=>{for(const ve of we)if(_e.next(ve),_e.closed)return;_e.complete()})}(we);if((0,U.L)(we))return function Ve(we){return ge((0,U.Q)(we))}(we)}throw(0,W.z)(we)}function ge(we){return new O.y(_e=>{(function Be(we,_e){var ve,Ye,Se,Ee;return(0,T.mG)(this,void 0,void 0,function*(){try{for(ve=(0,T.KL)(we);!(Ye=yield ve.next()).done;)if(_e.next(Ye.value),_e.closed)return}catch(Te){Se={error:Te}}finally{try{Ye&&!Ye.done&&(Ee=ve.return)&&(yield Ee.call(ve))}finally{if(Se)throw Se.error}}_e.complete()})})(we,_e).catch(ve=>_e.error(ve))})}},6451:(F,N,x)=>{"use strict";x.d(N,{T:()=>j});var T=x(8189),p=x(8421),V=x(515),O=x(3269),I=x(2076);function j(...W){const Q=(0,O.yG)(W),U=(0,O._6)(W,1/0),$=W;return $.length?1===$.length?(0,p.Xf)($[0]):(0,T.J)(U)((0,I.D)($,Q)):V.E}},9646:(F,N,x)=>{"use strict";x.d(N,{of:()=>V});var T=x(3269),p=x(2076);function V(...O){const I=(0,T.yG)(O);return(0,p.D)(O,I)}},102:(F,N,x)=>{"use strict";x.d(N,{S:()=>j});var T=x(9751),p=x(8421);const{isArray:V}=Array;var I=x(5403);function j(...Q){return 1===(Q=function O(Q){return 1===Q.length&&V(Q[0])?Q[0]:Q}(Q)).length?(0,p.Xf)(Q[0]):new T.y(function W(Q){return U=>{let $=[];for(let G=0;$&&!U.closed&&G{if($){for(let ne=0;ne<$.length;ne++)ne!==G&&$[ne].unsubscribe();$=null}U.next(te)})))}}(Q))}},2843:(F,N,x)=>{"use strict";x.d(N,{_:()=>V});var T=x(9751),p=x(576);function V(O,I){const j=(0,p.m)(O)?O:()=>O,W=Q=>Q.error(j());return new T.y(I?Q=>I.schedule(W,0,Q):W)}},2805:(F,N,x)=>{"use strict";x.d(N,{H:()=>I});var T=x(9751),p=x(4986),V=x(3532),O=x(1165);function I(j=0,W,Q=p.P){let U=-1;return null!=W&&((0,V.K)(W)?Q=W:U=W),new T.y($=>{let G=(0,O.q)(j)?+j-Q.now():j;G<0&&(G=0);let te=0;return Q.schedule(function(){$.closed||($.next(te++),0<=U?this.schedule(void 0,U):$.complete())},G)})}},5403:(F,N,x)=>{"use strict";x.d(N,{x:()=>p});var T=x(930);function p(O,I,j,W,Q){return new V(O,I,j,W,Q)}class V extends T.Lv{constructor(I,j,W,Q,U,$){super(I),this.onFinalize=U,this.shouldUnsubscribe=$,this._next=j?function(G){try{j(G)}catch(te){I.error(te)}}:super._next,this._error=Q?function(G){try{Q(G)}catch(te){I.error(te)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(G){I.error(G)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var I;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:j}=this;super.unsubscribe(),!j&&(null===(I=this.onFinalize)||void 0===I||I.call(this))}}}},262:(F,N,x)=>{"use strict";x.d(N,{K:()=>O});var T=x(8421),p=x(5403),V=x(4482);function O(I){return(0,V.e)((j,W)=>{let $,Q=null,U=!1;Q=j.subscribe((0,p.x)(W,void 0,void 0,G=>{$=(0,T.Xf)(I(G,O(I)(j))),Q?(Q.unsubscribe(),Q=null,$.subscribe(W)):U=!0})),U&&(Q.unsubscribe(),Q=null,$.subscribe(W))})}},4351:(F,N,x)=>{"use strict";x.d(N,{b:()=>V});var T=x(5577),p=x(576);function V(O,I){return(0,p.m)(I)?(0,T.z)(O,I,1):(0,T.z)(O,1)}},8372:(F,N,x)=>{"use strict";x.d(N,{b:()=>O});var T=x(4986),p=x(4482),V=x(5403);function O(I,j=T.z){return(0,p.e)((W,Q)=>{let U=null,$=null,G=null;const te=()=>{if(U){U.unsubscribe(),U=null;const J=$;$=null,Q.next(J)}};function ne(){const J=G+I,ie=j.now();if(ie{$=J,G=j.now(),U||(U=j.schedule(ne,I),Q.add(U))},()=>{te(),Q.complete()},void 0,()=>{$=U=null}))})}},6590:(F,N,x)=>{"use strict";x.d(N,{d:()=>V});var T=x(4482),p=x(5403);function V(O){return(0,T.e)((I,j)=>{let W=!1;I.subscribe((0,p.x)(j,Q=>{W=!0,j.next(Q)},()=>{W||j.next(O),j.complete()}))})}},1005:(F,N,x)=>{"use strict";x.d(N,{g:()=>te});var T=x(4986),p=x(7272),V=x(5698),O=x(4482),I=x(5403),j=x(5032),Q=x(9718),U=x(5577);function $(ne,J){return J?ie=>(0,p.z)(J.pipe((0,V.q)(1),function W(){return(0,O.e)((ne,J)=>{ne.subscribe((0,I.x)(J,j.Z))})}()),ie.pipe($(ne))):(0,U.z)((ie,de)=>ne(ie,de).pipe((0,V.q)(1),(0,Q.h)(ie)))}var G=x(2805);function te(ne,J=T.z){const ie=(0,G.H)(ne,J);return $(()=>ie)}},9300:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(4482),p=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,p.x)(W,U=>O.call(I,U,Q++)&&W.next(U)))})}},590:(F,N,x)=>{"use strict";x.d(N,{P:()=>W});var T=x(6805),p=x(9300),V=x(5698),O=x(6590),I=x(8068),j=x(4671);function W(Q,U){const $=arguments.length>=2;return G=>G.pipe(Q?(0,p.h)((te,ne)=>Q(te,ne,G)):j.y,(0,V.q)(1),$?(0,O.d)(U):(0,I.T)(()=>new T.K))}},4004:(F,N,x)=>{"use strict";x.d(N,{U:()=>V});var T=x(4482),p=x(5403);function V(O,I){return(0,T.e)((j,W)=>{let Q=0;j.subscribe((0,p.x)(W,U=>{W.next(O.call(I,U,Q++))}))})}},9718:(F,N,x)=>{"use strict";x.d(N,{h:()=>p});var T=x(4004);function p(V){return(0,T.U)(()=>V)}},8189:(F,N,x)=>{"use strict";x.d(N,{J:()=>V});var T=x(5577),p=x(4671);function V(O=1/0){return(0,T.z)(p.y,O)}},5577:(F,N,x)=>{"use strict";x.d(N,{z:()=>Q});var T=x(4004),p=x(8421),V=x(4482),O=x(9672),I=x(5403),W=x(576);function Q(U,$,G=1/0){return(0,W.m)($)?Q((te,ne)=>(0,T.U)((J,ie)=>$(te,J,ne,ie))((0,p.Xf)(U(te,ne))),G):("number"==typeof $&&(G=$),(0,V.e)((te,ne)=>function j(U,$,G,te,ne,J,ie,de){const he=[];let ge=0,Ve=0,Be=!1;const we=()=>{Be&&!he.length&&!ge&&$.complete()},_e=Ye=>ge{J&&$.next(Ye),ge++;let Se=!1;(0,p.Xf)(G(Ye,Ve++)).subscribe((0,I.x)($,Ee=>{ne?.(Ee),J?_e(Ee):$.next(Ee)},()=>{Se=!0},void 0,()=>{if(Se)try{for(ge--;he.length&&geve(Ee)):ve(Ee)}we()}catch(Ee){$.error(Ee)}}))};return U.subscribe((0,I.x)($,_e,()=>{Be=!0,we()})),()=>{de?.()}}(te,ne,U,G)))}},3099:(F,N,x)=>{"use strict";x.d(N,{B:()=>I});var T=x(8421),p=x(7579),V=x(930),O=x(4482);function I(W={}){const{connector:Q=(()=>new p.x),resetOnError:U=!0,resetOnComplete:$=!0,resetOnRefCountZero:G=!0}=W;return te=>{let ne,J,ie,de=0,he=!1,ge=!1;const Ve=()=>{J?.unsubscribe(),J=void 0},Be=()=>{Ve(),ne=ie=void 0,he=ge=!1},we=()=>{const _e=ne;Be(),_e?.unsubscribe()};return(0,O.e)((_e,ve)=>{de++,!ge&&!he&&Ve();const Ye=ie=ie??Q();ve.add(()=>{de--,0===de&&!ge&&!he&&(J=j(we,G))}),Ye.subscribe(ve),!ne&&de>0&&(ne=new V.Hp({next:Se=>Ye.next(Se),error:Se=>{ge=!0,Ve(),J=j(Be,U,Se),Ye.error(Se)},complete:()=>{he=!0,Ve(),J=j(Be,$),Ye.complete()}}),(0,T.Xf)(_e).subscribe(ne))})(te)}}function j(W,Q,...U){if(!0===Q)return void W();if(!1===Q)return;const $=new V.Hp({next:()=>{$.unsubscribe(),W()}});return Q(...U).subscribe($)}},3900:(F,N,x)=>{"use strict";x.d(N,{w:()=>O});var T=x(8421),p=x(4482),V=x(5403);function O(I,j){return(0,p.e)((W,Q)=>{let U=null,$=0,G=!1;const te=()=>G&&!U&&Q.complete();W.subscribe((0,V.x)(Q,ne=>{U?.unsubscribe();let J=0;const ie=$++;(0,T.Xf)(I(ne,ie)).subscribe(U=(0,V.x)(Q,de=>Q.next(j?j(ne,de,ie,J++):de),()=>{U=null,te()}))},()=>{G=!0,te()}))})}},5698:(F,N,x)=>{"use strict";x.d(N,{q:()=>O});var T=x(515),p=x(4482),V=x(5403);function O(I){return I<=0?()=>T.E:(0,p.e)((j,W)=>{let Q=0;j.subscribe((0,V.x)(W,U=>{++Q<=I&&(W.next(U),I<=Q&&W.complete())}))})}},8505:(F,N,x)=>{"use strict";x.d(N,{b:()=>I});var T=x(576),p=x(4482),V=x(5403),O=x(4671);function I(j,W,Q){const U=(0,T.m)(j)||W||Q?{next:j,error:W,complete:Q}:j;return U?(0,p.e)(($,G)=>{var te;null===(te=U.subscribe)||void 0===te||te.call(U);let ne=!0;$.subscribe((0,V.x)(G,J=>{var ie;null===(ie=U.next)||void 0===ie||ie.call(U,J),G.next(J)},()=>{var J;ne=!1,null===(J=U.complete)||void 0===J||J.call(U),G.complete()},J=>{var ie;ne=!1,null===(ie=U.error)||void 0===ie||ie.call(U,J),G.error(J)},()=>{var J,ie;ne&&(null===(J=U.unsubscribe)||void 0===J||J.call(U)),null===(ie=U.finalize)||void 0===ie||ie.call(U)}))}):O.y}},8068:(F,N,x)=>{"use strict";x.d(N,{T:()=>O});var T=x(6805),p=x(4482),V=x(5403);function O(j=I){return(0,p.e)((W,Q)=>{let U=!1;W.subscribe((0,V.x)(Q,$=>{U=!0,Q.next($)},()=>U?Q.complete():Q.error(j())))})}function I(){return new T.K}},7414:(F,N,x)=>{"use strict";x.d(N,{V:()=>U});var T=x(4986),p=x(1165),V=x(4482),O=x(8421),I=x(3888),j=x(5403),W=x(9672);const Q=(0,I.d)(G=>function(ne=null){G(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=ne});function U(G,te){const{first:ne,each:J,with:ie=$,scheduler:de=te??T.z,meta:he=null}=(0,p.q)(G)?{first:G}:"number"==typeof G?{each:G}:G;if(null==ne&&null==J)throw new TypeError("No timeout provided.");return(0,V.e)((ge,Ve)=>{let Be,we,_e=null,ve=0;const Ye=Se=>{we=(0,W.f)(Ve,de,()=>{try{Be.unsubscribe(),(0,O.Xf)(ie({meta:he,lastValue:_e,seen:ve})).subscribe(Ve)}catch(Ee){Ve.error(Ee)}},Se)};Be=ge.subscribe((0,j.x)(Ve,Se=>{we?.unsubscribe(),ve++,Ve.next(_e=Se),J>0&&Ye(J)},void 0,void 0,()=>{we?.closed||we?.unsubscribe(),_e=null})),!ve&&Ye(null!=ne?"number"==typeof ne?ne:+ne-de.now():J)})}function $(G){throw new Q(G)}},4408:(F,N,x)=>{"use strict";x.d(N,{o:()=>I});var T=x(727);class p extends T.w0{constructor(W,Q){super()}schedule(W,Q=0){return this}}const V={setInterval(j,W,...Q){const{delegate:U}=V;return U?.setInterval?U.setInterval(j,W,...Q):setInterval(j,W,...Q)},clearInterval(j){const{delegate:W}=V;return(W?.clearInterval||clearInterval)(j)},delegate:void 0};var O=x(8737);class I extends p{constructor(W,Q){super(W,Q),this.scheduler=W,this.work=Q,this.pending=!1}schedule(W,Q=0){if(this.closed)return this;this.state=W;const U=this.id,$=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId($,U,Q)),this.pending=!0,this.delay=Q,this.id=this.id||this.requestAsyncId($,this.id,Q),this}requestAsyncId(W,Q,U=0){return V.setInterval(W.flush.bind(W,this),U)}recycleAsyncId(W,Q,U=0){if(null!=U&&this.delay===U&&!1===this.pending)return Q;V.clearInterval(Q)}execute(W,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(W,Q);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,Q){let $,U=!1;try{this.work(W)}catch(G){U=!0,$=G||new Error("Scheduled action threw falsy error")}if(U)return this.unsubscribe(),$}unsubscribe(){if(!this.closed){const{id:W,scheduler:Q}=this,{actions:U}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,O.P)(U,this),null!=W&&(this.id=this.recycleAsyncId(Q,W,null)),this.delay=null,super.unsubscribe()}}}},7565:(F,N,x)=>{"use strict";x.d(N,{v:()=>V});var T=x(6063);class p{constructor(I,j=p.now){this.schedulerActionCtor=I,this.now=j}schedule(I,j=0,W){return new this.schedulerActionCtor(this,I).schedule(W,j)}}p.now=T.l.now;class V extends p{constructor(I,j=p.now){super(I,j),this.actions=[],this._active=!1,this._scheduled=void 0}flush(I){const{actions:j}=this;if(this._active)return void j.push(I);let W;this._active=!0;do{if(W=I.execute(I.state,I.delay))break}while(I=j.shift());if(this._active=!1,W){for(;I=j.shift();)I.unsubscribe();throw W}}}},4986:(F,N,x)=>{"use strict";x.d(N,{P:()=>O,z:()=>V});var T=x(4408);const V=new(x(7565).v)(T.o),O=V},6063:(F,N,x)=>{"use strict";x.d(N,{l:()=>T});const T={now:()=>(T.delegate||Date).now(),delegate:void 0}},3410:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T={setTimeout(p,V,...O){const{delegate:I}=T;return I?.setTimeout?I.setTimeout(p,V,...O):setTimeout(p,V,...O)},clearTimeout(p){const{delegate:V}=T;return(V?.clearTimeout||clearTimeout)(p)},delegate:void 0}},2202:(F,N,x)=>{"use strict";x.d(N,{h:()=>p});const p=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(F,N,x)=>{"use strict";x.d(N,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(F,N,x)=>{"use strict";x.d(N,{K:()=>p});const p=(0,x(3888).d)(V=>function(){V(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(F,N,x)=>{"use strict";x.d(N,{_6:()=>j,jO:()=>O,yG:()=>I});var T=x(576),p=x(3532);function V(W){return W[W.length-1]}function O(W){return(0,T.m)(V(W))?W.pop():void 0}function I(W){return(0,p.K)(V(W))?W.pop():void 0}function j(W,Q){return"number"==typeof V(W)?W.pop():Q}},4742:(F,N,x)=>{"use strict";x.d(N,{D:()=>I});const{isArray:T}=Array,{getPrototypeOf:p,prototype:V,keys:O}=Object;function I(W){if(1===W.length){const Q=W[0];if(T(Q))return{args:Q,keys:null};if(function j(W){return W&&"object"==typeof W&&p(W)===V}(Q)){const U=O(Q);return{args:U.map($=>Q[$]),keys:U}}}return{args:W,keys:null}}},8737:(F,N,x)=>{"use strict";function T(p,V){if(p){const O=p.indexOf(V);0<=O&&p.splice(O,1)}}x.d(N,{P:()=>T})},3888:(F,N,x)=>{"use strict";function T(p){const O=p(I=>{Error.call(I),I.stack=(new Error).stack});return O.prototype=Object.create(Error.prototype),O.prototype.constructor=O,O}x.d(N,{d:()=>T})},1810:(F,N,x)=>{"use strict";function T(p,V){return p.reduce((O,I,j)=>(O[I]=V[j],O),{})}x.d(N,{n:()=>T})},2806:(F,N,x)=>{"use strict";x.d(N,{O:()=>O,x:()=>V});var T=x(2416);let p=null;function V(I){if(T.v.useDeprecatedSynchronousErrorHandling){const j=!p;if(j&&(p={errorThrown:!1,error:null}),I(),j){const{errorThrown:W,error:Q}=p;if(p=null,W)throw Q}}else I()}function O(I){T.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=I)}},9672:(F,N,x)=>{"use strict";function T(p,V,O,I=0,j=!1){const W=V.schedule(function(){O(),j?p.add(this.schedule(null,I)):this.unsubscribe()},I);if(p.add(W),!j)return W}x.d(N,{f:()=>T})},4671:(F,N,x)=>{"use strict";function T(p){return p}x.d(N,{y:()=>T})},1144:(F,N,x)=>{"use strict";x.d(N,{z:()=>T});const T=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(F,N,x)=>{"use strict";x.d(N,{D:()=>p});var T=x(576);function p(V){return Symbol.asyncIterator&&(0,T.m)(V?.[Symbol.asyncIterator])}},1165:(F,N,x)=>{"use strict";function T(p){return p instanceof Date&&!isNaN(p)}x.d(N,{q:()=>T})},576:(F,N,x)=>{"use strict";function T(p){return"function"==typeof p}x.d(N,{m:()=>T})},3670:(F,N,x)=>{"use strict";x.d(N,{c:()=>V});var T=x(8822),p=x(576);function V(O){return(0,p.m)(O[T.L])}},6495:(F,N,x)=>{"use strict";x.d(N,{T:()=>V});var T=x(2202),p=x(576);function V(O){return(0,p.m)(O?.[T.h])}},8239:(F,N,x)=>{"use strict";x.d(N,{t:()=>p});var T=x(576);function p(V){return(0,T.m)(V?.then)}},3260:(F,N,x)=>{"use strict";x.d(N,{L:()=>O,Q:()=>V});var T=x(655),p=x(576);function V(I){return(0,T.FC)(this,arguments,function*(){const W=I.getReader();try{for(;;){const{value:Q,done:U}=yield(0,T.qq)(W.read());if(U)return yield(0,T.qq)(void 0);yield yield(0,T.qq)(Q)}}finally{W.releaseLock()}})}function O(I){return(0,p.m)(I?.getReader)}},3532:(F,N,x)=>{"use strict";x.d(N,{K:()=>p});var T=x(576);function p(V){return V&&(0,T.m)(V.schedule)}},4482:(F,N,x)=>{"use strict";x.d(N,{A:()=>p,e:()=>V});var T=x(576);function p(O){return(0,T.m)(O?.lift)}function V(O){return I=>{if(p(I))return I.lift(function(j){try{return O(j,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(F,N,x)=>{"use strict";x.d(N,{Z:()=>O});var T=x(4004);const{isArray:p}=Array;function O(I){return(0,T.U)(j=>function V(I,j){return p(j)?I(...j):I(j)}(I,j))}},5032:(F,N,x)=>{"use strict";function T(){}x.d(N,{Z:()=>T})},9635:(F,N,x)=>{"use strict";x.d(N,{U:()=>V,z:()=>p});var T=x(4671);function p(...O){return V(O)}function V(O){return 0===O.length?T.y:1===O.length?O[0]:function(j){return O.reduce((W,Q)=>Q(W),j)}}},7849:(F,N,x)=>{"use strict";x.d(N,{h:()=>V});var T=x(2416),p=x(3410);function V(O){p.z.setTimeout(()=>{const{onUnhandledError:I}=T.v;if(!I)throw O;I(O)})}},4532:(F,N,x)=>{"use strict";function T(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(N,{z:()=>T})},655:(F,N,x)=>{"use strict";function Q(oe,se,fe,ue){return new(fe||(fe=Promise))(function(Me,ot){function Tt(Ti){try{Le(ue.next(Ti))}catch(Hn){ot(Hn)}}function It(Ti){try{Le(ue.throw(Ti))}catch(Hn){ot(Hn)}}function Le(Ti){Ti.done?Me(Ti.value):function Re(Me){return Me instanceof fe?Me:new fe(function(ot){ot(Me)})}(Ti.value).then(Tt,It)}Le((ue=ue.apply(oe,se||[])).next())})}function he(oe){return this instanceof he?(this.v=oe,this):new he(oe)}function ge(oe,se,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Re,ue=fe.apply(oe,se||[]),Me=[];return Re={},ot("next"),ot("throw"),ot("return"),Re[Symbol.asyncIterator]=function(){return this},Re;function ot(Gt){ue[Gt]&&(Re[Gt]=function(Dt){return new Promise(function(pn,ri){Me.push([Gt,Dt,pn,ri])>1||Tt(Gt,Dt)})})}function Tt(Gt,Dt){try{!function It(Gt){Gt.value instanceof he?Promise.resolve(Gt.value.v).then(Le,Ti):Hn(Me[0][2],Gt)}(ue[Gt](Dt))}catch(pn){Hn(Me[0][3],pn)}}function Le(Gt){Tt("next",Gt)}function Ti(Gt){Tt("throw",Gt)}function Hn(Gt,Dt){Gt(Dt),Me.shift(),Me.length&&Tt(Me[0][0],Me[0][1])}}function Be(oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,se=oe[Symbol.asyncIterator];return se?se.call(oe):(oe=function te(oe){var se="function"==typeof Symbol&&Symbol.iterator,fe=se&&oe[se],ue=0;if(fe)return fe.call(oe);if(oe&&"number"==typeof oe.length)return{next:function(){return oe&&ue>=oe.length&&(oe=void 0),{value:oe&&oe[ue++],done:!oe}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}(oe),fe={},ue("next"),ue("throw"),ue("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function ue(Me){fe[Me]=oe[Me]&&function(ot){return new Promise(function(Tt,It){!function Re(Me,ot,Tt,It){Promise.resolve(It).then(function(Le){Me({value:Le,done:Tt})},ot)}(Tt,It,(ot=oe[Me](ot)).done,ot.value)})}}}x.d(N,{FC:()=>ge,KL:()=>Be,mG:()=>Q,qq:()=>he})},6895:(F,N,x)=>{"use strict";x.d(N,{Do:()=>Be,EM:()=>ya,HT:()=>I,JF:()=>Ct,K0:()=>W,Mx:()=>qd,NF:()=>Es,O5:()=>Di,Ov:()=>cf,PC:()=>lf,RF:()=>Pr,S$:()=>he,V_:()=>$,Ye:()=>we,b0:()=>Ve,bD:()=>Zt,ez:()=>_n,mk:()=>Yl,n9:()=>Qi,q:()=>V,sg:()=>gn,w_:()=>j});var T=x(4650);let p=null;function V(){return p}function I(M){p||(p=M)}class j{}const W=new T.OlP("DocumentToken");let Q=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return function U(){return(0,T.LFG)(G)}()},providedIn:"platform"}),M})();const $=new T.OlP("Location Initialized");let G=(()=>{class M extends Q{constructor(D){super(),this._doc=D,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return V().getBaseHref(this._doc)}onPopState(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("popstate",D,!1),()=>B.removeEventListener("popstate",D)}onHashChange(D){const B=V().getGlobalEventTarget(this._doc,"window");return B.addEventListener("hashchange",D,!1),()=>B.removeEventListener("hashchange",D)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(D){this.location.pathname=D}pushState(D,B,ee){te()?this._history.pushState(D,B,ee):this.location.hash=ee}replaceState(D,B,ee){te()?this._history.replaceState(D,B,ee):this.location.hash=ee}forward(){this._history.forward()}back(){this._history.back()}historyGo(D=0){this._history.go(D)}getState(){return this._history.state}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(W))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function ne(){return new G((0,T.LFG)(W))}()},providedIn:"platform"}),M})();function te(){return!!window.history.pushState}function J(M,k){if(0==M.length)return k;if(0==k.length)return M;let D=0;return M.endsWith("/")&&D++,k.startsWith("/")&&D++,2==D?M+k.substring(1):1==D?M+k:M+"/"+k}function ie(M){const k=M.match(/#|\?|$/),D=k&&k.index||M.length;return M.slice(0,D-("/"===M[D-1]?1:0))+M.slice(D)}function de(M){return M&&"?"!==M[0]?"?"+M:M}let he=(()=>{class M{historyGo(D){throw new Error("Not implemented")}}return M.\u0275fac=function(D){return new(D||M)},M.\u0275prov=T.Yz7({token:M,factory:function(){return(0,T.f3M)(Ve)},providedIn:"root"}),M})();const ge=new T.OlP("appBaseHref");let Ve=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._removeListenerFns=[],this._baseHref=B??this._platformLocation.getBaseHrefFromDOM()??(0,T.f3M)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}prepareExternalUrl(D){return J(this._baseHref,D)}path(D=!1){const B=this._platformLocation.pathname+de(this._platformLocation.search),ee=this._platformLocation.hash;return ee&&D?`${B}${ee}`:B}pushState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){const le=this.prepareExternalUrl(ee+de(pe));this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"}),M})(),Be=(()=>{class M extends he{constructor(D,B){super(),this._platformLocation=D,this._baseHref="",this._removeListenerFns=[],null!=B&&(this._baseHref=B)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(D){this._removeListenerFns.push(this._platformLocation.onPopState(D),this._platformLocation.onHashChange(D))}getBaseHref(){return this._baseHref}path(D=!1){let B=this._platformLocation.hash;return null==B&&(B="#"),B.length>0?B.substring(1):B}prepareExternalUrl(D){const B=J(this._baseHref,D);return B.length>0?"#"+B:B}pushState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.pushState(D,B,le)}replaceState(D,B,ee,pe){let le=this.prepareExternalUrl(ee+de(pe));0==le.length&&(le=this._platformLocation.pathname),this._platformLocation.replaceState(D,B,le)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(D=0){this._platformLocation.historyGo?.(D)}}return M.\u0275fac=function(D){return new(D||M)(T.LFG(Q),T.LFG(ge,8))},M.\u0275prov=T.Yz7({token:M,factory:M.\u0275fac}),M})(),we=(()=>{class M{constructor(D){this._subject=new T.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=D;const B=this._locationStrategy.getBaseHref();this._baseHref=ie(Ye(B)),this._locationStrategy.onPopState(ee=>{this._subject.emit({url:this.path(!0),pop:!0,state:ee.state,type:ee.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(D=!1){return this.normalize(this._locationStrategy.path(D))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(D,B=""){return this.path()==this.normalize(D+de(B))}normalize(D){return M.stripTrailingSlash(function ve(M,k){return M&&k.startsWith(M)?k.substring(M.length):k}(this._baseHref,Ye(D)))}prepareExternalUrl(D){return D&&"/"!==D[0]&&(D="/"+D),this._locationStrategy.prepareExternalUrl(D)}go(D,B="",ee=null){this._locationStrategy.pushState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}replaceState(D,B="",ee=null){this._locationStrategy.replaceState(ee,"",D,B),this._notifyUrlChangeListeners(this.prepareExternalUrl(D+de(B)),ee)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(D=0){this._locationStrategy.historyGo?.(D)}onUrlChange(D){return this._urlChangeListeners.push(D),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(B=>{this._notifyUrlChangeListeners(B.url,B.state)})),()=>{const B=this._urlChangeListeners.indexOf(D);this._urlChangeListeners.splice(B,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(D="",B){this._urlChangeListeners.forEach(ee=>ee(D,B))}subscribe(D,B,ee){return this._subject.subscribe({next:D,error:B,complete:ee})}}return M.normalizeQueryParams=de,M.joinWithSlash=J,M.stripTrailingSlash=ie,M.\u0275fac=function(D){return new(D||M)(T.LFG(he))},M.\u0275prov=T.Yz7({token:M,factory:function(){return function _e(){return new we((0,T.LFG)(he))}()},providedIn:"root"}),M})();function Ye(M){return M.replace(/\/index.html$/,"")}function qd(M,k){k=encodeURIComponent(k);for(const D of M.split(";")){const B=D.indexOf("="),[ee,pe]=-1==B?[D,""]:[D.slice(0,B),D.slice(B+1)];if(ee.trim()===k)return decodeURIComponent(pe)}return null}let Yl=(()=>{class M{constructor(D,B,ee,pe){this._iterableDiffers=D,this._keyValueDiffers=B,this._ngEl=ee,this._renderer=pe,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(D){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof D?D.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(D){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof D?D.split(/\s+/):D,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const D=this._iterableDiffer.diff(this._rawClass);D&&this._applyIterableChanges(D)}else if(this._keyValueDiffer){const D=this._keyValueDiffer.diff(this._rawClass);D&&this._applyKeyValueChanges(D)}}_applyKeyValueChanges(D){D.forEachAddedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachChangedItem(B=>this._toggleClass(B.key,B.currentValue)),D.forEachRemovedItem(B=>{B.previousValue&&this._toggleClass(B.key,!1)})}_applyIterableChanges(D){D.forEachAddedItem(B=>{if("string"!=typeof B.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(B.item)}`);this._toggleClass(B.item,!0)}),D.forEachRemovedItem(B=>this._toggleClass(B.item,!1))}_applyClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!0)):Object.keys(D).forEach(B=>this._toggleClass(B,!!D[B])))}_removeClasses(D){D&&(Array.isArray(D)||D instanceof Set?D.forEach(B=>this._toggleClass(B,!1)):Object.keys(D).forEach(B=>this._toggleClass(B,!1)))}_toggleClass(D,B){(D=D.trim())&&D.split(/\s+/g).forEach(ee=>{B?this._renderer.addClass(this._ngEl.nativeElement,ee):this._renderer.removeClass(this._ngEl.nativeElement,ee)})}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),M})();class ar{constructor(k,D,B,ee){this.$implicit=k,this.ngForOf=D,this.index=B,this.count=ee}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gn=(()=>{class M{constructor(D,B,ee){this._viewContainer=D,this._template=B,this._differs=ee,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(D){this._ngForOf=D,this._ngForOfDirty=!0}set ngForTrackBy(D){this._trackByFn=D}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(D){D&&(this._template=D)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const D=this._ngForOf;!this._differ&&D&&(this._differ=this._differs.find(D).create(this.ngForTrackBy))}if(this._differ){const D=this._differ.diff(this._ngForOf);D&&this._applyChanges(D)}}_applyChanges(D){const B=this._viewContainer;D.forEachOperation((ee,pe,le)=>{if(null==ee.previousIndex)B.createEmbeddedView(this._template,new ar(ee.item,this._ngForOf,-1,-1),null===le?void 0:le);else if(null==le)B.remove(null===pe?void 0:pe);else if(null!==pe){const Ge=B.get(pe);B.move(Ge,le),mi(Ge,ee)}});for(let ee=0,pe=B.length;ee{mi(B.get(ee.currentIndex),ee)})}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),M})();function mi(M,k){M.context.$implicit=k.item}let Di=(()=>{class M{constructor(D,B){this._viewContainer=D,this._context=new nn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=B}set ngIf(D){this._context.$implicit=this._context.ngIf=D,this._updateView()}set ngIfThen(D){As("ngIfThen",D),this._thenTemplateRef=D,this._thenViewRef=null,this._updateView()}set ngIfElse(D){As("ngIfElse",D),this._elseTemplateRef=D,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(D,B){return!0}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),M})();class nn{constructor(){this.$implicit=null,this.ngIf=null}}function As(M,k){if(k&&!k.createEmbeddedView)throw new Error(`${M} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class Ca{constructor(k,D){this._viewContainerRef=k,this._templateRef=D,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Pr=(()=>{class M{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(D){this._ngSwitch=D,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(D){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(D)}_matchCase(D){const B=D==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||B,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),B}_updateDefaultCases(D){if(this._defaultViews&&D!==this._defaultUsed){this._defaultUsed=D;for(let B=0;B{class M{constructor(D,B,ee){this.ngSwitch=ee,ee._addCase(),this._view=new Ca(D,B)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Pr,9))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),M})(),lf=(()=>{class M{constructor(D,B,ee){this._ngEl=D,this._differs=B,this._renderer=ee,this._ngStyle=null,this._differ=null}set ngStyle(D){this._ngStyle=D,!this._differ&&D&&(this._differ=this._differs.find(D).create())}ngDoCheck(){if(this._differ){const D=this._differ.diff(this._ngStyle);D&&this._applyChanges(D)}}_setStyle(D,B){const[ee,pe]=D.split("."),le=-1===ee.indexOf("-")?void 0:T.JOm.DashCase;null!=B?this._renderer.setStyle(this._ngEl.nativeElement,ee,pe?`${B}${pe}`:B,le):this._renderer.removeStyle(this._ngEl.nativeElement,ee,le)}_applyChanges(D){D.forEachRemovedItem(B=>this._setStyle(B.key,null)),D.forEachAddedItem(B=>this._setStyle(B.key,B.currentValue)),D.forEachChangedItem(B=>this._setStyle(B.key,B.currentValue))}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},M.\u0275dir=T.lG2({type:M,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),M})();class CC{createSubscription(k,D){return k.subscribe({next:D,error:B=>{throw B}})}dispose(k){k.unsubscribe()}}class yC{createSubscription(k,D){return k.then(D,B=>{throw B})}dispose(k){}}const wC=new yC,vC=new CC;let cf=(()=>{class M{constructor(D){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=D}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(D){return this._obj?D!==this._obj?(this._dispose(),this.transform(D)):this._latestValue:(D&&this._subscribe(D),this._latestValue)}_subscribe(D){this._obj=D,this._strategy=this._selectStrategy(D),this._subscription=this._strategy.createSubscription(D,B=>this._updateLatestValue(D,B))}_selectStrategy(D){if((0,T.QGY)(D))return wC;if((0,T.F4k)(D))return vC;throw function mn(M,k){return new T.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(D,B){D===this._obj&&(this._latestValue=B,this._ref.markForCheck())}}return M.\u0275fac=function(D){return new(D||M)(T.Y36(T.sBO,16))},M.\u0275pipe=T.Yjl({name:"async",type:M,pure:!1,standalone:!0}),M})(),_n=(()=>{class M{}return M.\u0275fac=function(D){return new(D||M)},M.\u0275mod=T.oAB({type:M}),M.\u0275inj=T.cJS({}),M})();const Zt="browser";function Es(M){return M===Zt}let ya=(()=>{class M{}return M.\u0275prov=(0,T.Yz7)({token:M,providedIn:"root",factory:()=>new Vt((0,T.LFG)(W),window)}),M})();class Vt{constructor(k,D){this.document=k,this.window=D,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const D=function an(M,k){const D=M.getElementById(k)||M.getElementsByName(k)[0];if(D)return D;if("function"==typeof M.createTreeWalker&&M.body&&(M.body.createShadowRoot||M.body.attachShadow)){const B=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let ee=B.currentNode;for(;ee;){const pe=ee.shadowRoot;if(pe){const le=pe.getElementById(k)||pe.querySelector(`[name="${k}"]`);if(le)return le}ee=B.nextNode()}}return null}(this.document,k);D&&(this.scrollToElement(D),D.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const D=this.window.history;D&&D.scrollRestoration&&(D.scrollRestoration=k)}}scrollToElement(k){const D=k.getBoundingClientRect(),B=D.left+this.window.pageXOffset,ee=D.top+this.window.pageYOffset,pe=this.offset();this.window.scrollTo(B-pe[0],ee-pe[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=wi(this.window.history)||wi(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function wi(M){return Object.getOwnPropertyDescriptor(M,"scrollRestoration")}class Ct{}},529:(F,N,x)=>{"use strict";x.d(N,{JF:()=>Gd,LE:()=>ge,TP:()=>Tt,WM:()=>$,Zn:()=>fe,eN:()=>Me,qT:()=>Be});var T=x(6895),p=x(4650),V=x(9646),O=x(9751),I=x(4351),j=x(9300),W=x(4004);class Q{}class U{}class ${constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(q=>{const ce=q.indexOf(":");if(ce>0){const xe=q.slice(0,ce),et=xe.toLowerCase(),ct=q.slice(ce+1).trim();this.maybeSetNormalizedName(xe,et),this.headers.has(et)?this.headers.get(et).push(ct):this.headers.set(et,[ct])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(q=>{let ce=Y[q];const xe=q.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(xe,ce),this.maybeSetNormalizedName(q,xe))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const q=this.headers.get(Y.toLowerCase());return q&&q.length>0?q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,q){return this.clone({name:Y,value:q,op:"a"})}set(Y,q){return this.clone({name:Y,value:q,op:"s"})}delete(Y,q){return this.clone({name:Y,value:q,op:"d"})}maybeSetNormalizedName(Y,q){this.normalizedNames.has(q)||this.normalizedNames.set(q,Y)}init(){this.lazyInit&&(this.lazyInit instanceof $?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(q=>{this.headers.set(q,Y.headers.get(q)),this.normalizedNames.set(q,Y.normalizedNames.get(q))})}clone(Y){const q=new $;return q.lazyInit=this.lazyInit&&this.lazyInit instanceof $?this.lazyInit:this,q.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),q}applyUpdate(Y){const q=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let ce=Y.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName(Y.name,q);const xe=("a"===Y.op?this.headers.get(q):void 0)||[];xe.push(...ce),this.headers.set(q,xe);break;case"d":const et=Y.value;if(et){let ct=this.headers.get(q);if(!ct)return;ct=ct.filter(Ne=>-1===et.indexOf(Ne)),0===ct.length?(this.headers.delete(q),this.normalizedNames.delete(q)):this.headers.set(q,ct)}else this.headers.delete(q),this.normalizedNames.delete(q)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(q=>Y(this.normalizedNames.get(q),this.headers.get(q)))}}class te{encodeKey(Y){return de(Y)}encodeValue(Y){return de(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const J=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function de(Ce){return encodeURIComponent(Ce).replace(J,(Y,q)=>ie[q]??Y)}function he(Ce){return`${Ce}`}class ge{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new te,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Ce,Y){const q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(xe=>{const et=xe.indexOf("="),[ct,Ne]=-1==et?[Y.decodeKey(xe),""]:[Y.decodeKey(xe.slice(0,et)),Y.decodeValue(xe.slice(et+1))],Je=q.get(ct)||[];Je.push(Ne),q.set(ct,Je)}),q}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(q=>{const ce=Y.fromObject[q],xe=Array.isArray(ce)?ce.map(he):[he(ce)];this.map.set(q,xe)})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const q=this.map.get(Y);return q?q[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,q){return this.clone({param:Y,value:q,op:"a"})}appendAll(Y){const q=[];return Object.keys(Y).forEach(ce=>{const xe=Y[ce];Array.isArray(xe)?xe.forEach(et=>{q.push({param:ce,value:et,op:"a"})}):q.push({param:ce,value:xe,op:"a"})}),this.clone(q)}set(Y,q){return this.clone({param:Y,value:q,op:"s"})}delete(Y,q){return this.clone({param:Y,value:q,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const q=this.encoder.encodeKey(Y);return this.map.get(Y).map(ce=>q+"="+this.encoder.encodeValue(ce)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const q=new ge({encoder:this.encoder});return q.cloneFrom=this.cloneFrom||this,q.updates=(this.updates||[]).concat(Y),q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const q=("a"===Y.op?this.map.get(Y.param):void 0)||[];q.push(he(Y.value)),this.map.set(Y.param,q);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let ce=this.map.get(Y.param)||[];const xe=ce.indexOf(he(Y.value));-1!==xe&&ce.splice(xe,1),ce.length>0?this.map.set(Y.param,ce):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(Y,q){return this.map.set(Y,q),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function _e(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function ve(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function Ye(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Ee{constructor(Y,q,ce,xe){let et;if(this.url=q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function we(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||xe?(this.body=void 0!==ce?ce:null,et=xe):et=ce,et&&(this.reportProgress=!!et.reportProgress,this.withCredentials=!!et.withCredentials,et.responseType&&(this.responseType=et.responseType),et.headers&&(this.headers=et.headers),et.context&&(this.context=et.context),et.params&&(this.params=et.params)),this.headers||(this.headers=new $),this.context||(this.context=new Be),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=q;else{const Ne=q.indexOf("?");this.urlWithParams=q+(-1===Ne?"?":NeYi.set(tt,Y.setHeaders[tt]),Je)),Y.setParams&&(Jt=Object.keys(Y.setParams).reduce((Yi,tt)=>Yi.set(tt,Y.setParams[tt]),Jt)),new Ee(q,ce,et,{params:Jt,headers:Je,context:vt,reportProgress:Ne,responseType:xe,withCredentials:ct})}}var Te=(()=>((Te=Te||{})[Te.Sent=0]="Sent",Te[Te.UploadProgress=1]="UploadProgress",Te[Te.ResponseHeader=2]="ResponseHeader",Te[Te.DownloadProgress=3]="DownloadProgress",Te[Te.Response=4]="Response",Te[Te.User=5]="User",Te))();class oe{constructor(Y,q=200,ce="OK"){this.headers=Y.headers||new $,this.status=void 0!==Y.status?Y.status:q,this.statusText=Y.statusText||ce,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class se extends oe{constructor(Y={}){super(Y),this.type=Te.ResponseHeader}clone(Y={}){return new se({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends oe{constructor(Y={}){super(Y),this.type=Te.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new fe({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ue extends oe{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function Re(Ce,Y){return{body:Y,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let Me=(()=>{class Ce{constructor(q){this.handler=q}request(q,ce,xe={}){let et;if(q instanceof Ee)et=q;else{let Je,Jt;Je=xe.headers instanceof $?xe.headers:new $(xe.headers),xe.params&&(Jt=xe.params instanceof ge?xe.params:new ge({fromObject:xe.params})),et=new Ee(q,ce,void 0!==xe.body?xe.body:null,{headers:Je,context:xe.context,params:Jt,reportProgress:xe.reportProgress,responseType:xe.responseType||"json",withCredentials:xe.withCredentials})}const ct=(0,V.of)(et).pipe((0,I.b)(Je=>this.handler.handle(Je)));if(q instanceof Ee||"events"===xe.observe)return ct;const Ne=ct.pipe((0,j.h)(Je=>Je instanceof fe));switch(xe.observe||"body"){case"body":switch(et.responseType){case"arraybuffer":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Je.body}));case"blob":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&!(Je.body instanceof Blob))throw new Error("Response is not a Blob.");return Je.body}));case"text":return Ne.pipe((0,W.U)(Je=>{if(null!==Je.body&&"string"!=typeof Je.body)throw new Error("Response is not a string.");return Je.body}));default:return Ne.pipe((0,W.U)(Je=>Je.body))}case"response":return Ne;default:throw new Error(`Unreachable: unhandled observe type ${xe.observe}}`)}}delete(q,ce={}){return this.request("DELETE",q,ce)}get(q,ce={}){return this.request("GET",q,ce)}head(q,ce={}){return this.request("HEAD",q,ce)}jsonp(q,ce){return this.request("JSONP",q,{params:(new ge).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(q,ce={}){return this.request("OPTIONS",q,ce)}patch(q,ce,xe={}){return this.request("PATCH",q,Re(xe,ce))}post(q,ce,xe={}){return this.request("POST",q,Re(xe,ce))}put(q,ce,xe={}){return this.request("PUT",q,Re(xe,ce))}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(Q))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class ot{constructor(Y,q){this.next=Y,this.interceptor=q}handle(Y){return this.interceptor.intercept(Y,this.next)}}const Tt=new p.OlP("HTTP_INTERCEPTORS");let It=(()=>{class Ce{intercept(q,ce){return ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const po=/^\)\]\}',?\n/;let fo=(()=>{class Ce{constructor(q){this.xhrFactory=q}handle(q){if("JSONP"===q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new O.y(ce=>{const xe=this.xhrFactory.build();if(xe.open(q.method,q.urlWithParams),q.withCredentials&&(xe.withCredentials=!0),q.headers.forEach((Ht,kt)=>xe.setRequestHeader(Ht,kt.join(","))),q.headers.has("Accept")||xe.setRequestHeader("Accept","application/json, text/plain, */*"),!q.headers.has("Content-Type")){const Ht=q.detectContentTypeHeader();null!==Ht&&xe.setRequestHeader("Content-Type",Ht)}if(q.responseType){const Ht=q.responseType.toLowerCase();xe.responseType="json"!==Ht?Ht:"text"}const et=q.serializeBody();let ct=null;const Ne=()=>{if(null!==ct)return ct;const Ht=xe.statusText||"OK",kt=new $(xe.getAllResponseHeaders()),tn=function zd(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(xe)||q.url;return ct=new se({headers:kt,status:xe.status,statusText:Ht,url:tn}),ct},Je=()=>{let{headers:Ht,status:kt,statusText:tn,url:Tr}=Ne(),fi=null;204!==kt&&(fi=typeof xe.response>"u"?xe.responseText:xe.response),0===kt&&(kt=fi?200:0);let Er=kt>=200&&kt<300;if("json"===q.responseType&&"string"==typeof fi){const Sr=fi;fi=fi.replace(po,"");try{fi=""!==fi?JSON.parse(fi):null}catch(ma){fi=Sr,Er&&(Er=!1,fi={error:ma,text:fi})}}Er?(ce.next(new fe({body:fi,headers:Ht,status:kt,statusText:tn,url:Tr||void 0})),ce.complete()):ce.error(new ue({error:fi,headers:Ht,status:kt,statusText:tn,url:Tr||void 0}))},Jt=Ht=>{const{url:kt}=Ne(),tn=new ue({error:Ht,status:xe.status||0,statusText:xe.statusText||"Unknown Error",url:kt||void 0});ce.error(tn)};let vt=!1;const Yi=Ht=>{vt||(ce.next(Ne()),vt=!0);let kt={type:Te.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),"text"===q.responseType&&!!xe.responseText&&(kt.partialText=xe.responseText),ce.next(kt)},tt=Ht=>{let kt={type:Te.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(kt.total=Ht.total),ce.next(kt)};return xe.addEventListener("load",Je),xe.addEventListener("error",Jt),xe.addEventListener("timeout",Jt),xe.addEventListener("abort",Jt),q.reportProgress&&(xe.addEventListener("progress",Yi),null!==et&&xe.upload&&xe.upload.addEventListener("progress",tt)),xe.send(et),ce.next({type:Te.Sent}),()=>{xe.removeEventListener("error",Jt),xe.removeEventListener("abort",Jt),xe.removeEventListener("load",Je),xe.removeEventListener("timeout",Jt),q.reportProgress&&(xe.removeEventListener("progress",Yi),null!==et&&xe.upload&&xe.upload.removeEventListener("progress",tt)),xe.readyState!==xe.DONE&&xe.abort()}})}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.JF))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Pn=new p.OlP("XSRF_COOKIE_NAME"),Rn=new p.OlP("XSRF_HEADER_NAME");class pa{}let go=(()=>{class Ce{constructor(q,ce,xe){this.doc=q,this.platform=ce,this.cookieName=xe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const q=this.doc.cookie||"";return q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(q,this.cookieName),this.lastCookieString=q),this.lastToken}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(T.K0),p.LFG(p.Lbi),p.LFG(Pn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Qe=(()=>{class Ce{constructor(q,ce){this.tokenService=q,this.headerName=ce}intercept(q,ce){const xe=q.url.toLowerCase();if("GET"===q.method||"HEAD"===q.method||xe.startsWith("http://")||xe.startsWith("https://"))return ce.handle(q);const et=this.tokenService.getToken();return null!==et&&!q.headers.has(this.headerName)&&(q=q.clone({headers:q.headers.set(this.headerName,et)})),ce.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(pa),p.LFG(Rn))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ci=(()=>{class Ce{constructor(q,ce){this.backend=q,this.injector=ce,this.chain=null}handle(q){if(null===this.chain){const ce=this.injector.get(Tt,[]);this.chain=ce.reduceRight((xe,et)=>new ot(xe,et),this.backend)}return this.chain.handle(q)}}return Ce.\u0275fac=function(q){return new(q||Ce)(p.LFG(U),p.LFG(p.zs3))},Ce.\u0275prov=p.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ga=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:Qe,useClass:It}]}}static withOptions(q={}){return{ngModule:Ce,providers:[q.cookieName?{provide:Pn,useValue:q.cookieName}:[],q.headerName?{provide:Rn,useValue:q.headerName}:[]]}}}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Qe,{provide:Tt,useExisting:Qe,multi:!0},{provide:pa,useClass:go},{provide:Pn,useValue:"XSRF-TOKEN"},{provide:Rn,useValue:"X-XSRF-TOKEN"}]}),Ce})(),Gd=(()=>{class Ce{}return Ce.\u0275fac=function(q){return new(q||Ce)},Ce.\u0275mod=p.oAB({type:Ce}),Ce.\u0275inj=p.cJS({providers:[Me,{provide:Q,useClass:ci},fo,{provide:U,useExisting:fo}],imports:[ga.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Ce})()},4650:(F,N,x)=>{"use strict";x.d(N,{$8M:()=>cc,$Z:()=>Iw,AFp:()=>cp,ALo:()=>VA,AaK:()=>Q,AsE:()=>t_,BQk:()=>ph,CHM:()=>Pi,CRH:()=>na,CZH:()=>fs,CqO:()=>Pm,D6c:()=>TS,Dn7:()=>LA,EJc:()=>Sd,EiD:()=>rg,EpF:()=>Qo,F$t:()=>Bm,F4k:()=>id,FYo:()=>Ny,FiY:()=>Mo,G48:()=>Ab,Gf:()=>WA,GfV:()=>Uy,GkF:()=>ed,Gpc:()=>G,Hsn:()=>Om,Ikx:()=>l_,JOm:()=>pr,JVY:()=>by,KtG:()=>On,L6k:()=>Cy,LAX:()=>pu,LFG:()=>si,LSH:()=>wu,Lbi:()=>sb,Lck:()=>wA,MAs:()=>uh,MMx:()=>Hl,NdJ:()=>fh,O4$:()=>_f,OlP:()=>At,Oqu:()=>e_,PXZ:()=>dx,Q6J:()=>Fe,QGY:()=>td,QP$:()=>Xa,QbO:()=>cS,Qsj:()=>zy,R0b:()=>un,RDi:()=>hy,Rgc:()=>fd,SBq:()=>Wr,Sil:()=>gp,Suo:()=>Jh,TTD:()=>di,TgZ:()=>_t,Udp:()=>Qm,VKq:()=>HA,WFA:()=>gh,XFs:()=>Qe,Xpm:()=>tn,Xts:()=>Au,Y36:()=>rl,YKP:()=>P_,YNc:()=>wt,Yjl:()=>Wl,Yz7:()=>Dt,ZZ4:()=>Rb,_Bn:()=>H_,_UZ:()=>Yo,_Vd:()=>Va,_c5:()=>Tx,_uU:()=>Dv,aQg:()=>Op,c2e:()=>dS,cJS:()=>ri,cg1:()=>Th,d8E:()=>c_,dDg:()=>hb,dqk:()=>ce,eBb:()=>yy,eFA:()=>Tp,ekj:()=>Jm,eoX:()=>to,f3M:()=>Bf,g9A:()=>dp,h0i:()=>os,hGG:()=>xS,hij:()=>Ah,iGM:()=>qA,ifc:()=>q,ip1:()=>ps,kL8:()=>Xv,kcU:()=>bf,lG2:()=>Ud,lcZ:()=>BA,lqb:()=>vi,lri:()=>ms,mCW:()=>$s,n5z:()=>tu,n_E:()=>Uh,oAB:()=>Sr,oJD:()=>ag,oxw:()=>Vm,pB0:()=>Kf,q3G:()=>Xt,qLn:()=>Rc,qOj:()=>Kc,qZA:()=>hh,qzn:()=>Ia,rWj:()=>vp,s9C:()=>mh,sBO:()=>Eb,sIi:()=>ul,s_b:()=>qh,soG:()=>hp,tb:()=>kl,tp0:()=>Pa,uIk:()=>mr,vHH:()=>ie,vpe:()=>wr,wAp:()=>Ke,xi3:()=>OA,xp6:()=>Vu,ynx:()=>Ya,z2F:()=>Bl,z3N:()=>zn,zSh:()=>dg,zs3:()=>qn});var T=x(7579),p=x(727),V=x(9751),O=x(6451),I=x(3099);function j(h){for(let g in h)if(h[g]===j)return g;throw Error("Could not find renamed property on target object.")}function W(h,g){for(const m in g)g.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=g[m])}function Q(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(Q).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const g=h.toString();if(null==g)return""+g;const m=g.indexOf("\n");return-1===m?g:g.substring(0,m)}function U(h,g){return null==h||""===h?null===g?"":g:null==g||""===g?h:h+" "+g}const $=j({__forward_ref__:j});function G(h){return h.__forward_ref__=G,h.toString=function(){return Q(this())},h}function te(h){return ne(h)?h():h}function ne(h){return"function"==typeof h&&h.hasOwnProperty($)&&h.__forward_ref__===G}class ie extends Error{constructor(g,m){super(function de(h,g){return`NG0${Math.abs(h)}${g?": "+g.trim():""}`}(g,m)),this.code=g}}function he(h){return"string"==typeof h?h:null==h?"":String(h)}function _e(h,g){throw new ie(-201,!1)}function It(h,g){null==h&&function Le(h,g,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${g} <=Actual]`))}(g,h,null,"!=")}function Dt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function ri(h){return{providers:h.providers||[],imports:h.imports||[]}}function xr(h){return ql(h,Pn)||ql(h,pa)}function ql(h,g){return h.hasOwnProperty(g)?h[g]:null}function fo(h){return h&&(h.hasOwnProperty(Rn)||h.hasOwnProperty(go))?h[Rn]:null}const Pn=j({\u0275prov:j}),Rn=j({\u0275inj:j}),pa=j({ngInjectableDef:j}),go=j({ngInjectorDef:j});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let ci;function Ei(h){const g=ci;return ci=h,g}function ga(h,g,m){const _=xr(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Qe.Optional?null:void 0!==g?g:void _e(Q(h))}function fn(h){return{toString:h}.toString()}var Ci=(()=>((Ci=Ci||{})[Ci.OnPush=0]="OnPush",Ci[Ci.Default=1]="Default",Ci))(),q=(()=>{return(h=q||(q={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",q;var h})();const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ct={},Ne=[],Je=j({\u0275cmp:j}),Jt=j({\u0275dir:j}),vt=j({\u0275pipe:j}),Yi=j({\u0275mod:j}),tt=j({\u0275fac:j}),Ht=j({__NG_ELEMENT_ID__:j});let kt=0;function tn(h){return fn(()=>{const m=!0===h.standalone,_={},C={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===Ci.OnPush,directiveDefs:null,pipeDefs:null,standalone:m,dependencies:m&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||Ne,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||q.Emulated,id:"c"+kt++,styles:h.styles||Ne,_:null,setInput:null,schemas:h.schemas||null,tView:null},w=h.dependencies,v=h.features;return C.inputs=mo(h.inputs,_),C.outputs=mo(h.outputs),v&&v.forEach(E=>E(C)),C.directiveDefs=w?()=>("function"==typeof w?w():w).map(fi).filter(Er):null,C.pipeDefs=w?()=>("function"==typeof w?w():w).map(Mi).filter(Er):null,C})}function fi(h){return Et(h)||Si(h)}function Er(h){return null!==h}function Sr(h){return fn(()=>({type:h.type,bootstrap:h.bootstrap||Ne,declarations:h.declarations||Ne,imports:h.imports||Ne,exports:h.exports||Ne,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function mo(h,g){if(null==h)return ct;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,g&&(g[C]=w)}return m}const Ud=tn;function Wl(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function Et(h){return h[Je]||null}function Si(h){return h[Jt]||null}function Mi(h){return h[vt]||null}function ji(h,g){const m=h[Yi]||null;if(!m&&!0===g)throw new Error(`Type ${Q(h)} does not have '\u0275mod' property.`);return m}function Di(h){return Array.isArray(h)&&"object"==typeof h[1]}function nn(h){return Array.isArray(h)&&!0===h[1]}function As(h){return 0!=(8&h.flags)}function Ca(h){return 2==(2&h.flags)}function Pr(h){return 1==(1&h.flags)}function Qi(h){return null!==h.template}function af(h){return 0!=(256&h[2])}function De(h,g){return h.hasOwnProperty(tt)?h[tt]:null}class Pe{constructor(g,m,_){this.previousValue=g,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function di(){return xs}function xs(h){return h.type.prototype.ngOnChanges&&(h.setInput=Rr),Ts}function Ts(){const h=Bn(this),g=h?.current;if(g){const m=h.previous;if(m===ct)h.previous=g;else for(let _ in g)m[_]=g[_];h.current=null,this.ngOnChanges(g)}}function Rr(h,g,m,_){const C=Bn(h)||function Ir(h,g){return h[Vi]=g}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,E=this.declaredInputs[m],S=v[E];w[E]=new Pe(S&&S.currentValue,g,v===ct),h[_]=g}di.ngInherit=!0;const Vi="__ngSimpleChanges__";function Bn(h){return h[Vi]||null}function ze(h){for(;Array.isArray(h);)h=h[0];return h}function ya(h,g){return ze(g[h])}function Vt(h,g){return ze(g[h.index])}function an(h,g){return h.data[g]}function zi(h,g){return h[g]}function Ct(h,g){const m=g[h];return Di(m)?m:m[0]}function M(h){return 4==(4&h[2])}function k(h){return 64==(64&h[2])}function B(h,g){return null==g?null:h[g]}function ee(h){h[18]=0}function pe(h,g){h[5]+=g;let m=h,_=h[3];for(;null!==_&&(1===g&&1===m[5]||-1===g&&0===m[5]);)_[5]+=g,m=_,_=_[3]}const le={lFrame:Qd(null),bindingsEnabled:!0};function qe(){return le.bindingsEnabled}function be(){return le.lFrame.lView}function ut(){return le.lFrame.tView}function Pi(h){return le.lFrame.contextLView=h,h[8]}function On(h){return le.lFrame.contextLView=null,h}function qt(){let h=wa();for(;null!==h&&64===h.type;)h=h.parent;return h}function wa(){return le.lFrame.currentTNode}function Ot(h,g){const m=le.lFrame;m.currentTNode=h,m.isParent=g}function bn(){return le.lFrame.isParent}function Ss(){le.lFrame.isParent=!1}function Bi(){const h=le.lFrame;let g=h.bindingRootIndex;return-1===g&&(g=h.bindingRootIndex=h.tView.bindingStartIndex),g}function Aa(){return le.lFrame.bindingIndex++}function Fn(h){const g=le.lFrame,m=g.bindingIndex;return g.bindingIndex=g.bindingIndex+h,m}function gt(h,g){const m=le.lFrame;m.bindingIndex=m.bindingRootIndex=h,$d(g)}function $d(h){le.lFrame.currentDirectiveIndex=h}function or(h){const g=le.lFrame.currentDirectiveIndex;return-1===g?null:h[g]}function pf(){return le.lFrame.currentQueryIndex}function Zl(h){le.lFrame.currentQueryIndex=h}function Yd(h){const g=h[1];return 2===g.type?g.declTNode:1===g.type?h[6]:null}function ff(h,g,m){if(m&Qe.SkipSelf){let C=g,w=h;for(;!(C=C.parent,null!==C||m&Qe.Host||(C=Yd(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;g=C,h=w}const _=le.lFrame=wo();return _.currentTNode=g,_.lView=h,!0}function yo(h){const g=wo(),m=h[1];le.lFrame=g,g.currentTNode=m.firstChild,g.lView=h,g.tView=m,g.contextLView=h,g.bindingIndex=m.bindingStartIndex,g.inI18n=!1}function wo(){const h=le.lFrame,g=null===h?null:h.child;return null===g?Qd(h):g}function Qd(h){const g={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=g),g}function Hs(){const h=le.lFrame;return le.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const gf=Hs;function Ps(){const h=Hs();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Ri(){return le.lFrame.selectedIndex}function Vr(h){le.lFrame.selectedIndex=h}function Qt(){const h=le.lFrame;return an(h.tView,h.selectedIndex)}function _f(){le.lFrame.currentNamespace="svg"}function bf(){!function HC(){le.lFrame.currentNamespace=null}()}function tc(h,g){for(let m=g.directiveStart,_=g.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:E,ngAfterViewInit:S,ngAfterViewChecked:H,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),E&&((h.contentHooks||(h.contentHooks=[])).push(m,E),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,E)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),H&&((h.viewHooks||(h.viewHooks=[])).push(m,H),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,H)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function vo(h,g,m){Br(h,g,3,m)}function xa(h,g,m,_){(3&h[2])===m&&Br(h,g,m,_)}function Jd(h,g){let m=h[2];(3&m)===g&&(m&=2047,m+=1,h[2]=m)}function Br(h,g,m,_){const w=_??-1,v=g.length-1;let E=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else g[S]<0&&(h[18]+=65536),(E>11>16&&(3&h[2])===g){h[2]+=2048;try{w.call(E)}finally{}}}else try{w.call(E)}finally{}}class Rs{constructor(g,m,_){this.factory=g,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function lr(h,g,m){let _=0;for(;_g){v=w-1;break}}}for(;w>16}(h),_=g;for(;m>0;)_=_[15],m--;return _}let Zd=!0;function ks(h){const g=Zd;return Zd=h,g}let Lr=0;const Ji={};function Vs(h,g){const m=eu(h,g);if(-1!==m)return m;const _=g[1];_.firstCreatePass&&(h.injectorIndex=g.length,Xd(_.data,h),Xd(g,null),Xd(_.blueprint,null));const C=rc(h,g),w=h.injectorIndex;if(ic(C)){const v=jn(C),E=Or(C,g),S=E[1].data;for(let H=0;H<8;H++)g[w+H]=E[v+H]|S[v+H]}return g[w+8]=C,w}function Xd(h,g){h.push(0,0,0,0,0,0,0,0,g)}function eu(h,g){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===g[h.injectorIndex+8]?-1:h.injectorIndex}function rc(h,g){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=g;for(;null!==C;){if(_=cr(C),null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function ac(h,g,m){!function Af(h,g,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(Ht)&&(_=m[Ht]),null==_&&(_=m[Ht]=Lr++);const C=255&_;g.data[h+(C>>5)]|=1<=0?255&g:xo:g}(m);if("function"==typeof w){if(!ff(g,h,_))return _&Qe.Host?xf(C,0,_):Tf(g,m,_,C);try{const v=w(_);if(null!=v||_&Qe.Optional)return v;_e()}finally{gf()}}else if("number"==typeof w){let v=null,E=eu(h,g),S=-1,H=_&Qe.Host?g[16][6]:null;for((-1===E||_&Qe.SkipSelf)&&(S=-1===E?rc(h,g):g[E+8],-1!==S&&sc(_,!1)?(v=g[1],E=jn(S),g=Or(S,g)):E=-1);-1!==E;){const R=g[1];if(oc(w,E,R.data)){const L=jC(E,g,m,v,_,H);if(L!==Ji)return L}S=g[E+8],-1!==S&&sc(_,g[1].data[E+8]===H)&&oc(w,E,g)?(v=R,E=jn(S),g=Or(S,g)):E=-1}}return C}function jC(h,g,m,_,C,w){const v=g[1],E=v.data[h+8],R=Bs(E,v,m,null==_?Ca(E)&&Zd:_!=v&&0!=(3&E.type),C&Qe.Host&&w===E);return null!==R?Os(g,v,R,E):Ji}function Bs(h,g,m,_,C){const w=h.providerIndexes,v=g.data,E=1048575&w,S=h.directiveStart,R=w>>20,X=C?E+R:h.directiveEnd;for(let re=_?E:E+R;re=S&&me.type===m)return re}if(C){const re=v[S];if(re&&Qi(re)&&re.type===m)return S}return null}function Os(h,g,m,_){let C=h[m];const w=g.data;if(function IC(h){return h instanceof Rs}(C)){const v=C;v.resolving&&function Ve(h,g){const m=g?`. Dependency path: ${g.join(" > ")} > ${h}`:"";throw new ie(-200,`Circular dependency in DI detected for ${h}${m}`)}(function ge(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():he(h)}(w[m]));const E=ks(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Ei(v.injectImpl):null;ff(h,_,Qe.Default);try{C=h[m]=v.factory(void 0,w,h,_),g.firstCreatePass&&m>=_.directiveStart&&function RC(h,g,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=g.type.prototype;if(_){const v=xs(g);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],g)}finally{null!==S&&Ei(S),ks(E),v.resolving=!1,gf()}}return C}function oc(h,g,m){return!!(m[g+(h>>5)]&1<{const g=h.prototype.constructor,m=g[tt]||lc(g),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[tt]||lc(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function lc(h){return ne(h)?()=>{const g=lc(te(h));return g&&g()}:De(h)}function cr(h){const g=h[1],m=g.type;return 2===m?g.declTNode:1===m?h[6]:null}function cc(h){return function FC(h,g){if("class"===g)return h.classes;if("style"===g)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(yf(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===g)return m[C+1];C+=2}}}return null}(qt(),h)}const dr="__parameters__";function Fr(h,g,m){return fn(()=>{const _=function uc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(g);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return E.annotation=v,E;function E(S,H,R){const L=S.hasOwnProperty(dr)?S[dr]:Object.defineProperty(S,dr,{value:[]})[dr];for(;L.length<=R;)L.push(null);return(L[R]=L[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class At{constructor(g,m){this._desc=g,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Dt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function on(h,g){void 0===g&&(g=h);for(let m=0;mArray.isArray(m)?jr(m,g):g(m))}function YC(h,g,m){g>=h.length?h.push(m):h.splice(g,0,m)}function ru(h,g){return g>=h.length-1?h.pop():h.splice(g,1)[0]}function Ma(h,g){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function JC(h,g,m,_){let C=h.length;if(C==g)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>g;)h[C]=h[C-2],C--;h[g]=m,h[g+1]=_}}(h,_,g,m)),_}function ou(h,g){const m=Eo(h,g);if(m>=0)return h[1|m]}function Eo(h,g){return function js(h,g,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<g?C=w:_=w+1}return~(C<h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Cc}()?.createHTML(h)||h}function Yf(h){return function wc(){if(void 0===Ws&&(Ws=null,ce.trustedTypes))try{Ws=ce.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return Ws}()?.createHTML(h)||h}class Ra{constructor(g){this.changingThisBreaksApplicationSecurity=g}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class fy extends Ra{getTypeName(){return"HTML"}}class gy extends Ra{getTypeName(){return"Style"}}class my extends Ra{getTypeName(){return"Script"}}class Jf extends Ra{getTypeName(){return"URL"}}class hu extends Ra{getTypeName(){return"ResourceURL"}}function zn(h){return h instanceof Ra?h.changingThisBreaksApplicationSecurity:h}function Ia(h,g){const m=function _y(h){return h instanceof Ra&&h.getTypeName()||null}(h);if(null!=m&&m!==g){if("ResourceURL"===m&&"URL"===g)return!0;throw new Error(`Required a safe ${g}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===g}function by(h){return new fy(h)}function Cy(h){return new gy(h)}function yy(h){return new my(h)}function pu(h){return new Jf(h)}function Kf(h){return new hu(h)}class fu{constructor(g){this.inertDocumentHelper=g}getInertBodyElement(g){g=""+g;try{const m=(new window.DOMParser).parseFromString(Ho(g),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(g):(m.removeChild(m.firstChild),m)}catch{return null}}}class wy{constructor(g){if(this.defaultDoc=g,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(g){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Ho(g),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Ho(g),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(g){const m=g.attributes;for(let C=m.length-1;0$s(g.trim())).join(", ")),this.buf.push(" ",v,'="',bu(S),'"')}var h;return this.buf.push(">"),!0}endElement(g){const m=g.nodeName.toLowerCase();mu.hasOwnProperty(m)&&!_i.hasOwnProperty(m)&&(this.buf.push(""))}chars(g){this.buf.push(bu(g))}checkClobberedElement(g,m){if(m&&(g.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${g.outerHTML}`);return m}}const G0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ng=/([^\#-~ |!])/g;function bu(h){return h.replace(/&/g,"&").replace(G0,function(g){return"&#"+(1024*(g.charCodeAt(0)-55296)+(g.charCodeAt(1)-56320)+65536)+";"}).replace(ng,function(g){return"&#"+g.charCodeAt(0)+";"}).replace(//g,">")}let Ec;function rg(h,g){let m=null;try{Ec=Ec||function Ac(h){const g=new wy(h);return function vy(){try{return!!(new window.DOMParser).parseFromString(Ho(""),"text/html")}catch{return!1}}()?new fu(g):g}(h);let _=g?String(g):"";m=Ec.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=Ec.getInertBodyElement(_)}while(_!==w);return Ho((new Gr).sanitizeChildren(Cu(m)||m))}finally{if(m){const _=Cu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Cu(h){return"content"in h&&function yu(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var Xt=(()=>((Xt=Xt||{})[Xt.NONE=0]="NONE",Xt[Xt.HTML=1]="HTML",Xt[Xt.STYLE=2]="STYLE",Xt[Xt.SCRIPT=3]="SCRIPT",Xt[Xt.URL=4]="URL",Xt[Xt.RESOURCE_URL=5]="RESOURCE_URL",Xt))();function ag(h){const g=Ys();return g?Yf(g.sanitize(Xt.HTML,h)||""):Ia(h,"HTML")?Yf(zn(h)):rg(function qf(){return void 0!==uu?uu:typeof document<"u"?document:void 0}(),he(h))}function wu(h){const g=Ys();return g?g.sanitize(Xt.URL,h)||"":Ia(h,"URL")?zn(h):$s(he(h))}function Ys(){const h=be();return h&&h[12]}const Au=new At("ENVIRONMENT_INITIALIZER"),cg=new At("INJECTOR",-1),Hy=new At("INJECTOR_DEF_TYPES");class Sc{get(g,m=zs){if(m===zs){const _=new Error(`NullInjectorError: No provider for ${Q(g)}!`);throw _.name="NullInjectorError",_}return m}}function ei(...h){return{\u0275providers:Py(0,h)}}function Py(h,...g){const m=[],_=new Set;let C;return jr(g,w=>{const v=w;Mc(v,m,[],_)&&(C||(C=[]),C.push(v))}),void 0!==C&&ka(C,m),m}function ka(h,g){for(let m=0;m{g.push(w)})}}function Mc(h,g,m,_){if(!(h=te(h)))return!1;let C=null,w=fo(h);const v=!w&&Et(h);if(w||v){if(v&&!v.standalone)return!1;C=h}else{const S=h.ngModule;if(w=fo(S),!w)return!1;C=S}const E=_.has(C);if(v){if(E)return!1;if(_.add(C),v.dependencies){const S="function"==typeof v.dependencies?v.dependencies():v.dependencies;for(const H of S)Mc(H,g,m,_)}}else{if(!w)return!1;{if(null!=w.imports&&!E){let H;_.add(C);try{jr(w.imports,R=>{Mc(R,g,m,_)&&(H||(H=[]),H.push(R))})}finally{}void 0!==H&&ka(H,g)}if(!E){const H=De(C)||(()=>new C);g.push({provide:C,useFactory:H,deps:Ne},{provide:Hy,useValue:C,multi:!0},{provide:Au,useValue:()=>si(C),multi:!0})}const S=w.providers;null==S||E||jr(S,R=>{g.push(R)})}}return C!==h&&void 0!==h.providers}const Qs=j({provide:String,useValue:j});function xu(h){return null!==h&&"object"==typeof h&&Qs in h}function Ki(h){return"function"==typeof h}const dg=new At("Set Injector scope."),Ro={},ky={};let Io;function ko(){return void 0===Io&&(Io=new Sc),Io}class vi{}class Dc extends vi{constructor(g,m,_,C){super(),this.parent=m,this.source=_,this.scopes=C,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pg(g,v=>this.processProvider(v)),this.records.set(cg,Ur(void 0,this)),C.has("environment")&&this.records.set(vi,Ur(void 0,this));const w=this.records.get(dg);null!=w&&"string"==typeof w.value&&this.scopes.add(w.value),this.injectorDefTypes=new Set(this.get(Hy.multi,Ne,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();for(const g of this._onDestroyHooks)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(g){this._onDestroyHooks.push(g)}runInContext(g){this.assertNotDestroyed();const m=ur(this),_=Ei(void 0);try{return g()}finally{ur(m),Ei(_)}}get(g,m=zs,_=Qe.Default){this.assertNotDestroyed();const C=ur(this),w=Ei(void 0);try{if(!(_&Qe.SkipSelf)){let E=this.records.get(g);if(void 0===E){const S=function Ly(h){return"function"==typeof h||"object"==typeof h&&h instanceof At}(g)&&xr(g);E=S&&this.injectableDefInScope(S)?Ur(ug(g),Ro):null,this.records.set(g,E)}if(null!=E)return this.hydrate(g,E)}return(_&Qe.Self?ko():this.parent).get(g,m=_&Qe.Optional&&m===zs?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[fc]=v[fc]||[]).unshift(Q(g)),C)throw v;return function ay(h,g,m,_){const C=h[fc];throw g[kf]&&C.unshift(g[kf]),h.message=function oy(h,g,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let C=Q(g);if(Array.isArray(g))C=g.map(Q).join(" -> ");else if("object"==typeof g){let w=[];for(let v in g)if(g.hasOwnProperty(v)){let E=g[v];w.push(v+":"+("string"==typeof E?JSON.stringify(E):Q(E)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(ny,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[fc]=null,h}(v,g,"R3InjectorError",this.source)}throw v}finally{Ei(w),ur(C)}}resolveInjectorInitializers(){const g=ur(this),m=Ei(void 0);try{const _=this.get(Au.multi,Ne,Qe.Self);for(const C of _)C()}finally{ur(g),Ei(m)}}toString(){const g=[],m=this.records;for(const _ of m.keys())g.push(Q(_));return`R3Injector[${g.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(g){let m=Ki(g=te(g))?g:te(g&&g.provide);const _=function hg(h){return xu(h)?Ur(void 0,h.useValue):Ur(Vy(h),Ro)}(g);if(Ki(g)||!0!==g.multi)this.records.get(m);else{let C=this.records.get(m);C||(C=Ur(void 0,Ro,!0),C.factory=()=>lu(C.multi),this.records.set(m,C)),m=g,C.multi.push(g)}this.records.set(m,_)}hydrate(g,m){return m.value===Ro&&(m.value=ky,m.value=m.factory()),"object"==typeof m.value&&m.value&&function Oy(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this._ngOnDestroyHooks.add(m.value),m.value}injectableDefInScope(g){if(!g.providedIn)return!1;const m=te(g.providedIn);return"string"==typeof m?"any"===m||this.scopes.has(m):this.injectorDefTypes.has(m)}}function ug(h){const g=xr(h),m=null!==g?g.factory:De(h);if(null!==m)return m;if(h instanceof At)throw new ie(204,!1);if(h instanceof Function)return function Tu(h){const g=h.length;if(g>0)throw Ma(g,"?"),new ie(204,!1);const m=function po(h){const g=h&&(h[Pn]||h[pa]);if(g){const m=function zd(h){if(h.hasOwnProperty("name"))return h.name;const g=(""+h).match(/^function\s*([^\s(]+)/);return null===g?"":g[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),g}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new ie(204,!1)}function Vy(h,g,m){let _;if(Ki(h)){const C=te(h);return De(C)||ug(C)}if(xu(h))_=()=>te(h.useValue);else if(function Js(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...lu(h.deps||[]));else if(function yn(h){return!(!h||!h.useExisting)}(h))_=()=>si(te(h.useExisting));else{const C=te(h&&(h.useClass||h.provide));if(!function By(h){return!!h.deps}(h))return De(C)||ug(C);_=()=>new C(...lu(h.deps))}return _}function Ur(h,g,m=!1){return{factory:h,value:g,multi:m?[]:void 0}}function q0(h){return!!h.\u0275providers}function pg(h,g){for(const m of h)Array.isArray(m)?pg(m,g):q0(m)?pg(m.\u0275providers,g):g(m)}class Pc{}class jy{resolveComponentFactory(g){throw function W0(h){const g=Error(`No component factory found for ${Q(h)}. Did you add it to @NgModule.entryComponents?`);return g.ngComponent=h,g}(g)}}let Va=(()=>{class h{}return h.NULL=new jy,h})();function Eu(){return qr(qt(),be())}function qr(h,g){return new Wr(Vt(h,g))}let Wr=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=Eu,h})();function Y0(h){return h instanceof Wr?h.nativeElement:h}class Ny{}let zy=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function Gy(){const h=be(),m=Ct(qt().index,h);return(Di(m)?m:h)[11]}(),h})(),Q0=(()=>{class h{}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:()=>null}),h})();class Uy{constructor(g){this.full=g,this.major=g.split(".")[0],this.minor=g.split(".")[1],this.patch=g.split(".").slice(2).join(".")}}const J0=new Uy("14.1.2"),fg={};function Cg(h){return h.ngOriginalError}class Rc{constructor(){this._console=console}handleError(g){const m=this._findOriginalError(g);this._console.error("ERROR",g),m&&this._console.error("ORIGINAL ERROR",m)}_findOriginalError(g){let m=g&&Cg(g);for(;m&&Cg(m);)m=Cg(m);return m||null}}const yg=new Map;let cT=0;const vg="__ngContext__";function Oi(h,g){Di(g)?(h[vg]=g[20],function uT(h){yg.set(h[20],h)}(g)):h[vg]=g}function Ic(h){const g=h[vg];return"number"==typeof g?function Ky(h){return yg.get(h)||null}(g):g||null}function Ag(h){const g=Ic(h);return g?Di(g)?g:g.lView:null}const bT=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ce))();function $r(h){return h instanceof Function?h():h}var pr=(()=>((pr=pr||{})[pr.Important=1]="Important",pr[pr.DashCase=2]="DashCase",pr))();function Tg(h,g){return undefined(h,g)}function kc(h){const g=h[3];return nn(g)?g[3]:g}function Eg(h){return sw(h[13])}function Sg(h){return sw(h[4])}function sw(h){for(;null!==h&&!nn(h);)h=h[4];return h}function Zs(h,g,m,_,C){if(null!=_){let w,v=!1;nn(_)?w=_:Di(_)&&(v=!0,_=_[0]);const E=ze(_);0===h&&null!==m?null==C?at(g,m,E):ft(g,m,E,C||null,!0):1===h&&null!==m?ft(g,m,E,C||null,!0):2===h?function kg(h,g,m){const _=Wt(h,g);_&&function uw(h,g,m,_){h.removeChild(g,m,_)}(h,_,g,m)}(g,E,v):3===h&&g.destroyNode(E),null!=w&&function Og(h,g,m,_,C){const w=m[7];w!==ze(m)&&Zs(g,h,_,w,C);for(let E=10;E0&&(h[m-1][4]=_[4]);const w=ru(h,10+g);!function MT(h,g){Bo(h,g,g[11],2,null,null),g[0]=null,g[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Un(h,g){if(!(128&g[2])){const m=g[11];m.destroyNode&&Bo(h,g,m,3,null,null),function PT(h){let g=h[13];if(!g)return Xs(h[1],h);for(;g;){let m=null;if(Di(g))m=g[13];else{const _=g[10];_&&(m=_)}if(!m){for(;g&&!g[4]&&g!==h;)Di(g)&&Xs(g[1],g),g=g[3];null===g&&(g=h),Di(g)&&Xs(g[1],g),m=g&&g[4]}g=m}}(g)}}function Xs(h,g){if(!(128&g[2])){g[2]&=-65,g[2]|=128,function dw(h,g){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=H]():_[C=-H].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)(0,_[w])();g[7]=null}}(h,g),1===g[1].type&&g[11].destroy();const m=g[17];if(null!==m&&nn(g[3])){m!==g[3]&&cw(m,g);const _=g[19];null!==_&&_.detachView(h)}!function Zy(h){yg.delete(h[20])}(g)}}function Pg(h,g,m){return function Rg(h,g,m){let _=g;for(;null!==_&&40&_.type;)_=(g=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===q.None||C===q.Emulated)return null}return Vt(_,m)}(h,g.parent,m)}function ft(h,g,m,_,C){h.insertBefore(g,m,_,C)}function at(h,g,m){h.appendChild(g,m)}function sn(h,g,m,_,C){null!==_?ft(h,g,m,_,C):at(h,g,m)}function Wt(h,g){return h.parentNode(g)}function hw(h,g,m){return Ig(h,g,m)}let Ig=function Du(h,g,m){return 40&h.type?Vt(h,m):null};function Hu(h,g,m,_){const C=Pg(h,_,g),w=g[11],E=hw(_.parent||g[6],_,g);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[L+1].toLowerCase();const re=8&_?X:null;if(re&&-1!==fw(re,H,0)||2&_&&H!==X){if(wn(_))return!1;v=!0}}}}else{if(!v&&!wn(_)&&!wn(S))return!1;if(v&&wn(S))continue;v=!1,_=S|1&_}}return wn(_)||v}function wn(h){return 0==(1&h)}function kT(h,g,m,_){if(null===g)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+E+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!wn(v)&&(g+=Ng(w,C),C=""),_=v,w=w||!wn(_);m++}return""!==C&&(g+=Ng(w,C)),g}const st={};function Vu(h){Bu(ut(),be(),Ri()+h,!1)}function Bu(h,g,m,_){if(!_)if(3==(3&g[2])){const w=h.preOrderCheckHooks;null!==w&&vo(g,w,m)}else{const w=h.preOrderHooks;null!==w&&xa(g,w,0,m)}Vr(m)}function xw(h,g=null,m=null,_){const C=Tw(h,g,m,_);return C.resolveInjectorInitializers(),C}function Tw(h,g=null,m=null,_,C=new Set){const w=[m||Ne,ei(h)];return _=_||("object"==typeof h?void 0:Q(h)),new Dc(w,g||ko(),_||null,C)}let qn=(()=>{class h{static create(m,_){if(Array.isArray(m))return xw({name:""},_,m,"");{const C=m.name??"";return xw({name:C},m.parent,m.providers,C)}}}return h.THROW_IF_NOT_FOUND=zs,h.NULL=new Sc,h.\u0275prov=Dt({token:h,providedIn:"any",factory:()=>si(cg)}),h.__NG_ELEMENT_ID__=-1,h})();function rl(h,g=Qe.Default){const m=be();return null===m?si(h,g):Ef(qt(),m,te(h),g)}function Iw(){throw new Error("invalid")}function jc(h,g){return h<<17|g<<2}function vn(h){return h>>17&32767}function We(h){return 2|h}function Qr(h){return(131068&h)>>2}function Jg(h,g){return-131069&h|g<<2}function Oa(h){return 1|h}function $w(h,g){const m=h.contentQueries;if(null!==m)for(let _=0;_22&&Bu(h,g,22,!1),m(_,C)}finally{Vr(w)}}function $n(h,g,m){if(As(g)){const C=g.directiveEnd;for(let w=g.directiveStart;w0;){const m=h[--g];if("number"==typeof m&&m<0)return m}return 0})(E)!=S&&E.push(S),E.push(_,C,v)}}function gm(h,g){null!==h.hostBindings&&h.hostBindings(1,g)}function mm(h,g){g.flags|=2,(h.components||(h.components=[])).push(g.index)}function Yc(h,g,m){if(m){if(g.exportAs)for(let _=0;_0&&Cm(m)}}function Cm(h){for(let _=Eg(h);null!==_;_=Sg(_))for(let C=10;C<_.length;C++){const w=_[C];if(k(w))if(512&w[2]){const v=w[1];sl(v,w,v.template,w[8])}else w[5]>0&&Cm(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Cm(C)}}function tE(h,g){const m=Ct(g,h),_=m[1];(function tv(h,g){for(let m=g.length;mPromise.resolve(null))();function rv(h){return h[7]||(h[7]=[])}function av(h){return h.cleanup||(h.cleanup=[])}function Yn(h,g,m){return(null===h||Qi(h))&&(m=function Hi(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[g.index])),m[11]}function Na(h,g){const m=h[9],_=m?m.get(Rc,null):null;_&&_.handleError(g)}function Am(h,g,m,_,C){for(let w=0;w-1&&(Su(g,_),ru(m,_))}this._attachedToViewContainer=!1}Un(this._lView[1],this._lView)}onDestroy(g){th(this._lView[1],this._lView,null,g)}markForCheck(){ym(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function wm(h,g,m){const _=g[10];_.begin&&_.begin();try{sl(h,g,h.template,m)}catch(C){throw Na(g,C),C}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function HT(h,g){Bo(h,g,g[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(g){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=g}}class nE extends Jc{constructor(g){super(g),this._view=g}detectChanges(){nv(this._view)}checkNoChanges(){}get context(){return null}}class cl extends Va{constructor(g){super(),this.ngModule=g}resolveComponentFactory(g){const m=Et(g);return new za(m,this.ngModule)}}function dl(h){const g=[];for(let m in h)h.hasOwnProperty(m)&&g.push({propName:h[m],templateName:m});return g}class ov{constructor(g,m){this.injector=g,this.parentInjector=m}get(g,m,_){const C=this.injector.get(g,fg,_);return C!==fg||m===fg?C:this.parentInjector.get(g,m,_)}}class za extends Pc{constructor(g,m){super(),this.componentDef=g,this.ngModule=m,this.componentType=g.type,this.selector=function Cw(h){return h.map(bw).join(",")}(g.selectors),this.ngContentSelectors=g.ngContentSelectors?g.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return dl(this.componentDef.inputs)}get outputs(){return dl(this.componentDef.outputs)}create(g,m,_,C){let w=(C=C||this.ngModule)instanceof vi?C:C?.injector;w&&null!==this.componentDef.getStandaloneInjector&&(w=this.componentDef.getStandaloneInjector(w)||w);const v=w?new ov(g,w):g,E=v.get(Ny,null);if(null===E)throw new ie(407,!1);const S=v.get(Q0,null),H=E.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",L=_?function Wc(h,g,m){return h.selectRootElement(g,m===q.ShadowDom)}(H,_,this.componentDef.encapsulation):Dg(E.createRenderer(null,this.componentDef),R,function sh(h){const g=h.toLowerCase();return"svg"===g?"svg":"math"===g?"math":null}(R)),X=this.componentDef.onPush?288:272,re=function lE(h,g){return{components:[],scheduler:h||bT,clean:iE,playerHandler:g||null,flags:0}}(),me=eh(0,null,null,1,0,null,null,null,null,null),Ae=Gc(null,me,re,X,null,null,E,H,S,v,null);let He,je;yo(Ae);try{const Ze=function sE(h,g,m,_,C,w){const v=m[1];m[22]=h;const S=jo(v,22,2,"#host",null),H=S.mergedAttrs=g.hostAttrs;null!==H&&(ah(S,H,!0),null!==h&&(lr(C,h,H),null!==S.classes&&Oo(C,h,S.classes),null!==S.styles&&Lg(C,h,S.styles)));const R=_.createRenderer(h,g),L=Gc(m,Xu(g),null,g.onPush?32:16,m[22],S,_,R,w||null,null,null);return v.firstCreatePass&&(ac(Vs(S,m),v,g.type),mm(v,S),_m(S,m.length,1)),ll(m,L),m[22]=L}(L,this.componentDef,Ae,E,H);if(L)if(_)lr(H,L,["ng-version",J0.full]);else{const{attrs:ye,classes:$e}=function yw(h){const g=[],m=[];let _=1,C=2;for(;_0&&Oo(H,L,$e.join(" "))}if(je=an(me,22),void 0!==m){const ye=je.projection=[];for(let $e=0;$e=0;_--){const C=h[_];C.hostVars=g+=C.hostVars,C.hostAttrs=Is(C.hostAttrs,m=Is(m,C.hostAttrs))}}(_)}function xm(h){return h===ct?{}:h===Ne?[]:h}function lv(h,g){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{g(_,C),m(_,C)}:g}function Tm(h,g){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{g(_,C,w),m(_,C,w)}:g}function ch(h,g){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{g(_,C),m(_,C)}:g}let Go=null;function Uo(){if(!Go){const h=ce.Symbol;if(h&&h.iterator)Go=h.iterator;else{const g=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mE(ze(bt[_.index])):_.index;let $e=null;if(!E&&S&&($e=function _v(h,g,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?E[S]:null}"string"==typeof v&&(w+=2)}return null}(h,g,C,_.index)),null!==$e)($e.__ngLastListenerFn__||$e).__ngNextListenerFn__=w,$e.__ngLastListenerFn__=w,re=!1;else{w=km(_,g,L,w,!1);const bt=m.listen(je,C,w);X.push(w,bt),R&&R.push(C,ye,Ze,Ze+1)}}else w=km(_,g,L,w,!1);const me=_.outputs;let Ae;if(re&&null!==me&&(Ae=me[C])){const He=Ae.length;if(He)for(let je=0;je0;)g=g[15],h--;return g}(h,le.lFrame.contextLView))[8]}(h)}function bv(h,g){let m=null;const _=function VT(h){const g=h.attrs;if(null!=g){const m=g.indexOf(5);if(0==(1&m))return g[m+1]}return null}(h);for(let C=0;C=0}function Qm(h,g,m){return Jn(h,g,m,!1),Qm}function Jm(h,g){return Jn(h,g,null,!0),Jm}function Jn(h,g,m,_){const C=be(),w=ut(),v=Fn(2);w.firstUpdatePass&&function Ev(h,g,m,_){const C=h.data;if(null===C[m+1]){const w=C[Ri()],v=function Tv(h,g){return g>=h.expandoStartIndex}(h,m);(function Xm(h,g){return 0!=(h.flags&(g?16:32))})(w,_)&&null===g&&!v&&(g=!1),g=function fE(h,g,m,_){const C=or(h);let w=_?g.residualClasses:g.residualStyles;if(null===C)0===(_?g.classBindings:g.styleBindings)&&(m=Zo(m=Km(null,h,g,m,_),g.attrs,_),w=null);else{const v=g.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Km(C,h,g,m,_),null===w){let S=function gE(h,g,m){const _=m?g.classBindings:g.styleBindings;if(0!==Qr(_))return h[vn(_)]}(h,g,_);void 0!==S&&Array.isArray(S)&&(S=Km(null,h,g,S[1],_),S=Zo(S,g.attrs,_),function mE(h,g,m,_){h[vn(m?g.classBindings:g.styleBindings)]=_}(h,g,_,S))}else w=function _E(h,g,m){let _;const C=g.directiveEnd;for(let w=1+g.directiveStylingLast;w0)&&(H=!0)}else R=m;if(C)if(0!==S){const X=vn(h[E+1]);h[_+1]=jc(X,E),0!==X&&(h[X+1]=Jg(h[X+1],_)),h[E+1]=function kw(h,g){return 131071&h|g<<17}(h[E+1],_)}else h[_+1]=jc(E,0),0!==E&&(h[E+1]=Jg(h[E+1],_)),E=_;else h[_+1]=jc(S,0),0===E?E=_:h[S+1]=Jg(h[S+1],_),S=_;H&&(h[_+1]=We(h[_+1])),Gm(h,R,_,!0),Gm(h,R,_,!1),function pE(h,g,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof g&&Eo(w,g)>=0&&(m[_+1]=Oa(m[_+1]))}(g,R,h,_,w),v=jc(E,S),w?g.classBindings=v:g.styleBindings=v}(C,w,g,m,v,_)}}(w,h,v,_),g!==st&&li(C,v,g)&&function Mv(h,g,m,_,C,w,v,E){if(!(3&g.type))return;const S=h.data,H=S[E+1];nd(function Vw(h){return 1==(1&h)}(H)?Zm(S,g,m,C,Qr(H),v):void 0)||(nd(w)||function Qg(h){return 2==(2&h)}(H)&&(w=Zm(S,null,m,C,E,v)),function pw(h,g,m,_,C){if(g)C?h.addClass(m,_):h.removeClass(m,_);else{let w=-1===_.indexOf("-")?void 0:pr.DashCase;null==C?h.removeStyle(m,_,w):("string"==typeof C&&C.endsWith("!important")&&(C=C.slice(0,-10),w|=pr.Important),h.setStyle(m,_,C,w))}}(_,v,ya(Ri(),m),C,w))}(w,w.data[Ri()],C,C[11],h,C[v+1]=function yE(h,g){return null==h||("string"==typeof g?h+=g:"object"==typeof h&&(h=Q(zn(h)))),h}(g,m),_,v)}function Km(h,g,m,_,C){let w=null;const v=m.directiveEnd;let E=m.directiveStylingLast;for(-1===E?E=m.directiveStart:E++;E0;){const S=h[C],H=Array.isArray(S),R=H?S[1]:S,L=null===R;let X=m[C+1];X===st&&(X=L?Ne:void 0);let re=L?ou(X,_):R===_?X:void 0;if(H&&!nd(re)&&(re=ou(S,_)),nd(re)&&(E=re,v))return E;const me=h[C+1];C=v?vn(me):Qr(me)}if(null!==g){let S=w?g.residualClasses:g.residualStyles;null!=S&&(E=ou(S,_))}return E}function nd(h){return void 0!==h}function Dv(h,g=""){const m=be(),_=ut(),C=h+22,w=_.firstCreatePass?jo(_,C,1,g,null):_.data[C],v=m[C]=function Mg(h,g){return h.createText(g)}(m[11],g);Hu(_,m,v,w),Ot(w,!1)}function e_(h){return Ah("",h,""),e_}function Ah(h,g,m){const _=be(),C=Ua(_,h,g,m);return C!==st&&Jr(_,Ri(),C),Ah}function t_(h,g,m,_,C){const w=be(),v=hl(w,h,g,m,_,C);return v!==st&&Jr(w,Ri(),v),t_}function l_(h,g,m){const _=be();return li(_,Aa(),g)&&Ai(ut(),Qt(),_,h,g,_[11],m,!0),l_}function c_(h,g,m){const _=be();if(li(_,Aa(),g)){const w=ut(),v=Qt();Ai(w,v,_,h,g,Yn(or(w.data),v,_),m,!0)}return c_}const Zn=void 0;var Kv=["en",[["a","p"],["AM","PM"],Zn],[["AM","PM"],Zn,Zn],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zn,"{1} 'at' {0}",Zn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function d_(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let es={};function Th(h){const g=function TE(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=eA(g);if(m)return m;const _=g.split("-")[0];if(m=eA(_),m)return m;if("en"===_)return Kv;throw new ie(701,!1)}function Xv(h){return Th(h)[Ke.PluralCase]}function eA(h){return h in es||(es[h]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[h]),es[h]}var Ke=(()=>((Ke=Ke||{})[Ke.LocaleId=0]="LocaleId",Ke[Ke.DayPeriodsFormat=1]="DayPeriodsFormat",Ke[Ke.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ke[Ke.DaysFormat=3]="DaysFormat",Ke[Ke.DaysStandalone=4]="DaysStandalone",Ke[Ke.MonthsFormat=5]="MonthsFormat",Ke[Ke.MonthsStandalone=6]="MonthsStandalone",Ke[Ke.Eras=7]="Eras",Ke[Ke.FirstDayOfWeek=8]="FirstDayOfWeek",Ke[Ke.WeekendRange=9]="WeekendRange",Ke[Ke.DateFormat=10]="DateFormat",Ke[Ke.TimeFormat=11]="TimeFormat",Ke[Ke.DateTimeFormat=12]="DateTimeFormat",Ke[Ke.NumberSymbols=13]="NumberSymbols",Ke[Ke.NumberFormats=14]="NumberFormats",Ke[Ke.CurrencyCode=15]="CurrencyCode",Ke[Ke.CurrencySymbol=16]="CurrencySymbol",Ke[Ke.CurrencyName=17]="CurrencyName",Ke[Ke.Currencies=18]="Currencies",Ke[Ke.Directionality=19]="Directionality",Ke[Ke.PluralCase=20]="PluralCase",Ke[Ke.ExtraData=21]="ExtraData",Ke))();const _l="en-US";let u_=_l;function Nh(h,g,m,_,C){if(h=te(h),Array.isArray(h))for(let w=0;w>20;if(Ki(h)||!h.multi){const re=new Rs(S,C,rl),me=Gh(E,g,C?R:R+X,L);-1===me?(ac(Vs(H,v),w,E),zh(w,h,g.length),g.push(E),H.directiveStart++,H.directiveEnd++,C&&(H.providerIndexes+=1048576),m.push(re),v.push(re)):(m[me]=re,v[me]=re)}else{const re=Gh(E,g,R+X,L),me=Gh(E,g,R,R+X),Ae=re>=0&&m[re],He=me>=0&&m[me];if(C&&!He||!C&&!Ae){ac(Vs(H,v),w,E);const je=function kE(h,g,m,_,C){const w=new Rs(h,m,rl);return w.multi=[],w.index=g,w.componentProviders=0,as(w,C,_&&!m),w}(C?yA:CA,m.length,C,_,S);!C&&He&&(m[me].providerFactory=je),zh(w,h,g.length,0),g.push(E),H.directiveStart++,H.directiveEnd++,C&&(H.providerIndexes+=1048576),m.push(je),v.push(je)}else zh(w,h,re>-1?re:me,as(m[C?me:re],S,!C&&_));!C&&_&&He&&m[me].componentProviders++}}}function zh(h,g,m,_){const C=Ki(g),w=function Iy(h){return!!h.useClass}(g);if(C||w){const S=(w?te(g.useClass):g).prototype.ngOnDestroy;if(S){const H=h.destroyHooks||(h.destroyHooks=[]);if(!C&&g.multi){const R=H.indexOf(m);-1===R?H.push(m,[_,S]):H[R+1].push(_,S)}else H.push(m,S)}}}function as(h,g,m){return m&&h.componentProviders++,h.multi.push(g)-1}function Gh(h,g,m,_){for(let C=m;C<_;C++)if(g[C]===h)return C;return-1}function CA(h,g,m,_){return dd(this.multi,[])}function yA(h,g,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,E=Os(m,m[1],this.providerFactory.index,_);w=E.slice(0,v),dd(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Dl(h,g,m){const _=ut();if(_.firstCreatePass){const C=Qi(h);Nh(m,_.data,_.blueprint,C,!0),Nh(g,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,g)}}class os{}class P_{}function wA(h,g){return new R_(h,g??null)}class R_ extends os{constructor(g,m){super(),this._parent=m,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const _=ji(g);this._bootstrapComponents=$r(_.bootstrap),this._r3Injector=Tw(g,m,[{provide:os,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],Q(g),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(g)}get injector(){return this._r3Injector}destroy(){const g=this._r3Injector;!g.destroyed&&g.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(g){this.destroyCbs.push(g)}}class I_ extends P_{constructor(g){super(),this.moduleType=g}create(g){return new R_(this.moduleType,g)}}class k_ extends os{constructor(g,m,_){super(),this.componentFactoryResolver=new cl(this),this.instance=null;const C=new Dc([...g,{provide:os,useValue:this},{provide:Va,useValue:this.componentFactoryResolver}],m||ko(),_,new Set(["environment"]));this.injector=C,C.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(g){this.injector.onDestroy(g)}}function Hl(h,g,m=null){return new k_(h,g,m).injector}function HA(h,g,m,_){return O_(be(),Bi(),h,g,m,_)}function ud(h,g){const m=h[g];return m===st?void 0:m}function O_(h,g,m,_,C,w){const v=g+m;return li(h,v,C)?Qn(h,v+1,w?_.call(w,C):_(C)):ud(h,v+1)}function F_(h,g,m,_,C,w,v,E){const S=g+m;return function Xc(h,g,m,_,C){const w=Xr(h,g,m,_);return li(h,g+2,C)||w}(h,S,C,w,v)?Qn(h,S+3,E?_.call(E,C,w,v):_(C,w,v)):ud(h,S+3)}function VA(h,g){const m=ut();let _;const C=h+22;m.firstCreatePass?(_=function YE(h,g){if(g)for(let m=g.length-1;m>=0;m--){const _=g[m];if(h===_.name)return _}}(g,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=De(_.type)),v=Ei(rl);try{const E=ks(!1),S=w();return ks(E),function Hm(h,g,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),g[m]=_}(m,be(),C,S),S}finally{Ei(v)}}function BA(h,g,m){const _=h+22,C=be(),w=zi(C,_);return pd(C,_)?O_(C,Bi(),g,w.transform,m,w):w.transform(m)}function OA(h,g,m,_){const C=h+22,w=be(),v=zi(w,C);return pd(w,C)?function L_(h,g,m,_,C,w,v){const E=g+m;return Xr(h,E,C,w)?Qn(h,E+2,v?_.call(v,C,w):_(C,w)):ud(h,E+2)}(w,Bi(),g,v.transform,m,_,v):v.transform(m,_)}function LA(h,g,m,_,C){const w=h+22,v=be(),E=zi(v,w);return pd(v,w)?F_(v,Bi(),g,E.transform,m,_,C,E):E.transform(m,_,C)}function pd(h,g){return h[1].data[g].pure}function j_(h){return g=>{setTimeout(h,void 0,g)}}const wr=class JE extends T.x{constructor(g=!1){super(),this.__isAsync=g}emit(g){super.next(g)}subscribe(g,m,_){let C=g,w=m||(()=>null),v=_;if(g&&"object"==typeof g){const S=g;C=S.next?.bind(S),w=S.error?.bind(S),v=S.complete?.bind(S)}this.__isAsync&&(w=j_(w),C&&(C=j_(C)),v&&(v=j_(v)));const E=super.subscribe({next:C,error:w,complete:v});return g instanceof p.w0&&g.add(E),E}};function KE(){return this._results[Uo()]()}class Uh{constructor(g=!1){this._emitDistinctChangesOnly=g,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=Uo(),_=Uh.prototype;_[m]||(_[m]=KE)}get changes(){return this._changes||(this._changes=new wr)}get(g){return this._results[g]}map(g){return this._results.map(g)}filter(g){return this._results.filter(g)}find(g){return this._results.find(g)}reduce(g,m){return this._results.reduce(g,m)}forEach(g){this._results.forEach(g)}some(g){return this._results.some(g)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(g,m){const _=this;_.dirty=!1;const C=on(g);(this._changesDetected=!function Pf(h,g,m){if(h.length!==g.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=XE,h})();const ZE=fd,N_=class extends ZE{constructor(g,m,_){super(),this._declarationLView=g,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(g,m){const _=this._declarationTContainer.tViews,C=Gc(this._declarationLView,_,g,16,null,_.declTNode,null,null,null,null,m||null);C[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(C[19]=v.createEmbeddedView(_)),Uc(_,C,g),new Jc(C)}};function XE(){return cs(qt(),be())}function cs(h,g){return 4&h.type?new N_(g,h,qr(h,g)):null}let qh=(()=>{class h{}return h.__NG_ELEMENT_ID__=eS,h})();function eS(){return G_(qt(),be())}const tS=qh,jA=class extends tS{constructor(g,m,_){super(),this._lContainer=g,this._hostTNode=m,this._hostLView=_}get element(){return qr(this._hostTNode,this._hostLView)}get injector(){return new Gi(this._hostTNode,this._hostLView)}get parentInjector(){const g=rc(this._hostTNode,this._hostLView);if(ic(g)){const m=Or(g,this._hostLView),_=jn(g);return new Gi(m[1].data[_+8],m)}return new Gi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(g){const m=NA(this._lContainer);return null!==m&&m[g]||null}get length(){return this._lContainer.length-10}createEmbeddedView(g,m,_){let C,w;"number"==typeof _?C=_:null!=_&&(C=_.index,w=_.injector);const v=g.createEmbeddedView(m||{},w);return this.insert(v,C),v}createComponent(g,m,_,C,w){const v=g&&!function Fs(h){return"function"==typeof h}(g);let E;if(v)E=m;else{const L=m||{};E=L.index,_=L.injector,C=L.projectableNodes,w=L.environmentInjector||L.ngModuleRef}const S=v?g:new za(Et(g)),H=_||this.parentInjector;if(!w&&null==S.ngModule){const X=(v?H:this.parentInjector).get(vi,null);X&&(w=X)}const R=S.create(H,C,void 0,w);return this.insert(R.hostView,E),R}insert(g,m){const _=g._lView,C=_[1];if(function D(h){return nn(h[3])}(_)){const R=this.indexOf(g);if(-1!==R)this.detach(R);else{const L=_[3],X=new jA(L,L[6],L[3]);X.detach(X.indexOf(g))}}const w=this._adjustIndex(m),v=this._lContainer;!function RT(h,g,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=g),_0)_.push(v[E/2]);else{const H=w[E+1],R=g[-S];for(let L=10;L{class h{constructor(m){this.appInits=m,this.resolve=eo,this.reject=eo,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:E,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(si(ps,8))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const cp=new At("AppId",{providedIn:"root",factory:function Ed(){return`${gs()}${gs()}${gs()}`}});function gs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const dp=new At("Platform Initializer"),sb=new At("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),kl=new At("appBootstrapListener"),cS=new At("AnimationModuleType");let dS=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const hp=new At("LocaleId",{providedIn:"root",factory:()=>Bf(hp,Qe.Optional|Qe.SkipSelf)||function rx(){return typeof $localize<"u"&&$localize.locale||_l}()}),Sd=new At("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class ax{constructor(g,m){this.ngModuleFactory=g,this.componentFactories=m}}let gp=(()=>{class h{compileModuleSync(m){return new I_(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=$r(ji(m).declarations).reduce((v,E)=>{const S=Et(E);return S&&v.push(new za(S)),v},[]);return new ax(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const hS=(()=>Promise.resolve(0))();function _p(h){typeof Zone>"u"?hS.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class un{constructor({enableLongStackTrace:g=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wr(!1),this.onMicrotaskEmpty=new wr(!1),this.onStable=new wr(!1),this.onError=new wr(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const C=this;if(C._nesting=0,C._outer=C._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const w=Zone.AsyncStackTaggingZoneSpec;C._inner=C._inner.fork(new w("Angular"))}Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),g&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function cb(){let h=ce.requestAnimationFrame,g=ce.cancelAnimationFrame;if(typeof Zone<"u"&&h&&g){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=g[Zone.__symbol__("OriginalDelegate")];_&&(g=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:g}}().nativeRequestAnimationFrame,function yp(h){const g=()=>{!function db(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(ce,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,wp(h),h.isCheckStableRunning=!0,Cp(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),wp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,E)=>{try{return lx(h),m.invokeTask(C,w,v,E)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&g(),ub(h)}},onInvoke:(m,_,C,w,v,E,S)=>{try{return lx(h),m.invoke(C,w,v,E,S)}finally{h.shouldCoalesceRunChangeDetection&&g(),ub(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,wp(h),Cp(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!un.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(un.isInAngularZone())throw new ie(909,!1)}run(g,m,_){return this._inner.run(g,m,_)}runTask(g,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,g,bp,eo,eo);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(g,m,_){return this._inner.runGuarded(g,m,_)}runOutsideAngular(g){return this._outer.run(g)}}const bp={};function Cp(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function wp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function lx(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function ub(h){h._nesting--,Cp(h)}class Vl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wr,this.onMicrotaskEmpty=new wr,this.onStable=new wr,this.onError=new wr}run(g,m,_){return g.apply(m,_)}runGuarded(g,m,_){return g.apply(m,_)}runOutsideAngular(g){return g()}runTask(g,m,_,C){return g.apply(m,_)}}const ms=new At(""),vp=new At("");let Ap,hb=(()=>{class h{constructor(m,_,C){this._ngZone=m,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ap||(function pb(h){Ap=h}(C),C.addToWindow(_)),this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{un.assertNotInAngularZone(),_p(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())_p(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(m){this.registry.registerApplication(m,this)}unregisterApplication(m){this.registry.unregisterApplication(m)}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(si(un),si(to),si(vp))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac}),h})(),to=(()=>{class h{constructor(){this._applications=new Map}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return Ap?.findTestabilityInTree(this,m,_)??null}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),vr=null;const cx=new At("AllowMultipleToken"),fb=new At("PlatformDestroyListeners");class dx{constructor(g,m){this.name=g,this.token=m}}function Tp(h,g,m=[]){const _=`Platform: ${g}`,C=new At(_);return(w=[])=>{let v=Ep();if(!v||v.injector.get(cx,!1)){const E=[...m,...w,{provide:C,useValue:!0}];h?h(E):function mb(h){if(vr&&!vr.get(cx,!1))throw new ie(400,!1);vr=h;const g=h.get(Sp);(function _b(h){const g=h.get(dp,null);g&&g.forEach(m=>m())})(h)}(function hx(h=[],g){return qn.create({name:g,providers:[{provide:dg,useValue:"platform"},{provide:fb,useValue:new Set([()=>vr=null])},...h]})}(E,_))}return function ux(h){const g=Ep();if(!g)throw new ie(401,!1);return g}()}}function Ep(){return vr?.get(Sp)??null}let Sp=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const C=function Cb(h,g){let m;return m="noop"===h?new Vl:("zone.js"===h?void 0:h)||new un(g),m}(_?.ngZone,function bb(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(_)),w=[{provide:un,useValue:C}];return C.run(()=>{const v=qn.create({providers:w,parent:this.injector,name:m.moduleType.name}),E=m.create(v),S=E.injector.get(Rc,null);if(!S)throw new ie(402,!1);return C.runOutsideAngular(()=>{const H=C.onError.subscribe({next:R=>{S.handleError(R)}});E.onDestroy(()=>{Pd(this._modules,E),H.unsubscribe()})}),function Hd(h,g,m){try{const _=m();return td(_)?_.catch(C=>{throw g.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw g.runOutsideAngular(()=>h.handleError(_)),_}}(S,C,()=>{const H=E.injector.get(fs);return H.runInitializers(),H.donePromise.then(()=>(function ts(h){It(h,"Expected localeId to be defined"),"string"==typeof h&&(u_=h.toLowerCase().replace(/_/g,"-"))}(E.injector.get(hp,_l)||_l),this._moduleDoBootstrap(E),E))})})}bootstrapModule(m,_=[]){const C=yb({},_);return function pS(h,g,m){const _=new I_(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Bl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new ie(403,!1);m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const m=this._injector.get(fb,null);m&&(m.forEach(_=>_()),m.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(si(qn))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function yb(h,g){return Array.isArray(g)?g.reduce(yb,h):{...h,...g}}let Bl=(()=>{class h{constructor(m,_,C){this._zone=m,this._injector=_,this._exceptionHandler=C,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const w=new V.y(E=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{E.next(this._stable),E.complete()})}),v=new V.y(E=>{let S;this._zone.runOutsideAngular(()=>{S=this._zone.onStable.subscribe(()=>{un.assertNotInAngularZone(),_p(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,E.next(!0))})})});const H=this._zone.onUnstable.subscribe(()=>{un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{E.next(!1)}))});return()=>{S.unsubscribe(),H.unsubscribe()}});this.isStable=(0,O.T)(w,v.pipe((0,I.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(m,_){const C=m instanceof Pc;if(!this._injector.get(fs).done)throw!C&&Xa(m),new ie(405,false);let v;v=C?m:this._injector.get(Va).resolveComponentFactory(m),this.componentTypes.push(v.componentType);const E=function gb(h){return h.isBoundToModule}(v)?void 0:this._injector.get(os),H=v.create(qn.NULL,[],_||v.selector,E),R=H.location.nativeElement,L=H.injector.get(ms,null);return L?.registerApplication(R),H.onDestroy(()=>{this.detachView(H.hostView),Pd(this.components,H),L?.unregisterApplication(R)}),this._loadComponent(H),H}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;Pd(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(kl,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(m=>m()),this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(m){return this._destroyListeners.push(m),()=>Pd(this._destroyListeners,m)}destroy(){if(this._destroyed)throw new ie(406,!1);const m=this._injector;m.destroy&&!m.destroyed&&m.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(m){return new(m||h)(si(un),si(vi),si(Rc))},h.\u0275prov=Dt({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Pd(h,g){const m=h.indexOf(g);m>-1&&h.splice(m,1)}let Rd=!0;function Ab(){Rd=!1}let Eb=(()=>{class h{}return h.__NG_ELEMENT_ID__=gx,h})();function gx(h){return function Mp(h,g,m){if(Ca(h)&&!m){const _=Ct(h.index,g);return new Jc(_,_)}return 47&h.type?new Jc(g[16],g):null}(qt(),be(),16==(16&h))}class Db{constructor(){}supports(g){return ul(g)}create(g){return new yx(g)}}const Hb=(h,g)=>g;class yx{constructor(g){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=g||Hb}forEachItem(g){let m;for(m=this._itHead;null!==m;m=m._next)g(m)}forEachOperation(g){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,E),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,E,v,C)),Object.is(m.item,E)||this._addIdentityChange(m,E)):(m=this._mismatch(m,E,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=g,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let g;for(g=this._previousItHead=this._itHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._additionsHead;null!==g;g=g._nextAdded)g.previousIndex=g.currentIndex;for(this._additionsHead=this._additionsTail=null,g=this._movesHead;null!==g;g=g._nextMoved)g.previousIndex=g.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(g,m,_,C){let w;return null===g?w=this._itTail:(w=g._prev,this._remove(g)),null!==(g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._reinsertAfter(g,w,C)):null!==(g=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(g.item,m)||this._addIdentityChange(g,m),this._moveAfter(g,w,C)):g=this._addAfter(new Pb(m,_),w,C),g}_verifyReinsertion(g,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?g=this._reinsertAfter(w,g._prev,C):g.currentIndex!=C&&(g.currentIndex=C,this._addToMoves(g,C)),g}_truncate(g){for(;null!==g;){const m=g._next;this._addToRemovals(this._unlink(g)),g=m}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(g,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(g);const C=g._prevRemoved,w=g._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(g,m,_),this._addToMoves(g,_),g}_moveAfter(g,m,_){return this._unlink(g),this._insertAfter(g,m,_),this._addToMoves(g,_),g}_addAfter(g,m,_){return this._insertAfter(g,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=g:this._additionsTail._nextAdded=g,g}_insertAfter(g,m,_){const C=null===m?this._itHead:m._next;return g._next=C,g._prev=m,null===C?this._itTail=g:C._prev=g,null===m?this._itHead=g:m._next=g,null===this._linkedRecords&&(this._linkedRecords=new wx),this._linkedRecords.put(g),g.currentIndex=_,g}_remove(g){return this._addToRemovals(this._unlink(g))}_unlink(g){null!==this._linkedRecords&&this._linkedRecords.remove(g);const m=g._prev,_=g._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,g}_addToMoves(g,m){return g.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=g:this._movesTail._nextMoved=g),g}_addToRemovals(g){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wx),this._unlinkedRecords.put(g),g.currentIndex=null,g._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=g,g._prevRemoved=null):(g._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=g),g}_addIdentityChange(g,m){return g.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=g:this._identityChangesTail._nextIdentityChange=g,g}}class Pb{constructor(g,m){this.item=g,this.trackById=m,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class vS{constructor(){this._head=null,this._tail=null}add(g){null===this._head?(this._head=this._tail=g,g._nextDup=null,g._prevDup=null):(this._tail._nextDup=g,g._prevDup=this._tail,g._nextDup=null,this._tail=g)}get(g,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,g))return _;return null}remove(g){const m=g._prevDup,_=g._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class wx{constructor(){this.map=new Map}put(g){const m=g.trackById;let _=this.map.get(m);_||(_=new vS,this.map.set(m,_)),_.add(g)}get(g,m){const C=this.map.get(g);return C?C.get(g,m):null}remove(g){const m=g.trackById;return this.map.get(m).remove(g)&&this.map.delete(m),g}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function vx(h,g,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(g,m){if(g){const _=g._prev;return m._next=g,m._prev=_,g._prev=m,_&&(_._next=m),g===this._mapHead&&(this._mapHead=m),this._appendAfter=g,g}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(g,m){if(this._records.has(g)){const C=this._records.get(g);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new ao(g);return this._records.set(g,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let g;for(this._previousMapHead=this._mapHead,g=this._previousMapHead;null!==g;g=g._next)g._nextPrevious=g._next;for(g=this._changesHead;null!==g;g=g._nextChanged)g.previousValue=g.currentValue;for(g=this._additionsHead;null!=g;g=g._nextAdded)g.previousValue=g.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(g,m){Object.is(m,g.currentValue)||(g.previousValue=g.currentValue,g.currentValue=m,this._addToChanges(g))}_addToAdditions(g){null===this._additionsHead?this._additionsHead=this._additionsTail=g:(this._additionsTail._nextAdded=g,this._additionsTail=g)}_addToChanges(g){null===this._changesHead?this._changesHead=this._changesTail=g:(this._changesTail._nextChanged=g,this._changesTail=g)}_forEach(g,m){g instanceof Map?g.forEach(m):Object.keys(g).forEach(_=>m(g[_],_))}}class ao{constructor(g){this.key=g,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Vp(){return new Rb([new Db])}let Rb=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Vp()),deps:[[h,new Pa,new Mo]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new ie(901,!1)}}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:Vp}),h})();function Bp(){return new Op([new Ip])}let Op=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Bp()),deps:[[h,new Pa,new Mo]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(_)return _;throw new ie(901,!1)}}return h.\u0275prov=Dt({token:h,providedIn:"root",factory:Bp}),h})();const Tx=Tp(null,"core",[]);let xS=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(si(Bl))},h.\u0275mod=Sr({type:h}),h.\u0275inj=ri({}),h})();function TS(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class F extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return F.\u0275fac=function(){let N;return function(T){return(N||(N=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(F)))(T||F)}}(),F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class F{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class ReceivedTokens{}class OAuthEvent{constructor(N){this.type=N}}class OAuthSuccessEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(N,x=null){super(N),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(N,x,T=null){super(N),this.reason=x,this.params=T}}function b64DecodeUnicode(F){const N=F.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(N).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(F){return btoa(F).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(N){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},N&&Object.assign(this,N)}}class WebHttpUrlEncodingCodec{encodeKey(N){return encodeURIComponent(N)}encodeValue(N){return encodeURIComponent(N)}decodeKey(N){return decodeURIComponent(N)}decodeValue(N){return decodeURIComponent(N)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(N){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let T=x.inferHashAlgorithm(N.idTokenHeader),p=yield x.calcHash(N.accessToken,T),O=base64UrlEncode(p.substr(0,p.length/2)),I=N.idTokenClaims.at_hash.replace(/=/g,"");return O!==I&&(console.error("exptected at_hash: "+O),console.error("actual at_hash: "+I)),O===I})()}inferHashAlgorithm(N){let x=N.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class F{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const p=T.indexOf("?");return T=T.substr(p>-1?p+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let p,V,O,I,j,W,Q;if(null===x)return T;p=x.split("&");for(let U=0;U>6,V[I++]=128|63&j):j<55296||j>=57344?(V[I++]=224|j>>12,V[I++]=128|j>>6&63,V[I++]=128|63&j):(j=65536+((1023&j)<<10|1023&F.charCodeAt(++T)),V[I++]=240|j>>18,V[I++]=128|j>>12&63,V[I++]=128|j>>6&63,V[I++]=128|63&j);F=V}else{if("object"!==p)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR)}F.length>64&&(F=new Sha256(N,!0).update(F).array());var W=[],Q=[];for(T=0;T<64;++T){var U=F[T]||0;W[T]=92^U,Q[T]=54^U}Sha256.call(this,N,x),this.update(Q),this.oKeyPad=W,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(F){if(!this.finalized){var N,x=typeof F;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===F)throw new Error(ERROR);if(ARRAY_BUFFER&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!(Array.isArray(F)||ARRAY_BUFFER&&ArrayBuffer.isView(F)))throw new Error(ERROR);N=!0}for(var T,V,p=0,O=F.length,I=this.blocks;p>2]|=F[p]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[V>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=V-64,this.hash(),this.hashed=!0):this.start=V}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,N=this.lastByteIndex;F[16]=this.block,F[N>>2]|=EXTRA[3&N],this.block=F[16],N>=56&&(this.hashed||this.hash(),F[0]=this.block,F[16]=F[1]=F[2]=F[3]=F[4]=F[5]=F[6]=F[7]=F[8]=F[9]=F[10]=F[11]=F[12]=F[13]=F[14]=F[15]=0),F[14]=this.hBytes<<3|this.bytes>>>29,F[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var W,G,J,ie,de,he,F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=this.blocks;for(W=16;W<64;++W)j[W]=j[W-16]+(((G=j[W-15])>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+j[W-7]+(((G=j[W-2])>>>17|G<<15)^(G>>>19|G<<13)^G>>>10)<<0;for(he=N&x,W=0;W<64;W+=4)this.first?(this.is224?(J=300032,I=(G=j[0]-1413257819)-150054599<<0,T=G+24177077<<0):(J=704751109,I=(G=j[0]-210244248)-1521486534<<0,T=G+143694565<<0),this.first=!1):(I=T+(G=I+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&V^~p&O)+K[W]+j[W])<<0,T=G+(((F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10))+((J=F&N)^F&x^he))<<0),O=x+(G=O+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&p^~I&V)+K[W+1]+j[W+1])<<0,x=G+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ie=T&F)^T&N^J))<<0,V=N+(G=V+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&I^~O&p)+K[W+2]+j[W+2])<<0,N=G+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&F^ie))<<0,p=F+(G=p+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<<7))+(V&O^~V&I)+K[W+3]+j[W+3])<<0,F=G+(((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+((he=N&x)^N&T^de))<<0;this.h0=this.h0+F<<0,this.h1=this.h1+N<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+p<<0,this.h5=this.h5+V<<0,this.h6=this.h6+O<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=HEX_CHARS[F>>28&15]+HEX_CHARS[F>>24&15]+HEX_CHARS[F>>20&15]+HEX_CHARS[F>>16&15]+HEX_CHARS[F>>12&15]+HEX_CHARS[F>>8&15]+HEX_CHARS[F>>4&15]+HEX_CHARS[15&F]+HEX_CHARS[N>>28&15]+HEX_CHARS[N>>24&15]+HEX_CHARS[N>>20&15]+HEX_CHARS[N>>16&15]+HEX_CHARS[N>>12&15]+HEX_CHARS[N>>8&15]+HEX_CHARS[N>>4&15]+HEX_CHARS[15&N]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[V>>28&15]+HEX_CHARS[V>>24&15]+HEX_CHARS[V>>20&15]+HEX_CHARS[V>>16&15]+HEX_CHARS[V>>12&15]+HEX_CHARS[V>>8&15]+HEX_CHARS[V>>4&15]+HEX_CHARS[15&V]+HEX_CHARS[O>>28&15]+HEX_CHARS[O>>24&15]+HEX_CHARS[O>>20&15]+HEX_CHARS[O>>16&15]+HEX_CHARS[O>>12&15]+HEX_CHARS[O>>8&15]+HEX_CHARS[O>>4&15]+HEX_CHARS[15&O];return this.is224||(j+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),j},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var F=this.h0,N=this.h1,x=this.h2,T=this.h3,p=this.h4,V=this.h5,O=this.h6,I=this.h7,j=[F>>24&255,F>>16&255,F>>8&255,255&F,N>>24&255,N>>16&255,N>>8&255,255&N,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,p>>24&255,p>>16&255,p>>8&255,255&p,V>>24&255,V>>16&255,V>>8&255,255&V,O>>24&255,O>>16&255,O>>8&255,255&O];return this.is224||j.push(I>>24&255,I>>16&255,I>>8&255,255&I),j},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var F=new ArrayBuffer(this.is224?28:32),N=new DataView(F);return N.setUint32(0,this.h0),N.setUint32(4,this.h1),N.setUint32(8,this.h2),N.setUint32(12,this.h3),N.setUint32(16,this.h4),N.setUint32(20,this.h5),N.setUint32(24,this.h6),this.is224||N.setUint32(28,this.h7),F},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var F=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(F),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(F){if("string"!=typeof F)throw new TypeError("expected string");var N,x=F,T=new Uint8Array(x.length);for(N=0;N{class F{calcHash(x,T){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let T="";for(let p of x)T+=String.fromCharCode(p);return T}toHashString(x){const T=new Uint8Array(x);let p="";for(let V of T)p+=String.fromCharCode(V);return p}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})(),OAuthService=(()=>{class F extends AuthConfig{constructor(x,T,p,V,O,I,j,W,Q,U){super(),this.ngZone=x,this.http=T,this.config=O,this.urlHelper=I,this.logger=j,this.crypto=W,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=Q,O||(O={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),V&&(this.tokenValidationHandler=V),O&&this.configure(O);try{p?this.setStorage(p):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=window?.navigator?.userAgent;($?.includes("MSIE ")||$?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,p=!0){let V=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(O=>{"token_received"===O.type?V=!0:"logout"===O.type&&(V=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_expires"===O.type&&(null==T||"any"===T||O.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(O=>{V&&this.refreshInternal(x,p).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],p=this.validateUrlForHttps(x),V=this.validateUrlAgainstIssuer(x);return p||T.push("https for all urls required. Also for urls received by discovery."),V||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),p=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),p=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(V=>{this.ngZone.run(()=>{this.eventsSubject.next(V)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const p=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(p-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,p)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(V=>{if(!this.validateDiscoveryDocument(V))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void p("discovery_document_validation_error");this.loginUrl=V.authorization_endpoint,this.logoutUrl=V.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=V.grant_types_supported,this.issuer=V.issuer,this.tokenEndpoint=V.token_endpoint,this.userinfoEndpoint=V.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=V.jwks_uri,this.sessionCheckIFrameUrl=V.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(V),this.revocationEndpoint=V.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(O=>{const j=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:V,jwks:O});this.eventsSubject.next(j),T(j)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",O)),p(O)})},V=>{this.logger.error("error loading discovery document",V),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",V)),p(V)}):p("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(p=>{this.jwks=p,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(p)},p=>{this.logger.error("error loading jwks",p),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",p)),T(p)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,p).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:p,observe:"response",responseType:"text"}).subscribe(V=>{if(this.debug("userinfo received",JSON.stringify(V)),V.headers.get("content-type").startsWith("application/json")){let O=JSON.parse(V.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||O.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");O=Object.assign({},I,O),this._storage.setItem("id_token_claims_obj",JSON.stringify(O)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:O})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(V.body))},V=>{this.logger.error("error loading user info",V),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",V)),T(V)})})}fetchTokenUsingPasswordFlow(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},p)}fetchTokenUsingGrant(x,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let V=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(V=V.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(V=V.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))V=V.set(O,this.customQueryParams[O]);for(const O of Object.keys(T))V=V.set(O,T[O]);return p=p.set("Content-Type","application/x-www-form-urlencoded"),new Promise((O,I)=>{this.http.post(this.tokenEndpoint,V,{headers:p}).subscribe(j=>{this.debug("tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.oidc&&j.id_token&&this.processIdToken(j.id_token,j.access_token).then(W=>{this.storeIdToken(W),O(j)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),O(j)},j=>{this.logger.error("Error performing ${grantType} flow",j),this.eventsSubject.next(new OAuthErrorEvent("token_error",j)),I(j)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),V=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const O=btoa(`${this.clientId}:${this.dummyClientSecret}`);V=V.set("Authorization","Basic "+O)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const O of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(O,this.customQueryParams[O]);this.http.post(this.tokenEndpoint,p,{headers:V}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(O=>O.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(O.id_token,O.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>O)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(O))).subscribe(O=>{this.debug("refresh tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(O)},O=>{this.logger.error("Error refreshing token",O),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",O)),T(O)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(p=>this.debug("tryLogin during silent refresh failed",p))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const p=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const V=this.document.getElementById(this.silentRefreshIFrameName);V&&this.document.body.removeChild(V),this.silentRefreshSubject=p.sub;const O=this.document.createElement("iframe");O.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{O.setAttribute("src",U),this.silentRefreshShowIFrame||(O.style.display="none"),this.document.body.appendChild(O)});const j=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),W=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([j,W,Q]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((p,V)=>{let j,I=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(I=x.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const W=te=>{this.tryLogin({customHashFragment:te,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),p(!0)},ne=>{U(),V(ne)})};I?j=window.setInterval(()=>{(!I||I.closed)&&(U(),V(new OAuthErrorEvent("popup_closed",{})))},500):V(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(j),window.removeEventListener("storage",G),window.removeEventListener("message",$),null!==I&&I.close(),I=null},$=te=>{const ne=this.processMessageEventMessage(te);ne&&null!==ne?(window.removeEventListener("storage",G),W(ne)):console.log("false event firing")},G=te=>{"auth_hash"===te.key&&(window.removeEventListener("message",$),W(te.newValue))};window.addEventListener("message",$),window.addEventListener("storage",G)}))}calculatePopupFeatures(x){const T=x.height||470,p=x.width||500,V=window.screenLeft+(window.outerWidth-p)/2;return`location=no,toolbar=no,width=${p},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${V}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const p=x.data;return p.startsWith(T)?"#"+p.substr(T.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),p=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),p.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",p,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",p="",V=!1,O={}){var I=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const j=I;let W;W=p||I.redirectUri;const Q=yield I.createAndSaveNonce();if(x=x?Q+I.config.nonceStateSeparator+encodeURIComponent(x):Q,!I.requestAccessToken&&!I.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");I.responseType=I.config.responseType?I.config.responseType:I.oidc&&I.requestAccessToken?"id_token token":I.oidc&&!I.requestAccessToken?"id_token":"token";const U=j.loginUrl.indexOf("?")>-1?"&":"?";let $=j.scope;I.oidc&&!$.match(/(^|\s)openid($|\s)/)&&($="openid "+$);let G=j.loginUrl+U+"response_type="+encodeURIComponent(j.responseType)+"&client_id="+encodeURIComponent(j.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(W)+"&scope="+encodeURIComponent($);if(I.responseType.includes("code")&&!I.disablePKCE){const[te,ne]=yield I.createChallangeVerifierPairForPKCE();I.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",ne):I._storage.setItem("PKCE_verifier",ne),G+="&code_challenge="+te,G+="&code_challenge_method=S256"}T&&(G+="&login_hint="+encodeURIComponent(T)),j.resource&&(G+="&resource="+encodeURIComponent(j.resource)),j.oidc&&(G+="&nonce="+encodeURIComponent(Q)),V&&(G+="&prompt=none");for(const te of Object.keys(O))G+="&"+encodeURIComponent(te)+"="+encodeURIComponent(O[te]);if(I.customQueryParams)for(const te of Object.getOwnPropertyNames(I.customQueryParams))G+="&"+te+"="+encodeURIComponent(I.customQueryParams[te]);return G})()}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,V,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initImplicitFlow",O),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"discovery_document_loaded"===p.type)).subscribe(p=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const p={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(p)}}storeAccessTokenResponse(x,T,p,V,O){if(this._storage.setItem("access_token",x),V&&!Array.isArray(V)?this._storage.setItem("granted_scopes",JSON.stringify(V.split(" "))):V&&Array.isArray(V)&&this._storage.setItem("granted_scopes",JSON.stringify(V)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),p){const I=1e3*p,W=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+W)}T&&this._storage.setItem("refresh_token",T),O&&O.forEach((I,j)=>{this._storage.setItem(j,I)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const p=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,V=T.getCodePartsFromUrl(p),O=V.code,I=V.state,j=V.session_state;if(!x.preventClearHashAfterLogin){const U=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,U)}let[W,Q]=T.parseState(I);if(T.state=Q,V.error){T.debug("error trying to login"),T.handleLoginError(x,V);const U=new OAuthErrorEvent("code_error",{},V);return T.eventsSubject.next(U),Promise.reject(U)}if(!x.disableNonceCheck){if(!W)return T.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!T.validateNonce(W)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return T.eventsSubject.next($),Promise.reject($)}return T.storeSessionState(j),O&&(yield T.getTokenFromCode(O,x),T.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let V;V=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),V?p=p.set("code_verifier",V):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(p,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const V=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+V)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((V,O)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,x,{headers:p}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(j=>{this.storeIdToken(j),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),console.error("Error validating tokens"),console.error(j),O(j)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),V(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),O(I)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const p=T.state;let[V,O]=this.parseState(p);if(this.state=O,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const I=T.access_token,j=T.id_token,W=T.session_state,Q=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!p||this.oidc&&!j)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!W&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(V)){const $=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next($),Promise.reject($)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,Q),this.oidc?this.processIdToken(j,I,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:I,idClaims:U.idTokenClaims,idToken:U.idToken,state:p}).then($=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(W),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,p="";if(x){const V=x.indexOf(this.config.nonceStateSeparator);V>-1&&(T=x.substr(0,V),p=x.substr(V+this.config.nonceStateSeparator.length))}return[T,p]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,p=!1){const V=x.split("."),I=b64DecodeUnicode(this.padBase64(V[0])),j=JSON.parse(I),Q=b64DecodeUnicode(this.padBase64(V[1])),U=JSON.parse(Q);let $;if($=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+U.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(U.aud!==this.clientId){const de="Wrong audience: "+U.aud;return this.logger.warn(de),Promise.reject(de)}if(!U.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!U.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const de="Wrong issuer: "+U.iss;return this.logger.warn(de),Promise.reject(de)}if(!p&&U.nonce!==$){const de="Wrong nonce: "+U.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const G=this.dateTimeService.now(),te=1e3*U.iat,ne=1e3*U.exp,J=this.getClockSkewInMsec();if(te-J>=G||ne+J<=G){const de="Token has expired";return console.error(de),console.error({now:G,issuedAtMSec:te,expiresAtMSec:ne}),Promise.reject(de)}const ie={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:j,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne})):this.checkAtHash(ie).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const he="Wrong at_hash";return this.logger.warn(he),Promise.reject(he)}return this.checkSignature(ie).then(he=>{const Ve={idToken:x,idTokenClaims:U,idTokenClaimsJson:Q,idTokenHeader:j,idTokenHeaderJson:I,idTokenExpiresAt:ne};return this.disableAtHashCheck?Ve:this.checkAtHash(ie).then(Be=>{if(this.requestAccessToken&&!Be){const we="Wrong at_hash";return this.logger.warn(we),Promise.reject(we)}return Ve})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let p=!1;"boolean"==typeof x&&(p=x,x={});const V=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||p||!V&&!this.postLogoutRedirectUri)return;let O;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)O=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(V)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});V&&(I=I.set("id_token_hint",V));const j=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";j&&(I=I.set("post_logout_redirect_uri",j),T&&(I=I.set("state",T)));for(let W in x)I=I.set(W,x[W]);O=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(O)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let p=45,V="";const O=typeof self>"u"?null:self.crypto||self.msCrypto;if(O){let I=new Uint8Array(p);O.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(j=>T.charCodeAt(j%T.length)),V=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===p.type)).subscribe(p=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},V=null;"string"==typeof T?V=T:"object"==typeof T&&(p=T),this.createLoginUrl(x,V,null,!1,p).then(this.config.openUri).catch(O=>{console.error("Error in initAuthorizationCodeFlow"),console.error(O)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const T=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(T,"sha-256")),T]})()}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>{x[p]&&T.set(p,JSON.stringify(x[p]))}),T}revokeTokenAndLogout(x={},T=!1){let p=this.revocationEndpoint,V=this.getAccessToken(),O=this.getRefreshToken();if(!V)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),j=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const W=btoa(`${this.clientId}:${this.dummyClientSecret}`);j=j.set("Authorization","Basic "+W)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const W of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(W,this.customQueryParams[W]);return new Promise((W,Q)=>{let U,$;if(V){let G=I.set("token",V).set("token_type_hint","access_token");U=this.http.post(p,G,{headers:j})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(O){let G=I.set("token",O).set("token_type_hint","refresh_token");$=this.http.post(p,G,{headers:j})}else $=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G))),$=$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(G=>0===G.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([U,$]).subscribe(G=>{this.logOut(x),W(G),this.logger.info("Token successfully revoked")},G=>{this.logger.error("Error revoking token",G),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",G)),Q(G)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(N){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(N)}}let DefaultOAuthInterceptor=(()=>{class F{constructor(x,T,p){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=p}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const p=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(p)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>!!O)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(O=>"token_received"===O.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(O=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(O=>{if(O){const j=x.headers.set("Authorization","Bearer "+O);x=x.clone({headers:j})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(O=>this.errorHandler.handleError(O))):T.handle(x)}}return F.\u0275fac=function(x){return new(x||F)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},F.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:F,factory:F.\u0275fac}),F})();class NullValidationHandler{validateSignature(N){return Promise.resolve(null)}validateAtHash(N){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class F{static forRoot(x=null,T=NullValidationHandler){return{ngModule:F,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:F}),F.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),F})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(F,N,x)=>{"use strict";function T(V,O,I,j,W,Q,U){try{var $=V[Q](U),G=$.value}catch(te){return void I(te)}$.done?O(G):Promise.resolve(G).then(j,W)}function p(V){return function(){var O=this,I=arguments;return new Promise(function(j,W){var Q=V.apply(O,I);function U(G){T(Q,j,W,U,$,"next",G)}function $(G){T(Q,j,W,U,$,"throw",G)}U(void 0)})}}x.d(N,{Z:()=>p})},4147:F=>{"use strict";F.exports={i8:"9.3.0"}}},F=>{F(F.s=7926)}]); \ No newline at end of file diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index 0fc00d0e0..138f3641e 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -6,7 +6,7 @@ - + @@ -40,5 +40,5 @@ - + diff --git a/dist/apps/publications/main.9c6d19de2a6f1383.js b/dist/apps/publications/main.9c6d19de2a6f1383.js new file mode 100644 index 000000000..17f314d04 --- /dev/null +++ b/dist/apps/publications/main.9c6d19de2a6f1383.js @@ -0,0 +1 @@ +(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{2653:(Y,U,x)=>{"use strict";var C=x(6895),i=x(4650);class D extends C.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends D{static makeCurrent(){(0,C.HT)(new M)}onAndCancel(o,e,t){return o.addEventListener(e,t,!1),()=>{o.removeEventListener(e,t,!1)}}dispatchEvent(o,e){o.dispatchEvent(e)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,e){return(e=e||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,e){return"window"===e?window:"document"===e?o:"body"===e?o.body:null}getBaseHref(o){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function j(n){L=L||document.createElement("a"),L.setAttribute("href",n);const o=L.pathname;return"/"===o.charAt(0)?o:`/${o}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return(0,C.Mx)(document.cookie,o)}}let L,S=null;const z=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(n,o,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,C.q)(),r=o.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const re=new i.OlP("EventManagerPlugins");let ie=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ae=(()=>{class n extends be{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach($e),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach($e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $e(n){(0,C.q)().remove(n)}const Ze={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ee=/%COMP%/g;function ue(n,o,e){for(let t=0;t{if("__ngUnwrap__"===o)return n;!1===n(o)&&(o.preventDefault(),o.returnValue=!1)}}let _e=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ze(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new ni(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new Je(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=ue(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ie),i.LFG(Ae),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ze{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,e){return e?document.createElementNS(Ze[e]||e,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,e){(It(o)?o.content:o).appendChild(e)}insertBefore(o,e,t){o&&(It(o)?o.content:o).insertBefore(e,t)}removeChild(o,e){o&&o.removeChild(e)}selectRootElement(o,e){let t="string"==typeof o?document.querySelector(o):o;if(!t)throw new Error(`The selector "${o}" did not match any elements`);return e||(t.textContent=""),t}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,e,t,r){if(r){e=r+":"+e;const l=Ze[r];l?o.setAttributeNS(l,e,t):o.setAttribute(e,t)}else o.setAttribute(e,t)}removeAttribute(o,e,t){if(t){const r=Ze[t];r?o.removeAttributeNS(r,e):o.removeAttribute(`${t}:${e}`)}else o.removeAttribute(e)}addClass(o,e){o.classList.add(e)}removeClass(o,e){o.classList.remove(e)}setStyle(o,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?o.style.setProperty(e,t,r&i.JOm.Important?"important":""):o.style[e]=t}removeStyle(o,e,t){t&i.JOm.DashCase?o.style.removeProperty(e):o.style[e]=""}setProperty(o,e,t){o[e]=t}setValue(o,e){o.nodeValue=e}listen(o,e,t){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,e,fe(t)):this.eventManager.addEventListener(o,e,fe(t))}}function It(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ni extends ze{constructor(o,e,t,r){super(o),this.component=t;const l=ue(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Oe(n){return"_ngcontent-%COMP%".replace(Ee,n)}(r+"-"+t.id),this.hostAttr=function Le(n){return"_nghost-%COMP%".replace(Ee,n)}(r+"-"+t.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,e){const t=super.createElement(o,e);return super.setAttribute(t,this.contentAttr,""),t}}class Je extends ze{constructor(o,e,t,r){super(o),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=ue(r.id,r.styles,[]);for(let d=0;d{class n extends me{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const _n=["alt","control","meta","shift"],ri={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},lr={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},vi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Kr=(()=>{class n extends me{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,C.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(_n.forEach(a=>{const c=t.indexOf(a);c>-1&&(t.splice(c,1),d+=a+".")}),d+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=d,s}static getEventFullKey(e){let t="",r=function ql(n){let o=n.key;if(null==o){if(o=n.keyIdentifier,null==o)return"Unidentified";o.startsWith("U+")&&(o=String.fromCharCode(parseInt(o.substring(2),16)),3===n.location&&lr.hasOwnProperty(o)&&(o=lr[o]))}return ri[o]||o}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),_n.forEach(l=>{l!=r&&(0,vi[l])(e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ct=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:C.bD},{provide:i.g9A,useValue:function Hr(){M.makeCurrent()},multi:!0},{provide:C.K0,useFactory:function hs(){return(0,i.RDi)(document),document},deps:[]}]),zi=new i.OlP(""),cr=[{provide:i.rWj,useClass:class ne{addToWindow(o){i.dqk.getAngularTestability=(t,r=!0)=>{const l=o.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>o.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const s=function(a){d=d||a,l--,0==l&&t(d)};r.forEach(function(a){a.whenStable(s)})})}findTestabilityInTree(o,e,t){return null==e?null:o.getTestability(e)??(t?(0,C.q)().isShadowRoot(e)?this.findTestabilityInTree(o,e.host,!0):this.findTestabilityInTree(o,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Qt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function kr(){return new i.qLn},deps:[]},{provide:re,useClass:Ki,multi:!0,deps:[C.K0,i.R0b,i.Lbi]},{provide:re,useClass:Kr,multi:!0,deps:[C.K0]},{provide:_e,useClass:_e,deps:[ie,Ae,i.AFp]},{provide:i.FYo,useExisting:_e},{provide:be,useExisting:Ae},{provide:Ae,useClass:Ae,deps:[C.K0]},{provide:ie,useClass:ie,deps:[re,i.R0b]},{provide:C.JF,useClass:le,deps:[]},[]];let Xi=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:z,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zi,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...Qt,...cr],imports:[C.ez,i.hGG]}),n})(),ae=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Se(){return new ae((0,i.LFG)(C.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Ei=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(it),t},providedIn:"root"}),n})(),it=(()=>{class n extends Ei{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ge(n){return new it(n.get(C.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=x(529);class zt{encodeKey(o){return encodeURIComponent(o)}encodeValue(o){return encodeURIComponent(o)}decodeKey(o){return decodeURIComponent(o)}decodeValue(o){return decodeURIComponent(o)}}const Rt=new i.OlP("basePath");class Ye{constructor(o={}){this.apiKeys=o.apiKeys,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.withCredentials=o.withCredentials,this.encoder=o.encoder,this.credentials=o.credentials?o.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}selectHeaderAccept(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}isJsonMime(o){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==o&&(e.test(o)||"application/json-patch+json"===o.toLowerCase())}lookupCredential(o){const e=this.credentials[o];return"function"==typeof e?e():e}}let nt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,a="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(We=>{h=this.addToHttpParams(h,We,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new w.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ut=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"publicationId")),null!=t&&(s=this.addToHttpParams(s,t,"userId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new w.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,s,a,c,u,h="body",f=!1,b){let V=new w.LE({encoder:this.encoder});null!=e&&(V=this.addToHttpParams(V,e,"title")),null!=t&&(V=this.addToHttpParams(V,t,"isbn")),null!=r&&(V=this.addToHttpParams(V,r,"doi")),null!=l&&(V=this.addToHttpParams(V,l,"id")),null!=d&&(V=this.addToHttpParams(V,d,"year")),null!=s&&(V=this.addToHttpParams(V,s,"category")),null!=a&&(V=this.addToHttpParams(V,a,"yearSince")),null!=c&&(V=this.addToHttpParams(V,c,"yearTill")),null!=u&&(V=this.addToHttpParams(V,u,"userId"));let he,ee=this.defaultHeaders;he=this.configuration.lookupCredential("BasicAuth"),he&&(ee=ee.set("Authorization","Basic "+he)),he=this.configuration.lookupCredential("BearerAuth"),he&&(ee=ee.set("Authorization","Bearer "+he));let We=b&&b.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(ee=ee.set("Accept",We));let Pt=b&&b.context;void 0===Pt&&(Pt=new w.qT);let Jt="json";return We&&(Jt=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Pt,params:V,responseType:Jt,withCredentials:this.configuration.withCredentials,headers:ee,observe:h,reportProgress:f})}findSimilarPublications(e,t,r,l="body",d=!1,s){let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Js=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"owner")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ai=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ia=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,a="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new w.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Kn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uo=(()=>{class n{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:n,providers:[{provide:Ye,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(w.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Tt=(()=>{return(n=Tt||(Tt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",Tt;var n})();let ra=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER,Tt.FACILITYADMIN,Tt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Tt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Tt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Tt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.VOOBSERVER,Tt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],s=[],a=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const V of Object.keys(b.entitiesToManage))a="User"===V?[V].concat(a):a.concat(V);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(s,c);r.set(l,{readAuth:u,manageAuth:h,modes:a})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const s=r[d];if(null===s)this.principalRoles.has(d)||(l=!1);else if(t[s]){for(const a of t[s])if(!this.principalHasRole(d,s,a)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const s=this.getPerunPolicy(d);if(!s)return[];t.set(d,s),r=r.concat(s.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{(0,Ir.Xf)(n()).subscribe(o)})}var eo=x(9635),pr=x(2843),yi=x(515),xt=x(727),Xn=x(4482),Dn=x(5403);function qo(){return(0,Xn.e)((n,o)=>{let e=null;n._refCount++;const t=(0,Dn.x)(o,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),o.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class Vu extends nn.y{constructor(o,e){super(),this.source=o,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Xn.A)(o)&&(this.lift=o.lift)}_subscribe(o){return this.getSubject().subscribe(o)}getSubject(){const o=this._subject;return(!o||o.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:o}=this;this._subject=this._connection=null,o?.unsubscribe()}connect(){let o=this._connection;if(!o){o=this._connection=new xt.w0;const e=this.getSubject();o.add(this.source.subscribe((0,Dn.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),o.closed&&(this._connection=null,o=xt.w0.EMPTY)}return o}refCount(){return qo()(this)}}var Qe=x(4004),Dt=x(3900),Ot=x(5698),fr=x(3269);function Et(...n){const o=(0,fr.yG)(n);return(0,Xn.e)((e,t)=>{(o?(0,Ra.z)(n,e,o):(0,Ra.z)(n,e)).subscribe(t)})}var rn=x(5577),er=x(590),En=x(4351),Bt=x(8505),O=x(262);function q(n,o,e,t,r){return(l,d)=>{let s=e,a=o,c=0;l.subscribe((0,Dn.x)(d,u=>{const h=c++;a=s?n(a,u,h):(s=!0,u),t&&d.next(a)},r&&(()=>{s&&d.next(a),d.complete()})))}}function B(n,o){return(0,Xn.e)(q(n,o,arguments.length>=2,!0))}function $(n){return n<=0?()=>yi.E:(0,Xn.e)((o,e)=>{let t=[];o.subscribe((0,Dn.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var ce=x(8068),ye=x(6590),ge=x(4671);function tt(n,o){const e=arguments.length>=2;return t=>t.pipe(n?(0,Gt.h)((r,l)=>n(r,l,t)):ge.y,$(1),e?(0,ye.d)(o):(0,ce.T)(()=>new Go.K))}function pi(n,o=!1){return(0,Xn.e)((e,t)=>{let r=0;e.subscribe((0,Dn.x)(t,l=>{const d=n(l,r++);(d||o)&&t.next(l),!d&&t.complete()}))})}var Kt=x(9718);function Zt(n){return(0,Xn.e)((o,e)=>{try{o.subscribe(e)}finally{e.add(n)}})}var Ft=x(8189);const at="primary";class mi{constructor(o){this.params=o||{}}has(o){return Object.prototype.hasOwnProperty.call(this.params,o)}get(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e[0]:e}return null}getAll(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ti(n){return new mi(n)}function xe(n,o,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(o.hasChildren()||t.lengtht[l]===r)}return n===o}function xi(n){return Array.prototype.concat.apply([],n)}function La(n){return n.length>0?n[n.length-1]:null}function Xt(n,o){for(const e in n)n.hasOwnProperty(e)&&o(n[e],e)}function mr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,cn.D)(Promise.resolve(n)):(0,Ve.of)(n)}const bd={exact:function Br(n,o,e){if(!aa(n.segments,o.segments)||!ci(n.segments,o.segments,e)||n.numberOfChildren!==o.numberOfChildren)return!1;for(const t in o.children)if(!n.children[t]||!Br(n.children[t],o.children[t],e))return!1;return!0},subset:bs},Fp={exact:function yn(n,o){return gn(n,o)},subset:function yd(n,o){return Object.keys(o).length<=Object.keys(n).length&&Object.keys(o).every(e=>Or(n[e],o[e]))},ignored:()=>!0};function Wo(n,o,e){return bd[e.paths](n.root,o.root,e.matrixParams)&&Fp[e.queryParams](n.queryParams,o.queryParams)&&!("exact"===e.fragment&&n.fragment!==o.fragment)}function bs(n,o,e){return gr(n,o,o.segments,e)}function gr(n,o,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!aa(r,e)||o.hasChildren()||!ci(r,e,t))}if(n.segments.length===e.length){if(!aa(n.segments,e)||!ci(n.segments,e,t))return!1;for(const r in o.children)if(!n.children[r]||!bs(n.children[r],o.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(aa(n.segments,r)&&ci(n.segments,r,t)&&n.children[at])&&gr(n.children[at],o,l,t)}}function ci(n,o,e){return o.every((t,r)=>Fp[e](n[r].parameters,t.parameters))}class Ia{constructor(o,e,t){this.root=o,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return ju.serialize(this)}}class Vt{constructor(o,e){this.segments=o,this.children=e,this.parent=null,Xt(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return io(this)}}class to{constructor(o,e){this.path=o,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ti(this.parameters)),this._parameterMap}toString(){return an(this)}}function aa(n,o){return n.length===o.length&&n.every((e,t)=>e.path===o[t].path)}let Oa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new Cd},providedIn:"root"}),n})();class Cd{parse(o){const e=new Kl(o);return new Ia(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(o){const e=`/${sa(o.root,!0)}`,t=function ki(n){const o=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${ys(e)}=${ys(r)}`).join("&"):`${ys(e)}=${ys(t)}`}).filter(e=>!!e);return o.length?`?${o.join("&")}`:""}(o.queryParams);return`${e}${t}${"string"==typeof o.fragment?`#${function Nu(n){return encodeURI(n)}(o.fragment)}`:""}`}}const ju=new Cd;function io(n){return n.segments.map(o=>an(o)).join("/")}function sa(n,o){if(!n.hasChildren())return io(n);if(o){const e=n.children[at]?sa(n.children[at],!1):"",t=[];return Xt(n.children,(r,l)=>{l!==at&&t.push(`${l}:${sa(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Fu(n,o){let e=[];return Xt(n.children,(t,r)=>{r===at&&(e=e.concat(o(t,r)))}),Xt(n.children,(t,r)=>{r!==at&&(e=e.concat(o(t,r)))}),e}(n,(t,r)=>r===at?[sa(n.children[at],!1)]:[`${r}:${sa(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[at]?`${io(n)}/${e[0]}`:`${io(n)}/(${e.join("//")})`}}function no(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ys(n){return no(n).replace(/%3B/gi,";")}function ro(n){return no(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zl(n){return decodeURIComponent(n)}function Jl(n){return Zl(n.replace(/\+/g,"%20"))}function an(n){return`${ro(n.path)}${function Vr(n){return Object.keys(n).map(o=>`;${ro(o)}=${ro(n[o])}`).join("")}(n.parameters)}`}const Yu=/^[^\/()?;=#]+/;function Ql(n){const o=n.match(Yu);return o?o[0]:""}const zu=/^[^=?&#]+/,Np=/^[^&#]+/;class Kl{constructor(o){this.url=o,this.remaining=o}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vt([],{}):new Vt([],this.parseChildren())}parseQueryParams(){const o={};if(this.consumeOptional("?"))do{this.parseQueryParam(o)}while(this.consumeOptional("&"));return o}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const o=[];for(this.peekStartsWith("(")||o.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),o.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(o.length>0||Object.keys(e).length>0)&&(t[at]=new Vt(o,e)),t}parseSegment(){const o=Ql(this.remaining);if(""===o&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(o),new to(Zl(o),this.parseMatrixParams())}parseMatrixParams(){const o={};for(;this.consumeOptional(";");)this.parseParam(o);return o}parseParam(o){const e=Ql(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Ql(this.remaining);r&&(t=r,this.capture(t))}o[Zl(e)]=Zl(t)}parseQueryParam(o){const e=function jp(n){const o=n.match(zu);return o?o[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function Yp(n){const o=n.match(Np);return o?o[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Jl(e),l=Jl(t);if(o.hasOwnProperty(r)){let d=o[r];Array.isArray(d)||(d=[d],o[r]=d),d.push(l)}else o[r]=l}parseParens(o){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Ql(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):o&&(l=at);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[at]:new Vt([],d),this.consumeOptional("//")}return e}peekStartsWith(o){return this.remaining.startsWith(o)}consumeOptional(o){return!!this.peekStartsWith(o)&&(this.remaining=this.remaining.substring(o.length),!0)}capture(o){if(!this.consumeOptional(o))throw new i.vHH(4011,!1)}}function ao(n){return n.segments.length>0?new Vt([],{[at]:n}):n}function ws(n){const o={};for(const t of Object.keys(n.children)){const l=ws(n.children[t]);(l.segments.length>0||l.hasChildren())&&(o[t]=l)}return function Xl(n){if(1===n.numberOfChildren&&n.children[at]){const o=n.children[at];return new Vt(n.segments.concat(o.segments),o.children)}return n}(new Vt(n.segments,o))}function Ba(n){return n instanceof Ia}function zp(n,o,e,t,r){if(0===e.length)return so(o.root,o.root,o.root,t,r);const l=function Up(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new qu(!0,0,n);let o=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return Xt(l.outlets,(a,c)=>{s[c]="string"==typeof a?a.split("/"):a}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,a)=>{0==a&&"."===s||(0==a&&""===s?e=!0:".."===s?o++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new qu(e,o,t)}(e);return l.toRoot()?so(o.root,o.root,new Vt([],{}),t,r):function d(a){const c=function $u(n,o,e,t){if(n.isAbsolute)return new oa(o.root,!0,0);if(-1===t)return new oa(e,e===o.root,0);return function $o(n,o,e){let t=n,r=o,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new oa(t,!1,r-l)}(e,t+(Fr(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,o,n.snapshot?._urlSegment,a),u=c.processChildren?jr(c.segmentGroup,c.index,l.commands):ec(c.segmentGroup,c.index,l.commands);return so(o.root,c.segmentGroup,u,t,r)}(n.snapshot?._lastPathIndex)}function Fr(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Va(n){return"object"==typeof n&&null!=n&&n.outlets}function so(n,o,e,t,r){let d,l={};t&&Xt(t,(a,c)=>{l[c]=Array.isArray(a)?a.map(u=>`${u}`):`${a}`}),d=n===o?e:Gu(n,o,e);const s=ao(ws(d));return new Ia(s,l,r)}function Gu(n,o,e){const t={};return Xt(n.children,(r,l)=>{t[l]=r===o?e:Gu(r,o,e)}),new Vt(n.segments,t)}class qu{constructor(o,e,t){if(this.isAbsolute=o,this.numberOfDoubleDots=e,this.commands=t,o&&t.length>0&&Fr(t[0]))throw new i.vHH(4003,!1);const r=t.find(Va);if(r&&r!==La(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oa{constructor(o,e,t){this.segmentGroup=o,this.processChildren=e,this.index=t}}function ec(n,o,e){if(n||(n=new Vt([],{})),0===n.segments.length&&n.hasChildren())return jr(n,o,e);const t=function Gp(n,o,e){let t=0,r=o;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(Va(s))break;const a=`${s}`,c=t0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!qp(a,c,d))return l;t+=2}else{if(!qp(a,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,o,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=ec(n.children[d],o,l))}),Xt(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Vt(n.segments,r)}}function Fa(n,o,e){const t=n.segments.slice(0,o);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(o[t]=Fa(new Vt([],{}),0,e))}),o}function Zo(n){const o={};return Xt(n,(e,t)=>o[t]=`${e}`),o}function qp(n,o,e){return n==e.path&&gn(o,e.parameters)}class Nr{constructor(o,e){this.id=o,this.url=e}}class Cs extends Nr{constructor(o,e,t="imperative",r=null){super(o,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Nr{constructor(o,e,t){super(o,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yn extends Nr{constructor(o,e,t,r){super(o,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ju extends Nr{constructor(o,e,t,r){super(o,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Jo extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Td extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xd extends Nr{constructor(o,e,t,r,l){super(o,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tc extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ic extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qu{constructor(o){this.route=o,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Md{constructor(o){this.route=o,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Sd{constructor(o){this.snapshot=o,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qo{constructor(o){this.snapshot=o,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class As{constructor(o){this.snapshot=o,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class nc{constructor(o){this.snapshot=o,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oo{constructor(o,e,t){this.routerEvent=o,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Dd{constructor(o){this._root=o}get root(){return this._root.value}parent(o){const e=this.pathFromRoot(o);return e.length>1?e[e.length-2]:null}children(o){const e=Ko(o,this._root);return e?e.children.map(t=>t.value):[]}firstChild(o){const e=Ko(o,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(o){const e=rc(o,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==o)}pathFromRoot(o){return rc(o,this._root).map(e=>e.value)}}function Ko(n,o){if(n===o.value)return o;for(const e of o.children){const t=Ko(n,e);if(t)return t}return null}function rc(n,o){if(n===o.value)return[o];for(const e of o.children){const t=rc(n,e);if(t.length)return t.unshift(o),t}return[]}class Hn{constructor(o,e){this.value=o,this.children=e}toString(){return`TreeNode(${this.value})`}}function lo(n){const o={};return n&&n.children.forEach(e=>o[e.value.outlet]=e),o}class Ed extends Dd{constructor(o,e){super(o),this.snapshot=e,oc(this,o)}toString(){return this.snapshot.toString()}}function ac(n,o){const e=function Wp(n,o){const d=new ca([],{},{},"",{},at,o,null,n.root,-1,{});return new vs("",new Hn(d,[]))}(n,o),t=new Hi([new to("",{})]),r=new Hi({}),l=new Hi({}),d=new Hi({}),s=new Hi(""),a=new zn(t,r,d,s,l,at,o,e.root);return a.snapshot=e.root,new Ed(new Hn(a,[]),e)}class zn{constructor(o,e,t,r,l,d,s,a){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Qe.U)(o=>Ti(o)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Qe.U)(o=>Ti(o)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function sc(n,o="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==o)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function co(n){return n.reduce((o,e)=>({params:{...o.params,...e.params},data:{...o.data,...e.data},resolve:{...e.data,...o.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ca{constructor(o,e,t,r,l,d,s,a,c,u,h,f){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=f??u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ti(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class vs extends Dd{constructor(o,e){super(e),this.url=o,oc(this,e)}toString(){return lc(this._root)}}function oc(n,o){o.value._routerState=n,o.children.forEach(e=>oc(n,e))}function lc(n){const o=n.children.length>0?` { ${n.children.map(lc).join(", ")} } `:"";return`${n.value}${o}`}function ja(n){if(n.snapshot){const o=n.snapshot,e=n._futureSnapshot;n.snapshot=e,gn(o.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),o.fragment!==e.fragment&&n.fragment.next(e.fragment),gn(o.params,e.params)||n.params.next(e.params),function Ht(n,o){if(n.length!==o.length)return!1;for(let e=0;egn(e.parameters,o[t].parameters))}(n.url,o.url);return e&&!(!n.parent!=!o.parent)&&(!n.parent||Ku(n.parent,o.parent))}function ei(n,o,e){if(e&&n.shouldReuseRoute(o.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=o.value;const r=function c_(n,o,e){return o.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ei(n,t,r);return ei(n,t)})}(n,o,e);return new Hn(t,r)}{if(n.shouldAttach(o.value)){const l=n.retrieve(o.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=o.value,d.children=o.children.map(s=>ei(n,s)),d}}const t=function d_(n){return new zn(new Hi(n.url),new Hi(n.params),new Hi(n.queryParams),new Hi(n.fragment),new Hi(n.data),n.outlet,n.component,n)}(o.value),r=o.children.map(l=>ei(n,l));return new Hn(t,r)}}const Xu="ngNavigationCancelingError";function Zp(n,o){const{redirectTo:e,navigationBehaviorOptions:t}=Ba(o)?{redirectTo:o,navigationBehaviorOptions:void 0}:o,r=Jp(!1,0,o);return r.url=e,r.navigationBehaviorOptions=t,r}function Jp(n,o,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[Xu]=!0,t.cancellationCode=o,e&&(t.url=e),t}function Hd(n){return Qp(n)&&Ba(n.url)}function Qp(n){return n&&n[Xu]}class Xo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new cc,this.attachRef=null}}let cc=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Xo,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const el=!1;let gi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=r||at,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,el);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,el);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,el);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new i.vHH(4013,el);this._activatedRoute=e;const r=this.location,d=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,a=new kd(e,s,r.injector);if(t&&function tl(n){return!!n.resolveComponentFactory}(t)){const c=t.resolveComponentFactory(d);this.activated=r.createComponent(c,r.length,a)}else this.activated=r.createComponent(d,{index:r.length,injector:a,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(cc),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class kd{constructor(o,e,t){this.route=o,this.childContexts=e,this.parent=t}get(o,e){return o===zn?this.route:o===cc?this.childContexts:this.parent.get(o,e)}}let Kp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[gi],encapsulation:2}),n})();function eh(n,o){return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,o,`Route: ${n.path}`)),n._injector??o}function ih(n){const o=n.children&&n.children.map(ih),e=o?{...n,children:o}:{...n};return!e.component&&!e.loadComponent&&(o||e.loadChildren)&&e.outlet&&e.outlet!==at&&(e.component=Kp),e}function sn(n){return n.outlet||at}function dc(n,o){const e=n.filter(t=>sn(t)===o);return e.push(...n.filter(t=>sn(t)!==o)),e}function kn(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let o=n.parent;o;o=o.parent){const e=o.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class uo{constructor(o,e,t,r){this.routeReuseStrategy=o,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(o){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,o),ja(this.futureState.root),this.activateChildRoutes(e,t,o)}deactivateChildRoutes(o,e,t){const r=lo(e);o.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),Xt(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(o,e,d.children)}else this.deactivateChildRoutes(o,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(o,e){o.value.component&&this.routeReuseStrategy.shouldDetach(o.value.snapshot)?this.detachAndStoreRouteSubtree(o,e):this.deactivateRouteAndOutlet(o,e)}detachAndStoreRouteSubtree(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=lo(o);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(o.value.snapshot,{componentRef:d,route:o,contexts:s})}}deactivateRouteAndOutlet(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=lo(o);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(o,e,t){const r=lo(e);o.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new nc(l.value.snapshot))}),o.children.length&&this.forwardEvent(new Qo(o.value.snapshot))}activateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(ja(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(o,e,d.children)}else this.activateChildRoutes(o,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(s.contexts),d.attachRef=s.componentRef,d.route=s.route.value,d.outlet&&d.outlet.attach(s.componentRef,s.route.value),ja(s.route.value),this.activateChildRoutes(o,null,d.children)}else{const s=kn(r.snapshot),a=s?.get(i._Vd)??null;d.attachRef=null,d.route=r,d.resolver=a,d.injector=s,d.outlet&&d.outlet.activateWith(r,d.injector),this.activateChildRoutes(o,null,d.children)}}else this.activateChildRoutes(o,null,t)}}class Be{constructor(o){this.path=o,this.route=this.path[this.path.length-1]}}class il{constructor(o,e){this.component=o,this.route=e}}function tf(n,o,e){const t=n._root;return Ya(t,o?o._root:null,e,[t.value])}function jt(n,o,e){return(kn(o)??e).get(n)}function Ya(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=lo(o);return n.children.forEach(d=>{(function rh(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=o?o.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const a=function Id(n,o,e){if("function"==typeof e)return e(n,o);switch(e){case"pathParamsChange":return!aa(n.url,o.url);case"pathParamsOrQueryParamsChange":return!aa(n.url,o.url)||!gn(n.queryParams,o.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ku(n,o)||!gn(n.queryParams,o.queryParams);default:return!Ku(n,o)}}(d,l,l.routeConfig.runGuardsAndResolvers);a?r.canActivateChecks.push(new Be(t)):(l.data=d.data,l._resolvedData=d._resolvedData),Ya(n,o,l.component?s?s.children:null:e,t,r),a&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new il(s.outlet.component,d))}else d&&xs(o,s,r),r.canActivateChecks.push(new Be(t)),Ya(n,null,l.component?s?s.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),Xt(l,(d,s)=>xs(d,e.getContext(s),r)),r}function xs(n,o,e){const t=lo(n),r=n.value;Xt(t,(l,d)=>{xs(l,r.component?o?o.children.getContext(d):null:o,e)}),e.canDeactivateChecks.push(new il(r.component&&o&&o.outlet&&o.outlet.isActivated?o.outlet.component:null,r))}function za(n){return"function"==typeof n}function Ua(n){return n instanceof Go.K||"EmptyError"===n?.name}const da=Symbol("INITIAL_VALUE");function Ms(){return(0,Dt.w)(n=>(0,Pa.a)(n.map(o=>o.pipe((0,Ot.q)(1),Et(da)))).pipe((0,Qe.U)(o=>{for(const e of o)if(!0!==e){if(e===da)return da;if(!1===e||e instanceof Ia)return e}return!0}),(0,Gt.h)(o=>o!==da),(0,Ot.q)(1)))}function ho(n){return(0,eo.z)((0,Bt.b)(o=>{if(Ba(o))throw Zp(0,o)}),(0,Qe.U)(o=>!0===o))}const Ss={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function dh(n,o,e,t,r){const l=uc(n,o,e);return l.matched?function ch(n,o,e,t){const r=o.canMatch;if(!r||0===r.length)return(0,Ve.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function ah(n){return n&&za(n.canMatch)}(s)?s.canMatch(o,e):s(o,e);return mr(a)});return(0,Ve.of)(l).pipe(Ms(),ho())}(t=eh(o,t),o,e).pipe((0,Qe.U)(d=>!0===d?l:{...Ss})):(0,Ve.of)(l)}function uc(n,o,e){if(""===o.path)return"full"===o.pathMatch&&(n.hasChildren()||e.length>0)?{...Ss}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(o.matcher||xe)(e,n,o);if(!r)return{...Ss};const l={};Xt(r.posParams,(s,a)=>{l[a]=s.path});const d=r.consumed.length>0?{...l,...r.consumed[r.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:d,positionalParamSegments:r.posParams??{}}}function Ga(n,o,e,t,r="corrected"){if(e.length>0&&function lf(n,o,e){return e.some(t=>ua(n,o,t)&&sn(t)!==at)}(n,e,t)){const d=new Vt(o,function uh(n,o,e,t){const r={};r[at]=t,t._sourceSegment=n,t._segmentIndexShift=o.length;for(const l of e)if(""===l.path&&sn(l)!==at){const d=new Vt([],{});d._sourceSegment=n,d._segmentIndexShift=o.length,r[sn(l)]=d}return r}(n,o,t,new Vt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function cf(n,o,e){return e.some(t=>ua(n,o,t))}(n,e,t)){const d=new Vt(n.segments,function zr(n,o,e,t,r,l){const d={};for(const s of t)if(ua(n,e,s)&&!r[sn(s)]){const a=new Vt([],{});a._sourceSegment=n,a._segmentIndexShift="legacy"===l?n.segments.length:o.length,d[sn(s)]=a}return{...r,...d}}(n,o,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:e}}const l=new Vt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=o.length,{segmentGroup:l,slicedSegments:e}}function ua(n,o,e){return(!(n.hasChildren()||o.length>0)||"full"!==e.pathMatch)&&""===e.path}function po(n,o,e,t){return!!(sn(n)===t||t!==at&&ua(o,e,n))&&("**"===n.path||uc(o,n,e).matched)}function hh(n,o,e){return 0===o.length&&!n.children[e]}const Vd=!1;class al{constructor(o){this.segmentGroup=o||null}}class Ur{constructor(o){this.urlTree=o}}function ha(n){return(0,pr._)(new al(n))}function ph(n){return(0,pr._)(new Ur(n))}class fh{constructor(o,e,t,r,l){this.injector=o,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const o=Ga(this.urlTree.root,[],[],this.config).segmentGroup,e=new Vt(o.segments,o.children);return this.expandSegmentGroup(this.injector,this.config,e,at).pipe((0,Qe.U)(l=>this.createUrlTree(ws(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,O.K)(l=>{if(l instanceof Ur)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof al?this.noMatchError(l):l}))}match(o){return this.expandSegmentGroup(this.injector,this.config,o.root,at).pipe((0,Qe.U)(r=>this.createUrlTree(ws(r),o.queryParams,o.fragment))).pipe((0,O.K)(r=>{throw r instanceof al?this.noMatchError(r):r}))}noMatchError(o){return new i.vHH(4002,Vd)}createUrlTree(o,e,t){const r=ao(o);return new Ia(r,e,t)}expandSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(o,e,t).pipe((0,Qe.U)(l=>new Vt([],l))):this.expandSegment(o,t,e,t.segments,r,!0)}expandChildren(o,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,cn.D)(r).pipe((0,En.b)(l=>{const d=t.children[l],s=dc(e,l);return this.expandSegmentGroup(o,s,d,l).pipe((0,Qe.U)(a=>({segment:a,outlet:l})))}),B((l,d)=>(l[d.outlet]=d.segment,l),{}),tt())}expandSegment(o,e,t,r,l,d){return(0,cn.D)(t).pipe((0,En.b)(s=>this.expandSegmentAgainstRoute(o,e,t,s,r,l,d).pipe((0,O.K)(c=>{if(c instanceof al)return(0,Ve.of)(null);throw c}))),(0,er.P)(s=>!!s),(0,O.K)((s,a)=>{if(Ua(s))return hh(e,r,l)?(0,Ve.of)(new Vt([],{})):ha(e);throw s}))}expandSegmentAgainstRoute(o,e,t,r,l,d,s){return po(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(o,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d):ha(e):ha(e)}expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(o,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(o,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ph(l):this.lineralizeSegments(t,l).pipe((0,rn.z)(d=>{const s=new Vt(d,{});return this.expandSegment(o,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){const{matched:s,consumedSegments:a,remainingSegments:c,positionalParamSegments:u}=uc(e,r,l);if(!s)return ha(e);const h=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?ph(h):this.lineralizeSegments(r,h).pipe((0,rn.z)(f=>this.expandSegment(o,e,t,f.concat(c),d,!1)))}matchSegmentAgainstRoute(o,e,t,r,l){return"**"===t.path?(o=eh(t,o),t.loadChildren?(t._loadedRoutes?(0,Ve.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(o,t)).pipe((0,Qe.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Vt(r,{})))):(0,Ve.of)(new Vt(r,{}))):dh(e,t,r,o).pipe((0,Dt.w)(({matched:d,consumedSegments:s,remainingSegments:a})=>d?this.getChildConfig(o=t._injector??o,t,r).pipe((0,rn.z)(u=>{const h=u.injector??o,f=u.routes,{segmentGroup:b,slicedSegments:V}=Ga(e,s,a,f),ee=new Vt(b.segments,b.children);if(0===V.length&&ee.hasChildren())return this.expandChildren(h,f,ee).pipe((0,Qe.U)(Jt=>new Vt(s,Jt)));if(0===f.length&&0===V.length)return(0,Ve.of)(new Vt(s,{}));const he=sn(t)===l;return this.expandSegment(h,ee,f,V,he?at:l,!0).pipe((0,Qe.U)(Pt=>new Vt(s.concat(Pt.segments),Pt.children)))})):ha(e)))}getChildConfig(o,e,t){return e.children?(0,Ve.of)({routes:e.children,injector:o}):e.loadChildren?void 0!==e._loadedRoutes?(0,Ve.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Bd(n,o,e,t){const r=o.canLoad;if(void 0===r||0===r.length)return(0,Ve.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function nl(n){return n&&za(n.canLoad)}(s)?s.canLoad(o,e):s(o,e);return mr(a)});return(0,Ve.of)(l).pipe(Ms(),ho())}(o,e,t).pipe((0,rn.z)(r=>r?this.configLoader.loadChildren(o,e).pipe((0,Bt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function uf(n){return(0,pr._)(Jp(Vd,3))}())):(0,Ve.of)({routes:[],injector:o})}lineralizeSegments(o,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ve.of)(t);if(r.numberOfChildren>1||!r.children[at])return(0,pr._)(new i.vHH(4e3,Vd));r=r.children[at]}}applyRedirectCommands(o,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),o,t)}applyRedirectCreateUrlTree(o,e,t,r){const l=this.createSegmentGroup(o,e.root,t,r);return new Ia(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(o,e){const t={};return Xt(o,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(o,e,t,r){const l=this.createSegments(o,e.segments,t,r);let d={};return Xt(e.children,(s,a)=>{d[a]=this.createSegmentGroup(o,s,t,r)}),new Vt(l,d)}createSegments(o,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(o,l,r):this.findOrReturn(l,t))}findPosParam(o,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Vd);return r}findOrReturn(o,e){let t=0;for(const r of e){if(r.path===o.path)return e.splice(t),r;t++}return o}}class jd{}class H{constructor(o,e,t,r,l,d,s,a){this.injector=o,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=s,this.urlSerializer=a}recognize(){const o=Ga(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,o,at).pipe((0,Qe.U)(e=>{if(null===e)return null;const t=new ca([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},at,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Hn(t,e),l=new vs(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(o){const e=o.value,t=sc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),o.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(o,e,t):this.processSegment(o,e,t,t.segments,r)}processChildren(o,e,t){return(0,cn.D)(Object.keys(t.children)).pipe((0,En.b)(r=>{const l=t.children[r],d=dc(e,r);return this.processSegmentGroup(o,d,l,r)}),B((r,l)=>r&&l?(r.push(...l),r):null),pi(r=>null!==r),(0,ye.d)(null),tt(),(0,Qe.U)(r=>{if(null===r)return null;const l=se(r);return function I(n){n.sort((o,e)=>o.value.outlet===at?-1:e.value.outlet===at?1:o.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(o,e,t,r,l){return(0,cn.D)(e).pipe((0,En.b)(d=>this.processSegmentAgainstRoute(d._injector??o,d,t,r,l)),(0,er.P)(d=>!!d),(0,O.K)(d=>{if(Ua(d))return hh(t,r,l)?(0,Ve.of)([]):(0,Ve.of)(null);throw d}))}processSegmentAgainstRoute(o,e,t,r,l){if(e.redirectTo||!po(e,t,r,l))return(0,Ve.of)(null);let d;if("**"===e.path){const s=r.length>0?La(r).parameters:{},a=Lt(t)+r.length,c=new ca(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),a,nr(e),a);d=(0,Ve.of)({snapshot:c,consumedSegments:[],remainingSegments:[]})}else d=dh(t,e,r,o).pipe((0,Qe.U)(({matched:s,consumedSegments:a,remainingSegments:c,parameters:u})=>{if(!s)return null;const h=Lt(t)+a.length;return{snapshot:new ca(a,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),h,nr(e),h),consumedSegments:a,remainingSegments:c}}));return d.pipe((0,Dt.w)(s=>{if(null===s)return(0,Ve.of)(null);const{snapshot:a,consumedSegments:c,remainingSegments:u}=s;o=e._injector??o;const h=e._loadedInjector??o,f=function N(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:V}=Ga(t,c,u,f.filter(he=>void 0===he.redirectTo),this.relativeLinkResolution);if(0===V.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,Qe.U)(he=>null===he?null:[new Hn(a,he)]));if(0===f.length&&0===V.length)return(0,Ve.of)([new Hn(a,[])]);const ee=sn(e)===l;return this.processSegment(h,f,b,V,ee?at:l).pipe((0,Qe.U)(he=>null===he?null:[new Hn(a,he)]))}))}}function W(n){const o=n.value.routeConfig;return o&&""===o.path&&void 0===o.redirectTo}function se(n){const o=[],e=new Set;for(const t of n){if(!W(t)){o.push(t);continue}const r=o.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):o.push(t)}for(const t of e){const r=se(t.children);o.push(new Hn(t.value,r))}return o.filter(t=>!e.has(t))}function st(n){let o=n;for(;o._sourceSegment;)o=o._sourceSegment;return o}function Lt(n){let o=n,e=o._segmentIndexShift??0;for(;o._sourceSegment;)o=o._sourceSegment,e+=o._segmentIndexShift??0;return e-1}function Gi(n){return n.data||{}}function nr(n){return n.resolve||{}}const mh=Symbol("RouteTitle");function f_(n){return"string"==typeof n.title||null===n.title}function hf(n){return(0,Dt.w)(o=>{const e=n(o);return e?(0,cn.D)(e).pipe((0,Qe.U)(()=>o)):(0,Ve.of)(o)})}let qa=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(l=>l.outlet===at);return t}getResolvedTitleForRoute(e){return e.data[mh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(ol)},providedIn:"root"}),n})(),ol=(()=>{class n extends qa{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ae))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class oA{}class cA extends class lA{shouldDetach(o){return!1}store(o,e){}shouldAttach(o){return!1}retrieve(o){return null}shouldReuseRoute(o,e){return o.routeConfig===e.routeConfig}}{}const pf=new i.OlP("",{providedIn:"root",factory:()=>({})}),gh=new i.OlP("ROUTES");let ff=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Ve.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=mr(e.loadComponent()).pipe((0,Bt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Zt(()=>{this.componentLoaders.delete(e)})),r=new Vu(t,()=>new De.x).pipe(qo());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Ve.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Qe.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let a,c,u=!1;Array.isArray(s)?c=s:(a=s.create(e).injector,c=xi(a.get(gh,[],i.XFs.Self|i.XFs.Optional)));return{routes:c.map(ih),injector:a}}),Zt(()=>{this.childrenLoaders.delete(t)})),d=new Vu(l,()=>new De.x).pipe(qo());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return mr(e()).pipe((0,rn.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,Ve.of)(t):(0,cn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uA{}class hA{shouldProcessUrl(o){return!0}extract(o){return o}merge(o,e){return o}}function c0(n){throw n}function pA(n,o,e){return o.parse("/")}const Nd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},g_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function pc(){const n=(0,i.f3M)(Oa),o=(0,i.f3M)(cc),e=(0,i.f3M)(C.Ye),t=(0,i.f3M)(i.zs3),r=(0,i.f3M)(i.Sil),l=(0,i.f3M)(gh,{optional:!0})??[],d=(0,i.f3M)(pf,{optional:!0})??{},s=(0,i.f3M)(ol),a=(0,i.f3M)(qa,{optional:!0}),c=(0,i.f3M)(uA,{optional:!0}),u=(0,i.f3M)(oA,{optional:!0}),h=new Ri(null,n,o,e,t,r,xi(l));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),h.titleStrategy=a??s,function Wa(n,o){n.errorHandler&&(o.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(o.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(o.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(o.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(o.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(o.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(o.canceledNavigationResolution=n.canceledNavigationResolution)}(d,h),h}let Ri=(()=>{class n{constructor(e,t,r,l,d,s,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=c0,this.malformedUriErrorHandler=pA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Ve.of)(void 0),this.urlHandlingStrategy=new hA,this.routeReuseStrategy=new cA,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(ff),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new Md(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Qu(f)),this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=function l_(){return new Ia(new Vt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ac(this.currentUrlTree,this.rootComponentType),this.transitions=new Hi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Gt.h)(r=>0!==r.id),(0,Qe.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Dt.w)(r=>{let l=!1,d=!1;return(0,Ve.of)(r).pipe((0,Bt.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Dt.w)(s=>{const a=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==a||a!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return mf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,Ve.of)(s).pipe((0,Dt.w)(h=>{const f=this.transitions.getValue();return t.next(new Cs(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?yi.E:Promise.resolve(h)}),function Fd(n,o,e,t){return(0,Dt.w)(r=>function hc(n,o,e,t,r){return new fh(n,o,e,t,r).apply()}(n,o,e,r.extractedUrl,t).pipe((0,Qe.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Bt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function pa(n,o,e,t,r,l){return(0,rn.z)(d=>function T(n,o,e,t,r,l,d="emptyOnly",s="legacy"){return new H(n,o,e,t,r,d,s,l).recognize().pipe((0,Dt.w)(a=>null===a?function Nt(n){return new nn.y(o=>o.error(n))}(new jd):(0,Ve.of)(a)))}(n,o,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,r,l).pipe((0,Qe.U)(s=>({...d,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Bt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new Jo(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:V,restoredState:ee,extras:he}=s,We=new Cs(f,this.serializeUrl(b),V,ee);t.next(We);const Pt=ac(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:Pt,urlAfterRedirects:b,extras:{...he,skipLocationChange:!1,replaceUrl:!1}},(0,Ve.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),yi.E}),(0,Bt.b)(s=>{const a=new Td(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(a)}),(0,Qe.U)(s=>r={...s,guards:tf(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Pi(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ve.of)({...e,guardsResult:!0}):function oh(n,o,e,t){return(0,cn.D)(n).pipe((0,rn.z)(r=>function sf(n,o,e,t,r){const l=o&&o.routeConfig?o.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ve.of)(!0);const d=l.map(s=>{const a=jt(s,o,r);return mr(function nf(n){return n&&za(n.canDeactivate)}(a)?a.canDeactivate(n,o,e,t):a(n,o,e,t)).pipe((0,er.P)())});return(0,Ve.of)(d).pipe(Ms())}(r.component,r.route,e,o,t)),(0,er.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,rn.z)(s=>s&&function u_(n){return"boolean"==typeof n}(s)?function lh(n,o,e,t){return(0,cn.D)(o).pipe((0,En.b)(r=>(0,Ra.z)(function rl(n,o){return null!==n&&o&&o(new Sd(n)),(0,Ve.of)(!0)}(r.route.parent,t),function br(n,o){return null!==n&&o&&o(new As(n)),(0,Ve.of)(!0)}(r.route,t),function af(n,o,e){const t=o[o.length-1],l=o.slice(0,o.length-1).reverse().map(d=>function nh(n){const o=n.routeConfig?n.routeConfig.canActivateChild:null;return o&&0!==o.length?{node:n,guards:o}:null}(d)).filter(d=>null!==d).map(d=>hr(()=>{const s=d.guards.map(a=>{const c=jt(a,d.node,e);return mr(function ir(n){return n&&za(n.canActivateChild)}(c)?c.canActivateChild(t,n):c(t,n)).pipe((0,er.P)())});return(0,Ve.of)(s).pipe(Ms())}));return(0,Ve.of)(l).pipe(Ms())}(n,r.path,e),function rf(n,o,e){const t=o.routeConfig?o.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ve.of)(!0);const r=t.map(l=>hr(()=>{const d=jt(l,o,e);return mr(function Od(n){return n&&za(n.canActivate)}(d)?d.canActivate(o,n):d(o,n)).pipe((0,er.P)())}));return(0,Ve.of)(r).pipe(Ms())}(n,r.route,e))),(0,er.P)(r=>!0!==r,!0))}(t,l,n,o):(0,Ve.of)(s)),(0,Qe.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,Bt.b)(s=>{if(r.guardsResult=s.guardsResult,Ba(s.guardsResult))throw Zp(0,s.guardsResult);const a=new xd(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(a)}),(0,Gt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),hf(s=>{if(s.guards.canActivateChecks.length)return(0,Ve.of)(s).pipe((0,Bt.b)(a=>{const c=new tc(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),(0,Dt.w)(a=>{let c=!1;return(0,Ve.of)(a).pipe(function p_(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ve.of)(e);let l=0;return(0,cn.D)(r).pipe((0,En.b)(d=>function sl(n,o,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!f_(r)&&(l[mh]=r.title),function rA(n,o,e,t){const r=function aA(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,Ve.of)({});const l={};return(0,cn.D)(r).pipe((0,rn.z)(d=>function sA(n,o,e,t){const r=jt(n,o,t);return mr(r.resolve?r.resolve(o,e):r(o,e))}(n[d],o,e,t).pipe((0,er.P)(),(0,Bt.b)(s=>{l[d]=s}))),$(1),(0,Kt.h)(l),(0,O.K)(d=>Ua(d)?yi.E:(0,pr._)(d)))}(l,n,o,t).pipe((0,Qe.U)(d=>(n._resolvedData=d,n.data=sc(n,e).resolve,r&&f_(r)&&(n.data[mh]=r.title),null)))}(d.route,t,n,o)),(0,Bt.b)(()=>l++),$(1),(0,rn.z)(d=>l===r.length?(0,Ve.of)(e):yi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Bt.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),(0,Bt.b)(a=>{const c=new ic(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}))}),hf(s=>{const a=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe((0,Bt.b)(h=>{c.component=h}),(0,Qe.U)(()=>{})));for(const h of c.children)u.push(...a(h));return u};return(0,Pa.a)(a(s.targetSnapshot.root)).pipe((0,ye.d)(),(0,Ot.q)(1))}),hf(()=>this.afterPreactivation()),(0,Qe.U)(s=>{const a=function $p(n,o,e){const t=ei(n,o._root,e?e._root:void 0);return new Ed(t,o)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),(0,Bt.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,o,e)=>(0,Qe.U)(t=>(new uo(o,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,Bt.b)({next(){l=!0},complete(){l=!0}}),Zt(()=>{l||d||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,O.K)(s=>{if(d=!0,Qp(s)){Hd(s)||(this.navigated=!0,this.restoreHistory(r,!0));const a=new Yn(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(a),Hd(s)){const c=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mf(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const a=new Ju(r.id,this.serializeUrl(r.extractedUrl),s,r.targetSnapshot??void 0);t.next(a);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return yi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const s={...l};delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(r.state=s)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,l,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ih),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:s,preserveFragment:a}=t,c=r||this.routerState.root,u=a?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),zp(c,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Ba(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function __(n){for(let o=0;o{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){if(this.disposed)return Promise.resolve(!1);let s,a,c;d?(s=d.resolve,a=d.reject,c=d.promise):c=new Promise((f,b)=>{s=f,a=b});const u=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),h=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Yn(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:function(){return pc()},providedIn:"root"}),n})();function mf(n){return"imperative"!==n}let fc=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri),i.Y36(zn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),gf=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof la&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri),i.Y36(zn),i.Y36(C.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();class bh{}let u0=(()=>{class n{preload(e,t){return(0,Ve.of)(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fA=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Gt.h)(e=>e instanceof la),(0,En.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,i.MMx)(l.providers,e,`Route: ${l.path}`));const d=l._injector??e,s=l._loadedInjector??d;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?r.push(this.preloadConfig(d,l)):(l.children||l._loadedRoutes)&&r.push(this.processRoutes(s,l.children??l._loadedRoutes))}return(0,cn.D)(r).pipe((0,Ft.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Ve.of)(null);const l=r.pipe((0,rn.z)(d=>null===d?(0,Ve.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,cn.D)([l,d]).pipe((0,Ft.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ri),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(bh),i.LFG(ff))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const bf=new i.OlP("");let mA=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Cs?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof oo&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new oo(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const y_=new i.OlP("ROUTER_FORROOT_GUARD"),yf=new i.OlP(""),yh=[C.Ye,{provide:Oa,useClass:Cd},{provide:Ri,useFactory:pc},cc,{provide:zn,useFactory:function w_(n){return n.routerState.root},deps:[Ri]},ff];function wf(){return new i.PXZ("Router",Ri)}let wh=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[yh,[],Af(e),{provide:y_,useFactory:Cf,deps:[[Ri,new i.FiY,new i.tp0]]},{provide:pf,useValue:t||{}},t?.useHash?{provide:C.S$,useClass:C.Do}:{provide:C.S$,useClass:C.b0},{provide:bf,useFactory:()=>{const n=(0,i.f3M)(Ri),o=(0,i.f3M)(C.EM),e=(0,i.f3M)(pf);return e.scrollOffset&&o.setOffset(e.scrollOffset),new mA(n,o,e)}},t?.preloadingStrategy?x_(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:wf},t?.initialNavigation?bA(t):[],[{provide:A_,useFactory:_A},{provide:i.tb,multi:!0,useExisting:A_}]]}}static forChild(e){return{ngModule:n,providers:[Af(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(y_,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Cf(n){return"guarded"}function Af(n){return[{provide:gh,multi:!0,useValue:n}]}function _A(){const n=(0,i.f3M)(i.zs3);return o=>{const e=n.get(i.z2F);if(o!==e.components[0])return;const t=n.get(Ri),r=n.get(v_);1===n.get(T_)&&t.initialNavigation(),n.get(yf,null,i.XFs.Optional)?.setUpPreloading(),n.get(bf,null,i.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const A_=new i.OlP("");function bA(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ri);return()=>{n.setUpLocationChangeListener()}}},{provide:T_,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:T_,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const o=n.get(C.V_,Promise.resolve(null));let e=!1;return()=>o.then(()=>new Promise(r=>{const l=n.get(Ri),d=n.get(v_);(function t(r){n.get(Ri).events.pipe((0,Gt.h)(d=>d instanceof la||d instanceof Yn||d instanceof Ju),(0,Qe.U)(d=>d instanceof la||d instanceof Yn&&(0===d.code||1===d.code)&&null),(0,Gt.h)(d=>null!==d),(0,Ot.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||d.closed?(0,Ve.of)(void 0):d),l.initialNavigation()}))}}]:[]]}const v_=new i.OlP("",{factory:()=>new De.x}),T_=new i.OlP("",{providedIn:"root",factory:()=>1});function x_(n){return[fA,{provide:yf,useExisting:fA},{provide:bh,useExisting:n}]}let Ch;try{Ch=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ch=!1}let ll,Mi=(()=>{class n{constructor(e){this._platformId=e,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&&!Ch)&&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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ah=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function AA(){if(ll)return ll;if("object"!=typeof document||!document)return ll=new Set(Ah),ll;let n=document.createElement("input");return ll=new Set(Ah.filter(o=>(n.setAttribute("type",o),n.type===o))),ll}let zd,Ud,yr,mc;function fa(n){return function Tf(){if(null==zd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>zd=!0}))}finally{zd=zd||!1}return zd}()?n:!!n.capture}function M_(){if(null==yr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return yr=!1,yr;if("scrollBehavior"in document.documentElement.style)yr=!0;else{const n=Element.prototype.scrollTo;yr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return yr}function cl(){if("object"!=typeof document||!document)return 0;if(null==Ud){const n=document.createElement("div"),o=n.style;n.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Ud=0,0===n.scrollLeft&&(n.scrollLeft=1,Ud=0===n.scrollLeft?1:2),n.remove()}return Ud}function gc(n){if(function vA(){if(null==mc){const n=typeof document<"u"?document.head:null;mc=!(!n||!n.createShadowRoot&&!n.attachShadow)}return mc}()){const o=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function Ds(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const o=n.shadowRoot.activeElement;if(o===n)break;n=o}return n}function wn(n){return n.composedPath?n.composedPath()[0]:n.target}function vh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $i(n,...o){return o.length?o.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var dl=x(8372);function Df(n){return(0,Gt.h)((o,e)=>n<=e)}function ul(n,o=ge.y){return n=n??W_,(0,Xn.e)((e,t)=>{let r,l=!0;e.subscribe((0,Dn.x)(t,d=>{const s=o(d);(l||!n(r,s))&&(l=!1,r=s,t.next(d))}))})}function W_(n,o){return n===o}var $_=x(5032);function Ke(n){return(0,Xn.e)((o,e)=>{(0,Ir.Xf)(n).subscribe((0,Dn.x)(e,()=>e.complete(),$_.Z)),!e.closed&&o.subscribe(e)})}function Fe(n){return null!=n&&"false"!=`${n}`}function Fi(n,o=0){return Z_(n)?Number(n):o}function Z_(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Ef(n){return Array.isArray(n)?n:[n]}function ji(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Zi(n){return n instanceof i.SBq?n.nativeElement:n}let Hf=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q_=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zi(e);return new nn.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_c=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Fi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,dl.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Q_),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),bc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Hf]}),n})();const $d=new Set;let hl,Pf=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Rf}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function K_(n){if(!$d.has(n))try{hl||(hl=document.createElement("style"),hl.setAttribute("type","text/css"),document.head.appendChild(hl)),hl.sheet&&(hl.sheet.insertRule(`@media ${n} {body{ }}`,0),$d.add(n))}catch(o){console.error(o)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rf(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let yc=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return X_(Ef(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=X_(Ef(e)).map(d=>this._registerQuery(d).observable);let l=(0,Pa.a)(r);return l=(0,Ra.z)(l.pipe((0,Ot.q)(1)),l.pipe(Df(1),(0,dl.b)(0))),l.pipe((0,Qe.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:a,query:c})=>{s.matches=s.matches||a,s.breakpoints[c]=a}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new nn.y(d=>{const s=a=>this._zone.run(()=>d.next(a));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(Et(t),(0,Qe.U)(({matches:d})=>({query:e,matches:d})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pf),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function X_(n){return n.map(o=>o.split(",")).reduce((o,e)=>o.concat(e)).map(o=>o.trim())}function wc(n,o){return(n.getAttribute(o)||"").match(/\S+/g)||[]}const XA="cdk-describedby-message",Zd="cdk-describedby-host";let Lf=0,If=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Lf++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Lf++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Of(t,r);"string"!=typeof t?(nb(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const l=Of(t,r);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const d=this._messageRegistry.get(l);d&&0===d.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Zd}="${this._id}"]`);for(let t=0;t0!=r.indexOf(XA));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function QA(n,o,e){const t=wc(n,o);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(o,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Zd,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function ib(n,o,e){const r=wc(n,o).filter(l=>l!=e.trim());r.length?n.setAttribute(o,r.join(" ")):n.removeAttribute(o)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Zd)}_isElementDescribedByMessage(e,t){const r=wc(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Of(n,o){return"string"==typeof n?`${o||""}/${n}`:n}function nb(n,o){n.id||(n.id=`${XA}-${o}-${Lf++}`)}class Wr{constructor(o){this._items=o,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=xt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,o instanceof i.n_E&&o.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=!0){return this._wrap=o,this}withVerticalOrientation(o=!0){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Bt.b)(e=>this._pressedLetters.push(e)),(0,dl.b)(o),(0,Gt.h)(()=>this._pressedLetters.length>0),(0,Qe.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!o[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||$i(o,"shiftKey"))&&(o.key&&1===o.key.length?this._letterKeyStream.next(o.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],o.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(o){const e=this._getItemsArray(),t="number"==typeof o?o:e.indexOf(o);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o)}_setActiveInWrapMode(o){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+o*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex+o,o)}_setActiveItemByIndex(o,e){const t=this._getItemsArray();if(t[o]){for(;this._skipPredicateFn(t[o]);)if(!t[o+=e])return;this.setActiveItem(o)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ev extends Wr{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles()}}class pl extends Wr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin)}}let Jd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function iv(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function tv(n){try{return n.frameElement}catch{return null}}(function ov(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Vf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Vf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function ab(n){let o=n.nodeName.toLowerCase(),e="input"===o&&n.type;return"text"===e||"password"===e||"select"===o||"textarea"===o}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function sv(n){return!function nv(n){return function av(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function rb(n){let o=n.nodeName.toLowerCase();return"input"===o||"select"===o||"button"===o||"textarea"===o}(n)||function rv(n){return function kt(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Bf(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bf(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let o=n.getAttribute("tabindex");return!(!o||isNaN(parseInt(o,10)))}function Vf(n){if(!Bf(n))return null;const o=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(o)?-1:o}class sb{constructor(o,e,t,r,l=!1){this._element=o,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(o){this._enabled=o,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}destroy(){const o=this._startAnchor,e=this._endAnchor;o&&(o.removeEventListener("focus",this.startAnchorListener),o.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(o)))})}focusFirstTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(o)))})}focusLastTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(o)))})}_getRegionBoundary(o){const e=this._element.querySelectorAll(`[cdk-focus-region-${o}], [cdkFocusRegion${o}], [cdk-focus-${o}]`);return"start"==o?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(o){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(o),!!t}return e.focus(o),!0}return this.focusFirstTabbableElement(o)}focusFirstTabbableElement(o){const e=this._getRegionBoundary("start");return e&&e.focus(o),!!e}focusLastTabbableElement(o){const e=this._getRegionBoundary("end");return e&&e.focus(o),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;const e=o.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const o=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,o),o.classList.add("cdk-visually-hidden"),o.classList.add("cdk-focus-trap-anchor"),o.setAttribute("aria-hidden","true"),o}_toggleAnchorTabIndex(o,e){o?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(o){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}_executeOnStable(o){this._ngZone.isStable?o():this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(o)}}let Qd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new sb(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Jd),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ob=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Fe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Fe(e)}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(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ds(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Za(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Eh(n){const o=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!o||-1!==o.identifier||null!=o.radiusX&&1!==o.radiusX||null!=o.radiusY&&1!==o.radiusY)}const Ff=new i.OlP("cdk-input-modality-detector-options"),jf={ignoreKeys:[18,17,224,91,16]},Kd=fa({passive:!0,capture:!0});let nS=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Hi(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(s=>s===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wn(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Za(d)?"keyboard":"mouse"),this._mostRecentTarget=wn(d))},this._onTouchstart=d=>{Eh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wn(d))},this._options={...jf,...l},this.modalityDetected=this._modality.pipe(Df(1)),this.modalityChanged=this.modalityDetected.pipe(ul()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Kd),r.addEventListener("mousedown",this._onMousedown,Kd),r.addEventListener("touchstart",this._onTouchstart,Kd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Kd),document.removeEventListener("mousedown",this._onMousedown,Kd),document.removeEventListener("touchstart",this._onTouchstart,Kd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Ff,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rS=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function dv(){return null}}),cb=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let aS=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d)),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 e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let c=wn(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=l,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const r=Zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ve.of)(null);const l=gc(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Zi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=Zi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,a])=>this._originChanged(s,t,a)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=wn(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let d=0;d{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const db="cdk-high-contrast-black-on-white",Nf="cdk-high-contrast-white-on-black",Yf="cdk-high-contrast-active";let ub=(()=>{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(yc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(Yf,db,Nf),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Yf,db):2===t&&e.add(Yf,Nf)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ub))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bc]}),n})();const uv=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function hv(){return(0,i.f3M)(C.K0)}}),hb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Si=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function pv(n){const o=n?.toLowerCase()||"";return"auto"===o&&typeof navigator<"u"&&navigator?.language?hb.test(navigator.language)?"rtl":"ltr":"rtl"===o?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(uv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function lS(n,o){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Ac(n,o){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const fb=["*"];let Ph=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),ma=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const gv=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function mb(){return!0}});let ot=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!vh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ub),i.LFG(gv,8),i.LFG(C.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_o,_o]}),n})();function sr(n){return class extends n{constructor(...o){super(...o),this._disabled=!1}get disabled(){return this._disabled}set disabled(o){this._disabled=Fe(o)}}}function Ja(n,o){return class extends n{constructor(...e){super(...e),this.defaultColor=o,this.color=o}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Cr(n){return class extends n{constructor(...o){super(...o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(o){this._disableRipple=Fe(o)}}}function vc(n,o=0){return class extends n{constructor(...e){super(...e),this._tabIndex=o,this.defaultTabIndex=o}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Fi(e):this.defaultTabIndex}}}function Tc(n){return class extends n{constructor(...o){super(...o),this.errorState=!1}updateErrorState(){const o=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==o&&(this.errorState=l,this.stateChanges.next())}}}function eu(n){return class extends n{constructor(...o){super(...o),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new nn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(o){o.next(),o.complete()}}}const Hs=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Uf(){return(0,i.f3M)(i.soG)}});class wi{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(o){return this.isDateInstance(o)&&this.isValid(o)?o:null}deserialize(o){return null==o||this.isDateInstance(o)&&this.isValid(o)?o:this.invalid()}setLocale(o){this.locale=o,this._localeChanges.next()}compareDate(o,e){return this.getYear(o)-this.getYear(e)||this.getMonth(o)-this.getMonth(e)||this.getDate(o)-this.getDate(e)}sameDate(o,e){if(o&&e){let t=this.isValid(o),r=this.isValid(e);return t&&r?!this.compareDate(o,e):t==r}return o==e}clampDate(o,e,t){return e&&this.compareDate(o,e)<0?e:t&&this.compareDate(o,t)>0?t:o}}const ga=new i.OlP("mat-date-formats"),bv=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gf(n,o){const e=Array(n);for(let t=0;t{class n extends wi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Gf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gf(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Gf(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(bv.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hs,8),i.LFG(Mi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yv={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 bb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:_b}]}),n})(),wv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ga,useValue:yv}],imports:[bb]}),n})(),fl=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function tu(n,o,e){n.nativeElement.classList.toggle(o,e)}let xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();class dS{constructor(o,e,t,r=!1){this._renderer=o,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Cv={enterDuration:225,exitDuration:150},yb=fa({passive:!0}),Av=["mousedown","touchstart"],vv=["mouseup","mouseleave","touchend","touchcancel"];class Tv{constructor(o,e,t,r){this._target=o,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Zi(t))}fadeInRipple(o,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Cv,...t.animation};t.centered&&(o=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function hS(n,o,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(o-e.top),Math.abs(o-e.bottom));return Math.sqrt(t*t+r*r)}(o,e,r),s=o-r.left,a=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-d+"px",u.style.top=a-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,V="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,ee=new dS(this,u,t,V);u.style.transform="scale3d(1, 1, 1)",ee.state=0,t.persistent||(this._mostRecentTransientRipple=ee);let he=null;return!V&&(c||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const We=()=>this._finishRippleTransition(ee),Pt=()=>this._destroyRipple(ee);u.addEventListener("transitionend",We),u.addEventListener("transitioncancel",Pt),he={onTransitionEnd:We,onTransitionCancel:Pt}}),this._activeRipples.set(ee,he),(V||!c)&&this._finishRippleTransition(ee),ee}fadeOutRipple(o){if(2===o.state||3===o.state)return;const e=o.element,t={...Cv,...o.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",o.state=2,(o._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(o)}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut()})}setupTriggerEvents(o){const e=Zi(o);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Av))}handleEvent(o){"mousedown"===o.type?this._onMousedown(o):"touchstart"===o.type?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vv),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(o){0===o.state?this._startFadeOutTransition(o):2===o.state&&this._destroyRipple(o)}_startFadeOutTransition(o){const e=o===this._mostRecentTransientRipple,{persistent:t}=o.config;o.state=1,!t&&(!e||!this._isPointerDown)&&o.fadeOut()}_destroyRipple(o){const e=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=3,null!==e&&(o.element.removeEventListener("transitionend",e.onTransitionEnd),o.element.removeEventListener("transitioncancel",e.onTransitionCancel)),o.element.remove()}_onMousedown(o){const e=Za(o),t=this._lastTouchStartEvent&&Date.now(){!o.config.persistent&&(1===o.state||o.config.terminateOnPointerUp&&0===o.state)&&o.fadeOut()}))}_registerEvents(o){this._ngZone.runOutsideAngular(()=>{o.forEach(e=>{this._triggerElement.addEventListener(e,this,yb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Av.forEach(o=>{this._triggerElement.removeEventListener(o,this,yb)}),this._pointerUpEventsRegistered&&vv.forEach(o=>{this._triggerElement.removeEventListener(o,this,yb)}))}}const xv=new i.OlP("mat-ripple-global-options");let Ar=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Tv(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Mi),i.Y36(xv,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),un=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})(),Rh=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),n})(),$f=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot]}),n})();const Zf=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),Ab=new i.OlP("MatOptgroup");let vb=0;class Sv{constructor(o,e=!1){this.source=o,this.isUserInput=e}}let Jf=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vb++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.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(e){this._disabled=Fe(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!$i(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Sv(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Mc=(()=>{class n extends Jf{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Zf,8),i.Y36(Ab,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:fb,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(e,t){1&e&&(i.F$t(),i.YNc(0,lS,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Ac,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Ar,C.O5,Rh],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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}),n})();function Qf(n,o,e){if(e.length){let t=o.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,C.ez,ot,$f]}),n})();const Lh=["mat-button",""],Sc=["*"],Ih=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],iu=Ja(sr(Cr(class{constructor(n){this._elementRef=n}})));let Yt=(()=>{class n extends iu{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Ih)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,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(e,t){if(1&e&&i.Gf(Ar,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:Lh,ngContentSelectors:Sc,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(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Ar],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,ot]}),n})();var Xf=x(1144),ba=x(576),em=x(3268);const tm=["addListener","removeListener"],Hv=["addEventListener","removeEventListener"],pS=["on","off"];function Qa(n,o,e,t){if((0,ba.m)(e)&&(t=e,e=void 0),t)return Qa(n,o,e).pipe((0,em.Z)(t));const[r,l]=function Mb(n){return(0,ba.m)(n.addEventListener)&&(0,ba.m)(n.removeEventListener)}(n)?Hv.map(d=>s=>n[d](o,s,e)):function kv(n){return(0,ba.m)(n.addListener)&&(0,ba.m)(n.removeListener)}(n)?tm.map(im(n,o)):function xb(n){return(0,ba.m)(n.on)&&(0,ba.m)(n.off)}(n)?pS.map(im(n,o)):[];if(!r&&(0,Xf.z)(n))return(0,rn.z)(d=>Qa(d,o,e))((0,Ir.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new nn.y(d=>{const s=(...a)=>d.next(1l(s)})}function im(n,o){return e=>t=>n[e](o,t)}var Sb=x(4408);const vn={schedule(n){let o=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=vn;t&&(o=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=o(l=>{e=void 0,n(l)});return new xt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:o}=vn;return(o?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:o}=vn;return(o?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var Eb=x(7565);const Hb=new class fS extends Eb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Db extends Sb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=vn.requestAnimationFrame(()=>o.flush(void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(vn.cancelAnimationFrame(e),o._scheduled=void 0)}});let nm,Pb=1;const Oh={};function Rb(n){return n in Oh&&(delete Oh[n],!0)}const Lb={setImmediate(n){const o=Pb++;return Oh[o]=!0,nm||(nm=Promise.resolve()),nm.then(()=>Rb(o)&&n()),o},clearImmediate(n){Rb(n)}},{setImmediate:Ib,clearImmediate:Pv}=Lb,Bh={setImmediate(...n){const{delegate:o}=Bh;return(o?.setImmediate||Ib)(...n)},clearImmediate(n){const{delegate:o}=Bh;return(o?.clearImmediate||Pv)(n)},delegate:void 0},rm=new class Bb extends Eb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Ob extends Sb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=Bh.setImmediate(o.flush.bind(o,void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(Bh.clearImmediate(e),o._scheduled=void 0)}});var Vh=x(4986),am=x(2805);function Lv(n,o=Vh.z){return function Rv(n){return(0,Xn.e)((o,e)=>{let t=!1,r=null,l=null,d=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const c=r;r=null,e.next(c)}d&&e.complete()},a=()=>{l=null,d&&e.complete()};o.subscribe((0,Dn.x)(e,c=>{t=!0,r=c,l||(0,Ir.Xf)(n(c)).subscribe(l=(0,Dn.x)(e,s,a))},()=>{d=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,am.H)(n,o))}let yo=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new nn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Lv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ve.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Gt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Zi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Qa(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Mi),i.LFG(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gl=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new nn.y(d=>this.ngZone.runOutsideAngular(()=>Qa(this.elementRef.nativeElement,"scroll").pipe(Ke(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=cl()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==cl()?e.left=e.right:1==cl()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;M_()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==cl()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==cl()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(yo),i.Y36(i.R0b),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),ya=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new De.x,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Lv(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi),i.LFG(i.R0b),i.LFG(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ka=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),_l=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_o,Ka,_o,Ka]}),n})();class nu{attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;null!=o&&(this._attachedHost=null,o.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(o){this._attachedHost=o}}class bl extends nu{constructor(o,e,t,r){super(),this.component=o,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Co extends nu{constructor(o,e,t,r){super(),this.templateRef=o,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(o,e=this.context){return this.context=e,super.attach(o)}detach(){return this.context=void 0,super.detach()}}class Nv extends nu{constructor(o){super(),this.element=o instanceof i.SBq?o.nativeElement:o}}class yl{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(o){return o instanceof bl?(this._attachedPortal=o,this.attachComponentPortal(o)):o instanceof Co?(this._attachedPortal=o,this.attachTemplatePortal(o)):this.attachDomPortal&&o instanceof Nv?(this._attachedPortal=o,this.attachDomPortal(o)):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(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class vS extends yl{constructor(o,e,t,r,l){super(),this.outletElement=o,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,a=this._document.createComment("dom-portal");s.parentNode.insertBefore(a,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=l}attachComponentPortal(o){const t=(o.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(o.component);let r;return o.viewContainerRef?(r=o.viewContainerRef.createComponent(t,o.viewContainerRef.length,o.injector||o.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(o.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=o,r}attachTemplatePortal(o){let e=o.viewContainerRef,t=e.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=o,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}}let xS=(()=>{class n extends Co{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),Xa=(()=>{class n extends yl{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(s,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(d,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Ao=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Ci=x(6451);const jh=M_();class Yv{constructor(o,e){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=ji(-this._previousScrollPosition.left),o.style.top=ji(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,t=o.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),jh&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jh&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class zv{constructor(o,e,t,r){this._scrollDispatcher=o,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(o){this._overlayRef=o}enable(){if(this._scrollSubscription)return;const o=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class zb{enable(){}disable(){}attach(){}}function lm(n,o){return o.some(e=>n.bottome.bottom||n.righte.right)}function Ub(n,o){return o.some(e=>n.tope.bottom||n.lefte.right)}class Uv{constructor(o,e,t,r){this._scrollDispatcher=o,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(o){this._overlayRef=o}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();lm(e,[{width:t,height:r,bottom:r,right:t,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 Gv=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new zb,this.close=d=>new zv(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Yv(this._viewportRuler,this._document),this.reposition=d=>new Uv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yo),i.LFG(ya),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class vo{constructor(o){if(this.scrollStrategy=new zb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const e=Object.keys(o);for(const t of e)void 0!==o[t]&&(this[t]=o[t])}}}class ru{constructor(o,e){this.connectionPair=o,this.scrollableViewProperties=e}}let Nh=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qv=(()=>{class n extends Nh{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let d=l.length-1;d>-1;d--)if(l[d]._keydownEvents.observers.length>0){const s=l[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),es=(()=>{class n extends Nh{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=wn(l)},this._clickListener=l=>{const d=wn(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let c=a.length-1;c>-1;c--){const u=a[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(d)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(Mi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),To=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||vh()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(o){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(o);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ot.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){const o=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,o&&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(o){o!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=o,this.hasAttached()&&(o.attach(this),this.updatePosition()))}updateSize(o){this._config={...this._config,...o},this._updateElementSize()}setDirection(o){this._config={...this._config,direction:o},this._updateElementDirection()}addPanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!0)}removePanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!1)}getDirection(){const o=this._config.direction;return o?"string"==typeof o?o:o.value:"ltr"}updateScrollStrategy(o){o!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=o,this.hasAttached()&&(o.attach(this),o.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const o=this._pane.style;o.width=ji(this._config.width),o.height=ji(this._config.height),o.minWidth=ji(this._config.minWidth),o.minHeight=ji(this._config.minHeight),o.maxWidth=ji(this._config.maxWidth),o.maxHeight=ji(this._config.maxHeight)}_togglePointerEvents(o){this._pane.style.pointerEvents=o?"":"none"}_attachBackdrop(){const o="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(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(o){if(this._animationsDisabled)return void this._disposeBackdrop(o);o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",this._backdropTransitionendHandler)}),o.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(o)},500))}}_toggleClasses(o,e,t){const r=Ef(e||[]).filter(l=>!!l);r.length&&(t?o.classList.add(...r):o.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe(Ke((0,Ci.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()),o.unsubscribe())})})}_disposeScrollStrategy(){const o=this._scrollStrategy;o&&(o.disable(),o.detach&&o.detach())}_disposeBackdrop(o){o&&(o.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",this._backdropTransitionendHandler),o.remove(),this._backdropElement===o&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const xo="cdk-overlay-connected-position-bounding-box",Yh=/([A-Za-z%]+)$/;class vr{constructor(o,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,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 De.x,this._resizeSubscription=xt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(o)}get positions(){return this._preferredPositions}attach(o){this._validatePositions(),o.hostElement.classList.add(xo),this._overlayRef=o,this._boundingBox=o.hostElement,this._pane=o.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 o=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let a=this._getOriginPoint(o,r,s),c=this._getOverlayPoint(a,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!d||d.overlayFit.visibleAreaa&&(a=u,s=c)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ps(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xo),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const o=this._lastPosition;if(o){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,e)}else this.apply()}withScrollableContainers(o){return this._scrollables=o,this}withPositions(o){return this._preferredPositions=o,-1===o.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(o){return this._viewportMargin=o,this}withFlexibleDimensions(o=!0){return this._hasFlexibleDimensions=o,this}withGrowAfterOpen(o=!0){return this._growAfterOpen=o,this}withPush(o=!0){return this._canPush=o,this}withLockedPosition(o=!0){return this._positionLocked=o,this}setOrigin(o){return this._origin=o,this}withDefaultOffsetX(o){return this._offsetX=o,this}withDefaultOffsetY(o){return this._offsetY=o,this}withTransformOriginOn(o){return this._transformOriginSelector=o,this}_getOriginPoint(o,e,t){let r,l;if("center"==t.originX)r=o.left+o.width/2;else{const d=this._isRtl()?o.right:o.left,s=this._isRtl()?o.left:o.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?o.top+o.height/2:"top"==t.originY?o.top:o.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(o,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:o.x+r,y:o.y+l}}_getOverlayFit(o,e,t,r){const l=Cl(e);let{x:d,y:s}=o,a=this._getOffset(r,"x"),c=this._getOffset(r,"y");a&&(d+=a),c&&(s+=c);let f=0-s,b=s+l.height-t.height,V=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ee=this._subtractOverflows(l.height,f,b),he=V*ee;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:ee===l.height,fitsInViewportHorizontally:V==l.width}}_canFitWithFlexibleDimensions(o,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=wl(this._overlayRef.getConfig().minHeight),s=wl(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=s&&s<=l;return(o.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(o,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const r=Cl(e),l=this._viewportRect,d=Math.max(o.x+r.width-l.width,0),s=Math.max(o.y+r.height-l.height,0),a=Math.max(l.top-t.top-o.y,0),c=Math.max(l.left-t.left-o.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:o.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=o.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-o.x+this._viewportMargin,u=o.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=o.x,u=t.right-o.x;else{const b=Math.min(t.right-o.x+t.left,o.x),V=this._lastBoundingBoxSize.width;u=2*b,h=o.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=o.x-V/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(o,e){const t=this._calculateBoundingBoxRect(o,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=ji(t.height),r.top=ji(t.top),r.bottom=ji(t.bottom),r.width=ji(t.width),r.left=ji(t.left),r.right=ji(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=ji(l)),d&&(r.maxWidth=ji(d))}this._lastBoundingBoxSize=t,Ps(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ps(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ps(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ps(t,this._getExactOverlayY(e,o,u)),Ps(t,this._getExactOverlayX(e,o,u))}else t.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=ji(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=ji(d.maxWidth):l&&(t.maxWidth="")),Ps(this._pane.style,t)}_getExactOverlayY(o,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===o.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=ji(l.y),r}_getExactOverlayX(o,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=ji(l.x),r}_getScrollVisibility(){const o=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ub(o,t),isOriginOutsideView:lm(o,t),isOverlayClipped:Ub(e,t),isOverlayOutsideView:lm(e,t)}}_subtractOverflows(o,...e){return e.reduce((t,r)=>t-Math.max(r,0),o)}_getNarrowedViewportRect(){const o=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+o-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:o-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,e){return"x"===e?o.offsetX??this._offsetX:o.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&Ef(o).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof i.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const e=o.width||0,t=o.height||0;return{top:o.y,bottom:o.y+t,left:o.x,right:o.x+e,height:t,width:e}}}function Ps(n,o){for(let e in o)o.hasOwnProperty(e)&&(n[e]=o[e]);return n}function wl(n){if("number"!=typeof n&&null!=n){const[o,e]=n.split(Yh);return e&&"px"!==e?null:parseFloat(o)}return n||null}function Cl(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Al="cdk-global-overlay-wrapper";class Hc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(o){const e=o.getConfig();this._overlayRef=o,this._width&&!e.width&&o.updateSize({width:this._width}),this._height&&!e.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(Al),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._xOffset=o,this._xPosition="left",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._xOffset=o,this._xPosition="right",this}start(o=""){return this._xOffset=o,this._xPosition="start",this}end(o=""){return this._xOffset=o,this._xPosition="end",this}width(o=""){return this._overlayRef?this._overlayRef.updateSize({width:o}):this._width=o,this}height(o=""){return this._overlayRef?this._overlayRef.updateSize({height:o}):this._height=o,this}centerHorizontally(o=""){return this.left(o),this._xPosition="center",this}centerVertically(o=""){return this.top(o),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const o=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:s}=t,a=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",V="",ee="";a?ee="flex-start":"center"===u?(ee="center",f?V=h:b=h):f?"left"===u||"end"===u?(ee="flex-end",b=h):("right"===u||"start"===u)&&(ee="flex-start",V=h):"left"===u||"start"===u?(ee="flex-start",b=h):("right"===u||"end"===u)&&(ee="flex-end",V=h),o.position=this._cssPosition,o.marginLeft=a?"0":b,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=a?"0":V,e.justifyContent=ee,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Al),t.justifyContent=t.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let kc=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Hc}flexibleConnectedTo(e){return new vr(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ya),i.LFG(C.K0),i.LFG(Mi),i.LFG(To))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pc=0,hn=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=a,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new vo(e);return d.direction=d.direction||this._directionality.value,new on(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Pc++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new vS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gv),i.LFG(To),i.LFG(i._Vd),i.LFG(kc),i.LFG(qv),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Si),i.LFG(C.Ye),i.LFG(es),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Gb=[{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"}],cm=new i.OlP("cdk-connected-overlay-scroll-strategy");let dm=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),um=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=xt.w0.EMPTY,this._attachSubscription=xt.w0.EMPTY,this._detachSubscription=xt.w0.EMPTY,this._positionSubscription=xt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new Co(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Fe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Fe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Fe(e)}get push(){return this._push}set push(e){this._push=Fe(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Gb);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!$i(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new vo({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof dm?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(pi(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(cm),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const Wb={provide:cm,deps:[hn],useFactory:function qb(n){return()=>n.scrollStrategies.reposition()}};let vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hn,Wb],imports:[_o,Ao,_l,_l]}),n})();class hm{}const Rs="*";function hi(n,o){return{type:7,name:n,definitions:o,options:{}}}function yt(n,o=null){return{type:4,styles:o,timings:n}}function zh(n,o=null){return{type:3,steps:n,options:o}}function pm(n,o=null){return{type:2,steps:n,options:o}}function Pe(n){return{type:6,styles:n,offset:null}}function Mt(n,o,e){return{type:0,name:n,styles:o,options:e}}function Tl(n){return{type:5,steps:n}}function _t(n,o,e=null){return{type:1,expr:n,animation:o,options:e}}function Rc(n=null){return{type:9,options:n}}function Pn(n,o,e=null){return{type:11,selector:n,animation:o,options:e}}function Uh(n){Promise.resolve(null).then(n)}class Lc{constructor(o=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=o+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Uh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(o){this._position=this.totalTime?o*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gh{constructor(o){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=o;let e=0,t=0,r=0;const l=this.players.length;0==l?Uh(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,s)=>Math.max(d,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this.players.forEach(o=>o.init())}onStart(o){this._onStartFns.push(o)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(o=>o()),this._onStartFns=[])}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(o=>o.play())}pause(){this.players.forEach(o=>o.pause())}restart(){this.players.forEach(o=>o.restart())}finish(){this._onFinish(),this.players.forEach(o=>o.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(o=>o.destroy()),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this.players.forEach(o=>o.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(o){const e=o*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const o=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=o?o.getPosition():0}beforeDestroy(){this.players.forEach(o=>{o.beforeDestroy&&o.beforeDestroy()})}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const $b=["connectionContainer"],gm=["inputContainer"],_m=["label"];function Zv(n,o){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function Zb(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Jb(n,o){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function Qb(n,o){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function Kb(n,o){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Jv(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,Jb,4,1,"ng-container",12),i.YNc(3,Qb,1,0,"ng-content",12),i.YNc(4,Kb,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Xb(n,o){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function ey(n,o){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bm(n,o){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ym(n,o){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function ty(n,o){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,ym,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const iy=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ny=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ry=0;const wm=new i.OlP("MatError");let ts=(()=>{class n{constructor(e,t){this.id="mat-error-"+ry++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:wm,useExisting:n}])]}),n})();const ay={transitionMessages:hi("transitionMessages",[Mt("enter",Pe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Pe({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),sy=0;const oy=new i.OlP("MatHint");let pn=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+sy++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:oy,useExisting:n}])]}),n})(),wa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Qv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Kv=new i.OlP("MatPrefix"),ly=new i.OlP("MatSuffix");let Wh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:ly,useExisting:n}])]}),n})(),Cm=0;const eT=Ja(class{constructor(n){this._elementRef=n}},"primary"),dy=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$h=new i.OlP("MatFormField");let Gn=(()=>{class n extends eT{constructor(e,t,r,l,d,s,a){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Cm++,this._labelId="mat-form-field-label-"+Cm++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Fe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Et(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ci.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Et(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Et(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Qa(this._label.nativeElement,"transitionend").pipe((0,Ot.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*V+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,bc,ot]}),n})();function Vc(n){return n&&"function"==typeof n.connect}class uy{applyChanges(o,e,t,r,l){o.forEachOperation((d,s,a)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,a);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==a?(e.remove(s),u=3):(c=e.get(s),e.move(c,a),u=2);l&&l({context:c?.context,operation:u,record:d})})}detach(){}}class si{constructor(o=!1,e,t=!0,r){this._multiple=o,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(o?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,t=new Set(o);o.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,o))return!0;return!1}return this._selection.has(o)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}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(o){this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let Tr=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Fc=new i.OlP("_ViewRepeater");var hy=x(4742),tT=x(1810);function Tm(...n){const o=(0,fr.jO)(n),{args:e,keys:t}=(0,hy.D)(n),r=new nn.y(l=>{const{length:d}=e;if(!d)return void l.complete();const s=new Array(d);let a=d,c=d;for(let u=0;u{h||(h=!0,c--),s[u]=f},()=>a--,void 0,()=>{(!a||!h)&&(c||l.next(t?(0,tT.n)(t,s):s),l.complete())}))}});return o?r.pipe((0,em.Z)(o)):r}let py=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),xl=(()=>{class n extends py{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Tn=new i.OlP("NgValueAccessor"),my={provide:Tn,useExisting:(0,i.Gpc)(()=>Rn),multi:!0},gy=new i.OlP("CompositionEventMode");let Rn=(()=>{class n extends py{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iT(){const n=(0,C.q)()?(0,C.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(gy,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([my]),i.qOj]}),n})();function Mo(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function xm(n){return null!=n&&"number"==typeof n.length}const ln=new i.OlP("NgValidators"),ns=new i.OlP("NgAsyncValidators"),Jh=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Li{static min(o){return function Mm(n){return o=>{if(Mo(o.value)||Mo(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e{if(Mo(o.value)||Mo(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e>n?{max:{max:n,actual:o.value}}:null}}(o)}static required(o){return Qh(o)}static requiredTrue(o){return function Dm(n){return!0===n.value?null:{required:!0}}(o)}static email(o){return function Em(n){return Mo(n.value)||Jh.test(n.value)?null:{email:!0}}(o)}static minLength(o){return function Hm(n){return o=>Mo(o.value)||!xm(o.value)?null:o.value.lengthxm(o.value)&&o.value.length>n?{maxlength:{requiredLength:n,actualLength:o.value.length}}:null}(o)}static pattern(o){return function Pm(n){if(!n)return Kh;let o,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),o=new RegExp(e)):(e=n.toString(),o=n),t=>{if(Mo(t.value))return null;const r=t.value;return o.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(o)}static nullValidator(o){return null}static compose(o){return Ay(o)}static composeAsync(o){return vy(o)}}function Qh(n){return Mo(n.value)?{required:!0}:null}function Kh(n){return null}function _y(n){return null!=n}function by(n){return(0,i.QGY)(n)?(0,cn.D)(n):n}function yy(n){let o={};return n.forEach(e=>{o=null!=e?{...o,...e}:o}),0===Object.keys(o).length?null:o}function wy(n,o){return o.map(e=>e(n))}function Cy(n){return n.map(o=>function nT(n){return!n.validate}(o)?o:e=>o.validate(e))}function Ay(n){if(!n)return null;const o=n.filter(_y);return 0==o.length?null:function(e){return yy(wy(e,o))}}function Rm(n){return null!=n?Ay(Cy(n)):null}function vy(n){if(!n)return null;const o=n.filter(_y);return 0==o.length?null:function(e){return Tm(wy(e,o).map(by)).pipe((0,Qe.U)(yy))}}function Lm(n){return null!=n?vy(Cy(n)):null}function Ty(n,o){return null===n?[o]:Array.isArray(n)?[...n,o]:[n,o]}function xy(n){return n._rawValidators}function My(n){return n._rawAsyncValidators}function Im(n){return n?Array.isArray(n)?n:[n]:[]}function Xh(n,o){return Array.isArray(n)?n.includes(o):n===o}function Sy(n,o){const e=Im(o);return Im(n).forEach(r=>{Xh(e,r)||e.push(r)}),e}function Om(n,o){return Im(o).filter(e=>!Xh(n,e))}class Bm{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=Rm(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Lm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o){this.control&&this.control.reset(o)}hasError(o,e){return!!this.control&&this.control.hasError(o,e)}getError(o,e){return this.control?this.control.getError(o,e):null}}class Ln extends Bm{get formDirective(){return null}get path(){return null}}class $r extends Bm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Vm{constructor(o){this._cd=o}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qn=(()=>{class n extends Vm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($r,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Fm=(()=>{class n extends Vm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const So="VALID",Sl="INVALID",_i="PENDING",ep="DISABLED";function tp(n){return(du(n)?n.validators:n)||null}function Ym(n){return Array.isArray(n)?Rm(n):n||null}function zm(n,o){return(du(o)?o.asyncValidators:n)||null}function Um(n){return Array.isArray(n)?Lm(n):n||null}function du(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function Gm(n,o,e){const t=n.controls;if(!(o?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function qm(n,o,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class ip{constructor(o,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=o,this._rawAsyncValidators=e,this._composedValidatorFn=Ym(this._rawValidators),this._composedAsyncValidatorFn=Um(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get valid(){return this.status===So}get invalid(){return this.status===Sl}get pending(){return this.status==_i}get disabled(){return this.status===ep}get enabled(){return this.status!==ep}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._rawValidators=o,this._composedValidatorFn=Ym(o)}setAsyncValidators(o){this._rawAsyncValidators=o,this._composedAsyncValidatorFn=Um(o)}addValidators(o){this.setValidators(Sy(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Sy(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Om(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Om(o,this._rawAsyncValidators))}hasValidator(o){return Xh(this._rawValidators,o)}hasAsyncValidator(o){return Xh(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){this.touched=!0,this._parent&&!o.onlySelf&&this._parent.markAsTouched(o)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(o=>o.markAllAsTouched())}markAsUntouched(o={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}markAsDirty(o={}){this.pristine=!1,this._parent&&!o.onlySelf&&this._parent.markAsDirty(o)}markAsPristine(o={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}markAsPending(o={}){this.status=_i,!1!==o.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!o.onlySelf&&this._parent.markAsPending(o)}disable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=ep,this.errors=null,this._forEachChild(t=>{t.disable({...o,onlySelf:!0})}),this._updateValue(),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=So,this._forEachChild(t=>{t.enable({...o,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o){this._parent&&!o.onlySelf&&(this._parent.updateValueAndValidity(o),o.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===So||this.status===_i)&&this._runAsyncValidator(o.emitEvent)),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.updateValueAndValidity(o)}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ep:So}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o){if(this.asyncValidator){this.status=_i,this._hasOwnPendingAsyncValidator=!0;const e=by(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:o})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(!1!==e.emitEvent)}get(o){let e=o;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(o,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(o)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?ep:this.errors?Sl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_i)?_i:this._anyControlsHaveStatus(Sl)?Sl:So}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o={}){this.pristine=!this._anyControlsDirty(),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}_updateTouched(o={}){this.touched=this._anyControlsTouched(),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){du(o)&&null!=o.updateOn&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(o){return null}}class np extends ip{constructor(o,e,t){super(tp(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){qm(this,0,o),Object.keys(o).forEach(t=>{Gm(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(Object.keys(o).forEach(t=>{const r=this.controls[t];r&&r.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}}function ap(n,o){return[...o.path,n]}function Do(n,o){Wm(n,o),o.valueAccessor.writeValue(n.value),n.disabled&&o.valueAccessor.setDisabledState?.(!0),function pu(n,o){o.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&ky(n,o)})}(n,o),function pT(n,o){const e=(t,r)=>{o.valueAccessor.writeValue(t),r&&o.viewToModelUpdate(t)};n.registerOnChange(e),o._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,o),function hT(n,o){o.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&ky(n,o),"submit"!==n.updateOn&&n.markAsTouched()})}(n,o),function Hy(n,o){if(o.valueAccessor.setDisabledState){const e=t=>{o.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),o._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,o)}function uu(n,o,e=!0){const t=()=>{};o.valueAccessor&&(o.valueAccessor.registerOnChange(t),o.valueAccessor.registerOnTouched(t)),Eo(n,o),n&&(o._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function hu(n,o){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function Wm(n,o){const e=xy(n);null!==o.validator?n.setValidators(Ty(e,o.validator)):"function"==typeof e&&n.setValidators([e]);const t=My(n);null!==o.asyncValidator?n.setAsyncValidators(Ty(t,o.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();hu(o._rawValidators,r),hu(o._rawAsyncValidators,r)}function Eo(n,o){let e=!1;if(null!==n){if(null!==o.validator){const r=xy(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==o.asyncValidator){const r=My(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return hu(o._rawValidators,t),hu(o._rawAsyncValidators,t),e}function ky(n,o){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function $m(n,o){Wm(n,o)}function Jm(n,o){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(o,e.currentValue)}function gT(n,o){n._syncPendingControls(),o.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ry(n,o){if(!o)return null;let e,t,r;return Array.isArray(o),o.forEach(l=>{l.constructor===Rn?e=l:function OS(n){return Object.getPrototypeOf(n.constructor)===xl}(l)?t=l:r=l}),r||t||e||null}const sp={provide:Ln,useExisting:(0,i.Gpc)(()=>Dl)},fu=(()=>Promise.resolve(null))();let Dl=(()=>{class n extends Ln{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new np({},Rm(e),Lm(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){fu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Do(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){fu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){fu.then(()=>{const t=this._findContainer(e.path),r=new np({});$m(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){fu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){fu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,gT(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ns,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([sp]),i.qOj]}),n})();function Qm(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}function Yc(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const zc=class extends ip{constructor(o=null,e,t){super(tp(e),zm(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),du(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Yc(o)?o.value:o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Qm(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Qm(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(o){Yc(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}},Ji=zc,Oy={provide:$r,useExisting:(0,i.Gpc)(()=>El)},By=(()=>Promise.resolve(null))();let El=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new zc,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Ry(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Jm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Do(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){By.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);By.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ap(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,9),i.Y36(ln,10),i.Y36(ns,10),i.Y36(Tn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Oy]),i.qOj,i.TTD]}),n})(),Vy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),Xm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const mu=new i.OlP("NgModelWithFormControlWarning"),CT={provide:$r,useExisting:(0,i.Gpc)(()=>xr)};let xr=(()=>{class n extends $r{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Ry(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&uu(t,this,!1),Do(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Jm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&uu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ns,10),i.Y36(Tn,10),i.Y36(mu,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([CT]),i.qOj,i.TTD]}),n})();const AT={provide:Ln,useExisting:(0,i.Gpc)(()=>Hl)};let Hl=(()=>{class n extends Ln{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Eo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Do(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){uu(e.control||null,e,!1),function BS(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,gT(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(uu(t||null,e),(n=>n instanceof zc)(r)&&(Do(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);$m(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Py(n,o){return Eo(n,o)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wm(this.form,this),this._oldForm&&Eo(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ns,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([AT]),i.qOj,i.TTD]}),n})();const xT={provide:$r,useExisting:(0,i.Gpc)(()=>op)};let op=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Ry(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ap(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,13),i.Y36(ln,10),i.Y36(ns,10),i.Y36(Tn,10),i.Y36(mu,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([xT]),i.qOj,i.TTD]}),n})(),Is=(()=>{class n{constructor(){this._validator=Kh}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Kh,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const HT={provide:ln,useExisting:(0,i.Gpc)(()=>rs),multi:!0};let rs=(()=>{class n extends Is{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>Qh}enabled(e){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([HT]),i.qOj]}),n})(),Xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xm]}),n})(),cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xy]}),n})(),Ho=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:mu,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xy]}),n})();class LT extends ip{constructor(o,e,t){super(tp(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){this.controls.push(o),this._registerControl(o),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let r=this._adjustIndex(o);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){qm(this,0,o),o.forEach((t,r)=>{Gm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(o.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(const o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}}function ew(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let qS=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return ew(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new np(r,l)}control(e,t,r){let l={};return this.useNonNullable?(ew(t)?l=t:(l.validators=t,l.asyncValidators=r),new zc(e,{...l,nonNullable:!0})):new zc(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new LT(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof zc||e instanceof ip?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ho}),n})(),OT=(()=>{class n extends qS{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ho}),n})();const tw=["trigger"],iw=["panel"];function nw(n,o){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function BT(n,o){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function VT(n,o){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function FT(n,o){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,BT,2,1,"span",10),i.YNc(2,VT,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function jT(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const NT=[[["mat-select-trigger"]],"*"],YT=["mat-select-trigger","*"],rw={transformPanelWrap:hi("transformPanelWrap",[_t("* => void",Pn("@transformPanel",[Rc()],{optional:!0}))]),transformPanel:hi("transformPanel",[Mt("void",Pe({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Mt("showing",Pe({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Mt("showing-multiple",Pe({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_t("void => *",yt("120ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))])};let dg=0;const ug=new i.OlP("mat-select-scroll-strategy"),WT=new i.OlP("MAT_SELECT_CONFIG"),$T={provide:ug,deps:[hn],useFactory:function sw(n){return()=>n.scrollStrategies.reposition()}};class _u{constructor(o,e){this.source=o,this.value=e}}const ZT=Cr(vc(sr(Tc(class{constructor(n,o,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=o,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),hg=new i.OlP("MatSelectTrigger");let JT=(()=>{class n extends ZT{constructor(e,t,r,l,d,s,a,c,u,h,f,b,V,ee){super(d,l,a,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=V,this._defaultOptions=ee,this._panelOpen=!1,this._compareWith=(he,We)=>he===We,this._uid="mat-select-"+dg++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+dg++,this._panelDoneAnimatingStream=new De.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=hr(()=>{const he=this.options;return he?he.changes.pipe(Et(he),(0,Dt.w)(()=>(0,Ci.T)(...he.map(We=>We.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ot.q)(1),(0,Dt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Gt.h)(he=>he),(0,Qe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Gt.h)(he=>!he),(0,Qe.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ee?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ee.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Li.required)??!1}set required(e){this._required=Fe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Fe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Fe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Fi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new si(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ul(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Et(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!$i(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const a=this.selected;a&&s!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||$i(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(a=>!a.disabled&&!a.selected);this.options.forEach(a=>{a.disabled||(s?a.select():a.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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,Ot.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(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ev(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(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 e=(0,Ci.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ci.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),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(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(fl),i.Y36(i.SBq),i.Y36(Si,8),i.Y36(Dl,8),i.Y36(Hl,8),i.Y36($h,8),i.Y36($r,10),i.$8M("tabindex"),i.Y36(ug),i.Y36(aS),i.Y36(WT,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(tw,5),i.Gf(iw,5),i.Gf(um,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.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:[i.qOj,i.TTD]}),n})(),ko=(()=>{class n extends JT{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(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ke(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,Ot.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Qf(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function Dv(n,o,e,t){return ne+t?Math.max(0,n-t+o):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new _u(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const s=0-(e.left+d-(r?l:0)),a=e.right+d-t.width+(r?0:l);s>0?d+=s+8:a>0&&(d-=a+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let a;return this.disableOptionCentering?0:(a=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*a-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Qf(s,this.options,this.optionGroups);const a=r/2;this._scrollTop=this._calculateOverlayScroll(s,a,d),this._offsetY=this._calculateOverlayOffsetY(s,a,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hg,5),i.Suo(r,Mc,5),i.Suo(r,Ab,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:Ic,useExisting:n},{provide:Zf,useExisting:n}]),i.qOj],ngContentSelectors:YT,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(e,t){if(1&e&&(i.F$t(NT),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,nw,2,1,"span",3),i.YNc(5,FT,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,jT,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[C.mk,C.RF,C.n9,C.ED,um,dm],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:[rw.transformPanelWrap,rw.transformPanel]},changeDetection:0}),n})(),Po=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$T],imports:[C.ez,vl,Kf,ot,Ka,Bc,Kf,ot]}),n})();const QT=["tooltip"],bu="tooltip-panel",yu=fa({passive:!0}),pg=new i.OlP("mat-tooltip-scroll-strategy"),fg={provide:pg,deps:[hn],useFactory:function ow(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},lw=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function ex(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let tx=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=s,this._ariaDescriber=a,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Fi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Fi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,yu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new bl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${bu}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!$i(r)&&(r.preventDefault(),r.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(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...r.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ot.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const s=this._overlayRef;if(s){const a=`${this._cssClassPrefix}-${bu}-`;s.removePanelClass(a+this._currentPosition),s.addPanelClass(a+d)}this._currentPosition=d}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,yu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),$c=(()=>{class n extends tx{constructor(e,t,r,l,d,s,a,c,u,h,f,b){super(e,t,r,l,d,s,a,c,u,h,f,b),this._tooltipComponent=gg}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.SBq),i.Y36(yo),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Mi),i.Y36(If),i.Y36(An),i.Y36(pg),i.Y36(Si,8),i.Y36(lw,8),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),mg=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),gg=(()=>{class n extends mg{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(yc),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(QT,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[C.mk,C.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}),n})(),Zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fg],imports:[kh,C.ez,vl,ot,ot,Ka]}),n})();function _g(n,o){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function ix(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,_g,2,2,"mat-option",18),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function nx(n,o){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function rx(n,o){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,ix,3,8,"mat-form-field",14),i.YNc(4,nx,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function ax(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function dw(n,o){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let Jc=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hw={provide:Jc,deps:[[new i.FiY,new i.tp0,Jc]],useFactory:function uw(n){return n||new Jc}},ox=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),fw=sr(eu(class{}));let mw=(()=>{class n extends fw{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:a}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=a&&(this._showFirstLastButtons=a)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Fi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Fi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Fi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Fi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Fe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Fe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),gw=(()=>{class n extends mw{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jc),i.Y36(i.sBO),i.Y36(ox,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,rx,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,ax,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,dw,3,5,"button",11),i.qZA()()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[C.sg,C.O5,Yt,Gn,ko,Mc,$c],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),wu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hw],imports:[C.ez,_a,Po,Zc,ot]}),n})();var bg=x(1005);const Wn=["mat-menu-item",""];function Qc(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const _w=["*"];function lx(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const yg={transformMenu:hi("transformMenu",[Mt("void",Pe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Pe({opacity:1,transform:"scale(1)"}))),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))]),fadeInItems:hi("fadeInItems",[Mt("showing",Pe({opacity:1})),_t("void => *",[Pe({opacity:0}),yt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},bw=new i.OlP("MatMenuContent"),wg=new i.OlP("MAT_MENU_PANEL"),ux=Cr(sr(class{}));let as=(()=>{class n extends ux{constructor(e,t,r,l,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=xt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Cw++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Fe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new pl(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,Dt.w)(e=>(0,Ci.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),l=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[l]&&!r[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,Dt.w)(t=>(0,Ci.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:$i(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Et(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ww),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,bw,5),i.Suo(r,as,5),i.Suo(r,as,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Cu=(()=>{class n extends Kc{constructor(e,t,r,l){super(e,t,r,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ww),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:wg,useExisting:n}]),i.qOj],ngContentSelectors:_w,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,lx,3,6,"ng-template"))},dependencies:[C.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[yg.transformMenu,yg.fadeInItems]},changeDetection:0}),n})();const pp=new i.OlP("mat-menu-scroll-strategy"),Aw={provide:pp,deps:[hn],useFactory:function KS(n){return()=>n.scrollStrategies.reposition()}},Ag=fa({passive:!0});let Xc=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=a,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=xt.w0.EMPTY,this._hoverSubscription=xt.w0.EMPTY,this._menuCloseSubscription=xt.w0.EMPTY,this._handleTouchStart=h=>{Eh(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof Kc?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ag),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ag),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Kc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Kc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Gt.h)(r=>"void"===r.toState),(0,Ot.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new vo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",d="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,d)):e.setPositionClasses(l,d)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[d,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[a,c]=[d,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(a="top"===d?"bottom":"top",c="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:a,overlayX:u,overlayY:d,offsetY:f},{originX:l,originY:a,overlayX:h,overlayY:d,offsetY:f},{originX:r,originY:c,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:c,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ve.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Gt.h)(d=>d!==this._menuItemInstance),(0,Gt.h)(()=>this._menuOpen)):(0,Ve.of)();return(0,Ci.T)(e,r,l,t)}_handleMousedown(e){Za(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Gt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,bg.g)(0,rm)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Kc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ot.q)(1),(0,bg.g)(0,rm),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Co(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pp),i.Y36(wg,8),i.Y36(as,10),i.Y36(Si,8),i.Y36(An),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),vw=(()=>{class n extends Xc{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),Au=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Aw],imports:[C.ez,ot,un,vl,Ka,ot]}),n})();var fp=x(3099);const eD=["*"];let mp;function vu(n){return function tD(){if(void 0===mp&&(mp=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(mp=n.trustedTypes.createPolicy("angular#components",{createHTML:o=>o}))}return mp}()?.createHTML(n)||n}function Tw(n){return Error(`Unable to find icon with the name "${n}"`)}function vg(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Tg(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Pl{constructor(o,e,t){this.url=o,this.svgText=e,this.options=t}}let Ro=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Pl(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw Tg(r);const s=vu(d);return this._addSvgIconConfig(e,t,new Pl("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Pl(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Tg(t);const d=vu(l);return this._addSvgIconSetConfig(e,new Pl("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw vg(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ve.of)(gp(r)):this._loadSvgIconFromConfig(new Pl(e,null)).pipe((0,Bt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Qe.U)(l=>gp(l)))}getNamedSvgIcon(e,t=""){const r=xg(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,pr._)(Tw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ve.of)(gp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Qe.U)(t=>gp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ve.of)(r):Tm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,O.K)(s=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),(0,Ve.of)(null)})))).pipe((0,Qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Tw(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(d,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Bt.b)(t=>e.svgText=t),(0,Qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ve.of)(null):this._fetchIcon(e).pipe((0,Bt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const s=this._svgElementFromString(vu(""));return s.appendChild(d),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(vu("")),r=e.attributes;for(let l=0;lvu(c)),Zt(()=>this._inProgressUrlFetches.delete(d)),(0,fp.B)());return this._inProgressUrlFetches.set(d,a),a}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(xg(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ro?o.pathname+o.search:""}}}),Hw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],fx=Hw.map(n=>`[${n}]`).join(", "),nD=/^url\(['"]?#(.*?)['"]?\)$/;let Ii=(()=>{class n extends Mw{constructor(e,t,r,l,d,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=xt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Fe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(fx),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],a=s.getAttribute(d),c=a?a.match(nD):null;if(c){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,Ot.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ro),i.$8M("aria-hidden"),i.Y36(Dw),i.Y36(i.qLn),i.Y36(Sw,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:eD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),n})(),Rl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function Bs(n){return!!n&&(n instanceof nn.y||(0,ba.m)(n.lift)&&(0,ba.m)(n.subscribe))}var rD=x(6063);class aD extends De.x{constructor(o=1/0,e=1/0,t=rD.l){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:d}=this;e||(t.push(o),!r&&t.push(l.now()+d)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let d=0;dnew aD(t,o,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class _p{}let gx=(()=>{class n extends _p{getTranslation(e){return(0,Ve.of)({})}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class kw{}let Tu=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Mg(n,o){if(n===o)return!0;if(null===n||null===o)return!1;if(n!=n&&o!=o)return!0;let r,l,d,e=typeof n;if(e==typeof o&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(o))return!1;for(l in d=Object.create(null),n){if(!Mg(n[l],o[l]))return!1;d[l]=!0}for(l in o)if(!(l in d)&&typeof o[l]<"u")return!1;return!0}if(!Array.isArray(o))return!1;if((r=n.length)==o.length){for(l=0;l{ed(o[t])?t in n?e[t]=Sg(n[t],o[t]):Object.assign(e,{[t]:o[t]}):Object.assign(e,{[t]:o[t]})}),e}class xu{}let _x=(()=>{class n extends xu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Vs(e)||!Vs(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return Vs(d)?d:r}):e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class td{}let Dg=(()=>{class n extends td{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Pw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const bp=new i.OlP("USE_STORE"),Rw=new i.OlP("USE_DEFAULT_LANG"),Eg=new i.OlP("DEFAULT_LANGUAGE"),Hg=new i.OlP("USE_EXTEND");let Yi=(()=>{class n{constructor(e,t,r,l,d,s=!0,a=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ve.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ve.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(mx(1),(0,Ot.q)(1));return this.loadingTranslations=t.pipe((0,Qe.U)(r=>this.compiler.compileTranslations(r,e)),mx(1),(0,Ot.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Sg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},s=!1;for(let a of t)d[a]=this.getParsedResult(e,a,r),Bs(d[a])&&(s=!0);return s?Tm(t.map(c=>Bs(d[c])?d[c]:(0,Ve.of)(d[c]))).pipe((0,Qe.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let d={key:t,translateService:this};typeof r<"u"&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return typeof l<"u"?l:t}get(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,En.b)(r=>Bs(r=this.getParsedResult(r,e,t))?r:(0,Ve.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Bs(r)?r:(0,Ve.of)(r)}}getStreamOnTranslationChange(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ra.z)(hr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Dt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ve.of)(l)})))}stream(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ra.z)(hr(()=>this.get(e,t)),this.onLangChange.pipe((0,Dt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Bs(l)?l:(0,Ve.of)(l)})))}instant(e,t){if(!Vs(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Bs(r)){if(e instanceof Array){let l={};return e.forEach((d,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pw),i.LFG(_p),i.LFG(td),i.LFG(xu),i.LFG(kw),i.LFG(Rw),i.LFG(bp),i.LFG(Hg),i.LFG(Eg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),St=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Bs(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Mg(e,this.lastKey)&&Mg(t,this.lastParams))return this.value;let r;if(Vs(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),yp=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:_p,useClass:gx},e.compiler||{provide:td,useClass:Dg},e.parser||{provide:xu,useClass:_x},e.missingTranslationHandler||{provide:kw,useClass:Tu},Pw,{provide:bp,useValue:e.isolate},{provide:Rw,useValue:e.useDefaultLang},{provide:Hg,useValue:e.extend},{provide:Eg,useValue:e.defaultLanguage},Yi]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:_p,useClass:gx},e.compiler||{provide:td,useClass:Dg},e.parser||{provide:xu,useClass:_x},e.missingTranslationHandler||{provide:kw,useClass:Tu},{provide:bp,useValue:e.isolate},{provide:Rw,useValue:e.useDefaultLang},{provide:Hg,useValue:e.extend},{provide:Eg,useValue:e.defaultLanguage},Yi]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[wu,Au,Rl,_a,yp,C.ez]}),n})();var sD=x(5861);function yx(n,o){}class wp{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 wx=(()=>{class n extends yl{constructor(e,t,r,l,d,s,a,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=d,this._ngZone=s,this._overlayRef=a,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Ds(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Ds();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ds())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(wp),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(Xa,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,yx,0,0,"ng-template",0)},dependencies:[Xa],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Pg{constructor(o,e){this.overlayRef=o,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!$i(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(o,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(o),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",e=""){return this.overlayRef.updateSize({width:o,height:e}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}}const Rg=new i.OlP("DialogScrollStrategy"),Lw=new i.OlP("DialogData"),lD=new i.OlP("DefaultDialogConfig"),Cx={provide:Rg,deps:[hn],useFactory:function Ca(n){return()=>n.scrollStrategies.block()}};let Lg=0,Iw=(()=>{class n{constructor(e,t,r,l,d,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new wp,...t}).id=t.id||"cdk-dialog-"+Lg++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),d=this._overlay.create(l),s=new Pg(d,t),a=this._attachContainer(d,s,t);return s.containerInstance=a,this._attachDialogContent(e,s,a,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){$n(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$n(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),$n(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new vo({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const l=r.injector??r.viewContainerRef?.injector,d=[{provide:wp,useValue:r},{provide:Pg,useValue:t},{provide:on,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,d.push(...r.container.providers(r))):s=wx;const a=new bl(s,r.viewContainerRef,i.zs3.create({parent:l||this._injector,providers:d}),r.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,t,r,l){const d=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Co(e,null,s,d))}else{const s=r.attachComponentPortal(new bl(e,l.viewContainerRef,d,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:Lw,useValue:e.data},{provide:Pg,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,r)):d.push(...e.providers)),e.direction&&(!l||!l.get(Si,null,i.XFs.Optional))&&d.push({provide:Si,useValue:{value:e.direction,change:(0,Ve.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:d})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,d)=>{l?d.setAttribute("aria-hidden",l):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hn),i.LFG(i.zs3),i.LFG(lD,8),i.LFG(n,12),i.LFG(To),i.LFG(Rg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $n(n,o){let e=n.length;for(;e--;)o(n[e])}let Ax=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Iw,Cx],imports:[vl,Ao,kh,Ao]}),n})();function Ig(n,o){}const id={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vx={dialogContainer:hi("dialogContainer",[Mt("void, exit",Pe({opacity:0,transform:"scale(0.7)"})),Mt("enter",Pe({transform:"none"})),_t("* => enter",zh([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Pe({transform:"none",opacity:1})),Pn("@*",Rc(),{optional:!0})]),id),_t("* => void, * => exit",zh([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Pe({opacity:0})),Pn("@*",Rc(),{optional:!0})]),id)])};class Ll{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=id.params.enterAnimationDuration,this.exitAnimationDuration=id.params.exitAnimationDuration}}let Ow=(()=>{class n extends wx{constructor(e,t,r,l,d,s,a,c){super(e,t,r,l,d,s,a,c),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Ll),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Bw=(()=>{class n extends Ow{constructor(e,t,r,l,d,s,a,c,u){super(e,t,r,l,d,s,a,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||id.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||id.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(C.K0,8),i.Y36(Ll),i.Y36(Jd),i.Y36(i.R0b),i.Y36(on),i.Y36(i.sBO),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,Ig,0,0,"ng-template",0)},dependencies:[Xa],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:[vx.dialogContainer]}}),n})();class In{constructor(o,e,t){this._ref=o,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=o.id,t._animationStateChanged.pipe((0,Gt.h)(r=>"opened"===r.state),(0,Ot.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Gt.h)(r=>"closed"===r.state),(0,Ot.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ci.T)(this.backdropClick(),this.keydownEvents().pipe((0,Gt.h)(r=>27===r.keyCode&&!this.disableClose&&!$i(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Vw(n,o,e){n._closeInteractionType=o,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(o){this._result=o,this._containerInstance._animationStateChanged.pipe((0,Gt.h)(e=>"closing"===e.state),(0,Ot.q)(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(o){let e=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?e.left(o.left):e.right(o.right):e.centerHorizontally(),o&&(o.top||o.bottom)?o.top?e.top(o.top):e.bottom(o.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",e=""){return this._ref.updateSize(o,e),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Zr=new i.OlP("MatDialogData"),Tx=new i.OlP("mat-dialog-default-options"),Og=new i.OlP("mat-dialog-scroll-strategy"),Lo={provide:Og,deps:[hn],useFactory:function Bg(n){return()=>n.scrollStrategies.block()}};let Fw=0,Vg=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=a,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(void 0))),this._scrollStrategy=s,this._dialog=t.get(Iw)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Ll,...t}).id=t.id||`${this._idPrefix}${Fw++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Ll,useValue:t},{provide:wp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(d,s,a)=>(r=new this._dialogRefConstructor(d,t,a),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(r);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),bi=(()=>{class n extends Vg{constructor(e,t,r,l,d,s,a,c){super(e,t,l,s,a,d,In,Bw,Zr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hn),i.LFG(i.zs3),i.LFG(C.Ye,8),i.LFG(Tx,8),i.LFG(Og),i.LFG(n,12),i.LFG(To),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),xx=0,Mr=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+xx++}ngOnInit(){this._dialogRef||(this._dialogRef=function Mx(n,o){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?o.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In,8),i.Y36(i.SBq),i.Y36(bi))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Sr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Dr=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Mu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[bi,Lo],imports:[Ax,vl,Ao,ot,ot]}),n})();var dD=x(4327);const Io=[5,10,25,100];function Nw(n){let o="";return null!==n.titleBefore&&(o+=n.titleBefore+" "),null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),null!==n.titleAfter&&(o+=n.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function Ng(){return(Ng=(0,sD.Z)(function*(n,o){yield Uw(n),o()})).apply(this,arguments)}function Uw(n){return new Promise(o=>setTimeout(o,n))}function xn(){const n=new Ll;return n.disableClose=!0,n.autoFocus=!1,n}const Ox=new Intl.Collator("cs",{numeric:!0});function Oo(n,o,e){const t=o.active,r=o.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),a=e(d,t);return Ox.compare(s,a)*("asc"===r?1:-1)}):n}function Il(n,o,e,t,r){o=o.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(o)}function Fs(n,o){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===o&&(e=t.value)}),e}function Aa(n,o,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};o.forEach(s=>{d[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(d)}),t}function va(n,o="csv",e="export"){if("csv"===o){const t=(a,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(a=>r.map(c=>JSON.stringify(a[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),s=new Blob([d],{type:"text/csv"});(0,dD.saveAs)(s,`${e}.${o}`)}}const Jw="GUI_CONFIG.PREF_PAGE_SIZE.";let Nx=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qw=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Jw+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Jw+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Nx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ck(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let Ak=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,Ck,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),d=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",d),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Cu,as,vw,Ii,Yt,C.O5,St]}),n})();function vk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function Tk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const xk=["*"];let ss=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Io,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Qw))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(gw,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:xk,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,vk,1,1,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1)(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,Tk,1,1,"perun-web-apps-table-options",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},dependencies:[gw,C.O5,Ak]}),n})(),Zn=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let r=null;for(const l of t)l&&!r&&(r=l[e]);return r}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Ri),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(d.prompt="consent"),sessionStorage.getItem("mfa_route")&&(d.acr_values="https://refeds.org/profile/mfa",d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const s=function Vx(n,o){const e=o.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));s&&(d.idphint=s)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(r=>r?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Gt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(s=>{const a=s.split("=");d[a[0]]=a[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Gt.h)(e=>e instanceof la)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(Zn),i.LFG(bi),i.LFG(zn),i.LFG(Gx.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mk=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Sr,St]}),n})(),qx=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=xn();this.dialog.open(Mk,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zg),i.LFG(Zn),i.LFG(ra),i.LFG(nt),i.LFG(bi),i.LFG(Ri))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),MD=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ro),i.LFG(Ei))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Sk=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Mr,Sr,Dr,Yt,St]}),n})(),Dk=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),On=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SD=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=s}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=xn();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Sk,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Bt.b)(s=>{s instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},s=>{const a=this.formatErrors(s,e);return void 0===a?(0,pr._)(s):l?void this.notificator.showRPCError(a):(0,pr._)(a)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zg),i.LFG(Dk),i.LFG(On),i.LFG(Zn),i.LFG(bi),i.LFG(qx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DD=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ek=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new w.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,O.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,O.K)(s=>this.formatErrors(s,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:s}).pipe((0,O.K)(a=>this.formatErrors(a,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,O.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,pr._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(On),i.LFG(zg),i.LFG(Zn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,s,a,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,a).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const s of l){const a=s.split("=");"lang"===a[0]&&(d=a[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zn),i.LFG(Zn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uC=["*"],kk=["content"];function Pk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Rk(n,o){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Lk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Ik=["mat-drawer","mat-drawer-content","*"];function Ok(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Bk(n,o){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Vk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Fk=["mat-sidenav","mat-sidenav-content","*"],ED={transformDrawer:hi("transform",[Mt("open, open-instant",Pe({transform:"none",visibility:"visible"})),Mt("void",Pe({"box-shadow":"none",visibility:"hidden"})),_t("void => open-instant",yt("0ms")),_t("void <=> open, open-instant => void",yt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Nk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Yk(){return!1}}),Wx=new i.OlP("MAT_DRAWER_CONTAINER");let hC=(()=>{class n extends gl{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>kD)),i.Y36(i.SBq),i.Y36(yo),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:gl,useExisting:n}]),i.qOj],ngContentSelectors:uC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),HD=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=a,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Gt.h)(u=>u),(0,Qe.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,Kt.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Gt.h)(u=>!u),(0,Qe.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,Kt.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Qa(this._elementRef.nativeElement,"keydown").pipe((0,Gt.h)(u=>27===u.keyCode&&!this.disableClose&&!$i(u)),Ke(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ul((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Fe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Fe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Fe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,Ot.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(An),i.Y36(Mi),i.Y36(i.R0b),i.Y36(Jd),i.Y36(C.K0,8),i.Y36(Wx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(kk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:uC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[gl],encapsulation:2,data:{animation:[ED.transformDrawer]},changeDetection:0}),n})(),kD=(()=>{class n{constructor(e,t,r,l,d,s=!1,a){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=a,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Fe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Fe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Et(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Et(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,dl.b)(10),Ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Gt.h)(t=>t.fromState!==t.toState),Ke(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ot.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Ci.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(ya),i.Y36(Nk),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hC,5),i.Suo(r,HD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(hC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:Wx,useExisting:n}])],ngContentSelectors:Ik,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Lk),i.YNc(0,Pk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Rk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,hC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),$x=(()=>{class n extends hC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>RD)),i.Y36(i.SBq),i.Y36(yo),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:gl,useExisting:n}]),i.qOj],ngContentSelectors:uC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),PD=(()=>{class n extends HD{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Fe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Fi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Fi(e)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:uC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[gl],encapsulation:2,data:{animation:[ED.transformDrawer]},changeDetection:0}),n})(),RD=(()=>{class n extends kD{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,$x,5),i.Suo(r,PD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:Wx,useExisting:n}]),i.qOj],ngContentSelectors:Fk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Vk),i.YNc(0,Ok,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Bk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,$x],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),LD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,Ka,Ka,ot]}),n})();const ID=fa({passive:!0});let zk=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return yi.E;const t=Zi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,d="cdk-text-field-autofilled",s=a=>{"cdk-text-field-autofill-start"!==a.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===a.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,ID),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,ID)}}),l}stopMonitoring(e){const t=Zi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Mi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),OD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const BD=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),Uk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Gk=0;const qk=Tc(class{constructor(n,o,e,t){this._defaultErrorStateMatcher=n,this._parentForm=o,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let os=(()=>{class n extends qk{constructor(e,t,r,l,d,s,a,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+Gk++,this.focused=!1,this.stateChanges=new De.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(V=>AA().has(V)),this._iOSKeyupListener=V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=a||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Fe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Li.required)??!1}set required(e){this._required=Fe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&AA().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Fe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){Uk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Mi),i.Y36($r,10),i.Y36(Dl,8),i.Y36(Hl,8),i.Y36(fl),i.Y36(BD,10),i.Y36(zk),i.Y36(i.R0b),i.Y36($h,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[i._Bn([{provide:Ic,useExisting:n}]),i.qOj,i.TTD]}),n})(),pC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fl],imports:[OD,Bc,ot,OD,Bc]}),n})();function Wk(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let $k=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Yi),i.Y36(On),i.Y36(ai),i.Y36(Zn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,Wk,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i.TgZ(21,"div",6)(22,"div",7)(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA()()()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[C.O5,Rn,qn,rs,El,Yt,ts,Gn,pn,wa,os,Mr,Sr,Dr,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),Zk=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),Jk=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),Qk=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function Kk(n,o){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function Xk(n,o){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function eP(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,Kk,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,Xk,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=o.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const tP=function(n){return{"min-height":n}};function iP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,eP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,tP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const ad=function(n){return{color:n}};function nP(n,o){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,ad,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function rP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.openDialog(r.dialog))}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,ad,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function aP(n,o){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,ad,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function sP(n,o){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,ad,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function oP(n,o){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,nP,2,4,"i",17),i.YNc(2,rP,3,8,"span",18),i.YNc(3,aP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,sP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=o.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const lP=function(n){return{height:n}};function cP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,oP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,lP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function dP(n,o){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,iP,2,4,"div",9),i.YNc(5,cP,2,4,"div",9),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ad,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function uP(n,o){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,ad,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const hP=function(n){return{background:n}};let VD=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=xn();"reportIssue"===e&&(t.width="550px",this.dialog.open($k,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(Yi),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,dP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,uP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(8,hP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,ad,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,ad,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},dependencies:[C.sg,C.O5,C.PC,Zk,Jk,Qk],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),n})();function pP(n,o){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function fP(n,o){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const mP=function(n){return{color:n}};function gP(n,o){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,mP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const _P=function(n,o){return{background:n,color:o}},bP=function(n,o){return{"min-height":n,"background-color":o}};let yP=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(Ei),i.Y36(Hk),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pP,2,1,"div",1),i.YNc(2,fP,3,1,"div",2),i.YNc(3,gP,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,_P,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,bP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[C.O5,C.PC,Ii,gi,VD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})();hi("openClose",[Mt("open",Pe({overflow:"hidden"})),Mt("closed",Pe({height:"0px",overflow:"hidden"})),_t("open <=> closed",[yt(".3s ease-in")])]);const wP=hi("flyInOut",[_t(":enter",[Pe({transform:"translateX(100%)"}),yt(".25s")]),_t(":leave",[yt(".5s",Pe({transform:"translateX(100%)"}))])]);hi("rollInOut",[_t(":enter",[Pe({height:"0px"}),yt(".25s")]),_t(":leave",[yt(".25s",Pe({height:"0px"}))])]),hi("routeAnimations",[_t("* => *",[Pe({position:"relative"}),Pn(":enter",[Pe({width:"100%",opacity:0})],{optional:!0}),Pn(":leave",[Pe({position:"absolute",width:"100%",opacity:1}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Pn(":enter",[Pe({position:"absolute",width:"100%",opacity:0}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),hi("tagsOpenClose",[Mt("open",Pe({})),Mt("closed",Pe({width:"0px",height:"0px"})),_t("open <=> closed",[yt(".3s ease-in")])]),hi("switchAnimations",[_t("true => false",[Pn(":enter, :leave",Pe({})),zh([Pn(":enter",[Pe({transform:"translateX(-100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Pn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(100%)"}))],{optional:!0})])]),_t("false => true",[Pn(":enter, :leave",Pe({})),zh([Pn(":enter",[Pe({transform:"translateX(100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Pn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(-100%)"}))],{optional:!0})])])]),hi("slideInOutLeft",[_t(":enter",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[yt("0.5s ease-in",Pe({transform:"translateX(-100%)"}))])]),hi("slideInOutRight",[_t(":enter",[Pe({transform:"translateX(100%)",position:"fixed"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(100%)"}))])]);let FD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez]}),n})();function SP(n,o){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function DP(n,o){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const HP=Ja(class{constructor(n){this._elementRef=n}},"primary"),kP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function PP(){return{diameter:100}}});class Ai extends HP{constructor(o,e,t,r,l,d,s,a){super(o),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=xt.w0.EMPTY,this.mode="determinate";const c=Ai._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===o.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&a&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&a.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(o){this._diameter=Fi(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(o){this._strokeWidth=Fi(o)}get value(){return"determinate"===this.mode?this._value:0}set value(o){this._value=Math.max(0,Math.min(100,Fi(o)))}ngOnInit(){const o=this._elementRef.nativeElement;this._styleRoot=gc(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const o=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${o} ${o}`}_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(o){const e=50*(o.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const o=this._styleRoot,e=this._diameter,t=Ai._diameters;let r=t.get(o);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),o.appendChild(l),r||(r=new Set,t.set(o,r)),r.add(e)}}_getAnimationText(){const o=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*o).replace(/END_VALUE/g,""+.2*o).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ai._diameters=new WeakMap,Ai.\u0275fac=function(o){return new(o||Ai)(i.Y36(i.SBq),i.Y36(Mi),i.Y36(C.K0,8),i.Y36(i.QbO,8),i.Y36(kP),i.Y36(i.sBO),i.Y36(ya),i.Y36(i.R0b))},Ai.\u0275cmp=i.Xpm({type:Ai,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(o,e){2&o&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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(o,e){1&o&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,SP,1,11,"circle",2),i.YNc(3,DP,1,9,"circle",3),i.qZA()),2&o&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[C.RF,C.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 fC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,C.ez,ot]}),n})();function LP(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function IP(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function OP(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function BP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,IP,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,OP,3,3,"mat-error",11),i.qZA()()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let VP=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Yi),i.Y36(On),i.Y36(ai),i.Y36(Zr),i.Y36(Zn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,LP,1,0,"mat-spinner",1),i.YNc(4,BP,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[C.O5,Mr,Sr,Dr,Yt,ts,Gn,wa,Rn,qn,rs,El,os,Ai,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),FP=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=xn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(VP,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(bi),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2)(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Mr,Sr,Dr,Yt,St]}),n})();const UP=[[["caption"]],[["colgroup"],["col"]]],GP=["caption","colgroup, col"];function Jx(n){return class extends n{constructor(...o){super(...o),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(o){const e=this._sticky;this._sticky=Fe(o),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const o=this._hasStickyChanged;return this._hasStickyChanged=!1,o}resetStickyChanged(){this._hasStickyChanged=!1}}}const Cp=new i.OlP("CDK_TABLE");let Ap=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),vp=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),mC=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class ZP{}const JP=Jx(ZP);let Ol=(()=>{class n extends JP{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Fe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Ap,5),i.Suo(r,vp,5),i.Suo(r,mC,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Qx{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}}let Kx=(()=>{class n extends Qx{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ol),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),Xx=(()=>{class n extends Qx{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ol),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class ND{constructor(){this.tasks=[],this.endTasks=[]}}const eM=new i.OlP("_COALESCED_STYLE_SCHEDULER");let YD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ND,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new ND;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,cn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Ot.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),tM=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ug?e.headerCell.template:this instanceof Gg?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class QP extends tM{}const KP=Jx(QP);let Ug=(()=>{class n extends KP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class XP extends tM{}const eR=Jx(XP);let Gg=(()=>{class n extends eR{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),gC=(()=>{class n extends tM{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Bl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),iM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Bl],encapsulation:2}),n})(),rM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Bl],encapsulation:2}),n})(),_C=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const zD=["top","bottom","left","right"];class tR{constructor(o,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=o,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){const t=[];for(const r of o)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(o,e,t,r=!0){if(!o.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=o[0],d=l.children.length,s=this._getCellWidths(l,r),a=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",V=f?"left":"right";for(const ee of o)for(let he=0;hee[he]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((ee,he)=>t[he+h]?ee:null).reverse()}))})}stickRows(o,e,t){if(!this._isBrowser)return;const r="bottom"===t?o.slice().reverse():o,l="bottom"===t?e.slice().reverse():e,d=[],s=[],a=[];for(let u=0,h=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(o,e){for(const r of e)o.style[r]="",o.classList.remove(this._borderCellCss[r]);zD.some(r=>-1===e.indexOf(r)&&o.style[r])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,r){o.classList.add(this._stickCellCss),r&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of zD)o.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=o.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=o[l]);return t}}const aM=new i.OlP("CDK_SPL");let bC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),yC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),wC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),CC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),AC=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=a,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new Hi({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Fe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Fe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Vc(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Ot.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(d)?r.get(d):[];if(s.length){const a=s.shift();return a.dataIndex=t,a}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),vC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=vC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=vC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=vC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,s)=>d||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Vc(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Vc(this.dataSource)?e=this.dataSource.connect(this):Bs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ve.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),d=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Bl.mostRecentCellOutlet&&Bl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new tR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Ve.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&d?.nodeType===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Si,8),i.Y36(C.K0),i.Y36(Mi),i.Y36(Fc),i.Y36(eM),i.Y36(ya),i.Y36(aM,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,_C,5),i.Suo(r,Ol,5),i.Suo(r,gC,5),i.Suo(r,Ug,5),i.Suo(r,Gg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(bC,7),i.Gf(yC,7),i.Gf(wC,7),i.Gf(CC,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Cp,useExisting:n},{provide:Fc,useClass:uy},{provide:eM,useClass:YD},{provide:aM,useValue:null}])],ngContentSelectors:GP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(UP),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[bC,yC,wC,CC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function vC(n,o){return n.concat(Array.from(o))}let nR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_l]}),n})();const rR=[[["caption"]],[["colgroup"],["col"]]],aR=["caption","colgroup, col"];let Bo=(()=>{class n extends AC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:Fc,useClass:uy},{provide:AC,useExisting:n},{provide:Cp,useExisting:n},{provide:eM,useClass:YD},{provide:aM,useValue:null}]),i.qOj],ngContentSelectors:aR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(rR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[bC,yC,wC,CC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),js=(()=>{class n extends Ap{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:Ap,useExisting:n}]),i.qOj]}),n})(),Ns=(()=>{class n extends vp{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:vp,useExisting:n}]),i.qOj]}),n})(),Ys=(()=>{class n extends Ol{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ol,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),zs=(()=>{class n extends Kx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),Us=(()=>{class n extends Xx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Vl=(()=>{class n extends Ug{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:Ug,useExisting:n}]),i.qOj]}),n})(),Vo=(()=>{class n extends gC{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:gC,useExisting:n}]),i.qOj]}),n})(),Fl=(()=>{class n extends iM{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:iM,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Bl],encapsulation:2}),n})(),Fo=(()=>{class n extends rM{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:rM,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Bl],encapsulation:2}),n})(),TC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[nR,ot,ot]}),n})();class jl extends class gR extends class Am{}{constructor(o=[]){super(),this._renderData=new Hi([]),this._filter=new Hi(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Z_(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,s)=>{let a=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof a,h=typeof c;u!==h&&("number"===u&&(a+=""),"number"===h&&(c+=""));let f=0;return null!=a&&null!=c?a>c?f=1:a{const r=Object.keys(e).reduce((d,s)=>d+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Hi(o),this._updateChangeSubscription()}get data(){return this._data.value}set data(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}get filter(){return this._filter.value}set filter(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(o){this._sort=o,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(o){this._paginator=o,this._updateChangeSubscription()}_updateChangeSubscription(){const o=this._sort?(0,Ci.T)(this._sort.sortChange,this._sort.initialized):(0,Ve.of)(null),e=this._paginator?(0,Ci.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ve.of)(null),r=(0,Pa.a)([this._data,this._filter]).pipe((0,Qe.U)(([s])=>this._filterData(s))),l=(0,Pa.a)([r,o]).pipe((0,Qe.U)(([s])=>this._orderData(s))),d=(0,Pa.a)([l,e]).pipe((0,Qe.U)(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(s=>this._renderData.next(s))}_filterData(o){return this.filteredData=null==this.filter||""===this.filter?o:o.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(o){return this.sort?this.sortData(o.slice(),this.sort):o}_pageData(o){if(!this.paginator)return o;const e=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(e,e+this.paginator.pageSize)}_updatePaginator(o){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=o,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}function _R(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function bR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function yR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function wR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const CR=["*"];let Gs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:CR,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,_R,2,0,"mat-icon",1),i.YNc(2,bR,2,0,"mat-icon",1),i.YNc(3,yR,2,0,"mat-icon",1),i.YNc(4,wR,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ii,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function AR(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function vR(n,o){1&n&&(i.TgZ(0,"div",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function TR(n,o){1&n&&i._UZ(0,"th",18)}function xR(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e)}}function MR(n,o){1&n&&i._UZ(0,"tr",20)}function SR(n,o){1&n&&i._UZ(0,"tr",21)}function DR(n,o){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function ER(n,o){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vR,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,TR,1,0,"th",12),i.YNc(8,xR,2,1,"td",13),i.BQk(),i.YNc(9,MR,1,0,"tr",14),i.YNc(10,SR,1,0,"tr",15),i.qZA(),i.YNc(11,DR,3,4,"perun-web-apps-alert",16),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function HR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function kR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let GD=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new jl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,AR,1,0,"mat-spinner",1),i.YNc(5,ER,12,8,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,HR,3,4,"button",5),i.YNc(11,kR,3,4,"button",6),i.qZA()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},dependencies:[C.O5,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Mr,Sr,Dr,Yt,Ai,Gs,St]}),n})(),NR=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1)(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Mr,Dr,Yt,St]}),n})();function WR(n,o){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function $R(n,o){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let ZR=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=xn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(FP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function zw(n,o){Ng.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(DD))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,WR,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,$R,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA()()()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},dependencies:[C.O5,Ii,St],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function JR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,d=i.oxw();return i.KtG(d.removeNotification(l))}),i.qZA()()}if(2&n){const e=o.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const QR=function(n){return{top:n}};let KR=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(On),i.Y36(DD))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,JR,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,QR,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[C.sg,C.PC,ZR],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[wP]}}),n})(),XR=(()=>{class n{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const WD=["*"],tL=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],iL=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],oL=sr(Cr(class{})),lL=Cr(class{}),cL=new i.OlP("MatList"),$D=new i.OlP("MatNavList");let dL=(()=>{class n extends oL{constructor(){super(...arguments),this._stateChanges=new De.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:$D,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:WD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),ZD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),uL=(()=>{class n extends lL{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Fe(e)}ngAfterContentInit(){!function Wf(n,o,e="mat"){n.changes.pipe(Et(n)).subscribe(({length:t})=>{tu(o,`${e}-2-line`,!1),tu(o,`${e}-3-line`,!1),tu(o,`${e}-multi-line`,!1),2===t||3===t?tu(o,`${e}-${t}-line`,!0):t>3&&tu(o,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36($D,8),i.Y36(cL,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ZD,5),i.Suo(r,JD,5),i.Suo(r,qf,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:iL,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(tL),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Ar],encapsulation:2,changeDetection:0}),n})(),KD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xc,un,ot,$f,C.ez,xc,ot,$f,sM]}),n})();function _L(n,o){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function bL(n,o){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const yL=function(n){return{color:n}};function wL(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.shouldHideMenu())}),i.YNc(1,_L,1,1,"mat-icon",3),i.YNc(2,bL,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,yL,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let CL=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof la&&(this.currentUrl=l.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(XR),i.Y36(Zn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,wL,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[C.sg,C.O5,C.PC,Ii,dL,uL,Ar,fc,St],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();const AL=["*",[["mat-toolbar-row"]]],vL=["*","mat-toolbar-row"],TL=Ja(class{constructor(n){this._elementRef=n}});let xL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),ML=(()=>{class n extends TL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Mi),i.Y36(C.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,xL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:vL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(AL),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),XD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function SL(n,o){1&n&&(i.TgZ(0,"div",13)(1,"span",14),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",15),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",14),i._uU(6," \xa0\u{1f5f2} ~ "),i.qZA()())}const DL=function(n){return{background:n}},xC=function(n){return{color:n}};let EL=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(zg),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[1,"display-flex"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white","routerLink","/all-publications",1,"mt-auto","mb-auto","router-icon","ml-2","mr-4"],[1,"mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(i.TgZ(0,"mat-toolbar",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA()(),i._UZ(5,"a",3)(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA()(),i.YNc(10,SL,7,0,"div",6),i.TgZ(11,"div",7)(12,"button",8)(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA()(),i.TgZ(17,"mat-menu",null,11)(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA()()()()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,DL,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,xC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,xC,t.textColor)),i.xp6(1),i.hij(" ",i.lcZ(9,15,"HEADER.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("ngStyle",i.VKq(25,xC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,xC,t.iconColor)),i.xp6(3),i.xDo(" ",t.principal.user.titleBefore," ",t.principal.user.firstName," ",t.principal.user.middleName," ",t.principal.user.lastName," ",t.principal.user.titleAfter," "),i.xp6(4),i.Oqu(i.lcZ(21,17,"HEADER.LOGOUT"))}},dependencies:[C.O5,C.PC,Yt,Ii,Cu,as,vw,ML,fc,gf,St],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:row}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();const HL=["footer"],eE=function(n){return{background:n}},kL=function(n){return{"min-height":n}};function PL(n,o){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container")(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5)(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,7),i._UZ(11,"perun-web-apps-footer"),i.qZA()()()()),2&n){const e=i.MAs(4),t=i.oxw();i.xp6(1),i.Q6J("sideNav",e),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,eE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,eE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,kL,t.contentHeight))}}function RL(n,o){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",8),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let LL=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||e.includes("/all-publications"))&&this.router.navigate(["my-publications"])}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(qx),i.Y36(i.sBO),i.Y36(ra),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(HL,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"sideNav"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,PL,12,13,"div",0),i.YNc(2,RL,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},dependencies:[C.O5,C.PC,PD,RD,$x,gi,yP,VD,KR,CL,EL,St],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();class IL{constructor(o,e="/assets/i18n/",t=".json"){this.http=o,this.prefix=e,this.suffix=t}getTranslation(o){return this.http.get(`${this.prefix}${o}${this.suffix}`)}}let OL=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function BL(n){return[Jr(tinycolor(n).lighten(52),"50"),Jr(tinycolor(n).lighten(37),"100"),Jr(tinycolor(n).lighten(26),"200"),Jr(tinycolor(n).lighten(12),"300"),Jr(tinycolor(n).lighten(6),"400"),Jr(tinycolor(n),"500"),Jr(tinycolor(n).darken(6),"600"),Jr(tinycolor(n).darken(12),"700"),Jr(tinycolor(n).darken(18),"800"),Jr(tinycolor(n).darken(24),"900"),Jr(tinycolor(n).lighten(50).saturate(30),"A100"),Jr(tinycolor(n).lighten(30).saturate(30),"A200"),Jr(tinycolor(n).lighten(10).saturate(15),"A400"),Jr(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const a=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(a,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new w.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Zn),i.LFG(nt),i.LFG(ae),i.LFG(Kn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jr(n,o){const e=tinycolor(n),t=e.toRgb();return{name:o,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let VL=(()=>{class n{constructor(e,t,r,l,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((e,t)=>{this.authzSevice.getAllPolicies().subscribe(r=>{this.guiAuthResolver.setPerunPolicies(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qx),i.LFG(OL),i.LFG(C.Ye),i.LFG(nt),i.LFG(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FL=new i.OlP("perun-api-service");function tE(n){return new i.vHH(3e3,!1)}function wI(){return typeof window<"u"&&typeof window.document<"u"}function oM(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function sd(n){switch(n.length){case 0:return new Lc;case 1:return n[0];default:return new Gh(n)}}function iE(n,o,e,t,r=new Map,l=new Map){const d=[],s=[];let a=-1,c=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==a,b=f&&c||new Map;u.forEach((V,ee)=>{let he=ee,We=V;if("offset"!==ee)switch(he=o.normalizePropertyName(he,d),We){case"!":We=r.get(ee);break;case Rs:We=l.get(ee);break;default:We=o.normalizeStyleValue(ee,he,We,d)}b.set(he,We)}),f||s.push(b),c=b,a=h}),d.length)throw function lI(n){return new i.vHH(3502,!1)}();return s}function lM(n,o,e,t){switch(o){case"start":n.onStart(()=>t(e&&cM(e,"start",n)));break;case"done":n.onDone(()=>t(e&&cM(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&cM(e,"destroy",n)))}}function cM(n,o,e){const l=dM(n.element,n.triggerName,n.fromState,n.toState,o||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function dM(n,o,e,t,r="",l=0,d){return{element:n,triggerName:o,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function Ta(n,o,e){let t=n.get(o);return t||n.set(o,t=e),t}function nE(n){const o=n.indexOf(":");return[n.substring(1,o),n.slice(o+1)]}let uM=(n,o)=>!1,rE=(n,o,e)=>[],aE=null;function hM(n){const o=n.parentNode||n.host;return o===aE?null:o}(oM()||typeof Element<"u")&&(wI()?(aE=(()=>document.documentElement)(),uM=(n,o)=>{for(;o;){if(o===n)return!0;o=hM(o)}return!1}):uM=(n,o)=>n.contains(o),rE=(n,o,e)=>{if(e)return Array.from(n.querySelectorAll(o));const t=n.querySelector(o);return t?[t]:[]});let Su=null,sE=!1;const oE=uM,lE=rE;let cE=(()=>{class n{validateStyleProperty(e){return function AI(n){Su||(Su=function vI(){return typeof document<"u"?document.body:null}()||{},sE=!!Su.style&&"WebkitAppearance"in Su.style);let o=!0;return Su.style&&!function CI(n){return"ebkit"==n.substring(1,6)}(n)&&(o=n in Su.style,!o&&sE&&(o="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Su.style)),o}(e)}matchesElement(e,t){return!1}containsElement(e,t){return oE(e,t)}getParentElement(e){return hM(e)}query(e,t,r){return lE(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],a){return new Lc(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),pM=(()=>{class n{}return n.NOOP=new cE,n})();const fM="ng-enter",MC="ng-leave",SC="ng-trigger",DC=".ng-trigger",uE="ng-animating",mM=".ng-animating";function od(n){if("number"==typeof n)return n;const o=n.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:gM(parseFloat(o[1]),o[2])}function gM(n,o){return"s"===o?1e3*n:n}function EC(n,o,e){return n.hasOwnProperty("duration")?n:function MI(n,o,e){let r,l=0,d="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return o.push(tE()),{duration:0,delay:0,easing:""};r=gM(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(l=gM(parseFloat(a),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,a=o.length;r<0&&(o.push(function jL(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(o.push(function NL(){return new i.vHH(3101,!1)}()),s=!0),s&&o.splice(a,0,tE())}return{duration:r,delay:l,easing:d}}(n,o,e)}function qg(n,o={}){return Object.keys(n).forEach(e=>{o[e]=n[e]}),o}function hE(n){const o=new Map;return Object.keys(n).forEach(e=>{o.set(e,n[e])}),o}function ld(n,o=new Map,e){if(e)for(let[t,r]of e)o.set(t,r);for(let[t,r]of n)o.set(t,r);return o}function fE(n,o,e){return e?o+":"+e+";":""}function mE(n){let o="";for(let e=0;e{const l=bM(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),oM()&&mE(n))}function Du(n,o){n.style&&(o.forEach((e,t)=>{const r=bM(t);n.style[r]=""}),oM()&&mE(n))}function Wg(n){return Array.isArray(n)?1==n.length?n[0]:pm(n):n}const _M=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(n){let o=[];if("string"==typeof n){let e;for(;e=_M.exec(n);)o.push(e[1]);_M.lastIndex=0}return o}function HC(n,o,e){const t=n.toString(),r=t.replace(_M,(l,d)=>{let s=o[d];return null==s&&(e.push(function zL(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function kC(n){const o=[];let e=n.next();for(;!e.done;)o.push(e.value),e=n.next();return o}const EI=/-+([a-z0-9])/g;function bM(n){return n.replace(EI,(...o)=>o[1].toUpperCase())}function HI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function xa(n,o,e){switch(o.type){case 7:return n.visitTrigger(o,e);case 0:return n.visitState(o,e);case 1:return n.visitTransition(o,e);case 2:return n.visitSequence(o,e);case 3:return n.visitGroup(o,e);case 4:return n.visitAnimate(o,e);case 5:return n.visitKeyframes(o,e);case 6:return n.visitStyle(o,e);case 8:return n.visitReference(o,e);case 9:return n.visitAnimateChild(o,e);case 10:return n.visitAnimateRef(o,e);case 11:return n.visitQuery(o,e);case 12:return n.visitStagger(o,e);default:throw function UL(n){return new i.vHH(3004,!1)}()}}function _E(n,o){return window.getComputedStyle(n)[o]}function OI(n,o){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function BI(n,o,e){if(":"==n[0]){const a=function VI(n,o){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof a)return void o.push(a);n=a}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function nI(n){return new i.vHH(3015,!1)}()),o;const r=t[1],l=t[2],d=t[3];o.push(bE(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&o.push(bE(d,r))}(t,e,o)):e.push(n),e}const IC=new Set(["true","1"]),OC=new Set(["false","0"]);function bE(n,o){const e=IC.has(n)||OC.has(n),t=IC.has(o)||OC.has(o);return(r,l)=>{let d="*"==n||n==r,s="*"==o||o==l;return!d&&e&&"boolean"==typeof r&&(d=r?IC.has(n):OC.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?IC.has(o):OC.has(o)),d&&s}}const FI=new RegExp("s*:selfs*,?","g");function yM(n,o,e,t){return new jI(n).build(o,e,t)}class jI{constructor(o){this._driver=o}build(o,e,t){const r=new zI(e);return this._resetContextStyleTimingState(r),xa(this,Wg(o),r)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==o.name.charAt(0)&&e.errors.push(function qL(){return new i.vHH(3006,!1)}()),o.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const a=s,c=a.name;c.toString().split(/\s*,\s*/).forEach(u=>{a.name=u,l.push(this.visitState(a,e))}),a.name=c}else if(1==s.type){const a=this.visitTransition(s,e);t+=a.queryCount,r+=a.depCount,d.push(a)}else e.errors.push(function WL(){return new i.vHH(3007,!1)}())}),{type:7,name:o.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(o,e){const t=this.visitStyle(o.styles,e),r=o.options&&o.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(a=>{gE(a).forEach(c=>{d.hasOwnProperty(c)||l.add(c)})})}),l.size&&(kC(l.values()),e.errors.push(function $L(n,o){return new i.vHH(3008,!1)}()))}return{type:0,name:o.name,style:t,options:r?{params:r}:null}}visitTransition(o,e){e.queryCount=0,e.depCount=0;const t=xa(this,Wg(o.animation),e);return{type:1,matchers:OI(o.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Eu(o.options)}}visitSequence(o,e){return{type:2,steps:o.steps.map(t=>xa(this,t,e)),options:Eu(o.options)}}visitGroup(o,e){const t=e.currentTime;let r=0;const l=o.steps.map(d=>{e.currentTime=t;const s=xa(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Eu(o.options)}}visitAnimate(o,e){const t=function GI(n,o){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return wM(EC(n,o).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=wM(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=EC(e,o);return wM(r.duration,r.delay,r.easing)}(o.timings,e.errors);e.currentAnimateTimings=t;let r,l=o.styles?o.styles:Pe({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=o.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Pe(c)}e.currentTime+=t.duration+t.delay;const a=this.visitStyle(d,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(o,e){const t=this._makeStyleAst(o,e);return this._validateStyleAst(t,e),t}_makeStyleAst(o,e){const t=[],r=Array.isArray(o.styles)?o.styles:[o.styles];for(let s of r)"string"==typeof s?s===Rs?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(hE(s));let l=!1,d=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(d=s.get("easing"),s.delete("easing")),!l))for(let a of s.values())if(a.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:d,offset:o.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(o,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),o.styles.forEach(d=>{"string"!=typeof d&&d.forEach((s,a)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(a);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function JL(n,o,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&c.set(a,{startTime:l,endTime:r}),e.options&&function DI(n,o,e){const t=o.params||{},r=gE(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function YL(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(o,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function QL(){return new i.vHH(3011,!1)}()),t;let l=0;const d=[];let s=!1,a=!1,c=0;const u=o.steps.map(We=>{const Pt=this._makeStyleAst(We,e);let Jt=null!=Pt.offset?Pt.offset:function UI(n){if("string"==typeof n)return null;let o=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;o=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;o=parseFloat(e.get("offset")),e.delete("offset")}return o}(Pt.styles),Bi=0;return null!=Jt&&(l++,Bi=Pt.offset=Jt),a=a||Bi<0||Bi>1,s=s||Bi0&&l{const Jt=f>0?Pt==b?1:f*Pt:d[Pt],Bi=Jt*he;e.currentTime=V+ee.delay+Bi,ee.duration=Bi,this._validateStyleAst(We,e),We.offset=Jt,t.styles.push(We)}),t}visitReference(o,e){return{type:8,animation:xa(this,Wg(o.animation),e),options:Eu(o.options)}}visitAnimateChild(o,e){return e.depCount++,{type:9,options:Eu(o.options)}}visitAnimateRef(o,e){return{type:10,animation:this.visitReference(o.animation,e),options:Eu(o.options)}}visitQuery(o,e){const t=e.currentQuerySelector,r=o.options||{};e.queryCount++,e.currentQuery=o;const[l,d]=function NI(n){const o=!!n.split(/\s*,\s*/).find(e=>":self"==e);return o&&(n=n.replace(FI,"")),n=n.replace(/@\*/g,DC).replace(/@\w+/g,e=>DC+"-"+e.slice(1)).replace(/:animating/g,mM),[n,o]}(o.selector);e.currentQuerySelector=t.length?t+" "+l:l,Ta(e.collectedStyles,e.currentQuerySelector,new Map);const s=xa(this,Wg(o.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:s,originalSelector:o.selector,options:Eu(o.options)}}visitStagger(o,e){e.currentQuery||e.errors.push(function tI(){return new i.vHH(3013,!1)}());const t="full"===o.timings?{duration:0,delay:0,easing:"full"}:EC(o.timings,e.errors,!0);return{type:12,animation:xa(this,Wg(o.animation),e),timings:t,options:null}}}class zI{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Eu(n){return n?(n=qg(n)).params&&(n.params=function YI(n){return n?qg(n):null}(n.params)):n={},n}function wM(n,o,e){return{duration:n,delay:o,easing:e}}function CM(n,o,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:o,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class BC{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,e){let t=this._map.get(o);t||this._map.set(o,t=[]),t.push(...e)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const $I=new RegExp(":enter","g"),JI=new RegExp(":leave","g");function AM(n,o,e,t,r,l=new Map,d=new Map,s,a,c=[]){return(new QI).buildKeyframes(n,o,e,t,r,l,d,s,a,c)}class QI{buildKeyframes(o,e,t,r,l,d,s,a,c,u=[]){c=c||new BC;const h=new vM(o,e,c,r,l,u,[]);h.options=a;const f=a.delay?od(a.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([d],null,h.errors,a),xa(this,t,h);const b=h.timelines.filter(V=>V.containsAnimation());if(b.length&&s.size){let V;for(let ee=b.length-1;ee>=0;ee--){const he=b[ee];if(he.element===e){V=he;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([s],null,h.errors,a)}return b.length?b.map(V=>V.buildKeyframes()):[CM(e,[],[],[],0,f,"",!1)]}visitTrigger(o,e){}visitState(o,e){}visitTransition(o,e){}visitAnimateChild(o,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(o.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=o}visitAnimateRef(o,e){const t=e.createSubContext(o.options);t.transformIntoNewTimeline(),this.visitReference(o.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=o}_visitSubInstructions(o,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?od(t.duration):null,s=null!=t.delay?od(t.delay):null;return 0!==d&&o.forEach(a=>{const c=e.appendInstructionToTimeline(a,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(o,e){e.updateOptions(o.options,!0),xa(this,o.animation,e),e.previousNode=o}visitSequence(o,e){const t=e.subContextCount;let r=e;const l=o.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=VC);const d=od(l.delay);r.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>xa(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=o}visitGroup(o,e){const t=[];let r=e.currentTimeline.currentTime;const l=o.options&&o.options.delay?od(o.options.delay):0;o.steps.forEach(d=>{const s=e.createSubContext(o.options);l&&s.delayNextStep(l),xa(this,d,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=o}_visitTiming(o,e){if(o.dynamic){const t=o.strValue;return EC(e.params?HC(t,e.params,e.errors):t,e.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,e){const t=e.currentAnimateTimings=this._visitTiming(o.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=o.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=o}visitStyle(o,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||o.easing;o.isEmptyStep?t.applyEmptyStep(l):t.setStyles(o.styles,l,e.errors,e.options),e.previousNode=o}visitKeyframes(o,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,o.styles.forEach(a=>{s.forwardTime((a.offset||0)*l),s.setStyles(a.styles,a.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=o}visitQuery(o,e){const t=e.currentTimeline.currentTime,r=o.options||{},l=r.delay?od(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=VC);let d=t;const s=e.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(o.options,c);l&&h.delayNextStep(l),c===e.element&&(a=h.currentTimeline),xa(this,o.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=o}visitStagger(o,e){const t=e.parentContext,r=e.currentTimeline,l=o.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let a=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":a=s-a;break;case"full":a=t.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const h=u.currentTime;xa(this,o.animation,e),e.previousNode=o,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const VC={};class vM{constructor(o,e,t,r,l,d,s,a){this._driver=o,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=VC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new FC(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,e){if(!o)return;const t=o;let r=this.options;null!=t.duration&&(r.duration=od(t.duration)),null!=t.delay&&(r.delay=od(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!d.hasOwnProperty(s))&&(d[s]=HC(l[s],d,this.errors))})}}_copyOptions(){const o={};if(this.options){const e=this.options.params;if(e){const t=o.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return o}createSubContext(o=null,e,t){const r=e||this.element,l=new vM(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(o),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(o){return this.previousNode=VC,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,e,t){const r={duration:e??o.duration,delay:this.currentTimeline.currentTime+(t??0)+o.delay,easing:""},l=new KI(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,r,o.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,e,t,r,l,d){let s=[];if(r&&s.push(this.element),o.length>0){o=(o=o.replace($I,"."+this._enterClassName)).replace(JI,"."+this._leaveClassName);let c=this._driver.query(this.element,o,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!l&&0==s.length&&d.push(function iI(n){return new i.vHH(3014,!1)}()),s}}class FC{constructor(o,e,t,r){this._driver=o,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+o),e&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,e){return this.applyStylesToKeyframe(),new FC(this._driver,o,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,e){this._localTimelineStyles.set(o,e),this._globalTimelineStyles.set(o,e),this._styleSummary.set(o,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Rs),this._currentKeyframe.set(e,Rs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},d=function XI(n,o){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||o.keys();for(let l of t)e.set(l,Rs)}else ld(r,e)}),e}(o,this._globalTimelineStyles);for(let[s,a]of d){const c=HC(a,l,t);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Rs),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,e)=>{this._currentKeyframe.set(e,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,o)}))}snapshotCurrentStyles(){for(let[o,e]of this._localTimelineStyles)this._pendingStyles.set(o,e),this._updateStyle(o,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let e in this._currentKeyframe)o.push(e);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,a)=>{const c=ld(s,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?o.add(h):u===Rs&&e.add(h)}),t||c.set("offset",a/this.duration),r.push(c)});const l=o.size?kC(o.values()):[],d=e.size?kC(e.values()):[];if(t){const s=r[0],a=new Map(s);s.set("offset",0),a.set("offset",1),r=[s,a]}return CM(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class KI extends FC{constructor(o,e,t,r,l,d,s=!1){super(o,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,a=ld(o[0]);a.set("offset",0),l.push(a);const c=ld(o[0]);c.set("offset",CE(s)),l.push(c);const u=o.length-1;for(let h=1;h<=u;h++){let f=ld(o[h]);const b=f.get("offset");f.set("offset",CE((e+b*t)/d)),l.push(f)}t=d,e=0,r="",o=l}return CM(this.element,o,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function CE(n,o=3){const e=Math.pow(10,o-1);return Math.round(n*e)/e}class TM{}const eO=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class tO extends TM{normalizePropertyName(o,e){return bM(o)}normalizeStyleValue(o,e,t,r){let l="";const d=t.toString().trim();if(eO.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function GL(n,o){return new i.vHH(3005,!1)}())}return d+l}}function AE(n,o,e,t,r,l,d,s,a,c,u,h,f){return{type:0,element:n,triggerName:o,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const xM={};class vE{constructor(o,e,t){this._triggerName=o,this.ast=e,this._stateStyles=t}match(o,e,t,r){return function iO(n,o,e,t,r){return n.some(l=>l(o,e,t,r))}(this.ast.matchers,o,e,t,r)}buildStyles(o,e,t){let r=this._stateStyles.get("*");return void 0!==o&&(r=this._stateStyles.get(o?.toString())||r),r?r.buildStyles(e,t):new Map}build(o,e,t,r,l,d,s,a,c,u){const h=[],f=this.ast.options&&this.ast.options.params||xM,V=this.buildStyles(t,s&&s.params||xM,h),ee=a&&a.params||xM,he=this.buildStyles(r,ee,h),We=new Set,Pt=new Map,Jt=new Map,Bi="void"===r,qs={params:nO(ee,f),delay:this.ast.options?.delay},ds=u?[]:AM(o,e,this.ast.animation,l,d,V,he,qs,c,h);let Er=0;if(ds.forEach(Ul=>{Er=Math.max(Ul.duration+Ul.delay,Er)}),h.length)return AE(e,this._triggerName,t,r,Bi,V,he,[],[],Pt,Jt,Er,h);ds.forEach(Ul=>{const Gl=Ul.element,v1=Ta(Pt,Gl,new Set);Ul.preStyleProps.forEach(Pu=>v1.add(Pu));const s_=Ta(Jt,Gl,new Set);Ul.postStyleProps.forEach(Pu=>s_.add(Pu)),Gl!==e&&We.add(Gl)});const zl=kC(We.values());return AE(e,this._triggerName,t,r,Bi,V,he,ds,zl,Pt,Jt,Er)}}function nO(n,o){const e=qg(o);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class rO{constructor(o,e,t){this.styles=o,this.defaultParams=e,this.normalizer=t}buildStyles(o,e){const t=new Map,r=qg(this.defaultParams);return Object.keys(o).forEach(l=>{const d=o[l];null!==d&&(r[l]=d)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((d,s)=>{d&&(d=HC(d,r,e));const a=this.normalizer.normalizePropertyName(s,e);d=this.normalizer.normalizeStyleValue(s,a,d,e),t.set(a,d)})}),t}}class sO{constructor(o,e,t){this.name=o,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new rO(r.style,r.options&&r.options.params||{},t))}),TE(this.states,"true","1"),TE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new vE(o,r,this.states))}),this.fallbackTransition=function oO(n,o,e){return new vE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,e,t,r){return this.transitionFactories.find(d=>d.match(o,e,t,r))||null}matchStyles(o,e,t){return this.fallbackTransition.buildStyles(o,e,t)}}function TE(n,o,e){n.has(o)?n.has(e)||n.set(e,n.get(o)):n.has(e)&&n.set(o,n.get(e))}const lO=new BC;class cO{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,e){const t=[],l=yM(this._driver,e,t,[]);if(t.length)throw function cI(n){return new i.vHH(3503,!1)}();this._animations.set(o,l)}_buildPlayer(o,e,t){const r=o.element,l=iE(0,this._normalizer,0,o.keyframes,e,t);return this._driver.animate(r,l,o.duration,o.delay,o.easing,[],!0)}create(o,e,t={}){const r=[],l=this._animations.get(o);let d;const s=new Map;if(l?(d=AM(this._driver,e,l,fM,MC,new Map,new Map,t,lO,r),d.forEach(u=>{const h=Ta(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function dI(){return new i.vHH(3300,!1)}()),d=[]),r.length)throw function uI(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Rs))})});const c=sd(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(o,c),c.onDestroy(()=>this.destroy(o)),this.players.push(c),c}destroy(o){const e=this._getPlayer(o);e.destroy(),this._playersById.delete(o);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(o){const e=this._playersById.get(o);if(!e)throw function hI(n){return new i.vHH(3301,!1)}();return e}listen(o,e,t,r){const l=dM(e,"","","");return lM(this._getPlayer(o),t,l,r),()=>{}}command(o,e,t,r){if("register"==t)return void this.register(o,r[0]);if("create"==t)return void this.create(o,e,r[0]||{});const l=this._getPlayer(o);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(o)}}}const xE="ng-animate-queued",MM="ng-animate-disabled",fO=[],ME={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ls="__ng_removed";class SM{constructor(o,e=""){this.namespaceId=e;const t=o&&o.hasOwnProperty("value");if(this.value=function yO(n){return n??null}(t?o.value:o),t){const l=qg(o);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const e=o.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const $g="void",DM=new SM($g);class gO{constructor(o,e,t){this.id=o,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,cs(e,this._hostClassName)}listen(o,e,t,r){if(!this._triggers.has(e))throw function pI(n,o){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function fI(n){return new i.vHH(3303,!1)}();if(!function wO(n){return"start"==n||"done"==n}(t))throw function mI(n,o){return new i.vHH(3400,!1)}();const l=Ta(this._elementListeners,o,[]),d={name:e,phase:t,callback:r};l.push(d);const s=Ta(this._engine.statesByElement,o,new Map);return s.has(e)||(cs(o,SC),cs(o,SC+"-"+e),s.set(e,DM)),()=>{this._engine.afterFlush(()=>{const a=l.indexOf(d);a>=0&&l.splice(a,1),this._triggers.has(e)||s.delete(e)})}}register(o,e){return!this._triggers.has(o)&&(this._triggers.set(o,e),!0)}_getTrigger(o){const e=this._triggers.get(o);if(!e)throw function gI(n){return new i.vHH(3401,!1)}();return e}trigger(o,e,t,r=!0){const l=this._getTrigger(e),d=new EM(this.id,e,o);let s=this._engine.statesByElement.get(o);s||(cs(o,SC),cs(o,SC+"-"+e),this._engine.statesByElement.set(o,s=new Map));let a=s.get(e);const c=new SM(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s.set(e,c),a||(a=DM),c.value!==$g&&a.value===c.value){if(!function vO(n,o){const e=Object.keys(n),t=Object.keys(o);if(e.length!=t.length)return!1;for(let r=0;r{Du(o,he),jo(o,We)})}return}const f=Ta(this._engine.playersByElement,o,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(a.value,c.value,o,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:e,transition:b,fromState:a,toState:c,player:d,isFallbackTransition:V}),V||(cs(o,xE),d.onStart(()=>{Tp(o,xE)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(o);if(he){let We=he.indexOf(d);We>=0&&he.splice(We,1)}}),this.players.push(d),f.push(d),d}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(e=>e.delete(o)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const e=this._engine.playersByElement.get(o);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,e){const t=this._engine.driver.query(o,DC,!0);t.forEach(r=>{if(r[ls])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(o,e,t,r){const l=this._engine.statesByElement.get(o),d=new Map;if(l){const s=[];if(l.forEach((a,c)=>{if(d.set(c,a.value),this._triggers.has(c)){const u=this.trigger(o,c,$g,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,o,!0,e,d),t&&sd(s).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const e=this._elementListeners.get(o),t=this._engine.statesByElement.get(o);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const a=this._triggers.get(d).fallbackTransition,c=t.get(d)||DM,u=new SM($g),h=new EM(this.id,d,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:d,transition:a,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(o,e){const t=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,e),this.triggerLeaveAnimation(o,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(o):[];if(l&&l.length)r=!0;else{let d=o;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(o),r)t.markElementAsRemoved(this.id,o,!1,e);else{const l=o[ls];(!l||l===ME)&&(t.afterFlush(()=>this.clearElementCache(o)),t.destroyInnerAnimations(o),t._onRemovalComplete(o,e))}}insertNode(o,e){cs(o,this._hostClassName)}drainQueuedTransitions(o){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(s=>{if(s.name==t.triggerName){const a=dM(l,t.triggerName,t.fromState.value,t.toState.value);a._data=o,lM(t.player,s.phase,a,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(o){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let e=!1;return this._elementListeners.has(o)&&(e=!0),e=!!this._queue.find(t=>t.element===o)||e,e}}class _O{constructor(o,e,t){this.bodyNode=o,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,l)=>{}}_onRemovalComplete(o,e){this.onRemovalComplete(o,e)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&o.push(t)})}),o}createNamespace(o,e){const t=new gO(o,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[o]=t}_balanceNamespaceList(o,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,s=this.driver.getParentElement(e);for(;s;){const a=r.get(s);if(a){const c=t.indexOf(a);t.splice(c+1,0,o),d=!0;break}s=this.driver.getParentElement(s)}d||t.unshift(o)}else t.push(o);return r.set(e,o),o}register(o,e){let t=this._namespaceLookup[o];return t||(t=this.createNamespace(o,e)),t}registerTrigger(o,e,t){let r=this._namespaceLookup[o];r&&r.register(e,t)&&this.totalAnimations++}destroy(o,e){if(!o)return;const t=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[o];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const e=new Set,t=this.statesByElement.get(o);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(o,e,t,r){if(jC(e)){const l=this._fetchNamespace(o);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(o,e,t,r){if(!jC(e))return;const l=e[ls];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(o){const d=this._fetchNamespace(o);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,e){e?this.disabledNodes.has(o)||(this.disabledNodes.add(o),cs(o,MM)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),Tp(o,MM))}removeNode(o,e,t,r){if(jC(e)){const l=o?this._fetchNamespace(o):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(o,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==o&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(o,e,t,r,l){this.collectedLeaveElements.push(e),e[ls]={namespaceId:o,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(o,e,t,r,l){return jC(e)?this._fetchNamespace(o).listen(e,t,r,l):()=>{}}_buildInstruction(o,e,t,r,l){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,t,r,o.fromState.options,o.toState.options,e,l)}destroyInnerAnimations(o){let e=this.driver.query(o,DC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(o,mM,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(o){const e=this.playersByElement.get(o);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(o){const e=this.playersByQueriedElement.get(o);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return sd(this.players).onDone(()=>o());o()})}processLeaveNode(o){const e=o[ls];if(e&&e.setForRemoval){if(o[ls]=ME,e.namespaceId){this.destroyInnerAnimations(o);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(o)}this._onRemovalComplete(o,e.setForRemoval)}o.classList?.contains(MM)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(o=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?sd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(o){throw function _I(n){return new i.vHH(3402,!1)}()}_flushAnimations(o,e){const t=new BC,r=[],l=new Map,d=[],s=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(rt=>{u.add(rt);const gt=this.driver.query(rt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=fM+ee++;V.set(gt,wt),rt.forEach(oi=>cs(oi,wt))});const he=[],We=new Set,Pt=new Set;for(let rt=0;rtWe.add(oi)):Pt.add(gt))}const Jt=new Map,Bi=EE(f,Array.from(We));Bi.forEach((rt,gt)=>{const wt=MC+ee++;Jt.set(gt,wt),rt.forEach(oi=>cs(oi,wt))}),o.push(()=>{b.forEach((rt,gt)=>{const wt=V.get(gt);rt.forEach(oi=>Tp(oi,wt))}),Bi.forEach((rt,gt)=>{const wt=Jt.get(gt);rt.forEach(oi=>Tp(oi,wt))}),he.forEach(rt=>{this.processLeaveNode(rt)})});const qs=[],ds=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(wt=>{const oi=wt.player,Bn=wt.element;if(qs.push(oi),this.collectedEnterElements.length){const or=Bn[ls];if(or&&or.setForMove){if(or.previousTriggersValues&&or.previousTriggersValues.has(wt.triggerName)){const Ru=or.previousTriggersValues.get(wt.triggerName),us=this.statesByElement.get(wt.element);if(us&&us.has(wt.triggerName)){const nA=us.get(wt.triggerName);nA.value=Ru,us.set(wt.triggerName,nA)}}return void oi.destroy()}}const Yo=!h||!this.driver.containsElement(h,Bn),Da=Jt.get(Bn),hd=V.get(Bn),Qi=this._buildInstruction(wt,t,hd,Da,Yo);if(Qi.errors&&Qi.errors.length)return void ds.push(Qi);if(Yo)return oi.onStart(()=>Du(Bn,Qi.fromStyles)),oi.onDestroy(()=>jo(Bn,Qi.toStyles)),void r.push(oi);if(wt.isFallbackTransition)return oi.onStart(()=>Du(Bn,Qi.fromStyles)),oi.onDestroy(()=>jo(Bn,Qi.toStyles)),void r.push(oi);const M1=[];Qi.timelines.forEach(or=>{or.stretchStartingKeyframe=!0,this.disabledNodes.has(or.element)||M1.push(or)}),Qi.timelines=M1,t.append(Bn,Qi.timelines),d.push({instruction:Qi,player:oi,element:Bn}),Qi.queriedElements.forEach(or=>Ta(s,or,[]).push(oi)),Qi.preStyleProps.forEach((or,Ru)=>{if(or.size){let us=a.get(Ru);us||a.set(Ru,us=new Set),or.forEach((nA,l0)=>us.add(l0))}}),Qi.postStyleProps.forEach((or,Ru)=>{let us=c.get(Ru);us||c.set(Ru,us=new Set),or.forEach((nA,l0)=>us.add(l0))})});if(ds.length){const rt=[];ds.forEach(gt=>{rt.push(function bI(n,o){return new i.vHH(3505,!1)}())}),qs.forEach(gt=>gt.destroy()),this.reportError(rt)}const Er=new Map,zl=new Map;d.forEach(rt=>{const gt=rt.element;t.has(gt)&&(zl.set(gt,gt),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,Er))}),r.forEach(rt=>{const gt=rt.element;this._getPreviousPlayers(gt,!1,rt.namespaceId,rt.triggerName,null).forEach(oi=>{Ta(Er,gt,[]).push(oi),oi.destroy()})});const Ul=he.filter(rt=>kE(rt,a,c)),Gl=new Map;DE(Gl,this.driver,Pt,c,Rs).forEach(rt=>{kE(rt,a,c)&&Ul.push(rt)});const s_=new Map;b.forEach((rt,gt)=>{DE(s_,this.driver,new Set(rt),a,"!")}),Ul.forEach(rt=>{const gt=Gl.get(rt),wt=s_.get(rt);Gl.set(rt,new Map([...Array.from(gt?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Pu=[],T1=[],x1={};d.forEach(rt=>{const{element:gt,player:wt,instruction:oi}=rt;if(t.has(gt)){if(u.has(gt))return wt.onDestroy(()=>jo(gt,oi.toStyles)),wt.disabled=!0,wt.overrideTotalTime(oi.totalTime),void r.push(wt);let Bn=x1;if(zl.size>1){let Da=gt;const hd=[];for(;Da=Da.parentNode;){const Qi=zl.get(Da);if(Qi){Bn=Qi;break}hd.push(Da)}hd.forEach(Qi=>zl.set(Qi,Bn))}const Yo=this._buildAnimation(wt.namespaceId,oi,Er,l,s_,Gl);if(wt.setRealPlayer(Yo),Bn===x1)Pu.push(wt);else{const Da=this.playersByElement.get(Bn);Da&&Da.length&&(wt.parentPlayer=sd(Da)),r.push(wt)}}else Du(gt,oi.fromStyles),wt.onDestroy(()=>jo(gt,oi.toStyles)),T1.push(wt),u.has(gt)&&r.push(wt)}),T1.forEach(rt=>{const gt=l.get(rt.element);if(gt&>.length){const wt=sd(gt);rt.setRealPlayer(wt)}}),r.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!Yo.destroyed);Bn.length?CO(this,gt,Bn):this.processLeaveNode(gt)}return he.length=0,Pu.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const gt=this.players.indexOf(rt);this.players.splice(gt,1)}),rt.play()}),Pu}elementContainsData(o,e){let t=!1;const r=e[ls];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(o).elementContainsData(e)||t}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,e,t,r,l){let d=[];if(e){const s=this.playersByQueriedElement.get(o);s&&(d=s)}else{const s=this.playersByElement.get(o);if(s){const a=!l||l==$g;s.forEach(c=>{c.queued||!a&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(o,e,t){const l=e.element,d=e.isRemovalTransition?void 0:o,s=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const c=a.element,u=c!==l,h=Ta(t,c,[]);this._getPreviousPlayers(c,u,d,s,e.toState).forEach(b=>{const V=b.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),b.destroy(),h.push(b)})}Du(l,e.fromStyles)}_buildAnimation(o,e,t,r,l,d){const s=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[ls];if(he&&he.removedBeforeQueried)return new Lc(V.duration,V.delay);const We=ee!==a,Pt=function AO(n){const o=[];return HE(n,o),o}((t.get(ee)||fO).map(Er=>Er.getRealPlayer())).filter(Er=>!!Er.element&&Er.element===ee),Jt=l.get(ee),Bi=d.get(ee),qs=iE(0,this._normalizer,0,V.keyframes,Jt,Bi),ds=this._buildPlayer(V,qs,Pt);if(V.subTimeline&&r&&h.add(ee),We){const Er=new EM(o,s,ee);Er.setRealPlayer(ds),c.push(Er)}return ds});c.forEach(V=>{Ta(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function bO(n,o,e){let t=n.get(o);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(o)}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>cs(V,uE));const b=sd(f);return b.onDestroy(()=>{u.forEach(V=>Tp(V,uE)),jo(a,e.toStyles)}),h.forEach(V=>{Ta(r,V,[]).push(b)}),b}_buildPlayer(o,e,t){return e.length>0?this.driver.animate(o.element,e,o.duration,o.delay,o.easing,t):new Lc(o.duration,o.delay)}}class EM{constructor(o,e,t){this.namespaceId=o,this.triggerName=e,this.element=t,this._player=new Lc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>lM(o,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const e=this._player;e.triggerCallback&&o.onStart(()=>e.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,e){Ta(this._queuedCallbacks,o,[]).push(e)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const e=this._player;e.triggerCallback&&e.triggerCallback(o)}}function jC(n){return n&&1===n.nodeType}function SE(n,o){const e=n.style.display;return n.style.display=o??"none",e}function DE(n,o,e,t,r){const l=[];e.forEach(a=>l.push(SE(a)));const d=[];t.forEach((a,c)=>{const u=new Map;a.forEach(h=>{const f=o.computeStyle(c,h,r);u.set(h,f),(!f||0==f.length)&&(c[ls]=mO,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(a=>SE(a,l[s++])),d}function EE(n,o){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==o.length)return e;const r=new Set(o),l=new Map;function d(s){if(!s)return 1;let a=l.get(s);if(a)return a;const c=s.parentNode;return a=e.has(c)?c:r.has(c)?1:d(c),l.set(s,a),a}return o.forEach(s=>{const a=d(s);1!==a&&e.get(a).push(s)}),e}function cs(n,o){n.classList?.add(o)}function Tp(n,o){n.classList?.remove(o)}function CO(n,o,e){sd(e).onDone(()=>n.processLeaveNode(o))}function HE(n,o){for(let e=0;er.add(l)):o.set(n,t),e.delete(n),!0}class NC{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new _O(o,e,t),this._timelineEngine=new cO(o,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(o,e,t,r,l){const d=o+"-"+r;let s=this._triggerCache[d];if(!s){const a=[],u=yM(this._driver,l,a,[]);if(a.length)throw function oI(n,o){return new i.vHH(3404,!1)}();s=function aO(n,o,e){return new sO(n,o,e)}(r,u,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}register(o,e){this._transitionEngine.register(o,e)}destroy(o,e){this._transitionEngine.destroy(o,e)}onInsert(o,e,t,r){this._transitionEngine.insertNode(o,e,t,r)}onRemove(o,e,t,r){this._transitionEngine.removeNode(o,e,r||!1,t)}disableAnimations(o,e){this._transitionEngine.markElementAsDisabled(o,e)}process(o,e,t,r){if("@"==t.charAt(0)){const[l,d]=nE(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(o,e,t,r)}listen(o,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=nE(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(o,e,t,r,l)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let xO=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&jo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(jo(this._element,this._initialStyles),this._endStyles&&(jo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Du(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Du(this._element,this._endStyles),this._endStyles=null),jo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function HM(n){let o=null;return n.forEach((e,t)=>{(function MO(n){return"display"===n||"position"===n})(t)&&(o=o||new Map,o.set(t,e))}),o}class PE{constructor(o,e,t,r){this.element=o,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const e=[];return o.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(o,e,t){return o.animate(this._convertKeyframesToObject(e),t)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&o.set(r,this._finished?t:_E(this.element,r))}),this.currentSnapshot=o}triggerCallback(o){const e="start"===o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class SO{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,e){return!1}containsElement(o,e){return oE(o,e)}getParentElement(o){return hM(o)}query(o,e,t){return lE(o,e,t)}computeStyle(o,e,t){return window.getComputedStyle(o)[e]}animate(o,e,t,r,l,d=[]){const a={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(a.easing=l);const c=new Map,u=d.filter(b=>b instanceof PE);(function kI(n,o){return 0===n||0===o})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((V,ee)=>c.set(ee,V))});let h=function SI(n){return n.length?n[0]instanceof Map?n:n.map(o=>hE(o)):[]}(e).map(b=>ld(b));h=function PI(n,o,e){if(e.size&&o.length){let t=o[0],r=[];if(e.forEach((l,d)=>{t.has(d)||r.push(d),t.set(d,l)}),r.length)for(let l=1;ld.set(s,_E(n,s)))}}return o}(o,h,c);const f=function TO(n,o){let e=null,t=null;return Array.isArray(o)&&o.length?(e=HM(o[0]),o.length>1&&(t=HM(o[o.length-1]))):o instanceof Map&&(e=HM(o)),e||t?new xO(n,e,t):null}(o,h);return new PE(o,h,a,f)}}let DO=(()=>{class n extends hm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?pm(e):e;return RE(this._renderer,null,t,"register",[r]),new EO(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class EO extends class $v{}{constructor(o,e){super(),this._id=o,this._renderer=e}create(o,e){return new HO(this._id,o,e||{},this._renderer)}}class HO{constructor(o,e,t,r){this.id=o,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(o,e){return this._renderer.listen(this.element,`@@${this.id}:${o}`,e)}_command(o,...e){return RE(this._renderer,this.element,this.id,o,e)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function RE(n,o,e,t,r){return n.setProperty(o,`@@${e}:${t}`,r)}const LE="@.disabled";let kO=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const s=d?.parentNode(l);s&&d.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new IE("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(a),new PO(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,s]=l;d(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(NC),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class IE{constructor(o,e,t){this.namespaceId=o,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,e){this.delegate.appendChild(o,e),this.engine.onInsert(this.namespaceId,e,o,!1)}insertBefore(o,e,t,r=!0){this.delegate.insertBefore(o,e,t),this.engine.onInsert(this.namespaceId,e,o,r)}removeChild(o,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,t,r){this.delegate.setAttribute(o,e,t,r)}removeAttribute(o,e,t){this.delegate.removeAttribute(o,e,t)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,t,r){this.delegate.setStyle(o,e,t,r)}removeStyle(o,e,t){this.delegate.removeStyle(o,e,t)}setProperty(o,e,t){"@"==e.charAt(0)&&e==LE?this.disableAnimations(o,!!t):this.delegate.setProperty(o,e,t)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,t){return this.delegate.listen(o,e,t)}disableAnimations(o,e){this.engine.disableAnimations(o,e)}}class PO extends IE{constructor(o,e,t,r){super(e,t,r),this.factory=o,this.namespaceId=e}setProperty(o,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(o,t=void 0===t||!!t):this.engine.process(this.namespaceId,o,e.slice(1),t):this.delegate.setProperty(o,e,t)}listen(o,e,t){if("@"==e.charAt(0)){const r=function RO(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o);let l=e.slice(1),d="";return"@"!=l.charAt(0)&&([l,d]=function LO(n){const o=n.indexOf(".");return[n.substring(0,o),n.slice(o+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(o,e,t)}}const OE=[{provide:hm,useClass:DO},{provide:TM,useFactory:function OO(){return new tO}},{provide:NC,useClass:(()=>{class n extends NC{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(pM),i.LFG(TM),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function BO(n,o,e){return new kO(n,o,e)},deps:[_e,NC,i.R0b]}],kM=[{provide:pM,useFactory:()=>new SO},{provide:i.QbO,useValue:"BrowserAnimations"},...OE],BE=[{provide:pM,useClass:cE},{provide:i.QbO,useValue:"NoopAnimations"},...OE];let VO=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?BE:kM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:kM,imports:[Xi]}),n})(),FO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,Mu,_a,yp]}),n})();const jO=["*",[["mat-card-footer"]]],NO=["*","mat-card-footer"];let VE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),FE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),jE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:NO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(jO),i.Hsn(0),i.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),NE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const YO=["input"],zO=["label"],UO=function(n){return{enterDuration:n}},GO=["*"],qO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:YE});function YE(){return{color:"accent",clickAction:"check-indeterminate"}}let WO=0;const zE=YE(),$O={provide:Tn,useExisting:(0,i.Gpc)(()=>cd),multi:!0};class ZO{}const JO=vc(Ja(Cr(sr(class{constructor(n){this._elementRef=n}}))));let QO=(()=>{class n extends JO{constructor(e,t,r,l,d,s,a){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||zE,this.color=this.defaultColor=this._options.color||zE.color,this.tabIndex=parseInt(d)||0,this.id=this._uniqueId=`${e}${++WO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Fe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Fe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Fe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Fe(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},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 e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(YO,5),i.Gf(zO,5),i.Gf(Ar,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.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:[i.qOj]}),n})(),cd=(()=>{class n extends QO{constructor(e,t,r,l,d,s,a){super("mat-checkbox-",e,t,l,d,s,a),this._focusMonitor=r,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(e){const t=new ZO;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(An),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(qO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i._Bn([$O]),i.qOj],ngContentSelectors:GO,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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,UO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Ar,_c],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);position:relative}.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}.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%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),UE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),zC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,bc,UE,ot,UE]}),n})(),eB=0;const PM=new i.OlP("CdkAccordion");let tB=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+eB++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Fe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:PM,useExisting:n}]),i.TTD]}),n})(),iB=0,nB=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=xt.w0.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+iB++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Fe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(PM,12),i.Y36(i.sBO),i.Y36(Tr))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:PM,useValue:void 0}])]}),n})(),rB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const aB=["body"];function sB(n,o){}const oB=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],lB=["mat-expansion-panel-header","*","mat-action-row"];function cB(n,o){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const dB=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],uB=["mat-panel-title","mat-panel-description","*"],RM=new i.OlP("MAT_ACCORDION"),GE="225ms cubic-bezier(0.4,0.0,0.2,1)",qE={indicatorRotate:hi("indicatorRotate",[Mt("collapsed, void",Pe({transform:"rotate(0deg)"})),Mt("expanded",Pe({transform:"rotate(180deg)"})),_t("expanded <=> collapsed, void => collapsed",yt(GE))]),bodyExpansion:hi("bodyExpansion",[Mt("collapsed, void",Pe({height:"0px",visibility:"hidden"})),Mt("expanded",Pe({height:"*",visibility:"visible"})),_t("expanded <=> collapsed, void => collapsed",yt(GE))])},WE=new i.OlP("MAT_EXPANSION_PANEL");let hB=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(WE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),pB=0;const $E=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ZE=(()=>{class n extends nB{constructor(e,t,r,l,d,s,a){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new De.x,this._headerId="mat-expansion-panel-header-"+pB++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(ul((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Et(null),(0,Gt.h)(()=>this.expanded&&!this._portal),(0,Ot.q)(1)).subscribe(()=>{this._portal=new Co(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(RM,12),i.Y36(i.sBO),i.Y36(Tr),i.Y36(i.s_b),i.Y36(C.K0),i.Y36(i.QbO,8),i.Y36($E,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hB,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(aB,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:RM,useValue:void 0},{provide:WE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:lB,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(oB),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,sB,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Xa],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[qE.bodyExpansion]},changeDetection:0}),n})();class fB{}const mB=vc(fB);let JE=(()=>{class n extends mB{constructor(e,t,r,l,d,s,a){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=xt.w0.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,Gt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):yi.E;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=(0,Ci.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,Gt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Gt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:$i(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ZE,1),i.Y36(i.SBq),i.Y36(An),i.Y36(i.sBO),i.Y36($E,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:uB,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(dB),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,cB,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[C.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[qE.indicatorRotate]},changeDetection:0}),n})(),gB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),_B=(()=>{class n extends tB{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}ngAfterContentInit(){this._headers.changes.pipe(Et(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new pl(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,JE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:RM,useExisting:n}]),i.qOj]}),n})(),QE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,rB,Ao]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xc,ot,xc,ot]}),n})();function wB(n,o){1&n&&i.Hsn(0)}const CB=["*"];let eH=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),tH=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),AB=0;const iH=new i.OlP("STEPPER_GLOBAL_OPTIONS");let LM=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Fe(e)}get optional(){return this._optional}set optional(e){this._optional=Fe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Fe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Fe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>Zg)),i.Y36(iH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,tH,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[i.TTD],ngContentSelectors:CB,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,wB,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),Zg=(()=>{class n{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new De.x,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=AB++}get linear(){return this._linear}set linear(e){this._linear=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Fi(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Et(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Et(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new pl(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ve.of)()).pipe(Et(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=$i(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=Ds();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zg))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),TB=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zg))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),xB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[_o]}),n})();function MB(n,o){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function SB(n,o){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function DB(n,o){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function EB(n,o){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function HB(n,o){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function kB(n,o){if(1&n&&(i.ynx(0,9),i.YNc(1,SB,2,1,"span",10),i.YNc(2,DB,2,1,"span",11),i.YNc(3,EB,2,1,"span",11),i.YNc(4,HB,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function PB(n,o){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function RB(n,o){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function LB(n,o){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function IB(n,o){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function OB(n,o){}function BB(n,o){if(1&n&&(i.Hsn(0),i.YNc(1,OB,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const VB=["*"];function FB(n,o){1&n&&i._UZ(0,"div",11)}const nH=function(n,o){return{step:n,i:o}};function jB(n,o){if(1&n&&(i.ynx(0),i.GkF(1,9),i.YNc(2,FB,1,0,"div",10),i.BQk()),2&n){const e=o.$implicit,t=o.index,r=o.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,nH,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}const rH=function(n){return{animationDuration:n}},aH=function(n,o){return{value:n,params:o}};function NB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.NdJ("@horizontalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.GkF(1,13),i.qZA()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",i.WLB(7,aH,r._getAnimationDirection(t),i.VKq(5,rH,r._getAnimationDuration())))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function YB(n,o){if(1&n&&(i.TgZ(0,"div",4)(1,"div",5),i.YNc(2,jB,3,6,"ng-container",6),i.qZA(),i.TgZ(3,"div",7),i.YNc(4,NB,2,10,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function zB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.GkF(1,9),i.TgZ(2,"div",16)(3,"div",17),i.NdJ("@verticalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.TgZ(4,"div",18),i.GkF(5,13),i.qZA()()()()}if(2&n){const e=o.$implicit,t=o.index,r=o.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,nH,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",i.WLB(14,aH,l._getAnimationDirection(t),i.VKq(12,rH,l._getAnimationDuration())))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function UB(n,o){if(1&n&&(i.ynx(0),i.YNc(1,zB,6,17,"div",14),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function GB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",19),i.NdJ("click",function(){const l=i.CHM(e).step;return i.KtG(l.select())})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onKeydown(r))}),i.qZA()}if(2&n){const e=o.step,t=o.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),i.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let UC=(()=>{class n extends tH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),GC=(()=>{class n{constructor(){this.changes=new De.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const WB={provide:GC,deps:[[new i.FiY,new i.tp0,GC]],useFactory:function qB(n){return n||new GC}},$B=Ja(class extends eH{constructor(o){super(o)}},"primary");let sH=(()=>{class n extends $B{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof UC?null:this.label}_templateLabel(){return this.label instanceof UC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(GC),i.Y36(An),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(i._UZ(0,"div",0),i.TgZ(1,"div")(2,"div",1),i.YNc(3,MB,1,2,"ng-container",2),i.YNc(4,kB,5,4,"ng-container",3),i.qZA()(),i.TgZ(5,"div",4),i.YNc(6,PB,2,1,"div",5),i.YNc(7,RB,2,1,"div",5),i.YNc(8,LB,2,1,"div",6),i.YNc(9,IB,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},dependencies:[C.O5,C.tP,C.RF,C.n9,C.ED,Ii,Ar],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),n})();const cH={horizontalStepTransition:hi("horizontalStepTransition",[Mt("previous",Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Mt("current",Pe({transform:"none",visibility:"inherit"})),Mt("next",Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),_t("* => *",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:hi("verticalStepTransition",[Mt("previous",Pe({height:"0px",visibility:"hidden"})),Mt("next",Pe({height:"0px",visibility:"hidden"})),Mt("current",Pe({height:"*",visibility:"inherit"})),_t("* <=> current",yt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let ZB=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),JB=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),dH=(()=>{class n extends LM{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=xt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Dt.w)(()=>this._stepper.selectionChange.pipe((0,Qe.U)(e=>e.selectedStep===this),Et(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Co(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>uH)),i.Y36(fl,4),i.Y36(i.s_b),i.Y36(iH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,UC,5),i.Suo(r,JB,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:fl,useExisting:n},{provide:LM,useExisting:n}]),i.qOj],ngContentSelectors:VB,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,BB,2,1,"ng-template"))},dependencies:[Xa],encapsulation:2,changeDetection:0}),n})(),uH=(()=>{class n extends Zg{constructor(e,t,r){super(e,t,r),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new De.x,this._animationDuration="";const l=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===l?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(ul((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8),i.Y36(i.sBO),i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,dH,5),i.Suo(r,ZB,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(sH,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:Zg,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,YB,5,2,"div",1),i.YNc(2,UB,2,1,"ng-container",2),i.BQk(),i.YNc(3,GB,1,23,"ng-template",null,3,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},dependencies:[C.sg,C.O5,C.tP,C.RF,C.n9,sH],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[cH.horizontalStepTransition,cH.verticalStepTransition]},changeDetection:0}),n})(),QB=(()=>{class n extends vB{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),KB=(()=>{class n extends TB{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),hH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[WB,fl],imports:[ot,C.ez,Ao,_a,xB,Rl,un,ot]}),n})();const XB=["mat-calendar-body",""];function eV(n,o){if(1&n&&(i.TgZ(0,"tr",2)(1,"td",3),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function tV(n,o){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function iV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",7)(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._cellClicked(d,r))})("focus",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._emitActiveDateChange(d,r))}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA()()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function nV(n,o){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,tV,2,6,"td",5),i.YNc(2,iV,5,47,"td",6),i.qZA()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function rV(n,o){if(1&n&&(i.TgZ(0,"th",5)(1,"span",6),i._uU(2),i.qZA(),i.TgZ(3,"span",7),i._uU(4),i.qZA()()),2&n){const e=o.$implicit;i.xp6(2),i.Oqu(e.long),i.xp6(2),i.Oqu(e.narrow)}}const aV=["*"];function sV(n,o){}function oV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("_userSelection",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._dateSelected(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function lV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("monthSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._monthSelectedInYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._goToDateInView(r,"month"))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function cV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("yearSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._yearSelectedInMultiYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._goToDateInView(r,"year"))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function dV(n,o){}const uV=["button"];function hV(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const pV=[[["","matDatepickerToggleIcon",""]]],fV=["[matDatepickerToggleIcon]"];let Jg=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class IM{constructor(o,e,t,r,l={},d=o,s){this.value=o,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=s}}let xp=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return OM(e,this.startValue,this.endValue)}_isRangeEnd(e){return BM(e,this.startValue,this.endValue)}_isInRange(e){return VM(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return OM(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return BM(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return VM(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return OM(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return BM(e,this.previewStart,this.previewEnd)}_isInPreview(e){return VM(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(pH(e)?t=e:pH(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:XB,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,eV,3,6,"tr",0),i.YNc(1,nV,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset=o&&n===e}function VM(n,o,e,t){return t&&null!==o&&null!==e&&o!==e&&n>=o&&n<=e}class Qr{constructor(o,e){this.start=o,this.end=e}}let dd=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new De.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),mV=(()=>{class n extends dd{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const fH={provide:dd,deps:[[new i.FiY,new i.tp0,dd],wi],useFactory:function _V(n,o){return n||new mV(o)}},qC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let mH=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=xt.w0.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Et(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let l,d;this._selected instanceof Qr?(l=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):l=d=this._getDateInCurrentMonth(this._selected),(l!==t||d!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!$i(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,s)=>({long:d,narrow:t[s]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Qr?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(ga,8),i.Y36(wi,8),i.Y36(Si,8),i.Y36(qC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(xp,5),2&e){let r;i.iGM(r=i.CRH())&&(t._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[i.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.YNc(3,rV,5,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA()(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("activeDateChange",function(l){return t._updateActiveDate(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA()()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},dependencies:[C.sg,xp],encapsulation:2,changeDetection:0}),n})(),gH=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=xt.w0.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),_H(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Et(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,r=this._dateAdapter.createDate(t,0,1),l=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new IM(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=xt.w0.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Et(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const l=this._getDateFromMonth(t);this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new IM(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+AV++,this.calendar.stateChanges.subscribe(()=>d.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-Qg(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):_H(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36((0,i.Gpc)(()=>NM)),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:aV,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA()(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA()()()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},dependencies:[Yt],encapsulation:2,changeDetection:0}),n})(),NM=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new De.x,this._intlChanges=e.changes.subscribe(()=>{l.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new bl(this.headerComponent||vV),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,l=t||r||e.dateFilter;if(l&&!l.firstChange){const d=this._getCurrentViewComponent();d&&(this._changeDetectorRef.detectChanges(),d._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Qr||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mH,5),i.Gf(yH,5),i.Gf(gH,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.CRH())&&(t.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i._Bn([fH]),i.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(i.YNc(0,sV,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,oV,1,8,"mat-month-view",2),i.YNc(3,lV,1,6,"mat-year-view",3),i.YNc(4,cV,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},dependencies:[C.RF,C.n9,Xd,Xa,mH,yH,gH],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const wH={transformPanel:hi("transformPanel",[_t("void => enter-dropdown",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Tl([Pe({opacity:0,transform:"scale(1, 0.8)"}),Pe({opacity:1,transform:"scale(1, 1)"})]))),_t("void => enter-dialog",yt("150ms cubic-bezier(0, 0, 0.2, 1)",Tl([Pe({opacity:0,transform:"scale(0.7)"}),Pe({transform:"none",opacity:1})]))),_t("* => void",yt("100ms linear",Pe({opacity:0})))]),fadeInCalendar:hi("fadeInCalendar",[Mt("void",Pe({opacity:0})),Mt("enter",Pe({opacity:1})),_t("void => *",yt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let TV=0;const CH=new i.OlP("mat-datepicker-scroll-strategy"),MV={provide:CH,deps:[hn],useFactory:function xV(n){return()=>n.scrollStrategies.reposition()}},SV=Ja(class{constructor(n){this._elementRef=n}});let DV=(()=>{class n extends SV{constructor(e,t,r,l,d,s){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new xt.w0,this._animationDone=new De.x,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof Qr;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(dd),i.Y36(wi),i.Y36(qC,8),i.Y36(Jg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf(NM,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,dV,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA()()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},dependencies:[C.mk,Yt,ob,Xa,NM],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[wH.transformPanel,wH.fadeInCalendar]},changeDetection:0}),n})(),AH=(()=>{class n{constructor(e,t,r,l,d,s,a){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=s,this._model=a,this._inputStateChanges=xt.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+TV++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new De.x,this._scrollStrategy=l}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Fe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Fe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Fe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function J_(n,o=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(o);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Fe(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof vr&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ds(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,Ot.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new bl(DV,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new vo({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(l=>{l&&l.preventDefault(),this.close()}),r.keydownEvents().subscribe(l=>{const d=l.keyCode;(38===d||40===d||37===d||39===d||33===d||34===d)&&l.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,Ci.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Gt.h)(t=>27===t.keyCode&&!$i(t)||this.datepickerInput&&$i(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(CH),i.Y36(wi,8),i.Y36(Si,8),i.Y36(dd))},n.\u0275dir=i.lG2({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.TTD]}),n})(),YM=(()=>{class n extends AH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([fH,{provide:AH,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class WC{constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}}let EV=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new De.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=xt.w0.EMPTY,this._localeSubscription=xt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),s=this._getMinDate();return!s||!d||this._dateAdapter.compareDate(s,d)<=0?null:{matDatepickerMin:{min:s,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),s=this._getMaxDate();return!s||!d||this._dateAdapter.compareDate(s,d)>=0?null:{matDatepickerMax:{max:s,actual:d}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Fe(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new WC(this,this._elementRef.nativeElement)),this.dateChange.emit(new WC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function HV(n,o){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!o.isDateInstance(r)||!o.isDateInstance(l))return!0;if(!o.sameDate(r,l))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const l=!this._dateAdapter.sameDate(r,this.value);!r||l?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),l&&(this._assignValue(r),this.dateInput.emit(new WC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new WC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(wi,8),i.Y36(ga,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const kV={provide:Tn,useExisting:(0,i.Gpc)(()=>Kg),multi:!0},PV={provide:ln,useExisting:(0,i.Gpc)(()=>Kg),multi:!0};let Kg=(()=>{class n extends EV{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=xt.w0.EMPTY,this._validator=Li.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(wi,8),i.Y36(ga,8),i.Y36($h,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i._Bn([kV,PV,{provide:BD,useExisting:n}]),i.qOj]}),n})(),RV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),zM=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=xt.w0.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Fe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,Ve.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ve.of)(),r=this.datepicker?(0,Ci.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ve.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Ci.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RV,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(uV,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.TTD],ngContentSelectors:fV,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(i.F$t(pV),i.TgZ(0,"button",0,1),i.YNc(2,hV,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},dependencies:[C.O5,Yt],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),UM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Jg,MV],imports:[C.ez,_a,vl,kh,Ao,ot,Ka]}),n})();const LV=["mat-sort-header",""];function IV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const OV=["*"],vH=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),BV=eu(sr(class{}));let Sa=(()=>{class n extends BV{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function VV(n,o){let e=["asc","desc"];return"desc"==n&&e.reverse(),o||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),l=r.indexOf(this.direction)+1;return l>=r.length&&(l=0),r[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(vH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const ud=ma.ENTERING+" "+Ph.STANDARD_CURVE,Mp={indicator:hi("indicator",[Mt("active-asc, asc",Pe({transform:"translateY(0px)"})),Mt("active-desc, desc",Pe({transform:"translateY(10px)"})),_t("active-asc <=> active-desc",yt(ud))]),leftPointer:hi("leftPointer",[Mt("active-asc, asc",Pe({transform:"rotate(-45deg)"})),Mt("active-desc, desc",Pe({transform:"rotate(45deg)"})),_t("active-asc <=> active-desc",yt(ud))]),rightPointer:hi("rightPointer",[Mt("active-asc, asc",Pe({transform:"rotate(45deg)"})),Mt("active-desc, desc",Pe({transform:"rotate(-45deg)"})),_t("active-asc <=> active-desc",yt(ud))]),arrowOpacity:hi("arrowOpacity",[Mt("desc-to-active, asc-to-active, active",Pe({opacity:1})),Mt("desc-to-hint, asc-to-hint, hint",Pe({opacity:.54})),Mt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Pe({opacity:0})),_t("* => asc, * => desc, * => active, * => hint, * => void",yt("0ms")),_t("* <=> *",yt(ud))]),arrowPosition:hi("arrowPosition",[_t("* => desc-to-hint, * => desc-to-active",yt(ud,Tl([Pe({transform:"translateY(-25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-desc, * => active-to-desc",yt(ud,Tl([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(25%)"})]))),_t("* => asc-to-hint, * => asc-to-active",yt(ud,Tl([Pe({transform:"translateY(25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-asc, * => active-to-asc",yt(ud,Tl([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(-25%)"})]))),Mt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Pe({transform:"translateY(0)"})),Mt("hint-to-desc, active-to-desc, desc",Pe({transform:"translateY(-25%)"})),Mt("hint-to-asc, active-to-asc, asc",Pe({transform:"translateY(25%)"}))]),allowChildren:hi("allowChildren",[_t("* <=> *",[Pn("@*",Rc(),{optional:!0})])])};let $C=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jV={provide:$C,deps:[[new i.FiY,new i.tp0,$C]],useFactory:function FV(n){return n||new $C}},NV=sr(class{});let Sp=(()=>{class n extends NV{constructor(e,t,r,l,d,s,a,c){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=a,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",c?.arrowPosition&&(this.arrowPosition=c?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Ci.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($C),i.Y36(i.sBO),i.Y36(Sa,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(An),i.Y36(i.SBq),i.Y36(If,8),i.Y36(vH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:LV,ngContentSelectors:OV,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,IV,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[C.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Mp.indicator,Mp.leftPointer,Mp.rightPointer,Mp.arrowOpacity,Mp.arrowPosition,Mp.allowChildren]},changeDetection:0}),n})(),GM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[jV],imports:[C.ez,ot]}),n})();function YV(n,o){1&n&&i.Hsn(0)}const TH=["*"];function zV(n,o){}const UV=function(n){return{animationDuration:n}},GV=function(n,o){return{value:n,params:o}},qV=["tabListContainer"],WV=["tabList"],$V=["tabListInner"],ZV=["nextPaginator"],JV=["previousPaginator"],QV=["tabBodyWrapper"],KV=["tabHeader"];function XV(n,o){}function eF(n,o){if(1&n&&i.YNc(0,XV,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function tF(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function iF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,s=i.oxw(),a=i.MAs(1);return i.KtG(s._handleClick(l,a,d))})("cdkFocusChange",function(r){const d=i.CHM(e).index,s=i.oxw();return i.KtG(s._tabFocusChanged(r,d))}),i.TgZ(1,"div",7),i.YNc(2,eF,1,1,"ng-template",8),i.YNc(3,tF,1,1,"ng-template",null,9,i.W1O),i.qZA()()}if(2&n){const e=o.$implicit,t=o.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function nF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._setTabBodyWrapperHeight(r))}),i.qZA()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const rF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function aF(){return o=>({left:o?(o.offsetLeft||0)+"px":"0",width:o?(o.offsetWidth||0)+"px":"0"})}});let xH=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(rF),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const MH=new i.OlP("MatTabContent");let sF=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:MH,useExisting:n}])]}),n})();const SH=new i.OlP("MatTabLabel"),DH=new i.OlP("MAT_TAB");let oF=(()=>{class n extends xS{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(DH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:SH,useExisting:n}]),i.qOj]}),n})();const lF=sr(class{}),EH=new i.OlP("MAT_TAB_GROUP");let HH=(()=>{class n extends lF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new De.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Co(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(EH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SH,5),i.Suo(r,MH,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[i._Bn([{provide:DH,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:TH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,YV,1,0,"ng-template"))},encapsulation:2}),n})();const cF={translateTab:hi("translateTab",[Mt("center, void, left-origin-center, right-origin-center",Pe({transform:"none"})),Mt("left",Pe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Mt("right",Pe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),_t("* => left, * => right, left => center, right => center",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),_t("void => left-origin-center",[Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),_t("void => right-origin-center",[Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let dF=(()=>{class n extends Xa{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=xt.w0.EMPTY,this._leavingSub=xt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Et(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>kH)),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),uF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=xt.w0.EMPTY,this._translateTabComplete=new De.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(ul((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),kH=(()=>{class n extends uF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Xa,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,zV,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,GV,t._position,i.VKq(1,UV,t.animationDuration)))},dependencies:[dF],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[cF.translateTab]}}),n})();const PH=new i.OlP("MAT_TABS_CONFIG"),hF=sr(class{});let RH=(()=>{class n extends hF{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const LH=fa({passive:!0});let mF=(()=>{class n{constructor(e,t,r,l,d,s,a){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new De.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new De.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{Qa(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Fi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Qa(this._previousPaginator.nativeElement,"touchstart",LH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Qa(this._nextPaginator.nativeElement,"touchstart",LH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ve.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new pl(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(r),(0,Ci.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return"function"!=typeof ResizeObserver?yi.E:this._items.changes.pipe(Et(this._items),(0,Dt.w)(e=>new nn.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(l=>{r.observe(l.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Df(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!$i(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:l,offsetWidth:d}=t.elementRef.nativeElement;let s,a;"ltr"==this._getLayoutDirection()?(s=l,a=s+d):(a=this._tabListInner.nativeElement.offsetWidth-l,s=a-d);const c=this.scrollDistance,u=this.scrollDistance+r;su&&(this.scrollDistance+=a-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),(0,am.H)(650,100).pipe(Ke((0,Ci.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(Mi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),gF=(()=>{class n extends mF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Fe(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(Mi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),_F=(()=>{class n extends gF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(Mi),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RH,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(xH,7),i.Gf(qV,7),i.Gf(WV,7),i.Gf($V,7),i.Gf(ZV,5),i.Gf(JV,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:TH,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA()(),i.TgZ(11,"button",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple)("disabled",t._disableScrollBefore||null),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple)("disabled",t._disableScrollAfter||null))},dependencies:[Ar,_c,xH],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),bF=0;class yF{}const wF=Ja(Cr(class{constructor(n){this._elementRef=n}}),"primary");let CF=(()=>{class n extends wF{constructor(e,t,r,l){super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=xt.w0.EMPTY,this._tabLabelSubscription=xt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=bF++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Fi(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Fi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Fe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,l)=>r.isActive=l===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let l=0;l{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Et(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new yF;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ci.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(PH,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),AF=(()=>{class n extends CF{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(PH,8),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,HH,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(QV,5),i.Gf(KV,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:EH,useExisting:n}]),i.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,iF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,nF,1,11,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},dependencies:[C.mk,C.sg,C.O5,Xa,Ar,Xd,RH,kH,_F],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),OH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,Ao,un,bc,kh,ot]}),n})(),BH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),VH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[BH,un,ot,bc,BH,ot]}),n})();const YH=new i.OlP("mat-chips-default-options");let WM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fl,{provide:YH,useValue:{separatorKeyCodes:[13]}}],imports:[ot]}),n})(),zH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,NE,sM,QE,_a,XE,zC,Rl,TC,Mu,fC,Bc,pC,_l,cg,Ho,hH,UM,wv,LD,KD,Au,XD,GM,wu,Zc,Po,un,TC,VH,WM,NE,sM,QE,_a,XE,zC,Rl,TC,Mu,fC,Bc,pC,_l,cg,Ho,hH,UM,wv,LD,KD,Au,XD,GM,wu,Zc,Po,un,OH,VH,WM]}),n})(),WF=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:10,vars:7,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-stroked-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},dependencies:[Yt,Mr,Sr,Dr,St]}),n})(),$F=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),UH=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),ZC=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function ZF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",20)(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function JF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function QF(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function KF(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function XF(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function ej(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function tj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function ij(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,ej,4,3,"button",26),i.YNc(2,tj,4,3,"button",26),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function nj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function rj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function aj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function sj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function oj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,sj,4,3,"span",28),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function lj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function cj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function dj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function uj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function hj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function pj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function fj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,pj,3,1,"span",28),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function mj(n,o){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function gj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",25)(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.showCite(l))})("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!1)}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function _j(n,o){1&n&&i._UZ(0,"tr",31)}const GH=function(n,o){return[n,o]};function bj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null)}),i.qZA()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,GH,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,GH,t.routerPath,e.id))}}function yj(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",33),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let Dp=(()=>{class n{constructor(e,t,r,l,d){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.selection=new si(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Io,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(s=>this.changeLockMessage=s),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(s=>this.locked=s),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(s=>this.unlocked=s)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(l=>r+=Nw(l)+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new jl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=xn();t.width="500px",t.data=e,this.dialog.open(WF,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>Oo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dC),i.Y36(Ut),i.Y36(bi),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[i.TTD],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZF,2,3,"th",4),i.YNc(5,JF,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,QF,3,3,"th",7),i.YNc(8,KF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,XF,3,3,"th",7),i.YNc(11,ij,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,nj,3,3,"th",7),i.YNc(14,rj,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,aj,3,3,"th",7),i.YNc(17,oj,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,lj,3,3,"th",7),i.YNc(20,cj,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,dj,3,3,"th",7),i.YNc(23,uj,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,hj,3,3,"th",7),i.YNc(26,fj,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,mj,3,3,"th",16),i.YNc(29,gj,4,3,"td",8),i.BQk(),i.YNc(30,_j,1,0,"tr",17),i.YNc(31,bj,1,10,"tr",18),i.qZA()()(),i.YNc(32,yj,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(28),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},dependencies:[C.sg,C.O5,Yt,cd,Ii,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,$c,fc,Gs,ss,UH,St,ZC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function wj(n,o){1&n&&i._UZ(0,"mat-spinner",7)}const Cj=function(){return["id","title","year"]};function Aj(n,o){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,Cj))}}let $M=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,wj,1,0,"mat-spinner",2),i.YNc(5,Aj,4,7,"div",3),i.TgZ(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,Dp,St]}),n})(),Ep=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[Ii,Yt,$c,St],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),n})();var Hp=x(5439);const ku=Hp||x.t(Hp,2),qH=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function Tj(){return{useUtc:!1}}});function xj(n,o){const e=Array(n);for(let t=0;t{class n extends wi{constructor(e,t){super(),this._options=t,this.setLocale(e||ku.locale())}setLocale(e){super.setLocale(e);let t=ku.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:xj(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,ku.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return ku.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return ku.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?ku.utc(e,t,r,l):ku(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hs,8),i.LFG(qH,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Mj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:Xg,deps:[Hs,qH]}]}),n})(),WH=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","example-month-picker",3,"yearSelected"],["sdp",""],["matInput","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(7);return i.KtG(d.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(7);return i.KtG(t.chosenYearHandler(t.startYear,d,s))}),i.qZA()(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(15);return i.KtG(d.open())}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(15);return i.KtG(t.chosenYearHandler(t.endYear,d,s))}),i.qZA()()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},dependencies:[Gn,wa,Wh,os,Rn,qn,xr,YM,Kg,zM,St],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function Sj(n,o){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const JC=Hp,Dj={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let ZM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Ji,this.code=new Ji,this.startYear=new Ji(JC()),this.endYear=new Ji(JC())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,C.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,C.p6)(this.endYear.value,"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear=new Ji(JC()),this.endYear=new Ji(JC()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:Dj}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1)(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA()()(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1)(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,Sj,2,2,"mat-option",8),i.qZA()(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA()()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},dependencies:[C.sg,Yt,Ii,Gn,wa,os,Rn,qn,xr,ko,Mc,WH,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function Ej(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function Hj(n,o){1&n&&i._UZ(0,"mat-spinner",11)}let kj=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new si(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=xn();e.width="500px",e.data=this.selected.selected,this.dialog.open($M,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(bi),i.Y36(Ro),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.TgZ(6,"div",4)(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA()(),i.YNc(12,Ej,1,4,"perun-web-apps-publications-list",8),i.YNc(13,Hj,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,ZM,St],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function Pj(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function Rj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(7,Pj,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function Lj(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let Ij=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new si(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=xn();e.width="500px",e.data=this.selected.selected,this.dialog.open($M,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(bi),i.Y36(nt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,Rj,8,5,"div",4),i.YNc(8,Lj,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,ZM,St]}),n})(),Oj=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6)(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA()()()(),i.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6)(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",7),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA()()()()()()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},dependencies:[jE,VE,FE,Yt,Ii,St],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}"]}),n})();const Bj=["input"];let Vj=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Ji,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),Qa(this.input.nativeElement,"keyup").pipe((0,Qe.U)(e=>e.target.value),(0,dl.b)(500),ul()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(Bj,7),2&e){let r;i.iGM(r=i.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.TgZ(4,"mat-error"),i._uU(5),i.qZA()()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,3,t.placeholder)),i.Q6J("formControl",t.control),i.xp6(4),i.hij(" ",t.error," "))},dependencies:[Rn,qn,ts,Gn,xr,os,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function Fj(n,o){1&n&&i._UZ(0,"th",20)}function jj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function Nj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function Yj(n,o){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function zj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function Uj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function Gj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function qj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function Wj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function $j(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function Zj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function Jj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function Qj(n,o){1&n&&i._UZ(0,"th",26)}function Kj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onAddClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function Xj(n,o){1&n&&i._UZ(0,"th",26)}function e2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onRemoveClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function t2(n,o){1&n&&i._UZ(0,"tr",29)}const $H=function(n){return["/authors",n]};function n2(n,o){if(1&n&&i._UZ(0,"tr",30),2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,$H,e.id))("routerLink",t.disableRouting?null:i.VKq(6,$H,e.id))}}function r2(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function a2(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let JM=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Io,this.addAuthor=new i.vpe,this.removeAuthor=new i.vpe}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Yw(n){let o="";return null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}(e);case"organization":return Fs(e,"organization");case"email":return Fs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return Nw(e);case"organization":return Fs(e,"organization");case"email":return Fs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Fs(e,"organization");case"email":return Fs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new jl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`}onAddClick(e){this.addAuthor.emit(e)}onRemoveClick(e){this.removeAuthor.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>Oo(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Fj,1,0,"th",4),i.YNc(5,jj,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Nj,3,3,"th",7),i.YNc(8,Yj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,zj,3,3,"th",7),i.YNc(11,Uj,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,Gj,3,3,"th",7),i.YNc(14,qj,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,Wj,3,3,"th",7),i.YNc(17,$j,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,Zj,3,3,"th",7),i.YNc(20,Jj,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,Qj,1,0,"th",15),i.YNc(23,Kj,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,Xj,1,0,"th",15),i.YNc(26,e2,4,3,"td",8),i.BQk(),i.YNc(27,t2,1,0,"tr",17),i.YNc(28,n2,1,8,"tr",18),i.qZA()()(),i.YNc(29,r2,3,3,"perun-web-apps-alert",19),i.YNc(30,a2,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},dependencies:[C.O5,Yt,cd,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,fc,Gs,ss,UH,St,ZC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function s2(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const o2=function(){return["id","name","organization","email","numberOfPublications"]};function l2(n,o){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,o2))("filterValue",e.filterValue)("tableId",e.tableId)}}let c2=(()=>{class n{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,s2,1,0,"mat-spinner",6),i.YNc(10,l2,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Ii,Ai,Ep,Vj,JM,St]}),n})();function d2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function u2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA()(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(24),i.ALo(25,"translate"),i.qZA()()()()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let h2=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Ji(null,[Li.required,Li.pattern("^[\\w.-]+( [\\w.-]+)*$"),Li.maxLength(128)]),this.rankCtrl=new Ji(null,[Li.required,Li.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,d2,1,0,"mat-spinner",2),i.YNc(5,u2,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,ts,Gn,os,Rn,qn,rs,xr,$c,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function p2(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function f2(n,o){1&n&&i._UZ(0,"th",14)}function m2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function g2(n,o){1&n&&i._UZ(0,"tr",16)}function _2(n,o){1&n&&i._UZ(0,"tr",17)}function b2(n,o){if(1&n&&(i.TgZ(0,"div",6)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,f2,1,0,"th",10),i.YNc(10,m2,2,1,"td",11),i.BQk(),i.YNc(11,g2,1,0,"tr",12),i.YNc(12,_2,1,0,"tr",13),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function y2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",18)(1,"button",19),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let w2=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new jl(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,p2,1,0,"mat-spinner",2),i.YNc(5,b2,13,9,"div",3),i.YNc(6,y2,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Mr,Sr,Dr,Ai,St]}),n})();function C2(n,o){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function A2(n,o){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let e_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ji}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,C2,2,4,"input",1),i.YNc(2,A2,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[C.O5,Rn,qn,Gn,xr,os,$F,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function v2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function T2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(18),i.ALo(19,"translate"),i.qZA()()()()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let x2=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Ji(this.data.rank,[Li.required,Li.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,v2,1,0,"mat-spinner",2),i.YNc(5,T2,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,ts,Gn,os,Rn,qn,rs,xr,$c,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function M2(n,o){1&n&&i._UZ(0,"th",15)}function S2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function D2(n,o){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function E2(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function H2(n,o){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function k2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function P2(n,o){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function R2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.updateCategory(r))}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function L2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,R2,3,0,"button",21),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function I2(n,o){1&n&&i._UZ(0,"tr",23)}function O2(n,o){1&n&&i._UZ(0,"tr",24)}function B2(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let V2=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new si(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Io,this.refreshTable=new i.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new jl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=xn();t.width="400px",t.data=e,this.dialog.open(x2,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra),i.Y36(dC),i.Y36(bi),i.Y36(ra))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,M2,1,0,"th",4),i.YNc(5,S2,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,D2,3,3,"th",7),i.YNc(8,E2,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,H2,3,3,"th",7),i.YNc(11,k2,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,P2,3,3,"th",7),i.YNc(14,L2,3,2,"td",10),i.BQk(),i.YNc(15,I2,1,0,"tr",12),i.YNc(16,O2,1,0,"tr",13),i.qZA()()(),i.YNc(17,B2,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},dependencies:[C.O5,Yt,cd,Ii,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function F2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addCategory())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function j2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeCategory())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function N2(n,o){1&n&&i._UZ(0,"mat-spinner",10)}const Y2=function(){return["select","id","name","rank"]},z2=function(){return["name","rank"]};function U2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,Y2):i.DdM(6,z2))("tableId",e.tableId)("selection",e.selected)}}let G2=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new si(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=xn();e.width="400px",e.data={},this.dialog.open(h2,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=xn();e.width="400px",e.data=this.selected.selected,this.dialog.open(w2,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(bi),i.Y36(ra))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,F2,3,3,"button",3),i.YNc(6,j2,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,N2,1,0,"mat-spinner",6),i.YNc(9,U2,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},dependencies:[C.O5,Yt,Ai,Ep,e_,V2,St]}),n})();function q2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function W2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function $2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function Z2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function J2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function Q2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function K2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function X2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function eN(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function tN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function iN(n,o){1&n&&i._UZ(0,"tr",17)}function nN(n,o){1&n&&i._UZ(0,"tr",18)}function rN(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let aN=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Io}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new jl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,q2,3,3,"th",4),i.YNc(5,W2,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,$2,3,3,"th",4),i.YNc(8,Z2,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,J2,3,3,"th",4),i.YNc(11,Q2,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,K2,3,3,"th",4),i.YNc(14,X2,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,eN,3,3,"th",4),i.YNc(17,tN,2,1,"td",7),i.BQk(),i.YNc(18,iN,1,0,"tr",11),i.YNc(19,nN,1,0,"tr",12),i.qZA()()(),i.YNc(20,rN,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},dependencies:[C.O5,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function sN(n,o){1&n&&i._UZ(0,"mat-spinner",6)}function oN(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let lN=(()=>{class n{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,sN,1,0,"mat-spinner",4),i.YNc(7,oN,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},dependencies:[C.O5,Ai,Ep,e_,aN,St]}),n})();function cN(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function dN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(11,cN,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function uN(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let hN=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new si(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=xn();e.width="500px",e.data=this.selected.selected,this.dialog.open($M,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,null,null,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(ia),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,dN,12,11,"div",4),i.YNc(8,uN,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,ZM,St,ZC]}),n})();function pN(n,o){1&n&&i._UZ(0,"mat-spinner",2)}function fN(n,o){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function mN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.editing=!r.editing)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function gN(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function _N(n,o){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,gN,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function bN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.save())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function yN(n,o){1&n&&i._UZ(0,"th",21)}function wN(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij("",e.key,":")}}function CN(n,o){1&n&&i._UZ(0,"th",21)}function AN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function vN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function TN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function xN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function MN(n,o){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,xN,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function SN(n,o){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function DN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,MN,2,1,"span",1),i.YNc(2,SN,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function EN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(7);return i.KtG(r.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27)(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7),d=i.oxw(4);return i.KtG(d.chosenYearHandler(r,l))}),i.qZA()()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function HN(n,o){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function kN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field")(1,"mat-select",31),i.YNc(2,HN,2,2,"mat-option",32),i.qZA()()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function PN(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function RN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,PN,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function LN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.isbn=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function IN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.doi=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function ON(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"textarea",36),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.main=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function BN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,EN,8,7,"mat-form-field",25),i.YNc(2,kN,3,2,"mat-form-field",1),i.YNc(3,RN,3,2,"mat-form-field",1),i.YNc(4,LN,2,1,"mat-form-field",6),i.YNc(5,IN,2,1,"mat-form-field",6),i.YNc(6,ON,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function VN(n,o){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,AN,10,9,"span",1),i.YNc(2,vN,3,4,"span",1),i.YNc(3,TN,2,1,"span",1),i.YNc(4,DN,3,2,"div",1),i.YNc(5,BN,7,6,"div",1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function FN(n,o){1&n&&i._UZ(0,"tr",37)}function jN(n,o){if(1&n&&(i.TgZ(0,"div")(1,"div",3),i.YNc(2,fN,2,1,"h3",4),i.YNc(3,mN,4,3,"button",5),i.YNc(4,_N,3,2,"mat-form-field",6),i.YNc(5,bN,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,yN,1,0,"th",10),i.YNc(9,wN,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,CN,1,0,"th",10),i.YNc(12,VN,6,5,"td",13),i.BQk(),i.YNc(13,FN,1,0,"tr",14),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const ZH=Hp,NN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let YN=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new si(!0,[]),this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;el.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:NN}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,pN,1,0,"mat-spinner",0),i.YNc(2,jN,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.sg,C.O5,Yt,Ii,Bo,Ns,Ys,js,Vo,zs,Us,Fo,Ai,ts,Gn,wa,Wh,os,Rn,qn,El,xr,YM,Kg,zM,$c,ko,Mc,C.uU,St],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),n})();const zN=function(){return["id","name","organization","email","add"]};function UN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.addAuthor(r))}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(4,zN))}}function GN(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function qN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,UN,1,5,"perun-web-apps-authors-list",13),i.YNc(2,GN,3,3,"perun-web-apps-alert",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function WN(n,o){1&n&&i._UZ(0,"mat-spinner",17)}const $N=function(){return["id","name","organization","email","remove"]};function ZN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.removeAuthor(r))}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("reloadTable",e.reloadTable)("authors",e.authorsToAdd)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,$N))}}function JN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZN,1,6,"perun-web-apps-authors-list",18),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone)}}function QN(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function KN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,qN,3,2,"div",6),i.YNc(2,WN,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,JN,2,1,"div",6),i.YNc(7,QN,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading),i.xp6(2),i.hij(" ",i.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),i.xp6(2),i.Q6J("ngIf",e.firstSearchDone&&0!==e.authorsToAdd.length),i.xp6(1),i.Q6J("ngIf",0===e.authorsToAdd.length)}}function XN(n,o){1&n&&i._UZ(0,"mat-spinner",17)}let eY=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors="67",this.selection=new si(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Ji("",[Li.required,Li.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const e=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(t=>{t=t.filter(r=>!e.map(l=>l.id).includes(r.id)),this.authors=t,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const e=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe(()=>{this.onAdd()},()=>this.loading=!1)}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}addAuthor(e){this.authors=this.authors.filter(t=>t!==e),this.authorsToAdd.push(e),this.reloadTable=!this.reloadTable}removeAuthor(e){this.authorsToAdd=this.authorsToAdd.filter(t=>t!==e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title","",1,"top-margin"],["alert_type","warn",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor"],["alert_type","info"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor",4,"ngIf"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA()(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA()(),i.YNc(15,KN,8,7,"div",6),i.qZA(),i.YNc(16,XN,1,0,"mat-spinner",7),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.authorsToAdd.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},dependencies:[C.O5,Yt,Ii,Mr,Sr,Dr,Ai,ts,Gn,os,Rn,qn,xr,Gs,JM,St],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function tY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddAuthors())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function iY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onRemoveAuthors())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function nY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const rY=function(){return["id","name","organization","email"]},aY=function(){return["select","id","name","organization","email"]};function sY(n,o){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,rY):i.DdM(6,aY))}}let JH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!0,[]),this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=xn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(eY,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=xn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(GD,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(Ut),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,tY,3,3,"button",1),i.YNc(2,iY,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,nY,1,0,"mat-spinner",4),i.YNc(5,sY,1,7,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Ai,e_,JM,St]}),n})();function oY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function lY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function cY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function dY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function uY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function hY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function pY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function fY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.contact)}}function mY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function gY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.type)}}function _Y(n,o){1&n&&i._UZ(0,"tr",23)}function bY(n,o){1&n&&i._UZ(0,"tr",24)}function yY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function wY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let CY=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new si(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Io}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new jl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra),i.Y36(dC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,oY,2,3,"th",4),i.YNc(5,lY,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,cY,3,3,"th",7),i.YNc(8,dY,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,uY,3,3,"th",7),i.YNc(11,hY,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,pY,3,3,"th",7),i.YNc(14,fY,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,mY,3,3,"th",7),i.YNc(17,gY,2,1,"td",10),i.BQk(),i.YNc(18,_Y,1,0,"tr",13),i.YNc(19,bY,1,0,"tr",14),i.qZA()()(),i.YNc(20,yY,3,3,"perun-web-apps-alert",15),i.YNc(21,wY,3,3,"perun-web-apps-alert",15)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},dependencies:[C.O5,cd,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function AY(n,o){1&n&&i._UZ(0,"mat-spinner",4)}const vY=function(){return["select","id","name","contact"]};function TY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterValue=r)}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8)(5,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,vY))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let xY=(()=>{class n{constructor(e,t,r,l,d,s,a){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=s,this.cabinetManagerService=a,this.selected=new si(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(r.id)):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(Js),i.Y36(Zn),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,AY,1,0,"mat-spinner",2),i.YNc(5,TY,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Mr,Sr,Dr,Ai,e_,CY,St]}),n})();function MY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",15)(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function SY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function DY(n,o){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function EY(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function HY(n,o){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function kY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function PY(n,o){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function RY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function LY(n,o){1&n&&i._UZ(0,"tr",22)}function IY(n,o){1&n&&i._UZ(0,"tr",23)}function OY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function BY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let VY=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Io,this.selection=new si(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new jl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}exportAllData(e){va(Aa(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;va(Aa(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Il(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Oo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ss,7),i.Gf(Sa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,MY,2,3,"th",4),i.YNc(5,SY,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,DY,3,3,"th",7),i.YNc(8,EY,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,HY,3,3,"th",7),i.YNc(11,kY,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,PY,3,3,"th",7),i.YNc(14,RY,2,1,"td",10),i.BQk(),i.YNc(15,LY,1,0,"tr",12),i.YNc(16,IY,1,0,"tr",13),i.qZA()()(),i.YNc(17,OY,3,3,"perun-web-apps-alert",14),i.YNc(18,BY,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},dependencies:[C.O5,cd,Bo,Ns,Vl,Ys,js,Vo,zs,Us,Fl,Fo,Sa,Sp,Gs,ss,St]}),n})();function FY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddThanks())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function jY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onRemoveThanks())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function NY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const YY=function(){return["id","name","createdBy"]},zY=function(){return["select","id","name","createdBy"]};function UY(n,o){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,YY):i.DdM(6,zY))("selection",e.selection)}}let QH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=xn();e.width="800px",e.data=this.publication,this.dialog.open(xY,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=xn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(GD,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(Ut),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,FY,3,3,"button",1),i.YNc(2,jY,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,NY,1,0,"mat-spinner",4),i.YNc(5,UY,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Ai,e_,VY,St]}),n})();function GY(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function qY(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function WY(n,o){1&n&&(i.TgZ(0,"h1",11),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",14),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function $Y(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function ZY(n,o){if(1&n&&(i.TgZ(0,"h5",15),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function JY(n,o){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function QY(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function KY(n,o){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function XY(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function e3(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function t3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.refreshPublication())}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function n3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,qY,6,3,"h1",4),i.YNc(2,WY,5,3,"h1",4),i.YNc(3,$Y,6,3,"h1",4),i.YNc(4,ZY,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLock())}),i.YNc(12,JY,3,3,"span",7),i.YNc(13,QY,2,0,"mat-icon",2),i.YNc(14,KY,3,3,"span",7),i.YNc(15,XY,2,0,"mat-icon",2),i.qZA()(),i.TgZ(16,"mat-card")(17,"mat-card-content"),i.YNc(18,e3,1,0,"mat-spinner",1),i.YNc(19,t3,1,2,"perun-web-apps-publication-detail-list",8),i.qZA()(),i.TgZ(20,"mat-card",9)(21,"mat-card-title"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-card-content"),i._UZ(25,"perun-web-apps-add-authors",10),i.qZA()(),i.TgZ(26,"mat-card",9)(27,"mat-card-title"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-card-content"),i._UZ(31,"perun-web-apps-add-thanks",10),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(3),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors),i.xp6(3),i.hij(" ",i.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)}}let t_=(()=>{class n{constructor(e,t,r,l,d,s,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=s,this.translate=a,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new si(!0,[]),this.selectionThanks=new si(!0,[]),this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(Ro),i.Y36(Ei),i.Y36(bi),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["mat-stroked-button","",1,"ml-2",3,"click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,GY,1,0,"mat-spinner",1),i.YNc(2,n3,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},dependencies:[C.O5,jE,VE,FE,Yt,Ii,Ai,YN,JH,QH,St,ZC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),QM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Rl,C.ez]}),n})();function KM(n,o,e){for(let t in o)if(o.hasOwnProperty(t)){const r=o[t];r?n.setProperty(t,r,e?.has(t)?"important":""):n.removeProperty(t)}return n}function kp(n,o){const e=o?"":"none";KM(n.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function KH(n,o,e){KM(n.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},e)}function QC(n,o){return o&&"none"!=o?n+" "+o:n}function XH(n){const o=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*o}function XM(n,o){return n.getPropertyValue(o).split(",").map(t=>t.trim())}function e0(n){const o=n.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height,x:o.x,y:o.y}}function t0(n,o,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&o>=l&&o<=d}function i_(n,o,e){n.top+=o,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function e1(n,o,e,t){const{top:r,right:l,bottom:d,left:s,width:a,height:c}=n,u=a*o,h=c*o;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:e0(e)})})}handleScroll(o){const e=wn(o),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,a=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&i_(c.clientRect,s,a)}),r.top=l,r.left=d,{top:s,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function n1(n){const o=n.cloneNode(!0),e=o.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();o.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&this._initializeDragSequence(a,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const a=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(a.x-this._pickupPositionOnPage.x)+Math.abs(a.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),V=this._dropContainer;if(!b)return void this._endDragSequence(s);(!V||!V.isDragging()&&!V.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const c=this._getConstrainedPointerPosition(a);if(this._hasMoved=!0,this._lastKnownPointerPosition=a,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,a);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:s,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(o).withParent(e.parentDragRef||null),this._parentPositions=new t1(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(o){const e=Fe(o);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>kp(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(t=>Zi(t)),this._handles.forEach(t=>kp(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){const e=Zi(o);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,KC),e.addEventListener("touchstart",this._pointerDown,o1),e.addEventListener("dragstart",this._nativeDragStart,KC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?Zi(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),kp(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),kp(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){const o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){const o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:o}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(o){n_(o)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),KH(t,!1,n0),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:o}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:o}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(o,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=n_(e),l=!r&&0!==e.button,d=this._rootElement,s=wn(e),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Eh(e):Za(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||a||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=e0(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,o,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(o){KH(this._rootElement,!0,n0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(o),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:o}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r,event:o}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,o,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,o,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,o,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(o,e):this._applyPreviewTransform(o-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const o=this._previewTemplate,e=this.previewClass,t=o?o.template:null;let r;if(t&&o){const l=o.matchSize?this._initialClientRect:null,d=o.viewContainer.createEmbeddedView(t,o.context);d.detectChanges(),r=c1(d,this._document),this._previewRef=d,o.matchSize?d1(r,l):r.style.transform=XC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=n1(this._rootElement),d1(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return KM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},n0),kp(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const o=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);const e=function a3(n){const o=getComputedStyle(n),e=XM(o,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=XM(o,"transition-duration"),d=XM(o,"transition-delay");return XH(l[r])+XH(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{(!d||wn(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const o=this._placeholderTemplate,e=o?o.template:null;let t;return e?(this._placeholderRef=o.viewContainer.createEmbeddedView(e,o.context),this._placeholderRef.detectChanges(),t=c1(this._placeholderRef,this._document)):t=n1(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(o,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():o,d=n_(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-o.left+(d.pageX-l.left-s.left),y:l.top-o.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(o){const e=this._getViewportScrollPosition(),t=n_(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(o){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(o,this,this._initialClientRect,this._pickupPositionInElement):o;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,s=this._boundaryRect,{width:a,height:c}=this._getPreviewRect(),u=s.top+d,h=s.bottom-(c-d);t=l1(t,s.left+l,s.right-(a-l)),r=l1(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(o){const{x:e,y:t}=o,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),s=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,kp(this._rootElement,o))}_removeRootElementListeners(o){o.removeEventListener("mousedown",this._pointerDown,KC),o.removeEventListener("touchstart",this._pointerDown,o1),o.removeEventListener("dragstart",this._nativeDragStart,KC)}_applyRootElementTransform(o,e){const t=XC(o,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=QC(t,this._initialTransform)}_applyPreviewTransform(o,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=XC(o,e);this._preview.style.transform=QC(r,t)}_getDragDistance(o){const e=this._pickupPositionOnPage;return e?{x:o.x-e.x,y:o.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:e}=this._passiveTransform;if(0===o&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,d=t.right-r.right,s=r.top-t.top,a=t.bottom-r.bottom;r.width>t.width?(l>0&&(o+=l),d>0&&(o-=d)):o=0,r.height>t.height?(s>0&&(e+=s),a>0&&(e-=a)):e=0,(o!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:o})}_getDragStartDelay(o){const e=this.dragStartDelay;return"number"==typeof e?e:n_(o)?e.touch:e?e.mouse:0}_updateOnScroll(o){const e=this._parentPositions.handleScroll(o);if(e){const t=wn(o);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&i_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=gc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,e){const t=this._previewContainer||"global";if("parent"===t)return o;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Zi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(o){return this._handles.find(e=>o.target&&(o.target===e||e.contains(o.target)))}}function XC(n,o){return`translate3d(${Math.round(n)}px, ${Math.round(o)}px, 0)`}function l1(n,o,e){return Math.max(o,Math.min(e,n))}function n_(n){return"t"===n.type[0]}function c1(n,o){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===o.ELEMENT_NODE)return e[0];const t=o.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function d1(n,o){n.style.width=`${o.width}px`,n.style.height=`${o.height}px`,n.style.transform=XC(o.left,o.top)}function r_(n,o){return Math.max(0,Math.min(o,n))}class d3{constructor(o,e){this._element=o,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(o){this.withItems(o)}sort(o,e,t,r){const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(o,e,t,r);if(-1===d&&l.length>0)return null;const s="horizontal"===this.orientation,a=l.findIndex(he=>he.drag===o),c=l[d],h=c.clientRect,f=a>d?1:-1,b=this._getItemOffsetPx(l[a].clientRect,h,f),V=this._getSiblingOffsetPx(a,l,f),ee=l.slice();return function c3(n,o,e){const t=r_(o,n.length-1),r=r_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ee[We]===he)return;const Pt=he.drag===o,Jt=Pt?b:V,Bi=Pt?o.getPlaceholderElement():he.drag.getRootElement();he.offset+=Jt,s?(Bi.style.transform=QC(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),i_(he.clientRect,0,Jt)):(Bi.style.transform=QC(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),i_(he.clientRect,Jt,0))}),this._previousSwap.overlaps=t0(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:a,currentIndex:d}}enter(o,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(o,e,t):r,d=this._activeDraggables,s=d.indexOf(o),a=o.getPlaceholderElement();let c=d[l];if(c===o&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(s,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(a,u),d.splice(l,0,o)}else Zi(this._element).appendChild(a),d.push(o);a.style.transform="",this._cacheItemPositions()}withItems(o){this._activeDraggables=o.slice(),this._cacheItemPositions()}withSortPredicate(o){this._sortPredicate=o}reset(){this._activeDraggables.forEach(o=>{const e=o.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===o)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(o){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===o)}updateOnScroll(o,e){this._itemPositions.forEach(({clientRect:t})=>{i_(t,o,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const o="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:e0(t)}}).sort((e,t)=>o?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(o,e,t){const r="horizontal"===this.orientation;let l=r?e.left-o.left:e.top-o.top;return-1===t&&(l+=r?e.width-o.width:e.height-o.height),l}_getSiblingOffsetPx(o,e,t){const r="horizontal"===this.orientation,l=e[o].clientRect,d=e[o+-1*t];let s=l[r?"width":"height"]*t;if(d){const a=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[a]-l[c]:s+=l[a]-d.clientRect[c]}return s}_shouldEnterAsFirstChild(o,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?o>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?o<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(o,e,t,r){const l="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:a})=>{if(s===o)return!1;if(r){const c=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(a.left)&&e=Math.floor(a.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=xt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function r3(n=0,o=Vh.z){return n<0&&(n=0),(0,am.H)(n,n,o)}(0,Hb).pipe(Ke(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-s):2===this._verticalScrollDirection&&d.scrollBy(0,s),1===this._horizontalScrollDirection?d.scrollBy(-s,0):2===this._horizontalScrollDirection&&d.scrollBy(s,0)})},this.element=Zi(o),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new t1(t),this._sortStrategy=new d3(this.element,e),this._sortStrategy.withSortPredicate((d,s)=>this.sortPredicate(d,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(o)),this._sortStrategy.enter(o,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,e,t,r,l,d,s,a={}){this._reset(),this.dropped.next({item:o,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s,event:a})}withItems(o){const e=this._draggables;return this._draggables=o,o.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===o.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(o){return this._sortStrategy.direction=o,this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){return this._sortStrategy.orientation=o,this}withScrollableParents(o){const e=Zi(this.element);return this._scrollableElements=-1===o.indexOf(e)?[e,...o]:o.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?this._sortStrategy.getItemIndex(o):this._draggables.indexOf(o)}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,e,t,r){if(this.sortingDisabled||!this._clientRect||!e1(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(o,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:o})}_startScrollingIfNecessary(o,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||e1(d.clientRect,.05,o,e)&&([r,l]=function h3(n,o,e,t){const r=p1(o,t),l=f1(o,e);let d=0,s=0;if(r){const a=n.scrollTop;1===r?a>0&&(d=1):n.scrollHeight-a>n.clientHeight&&(d=2)}if(l){const a=n.scrollLeft;1===l?a>0&&(s=1):n.scrollWidth-a>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,o,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),a={width:d,height:s,top:0,right:d,bottom:s,left:0};r=p1(a,e),l=f1(a,o),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const o=Zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const o=Zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(o).clientRect}_reset(){this._isDragging=!1;const o=Zi(this.element).style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(o,e){return null!=this._clientRect&&t0(this._clientRect,o,e)}_getSiblingContainerFromPosition(o,e,t){return this._siblings.find(r=>r._canReceive(o,e,t))}_canReceive(o,e,t){if(!this._clientRect||!t0(this._clientRect,e,t)||!this.enterPredicate(o,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Zi(this.element);return r===l||l.contains(r)}_startReceiving(o,e){const t=this._activeSiblings;!t.has(o)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(o),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(o);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const o=gc(Zi(this.element));this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const o=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,o))}}function p1(n,o){const{top:e,bottom:t,height:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}function f1(n,o){const{left:e,right:t,width:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}const eA=fa({passive:!1,capture:!0});let p3=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,eA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,eA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:eA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:eA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new nn.y(r=>this._ngZone.runOutsideAngular(()=>{const d=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Ci.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const f3={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let m3=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=f3){return new l3(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new u3(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b),i.LFG(ya),i.LFG(p3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),g3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[m3],imports:[Ka]}),n})(),_3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),A3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),H3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[A3,ot,ot]}),n})(),z3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,ot]}),n})();new i.OlP("mat-selectsearch-default-options");let $3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[C.ez,Ho,_a,zC,Rl,fC,Zc]]}),n})(),Z3=(()=>{class n extends _b{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const J3={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let b1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:Z3},{provide:ga,useValue:J3}],imports:[C.ez,zC,TC,cg,WM,g3,yp,wh,GM,wu,fC,QM,Rl,Au,_a,Zc,Bc,Ho,pC,un,FD,_3,H3,UM,z3,Kf,Po,$3,_l,Mu,bx,zH]}),n})(),T6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,_a,Rl,wh,b1,yp,Bc,Ho,pC,QM]}),n})(),x6=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zg),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Yt,Ii,St],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function M6(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let S6=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ji(null,[Li.required]),this.passwordCtrl=new Ji(null,[Li.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,M6,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA()(),i.TgZ(15,"mat-form-field",4)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[C.O5,Yt,Ii,ts,Gn,wa,Rn,qn,rs,xr,os,Gs,St],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})();function D6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function E6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function H6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function k6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function P6(n,o){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function R6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function L6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function I6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function O6(n,o){1&n&&(i.TgZ(0,"div",28),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function B6(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",38)(1,"div",28)(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40)(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42)(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA()()()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function V6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function F6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}const j6=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function N6(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1),d=i.oxw(2);return i.KtG(d.loadPublicationDetail(r,l))}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,j6))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function Y6(n,o){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,F6,1,0,"mat-spinner",3),i.YNc(2,N6,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function z6(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function U6(n,o){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)}}function G6(n,o){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,z6,1,1,"ng-template",44),i.YNc(2,U6,2,1,"ng-template",45),i.qZA())}function q6(n,o){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),i.YNc(3,V6,2,3,"ng-template",44),i.YNc(4,Y6,3,2,"ng-template",45),i.qZA(),i.YNc(5,G6,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function W6(n,o){1&n&&(i.TgZ(0,"div",28)(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function $6(n,o){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function Z6(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.redirect(["create-publication"]))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function J6(n,o){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,$6,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,Z6,3,3,"button",56),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),i.xp6(2),i.Q6J("ngIf",!e.duplicateCheck)}}function Q6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function K6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function X6(n,o){if(1&n&&i._UZ(0,"perun-web-apps-add-authors",59),2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)}}function ez(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,X6,1,2,"perun-web-apps-add-authors",33),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function tz(n,o){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function iz(n,o){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,tz,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function nz(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function rz(n,o){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",59),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function az(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function sz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.stepChanged(r))}),i.TgZ(1,"mat-step",7),i.YNc(2,E6,2,3,"ng-template",8),i.TgZ(3,"form",9)(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11)(8,"mat-checkbox",12),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-form-field"),i._UZ(12,"input",13),i.ALo(13,"translate"),i.YNc(14,H6,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(22);return i.KtG(r.open())}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16)(20,"mat-datepicker-toggle",17),i.TgZ(21,"mat-datepicker",18,19),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(22),d=i.oxw();return i.KtG(d.chosenYearHandler(r,l))}),i.qZA(),i.YNc(23,k6,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field")(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,P6,2,2,"mat-option",21),i.qZA(),i.YNc(28,R6,3,3,"mat-error",14),i.qZA(),i.TgZ(29,"mat-form-field"),i._UZ(30,"input",22),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-form-field"),i._UZ(33,"input",23),i.ALo(34,"translate"),i.qZA(),i.TgZ(35,"mat-form-field")(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,L6,3,3,"mat-error",14),i.qZA()()(),i.TgZ(40,"div",25)(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA()()(),i.TgZ(44,"mat-step",27),i.YNc(45,I6,2,3,"ng-template",8),i.TgZ(46,"form",28)(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,O6,5,3,"div",29),i.YNc(51,B6,16,12,"perun-web-apps-alert",30),i.YNc(52,q6,6,1,"mat-tab-group",14),i.YNc(53,W6,6,3,"div",29),i.qZA(),i.YNc(54,J6,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,Q6,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,K6,1,0,"mat-spinner",3),i.YNc(61,ez,5,4,"div",14),i.YNc(62,iz,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,nz,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,rz,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,az,1,0,"mat-spinner",3),i.TgZ(70,"div",25)(71,"button",34),i._uU(72),i.ALo(73,"translate"),i.qZA(),i.TgZ(74,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.redirect(["all-publications",r.publication.id]))}),i._uU(75),i.ALo(76,"translate"),i.qZA()()()()}if(2&n){const e=i.MAs(22),t=i.oxw();i.xp6(1),i.Q6J("editable",!t.duplicateCheck)("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck),i.xp6(4),i.hij(" ",i.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const oz=Hp,lz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let cz=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=s,this.storeService=a,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new si(!0,[]),this.thanksSelection=new si(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!1],title:["",Li.required],year:["",Li.required],category:["",Li.required],isbn:[""],doi:[""],cite:["",Li.required]}),this.maxYear=oz(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const e=this.publicationControl.get("title").value??null,t=this.publicationControl.get("doi").value??null,r=this.publicationControl.get("isbn").value??null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(l=>{this.similarPublications=l,this.filteredPublications=l,setTimeout(()=>{this.duplicateCheck=0===l.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e)}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(OT),i.Y36(Ut),i.Y36(bi),i.Y36(Ri),i.Y36(On),i.Y36(Yi),i.Y36(Zn),i.Y36(ia))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:lz}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],["linear","True",3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],["linear","True",3,"selectionChange"],[3,"editable","stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"mt-1"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-auto",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","mt-1",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-stroked-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],[1,"mt-3"],["class","ml-auto","mat-stroked-button","","type","button","matStepperPrevious","",4,"ngIf"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["class","ml-2","mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","type","button",1,"ml-2",3,"click"],["alert_type","info"],[3,"publication","selection"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-2"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,D6,1,0,"mat-spinner",3),i.YNc(8,sz,77,65,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.sg,C.O5,Yt,cd,Ii,Ai,ts,Gn,wa,Wh,os,Vy,Rn,qn,Fm,rs,Dl,Hl,op,dH,UC,uH,QB,KB,YM,Kg,zM,ko,Mc,AF,oF,HH,sF,Gs,Dp,t_,JH,QH,St],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.passed-icon[_ngcontent-%COMP%]{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function dz(n,o){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function uz(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function hz(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function pz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.selectPubSystem())}),i.YNc(7,dz,2,2,"mat-option",7),i.qZA()(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.searchPublications())}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.importPublications(r.selected.selected))}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.userAsAuthor=r)}),i._uU(18),i.ALo(19,"translate"),i.qZA()(),i.YNc(20,uz,3,3,"perun-web-apps-alert",12),i.YNc(21,hz,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function fz(n,o){1&n&&i._UZ(0,"mat-spinner",17)}function mz(n,o){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function gz(n,o){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function _z(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index,s=i.oxw(2);return i.KtG(s.completePublication(l.id,d))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function bz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(2);return i.KtG(l.incompletePublication(r.id))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function yz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw(2);return i.KtG(d.editPublication(l))}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,mz,3,3,"i",3),i.YNc(5,gz,2,0,"mat-icon",24),i.qZA()(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,_z,3,3,"button",20),i.YNc(9,bz,3,3,"button",27),i.qZA()()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function wz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.completeAllPublications())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function Cz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.onSubmit())}),i._uU(3),i.ALo(4,"translate"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function Az(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,yz,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,wz,3,3,"button",20),i.qZA(),i.YNc(8,Cz,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const A1=Hp,vz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Tz=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:x6},{path:"service-access",component:S6},{path:"all-publications",component:kj},{path:"my-publications",component:Ij},{path:"create-publication",component:Oj},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,s){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=s,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Ji,this.publications=[],this.selected=new si(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Ji(A1().subtract(1,"year")),this.endYear=new Ji(A1()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem.setValue(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe(e=>{this.publications=e,this.loading=!1},()=>this.loading=!1)}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe(l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(l),this.importPublications(e)},()=>this.loading=!1):(this.importedPublications.push(l),this.importPublications(e))},()=>this.loading=!1)}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=xn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(NR,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(Zn),i.Y36(On),i.Y36(Yi),i.Y36(Ri),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:wi,useClass:Xg,deps:[Hs]},{provide:ga,useValue:vz}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,pz,22,20,"div",3),i.YNc(8,fz,1,0,"mat-spinner",4),i.YNc(9,Az,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},dependencies:[C.sg,C.O5,_B,ZE,JE,gB,Yt,cd,Ii,Ai,Gn,wa,qn,El,xr,$c,ko,Mc,Gs,Dp,t_,WH,St],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),n})()},{path:"create-publication/create",component:cz},{path:"authors",component:c2},{path:"authors/:authorId",component:hN},{path:"authors/:authorId/publication/:publicationId",component:t_},{path:"all-publications/:publicationId",component:t_},{path:"my-publications/:publicationId",component:t_},{path:"categories",component:G2},{path:"publication-systems",component:lN}];let xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[wh.forRoot(Tz,{preloadingStrategy:u0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),wh]}),n})();const Mz={provide:w.TP,useExisting:(0,i.Gpc)(()=>SD),multi:!0};function Sz(n){return new IL(n,"./assets/i18n/",".json")}function Dz(n){const o={basePath:n.get("api_url")};return new Ye(o)}const Ez=n=>()=>n.loadConfigs();let Hz=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(MD),i.LFG(Yi))},n.\u0275mod=i.oAB({type:n,bootstrap:[LL]}),n.\u0275inj=i.cJS({providers:[MD,{provide:i.ip1,useFactory:Ez,multi:!0,deps:[VL]},{provide:Ye,useFactory:Dz,deps:[Zn]},SD,Mz,{provide:FL,useClass:Ek},Mj,{provide:Gx.Hy,useFactory:()=>localStorage}],imports:[Xi,yp.forRoot({loader:{provide:_p,useFactory:Sz,deps:[w.eN]}}),VO,zH,FO,Uo,w.JF,xz,QM,FD,T6,OH,bx,Gx.zr.forRoot(),b1]}),n})();(0,i.G48)(),ct().bootstrapModule(Hz).catch(n=>console.error(n))},1302:function(Y,U,x){var C;!function(i,D){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var D=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(le,re,ie,me,be){for(var Ae,$e,Ze,Ee,ve,Me,lt,Re,Oe,Le,ue,fe,Ce;be>=64;){for(Ae=re[0],$e=re[1],Ze=re[2],Ee=re[3],ve=re[4],Me=re[5],lt=re[6],Re=re[7],Le=0;Le<16;Le++)le[Le]=(255&ie[ue=me+4*Le])<<24|(255&ie[ue+1])<<16|(255&ie[ue+2])<<8|255&ie[ue+3];for(Le=16;Le<64;Le++)le[Le]=((fe=((Oe=le[Le-2])>>>17|Oe<<15)^(Oe>>>19|Oe<<13)^Oe>>>10)+le[Le-7]|0)+((Ce=((Oe=le[Le-15])>>>7|Oe<<25)^(Oe>>>18|Oe<<14)^Oe>>>3)+le[Le-16]|0);for(Le=0;Le<64;Le++)fe=(((ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7))+(ve&Me^~ve<)|0)+(Re+(D[Le]+le[Le]|0)|0)|0,Ce=((Ae>>>2|Ae<<30)^(Ae>>>13|Ae<<19)^(Ae>>>22|Ae<<10))+(Ae&$e^Ae&Ze^$e&Ze)|0,Re=lt,lt=Me,Me=ve,ve=Ee+fe|0,Ee=Ze,Ze=$e,$e=Ae,Ae=fe+Ce|0;re[0]+=Ae,re[1]+=$e,re[2]+=Ze,re[3]+=Ee,re[4]+=ve,re[5]+=Me,re[6]+=lt,re[7]+=Re,me+=64,be-=64}return me}var S=function(){function le(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return le.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},le.prototype.clean=function(){for(var re=0;re0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(me=M(this.temp,this.state,re,me,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;return this},le.prototype.finish=function(re){if(!this.finished){var ie=this.bytesHashed,me=this.bufferLength,be=ie/536870912|0,Ae=ie<<3,$e=ie%64<56?64:128;this.buffer[me]=128;for(var Ze=me+1;Ze<$e-8;Ze++)this.buffer[Ze]=0;this.buffer[$e-8]=be>>>24&255,this.buffer[$e-7]=be>>>16&255,this.buffer[$e-6]=be>>>8&255,this.buffer[$e-5]=be>>>0&255,this.buffer[$e-4]=Ae>>>24&255,this.buffer[$e-3]=Ae>>>16&255,this.buffer[$e-2]=Ae>>>8&255,this.buffer[$e-1]=Ae>>>0&255,M(this.temp,this.state,this.buffer,0,$e),this.finished=!0}for(Ze=0;Ze<8;Ze++)re[4*Ze+0]=this.state[Ze]>>>24&255,re[4*Ze+1]=this.state[Ze]>>>16&255,re[4*Ze+2]=this.state[Ze]>>>8&255,re[4*Ze+3]=this.state[Ze]>>>0&255;return this},le.prototype.digest=function(){var re=new Uint8Array(this.digestLength);return this.finish(re),re},le.prototype._saveState=function(re){for(var ie=0;iethis.blockSize)(new S).update(re).finish(ie).clean();else for(var me=0;me1&&re.update(le),ie&&re.update(ie),re.update(me),re.finish(le),me[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=j;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,re,ie,me){void 0===re&&(re=J),void 0===me&&(me=32);for(var be=new Uint8Array([1]),Ae=j(re,le),$e=new P(Ae),Ze=new Uint8Array($e.digestLength),Ee=Ze.length,ve=new Uint8Array(me),Me=0;Me>>24&255,$e[1]=lt>>>16&255,$e[2]=lt>>>8&255,$e[3]=lt>>>0&255,be.reset(),be.update(re),be.update($e),be.finish(Ee);for(var Re=0;Re=Q.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,j=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),z=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!j?function(J,Q,ne){var le=L.URL||L.webkitURL,re=document.createElement("a");re.download=Q=Q||J.name||"download",re.rel="noopener","string"==typeof J?(re.href=J,re.origin===location.origin?P(re):S(re.href)?M(J,Q,ne):P(re,re.target="_blank")):(re.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(re.href)},4e4),setTimeout(function(){P(re)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function D(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))M(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return M(J,Q,ne);var re="application/octet-stream"===J.type,ie=/constructor/i.test(L.HTMLElement)||L.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||re&&ie||j)&&typeof FileReader<"u"){var be=new FileReader;be.onloadend=function(){var Ze=be.result;Ze=me?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Ze:location=Ze,le=null},be.readAsDataURL(J)}else{var Ae=L.URL||L.webkitURL,$e=Ae.createObjectURL(J);le?le.location=$e:location.href=$e,le=null,setTimeout(function(){Ae.revokeObjectURL($e)},4e4)}});L.saveAs=z.saveAs=z,Y.exports=z}.apply(U,[]))&&(Y.exports=i)},7088:function(Y,U,x){!function(C){"use strict";C.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(D){return/^nm$/i.test(D)},meridiem:function(D,M,S){return D<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,U,x){!function(C){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},M=function(L){return function(j,z,J,Q){var ne=i(j),le=D[L][i(j)];return 2===ne&&(le=le[z?0:1]),le.replace(/%d/i,j)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];C.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,j,z){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(Y,U,x){!function(C){"use strict";C.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(x(5439))},4519:function(Y,U,x){!function(C){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},M={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(j){return function(z,J,Q,ne){var le=D(z),re=M[j][D(z)];return 2===le&&(re=re[J?0:1]),re.replace(/%d/i,z)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];C.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(j){return"\u0645"===j},meridiem:function(j,z,J){return j<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(j){return j.replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(z){return i[z]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,U,x){!function(C){"use strict";C.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7642:function(Y,U,x){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};C.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return D[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(Y,U,x){!function(C){"use strict";C.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7038:function(Y,U,x){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(z){return 0===z?0:1===z?1:2===z?2:z%100>=3&&z%100<=10?3:z%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(z){return function(J,Q,ne,le){var re=M(J),ie=S[z][M(J)];return 2===re&&(ie=ie[Q?0:1]),ie.replace(/%d/i,J)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];C.defineLocale("ar",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(z){return"\u0645"===z},meridiem:function(z,J,Q){return z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(z){return z.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return D[J]}).replace(/\u060c/g,",")},postformat:function(z){return z.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,U,x){!function(C){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};C.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(M){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(M)},meridiem:function(M,S,P){return M<4?"gec\u0259":M<12?"s\u0259h\u0259r":M<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(M){if(0===M)return M+"-\u0131nc\u0131";var S=M%10;return M+(i[S]||i[M%100-S]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(Y,U,x){!function(C){"use strict";function D(S,P,L){return"m"===L?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var L=S.split("_");return P%10==1&&P%100!=11?L[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?L[1]:L[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[L],+S)}C.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(Y,U,x){!function(C){"use strict";C.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var M=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===M?D+"-\u0432\u0438":2===M?D+"-\u0440\u0438":7===M||8===M?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,U,x){!function(C){"use strict";C.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(x(5439))},5903:function(Y,U,x){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(Y,U,x){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(Y,U,x){!function(C){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};C.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(Y,U,x){!function(C){"use strict";function i(ie,me,be){return ie+" "+function S(ie,me){return 2===me?function P(ie){var me={m:"v",b:"v",d:"z"};return void 0===me[ie.charAt(0)]?ie:me[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[be],ie)}function M(ie){return ie>9?M(ie%10):ie}var L=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],j=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];C.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:le,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:le,monthsRegex:j,monthsShortRegex:j,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function D(ie){switch(M(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,me,be){return ie<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,U,x){!function(C){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}C.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(Y,U,x){!function(C){"use strict";C.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,M){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),D+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,U,x){!function(C){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),M=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(z){return z>1&&z<5&&1!=~~(z/10)}function L(z,J,Q,ne){var le=z+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(z)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(z)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(z)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(z)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(z)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(z)?"roky":"let"):le+"lety"}}C.defineLocale("cs",{months:i,monthsShort:D,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(Y,U,x){!function(C){"use strict";C.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(x(5439))},2092:function(Y,U,x){!function(C){"use strict";C.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,U,x){!function(C){"use strict";C.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9459:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?j[P][0]:j[P][1]}C.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?j[P][0]:j[P][1]}C.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?j[P][0]:j[P][1]}C.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(Y,U,x){!function(C){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],D=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];C.defineLocale("dv",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,L){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(Y,U,x){!function(C){"use strict";C.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(M,S){return M?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[M.month()]:this._monthsNominativeEl[M.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(M,S,P){return M>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(M){return"\u03bc"===(M+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(M,S){var P=this._calendarEl[M],L=S&&S.hours();return function i(M){return typeof Function<"u"&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}(P)&&(P=P.apply(S)),P.replace("{}",L%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(x(5439))},4369:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,U,x){!function(C){"use strict";C.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,U,x){!function(C){"use strict";C.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,M,S){return D>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(x(5439))},8944:function(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},9116:function(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},3609:function(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(x(5439))},6866:function(Y,U,x){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},6725:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[M+"sekundi",M+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[M+" minuti",M+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[M+" tunni",M+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[M+" kuu",M+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[M+" aasta",M+" aastat"]};return S?j[P][2]?j[P][2]:j[P][1]:L?j[P][0]:j[P][1]}C.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(Y,U,x){!function(C){"use strict";C.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6417:function(Y,U,x){!function(C){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};C.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,L){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return D[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(Y,U,x){!function(C){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,j,z,J){var Q="";switch(z){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(L,j){return L<10?j?D[L]:i[L]:L}(L,J)+" "+Q}C.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(Y,U,x){!function(C){"use strict";C.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,U,x){!function(C){"use strict";C.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},6848:function(Y,U,x){!function(C){"use strict";C.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(x(5439))},7773:function(Y,U,x){!function(C){"use strict";C.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,U,x){!function(C){"use strict";var M=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];C.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:M,monthsShortRegex:M,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(L,j){switch(j){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(Y,U,x){!function(C){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");C.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?D[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(Y,U,x){!function(C){"use strict";C.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,U,x){!function(C){"use strict";C.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,U,x){!function(C){"use strict";C.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(D){return 0===D.indexOf("un")?"n"+D:"en "+D},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2457:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[M+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",M+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[M+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",M+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[M+" \u0935\u0930\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[M+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",M+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[M+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",M+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[M+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?j[P][0]:j[P][1]}C.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(M,S){return"D"===S?M+"\u0935\u0947\u0930":M},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0930\u093e\u0924\u0940"===S?M<4?M:M+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?M:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?M>12?M:M+12:"\u0938\u093e\u0902\u091c\u0947"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0930\u093e\u0924\u0940":M<12?"\u0938\u0915\u093e\u0933\u0940\u0902":M<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":M<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j={s:["thoddea sekondamni","thodde sekond"],ss:[M+" sekondamni",M+" sekond"],m:["eka mintan","ek minut"],mm:[M+" mintamni",M+" mintam"],h:["eka voran","ek vor"],hh:[M+" voramni",M+" voram"],d:["eka disan","ek dis"],dd:[M+" disamni",M+" dis"],M:["eka mhoinean","ek mhoino"],MM:[M+" mhoineamni",M+" mhoine"],y:["eka vorsan","ek voros"],yy:[M+" vorsamni",M+" vorsam"]};return L?j[P][0]:j[P][1]}C.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(M,S){return"D"===S?M+"er":M},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(M,S){return 12===M&&(M=0),"rati"===S?M<4?M:M+12:"sokallim"===S?M:"donparam"===S?M>12?M:M+12:"sanje"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"rati":M<12?"sokallim":M<16?"donparam":M<20?"sanje":"rati"}})}(x(5439))},2641:function(Y,U,x){!function(C){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};C.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(Y,U,x){!function(C){"use strict";C.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,M,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(Y,U,x){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},M=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];C.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:M,longMonthsParse:M,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(j){return D[j]})},postformat:function(L){return L.replace(/\d/g,function(j){return i[j]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u0930\u093e\u0924"===j?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===j?L:"\u0926\u094b\u092a\u0939\u0930"===j?L>=10?L:L+12:"\u0936\u093e\u092e"===j?L+12:void 0},meridiem:function(L,j,z){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(Y,U,x){!function(C){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}C.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(Y,U,x){!function(C){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(P,L,j,z){var J=P;switch(j){case"s":return z||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(z||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(z||L?" perc":" perce");case"mm":return J+(z||L?" perc":" perce");case"h":return"egy"+(z||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(z||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(z||L?" nap":" napja");case"dd":return J+(z||L?" nap":" napja");case"M":return"egy"+(z||L?" h\xf3nap":" h\xf3napja");case"MM":return J+(z||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(z||L?" \xe9v":" \xe9ve");case"yy":return J+(z||L?" \xe9v":" \xe9ve")}return""}function M(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}C.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,L,j){return P<12?!0===j?"de":"DE":!0===j?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return M.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return M.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},5283:function(Y,U,x){!function(C){"use strict";C.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(D,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,U,x){!function(C){"use strict";C.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(D,M){return 12===D&&(D=0),"pagi"===M?D:"siang"===M?D>=11?D:D+12:"sore"===M||"malam"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"pagi":D<15?"siang":D<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(x(5439))},4205:function(Y,U,x){!function(C){"use strict";function i(S){return S%100==11||S%10!=1}function D(S,P,L,j){var z=S+" ";switch(L){case"s":return P||j?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?z+(P||j?"sek\xfandur":"sek\xfandum"):z+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?z+(P||j?"m\xedn\xfatur":"m\xedn\xfatum"):P?z+"m\xedn\xfata":z+"m\xedn\xfatu";case"hh":return i(S)?z+(P||j?"klukkustundir":"klukkustundum"):z+"klukkustund";case"d":return P?"dagur":j?"dag":"degi";case"dd":return i(S)?P?z+"dagar":z+(j?"daga":"d\xf6gum"):P?z+"dagur":z+(j?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":j?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?z+"m\xe1nu\xf0ir":z+(j?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?z+"m\xe1nu\xf0ur":z+(j?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||j?"\xe1r":"\xe1ri";case"yy":return i(S)?z+(P||j?"\xe1r":"\xe1rum"):z+(P||j?"\xe1r":"\xe1ri")}}C.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,U,x){!function(C){"use strict";C.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},4211:function(Y,U,x){!function(C){"use strict";C.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},1003:function(Y,U,x){!function(C){"use strict";C.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(D,M){return"\u5143"===M[1]?1:parseInt(M[1]||D,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(D){return"\u5348\u5f8c"===D},meridiem:function(D,M,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,M){switch(M){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(x(5439))},420:function(Y,U,x){!function(C){"use strict";C.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(D,M){return 12===D&&(D=0),"enjing"===M?D:"siyang"===M?D>=11?D:D+12:"sonten"===M||"ndalu"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"enjing":D<15?"siyang":D<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(x(5439))},851:function(Y,U,x){!function(C){"use strict";C.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(M,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,U,x){!function(C){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};C.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(Y,U,x){!function(C){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};C.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,L){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,U,x){!function(C){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};C.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(Y,U,x){!function(C){"use strict";C.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,M,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,U,x){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];C.defineLocale("ku",{months:M,monthsShort:M,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,L,j){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return D[L]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(Y,U,x){!function(C){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};C.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(Y,U,x){!function(C){"use strict";function i(L,j,z,J){var Q={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return j?Q[z][0]:Q[z][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var j=L%10;return S(0===j?L/10:j)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}C.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function D(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function M(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(Y,U,x){!function(C){"use strict";C.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,M,S){return D<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(D){return"\u0e97\u0eb5\u0ec8"+D}})}(x(5439))},2400:function(Y,U,x){!function(C){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function M(z,J,Q,ne){return J?P(Q)[0]:ne?P(Q)[1]:P(Q)[2]}function S(z){return z%10==0||z>10&&z<20}function P(z){return i[z].split("_")}function L(z,J,Q,ne){var le=z+" ";return 1===z?le+M(0,J,Q[0],ne):J?le+(S(z)?P(Q)[1]:P(Q)[0]):ne?le+P(Q)[1]:le+(S(z)?P(Q)[1]:P(Q)[2])}C.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function D(z,J,Q,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:M,mm:L,h:M,hh:L,d:M,dd:L,M,MM:L,y:M,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(z){return z+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,U,x){!function(C){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function D(j,z,J){return J?z%10==1&&z%100!=11?j[2]:j[3]:z%10==1&&z%100!=11?j[0]:j[1]}function M(j,z,J){return j+" "+D(i[J],j,z)}function S(j,z,J){return D(i[J],j,z)}C.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(j,z){return z?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:M,m:S,mm:M,h:S,hh:M,d:S,dd:M,M:S,MM:M,y:S,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(Y,U,x){!function(C){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(M,S){return 1===M?S[0]:M>=2&&M<=4?S[1]:S[2]},translate:function(M,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:M+" "+i.correctGrammaticalCase(M,L)}};C.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(Y,U,x){!function(C){"use strict";C.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5943:function(Y,U,x){!function(C){"use strict";C.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var M=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===M?D+"-\u0432\u0438":2===M?D+"-\u0440\u0438":7===M||8===M?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,U,x){!function(C){"use strict";C.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?D+12:D},meridiem:function(D,M,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return M+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return M+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return M+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return M+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return M+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return M+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return M}}C.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(M){return"\u04ae\u0425"===M},meridiem:function(M,S,P){return M<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(M,S){switch(S){case"d":case"D":case"DDD":return M+" \u04e9\u0434\u04e9\u0440";default:return M}}})}(x(5439))},6184:function(Y,U,x){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(P,L,j,z){var J="";if(L)switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}C.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return D[L]})},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,L){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?P>=12?P:P+12:void 0},meridiem:function(P,L,j){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(Y,U,x){!function(C){"use strict";C.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,M){return 12===D&&(D=0),"pagi"===M?D:"tengahari"===M?D>=11?D:D+12:"petang"===M||"malam"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},485:function(Y,U,x){!function(C){"use strict";C.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,M){return 12===D&&(D=0),"pagi"===M?D:"tengahari"===M?D>=11?D:D+12:"petang"===M||"malam"===M?D+12:void 0},meridiem:function(D,M,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},6681:function(Y,U,x){!function(C){"use strict";C.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2024:function(Y,U,x){!function(C){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};C.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,U,x){!function(C){"use strict";C.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8914:function(Y,U,x){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};C.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(x(5439))},2272:function(Y,U,x){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;C.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(Y,U,x){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;C.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(Y,U,x){!function(C){"use strict";C.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2797:function(Y,U,x){!function(C){"use strict";C.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,M){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),D+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,U,x){!function(C){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};C.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(Y,U,x){!function(C){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),M=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(j){return j%10<5&&j%10>1&&~~(j/10)%10!=1}function P(j,z,J){var Q=j+" ";switch(J){case"ss":return Q+(S(j)?"sekundy":"sekund");case"m":return z?"minuta":"minut\u0119";case"mm":return Q+(S(j)?"minuty":"minut");case"h":return z?"godzina":"godzin\u0119";case"hh":return Q+(S(j)?"godziny":"godzin");case"ww":return Q+(S(j)?"tygodnie":"tygodni");case"MM":return Q+(S(j)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(j)?"lata":"lat")}}C.defineLocale("pl",{months:function(j,z){return j?/D MMMM/.test(z)?D[j.month()]:i[j.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(Y,U,x){!function(C){"use strict";C.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(x(5439))},4225:function(Y,U,x){!function(C){"use strict";C.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5128:function(Y,U,x){!function(C){"use strict";function i(M,S,P){var j=" ";return(M%100>=20||M>=100&&M%100==0)&&(j=" de "),M+j+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}C.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(Y,U,x){!function(C){"use strict";function D(P,L,j){return"m"===j?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var j=P.split("_");return L%10==1&&L%100!=11?j[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?j[1]:j[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[j],+P)}var M=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];C.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,L,j){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,L){switch(L){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(x(5439))},2525:function(Y,U,x){!function(C){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],D=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];C.defineLocale("sd",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(Y,U,x){!function(C){"use strict";C.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3123:function(Y,U,x){!function(C){"use strict";C.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,M,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},3027:function(Y,U,x){!function(C){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function M(L){return L>1&&L<5}function S(L,j,z,J){var Q=L+" ";switch(z){case"s":return j||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return j||J?Q+(M(L)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return j?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return j||J?Q+(M(L)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return j?"hodina":J?"hodinu":"hodinou";case"hh":return j||J?Q+(M(L)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return j||J?"de\u0148":"d\u0148om";case"dd":return j||J?Q+(M(L)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return j||J?"mesiac":"mesiacom";case"MM":return j||J?Q+(M(L)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return j||J?"rok":"rokom";case"yy":return j||J?Q+(M(L)?"roky":"rokov"):Q+"rokmi"}}C.defineLocale("sk",{months:i,monthsShort:D,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(Y,U,x){!function(C){"use strict";function i(M,S,P,L){var j=M+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return j+(1===M?S?"sekundo":"sekundi":2===M?S||L?"sekundi":"sekundah":M<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return j+(1===M?S?"minuta":"minuto":2===M?S||L?"minuti":"minutama":M<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return j+(1===M?S?"ura":"uro":2===M?S||L?"uri":"urama":M<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return j+(1===M?S||L?"dan":"dnem":2===M?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return j+(1===M?S||L?"mesec":"mesecem":2===M?S||L?"meseca":"mesecema":M<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return j+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"let":"leti")}}C.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(Y,U,x){!function(C){"use strict";C.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(D){return"M"===D.charAt(0)},meridiem:function(D,M,S){return D<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2872:function(Y,U,x){!function(C){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var z,j=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?j[0]:j[1]:(z=i.correctGrammaticalCase(M,j),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===z?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+z)}};C.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(Y,U,x){!function(C){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var z,j=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":L||S?j[0]:j[1]:(z=i.correctGrammaticalCase(M,j),"yy"===P&&S&&"godinu"===z?M+" godina":M+" "+z)}};C.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(Y,U,x){!function(C){"use strict";C.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(D,M,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,M){return 12===D&&(D=0),"ekuseni"===M?D:"emini"===M?D>=11?D:D+12:"entsambama"===M||"ebusuku"===M?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,U,x){!function(C){"use strict";C.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,U,x){!function(C){"use strict";C.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(x(5439))},2732:function(Y,U,x){!function(C){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};C.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(Y,U,x){!function(C){"use strict";C.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===M?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?D+12:void 0},meridiem:function(D,M,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(Y,U,x){!function(C){"use strict";C.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,U,x){!function(C){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};C.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0448\u0430\u0431"===S?M<4?M:M+12:"\u0441\u0443\u0431\u04b3"===S?M:"\u0440\u04ef\u0437"===S?M>=11?M:M+12:"\u0431\u0435\u0433\u043e\u04b3"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0448\u0430\u0431":M<11?"\u0441\u0443\u0431\u04b3":M<16?"\u0440\u04ef\u0437":M<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},2868:function(Y,U,x){!function(C){"use strict";C.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,M,S){return D<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(x(5439))},1310:function(Y,U,x){!function(C){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};C.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'unjy";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(Y,U,x){!function(C){"use strict";C.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,U,x){!function(C){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(j,z,J,Q){var ne=function P(j){var z=Math.floor(j%1e3/100),J=Math.floor(j%100/10),Q=j%10,ne="";return z>0&&(ne+=i[z]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(j);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}C.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function D(j){var z=j;return-1!==j.indexOf("jaj")?z.slice(0,-3)+"leS":-1!==j.indexOf("jar")?z.slice(0,-3)+"waQ":-1!==j.indexOf("DIS")?z.slice(0,-3)+"nem":z+" pIq"},past:function M(j){var z=j;return-1!==j.indexOf("jaj")?z.slice(0,-3)+"Hu\u2019":-1!==j.indexOf("jar")?z.slice(0,-3)+"wen":-1!==j.indexOf("DIS")?z.slice(0,-3)+"ben":z+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(Y,U,x){!function(C){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};C.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(M,S,P){return M<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(M){return"\xf6s"===M||"\xd6S"===M},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'\u0131nc\u0131";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(Y,U,x){!function(C){"use strict";function D(M,S,P,L){var j={s:["viensas secunds","'iensas secunds"],ss:[M+" secunds",M+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[M+" m\xeduts",M+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[M+" \xfeoras",M+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[M+" ziuas",M+" ziuas"],M:["'n mes","'iens mes"],MM:[M+" mesen",M+" mesen"],y:["'n ar","'iens ar"],yy:[M+" ars",M+" ars"]};return L||S?j[P][0]:j[P][1]}C.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(M){return"d'o"===M.toLowerCase()},meridiem:function(M,S,P){return M>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,U,x){!function(C){"use strict";C.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(x(5439))},1595:function(Y,U,x){!function(C){"use strict";C.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(x(5439))},6050:function(Y,U,x){!function(C){"use strict";C.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===M||"\u0633\u06d5\u06be\u06d5\u0631"===M||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===M?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?D+12:D>=11?D:D+12},meridiem:function(D,M,S){var P=100*D+M;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,U,x){!function(C){"use strict";function D(L,j,z){return"m"===z?j?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===z?j?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,j){var z=L.split("_");return j%10==1&&j%100!=11?z[0]:j%10>=2&&j%10<=4&&(j%100<10||j%100>=20)?z[1]:z[2]}({ss:j?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:j?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:j?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[z],+L)}function S(L){return function(){return L+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}C.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function M(L,j){var z={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===L?z.nominative.slice(1,7).concat(z.nominative.slice(0,1)):L?z[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(j)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(j)?"genitive":"nominative"][L.day()]:z.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,j,z){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,j){switch(j){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(x(5439))},6077:function(Y,U,x){!function(C){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],D=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];C.defineLocale("ur",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(Y,U,x){!function(C){"use strict";C.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(x(5439))},2862:function(Y,U,x){!function(C){"use strict";C.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(x(5439))},8093:function(Y,U,x){!function(C){"use strict";C.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(D){return/^ch$/i.test(D)},meridiem:function(D,M,S){return D<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,U,x){!function(C){"use strict";C.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(D){var M=D%10;return D+(1==~~(D%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,U,x){!function(C){"use strict";C.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(x(5439))},7908:function(Y,U,x){!function(C){"use strict";C.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:D>=11?D:D+12},meridiem:function(D,M,S){var P=100*D+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(x(5439))},8867:function(Y,U,x){!function(C){"use strict";C.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e2d\u5348"===M?D>=11?D:D+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:void 0},meridiem:function(D,M,S){var P=100*D+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},1133:function(Y,U,x){!function(C){"use strict";C.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e2d\u5348"===M?D>=11?D:D+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:void 0},meridiem:function(D,M,S){var P=100*D+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},3291:function(Y,U,x){!function(C){"use strict";C.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,M){return 12===D&&(D=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?D:"\u4e2d\u5348"===M?D>=11?D:D+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?D+12:void 0},meridiem:function(D,M,S){var P=100*D+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,M){switch(M){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},5439:function(Y,U,x){(Y=x.nmd(Y)).exports=function(){"use strict";var C,me;function i(){return C.apply(null,arguments)}function M(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function S(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function P(T,H){return Object.prototype.hasOwnProperty.call(T,H)}function L(T){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(T).length;var H;for(H in T)if(P(T,H))return!1;return!0}function j(T){return void 0===T}function z(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function J(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function Q(T,H){var N,I=[],W=T.length;for(N=0;N>>0;for(N=0;N0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-N.length)).toString().substr(1)+N}var ni=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ki={},_n={};function Ue(T,H,I,N){var W=N;"string"==typeof N&&(W=function(){return this[N]()}),T&&(_n[T]=W),H&&(_n[H[0]]=function(){return It(W.apply(this,arguments),H[1],H[2])}),I&&(_n[I]=function(){return this.localeData().ordinal(W.apply(this,arguments),T)})}function ri(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function vi(T,H){return T.isValid()?(H=Kr(H,T.localeData()),Ki[H]=Ki[H]||function lr(T){var I,N,H=T.match(ni);for(I=0,N=H.length;I=0&&Je.test(T);)T=T.replace(Je,N),Je.lastIndex=0,I-=1;return T}var cr={};function Qt(T,H){var I=T.toLowerCase();cr[I]=cr[I+"s"]=cr[H]=T}function Xi(T){return"string"==typeof T?cr[T]||cr[T.toLowerCase()]:void 0}function zo(T){var I,N,H={};for(N in T)P(T,N)&&(I=Xi(N))&&(H[I]=T[N]);return H}var Jn={};function Wt(T,H){Jn[T]=H}function ae(T){return T%4==0&&T%100!=0||T%400==0}function te(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function de(T){var H=+T,I=0;return 0!==H&&isFinite(H)&&(I=te(H)),I}function ke(T,H){return function(I){return null!=I?(At(this,T,I),i.updateOffset(this,H),this):dt(this,T)}}function dt(T,H){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+H]():NaN}function At(T,H,I){T.isValid()&&!isNaN(I)&&("FullYear"===H&&ae(T.year())&&1===T.month()&&29===T.date()?(I=de(I),T._d["set"+(T._isUTC?"UTC":"")+H](I,T.month(),Fn(I,T.month()))):T._d["set"+(T._isUTC?"UTC":"")+H](I))}var Ui,Di=/\d/,vt=/\d\d/,Mn=/\d{3}/,mt=/\d{4}/,$t=/[+-]?\d{6}/,pt=/\d\d?/,Vn=/\d\d\d\d?/,Xr=/\d\d\d\d\d\d?/,Vi=/\d{1,3}/,Pr=/\d{1,4}/,dr=/[+-]?\d{1,6}/,Qn=/\d+/,ea=/[+-]?\d+/,fd=/Z|[+-]\d\d:?\d\d/gi,ps=/Z|[+-]\d\d(?::?\d\d)?/gi,Ni=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(T,H,I){Ui[T]=ue(H)?H:function(N,W){return N&&I?I:H}}function Ei(T,H){return P(Ui,T)?Ui[T](H._strict,H._locale):new RegExp(function Ge(T){return it(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,N,W,se){return I||N||W||se}))}(T))}function it(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ui={};var ii={};function w(T,H){var I,W,N=H;for("string"==typeof T&&(T=[T]),z(H)&&(N=function(se,we){we[H]=de(se)}),W=T.length,I=0;I68?1900:2e3)};var Ha=ke("FullYear",!0);function Nn(T,H,I,N,W,se,we){var st;return T<100&&T>=0?(st=new Date(T+400,H,I,N,W,se,we),isFinite(st.getFullYear())&&st.setFullYear(T)):st=new Date(T,H,I,N,W,se,we),st}function ms(T){var H,I;return T<100&&T>=0?((I=Array.prototype.slice.call(arguments))[0]=T+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(T)):H=new Date(Date.UTC.apply(null,arguments)),H}function gd(T,H,I){var N=7+H-I;return-(7+ms(T,0,N).getUTCDay()-H)%7+N-1}function $l(T,H,I,N,W){var Lt,di,st=1+7*(H-1)+(7+I-N)%7+gd(T,N,W);return st<=0?di=na(Lt=T-1)+st:st>na(T)?(Lt=T+1,di=st-na(T)):(Lt=T,di=st),{year:Lt,dayOfYear:di}}function Xs(T,H,I){var se,we,N=gd(T.year(),H,I),W=Math.floor((T.dayOfYear()-N-1)/7)+1;return W<1?se=W+Lr(we=T.year()-1,H,I):W>Lr(T.year(),H,I)?(se=W-Lr(T.year(),H,I),we=T.year()+1):(we=T.year(),se=W),{week:se,year:we}}function Lr(T,H,I){var N=gd(T,H,I),W=gd(T+1,H,I);return(na(T)-N+W)/7}Ue("w",["ww",2],"wo","week"),Ue("W",["WW",2],"Wo","isoWeek"),Qt("week","w"),Qt("isoWeek","W"),Wt("week",5),Wt("isoWeek",5),Ne("w",pt),Ne("ww",pt,vt),Ne("W",pt),Ne("WW",pt,vt),zt(["w","ww","W","WW"],function(T,H,I,N){H[N.substr(0,1)]=de(T)});function _d(T,H){return T.slice(H,7).concat(T.slice(0,H))}Ue("d",0,"do","day"),Ue("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),Ue("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),Ue("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),Ue("e",0,0,"weekday"),Ue("E",0,0,"isoWeekday"),Qt("day","d"),Qt("weekday","e"),Qt("isoWeekday","E"),Wt("day",11),Wt("weekday",11),Wt("isoWeekday",11),Ne("d",pt),Ne("e",pt),Ne("E",pt),Ne("dd",function(T,H){return H.weekdaysMinRegex(T)}),Ne("ddd",function(T,H){return H.weekdaysShortRegex(T)}),Ne("dddd",function(T,H){return H.weekdaysRegex(T)}),zt(["dd","ddd","dddd"],function(T,H,I,N){var W=I._locale.weekdaysParse(T,N,I._strict);null!=W?H.d=W:ie(I).invalidWeekday=T}),zt(["d","e","E"],function(T,H,I,N){H[N]=de(T)});var Op="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vp=Ni,Uo=Ni,Tt=Ni;function Ve(T,H,I){var N,W,se,we=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],N=0;N<7;++N)se=le([2e3,1]).day(N),this._minWeekdaysParse[N]=this.weekdaysMin(se,"").toLocaleLowerCase(),this._shortWeekdaysParse[N]=this.weekdaysShort(se,"").toLocaleLowerCase(),this._weekdaysParse[N]=this.weekdays(se,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null}function hr(){function T(Gi,nr){return nr.length-Gi.length}var se,we,st,Lt,di,H=[],I=[],N=[],W=[];for(se=0;se<7;se++)we=le([2e3,1]).day(se),st=it(this.weekdaysMin(we,"")),Lt=it(this.weekdaysShort(we,"")),di=it(this.weekdays(we,"")),H.push(st),I.push(Lt),N.push(di),W.push(st),W.push(Lt),W.push(di);H.sort(T),I.sort(T),N.sort(T),W.sort(T),this._weekdaysRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function eo(){return this.hours()%12||12}function yi(T,H){Ue(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function xt(T,H){return H._meridiemParse}Ue("H",["HH",2],0,"hour"),Ue("h",["hh",2],0,eo),Ue("k",["kk",2],0,function pr(){return this.hours()||24}),Ue("hmm",0,0,function(){return""+eo.apply(this)+It(this.minutes(),2)}),Ue("hmmss",0,0,function(){return""+eo.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),Ue("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),Ue("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),yi("a",!0),yi("A",!1),Qt("hour","h"),Wt("hour",13),Ne("a",xt),Ne("A",xt),Ne("H",pt),Ne("h",pt),Ne("k",pt),Ne("HH",pt,vt),Ne("hh",pt,vt),Ne("kk",pt,vt),Ne("hmm",Vn),Ne("hmmss",Xr),Ne("Hmm",Vn),Ne("Hmmss",Xr),w(["H","HH"],3),w(["k","kk"],function(T,H,I){var N=de(T);H[3]=24===N?0:N}),w(["a","A"],function(T,H,I){I._isPm=I._locale.isPM(T),I._meridiem=T}),w(["h","hh"],function(T,H,I){H[3]=de(T),ie(I).bigHour=!0}),w("hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N)),ie(I).bigHour=!0}),w("hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W)),ie(I).bigHour=!0}),w("Hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N))}),w("Hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W))});var qo=ke("Hours",!0);var fr,Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bn,monthsShort:Rr,week:{dow:0,doy:6},weekdays:Op,weekdaysMin:Bp,weekdaysShort:Bu,meridiemParse:/[ap]\.?m?\.?/i},Dt={},Ot={};function Et(T,H){var I,N=Math.min(T.length,H.length);for(I=0;I0;){if(W=Bt(se.slice(0,I).join("-")))return W;if(N&&N.length>=I&&Et(se,N)>=I-1)break;I--}H++}return fr}(T)}function ye(T){var H,I=T._a;return I&&-2===ie(T).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>Fn(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ie(T)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(T)._overflowWeeks&&-1===H&&(H=7),ie(T)._overflowWeekday&&-1===H&&(H=8),ie(T).overflow=H),T}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pi=/Z|[+-]\d\d(?::?\d\d)?/,Kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Zt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ft=/^\/?Date\((-?\d+)/i,at=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ti(T){var H,I,se,we,st,Lt,N=T._i,W=ge.exec(N)||tt.exec(N),di=Kt.length,Gi=Zt.length;if(W){for(ie(T).iso=!0,H=0,I=di;H7)&&(Lt=!0)):(se=T._locale._week.dow,we=T._locale._week.doy,di=Xs(ci(),se,we),I=Xt(H.gg,T._a[0],di.year),N=Xt(H.w,di.week),null!=H.d?((W=H.d)<0||W>6)&&(Lt=!0):null!=H.e?(W=H.e+se,(H.e<0||H.e>6)&&(Lt=!0)):W=se),N<1||N>Lr(I,se,we)?ie(T)._overflowWeeks=!0:null!=Lt?ie(T)._overflowWeekday=!0:(st=$l(I,N,W,se,we),T._a[0]=st.year,T._dayOfYear=st.dayOfYear)}(T),null!=T._dayOfYear&&(we=Xt(T._a[0],W[0]),(T._dayOfYear>na(we)||0===T._dayOfYear)&&(ie(T)._overflowDayOfYear=!0),I=ms(we,0,T._dayOfYear),T._a[1]=I.getUTCMonth(),T._a[2]=I.getUTCDate()),H=0;H<3&&null==T._a[H];++H)T._a[H]=N[H]=W[H];for(;H<7;H++)T._a[H]=N[H]=T._a[H]??(2===H?1:0);24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?ms:Nn).apply(null,N),se=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&typeof T._w.d<"u"&&T._w.d!==se&&(ie(T).weekdayMismatch=!0)}}function bd(T){if(T._f!==i.ISO_8601)if(T._f!==i.RFC_2822){T._a=[],ie(T).empty=!0;var I,N,W,se,we,di,Gi,H=""+T._i,st=H.length,Lt=0;for(Gi=(W=Kr(T._f,T._locale).match(ni)||[]).length,I=0;I0&&ie(T).unusedInput.push(we),H=H.slice(H.indexOf(N)+N.length),Lt+=N.length),_n[se]?(N?ie(T).empty=!1:ie(T).unusedTokens.push(se),Rt(se,N,T)):T._strict&&!N&&ie(T).unusedTokens.push(se);ie(T).charsLeftOver=st-Lt,H.length>0&&ie(T).unusedInput.push(H),T._a[3]<=12&&!0===ie(T).bigHour&&T._a[3]>0&&(ie(T).bigHour=void 0),ie(T).parsedDateParts=T._a.slice(0),ie(T).meridiem=T._meridiem,T._a[3]=function Fp(T,H,I){var N;return null==I?H:null!=T.meridiemHour?T.meridiemHour(H,I):(null!=T.isPM&&((N=T.isPM(I))&&H<12&&(H+=12),!N&&12===H&&(H=0)),H)}(T._locale,T._a[3],T._meridiem),null!==(di=ie(T).era)&&(T._a[0]=T._locale.erasConvertYear(di,T._a[0])),_s(T),ye(T)}else La(T);else Ti(T)}function yd(T){var H=T._i,I=T._f;return T._locale=T._locale||$(T._l),null===H||void 0===I&&""===H?Ae({nullInput:!0}):("string"==typeof H&&(T._i=H=T._locale.preparse(H)),Me(H)?new ve(ye(H)):(J(H)?T._d=H:M(I)?function Wo(T){var H,I,N,W,se,we,st=!1,Lt=T._f.length;if(0===Lt)return ie(T).invalidFormat=!0,void(T._d=new Date(NaN));for(W=0;Wthis?this:T:Ae()});function to(T,H){var I,N;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return ci();for(I=H[0],N=1;N=0?new Date(T+400,H,I)-oo:new Date(T,H,I).valueOf()}function Ko(T,H,I){return T<100&&T>=0?Date.UTC(T+400,H,I)-oo:Date.UTC(T,H,I)}function Hd(T,H){return H.erasAbbrRegex(T)}function el(){var W,se,T=[],H=[],I=[],N=[],we=this.eras();for(W=0,se=we.length;W(se=Lr(T,N,W))&&(H=se),Pd.call(this,T,H,I,N,W))}function Pd(T,H,I,N,W){var se=$l(T,H,I,N,W),we=ms(se.year,0,se.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ue("N",0,0,"eraAbbr"),Ue("NN",0,0,"eraAbbr"),Ue("NNN",0,0,"eraAbbr"),Ue("NNNN",0,0,"eraName"),Ue("NNNNN",0,0,"eraNarrow"),Ue("y",["y",1],"yo","eraYear"),Ue("y",["yy",2],0,"eraYear"),Ue("y",["yyy",3],0,"eraYear"),Ue("y",["yyyy",4],0,"eraYear"),Ne("N",Hd),Ne("NN",Hd),Ne("NNN",Hd),Ne("NNNN",function Qp(T,H){return H.erasNameRegex(T)}),Ne("NNNNN",function Xo(T,H){return H.erasNarrowRegex(T)}),w(["N","NN","NNN","NNNN","NNNNN"],function(T,H,I,N){var W=I._locale.erasParse(T,N,I._strict);W?ie(I).era=W:ie(I).invalidEra=T}),Ne("y",Qn),Ne("yy",Qn),Ne("yyy",Qn),Ne("yyyy",Qn),Ne("yo",function cc(T,H){return H._eraYearOrdinalRegex||Qn}),w(["y","yy","yyy","yyyy"],0),w(["yo"],function(T,H,I,N){var W;I._locale._eraYearOrdinalRegex&&(W=T.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(T,W):parseInt(T,10)}),Ue(0,["gg",2],0,function(){return this.weekYear()%100}),Ue(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gi("gggg","weekYear"),gi("ggggg","weekYear"),gi("GGGG","isoWeekYear"),gi("GGGGG","isoWeekYear"),Qt("weekYear","gg"),Qt("isoWeekYear","GG"),Wt("weekYear",1),Wt("isoWeekYear",1),Ne("G",ea),Ne("g",ea),Ne("GG",pt,vt),Ne("gg",pt,vt),Ne("GGGG",Pr,mt),Ne("gggg",Pr,mt),Ne("GGGGG",dr,$t),Ne("ggggg",dr,$t),zt(["gggg","ggggg","GGGG","GGGGG"],function(T,H,I,N){H[N.substr(0,2)]=de(T)}),zt(["gg","GG"],function(T,H,I,N){H[N]=i.parseTwoDigitYear(T)}),Ue("Q",0,"Qo","quarter"),Qt("quarter","Q"),Wt("quarter",7),Ne("Q",Di),w("Q",function(T,H){H[1]=3*(de(T)-1)}),Ue("D",["DD",2],"Do","date"),Qt("date","D"),Wt("date",9),Ne("D",pt),Ne("DD",pt,vt),Ne("Do",function(T,H){return T?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),w(["D","DD"],2),w("Do",function(T,H){H[2]=de(T.match(pt)[0])});var Rd=ke("Date",!0);Ue("DDD",["DDDD",3],"DDDo","dayOfYear"),Qt("dayOfYear","DDD"),Wt("dayOfYear",4),Ne("DDD",Vi),Ne("DDDD",Mn),w(["DDD","DDDD"],function(T,H,I){I._dayOfYear=de(T)}),Ue("m",["mm",2],0,"minute"),Qt("minute","m"),Wt("minute",14),Ne("m",pt),Ne("mm",pt,vt),w(["m","mm"],4);var ef=ke("Minutes",!1);Ue("s",["ss",2],0,"second"),Qt("second","s"),Wt("second",15),Ne("s",pt),Ne("ss",pt,vt),w(["s","ss"],5);var sn,dc,ih=ke("Seconds",!1);for(Ue("S",0,0,function(){return~~(this.millisecond()/100)}),Ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ue(0,["SSS",3],0,"millisecond"),Ue(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ue(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ue(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ue(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ue(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ue(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Qt("millisecond","ms"),Wt("millisecond",16),Ne("S",Vi,Di),Ne("SS",Vi,vt),Ne("SSS",Vi,Mn),sn="SSSS";sn.length<=9;sn+="S")Ne(sn,Qn);function kn(T,H){H[6]=de(1e3*("0."+T))}for(sn="S";sn.length<=9;sn+="S")w(sn,kn);dc=ke("Milliseconds",!1),Ue("z",0,0,"zoneAbbr"),Ue("zz",0,0,"zoneName");var Be=ve.prototype;function nh(T){return T}Be.add=so,Be.calendar=function Zu(T,H){1===arguments.length&&(arguments[0]?Up(arguments[0])?(T=arguments[0],H=void 0):$u(arguments[0])&&(H=arguments[0],T=void 0):(T=void 0,H=void 0));var I=T||ci(),N=an(I,this).startOf("day"),W=i.calendarFormat(this,N)||"sameElse",se=H&&(ue(H[W])?H[W].call(this,I):H[W]);return this.format(se||this.localeData().calendar(W,this,ci(I)))},Be.clone=function ec(){return new ve(this)},Be.diff=function Nr(T,H,I){var N,W,se;if(!this.isValid())return NaN;if(!(N=an(T,this)).isValid())return NaN;switch(W=6e4*(N.utcOffset()-this.utcOffset()),H=Xi(H)){case"year":se=Cs(this,N)/12;break;case"month":se=Cs(this,N);break;case"quarter":se=Cs(this,N)/3;break;case"second":se=(this-N)/1e3;break;case"minute":se=(this-N)/6e4;break;case"hour":se=(this-N)/36e5;break;case"day":se=(this-N-W)/864e5;break;case"week":se=(this-N-W)/6048e5;break;default:se=this-N}return I?se:te(se)},Be.endOf=function Hn(T){var H,I;if(void 0===(T=Xi(T))||"millisecond"===T||!this.isValid())return this;switch(I=this._isUTC?Ko:Dd,T){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=nc-Yr(H+(this._isUTC?0:this.utcOffset()*As),nc)-1;break;case"minute":H=this._d.valueOf(),H+=As-Yr(H,As)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Yr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Be.format=function Jo(T){T||(T=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=vi(this,T);return this.localeData().postformat(H)},Be.from=function Td(T,H){return this.isValid()&&(Me(T)&&T.isValid()||ci(T).isValid())?dn({to:this,from:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Be.fromNow=function xd(T){return this.from(ci(),T)},Be.to=function tc(T,H){return this.isValid()&&(Me(T)&&T.isValid()||ci(T).isValid())?dn({from:this,to:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Be.toNow=function ic(T){return this.to(ci(),T)},Be.get=function et(T){return ue(this[T=Xi(T)])?this[T]():this},Be.invalidAt=function vs(){return ie(this).overflow},Be.isAfter=function jr(T,H){var I=Me(T)?T:ci(T);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=Xi(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?vi(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ue(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",vi(I,"Z")):vi(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Be.inspect=function Ju(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,N,T="moment",H="";return this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+T+'("]',N=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+N+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Be[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Be.toJSON=function sc(){return this.isValid()?this.toISOString():null},Be.toString=function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Be.unix=function Ed(){return Math.floor(this.valueOf()/1e3)},Be.valueOf=function lo(){return this._d.valueOf()-6e4*(this._offset||0)},Be.creationData=function oc(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Be.eraName=function $p(){var T,H,I,N=this.localeData().eras();for(T=0,H=N.length;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Be.isLocal=function ao(){return!!this.isValid()&&!this._isUTC},Be.isUtcOffset=function ws(){return!!this.isValid()&&this._isUTC},Be.isUtc=Xl,Be.isUTC=Xl,Be.zoneAbbr=function Ld(){return this._isUTC?"UTC":""},Be.zoneName=function uo(){return this._isUTC?"Coordinated Universal Time":""},Be.dates=Re("dates accessor is deprecated. Use date instead.",Rd),Be.months=Re("months accessor is deprecated. Use month instead",Kn),Be.years=Re("years accessor is deprecated. Use year instead",Ha),Be.zone=Re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Yu(T,H){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,H),this):-this.utcOffset()}),Be.isDSTShifted=Re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Kl(){if(!j(this._isDSTShifted))return this._isDSTShifted;var H,T={};return Ee(T,this),(T=yd(T))._a?(H=T._isUTC?le(T._a):ci(T._a),this._isDSTShifted=this.isValid()&&function Nu(T,H,I){var we,N=Math.min(T.length,H.length),W=Math.abs(T.length-H.length),se=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var jt=_e.prototype;function Ya(T,H,I,N){var W=$(),se=le().set(N,H);return W[I](se,T)}function rh(T,H,I){if(z(T)&&(H=T,T=void 0),T=T||"",null!=H)return Ya(T,H,I,"month");var N,W=[];for(N=0;N<12;N++)W[N]=Ya(T,N,I,"month");return W}function Id(T,H,I,N){"boolean"==typeof T?(z(H)&&(I=H,H=void 0),H=H||""):(I=H=T,T=!1,z(H)&&(I=H,H=void 0),H=H||"");var we,W=$(),se=T?W._week.dow:0,st=[];if(null!=I)return Ya(H,(I+se)%7,N,"day");for(we=0;we<7;we++)st[we]=Ya(H,(we+se)%7,N,"day");return st}jt.calendar=function Ct(T,H,I){var N=this._calendar[T]||this._calendar.sameElse;return ue(N)?N.call(H,I):N},jt.longDateFormat=function Ws(T){var H=this._longDateFormat[T],I=this._longDateFormat[T.toUpperCase()];return H||!I?H:(this._longDateFormat[T]=I.match(ni).map(function(N){return"MMMM"===N||"MM"===N||"DD"===N||"dddd"===N?N.slice(1):N}).join(""),this._longDateFormat[T])},jt.invalidDate=function $s(){return this._invalidDate},jt.ordinal=function hs(T){return this._ordinal.replace("%d",T)},jt.preparse=nh,jt.postformat=nh,jt.relativeTime=function ct(T,H,I,N){var W=this._relativeTime[I];return ue(W)?W(T,H,I,N):W.replace(/%d/i,T)},jt.pastFuture=function zi(T,H){var I=this._relativeTime[T>0?"future":"past"];return ue(I)?I(H):I.replace(/%s/i,H)},jt.set=function fe(T){var H,I;for(I in T)P(T,I)&&(ue(H=T[I])?this[I]=H:this["_"+I]=H);this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},jt.eras=function lc(T,H){var I,N,W,se=this._eras||$("en")._eras;for(I=0,N=se.length;I=0)return se[N]},jt.erasConvertYear=function Ku(T,H){var I=T.since<=T.until?1:-1;return void 0===H?i(T.since).year():i(T.since).year()+(H-T.offset)*I},jt.erasAbbrRegex=function Zp(T){return P(this,"_erasAbbrRegex")||el.call(this),T?this._erasAbbrRegex:this._erasRegex},jt.erasNameRegex=function Xu(T){return P(this,"_erasNameRegex")||el.call(this),T?this._erasNameRegex:this._erasRegex},jt.erasNarrowRegex=function Jp(T){return P(this,"_erasNarrowRegex")||el.call(this),T?this._erasNarrowRegex:this._erasRegex},jt.months=function Wl(T,H){return T?M(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||Js).test(H)?"format":"standalone"][T.month()]:M(this._months)?this._months:this._months.standalone},jt.monthsShort=function Qs(T,H){return T?M(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[Js.test(H)?"format":"standalone"][T.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},jt.monthsParse=function Ea(T,H,I){var N,W,se;if(this._monthsParseExact)return Ks.call(this,T,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),N=0;N<12;N++){if(W=le([2e3,N]),I&&!this._longMonthsParse[N]&&(this._longMonthsParse[N]=new RegExp("^"+this.months(W,"").replace(".","")+"$","i"),this._shortMonthsParse[N]=new RegExp("^"+this.monthsShort(W,"").replace(".","")+"$","i")),!I&&!this._monthsParse[N]&&(se="^"+this.months(W,"")+"|^"+this.monthsShort(W,""),this._monthsParse[N]=new RegExp(se.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[N].test(T))return N;if(I&&"MMM"===H&&this._shortMonthsParse[N].test(T))return N;if(!I&&this._monthsParse[N].test(T))return N}},jt.monthsRegex=function mn(T){return this._monthsParseExact?(P(this,"_monthsRegex")||jn.call(this),T?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=md),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},jt.monthsShortRegex=function Lu(T){return this._monthsParseExact?(P(this,"_monthsRegex")||jn.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=ai),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},jt.week=function Iu(T){return Xs(T,this._week.dow,this._week.doy).week},jt.firstDayOfYear=function Pp(){return this._week.doy},jt.firstDayOfWeek=function ur(){return this._week.dow},jt.weekdays=function ra(T,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===T?_d(I,this._week.dow):T?I[T.day()]:I},jt.weekdaysMin=function cn(T){return!0===T?_d(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},jt.weekdaysShort=function Gt(T){return!0===T?_d(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},jt.weekdaysParse=function De(T,H,I){var N,W,se;if(this._weekdaysParseExact)return Ve.call(this,T,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),N=0;N<7;N++){if(W=le([2e3,1]).day(N),I&&!this._fullWeekdaysParse[N]&&(this._fullWeekdaysParse[N]=new RegExp("^"+this.weekdays(W,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[N]=new RegExp("^"+this.weekdaysShort(W,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[N]=new RegExp("^"+this.weekdaysMin(W,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[N]||(se="^"+this.weekdays(W,"")+"|^"+this.weekdaysShort(W,"")+"|^"+this.weekdaysMin(W,""),this._weekdaysParse[N]=new RegExp(se.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[N].test(T))return N;if(I&&"ddd"===H&&this._shortWeekdaysParse[N].test(T))return N;if(I&&"dd"===H&&this._minWeekdaysParse[N].test(T))return N;if(!I&&this._weekdaysParse[N].test(T))return N}},jt.weekdaysRegex=function Ra(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Vp),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},jt.weekdaysShortRegex=function nn(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Uo),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},jt.weekdaysMinRegex=function Ir(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tt),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},jt.isPM=function Xn(T){return"p"===(T+"").toLowerCase().charAt(0)},jt.meridiem=function Vu(T,H,I){return T>11?I?"pm":"PM":I?"am":"AM"},O("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var H=T%10;return T+(1===de(T%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Re("moment.lang is deprecated. Use moment.locale instead.",O),i.langData=Re("moment.langData is deprecated. Use moment.localeData instead.",$);var ir=Math.abs;function ah(T,H,I,N){var W=dn(H,I);return T._milliseconds+=N*W._milliseconds,T._days+=N*W._days,T._months+=N*W._months,T._bubble()}function Ua(T){return T<0?Math.floor(T):Math.ceil(T)}function Ms(T){return 4800*T/146097}function Pi(T){return 146097*T/4800}function br(T){return function(){return this.as(T)}}var rl=br("ms"),rf=br("s"),af=br("m"),sf=br("h"),Bd=br("d"),ho=br("w"),ch=br("M"),Ss=br("Q"),dh=br("y");function zr(T){return function(){return this.isValid()?this._data[T]:NaN}}var uh=zr("milliseconds"),lf=zr("seconds"),cf=zr("minutes"),ua=zr("hours"),po=zr("days"),hh=zr("months"),Vd=zr("years");var Ur=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ph(T,H,I,N,W){return W.relativeTime(H||1,!!I,T,N)}var Fd=Math.abs;function Gr(T){return(T>0)-(T<0)||+T}function jd(){if(!this.isValid())return this.localeData().invalidDate();var N,W,se,we,Lt,di,Gi,nr,T=Fd(this._milliseconds)/1e3,H=Fd(this._days),I=Fd(this._months),st=this.asSeconds();return st?(N=te(T/60),W=te(N/60),T%=60,N%=60,se=te(I/12),I%=12,we=T?T.toFixed(3).replace(/\.?0+$/,""):"",Lt=st<0?"-":"",di=Gr(this._months)!==Gr(st)?"-":"",Gi=Gr(this._days)!==Gr(st)?"-":"",nr=Gr(this._milliseconds)!==Gr(st)?"-":"",Lt+"P"+(se?di+se+"Y":"")+(I?di+I+"M":"")+(H?Gi+H+"D":"")+(W||N||T?"T":"")+(W?nr+W+"H":"")+(N?nr+N+"M":"")+(T?nr+we+"S":"")):"P0D"}var Nt=sa.prototype;return Nt.isValid=function ju(){return this._isValid},Nt.abs=function nf(){var T=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),T.milliseconds=ir(T.milliseconds),T.seconds=ir(T.seconds),T.minutes=ir(T.minutes),T.hours=ir(T.hours),T.months=ir(T.months),T.years=ir(T.years),this},Nt.add=function h_(T,H){return ah(this,T,H,1)},Nt.subtract=function sh(T,H){return ah(this,T,H,-1)},Nt.as=function oh(T){if(!this.isValid())return NaN;var H,I,N=this._milliseconds;if("month"===(T=Xi(T))||"quarter"===T||"year"===T)switch(H=this._days+N/864e5,I=this._months+Ms(H),T){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(Pi(this._months)),T){case"week":return H/7+N/6048e5;case"day":return H+N/864e5;case"hour":return 24*H+N/36e5;case"minute":return 1440*H+N/6e4;case"second":return 86400*H+N/1e3;case"millisecond":return Math.floor(864e5*H)+N;default:throw new Error("Unknown unit "+T)}},Nt.asMilliseconds=rl,Nt.asSeconds=rf,Nt.asMinutes=af,Nt.asHours=sf,Nt.asDays=Bd,Nt.asWeeks=ho,Nt.asMonths=ch,Nt.asQuarters=Ss,Nt.asYears=dh,Nt.valueOf=function lh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN},Nt._bubble=function da(){var W,se,we,st,Lt,T=this._milliseconds,H=this._days,I=this._months,N=this._data;return T>=0&&H>=0&&I>=0||T<=0&&H<=0&&I<=0||(T+=864e5*Ua(Pi(I)+H),H=0,I=0),N.milliseconds=T%1e3,W=te(T/1e3),N.seconds=W%60,se=te(W/60),N.minutes=se%60,we=te(se/60),N.hours=we%24,H+=te(we/24),I+=Lt=te(Ms(H)),H-=Ua(Pi(Lt)),st=te(I/12),I%=12,N.days=H,N.months=I,N.years=st,this},Nt.clone=function uc(){return dn(this)},Nt.get=function Ga(T){return T=Xi(T),this.isValid()?this[T+"s"]():NaN},Nt.milliseconds=uh,Nt.seconds=lf,Nt.minutes=cf,Nt.hours=ua,Nt.days=po,Nt.weeks=function al(){return te(this.days()/7)},Nt.months=hh,Nt.years=Vd,Nt.humanize=function fh(T,H){if(!this.isValid())return this.localeData().invalidDate();var W,se,I=!1,N=ha;return"object"==typeof T&&(H=T,T=!1),"boolean"==typeof T&&(I=T),"object"==typeof H&&(N=Object.assign({},ha,H),null!=H.s&&null==H.ss&&(N.ss=H.s-1)),se=function df(T,H,I,N){var W=dn(T).abs(),se=Ur(W.as("s")),we=Ur(W.as("m")),st=Ur(W.as("h")),Lt=Ur(W.as("d")),di=Ur(W.as("M")),Gi=Ur(W.as("w")),nr=Ur(W.as("y")),pa=se<=I.ss&&["s",se]||se0,pa[4]=N,ph.apply(null,pa)}(this,!I,N,W=this.localeData()),I&&(se=W.pastFuture(+this,se)),W.postformat(se)},Nt.toISOString=jd,Nt.toString=jd,Nt.toJSON=jd,Nt.locale=Qu,Nt.localeData=Sd,Nt.toIsoString=Re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",jd),Nt.lang=Md,Ue("X",0,0,"unix"),Ue("x",0,0,"valueOf"),Ne("x",ea),Ne("X",/[+-]?\d+(\.\d{1,3})?/),w("X",function(T,H,I){I._d=new Date(1e3*parseFloat(T))}),w("x",function(T,H,I){I._d=new Date(de(T))}),i.version="2.29.4",function D(T){C=T}(ci),i.fn=Be,i.min=function wd(){return to("isBefore",[].slice.call(arguments,0))},i.max=function aa(){return to("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function il(T){return ci(1e3*T)},i.months=function xs(T,H){return rh(T,H,"months")},i.isDate=J,i.locale=O,i.invalid=Ae,i.duration=dn,i.isMoment=Me,i.weekdays=function u_(T,H,I){return Id(T,H,I,"weekdays")},i.parseZone=function tf(){return ci.apply(null,arguments).parseZone()},i.localeData=$,i.isDuration=no,i.monthsShort=function za(T,H){return rh(T,H,"monthsShort")},i.weekdaysMin=function Od(T,H,I){return Id(T,H,I,"weekdaysMin")},i.defineLocale=q,i.updateLocale=function B(T,H){if(null!=H){var I,N,W=Qe;null!=Dt[T]&&null!=Dt[T].parentLocale?Dt[T].set(Ce(Dt[T]._config,H)):(null!=(N=Bt(T))&&(W=N._config),H=Ce(W,H),null==N&&(H.abbr=T),(I=new _e(H)).parentLocale=Dt[T],Dt[T]=I),O(T)}else null!=Dt[T]&&(null!=Dt[T].parentLocale?(Dt[T]=Dt[T].parentLocale,T===O()&&O(T)):null!=Dt[T]&&delete Dt[T]);return Dt[T]},i.locales=function ce(){return ze(Dt)},i.weekdaysShort=function nl(T,H,I){return Id(T,H,I,"weekdaysShort")},i.normalizeUnits=Xi,i.relativeTimeRounding=function uf(T){return void 0===T?Ur:"function"==typeof T&&(Ur=T,!0)},i.relativeTimeThreshold=function hc(T,H){return void 0!==ha[T]&&(void 0===H?ha[T]:(ha[T]=H,"s"===T&&(ha.ss=H-1),!0))},i.calendarFormat=function $o(T,H){var I=T.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Be,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9751:(Y,U,x)=>{"use strict";x.d(U,{y:()=>j});var C=x(930),i=x(727),D=x(8822),M=x(9635),S=x(2416),P=x(576),L=x(2806);let j=(()=>{class ne{constructor(re){re&&(this._subscribe=re)}lift(re){const ie=new ne;return ie.source=this,ie.operator=re,ie}subscribe(re,ie,me){const be=function Q(ne){return ne&&ne instanceof C.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(re)?re:new C.Hp(re,ie,me);return(0,L.x)(()=>{const{operator:Ae,source:$e}=this;be.add(Ae?Ae.call(be,$e):$e?this._subscribe(be):this._trySubscribe(be))}),be}_trySubscribe(re){try{return this._subscribe(re)}catch(ie){re.error(ie)}}forEach(re,ie){return new(ie=z(ie))((me,be)=>{const Ae=new C.Hp({next:$e=>{try{re($e)}catch(Ze){be(Ze),Ae.unsubscribe()}},error:be,complete:me});this.subscribe(Ae)})}_subscribe(re){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(re)}[D.L](){return this}pipe(...re){return(0,M.U)(re)(this)}toPromise(re){return new(re=z(re))((ie,me)=>{let be;this.subscribe(Ae=>be=Ae,Ae=>me(Ae),()=>ie(be))})}}return ne.create=le=>new ne(le),ne})();function z(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(Y,U,x)=>{"use strict";x.d(U,{x:()=>L});var C=x(9751),i=x(727);const M=(0,x(3888).d)(z=>function(){z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=x(8737),P=x(2806);let L=(()=>{class z extends C.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new j(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new M}next(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:re}=this;return ne||le?i.Lc:(this.currentObservers=null,re.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(re,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:re}=this;ne?Q.error(le):re&&Q.complete()}asObservable(){const Q=new C.y;return Q.source=this,Q}}return z.create=(J,Q)=>new j(J,Q),z})();class j extends L{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(Y,U,x)=>{"use strict";x.d(U,{Hp:()=>me,Lv:()=>ne});var C=x(576),i=x(727),D=x(2416),M=x(7849),S=x(5032);const P=z("C",void 0,void 0);function z(Ee,ve,Me){return{kind:Ee,value:ve,error:Me}}var J=x(3410),Q=x(2806);class ne extends i.w0{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,i.Nn)(ve)&&ve.add(this)):this.destination=Ze}static create(ve,Me,lt){return new me(ve,Me,lt)}next(ve){this.isStopped?$e(function j(Ee){return z("N",Ee,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?$e(function L(Ee){return z("E",void 0,Ee)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?$e(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function re(Ee,ve){return le.call(Ee,ve)}class ie{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:Me}=this;if(Me.next)try{Me.next(ve)}catch(lt){be(lt)}}error(ve){const{partialObserver:Me}=this;if(Me.error)try{Me.error(ve)}catch(lt){be(lt)}else be(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(Me){be(Me)}}}class me extends ne{constructor(ve,Me,lt){let Re;if(super(),(0,C.m)(ve)||!ve)Re={next:ve??void 0,error:Me??void 0,complete:lt??void 0};else{let Oe;this&&D.v.useDeprecatedNextContext?(Oe=Object.create(ve),Oe.unsubscribe=()=>this.unsubscribe(),Re={next:ve.next&&re(ve.next,Oe),error:ve.error&&re(ve.error,Oe),complete:ve.complete&&re(ve.complete,Oe)}):Re=ve}this.destination=new ie(Re)}}function be(Ee){D.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(Ee):(0,M.h)(Ee)}function $e(Ee,ve){const{onStoppedNotification:Me}=D.v;Me&&J.z.setTimeout(()=>Me(Ee,ve))}const Ze={closed:!0,next:S.Z,error:function Ae(Ee){throw Ee},complete:S.Z}},727:(Y,U,x)=>{"use strict";x.d(U,{Lc:()=>P,w0:()=>S,Nn:()=>L});var C=x(576);const D=(0,x(3888).d)(z=>function(Q){z(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var M=x(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const re of Q)re.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,C.m)(ne))try{ne()}catch(re){J=re instanceof D?re.errors:[re]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const re of le)try{j(re)}catch(ie){J=J??[],ie instanceof D?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new D(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)j(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,M.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,M.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const z=new S;return z.closed=!0,z})();const P=S.EMPTY;function L(z){return z instanceof S||z&&"closed"in z&&(0,C.m)(z.remove)&&(0,C.m)(z.add)&&(0,C.m)(z.unsubscribe)}function j(z){(0,C.m)(z)?z():z.unsubscribe()}},2416:(Y,U,x)=>{"use strict";x.d(U,{v:()=>C});const C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,U,x)=>{"use strict";x.d(U,{a:()=>J});var C=x(9751),i=x(4742),D=x(2076),M=x(4671),S=x(3268),P=x(3269),L=x(1810),j=x(5403),z=x(9672);function J(...le){const re=(0,P.yG)(le),ie=(0,P.jO)(le),{args:me,keys:be}=(0,i.D)(le);if(0===me.length)return(0,D.D)([],re);const Ae=new C.y(function Q(le,re,ie=M.y){return me=>{ne(re,()=>{const{length:be}=le,Ae=new Array(be);let $e=be,Ze=be;for(let Ee=0;Ee{const ve=(0,D.D)(le[Ee],re);let Me=!1;ve.subscribe((0,j.x)(me,lt=>{Ae[Ee]=lt,Me||(Me=!0,Ze--),Ze||me.next(ie(Ae.slice()))},()=>{--$e||me.complete()}))},me)},me)}}(me,re,be?$e=>(0,L.n)(be,$e):M.y));return ie?Ae.pipe((0,S.Z)(ie)):Ae}function ne(le,re,ie){le?(0,z.f)(ie,le,re):re()}},7272:(Y,U,x)=>{"use strict";x.d(U,{z:()=>S});var C=x(8189),D=x(3269),M=x(2076);function S(...P){return function i(){return(0,C.J)(1)}()((0,M.D)(P,(0,D.yG)(P)))}},515:(Y,U,x)=>{"use strict";x.d(U,{E:()=>i});const i=new(x(9751).y)(S=>S.complete())},2076:(Y,U,x)=>{"use strict";x.d(U,{D:()=>lt});var C=x(8421),i=x(9672),D=x(4482),M=x(5403);function S(Re,Oe=0){return(0,D.e)((Le,ue)=>{Le.subscribe((0,M.x)(ue,fe=>(0,i.f)(ue,Re,()=>ue.next(fe),Oe),()=>(0,i.f)(ue,Re,()=>ue.complete(),Oe),fe=>(0,i.f)(ue,Re,()=>ue.error(fe),Oe)))})}function P(Re,Oe=0){return(0,D.e)((Le,ue)=>{ue.add(Re.schedule(()=>Le.subscribe(ue),Oe))})}var z=x(9751),Q=x(2202),ne=x(576);function re(Re,Oe){if(!Re)throw new Error("Iterable cannot be null");return new z.y(Le=>{(0,i.f)(Le,Oe,()=>{const ue=Re[Symbol.asyncIterator]();(0,i.f)(Le,Oe,()=>{ue.next().then(fe=>{fe.done?Le.complete():Le.next(fe.value)})},0,!0)})})}var ie=x(3670),me=x(8239),be=x(1144),Ae=x(6495),$e=x(2206),Ze=x(4532),Ee=x(3260);function lt(Re,Oe){return Oe?function Me(Re,Oe){if(null!=Re){if((0,ie.c)(Re))return function L(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,be.z)(Re))return function J(Re,Oe){return new z.y(Le=>{let ue=0;return Oe.schedule(function(){ue===Re.length?Le.complete():(Le.next(Re[ue++]),Le.closed||this.schedule())})})}(Re,Oe);if((0,me.t)(Re))return function j(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,$e.D)(Re))return re(Re,Oe);if((0,Ae.T)(Re))return function le(Re,Oe){return new z.y(Le=>{let ue;return(0,i.f)(Le,Oe,()=>{ue=Re[Q.h](),(0,i.f)(Le,Oe,()=>{let fe,Ce;try{({value:fe,done:Ce}=ue.next())}catch(_e){return void Le.error(_e)}Ce?Le.complete():Le.next(fe)},0,!0)}),()=>(0,ne.m)(ue?.return)&&ue.return()})}(Re,Oe);if((0,Ee.L)(Re))return function ve(Re,Oe){return re((0,Ee.Q)(Re),Oe)}(Re,Oe)}throw(0,Ze.z)(Re)}(Re,Oe):(0,C.Xf)(Re)}},8421:(Y,U,x)=>{"use strict";x.d(U,{Xf:()=>le});var C=x(655),i=x(1144),D=x(8239),M=x(9751),S=x(3670),P=x(2206),L=x(4532),j=x(6495),z=x(3260),J=x(576),Q=x(7849),ne=x(8822);function le(Ee){if(Ee instanceof M.y)return Ee;if(null!=Ee){if((0,S.c)(Ee))return function re(Ee){return new M.y(ve=>{const Me=Ee[ne.L]();if((0,J.m)(Me.subscribe))return Me.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ee);if((0,i.z)(Ee))return function ie(Ee){return new M.y(ve=>{for(let Me=0;Me{Ee.then(Me=>{ve.closed||(ve.next(Me),ve.complete())},Me=>ve.error(Me)).then(null,Q.h)})}(Ee);if((0,P.D)(Ee))return Ae(Ee);if((0,j.T)(Ee))return function be(Ee){return new M.y(ve=>{for(const Me of Ee)if(ve.next(Me),ve.closed)return;ve.complete()})}(Ee);if((0,z.L)(Ee))return function $e(Ee){return Ae((0,z.Q)(Ee))}(Ee)}throw(0,L.z)(Ee)}function Ae(Ee){return new M.y(ve=>{(function Ze(Ee,ve){var Me,lt,Re,Oe;return(0,C.mG)(this,void 0,void 0,function*(){try{for(Me=(0,C.KL)(Ee);!(lt=yield Me.next()).done;)if(ve.next(lt.value),ve.closed)return}catch(Le){Re={error:Le}}finally{try{lt&&!lt.done&&(Oe=Me.return)&&(yield Oe.call(Me))}finally{if(Re)throw Re.error}}ve.complete()})})(Ee,ve).catch(Me=>ve.error(Me))})}},6451:(Y,U,x)=>{"use strict";x.d(U,{T:()=>P});var C=x(8189),i=x(8421),D=x(515),M=x(3269),S=x(2076);function P(...L){const j=(0,M.yG)(L),z=(0,M._6)(L,1/0),J=L;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,C.J)(z)((0,S.D)(J,j)):D.E}},9646:(Y,U,x)=>{"use strict";x.d(U,{of:()=>D});var C=x(3269),i=x(2076);function D(...M){const S=(0,C.yG)(M);return(0,i.D)(M,S)}},102:(Y,U,x)=>{"use strict";x.d(U,{S:()=>P});var C=x(9751),i=x(8421);const{isArray:D}=Array;var S=x(5403);function P(...j){return 1===(j=function M(j){return 1===j.length&&D(j[0])?j[0]:j}(j)).length?(0,i.Xf)(j[0]):new C.y(function L(j){return z=>{let J=[];for(let Q=0;J&&!z.closed&&Q{if(J){for(let le=0;le{"use strict";x.d(U,{_:()=>D});var C=x(9751),i=x(576);function D(M,S){const P=(0,i.m)(M)?M:()=>M,L=j=>j.error(P());return new C.y(S?j=>S.schedule(L,0,j):L)}},2805:(Y,U,x)=>{"use strict";x.d(U,{H:()=>S});var C=x(9751),i=x(4986),D=x(3532),M=x(1165);function S(P=0,L,j=i.P){let z=-1;return null!=L&&((0,D.K)(L)?j=L:z=L),new C.y(J=>{let Q=(0,M.q)(P)?+P-j.now():P;Q<0&&(Q=0);let ne=0;return j.schedule(function(){J.closed||(J.next(ne++),0<=z?this.schedule(void 0,z):J.complete())},Q)})}},5403:(Y,U,x)=>{"use strict";x.d(U,{x:()=>i});var C=x(930);function i(M,S,P,L,j){return new D(M,S,P,L,j)}class D extends C.Lv{constructor(S,P,L,j,z,J){super(S),this.onFinalize=z,this.shouldUnsubscribe=J,this._next=P?function(Q){try{P(Q)}catch(ne){S.error(ne)}}:super._next,this._error=j?function(Q){try{j(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(Y,U,x)=>{"use strict";x.d(U,{K:()=>M});var C=x(8421),i=x(5403),D=x(4482);function M(S){return(0,D.e)((P,L)=>{let J,j=null,z=!1;j=P.subscribe((0,i.x)(L,void 0,void 0,Q=>{J=(0,C.Xf)(S(Q,M(S)(P))),j?(j.unsubscribe(),j=null,J.subscribe(L)):z=!0})),z&&(j.unsubscribe(),j=null,J.subscribe(L))})}},4351:(Y,U,x)=>{"use strict";x.d(U,{b:()=>D});var C=x(5577),i=x(576);function D(M,S){return(0,i.m)(S)?(0,C.z)(M,S,1):(0,C.z)(M,1)}},8372:(Y,U,x)=>{"use strict";x.d(U,{b:()=>M});var C=x(4986),i=x(4482),D=x(5403);function M(S,P=C.z){return(0,i.e)((L,j)=>{let z=null,J=null,Q=null;const ne=()=>{if(z){z.unsubscribe(),z=null;const re=J;J=null,j.next(re)}};function le(){const re=Q+S,ie=P.now();if(ie{J=re,Q=P.now(),z||(z=P.schedule(le,S),j.add(z))},()=>{ne(),j.complete()},void 0,()=>{J=z=null}))})}},6590:(Y,U,x)=>{"use strict";x.d(U,{d:()=>D});var C=x(4482),i=x(5403);function D(M){return(0,C.e)((S,P)=>{let L=!1;S.subscribe((0,i.x)(P,j=>{L=!0,P.next(j)},()=>{L||P.next(M),P.complete()}))})}},1005:(Y,U,x)=>{"use strict";x.d(U,{g:()=>ne});var C=x(4986),i=x(7272),D=x(5698),M=x(4482),S=x(5403),P=x(5032),j=x(9718),z=x(5577);function J(le,re){return re?ie=>(0,i.z)(re.pipe((0,D.q)(1),function L(){return(0,M.e)((le,re)=>{le.subscribe((0,S.x)(re,P.Z))})}()),ie.pipe(J(le))):(0,z.z)((ie,me)=>le(ie,me).pipe((0,D.q)(1),(0,j.h)(ie)))}var Q=x(2805);function ne(le,re=C.z){const ie=(0,Q.H)(le,re);return J(()=>ie)}},9300:(Y,U,x)=>{"use strict";x.d(U,{h:()=>D});var C=x(4482),i=x(5403);function D(M,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,z=>M.call(S,z,j++)&&L.next(z)))})}},590:(Y,U,x)=>{"use strict";x.d(U,{P:()=>L});var C=x(6805),i=x(9300),D=x(5698),M=x(6590),S=x(8068),P=x(4671);function L(j,z){const J=arguments.length>=2;return Q=>Q.pipe(j?(0,i.h)((ne,le)=>j(ne,le,Q)):P.y,(0,D.q)(1),J?(0,M.d)(z):(0,S.T)(()=>new C.K))}},4004:(Y,U,x)=>{"use strict";x.d(U,{U:()=>D});var C=x(4482),i=x(5403);function D(M,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,z=>{L.next(M.call(S,z,j++))}))})}},9718:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});var C=x(4004);function i(D){return(0,C.U)(()=>D)}},8189:(Y,U,x)=>{"use strict";x.d(U,{J:()=>D});var C=x(5577),i=x(4671);function D(M=1/0){return(0,C.z)(i.y,M)}},5577:(Y,U,x)=>{"use strict";x.d(U,{z:()=>j});var C=x(4004),i=x(8421),D=x(4482),M=x(9672),S=x(5403),L=x(576);function j(z,J,Q=1/0){return(0,L.m)(J)?j((ne,le)=>(0,C.U)((re,ie)=>J(ne,re,le,ie))((0,i.Xf)(z(ne,le))),Q):("number"==typeof J&&(Q=J),(0,D.e)((ne,le)=>function P(z,J,Q,ne,le,re,ie,me){const be=[];let Ae=0,$e=0,Ze=!1;const Ee=()=>{Ze&&!be.length&&!Ae&&J.complete()},ve=lt=>Ae{re&&J.next(lt),Ae++;let Re=!1;(0,i.Xf)(Q(lt,$e++)).subscribe((0,S.x)(J,Oe=>{le?.(Oe),re?ve(Oe):J.next(Oe)},()=>{Re=!0},void 0,()=>{if(Re)try{for(Ae--;be.length&&AeMe(Oe)):Me(Oe)}Ee()}catch(Oe){J.error(Oe)}}))};return z.subscribe((0,S.x)(J,ve,()=>{Ze=!0,Ee()})),()=>{me?.()}}(ne,le,z,Q)))}},3099:(Y,U,x)=>{"use strict";x.d(U,{B:()=>S});var C=x(8421),i=x(7579),D=x(930),M=x(4482);function S(L={}){const{connector:j=(()=>new i.x),resetOnError:z=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=L;return ne=>{let le,re,ie,me=0,be=!1,Ae=!1;const $e=()=>{re?.unsubscribe(),re=void 0},Ze=()=>{$e(),le=ie=void 0,be=Ae=!1},Ee=()=>{const ve=le;Ze(),ve?.unsubscribe()};return(0,M.e)((ve,Me)=>{me++,!Ae&&!be&&$e();const lt=ie=ie??j();Me.add(()=>{me--,0===me&&!Ae&&!be&&(re=P(Ee,Q))}),lt.subscribe(Me),!le&&me>0&&(le=new D.Hp({next:Re=>lt.next(Re),error:Re=>{Ae=!0,$e(),re=P(Ze,z,Re),lt.error(Re)},complete:()=>{be=!0,$e(),re=P(Ze,J),lt.complete()}}),(0,C.Xf)(ve).subscribe(le))})(ne)}}function P(L,j,...z){if(!0===j)return void L();if(!1===j)return;const J=new D.Hp({next:()=>{J.unsubscribe(),L()}});return j(...z).subscribe(J)}},3900:(Y,U,x)=>{"use strict";x.d(U,{w:()=>M});var C=x(8421),i=x(4482),D=x(5403);function M(S,P){return(0,i.e)((L,j)=>{let z=null,J=0,Q=!1;const ne=()=>Q&&!z&&j.complete();L.subscribe((0,D.x)(j,le=>{z?.unsubscribe();let re=0;const ie=J++;(0,C.Xf)(S(le,ie)).subscribe(z=(0,D.x)(j,me=>j.next(P?P(le,me,ie,re++):me),()=>{z=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(Y,U,x)=>{"use strict";x.d(U,{q:()=>M});var C=x(515),i=x(4482),D=x(5403);function M(S){return S<=0?()=>C.E:(0,i.e)((P,L)=>{let j=0;P.subscribe((0,D.x)(L,z=>{++j<=S&&(L.next(z),S<=j&&L.complete())}))})}},8505:(Y,U,x)=>{"use strict";x.d(U,{b:()=>S});var C=x(576),i=x(4482),D=x(5403),M=x(4671);function S(P,L,j){const z=(0,C.m)(P)||L||j?{next:P,error:L,complete:j}:P;return z?(0,i.e)((J,Q)=>{var ne;null===(ne=z.subscribe)||void 0===ne||ne.call(z);let le=!0;J.subscribe((0,D.x)(Q,re=>{var ie;null===(ie=z.next)||void 0===ie||ie.call(z,re),Q.next(re)},()=>{var re;le=!1,null===(re=z.complete)||void 0===re||re.call(z),Q.complete()},re=>{var ie;le=!1,null===(ie=z.error)||void 0===ie||ie.call(z,re),Q.error(re)},()=>{var re,ie;le&&(null===(re=z.unsubscribe)||void 0===re||re.call(z)),null===(ie=z.finalize)||void 0===ie||ie.call(z)}))}):M.y}},8068:(Y,U,x)=>{"use strict";x.d(U,{T:()=>M});var C=x(6805),i=x(4482),D=x(5403);function M(P=S){return(0,i.e)((L,j)=>{let z=!1;L.subscribe((0,D.x)(j,J=>{z=!0,j.next(J)},()=>z?j.complete():j.error(P())))})}function S(){return new C.K}},7414:(Y,U,x)=>{"use strict";x.d(U,{V:()=>z});var C=x(4986),i=x(1165),D=x(4482),M=x(8421),S=x(3888),P=x(5403),L=x(9672);const j=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function z(Q,ne){const{first:le,each:re,with:ie=J,scheduler:me=ne??C.z,meta:be=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==re)throw new TypeError("No timeout provided.");return(0,D.e)((Ae,$e)=>{let Ze,Ee,ve=null,Me=0;const lt=Re=>{Ee=(0,L.f)($e,me,()=>{try{Ze.unsubscribe(),(0,M.Xf)(ie({meta:be,lastValue:ve,seen:Me})).subscribe($e)}catch(Oe){$e.error(Oe)}},Re)};Ze=Ae.subscribe((0,P.x)($e,Re=>{Ee?.unsubscribe(),Me++,$e.next(ve=Re),re>0&<(re)},void 0,void 0,()=>{Ee?.closed||Ee?.unsubscribe(),ve=null})),!Me&<(null!=le?"number"==typeof le?le:+le-me.now():re)})}function J(Q){throw new j(Q)}},4408:(Y,U,x)=>{"use strict";x.d(U,{o:()=>S});var C=x(727);class i extends C.w0{constructor(L,j){super()}schedule(L,j=0){return this}}const D={setInterval(P,L,...j){const{delegate:z}=D;return z?.setInterval?z.setInterval(P,L,...j):setInterval(P,L,...j)},clearInterval(P){const{delegate:L}=D;return(L?.clearInterval||clearInterval)(P)},delegate:void 0};var M=x(8737);class S extends i{constructor(L,j){super(L,j),this.scheduler=L,this.work=j,this.pending=!1}schedule(L,j=0){if(this.closed)return this;this.state=L;const z=this.id,J=this.scheduler;return null!=z&&(this.id=this.recycleAsyncId(J,z,j)),this.pending=!0,this.delay=j,this.id=this.id||this.requestAsyncId(J,this.id,j),this}requestAsyncId(L,j,z=0){return D.setInterval(L.flush.bind(L,this),z)}recycleAsyncId(L,j,z=0){if(null!=z&&this.delay===z&&!1===this.pending)return j;D.clearInterval(j)}execute(L,j){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const z=this._execute(L,j);if(z)return z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,j){let J,z=!1;try{this.work(L)}catch(Q){z=!0,J=Q||new Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:L,scheduler:j}=this,{actions:z}=j;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(z,this),null!=L&&(this.id=this.recycleAsyncId(j,L,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,U,x)=>{"use strict";x.d(U,{v:()=>D});var C=x(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,L){return new this.schedulerActionCtor(this,S).schedule(L,P)}}i.now=C.l.now;class D extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let L;this._active=!0;do{if(L=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,L){for(;S=P.shift();)S.unsubscribe();throw L}}}},4986:(Y,U,x)=>{"use strict";x.d(U,{P:()=>M,z:()=>D});var C=x(4408);const D=new(x(7565).v)(C.o),M=D},6063:(Y,U,x)=>{"use strict";x.d(U,{l:()=>C});const C={now:()=>(C.delegate||Date).now(),delegate:void 0}},3410:(Y,U,x)=>{"use strict";x.d(U,{z:()=>C});const C={setTimeout(i,D,...M){const{delegate:S}=C;return S?.setTimeout?S.setTimeout(i,D,...M):setTimeout(i,D,...M)},clearTimeout(i){const{delegate:D}=C;return(D?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});const i=function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,U,x)=>{"use strict";x.d(U,{L:()=>C});const C="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});const i=(0,x(3888).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,U,x)=>{"use strict";x.d(U,{_6:()=>P,jO:()=>M,yG:()=>S});var C=x(576),i=x(3532);function D(L){return L[L.length-1]}function M(L){return(0,C.m)(D(L))?L.pop():void 0}function S(L){return(0,i.K)(D(L))?L.pop():void 0}function P(L,j){return"number"==typeof D(L)?L.pop():j}},4742:(Y,U,x)=>{"use strict";x.d(U,{D:()=>S});const{isArray:C}=Array,{getPrototypeOf:i,prototype:D,keys:M}=Object;function S(L){if(1===L.length){const j=L[0];if(C(j))return{args:j,keys:null};if(function P(L){return L&&"object"==typeof L&&i(L)===D}(j)){const z=M(j);return{args:z.map(J=>j[J]),keys:z}}}return{args:L,keys:null}}},8737:(Y,U,x)=>{"use strict";function C(i,D){if(i){const M=i.indexOf(D);0<=M&&i.splice(M,1)}}x.d(U,{P:()=>C})},3888:(Y,U,x)=>{"use strict";function C(i){const M=i(S=>{Error.call(S),S.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}x.d(U,{d:()=>C})},1810:(Y,U,x)=>{"use strict";function C(i,D){return i.reduce((M,S,P)=>(M[S]=D[P],M),{})}x.d(U,{n:()=>C})},2806:(Y,U,x)=>{"use strict";x.d(U,{O:()=>M,x:()=>D});var C=x(2416);let i=null;function D(S){if(C.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:L,error:j}=i;if(i=null,L)throw j}}else S()}function M(S){C.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(Y,U,x)=>{"use strict";function C(i,D,M,S=0,P=!1){const L=D.schedule(function(){M(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(L),!P)return L}x.d(U,{f:()=>C})},4671:(Y,U,x)=>{"use strict";function C(i){return i}x.d(U,{y:()=>C})},1144:(Y,U,x)=>{"use strict";x.d(U,{z:()=>C});const C=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(Y,U,x)=>{"use strict";x.d(U,{D:()=>i});var C=x(576);function i(D){return Symbol.asyncIterator&&(0,C.m)(D?.[Symbol.asyncIterator])}},1165:(Y,U,x)=>{"use strict";function C(i){return i instanceof Date&&!isNaN(i)}x.d(U,{q:()=>C})},576:(Y,U,x)=>{"use strict";function C(i){return"function"==typeof i}x.d(U,{m:()=>C})},3670:(Y,U,x)=>{"use strict";x.d(U,{c:()=>D});var C=x(8822),i=x(576);function D(M){return(0,i.m)(M[C.L])}},6495:(Y,U,x)=>{"use strict";x.d(U,{T:()=>D});var C=x(2202),i=x(576);function D(M){return(0,i.m)(M?.[C.h])}},8239:(Y,U,x)=>{"use strict";x.d(U,{t:()=>i});var C=x(576);function i(D){return(0,C.m)(D?.then)}},3260:(Y,U,x)=>{"use strict";x.d(U,{L:()=>M,Q:()=>D});var C=x(655),i=x(576);function D(S){return(0,C.FC)(this,arguments,function*(){const L=S.getReader();try{for(;;){const{value:j,done:z}=yield(0,C.qq)(L.read());if(z)return yield(0,C.qq)(void 0);yield yield(0,C.qq)(j)}}finally{L.releaseLock()}})}function M(S){return(0,i.m)(S?.getReader)}},3532:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});var C=x(576);function i(D){return D&&(0,C.m)(D.schedule)}},4482:(Y,U,x)=>{"use strict";x.d(U,{A:()=>i,e:()=>D});var C=x(576);function i(M){return(0,C.m)(M?.lift)}function D(M){return S=>{if(i(S))return S.lift(function(P){try{return M(P,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,U,x)=>{"use strict";x.d(U,{Z:()=>M});var C=x(4004);const{isArray:i}=Array;function M(S){return(0,C.U)(P=>function D(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(Y,U,x)=>{"use strict";function C(){}x.d(U,{Z:()=>C})},9635:(Y,U,x)=>{"use strict";x.d(U,{U:()=>D,z:()=>i});var C=x(4671);function i(...M){return D(M)}function D(M){return 0===M.length?C.y:1===M.length?M[0]:function(P){return M.reduce((L,j)=>j(L),P)}}},7849:(Y,U,x)=>{"use strict";x.d(U,{h:()=>D});var C=x(2416),i=x(3410);function D(M){i.z.setTimeout(()=>{const{onUnhandledError:S}=C.v;if(!S)throw M;S(M)})}},4532:(Y,U,x)=>{"use strict";function C(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}x.d(U,{z:()=>C})},6700:(Y,U,x)=>{var C={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(M){var S=D(M);return x(S)}function D(M){if(!x.o(C,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return C[M]}i.keys=function(){return Object.keys(C)},i.resolve=D,Y.exports=i,i.id=6700},655:(Y,U,x)=>{"use strict";function j(ue,fe,Ce,_e){return new(Ce||(Ce=Promise))(function(je,Ct){function It(Ki){try{Je(_e.next(Ki))}catch(_n){Ct(_n)}}function ni(Ki){try{Je(_e.throw(Ki))}catch(_n){Ct(_n)}}function Je(Ki){Ki.done?je(Ki.value):function ze(je){return je instanceof Ce?je:new Ce(function(Ct){Ct(je)})}(Ki.value).then(It,ni)}Je((_e=_e.apply(ue,fe||[])).next())})}function be(ue){return this instanceof be?(this.v=ue,this):new be(ue)}function Ae(ue,fe,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,_e=Ce.apply(ue,fe||[]),je=[];return ze={},Ct("next"),Ct("throw"),Ct("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function Ct(Ue){_e[Ue]&&(ze[Ue]=function(ri){return new Promise(function(lr,vi){je.push([Ue,ri,lr,vi])>1||It(Ue,ri)})})}function It(Ue,ri){try{!function ni(Ue){Ue.value instanceof be?Promise.resolve(Ue.value.v).then(Je,Ki):_n(je[0][2],Ue)}(_e[Ue](ri))}catch(lr){_n(je[0][3],lr)}}function Je(Ue){It("next",Ue)}function Ki(Ue){It("throw",Ue)}function _n(Ue,ri){Ue(ri),je.shift(),je.length&&It(je[0][0],je[0][1])}}function Ze(ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,fe=ue[Symbol.asyncIterator];return fe?fe.call(ue):(ue=function ne(ue){var fe="function"==typeof Symbol&&Symbol.iterator,Ce=fe&&ue[fe],_e=0;if(Ce)return Ce.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&_e>=ue.length&&(ue=void 0),{value:ue&&ue[_e++],done:!ue}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ue),Ce={},_e("next"),_e("throw"),_e("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function _e(je){Ce[je]=ue[je]&&function(Ct){return new Promise(function(It,ni){!function ze(je,Ct,It,ni){Promise.resolve(ni).then(function(Je){je({value:Je,done:It})},Ct)}(It,ni,(Ct=ue[je](Ct)).done,Ct.value)})}}}x.d(U,{FC:()=>Ae,KL:()=>Ze,mG:()=>j,qq:()=>be})},6895:(Y,U,x)=>{"use strict";x.d(U,{Do:()=>Ze,ED:()=>ms,EM:()=>fr,HT:()=>S,JF:()=>Bt,K0:()=>L,Mx:()=>md,NF:()=>qo,O5:()=>mn,Ov:()=>Ou,PC:()=>Lr,RF:()=>ka,S$:()=>be,V_:()=>J,Ye:()=>Ee,b0:()=>$e,bD:()=>yi,ez:()=>pr,mk:()=>Wl,n9:()=>Nn,p6:()=>ke,q:()=>D,sg:()=>Kn,tP:()=>Iu,uU:()=>Uo,w_:()=>P});var C=x(4650);let i=null;function D(){return i}function S(O){i||(i=O)}class P{}const L=new C.OlP("DocumentToken");let j=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return function z(){return(0,C.LFG)(Q)}()},providedIn:"platform"}),O})();const J=new C.OlP("Location Initialized");let Q=(()=>{class O extends j{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(B){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("popstate",B,!1),()=>$.removeEventListener("popstate",B)}onHashChange(B){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("hashchange",B,!1),()=>$.removeEventListener("hashchange",B)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(B){this.location.pathname=B}pushState(B,$,ce){ne()?this._history.pushState(B,$,ce):this.location.hash=ce}replaceState(B,$,ce){ne()?this._history.replaceState(B,$,ce):this.location.hash=ce}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(L))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function le(){return new Q((0,C.LFG)(L))}()},providedIn:"platform"}),O})();function ne(){return!!window.history.pushState}function re(O,q){if(0==O.length)return q;if(0==q.length)return O;let B=0;return O.endsWith("/")&&B++,q.startsWith("/")&&B++,2==B?O+q.substring(1):1==B?O+q:O+"/"+q}function ie(O){const q=O.match(/#|\?|$/),B=q&&q.index||O.length;return O.slice(0,B-("/"===O[B-1]?1:0))+O.slice(B)}function me(O){return O&&"?"!==O[0]?"?"+O:O}let be=(()=>{class O{historyGo(B){throw new Error("Not implemented")}}return O.\u0275fac=function(B){return new(B||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return(0,C.f3M)($e)},providedIn:"root"}),O})();const Ae=new C.OlP("appBaseHref");let $e=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=$??this._platformLocation.getBaseHrefFromDOM()??(0,C.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return re(this._baseHref,B)}path(B=!1){const $=this._platformLocation.pathname+me(this._platformLocation.search),ce=this._platformLocation.hash;return ce&&B?`${$}${ce}`:$}pushState(B,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),Ze=(()=>{class O extends be{constructor(B,$){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=$&&(this._baseHref=$)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let $=this._platformLocation.hash;return null==$&&($="#"),$.length>0?$.substring(1):$}prepareExternalUrl(B){const $=re(this._baseHref,B);return $.length>0?"#"+$:$}pushState(B,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.pushState(B,$,ge)}replaceState(B,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.replaceState(B,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){this._platformLocation.historyGo?.(B)}}return O.\u0275fac=function(B){return new(B||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac}),O})(),Ee=(()=>{class O{constructor(B){this._subject=new C.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const $=this._locationStrategy.getBaseHref();this._baseHref=ie(lt($)),this._locationStrategy.onPopState(ce=>{this._subject.emit({url:this.path(!0),pop:!0,state:ce.state,type:ce.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,$=""){return this.path()==this.normalize(B+me($))}normalize(B){return O.stripTrailingSlash(function Me(O,q){return O&&q.startsWith(O)?q.substring(O.length):q}(this._baseHref,lt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,$="",ce=null){this._locationStrategy.pushState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}replaceState(B,$="",ce=null){this._locationStrategy.replaceState(ce,"",B,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+me($)),ce)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){this._locationStrategy.historyGo?.(B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe($=>{this._notifyUrlChangeListeners($.url,$.state)})),()=>{const $=this._urlChangeListeners.indexOf(B);this._urlChangeListeners.splice($,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",$){this._urlChangeListeners.forEach(ce=>ce(B,$))}subscribe(B,$,ce){return this._subject.subscribe({next:B,error:$,complete:ce})}}return O.normalizeQueryParams=me,O.joinWithSlash=re,O.stripTrailingSlash=ie,O.\u0275fac=function(B){return new(B||O)(C.LFG(be))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function ve(){return new Ee((0,C.LFG)(be))}()},providedIn:"root"}),O})();function lt(O){return O.replace(/\/index.html$/,"")}var ue=(()=>((ue=ue||{})[ue.Format=0]="Format",ue[ue.Standalone=1]="Standalone",ue))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function Ue(O,q){return zi((0,C.cg1)(O)[C.wAp.DateFormat],q)}function ri(O,q){return zi((0,C.cg1)(O)[C.wAp.TimeFormat],q)}function lr(O,q){return zi((0,C.cg1)(O)[C.wAp.DateTimeFormat],q)}function vi(O,q){const B=(0,C.cg1)(O),$=B[C.wAp.NumberSymbols][q];if(typeof $>"u"){if(q===_e.CurrencyDecimal)return B[C.wAp.NumberSymbols][_e.Decimal];if(q===_e.CurrencyGroup)return B[C.wAp.NumberSymbols][_e.Group]}return $}function kr(O){if(!O[C.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[C.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zi(O,q){for(let B=q;B>-1;B--)if(typeof O[B]<"u")return O[B];throw new Error("Locale data API: locale data undefined")}function cr(O){const[q,B]=O.split(":");return{hours:+q,minutes:+B}}const Jn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wt={},Se=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.ShortGMT=1]="ShortGMT",ae[ae.Long=2]="Long",ae[ae.Extended=3]="Extended",ae))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),de=(()=>((de=de||{})[de.DayPeriods=0]="DayPeriods",de[de.Days=1]="Days",de[de.Months=2]="Months",de[de.Eras=3]="Eras",de))();function ke(O,q,B,$){let ce=function Ui(O){if(Ei(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[ce,ye=1,ge=1]=O.split("-").map(tt=>+tt);return dt(ce,ye-1,ge)}const B=parseFloat(O);if(!isNaN(O-B))return new Date(B);let $;if($=O.match(Jn))return function Ne(O){const q=new Date(0);let B=0,$=0;const ce=O[8]?q.setUTCFullYear:q.setFullYear,ye=O[8]?q.setUTCHours:q.setHours;O[9]&&(B=Number(O[9]+O[10]),$=Number(O[9]+O[11])),ce.call(q,Number(O[1]),Number(O[2])-1,Number(O[3]));const ge=Number(O[4]||0)-B,tt=Number(O[5]||0)-$,pi=Number(O[6]||0),Kt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return ye.call(q,ge,tt,pi,Kt),q}($)}const q=new Date(O);if(!Ei(q))throw new Error(`Unable to convert "${O}" into a date`);return q}(O);q=At(B,q)||q;let tt,ge=[];for(;q;){if(tt=Se.exec(q),!tt){ge.push(q);break}{ge=ge.concat(tt.slice(1));const Zt=ge.pop();if(!Zt)break;q=Zt}}let pi=ce.getTimezoneOffset();$&&(pi=ps($,pi),ce=function Ni(O,q,B){const $=B?-1:1,ce=O.getTimezoneOffset();return function ti(O,q){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+q),O}(O,$*(ps(q,ce)-ce))}(ce,$,!0));let Kt="";return ge.forEach(Zt=>{const Ft=function fd(O){if(ea[O])return ea[O];let q;switch(O){case"G":case"GG":case"GGG":q=mt(de.Eras,fe.Abbreviated);break;case"GGGG":q=mt(de.Eras,fe.Wide);break;case"GGGGG":q=mt(de.Eras,fe.Narrow);break;case"y":q=vt(te.FullYear,1,0,!1,!0);break;case"yy":q=vt(te.FullYear,2,0,!0,!0);break;case"yyy":q=vt(te.FullYear,3,0,!1,!0);break;case"yyyy":q=vt(te.FullYear,4,0,!1,!0);break;case"Y":q=Qn(1);break;case"YY":q=Qn(2,!0);break;case"YYY":q=Qn(3);break;case"YYYY":q=Qn(4);break;case"M":case"L":q=vt(te.Month,1,1);break;case"MM":case"LL":q=vt(te.Month,2,1);break;case"MMM":q=mt(de.Months,fe.Abbreviated);break;case"MMMM":q=mt(de.Months,fe.Wide);break;case"MMMMM":q=mt(de.Months,fe.Narrow);break;case"LLL":q=mt(de.Months,fe.Abbreviated,ue.Standalone);break;case"LLLL":q=mt(de.Months,fe.Wide,ue.Standalone);break;case"LLLLL":q=mt(de.Months,fe.Narrow,ue.Standalone);break;case"w":q=dr(1);break;case"ww":q=dr(2);break;case"W":q=dr(1,!0);break;case"d":q=vt(te.Date,1);break;case"dd":q=vt(te.Date,2);break;case"c":case"cc":q=vt(te.Day,1);break;case"ccc":q=mt(de.Days,fe.Abbreviated,ue.Standalone);break;case"cccc":q=mt(de.Days,fe.Wide,ue.Standalone);break;case"ccccc":q=mt(de.Days,fe.Narrow,ue.Standalone);break;case"cccccc":q=mt(de.Days,fe.Short,ue.Standalone);break;case"E":case"EE":case"EEE":q=mt(de.Days,fe.Abbreviated);break;case"EEEE":q=mt(de.Days,fe.Wide);break;case"EEEEE":q=mt(de.Days,fe.Narrow);break;case"EEEEEE":q=mt(de.Days,fe.Short);break;case"a":case"aa":case"aaa":q=mt(de.DayPeriods,fe.Abbreviated);break;case"aaaa":q=mt(de.DayPeriods,fe.Wide);break;case"aaaaa":q=mt(de.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":q=mt(de.DayPeriods,fe.Abbreviated,ue.Standalone,!0);break;case"bbbb":q=mt(de.DayPeriods,fe.Wide,ue.Standalone,!0);break;case"bbbbb":q=mt(de.DayPeriods,fe.Narrow,ue.Standalone,!0);break;case"B":case"BB":case"BBB":q=mt(de.DayPeriods,fe.Abbreviated,ue.Format,!0);break;case"BBBB":q=mt(de.DayPeriods,fe.Wide,ue.Format,!0);break;case"BBBBB":q=mt(de.DayPeriods,fe.Narrow,ue.Format,!0);break;case"h":q=vt(te.Hours,1,-12);break;case"hh":q=vt(te.Hours,2,-12);break;case"H":q=vt(te.Hours,1);break;case"HH":q=vt(te.Hours,2);break;case"m":q=vt(te.Minutes,1);break;case"mm":q=vt(te.Minutes,2);break;case"s":q=vt(te.Seconds,1);break;case"ss":q=vt(te.Seconds,2);break;case"S":q=vt(te.FractionalSeconds,1);break;case"SS":q=vt(te.FractionalSeconds,2);break;case"SSS":q=vt(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=pt(ae.Short);break;case"ZZZZZ":q=pt(ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=pt(ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=pt(ae.Long);break;default:return null}return ea[O]=q,q}(Zt);Kt+=Ft?Ft(ce,B,pi):"''"===Zt?"'":Zt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kt}function dt(O,q,B){const $=new Date(0);return $.setFullYear(O,q,B),$.setHours(0,0,0),$}function At(O,q){const B=function je(O){return(0,C.cg1)(O)[C.wAp.LocaleId]}(O);if(Wt[B]=Wt[B]||{},Wt[B][q])return Wt[B][q];let $="";switch(q){case"shortDate":$=Ue(O,Ce.Short);break;case"mediumDate":$=Ue(O,Ce.Medium);break;case"longDate":$=Ue(O,Ce.Long);break;case"fullDate":$=Ue(O,Ce.Full);break;case"shortTime":$=ri(O,Ce.Short);break;case"mediumTime":$=ri(O,Ce.Medium);break;case"longTime":$=ri(O,Ce.Long);break;case"fullTime":$=ri(O,Ce.Full);break;case"short":const ce=At(O,"shortTime"),ye=At(O,"shortDate");$=et(lr(O,Ce.Short),[ce,ye]);break;case"medium":const ge=At(O,"mediumTime"),tt=At(O,"mediumDate");$=et(lr(O,Ce.Medium),[ge,tt]);break;case"long":const pi=At(O,"longTime"),Kt=At(O,"longDate");$=et(lr(O,Ce.Long),[pi,Kt]);break;case"full":const Zt=At(O,"fullTime"),Ft=At(O,"fullDate");$=et(lr(O,Ce.Full),[Zt,Ft])}return $&&(Wt[B][q]=$),$}function et(O,q){return q&&(O=O.replace(/\{([^}]+)}/g,function(B,$){return null!=q&&$ in q?q[$]:B})),O}function ht(O,q,B="-",$,ce){let ye="";(O<0||ce&&O<=0)&&(ce?O=1-O:(O=-O,ye=B));let ge=String(O);for(;ge.length0||tt>-B)&&(tt+=B),O===te.Hours)0===tt&&-12===B&&(tt=12);else if(O===te.FractionalSeconds)return function Di(O,q){return ht(O,3).substring(0,q)}(tt,q);const pi=vi(ge,_e.MinusSign);return ht(tt,q,pi,$,ce)}}function mt(O,q,B=ue.Format,$=!1){return function(ce,ye){return function $t(O,q,B,$,ce,ye){switch(B){case de.Months:return function ni(O,q,B){const $=(0,C.cg1)(O),ye=zi([$[C.wAp.MonthsFormat],$[C.wAp.MonthsStandalone]],q);return zi(ye,B)}(q,ce,$)[O.getMonth()];case de.Days:return function It(O,q,B){const $=(0,C.cg1)(O),ye=zi([$[C.wAp.DaysFormat],$[C.wAp.DaysStandalone]],q);return zi(ye,B)}(q,ce,$)[O.getDay()];case de.DayPeriods:const ge=O.getHours(),tt=O.getMinutes();if(ye){const Kt=function hs(O){const q=(0,C.cg1)(O);return kr(q),(q[C.wAp.ExtraData][2]||[]).map($=>"string"==typeof $?cr($):[cr($[0]),cr($[1])])}(q),Zt=function Zs(O,q,B){const $=(0,C.cg1)(O);kr($);const ye=zi([$[C.wAp.ExtraData][0],$[C.wAp.ExtraData][1]],q)||[];return zi(ye,B)||[]}(q,ce,$),Ft=Kt.findIndex(at=>{if(Array.isArray(at)){const[mi,Ti]=at,xe=ge>=mi.hours&&tt>=mi.minutes,Ht=ge0?Math.floor(ce/60):Math.ceil(ce/60);switch(O){case ae.Short:return(ce>=0?"+":"")+ht(ge,2,ye)+ht(Math.abs(ce%60),2,ye);case ae.ShortGMT:return"GMT"+(ce>=0?"+":"")+ht(ge,1,ye);case ae.Long:return"GMT"+(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);case ae.Extended:return 0===$?"Z":(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);default:throw new Error(`Unknown zone width "${O}"`)}}}function Pr(O){return dt(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function dr(O,q=!1){return function(B,$){let ce;if(q){const ye=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,ge=B.getDate();ce=1+Math.floor((ge+ye)/7)}else{const ye=Pr(B),ge=function Vi(O){const q=dt(O,0,1).getDay();return dt(O,0,1+(q<=4?4:11)-q)}(ye.getFullYear()),tt=ye.getTime()-ge.getTime();ce=1+Math.round(tt/6048e5)}return ht(ce,O,vi($,_e.MinusSign))}}function Qn(O,q=!1){return function(B,$){return ht(Pr(B).getFullYear(),O,vi($,_e.MinusSign),q)}}const ea={};function ps(O,q){O=O.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(B)?q:B}function Ei(O){return O instanceof Date&&!isNaN(O.valueOf())}function md(O,q){q=encodeURIComponent(q);for(const B of O.split(";")){const $=B.indexOf("="),[ce,ye]=-1==$?[B,""]:[B.slice(0,$),B.slice($+1)];if(ce.trim()===q)return decodeURIComponent(ye)}return null}let Wl=(()=>{class O{constructor(B,$,ce,ye){this._iterableDiffers=B,this._keyValueDiffers=$,this._ngEl=ce,this._renderer=ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,this._rawClass&&((0,C.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachChangedItem($=>this._toggleClass($.key,$.currentValue)),B.forEachRemovedItem($=>{$.previousValue&&this._toggleClass($.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem($=>{if("string"!=typeof $.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,C.AaK)($.item)}`);this._toggleClass($.item,!0)}),B.forEachRemovedItem($=>this._toggleClass($.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!0)):Object.keys(B).forEach($=>this._toggleClass($,!!B[$])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach($=>this._toggleClass($,!1)):Object.keys(B).forEach($=>this._toggleClass($,!1)))}_toggleClass(B,$){(B=B.trim())&&B.split(/\s+/g).forEach(ce=>{$?this._renderer.addClass(this._ngEl.nativeElement,ce):this._renderer.removeClass(this._ngEl.nativeElement,ce)})}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class ia{constructor(q,B,$,ce){this.$implicit=q,this.ngForOf=B,this.index=$,this.count=ce}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Kn=(()=>{class O{constructor(B,$,ce){this._viewContainer=B,this._template=$,this._differs=ce,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const $=this._viewContainer;B.forEachOperation((ce,ye,ge)=>{if(null==ce.previousIndex)$.createEmbeddedView(this._template,new ia(ce.item,this._ngForOf,-1,-1),null===ge?void 0:ge);else if(null==ge)$.remove(null===ye?void 0:ye);else if(null!==ye){const tt=$.get(ye);$.move(tt,ge),tn(tt,ce)}});for(let ce=0,ye=$.length;ce{tn($.get(ce.currentIndex),ce)})}static ngTemplateContextGuard(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(C.ZZ4))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function tn(O,q){O.context.$implicit=q.item}let mn=(()=>{class O{constructor(B,$){this._viewContainer=B,this._context=new jn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=$}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){na("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){na("ngIfElse",B),this._elseTemplateRef=B,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(B,$){return!0}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class jn{constructor(){this.$implicit=null,this.ngIf=null}}function na(O,q){if(q&&!q.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,C.AaK)(q)}'.`)}class Ha{constructor(q,B){this._viewContainerRef=q,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(q){q&&!this._created?this.create():!q&&this._created&&this.destroy()}}let ka=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const $=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||$,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),$}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let $=0;${class O{constructor(B,$,ce){this.ngSwitch=ce,ce._addCase(),this._view=new Ha(B,$)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(ka,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),ms=(()=>{class O{constructor(B,$,ce){ce._addDefault(new Ha(B,$))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(ka,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchDefault",""]],standalone:!0}),O})(),Lr=(()=>{class O{constructor(B,$,ce){this._ngEl=B,this._differs=$,this._renderer=ce,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,$){const[ce,ye]=B.split("."),ge=-1===ce.indexOf("-")?void 0:C.JOm.DashCase;null!=$?this._renderer.setStyle(this._ngEl.nativeElement,ce,ye?`${$}${ye}`:$,ge):this._renderer.removeStyle(this._ngEl.nativeElement,ce,ge)}_applyChanges(B){B.forEachRemovedItem($=>this._setStyle($.key,null)),B.forEachAddedItem($=>this._setStyle($.key,$.currentValue)),B.forEachChangedItem($=>this._setStyle($.key,$.currentValue))}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.SBq),C.Y36(C.aQg),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),Iu=(()=>{class O{constructor(B){this._viewContainerRef=B,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(B){if(B.ngTemplateOutlet||B.ngTemplateOutletInjector){const $=this._viewContainerRef;if(this._viewRef&&$.remove($.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ce,ngTemplateOutletContext:ye,ngTemplateOutletInjector:ge}=this;this._viewRef=$.createEmbeddedView(ce,ye,ge?{injector:ge}:void 0)}else this._viewRef=null}else this._viewRef&&B.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.s_b))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[C.TTD]}),O})();function ur(O,q){return new C.vHH(2100,!1)}class Pp{createSubscription(q,B){return q.subscribe({next:B,error:$=>{throw $}})}dispose(q){q.unsubscribe()}}class Rp{createSubscription(q,B){return q.then(B,$=>{throw $})}dispose(q){}}const Lp=new Rp,Ip=new Pp;let Ou=(()=>{class O{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,$=>this._updateLatestValue(B,$))}_selectStrategy(B){if((0,C.QGY)(B))return Lp;if((0,C.F4k)(B))return Ip;throw ur()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,$){B===this._obj&&(this._latestValue=$,this._ref.markForCheck())}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.sBO,16))},O.\u0275pipe=C.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})();const Vp=new C.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Uo=(()=>{class O{constructor(B,$){this.locale=B,this.defaultTimezone=$}transform(B,$="mediumDate",ce,ye){if(null==B||""===B||B!=B)return null;try{return ke(B,$,ye||this.locale,ce??this.defaultTimezone??void 0)}catch(ge){throw ur()}}}return O.\u0275fac=function(B){return new(B||O)(C.Y36(C.soG,16),C.Y36(Vp,24))},O.\u0275pipe=C.Yjl({name:"date",type:O,pure:!0,standalone:!0}),O})(),pr=(()=>{class O{}return O.\u0275fac=function(B){return new(B||O)},O.\u0275mod=C.oAB({type:O}),O.\u0275inj=C.cJS({}),O})();const yi="browser";function qo(O){return O===yi}let fr=(()=>{class O{}return O.\u0275prov=(0,C.Yz7)({token:O,providedIn:"root",factory:()=>new Et((0,C.LFG)(L),window)}),O})();class Et{constructor(q,B){this.document=q,this.window=B,this.offset=()=>[0,0]}setOffset(q){this.offset=Array.isArray(q)?()=>q:q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(q){this.supportsScrolling()&&this.window.scrollTo(q[0],q[1])}scrollToAnchor(q){if(!this.supportsScrolling())return;const B=function er(O,q){const B=O.getElementById(q)||O.getElementsByName(q)[0];if(B)return B;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const $=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let ce=$.currentNode;for(;ce;){const ye=ce.shadowRoot;if(ye){const ge=ye.getElementById(q)||ye.querySelector(`[name="${q}"]`);if(ge)return ge}ce=$.nextNode()}}return null}(this.document,q);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(q){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=q)}}scrollToElement(q){const B=q.getBoundingClientRect(),$=B.left+this.window.pageXOffset,ce=B.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo($-ye[0],ce-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const q=rn(this.window.history)||rn(Object.getPrototypeOf(this.window.history));return!(!q||!q.writable&&!q.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function rn(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Bt{}},529:(Y,U,x)=>{"use strict";x.d(U,{JF:()=>zo,LE:()=>Ae,TP:()=>It,WM:()=>J,Zn:()=>Ce,eN:()=>je,qT:()=>Ze});var C=x(6895),i=x(4650),D=x(9646),M=x(9751),S=x(4351),P=x(9300),L=x(4004);class j{}class z{}class J{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(te=>{const de=te.indexOf(":");if(de>0){const ke=te.slice(0,de),dt=ke.toLowerCase(),At=te.slice(de+1).trim();this.maybeSetNormalizedName(ke,dt),this.headers.has(dt)?this.headers.get(dt).push(At):this.headers.set(dt,[At])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(te=>{let de=ae[te];const ke=te.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(ke,de),this.maybeSetNormalizedName(te,ke))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const te=this.headers.get(ae.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,te){return this.clone({name:ae,value:te,op:"a"})}set(ae,te){return this.clone({name:ae,value:te,op:"s"})}delete(ae,te){return this.clone({name:ae,value:te,op:"d"})}maybeSetNormalizedName(ae,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ae)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(te=>{this.headers.set(te,ae.headers.get(te)),this.normalizedNames.set(te,ae.normalizedNames.get(te))})}clone(ae){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),te}applyUpdate(ae){const te=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let de=ae.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(ae.name,te);const ke=("a"===ae.op?this.headers.get(te):void 0)||[];ke.push(...de),this.headers.set(te,ke);break;case"d":const dt=ae.value;if(dt){let At=this.headers.get(te);if(!At)return;At=At.filter(et=>-1===dt.indexOf(et)),0===At.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,At)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ae(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(ae){return me(ae)}encodeValue(ae){return me(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const re=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(Se){return encodeURIComponent(Se).replace(re,(ae,te)=>ie[te]??ae)}function be(Se){return`${Se}`}class Ae{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new ne,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Se,ae){const te=new Map;return Se.length>0&&Se.replace(/^\?/,"").split("&").forEach(ke=>{const dt=ke.indexOf("="),[At,et]=-1==dt?[ae.decodeKey(ke),""]:[ae.decodeKey(ke.slice(0,dt)),ae.decodeValue(ke.slice(dt+1))],ht=te.get(At)||[];ht.push(et),te.set(At,ht)}),te}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(te=>{const de=ae.fromObject[te],ke=Array.isArray(de)?de.map(be):[be(de)];this.map.set(te,ke)})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const te=this.map.get(ae);return te?te[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,te){return this.clone({param:ae,value:te,op:"a"})}appendAll(ae){const te=[];return Object.keys(ae).forEach(de=>{const ke=ae[de];Array.isArray(ke)?ke.forEach(dt=>{te.push({param:de,value:dt,op:"a"})}):te.push({param:de,value:ke,op:"a"})}),this.clone(te)}set(ae,te){return this.clone({param:ae,value:te,op:"s"})}delete(ae,te){return this.clone({param:ae,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const te=this.encoder.encodeKey(ae);return this.map.get(ae).map(de=>te+"="+this.encoder.encodeValue(de)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const te=new Ae({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ae),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const te=("a"===ae.op?this.map.get(ae.param):void 0)||[];te.push(be(ae.value)),this.map.set(ae.param,te);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let de=this.map.get(ae.param)||[];const ke=de.indexOf(be(ae.value));-1!==ke&&de.splice(ke,1),de.length>0?this.map.set(ae.param,de):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(ae,te){return this.map.set(ae,te),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function ve(Se){return typeof ArrayBuffer<"u"&&Se instanceof ArrayBuffer}function Me(Se){return typeof Blob<"u"&&Se instanceof Blob}function lt(Se){return typeof FormData<"u"&&Se instanceof FormData}class Oe{constructor(ae,te,de,ke){let dt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Ee(Se){switch(Se){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ke?(this.body=void 0!==de?de:null,dt=ke):dt=de,dt&&(this.reportProgress=!!dt.reportProgress,this.withCredentials=!!dt.withCredentials,dt.responseType&&(this.responseType=dt.responseType),dt.headers&&(this.headers=dt.headers),dt.context&&(this.context=dt.context),dt.params&&(this.params=dt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Ze),this.params){const At=this.params.toString();if(0===At.length)this.urlWithParams=te;else{const et=te.indexOf("?");this.urlWithParams=te+(-1===et?"?":etMn.set(mt,ae.setHeaders[mt]),ht)),ae.setParams&&(Di=Object.keys(ae.setParams).reduce((Mn,mt)=>Mn.set(mt,ae.setParams[mt]),Di)),new Oe(te,de,dt,{params:Di,headers:ht,context:vt,reportProgress:et,responseType:ke,withCredentials:At})}}var Le=(()=>((Le=Le||{})[Le.Sent=0]="Sent",Le[Le.UploadProgress=1]="UploadProgress",Le[Le.ResponseHeader=2]="ResponseHeader",Le[Le.DownloadProgress=3]="DownloadProgress",Le[Le.Response=4]="Response",Le[Le.User=5]="User",Le))();class ue{constructor(ae,te=200,de="OK"){this.headers=ae.headers||new J,this.status=void 0!==ae.status?ae.status:te,this.statusText=ae.statusText||de,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends ue{constructor(ae={}){super(ae),this.type=Le.ResponseHeader}clone(ae={}){return new fe({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Ce extends ue{constructor(ae={}){super(ae),this.type=Le.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new Ce({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class _e extends ue{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function ze(Se,ae){return{body:ae,headers:Se.headers,context:Se.context,observe:Se.observe,params:Se.params,reportProgress:Se.reportProgress,responseType:Se.responseType,withCredentials:Se.withCredentials}}let je=(()=>{class Se{constructor(te){this.handler=te}request(te,de,ke={}){let dt;if(te instanceof Oe)dt=te;else{let ht,Di;ht=ke.headers instanceof J?ke.headers:new J(ke.headers),ke.params&&(Di=ke.params instanceof Ae?ke.params:new Ae({fromObject:ke.params})),dt=new Oe(te,de,void 0!==ke.body?ke.body:null,{headers:ht,context:ke.context,params:Di,reportProgress:ke.reportProgress,responseType:ke.responseType||"json",withCredentials:ke.withCredentials})}const At=(0,D.of)(dt).pipe((0,S.b)(ht=>this.handler.handle(ht)));if(te instanceof Oe||"events"===ke.observe)return At;const et=At.pipe((0,P.h)(ht=>ht instanceof Ce));switch(ke.observe||"body"){case"body":switch(dt.responseType){case"arraybuffer":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ht.body}));case"blob":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof Blob))throw new Error("Response is not a Blob.");return ht.body}));case"text":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&"string"!=typeof ht.body)throw new Error("Response is not a string.");return ht.body}));default:return et.pipe((0,L.U)(ht=>ht.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${ke.observe}}`)}}delete(te,de={}){return this.request("DELETE",te,de)}get(te,de={}){return this.request("GET",te,de)}head(te,de={}){return this.request("HEAD",te,de)}jsonp(te,de){return this.request("JSONP",te,{params:(new Ae).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,de={}){return this.request("OPTIONS",te,de)}patch(te,de,ke={}){return this.request("PATCH",te,ze(ke,de))}post(te,de,ke={}){return this.request("POST",te,ze(ke,de))}put(te,de,ke={}){return this.request("PUT",te,ze(ke,de))}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(j))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class Ct{constructor(ae,te){this.next=ae,this.interceptor=te}handle(ae){return this.interceptor.intercept(ae,this.next)}}const It=new i.OlP("HTTP_INTERCEPTORS");let ni=(()=>{class Se{intercept(te,de){return de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Ws=/^\)\]\}',?\n/;let $s=(()=>{class Se{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(de=>{const ke=this.xhrFactory.build();if(ke.open(te.method,te.urlWithParams),te.withCredentials&&(ke.withCredentials=!0),te.headers.forEach(($t,pt)=>ke.setRequestHeader($t,pt.join(","))),te.headers.has("Accept")||ke.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const $t=te.detectContentTypeHeader();null!==$t&&ke.setRequestHeader("Content-Type",$t)}if(te.responseType){const $t=te.responseType.toLowerCase();ke.responseType="json"!==$t?$t:"text"}const dt=te.serializeBody();let At=null;const et=()=>{if(null!==At)return At;const $t=ke.statusText||"OK",pt=new J(ke.getAllResponseHeaders()),Vn=function pd(Se){return"responseURL"in Se&&Se.responseURL?Se.responseURL:/^X-Request-URL:/m.test(Se.getAllResponseHeaders())?Se.getResponseHeader("X-Request-URL"):null}(ke)||te.url;return At=new fe({headers:pt,status:ke.status,statusText:$t,url:Vn}),At},ht=()=>{let{headers:$t,status:pt,statusText:Vn,url:Xr}=et(),Vi=null;204!==pt&&(Vi=typeof ke.response>"u"?ke.responseText:ke.response),0===pt&&(pt=Vi?200:0);let Pr=pt>=200&&pt<300;if("json"===te.responseType&&"string"==typeof Vi){const dr=Vi;Vi=Vi.replace(Ws,"");try{Vi=""!==Vi?JSON.parse(Vi):null}catch(Qn){Vi=dr,Pr&&(Pr=!1,Vi={error:Qn,text:Vi})}}Pr?(de.next(new Ce({body:Vi,headers:$t,status:pt,statusText:Vn,url:Xr||void 0})),de.complete()):de.error(new _e({error:Vi,headers:$t,status:pt,statusText:Vn,url:Xr||void 0}))},Di=$t=>{const{url:pt}=et(),Vn=new _e({error:$t,status:ke.status||0,statusText:ke.statusText||"Unknown Error",url:pt||void 0});de.error(Vn)};let vt=!1;const Mn=$t=>{vt||(de.next(et()),vt=!0);let pt={type:Le.DownloadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),"text"===te.responseType&&!!ke.responseText&&(pt.partialText=ke.responseText),de.next(pt)},mt=$t=>{let pt={type:Le.UploadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),de.next(pt)};return ke.addEventListener("load",ht),ke.addEventListener("error",Di),ke.addEventListener("timeout",Di),ke.addEventListener("abort",Di),te.reportProgress&&(ke.addEventListener("progress",Mn),null!==dt&&ke.upload&&ke.upload.addEventListener("progress",mt)),ke.send(dt),de.next({type:Le.Sent}),()=>{ke.removeEventListener("error",Di),ke.removeEventListener("abort",Di),ke.removeEventListener("load",ht),ke.removeEventListener("timeout",Di),te.reportProgress&&(ke.removeEventListener("progress",Mn),null!==dt&&ke.upload&&ke.upload.removeEventListener("progress",mt)),ke.readyState!==ke.DONE&&ke.abort()}})}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.JF))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Hr=new i.OlP("XSRF_COOKIE_NAME"),kr=new i.OlP("XSRF_HEADER_NAME");class hs{}let Zs=(()=>{class Se{constructor(te,de,ke){this.doc=te,this.platform=de,this.cookieName=ke,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.K0),i.LFG(i.Lbi),i.LFG(Hr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),ct=(()=>{class Se{constructor(te,de){this.tokenService=te,this.headerName=de}intercept(te,de){const ke=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||ke.startsWith("http://")||ke.startsWith("https://"))return de.handle(te);const dt=this.tokenService.getToken();return null!==dt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,dt)})),de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(hs),i.LFG(kr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),zi=(()=>{class Se{constructor(te,de){this.backend=te,this.injector=de,this.chain=null}handle(te){if(null===this.chain){const de=this.injector.get(It,[]);this.chain=de.reduceRight((ke,dt)=>new Ct(ke,dt),this.backend)}return this.chain.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(z),i.LFG(i.zs3))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),Xi=(()=>{class Se{static disable(){return{ngModule:Se,providers:[{provide:ct,useClass:ni}]}}static withOptions(te={}){return{ngModule:Se,providers:[te.cookieName?{provide:Hr,useValue:te.cookieName}:[],te.headerName?{provide:kr,useValue:te.headerName}:[]]}}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[ct,{provide:It,useExisting:ct,multi:!0},{provide:hs,useClass:Zs},{provide:Hr,useValue:"XSRF-TOKEN"},{provide:kr,useValue:"X-XSRF-TOKEN"}]}),Se})(),zo=(()=>{class Se{}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[je,{provide:j,useClass:zi},$s,{provide:z,useExisting:$s}],imports:[Xi.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Se})()},4650:(Y,U,x)=>{"use strict";x.d(U,{$8M:()=>sc,$Z:()=>fb,AFp:()=>Sg,ALo:()=>aw,AaK:()=>j,AsE:()=>Li,BQk:()=>mm,CHM:()=>gn,CRH:()=>sx,CZH:()=>ed,CqO:()=>$b,D6c:()=>TD,DdM:()=>tw,Dn7:()=>sw,EJc:()=>St,EiD:()=>w_,EpF:()=>Lc,F$t:()=>Xb,F4k:()=>qh,FYo:()=>DA,FiY:()=>ho,G48:()=>hD,Gf:()=>hw,GfV:()=>kA,GkF:()=>Uh,Gpc:()=>Q,Gre:()=>Pm,Hsn:()=>ey,Ikx:()=>lu,JOm:()=>Es,JVY:()=>lA,Jf7:()=>UA,KtG:()=>Or,L6k:()=>cA,LAX:()=>pf,LFG:()=>Pi,LSH:()=>Cf,Lbi:()=>Pw,Lck:()=>HT,MAs:()=>pm,MMx:()=>dp,NdJ:()=>gm,O4$:()=>Yu,OlP:()=>ei,Oqu:()=>ns,PXZ:()=>Sr,Q6J:()=>Pe,QGY:()=>Gh,QP$:()=>as,QbO:()=>Eg,Qsj:()=>EA,R0b:()=>$n,RDi:()=>I,Rgc:()=>Po,SBq:()=>rr,Sil:()=>wp,Suo:()=>pw,TTD:()=>Hi,TgZ:()=>_t,Tol:()=>vm,Udp:()=>Am,VKq:()=>iw,W1O:()=>bg,WFA:()=>_m,WLB:()=>nw,XFs:()=>ct,Xpm:()=>Vn,Xts:()=>vf,Y36:()=>Ac,YKP:()=>ag,YNc:()=>yt,Yjl:()=>ps,Yz7:()=>ri,ZZ4:()=>Kw,_Bn:()=>rg,_UZ:()=>Rc,_Vd:()=>qr,_c5:()=>AD,_uU:()=>ln,aQg:()=>Xw,c2e:()=>Hg,cJS:()=>vi,cg1:()=>Dy,d8E:()=>jc,dDg:()=>Tx,dqk:()=>de,eBb:()=>dA,eFA:()=>Io,ekj:()=>Vc,eoX:()=>Og,f3M:()=>lh,g9A:()=>Dg,h0i:()=>Gc,hGG:()=>vD,hij:()=>Jh,iGM:()=>uw,ifc:()=>te,ip1:()=>Vs,kL8:()=>oT,kcU:()=>zu,lG2:()=>fd,lcZ:()=>gu,lqb:()=>wn,lri:()=>Vw,mCW:()=>Nd,n5z:()=>Ed,n_E:()=>ko,oAB:()=>dr,oJD:()=>C_,oxw:()=>Kb,pB0:()=>m_,q3G:()=>qi,qLn:()=>Mh,qOj:()=>jh,qZA:()=>fm,qzn:()=>ol,rWj:()=>Zr,s9C:()=>bm,sBO:()=>fD,sIi:()=>ru,s_b:()=>yu,soG:()=>kg,tb:()=>bp,tp0:()=>Ss,uIk:()=>Ps,vHH:()=>ie,vpe:()=>Os,wAp:()=>ft,xDo:()=>Qh,xi3:()=>ug,xp6:()=>Bf,ynx:()=>Pn,z2F:()=>Fg,z3N:()=>qa,zSh:()=>cl,zs3:()=>Za});var C=x(7579),i=x(727),D=x(9751),M=x(6451),S=x(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function L(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function j(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(j).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function z(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return j(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function me(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function be(p){return"string"==typeof p?p:null==p?"":String(p)}function ve(p,m){throw new ie(-201,!1)}function ni(p,m){null==p&&function Je(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function vi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Kr(p){return ql(p,Hr)||ql(p,hs)}function ql(p,m){return p.hasOwnProperty(m)?p[m]:null}function $s(p){return p&&(p.hasOwnProperty(kr)||p.hasOwnProperty(Zs))?p[kr]:null}const Hr=P({\u0275prov:P}),kr=P({\u0275inj:P}),hs=P({ngInjectableDef:P}),Zs=P({ngInjectorDef:P});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let zi;function Qt(p){const m=zi;return zi=p,m}function Xi(p,m,g){const _=Kr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&ct.Optional?null:void 0!==m?m:void ve(j(p))}function Jn(p){return{toString:p}.toString()}var Wt=(()=>((Wt=Wt||{})[Wt.OnPush=0]="OnPush",Wt[Wt.Default=1]="Default",Wt))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),At={},et=[],ht=P({\u0275cmp:P}),Di=P({\u0275dir:P}),vt=P({\u0275pipe:P}),Mn=P({\u0275mod:P}),mt=P({\u0275fac:P}),$t=P({__NG_ELEMENT_ID__:P});let pt=0;function Vn(p){return Jn(()=>{const g=!0===p.standalone,_={},y={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Wt.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||et,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+pt++,styles:p.styles||et,_:null,setInput:null,schemas:p.schemas||null,tView:null},v=p.dependencies,E=p.features;return y.inputs=ea(p.inputs,_),y.outputs=ea(p.outputs),E&&E.forEach(k=>k(y)),y.directiveDefs=v?()=>("function"==typeof v?v():v).map(Vi).filter(Pr):null,y.pipeDefs=v?()=>("function"==typeof v?v():v).map(Ui).filter(Pr):null,y})}function Vi(p){return ti(p)||Ni(p)}function Pr(p){return null!==p}function dr(p){return Jn(()=>({type:p.type,bootstrap:p.bootstrap||et,declarations:p.declarations||et,imports:p.imports||et,exports:p.exports||et,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ea(p,m){if(null==p)return At;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const fd=Vn;function ps(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function ti(p){return p[ht]||null}function Ni(p){return p[Di]||null}function Ui(p){return p[vt]||null}function Ne(p,m){const g=p[Mn]||null;if(!g&&!0===m)throw new Error(`Type ${j(p)} does not have '\u0275mod' property.`);return g}function mn(p){return Array.isArray(p)&&"object"==typeof p[1]}function jn(p){return Array.isArray(p)&&!0===p[1]}function na(p){return 0!=(8&p.flags)}function Ha(p){return 2==(2&p.flags)}function ka(p){return 1==(1&p.flags)}function Nn(p){return null!==p.template}function ms(p){return 0!=(256&p[2])}function Ve(p,m){return p.hasOwnProperty(mt)?p[mt]:null}class De{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Hi(){return Go}function Go(p){return p.type.prototype.ngOnChanges&&(p.setInput=Ra),Pa}function Pa(){const p=Ir(this),m=p?.current;if(m){const g=p.previous;if(g===At)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Ra(p,m,g,_){const y=Ir(p)||function hr(p,m){return p[nn]=m}(p,{previous:At,current:null}),v=y.current||(y.current={}),E=y.previous,k=this.declaredInputs[g],R=E[k];v[k]=new De(R&&R.currentValue,m,E===At),p[_]=m}Hi.ngInherit=!0;const nn="__ngSimpleChanges__";function Ir(p){return p[nn]||null}function Qe(p){for(;Array.isArray(p);)p=p[0];return p}function fr(p,m){return Qe(m[p])}function Et(p,m){return Qe(m[p.index])}function er(p,m){return p.data[m]}function En(p,m){return p[m]}function Bt(p,m){const g=m[p];return mn(g)?g:g[0]}function O(p){return 4==(4&p[2])}function q(p){return 64==(64&p[2])}function $(p,m){return null==m?null:p[m]}function ce(p){p[18]=0}function ye(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const ge={lFrame:no(null),bindingsEnabled:!0};function at(){return ge.bindingsEnabled}function xe(){return ge.lFrame.lView}function Ht(){return ge.lFrame.tView}function gn(p){return ge.lFrame.contextLView=p,p[8]}function Or(p){return ge.lFrame.contextLView=null,p}function xi(){let p=La();for(;null!==p&&64===p.type;)p=p.parent;return p}function La(){return ge.lFrame.currentTNode}function Xt(p,m){const g=ge.lFrame;g.currentTNode=p,g.isParent=m}function mr(){return ge.lFrame.isParent}function _s(){ge.lFrame.isParent=!1}function yn(){const p=ge.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function Br(){return ge.lFrame.bindingIndex}function bs(){return ge.lFrame.bindingIndex++}function gr(p){const m=ge.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Vt(p,m){const g=ge.lFrame;g.bindingIndex=g.bindingRootIndex=p,wd(m)}function wd(p){ge.lFrame.currentDirectiveIndex=p}function aa(p){const m=ge.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function Fu(){return ge.lFrame.currentQueryIndex}function Oa(p){ge.lFrame.currentQueryIndex=p}function Cd(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ju(p,m,g){if(g&ct.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&ct.Host||(y=Cd(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=ge.lFrame=sa();return _.currentTNode=m,_.lView=p,!0}function io(p){const m=sa(),g=p[1];ge.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function sa(){const p=ge.lFrame,m=null===p?null:p.child;return null===m?no(p):m}function no(p){const m={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function ys(){const p=ge.lFrame;return ge.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const Nu=ys;function ro(){const p=ys();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function an(){return ge.lFrame.selectedIndex}function Vr(p){ge.lFrame.selectedIndex=p}function ki(){const p=ge.lFrame;return er(p.tView,p.selectedIndex)}function Yu(){ge.lFrame.currentNamespace="svg"}function zu(){!function jp(){ge.lFrame.currentNamespace=null}()}function Kl(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:F,ngOnDestroy:G}=v;E&&(p.contentHooks||(p.contentHooks=[])).push(-g,E),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=G&&(p.destroyHooks||(p.destroyHooks=[])).push(g,G)}}function ao(p,m,g){Ba(p,m,3,g)}function ws(p,m,g,_){(3&p[2])===g&&Ba(p,m,g,_)}function Xl(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Ba(p,m,g,_){const v=_??-1,E=m.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class _r{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function oa(p,m,g){let _=0;for(;_m){E=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let vd=!0;function Zo(p){const m=vd;return vd=p,m}let la=0;const Yn={};function Jo(p,m){const g=xd(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Td(_.data,p),Td(m,null),Td(_.blueprint,null));const y=tc(p,m),v=p.injectorIndex;if(ec(y)){const E=jr(y),k=Fa(y,m),R=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[E+F]|R[E+F]}return m[v+8]=y,v}function Td(p,m){p.push(0,0,0,0,0,0,0,0,m)}function xd(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function tc(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=zn(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ic(p,m,g){!function Ju(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty($t)&&(_=g[$t]),null==_&&(_=g[$t]=la++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:lo:m}(g);if("function"==typeof v){if(!ju(m,p,_))return _&ct.Host?Md(y,0,_):Sd(m,g,_,y);try{const E=v(_);if(null!=E||_&ct.Optional)return E;ve()}finally{Nu()}}else if("number"==typeof v){let E=null,k=xd(p,m),R=-1,F=_&ct.Host?m[16][6]:null;for((-1===k||_&ct.SkipSelf)&&(R=-1===k?tc(p,m):m[k+8],-1!==R&&rc(_,!1)?(E=m[1],k=jr(R),m=Fa(R,m)):k=-1);-1!==k;){const G=m[1];if(Ko(v,k,G.data)){const X=nc(k,m,g,E,_,F);if(X!==Yn)return X}R=m[k+8],-1!==R&&rc(_,m[1].data[k+8]===F)&&Ko(v,k,m)?(E=G,k=jr(R),m=Fa(R,m)):k=-1}}return y}function nc(p,m,g,_,y,v){const E=m[1],k=E.data[p+8],G=oo(k,E,g,null==_?Ha(k)&&vd:_!=E&&0!=(3&k.type),y&ct.Host&&v===k);return null!==G?Yr(m,E,G,k):Yn}function oo(p,m,g,_,y){const v=p.providerIndexes,E=m.data,k=1048575&v,R=p.directiveStart,G=v>>20,oe=y?k+G:p.directiveEnd;for(let pe=_?k:k+G;pe=R&&Te.type===g)return pe}if(y){const pe=E[R];if(pe&&Nn(pe)&&pe.type===g)return R}return null}function Yr(p,m,g,_){let y=p[g];const v=m.data;if(function Uu(p){return p instanceof _r}(y)){const E=y;E.resolving&&function $e(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function Ae(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():be(p)}(v[g]));const k=Zo(E.canSeeViewProviders);E.resolving=!0;const R=E.injectImpl?Qt(E.injectImpl):null;ju(p,_,ct.Default);try{y=p[g]=E.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Yp(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const E=Go(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,E),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,E)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==R&&Qt(R),Zo(k),E.resolving=!1,Nu()}}return y}function Ko(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[mt]||ac(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[mt]||ac(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function ac(p){return le(p)?()=>{const m=ac(ne(p));return m&&m()}:Ve(p)}function zn(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function sc(p){return function Qu(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(Wu(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(xi(),p)}const ca="__parameters__";function ja(p,m,g){return Jn(()=>{const _=function lc(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const E=new y(...v);return k.annotation=E,k;function k(R,F,G){const X=R.hasOwnProperty(ca)?R[ca]:Object.defineProperty(R,ca,{value:[]})[ca];for(;X.length<=G;)X.push(null);return(X[G]=X[G]||[]).push(E),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class ei{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function tr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?Na(g,m):m(g))}function th(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Pd(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ts(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function ef(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Ld(p,m){const g=uo(p,m);if(g>=0)return p[1|g]}function uo(p,m){return function il(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),E=p[v<m?y=v:_=v+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return W}()?.createHTML(p)||p}function pa(p){return function nr(){if(void 0===Gi&&(Gi=null,de.trustedTypes))try{Gi=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Gi}()?.createHTML(p)||p}class sl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rA extends sl{getTypeName(){return"HTML"}}class aA extends sl{getTypeName(){return"Style"}}class sA extends sl{getTypeName(){return"Script"}}class f_ extends sl{getTypeName(){return"URL"}}class hf extends sl{getTypeName(){return"ResourceURL"}}function qa(p){return p instanceof sl?p.changingThisBreaksApplicationSecurity:p}function ol(p,m){const g=function oA(p){return p instanceof sl&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function lA(p){return new rA(p)}function cA(p){return new aA(p)}function dA(p){return new sA(p)}function pf(p){return new f_(p)}function m_(p){return new hf(p)}class ff{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class uA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Nd(m.trim())).join(", ")),this.buf.push(" ",E,'="',yf(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();_f.hasOwnProperty(g)&&!Ri.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(yf(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const h0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y_=/([^\#-~ |!])/g;function yf(p){return p.replace(/&/g,"&").replace(h0,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(y_,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let yh;function w_(p,m){let g=null;try{yh=yh||function gh(p){const m=new uA(p);return function hA(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new ff(m):m}(p);let _=m?String(m):"";g=yh.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=yh.getInertBodyElement(_)}while(_!==v);return we((new fo).sanitizeChildren(wf(g)||g))}finally{if(g){const _=wf(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function wf(p){return"content"in p&&function wh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var qi=(()=>((qi=qi||{})[qi.NONE=0]="NONE",qi[qi.HTML=1]="HTML",qi[qi.STYLE=2]="STYLE",qi[qi.SCRIPT=3]="SCRIPT",qi[qi.URL=4]="URL",qi[qi.RESOURCE_URL=5]="RESOURCE_URL",qi))();function C_(p){const m=Yd();return m?pa(m.sanitize(qi.HTML,p)||""):ol(p,"HTML")?pa(qa(p)):w_(function N(){return void 0!==H?H:typeof document<"u"?document:void 0}(),be(p))}function Cf(p){const m=Yd();return m?m.sanitize(qi.URL,p)||"":ol(p,"URL")?qa(p):Nd(be(p))}function Yd(){const p=xe();return p&&p[12]}const vf=new ei("ENVIRONMENT_INITIALIZER"),x_=new ei("INJECTOR",-1),wA=new ei("INJECTOR_DEF_TYPES");class Ch{get(m,g=nl){if(g===nl){const _=new Error(`NullInjectorError: No provider for ${j(m)}!`);throw _.name="NullInjectorError",_}return g}}function Mi(...p){return{\u0275providers:CA(0,p)}}function CA(p,...m){const g=[],_=new Set;let y;return Na(m,v=>{const E=v;Ah(E,g,[],_)&&(y||(y=[]),y.push(E))}),void 0!==y&&ll(y,g),g}function ll(p,m){for(let g=0;g{m.push(v)})}}function Ah(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,v=$s(p);const E=!v&&ti(p);if(v||E){if(E&&!E.standalone)return!1;y=p}else{const R=p.ngModule;if(v=$s(R),!v)return!1;y=R}const k=_.has(y);if(E){if(k)return!1;if(_.add(y),E.dependencies){const R="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const F of R)Ah(F,m,g,_)}}else{if(!v)return!1;{if(null!=v.imports&&!k){let F;_.add(y);try{Na(v.imports,G=>{Ah(G,m,g,_)&&(F||(F=[]),F.push(G))})}finally{}void 0!==F&&ll(F,m)}if(!k){const F=Ve(y)||(()=>new y);m.push({provide:y,useFactory:F,deps:et},{provide:wA,useValue:y,multi:!0},{provide:vf,useValue:()=>Pi(y),multi:!0})}const R=v.providers;null==R||k||Na(R,G=>{m.push(G)})}}return y!==p&&void 0!==p.providers}const zd=P({provide:String,useValue:P});function Tf(p){return null!==p&&"object"==typeof p&&zd in p}function yr(p){return"function"==typeof p}const cl=new ei("Set Injector scope."),mc={},vA={};let gc;function Ds(){return void 0===gc&&(gc=new Ch),gc}class wn{}class vh extends wn{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,E_(m,E=>this.processProvider(E)),this.records.set(x_,Wi(void 0,this)),y.has("environment")&&this.records.set(wn,Wi(void 0,this));const v=this.records.get(cl);null!=v&&"string"==typeof v.value&&this.scopes.add(v.value),this.injectorDefTypes=new Set(this.get(wA.multi,et,ct.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=da(this),_=Qt(void 0);try{return m()}finally{da(g),Qt(_)}}get(m,g=nl,_=ct.Default){this.assertNotDestroyed();const y=da(this),v=Qt(void 0);try{if(!(_&ct.SkipSelf)){let k=this.records.get(m);if(void 0===k){const R=function SA(p){return"function"==typeof p||"object"==typeof p&&p instanceof ei}(m)&&Kr(m);k=R&&this.injectableDefInScope(R)?Wi(S_(m),mc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&ct.Self?Ds():this.parent).get(m,g=_&ct.Optional&&g===nl?null:g)}catch(E){if("NullInjectorError"===E.name){if((E[ir]=E[ir]||[]).unshift(j(m)),y)throw E;return function af(p,m,g,_){const y=p[ir];throw m[sh]&&y.unshift(m[sh]),p.message=function sf(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=j(m);if(Array.isArray(m))y=m.map(j).join(" -> ");else if("object"==typeof m){let v=[];for(let E in m)if(m.hasOwnProperty(E)){let k=m[E];v.push(E+":"+("string"==typeof k?JSON.stringify(k):j(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(ah,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[ir]=null,p}(E,m,"R3InjectorError",this.source)}throw E}finally{Qt(v),da(y)}}resolveInjectorInitializers(){const m=da(this),g=Qt(void 0);try{const _=this.get(vf.multi,et,ct.Self);for(const y of _)y()}finally{da(m),Qt(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(j(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=yr(m=ne(m))?m:ne(m&&m.provide);const _=function D_(p){return Tf(p)?Wi(void 0,p.useValue):Wi(TA(p),mc)}(m);if(yr(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Wi(void 0,mc,!0),y.factory=()=>br(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===mc&&(g.value=vA,g.value=g.factory()),"object"==typeof g.value&&g.value&&function MA(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function S_(p){const m=Kr(p),g=null!==m?m.factory:Ve(p);if(null!==g)return g;if(p instanceof ei)throw new ie(204,!1);if(p instanceof Function)return function xf(p){const m=p.length;if(m>0)throw Ts(m,"?"),new ie(204,!1);const g=function Ws(p){const m=p&&(p[Hr]||p[hs]);if(m){const g=function pd(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function TA(p,m,g){let _;if(yr(p)){const y=ne(p);return Ve(y)||S_(y)}if(Tf(p))_=()=>ne(p.useValue);else if(function Ud(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...br(p.deps||[]));else if(function fa(p){return!(!p||!p.useExisting)}(p))_=()=>Pi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function xA(p){return!!p.deps}(p))return Ve(y)||S_(y);_=()=>new y(...br(p.deps))}return _}function Wi(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function f0(p){return!!p.\u0275providers}function E_(p,m){for(const g of p)Array.isArray(g)?E_(g,m):f0(g)?E_(g.\u0275providers,m):m(g)}class Cn{}class xh{resolveComponentFactory(m){throw function Th(p){const m=Error(`No component factory found for ${j(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let qr=(()=>{class p{}return p.NULL=new xh,p})();function $a(){return wr(xi(),xe())}function wr(p,m){return new rr(Et(p,m))}let rr=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=$a,p})();function m0(p){return p instanceof rr?p.nativeElement:p}class DA{}let EA=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function HA(){const p=xe(),g=Bt(xi().index,p);return(mn(g)?g:p)[11]}(),p})(),g0=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class kA{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const _0=new kA("14.1.2"),H_={};function O_(p){return p.ngOriginalError}class Mh{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&O_(m);for(;g&&O_(g);)g=O_(g);return g||null}}const B_=new Map;let H0=0;const F_="__ngContext__";function Un(p,m){mn(m)?(p[F_]=m[20],function P0(p){B_.set(p[20],p)}(m)):p[F_]=m}function Sh(p){const m=p[F_];return"number"==typeof m?function BA(p){return B_.get(p)||null}(m):m||null}function j_(p){const m=Sh(p);return m?mn(m)?m:m.lView:null}const F0=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function UA(p){return p.ownerDocument.defaultView}function go(p){return p instanceof Function?p():p}var Es=(()=>((Es=Es||{})[Es.Important=1]="Important",Es[Es.DashCase=2]="DashCase",Es))();function Y_(p,m){return undefined(p,m)}function Dh(p){const m=p[3];return jn(m)?m[3]:m}function z_(p){return $A(p[13])}function U_(p){return $A(p[4])}function $A(p){for(;null!==p&&!jn(p);)p=p[4];return p}function Wd(p,m,g,_,y){if(null!=_){let v,E=!1;jn(_)?v=_:mn(_)&&(E=!0,_=_[0]);const k=Qe(_);0===p&&null!==g?null==y?Fe(m,g,k):Ke(m,g,k,y||null,!0):1===p&&null!==g?Ke(m,g,k,y||null,!0):2===p?function K_(p,m,g){const _=ji(p,m);_&&function Z_(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,k,E):3===p&&m.destroyNode(k),null!=v&&function tb(p,m,g,_,y){const v=g[7];v!==Qe(g)&&Wd(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Pd(p,10+m);!function $0(p,m){yc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const E=v[19];null!==E&&E.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $i(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&yc(p,m,g,3,null,null),function Q0(p){let m=p[13];if(!m)return dl(p[1],p);for(;m;){let g=null;if(mn(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)mn(m)&&dl(m[1],m),m=m[3];null===m&&(m=p),mn(m)&&dl(m[1],m),g=m&&m[4]}m=g}}(m)}}function dl(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function ul(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const E=_[y=g[v+1]];g[v].call(E)}if(null!==_){for(let v=y+1;v<_.length;v++)(0,_[v])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&jn(m[3])){g!==m[3]&&JA(g,m);const _=m[19];null!==_&&_.detachView(p)}!function VA(p){B_.delete(p[20])}(m)}}function W_(p,m,g){return function $_(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===te.None||y===te.Emulated)return null}return Et(_,g)}(p,m.parent,g)}function Ke(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Fe(p,m,g){p.appendChild(m,g)}function Fi(p,m,g,_,y){null!==_?Ke(p,m,g,_,y):Fe(p,m,g)}function ji(p,m){return p.parentNode(m)}function J_(p,m,g){return Q_(p,m,g)}let Q_=function Hf(p,m,g){return 40&p.type?Et(p,g):null};function kf(p,m,g,_){const y=W_(p,_,m),v=m[11],k=J_(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[X+1].toLowerCase();const pe=8&_?oe:null;if(pe&&-1!==KA(pe,F,0)||2&_&&F!==oe){if(Wr(_))return!1;E=!0}}}}else{if(!E&&!Wr(_)&&!Wr(R))return!1;if(E&&Wr(R))continue;E=!1,_=R|1&_}}return Wr(_)||E}function Wr(p){return 0==(1&p)}function ev(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+E:4&_&&(y+=" "+E);else""!==y&&!Wr(E)&&(m+=rb(v,y),y=""),_=E,v=v||!Wr(_);g++}return""!==y&&(m+=rb(v,y)),m}const kt={};function Bf(p){Vf(Ht(),xe(),an()+p,!1)}function Vf(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&ao(m,v,g)}else{const v=p.preOrderHooks;null!==v&&ws(m,v,0,g)}Vr(g)}function lv(p,m=null,g=null,_){const y=cv(p,m,g,_);return y.resolveInjectorInitializers(),y}function cv(p,m=null,g=null,_,y=new Set){const v=[g||et,Mi(p)];return _=_||("object"==typeof p?void 0:j(p)),new vh(v,m||Ds(),_||null,y)}let Za=(()=>{class p{static create(g,_){if(Array.isArray(g))return lv({name:""},_,g,"");{const y=g.name??"";return lv({name:y},g.parent,g.providers,y)}}}return p.THROW_IF_NOT_FOUND=nl,p.NULL=new Ch,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Pi(x_)}),p.__NG_ELEMENT_ID__=-1,p})();function Ac(p,m=ct.Default){const g=xe();return null===g?Pi(p,m):Qo(xi(),g,ne(p),m)}function fb(){throw new Error("invalid")}function Ph(p,m){return p<<17|m<<2}function ma(p){return p>>17&32767}function ot(p){return 2|p}function bo(p){return(131068&p)>>2}function gb(p,m){return-131069&p|m<<2}function sr(p){return 1|p}function Qf(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&Vf(p,m,22,!1),g(_,y)}finally{Vr(v)}}function _a(p,m,g){if(na(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=R&&k.push(R),k.push(_,y,E)}}function Lb(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Ib(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Bh(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&Vb(g)}}function Vb(p){for(let _=z_(p);null!==_;_=U_(_))for(let y=10;y<_.length;y++){const v=_[y];if(q(v))if(512&v[2]){const E=v[1];iu(E,v,E.template,v[8])}else v[5]>0&&Vb(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&Vb(y)}}function yS(p,m){const g=Bt(m,p),_=g[1];(function Ov(p,m){for(let g=m.length;gPromise.resolve(null))();function Fv(p){return p[7]||(p[7]=[])}function jv(p){return p.cleanup||(p.cleanup=[])}function Ka(p,m,g){return(null===p||Nn(p))&&(g=function Dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function _l(p,m){const g=p[9],_=g?g.get(Mh,null):null;_&&_.handleError(m)}function Nb(p,m,g,_,y){for(let v=0;v-1&&(Sf(m,_),Pd(g,_))}this._attachedToViewContainer=!1}$i(this._lView[1],this._lView)}onDestroy(m){im(this._lView[1],this._lView,null,m)}markForCheck(){gl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Fb(p,m,g){const _=m[10];_.begin&&_.begin();try{iu(p,m,p.template,g)}catch(y){throw _l(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function J0(p,m){yc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class CS extends Fh{constructor(m){super(m),this._view=m}detectChanges(){Vv(this._view)}checkNoChanges(){}get context(){return null}}class nu extends qr{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ti(m);return new yl(g,this.ngModule)}}function bl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class Nv{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,H_,_);return y!==H_||g===H_?y:this.parentInjector.get(m,g,_)}}class yl extends Cn{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function rv(p){return p.map(nv).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return bl(this.componentDef.inputs)}get outputs(){return bl(this.componentDef.outputs)}create(m,g,_,y){let v=(y=y||this.ngModule)instanceof wn?y:y?.injector;v&&null!==this.componentDef.getStandaloneInjector&&(v=this.componentDef.getStandaloneInjector(v)||v);const E=v?new Nv(m,v):m,k=E.get(DA,null);if(null===k)throw new ie(407,!1);const R=E.get(g0,null),F=k.createRenderer(null,this.componentDef),G=this.componentDef.selectors[0][0]||"div",X=_?function Qa(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(F,_,this.componentDef.encapsulation):q_(k.createRenderer(null,this.componentDef),G,function Co(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(G)),oe=this.componentDef.onPush?288:272,pe=function SS(p,m){return{components:[],scheduler:p||F0,clean:wS,playerHandler:m||null,flags:0}}(),Te=tm(0,null,null,1,0,null,null,null,null,null),Ie=Lh(null,Te,pe,oe,null,null,k,F,R,E,null);let qe,Xe;io(Ie);try{const bt=function MS(p,m,g,_,y,v){const E=g[1];g[22]=p;const R=Sc(E,22,2,"#host",null),F=R.mergedAttrs=m.hostAttrs;null!==F&&(sm(R,F,!0),null!==p&&(oa(y,p,F),null!==R.classes&&wc(y,p,R.classes),null!==R.styles&&ib(y,p,R.styles)));const G=_.createRenderer(p,m),X=Lh(g,em(m),null,m.onPush?32:16,g[22],R,_,G,v||null,null,null);return E.firstCreatePass&&(ic(Jo(R,g),E,m.type),Ib(E,R),Ob(R,g.length,1)),yo(g,X),g[22]=X}(X,this.componentDef,Ie,k,F);if(X)if(_)oa(F,X,["ng-version",_0.full]);else{const{attrs:He,classes:ut}=function av(p){const m=[],g=[];let _=1,y=2;for(;_0&&wc(F,X,ut.join(" "))}if(Xe=er(Te,22),void 0!==g){const He=Xe.projection=[];for(let ut=0;ut=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=$o(y.hostAttrs,g=$o(g,y.hostAttrs))}}(_)}function Yb(p){return p===At?{}:p===et?[]:p}function zv(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function zb(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function lm(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let vo=null;function Ec(){if(!vo){const p=de.Symbol;if(p&&p.iterator)vo=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(Qe(qt[_.index])):_.index;let ut=null;if(!k&&R&&(ut=function Zv(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof E&&(v+=2)}return null}(p,m,y,_.index)),null!==ut)(ut.__ngLastListenerFn__||ut).__ngNextListenerFn__=v,ut.__ngLastListenerFn__=v,pe=!1;else{v=Qb(_,m,X,v,!1);const qt=g.listen(Xe,y,v);oe.push(v,qt),G&&G.push(y,He,bt,bt+1)}}else v=Qb(_,m,X,v,!1);const Te=_.outputs;let Ie;if(pe&&null!==Te&&(Ie=Te[y])){const qe=Ie.length;if(qe)for(let Xe=0;Xe0;)m=m[15],p--;return m}(p,ge.lFrame.contextLView))[8]}(p)}function Jv(p,m){let g=null;const _=function eS(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const pn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wa(p){return p.substring(pn.key,pn.keyEnd)}function Xv(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function cy(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),Oc(p,m,g))}function Oc(p,m,g){for(;m=0;g=Xv(m,g))kn(p,wa(m),!0)}function is(p,m,g,_){const y=xe(),v=Ht(),E=gr(2);v.firstUpdatePass&&hy(v,p,E,_),m!==kt&&on(y,E,m)&&gy(v,v.data[an()],y,y[11],p,y[E+1]=function Mo(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=j(qa(p)))),p}(m,g),_,E)}function Tr(p,m,g,_){const y=Ht(),v=gr(2);y.firstUpdatePass&&hy(y,null,v,_);const E=xe();if(g!==kt&&on(E,v,g)){const k=y.data[an()];if(xm(k,_)&&!Fc(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=z(R,g||"")),Mt(y,k,E,g,_)}else!function iT(p,m,g,_,y,v,E,k){y===kt&&(y=et);let R=0,F=0,G=0=p.expandoStartIndex}function hy(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[an()],E=Fc(p,g);xm(v,_)&&null===m&&!E&&(m=!1),m=function tT(p,m,g,_){const y=aa(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=ou(g=Tn(null,p,m,g,_),m.attrs,_),v=null);else{const E=m.directiveStylingLast;if(-1===E||p[E]!==y)if(g=Tn(y,p,m,g,_),null===v){let R=function Tm(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==bo(_))return p[ma(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=Tn(null,p,m,R[1],_),R=ou(R,m.attrs,_),function py(p,m,g,_){p[ma(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else v=function xl(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else G=g;if(y)if(0!==R){const oe=ma(p[k+1]);p[_+1]=Ph(oe,k),0!==oe&&(p[oe+1]=gb(p[oe+1],_)),p[k+1]=function gv(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=Ph(k,0),0!==k&&(p[k+1]=gb(p[k+1],_)),k=_;else p[_+1]=Ph(R,0),0===k?k=_:p[R+1]=gb(p[R+1],_),R=_;F&&(p[_+1]=ot(p[_+1])),sy(p,G,_,!0),sy(p,G,_,!1),function PS(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&uo(v,m)>=0&&(g[_+1]=sr(g[_+1]))}(m,G,p,_,v),E=Ph(k,R),v?m.classBindings=E:m.styleBindings=E}(y,v,m,g,E,_)}}function Tn(p,m,g,_,y){let v=null;const E=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],F=Array.isArray(R),G=F?R[1]:R,X=null===G;let oe=g[y+1];oe===kt&&(oe=X?et:void 0);let pe=X?Ld(oe,_):G===_?oe:void 0;if(F&&!Zh(pe)&&(pe=Ld(R,_)),Zh(pe)&&(k=pe,E))return k;const Te=p[y+1];y=E?ma(Te):bo(Te)}if(null!==m){let R=v?m.residualClasses:m.residualStyles;null!=R&&(k=Ld(R,_))}return k}function Zh(p){return void 0!==p}function xm(p,m){return 0!=(p.flags&(m?16:32))}function ln(p,m=""){const g=xe(),_=Ht(),y=p+22,v=_.firstCreatePass?Sc(_,y,1,m,null):_.data[y],E=g[y]=function G_(p,m){return p.createText(m)}(g[11],m);kf(_,g,E,v),Xt(v,!1)}function ns(p){return Jh("",p,""),ns}function Jh(p,m,g){const _=xe(),y=Cl(_,p,m,g);return y!==kt&&wo(_,an(),y),Jh}function Li(p,m,g,_,y){const v=xe(),E=function au(p,m,g,_,y,v){const k=xo(p,Br(),g,y);return gr(2),k?m+be(g)+_+be(y)+v:kt}(v,p,m,g,_,y);return E!==kt&&wo(v,an(),E),Li}function Qh(p,m,g,_,y,v,E,k,R,F,G){const X=xe(),oe=Hc(X,p,m,g,_,y,v,E,k,R,F,G);return oe!==kt&&wo(X,an(),oe),Qh}function Pm(p,m,g){Tr(kn,si,Cl(xe(),p,m,g),!0)}function lu(p,m,g){const _=xe();return on(_,bs(),m)&&vn(Ht(),ki(),_,p,m,_[11],g,!0),lu}function jc(p,m,g){const _=xe();if(on(_,bs(),m)){const v=Ht(),E=ki();vn(v,E,_,p,m,Ka(aa(v.data),E,_),g,!0)}return jc}const Ml=void 0;var sT=["en",[["a","p"],["AM","PM"],Ml],[["AM","PM"],Ml,Ml],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ml,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ml,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ml,"{1} 'at' {0}",Ml],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jm(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let cu={};function Dy(p){const m=function Ey(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=lT(m);if(g)return g;const _=m.split("-")[0];if(g=lT(_),g)return g;if("en"===_)return sT;throw new ie(701,!1)}function oT(p){return Dy(p)[ft.PluralCase]}function lT(p){return p in cu||(cu[p]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[p]),cu[p]}var ft=(()=>((ft=ft||{})[ft.LocaleId=0]="LocaleId",ft[ft.DayPeriodsFormat=1]="DayPeriodsFormat",ft[ft.DayPeriodsStandalone=2]="DayPeriodsStandalone",ft[ft.DaysFormat=3]="DaysFormat",ft[ft.DaysStandalone=4]="DaysStandalone",ft[ft.MonthsFormat=5]="MonthsFormat",ft[ft.MonthsStandalone=6]="MonthsStandalone",ft[ft.Eras=7]="Eras",ft[ft.FirstDayOfWeek=8]="FirstDayOfWeek",ft[ft.WeekendRange=9]="WeekendRange",ft[ft.DateFormat=10]="DateFormat",ft[ft.TimeFormat=11]="TimeFormat",ft[ft.DateTimeFormat=12]="DateTimeFormat",ft[ft.NumberSymbols=13]="NumberSymbols",ft[ft.NumberFormats=14]="NumberFormats",ft[ft.CurrencyCode=15]="CurrencyCode",ft[ft.CurrencySymbol=16]="CurrencySymbol",ft[ft.CurrencyName=17]="CurrencyName",ft[ft.Currencies=18]="Currencies",ft[ft.Directionality=19]="Directionality",ft[ft.PluralCase=20]="PluralCase",ft[ft.ExtraData=21]="ExtraData",ft))();const Nc="en-US";let tp=Nc;function ig(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let v=0;v>20;if(yr(p)||!p.multi){const pe=new _r(R,y,Ac),Te=ng(k,m,y?G:G+oe,X);-1===Te?(ic(Jo(F,E),v,k),$y(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),E.push(pe)):(g[Te]=pe,E[Te]=pe)}else{const pe=ng(k,m,G+oe,X),Te=ng(k,m,G,G+oe),Ie=pe>=0&&g[pe],qe=Te>=0&&g[Te];if(y&&!qe||!y&&!Ie){ic(Jo(F,E),v,k);const Xe=function ET(p,m,g,_,y){const v=new _r(p,g,Ac);return v.multi=[],v.index=m,v.componentProviders=0,cp(v,y,_&&!g),v}(y?Jy:Zy,g.length,y,_,R);!y&&qe&&(g[Te].providerFactory=Xe),$y(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(Xe),E.push(Xe)}else $y(v,p,pe>-1?pe:Te,cp(g[y?Te:pe],R,!y&&_));!y&&_&&qe&&g[Te].componentProviders++}}}function $y(p,m,g,_){const y=yr(m),v=function M_(p){return!!p.useClass}(m);if(y||v){const R=(v?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const G=F.indexOf(g);-1===G?F.push(g,[_,R]):F[G+1].push(_,R)}else F.push(g,R)}}}function cp(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function ng(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function Zy(p,m,g,_){return Is(this.multi,[])}function Jy(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const E=this.providerFactory.componentProviders,k=Yr(g,g[1],this.providerFactory.index,_);v=k.slice(0,E),Is(y,v);for(let R=E;R{g.providersResolver=(_,y)=>function Wy(p,m,g){const _=Ht();if(_.firstCreatePass){const y=Nn(p);ig(g,_.data,_.blueprint,y,!0),ig(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class Gc{}class ag{}function HT(p,m){return new rs(p,m??null)}class rs extends Gc{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new nu(this);const _=Ne(m);this._bootstrapComponents=go(_.bootstrap),this._r3Injector=cv(m,g,[{provide:Gc,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],j(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class qc extends ag{constructor(m){super(),this.moduleType=m}create(m){return new rs(this.moduleType,m)}}class kT extends Gc{constructor(m,g,_){super(),this.componentFactoryResolver=new nu(this),this.instance=null;const y=new vh([...m,{provide:Gc,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],g||Ds(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function dp(p,m,g=null){return new kT(p,m,g).injector}function tw(p,m,g){const _=yn()+p,y=xe();return y[_]===kt?es(y,_,g?m.call(g):m()):function To(p,m){return p[m]}(y,_)}function iw(p,m,g,_){return zT(xe(),yn(),p,m,g,_)}function nw(p,m,g,_,y){return UT(xe(),yn(),p,m,g,_,y)}function up(p,m){const g=p[m];return g===kt?void 0:g}function zT(p,m,g,_,y,v){const E=m+g;return on(p,E,y)?es(p,E+1,v?_.call(v,y):_(y)):up(p,E+1)}function UT(p,m,g,_,y,v,E){const k=m+g;return xo(p,k,y,v)?es(p,k+2,E?_.call(E,y,v):_(y,v)):up(p,k+2)}function dg(p,m,g,_,y,v,E,k){const R=m+g;return function Yh(p,m,g,_,y){const v=xo(p,m,g,_);return on(p,m+2,y)||v}(p,R,y,v,E)?es(p,R+3,k?_.call(k,y,v,E):_(y,v,E)):up(p,R+3)}function aw(p,m){const g=Ht();let _;const y=p+22;g.firstCreatePass?(_=function GT(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Ve(_.type)),E=Qt(Ac);try{const k=Zo(!1),R=v();return Zo(k),function zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,xe(),y,R),R}finally{Qt(E)}}function gu(p,m,g){const _=p+22,y=xe(),v=En(y,_);return _u(y,_)?zT(y,yn(),m,v.transform,g,v):v.transform(g)}function ug(p,m,g,_){const y=p+22,v=xe(),E=En(v,y);return _u(v,y)?UT(v,yn(),m,E.transform,g,_,E):E.transform(g,_)}function sw(p,m,g,_,y){const v=p+22,E=xe(),k=En(E,v);return _u(E,v)?dg(E,yn(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function _u(p,m){return p[1].data[m].pure}function hg(p){return m=>{setTimeout(p,void 0,m)}}const Os=class ZT extends C.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,v=g||(()=>null),E=_;if(m&&"object"==typeof m){const R=m;y=R.next?.bind(R),v=R.error?.bind(R),E=R.complete?.bind(R)}this.__isAsync&&(v=hg(v),y&&(y=hg(y)),E&&(E=hg(E)));const k=super.subscribe({next:y,error:v,complete:E});return m instanceof i.w0&&m.add(k),k}};function JT(){return this._results[Ec()]()}class ko{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Ec(),_=ko.prototype;_[g]||(_[g]=JT)}get changes(){return this._changes||(this._changes=new Os)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=tr(m);(this._changesDetected=!function eh(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=$S,p})();const QT=Po,KT=class extends QT{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Lh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[19];return null!==E&&(y[19]=E.createEmbeddedView(_)),Ih(_,y,m),new Fh(y)}};function $S(){return bu(xi(),xe())}function bu(p,m){return 4&p.type?new KT(m,p,wr(p,m)):null}let yu=(()=>{class p{}return p.__NG_ELEMENT_ID__=XT,p})();function XT(){return lw(xi(),xe())}const ZS=yu,pg=class extends ZS{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){const m=tc(this._hostTNode,this._hostLView);if(ec(m)){const g=Fa(m,this._hostLView),_=jr(m);return new Hn(g[1].data[_+8],g)}return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=ow(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,v;"number"==typeof _?y=_:null!=_&&(y=_.index,v=_.injector);const E=m.createEmbeddedView(g||{},v);return this.insert(E,y),E}createComponent(m,g,_,y,v){const E=m&&!function tl(p){return"function"==typeof p}(m);let k;if(E)k=g;else{const X=g||{};k=X.index,_=X.injector,y=X.projectableNodes,v=X.environmentInjector||X.ngModuleRef}const R=E?m:new yl(ti(m)),F=_||this.parentInjector;if(!v&&null==R.ngModule){const oe=(E?F:this.parentInjector).get(wn,null);oe&&(v=oe)}const G=R.create(F,y,void 0,v);return this.insert(G.hostView,k),G}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return jn(p[3])}(_)){const G=this.indexOf(m);if(-1!==G)this.detach(G);else{const X=_[3],oe=new pg(X,X[6],X[3]);oe.detach(oe.indexOf(m))}}const v=this._adjustIndex(g),E=this._lContainer;!function K0(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(E[k/2]);else{const F=v[k+1],G=m[-R];for(let X=10;X{class p{constructor(g){this.appInits=g,this.resolve=Tu,this.reject=Tu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:R})});g.push(E)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Pi(Vs,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Sg=new ei("AppId",{providedIn:"root",factory:function xu(){return`${td()}${td()}${td()}`}});function td(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dg=new ei("Platform Initializer"),Pw=new ei("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bp=new ei("appBootstrapListener"),Eg=new ei("AnimationModuleType");let Hg=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const kg=new ei("LocaleId",{providedIn:"root",factory:()=>lh(kg,ct.Optional|ct.SkipSelf)||function Yi(){return typeof $localize<"u"&&$localize.locale||Nc}()}),St=new ei("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class yx{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let wp=(()=>{class p{compileModuleSync(g){return new qc(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=go(Ne(g).declarations).reduce((E,k)=>{const R=ti(k);return R&&E.push(new yl(R)),E},[]);return new yx(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Cx=(()=>Promise.resolve(0))();function Lg(p){typeof Zone>"u"?Cx.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class $n{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const v=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new v("Angular"))}Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function Iw(){let p=de.requestAnimationFrame,m=de.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function vx(p){const m=()=>{!function id(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(de,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Ll(p),p.isCheckStableRunning=!0,Ig(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Ll(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,E,k)=>{try{return Ow(p),g.invokeTask(y,v,E,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),Bw(p)}},onInvoke:(g,_,y,v,E,k,R)=>{try{return Ow(p),g.invoke(y,v,E,k,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),Bw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Ll(p),Ig(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$n.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if($n.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,E=v.scheduleEventTask("NgZoneEvent: "+y,m,Ax,Tu,Tu);try{return v.runTask(E,g,_)}finally{v.cancelTask(E)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const Ax={};function Ig(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Ll(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Ow(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function Bw(p){p._nesting--,Ig(p)}class In{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}const Vw=new ei(""),Zr=new ei("");let Bg,Tx=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Bg||(function cD(p){Bg=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$n.assertNotInAngularZone(),Lg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Lg(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Pi($n),Pi(Og),Pi(Zr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),Og=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return Bg?.findTestabilityInTree(this,g,_)??null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Lo=null;const Fw=new ei("AllowMultipleToken"),Vg=new ei("PlatformDestroyListeners");class Sr{constructor(m,g){this.name=m,this.token=g}}function Io(p,m,g=[]){const _=`Platform: ${m}`,y=new ei(_);return(v=[])=>{let E=jw();if(!E||E.injector.get(Fw,!1)){const k=[...g,...v,{provide:y,useValue:!0}];p?p(k):function Dr(p){if(Lo&&!Lo.get(Fw,!1))throw new ie(400,!1);Lo=p;const m=p.get(Dx);(function Mu(p){const m=p.get(Dg,null);m&&m.forEach(g=>g())})(p)}(function Sx(p=[],m){return Za.create({name:m,providers:[{provide:cl,useValue:"platform"},{provide:Vg,useValue:new Set([()=>Lo=null])},...p]})}(k,_))}return function uD(p){const m=jw();if(!m)throw new ie(401,!1);return m}()}}function jw(){return Lo?.get(Dx)??null}let Dx=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function Nw(p,m){let g;return g="noop"===p?new In:("zone.js"===p?void 0:p)||new $n(m),g}(_?.ngZone,function Ex(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),v=[{provide:$n,useValue:y}];return y.run(()=>{const E=Za.create({providers:v,parent:this.injector,name:g.moduleType.name}),k=g.create(E),R=k.injector.get(Mh,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const F=y.onError.subscribe({next:G=>{R.handleError(G)}});k.onDestroy(()=>{jg(this._modules,k),F.unsubscribe()})}),function Yw(p,m,g){try{const _=g();return Gh(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const F=k.injector.get(ed);return F.runInitializers(),F.donePromise.then(()=>(function Ym(p){ni(p,"Expected localeId to be defined"),"string"==typeof p&&(tp=p.toLowerCase().replace(/_/g,"-"))}(k.injector.get(kg,Nc)||Nc),this._moduleDoBootstrap(k),k))})})}bootstrapModule(g,_=[]){const y=Hx({},_);return function xx(p,m,g){const _=new qc(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Fg);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Vg,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Pi(Za))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function Hx(p,m){return Array.isArray(m)?m.reduce(Hx,p):{...p,...m}}let Fg=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const v=new D.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),E=new D.y(k=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{$n.assertNotInAngularZone(),Lg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{$n.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{R.unsubscribe(),F.unsubscribe()}});this.isStable=(0,M.T)(v,E.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Cn;if(!this._injector.get(ed).done)throw!y&&as(g),new ie(405,false);let E;E=y?g:this._injector.get(qr).resolveComponentFactory(g),this.componentTypes.push(E.componentType);const k=function Mr(p){return p.isBoundToModule}(E)?void 0:this._injector.get(Gc),F=E.create(Za.NULL,[],_||E.selector,k),G=F.location.nativeElement,X=F.injector.get(Vw,null);return X?.registerApplication(G),F.onDestroy(()=>{this.detachView(F.hostView),jg(this.components,F),X?.unregisterApplication(G)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;jg(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(bp,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>jg(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Pi($n),Pi(wn),Pi(Mh))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function jg(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let Uw=!0;function hD(){Uw=!1}let fD=(()=>{class p{}return p.__NG_ELEMENT_ID__=mD,p})();function mD(p){return function Px(p,m,g){if(Ha(p)&&!g){const _=Bt(p.index,m);return new Fh(_,_)}return 47&p.type?new Fh(m[16],m):null}(xi(),xe(),16==(16&p))}class Bx{constructor(){}supports(m){return ru(m)}create(m){return new $w(m)}}const yD=(p,m)=>m;class $w{constructor(m){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=m||yD}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const E=!_||g&&g.currentIndex{E=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,E)?(_&&(g=this._verifyReinsertion(g,k,E,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,E,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new wD(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new Fx),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fx),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class wD{constructor(m,g){this.item=m,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Vx{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class Fx{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new Vx,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jx(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,E=y._next;return v&&(v._next=E),E&&(E._prev=v),y._next=null,y._prev=null,y}const _=new Nx(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class Nx{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Qw(){return new Kw([new Bx])}let Kw=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||Qw()),deps:[[p,new Ss,new ho]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Qw}),p})();function Yx(){return new Xw([new Zw])}let Xw=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||Yx()),deps:[[p,new Ss,new ho]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Yx}),p})();const AD=Io(null,"core",[]);let vD=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Pi(Fg))},p.\u0275mod=dr({type:p}),p.\u0275inj=vi({}),p})();function TD(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let U;return function(C){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(C||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,C){this.data.set(x,C)}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(U){this.type=U}}class OAuthSuccessEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(U,x,C=null){super(U),this.reason=x,this.params=C}}function b64DecodeUnicode(Y){const U=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(U).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(U){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},U&&Object.assign(this,U)}}class WebHttpUrlEncodingCodec{encodeKey(U){return encodeURIComponent(U)}encodeValue(U){return encodeURIComponent(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(U){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let C=x.inferHashAlgorithm(U.idTokenHeader),i=yield x.calcHash(U.accessToken,C),M=base64UrlEncode(i.substr(0,i.length/2)),S=U.idTokenClaims.at_hash.replace(/=/g,"");return M!==S&&(console.error("exptected at_hash: "+M),console.error("actual at_hash: "+S)),M===S})()}inferHashAlgorithm(U){let x=U.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(x){let C=x||window.location.hash;if(C=decodeURIComponent(C),0!==C.indexOf("#"))return{};const i=C.indexOf("?");return C=C.substr(i>-1?i+1:1),this.parseQueryString(C)}parseQueryString(x){const C={};let i,D,M,S,P,L,j;if(null===x)return C;i=x.split("&");for(let z=0;z>6,D[S++]=128|63&P):P<55296||P>=57344?(D[S++]=224|P>>12,D[S++]=128|P>>6&63,D[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&Y.charCodeAt(++C)),D[S++]=240|P>>18,D[S++]=128|P>>12&63,D[S++]=128|P>>6&63,D[S++]=128|63&P);Y=D}else{if("object"!==i)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(U,!0).update(Y).array());var L=[],j=[];for(C=0;C<64;++C){var z=Y[C]||0;L[C]=92^z,j[C]=54^z}Sha256.call(this,U,x),this.update(j),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(Y){if(!this.finalized){var U,x=typeof Y;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);U=!0}for(var C,D,i=0,M=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=C<>2]|=(192|C>>6)<>2]|=(128|63&C)<=57344?(S[D>>2]|=(224|C>>12)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<>2]|=(240|C>>18)<>2]|=(128|C>>12&63)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<=64?(this.block=S[16],this.start=D-64,this.hash(),this.hashed=!0):this.start=D}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,U=this.lastByteIndex;Y[16]=this.block,Y[U>>2]|=EXTRA[3&U],this.block=Y[16],U>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var L,Q,re,ie,me,be,Y=this.h0,U=this.h1,x=this.h2,C=this.h3,i=this.h4,D=this.h5,M=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+(((Q=P[L-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+P[L-7]+(((Q=P[L-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(be=U&x,L=0;L<64;L+=4)this.first?(this.is224?(re=300032,S=(Q=P[0]-1413257819)-150054599<<0,C=Q+24177077<<0):(re=704751109,S=(Q=P[0]-210244248)-1521486534<<0,C=Q+143694565<<0),this.first=!1):(S=C+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&D^~i&M)+K[L]+P[L])<<0,C=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((re=Y&U)^Y&x^be))<<0),M=x+(Q=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&D)+K[L+1]+P[L+1])<<0,x=Q+(((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+((ie=C&Y)^C&U^re))<<0,D=U+(Q=D+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+P[L+2])<<0,U=Q+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((me=x&C)^x&Y^ie))<<0,i=Y+(Q=i+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&M^~D&S)+K[L+3]+P[L+3])<<0,Y=Q+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((be=U&x)^U&C^me))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+x<<0,this.h3=this.h3+C<<0,this.h4=this.h4+i<<0,this.h5=this.h5+D<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,C=this.h3,i=this.h4,D=this.h5,M=this.h6,S=this.h7,P=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[15&U]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,C=this.h3,i=this.h4,D=this.h5,M=this.h6,S=this.h7,P=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,U>>24&255,U>>16&255,U>>8&255,255&U,x>>24&255,x>>16&255,x>>8&255,255&x,C>>24&255,C>>16&255,C>>8&255,255&C,i>>24&255,i>>16&255,i>>8&255,255&i,D>>24&255,D>>16&255,D>>8&255,255&D,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),U=new DataView(Y);return U.setUint32(0,this.h0),U.setUint32(4,this.h1),U.setUint32(8,this.h2),U.setUint32(12,this.h3),U.setUint32(16,this.h4),U.setUint32(20,this.h5),U.setUint32(24,this.h6),this.is224||U.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var U,x=Y,C=new Uint8Array(x.length);for(U=0;U{class Y{calcHash(x,C){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})()}toHashString2(x){let C="";for(let i of x)C+=String.fromCharCode(i);return C}toHashString(x){const C=new Uint8Array(x);let i="";for(let D of C)i+=String.fromCharCode(D);return i}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(x,C,i,D,M,S,P,L,j,z){super(),this.ngZone=x,this.http=C,this.config=M,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=z,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=j,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),D&&(this.tokenValidationHandler=D),M&&this.configure(M);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(J){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",J)}if(this.checkLocalStorageAccessable()){const J=window?.navigator?.userAgent;(J?.includes("MSIE ")||J?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const x="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(x,x),localStorage.removeItem(x),0))}catch{return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},C,i=!0){let D=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?D=!0:"logout"===M.type&&(D=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==C||"any"===C||M.info===C)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{D&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,C){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,C):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(C=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(C=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const C=[],i=this.validateUrlForHttps(x),D=this.validateUrlAgainstIssuer(x);return i||C.push("https for all urls required. Also for urls received by discovery."),D||C.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),C}validateUrlForHttps(x){if(!x)return!0;const C=x.toLowerCase();return!(!1!==this.requireHttps&&(!C.match(/^http:\/\/localhost($|[:\/])/)&&!C.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||C.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,C){if(!x)throw new Error(`'${C}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${C}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),C=this.getAccessTokenStoredAt(),i=this.calcTimeout(C,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),C=this.getIdTokenStoredAt(),i=this.calcTimeout(C,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,C){const i=this.dateTimeService.now();return Math.max(0,(C-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((C,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(D=>{if(!this.validateDiscoveryDocument(D))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=D.authorization_endpoint,this.logoutUrl=D.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=D.grant_types_supported,this.issuer=D.issuer,this.tokenEndpoint=D.token_endpoint,this.userinfoEndpoint=D.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=D.jwks_uri,this.sessionCheckIFrameUrl=D.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(D),this.revocationEndpoint=D.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:D,jwks:M});this.eventsSubject.next(P),C(P)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},D=>{this.logger.error("error loading discovery document",D),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),i(D)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,C)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),C(i)}):x(null)})}validateDiscoveryDocument(x){let C;return this.skipIssuerCheck||x.issuer===this.issuer?(C=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),C.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),C.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(x.token_endpoint),C.length>0&&this.logger.error("error validating token_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),C.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),C.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(x.jwks_uri),C.length>0?(this.logger.error("error validating jwks_uri in discovery document",C),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,C,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,C)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(D=>{if(this.debug("userinfo received",JSON.stringify(D)),D.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(D.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.sub))return void C("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},S,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(D.body))},D=>{this.logger.error("error loading user info",D),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",D)),C(D)})})}fetchTokenUsingPasswordFlow(x,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:C},i)}fetchTokenUsingGrant(x,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let D=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(D=D.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(D=D.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))D=D.set(M,this.customQueryParams[M]);for(const M of Object.keys(C))D=D.set(M,C[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,D,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),M(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,C)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),D=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);D=D.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,i,{headers:D}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),C(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const C=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:C,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},C=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const D=this.document.getElementById(this.silentRefreshIFrameName);D&&this.document.body.removeChild(D),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,C,x).then(z=>{M.setAttribute("src",z),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(z=>z instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(z=>"token_received"===z.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,L,j]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(z=>{if(z instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===z.type||(z=new OAuthErrorEvent("silent_refresh_error",z)),this.eventsSubject.next(z),z;return"token_received"===z.type&&(z=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(z)),z})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(C=>new Promise((i,D)=>{let P,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=C):S=window.open(C,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{z(),i(!0)},le=>{z(),D(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(z(),D(new OAuthErrorEvent("popup_closed",{})))},500):D(new OAuthErrorEvent("popup_blocked",{}));const z=()=>{window.clearInterval(P),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),L(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),L(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(x){const C=x.height||470,i=x.width||500,D=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${C},top=${window.screenTop+(window.outerHeight-C)/2},left=${D}`}processMessageEventMessage(x){let C="#";if(this.silentRefreshMessagePrefix&&(C+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(C)?"#"+i.substr(C.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const C=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(C)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",C,"expected",i,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const C=this.document.createElement("iframe");C.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),C.setAttribute("src",this.sessionCheckIFrameUrl),C.style.display="none",this.document.body.appendChild(C),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const C=this.getSessionState();C||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+C,this.issuer)}createLoginUrl(x="",C="",i="",D=!1,M={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let L;L=i||S.redirectUri;const j=yield S.createAndSaveNonce();if(x=x?j+S.config.nonceStateSeparator+encodeURIComponent(x):j,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const z=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=P.loginUrl+z+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}C&&(Q+="&login_hint="+encodeURIComponent(C)),P.resource&&(Q+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(Q+="&nonce="+encodeURIComponent(j)),D&&(Q+="&prompt=none");for(const ne of Object.keys(M))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(M[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(x="",C=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(x,D,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",C=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,C):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,C))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const C=this;if(x.onTokenReceived){const i={idClaims:C.getIdentityClaims(),idToken:C.getIdToken(),accessToken:C.getAccessToken(),state:C.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,C,i,D,M){if(this._storage.setItem("access_token",x),D&&!Array.isArray(D)?this._storage.setItem("granted_scopes",JSON.stringify(D.split(" "))):D&&Array.isArray(D)&&this._storage.setItem("granted_scopes",JSON.stringify(D)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}C&&this._storage.setItem("refresh_token",C),M&&M.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(C=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){var C=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,D=C.getCodePartsFromUrl(i),M=D.code,S=D.state,P=D.session_state;if(!x.preventClearHashAfterLogin){const z=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,z)}let[L,j]=C.parseState(S);if(C.state=j,D.error){C.debug("error trying to login"),C.handleLoginError(x,D);const z=new OAuthErrorEvent("code_error",{},D);return C.eventsSubject.next(z),Promise.reject(z)}if(!x.disableNonceCheck){if(!L)return C.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!C.validateNonce(L)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return C.eventsSubject.next(J),Promise.reject(J)}return C.storeSessionState(P),M&&(yield C.getTokenFromCode(M,x),C.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,C){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",C.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let D;D=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),D?i=i.set("code_verifier",D):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,C)}fetchAndProcessToken(x,C){C=C||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+D)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((D,M)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,C.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),M(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let C;C=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",C);const i=C.state;let[D,M]=this.parseState(i);if(this.state=M,C.error){this.debug("error trying to login"),this.handleLoginError(x,C);const z=new OAuthErrorEvent("token_error",{},C);return this.eventsSubject.next(z),Promise.reject(z)}const S=C.access_token,P=C.id_token,L=C.session_state,j=C.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(D)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j),this.oidc?this.processIdToken(P,S,x.disableNonceCheck).then(z=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:z.idTokenClaims,idToken:z.idToken,state:i}).then(J=>z):z).then(z=>(this.storeIdToken(z),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(z=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",z)),this.logger.error("Error validating tokens"),this.logger.error(z),Promise.reject(z))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let C=x,i="";if(x){const D=x.indexOf(this.config.nonceStateSeparator);D>-1&&(C=x.substr(0,D),i=x.substr(D+this.config.nonceStateSeparator.length))}return[C,i]}validateNonce(x){let C;return C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),C===x||(console.error("Validating access_token failed, wrong state/nonce.",C,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,C){x.onLoginError&&x.onLoginError(C),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,C,i=!1){const D=x.split("."),S=b64DecodeUnicode(this.padBase64(D[0])),P=JSON.parse(S),j=b64DecodeUnicode(this.padBase64(D[1])),z=JSON.parse(j);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(z.aud)){if(z.aud.every(me=>me!==this.clientId)){const me="Wrong audience: "+z.aud.join(",");return this.logger.warn(me),Promise.reject(me)}}else if(z.aud!==this.clientId){const me="Wrong audience: "+z.aud;return this.logger.warn(me),Promise.reject(me)}if(!z.sub){const me="No sub claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==z.sub){const me=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${z.sub}`;return this.logger.warn(me),Promise.reject(me)}if(!z.iat){const me="No iat claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(!this.skipIssuerCheck&&z.iss!==this.issuer){const me="Wrong issuer: "+z.iss;return this.logger.warn(me),Promise.reject(me)}if(!i&&z.nonce!==J){const me="Wrong nonce: "+z.nonce;return this.logger.warn(me),Promise.reject(me)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!z.at_hash){const me="An at_hash is needed!";return this.logger.warn(me),Promise.reject(me)}const Q=this.dateTimeService.now(),ne=1e3*z.iat,le=1e3*z.exp,re=this.getClockSkewInMsec();if(ne-re>=Q||le+re<=Q){const me="Token has expired";return console.error(me),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(me)}const ie={accessToken:C,idToken:x,jwks:this.jwks,idTokenClaims:z,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(me=>({idToken:x,idTokenClaims:z,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(me=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!me){const be="Wrong at_hash";return this.logger.warn(be),Promise.reject(be)}return this.checkSignature(ie).then(be=>{const $e={idToken:x,idTokenClaims:z,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?$e:this.checkAtHash(ie).then(Ze=>{if(this.requestAccessToken&&!Ze){const Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}return $e})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),C=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},C=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const D=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!D&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(D)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});D&&(S=S.set("id_token_hint",D));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),C&&(S=S.set("state",C)));for(let L in x)S=S.set(L,x[L]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(M)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(C){return x.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",C):x._storage.setItem("nonce",C),C})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const C=this.document.getElementById(this.sessionCheckIFrameName);C&&C.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,D="";const M=typeof self>"u"?null:self.crypto||self.msCrypto;if(M){let S=new Uint8Array(i);M.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>C.charCodeAt(P%C.length)),D=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,C))}initCodeFlowInternal(x="",C={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(x,D,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){var x=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!x.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const C=yield x.createNonce();return[base64UrlEncode(yield x.crypto.calcHash(C,"sha-256")),C]})()}extractRecognizedCustomParameters(x){let C=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&C.set(i,JSON.stringify(x[i]))}),C}revokeTokenAndLogout(x={},C=!1){let i=this.revocationEndpoint,D=this.getAccessToken(),M=this.getRefreshToken();if(!D)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+L)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,j)=>{let z,J;if(D){let Q=S.set("token",D).set("token_type_hint","access_token");z=this.http.post(i,Q,{headers:P})}else z=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let Q=S.set("token",M).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);C&&(z=z.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([z,J]).subscribe(Q=>{this.logOut(x),L(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),j(Q)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(U){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(x,C,i){this.oAuthService=x,this.errorHandler=C,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(C=>x.toLowerCase().startsWith(C.toLowerCase()))}intercept(x,C){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(M=>{if(M){const P=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:P})}return C.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):C.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):C.handle(x)}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(U){return Promise.resolve(null)}validateAtHash(U){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,C=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:C},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,U,x)=>{"use strict";function C(D,M,S,P,L,j,z){try{var J=D[j](z),Q=J.value}catch(ne){return void S(ne)}J.done?M(Q):Promise.resolve(Q).then(P,L)}function i(D){return function(){var M=this,S=arguments;return new Promise(function(P,L){var j=D.apply(M,S);function z(Q){C(j,P,L,z,J,"next",Q)}function J(Q){C(j,P,L,z,J,"throw",Q)}z(void 0)})}}x.d(U,{Z:()=>i})},4147:Y=>{"use strict";Y.exports={i8:"9.3.0"}}},Y=>{Y(Y.s=2653)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.a45c550b6e1662aa.js b/dist/apps/publications/main.a45c550b6e1662aa.js deleted file mode 100644 index 84eca2fbd..000000000 --- a/dist/apps/publications/main.a45c550b6e1662aa.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{2653:(Y,U,M)=>{"use strict";var C=M(6895),i=M(4650);class D extends C.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends D{static makeCurrent(){(0,C.HT)(new x)}onAndCancel(o,e,t){return o.addEventListener(e,t,!1),()=>{o.removeEventListener(e,t,!1)}}dispatchEvent(o,e){o.dispatchEvent(e)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,e){return(e=e||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,e){return"window"===e?window:"document"===e?o:"body"===e?o.body:null}getBaseHref(o){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function j(n){L=L||document.createElement("a"),L.setAttribute("href",n);const o=L.pathname;return"/"===o.charAt(0)?o:`/${o}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return(0,C.Mx)(document.cookie,o)}}let L,S=null;const z=new i.OlP("TRANSITION_ID"),Q=[{provide:i.ip1,useFactory:function J(n,o,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,C.q)(),r=o.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const re=new i.OlP("EventManagerPlugins");let ie=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ae=(()=>{class n extends be{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach($e),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach($e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $e(n){(0,C.q)().remove(n)}const Ze={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ee=/%COMP%/g;function ue(n,o,e){for(let t=0;t{if("__ngUnwrap__"===o)return n;!1===n(o)&&(o.preventDefault(),o.returnValue=!1)}}let _e=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ze(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new ni(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new Je(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=ue(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ie),i.LFG(Ae),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ze{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,e){return e?document.createElementNS(Ze[e]||e,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,e){(It(o)?o.content:o).appendChild(e)}insertBefore(o,e,t){o&&(It(o)?o.content:o).insertBefore(e,t)}removeChild(o,e){o&&o.removeChild(e)}selectRootElement(o,e){let t="string"==typeof o?document.querySelector(o):o;if(!t)throw new Error(`The selector "${o}" did not match any elements`);return e||(t.textContent=""),t}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,e,t,r){if(r){e=r+":"+e;const l=Ze[r];l?o.setAttributeNS(l,e,t):o.setAttribute(e,t)}else o.setAttribute(e,t)}removeAttribute(o,e,t){if(t){const r=Ze[t];r?o.removeAttributeNS(r,e):o.removeAttribute(`${t}:${e}`)}else o.removeAttribute(e)}addClass(o,e){o.classList.add(e)}removeClass(o,e){o.classList.remove(e)}setStyle(o,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?o.style.setProperty(e,t,r&i.JOm.Important?"important":""):o.style[e]=t}removeStyle(o,e,t){t&i.JOm.DashCase?o.style.removeProperty(e):o.style[e]=""}setProperty(o,e,t){o[e]=t}setValue(o,e){o.nodeValue=e}listen(o,e,t){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,e,fe(t)):this.eventManager.addEventListener(o,e,fe(t))}}function It(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ni extends ze{constructor(o,e,t,r){super(o),this.component=t;const l=ue(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Oe(n){return"_ngcontent-%COMP%".replace(Ee,n)}(r+"-"+t.id),this.hostAttr=function Le(n){return"_nghost-%COMP%".replace(Ee,n)}(r+"-"+t.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,e){const t=super.createElement(o,e);return super.setAttribute(t,this.contentAttr,""),t}}class Je extends ze{constructor(o,e,t,r){super(o),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=ue(r.id,r.styles,[]);for(let d=0;d{class n extends me{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const _n=["alt","control","meta","shift"],ri={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},lr={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},vi={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Kr=(()=>{class n extends me{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,C.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(_n.forEach(a=>{const c=t.indexOf(a);c>-1&&(t.splice(c,1),d+=a+".")}),d+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=d,s}static getEventFullKey(e){let t="",r=function Ul(n){let o=n.key;if(null==o){if(o=n.keyIdentifier,null==o)return"Unidentified";o.startsWith("U+")&&(o=String.fromCharCode(parseInt(o.substring(2),16)),3===n.location&&lr.hasOwnProperty(o)&&(o=lr[o]))}return ri[o]||o}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),_n.forEach(l=>{l!=r&&(0,vi[l])(e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ct=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:C.bD},{provide:i.g9A,useValue:function Hr(){x.makeCurrent()},multi:!0},{provide:C.K0,useFactory:function ds(){return(0,i.RDi)(document),document},deps:[]}]),zi=new i.OlP(""),cr=[{provide:i.rWj,useClass:class ne{addToWindow(o){i.dqk.getAngularTestability=(t,r=!0)=>{const l=o.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>o.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const s=function(a){d=d||a,l--,0==l&&t(d)};r.forEach(function(a){a.whenStable(s)})})}findTestabilityInTree(o,e,t){return null==e?null:o.getTestability(e)??(t?(0,C.q)().isShadowRoot(e)?this.findTestabilityInTree(o,e.host,!0):this.findTestabilityInTree(o,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],Qt=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function kr(){return new i.qLn},deps:[]},{provide:re,useClass:Ki,multi:!0,deps:[C.K0,i.R0b,i.Lbi]},{provide:re,useClass:Kr,multi:!0,deps:[C.K0]},{provide:_e,useClass:_e,deps:[ie,Ae,i.AFp]},{provide:i.FYo,useExisting:_e},{provide:be,useExisting:Ae},{provide:Ae,useClass:Ae,deps:[C.K0]},{provide:ie,useClass:ie,deps:[re,i.R0b]},{provide:C.JF,useClass:le,deps:[]},[]];let Xi=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:z,useExisting:i.AFp},Q]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zi,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...Qt,...cr],imports:[C.ez,i.hGG]}),n})(),ae=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Se(){return new ae((0,i.LFG)(C.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Ei=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(it),t},providedIn:"root"}),n})(),it=(()=>{class n extends Ei{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ge(n){return new it(n.get(C.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=M(529);class zt{encodeKey(o){return encodeURIComponent(o)}encodeValue(o){return encodeURIComponent(o)}decodeKey(o){return decodeURIComponent(o)}decodeValue(o){return decodeURIComponent(o)}}const Rt=new i.OlP("basePath");class Ye{constructor(o={}){this.apiKeys=o.apiKeys,this.username=o.username,this.password=o.password,this.accessToken=o.accessToken,this.basePath=o.basePath,this.withCredentials=o.withCredentials,this.encoder=o.encoder,this.credentials=o.credentials?o.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}selectHeaderAccept(o){if(0===o.length)return;const e=o.find(t=>this.isJsonMime(t));return void 0===e?o[0]:e}isJsonMime(o){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==o&&(e.test(o)||"application/json-patch+json"===o.toLowerCase())}lookupCredential(o){const e=this.credentials[o];return"function"==typeof e?e():e}}let nt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"role")),null!=t&&(a=this.addToHttpParams(a,t,"complementaryObjectId")),null!=r&&(a=this.addToHttpParams(a,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,a="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(We=>{h=this.addToHttpParams(h,We,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let B=u&&u.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(f=f.set("Accept",B));let ee=u&&u.context;void 0===ee&&(ee=new w.qT);let he="json";return B&&(he=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ut=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"publicationId")),null!=t&&(s=this.addToHttpParams(s,t,"userId"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let a=new w.LE({encoder:this.encoder});null!=t&&(a=this.addToHttpParams(a,t,"yearSince")),null!=r&&(a=this.addToHttpParams(a,r,"yearTill")),null!=e&&(a=this.addToHttpParams(a,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,s,a,c,u,h="body",f=!1,b){let B=new w.LE({encoder:this.encoder});null!=e&&(B=this.addToHttpParams(B,e,"title")),null!=t&&(B=this.addToHttpParams(B,t,"isbn")),null!=r&&(B=this.addToHttpParams(B,r,"doi")),null!=l&&(B=this.addToHttpParams(B,l,"id")),null!=d&&(B=this.addToHttpParams(B,d,"year")),null!=s&&(B=this.addToHttpParams(B,s,"category")),null!=a&&(B=this.addToHttpParams(B,a,"yearSince")),null!=c&&(B=this.addToHttpParams(B,c,"yearTill")),null!=u&&(B=this.addToHttpParams(B,u,"userId"));let he,ee=this.defaultHeaders;he=this.configuration.lookupCredential("BasicAuth"),he&&(ee=ee.set("Authorization","Basic "+he)),he=this.configuration.lookupCredential("BearerAuth"),he&&(ee=ee.set("Authorization","Bearer "+he));let We=b&&b.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(ee=ee.set("Accept",We));let Pt=b&&b.context;void 0===Pt&&(Pt=new w.qT);let Jt="json";return We&&(Jt=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Pt,params:B,responseType:Jt,withCredentials:this.configuration.withCredentials,headers:ee,observe:h,reportProgress:f})}findSimilarPublications(e,t,r,l="body",d=!1,s){let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"title")),null!=t&&(a=this.addToHttpParams(a,t,"doi")),null!=r&&(a=this.addToHttpParams(a,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$s=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"owner")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ai=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"queue")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"subject")),null!=r&&(a=this.addToHttpParams(a,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ia=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"loginNamespace")),null!=r&&(a=this.addToHttpParams(a,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,a){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=a&&a.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=a&&a.context;void 0===b&&(b=new w.qT);let B="json";return f&&(B=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:B,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"userExtSource")),null!=r&&(a=this.addToHttpParams(a,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,a="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let B=u&&u.httpHeaderAccept;void 0===B&&(B=this.configuration.selectHeaderAccept(["application/json"])),void 0!==B&&(f=f.set("Accept",B));let ee=u&&u.context;void 0===ee&&(ee=new w.qT);let he="json";return B&&(he=B.startsWith("text")?"text":this.configuration.isJsonMime(B)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:a,reportProgress:c})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let a=new w.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"login")),null!=r&&(a=this.addToHttpParams(a,r,"namespace"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:a,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(d=d.set("Accept",a));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return a&&(f=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let a,s=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(s=s.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(s=s.set("Authorization","Bearer "+a));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:a,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Kn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ye,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new zt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let a=r&&r.context;void 0===a&&(a=new w.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:a,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Rt,8),i.LFG(Ye,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yo=(()=>{class n{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:n,providers:[{provide:Ye,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(w.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Tt=(()=>{return(n=Tt||(Tt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",Tt;var n})();let ra=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER,Tt.FACILITYADMIN,Tt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Tt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Tt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Tt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Tt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.VOOBSERVER,Tt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Tt.PERUNADMIN,Tt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],s=[],a=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const B of Object.keys(b.entitiesToManage))a="User"===B?[B].concat(a):a.concat(B);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(s,c);r.set(l,{readAuth:u,manageAuth:h,modes:a})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const s=r[d];if(null===s)this.principalRoles.has(d)||(l=!1);else if(t[s]){for(const a of t[s])if(!this.principalHasRole(d,s,a)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const s=this.getPerunPolicy(d);if(!s)return[];t.set(d,s),r=r.concat(s.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{(0,Ir.Xf)(n()).subscribe(o)})}var Ks=M(9635),pr=M(2843),yi=M(515),Mt=M(727),Xn=M(4482),Dn=M(5403);function Uo(){return(0,Xn.e)((n,o)=>{let e=null;n._refCount++;const t=(0,Dn.x)(o,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),o.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class Bu extends nn.y{constructor(o,e){super(),this.source=o,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Xn.A)(o)&&(this.lift=o.lift)}_subscribe(o){return this.getSubject().subscribe(o)}getSubject(){const o=this._subject;return(!o||o.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:o}=this;this._subject=this._connection=null,o?.unsubscribe()}connect(){let o=this._connection;if(!o){o=this._connection=new Mt.w0;const e=this.getSubject();o.add(this.source.subscribe((0,Dn.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),o.closed&&(this._connection=null,o=Mt.w0.EMPTY)}return o}refCount(){return Uo()(this)}}var Qe=M(4004),Dt=M(3900),Ot=M(5698),fr=M(3269);function Et(...n){const o=(0,fr.yG)(n);return(0,Xn.e)((e,t)=>{(o?(0,ka.z)(n,e,o):(0,ka.z)(n,e)).subscribe(t)})}var rn=M(5577),er=M(590),En=M(4351),Vt=M(8505),O=M(262);function q(n,o,e,t,r){return(l,d)=>{let s=e,a=o,c=0;l.subscribe((0,Dn.x)(d,u=>{const h=c++;a=s?n(a,u,h):(s=!0,u),t&&d.next(a)},r&&(()=>{s&&d.next(a),d.complete()})))}}function V(n,o){return(0,Xn.e)(q(n,o,arguments.length>=2,!0))}function $(n){return n<=0?()=>yi.E:(0,Xn.e)((o,e)=>{let t=[];o.subscribe((0,Dn.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var ce=M(8068),ye=M(6590),ge=M(4671);function tt(n,o){const e=arguments.length>=2;return t=>t.pipe(n?(0,Gt.h)((r,l)=>n(r,l,t)):ge.y,$(1),e?(0,ye.d)(o):(0,ce.T)(()=>new zo.K))}function pi(n,o=!1){return(0,Xn.e)((e,t)=>{let r=0;e.subscribe((0,Dn.x)(t,l=>{const d=n(l,r++);(d||o)&&t.next(l),!d&&t.complete()}))})}var Kt=M(9718);function Zt(n){return(0,Xn.e)((o,e)=>{try{o.subscribe(e)}finally{e.add(n)}})}var Ft=M(8189);const at="primary";class mi{constructor(o){this.params=o||{}}has(o){return Object.prototype.hasOwnProperty.call(this.params,o)}get(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e[0]:e}return null}getAll(o){if(this.has(o)){const e=this.params[o];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ti(n){return new mi(n)}function Me(n,o,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(o.hasChildren()||t.lengtht[l]===r)}return n===o}function Mi(n){return Array.prototype.concat.apply([],n)}function Pa(n){return n.length>0?n[n.length-1]:null}function Xt(n,o){for(const e in n)n.hasOwnProperty(e)&&o(n[e],e)}function mr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,cn.D)(Promise.resolve(n)):(0,Be.of)(n)}const gd={exact:function Vr(n,o,e){if(!aa(n.segments,o.segments)||!ci(n.segments,o.segments,e)||n.numberOfChildren!==o.numberOfChildren)return!1;for(const t in o.children)if(!n.children[t]||!Vr(n.children[t],o.children[t],e))return!1;return!0},subset:gs},Fp={exact:function yn(n,o){return gn(n,o)},subset:function _d(n,o){return Object.keys(o).length<=Object.keys(n).length&&Object.keys(o).every(e=>Or(n[e],o[e]))},ignored:()=>!0};function Go(n,o,e){return gd[e.paths](n.root,o.root,e.matrixParams)&&Fp[e.queryParams](n.queryParams,o.queryParams)&&!("exact"===e.fragment&&n.fragment!==o.fragment)}function gs(n,o,e){return gr(n,o,o.segments,e)}function gr(n,o,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!aa(r,e)||o.hasChildren()||!ci(r,e,t))}if(n.segments.length===e.length){if(!aa(n.segments,e)||!ci(n.segments,e,t))return!1;for(const r in o.children)if(!n.children[r]||!gs(n.children[r],o.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(aa(n.segments,r)&&ci(n.segments,r,t)&&n.children[at])&&gr(n.children[at],o,l,t)}}function ci(n,o,e){return o.every((t,r)=>Fp[e](n[r].parameters,t.parameters))}class Ra{constructor(o,e,t){this.root=o,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return ju.serialize(this)}}class Bt{constructor(o,e){this.segments=o,this.children=e,this.parent=null,Xt(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return eo(this)}}class Xs{constructor(o,e){this.path=o,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ti(this.parameters)),this._parameterMap}toString(){return an(this)}}function aa(n,o){return n.length===o.length&&n.every((e,t)=>e.path===o[t].path)}let La=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new yd},providedIn:"root"}),n})();class yd{parse(o){const e=new Jl(o);return new Ra(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(o){const e=`/${sa(o.root,!0)}`,t=function ki(n){const o=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${_s(e)}=${_s(r)}`).join("&"):`${_s(e)}=${_s(t)}`}).filter(e=>!!e);return o.length?`?${o.join("&")}`:""}(o.queryParams);return`${e}${t}${"string"==typeof o.fragment?`#${function Nu(n){return encodeURI(n)}(o.fragment)}`:""}`}}const ju=new yd;function eo(n){return n.segments.map(o=>an(o)).join("/")}function sa(n,o){if(!n.hasChildren())return eo(n);if(o){const e=n.children[at]?sa(n.children[at],!1):"",t=[];return Xt(n.children,(r,l)=>{l!==at&&t.push(`${l}:${sa(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Fu(n,o){let e=[];return Xt(n.children,(t,r)=>{r===at&&(e=e.concat(o(t,r)))}),Xt(n.children,(t,r)=>{r!==at&&(e=e.concat(o(t,r)))}),e}(n,(t,r)=>r===at?[sa(n.children[at],!1)]:[`${r}:${sa(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[at]?`${eo(n)}/${e[0]}`:`${eo(n)}/(${e.join("//")})`}}function to(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _s(n){return to(n).replace(/%3B/gi,";")}function io(n){return to(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wl(n){return decodeURIComponent(n)}function $l(n){return Wl(n.replace(/\+/g,"%20"))}function an(n){return`${io(n.path)}${function Br(n){return Object.keys(n).map(o=>`;${io(o)}=${io(n[o])}`).join("")}(n.parameters)}`}const Yu=/^[^\/()?;=#]+/;function Zl(n){const o=n.match(Yu);return o?o[0]:""}const zu=/^[^=?&#]+/,Np=/^[^&#]+/;class Jl{constructor(o){this.url=o,this.remaining=o}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bt([],{}):new Bt([],this.parseChildren())}parseQueryParams(){const o={};if(this.consumeOptional("?"))do{this.parseQueryParam(o)}while(this.consumeOptional("&"));return o}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const o=[];for(this.peekStartsWith("(")||o.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),o.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(o.length>0||Object.keys(e).length>0)&&(t[at]=new Bt(o,e)),t}parseSegment(){const o=Zl(this.remaining);if(""===o&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(o),new Xs(Wl(o),this.parseMatrixParams())}parseMatrixParams(){const o={};for(;this.consumeOptional(";");)this.parseParam(o);return o}parseParam(o){const e=Zl(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Zl(this.remaining);r&&(t=r,this.capture(t))}o[Wl(e)]=Wl(t)}parseQueryParam(o){const e=function jp(n){const o=n.match(zu);return o?o[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function Yp(n){const o=n.match(Np);return o?o[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=$l(e),l=$l(t);if(o.hasOwnProperty(r)){let d=o[r];Array.isArray(d)||(d=[d],o[r]=d),d.push(l)}else o[r]=l}parseParens(o){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Zl(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):o&&(l=at);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[at]:new Bt([],d),this.consumeOptional("//")}return e}peekStartsWith(o){return this.remaining.startsWith(o)}consumeOptional(o){return!!this.peekStartsWith(o)&&(this.remaining=this.remaining.substring(o.length),!0)}capture(o){if(!this.consumeOptional(o))throw new i.vHH(4011,!1)}}function no(n){return n.segments.length>0?new Bt([],{[at]:n}):n}function bs(n){const o={};for(const t of Object.keys(n.children)){const l=bs(n.children[t]);(l.segments.length>0||l.hasChildren())&&(o[t]=l)}return function Ql(n){if(1===n.numberOfChildren&&n.children[at]){const o=n.children[at];return new Bt(n.segments.concat(o.segments),o.children)}return n}(new Bt(n.segments,o))}function Ia(n){return n instanceof Ra}function zp(n,o,e,t,r){if(0===e.length)return ro(o.root,o.root,o.root,t,r);const l=function Up(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new qu(!0,0,n);let o=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return Xt(l.outlets,(a,c)=>{s[c]="string"==typeof a?a.split("/"):a}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,a)=>{0==a&&"."===s||(0==a&&""===s?e=!0:".."===s?o++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new qu(e,o,t)}(e);return l.toRoot()?ro(o.root,o.root,new Bt([],{}),t,r):function d(a){const c=function $u(n,o,e,t){if(n.isAbsolute)return new oa(o.root,!0,0);if(-1===t)return new oa(e,e===o.root,0);return function qo(n,o,e){let t=n,r=o,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new oa(t,!1,r-l)}(e,t+(Fr(n.commands[0])?0:1),n.numberOfDoubleDots)}(l,o,n.snapshot?._urlSegment,a),u=c.processChildren?jr(c.segmentGroup,c.index,l.commands):Kl(c.segmentGroup,c.index,l.commands);return ro(o.root,c.segmentGroup,u,t,r)}(n.snapshot?._lastPathIndex)}function Fr(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Oa(n){return"object"==typeof n&&null!=n&&n.outlets}function ro(n,o,e,t,r){let d,l={};t&&Xt(t,(a,c)=>{l[c]=Array.isArray(a)?a.map(u=>`${u}`):`${a}`}),d=n===o?e:Gu(n,o,e);const s=no(bs(d));return new Ra(s,l,r)}function Gu(n,o,e){const t={};return Xt(n.children,(r,l)=>{t[l]=r===o?e:Gu(r,o,e)}),new Bt(n.segments,t)}class qu{constructor(o,e,t){if(this.isAbsolute=o,this.numberOfDoubleDots=e,this.commands=t,o&&t.length>0&&Fr(t[0]))throw new i.vHH(4003,!1);const r=t.find(Oa);if(r&&r!==Pa(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oa{constructor(o,e,t){this.segmentGroup=o,this.processChildren=e,this.index=t}}function Kl(n,o,e){if(n||(n=new Bt([],{})),0===n.segments.length&&n.hasChildren())return jr(n,o,e);const t=function Gp(n,o,e){let t=0,r=o;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(Oa(s))break;const a=`${s}`,c=t0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!qp(a,c,d))return l;t+=2}else{if(!qp(a,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,o,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=Kl(n.children[d],o,l))}),Xt(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Bt(n.segments,r)}}function Va(n,o,e){const t=n.segments.slice(0,o);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(o[t]=Va(new Bt([],{}),0,e))}),o}function Wo(n){const o={};return Xt(n,(e,t)=>o[t]=`${e}`),o}function qp(n,o,e){return n==e.path&&gn(o,e.parameters)}class Nr{constructor(o,e){this.id=o,this.url=e}}class ys extends Nr{constructor(o,e,t="imperative",r=null){super(o,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Nr{constructor(o,e,t){super(o,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yn extends Nr{constructor(o,e,t,r){super(o,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ju extends Nr{constructor(o,e,t,r){super(o,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class $o extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ad extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vd extends Nr{constructor(o,e,t,r,l){super(o,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Xl extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ec extends Nr{constructor(o,e,t,r){super(o,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Qu{constructor(o){this.route=o,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Td{constructor(o){this.route=o,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Md{constructor(o){this.snapshot=o,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zo{constructor(o){this.snapshot=o,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ws{constructor(o){this.snapshot=o,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tc{constructor(o){this.snapshot=o,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ao{constructor(o,e,t){this.routerEvent=o,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class xd{constructor(o){this._root=o}get root(){return this._root.value}parent(o){const e=this.pathFromRoot(o);return e.length>1?e[e.length-2]:null}children(o){const e=Jo(o,this._root);return e?e.children.map(t=>t.value):[]}firstChild(o){const e=Jo(o,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(o){const e=ic(o,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==o)}pathFromRoot(o){return ic(o,this._root).map(e=>e.value)}}function Jo(n,o){if(n===o.value)return o;for(const e of o.children){const t=Jo(n,e);if(t)return t}return null}function ic(n,o){if(n===o.value)return[o];for(const e of o.children){const t=ic(n,e);if(t.length)return t.unshift(o),t}return[]}class Hn{constructor(o,e){this.value=o,this.children=e}toString(){return`TreeNode(${this.value})`}}function so(n){const o={};return n&&n.children.forEach(e=>o[e.value.outlet]=e),o}class Sd extends xd{constructor(o,e){super(o),this.snapshot=e,ac(this,o)}toString(){return this.snapshot.toString()}}function nc(n,o){const e=function Wp(n,o){const d=new ca([],{},{},"",{},at,o,null,n.root,-1,{});return new Cs("",new Hn(d,[]))}(n,o),t=new Hi([new Xs("",{})]),r=new Hi({}),l=new Hi({}),d=new Hi({}),s=new Hi(""),a=new zn(t,r,d,s,l,at,o,e.root);return a.snapshot=e.root,new Sd(new Hn(a,[]),e)}class zn{constructor(o,e,t,r,l,d,s,a){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,Qe.U)(o=>Ti(o)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Qe.U)(o=>Ti(o)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rc(n,o="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==o)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function oo(n){return n.reduce((o,e)=>({params:{...o.params,...e.params},data:{...o.data,...e.data},resolve:{...e.data,...o.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ca{constructor(o,e,t,r,l,d,s,a,c,u,h,f){this.url=o,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=f??u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ti(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ti(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Cs extends xd{constructor(o,e){super(e),this.url=o,ac(this,e)}toString(){return sc(this._root)}}function ac(n,o){o.value._routerState=n,o.children.forEach(e=>ac(n,e))}function sc(n){const o=n.children.length>0?` { ${n.children.map(sc).join(", ")} } `:"";return`${n.value}${o}`}function Ba(n){if(n.snapshot){const o=n.snapshot,e=n._futureSnapshot;n.snapshot=e,gn(o.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),o.fragment!==e.fragment&&n.fragment.next(e.fragment),gn(o.params,e.params)||n.params.next(e.params),function Ht(n,o){if(n.length!==o.length)return!1;for(let e=0;egn(e.parameters,o[t].parameters))}(n.url,o.url);return e&&!(!n.parent!=!o.parent)&&(!n.parent||Ku(n.parent,o.parent))}function ei(n,o,e){if(e&&n.shouldReuseRoute(o.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=o.value;const r=function c_(n,o,e){return o.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return ei(n,t,r);return ei(n,t)})}(n,o,e);return new Hn(t,r)}{if(n.shouldAttach(o.value)){const l=n.retrieve(o.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=o.value,d.children=o.children.map(s=>ei(n,s)),d}}const t=function d_(n){return new zn(new Hi(n.url),new Hi(n.params),new Hi(n.queryParams),new Hi(n.fragment),new Hi(n.data),n.outlet,n.component,n)}(o.value),r=o.children.map(l=>ei(n,l));return new Hn(t,r)}}const Xu="ngNavigationCancelingError";function Zp(n,o){const{redirectTo:e,navigationBehaviorOptions:t}=Ia(o)?{redirectTo:o,navigationBehaviorOptions:void 0}:o,r=Jp(!1,0,o);return r.url=e,r.navigationBehaviorOptions=t,r}function Jp(n,o,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[Xu]=!0,t.cancellationCode=o,e&&(t.url=e),t}function Dd(n){return Qp(n)&&Ia(n.url)}function Qp(n){return n&&n[Xu]}class Qo{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new oc,this.attachRef=null}}let oc=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Qo,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ko=!1;let gi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=r||at,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Ko);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Ko);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Ko);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new i.vHH(4013,Ko);this._activatedRoute=e;const r=this.location,d=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,a=new Ed(e,s,r.injector);if(t&&function Xo(n){return!!n.resolveComponentFactory}(t)){const c=t.resolveComponentFactory(d);this.activated=r.createComponent(c,r.length,a)}else this.activated=r.createComponent(d,{index:r.length,injector:a,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(oc),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Ed{constructor(o,e,t){this.route=o,this.childContexts=e,this.parent=t}get(o,e){return o===zn?this.route:o===oc?this.childContexts:this.parent.get(o,e)}}let Kp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[gi],encapsulation:2}),n})();function eh(n,o){return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,o,`Route: ${n.path}`)),n._injector??o}function ih(n){const o=n.children&&n.children.map(ih),e=o?{...n,children:o}:{...n};return!e.component&&!e.loadComponent&&(o||e.loadChildren)&&e.outlet&&e.outlet!==at&&(e.component=Kp),e}function sn(n){return n.outlet||at}function lc(n,o){const e=n.filter(t=>sn(t)===o);return e.push(...n.filter(t=>sn(t)!==o)),e}function kn(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let o=n.parent;o;o=o.parent){const e=o.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class lo{constructor(o,e,t,r){this.routeReuseStrategy=o,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(o){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,o),Ba(this.futureState.root),this.activateChildRoutes(e,t,o)}deactivateChildRoutes(o,e,t){const r=so(e);o.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),Xt(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(o,e,d.children)}else this.deactivateChildRoutes(o,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(o,e){o.value.component&&this.routeReuseStrategy.shouldDetach(o.value.snapshot)?this.detachAndStoreRouteSubtree(o,e):this.deactivateRouteAndOutlet(o,e)}detachAndStoreRouteSubtree(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=so(o);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(o.value.snapshot,{componentRef:d,route:o,contexts:s})}}deactivateRouteAndOutlet(o,e){const t=e.getContext(o.value.outlet),r=t&&o.value.component?t.children:e,l=so(o);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(o,e,t){const r=so(e);o.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new tc(l.value.snapshot))}),o.children.length&&this.forwardEvent(new Zo(o.value.snapshot))}activateRoutes(o,e,t){const r=o.value,l=e?e.value:null;if(Ba(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(o,e,d.children)}else this.activateChildRoutes(o,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(s.contexts),d.attachRef=s.componentRef,d.route=s.route.value,d.outlet&&d.outlet.attach(s.componentRef,s.route.value),Ba(s.route.value),this.activateChildRoutes(o,null,d.children)}else{const s=kn(r.snapshot),a=s?.get(i._Vd)??null;d.attachRef=null,d.route=r,d.resolver=a,d.injector=s,d.outlet&&d.outlet.activateWith(r,d.injector),this.activateChildRoutes(o,null,d.children)}}else this.activateChildRoutes(o,null,t)}}class Ve{constructor(o){this.path=o,this.route=this.path[this.path.length-1]}}class el{constructor(o,e){this.component=o,this.route=e}}function tf(n,o,e){const t=n._root;return ja(t,o?o._root:null,e,[t.value])}function jt(n,o,e){return(kn(o)??e).get(n)}function ja(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=so(o);return n.children.forEach(d=>{(function rh(n,o,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=o?o.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const a=function Rd(n,o,e){if("function"==typeof e)return e(n,o);switch(e){case"pathParamsChange":return!aa(n.url,o.url);case"pathParamsOrQueryParamsChange":return!aa(n.url,o.url)||!gn(n.queryParams,o.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ku(n,o)||!gn(n.queryParams,o.queryParams);default:return!Ku(n,o)}}(d,l,l.routeConfig.runGuardsAndResolvers);a?r.canActivateChecks.push(new Ve(t)):(l.data=d.data,l._resolvedData=d._resolvedData),ja(n,o,l.component?s?s.children:null:e,t,r),a&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new el(s.outlet.component,d))}else d&&vs(o,s,r),r.canActivateChecks.push(new Ve(t)),ja(n,null,l.component?s?s.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),Xt(l,(d,s)=>vs(d,e.getContext(s),r)),r}function vs(n,o,e){const t=so(n),r=n.value;Xt(t,(l,d)=>{vs(l,r.component?o?o.children.getContext(d):null:o,e)}),e.canDeactivateChecks.push(new el(r.component&&o&&o.outlet&&o.outlet.isActivated?o.outlet.component:null,r))}function Na(n){return"function"==typeof n}function Ya(n){return n instanceof zo.K||"EmptyError"===n?.name}const da=Symbol("INITIAL_VALUE");function Ts(){return(0,Dt.w)(n=>(0,Ha.a)(n.map(o=>o.pipe((0,Ot.q)(1),Et(da)))).pipe((0,Qe.U)(o=>{for(const e of o)if(!0!==e){if(e===da)return da;if(!1===e||e instanceof Ra)return e}return!0}),(0,Gt.h)(o=>o!==da),(0,Ot.q)(1)))}function co(n){return(0,Ks.z)((0,Vt.b)(o=>{if(Ia(o))throw Zp(0,o)}),(0,Qe.U)(o=>!0===o))}const Ms={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function dh(n,o,e,t,r){const l=cc(n,o,e);return l.matched?function ch(n,o,e,t){const r=o.canMatch;if(!r||0===r.length)return(0,Be.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function ah(n){return n&&Na(n.canMatch)}(s)?s.canMatch(o,e):s(o,e);return mr(a)});return(0,Be.of)(l).pipe(Ts(),co())}(t=eh(o,t),o,e).pipe((0,Qe.U)(d=>!0===d?l:{...Ms})):(0,Be.of)(l)}function cc(n,o,e){if(""===o.path)return"full"===o.pathMatch&&(n.hasChildren()||e.length>0)?{...Ms}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(o.matcher||Me)(e,n,o);if(!r)return{...Ms};const l={};Xt(r.posParams,(s,a)=>{l[a]=s.path});const d=r.consumed.length>0?{...l,...r.consumed[r.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:d,positionalParamSegments:r.posParams??{}}}function za(n,o,e,t,r="corrected"){if(e.length>0&&function lf(n,o,e){return e.some(t=>ua(n,o,t)&&sn(t)!==at)}(n,e,t)){const d=new Bt(o,function uh(n,o,e,t){const r={};r[at]=t,t._sourceSegment=n,t._segmentIndexShift=o.length;for(const l of e)if(""===l.path&&sn(l)!==at){const d=new Bt([],{});d._sourceSegment=n,d._segmentIndexShift=o.length,r[sn(l)]=d}return r}(n,o,t,new Bt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function cf(n,o,e){return e.some(t=>ua(n,o,t))}(n,e,t)){const d=new Bt(n.segments,function zr(n,o,e,t,r,l){const d={};for(const s of t)if(ua(n,e,s)&&!r[sn(s)]){const a=new Bt([],{});a._sourceSegment=n,a._segmentIndexShift="legacy"===l?n.segments.length:o.length,d[sn(s)]=a}return{...r,...d}}(n,o,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=o.length,{segmentGroup:d,slicedSegments:e}}const l=new Bt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=o.length,{segmentGroup:l,slicedSegments:e}}function ua(n,o,e){return(!(n.hasChildren()||o.length>0)||"full"!==e.pathMatch)&&""===e.path}function uo(n,o,e,t){return!!(sn(n)===t||t!==at&&ua(o,e,n))&&("**"===n.path||cc(o,n,e).matched)}function hh(n,o,e){return 0===o.length&&!n.children[e]}const Od=!1;class nl{constructor(o){this.segmentGroup=o||null}}class Ur{constructor(o){this.urlTree=o}}function ha(n){return(0,pr._)(new nl(n))}function ph(n){return(0,pr._)(new Ur(n))}class fh{constructor(o,e,t,r,l){this.injector=o,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const o=za(this.urlTree.root,[],[],this.config).segmentGroup,e=new Bt(o.segments,o.children);return this.expandSegmentGroup(this.injector,this.config,e,at).pipe((0,Qe.U)(l=>this.createUrlTree(bs(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,O.K)(l=>{if(l instanceof Ur)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof nl?this.noMatchError(l):l}))}match(o){return this.expandSegmentGroup(this.injector,this.config,o.root,at).pipe((0,Qe.U)(r=>this.createUrlTree(bs(r),o.queryParams,o.fragment))).pipe((0,O.K)(r=>{throw r instanceof nl?this.noMatchError(r):r}))}noMatchError(o){return new i.vHH(4002,Od)}createUrlTree(o,e,t){const r=no(o);return new Ra(r,e,t)}expandSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(o,e,t).pipe((0,Qe.U)(l=>new Bt([],l))):this.expandSegment(o,t,e,t.segments,r,!0)}expandChildren(o,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,cn.D)(r).pipe((0,En.b)(l=>{const d=t.children[l],s=lc(e,l);return this.expandSegmentGroup(o,s,d,l).pipe((0,Qe.U)(a=>({segment:a,outlet:l})))}),V((l,d)=>(l[d.outlet]=d.segment,l),{}),tt())}expandSegment(o,e,t,r,l,d){return(0,cn.D)(t).pipe((0,En.b)(s=>this.expandSegmentAgainstRoute(o,e,t,s,r,l,d).pipe((0,O.K)(c=>{if(c instanceof nl)return(0,Be.of)(null);throw c}))),(0,er.P)(s=>!!s),(0,O.K)((s,a)=>{if(Ya(s))return hh(e,r,l)?(0,Be.of)(new Bt([],{})):ha(e);throw s}))}expandSegmentAgainstRoute(o,e,t,r,l,d,s){return uo(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(o,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d):ha(e):ha(e)}expandSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(o,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(o,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ph(l):this.lineralizeSegments(t,l).pipe((0,rn.z)(d=>{const s=new Bt(d,{});return this.expandSegment(o,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(o,e,t,r,l,d){const{matched:s,consumedSegments:a,remainingSegments:c,positionalParamSegments:u}=cc(e,r,l);if(!s)return ha(e);const h=this.applyRedirectCommands(a,r.redirectTo,u);return r.redirectTo.startsWith("/")?ph(h):this.lineralizeSegments(r,h).pipe((0,rn.z)(f=>this.expandSegment(o,e,t,f.concat(c),d,!1)))}matchSegmentAgainstRoute(o,e,t,r,l){return"**"===t.path?(o=eh(t,o),t.loadChildren?(t._loadedRoutes?(0,Be.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(o,t)).pipe((0,Qe.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Bt(r,{})))):(0,Be.of)(new Bt(r,{}))):dh(e,t,r,o).pipe((0,Dt.w)(({matched:d,consumedSegments:s,remainingSegments:a})=>d?this.getChildConfig(o=t._injector??o,t,r).pipe((0,rn.z)(u=>{const h=u.injector??o,f=u.routes,{segmentGroup:b,slicedSegments:B}=za(e,s,a,f),ee=new Bt(b.segments,b.children);if(0===B.length&&ee.hasChildren())return this.expandChildren(h,f,ee).pipe((0,Qe.U)(Jt=>new Bt(s,Jt)));if(0===f.length&&0===B.length)return(0,Be.of)(new Bt(s,{}));const he=sn(t)===l;return this.expandSegment(h,ee,f,B,he?at:l,!0).pipe((0,Qe.U)(Pt=>new Bt(s.concat(Pt.segments),Pt.children)))})):ha(e)))}getChildConfig(o,e,t){return e.children?(0,Be.of)({routes:e.children,injector:o}):e.loadChildren?void 0!==e._loadedRoutes?(0,Be.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Id(n,o,e,t){const r=o.canLoad;if(void 0===r||0===r.length)return(0,Be.of)(!0);const l=r.map(d=>{const s=n.get(d),a=function tl(n){return n&&Na(n.canLoad)}(s)?s.canLoad(o,e):s(o,e);return mr(a)});return(0,Be.of)(l).pipe(Ts(),co())}(o,e,t).pipe((0,rn.z)(r=>r?this.configLoader.loadChildren(o,e).pipe((0,Vt.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function uf(n){return(0,pr._)(Jp(Od,3))}())):(0,Be.of)({routes:[],injector:o})}lineralizeSegments(o,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Be.of)(t);if(r.numberOfChildren>1||!r.children[at])return(0,pr._)(new i.vHH(4e3,Od));r=r.children[at]}}applyRedirectCommands(o,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),o,t)}applyRedirectCreateUrlTree(o,e,t,r){const l=this.createSegmentGroup(o,e.root,t,r);return new Ra(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(o,e){const t={};return Xt(o,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(o,e,t,r){const l=this.createSegments(o,e.segments,t,r);let d={};return Xt(e.children,(s,a)=>{d[a]=this.createSegmentGroup(o,s,t,r)}),new Bt(l,d)}createSegments(o,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(o,l,r):this.findOrReturn(l,t))}findPosParam(o,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Od);return r}findOrReturn(o,e){let t=0;for(const r of e){if(r.path===o.path)return e.splice(t),r;t++}return o}}class Bd{}class H{constructor(o,e,t,r,l,d,s,a){this.injector=o,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=d,this.relativeLinkResolution=s,this.urlSerializer=a}recognize(){const o=za(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,o,at).pipe((0,Qe.U)(e=>{if(null===e)return null;const t=new ca([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},at,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Hn(t,e),l=new Cs(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(o){const e=o.value,t=rc(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),o.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(o,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(o,e,t):this.processSegment(o,e,t,t.segments,r)}processChildren(o,e,t){return(0,cn.D)(Object.keys(t.children)).pipe((0,En.b)(r=>{const l=t.children[r],d=lc(e,r);return this.processSegmentGroup(o,d,l,r)}),V((r,l)=>r&&l?(r.push(...l),r):null),pi(r=>null!==r),(0,ye.d)(null),tt(),(0,Qe.U)(r=>{if(null===r)return null;const l=se(r);return function I(n){n.sort((o,e)=>o.value.outlet===at?-1:e.value.outlet===at?1:o.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(o,e,t,r,l){return(0,cn.D)(e).pipe((0,En.b)(d=>this.processSegmentAgainstRoute(d._injector??o,d,t,r,l)),(0,er.P)(d=>!!d),(0,O.K)(d=>{if(Ya(d))return hh(t,r,l)?(0,Be.of)([]):(0,Be.of)(null);throw d}))}processSegmentAgainstRoute(o,e,t,r,l){if(e.redirectTo||!uo(e,t,r,l))return(0,Be.of)(null);let d;if("**"===e.path){const s=r.length>0?Pa(r).parameters:{},a=Lt(t)+r.length,c=new ca(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),a,nr(e),a);d=(0,Be.of)({snapshot:c,consumedSegments:[],remainingSegments:[]})}else d=dh(t,e,r,o).pipe((0,Qe.U)(({matched:s,consumedSegments:a,remainingSegments:c,parameters:u})=>{if(!s)return null;const h=Lt(t)+a.length;return{snapshot:new ca(a,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gi(e),sn(e),e.component??e._loadedComponent??null,e,st(t),h,nr(e),h),consumedSegments:a,remainingSegments:c}}));return d.pipe((0,Dt.w)(s=>{if(null===s)return(0,Be.of)(null);const{snapshot:a,consumedSegments:c,remainingSegments:u}=s;o=e._injector??o;const h=e._loadedInjector??o,f=function N(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:b,slicedSegments:B}=za(t,c,u,f.filter(he=>void 0===he.redirectTo),this.relativeLinkResolution);if(0===B.length&&b.hasChildren())return this.processChildren(h,f,b).pipe((0,Qe.U)(he=>null===he?null:[new Hn(a,he)]));if(0===f.length&&0===B.length)return(0,Be.of)([new Hn(a,[])]);const ee=sn(e)===l;return this.processSegment(h,f,b,B,ee?at:l).pipe((0,Qe.U)(he=>null===he?null:[new Hn(a,he)]))}))}}function W(n){const o=n.value.routeConfig;return o&&""===o.path&&void 0===o.redirectTo}function se(n){const o=[],e=new Set;for(const t of n){if(!W(t)){o.push(t);continue}const r=o.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):o.push(t)}for(const t of e){const r=se(t.children);o.push(new Hn(t.value,r))}return o.filter(t=>!e.has(t))}function st(n){let o=n;for(;o._sourceSegment;)o=o._sourceSegment;return o}function Lt(n){let o=n,e=o._segmentIndexShift??0;for(;o._sourceSegment;)o=o._sourceSegment,e+=o._segmentIndexShift??0;return e-1}function Gi(n){return n.data||{}}function nr(n){return n.resolve||{}}const mh=Symbol("RouteTitle");function f_(n){return"string"==typeof n.title||null===n.title}function hf(n){return(0,Dt.w)(o=>{const e=n(o);return e?(0,cn.D)(e).pipe((0,Qe.U)(()=>o)):(0,Be.of)(o)})}let Ua=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(l=>l.outlet===at);return t}getResolvedTitleForRoute(e){return e.data[mh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(al)},providedIn:"root"}),n})(),al=(()=>{class n extends Ua{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ae))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class oA{}class cA extends class lA{shouldDetach(o){return!1}store(o,e){}shouldAttach(o){return!1}retrieve(o){return null}shouldReuseRoute(o,e){return o.routeConfig===e.routeConfig}}{}const pf=new i.OlP("",{providedIn:"root",factory:()=>({})}),gh=new i.OlP("ROUTES");let ff=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,Be.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=mr(e.loadComponent()).pipe((0,Vt.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),Zt(()=>{this.componentLoaders.delete(e)})),r=new Bu(t,()=>new De.x).pipe(Uo());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,Be.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,Qe.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let a,c,u=!1;Array.isArray(s)?c=s:(a=s.create(e).injector,c=Mi(a.get(gh,[],i.XFs.Self|i.XFs.Optional)));return{routes:c.map(ih),injector:a}}),Zt(()=>{this.childrenLoaders.delete(t)})),d=new Bu(l,()=>new De.x).pipe(Uo());return this.childrenLoaders.set(t,d),d}loadModuleFactoryOrRoutes(e){return mr(e()).pipe((0,rn.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,Be.of)(t):(0,cn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uA{}class hA{shouldProcessUrl(o){return!0}extract(o){return o}merge(o,e){return o}}function c0(n){throw n}function pA(n,o,e){return o.parse("/")}const Fd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},g_={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function uc(){const n=(0,i.f3M)(La),o=(0,i.f3M)(oc),e=(0,i.f3M)(C.Ye),t=(0,i.f3M)(i.zs3),r=(0,i.f3M)(i.Sil),l=(0,i.f3M)(gh,{optional:!0})??[],d=(0,i.f3M)(pf,{optional:!0})??{},s=(0,i.f3M)(al),a=(0,i.f3M)(Ua,{optional:!0}),c=(0,i.f3M)(uA,{optional:!0}),u=(0,i.f3M)(oA,{optional:!0}),h=new Ri(null,n,o,e,t,r,Mi(l));return c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),h.titleStrategy=a??s,function Ga(n,o){n.errorHandler&&(o.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(o.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(o.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(o.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(o.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(o.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(o.canceledNavigationResolution=n.canceledNavigationResolution)}(d,h),h}let Ri=(()=>{class n{constructor(e,t,r,l,d,s,a){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=c0,this.malformedUriErrorHandler=pA,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Be.of)(void 0),this.urlHandlingStrategy=new hA,this.routeReuseStrategy=new cA,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=d.get(ff),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new Td(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Qu(f)),this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(a),this.currentUrlTree=function l_(){return new Ra(new Bt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=nc(this.currentUrlTree,this.rootComponentType),this.transitions=new Hi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Gt.h)(r=>0!==r.id),(0,Qe.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Dt.w)(r=>{let l=!1,d=!1;return(0,Be.of)(r).pipe((0,Vt.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Dt.w)(s=>{const a=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==a||a!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return mf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,Be.of)(s).pipe((0,Dt.w)(h=>{const f=this.transitions.getValue();return t.next(new ys(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?yi.E:Promise.resolve(h)}),function Vd(n,o,e,t){return(0,Dt.w)(r=>function dc(n,o,e,t,r){return new fh(n,o,e,t,r).apply()}(n,o,e,r.extractedUrl,t).pipe((0,Qe.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Vt.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function pa(n,o,e,t,r,l){return(0,rn.z)(d=>function T(n,o,e,t,r,l,d="emptyOnly",s="legacy"){return new H(n,o,e,t,r,d,s,l).recognize().pipe((0,Dt.w)(a=>null===a?function Nt(n){return new nn.y(o=>o.error(n))}(new Bd):(0,Be.of)(a)))}(n,o,e,d.urlAfterRedirects,t.serialize(d.urlAfterRedirects),t,r,l).pipe((0,Qe.U)(s=>({...d,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Vt.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new $o(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:B,restoredState:ee,extras:he}=s,We=new ys(f,this.serializeUrl(b),B,ee);t.next(We);const Pt=nc(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:Pt,urlAfterRedirects:b,extras:{...he,skipLocationChange:!1,replaceUrl:!1}},(0,Be.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),yi.E}),(0,Vt.b)(s=>{const a=new Ad(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(a)}),(0,Qe.U)(s=>r={...s,guards:tf(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Pi(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Be.of)({...e,guardsResult:!0}):function oh(n,o,e,t){return(0,cn.D)(n).pipe((0,rn.z)(r=>function sf(n,o,e,t,r){const l=o&&o.routeConfig?o.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Be.of)(!0);const d=l.map(s=>{const a=jt(s,o,r);return mr(function nf(n){return n&&Na(n.canDeactivate)}(a)?a.canDeactivate(n,o,e,t):a(n,o,e,t)).pipe((0,er.P)())});return(0,Be.of)(d).pipe(Ts())}(r.component,r.route,e,o,t)),(0,er.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,rn.z)(s=>s&&function u_(n){return"boolean"==typeof n}(s)?function lh(n,o,e,t){return(0,cn.D)(o).pipe((0,En.b)(r=>(0,ka.z)(function il(n,o){return null!==n&&o&&o(new Md(n)),(0,Be.of)(!0)}(r.route.parent,t),function br(n,o){return null!==n&&o&&o(new ws(n)),(0,Be.of)(!0)}(r.route,t),function af(n,o,e){const t=o[o.length-1],l=o.slice(0,o.length-1).reverse().map(d=>function nh(n){const o=n.routeConfig?n.routeConfig.canActivateChild:null;return o&&0!==o.length?{node:n,guards:o}:null}(d)).filter(d=>null!==d).map(d=>hr(()=>{const s=d.guards.map(a=>{const c=jt(a,d.node,e);return mr(function ir(n){return n&&Na(n.canActivateChild)}(c)?c.canActivateChild(t,n):c(t,n)).pipe((0,er.P)())});return(0,Be.of)(s).pipe(Ts())}));return(0,Be.of)(l).pipe(Ts())}(n,r.path,e),function rf(n,o,e){const t=o.routeConfig?o.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Be.of)(!0);const r=t.map(l=>hr(()=>{const d=jt(l,o,e);return mr(function Ld(n){return n&&Na(n.canActivate)}(d)?d.canActivate(o,n):d(o,n)).pipe((0,er.P)())}));return(0,Be.of)(r).pipe(Ts())}(n,r.route,e))),(0,er.P)(r=>!0!==r,!0))}(t,l,n,o):(0,Be.of)(s)),(0,Qe.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,Vt.b)(s=>{if(r.guardsResult=s.guardsResult,Ia(s.guardsResult))throw Zp(0,s.guardsResult);const a=new vd(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(a)}),(0,Gt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),hf(s=>{if(s.guards.canActivateChecks.length)return(0,Be.of)(s).pipe((0,Vt.b)(a=>{const c=new Xl(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),(0,Dt.w)(a=>{let c=!1;return(0,Be.of)(a).pipe(function p_(n,o){return(0,rn.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Be.of)(e);let l=0;return(0,cn.D)(r).pipe((0,En.b)(d=>function rl(n,o,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!f_(r)&&(l[mh]=r.title),function rA(n,o,e,t){const r=function aA(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,Be.of)({});const l={};return(0,cn.D)(r).pipe((0,rn.z)(d=>function sA(n,o,e,t){const r=jt(n,o,t);return mr(r.resolve?r.resolve(o,e):r(o,e))}(n[d],o,e,t).pipe((0,er.P)(),(0,Vt.b)(s=>{l[d]=s}))),$(1),(0,Kt.h)(l),(0,O.K)(d=>Ya(d)?yi.E:(0,pr._)(d)))}(l,n,o,t).pipe((0,Qe.U)(d=>(n._resolvedData=d,n.data=rc(n,e).resolve,r&&f_(r)&&(n.data[mh]=r.title),null)))}(d.route,t,n,o)),(0,Vt.b)(()=>l++),$(1),(0,rn.z)(d=>l===r.length?(0,Be.of)(e):yi.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Vt.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),(0,Vt.b)(a=>{const c=new ec(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}))}),hf(s=>{const a=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe((0,Vt.b)(h=>{c.component=h}),(0,Qe.U)(()=>{})));for(const h of c.children)u.push(...a(h));return u};return(0,Ha.a)(a(s.targetSnapshot.root)).pipe((0,ye.d)(),(0,Ot.q)(1))}),hf(()=>this.afterPreactivation()),(0,Qe.U)(s=>{const a=function $p(n,o,e){const t=ei(n,o._root,e?e._root:void 0);return new Sd(t,o)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),(0,Vt.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,o,e)=>(0,Qe.U)(t=>(new lo(o,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,Vt.b)({next(){l=!0},complete(){l=!0}}),Zt(()=>{l||d||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),(0,O.K)(s=>{if(d=!0,Qp(s)){Dd(s)||(this.navigated=!0,this.restoreHistory(r,!0));const a=new Yn(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(a),Dd(s)){const c=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mf(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const a=new Ju(r.id,this.serializeUrl(r.extractedUrl),s,r.targetSnapshot??void 0);t.next(a);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return yi.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{const r={replaceUrl:!0},l=e.state?.navigationId?e.state:null;if(l){const s={...l};delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(r.state=s)}const d=this.parseUrl(e.url);this.scheduleNavigation(d,t,l,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(ih),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:s,preserveFragment:a}=t,c=r||this.routerState.root,u=a?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),zp(c,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Ia(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function __(n){for(let o=0;o{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){if(this.disposed)return Promise.resolve(!1);let s,a,c;d?(s=d.resolve,a=d.reject,c=d.promise):c=new Promise((f,b)=>{s=f,a=b});const u=++this.navigationId;let h;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),h=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):h=0,this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Yn(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:function(){return uc()},providedIn:"root"}),n})();function mf(n){return"imperative"!==n}let hc=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri),i.Y36(zn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),gf=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof la&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri),i.Y36(zn),i.Y36(C.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();class bh{}let u0=(()=>{class n{preload(e,t){return(0,Be.of)(null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fA=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=d}setUpPreloading(){this.subscription=this.router.events.pipe((0,Gt.h)(e=>e instanceof la),(0,En.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t){l.providers&&!l._injector&&(l._injector=(0,i.MMx)(l.providers,e,`Route: ${l.path}`));const d=l._injector??e,s=l._loadedInjector??d;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?r.push(this.preloadConfig(d,l)):(l.children||l._loadedRoutes)&&r.push(this.processRoutes(s,l.children??l._loadedRoutes))}return(0,cn.D)(r).pipe((0,Ft.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,Be.of)(null);const l=r.pipe((0,rn.z)(d=>null===d?(0,Be.of)(void 0):(t._loadedRoutes=d.routes,t._loadedInjector=d.injector,this.processRoutes(d.injector??e,d.routes))));if(t.loadComponent&&!t._loadedComponent){const d=this.loader.loadComponent(t);return(0,cn.D)([l,d]).pipe((0,Ft.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ri),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(bh),i.LFG(ff))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const bf=new i.OlP("");let mA=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ys?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ao&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new ao(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const y_=new i.OlP("ROUTER_FORROOT_GUARD"),yf=new i.OlP(""),yh=[C.Ye,{provide:La,useClass:yd},{provide:Ri,useFactory:uc},oc,{provide:zn,useFactory:function w_(n){return n.routerState.root},deps:[Ri]},ff];function wf(){return new i.PXZ("Router",Ri)}let wh=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[yh,[],Af(e),{provide:y_,useFactory:Cf,deps:[[Ri,new i.FiY,new i.tp0]]},{provide:pf,useValue:t||{}},t?.useHash?{provide:C.S$,useClass:C.Do}:{provide:C.S$,useClass:C.b0},{provide:bf,useFactory:()=>{const n=(0,i.f3M)(Ri),o=(0,i.f3M)(C.EM),e=(0,i.f3M)(pf);return e.scrollOffset&&o.setOffset(e.scrollOffset),new mA(n,o,e)}},t?.preloadingStrategy?M_(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:wf},t?.initialNavigation?bA(t):[],[{provide:A_,useFactory:_A},{provide:i.tb,multi:!0,useExisting:A_}]]}}static forChild(e){return{ngModule:n,providers:[Af(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(y_,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Cf(n){return"guarded"}function Af(n){return[{provide:gh,multi:!0,useValue:n}]}function _A(){const n=(0,i.f3M)(i.zs3);return o=>{const e=n.get(i.z2F);if(o!==e.components[0])return;const t=n.get(Ri),r=n.get(v_);1===n.get(T_)&&t.initialNavigation(),n.get(yf,null,i.XFs.Optional)?.setUpPreloading(),n.get(bf,null,i.XFs.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const A_=new i.OlP("");function bA(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ri);return()=>{n.setUpLocationChangeListener()}}},{provide:T_,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:T_,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const o=n.get(C.V_,Promise.resolve(null));let e=!1;return()=>o.then(()=>new Promise(r=>{const l=n.get(Ri),d=n.get(v_);(function t(r){n.get(Ri).events.pipe((0,Gt.h)(d=>d instanceof la||d instanceof Yn||d instanceof Ju),(0,Qe.U)(d=>d instanceof la||d instanceof Yn&&(0===d.code||1===d.code)&&null),(0,Gt.h)(d=>null!==d),(0,Ot.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||d.closed?(0,Be.of)(void 0):d),l.initialNavigation()}))}}]:[]]}const v_=new i.OlP("",{factory:()=>new De.x}),T_=new i.OlP("",{providedIn:"root",factory:()=>1});function M_(n){return[fA,{provide:yf,useExisting:fA},{provide:bh,useExisting:n}]}let Ch;try{Ch=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ch=!1}let sl,xi=(()=>{class n{constructor(e){this._platformId=e,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&&!Ch)&&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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ah=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function AA(){if(sl)return sl;if("object"!=typeof document||!document)return sl=new Set(Ah),sl;let n=document.createElement("input");return sl=new Set(Ah.filter(o=>(n.setAttribute("type",o),n.type===o))),sl}let Nd,Yd,yr,pc;function fa(n){return function Tf(){if(null==Nd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Nd=!0}))}finally{Nd=Nd||!1}return Nd}()?n:!!n.capture}function x_(){if(null==yr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return yr=!1,yr;if("scrollBehavior"in document.documentElement.style)yr=!0;else{const n=Element.prototype.scrollTo;yr=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return yr}function ol(){if("object"!=typeof document||!document)return 0;if(null==Yd){const n=document.createElement("div"),o=n.style;n.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Yd=0,0===n.scrollLeft&&(n.scrollLeft=1,Yd=0===n.scrollLeft?1:2),n.remove()}return Yd}function fc(n){if(function vA(){if(null==pc){const n=typeof document<"u"?document.head:null;pc=!(!n||!n.createShadowRoot&&!n.attachShadow)}return pc}()){const o=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&o instanceof ShadowRoot)return o}return null}function xs(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const o=n.shadowRoot.activeElement;if(o===n)break;n=o}return n}function wn(n){return n.composedPath?n.composedPath()[0]:n.target}function vh(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function $i(n,...o){return o.length?o.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var ll=M(8372);function Df(n){return(0,Gt.h)((o,e)=>n<=e)}function cl(n,o=ge.y){return n=n??W_,(0,Xn.e)((e,t)=>{let r,l=!0;e.subscribe((0,Dn.x)(t,d=>{const s=o(d);(l||!n(r,s))&&(l=!1,r=s,t.next(d))}))})}function W_(n,o){return n===o}var $_=M(5032);function Ke(n){return(0,Xn.e)((o,e)=>{(0,Ir.Xf)(n).subscribe((0,Dn.x)(e,()=>e.complete(),$_.Z)),!e.closed&&o.subscribe(e)})}function Fe(n){return null!=n&&"false"!=`${n}`}function Fi(n,o=0){return Z_(n)?Number(n):o}function Z_(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Ef(n){return Array.isArray(n)?n:[n]}function ji(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Zi(n){return n instanceof i.SBq?n.nativeElement:n}let Hf=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Q_=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Zi(e);return new nn.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Hf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mc=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Fi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ll.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Q_),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),gc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Hf]}),n})();const qd=new Set;let dl,Pf=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Rf}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function K_(n){if(!qd.has(n))try{dl||(dl=document.createElement("style"),dl.setAttribute("type","text/css"),document.head.appendChild(dl)),dl.sheet&&(dl.sheet.insertRule(`@media ${n} {body{ }}`,0),qd.add(n))}catch(o){console.error(o)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rf(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let _c=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return X_(Ef(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=X_(Ef(e)).map(d=>this._registerQuery(d).observable);let l=(0,Ha.a)(r);return l=(0,ka.z)(l.pipe((0,Ot.q)(1)),l.pipe(Df(1),(0,ll.b)(0))),l.pipe((0,Qe.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:a,query:c})=>{s.matches=s.matches||a,s.breakpoints[c]=a}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new nn.y(d=>{const s=a=>this._zone.run(()=>d.next(a));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(Et(t),(0,Qe.U)(({matches:d})=>({query:e,matches:d})),Ke(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pf),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function X_(n){return n.map(o=>o.split(",")).reduce((o,e)=>o.concat(e)).map(o=>o.trim())}function bc(n,o){return(n.getAttribute(o)||"").match(/\S+/g)||[]}const XA="cdk-describedby-message",Wd="cdk-describedby-host";let Lf=0,If=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Lf++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Lf++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Of(t,r);"string"!=typeof t?(nb(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){if(!t||!this._isElementNode(e))return;const l=Of(t,r);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const d=this._messageRegistry.get(l);d&&0===d.referenceCount&&this._deleteMessageElement(l)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Wd}="${this._id}"]`);for(let t=0;t0!=r.indexOf(XA));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function QA(n,o,e){const t=bc(n,o);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(o,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Wd,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function ib(n,o,e){const r=bc(n,o).filter(l=>l!=e.trim());r.length?n.setAttribute(o,r.join(" ")):n.removeAttribute(o)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Wd)}_isElementDescribedByMessage(e,t){const r=bc(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Of(n,o){return"string"==typeof n?`${o||""}/${n}`:n}function nb(n,o){n.id||(n.id=`${XA}-${o}-${Lf++}`)}class Wr{constructor(o){this._items=o,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=Mt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,o instanceof i.n_E&&o.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(o){return this._skipPredicateFn=o,this}withWrap(o=!0){return this._wrap=o,this}withVerticalOrientation(o=!0){return this._vertical=o,this}withHorizontalOrientation(o){return this._horizontal=o,this}withAllowedModifierKeys(o){return this._allowedModifierKeys=o,this}withTypeAhead(o=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Vt.b)(e=>this._pressedLetters.push(e)),(0,ll.b)(o),(0,Gt.h)(()=>this._pressedLetters.length>0),(0,Qe.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!o[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||$i(o,"shiftKey"))&&(o.key&&1===o.key.length?this._letterKeyStream.next(o.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],o.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(o){const e=this._getItemsArray(),t="number"==typeof o?o:e.indexOf(o);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(o){this._wrap?this._setActiveInWrapMode(o):this._setActiveInDefaultMode(o)}_setActiveInWrapMode(o){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+o*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(o){this._setActiveItemByIndex(this._activeItemIndex+o,o)}_setActiveItemByIndex(o,e){const t=this._getItemsArray();if(t[o]){for(;this._skipPredicateFn(t[o]);)if(!t[o+=e])return;this.setActiveItem(o)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ev extends Wr{setActiveItem(o){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(o),this.activeItem&&this.activeItem.setActiveStyles()}}class ul extends Wr{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(o){return this._origin=o,this}setActiveItem(o){super.setActiveItem(o),this.activeItem&&this.activeItem.focus(this._origin)}}let $d=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function iv(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function tv(n){try{return n.frameElement}catch{return null}}(function ov(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Bf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Bf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function ab(n){let o=n.nodeName.toLowerCase(),e="input"===o&&n.type;return"text"===e||"password"===e||"select"===o||"textarea"===o}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function sv(n){return!function nv(n){return function av(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function rb(n){let o=n.nodeName.toLowerCase();return"input"===o||"select"===o||"button"===o||"textarea"===o}(n)||function rv(n){return function kt(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Vf(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vf(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let o=n.getAttribute("tabindex");return!(!o||isNaN(parseInt(o,10)))}function Bf(n){if(!Vf(n))return null;const o=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(o)?-1:o}class sb{constructor(o,e,t,r,l=!1){this._element=o,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(o){this._enabled=o,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}destroy(){const o=this._startAnchor,e=this._endAnchor;o&&(o.removeEventListener("focus",this.startAnchorListener),o.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(o)))})}focusFirstTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(o)))})}focusLastTabbableElementWhenReady(o){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(o)))})}_getRegionBoundary(o){const e=this._element.querySelectorAll(`[cdk-focus-region-${o}], [cdkFocusRegion${o}], [cdk-focus-${o}]`);return"start"==o?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(o){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(o),!!t}return e.focus(o),!0}return this.focusFirstTabbableElement(o)}focusFirstTabbableElement(o){const e=this._getRegionBoundary("start");return e&&e.focus(o),!!e}focusLastTabbableElement(o){const e=this._getRegionBoundary("end");return e&&e.focus(o),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(o){if(this._checker.isFocusable(o)&&this._checker.isTabbable(o))return o;const e=o.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const o=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,o),o.classList.add("cdk-visually-hidden"),o.classList.add("cdk-focus-trap-anchor"),o.setAttribute("aria-hidden","true"),o}_toggleAnchorTabIndex(o,e){o?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(o){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(o,this._startAnchor),this._toggleAnchorTabIndex(o,this._endAnchor))}_executeOnStable(o){this._ngZone.isStable?o():this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(o)}}let Zd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new sb(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($d),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ob=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Fe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Fe(e)}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(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=xs(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zd),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Wa(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Eh(n){const o=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!o||-1!==o.identifier||null!=o.radiusX&&1!==o.radiusX||null!=o.radiusY&&1!==o.radiusY)}const Ff=new i.OlP("cdk-input-modality-detector-options"),jf={ignoreKeys:[18,17,224,91,16]},Jd=fa({passive:!0,capture:!0});let nS=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Hi(null),this._lastTouchMs=0,this._onKeydown=d=>{this._options?.ignoreKeys?.some(s=>s===d.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wn(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Wa(d)?"keyboard":"mouse"),this._mostRecentTarget=wn(d))},this._onTouchstart=d=>{Eh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wn(d))},this._options={...jf,...l},this.modalityDetected=this._modality.pipe(Df(1)),this.modalityChanged=this.modalityDetected.pipe(cl()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Jd),r.addEventListener("mousedown",this._onMousedown,Jd),r.addEventListener("touchstart",this._onTouchstart,Jd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Jd),document.removeEventListener("mousedown",this._onMousedown,Jd),document.removeEventListener("touchstart",this._onTouchstart,Jd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Ff,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rS=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function dv(){return null}}),cb=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let aS=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d)),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 e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let c=wn(s);c;c=c.parentElement)"focus"===s.type?this._onFocus(s,c):this._onBlur(s,c)},this._document=l,this._detectionMode=d?.detectionMode||0}monitor(e,t=!1){const r=Zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Be.of)(null);const l=fc(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Zi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=Zi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,a])=>this._originChanged(s,t,a)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=wn(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Hh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Hh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ke(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Hh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Hh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let d=0;d{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const db="cdk-high-contrast-black-on-white",Nf="cdk-high-contrast-white-on-black",Yf="cdk-high-contrast-active";let ub=(()=>{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(_c).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(Yf,db,Nf),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(Yf,db):2===t&&e.add(Yf,Nf)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),kh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ub))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gc]}),n})();const uv=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function hv(){return(0,i.f3M)(C.K0)}}),hb=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Si=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function pv(n){const o=n?.toLowerCase()||"";return"auto"===o&&typeof navigator<"u"&&navigator?.language?hb.test(navigator.language)?"rtl":"ltr":"rtl"===o?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(uv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function lS(n,o){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function wc(n,o){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const fb=["*"];let Ph=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),ma=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const gv=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function mb(){return!0}});let ot=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!vh()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ub),i.LFG(gv,8),i.LFG(C.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[mo,mo]}),n})();function sr(n){return class extends n{constructor(...o){super(...o),this._disabled=!1}get disabled(){return this._disabled}set disabled(o){this._disabled=Fe(o)}}}function $a(n,o){return class extends n{constructor(...e){super(...e),this.defaultColor=o,this.color=o}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Cr(n){return class extends n{constructor(...o){super(...o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(o){this._disableRipple=Fe(o)}}}function Cc(n,o=0){return class extends n{constructor(...e){super(...e),this._tabIndex=o,this.defaultTabIndex=o}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Fi(e):this.defaultTabIndex}}}function Ac(n){return class extends n{constructor(...o){super(...o),this.errorState=!1}updateErrorState(){const o=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==o&&(this.errorState=l,this.stateChanges.next())}}}function Kd(n){return class extends n{constructor(...o){super(...o),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new nn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(o){o.next(),o.complete()}}}const Ds=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Uf(){return(0,i.f3M)(i.soG)}});class wi{constructor(){this._localeChanges=new De.x,this.localeChanges=this._localeChanges}getValidDateOrNull(o){return this.isDateInstance(o)&&this.isValid(o)?o:null}deserialize(o){return null==o||this.isDateInstance(o)&&this.isValid(o)?o:this.invalid()}setLocale(o){this.locale=o,this._localeChanges.next()}compareDate(o,e){return this.getYear(o)-this.getYear(e)||this.getMonth(o)-this.getMonth(e)||this.getDate(o)-this.getDate(e)}sameDate(o,e){if(o&&e){let t=this.isValid(o),r=this.isValid(e);return t&&r?!this.compareDate(o,e):t==r}return o==e}clampDate(o,e,t){return e&&this.compareDate(o,e)<0?e:t&&this.compareDate(o,t)>0?t:o}}const ga=new i.OlP("mat-date-formats"),bv=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gf(n,o){const e=Array(n);for(let t=0;t{class n extends wi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Gf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gf(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Gf(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(bv.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ds,8),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yv={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 bb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:_b}]}),n})(),wv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ga,useValue:yv}],imports:[bb]}),n})(),hl=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Xd(n,o,e){n.nativeElement.classList.toggle(o,e)}let vc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();class dS{constructor(o,e,t,r=!1){this._renderer=o,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Cv={enterDuration:225,exitDuration:150},yb=fa({passive:!0}),Av=["mousedown","touchstart"],vv=["mouseup","mouseleave","touchend","touchcancel"];class Tv{constructor(o,e,t,r){this._target=o,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Zi(t))}fadeInRipple(o,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...Cv,...t.animation};t.centered&&(o=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function hS(n,o,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(o-e.top),Math.abs(o-e.bottom));return Math.sqrt(t*t+r*r)}(o,e,r),s=o-r.left,a=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-d+"px",u.style.top=a-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,B="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,ee=new dS(this,u,t,B);u.style.transform="scale3d(1, 1, 1)",ee.state=0,t.persistent||(this._mostRecentTransientRipple=ee);let he=null;return!B&&(c||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const We=()=>this._finishRippleTransition(ee),Pt=()=>this._destroyRipple(ee);u.addEventListener("transitionend",We),u.addEventListener("transitioncancel",Pt),he={onTransitionEnd:We,onTransitionCancel:Pt}}),this._activeRipples.set(ee,he),(B||!c)&&this._finishRippleTransition(ee),ee}fadeOutRipple(o){if(2===o.state||3===o.state)return;const e=o.element,t={...Cv,...o.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",o.state=2,(o._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(o)}fadeOutAll(){this._getActiveRipples().forEach(o=>o.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(o=>{o.config.persistent||o.fadeOut()})}setupTriggerEvents(o){const e=Zi(o);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Av))}handleEvent(o){"mousedown"===o.type?this._onMousedown(o):"touchstart"===o.type?this._onTouchStart(o):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(vv),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(o){0===o.state?this._startFadeOutTransition(o):2===o.state&&this._destroyRipple(o)}_startFadeOutTransition(o){const e=o===this._mostRecentTransientRipple,{persistent:t}=o.config;o.state=1,!t&&(!e||!this._isPointerDown)&&o.fadeOut()}_destroyRipple(o){const e=this._activeRipples.get(o)??null;this._activeRipples.delete(o),this._activeRipples.size||(this._containerRect=null),o===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),o.state=3,null!==e&&(o.element.removeEventListener("transitionend",e.onTransitionEnd),o.element.removeEventListener("transitioncancel",e.onTransitionCancel)),o.element.remove()}_onMousedown(o){const e=Wa(o),t=this._lastTouchStartEvent&&Date.now(){!o.config.persistent&&(1===o.state||o.config.terminateOnPointerUp&&0===o.state)&&o.fadeOut()}))}_registerEvents(o){this._ngZone.runOutsideAngular(()=>{o.forEach(e=>{this._triggerElement.addEventListener(e,this,yb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Av.forEach(o=>{this._triggerElement.removeEventListener(o,this,yb)}),this._pointerUpEventsRegistered&&vv.forEach(o=>{this._triggerElement.removeEventListener(o,this,yb)}))}}const Mv=new i.OlP("mat-ripple-global-options");let Ar=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Tv(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(Mv,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),un=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})(),Rh=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),n})(),$f=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot]}),n})();const Zf=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),Ab=new i.OlP("MatOptgroup");let vb=0;class Sv{constructor(o,e=!1){this.source=o,this.isUserInput=e}}let Jf=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+vb++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.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(e){this._disabled=Fe(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!$i(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Sv(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Tc=(()=>{class n extends Jf{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Zf,8),i.Y36(Ab,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:fb,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(e,t){1&e&&(i.F$t(),i.YNc(0,lS,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,wc,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[Ar,C.O5,Rh],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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}),n})();function Qf(n,o,e){if(e.length){let t=o.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,C.ez,ot,$f]}),n})();const Lh=["mat-button",""],Mc=["*"],Ih=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],eu=$a(sr(Cr(class{constructor(n){this._elementRef=n}})));let Yt=(()=>{class n extends eu{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Ih)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,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(e,t){if(1&e&&i.Gf(Ar,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:Lh,ngContentSelectors:Mc,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(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[Ar],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,ot]}),n})();var Xf=M(1144),ba=M(576),em=M(3268);const tm=["addListener","removeListener"],Hv=["addEventListener","removeEventListener"],pS=["on","off"];function Za(n,o,e,t){if((0,ba.m)(e)&&(t=e,e=void 0),t)return Za(n,o,e).pipe((0,em.Z)(t));const[r,l]=function xb(n){return(0,ba.m)(n.addEventListener)&&(0,ba.m)(n.removeEventListener)}(n)?Hv.map(d=>s=>n[d](o,s,e)):function kv(n){return(0,ba.m)(n.addListener)&&(0,ba.m)(n.removeListener)}(n)?tm.map(im(n,o)):function Mb(n){return(0,ba.m)(n.on)&&(0,ba.m)(n.off)}(n)?pS.map(im(n,o)):[];if(!r&&(0,Xf.z)(n))return(0,rn.z)(d=>Za(d,o,e))((0,Ir.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new nn.y(d=>{const s=(...a)=>d.next(1l(s)})}function im(n,o){return e=>t=>n[e](o,t)}var Sb=M(4408);const vn={schedule(n){let o=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=vn;t&&(o=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=o(l=>{e=void 0,n(l)});return new Mt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:o}=vn;return(o?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:o}=vn;return(o?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var Eb=M(7565);const Hb=new class fS extends Eb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Db extends Sb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=vn.requestAnimationFrame(()=>o.flush(void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(vn.cancelAnimationFrame(e),o._scheduled=void 0)}});let nm,Pb=1;const Oh={};function Rb(n){return n in Oh&&(delete Oh[n],!0)}const Lb={setImmediate(n){const o=Pb++;return Oh[o]=!0,nm||(nm=Promise.resolve()),nm.then(()=>Rb(o)&&n()),o},clearImmediate(n){Rb(n)}},{setImmediate:Ib,clearImmediate:Pv}=Lb,Vh={setImmediate(...n){const{delegate:o}=Vh;return(o?.setImmediate||Ib)(...n)},clearImmediate(n){const{delegate:o}=Vh;return(o?.clearImmediate||Pv)(n)},delegate:void 0},rm=new class Vb extends Eb.v{flush(o){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while((o=t[0])&&o.id===e&&t.shift());if(this._active=!1,r){for(;(o=t[0])&&o.id===e&&t.shift();)o.unsubscribe();throw r}}}(class Ob extends Sb.o{constructor(o,e){super(o,e),this.scheduler=o,this.work=e}requestAsyncId(o,e,t=0){return null!==t&&t>0?super.requestAsyncId(o,e,t):(o.actions.push(this),o._scheduled||(o._scheduled=Vh.setImmediate(o.flush.bind(o,void 0))))}recycleAsyncId(o,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(o,e,t);o.actions.some(r=>r.id===e)||(Vh.clearImmediate(e),o._scheduled=void 0)}});var Bh=M(4986),am=M(2805);function Lv(n,o=Bh.z){return function Rv(n){return(0,Xn.e)((o,e)=>{let t=!1,r=null,l=null,d=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const c=r;r=null,e.next(c)}d&&e.complete()},a=()=>{l=null,d&&e.complete()};o.subscribe((0,Dn.x)(e,c=>{t=!0,r=c,l||(0,Ir.Xf)(n(c)).subscribe(l=(0,Dn.x)(e,s,a))},()=>{d=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,am.H)(n,o))}let _o=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new nn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Lv(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Be.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Gt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Zi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Za(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fl=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new nn.y(d=>this.ngZone.runOutsideAngular(()=>Za(this.elementRef.nativeElement,"scroll").pipe(Ke(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=ol()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==ol()?e.left=e.right:1==ol()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;x_()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==ol()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==ol()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(_o),i.Y36(i.R0b),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),ya=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new De.x,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Lv(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(C.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ja=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),ml=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[mo,Ja,mo,Ja]}),n})();class tu{attach(o){return this._attachedHost=o,o.attach(this)}detach(){let o=this._attachedHost;null!=o&&(this._attachedHost=null,o.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(o){this._attachedHost=o}}class gl extends tu{constructor(o,e,t,r){super(),this.component=o,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class yo extends tu{constructor(o,e,t,r){super(),this.templateRef=o,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(o,e=this.context){return this.context=e,super.attach(o)}detach(){return this.context=void 0,super.detach()}}class Nv extends tu{constructor(o){super(),this.element=o instanceof i.SBq?o.nativeElement:o}}class _l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(o){return o instanceof gl?(this._attachedPortal=o,this.attachComponentPortal(o)):o instanceof yo?(this._attachedPortal=o,this.attachTemplatePortal(o)):this.attachDomPortal&&o instanceof Nv?(this._attachedPortal=o,this.attachDomPortal(o)):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(o){this._disposeFn=o}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class vS extends _l{constructor(o,e,t,r,l){super(),this.outletElement=o,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,a=this._document.createComment("dom-portal");s.parentNode.insertBefore(a,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=l}attachComponentPortal(o){const t=(o.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(o.component);let r;return o.viewContainerRef?(r=o.viewContainerRef.createComponent(t,o.viewContainerRef.length,o.injector||o.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(o.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=o,r}attachTemplatePortal(o){let e=o.viewContainerRef,t=e.createEmbeddedView(o.templateRef,o.context,{injector:o.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=o,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(o){return o.hostView.rootNodes[0]}}let MS=(()=>{class n extends yo{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),Qa=(()=>{class n extends _l{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(s,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(d,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),wo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Ci=M(6451);const jh=x_();class Yv{constructor(o,e){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=ji(-this._previousScrollPosition.left),o.style.top=ji(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,t=o.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),jh&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),jh&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class zv{constructor(o,e,t,r){this._scrollDispatcher=o,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(o){this._overlayRef=o}enable(){if(this._scrollSubscription)return;const o=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class zb{enable(){}disable(){}attach(){}}function lm(n,o){return o.some(e=>n.bottome.bottom||n.righte.right)}function Ub(n,o){return o.some(e=>n.tope.bottom||n.lefte.right)}class Uv{constructor(o,e,t,r){this._scrollDispatcher=o,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(o){this._overlayRef=o}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();lm(e,[{width:t,height:r,bottom:r,right:t,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 Gv=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new zb,this.close=d=>new zv(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Yv(this._viewportRuler,this._document),this.reposition=d=>new Uv(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_o),i.LFG(ya),i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Co{constructor(o){if(this.scrollStrategy=new zb,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const e=Object.keys(o);for(const t of e)void 0!==o[t]&&(this[t]=o[t])}}}class iu{constructor(o,e){this.connectionPair=o,this.scrollableViewProperties=e}}let Nh=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qv=(()=>{class n extends Nh{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let d=l.length-1;d>-1;d--)if(l[d]._keydownEvents.observers.length>0){const s=l[d]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ka=(()=>{class n extends Nh{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=wn(l)},this._clickListener=l=>{const d=wn(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:d;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let c=a.length-1;c>-1;c--){const u=a[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(d)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(xi),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ao=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||vh()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(o){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(o);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ot.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){const o=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,o&&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(o){o!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=o,this.hasAttached()&&(o.attach(this),this.updatePosition()))}updateSize(o){this._config={...this._config,...o},this._updateElementSize()}setDirection(o){this._config={...this._config,direction:o},this._updateElementDirection()}addPanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!0)}removePanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!1)}getDirection(){const o=this._config.direction;return o?"string"==typeof o?o:o.value:"ltr"}updateScrollStrategy(o){o!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=o,this.hasAttached()&&(o.attach(this),o.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const o=this._pane.style;o.width=ji(this._config.width),o.height=ji(this._config.height),o.minWidth=ji(this._config.minWidth),o.minHeight=ji(this._config.minHeight),o.maxWidth=ji(this._config.maxWidth),o.maxHeight=ji(this._config.maxHeight)}_togglePointerEvents(o){this._pane.style.pointerEvents=o?"":"none"}_attachBackdrop(){const o="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(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(o){if(this._animationsDisabled)return void this._disposeBackdrop(o);o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",this._backdropTransitionendHandler)}),o.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(o)},500))}}_toggleClasses(o,e,t){const r=Ef(e||[]).filter(l=>!!l);r.length&&(t?o.classList.add(...r):o.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe(Ke((0,Ci.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()),o.unsubscribe())})})}_disposeScrollStrategy(){const o=this._scrollStrategy;o&&(o.disable(),o.detach&&o.detach())}_disposeBackdrop(o){o&&(o.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",this._backdropTransitionendHandler),o.remove(),this._backdropElement===o&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const vo="cdk-overlay-connected-position-bounding-box",Yh=/([A-Za-z%]+)$/;class vr{constructor(o,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,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 De.x,this._resizeSubscription=Mt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(o)}get positions(){return this._preferredPositions}attach(o){this._validatePositions(),o.hostElement.classList.add(vo),this._overlayRef=o,this._boundingBox=o.hostElement,this._pane=o.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 o=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let a=this._getOriginPoint(o,r,s),c=this._getOverlayPoint(a,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!d||d.overlayFit.visibleAreaa&&(a=u,s=c)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hs(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vo),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const o=this._lastPosition;if(o){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,e)}else this.apply()}withScrollableContainers(o){return this._scrollables=o,this}withPositions(o){return this._preferredPositions=o,-1===o.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(o){return this._viewportMargin=o,this}withFlexibleDimensions(o=!0){return this._hasFlexibleDimensions=o,this}withGrowAfterOpen(o=!0){return this._growAfterOpen=o,this}withPush(o=!0){return this._canPush=o,this}withLockedPosition(o=!0){return this._positionLocked=o,this}setOrigin(o){return this._origin=o,this}withDefaultOffsetX(o){return this._offsetX=o,this}withDefaultOffsetY(o){return this._offsetY=o,this}withTransformOriginOn(o){return this._transformOriginSelector=o,this}_getOriginPoint(o,e,t){let r,l;if("center"==t.originX)r=o.left+o.width/2;else{const d=this._isRtl()?o.right:o.left,s=this._isRtl()?o.left:o.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?o.top+o.height/2:"top"==t.originY?o.top:o.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(o,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:o.x+r,y:o.y+l}}_getOverlayFit(o,e,t,r){const l=yl(e);let{x:d,y:s}=o,a=this._getOffset(r,"x"),c=this._getOffset(r,"y");a&&(d+=a),c&&(s+=c);let f=0-s,b=s+l.height-t.height,B=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ee=this._subtractOverflows(l.height,f,b),he=B*ee;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:ee===l.height,fitsInViewportHorizontally:B==l.width}}_canFitWithFlexibleDimensions(o,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=bl(this._overlayRef.getConfig().minHeight),s=bl(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=s&&s<=l;return(o.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(o,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const r=yl(e),l=this._viewportRect,d=Math.max(o.x+r.width-l.width,0),s=Math.max(o.y+r.height-l.height,0),a=Math.max(l.top-t.top-o.y,0),c=Math.max(l.left-t.left-o.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:o.xB&&!this._isInitialRender&&!this._growAfterOpen&&(d=o.y-B/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-o.x+this._viewportMargin,u=o.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=o.x,u=t.right-o.x;else{const b=Math.min(t.right-o.x+t.left,o.x),B=this._lastBoundingBoxSize.width;u=2*b,h=o.x-b,u>B&&!this._isInitialRender&&!this._growAfterOpen&&(h=o.x-B/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(o,e){const t=this._calculateBoundingBoxRect(o,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=ji(t.height),r.top=ji(t.top),r.bottom=ji(t.bottom),r.width=ji(t.width),r.left=ji(t.left),r.right=ji(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=ji(l)),d&&(r.maxWidth=ji(d))}this._lastBoundingBoxSize=t,Hs(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Hs(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hs(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Hs(t,this._getExactOverlayY(e,o,u)),Hs(t,this._getExactOverlayX(e,o,u))}else t.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=ji(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=ji(d.maxWidth):l&&(t.maxWidth="")),Hs(this._pane.style,t)}_getExactOverlayY(o,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===o.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=ji(l.y),r}_getExactOverlayX(o,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,o);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=ji(l.x),r}_getScrollVisibility(){const o=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ub(o,t),isOriginOutsideView:lm(o,t),isOverlayClipped:Ub(e,t),isOverlayOutsideView:lm(e,t)}}_subtractOverflows(o,...e){return e.reduce((t,r)=>t-Math.max(r,0),o)}_getNarrowedViewportRect(){const o=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+o-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:o-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,e){return"x"===e?o.offsetX??this._offsetX:o.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&Ef(o).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof i.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const e=o.width||0,t=o.height||0;return{top:o.y,bottom:o.y+t,left:o.x,right:o.x+e,height:t,width:e}}}function Hs(n,o){for(let e in o)o.hasOwnProperty(e)&&(n[e]=o[e]);return n}function bl(n){if("number"!=typeof n&&null!=n){const[o,e]=n.split(Yh);return e&&"px"!==e?null:parseFloat(o)}return n||null}function yl(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const wl="cdk-global-overlay-wrapper";class Dc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(o){const e=o.getConfig();this._overlayRef=o,this._width&&!e.width&&o.updateSize({width:this._width}),this._height&&!e.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(wl),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._xOffset=o,this._xPosition="left",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._xOffset=o,this._xPosition="right",this}start(o=""){return this._xOffset=o,this._xPosition="start",this}end(o=""){return this._xOffset=o,this._xPosition="end",this}width(o=""){return this._overlayRef?this._overlayRef.updateSize({width:o}):this._width=o,this}height(o=""){return this._overlayRef?this._overlayRef.updateSize({height:o}):this._height=o,this}centerHorizontally(o=""){return this.left(o),this._xPosition="center",this}centerVertically(o=""){return this.top(o),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const o=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:s}=t,a=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",B="",ee="";a?ee="flex-start":"center"===u?(ee="center",f?B=h:b=h):f?"left"===u||"end"===u?(ee="flex-end",b=h):("right"===u||"start"===u)&&(ee="flex-start",B=h):"left"===u||"start"===u?(ee="flex-start",b=h):("right"===u||"end"===u)&&(ee="flex-end",B=h),o.position=this._cssPosition,o.marginLeft=a?"0":b,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=a?"0":B,e.justifyContent=ee,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(wl),t.justifyContent=t.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let Ec=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Dc}flexibleConnectedTo(e){return new vr(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ya),i.LFG(C.K0),i.LFG(xi),i.LFG(Ao))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hc=0,hn=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=a,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new Co(e);return d.direction=d.direction||this._directionality.value,new on(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Hc++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new vS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gv),i.LFG(Ao),i.LFG(i._Vd),i.LFG(Ec),i.LFG(qv),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(C.K0),i.LFG(Si),i.LFG(C.Ye),i.LFG(Ka),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Gb=[{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"}],cm=new i.OlP("cdk-connected-overlay-scroll-strategy");let dm=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),um=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Mt.w0.EMPTY,this._attachSubscription=Mt.w0.EMPTY,this._detachSubscription=Mt.w0.EMPTY,this._positionSubscription=Mt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new yo(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Fe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Fe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Fe(e)}get push(){return this._push}set push(e){this._push=Fe(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Gb);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!$i(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Co({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof dm?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(pi(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(cm),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const Wb={provide:cm,deps:[hn],useFactory:function qb(n){return()=>n.scrollStrategies.reposition()}};let Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hn,Wb],imports:[mo,wo,ml,ml]}),n})();class hm{}const ks="*";function hi(n,o){return{type:7,name:n,definitions:o,options:{}}}function yt(n,o=null){return{type:4,styles:o,timings:n}}function zh(n,o=null){return{type:3,steps:n,options:o}}function pm(n,o=null){return{type:2,steps:n,options:o}}function Pe(n){return{type:6,styles:n,offset:null}}function xt(n,o,e){return{type:0,name:n,styles:o,options:e}}function Al(n){return{type:5,steps:n}}function _t(n,o,e=null){return{type:1,expr:n,animation:o,options:e}}function kc(n=null){return{type:9,options:n}}function Pn(n,o,e=null){return{type:11,selector:n,animation:o,options:e}}function Uh(n){Promise.resolve(null).then(n)}class Pc{constructor(o=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=o+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Uh(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(o){this._position=this.totalTime?o*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gh{constructor(o){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=o;let e=0,t=0,r=0;const l=this.players.length;0==l?Uh(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,s)=>Math.max(d,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this.players.forEach(o=>o.init())}onStart(o){this._onStartFns.push(o)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(o=>o()),this._onStartFns=[])}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(o=>o.play())}pause(){this.players.forEach(o=>o.pause())}restart(){this.players.forEach(o=>o.restart())}finish(){this._onFinish(),this.players.forEach(o=>o.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(o=>o.destroy()),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this.players.forEach(o=>o.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(o){const e=o*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const o=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=o?o.getPosition():0}beforeDestroy(){this.players.forEach(o=>{o.beforeDestroy&&o.beforeDestroy()})}triggerCallback(o){const e="start"==o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const $b=["connectionContainer"],gm=["inputContainer"],_m=["label"];function Zv(n,o){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function Zb(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Jb(n,o){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function Qb(n,o){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function Kb(n,o){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Jv(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,Jb,4,1,"ng-container",12),i.YNc(3,Qb,1,0,"ng-content",12),i.YNc(4,Kb,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Xb(n,o){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function ey(n,o){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function bm(n,o){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ym(n,o){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function ty(n,o){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,ym,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const iy=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ny=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let ry=0;const wm=new i.OlP("MatError");let Xa=(()=>{class n{constructor(e,t){this.id="mat-error-"+ry++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:wm,useExisting:n}])]}),n})();const ay={transitionMessages:hi("transitionMessages",[xt("enter",Pe({opacity:1,transform:"translateY(0%)"})),_t("void => enter",[Pe({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),sy=0;const oy=new i.OlP("MatHint");let pn=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+sy++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:oy,useExisting:n}])]}),n})(),wa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Qv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Kv=new i.OlP("MatPrefix"),ly=new i.OlP("MatSuffix");let Wh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:ly,useExisting:n}])]}),n})(),Cm=0;const eT=$a(class{constructor(n){this._elementRef=n}},"primary"),dy=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$h=new i.OlP("MatFormField");let Gn=(()=>{class n extends eT{constructor(e,t,r,l,d,s,a){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Cm++,this._labelId="mat-form-field-label-"+Cm++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Fe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Et(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Ke(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ke(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ci.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Et(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Et(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Ke(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,Za(this._label.nativeElement,"transitionend").pipe((0,Ot.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*B+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,gc,ot]}),n})();function Oc(n){return n&&"function"==typeof n.connect}class uy{applyChanges(o,e,t,r,l){o.forEachOperation((d,s,a)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,a);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==a?(e.remove(s),u=3):(c=e.get(s),e.move(c,a),u=2);l&&l({context:c?.context,operation:u,record:d})})}detach(){}}class si{constructor(o=!1,e,t=!0,r){this._multiple=o,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(o?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,t=new Set(o);o.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,o))return!0;return!1}return this._selection.has(o)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}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(o){this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let Tr=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Vc=new i.OlP("_ViewRepeater");var hy=M(4742),tT=M(1810);function Tm(...n){const o=(0,fr.jO)(n),{args:e,keys:t}=(0,hy.D)(n),r=new nn.y(l=>{const{length:d}=e;if(!d)return void l.complete();const s=new Array(d);let a=d,c=d;for(let u=0;u{h||(h=!0,c--),s[u]=f},()=>a--,void 0,()=>{(!a||!h)&&(c||l.next(t?(0,tT.n)(t,s):s),l.complete())}))}});return o?r.pipe((0,em.Z)(o)):r}let py=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),vl=(()=>{class n extends py{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Tn=new i.OlP("NgValueAccessor"),my={provide:Tn,useExisting:(0,i.Gpc)(()=>Rn),multi:!0},gy=new i.OlP("CompositionEventMode");let Rn=(()=>{class n extends py{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iT(){const n=(0,C.q)()?(0,C.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(gy,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([my]),i.qOj]}),n})();function To(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function Mm(n){return null!=n&&"number"==typeof n.length}const ln=new i.OlP("NgValidators"),ts=new i.OlP("NgAsyncValidators"),Jh=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Li{static min(o){return function xm(n){return o=>{if(To(o.value)||To(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e{if(To(o.value)||To(n))return null;const e=parseFloat(o.value);return!isNaN(e)&&e>n?{max:{max:n,actual:o.value}}:null}}(o)}static required(o){return Qh(o)}static requiredTrue(o){return function Dm(n){return!0===n.value?null:{required:!0}}(o)}static email(o){return function Em(n){return To(n.value)||Jh.test(n.value)?null:{email:!0}}(o)}static minLength(o){return function Hm(n){return o=>To(o.value)||!Mm(o.value)?null:o.value.lengthMm(o.value)&&o.value.length>n?{maxlength:{requiredLength:n,actualLength:o.value.length}}:null}(o)}static pattern(o){return function Pm(n){if(!n)return Kh;let o,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),o=new RegExp(e)):(e=n.toString(),o=n),t=>{if(To(t.value))return null;const r=t.value;return o.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(o)}static nullValidator(o){return null}static compose(o){return Ay(o)}static composeAsync(o){return vy(o)}}function Qh(n){return To(n.value)?{required:!0}:null}function Kh(n){return null}function _y(n){return null!=n}function by(n){return(0,i.QGY)(n)?(0,cn.D)(n):n}function yy(n){let o={};return n.forEach(e=>{o=null!=e?{...o,...e}:o}),0===Object.keys(o).length?null:o}function wy(n,o){return o.map(e=>e(n))}function Cy(n){return n.map(o=>function nT(n){return!n.validate}(o)?o:e=>o.validate(e))}function Ay(n){if(!n)return null;const o=n.filter(_y);return 0==o.length?null:function(e){return yy(wy(e,o))}}function Rm(n){return null!=n?Ay(Cy(n)):null}function vy(n){if(!n)return null;const o=n.filter(_y);return 0==o.length?null:function(e){return Tm(wy(e,o).map(by)).pipe((0,Qe.U)(yy))}}function Lm(n){return null!=n?vy(Cy(n)):null}function Ty(n,o){return null===n?[o]:Array.isArray(n)?[...n,o]:[n,o]}function My(n){return n._rawValidators}function xy(n){return n._rawAsyncValidators}function Im(n){return n?Array.isArray(n)?n:[n]:[]}function Xh(n,o){return Array.isArray(n)?n.includes(o):n===o}function Sy(n,o){const e=Im(o);return Im(n).forEach(r=>{Xh(e,r)||e.push(r)}),e}function Om(n,o){return Im(o).filter(e=>!Xh(n,e))}class Vm{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=Rm(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Lm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o){this.control&&this.control.reset(o)}hasError(o,e){return!!this.control&&this.control.hasError(o,e)}getError(o,e){return this.control?this.control.getError(o,e):null}}class Ln extends Vm{get formDirective(){return null}get path(){return null}}class $r extends Vm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Bm{constructor(o){this._cd=o}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let qn=(()=>{class n extends Bm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($r,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Fm=(()=>{class n extends Bm{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const Mo="VALID",Ml="INVALID",_i="PENDING",ep="DISABLED";function tp(n){return(lu(n)?n.validators:n)||null}function Ym(n){return Array.isArray(n)?Rm(n):n||null}function zm(n,o){return(lu(o)?o.asyncValidators:n)||null}function Um(n){return Array.isArray(n)?Lm(n):n||null}function lu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function Gm(n,o,e){const t=n.controls;if(!(o?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function qm(n,o,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class ip{constructor(o,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=o,this._rawAsyncValidators=e,this._composedValidatorFn=Ym(this._rawValidators),this._composedAsyncValidatorFn=Um(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get valid(){return this.status===Mo}get invalid(){return this.status===Ml}get pending(){return this.status==_i}get disabled(){return this.status===ep}get enabled(){return this.status!==ep}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._rawValidators=o,this._composedValidatorFn=Ym(o)}setAsyncValidators(o){this._rawAsyncValidators=o,this._composedAsyncValidatorFn=Um(o)}addValidators(o){this.setValidators(Sy(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Sy(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Om(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Om(o,this._rawAsyncValidators))}hasValidator(o){return Xh(this._rawValidators,o)}hasAsyncValidator(o){return Xh(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){this.touched=!0,this._parent&&!o.onlySelf&&this._parent.markAsTouched(o)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(o=>o.markAllAsTouched())}markAsUntouched(o={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}markAsDirty(o={}){this.pristine=!1,this._parent&&!o.onlySelf&&this._parent.markAsDirty(o)}markAsPristine(o={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}markAsPending(o={}){this.status=_i,!1!==o.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!o.onlySelf&&this._parent.markAsPending(o)}disable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=ep,this.errors=null,this._forEachChild(t=>{t.disable({...o,onlySelf:!0})}),this._updateValue(),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(o={}){const e=this._parentMarkedDirty(o.onlySelf);this.status=Mo,this._forEachChild(t=>{t.enable({...o,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors({...o,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o){this._parent&&!o.onlySelf&&(this._parent.updateValueAndValidity(o),o.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mo||this.status===_i)&&this._runAsyncValidator(o.emitEvent)),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.updateValueAndValidity(o)}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ep:Mo}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o){if(this.asyncValidator){this.status=_i,this._hasOwnPendingAsyncValidator=!0;const e=by(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:o})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(!1!==e.emitEvent)}get(o){let e=o;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(o,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(o)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?ep:this.errors?Ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_i)?_i:this._anyControlsHaveStatus(Ml)?Ml:Mo}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o={}){this.pristine=!this._anyControlsDirty(),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}_updateTouched(o={}){this.touched=this._anyControlsTouched(),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){lu(o)&&null!=o.updateOn&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(o){return null}}class np extends ip{constructor(o,e,t){super(tp(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){qm(this,0,o),Object.keys(o).forEach(t=>{Gm(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(Object.keys(o).forEach(t=>{const r=this.controls[t];r&&r.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}}function ap(n,o){return[...o.path,n]}function xo(n,o){Wm(n,o),o.valueAccessor.writeValue(n.value),n.disabled&&o.valueAccessor.setDisabledState?.(!0),function uu(n,o){o.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&ky(n,o)})}(n,o),function pT(n,o){const e=(t,r)=>{o.valueAccessor.writeValue(t),r&&o.viewToModelUpdate(t)};n.registerOnChange(e),o._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,o),function hT(n,o){o.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&ky(n,o),"submit"!==n.updateOn&&n.markAsTouched()})}(n,o),function Hy(n,o){if(o.valueAccessor.setDisabledState){const e=t=>{o.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),o._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,o)}function cu(n,o,e=!0){const t=()=>{};o.valueAccessor&&(o.valueAccessor.registerOnChange(t),o.valueAccessor.registerOnTouched(t)),So(n,o),n&&(o._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function du(n,o){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function Wm(n,o){const e=My(n);null!==o.validator?n.setValidators(Ty(e,o.validator)):"function"==typeof e&&n.setValidators([e]);const t=xy(n);null!==o.asyncValidator?n.setAsyncValidators(Ty(t,o.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();du(o._rawValidators,r),du(o._rawAsyncValidators,r)}function So(n,o){let e=!1;if(null!==n){if(null!==o.validator){const r=My(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==o.asyncValidator){const r=xy(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==o.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return du(o._rawValidators,t),du(o._rawAsyncValidators,t),e}function ky(n,o){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function $m(n,o){Wm(n,o)}function Jm(n,o){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(o,e.currentValue)}function gT(n,o){n._syncPendingControls(),o.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Ry(n,o){if(!o)return null;let e,t,r;return Array.isArray(o),o.forEach(l=>{l.constructor===Rn?e=l:function OS(n){return Object.getPrototypeOf(n.constructor)===vl}(l)?t=l:r=l}),r||t||e||null}const sp={provide:Ln,useExisting:(0,i.Gpc)(()=>xl)},hu=(()=>Promise.resolve(null))();let xl=(()=>{class n extends Ln{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new np({},Rm(e),Lm(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){hu.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),xo(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){hu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){hu.then(()=>{const t=this._findContainer(e.path),r=new np({});$m(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){hu.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){hu.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,gT(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ts,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([sp]),i.qOj]}),n})();function Qm(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}function jc(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Nc=class extends ip{constructor(o=null,e,t){super(tp(e),zm(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=jc(o)?o.value:o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Qm(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Qm(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(o){jc(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}},Ji=Nc,Oy={provide:$r,useExisting:(0,i.Gpc)(()=>Sl)},Vy=(()=>Promise.resolve(null))();let Sl=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Nc,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Ry(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Jm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){xo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Vy.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);Vy.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ap(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,9),i.Y36(ln,10),i.Y36(ts,10),i.Y36(Tn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Oy]),i.qOj,i.TTD]}),n})(),By=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),Xm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const pu=new i.OlP("NgModelWithFormControlWarning"),CT={provide:$r,useExisting:(0,i.Gpc)(()=>Mr)};let Mr=(()=>{class n extends $r{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Ry(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&cu(t,this,!1),xo(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Jm(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ts,10),i.Y36(Tn,10),i.Y36(pu,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([CT]),i.qOj,i.TTD]}),n})();const AT={provide:Ln,useExisting:(0,i.Gpc)(()=>Dl)};let Dl=(()=>{class n extends Ln{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(So(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return xo(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){cu(e.control||null,e,!1),function VS(n,o){const e=n.indexOf(o);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,gT(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(cu(t||null,e),(n=>n instanceof Nc)(r)&&(xo(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);$m(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Py(n,o){return So(n,o)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wm(this.form,this),this._oldForm&&So(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ln,10),i.Y36(ts,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([AT]),i.qOj,i.TTD]}),n})();const MT={provide:$r,useExisting:(0,i.Gpc)(()=>op)};let op=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Ry(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ap(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln,13),i.Y36(ln,10),i.Y36(ts,10),i.Y36(Tn,10),i.Y36(pu,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([MT]),i.qOj,i.TTD]}),n})(),Rs=(()=>{class n{constructor(){this._validator=Kh}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Kh,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const HT={provide:ln,useExisting:(0,i.Gpc)(()=>is),multi:!0};let is=(()=>{class n extends Rs{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>Qh}enabled(e){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([HT]),i.qOj]}),n})(),Xy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xm]}),n})(),cg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xy]}),n})(),Do=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:pu,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Xy]}),n})();class LT extends ip{constructor(o,e,t){super(tp(e),zm(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){this.controls.push(o),this._registerControl(o),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let r=this._adjustIndex(o);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){qm(this,0,o),o.forEach((t,r)=>{Gm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){null!=o&&(o.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,r)=>{t.reset(o[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(const o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}}function ew(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let qS=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return ew(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new np(r,l)}control(e,t,r){let l={};return this.useNonNullable?(ew(t)?l=t:(l.validators=t,l.asyncValidators=r),new Nc(e,{...l,nonNullable:!0})):new Nc(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new LT(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof Nc||e instanceof ip?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Do}),n})(),OT=(()=>{class n extends qS{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Do}),n})();const tw=["trigger"],iw=["panel"];function nw(n,o){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function VT(n,o){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function BT(n,o){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function FT(n,o){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,VT,2,1,"span",10),i.YNc(2,BT,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function jT(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const NT=[[["mat-select-trigger"]],"*"],YT=["mat-select-trigger","*"],rw={transformPanelWrap:hi("transformPanelWrap",[_t("* => void",Pn("@transformPanel",[kc()],{optional:!0}))]),transformPanel:hi("transformPanel",[xt("void",Pe({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),xt("showing",Pe({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),xt("showing-multiple",Pe({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),_t("void => *",yt("120ms cubic-bezier(0, 0, 0.2, 1)")),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))])};let dg=0;const ug=new i.OlP("mat-select-scroll-strategy"),WT=new i.OlP("MAT_SELECT_CONFIG"),$T={provide:ug,deps:[hn],useFactory:function sw(n){return()=>n.scrollStrategies.reposition()}};class mu{constructor(o,e){this.source=o,this.value=e}}const ZT=Cr(Cc(sr(Ac(class{constructor(n,o,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=o,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),hg=new i.OlP("MatSelectTrigger");let JT=(()=>{class n extends ZT{constructor(e,t,r,l,d,s,a,c,u,h,f,b,B,ee){super(d,l,a,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=B,this._defaultOptions=ee,this._panelOpen=!1,this._compareWith=(he,We)=>he===We,this._uid="mat-select-"+dg++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+dg++,this._panelDoneAnimatingStream=new De.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=hr(()=>{const he=this.options;return he?he.changes.pipe(Et(he),(0,Dt.w)(()=>(0,Ci.T)(...he.map(We=>We.onSelectionChange)))):this._ngZone.onStable.pipe((0,Ot.q)(1),(0,Dt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Gt.h)(he=>he),(0,Qe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Gt.h)(he=>!he),(0,Qe.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=ee?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=ee.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(Li.required)??!1}set required(e){this._required=Fe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Fe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Fe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Fi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new si(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(cl(),Ke(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Ke(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Et(null),Ke(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,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 e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!$i(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const a=this.selected;a&&s!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||$i(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(a=>!a.disabled&&!a.selected);this.options.forEach(a=>{a.disabled||(s?a.select():a.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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,Ot.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(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ev(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Ke(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Ke(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 e=(0,Ci.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Ke(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ci.T)(...this.options.map(t=>t._stateChanges)).pipe(Ke(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),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(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(hl),i.Y36(i.SBq),i.Y36(Si,8),i.Y36(xl,8),i.Y36(Dl,8),i.Y36($h,8),i.Y36($r,10),i.$8M("tabindex"),i.Y36(ug),i.Y36(aS),i.Y36(WT,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(tw,5),i.Gf(iw,5),i.Gf(um,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.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:[i.qOj,i.TTD]}),n})(),Eo=(()=>{class n extends JT{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(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Ke(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,Ot.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=Qf(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function Dv(n,o,e,t){return ne+t?Math.max(0,n-t+o):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new mu(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const s=0-(e.left+d-(r?l:0)),a=e.right+d-t.width+(r?0:l);s>0?d+=s+8:a>0&&(d-=a+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let a;return this.disableOptionCentering?0:(a=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*a-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Qf(s,this.options,this.optionGroups);const a=r/2;this._scrollTop=this._calculateOverlayScroll(s,a,d),this._offsetY=this._calculateOverlayOffsetY(s,a,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hg,5),i.Suo(r,Tc,5),i.Suo(r,Ab,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:Rc,useExisting:n},{provide:Zf,useExisting:n}]),i.qOj],ngContentSelectors:YT,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(e,t){if(1&e&&(i.F$t(NT),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,nw,2,1,"span",3),i.YNc(5,FT,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,jT,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[C.mk,C.RF,C.n9,C.ED,um,dm],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:[rw.transformPanelWrap,rw.transformPanel]},changeDetection:0}),n})(),Ho=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$T],imports:[C.ez,Cl,Kf,ot,Ja,Ic,Kf,ot]}),n})();const QT=["tooltip"],gu="tooltip-panel",_u=fa({passive:!0}),pg=new i.OlP("mat-tooltip-scroll-strategy"),fg={provide:pg,deps:[hn],useFactory:function ow(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},lw=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function eM(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let tM=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=s,this._ariaDescriber=a,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Fi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Fi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ke(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,_u)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new gl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Ke(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${gu}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ke(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ke(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ke(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!$i(r)&&(r.preventDefault(),r.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(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...r.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Ot.q)(1),Ke(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const s=this._overlayRef;if(s){const a=`${this._cssClassPrefix}-${gu}-`;s.removePanelClass(a+this._currentPosition),s.addPanelClass(a+d)}this._currentPosition=d}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{const r=t.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,_u)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),qc=(()=>{class n extends tM{constructor(e,t,r,l,d,s,a,c,u,h,f,b){super(e,t,r,l,d,s,a,c,u,h,f,b),this._tooltipComponent=gg}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.SBq),i.Y36(_o),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(xi),i.Y36(If),i.Y36(An),i.Y36(pg),i.Y36(Si,8),i.Y36(lw,8),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),mg=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const d=getComputedStyle(t);("0s"===d.getPropertyValue("animation-duration")||"none"===d.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),gg=(()=>{class n extends mg{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(_c),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(QT,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[C.mk,C.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}),n})(),Wc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fg],imports:[kh,C.ez,Cl,ot,ot,Ja]}),n})();function _g(n,o){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function iM(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,_g,2,2,"mat-option",18),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function nM(n,o){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function rM(n,o){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,iM,3,8,"mat-form-field",14),i.YNc(4,nM,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function aM(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function dw(n,o){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let $c=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hw={provide:$c,deps:[[new i.FiY,new i.tp0,$c]],useFactory:function uw(n){return n||new $c}},oM=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),fw=sr(Kd(class{}));let mw=(()=>{class n extends fw{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:a}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=a&&(this._showFirstLastButtons=a)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Fi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Fi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Fi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Fi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Fe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Fe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),gw=(()=>{class n extends mw{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($c),i.Y36(i.sBO),i.Y36(oM,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,rM,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,aM,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,dw,3,5,"button",11),i.qZA()()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[C.sg,C.O5,Yt,Gn,Eo,Tc,qc],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),bu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hw],imports:[C.ez,_a,Ho,Wc,ot]}),n})();var bg=M(1005);const Wn=["mat-menu-item",""];function Zc(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const _w=["*"];function lM(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const yg={transformMenu:hi("transformMenu",[xt("void",Pe({opacity:0,transform:"scale(0.8)"})),_t("void => enter",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Pe({opacity:1,transform:"scale(1)"}))),_t("* => void",yt("100ms 25ms linear",Pe({opacity:0})))]),fadeInItems:hi("fadeInItems",[xt("showing",Pe({opacity:1})),_t("void => *",[Pe({opacity:0}),yt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},bw=new i.OlP("MatMenuContent"),wg=new i.OlP("MAT_MENU_PANEL"),uM=Cr(sr(class{}));let ns=(()=>{class n extends uM{constructor(e,t,r,l,d){super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,l?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let r=0;r{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=Mt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Cw++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Fe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Fe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ul(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,Dt.w)(e=>(0,Ci.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const t=this._keyManager;if("enter"===this._panelAnimationState&&t.activeItem?._hasFocus()){const r=e.toArray(),l=Math.max(0,Math.min(r.length-1,t.activeItemIndex||0));r[l]&&!r[l].disabled?t.setActiveItem(l):t.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Et(this._directDescendantItems),(0,Dt.w)(t=>(0,Ci.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:$i(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Et(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ww),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,bw,5),i.Suo(r,ns,5),i.Suo(r,ns,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),yu=(()=>{class n extends Jc{constructor(e,t,r,l){super(e,t,r,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ww),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:wg,useExisting:n}]),i.qOj],ngContentSelectors:_w,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,lM,3,6,"ng-template"))},dependencies:[C.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[yg.transformMenu,yg.fadeInItems]},changeDetection:0}),n})();const pp=new i.OlP("mat-menu-scroll-strategy"),Aw={provide:pp,deps:[hn],useFactory:function KS(n){return()=>n.scrollStrategies.reposition()}},Ag=fa({passive:!0});let Qc=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=a,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Mt.w0.EMPTY,this._hoverSubscription=Mt.w0.EMPTY,this._menuCloseSubscription=Mt.w0.EMPTY,this._handleTouchStart=h=>{Eh(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=d instanceof Jc?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ag),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ag),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Jc&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Ke(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Jc?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Gt.h)(r=>"void"===r.toState),(0,Ot.q)(1),Ke(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Co({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",d="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,d)):e.setPositionClasses(l,d)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[d,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[a,c]=[d,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===d?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(a="top"===d?"bottom":"top",c="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:a,overlayX:u,overlayY:d,offsetY:f},{originX:l,originY:a,overlayX:h,overlayY:d,offsetY:f},{originX:r,originY:c,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:c,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Be.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Gt.h)(d=>d!==this._menuItemInstance),(0,Gt.h)(()=>this._menuOpen)):(0,Be.of)();return(0,Ci.T)(e,r,l,t)}_handleMousedown(e){Wa(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Gt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,bg.g)(0,rm)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Jc&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ot.q)(1),(0,bg.g)(0,rm),Ke(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new yo(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pp),i.Y36(wg,8),i.Y36(ns,10),i.Y36(Si,8),i.Y36(An),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),vw=(()=>{class n extends Qc{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),wu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Aw],imports:[C.ez,ot,un,Cl,Ja,ot]}),n})();var fp=M(3099);const eD=["*"];let mp;function Cu(n){return function tD(){if(void 0===mp&&(mp=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(mp=n.trustedTypes.createPolicy("angular#components",{createHTML:o=>o}))}return mp}()?.createHTML(n)||n}function Tw(n){return Error(`Unable to find icon with the name "${n}"`)}function vg(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Tg(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Hl{constructor(o,e,t){this.url=o,this.svgText=e,this.options=t}}let ko=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Hl(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw Tg(r);const s=Cu(d);return this._addSvgIconConfig(e,t,new Hl("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Hl(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Tg(t);const d=Cu(l);return this._addSvgIconSetConfig(e,new Hl("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw vg(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Be.of)(gp(r)):this._loadSvgIconFromConfig(new Hl(e,null)).pipe((0,Vt.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,Qe.U)(l=>gp(l)))}getNamedSvgIcon(e,t=""){const r=Mg(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,pr._)(Tw(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Be.of)(gp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,Qe.U)(t=>gp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Be.of)(r):Tm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,O.K)(s=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),(0,Be.of)(null)})))).pipe((0,Qe.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Tw(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(d,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Vt.b)(t=>e.svgText=t),(0,Qe.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Be.of)(null):this._fetchIcon(e).pipe((0,Vt.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const s=this._svgElementFromString(Cu(""));return s.appendChild(d),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Cu("")),r=e.attributes;for(let l=0;lCu(c)),Zt(()=>this._inProgressUrlFetches.delete(d)),(0,fp.B)());return this._inProgressUrlFetches.set(d,a),a}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Mg(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ro?o.pathname+o.search:""}}}),Hw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],fM=Hw.map(n=>`[${n}]`).join(", "),nD=/^url\(['"]?#(.*?)['"]?\)$/;let Ii=(()=>{class n extends xw{constructor(e,t,r,l,d,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Mt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Fe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(fM),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],a=s.getAttribute(d),c=a?a.match(nD):null;if(c){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,Ot.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(ko),i.$8M("aria-hidden"),i.Y36(Dw),i.Y36(i.qLn),i.Y36(Sw,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:eD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),n})(),kl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function Is(n){return!!n&&(n instanceof nn.y||(0,ba.m)(n.lift)&&(0,ba.m)(n.subscribe))}var rD=M(6063);class aD extends De.x{constructor(o=1/0,e=1/0,t=rD.l){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:d}=this;e||(t.push(o),!r&&t.push(l.now()+d)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let d=0;dnew aD(t,o,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class _p{}let gM=(()=>{class n extends _p{getTranslation(e){return(0,Be.of)({})}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class kw{}let Au=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function xg(n,o){if(n===o)return!0;if(null===n||null===o)return!1;if(n!=n&&o!=o)return!0;let r,l,d,e=typeof n;if(e==typeof o&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(o))return!1;for(l in d=Object.create(null),n){if(!xg(n[l],o[l]))return!1;d[l]=!0}for(l in o)if(!(l in d)&&typeof o[l]<"u")return!1;return!0}if(!Array.isArray(o))return!1;if((r=n.length)==o.length){for(l=0;l{Kc(o[t])?t in n?e[t]=Sg(n[t],o[t]):Object.assign(e,{[t]:o[t]}):Object.assign(e,{[t]:o[t]})}),e}class vu{}let _M=(()=>{class n extends vu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Os(e)||!Os(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return Os(d)?d:r}):e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Xc{}let Dg=(()=>{class n extends Xc{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Pw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const bp=new i.OlP("USE_STORE"),Rw=new i.OlP("USE_DEFAULT_LANG"),Eg=new i.OlP("DEFAULT_LANGUAGE"),Hg=new i.OlP("USE_EXTEND");let Yi=(()=>{class n{constructor(e,t,r,l,d,s=!0,a=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Be.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,Ot.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Be.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(mM(1),(0,Ot.q)(1));return this.loadingTranslations=t.pipe((0,Qe.U)(r=>this.compiler.compileTranslations(r,e)),mM(1),(0,Ot.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Sg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},s=!1;for(let a of t)d[a]=this.getParsedResult(e,a,r),Is(d[a])&&(s=!0);return s?Tm(t.map(c=>Is(d[c])?d[c]:(0,Be.of)(d[c]))).pipe((0,Qe.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let d={key:t,translateService:this};typeof r<"u"&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return typeof l<"u"?l:t}get(e,t){if(!Os(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,En.b)(r=>Is(r=this.getParsedResult(r,e,t))?r:(0,Be.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Is(r)?r:(0,Be.of)(r)}}getStreamOnTranslationChange(e,t){if(!Os(e)||!e.length)throw new Error('Parameter "key" required');return(0,ka.z)(hr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Dt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Be.of)(l)})))}stream(e,t){if(!Os(e)||!e.length)throw new Error('Parameter "key" required');return(0,ka.z)(hr(()=>this.get(e,t)),this.onLangChange.pipe((0,Dt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Is(l)?l:(0,Be.of)(l)})))}instant(e,t){if(!Os(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Is(r)){if(e instanceof Array){let l={};return e.forEach((d,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pw),i.LFG(_p),i.LFG(Xc),i.LFG(vu),i.LFG(kw),i.LFG(Rw),i.LFG(bp),i.LFG(Hg),i.LFG(Eg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),St=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Is(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(xg(e,this.lastKey)&&xg(t,this.lastParams))return this.value;let r;if(Os(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),yp=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:_p,useClass:gM},e.compiler||{provide:Xc,useClass:Dg},e.parser||{provide:vu,useClass:_M},e.missingTranslationHandler||{provide:kw,useClass:Au},Pw,{provide:bp,useValue:e.isolate},{provide:Rw,useValue:e.useDefaultLang},{provide:Hg,useValue:e.extend},{provide:Eg,useValue:e.defaultLanguage},Yi]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:_p,useClass:gM},e.compiler||{provide:Xc,useClass:Dg},e.parser||{provide:vu,useClass:_M},e.missingTranslationHandler||{provide:kw,useClass:Au},{provide:bp,useValue:e.isolate},{provide:Rw,useValue:e.useDefaultLang},{provide:Hg,useValue:e.extend},{provide:Eg,useValue:e.defaultLanguage},Yi]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),bM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bu,wu,kl,_a,yp,C.ez]}),n})();var sD=M(5861);function yM(n,o){}class wp{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 wM=(()=>{class n extends _l{constructor(e,t,r,l,d,s,a,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=d,this._ngZone=s,this._overlayRef=a,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=xs(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=xs();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=xs())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zd),i.Y36(C.K0,8),i.Y36(wp),i.Y36($d),i.Y36(i.R0b),i.Y36(on),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(Qa,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,yM,0,0,"ng-template",0)},dependencies:[Qa],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Pg{constructor(o,e){this.overlayRef=o,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!$i(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(o,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(o),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",e=""){return this.overlayRef.updateSize({width:o,height:e}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}}const Rg=new i.OlP("DialogScrollStrategy"),Lw=new i.OlP("DialogData"),lD=new i.OlP("DefaultDialogConfig"),CM={provide:Rg,deps:[hn],useFactory:function Ca(n){return()=>n.scrollStrategies.block()}};let Lg=0,Iw=(()=>{class n{constructor(e,t,r,l,d,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new wp,...t}).id=t.id||"cdk-dialog-"+Lg++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),d=this._overlay.create(l),s=new Pg(d,t),a=this._attachContainer(d,s,t);return s.containerInstance=a,this._attachDialogContent(e,s,a,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){$n(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){$n(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),$n(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new Co({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){const l=r.injector??r.viewContainerRef?.injector,d=[{provide:wp,useValue:r},{provide:Pg,useValue:t},{provide:on,useValue:e}];let s;r.container?"function"==typeof r.container?s=r.container:(s=r.container.type,d.push(...r.container.providers(r))):s=wM;const a=new gl(s,r.viewContainerRef,i.zs3.create({parent:l||this._injector,providers:d}),r.componentFactoryResolver);return e.attach(a).instance}_attachDialogContent(e,t,r,l){const d=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new yo(e,null,s,d))}else{const s=r.attachComponentPortal(new gl(e,l.viewContainerRef,d,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:Lw,useValue:e.data},{provide:Pg,useValue:t}];return e.providers&&("function"==typeof e.providers?d.push(...e.providers(t,e,r)):d.push(...e.providers)),e.direction&&(!l||!l.get(Si,null,i.XFs.Optional))&&d.push({provide:Si,useValue:{value:e.direction,change:(0,Be.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:d})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,d)=>{l?d.setAttribute("aria-hidden",l):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hn),i.LFG(i.zs3),i.LFG(lD,8),i.LFG(n,12),i.LFG(Ao),i.LFG(Rg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function $n(n,o){let e=n.length;for(;e--;)o(n[e])}let AM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Iw,CM],imports:[Cl,wo,kh,wo]}),n})();function Ig(n,o){}const ed={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},vM={dialogContainer:hi("dialogContainer",[xt("void, exit",Pe({opacity:0,transform:"scale(0.7)"})),xt("enter",Pe({transform:"none"})),_t("* => enter",zh([yt("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Pe({transform:"none",opacity:1})),Pn("@*",kc(),{optional:!0})]),ed),_t("* => void, * => exit",zh([yt("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Pe({opacity:0})),Pn("@*",kc(),{optional:!0})]),ed)])};class Pl{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=ed.params.enterAnimationDuration,this.exitAnimationDuration=ed.params.exitAnimationDuration}}let Ow=(()=>{class n extends wM{constructor(e,t,r,l,d,s,a,c){super(e,t,r,l,d,s,a,c),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zd),i.Y36(C.K0,8),i.Y36(Pl),i.Y36($d),i.Y36(i.R0b),i.Y36(on),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Vw=(()=>{class n extends Ow{constructor(e,t,r,l,d,s,a,c,u){super(e,t,r,l,d,s,a,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ed.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ed.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zd),i.Y36(C.K0,8),i.Y36(Pl),i.Y36($d),i.Y36(i.R0b),i.Y36(on),i.Y36(i.sBO),i.Y36(An))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,Ig,0,0,"ng-template",0)},dependencies:[Qa],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:[vM.dialogContainer]}}),n})();class In{constructor(o,e,t){this._ref=o,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=o.id,t._animationStateChanged.pipe((0,Gt.h)(r=>"opened"===r.state),(0,Ot.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Gt.h)(r=>"closed"===r.state),(0,Ot.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Ci.T)(this.backdropClick(),this.keydownEvents().pipe((0,Gt.h)(r=>27===r.keyCode&&!this.disableClose&&!$i(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function Bw(n,o,e){n._closeInteractionType=o,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(o){this._result=o,this._containerInstance._animationStateChanged.pipe((0,Gt.h)(e=>"closing"===e.state),(0,Ot.q)(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(o){let e=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?e.left(o.left):e.right(o.right):e.centerHorizontally(),o&&(o.top||o.bottom)?o.top?e.top(o.top):e.bottom(o.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",e=""){return this._ref.updateSize(o,e),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Zr=new i.OlP("MatDialogData"),TM=new i.OlP("mat-dialog-default-options"),Og=new i.OlP("mat-dialog-scroll-strategy"),Po={provide:Og,deps:[hn],useFactory:function Vg(n){return()=>n.scrollStrategies.block()}};let Fw=0,Bg=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=a,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=hr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Et(void 0))),this._scrollStrategy=s,this._dialog=t.get(Iw)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Pl,...t}).id=t.id||`${this._idPrefix}${Fw++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Pl,useValue:t},{provide:wp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(d,s,a)=>(r=new this._dialogRefConstructor(d,t,a),r.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:a},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const d=this.openDialogs.indexOf(r);d>-1&&(this.openDialogs.splice(d,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),bi=(()=>{class n extends Bg{constructor(e,t,r,l,d,s,a,c){super(e,t,l,s,a,d,In,Vw,Zr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hn),i.LFG(i.zs3),i.LFG(C.Ye,8),i.LFG(TM,8),i.LFG(Og),i.LFG(n,12),i.LFG(Ao),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),MM=0,xr=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+MM++}ngOnInit(){this._dialogRef||(this._dialogRef=function xM(n,o){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?o.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In,8),i.Y36(i.SBq),i.Y36(bi))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),Sr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Dr=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Tu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[bi,Po],imports:[AM,Cl,wo,ot,ot]}),n})();var dD=M(4327);const Ro=[5,10,25,100];function Nw(n){let o="";return null!==n.titleBefore&&(o+=n.titleBefore+" "),null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),null!==n.titleAfter&&(o+=n.titleAfter+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}function Ng(){return(Ng=(0,sD.Z)(function*(n,o){yield Uw(n),o()})).apply(this,arguments)}function Uw(n){return new Promise(o=>setTimeout(o,n))}function Mn(){const n=new Pl;return n.disableClose=!0,n.autoFocus=!1,n}const OM=new Intl.Collator("cs",{numeric:!0});function Lo(n,o,e){const t=o.active,r=o.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),a=e(d,t);return OM.compare(s,a)*("asc"===r?1:-1)}):n}function Rl(n,o,e,t,r){o=o.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(o)}function Vs(n,o){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===o&&(e=t.value)}),e}function Mu(n,o,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return o=o.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};o.forEach(s=>{d[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(d)}),t}function xu(n,o="csv",e="export"){if("csv"===o){const t=(a,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(a=>r.map(c=>JSON.stringify(a[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),s=new Blob([d],{type:"text/csv"});(0,dD.saveAs)(s,`${e}.${o}`)}}const Jw="GUI_CONFIG.PREF_PAGE_SIZE.";let NM=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qw=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Jw+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Jw+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(NM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ck=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA()()()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},dependencies:[yu,ns,vw,Ii,Yt,St]}),n})();function Ak(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportData.emit(r))}),i.qZA()}}function vk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportData.emit(r))}),i.qZA()}}const Tk=["*"];let rs=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Ro,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Qw))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(gw,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:Tk,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,Ak,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1)(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,vk,1,0,"perun-web-apps-table-options",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},dependencies:[gw,C.O5,Ck]}),n})(),Zn=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let r=null;for(const l of t)l&&!r&&(r=l[e]);return r}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Ri),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(d.prompt="consent"),sessionStorage.getItem("mfa_route")&&(d.acr_values="https://refeds.org/profile/mfa",d.prompt?d.prompt+=" login":d.prompt="login",d.max_age="0"),"Linker"===this.store.getProperty("application")){d.prompt?d.prompt+=" login":d.prompt="login";const s=function BM(n,o){const e=o.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));s&&(d.idphint=s)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:d}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(r=>r?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Gt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(s=>{const a=s.split("=");d[a[0]]=a[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Gt.h)(e=>e instanceof la)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(Zn),i.LFG(bi),i.LFG(zn),i.LFG(GM.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mk=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[Sr,St]}),n})(),qM=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Mn();this.dialog.open(Mk,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zg),i.LFG(Zn),i.LFG(ra),i.LFG(nt),i.LFG(bi),i.LFG(Ri))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xD=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ko),i.LFG(Ei))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),xk=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[xr,Sr,Dr,Yt,St]}),n})(),Sk=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),On=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SD=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=s}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=Mn();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(xk,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zt(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Vt.b)(s=>{s instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},s=>{const a=this.formatErrors(s,e);return void 0===a?(0,pr._)(s):l?void this.notificator.showRPCError(a):(0,pr._)(a)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zg),i.LFG(Sk),i.LFG(On),i.LFG(Zn),i.LFG(bi),i.LFG(qM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DD=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dk=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new w.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,O.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,O.K)(s=>this.formatErrors(s,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:s}).pipe((0,O.K)(a=>this.formatErrors(a,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,O.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,pr._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(On),i.LFG(zg),i.LFG(Zn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,s,a,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,a).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const s of l){const a=s.split("=");"lang"===a[0]&&(d=a[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zn),i.LFG(Zn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uC=["*"],Hk=["content"];function kk(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Pk(n,o){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Rk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Lk=["mat-drawer","mat-drawer-content","*"];function Ik(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Ok(n,o){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Vk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Bk=["mat-sidenav","mat-sidenav-content","*"],ED={transformDrawer:hi("transform",[xt("open, open-instant",Pe({transform:"none",visibility:"visible"})),xt("void",Pe({"box-shadow":"none",visibility:"hidden"})),_t("void => open-instant",yt("0ms")),_t("void <=> open, open-instant => void",yt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},jk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Nk(){return!1}}),WM=new i.OlP("MAT_DRAWER_CONTAINER");let hC=(()=>{class n extends fl{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>kD)),i.Y36(i.SBq),i.Y36(_o),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:fl,useExisting:n}]),i.qOj],ngContentSelectors:uC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),HD=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=a,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Gt.h)(u=>u),(0,Qe.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,Kt.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Gt.h)(u=>!u),(0,Qe.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Gt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,Kt.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Za(this._elementRef.nativeElement,"keydown").pipe((0,Gt.h)(u=>27===u.keyCode&&!this.disableClose&&!$i(u)),Ke(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(cl((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Fe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Fe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Fe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,Ot.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zd),i.Y36(An),i.Y36(xi),i.Y36(i.R0b),i.Y36($d),i.Y36(C.K0,8),i.Y36(WM,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(Hk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:uC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[fl],encapsulation:2,data:{animation:[ED.transformDrawer]},changeDetection:0}),n})(),kD=(()=>{class n{constructor(e,t,r,l,d,s=!1,a){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=a,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(Ke(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Ke(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Fe(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:Fe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Et(this._allDrawers),Ke(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Et(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ll.b)(10),Ke(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Gt.h)(t=>t.fromState!==t.toState),Ke(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Ke(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Ke(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ot.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Ke((0,Ci.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(ya),i.Y36(jk),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hC,5),i.Suo(r,HD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(hC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:WM,useExisting:n}])],ngContentSelectors:Lk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Rk),i.YNc(0,kk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Pk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,hC],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),$M=(()=>{class n extends hC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>RD)),i.Y36(i.SBq),i.Y36(_o),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:fl,useExisting:n}]),i.qOj],ngContentSelectors:uC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),PD=(()=>{class n extends HD{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Fe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Fi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Fi(e)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:uC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[fl],encapsulation:2,data:{animation:[ED.transformDrawer]},changeDetection:0}),n})(),RD=(()=>{class n extends kD{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,$M,5),i.Suo(r,PD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:WM,useExisting:n}]),i.qOj],ngContentSelectors:Bk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Vk),i.YNc(0,Ik,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Ok,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[C.O5,$M],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),LD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,Ja,Ja,ot]}),n})();const ID=fa({passive:!0});let Yk=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return yi.E;const t=Zi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,d="cdk-text-field-autofilled",s=a=>{"cdk-text-field-autofill-start"!==a.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===a.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:a.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,ID),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,ID)}}),l}stopMonitoring(e){const t=Zi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),OD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const VD=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),zk=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Uk=0;const Gk=Ac(class{constructor(n,o,e,t){this._defaultErrorStateMatcher=n,this._parentForm=o,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let as=(()=>{class n extends Gk{constructor(e,t,r,l,d,s,a,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+Uk++,this.focused=!1,this.stateChanges=new De.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(B=>AA().has(B)),this._iOSKeyupListener=B=>{const ee=B.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=a||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Fe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(Li.required)??!1}set required(e){this._required=Fe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&AA().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Fe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,t=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(t!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=t,t?r.setAttribute("placeholder",t):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){zk.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36($r,10),i.Y36(xl,8),i.Y36(Dl,8),i.Y36(hl),i.Y36(VD,10),i.Y36(Yk),i.Y36(i.R0b),i.Y36($h,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[i._Bn([{provide:Rc,useExisting:n}]),i.qOj,i.TTD]}),n})(),pC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hl],imports:[OD,Ic,ot,OD,Ic]}),n})();function qk(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let Wk=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",M(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Yi),i.Y36(On),i.Y36(ai),i.Y36(Zn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,qk,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i.TgZ(21,"div",6)(22,"div",7)(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA()()()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[C.O5,Rn,qn,is,Sl,Yt,Xa,Gn,pn,wa,as,xr,Sr,Dr,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),$k=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),Zk=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),Jk=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function Qk(n,o){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function Kk(n,o){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function Xk(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,Qk,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,Kk,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=o.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const eP=function(n){return{"min-height":n}};function tP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,Xk,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,eP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const nd=function(n){return{color:n}};function iP(n,o){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,nd,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function nP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.openDialog(r.dialog))}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,nd,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function rP(n,o){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,nd,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function aP(n,o){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,nd,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function sP(n,o){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,iP,2,4,"i",17),i.YNc(2,nP,3,8,"span",18),i.YNc(3,rP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,aP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=o.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const oP=function(n){return{height:n}};function lP(n,o){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,sP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,oP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function cP(n,o){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,tP,2,4,"div",9),i.YNc(5,lP,2,4,"div",9),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,nd,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function dP(n,o){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,nd,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const uP=function(n){return{background:n}};let BD=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=M(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Mn();"reportIssue"===e&&(t.width="550px",this.dialog.open(Wk,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(Yi),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,cP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,dP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(8,uP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,nd,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,nd,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},dependencies:[C.sg,C.O5,C.PC,$k,Zk,Jk],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),n})();function hP(n,o){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function pP(n,o){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const fP=function(n){return{color:n}};function mP(n,o){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,fP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const gP=function(n,o){return{background:n,color:o}},_P=function(n,o){return{"min-height":n,"background-color":o}};let bP=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(Ei),i.Y36(Ek),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,hP,2,1,"div",1),i.YNc(2,pP,3,1,"div",2),i.YNc(3,mP,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,gP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,_P,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[C.O5,C.PC,Ii,gi,BD],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})();hi("openClose",[xt("open",Pe({overflow:"hidden"})),xt("closed",Pe({height:"0px",overflow:"hidden"})),_t("open <=> closed",[yt(".3s ease-in")])]);const yP=hi("flyInOut",[_t(":enter",[Pe({transform:"translateX(100%)"}),yt(".25s")]),_t(":leave",[yt(".5s",Pe({transform:"translateX(100%)"}))])]);hi("rollInOut",[_t(":enter",[Pe({height:"0px"}),yt(".25s")]),_t(":leave",[yt(".25s",Pe({height:"0px"}))])]),hi("routeAnimations",[_t("* => *",[Pe({position:"relative"}),Pn(":enter",[Pe({width:"100%",opacity:0})],{optional:!0}),Pn(":leave",[Pe({position:"absolute",width:"100%",opacity:1}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Pn(":enter",[Pe({position:"absolute",width:"100%",opacity:0}),yt("0.15s",Pe({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),hi("tagsOpenClose",[xt("open",Pe({})),xt("closed",Pe({width:"0px",height:"0px"})),_t("open <=> closed",[yt(".3s ease-in")])]),hi("switchAnimations",[_t("true => false",[Pn(":enter, :leave",Pe({})),zh([Pn(":enter",[Pe({transform:"translateX(-100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Pn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(100%)"}))],{optional:!0})])]),_t("false => true",[Pn(":enter, :leave",Pe({})),zh([Pn(":enter",[Pe({transform:"translateX(100%)"}),yt("1s ease-in-out",Pe({transform:"translateX(0%)"}))],{optional:!0}),Pn(":leave",[Pe({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Pe({transform:"translateX(-100%)"}))],{optional:!0})])])]),hi("slideInOutLeft",[_t(":enter",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[yt("0.5s ease-in",Pe({transform:"translateX(-100%)"}))])]),hi("slideInOutRight",[_t(":enter",[Pe({transform:"translateX(100%)",position:"fixed"}),yt("0.5s ease-in",Pe({transform:"translateX(0%)"}))]),_t(":leave",[Pe({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Pe({transform:"translateX(100%)"}))])]);let FD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez]}),n})();function xP(n,o){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function SP(n,o){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const EP=$a(class{constructor(n){this._elementRef=n}},"primary"),HP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function kP(){return{diameter:100}}});class Ai extends EP{constructor(o,e,t,r,l,d,s,a){super(o),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Mt.w0.EMPTY,this.mode="determinate";const c=Ai._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===o.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&a&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&a.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(o){this._diameter=Fi(o),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(o){this._strokeWidth=Fi(o)}get value(){return"determinate"===this.mode?this._value:0}set value(o){this._value=Math.max(0,Math.min(100,Fi(o)))}ngOnInit(){const o=this._elementRef.nativeElement;this._styleRoot=fc(o)||this._document.head,this._attachStyleNode(),o.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const o=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${o} ${o}`}_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(o){const e=50*(o.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const o=this._styleRoot,e=this._diameter,t=Ai._diameters;let r=t.get(o);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),o.appendChild(l),r||(r=new Set,t.set(o,r)),r.add(e)}}_getAnimationText(){const o=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*o).replace(/END_VALUE/g,""+.2*o).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ai._diameters=new WeakMap,Ai.\u0275fac=function(o){return new(o||Ai)(i.Y36(i.SBq),i.Y36(xi),i.Y36(C.K0,8),i.Y36(i.QbO,8),i.Y36(HP),i.Y36(i.sBO),i.Y36(ya),i.Y36(i.R0b))},Ai.\u0275cmp=i.Xpm({type:Ai,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(o,e){2&o&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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(o,e){1&o&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,xP,1,11,"circle",2),i.YNc(3,SP,1,9,"circle",3),i.qZA()),2&o&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[C.RF,C.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 fC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,C.ez,ot]}),n})();function RP(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function LP(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function IP(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function OP(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,LP,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,IP,3,3,"mat-error",11),i.qZA()()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let VP=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",M(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Yi),i.Y36(On),i.Y36(ai),i.Y36(Zr),i.Y36(Zn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,RP,1,0,"mat-spinner",1),i.YNc(4,OP,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[C.O5,xr,Sr,Dr,Yt,Xa,Gn,wa,Rn,qn,is,Sl,as,Ai,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),BP=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Mn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(VP,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(bi),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2)(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[xr,Sr,Dr,Yt,St]}),n})();const zP=[[["caption"]],[["colgroup"],["col"]]],UP=["caption","colgroup, col"];function JM(n){return class extends n{constructor(...o){super(...o),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(o){const e=this._sticky;this._sticky=Fe(o),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const o=this._hasStickyChanged;return this._hasStickyChanged=!1,o}resetStickyChanged(){this._hasStickyChanged=!1}}}const Cp=new i.OlP("CDK_TABLE");let Ap=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),vp=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),mC=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class $P{}const ZP=JM($P);let Ll=(()=>{class n extends ZP{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Fe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Ap,5),i.Suo(r,vp,5),i.Suo(r,mC,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class QM{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}}let KM=(()=>{class n extends QM{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ll),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),XM=(()=>{class n extends QM{constructor(e,t){if(super(e,t),1===e._table?._elementRef.nativeElement.nodeType){const r=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===r||"treegrid"===r?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ll),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class ND{constructor(){this.tasks=[],this.endTasks=[]}}const ex=new i.OlP("_COALESCED_STYLE_SCHEDULER");let YD=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ND,this._getScheduleObservable().pipe(Ke(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new ND;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,cn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Ot.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),tx=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Ug?e.headerCell.template:this instanceof Gg?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class JP extends tx{}const QP=JM(JP);let Ug=(()=>{class n extends QP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class KP extends tx{}const XP=JM(KP);let Gg=(()=>{class n extends XP{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),gC=(()=>{class n extends tx{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Cp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Il=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),ix=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Il],encapsulation:2}),n})(),rx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Il],encapsulation:2}),n})(),_C=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const zD=["top","bottom","left","right"];class eR{constructor(o,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=o,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){const t=[];for(const r of o)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(o,e,t,r=!0){if(!o.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=o[0],d=l.children.length,s=this._getCellWidths(l,r),a=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",B=f?"left":"right";for(const ee of o)for(let he=0;hee[he]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((ee,he)=>t[he+h]?ee:null).reverse()}))})}stickRows(o,e,t){if(!this._isBrowser)return;const r="bottom"===t?o.slice().reverse():o,l="bottom"===t?e.slice().reverse():e,d=[],s=[],a=[];for(let u=0,h=0;u{for(let u=0;u{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(o,e){for(const r of e)o.style[r]="",o.classList.remove(this._borderCellCss[r]);zD.some(r=>-1===e.indexOf(r)&&o.style[r])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,r){o.classList.add(this._stickCellCss),r&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of zD)o.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=o.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=o[l]);return t}}const ax=new i.OlP("CDK_SPL");let bC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),yC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),wC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),CC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),AC=(()=>{class n{constructor(e,t,r,l,d,s,a,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=a,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new Hi({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Fe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Fe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Ke(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Oc(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Ot.q)(1),Ke(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(d)?r.get(d):[];if(s.length){const a=s.shift();return a.dataIndex=t,a}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),vC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=vC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=vC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=vC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,s)=>d||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Oc(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Oc(this.dataSource)?e=this.dataSource.connect(this):Is(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Be.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Ke(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),d=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Il.mostRecentCellOutlet&&Il.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new eR(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,Be.of)()).pipe(Ke(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&d?.nodeType===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Si,8),i.Y36(C.K0),i.Y36(xi),i.Y36(Vc),i.Y36(ex),i.Y36(ya),i.Y36(ax,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,_C,5),i.Suo(r,Ll,5),i.Suo(r,gC,5),i.Suo(r,Ug,5),i.Suo(r,Gg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(bC,7),i.Gf(yC,7),i.Gf(wC,7),i.Gf(CC,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Cp,useExisting:n},{provide:Vc,useClass:uy},{provide:ex,useClass:YD},{provide:ax,useValue:null}])],ngContentSelectors:UP,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(zP),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[bC,yC,wC,CC],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function vC(n,o){return n.concat(Array.from(o))}let iR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ml]}),n})();const nR=[[["caption"]],[["colgroup"],["col"]]],rR=["caption","colgroup, col"];let Io=(()=>{class n extends AC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:Vc,useClass:uy},{provide:AC,useExisting:n},{provide:Cp,useExisting:n},{provide:ex,useClass:YD},{provide:ax,useValue:null}]),i.qOj],ngContentSelectors:rR,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(nR),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[bC,yC,wC,CC],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),Bs=(()=>{class n extends Ap{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:Ap,useExisting:n}]),i.qOj]}),n})(),Fs=(()=>{class n extends vp{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:vp,useExisting:n}]),i.qOj]}),n})(),js=(()=>{class n extends Ll{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ll,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),Ns=(()=>{class n extends KM{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),Ys=(()=>{class n extends XM{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Ol=(()=>{class n extends Ug{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:Ug,useExisting:n}]),i.qOj]}),n})(),Oo=(()=>{class n extends gC{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:gC,useExisting:n}]),i.qOj]}),n})(),Vl=(()=>{class n extends ix{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:ix,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Il],encapsulation:2}),n})(),Vo=(()=>{class n extends rx{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:rx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Il],encapsulation:2}),n})(),TC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[iR,ot,ot]}),n})();class Bl extends class mR extends class Am{}{constructor(o=[]){super(),this._renderData=new Hi([]),this._filter=new Hi(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Z_(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,s)=>{let a=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof a,h=typeof c;u!==h&&("number"===u&&(a+=""),"number"===h&&(c+=""));let f=0;return null!=a&&null!=c?a>c?f=1:a{const r=Object.keys(e).reduce((d,s)=>d+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Hi(o),this._updateChangeSubscription()}get data(){return this._data.value}set data(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}get filter(){return this._filter.value}set filter(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(o){this._sort=o,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(o){this._paginator=o,this._updateChangeSubscription()}_updateChangeSubscription(){const o=this._sort?(0,Ci.T)(this._sort.sortChange,this._sort.initialized):(0,Be.of)(null),e=this._paginator?(0,Ci.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Be.of)(null),r=(0,Ha.a)([this._data,this._filter]).pipe((0,Qe.U)(([s])=>this._filterData(s))),l=(0,Ha.a)([r,o]).pipe((0,Qe.U)(([s])=>this._orderData(s))),d=(0,Ha.a)([l,e]).pipe((0,Qe.U)(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=d.subscribe(s=>this._renderData.next(s))}_filterData(o){return this.filteredData=null==this.filter||""===this.filter?o:o.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(o){return this.sort?this.sortData(o.slice(),this.sort):o}_pageData(o){if(!this.paginator)return o;const e=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(e,e+this.paginator.pageSize)}_updatePaginator(o){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=o,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}{}function gR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function _R(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function bR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function yR(n,o){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const wR=["*"];let zs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:wR,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,gR,2,0,"mat-icon",1),i.YNc(2,_R,2,0,"mat-icon",1),i.YNc(3,bR,2,0,"mat-icon",1),i.YNc(4,yR,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},dependencies:[Ii,C.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function CR(n,o){1&n&&i._UZ(0,"mat-spinner",7)}function AR(n,o){1&n&&(i.TgZ(0,"div",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function vR(n,o){1&n&&i._UZ(0,"th",18)}function TR(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e)}}function MR(n,o){1&n&&i._UZ(0,"tr",20)}function xR(n,o){1&n&&i._UZ(0,"tr",21)}function SR(n,o){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function DR(n,o){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,AR,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,vR,1,0,"th",12),i.YNc(8,TR,2,1,"td",13),i.BQk(),i.YNc(9,MR,1,0,"tr",14),i.YNc(10,xR,1,0,"tr",15),i.qZA(),i.YNc(11,SR,3,4,"perun-web-apps-alert",16),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function ER(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function HR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let GD=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Bl(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,CR,1,0,"mat-spinner",1),i.YNc(5,DR,12,8,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,ER,3,4,"button",5),i.YNc(11,HR,3,4,"button",6),i.qZA()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},dependencies:[C.O5,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,xr,Sr,Dr,Yt,Ai,zs,St]}),n})(),jR=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1)(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[xr,Dr,Yt,St]}),n})();function qR(n,o){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function WR(n,o){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let $R=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Mn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(BP,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function zw(n,o){Ng.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(DD))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,qR,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,WR,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA()()()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},dependencies:[C.O5,Ii,St],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function ZR(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,d=i.oxw();return i.KtG(d.removeNotification(l))}),i.qZA()()}if(2&n){const e=o.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const JR=function(n){return{top:n}};let QR=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(On),i.Y36(DD))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,ZR,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,JR,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[C.sg,C.PC,$R],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[yP]}}),n})(),KR=(()=>{class n{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const WD=["*"],eL=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],tL=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],sL=sr(Cr(class{})),oL=Cr(class{}),lL=new i.OlP("MatList"),$D=new i.OlP("MatNavList");let cL=(()=>{class n extends sL{constructor(){super(...arguments),this._stateChanges=new De.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:$D,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:WD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),ZD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),dL=(()=>{class n extends oL{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Ke(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Fe(e)}ngAfterContentInit(){!function Wf(n,o,e="mat"){n.changes.pipe(Et(n)).subscribe(({length:t})=>{Xd(o,`${e}-2-line`,!1),Xd(o,`${e}-3-line`,!1),Xd(o,`${e}-multi-line`,!1),2===t||3===t?Xd(o,`${e}-${t}-line`,!0):t>3&&Xd(o,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36($D,8),i.Y36(lL,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ZD,5),i.Suo(r,JD,5),i.Suo(r,qf,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:tL,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(eL),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[Ar],encapsulation:2,changeDetection:0}),n})(),KD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[vc,un,ot,$f,C.ez,vc,ot,$f,sx]}),n})();function gL(n,o){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function _L(n,o){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const bL=function(n){return{color:n}};function yL(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.shouldHideMenu())}),i.YNc(1,gL,1,1,"mat-icon",3),i.YNc(2,_L,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,bL,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let wL=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof la&&(this.currentUrl=l.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(KR),i.Y36(Zn),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,yL,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[C.sg,C.O5,C.PC,Ii,cL,dL,Ar,hc,St],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();const CL=["*",[["mat-toolbar-row"]]],AL=["*","mat-toolbar-row"],vL=$a(class{constructor(n){this._elementRef=n}});let TL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),ML=(()=>{class n extends vL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(C.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,TL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:AL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(CL),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),XD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();function xL(n,o){1&n&&(i.TgZ(0,"div",13)(1,"span",14),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",15),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",14),i._uU(6," \xa0\u{1f5f2} ~ "),i.qZA()())}const SL=function(n){return{background:n}},MC=function(n){return{color:n}};let DL=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(zg),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[1,"display-flex"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white","routerLink","/all-publications",1,"mt-auto","mb-auto","router-icon","ml-2","mr-4"],[1,"mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(i.TgZ(0,"mat-toolbar",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA()(),i._UZ(5,"a",3)(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA()(),i.YNc(10,xL,7,0,"div",6),i.TgZ(11,"div",7)(12,"button",8)(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA()(),i.TgZ(17,"mat-menu",null,11)(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA()()()()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,SL,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,MC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,MC,t.textColor)),i.xp6(1),i.hij(" ",i.lcZ(9,15,"HEADER.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("ngStyle",i.VKq(25,MC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,MC,t.iconColor)),i.xp6(3),i.xDo(" ",t.principal.user.titleBefore," ",t.principal.user.firstName," ",t.principal.user.middleName," ",t.principal.user.lastName," ",t.principal.user.titleAfter," "),i.xp6(4),i.Oqu(i.lcZ(21,17,"HEADER.LOGOUT"))}},dependencies:[C.O5,C.PC,Yt,Ii,yu,ns,vw,ML,hc,gf,St],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:row}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();const EL=["footer"],eE=function(n){return{background:n}},HL=function(n){return{"min-height":n}};function kL(n,o){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container")(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5)(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,7),i._UZ(11,"perun-web-apps-footer"),i.qZA()()()()),2&n){const e=i.MAs(4),t=i.oxw();i.xp6(1),i.Q6J("sideNav",e),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,eE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,eE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,HL,t.contentHeight))}}function PL(n,o){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",8),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let RL=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||e.includes("/all-publications"))&&this.router.navigate(["my-publications"])}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(Zn),i.Y36(qM),i.Y36(i.sBO),i.Y36(ra),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(EL,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"sideNav"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,kL,12,13,"div",0),i.YNc(2,PL,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},dependencies:[C.O5,C.PC,PD,RD,$M,gi,bP,BD,QR,wL,DL,St],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();class LL{constructor(o,e="/assets/i18n/",t=".json"){this.http=o,this.prefix=e,this.suffix=t}getTranslation(o){return this.http.get(`${this.prefix}${o}${this.suffix}`)}}let IL=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function OL(n){return[Jr(tinycolor(n).lighten(52),"50"),Jr(tinycolor(n).lighten(37),"100"),Jr(tinycolor(n).lighten(26),"200"),Jr(tinycolor(n).lighten(12),"300"),Jr(tinycolor(n).lighten(6),"400"),Jr(tinycolor(n),"500"),Jr(tinycolor(n).darken(6),"600"),Jr(tinycolor(n).darken(12),"700"),Jr(tinycolor(n).darken(18),"800"),Jr(tinycolor(n).darken(24),"900"),Jr(tinycolor(n).lighten(50).saturate(30),"A100"),Jr(tinycolor(n).lighten(30).saturate(30),"A200"),Jr(tinycolor(n).lighten(10).saturate(15),"A400"),Jr(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const a=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(a,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new w.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Zn),i.LFG(nt),i.LFG(ae),i.LFG(Kn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Jr(n,o){const e=tinycolor(n),t=e.toRgb();return{name:o,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let VL=(()=>{class n{constructor(e,t,r,l,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((e,t)=>{this.authzSevice.getAllPolicies().subscribe(r=>{this.guiAuthResolver.setPerunPolicies(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qM),i.LFG(IL),i.LFG(C.Ye),i.LFG(nt),i.LFG(ra))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const BL=new i.OlP("perun-api-service");function tE(n){return new i.vHH(3e3,!1)}function yI(){return typeof window<"u"&&typeof window.document<"u"}function ox(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function rd(n){switch(n.length){case 0:return new Pc;case 1:return n[0];default:return new Gh(n)}}function iE(n,o,e,t,r=new Map,l=new Map){const d=[],s=[];let a=-1,c=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==a,b=f&&c||new Map;u.forEach((B,ee)=>{let he=ee,We=B;if("offset"!==ee)switch(he=o.normalizePropertyName(he,d),We){case"!":We=r.get(ee);break;case ks:We=l.get(ee);break;default:We=o.normalizeStyleValue(ee,he,We,d)}b.set(he,We)}),f||s.push(b),c=b,a=h}),d.length)throw function oI(n){return new i.vHH(3502,!1)}();return s}function lx(n,o,e,t){switch(o){case"start":n.onStart(()=>t(e&&cx(e,"start",n)));break;case"done":n.onDone(()=>t(e&&cx(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&cx(e,"destroy",n)))}}function cx(n,o,e){const l=dx(n.element,n.triggerName,n.fromState,n.toState,o||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function dx(n,o,e,t,r="",l=0,d){return{element:n,triggerName:o,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function Aa(n,o,e){let t=n.get(o);return t||n.set(o,t=e),t}function nE(n){const o=n.indexOf(":");return[n.substring(1,o),n.slice(o+1)]}let ux=(n,o)=>!1,rE=(n,o,e)=>[],aE=null;function hx(n){const o=n.parentNode||n.host;return o===aE?null:o}(ox()||typeof Element<"u")&&(yI()?(aE=(()=>document.documentElement)(),ux=(n,o)=>{for(;o;){if(o===n)return!0;o=hx(o)}return!1}):ux=(n,o)=>n.contains(o),rE=(n,o,e)=>{if(e)return Array.from(n.querySelectorAll(o));const t=n.querySelector(o);return t?[t]:[]});let Su=null,sE=!1;const oE=ux,lE=rE;let cE=(()=>{class n{validateStyleProperty(e){return function CI(n){Su||(Su=function AI(){return typeof document<"u"?document.body:null}()||{},sE=!!Su.style&&"WebkitAppearance"in Su.style);let o=!0;return Su.style&&!function wI(n){return"ebkit"==n.substring(1,6)}(n)&&(o=n in Su.style,!o&&sE&&(o="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Su.style)),o}(e)}matchesElement(e,t){return!1}containsElement(e,t){return oE(e,t)}getParentElement(e){return hx(e)}query(e,t,r){return lE(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],a){return new Pc(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),px=(()=>{class n{}return n.NOOP=new cE,n})();const fx="ng-enter",xC="ng-leave",SC="ng-trigger",DC=".ng-trigger",uE="ng-animating",mx=".ng-animating";function ad(n){if("number"==typeof n)return n;const o=n.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:gx(parseFloat(o[1]),o[2])}function gx(n,o){return"s"===o?1e3*n:n}function EC(n,o,e){return n.hasOwnProperty("duration")?n:function MI(n,o,e){let r,l=0,d="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return o.push(tE()),{duration:0,delay:0,easing:""};r=gx(parseFloat(s[1]),s[2]);const a=s[3];null!=a&&(l=gx(parseFloat(a),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,a=o.length;r<0&&(o.push(function FL(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(o.push(function jL(){return new i.vHH(3101,!1)}()),s=!0),s&&o.splice(a,0,tE())}return{duration:r,delay:l,easing:d}}(n,o,e)}function qg(n,o={}){return Object.keys(n).forEach(e=>{o[e]=n[e]}),o}function hE(n){const o=new Map;return Object.keys(n).forEach(e=>{o.set(e,n[e])}),o}function sd(n,o=new Map,e){if(e)for(let[t,r]of e)o.set(t,r);for(let[t,r]of n)o.set(t,r);return o}function fE(n,o,e){return e?o+":"+e+";":""}function mE(n){let o="";for(let e=0;e{const l=bx(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),ox()&&mE(n))}function Du(n,o){n.style&&(o.forEach((e,t)=>{const r=bx(t);n.style[r]=""}),ox()&&mE(n))}function Wg(n){return Array.isArray(n)?1==n.length?n[0]:pm(n):n}const _x=new RegExp("{{\\s*(.+?)\\s*}}","g");function gE(n){let o=[];if("string"==typeof n){let e;for(;e=_x.exec(n);)o.push(e[1]);_x.lastIndex=0}return o}function HC(n,o,e){const t=n.toString(),r=t.replace(_x,(l,d)=>{let s=o[d];return null==s&&(e.push(function YL(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function kC(n){const o=[];let e=n.next();for(;!e.done;)o.push(e.value),e=n.next();return o}const DI=/-+([a-z0-9])/g;function bx(n){return n.replace(DI,(...o)=>o[1].toUpperCase())}function EI(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function va(n,o,e){switch(o.type){case 7:return n.visitTrigger(o,e);case 0:return n.visitState(o,e);case 1:return n.visitTransition(o,e);case 2:return n.visitSequence(o,e);case 3:return n.visitGroup(o,e);case 4:return n.visitAnimate(o,e);case 5:return n.visitKeyframes(o,e);case 6:return n.visitStyle(o,e);case 8:return n.visitReference(o,e);case 9:return n.visitAnimateChild(o,e);case 10:return n.visitAnimateRef(o,e);case 11:return n.visitQuery(o,e);case 12:return n.visitStagger(o,e);default:throw function zL(n){return new i.vHH(3004,!1)}()}}function _E(n,o){return window.getComputedStyle(n)[o]}function II(n,o){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function OI(n,o,e){if(":"==n[0]){const a=function VI(n,o){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof a)return void o.push(a);n=a}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function iI(n){return new i.vHH(3015,!1)}()),o;const r=t[1],l=t[2],d=t[3];o.push(bE(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&o.push(bE(d,r))}(t,e,o)):e.push(n),e}const IC=new Set(["true","1"]),OC=new Set(["false","0"]);function bE(n,o){const e=IC.has(n)||OC.has(n),t=IC.has(o)||OC.has(o);return(r,l)=>{let d="*"==n||n==r,s="*"==o||o==l;return!d&&e&&"boolean"==typeof r&&(d=r?IC.has(n):OC.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?IC.has(o):OC.has(o)),d&&s}}const BI=new RegExp("s*:selfs*,?","g");function yx(n,o,e,t){return new FI(n).build(o,e,t)}class FI{constructor(o){this._driver=o}build(o,e,t){const r=new YI(e);return this._resetContextStyleTimingState(r),va(this,Wg(o),r)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==o.name.charAt(0)&&e.errors.push(function GL(){return new i.vHH(3006,!1)}()),o.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const a=s,c=a.name;c.toString().split(/\s*,\s*/).forEach(u=>{a.name=u,l.push(this.visitState(a,e))}),a.name=c}else if(1==s.type){const a=this.visitTransition(s,e);t+=a.queryCount,r+=a.depCount,d.push(a)}else e.errors.push(function qL(){return new i.vHH(3007,!1)}())}),{type:7,name:o.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(o,e){const t=this.visitStyle(o.styles,e),r=o.options&&o.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(a=>{gE(a).forEach(c=>{d.hasOwnProperty(c)||l.add(c)})})}),l.size&&(kC(l.values()),e.errors.push(function WL(n,o){return new i.vHH(3008,!1)}()))}return{type:0,name:o.name,style:t,options:r?{params:r}:null}}visitTransition(o,e){e.queryCount=0,e.depCount=0;const t=va(this,Wg(o.animation),e);return{type:1,matchers:II(o.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Eu(o.options)}}visitSequence(o,e){return{type:2,steps:o.steps.map(t=>va(this,t,e)),options:Eu(o.options)}}visitGroup(o,e){const t=e.currentTime;let r=0;const l=o.steps.map(d=>{e.currentTime=t;const s=va(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Eu(o.options)}}visitAnimate(o,e){const t=function UI(n,o){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return wx(EC(n,o).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=wx(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=EC(e,o);return wx(r.duration,r.delay,r.easing)}(o.timings,e.errors);e.currentAnimateTimings=t;let r,l=o.styles?o.styles:Pe({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=o.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Pe(c)}e.currentTime+=t.duration+t.delay;const a=this.visitStyle(d,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(o,e){const t=this._makeStyleAst(o,e);return this._validateStyleAst(t,e),t}_makeStyleAst(o,e){const t=[],r=Array.isArray(o.styles)?o.styles:[o.styles];for(let s of r)"string"==typeof s?s===ks?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(hE(s));let l=!1,d=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(d=s.get("easing"),s.delete("easing")),!l))for(let a of s.values())if(a.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:d,offset:o.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(o,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),o.styles.forEach(d=>{"string"!=typeof d&&d.forEach((s,a)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(a);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function ZL(n,o,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&c.set(a,{startTime:l,endTime:r}),e.options&&function SI(n,o,e){const t=o.params||{},r=gE(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function NL(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(o,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function JL(){return new i.vHH(3011,!1)}()),t;let l=0;const d=[];let s=!1,a=!1,c=0;const u=o.steps.map(We=>{const Pt=this._makeStyleAst(We,e);let Jt=null!=Pt.offset?Pt.offset:function zI(n){if("string"==typeof n)return null;let o=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;o=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;o=parseFloat(e.get("offset")),e.delete("offset")}return o}(Pt.styles),Vi=0;return null!=Jt&&(l++,Vi=Pt.offset=Jt),a=a||Vi<0||Vi>1,s=s||Vi0&&l{const Jt=f>0?Pt==b?1:f*Pt:d[Pt],Vi=Jt*he;e.currentTime=B+ee.delay+Vi,ee.duration=Vi,this._validateStyleAst(We,e),We.offset=Jt,t.styles.push(We)}),t}visitReference(o,e){return{type:8,animation:va(this,Wg(o.animation),e),options:Eu(o.options)}}visitAnimateChild(o,e){return e.depCount++,{type:9,options:Eu(o.options)}}visitAnimateRef(o,e){return{type:10,animation:this.visitReference(o.animation,e),options:Eu(o.options)}}visitQuery(o,e){const t=e.currentQuerySelector,r=o.options||{};e.queryCount++,e.currentQuery=o;const[l,d]=function jI(n){const o=!!n.split(/\s*,\s*/).find(e=>":self"==e);return o&&(n=n.replace(BI,"")),n=n.replace(/@\*/g,DC).replace(/@\w+/g,e=>DC+"-"+e.slice(1)).replace(/:animating/g,mx),[n,o]}(o.selector);e.currentQuerySelector=t.length?t+" "+l:l,Aa(e.collectedStyles,e.currentQuerySelector,new Map);const s=va(this,Wg(o.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:s,originalSelector:o.selector,options:Eu(o.options)}}visitStagger(o,e){e.currentQuery||e.errors.push(function eI(){return new i.vHH(3013,!1)}());const t="full"===o.timings?{duration:0,delay:0,easing:"full"}:EC(o.timings,e.errors,!0);return{type:12,animation:va(this,Wg(o.animation),e),timings:t,options:null}}}class YI{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Eu(n){return n?(n=qg(n)).params&&(n.params=function NI(n){return n?qg(n):null}(n.params)):n={},n}function wx(n,o,e){return{duration:n,delay:o,easing:e}}function Cx(n,o,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:o,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class VC{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,e){let t=this._map.get(o);t||this._map.set(o,t=[]),t.push(...e)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const WI=new RegExp(":enter","g"),ZI=new RegExp(":leave","g");function Ax(n,o,e,t,r,l=new Map,d=new Map,s,a,c=[]){return(new JI).buildKeyframes(n,o,e,t,r,l,d,s,a,c)}class JI{buildKeyframes(o,e,t,r,l,d,s,a,c,u=[]){c=c||new VC;const h=new vx(o,e,c,r,l,u,[]);h.options=a;const f=a.delay?ad(a.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([d],null,h.errors,a),va(this,t,h);const b=h.timelines.filter(B=>B.containsAnimation());if(b.length&&s.size){let B;for(let ee=b.length-1;ee>=0;ee--){const he=b[ee];if(he.element===e){B=he;break}}B&&!B.allowOnlyTimelineStyles()&&B.setStyles([s],null,h.errors,a)}return b.length?b.map(B=>B.buildKeyframes()):[Cx(e,[],[],[],0,f,"",!1)]}visitTrigger(o,e){}visitState(o,e){}visitTransition(o,e){}visitAnimateChild(o,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(o.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=o}visitAnimateRef(o,e){const t=e.createSubContext(o.options);t.transformIntoNewTimeline(),this.visitReference(o.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=o}_visitSubInstructions(o,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?ad(t.duration):null,s=null!=t.delay?ad(t.delay):null;return 0!==d&&o.forEach(a=>{const c=e.appendInstructionToTimeline(a,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(o,e){e.updateOptions(o.options,!0),va(this,o.animation,e),e.previousNode=o}visitSequence(o,e){const t=e.subContextCount;let r=e;const l=o.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=BC);const d=ad(l.delay);r.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>va(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=o}visitGroup(o,e){const t=[];let r=e.currentTimeline.currentTime;const l=o.options&&o.options.delay?ad(o.options.delay):0;o.steps.forEach(d=>{const s=e.createSubContext(o.options);l&&s.delayNextStep(l),va(this,d,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=o}_visitTiming(o,e){if(o.dynamic){const t=o.strValue;return EC(e.params?HC(t,e.params,e.errors):t,e.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,e){const t=e.currentAnimateTimings=this._visitTiming(o.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=o.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=o}visitStyle(o,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||o.easing;o.isEmptyStep?t.applyEmptyStep(l):t.setStyles(o.styles,l,e.errors,e.options),e.previousNode=o}visitKeyframes(o,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,o.styles.forEach(a=>{s.forwardTime((a.offset||0)*l),s.setStyles(a.styles,a.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=o}visitQuery(o,e){const t=e.currentTimeline.currentTime,r=o.options||{},l=r.delay?ad(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=BC);let d=t;const s=e.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(o.options,c);l&&h.delayNextStep(l),c===e.element&&(a=h.currentTimeline),va(this,o.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=o}visitStagger(o,e){const t=e.parentContext,r=e.currentTimeline,l=o.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let a=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":a=s-a;break;case"full":a=t.currentStaggerTime}const u=e.currentTimeline;a&&u.delayNextStep(a);const h=u.currentTime;va(this,o.animation,e),e.previousNode=o,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const BC={};class vx{constructor(o,e,t,r,l,d,s,a){this._driver=o,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=BC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new FC(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,e){if(!o)return;const t=o;let r=this.options;null!=t.duration&&(r.duration=ad(t.duration)),null!=t.delay&&(r.delay=ad(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!d.hasOwnProperty(s))&&(d[s]=HC(l[s],d,this.errors))})}}_copyOptions(){const o={};if(this.options){const e=this.options.params;if(e){const t=o.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return o}createSubContext(o=null,e,t){const r=e||this.element,l=new vx(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(o),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(o){return this.previousNode=BC,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,e,t){const r={duration:e??o.duration,delay:this.currentTimeline.currentTime+(t??0)+o.delay,easing:""},l=new QI(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,r,o.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,e,t,r,l,d){let s=[];if(r&&s.push(this.element),o.length>0){o=(o=o.replace(WI,"."+this._enterClassName)).replace(ZI,"."+this._leaveClassName);let c=this._driver.query(this.element,o,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!l&&0==s.length&&d.push(function tI(n){return new i.vHH(3014,!1)}()),s}}class FC{constructor(o,e,t,r){this._driver=o,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+o),e&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,e){return this.applyStylesToKeyframe(),new FC(this._driver,o,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,e){this._localTimelineStyles.set(o,e),this._globalTimelineStyles.set(o,e),this._styleSummary.set(o,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||ks),this._currentKeyframe.set(e,ks);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},d=function KI(n,o){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||o.keys();for(let l of t)e.set(l,ks)}else sd(r,e)}),e}(o,this._globalTimelineStyles);for(let[s,a]of d){const c=HC(a,l,t);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??ks),this._updateStyle(s,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,e)=>{this._currentKeyframe.set(e,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,o)}))}snapshotCurrentStyles(){for(let[o,e]of this._localTimelineStyles)this._pendingStyles.set(o,e),this._updateStyle(o,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let e in this._currentKeyframe)o.push(e);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,a)=>{const c=sd(s,new Map,this._backFill);c.forEach((u,h)=>{"!"===u?o.add(h):u===ks&&e.add(h)}),t||c.set("offset",a/this.duration),r.push(c)});const l=o.size?kC(o.values()):[],d=e.size?kC(e.values()):[];if(t){const s=r[0],a=new Map(s);s.set("offset",0),a.set("offset",1),r=[s,a]}return Cx(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class QI extends FC{constructor(o,e,t,r,l,d,s=!1){super(o,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,a=sd(o[0]);a.set("offset",0),l.push(a);const c=sd(o[0]);c.set("offset",CE(s)),l.push(c);const u=o.length-1;for(let h=1;h<=u;h++){let f=sd(o[h]);const b=f.get("offset");f.set("offset",CE((e+b*t)/d)),l.push(f)}t=d,e=0,r="",o=l}return Cx(this.element,o,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function CE(n,o=3){const e=Math.pow(10,o-1);return Math.round(n*e)/e}class Tx{}const XI=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class eO extends Tx{normalizePropertyName(o,e){return bx(o)}normalizeStyleValue(o,e,t,r){let l="";const d=t.toString().trim();if(XI.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function UL(n,o){return new i.vHH(3005,!1)}())}return d+l}}function AE(n,o,e,t,r,l,d,s,a,c,u,h,f){return{type:0,element:n,triggerName:o,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:a,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const Mx={};class vE{constructor(o,e,t){this._triggerName=o,this.ast=e,this._stateStyles=t}match(o,e,t,r){return function tO(n,o,e,t,r){return n.some(l=>l(o,e,t,r))}(this.ast.matchers,o,e,t,r)}buildStyles(o,e,t){let r=this._stateStyles.get("*");return void 0!==o&&(r=this._stateStyles.get(o?.toString())||r),r?r.buildStyles(e,t):new Map}build(o,e,t,r,l,d,s,a,c,u){const h=[],f=this.ast.options&&this.ast.options.params||Mx,B=this.buildStyles(t,s&&s.params||Mx,h),ee=a&&a.params||Mx,he=this.buildStyles(r,ee,h),We=new Set,Pt=new Map,Jt=new Map,Vi="void"===r,Us={params:iO(ee,f),delay:this.ast.options?.delay},ls=u?[]:Ax(o,e,this.ast.animation,l,d,B,he,Us,c,h);let Er=0;if(ls.forEach(Yl=>{Er=Math.max(Yl.duration+Yl.delay,Er)}),h.length)return AE(e,this._triggerName,t,r,Vi,B,he,[],[],Pt,Jt,Er,h);ls.forEach(Yl=>{const zl=Yl.element,v1=Aa(Pt,zl,new Set);Yl.preStyleProps.forEach(Pu=>v1.add(Pu));const s_=Aa(Jt,zl,new Set);Yl.postStyleProps.forEach(Pu=>s_.add(Pu)),zl!==e&&We.add(zl)});const Nl=kC(We.values());return AE(e,this._triggerName,t,r,Vi,B,he,ls,Nl,Pt,Jt,Er)}}function iO(n,o){const e=qg(o);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class nO{constructor(o,e,t){this.styles=o,this.defaultParams=e,this.normalizer=t}buildStyles(o,e){const t=new Map,r=qg(this.defaultParams);return Object.keys(o).forEach(l=>{const d=o[l];null!==d&&(r[l]=d)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((d,s)=>{d&&(d=HC(d,r,e));const a=this.normalizer.normalizePropertyName(s,e);d=this.normalizer.normalizeStyleValue(s,a,d,e),t.set(a,d)})}),t}}class aO{constructor(o,e,t){this.name=o,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new nO(r.style,r.options&&r.options.params||{},t))}),TE(this.states,"true","1"),TE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new vE(o,r,this.states))}),this.fallbackTransition=function sO(n,o,e){return new vE(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,e,t,r){return this.transitionFactories.find(d=>d.match(o,e,t,r))||null}matchStyles(o,e,t){return this.fallbackTransition.buildStyles(o,e,t)}}function TE(n,o,e){n.has(o)?n.has(e)||n.set(e,n.get(o)):n.has(e)&&n.set(o,n.get(e))}const oO=new VC;class lO{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,e){const t=[],l=yx(this._driver,e,t,[]);if(t.length)throw function lI(n){return new i.vHH(3503,!1)}();this._animations.set(o,l)}_buildPlayer(o,e,t){const r=o.element,l=iE(0,this._normalizer,0,o.keyframes,e,t);return this._driver.animate(r,l,o.duration,o.delay,o.easing,[],!0)}create(o,e,t={}){const r=[],l=this._animations.get(o);let d;const s=new Map;if(l?(d=Ax(this._driver,e,l,fx,xC,new Map,new Map,t,oO,r),d.forEach(u=>{const h=Aa(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function cI(){return new i.vHH(3300,!1)}()),d=[]),r.length)throw function dI(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,ks))})});const c=rd(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(o,c),c.onDestroy(()=>this.destroy(o)),this.players.push(c),c}destroy(o){const e=this._getPlayer(o);e.destroy(),this._playersById.delete(o);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(o){const e=this._playersById.get(o);if(!e)throw function uI(n){return new i.vHH(3301,!1)}();return e}listen(o,e,t,r){const l=dx(e,"","","");return lx(this._getPlayer(o),t,l,r),()=>{}}command(o,e,t,r){if("register"==t)return void this.register(o,r[0]);if("create"==t)return void this.create(o,e,r[0]||{});const l=this._getPlayer(o);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(o)}}}const ME="ng-animate-queued",xx="ng-animate-disabled",pO=[],xE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fO={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class Sx{constructor(o,e=""){this.namespaceId=e;const t=o&&o.hasOwnProperty("value");if(this.value=function bO(n){return n??null}(t?o.value:o),t){const l=qg(o);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const e=o.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const $g="void",Dx=new Sx($g);class mO{constructor(o,e,t){this.id=o,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,os(e,this._hostClassName)}listen(o,e,t,r){if(!this._triggers.has(e))throw function hI(n,o){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function pI(n){return new i.vHH(3303,!1)}();if(!function yO(n){return"start"==n||"done"==n}(t))throw function fI(n,o){return new i.vHH(3400,!1)}();const l=Aa(this._elementListeners,o,[]),d={name:e,phase:t,callback:r};l.push(d);const s=Aa(this._engine.statesByElement,o,new Map);return s.has(e)||(os(o,SC),os(o,SC+"-"+e),s.set(e,Dx)),()=>{this._engine.afterFlush(()=>{const a=l.indexOf(d);a>=0&&l.splice(a,1),this._triggers.has(e)||s.delete(e)})}}register(o,e){return!this._triggers.has(o)&&(this._triggers.set(o,e),!0)}_getTrigger(o){const e=this._triggers.get(o);if(!e)throw function mI(n){return new i.vHH(3401,!1)}();return e}trigger(o,e,t,r=!0){const l=this._getTrigger(e),d=new Ex(this.id,e,o);let s=this._engine.statesByElement.get(o);s||(os(o,SC),os(o,SC+"-"+e),this._engine.statesByElement.set(o,s=new Map));let a=s.get(e);const c=new Sx(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s.set(e,c),a||(a=Dx),c.value!==$g&&a.value===c.value){if(!function AO(n,o){const e=Object.keys(n),t=Object.keys(o);if(e.length!=t.length)return!1;for(let r=0;r{Du(o,he),Bo(o,We)})}return}const f=Aa(this._engine.playersByElement,o,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(a.value,c.value,o,c.params),B=!1;if(!b){if(!r)return;b=l.fallbackTransition,B=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:e,transition:b,fromState:a,toState:c,player:d,isFallbackTransition:B}),B||(os(o,ME),d.onStart(()=>{Tp(o,ME)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(o);if(he){let We=he.indexOf(d);We>=0&&he.splice(We,1)}}),this.players.push(d),f.push(d),d}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(e=>e.delete(o)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const e=this._engine.playersByElement.get(o);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,e){const t=this._engine.driver.query(o,DC,!0);t.forEach(r=>{if(r[ss])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(o,e,t,r){const l=this._engine.statesByElement.get(o),d=new Map;if(l){const s=[];if(l.forEach((a,c)=>{if(d.set(c,a.value),this._triggers.has(c)){const u=this.trigger(o,c,$g,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,o,!0,e,d),t&&rd(s).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const e=this._elementListeners.get(o),t=this._engine.statesByElement.get(o);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const a=this._triggers.get(d).fallbackTransition,c=t.get(d)||Dx,u=new Sx($g),h=new Ex(this.id,d,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:d,transition:a,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(o,e){const t=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,e),this.triggerLeaveAnimation(o,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(o):[];if(l&&l.length)r=!0;else{let d=o;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(o),r)t.markElementAsRemoved(this.id,o,!1,e);else{const l=o[ss];(!l||l===xE)&&(t.afterFlush(()=>this.clearElementCache(o)),t.destroyInnerAnimations(o),t._onRemovalComplete(o,e))}}insertNode(o,e){os(o,this._hostClassName)}drainQueuedTransitions(o){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(s=>{if(s.name==t.triggerName){const a=dx(l,t.triggerName,t.fromState.value,t.toState.value);a._data=o,lx(t.player,s.phase,a,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(o){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let e=!1;return this._elementListeners.has(o)&&(e=!0),e=!!this._queue.find(t=>t.element===o)||e,e}}class gO{constructor(o,e,t){this.bodyNode=o,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,l)=>{}}_onRemovalComplete(o,e){this.onRemovalComplete(o,e)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&o.push(t)})}),o}createNamespace(o,e){const t=new mO(o,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[o]=t}_balanceNamespaceList(o,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let d=!1,s=this.driver.getParentElement(e);for(;s;){const a=r.get(s);if(a){const c=t.indexOf(a);t.splice(c+1,0,o),d=!0;break}s=this.driver.getParentElement(s)}d||t.unshift(o)}else t.push(o);return r.set(e,o),o}register(o,e){let t=this._namespaceLookup[o];return t||(t=this.createNamespace(o,e)),t}registerTrigger(o,e,t){let r=this._namespaceLookup[o];r&&r.register(e,t)&&this.totalAnimations++}destroy(o,e){if(!o)return;const t=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[o];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const e=new Set,t=this.statesByElement.get(o);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(o,e,t,r){if(jC(e)){const l=this._fetchNamespace(o);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(o,e,t,r){if(!jC(e))return;const l=e[ss];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const d=this.collectedLeaveElements.indexOf(e);d>=0&&this.collectedLeaveElements.splice(d,1)}if(o){const d=this._fetchNamespace(o);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,e){e?this.disabledNodes.has(o)||(this.disabledNodes.add(o),os(o,xx)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),Tp(o,xx))}removeNode(o,e,t,r){if(jC(e)){const l=o?this._fetchNamespace(o):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(o,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==o&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(o,e,t,r,l){this.collectedLeaveElements.push(e),e[ss]={namespaceId:o,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(o,e,t,r,l){return jC(e)?this._fetchNamespace(o).listen(e,t,r,l):()=>{}}_buildInstruction(o,e,t,r,l){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,t,r,o.fromState.options,o.toState.options,e,l)}destroyInnerAnimations(o){let e=this.driver.query(o,DC,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(o,mx,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(o){const e=this.playersByElement.get(o);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(o){const e=this.playersByQueriedElement.get(o);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return rd(this.players).onDone(()=>o());o()})}processLeaveNode(o){const e=o[ss];if(e&&e.setForRemoval){if(o[ss]=xE,e.namespaceId){this.destroyInnerAnimations(o);const t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(o)}this._onRemovalComplete(o,e.setForRemoval)}o.classList?.contains(xx)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(o=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?rd(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(o){throw function gI(n){return new i.vHH(3402,!1)}()}_flushAnimations(o,e){const t=new VC,r=[],l=new Map,d=[],s=new Map,a=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(rt=>{u.add(rt);const gt=this.driver.query(rt,".ng-animate-queued",!0);for(let wt=0;wt{const wt=fx+ee++;B.set(gt,wt),rt.forEach(oi=>os(oi,wt))});const he=[],We=new Set,Pt=new Set;for(let rt=0;rtWe.add(oi)):Pt.add(gt))}const Jt=new Map,Vi=EE(f,Array.from(We));Vi.forEach((rt,gt)=>{const wt=xC+ee++;Jt.set(gt,wt),rt.forEach(oi=>os(oi,wt))}),o.push(()=>{b.forEach((rt,gt)=>{const wt=B.get(gt);rt.forEach(oi=>Tp(oi,wt))}),Vi.forEach((rt,gt)=>{const wt=Jt.get(gt);rt.forEach(oi=>Tp(oi,wt))}),he.forEach(rt=>{this.processLeaveNode(rt)})});const Us=[],ls=[];for(let rt=this._namespaceList.length-1;rt>=0;rt--)this._namespaceList[rt].drainQueuedTransitions(e).forEach(wt=>{const oi=wt.player,Vn=wt.element;if(Us.push(oi),this.collectedEnterElements.length){const or=Vn[ss];if(or&&or.setForMove){if(or.previousTriggersValues&&or.previousTriggersValues.has(wt.triggerName)){const Ru=or.previousTriggersValues.get(wt.triggerName),cs=this.statesByElement.get(wt.element);if(cs&&cs.has(wt.triggerName)){const nA=cs.get(wt.triggerName);nA.value=Ru,cs.set(wt.triggerName,nA)}}return void oi.destroy()}}const jo=!h||!this.driver.containsElement(h,Vn),xa=Jt.get(Vn),dd=B.get(Vn),Qi=this._buildInstruction(wt,t,dd,xa,jo);if(Qi.errors&&Qi.errors.length)return void ls.push(Qi);if(jo)return oi.onStart(()=>Du(Vn,Qi.fromStyles)),oi.onDestroy(()=>Bo(Vn,Qi.toStyles)),void r.push(oi);if(wt.isFallbackTransition)return oi.onStart(()=>Du(Vn,Qi.fromStyles)),oi.onDestroy(()=>Bo(Vn,Qi.toStyles)),void r.push(oi);const x1=[];Qi.timelines.forEach(or=>{or.stretchStartingKeyframe=!0,this.disabledNodes.has(or.element)||x1.push(or)}),Qi.timelines=x1,t.append(Vn,Qi.timelines),d.push({instruction:Qi,player:oi,element:Vn}),Qi.queriedElements.forEach(or=>Aa(s,or,[]).push(oi)),Qi.preStyleProps.forEach((or,Ru)=>{if(or.size){let cs=a.get(Ru);cs||a.set(Ru,cs=new Set),or.forEach((nA,l0)=>cs.add(l0))}}),Qi.postStyleProps.forEach((or,Ru)=>{let cs=c.get(Ru);cs||c.set(Ru,cs=new Set),or.forEach((nA,l0)=>cs.add(l0))})});if(ls.length){const rt=[];ls.forEach(gt=>{rt.push(function _I(n,o){return new i.vHH(3505,!1)}())}),Us.forEach(gt=>gt.destroy()),this.reportError(rt)}const Er=new Map,Nl=new Map;d.forEach(rt=>{const gt=rt.element;t.has(gt)&&(Nl.set(gt,gt),this._beforeAnimationBuild(rt.player.namespaceId,rt.instruction,Er))}),r.forEach(rt=>{const gt=rt.element;this._getPreviousPlayers(gt,!1,rt.namespaceId,rt.triggerName,null).forEach(oi=>{Aa(Er,gt,[]).push(oi),oi.destroy()})});const Yl=he.filter(rt=>kE(rt,a,c)),zl=new Map;DE(zl,this.driver,Pt,c,ks).forEach(rt=>{kE(rt,a,c)&&Yl.push(rt)});const s_=new Map;b.forEach((rt,gt)=>{DE(s_,this.driver,new Set(rt),a,"!")}),Yl.forEach(rt=>{const gt=zl.get(rt),wt=s_.get(rt);zl.set(rt,new Map([...Array.from(gt?.entries()??[]),...Array.from(wt?.entries()??[])]))});const Pu=[],T1=[],M1={};d.forEach(rt=>{const{element:gt,player:wt,instruction:oi}=rt;if(t.has(gt)){if(u.has(gt))return wt.onDestroy(()=>Bo(gt,oi.toStyles)),wt.disabled=!0,wt.overrideTotalTime(oi.totalTime),void r.push(wt);let Vn=M1;if(Nl.size>1){let xa=gt;const dd=[];for(;xa=xa.parentNode;){const Qi=Nl.get(xa);if(Qi){Vn=Qi;break}dd.push(xa)}dd.forEach(Qi=>Nl.set(Qi,Vn))}const jo=this._buildAnimation(wt.namespaceId,oi,Er,l,s_,zl);if(wt.setRealPlayer(jo),Vn===M1)Pu.push(wt);else{const xa=this.playersByElement.get(Vn);xa&&xa.length&&(wt.parentPlayer=rd(xa)),r.push(wt)}}else Du(gt,oi.fromStyles),wt.onDestroy(()=>Bo(gt,oi.toStyles)),T1.push(wt),u.has(gt)&&r.push(wt)}),T1.forEach(rt=>{const gt=l.get(rt.element);if(gt&>.length){const wt=rd(gt);rt.setRealPlayer(wt)}}),r.forEach(rt=>{rt.parentPlayer?rt.syncPlayerEvents(rt.parentPlayer):rt.destroy()});for(let rt=0;rt!jo.destroyed);Vn.length?wO(this,gt,Vn):this.processLeaveNode(gt)}return he.length=0,Pu.forEach(rt=>{this.players.push(rt),rt.onDone(()=>{rt.destroy();const gt=this.players.indexOf(rt);this.players.splice(gt,1)}),rt.play()}),Pu}elementContainsData(o,e){let t=!1;const r=e[ss];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(o).elementContainsData(e)||t}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,e,t,r,l){let d=[];if(e){const s=this.playersByQueriedElement.get(o);s&&(d=s)}else{const s=this.playersByElement.get(o);if(s){const a=!l||l==$g;s.forEach(c=>{c.queued||!a&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(o,e,t){const l=e.element,d=e.isRemovalTransition?void 0:o,s=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const c=a.element,u=c!==l,h=Aa(t,c,[]);this._getPreviousPlayers(c,u,d,s,e.toState).forEach(b=>{const B=b.getRealPlayer();B.beforeDestroy&&B.beforeDestroy(),b.destroy(),h.push(b)})}Du(l,e.fromStyles)}_buildAnimation(o,e,t,r,l,d){const s=e.triggerName,a=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(B=>{const ee=B.element;u.add(ee);const he=ee[ss];if(he&&he.removedBeforeQueried)return new Pc(B.duration,B.delay);const We=ee!==a,Pt=function CO(n){const o=[];return HE(n,o),o}((t.get(ee)||pO).map(Er=>Er.getRealPlayer())).filter(Er=>!!Er.element&&Er.element===ee),Jt=l.get(ee),Vi=d.get(ee),Us=iE(0,this._normalizer,0,B.keyframes,Jt,Vi),ls=this._buildPlayer(B,Us,Pt);if(B.subTimeline&&r&&h.add(ee),We){const Er=new Ex(o,s,ee);Er.setRealPlayer(ls),c.push(Er)}return ls});c.forEach(B=>{Aa(this.playersByQueriedElement,B.element,[]).push(B),B.onDone(()=>function _O(n,o,e){let t=n.get(o);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(o)}return t}(this.playersByQueriedElement,B.element,B))}),u.forEach(B=>os(B,uE));const b=rd(f);return b.onDestroy(()=>{u.forEach(B=>Tp(B,uE)),Bo(a,e.toStyles)}),h.forEach(B=>{Aa(r,B,[]).push(b)}),b}_buildPlayer(o,e,t){return e.length>0?this.driver.animate(o.element,e,o.duration,o.delay,o.easing,t):new Pc(o.duration,o.delay)}}class Ex{constructor(o,e,t){this.namespaceId=o,this.triggerName=e,this.element=t,this._player=new Pc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>lx(o,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const e=this._player;e.triggerCallback&&o.onStart(()=>e.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,e){Aa(this._queuedCallbacks,o,[]).push(e)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const e=this._player;e.triggerCallback&&e.triggerCallback(o)}}function jC(n){return n&&1===n.nodeType}function SE(n,o){const e=n.style.display;return n.style.display=o??"none",e}function DE(n,o,e,t,r){const l=[];e.forEach(a=>l.push(SE(a)));const d=[];t.forEach((a,c)=>{const u=new Map;a.forEach(h=>{const f=o.computeStyle(c,h,r);u.set(h,f),(!f||0==f.length)&&(c[ss]=fO,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(a=>SE(a,l[s++])),d}function EE(n,o){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==o.length)return e;const r=new Set(o),l=new Map;function d(s){if(!s)return 1;let a=l.get(s);if(a)return a;const c=s.parentNode;return a=e.has(c)?c:r.has(c)?1:d(c),l.set(s,a),a}return o.forEach(s=>{const a=d(s);1!==a&&e.get(a).push(s)}),e}function os(n,o){n.classList?.add(o)}function Tp(n,o){n.classList?.remove(o)}function wO(n,o,e){rd(e).onDone(()=>n.processLeaveNode(o))}function HE(n,o){for(let e=0;er.add(l)):o.set(n,t),e.delete(n),!0}class NC{constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new gO(o,e,t),this._timelineEngine=new lO(o,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(o,e,t,r,l){const d=o+"-"+r;let s=this._triggerCache[d];if(!s){const a=[],u=yx(this._driver,l,a,[]);if(a.length)throw function sI(n,o){return new i.vHH(3404,!1)}();s=function rO(n,o,e){return new aO(n,o,e)}(r,u,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}register(o,e){this._transitionEngine.register(o,e)}destroy(o,e){this._transitionEngine.destroy(o,e)}onInsert(o,e,t,r){this._transitionEngine.insertNode(o,e,t,r)}onRemove(o,e,t,r){this._transitionEngine.removeNode(o,e,r||!1,t)}disableAnimations(o,e){this._transitionEngine.markElementAsDisabled(o,e)}process(o,e,t,r){if("@"==t.charAt(0)){const[l,d]=nE(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(o,e,t,r)}listen(o,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=nE(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(o,e,t,r,l)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let TO=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Bo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Bo(this._element,this._initialStyles),this._endStyles&&(Bo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Du(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Du(this._element,this._endStyles),this._endStyles=null),Bo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Hx(n){let o=null;return n.forEach((e,t)=>{(function MO(n){return"display"===n||"position"===n})(t)&&(o=o||new Map,o.set(t,e))}),o}class PE{constructor(o,e,t,r){this.element=o,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const e=[];return o.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(o,e,t){return o.animate(this._convertKeyframesToObject(e),t)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&o.set(r,this._finished?t:_E(this.element,r))}),this.currentSnapshot=o}triggerCallback(o){const e="start"===o?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class xO{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,e){return!1}containsElement(o,e){return oE(o,e)}getParentElement(o){return hx(o)}query(o,e,t){return lE(o,e,t)}computeStyle(o,e,t){return window.getComputedStyle(o)[e]}animate(o,e,t,r,l,d=[]){const a={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(a.easing=l);const c=new Map,u=d.filter(b=>b instanceof PE);(function HI(n,o){return 0===n||0===o})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((B,ee)=>c.set(ee,B))});let h=function xI(n){return n.length?n[0]instanceof Map?n:n.map(o=>hE(o)):[]}(e).map(b=>sd(b));h=function kI(n,o,e){if(e.size&&o.length){let t=o[0],r=[];if(e.forEach((l,d)=>{t.has(d)||r.push(d),t.set(d,l)}),r.length)for(let l=1;ld.set(s,_E(n,s)))}}return o}(o,h,c);const f=function vO(n,o){let e=null,t=null;return Array.isArray(o)&&o.length?(e=Hx(o[0]),o.length>1&&(t=Hx(o[o.length-1]))):o instanceof Map&&(e=Hx(o)),e||t?new TO(n,e,t):null}(o,h);return new PE(o,h,a,f)}}let SO=(()=>{class n extends hm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?pm(e):e;return RE(this._renderer,null,t,"register",[r]),new DO(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class DO extends class $v{}{constructor(o,e){super(),this._id=o,this._renderer=e}create(o,e){return new EO(this._id,o,e||{},this._renderer)}}class EO{constructor(o,e,t,r){this.id=o,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(o,e){return this._renderer.listen(this.element,`@@${this.id}:${o}`,e)}_command(o,...e){return RE(this._renderer,this.element,this.id,o,e)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function RE(n,o,e,t,r){return n.setProperty(o,`@@${e}:${t}`,r)}const LE="@.disabled";let HO=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const s=d?.parentNode(l);s&&d.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new IE("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(a),new kO(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,s]=l;d(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(NC),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class IE{constructor(o,e,t){this.namespaceId=o,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,e){this.delegate.appendChild(o,e),this.engine.onInsert(this.namespaceId,e,o,!1)}insertBefore(o,e,t,r=!0){this.delegate.insertBefore(o,e,t),this.engine.onInsert(this.namespaceId,e,o,r)}removeChild(o,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,t,r){this.delegate.setAttribute(o,e,t,r)}removeAttribute(o,e,t){this.delegate.removeAttribute(o,e,t)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,t,r){this.delegate.setStyle(o,e,t,r)}removeStyle(o,e,t){this.delegate.removeStyle(o,e,t)}setProperty(o,e,t){"@"==e.charAt(0)&&e==LE?this.disableAnimations(o,!!t):this.delegate.setProperty(o,e,t)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,t){return this.delegate.listen(o,e,t)}disableAnimations(o,e){this.engine.disableAnimations(o,e)}}class kO extends IE{constructor(o,e,t,r){super(e,t,r),this.factory=o,this.namespaceId=e}setProperty(o,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==LE?this.disableAnimations(o,t=void 0===t||!!t):this.engine.process(this.namespaceId,o,e.slice(1),t):this.delegate.setProperty(o,e,t)}listen(o,e,t){if("@"==e.charAt(0)){const r=function PO(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(o);let l=e.slice(1),d="";return"@"!=l.charAt(0)&&([l,d]=function RO(n){const o=n.indexOf(".");return[n.substring(0,o),n.slice(o+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(o,e,t)}}const OE=[{provide:hm,useClass:SO},{provide:Tx,useFactory:function IO(){return new eO}},{provide:NC,useClass:(()=>{class n extends NC{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(px),i.LFG(Tx),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function OO(n,o,e){return new HO(n,o,e)},deps:[_e,NC,i.R0b]}],kx=[{provide:px,useFactory:()=>new xO},{provide:i.QbO,useValue:"BrowserAnimations"},...OE],VE=[{provide:px,useClass:cE},{provide:i.QbO,useValue:"NoopAnimations"},...OE];let VO=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?VE:kx}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:kx,imports:[Xi]}),n})(),BO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,Tu,_a,yp]}),n})();const FO=["*",[["mat-card-footer"]]],jO=["*","mat-card-footer"];let BE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),FE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),jE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:jO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(FO),i.Hsn(0),i.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),n})(),NE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ot,ot]}),n})();const NO=["input"],YO=["label"],zO=function(n){return{enterDuration:n}},UO=["*"],GO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:YE});function YE(){return{color:"accent",clickAction:"check-indeterminate"}}let qO=0;const zE=YE(),WO={provide:Tn,useExisting:(0,i.Gpc)(()=>od),multi:!0};class $O{}const ZO=Cc($a(Cr(sr(class{constructor(n){this._elementRef=n}}))));let JO=(()=>{class n extends ZO{constructor(e,t,r,l,d,s,a){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||zE,this.color=this.defaultColor=this._options.color||zE.color,this.tabIndex=parseInt(d)||0,this.id=this._uniqueId=`${e}${++qO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Fe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=Fe(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Fe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Fe(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},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 e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(NO,5),i.Gf(YO,5),i.Gf(Ar,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.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:[i.qOj]}),n})(),od=(()=>{class n extends JO{constructor(e,t,r,l,d,s,a){super("mat-checkbox-",e,t,l,d,s,a),this._focusMonitor=r,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(e){const t=new $O;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(An),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(GO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i._Bn([WO]),i.qOj],ngContentSelectors:UO,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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,zO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[Ar,mc],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);position:relative}.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}.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%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),UE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),zC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,gc,UE,ot,UE]}),n})(),XO=0;const Px=new i.OlP("CdkAccordion");let eV=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+XO++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Fe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Px,useExisting:n}]),i.TTD]}),n})(),tV=0,iV=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Mt.w0.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+tV++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Fe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Fe(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Px,12),i.Y36(i.sBO),i.Y36(Tr))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Px,useValue:void 0}])]}),n})(),nV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const rV=["body"];function aV(n,o){}const sV=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oV=["mat-expansion-panel-header","*","mat-action-row"];function lV(n,o){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const cV=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],dV=["mat-panel-title","mat-panel-description","*"],Rx=new i.OlP("MAT_ACCORDION"),GE="225ms cubic-bezier(0.4,0.0,0.2,1)",qE={indicatorRotate:hi("indicatorRotate",[xt("collapsed, void",Pe({transform:"rotate(0deg)"})),xt("expanded",Pe({transform:"rotate(180deg)"})),_t("expanded <=> collapsed, void => collapsed",yt(GE))]),bodyExpansion:hi("bodyExpansion",[xt("collapsed, void",Pe({height:"0px",visibility:"hidden"})),xt("expanded",Pe({height:"*",visibility:"visible"})),_t("expanded <=> collapsed, void => collapsed",yt(GE))])},WE=new i.OlP("MAT_EXPANSION_PANEL");let uV=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(WE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),hV=0;const $E=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let ZE=(()=>{class n extends iV{constructor(e,t,r,l,d,s,a){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new De.x,this._headerId="mat-expansion-panel-header-"+hV++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(cl((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Et(null),(0,Gt.h)(()=>this.expanded&&!this._portal),(0,Ot.q)(1)).subscribe(()=>{this._portal=new yo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Rx,12),i.Y36(i.sBO),i.Y36(Tr),i.Y36(i.s_b),i.Y36(C.K0),i.Y36(i.QbO,8),i.Y36($E,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,uV,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(rV,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Rx,useValue:void 0},{provide:WE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:oV,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(sV),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,aV,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},dependencies:[Qa],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[qE.bodyExpansion]},changeDetection:0}),n})();class pV{}const fV=Cc(pV);let JE=(()=>{class n extends fV{constructor(e,t,r,l,d,s,a){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=Mt.w0.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,Gt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):yi.E;this.tabIndex=parseInt(a||"")||0,this._parentChangeSubscription=(0,Ci.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,Gt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Gt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:$i(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ZE,1),i.Y36(i.SBq),i.Y36(An),i.Y36(i.sBO),i.Y36($E,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:dV,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(cV),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,lV,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[C.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[qE.indicatorRotate]},changeDetection:0}),n})(),mV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),gV=(()=>{class n extends eV{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Fe(e)}ngAfterContentInit(){this._headers.changes.pipe(Et(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ul(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,JE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Rx,useExisting:n}]),i.qOj]}),n})(),QE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,nV,wo]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[vc,ot,vc,ot]}),n})();function yV(n,o){1&n&&i.Hsn(0)}const wV=["*"];let eH=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),tH=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),CV=0;const iH=new i.OlP("STEPPER_GLOBAL_OPTIONS");let Lx=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Fe(e)}get optional(){return this._optional}set optional(e){this._optional=Fe(e)}get completed(){return this._completedOverride??this._getDefaultCompleted()}set completed(e){this._completedOverride=Fe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError??this._getDefaultError()}set hasError(e){this._customError=Fe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>Zg)),i.Y36(iH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,tH,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[i.TTD],ngContentSelectors:wV,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,yV,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),Zg=(()=>{class n{constructor(e,t,r){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new De.x,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=CV++}get linear(){return this._linear}set linear(e){this._linear=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const t=Fi(e);this.steps&&this._steps?(this._isValidIndex(t),this.selected?._markAsInteracted(),this._selectedIndex!==t&&!this._anyControlsInvalidOrPending(t)&&(t>=this._selectedIndex||this.steps.toArray()[t].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=t}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Et(this._steps),Ke(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Et(this._stepHeader),Ke(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new ul(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Be.of)()).pipe(Et(this._layoutDirection()),Ke(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=$i(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=xs();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zg))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),vV=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zg))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),TV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[mo]}),n})();function MV(n,o){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function xV(n,o){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function SV(n,o){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function DV(n,o){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function EV(n,o){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function HV(n,o){if(1&n&&(i.ynx(0,9),i.YNc(1,xV,2,1,"span",10),i.YNc(2,SV,2,1,"span",11),i.YNc(3,DV,2,1,"span",11),i.YNc(4,EV,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function kV(n,o){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function PV(n,o){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function RV(n,o){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function LV(n,o){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function IV(n,o){}function OV(n,o){if(1&n&&(i.Hsn(0),i.YNc(1,IV,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const VV=["*"];function BV(n,o){1&n&&i._UZ(0,"div",11)}const nH=function(n,o){return{step:n,i:o}};function FV(n,o){if(1&n&&(i.ynx(0),i.GkF(1,9),i.YNc(2,BV,1,0,"div",10),i.BQk()),2&n){const e=o.$implicit,t=o.index,r=o.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,nH,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}const rH=function(n){return{animationDuration:n}},aH=function(n,o){return{value:n,params:o}};function jV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.NdJ("@horizontalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.GkF(1,13),i.qZA()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",i.WLB(7,aH,r._getAnimationDirection(t),i.VKq(5,rH,r._getAnimationDuration())))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function NV(n,o){if(1&n&&(i.TgZ(0,"div",4)(1,"div",5),i.YNc(2,FV,3,6,"ng-container",6),i.qZA(),i.TgZ(3,"div",7),i.YNc(4,jV,2,10,"div",8),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function YV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.GkF(1,9),i.TgZ(2,"div",16)(3,"div",17),i.NdJ("@verticalStepTransition.done",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._animationDone.next(r))}),i.TgZ(4,"div",18),i.GkF(5,13),i.qZA()()()()}if(2&n){const e=o.$implicit,t=o.index,r=o.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,nH,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",i.WLB(14,aH,l._getAnimationDirection(t),i.VKq(12,rH,l._getAnimationDuration())))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function zV(n,o){if(1&n&&(i.ynx(0),i.YNc(1,YV,6,17,"div",14),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function UV(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",19),i.NdJ("click",function(){const l=i.CHM(e).step;return i.KtG(l.select())})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onKeydown(r))}),i.qZA()}if(2&n){const e=o.step,t=o.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),i.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let UC=(()=>{class n extends tH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),GC=(()=>{class n{constructor(){this.changes=new De.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qV={provide:GC,deps:[[new i.FiY,new i.tp0,GC]],useFactory:function GV(n){return n||new GC}},WV=$a(class extends eH{constructor(o){super(o)}},"primary");let sH=(()=>{class n extends WV{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof UC?null:this.label}_templateLabel(){return this.label instanceof UC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(GC),i.Y36(An),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(i._UZ(0,"div",0),i.TgZ(1,"div")(2,"div",1),i.YNc(3,MV,1,2,"ng-container",2),i.YNc(4,HV,5,4,"ng-container",3),i.qZA()(),i.TgZ(5,"div",4),i.YNc(6,kV,2,1,"div",5),i.YNc(7,PV,2,1,"div",5),i.YNc(8,RV,2,1,"div",6),i.YNc(9,LV,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},dependencies:[C.O5,C.tP,C.RF,C.n9,C.ED,Ii,Ar],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,changeDetection:0}),n})();const cH={horizontalStepTransition:hi("horizontalStepTransition",[xt("previous",Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),xt("current",Pe({transform:"none",visibility:"inherit"})),xt("next",Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),_t("* => *",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),{params:{animationDuration:"500ms"}})]),verticalStepTransition:hi("verticalStepTransition",[xt("previous",Pe({height:"0px",visibility:"hidden"})),xt("next",Pe({height:"0px",visibility:"hidden"})),xt("current",Pe({height:"*",visibility:"inherit"})),_t("* <=> current",yt("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),{params:{animationDuration:"225ms"}})])};let $V=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),ZV=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),dH=(()=>{class n extends Lx{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=Mt.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Dt.w)(()=>this._stepper.selectionChange.pipe((0,Qe.U)(e=>e.selectedStep===this),Et(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new yo(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>uH)),i.Y36(hl,4),i.Y36(i.s_b),i.Y36(iH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,UC,5),i.Suo(r,ZV,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:hl,useExisting:n},{provide:Lx,useExisting:n}]),i.qOj],ngContentSelectors:VV,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,OV,2,1,"ng-template"))},dependencies:[Qa],encapsulation:2,changeDetection:0}),n})(),uH=(()=>{class n extends Zg{constructor(e,t,r){super(e,t,r),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new De.x,this._animationDuration="";const l=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===l?"vertical":"horizontal"}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Ke(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(cl((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Ke(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8),i.Y36(i.sBO),i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,dH,5),i.Suo(r,$V,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(sH,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:11,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition)("mat-stepper-header-position-bottom","bottom"===t.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:Zg,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,NV,5,2,"div",1),i.YNc(2,zV,2,1,"ng-container",2),i.BQk(),i.YNc(3,UV,1,23,"ng-template",null,3,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},dependencies:[C.sg,C.O5,C.tP,C.RF,C.n9,sH],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[cH.horizontalStepTransition,cH.verticalStepTransition]},changeDetection:0}),n})(),JV=(()=>{class n extends AV{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),QV=(()=>{class n extends vV{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),hH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[qV,hl],imports:[ot,C.ez,wo,_a,TV,kl,un,ot]}),n})();const KV=["mat-calendar-body",""];function XV(n,o){if(1&n&&(i.TgZ(0,"tr",2)(1,"td",3),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function eB(n,o){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function tB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",7)(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._cellClicked(d,r))})("focus",function(r){const d=i.CHM(e).$implicit,s=i.oxw(2);return i.KtG(s._emitActiveDateChange(d,r))}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA()()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function iB(n,o){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,eB,2,6,"td",5),i.YNc(2,tB,5,47,"td",6),i.qZA()),2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function nB(n,o){if(1&n&&(i.TgZ(0,"th",5)(1,"span",6),i._uU(2),i.qZA(),i.TgZ(3,"span",7),i._uU(4),i.qZA()()),2&n){const e=o.$implicit;i.xp6(2),i.Oqu(e.long),i.xp6(2),i.Oqu(e.narrow)}}const rB=["*"];function aB(n,o){}function sB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("_userSelection",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._dateSelected(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function oB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("monthSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._monthSelectedInYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._goToDateInView(r,"month"))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function lB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.activeDate=r)})("yearSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._yearSelectedInMultiYearView(r))})("selectedChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._goToDateInView(r,"year"))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function cB(n,o){}const dB=["button"];function uB(n,o){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const hB=[[["","matDatepickerToggleIcon",""]]],pB=["[matDatepickerToggleIcon]"];let Jg=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ix{constructor(o,e,t,r,l={},d=o,s){this.value=o,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=s}}let Mp=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this.activeDateChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Ox(e,this.startValue,this.endValue)}_isRangeEnd(e){return Vx(e,this.startValue,this.endValue)}_isInRange(e){return Bx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Ox(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return Vx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Bx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Ox(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return Vx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Bx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(pH(e)?t=e:pH(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:KV,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,XV,3,6,"tr",0),i.YNc(1,iB,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset=o&&n===e}function Bx(n,o,e,t){return t&&null!==o&&null!==e&&o!==e&&n>=o&&n<=e}class Qr{constructor(o,e){this.start=o,this.end=e}}let ld=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new De.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),fB=(()=>{class n extends ld{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const fH={provide:ld,deps:[[new i.FiY,new i.tp0,ld],wi],useFactory:function gB(n,o){return n||new fB(o)}},qC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let mH=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=Mt.w0.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Et(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._getDateFromDayOfMonth(t);let l,d;this._selected instanceof Qr?(l=this._getDateInCurrentMonth(this._selected.start),d=this._getDateInCurrentMonth(this._selected.end)):l=d=this._getDateInCurrentMonth(this._selected),(l!==t||d!==t)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!$i(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,s)=>({long:d,narrow:t[s]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Qr?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(ga,8),i.Y36(wi,8),i.Y36(Si,8),i.Y36(qC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(Mp,5),2&e){let r;i.iGM(r=i.CRH())&&(t._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[i.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),i.YNc(3,nB,5,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA()(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("activeDateChange",function(l){return t._updateActiveDate(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA()()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},dependencies:[C.sg,Mp],encapsulation:2,changeDetection:0}),n})(),gH=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=Mt.w0.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),_H(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Et(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value,r=this._dateAdapter.createDate(t,0,1),l=this._getDateFromYear(t);this.yearSelected.emit(r),this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Qg(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const t=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Ix(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=Mt.w0.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Et(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const l=this._getDateFromMonth(t);this.selectedChange.emit(l)}_updateActiveDate(e){const r=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new Ix(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+CB++,this.calendar.stateChanges.subscribe(()=>d.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-Qg(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):_H(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36((0,i.Gpc)(()=>Nx)),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:rB,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA()(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA()()()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},dependencies:[Yt],encapsulation:2,changeDetection:0}),n})(),Nx=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new De.x,this._intlChanges=e.changes.subscribe(()=>{l.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Qr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new gl(this.headerComponent||AB),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,l=t||r||e.dateFilter;if(l&&!l.firstChange){const d=this._getCurrentViewComponent();d&&(this._changeDetectorRef.detectChanges(),d._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Qr||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36(wi,8),i.Y36(ga,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mH,5),i.Gf(yH,5),i.Gf(gH,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.CRH())&&(t.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i._Bn([fH]),i.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(i.YNc(0,aB,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,sB,1,8,"mat-month-view",2),i.YNc(3,oB,1,6,"mat-year-view",3),i.YNc(4,lB,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},dependencies:[C.RF,C.n9,Qd,Qa,mH,yH,gH],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})();const wH={transformPanel:hi("transformPanel",[_t("void => enter-dropdown",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Al([Pe({opacity:0,transform:"scale(1, 0.8)"}),Pe({opacity:1,transform:"scale(1, 1)"})]))),_t("void => enter-dialog",yt("150ms cubic-bezier(0, 0, 0.2, 1)",Al([Pe({opacity:0,transform:"scale(0.7)"}),Pe({transform:"none",opacity:1})]))),_t("* => void",yt("100ms linear",Pe({opacity:0})))]),fadeInCalendar:hi("fadeInCalendar",[xt("void",Pe({opacity:0})),xt("enter",Pe({opacity:1})),_t("void => *",yt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let vB=0;const CH=new i.OlP("mat-datepicker-scroll-strategy"),MB={provide:CH,deps:[hn],useFactory:function TB(n){return()=>n.scrollStrategies.reposition()}},xB=$a(class{constructor(n){this._elementRef=n}});let SB=(()=>{class n extends xB{constructor(e,t,r,l,d,s){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new Mt.w0,this._animationDone=new De.x,this._actionsPortal=null,this._closeButtonText=s.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof Qr;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ld),i.Y36(wi),i.Y36(qC,8),i.Y36(Jg))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf(Nx,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,cB,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA()()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},dependencies:[C.mk,Yt,ob,Qa,Nx],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[wH.transformPanel,wH.fadeInCalendar]},changeDetection:0}),n})(),AH=(()=>{class n{constructor(e,t,r,l,d,s,a){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=s,this._model=a,this._inputStateChanges=Mt.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+vB++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new De.x,this._scrollStrategy=l}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Fe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Fe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Fe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function J_(n,o=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(o);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Fe(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof vr&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=xs(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,Ot.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new gl(SB,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Co({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(l=>{l&&l.preventDefault(),this.close()}),r.keydownEvents().subscribe(l=>{const d=l.keyCode;(38===d||40===d||37===d||39===d||33===d||34===d)&&l.preventDefault()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,Ci.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,Gt.h)(t=>27===t.keyCode&&!$i(t)||this.datepickerInput&&$i(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(CH),i.Y36(wi,8),i.Y36(Si,8),i.Y36(ld))},n.\u0275dir=i.lG2({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.TTD]}),n})(),Yx=(()=>{class n extends AH{}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([fH,{provide:AH,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class WC{constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}}let DB=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new De.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Mt.w0.EMPTY,this._localeSubscription=Mt.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),s=this._getMinDate();return!s||!d||this._dateAdapter.compareDate(s,d)<=0?null:{matDatepickerMin:{min:s,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),s=this._getMaxDate();return!s||!d||this._dateAdapter.compareDate(s,d)>=0?null:{matDatepickerMax:{max:s,actual:d}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Fe(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new WC(this,this._elementRef.nativeElement)),this.dateChange.emit(new WC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function EB(n,o){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!o.isDateInstance(r)||!o.isDateInstance(l))return!0;if(!o.sameDate(r,l))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);const l=!this._dateAdapter.sameDate(r,this.value);!r||l?this._cvaOnChange(r):(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()),l&&(this._assignValue(r),this.dateInput.emit(new WC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new WC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(wi,8),i.Y36(ga,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const HB={provide:Tn,useExisting:(0,i.Gpc)(()=>Kg),multi:!0},kB={provide:ln,useExisting:(0,i.Gpc)(()=>Kg),multi:!0};let Kg=(()=>{class n extends DB{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=Mt.w0.EMPTY,this._validator=Li.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(wi,8),i.Y36(ga,8),i.Y36($h,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i._Bn([HB,kB,{provide:VD,useExisting:n}]),i.qOj]}),n})(),PB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),zx=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=Mt.w0.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Fe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,Be.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Be.of)(),r=this.datepicker?(0,Ci.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Be.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Ci.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Jg),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,PB,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(dB,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.TTD],ngContentSelectors:pB,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(i.F$t(hB),i.TgZ(0,"button",0,1),i.YNc(2,uB,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},dependencies:[C.O5,Yt],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Jg,MB],imports:[C.ez,_a,Cl,kh,wo,ot,Ja]}),n})();const RB=["mat-sort-header",""];function LB(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const IB=["*"],vH=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),OB=Kd(sr(class{}));let Ma=(()=>{class n extends OB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let r=function VB(n,o){let e=["asc","desc"];return"desc"==n&&e.reverse(),o||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),l=r.indexOf(this.direction)+1;return l>=r.length&&(l=0),r[l]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(vH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const cd=ma.ENTERING+" "+Ph.STANDARD_CURVE,xp={indicator:hi("indicator",[xt("active-asc, asc",Pe({transform:"translateY(0px)"})),xt("active-desc, desc",Pe({transform:"translateY(10px)"})),_t("active-asc <=> active-desc",yt(cd))]),leftPointer:hi("leftPointer",[xt("active-asc, asc",Pe({transform:"rotate(-45deg)"})),xt("active-desc, desc",Pe({transform:"rotate(45deg)"})),_t("active-asc <=> active-desc",yt(cd))]),rightPointer:hi("rightPointer",[xt("active-asc, asc",Pe({transform:"rotate(45deg)"})),xt("active-desc, desc",Pe({transform:"rotate(-45deg)"})),_t("active-asc <=> active-desc",yt(cd))]),arrowOpacity:hi("arrowOpacity",[xt("desc-to-active, asc-to-active, active",Pe({opacity:1})),xt("desc-to-hint, asc-to-hint, hint",Pe({opacity:.54})),xt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Pe({opacity:0})),_t("* => asc, * => desc, * => active, * => hint, * => void",yt("0ms")),_t("* <=> *",yt(cd))]),arrowPosition:hi("arrowPosition",[_t("* => desc-to-hint, * => desc-to-active",yt(cd,Al([Pe({transform:"translateY(-25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-desc, * => active-to-desc",yt(cd,Al([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(25%)"})]))),_t("* => asc-to-hint, * => asc-to-active",yt(cd,Al([Pe({transform:"translateY(25%)"}),Pe({transform:"translateY(0)"})]))),_t("* => hint-to-asc, * => active-to-asc",yt(cd,Al([Pe({transform:"translateY(0)"}),Pe({transform:"translateY(-25%)"})]))),xt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Pe({transform:"translateY(0)"})),xt("hint-to-desc, active-to-desc, desc",Pe({transform:"translateY(-25%)"})),xt("hint-to-asc, active-to-asc, asc",Pe({transform:"translateY(25%)"}))]),allowChildren:hi("allowChildren",[_t("* <=> *",[Pn("@*",kc(),{optional:!0})])])};let $C=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FB={provide:$C,deps:[[new i.FiY,new i.tp0,$C]],useFactory:function BB(n){return n||new $C}},jB=sr(class{});let Sp=(()=>{class n extends jB{constructor(e,t,r,l,d,s,a,c){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=a,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",c?.arrowPosition&&(this.arrowPosition=c?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Fe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Ci.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($C),i.Y36(i.sBO),i.Y36(Ma,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(An),i.Y36(i.SBq),i.Y36(If,8),i.Y36(vH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:RB,ngContentSelectors:IB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,LB,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[C.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[xp.indicator,xp.leftPointer,xp.rightPointer,xp.arrowOpacity,xp.arrowPosition,xp.allowChildren]},changeDetection:0}),n})(),Gx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[FB],imports:[C.ez,ot]}),n})();function NB(n,o){1&n&&i.Hsn(0)}const TH=["*"];function YB(n,o){}const zB=function(n){return{animationDuration:n}},UB=function(n,o){return{value:n,params:o}},GB=["tabListContainer"],qB=["tabList"],WB=["tabListInner"],$B=["nextPaginator"],ZB=["previousPaginator"],JB=["tabBodyWrapper"],QB=["tabHeader"];function KB(n,o){}function XB(n,o){if(1&n&&i.YNc(0,KB,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function eF(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function tF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,s=i.oxw(),a=i.MAs(1);return i.KtG(s._handleClick(l,a,d))})("cdkFocusChange",function(r){const d=i.CHM(e).index,s=i.oxw();return i.KtG(s._tabFocusChanged(r,d))}),i.TgZ(1,"div",7),i.YNc(2,XB,1,1,"ng-template",8),i.YNc(3,eF,1,1,"ng-template",null,9,i.W1O),i.qZA()()}if(2&n){const e=o.$implicit,t=o.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function iF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._removeTabBodyWrapperHeight())})("_onCentering",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._setTabBodyWrapperHeight(r))}),i.qZA()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const nF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function rF(){return o=>({left:o?(o.offsetLeft||0)+"px":"0",width:o?(o.offsetWidth||0)+"px":"0"})}});let MH=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(()=>{const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(nF),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const xH=new i.OlP("MatTabContent");let aF=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:xH,useExisting:n}])]}),n})();const SH=new i.OlP("MatTabLabel"),DH=new i.OlP("MAT_TAB");let sF=(()=>{class n extends MS{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(DH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:SH,useExisting:n}]),i.qOj]}),n})();const oF=sr(class{}),EH=new i.OlP("MAT_TAB_GROUP");let HH=(()=>{class n extends oF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new De.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new yo(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(EH,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SH,5),i.Suo(r,xH,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t._implicitContent=r.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[i._Bn([{provide:DH,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:TH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,NB,1,0,"ng-template"))},encapsulation:2}),n})();const lF={translateTab:hi("translateTab",[xt("center, void, left-origin-center, right-origin-center",Pe({transform:"none"})),xt("left",Pe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),xt("right",Pe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),_t("* => left, * => right, left => center, right => center",yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),_t("void => left-origin-center",[Pe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),_t("void => right-origin-center",[Pe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),yt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let cF=(()=>{class n extends Qa{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=Mt.w0.EMPTY,this._leavingSub=Mt.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Et(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>kH)),i.Y36(C.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),dF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=Mt.w0.EMPTY,this._translateTabComplete=new De.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(cl((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),kH=(()=>{class n extends dF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Qa,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,YB,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,UB,t._position,i.VKq(1,zB,t.animationDuration)))},dependencies:[cF],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[lF.translateTab]}}),n})();const PH=new i.OlP("MAT_TABS_CONFIG"),uF=sr(class{});let RH=(()=>{class n extends uF{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const LH=fa({passive:!0});let fF=(()=>{class n{constructor(e,t,r,l,d,s,a){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new De.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new De.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{Za(e.nativeElement,"mouseleave").pipe(Ke(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=Fi(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Za(this._previousPaginator.nativeElement,"touchstart",LH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Za(this._nextPaginator.nativeElement,"touchstart",LH).pipe(Ke(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Be.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ul(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Ot.q)(1)).subscribe(r),(0,Ci.T)(e,t,this._items.changes,this._itemsResized()).pipe(Ke(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Ke(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}_itemsResized(){return"function"!=typeof ResizeObserver?yi.E:this._items.changes.pipe(Et(this._items),(0,Dt.w)(e=>new nn.y(t=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(()=>{t.next()});return e.forEach(l=>{r.observe(l.elementRef.nativeElement)}),()=>{r.disconnect()}}))),Df(1))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!$i(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:l,offsetWidth:d}=t.elementRef.nativeElement;let s,a;"ltr"==this._getLayoutDirection()?(s=l,a=s+d):(a=this._tabListInner.nativeElement.offsetWidth-l,s=a-d);const c=this.scrollDistance,u=this.scrollDistance+r;su&&(this.scrollDistance+=a-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),(0,am.H)(650,100).pipe(Ke((0,Ci.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(xi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),mF=(()=>{class n extends fF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Fe(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(xi),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),gF=(()=>{class n extends mF{constructor(e,t,r,l,d,s,a){super(e,t,r,l,d,s,a)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ya),i.Y36(Si,8),i.Y36(i.R0b),i.Y36(xi),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RH,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(MH,7),i.Gf(GB,7),i.Gf(qB,7),i.Gf(WB,7),i.Gf($B,5),i.Gf(ZB,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:TH,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA()(),i.TgZ(11,"button",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple)("disabled",t._disableScrollBefore||null),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple)("disabled",t._disableScrollAfter||null))},dependencies:[Ar,mc,MH],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),n})(),_F=0;class bF{}const yF=$a(Cr(class{constructor(n){this._elementRef=n}}),"primary");let wF=(()=>{class n extends yF{constructor(e,t,r,l){super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Mt.w0.EMPTY,this._tabLabelSubscription=Mt.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=_F++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=r?.contentTabIndex??null,this.preserveContent=!!r?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Fe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=Fi(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=Fi(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=Fe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=Fe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,l)=>r.isActive=l===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const t=this._tabs.toArray();let r;for(let l=0;l{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Et(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new bF;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ci.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:t===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(PH,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),CF=(()=>{class n extends wF{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(PH,8),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,HH,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(JB,5),i.Gf(QB,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:EH,useExisting:n}]),i.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,tF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,iF,1,11,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},dependencies:[C.mk,C.sg,C.O5,Qa,Ar,Qd,RH,kH,gF],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),n})(),OH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,ot,wo,un,gc,kh,ot]}),n})(),VH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),BH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[VH,un,ot,gc,VH,ot]}),n})();const YH=new i.OlP("mat-chips-default-options");let Wx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hl,{provide:YH,useValue:{separatorKeyCodes:[13]}}],imports:[ot]}),n})(),zH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,NE,sx,QE,_a,XE,zC,kl,TC,Tu,fC,Ic,pC,ml,cg,Do,hH,Ux,wv,LD,KD,wu,XD,Gx,bu,Wc,Ho,un,TC,BH,Wx,NE,sx,QE,_a,XE,zC,kl,TC,Tu,fC,Ic,pC,ml,cg,Do,hH,Ux,wv,LD,KD,wu,XD,Gx,bu,Wc,Ho,un,OH,BH,Wx]}),n})(),qF=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:10,vars:7,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-stroked-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},dependencies:[Yt,xr,Sr,Dr,St]}),n})(),WF=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),UH=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),ZC=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function $F(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",20)(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ZF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JF(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function QF(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function KF(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function XF(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function ej(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.lockOrUnlockPublication(r))})("mouseenter",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.buttonPressed=!1)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function tj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,XF,4,3,"button",26),i.YNc(2,ej,4,3,"button",26),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function ij(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function nj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function rj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function aj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function sj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,aj,4,3,"span",28),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function oj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function lj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function cj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function dj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function uj(n,o){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function hj(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function pj(n,o){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,hj,3,1,"span",28),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function fj(n,o){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function mj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",25)(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.showCite(l))})("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.buttonPressed=!1)}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function gj(n,o){1&n&&i._UZ(0,"tr",31)}const GH=function(n,o){return[n,o]};function _j(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null)}),i.qZA()}if(2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,GH,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,GH,t.routerPath,e.id))}}function bj(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",33),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let Dp=(()=>{class n{constructor(e,t,r,l,d){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.selection=new si(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Ro,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(s=>this.changeLockMessage=s),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(s=>this.locked=s),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(s=>this.unlocked=s)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(l=>r+=Nw(l)+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new Bl(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){xu(Mu(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Mn();t.width="500px",t.data=e,this.dialog.open(qF,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>Lo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dC),i.Y36(Ut),i.Y36(bi),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(rs,7),i.Gf(Ma,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[i.TTD],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,$F,2,3,"th",4),i.YNc(5,ZF,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JF,3,3,"th",7),i.YNc(8,QF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KF,3,3,"th",7),i.YNc(11,tj,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,ij,3,3,"th",7),i.YNc(14,nj,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,rj,3,3,"th",7),i.YNc(17,sj,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,oj,3,3,"th",7),i.YNc(20,lj,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,cj,3,3,"th",7),i.YNc(23,dj,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,uj,3,3,"th",7),i.YNc(26,pj,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,fj,3,3,"th",16),i.YNc(29,mj,4,3,"td",8),i.BQk(),i.YNc(30,gj,1,0,"tr",17),i.YNc(31,_j,1,10,"tr",18),i.qZA()()(),i.YNc(32,bj,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(28),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},dependencies:[C.sg,C.O5,Yt,od,Ii,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,Ma,Sp,qc,hc,zs,rs,UH,St,ZC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function yj(n,o){1&n&&i._UZ(0,"mat-spinner",7)}const wj=function(){return["id","title","year"]};function Cj(n,o){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,wj))}}let $x=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,yj,1,0,"mat-spinner",2),i.YNc(5,Cj,4,7,"div",3),i.TgZ(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},dependencies:[C.O5,Yt,xr,Sr,Dr,Ai,Dp,St]}),n})(),Ep=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},dependencies:[Ii,Yt,qc,St],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),n})();var Hp=M(5439);const ku=Hp||M.t(Hp,2),qH=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function vj(){return{useUtc:!1}}});function Tj(n,o){const e=Array(n);for(let t=0;t{class n extends wi{constructor(e,t){super(),this._options=t,this.setLocale(e||ku.locale())}setLocale(e){super.setLocale(e);let t=ku.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:Tj(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,ku.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return ku.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return ku.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?ku.utc(e,t,r,l):ku(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ds,8),i.LFG(qH,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Mj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:Xg,deps:[Ds,qH]}]}),n})(),WH=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","example-month-picker",3,"yearSelected"],["sdp",""],["matInput","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(7);return i.KtG(d.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1)(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(7);return i.KtG(t.chosenYearHandler(t.startYear,d,s))}),i.qZA()(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){i.CHM(r);const d=i.MAs(15);return i.KtG(d.open())}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5)(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const s=i.MAs(15);return i.KtG(t.chosenYearHandler(t.endYear,d,s))}),i.qZA()()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},dependencies:[Gn,wa,Wh,as,Rn,qn,Mr,Yx,Kg,zx,St],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function xj(n,o){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const JC=Hp,Sj={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let Zx=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Ji,this.code=new Ji,this.startYear=new Ji(JC()),this.endYear=new Ji(JC())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,C.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,C.p6)(this.endYear.value,"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear=new Ji(JC()),this.endYear=new Ji(JC()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:wi,useClass:Xg,deps:[Ds]},{provide:ga,useValue:Sj}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1)(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA()()(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1)(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,xj,2,2,"mat-option",8),i.qZA()(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA()()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},dependencies:[C.sg,Yt,Ii,Gn,wa,as,Rn,qn,Mr,Eo,Tc,WH,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function Dj(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function Ej(n,o){1&n&&i._UZ(0,"mat-spinner",11)}let Hj=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new si(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Mn();e.width="500px",e.data=this.selected.selected,this.dialog.open($x,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(bi),i.Y36(ko),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA()(),i.TgZ(6,"div",4)(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA()(),i.YNc(12,Dj,1,4,"perun-web-apps-publications-list",8),i.YNc(13,Ej,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,Zx,St],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function kj(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function Pj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",6)(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(7,kj,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function Rj(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let Lj=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new si(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Mn();e.width="500px",e.data=this.selected.selected,this.dialog.open($x,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(bi),i.Y36(nt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,Pj,8,5,"div",4),i.YNc(8,Rj,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,Zx,St]}),n})(),Ij=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"div",4)(9,"mat-card",5)(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6)(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA()()()(),i.TgZ(20,"div",4)(21,"mat-card",5)(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6)(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",7),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA()()()()()()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},dependencies:[jE,BE,FE,Yt,Ii,St],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}"]}),n})();const Oj=["input"];let Vj=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Ji,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),Za(this.input.nativeElement,"keyup").pipe((0,Qe.U)(e=>e.target.value),(0,ll.b)(500),cl()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(Oj,7),2&e){let r;i.iGM(r=i.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","","data-cy","filter-input",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.TgZ(4,"mat-error"),i._uU(5),i.qZA()()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,3,t.placeholder)),i.Q6J("formControl",t.control),i.xp6(4),i.hij(" ",t.error," "))},dependencies:[Rn,qn,Xa,Gn,Mr,as,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function Bj(n,o){1&n&&i._UZ(0,"th",20)}function Fj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",21)(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function jj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function Nj(n,o){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function Yj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function zj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function Uj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function Gj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function qj(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function Wj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function $j(n,o){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function Zj(n,o){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function Jj(n,o){1&n&&i._UZ(0,"th",26)}function Qj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onAddClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function Kj(n,o){1&n&&i._UZ(0,"th",26)}function Xj(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",24)(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return i.KtG(d.onRemoveClick(l))}),i._uU(2),i.ALo(3,"translate"),i.qZA()()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function e2(n,o){1&n&&i._UZ(0,"tr",29)}const $H=function(n){return["/authors",n]};function t2(n,o){if(1&n&&i._UZ(0,"tr",30),2&n){const e=o.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,$H,e.id))("routerLink",t.disableRouting?null:i.VKq(6,$H,e.id))}}function n2(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function r2(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let Jx=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Ro,this.addAuthor=new i.vpe,this.removeAuthor=new i.vpe}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function Yw(n){let o="";return null!==n.firstName&&(o+=n.firstName+" "),null!==n.middleName&&(o+=n.middleName+" "),null!==n.lastName&&(o+=n.lastName+" "),o.endsWith(" ")&&(o=o.substring(0,o.length-1)),o}(e);case"organization":return Vs(e,"organization");case"email":return Vs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return Nw(e);case"organization":return Vs(e,"organization");case"email":return Vs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:e.firstName??"";case"organization":return Vs(e,"organization");case"email":return Vs(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Bl(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){xu(Mu(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`}onAddClick(e){this.addAuthor.emit(e)}onRemoveClick(e){this.removeAuthor.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Rl(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>Lo(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(rs,7),i.Gf(Ma,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Bj,1,0,"th",4),i.YNc(5,Fj,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,jj,3,3,"th",7),i.YNc(8,Nj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,Yj,3,3,"th",7),i.YNc(11,zj,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,Uj,3,3,"th",7),i.YNc(14,Gj,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,qj,3,3,"th",7),i.YNc(17,Wj,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,$j,3,3,"th",7),i.YNc(20,Zj,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,Jj,1,0,"th",15),i.YNc(23,Qj,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,Kj,1,0,"th",15),i.YNc(26,Xj,4,3,"td",8),i.BQk(),i.YNc(27,e2,1,0,"tr",17),i.YNc(28,t2,1,8,"tr",18),i.qZA()()(),i.YNc(29,n2,3,3,"perun-web-apps-alert",19),i.YNc(30,r2,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},dependencies:[C.O5,Yt,od,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,Ma,Sp,hc,zs,rs,UH,St,ZC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function a2(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const s2=function(){return["id","name","organization","email","numberOfPublications"]};function o2(n,o){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,s2))("filterValue",e.filterValue)("tableId",e.tableId)}}let l2=(()=>{class n{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,a2,1,0,"mat-spinner",6),i.YNc(10,o2,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Ii,Ai,Ep,Vj,Jx,St]}),n})();function c2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function d2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA()(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA()(),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(24),i.ALo(25,"translate"),i.qZA()()()()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let u2=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Ji(null,[Li.required,Li.pattern("^[\\w.-]+( [\\w.-]+)*$"),Li.maxLength(128)]),this.rankCtrl=new Ji(null,[Li.required,Li.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,c2,1,0,"mat-spinner",2),i.YNc(5,d2,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,xr,Sr,Dr,Ai,Xa,Gn,as,Rn,qn,is,Mr,qc,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function h2(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function p2(n,o){1&n&&i._UZ(0,"th",14)}function f2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function m2(n,o){1&n&&i._UZ(0,"tr",16)}function g2(n,o){1&n&&i._UZ(0,"tr",17)}function _2(n,o){if(1&n&&(i.TgZ(0,"div",6)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,p2,1,0,"th",10),i.YNc(10,f2,2,1,"td",11),i.BQk(),i.YNc(11,m2,1,0,"tr",12),i.YNc(12,g2,1,0,"tr",13),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function b2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",18)(1,"button",19),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let y2=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new Bl(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,h2,1,0,"mat-spinner",2),i.YNc(5,_2,13,9,"div",3),i.YNc(6,b2,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,xr,Sr,Dr,Ai,St]}),n})();function w2(n,o){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function C2(n,o){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let e_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ji}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,w2,2,4,"input",1),i.YNc(2,C2,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[C.O5,Rn,qn,Gn,Mr,as,WF,St],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function A2(n,o){1&n&&i._UZ(0,"mat-spinner",4)}function v2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA()(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA()(),i.TgZ(11,"div",8)(12,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(18),i.ALo(19,"translate"),i.qZA()()()()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let T2=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Ji(this.data.rank,[Li.required,Li.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,A2,1,0,"mat-spinner",2),i.YNc(5,v2,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,xr,Sr,Dr,Ai,Xa,Gn,as,Rn,qn,is,Mr,qc,St],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function M2(n,o){1&n&&i._UZ(0,"th",15)}function x2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function S2(n,o){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function D2(n,o){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function E2(n,o){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function H2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function k2(n,o){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function P2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.updateCategory(r))}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA()()}}function R2(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,P2,3,0,"button",21),i.qZA()),2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function L2(n,o){1&n&&i._UZ(0,"tr",23)}function I2(n,o){1&n&&i._UZ(0,"tr",24)}function O2(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let V2=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new si(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Ro,this.refreshTable=new i.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Bl(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){xu(Mu(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Rl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Lo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Mn();t.width="400px",t.data=e,this.dialog.open(T2,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra),i.Y36(dC),i.Y36(bi),i.Y36(ra))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(rs,7),i.Gf(Ma,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,M2,1,0,"th",4),i.YNc(5,x2,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,S2,3,3,"th",7),i.YNc(8,D2,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,E2,3,3,"th",7),i.YNc(11,H2,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,k2,3,3,"th",7),i.YNc(14,R2,3,2,"td",10),i.BQk(),i.YNc(15,L2,1,0,"tr",12),i.YNc(16,I2,1,0,"tr",13),i.qZA()()(),i.YNc(17,O2,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},dependencies:[C.O5,Yt,od,Ii,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,Ma,Sp,zs,rs,St]}),n})();function B2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addCategory())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function F2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeCategory())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function j2(n,o){1&n&&i._UZ(0,"mat-spinner",10)}const N2=function(){return["select","id","name","rank"]},Y2=function(){return["name","rank"]};function z2(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,N2):i.DdM(6,Y2))("tableId",e.tableId)("selection",e.selected)}}let U2=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new si(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Mn();e.width="400px",e.data={},this.dialog.open(u2,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Mn();e.width="400px",e.data=this.selected.selected,this.dialog.open(y2,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(bi),i.Y36(ra))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,B2,3,3,"button",3),i.YNc(6,F2,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,j2,1,0,"mat-spinner",6),i.YNc(9,z2,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},dependencies:[C.O5,Yt,Ai,Ep,e_,V2,St]}),n})();function G2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function q2(n,o){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.id)}}function W2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function $2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function Z2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function J2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function Q2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function K2(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function X2(n,o){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function eN(n,o){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function tN(n,o){1&n&&i._UZ(0,"tr",17)}function iN(n,o){1&n&&i._UZ(0,"tr",18)}function nN(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let rN=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Ro}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new Bl(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){xu(Mu(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Rl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Lo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(rs,7),i.Gf(Ma,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,G2,3,3,"th",4),i.YNc(5,q2,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,W2,3,3,"th",4),i.YNc(8,$2,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,Z2,3,3,"th",4),i.YNc(11,J2,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,Q2,3,3,"th",4),i.YNc(14,K2,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,X2,3,3,"th",4),i.YNc(17,eN,2,1,"td",7),i.BQk(),i.YNc(18,tN,1,0,"tr",11),i.YNc(19,iN,1,0,"tr",12),i.qZA()()(),i.YNc(20,nN,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},dependencies:[C.O5,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,Ma,Sp,zs,rs,St]}),n})();function aN(n,o){1&n&&i._UZ(0,"mat-spinner",6)}function sN(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let oN=(()=>{class n{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,aN,1,0,"mat-spinner",4),i.YNc(7,sN,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},dependencies:[C.O5,Ai,Ep,e_,rN,St]}),n})();function lN(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function cN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6)(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable())}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removePublication())}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterPublication(r))}),i.qZA()(),i.YNc(11,lN,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function dN(n,o){1&n&&i._UZ(0,"mat-spinner",12)}let uN=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new si(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Mn();e.width="500px",e.data=this.selected.selected,this.dialog.open($x,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,null,null,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(ia),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,cN,12,11,"div",4),i.YNc(8,dN,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},dependencies:[C.O5,Yt,Ii,Ai,Ep,Dp,Zx,St,ZC]}),n})();function hN(n,o){1&n&&i._UZ(0,"mat-spinner",2)}function pN(n,o){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function fN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.editing=!r.editing)}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function mN(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function gN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,mN,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function _N(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.save())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function bN(n,o){1&n&&i._UZ(0,"th",21)}function yN(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij("",e.key,":")}}function wN(n,o){1&n&&i._UZ(0,"th",21)}function CN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function AN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function vN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function TN(n,o){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function MN(n,o){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,TN,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function xN(n,o){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function SN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,MN,2,1,"span",1),i.YNc(2,xN,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function DN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(7);return i.KtG(r.open())}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27)(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7),d=i.oxw(4);return i.KtG(d.chosenYearHandler(r,l))}),i.qZA()()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function EN(n,o){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function HN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field")(1,"mat-select",31),i.YNc(2,EN,2,2,"mat-option",32),i.qZA()()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function kN(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function PN(n,o){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,kN,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function RN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.isbn=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function LN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"input",35),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.doi=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function IN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18)(1,"textarea",36),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(4);return i.KtG(l.publication.main=r)}),i.qZA()()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function ON(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,DN,8,7,"mat-form-field",25),i.YNc(2,HN,3,2,"mat-form-field",1),i.YNc(3,PN,3,2,"mat-form-field",1),i.YNc(4,RN,2,1,"mat-form-field",6),i.YNc(5,LN,2,1,"mat-form-field",6),i.YNc(6,IN,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function VN(n,o){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,CN,10,9,"span",1),i.YNc(2,AN,3,4,"span",1),i.YNc(3,vN,2,1,"span",1),i.YNc(4,SN,3,2,"div",1),i.YNc(5,ON,7,6,"div",1),i.qZA()),2&n){const e=o.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function BN(n,o){1&n&&i._UZ(0,"tr",37)}function FN(n,o){if(1&n&&(i.TgZ(0,"div")(1,"div",3),i.YNc(2,pN,2,1,"h3",4),i.YNc(3,fN,4,3,"button",5),i.YNc(4,gN,3,2,"mat-form-field",6),i.YNc(5,_N,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,bN,1,0,"th",10),i.YNc(9,yN,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,wN,1,0,"th",10),i.YNc(12,VN,6,5,"td",13),i.BQk(),i.YNc(13,BN,1,0,"tr",14),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const ZH=Hp,jN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let NN=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new si(!0,[]),this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;el.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[i._Bn([{provide:wi,useClass:Xg,deps:[Ds]},{provide:ga,useValue:jN}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,hN,1,0,"mat-spinner",0),i.YNc(2,FN,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.sg,C.O5,Yt,Ii,Io,Fs,js,Bs,Oo,Ns,Ys,Vo,Ai,Xa,Gn,wa,Wh,as,Rn,qn,Sl,Mr,Yx,Kg,zx,qc,Eo,Tc,C.uU,St],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),n})();const YN=function(){return["id","name","organization","email","add"]};function zN(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.addAuthor(r))}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(4,YN))}}function UN(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function GN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,zN,1,5,"perun-web-apps-authors-list",13),i.YNc(2,UN,3,3,"perun-web-apps-alert",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function qN(n,o){1&n&&i._UZ(0,"mat-spinner",17)}const WN=function(){return["id","name","organization","email","remove"]};function $N(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.removeAuthor(r))}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("reloadTable",e.reloadTable)("authors",e.authorsToAdd)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,WN))}}function ZN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,$N,1,6,"perun-web-apps-authors-list",18),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone)}}function JN(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function QN(n,o){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,GN,3,2,"div",6),i.YNc(2,qN,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,ZN,2,1,"div",6),i.YNc(7,JN,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading),i.xp6(2),i.hij(" ",i.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),i.xp6(2),i.Q6J("ngIf",e.firstSearchDone&&0!==e.authorsToAdd.length),i.xp6(1),i.Q6J("ngIf",0===e.authorsToAdd.length)}}function KN(n,o){1&n&&i._UZ(0,"mat-spinner",17)}let XN=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors="67",this.selection=new si(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Ji("",[Li.required,Li.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const e=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(t=>{t=t.filter(r=>!e.map(l=>l.id).includes(r.id)),this.authors=t,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const e=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe(()=>{this.onAdd()},()=>this.loading=!1)}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}addAuthor(e){this.authors=this.authors.filter(t=>t!==e),this.authorsToAdd.push(e),this.reloadTable=!this.reloadTable}removeAuthor(e){this.authorsToAdd=this.authorsToAdd.filter(t=>t!==e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36(On),i.Y36(Ut),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title","",1,"top-margin"],["alert_type","warn",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor"],["alert_type","info"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor",4,"ngIf"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2)(5,"mat-form-field",3)(6,"label")(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA()(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA()(),i.YNc(15,QN,8,7,"div",6),i.qZA(),i.YNc(16,KN,1,0,"mat-spinner",7),i.TgZ(17,"div",8)(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA()()()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.authorsToAdd.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},dependencies:[C.O5,Yt,Ii,xr,Sr,Dr,Ai,Xa,Gn,as,Rn,qn,Mr,zs,Jx,St],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function eY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddAuthors())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function tY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onRemoveAuthors())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function iY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const nY=function(){return["id","name","organization","email"]},rY=function(){return["select","id","name","organization","email"]};function aY(n,o){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,nY):i.DdM(6,rY))}}let JH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!0,[]),this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Mn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(XN,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Mn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(GD,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(Ut),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,eY,3,3,"button",1),i.YNc(2,tY,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,iY,1,0,"mat-spinner",4),i.YNc(5,aY,1,7,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Ai,e_,Jx,St]}),n})();function sY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",16)(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function oY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function lY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function cY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function dY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function uY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.name)}}function hY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function pY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.contact)}}function fY(n,o){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function mY(n,o){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.type)}}function gY(n,o){1&n&&i._UZ(0,"tr",23)}function _Y(n,o){1&n&&i._UZ(0,"tr",24)}function bY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function yY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let wY=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new si(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Ro}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(e){xu(Mu(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Rl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Lo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Bl(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra),i.Y36(dC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(rs,7),i.Gf(Ma,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,sY,2,3,"th",4),i.YNc(5,oY,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,lY,3,3,"th",7),i.YNc(8,cY,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,dY,3,3,"th",7),i.YNc(11,uY,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,hY,3,3,"th",7),i.YNc(14,pY,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,fY,3,3,"th",7),i.YNc(17,mY,2,1,"td",10),i.BQk(),i.YNc(18,gY,1,0,"tr",13),i.YNc(19,_Y,1,0,"tr",14),i.qZA()()(),i.YNc(20,bY,3,3,"perun-web-apps-alert",15),i.YNc(21,yY,3,3,"perun-web-apps-alert",15)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},dependencies:[C.O5,od,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,Ma,Sp,zs,rs,St]}),n})();function CY(n,o){1&n&&i._UZ(0,"mat-spinner",4)}const AY=function(){return["select","id","name","contact"]};function vY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterValue=r)}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8)(5,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,AY))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let TY=(()=>{class n{constructor(e,t,r,l,d,s,a){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=s,this.cabinetManagerService=a,this.selected=new si(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(r.id)):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(In),i.Y36(Zr),i.Y36($s),i.Y36(Zn),i.Y36(On),i.Y36(Yi),i.Y36(Ut))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,CY,1,0,"mat-spinner",2),i.YNc(5,vY,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,xr,Sr,Dr,Ai,e_,wY,St]}),n})();function MY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"th",15)(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function xY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"td",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(d):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=o.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function SY(n,o){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function DY(n,o){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function EY(n,o){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function HY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function kY(n,o){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function PY(n,o){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function RY(n,o){1&n&&i._UZ(0,"tr",22)}function LY(n,o){1&n&&i._UZ(0,"tr",23)}function IY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function OY(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let VY=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Ro,this.selection=new si(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new Bl(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}exportData(e){xu(Mu(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Rl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Lo(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(rs,7),i.Gf(Ma,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,MY,2,3,"th",4),i.YNc(5,xY,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,SY,3,3,"th",7),i.YNc(8,DY,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,EY,3,3,"th",7),i.YNc(11,HY,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,kY,3,3,"th",7),i.YNc(14,PY,2,1,"td",10),i.BQk(),i.YNc(15,RY,1,0,"tr",12),i.YNc(16,LY,1,0,"tr",13),i.qZA()()(),i.YNc(17,IY,3,3,"perun-web-apps-alert",14),i.YNc(18,OY,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},dependencies:[C.O5,od,Io,Fs,Ol,js,Bs,Oo,Ns,Ys,Vl,Vo,Ma,Sp,zs,rs,St]}),n})();function BY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddThanks())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function FY(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onRemoveThanks())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function jY(n,o){1&n&&i._UZ(0,"mat-spinner",8)}const NY=function(){return["id","name","createdBy"]},YY=function(){return["select","id","name","createdBy"]};function zY(n,o){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,NY):i.DdM(6,YY))("selection",e.selection)}}let QH=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new si(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Mn();e.width="800px",e.data=this.publication,this.dialog.open(TY,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Mn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(GD,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(bi),i.Y36(Ut),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,BY,3,3,"button",1),i.YNc(2,FY,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,jY,1,0,"mat-spinner",4),i.YNc(5,zY,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.O5,Yt,Ai,e_,VY,St]}),n})();function UY(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function GY(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function qY(n,o){1&n&&(i.TgZ(0,"h1",11),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",14),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function WY(n,o){1&n&&(i.TgZ(0,"h1",11)(1,"span")(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function $Y(n,o){if(1&n&&(i.TgZ(0,"h5",15),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function ZY(n,o){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function JY(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function QY(n,o){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function KY(n,o){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function XY(n,o){1&n&&i._UZ(0,"mat-spinner",3)}function e3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.refreshPublication())}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function t3(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,GY,6,3,"h1",4),i.YNc(2,qY,5,3,"h1",4),i.YNc(3,WY,6,3,"h1",4),i.YNc(4,$Y,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeLock())}),i.YNc(12,ZY,3,3,"span",7),i.YNc(13,JY,2,0,"mat-icon",2),i.YNc(14,QY,3,3,"span",7),i.YNc(15,KY,2,0,"mat-icon",2),i.qZA()(),i.TgZ(16,"mat-card")(17,"mat-card-content"),i.YNc(18,XY,1,0,"mat-spinner",1),i.YNc(19,e3,1,2,"perun-web-apps-publication-detail-list",8),i.qZA()(),i.TgZ(20,"mat-card",9)(21,"mat-card-title"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-card-content"),i._UZ(25,"perun-web-apps-add-authors",10),i.qZA()(),i.TgZ(26,"mat-card",9)(27,"mat-card-title"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-card-content"),i._UZ(31,"perun-web-apps-add-thanks",10),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(3),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors),i.xp6(3),i.hij(" ",i.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)}}let t_=(()=>{class n{constructor(e,t,r,l,d,s,a){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=s,this.translate=a,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new si(!0,[]),this.selectionThanks=new si(!0,[]),this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zn),i.Y36(Ut),i.Y36(ko),i.Y36(Ei),i.Y36(bi),i.Y36(On),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["mat-stroked-button","",1,"ml-2",3,"click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,UY,1,0,"mat-spinner",1),i.YNc(2,t3,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},dependencies:[C.O5,jE,BE,FE,Yt,Ii,Ai,NN,JH,QH,St,ZC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),Qx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[kl,C.ez]}),n})();function Kx(n,o,e){for(let t in o)if(o.hasOwnProperty(t)){const r=o[t];r?n.setProperty(t,r,e?.has(t)?"important":""):n.removeProperty(t)}return n}function kp(n,o){const e=o?"":"none";Kx(n.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function KH(n,o,e){Kx(n.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},e)}function QC(n,o){return o&&"none"!=o?n+" "+o:n}function XH(n){const o=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*o}function Xx(n,o){return n.getPropertyValue(o).split(",").map(t=>t.trim())}function e0(n){const o=n.getBoundingClientRect();return{top:o.top,right:o.right,bottom:o.bottom,left:o.left,width:o.width,height:o.height,x:o.x,y:o.y}}function t0(n,o,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&o>=l&&o<=d}function i_(n,o,e){n.top+=o,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function e1(n,o,e,t){const{top:r,right:l,bottom:d,left:s,width:a,height:c}=n,u=a*o,h=c*o;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:e0(e)})})}handleScroll(o){const e=wn(o),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,a=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&i_(c.clientRect,s,a)}),r.top=l,r.left=d,{top:s,left:a}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function n1(n){const o=n.cloneNode(!0),e=o.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();o.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&this._initializeDragSequence(a,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const a=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(a.x-this._pickupPositionOnPage.x)+Math.abs(a.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),B=this._dropContainer;if(!b)return void this._endDragSequence(s);(!B||!B.isDragging()&&!B.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const c=this._getConstrainedPointerPosition(a);if(this._hasMoved=!0,this._lastKnownPointerPosition=a,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,a);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=c.x-u.x+this._passiveTransform.x,h.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:s,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const a=this._getTargetHandle(s);a&&!this._disabledHandles.has(a)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(o).withParent(e.parentDragRef||null),this._parentPositions=new t1(t),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(o){const e=Fe(o);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>kp(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(t=>Zi(t)),this._handles.forEach(t=>kp(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){const e=Zi(o);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,KC),e.addEventListener("touchstart",this._pointerDown,o1),e.addEventListener("dragstart",this._nativeDragStart,KC)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?Zi(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),kp(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),kp(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){const o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){const o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:o}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(o){n_(o)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),KH(t,!1,n0),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:o}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:o}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(o,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=n_(e),l=!r&&0!==e.button,d=this._rootElement,s=wn(e),a=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Eh(e):Wa(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||a||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=e0(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,o,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(o){KH(this._rootElement,!0,n0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(o),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:o}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r,event:o}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,o,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,o,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,o,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(o,e):this._applyPreviewTransform(o-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const o=this._previewTemplate,e=this.previewClass,t=o?o.template:null;let r;if(t&&o){const l=o.matchSize?this._initialClientRect:null,d=o.viewContainer.createEmbeddedView(t,o.context);d.detectChanges(),r=c1(d,this._document),this._previewRef=d,o.matchSize?d1(r,l):r.style.transform=XC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=n1(this._rootElement),d1(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Kx(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},n0),kp(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const o=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);const e=function r3(n){const o=getComputedStyle(n),e=Xx(o,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=Xx(o,"transition-duration"),d=Xx(o,"transition-delay");return XH(l[r])+XH(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{(!d||wn(d)===this._preview&&"transform"===d.propertyName)&&(this._preview?.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const o=this._placeholderTemplate,e=o?o.template:null;let t;return e?(this._placeholderRef=o.viewContainer.createEmbeddedView(e,o.context),this._placeholderRef.detectChanges(),t=c1(this._placeholderRef,this._document)):t=n1(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(o,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():o,d=n_(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-o.left+(d.pageX-l.left-s.left),y:l.top-o.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(o){const e=this._getViewportScrollPosition(),t=n_(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(o){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(o,this,this._initialClientRect,this._pickupPositionInElement):o;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,s=this._boundaryRect,{width:a,height:c}=this._getPreviewRect(),u=s.top+d,h=s.bottom-(c-d);t=l1(t,s.left+l,s.right-(a-l)),r=l1(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(o){const{x:e,y:t}=o,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),s=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,kp(this._rootElement,o))}_removeRootElementListeners(o){o.removeEventListener("mousedown",this._pointerDown,KC),o.removeEventListener("touchstart",this._pointerDown,o1),o.removeEventListener("dragstart",this._nativeDragStart,KC)}_applyRootElementTransform(o,e){const t=XC(o,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=QC(t,this._initialTransform)}_applyPreviewTransform(o,e){const t=this._previewTemplate?.template?void 0:this._initialTransform,r=XC(o,e);this._preview.style.transform=QC(r,t)}_getDragDistance(o){const e=this._pickupPositionOnPage;return e?{x:o.x-e.x,y:o.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:e}=this._passiveTransform;if(0===o&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,d=t.right-r.right,s=r.top-t.top,a=t.bottom-r.bottom;r.width>t.width?(l>0&&(o+=l),d>0&&(o-=d)):o=0,r.height>t.height?(s>0&&(e+=s),a>0&&(e-=a)):e=0,(o!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:o})}_getDragStartDelay(o){const e=this.dragStartDelay;return"number"==typeof e?e:n_(o)?e.touch:e?e.mouse:0}_updateOnScroll(o){const e=this._parentPositions.handleScroll(o);if(e){const t=wn(o);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&i_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=fc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,e){const t=this._previewContainer||"global";if("parent"===t)return o;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Zi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(o){return this._handles.find(e=>o.target&&(o.target===e||e.contains(o.target)))}}function XC(n,o){return`translate3d(${Math.round(n)}px, ${Math.round(o)}px, 0)`}function l1(n,o,e){return Math.max(o,Math.min(e,n))}function n_(n){return"t"===n.type[0]}function c1(n,o){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===o.ELEMENT_NODE)return e[0];const t=o.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function d1(n,o){n.style.width=`${o.width}px`,n.style.height=`${o.height}px`,n.style.transform=XC(o.left,o.top)}function r_(n,o){return Math.max(0,Math.min(o,n))}class c3{constructor(o,e){this._element=o,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(o){this.withItems(o)}sort(o,e,t,r){const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(o,e,t,r);if(-1===d&&l.length>0)return null;const s="horizontal"===this.orientation,a=l.findIndex(he=>he.drag===o),c=l[d],h=c.clientRect,f=a>d?1:-1,b=this._getItemOffsetPx(l[a].clientRect,h,f),B=this._getSiblingOffsetPx(a,l,f),ee=l.slice();return function l3(n,o,e){const t=r_(o,n.length-1),r=r_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ee[We]===he)return;const Pt=he.drag===o,Jt=Pt?b:B,Vi=Pt?o.getPlaceholderElement():he.drag.getRootElement();he.offset+=Jt,s?(Vi.style.transform=QC(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),i_(he.clientRect,0,Jt)):(Vi.style.transform=QC(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),i_(he.clientRect,Jt,0))}),this._previousSwap.overlaps=t0(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:a,currentIndex:d}}enter(o,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(o,e,t):r,d=this._activeDraggables,s=d.indexOf(o),a=o.getPlaceholderElement();let c=d[l];if(c===o&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(s,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(a,u),d.splice(l,0,o)}else Zi(this._element).appendChild(a),d.push(o);a.style.transform="",this._cacheItemPositions()}withItems(o){this._activeDraggables=o.slice(),this._cacheItemPositions()}withSortPredicate(o){this._sortPredicate=o}reset(){this._activeDraggables.forEach(o=>{const e=o.getRootElement();if(e){const t=this._itemPositions.find(r=>r.drag===o)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(o){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===o)}updateOnScroll(o,e){this._itemPositions.forEach(({clientRect:t})=>{i_(t,o,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const o="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:e0(t)}}).sort((e,t)=>o?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(o,e,t){const r="horizontal"===this.orientation;let l=r?e.left-o.left:e.top-o.top;return-1===t&&(l+=r?e.width-o.width:e.height-o.height),l}_getSiblingOffsetPx(o,e,t){const r="horizontal"===this.orientation,l=e[o].clientRect,d=e[o+-1*t];let s=l[r?"width":"height"]*t;if(d){const a=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[a]-l[c]:s+=l[a]-d.clientRect[c]}return s}_shouldEnterAsFirstChild(o,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?o>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?o<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(o,e,t,r){const l="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:a})=>{if(s===o)return!1;if(r){const c=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(a.left)&&e=Math.floor(a.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Mt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function n3(n=0,o=Bh.z){return n<0&&(n=0),(0,am.H)(n,n,o)}(0,Hb).pipe(Ke(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-s):2===this._verticalScrollDirection&&d.scrollBy(0,s),1===this._horizontalScrollDirection?d.scrollBy(-s,0):2===this._horizontalScrollDirection&&d.scrollBy(s,0)})},this.element=Zi(o),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new t1(t),this._sortStrategy=new c3(this.element,e),this._sortStrategy.withSortPredicate((d,s)=>this.sortPredicate(d,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(o)),this._sortStrategy.enter(o,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,e,t,r,l,d,s,a={}){this._reset(),this.dropped.next({item:o,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s,event:a})}withItems(o){const e=this._draggables;return this._draggables=o,o.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===o.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(o){return this._sortStrategy.direction=o,this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){return this._sortStrategy.orientation=o,this}withScrollableParents(o){const e=Zi(this.element);return this._scrollableElements=-1===o.indexOf(e)?[e,...o]:o.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?this._sortStrategy.getItemIndex(o):this._draggables.indexOf(o)}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,e,t,r){if(this.sortingDisabled||!this._clientRect||!e1(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(o,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:o})}_startScrollingIfNecessary(o,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||e1(d.clientRect,.05,o,e)&&([r,l]=function u3(n,o,e,t){const r=p1(o,t),l=f1(o,e);let d=0,s=0;if(r){const a=n.scrollTop;1===r?a>0&&(d=1):n.scrollHeight-a>n.clientHeight&&(d=2)}if(l){const a=n.scrollLeft;1===l?a>0&&(s=1):n.scrollWidth-a>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,o,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),a={width:d,height:s,top:0,right:d,bottom:s,left:0};r=p1(a,e),l=f1(a,o),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const o=Zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const o=Zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(o).clientRect}_reset(){this._isDragging=!1;const o=Zi(this.element).style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(o,e){return null!=this._clientRect&&t0(this._clientRect,o,e)}_getSiblingContainerFromPosition(o,e,t){return this._siblings.find(r=>r._canReceive(o,e,t))}_canReceive(o,e,t){if(!this._clientRect||!t0(this._clientRect,e,t)||!this.enterPredicate(o,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Zi(this.element);return r===l||l.contains(r)}_startReceiving(o,e){const t=this._activeSiblings;!t.has(o)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(o),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(o);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const o=fc(Zi(this.element));this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const o=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,o))}}function p1(n,o){const{top:e,bottom:t,height:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}function f1(n,o){const{left:e,right:t,width:r}=n,l=.05*r;return o>=e-l&&o<=e+l?1:o>=t-l&&o<=t+l?2:0}const eA=fa({passive:!1,capture:!0});let h3=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,eA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,eA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:eA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:eA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new nn.y(r=>this._ngZone.runOutsideAngular(()=>{const d=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Ci.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(C.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const p3={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let f3=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=p3){return new o3(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new d3(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C.K0),i.LFG(i.R0b),i.LFG(ya),i.LFG(h3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),m3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[f3],imports:[Ja]}),n})(),g3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),C3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),E3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C3,ot,ot]}),n})(),Y3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[un,ot,ot]}),n})();new i.OlP("mat-selectsearch-default-options");let W3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[C.ez,Do,_a,zC,kl,fC,Wc]]}),n})(),$3=(()=>{class n extends _b{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let o;return function(t){return(o||(o=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Z3={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let b1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:wi,useClass:$3},{provide:ga,useValue:Z3}],imports:[C.ez,zC,TC,cg,Wx,m3,yp,wh,Gx,bu,fC,Qx,kl,wu,_a,Wc,Ic,Do,pC,un,FD,g3,E3,Ux,Y3,Kf,Ho,W3,ml,Tu,bM,zH]}),n})(),v6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[C.ez,_a,kl,wh,b1,yp,Ic,Do,pC,Qx]}),n})(),T6=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zg),i.Y36(Ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Yt,Ii,St],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function M6(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let x6=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ji(null,[Li.required]),this.passwordCtrl=new Ji(null,[Li.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,M6,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA()(),i.TgZ(15,"mat-form-field",4)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[C.O5,Yt,Ii,Xa,Gn,wa,Rn,qn,is,Mr,as,zs,St],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})();function S6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function D6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function E6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function H6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function k6(n,o){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function P6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function R6(n,o){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function L6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function I6(n,o){1&n&&(i.TgZ(0,"div",28),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function O6(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",38)(1,"div",28)(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40)(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42)(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA()()()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function V6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function B6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}const F6=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function j6(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1),d=i.oxw(2);return i.KtG(d.loadPublicationDetail(r,l))}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,F6))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function N6(n,o){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,B6,1,0,"mat-spinner",3),i.YNc(2,j6,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function Y6(n,o){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function z6(n,o){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)}}function U6(n,o){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,Y6,1,1,"ng-template",44),i.YNc(2,z6,2,1,"ng-template",45),i.qZA())}function G6(n,o){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43)(2,"mat-tab"),i.YNc(3,V6,2,3,"ng-template",44),i.YNc(4,N6,3,2,"ng-template",45),i.qZA(),i.YNc(5,U6,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function q6(n,o){1&n&&(i.TgZ(0,"div",28)(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function W6(n,o){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function $6(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.redirect(["create-publication"]))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function Z6(n,o){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,W6,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,$6,3,3,"button",56),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),i.xp6(2),i.Q6J("ngIf",!e.duplicateCheck)}}function J6(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function Q6(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function K6(n,o){if(1&n&&i._UZ(0,"perun-web-apps-add-authors",59),2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)}}function X6(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,K6,1,2,"perun-web-apps-add-authors",33),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function ez(n,o){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function tz(n,o){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,ez,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),i.qZA()()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function iz(n,o){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function nz(n,o){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",59),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function rz(n,o){1&n&&i._UZ(0,"mat-spinner",5)}function az(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.stepChanged(r))}),i.TgZ(1,"mat-step",7),i.YNc(2,D6,2,3,"ng-template",8),i.TgZ(3,"form",9)(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11)(8,"mat-checkbox",12),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-form-field"),i._UZ(12,"input",13),i.ALo(13,"translate"),i.YNc(14,E6,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){i.CHM(e);const r=i.MAs(22);return i.KtG(r.open())}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16)(20,"mat-datepicker-toggle",17),i.TgZ(21,"mat-datepicker",18,19),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(22),d=i.oxw();return i.KtG(d.chosenYearHandler(r,l))}),i.qZA(),i.YNc(23,H6,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field")(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,k6,2,2,"mat-option",21),i.qZA(),i.YNc(28,P6,3,3,"mat-error",14),i.qZA(),i.TgZ(29,"mat-form-field"),i._UZ(30,"input",22),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-form-field"),i._UZ(33,"input",23),i.ALo(34,"translate"),i.qZA(),i.TgZ(35,"mat-form-field")(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,R6,3,3,"mat-error",14),i.qZA()()(),i.TgZ(40,"div",25)(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA()()(),i.TgZ(44,"mat-step",27),i.YNc(45,L6,2,3,"ng-template",8),i.TgZ(46,"form",28)(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,I6,5,3,"div",29),i.YNc(51,O6,16,12,"perun-web-apps-alert",30),i.YNc(52,G6,6,1,"mat-tab-group",14),i.YNc(53,q6,6,3,"div",29),i.qZA(),i.YNc(54,Z6,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,J6,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,Q6,1,0,"mat-spinner",3),i.YNc(61,X6,5,4,"div",14),i.YNc(62,tz,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,iz,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,nz,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,rz,1,0,"mat-spinner",3),i.TgZ(70,"div",25)(71,"button",34),i._uU(72),i.ALo(73,"translate"),i.qZA(),i.TgZ(74,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.redirect(["all-publications",r.publication.id]))}),i._uU(75),i.ALo(76,"translate"),i.qZA()()()()}if(2&n){const e=i.MAs(22),t=i.oxw();i.xp6(1),i.Q6J("editable",!t.duplicateCheck)("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck),i.xp6(4),i.hij(" ",i.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const sz=Hp,oz={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let lz=(()=>{class n{constructor(e,t,r,l,d,s,a,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=s,this.storeService=a,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new si(!0,[]),this.thanksSelection=new si(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!1],title:["",Li.required],year:["",Li.required],category:["",Li.required],isbn:[""],doi:[""],cite:["",Li.required]}),this.maxYear=sz(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){this.innerLoading=!0;const e=this.publicationControl.get("title").value??null,t=this.publicationControl.get("doi").value??null,r=this.publicationControl.get("isbn").value??null;this.cabinetService.findSimilarPublications(e,t,r).subscribe(l=>{this.similarPublications=l,this.filteredPublications=l,setTimeout(()=>{this.duplicateCheck=0===l.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e)}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(OT),i.Y36(Ut),i.Y36(bi),i.Y36(Ri),i.Y36(On),i.Y36(Yi),i.Y36(Zn),i.Y36(ia))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:wi,useClass:Xg,deps:[Ds]},{provide:ga,useValue:oz}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],["linear","True",3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],["linear","True",3,"selectionChange"],[3,"editable","stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"mt-1"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-auto",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","mt-1",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-stroked-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],[1,"mt-3"],["class","ml-auto","mat-stroked-button","","type","button","matStepperPrevious","",4,"ngIf"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["class","ml-2","mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","type","button",1,"ml-2",3,"click"],["alert_type","info"],[3,"publication","selection"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-2"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,S6,1,0,"mat-spinner",3),i.YNc(8,az,77,65,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[C.sg,C.O5,Yt,od,Ii,Ai,Xa,Gn,wa,Wh,as,By,Rn,qn,Fm,is,xl,Dl,op,dH,UC,uH,JV,QV,Yx,Kg,zx,Eo,Tc,CF,sF,HH,aF,zs,Dp,t_,JH,QH,St],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.passed-icon[_ngcontent-%COMP%]{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function cz(n,o){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=o.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function dz(n,o){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function uz(n,o){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function hz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div")(2,"mat-form-field",5)(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.selectPubSystem())}),i.YNc(7,cz,2,2,"mat-option",7),i.qZA()(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.searchPublications())}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.importPublications(r.selected.selected))}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.userAsAuthor=r)}),i._uU(18),i.ALo(19,"translate"),i.qZA()(),i.YNc(20,dz,3,3,"perun-web-apps-alert",12),i.YNc(21,uz,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function pz(n,o){1&n&&i._UZ(0,"mat-spinner",17)}function fz(n,o){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function mz(n,o){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function gz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index,s=i.oxw(2);return i.KtG(s.completePublication(l.id,d))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function _z(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(2);return i.KtG(l.incompletePublication(r.id))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function bz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22)(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw(2);return i.KtG(d.editPublication(l))}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,fz,3,3,"i",3),i.YNc(5,mz,2,0,"mat-icon",24),i.qZA()(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,gz,3,3,"button",20),i.YNc(9,_z,3,3,"button",27),i.qZA()()}if(2&n){const e=o.$implicit,t=o.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function yz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.completeAllPublications())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function wz(n,o){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.onSubmit())}),i._uU(3),i.ALo(4,"translate"),i.qZA()()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function Cz(n,o){if(1&n&&(i.TgZ(0,"div")(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,bz,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,yz,3,3,"button",20),i.qZA(),i.YNc(8,wz,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const A1=Hp,Az={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},vz=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:T6},{path:"service-access",component:x6},{path:"all-publications",component:Hj},{path:"my-publications",component:Lj},{path:"create-publication",component:Ij},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,s){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=s,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Ji,this.publications=[],this.selected=new si(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Ji(A1().subtract(1,"year")),this.endYear=new Ji(A1()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem.setValue(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe(e=>{this.publications=e,this.loading=!1},()=>this.loading=!1)}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe(l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(l),this.importPublications(e)},()=>this.loading=!1):(this.importedPublications.push(l),this.importPublications(e))},()=>this.loading=!1)}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Mn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(jR,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ut),i.Y36(Zn),i.Y36(On),i.Y36(Yi),i.Y36(Ri),i.Y36(bi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:wi,useClass:Xg,deps:[Ds]},{provide:ga,useValue:Az}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1)(2,"span")(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.YNc(7,hz,22,20,"div",3),i.YNc(8,pz,1,0,"mat-spinner",4),i.YNc(9,Cz,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},dependencies:[C.sg,C.O5,gV,ZE,JE,mV,Yt,od,Ii,Ai,Gn,wa,qn,Sl,Mr,qc,Eo,Tc,zs,Dp,t_,WH,St],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),n})()},{path:"create-publication/create",component:lz},{path:"authors",component:l2},{path:"authors/:authorId",component:uN},{path:"authors/:authorId/publication/:publicationId",component:t_},{path:"all-publications/:publicationId",component:t_},{path:"my-publications/:publicationId",component:t_},{path:"categories",component:U2},{path:"publication-systems",component:oN}];let Tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[wh.forRoot(vz,{preloadingStrategy:u0,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"}),wh]}),n})();const Mz={provide:w.TP,useExisting:(0,i.Gpc)(()=>SD),multi:!0};function xz(n){return new LL(n,"./assets/i18n/",".json")}function Sz(n){const o={basePath:n.get("api_url")};return new Ye(o)}const Dz=n=>()=>n.loadConfigs();let Ez=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xD),i.LFG(Yi))},n.\u0275mod=i.oAB({type:n,bootstrap:[RL]}),n.\u0275inj=i.cJS({providers:[xD,{provide:i.ip1,useFactory:Dz,multi:!0,deps:[VL]},{provide:Ye,useFactory:Sz,deps:[Zn]},SD,Mz,{provide:BL,useClass:Dk},Mj,{provide:GM.Hy,useFactory:()=>localStorage}],imports:[Xi,yp.forRoot({loader:{provide:_p,useFactory:xz,deps:[w.eN]}}),VO,zH,BO,Yo,w.JF,Tz,Qx,FD,v6,OH,bM,GM.zr.forRoot(),b1]}),n})();(0,i.G48)(),ct().bootstrapModule(Ez).catch(n=>console.error(n))},1302:function(Y,U,M){var C;!function(i,D){var x={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var D=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function x(le,re,ie,me,be){for(var Ae,$e,Ze,Ee,ve,xe,lt,Re,Oe,Le,ue,fe,Ce;be>=64;){for(Ae=re[0],$e=re[1],Ze=re[2],Ee=re[3],ve=re[4],xe=re[5],lt=re[6],Re=re[7],Le=0;Le<16;Le++)le[Le]=(255&ie[ue=me+4*Le])<<24|(255&ie[ue+1])<<16|(255&ie[ue+2])<<8|255&ie[ue+3];for(Le=16;Le<64;Le++)le[Le]=((fe=((Oe=le[Le-2])>>>17|Oe<<15)^(Oe>>>19|Oe<<13)^Oe>>>10)+le[Le-7]|0)+((Ce=((Oe=le[Le-15])>>>7|Oe<<25)^(Oe>>>18|Oe<<14)^Oe>>>3)+le[Le-16]|0);for(Le=0;Le<64;Le++)fe=(((ve>>>6|ve<<26)^(ve>>>11|ve<<21)^(ve>>>25|ve<<7))+(ve&xe^~ve<)|0)+(Re+(D[Le]+le[Le]|0)|0)|0,Ce=((Ae>>>2|Ae<<30)^(Ae>>>13|Ae<<19)^(Ae>>>22|Ae<<10))+(Ae&$e^Ae&Ze^$e&Ze)|0,Re=lt,lt=xe,xe=ve,ve=Ee+fe|0,Ee=Ze,Ze=$e,$e=Ae,Ae=fe+Ce|0;re[0]+=Ae,re[1]+=$e,re[2]+=Ze,re[3]+=Ee,re[4]+=ve,re[5]+=xe,re[6]+=lt,re[7]+=Re,me+=64,be-=64}return me}var S=function(){function le(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return le.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},le.prototype.clean=function(){for(var re=0;re0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(me=x(this.temp,this.state,re,me,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=re[me++],ie--;return this},le.prototype.finish=function(re){if(!this.finished){var ie=this.bytesHashed,me=this.bufferLength,be=ie/536870912|0,Ae=ie<<3,$e=ie%64<56?64:128;this.buffer[me]=128;for(var Ze=me+1;Ze<$e-8;Ze++)this.buffer[Ze]=0;this.buffer[$e-8]=be>>>24&255,this.buffer[$e-7]=be>>>16&255,this.buffer[$e-6]=be>>>8&255,this.buffer[$e-5]=be>>>0&255,this.buffer[$e-4]=Ae>>>24&255,this.buffer[$e-3]=Ae>>>16&255,this.buffer[$e-2]=Ae>>>8&255,this.buffer[$e-1]=Ae>>>0&255,x(this.temp,this.state,this.buffer,0,$e),this.finished=!0}for(Ze=0;Ze<8;Ze++)re[4*Ze+0]=this.state[Ze]>>>24&255,re[4*Ze+1]=this.state[Ze]>>>16&255,re[4*Ze+2]=this.state[Ze]>>>8&255,re[4*Ze+3]=this.state[Ze]>>>0&255;return this},le.prototype.digest=function(){var re=new Uint8Array(this.digestLength);return this.finish(re),re},le.prototype._saveState=function(re){for(var ie=0;iethis.blockSize)(new S).update(re).finish(ie).clean();else for(var me=0;me1&&re.update(le),ie&&re.update(ie),re.update(me),re.finish(le),me[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=j;var J=new Uint8Array(i.digestLength);i.hkdf=function Q(le,re,ie,me){void 0===re&&(re=J),void 0===me&&(me=32);for(var be=new Uint8Array([1]),Ae=j(re,le),$e=new P(Ae),Ze=new Uint8Array($e.digestLength),Ee=Ze.length,ve=new Uint8Array(me),xe=0;xe>>24&255,$e[1]=lt>>>16&255,$e[2]=lt>>>8&255,$e[3]=lt>>>0&255,be.reset(),be.update(re),be.update($e),be.finish(Ee);for(var Re=0;Re=Q.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var Q=document.createEvent("MouseEvents");Q.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(Q)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,j=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),z=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!j?function(J,Q,ne){var le=L.URL||L.webkitURL,re=document.createElement("a");re.download=Q=Q||J.name||"download",re.rel="noopener","string"==typeof J?(re.href=J,re.origin===location.origin?P(re):S(re.href)?x(J,Q,ne):P(re,re.target="_blank")):(re.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(re.href)},4e4),setTimeout(function(){P(re)},0))}:"msSaveOrOpenBlob"in navigator?function(J,Q,ne){if(Q=Q||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function D(J,Q){return typeof Q>"u"?Q={autoBom:!1}:"object"!=typeof Q&&(console.warn("Deprecated: Expected third argument to be a object"),Q={autoBom:!Q}),Q.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),Q);else if(S(J))x(J,Q,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,Q,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,Q,ne);var re="application/octet-stream"===J.type,ie=/constructor/i.test(L.HTMLElement)||L.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||re&&ie||j)&&typeof FileReader<"u"){var be=new FileReader;be.onloadend=function(){var Ze=be.result;Ze=me?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Ze:location=Ze,le=null},be.readAsDataURL(J)}else{var Ae=L.URL||L.webkitURL,$e=Ae.createObjectURL(J);le?le.location=$e:location.href=$e,le=null,setTimeout(function(){Ae.revokeObjectURL($e)},4e4)}});L.saveAs=z.saveAs=z,Y.exports=z}.apply(U,[]))&&(Y.exports=i)},7088:function(Y,U,M){!function(C){"use strict";C.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(D){return/^nm$/i.test(D)},meridiem:function(D,x,S){return D<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(M(5439))},2502:function(Y,U,M){!function(C){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},x=function(L){return function(j,z,J,Q){var ne=i(j),le=D[L][i(j)];return 2===ne&&(le=le[z?0:1]),le.replace(/%d/i,j)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];C.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,j,z){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(M(5439))},128:function(Y,U,M){!function(C){"use strict";C.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(M(5439))},4519:function(Y,U,M){!function(C){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},x={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(j){return function(z,J,Q,ne){var le=D(z),re=x[j][D(z)];return 2===le&&(re=re[J?0:1]),re.replace(/%d/i,z)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];C.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(j){return"\u0645"===j},meridiem:function(j,z,J){return j<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(j){return j.replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(z){return i[z]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(M(5439))},5443:function(Y,U,M){!function(C){"use strict";C.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(M(5439))},7642:function(Y,U,M){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};C.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return D[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(M(5439))},8592:function(Y,U,M){!function(C){"use strict";C.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(M(5439))},7038:function(Y,U,M){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=function(z){return 0===z?0:1===z?1:2===z?2:z%100>=3&&z%100<=10?3:z%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(z){return function(J,Q,ne,le){var re=x(J),ie=S[z][x(J)];return 2===re&&(ie=ie[Q?0:1]),ie.replace(/%d/i,J)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];C.defineLocale("ar",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(z){return"\u0645"===z},meridiem:function(z,J,Q){return z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(z){return z.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return D[J]}).replace(/\u060c/g,",")},postformat:function(z){return z.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(M(5439))},1213:function(Y,U,M){!function(C){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};C.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},9191:function(Y,U,M){!function(C){"use strict";function D(S,P,L){return"m"===L?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var L=S.split("_");return P%10==1&&P%100!=11?L[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?L[1]:L[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[L],+S)}C.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(M(5439))},322:function(Y,U,M){!function(C){"use strict";C.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var x=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===x?D+"-\u0432\u0438":2===x?D+"-\u0440\u0438":7===x||8===x?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(M(5439))},8042:function(Y,U,M){!function(C){"use strict";C.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(M(5439))},5903:function(Y,U,M){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(M(5439))},9620:function(Y,U,M){!function(C){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};C.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(M(5439))},9645:function(Y,U,M){!function(C){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};C.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(M(5439))},5020:function(Y,U,M){!function(C){"use strict";function i(ie,me,be){return ie+" "+function S(ie,me){return 2===me?function P(ie){var me={m:"v",b:"v",d:"z"};return void 0===me[ie.charAt(0)]?ie:me[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[be],ie)}function x(ie){return ie>9?x(ie%10):ie}var L=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],j=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];C.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:le,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:le,monthsRegex:j,monthsShortRegex:j,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function D(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,me,be){return ie<12?"a.m.":"g.m."}})}(M(5439))},4792:function(Y,U,M){!function(C){"use strict";function i(x,S,P){var L=x+" ";switch(P){case"ss":return L+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return L+(1===x?"dan":"dana");case"MM":return L+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return L+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}C.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},7980:function(Y,U,M){!function(C){"use strict";C.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,x){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),D+S},week:{dow:1,doy:4}})}(M(5439))},7322:function(Y,U,M){!function(C){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),x=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(z){return z>1&&z<5&&1!=~~(z/10)}function L(z,J,Q,ne){var le=z+" ";switch(Q){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(z)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(z)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(z)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(z)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(z)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(z)?"roky":"let"):le+"lety"}}C.defineLocale("cs",{months:i,monthsShort:D,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},365:function(Y,U,M){!function(C){"use strict";C.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(M(5439))},2092:function(Y,U,M){!function(C){"use strict";C.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(M(5439))},7387:function(Y,U,M){!function(C){"use strict";C.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},9459:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?j[P][0]:j[P][1]}C.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},3694:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?j[P][0]:j[P][1]}C.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},4307:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?j[P][0]:j[P][1]}C.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},9659:function(Y,U,M){!function(C){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],D=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];C.defineLocale("dv",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,L){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(M(5439))},3460:function(Y,U,M){!function(C){"use strict";C.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(x,S){var P=this._calendarEl[x],L=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(P)&&(P=P.apply(S)),P.replace("{}",L%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(M(5439))},4369:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(M(5439))},530:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(M(5439))},9998:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},3391:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},5414:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(M(5439))},9615:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(M(5439))},1248:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},3767:function(Y,U,M){!function(C){"use strict";C.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},4530:function(Y,U,M){!function(C){"use strict";C.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,x,S){return D>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(M(5439))},8944:function(Y,U,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},9116:function(Y,U,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(M(5439))},3609:function(Y,U,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(M(5439))},6866:function(Y,U,M){!function(C){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;C.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(M(5439))},6725:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?j[P][2]?j[P][2]:j[P][1]:L?j[P][0]:j[P][1]}C.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},7931:function(Y,U,M){!function(C){"use strict";C.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},6417:function(Y,U,M){!function(C){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};C.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,L){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return D[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(M(5439))},944:function(Y,U,M){!function(C){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function x(L,j,z,J){var Q="";switch(z){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":Q=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":Q=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":Q=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Q=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":Q=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":Q=J?"vuoden":"vuotta"}return function S(L,j){return L<10?j?D[L]:i[L]:L}(L,J)+" "+Q}C.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},1766:function(Y,U,M){!function(C){"use strict";C.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(M(5439))},5867:function(Y,U,M){!function(C){"use strict";C.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},6848:function(Y,U,M){!function(C){"use strict";C.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(M(5439))},7773:function(Y,U,M){!function(C){"use strict";C.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(M(5439))},1636:function(Y,U,M){!function(C){"use strict";var x=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];C.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:x,monthsShortRegex:x,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(L,j){switch(j){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(M(5439))},4940:function(Y,U,M){!function(C){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");C.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?D[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(M(5439))},1402:function(Y,U,M){!function(C){"use strict";C.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(M(5439))},6924:function(Y,U,M){!function(C){"use strict";C.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(j){return j+(1===j?"d":j%10==2?"na":"mh")},week:{dow:1,doy:4}})}(M(5439))},6398:function(Y,U,M){!function(C){"use strict";C.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(D){return 0===D.indexOf("un")?"n"+D:"en "+D},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},2457:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?j[P][0]:j[P][1]}C.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(M(5439))},2545:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return L?j[P][0]:j[P][1]}C.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(M(5439))},2641:function(Y,U,M){!function(C){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};C.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(M(5439))},7536:function(Y,U,M){!function(C){"use strict";C.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,x,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(M(5439))},6335:function(Y,U,M){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},x=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];C.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:x,longMonthsParse:x,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(j){return D[j]})},postformat:function(L){return L.replace(/\d/g,function(j){return i[j]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,j){return 12===L&&(L=0),"\u0930\u093e\u0924"===j?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===j?L:"\u0926\u094b\u092a\u0939\u0930"===j?L>=10?L:L+12:"\u0936\u093e\u092e"===j?L+12:void 0},meridiem:function(L,j,z){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(M(5439))},7458:function(Y,U,M){!function(C){"use strict";function i(x,S,P){var L=x+" ";switch(P){case"ss":return L+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return L+(1===x?"dan":"dana");case"MM":return L+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return L+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}C.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},6540:function(Y,U,M){!function(C){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(P,L,j,z){var J=P;switch(j){case"s":return z||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(z||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(z||L?" perc":" perce");case"mm":return J+(z||L?" perc":" perce");case"h":return"egy"+(z||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(z||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(z||L?" nap":" napja");case"dd":return J+(z||L?" nap":" napja");case"M":return"egy"+(z||L?" h\xf3nap":" h\xf3napja");case"MM":return J+(z||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(z||L?" \xe9v":" \xe9ve");case"yy":return J+(z||L?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}C.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,L,j){return P<12?!0===j?"de":"DE":!0===j?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},5283:function(Y,U,M){!function(C){"use strict";C.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(D,x){switch(x){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(M(5439))},8780:function(Y,U,M){!function(C){"use strict";C.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(D,x){return 12===D&&(D=0),"pagi"===x?D:"siang"===x?D>=11?D:D+12:"sore"===x||"malam"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"pagi":D<15?"siang":D<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(M(5439))},4205:function(Y,U,M){!function(C){"use strict";function i(S){return S%100==11||S%10!=1}function D(S,P,L,j){var z=S+" ";switch(L){case"s":return P||j?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?z+(P||j?"sek\xfandur":"sek\xfandum"):z+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?z+(P||j?"m\xedn\xfatur":"m\xedn\xfatum"):P?z+"m\xedn\xfata":z+"m\xedn\xfatu";case"hh":return i(S)?z+(P||j?"klukkustundir":"klukkustundum"):z+"klukkustund";case"d":return P?"dagur":j?"dag":"degi";case"dd":return i(S)?P?z+"dagar":z+(j?"daga":"d\xf6gum"):P?z+"dagur":z+(j?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":j?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?z+"m\xe1nu\xf0ir":z+(j?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?z+"m\xe1nu\xf0ur":z+(j?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||j?"\xe1r":"\xe1ri";case"yy":return i(S)?z+(P||j?"\xe1r":"\xe1rum"):z+(P||j?"\xe1r":"\xe1ri")}}C.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},9985:function(Y,U,M){!function(C){"use strict";C.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},4211:function(Y,U,M){!function(C){"use strict";C.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},1003:function(Y,U,M){!function(C){"use strict";C.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(D,x){return"\u5143"===x[1]?1:parseInt(x[1]||D,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(D){return"\u5348\u5f8c"===D},meridiem:function(D,x,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,x){switch(x){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(M(5439))},420:function(Y,U,M){!function(C){"use strict";C.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(D,x){return 12===D&&(D=0),"enjing"===x?D:"siyang"===x?D>=11?D:D+12:"sonten"===x||"ndalu"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"enjing":D<15?"siyang":D<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(M(5439))},851:function(Y,U,M){!function(C){"use strict";C.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(x,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(M(5439))},6074:function(Y,U,M){!function(C){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};C.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},3343:function(Y,U,M){!function(C){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};C.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,L){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(M(5439))},4799:function(Y,U,M){!function(C){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};C.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(M(5439))},3549:function(Y,U,M){!function(C){"use strict";C.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,x,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(M(5439))},1037:function(Y,U,M){!function(C){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];C.defineLocale("ku",{months:x,monthsShort:x,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,L,j){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return D[L]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(M(5439))},3125:function(Y,U,M){!function(C){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};C.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},9586:function(Y,U,M){!function(C){"use strict";function i(L,j,z,J){var Q={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return j?Q[z][0]:Q[z][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var j=L%10;return S(0===j?L/10:j)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}C.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function D(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function x(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},2349:function(Y,U,M){!function(C){"use strict";C.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,x,S){return D<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(D){return"\u0e97\u0eb5\u0ec8"+D}})}(M(5439))},2400:function(Y,U,M){!function(C){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function x(z,J,Q,ne){return J?P(Q)[0]:ne?P(Q)[1]:P(Q)[2]}function S(z){return z%10==0||z>10&&z<20}function P(z){return i[z].split("_")}function L(z,J,Q,ne){var le=z+" ";return 1===z?le+x(0,J,Q[0],ne):J?le+(S(z)?P(Q)[1]:P(Q)[0]):ne?le+P(Q)[1]:le+(S(z)?P(Q)[1]:P(Q)[2])}C.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function D(z,J,Q,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:x,mm:L,h:x,hh:L,d:x,dd:L,M:x,MM:L,y:x,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(z){return z+"-oji"},week:{dow:1,doy:4}})}(M(5439))},9991:function(Y,U,M){!function(C){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function D(j,z,J){return J?z%10==1&&z%100!=11?j[2]:j[3]:z%10==1&&z%100!=11?j[0]:j[1]}function x(j,z,J){return j+" "+D(i[J],j,z)}function S(j,z,J){return D(i[J],j,z)}C.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(j,z){return z?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},8477:function(Y,U,M){!function(C){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:x+" "+i.correctGrammaticalCase(x,L)}};C.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},5118:function(Y,U,M){!function(C){"use strict";C.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},5943:function(Y,U,M){!function(C){"use strict";C.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var x=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===x?D+"-\u0432\u0438":2===x?D+"-\u0440\u0438":7===x||8===x?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(M(5439))},3849:function(Y,U,M){!function(C){"use strict";C.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(D,x){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?D+12:D},meridiem:function(D,x,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(M(5439))},1977:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}C.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(M(5439))},6184:function(Y,U,M){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function x(P,L,j,z){var J="";if(L)switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(j){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}C.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return D[L]})},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,L){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?P>=12?P:P+12:void 0},meridiem:function(P,L,j){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(M(5439))},4524:function(Y,U,M){!function(C){"use strict";C.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,x){return 12===D&&(D=0),"pagi"===x?D:"tengahari"===x?D>=11?D:D+12:"petang"===x||"malam"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(M(5439))},485:function(Y,U,M){!function(C){"use strict";C.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,x){return 12===D&&(D=0),"pagi"===x?D:"tengahari"===x?D>=11?D:D+12:"petang"===x||"malam"===x?D+12:void 0},meridiem:function(D,x,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(M(5439))},6681:function(Y,U,M){!function(C){"use strict";C.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},2024:function(Y,U,M){!function(C){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};C.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(M(5439))},2688:function(Y,U,M){!function(C){"use strict";C.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},8914:function(Y,U,M){!function(C){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};C.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(M(5439))},2272:function(Y,U,M){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;C.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(M(5439))},1758:function(Y,U,M){!function(C){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;C.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,j){return L?/-MMM-/.test(j)?D[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(M(5439))},1510:function(Y,U,M){!function(C){"use strict";C.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},2797:function(Y,U,M){!function(C){"use strict";C.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,x){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),D+S},week:{dow:1,doy:4}})}(M(5439))},7944:function(Y,U,M){!function(C){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};C.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(M(5439))},1605:function(Y,U,M){!function(C){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),x=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(j){return j%10<5&&j%10>1&&~~(j/10)%10!=1}function P(j,z,J){var Q=j+" ";switch(J){case"ss":return Q+(S(j)?"sekundy":"sekund");case"m":return z?"minuta":"minut\u0119";case"mm":return Q+(S(j)?"minuty":"minut");case"h":return z?"godzina":"godzin\u0119";case"hh":return Q+(S(j)?"godziny":"godzin");case"ww":return Q+(S(j)?"tygodnie":"tygodni");case"MM":return Q+(S(j)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Q+(S(j)?"lata":"lat")}}C.defineLocale("pl",{months:function(j,z){return j?/D MMMM/.test(z)?D[j.month()]:i[j.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},3840:function(Y,U,M){!function(C){"use strict";C.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(M(5439))},4225:function(Y,U,M){!function(C){"use strict";C.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(M(5439))},5128:function(Y,U,M){!function(C){"use strict";function i(x,S,P){var j=" ";return(x%100>=20||x>=100&&x%100==0)&&(j=" de "),x+j+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}C.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(M(5439))},5127:function(Y,U,M){!function(C){"use strict";function D(P,L,j){return"m"===j?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var j=P.split("_");return L%10==1&&L%100!=11?j[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?j[1]:j[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[j],+P)}var x=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];C.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,L,j){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,L){switch(L){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(M(5439))},2525:function(Y,U,M){!function(C){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],D=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];C.defineLocale("sd",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(M(5439))},9893:function(Y,U,M){!function(C){"use strict";C.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},3123:function(Y,U,M){!function(C){"use strict";C.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,x,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(M(5439))},3027:function(Y,U,M){!function(C){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function x(L){return L>1&&L<5}function S(L,j,z,J){var Q=L+" ";switch(z){case"s":return j||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return j||J?Q+(x(L)?"sekundy":"sek\xfand"):Q+"sekundami";case"m":return j?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return j||J?Q+(x(L)?"min\xfaty":"min\xfat"):Q+"min\xfatami";case"h":return j?"hodina":J?"hodinu":"hodinou";case"hh":return j||J?Q+(x(L)?"hodiny":"hod\xedn"):Q+"hodinami";case"d":return j||J?"de\u0148":"d\u0148om";case"dd":return j||J?Q+(x(L)?"dni":"dn\xed"):Q+"d\u0148ami";case"M":return j||J?"mesiac":"mesiacom";case"MM":return j||J?Q+(x(L)?"mesiace":"mesiacov"):Q+"mesiacmi";case"y":return j||J?"rok":"rokom";case"yy":return j||J?Q+(x(L)?"roky":"rokov"):Q+"rokmi"}}C.defineLocale("sk",{months:i,monthsShort:D,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},8106:function(Y,U,M){!function(C){"use strict";function i(x,S,P,L){var j=x+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return j+(1===x?S?"sekundo":"sekundi":2===x?S||L?"sekundi":"sekundah":x<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return j+(1===x?S?"minuta":"minuto":2===x?S||L?"minuti":"minutama":x<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return j+(1===x?S?"ura":"uro":2===x?S||L?"uri":"urama":x<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return j+(1===x?S||L?"dan":"dnem":2===x?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return j+(1===x?S||L?"mesec":"mesecem":2===x?S||L?"meseca":"mesecema":x<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return j+(1===x?S||L?"leto":"letom":2===x?S||L?"leti":"letoma":x<5?S||L?"leta":"leti":S||L?"let":"leti")}}C.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},8799:function(Y,U,M){!function(C){"use strict";C.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(D){return"M"===D.charAt(0)},meridiem:function(D,x,S){return D<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},2872:function(Y,U,M){!function(C){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,L){var z,j=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?j[0]:j[1]:(z=i.correctGrammaticalCase(x,j),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===z?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+z)}};C.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},7949:function(Y,U,M){!function(C){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,L){var z,j=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":L||S?j[0]:j[1]:(z=i.correctGrammaticalCase(x,j),"yy"===P&&S&&"godinu"===z?x+" godina":x+" "+z)}};C.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(M(5439))},6167:function(Y,U,M){!function(C){"use strict";C.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(D,x,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,x){return 12===D&&(D=0),"ekuseni"===x?D:"emini"===x?D>=11?D:D+12:"entsambama"===x||"ebusuku"===x?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(M(5439))},9713:function(Y,U,M){!function(C){"use strict";C.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(M(5439))},1982:function(Y,U,M){!function(C){"use strict";C.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(M(5439))},2732:function(Y,U,M){!function(C){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};C.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return D[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(M(5439))},3636:function(Y,U,M){!function(C){"use strict";C.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(D,x){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===x?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?D+12:void 0},meridiem:function(D,x,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(M(5439))},2115:function(Y,U,M){!function(C){"use strict";C.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},9801:function(Y,U,M){!function(C){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};C.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(M(5439))},2868:function(Y,U,M){!function(C){"use strict";C.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,x,S){return D<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(M(5439))},1310:function(Y,U,M){!function(C){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};C.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(M(5439))},2360:function(Y,U,M){!function(C){"use strict";C.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(M(5439))},6645:function(Y,U,M){!function(C){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(j,z,J,Q){var ne=function P(j){var z=Math.floor(j%1e3/100),J=Math.floor(j%100/10),Q=j%10,ne="";return z>0&&(ne+=i[z]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),Q>0&&(ne+=(""!==ne?" ":"")+i[Q]),""===ne?"pagh":ne}(j);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}C.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function D(j){var z=j;return-1!==j.indexOf("jaj")?z.slice(0,-3)+"leS":-1!==j.indexOf("jar")?z.slice(0,-3)+"waQ":-1!==j.indexOf("DIS")?z.slice(0,-3)+"nem":z+" pIq"},past:function x(j){var z=j;return-1!==j.indexOf("jaj")?z.slice(0,-3)+"Hu\u2019":-1!==j.indexOf("jar")?z.slice(0,-3)+"wen":-1!==j.indexOf("DIS")?z.slice(0,-3)+"ben":z+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},8374:function(Y,U,M){!function(C){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};C.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(M(5439))},256:function(Y,U,M){!function(C){"use strict";function D(x,S,P,L){var j={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return L||S?j[P][0]:j[P][1]}C.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(M(5439))},1631:function(Y,U,M){!function(C){"use strict";C.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(M(5439))},1595:function(Y,U,M){!function(C){"use strict";C.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(M(5439))},6050:function(Y,U,M){!function(C){"use strict";C.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(D,x){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?D+12:D>=11?D:D+12},meridiem:function(D,x,S){var P=100*D+x;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(M(5439))},5610:function(Y,U,M){!function(C){"use strict";function D(L,j,z){return"m"===z?j?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===z?j?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,j){var z=L.split("_");return j%10==1&&j%100!=11?z[0]:j%10>=2&&j%10<=4&&(j%100<10||j%100>=20)?z[1]:z[2]}({ss:j?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:j?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:j?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[z],+L)}function S(L){return function(){return L+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}C.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function x(L,j){var z={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===L?z.nominative.slice(1,7).concat(z.nominative.slice(0,1)):L?z[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(j)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(j)?"genitive":"nominative"][L.day()]:z.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,j,z){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,j){switch(j){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(M(5439))},6077:function(Y,U,M){!function(C){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],D=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];C.defineLocale("ur",{months:i,monthsShort:i,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(M(5439))},2207:function(Y,U,M){!function(C){"use strict";C.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(M(5439))},2862:function(Y,U,M){!function(C){"use strict";C.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(M(5439))},8093:function(Y,U,M){!function(C){"use strict";C.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(D){return/^ch$/i.test(D)},meridiem:function(D,x,S){return D<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(M(5439))},5590:function(Y,U,M){!function(C){"use strict";C.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(D){var x=D%10;return D+(1==~~(D%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(M(5439))},9058:function(Y,U,M){!function(C){"use strict";C.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(M(5439))},7908:function(Y,U,M){!function(C){"use strict";C.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:D>=11?D:D+12},meridiem:function(D,x,S){var P=100*D+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(M(5439))},8867:function(Y,U,M){!function(C){"use strict";C.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e2d\u5348"===x?D>=11?D:D+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:void 0},meridiem:function(D,x,S){var P=100*D+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(M(5439))},1133:function(Y,U,M){!function(C){"use strict";C.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e2d\u5348"===x?D>=11?D:D+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:void 0},meridiem:function(D,x,S){var P=100*D+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(M(5439))},3291:function(Y,U,M){!function(C){"use strict";C.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,x){return 12===D&&(D=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?D:"\u4e2d\u5348"===x?D>=11?D:D+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?D+12:void 0},meridiem:function(D,x,S){var P=100*D+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,x){switch(x){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(M(5439))},5439:function(Y,U,M){(Y=M.nmd(Y)).exports=function(){"use strict";var C,me;function i(){return C.apply(null,arguments)}function x(T){return T instanceof Array||"[object Array]"===Object.prototype.toString.call(T)}function S(T){return null!=T&&"[object Object]"===Object.prototype.toString.call(T)}function P(T,H){return Object.prototype.hasOwnProperty.call(T,H)}function L(T){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(T).length;var H;for(H in T)if(P(T,H))return!1;return!0}function j(T){return void 0===T}function z(T){return"number"==typeof T||"[object Number]"===Object.prototype.toString.call(T)}function J(T){return T instanceof Date||"[object Date]"===Object.prototype.toString.call(T)}function Q(T,H){var N,I=[],W=T.length;for(N=0;N>>0;for(N=0;N0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-N.length)).toString().substr(1)+N}var ni=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Je=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ki={},_n={};function Ue(T,H,I,N){var W=N;"string"==typeof N&&(W=function(){return this[N]()}),T&&(_n[T]=W),H&&(_n[H[0]]=function(){return It(W.apply(this,arguments),H[1],H[2])}),I&&(_n[I]=function(){return this.localeData().ordinal(W.apply(this,arguments),T)})}function ri(T){return T.match(/\[[\s\S]/)?T.replace(/^\[|\]$/g,""):T.replace(/\\/g,"")}function vi(T,H){return T.isValid()?(H=Kr(H,T.localeData()),Ki[H]=Ki[H]||function lr(T){var I,N,H=T.match(ni);for(I=0,N=H.length;I=0&&Je.test(T);)T=T.replace(Je,N),Je.lastIndex=0,I-=1;return T}var cr={};function Qt(T,H){var I=T.toLowerCase();cr[I]=cr[I+"s"]=cr[H]=T}function Xi(T){return"string"==typeof T?cr[T]||cr[T.toLowerCase()]:void 0}function No(T){var I,N,H={};for(N in T)P(T,N)&&(I=Xi(N))&&(H[I]=T[N]);return H}var Jn={};function Wt(T,H){Jn[T]=H}function ae(T){return T%4==0&&T%100!=0||T%400==0}function te(T){return T<0?Math.ceil(T)||0:Math.floor(T)}function de(T){var H=+T,I=0;return 0!==H&&isFinite(H)&&(I=te(H)),I}function ke(T,H){return function(I){return null!=I?(At(this,T,I),i.updateOffset(this,H),this):dt(this,T)}}function dt(T,H){return T.isValid()?T._d["get"+(T._isUTC?"UTC":"")+H]():NaN}function At(T,H,I){T.isValid()&&!isNaN(I)&&("FullYear"===H&&ae(T.year())&&1===T.month()&&29===T.date()?(I=de(I),T._d["set"+(T._isUTC?"UTC":"")+H](I,T.month(),Fn(I,T.month()))):T._d["set"+(T._isUTC?"UTC":"")+H](I))}var Ui,Di=/\d/,vt=/\d\d/,xn=/\d{3}/,mt=/\d{4}/,$t=/[+-]?\d{6}/,pt=/\d\d?/,Bn=/\d\d\d\d?/,Xr=/\d\d\d\d\d\d?/,Bi=/\d{1,3}/,Pr=/\d{1,4}/,dr=/[+-]?\d{1,6}/,Qn=/\d+/,ea=/[+-]?\d+/,hd=/Z|[+-]\d\d:?\d\d/gi,us=/Z|[+-]\d\d(?::?\d\d)?/gi,Ni=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(T,H,I){Ui[T]=ue(H)?H:function(N,W){return N&&I?I:H}}function Ei(T,H){return P(Ui,T)?Ui[T](H._strict,H._locale):new RegExp(function Ge(T){return it(T.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,N,W,se){return I||N||W||se}))}(T))}function it(T){return T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Ui={};var ii={};function w(T,H){var I,W,N=H;for("string"==typeof T&&(T=[T]),z(H)&&(N=function(se,we){we[H]=de(se)}),W=T.length,I=0;I68?1900:2e3)};var Da=ke("FullYear",!0);function Nn(T,H,I,N,W,se,we){var st;return T<100&&T>=0?(st=new Date(T+400,H,I,N,W,se,we),isFinite(st.getFullYear())&&st.setFullYear(T)):st=new Date(T,H,I,N,W,se,we),st}function ps(T){var H,I;return T<100&&T>=0?((I=Array.prototype.slice.call(arguments))[0]=T+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(T)):H=new Date(Date.UTC.apply(null,arguments)),H}function fd(T,H,I){var N=7+H-I;return-(7+ps(T,0,N).getUTCDay()-H)%7+N-1}function ql(T,H,I,N,W){var Lt,di,st=1+7*(H-1)+(7+I-N)%7+fd(T,N,W);return st<=0?di=na(Lt=T-1)+st:st>na(T)?(Lt=T+1,di=st-na(T)):(Lt=T,di=st),{year:Lt,dayOfYear:di}}function Qs(T,H,I){var se,we,N=fd(T.year(),H,I),W=Math.floor((T.dayOfYear()-N-1)/7)+1;return W<1?se=W+Lr(we=T.year()-1,H,I):W>Lr(T.year(),H,I)?(se=W-Lr(T.year(),H,I),we=T.year()+1):(we=T.year(),se=W),{week:se,year:we}}function Lr(T,H,I){var N=fd(T,H,I),W=fd(T+1,H,I);return(na(T)-N+W)/7}Ue("w",["ww",2],"wo","week"),Ue("W",["WW",2],"Wo","isoWeek"),Qt("week","w"),Qt("isoWeek","W"),Wt("week",5),Wt("isoWeek",5),Ne("w",pt),Ne("ww",pt,vt),Ne("W",pt),Ne("WW",pt,vt),zt(["w","ww","W","WW"],function(T,H,I,N){H[N.substr(0,1)]=de(T)});function md(T,H){return T.slice(H,7).concat(T.slice(0,H))}Ue("d",0,"do","day"),Ue("dd",0,0,function(T){return this.localeData().weekdaysMin(this,T)}),Ue("ddd",0,0,function(T){return this.localeData().weekdaysShort(this,T)}),Ue("dddd",0,0,function(T){return this.localeData().weekdays(this,T)}),Ue("e",0,0,"weekday"),Ue("E",0,0,"isoWeekday"),Qt("day","d"),Qt("weekday","e"),Qt("isoWeekday","E"),Wt("day",11),Wt("weekday",11),Wt("isoWeekday",11),Ne("d",pt),Ne("e",pt),Ne("E",pt),Ne("dd",function(T,H){return H.weekdaysMinRegex(T)}),Ne("ddd",function(T,H){return H.weekdaysShortRegex(T)}),Ne("dddd",function(T,H){return H.weekdaysRegex(T)}),zt(["dd","ddd","dddd"],function(T,H,I,N){var W=I._locale.weekdaysParse(T,N,I._strict);null!=W?H.d=W:ie(I).invalidWeekday=T}),zt(["d","e","E"],function(T,H,I,N){H[N]=de(T)});var Op="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bp=Ni,Yo=Ni,Tt=Ni;function Be(T,H,I){var N,W,se,we=T.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],N=0;N<7;++N)se=le([2e3,1]).day(N),this._minWeekdaysParse[N]=this.weekdaysMin(se,"").toLocaleLowerCase(),this._shortWeekdaysParse[N]=this.weekdaysShort(se,"").toLocaleLowerCase(),this._weekdaysParse[N]=this.weekdays(se,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"dddd"===H?-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:"ddd"===H?-1!==(W=ui.call(this._shortWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._minWeekdaysParse,we))?W:null:-1!==(W=ui.call(this._minWeekdaysParse,we))||-1!==(W=ui.call(this._weekdaysParse,we))||-1!==(W=ui.call(this._shortWeekdaysParse,we))?W:null}function hr(){function T(Gi,nr){return nr.length-Gi.length}var se,we,st,Lt,di,H=[],I=[],N=[],W=[];for(se=0;se<7;se++)we=le([2e3,1]).day(se),st=it(this.weekdaysMin(we,"")),Lt=it(this.weekdaysShort(we,"")),di=it(this.weekdays(we,"")),H.push(st),I.push(Lt),N.push(di),W.push(st),W.push(Lt),W.push(di);H.sort(T),I.sort(T),N.sort(T),W.sort(T),this._weekdaysRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function Ks(){return this.hours()%12||12}function yi(T,H){Ue(T,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Mt(T,H){return H._meridiemParse}Ue("H",["HH",2],0,"hour"),Ue("h",["hh",2],0,Ks),Ue("k",["kk",2],0,function pr(){return this.hours()||24}),Ue("hmm",0,0,function(){return""+Ks.apply(this)+It(this.minutes(),2)}),Ue("hmmss",0,0,function(){return""+Ks.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),Ue("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),Ue("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)}),yi("a",!0),yi("A",!1),Qt("hour","h"),Wt("hour",13),Ne("a",Mt),Ne("A",Mt),Ne("H",pt),Ne("h",pt),Ne("k",pt),Ne("HH",pt,vt),Ne("hh",pt,vt),Ne("kk",pt,vt),Ne("hmm",Bn),Ne("hmmss",Xr),Ne("Hmm",Bn),Ne("Hmmss",Xr),w(["H","HH"],3),w(["k","kk"],function(T,H,I){var N=de(T);H[3]=24===N?0:N}),w(["a","A"],function(T,H,I){I._isPm=I._locale.isPM(T),I._meridiem=T}),w(["h","hh"],function(T,H,I){H[3]=de(T),ie(I).bigHour=!0}),w("hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N)),ie(I).bigHour=!0}),w("hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W)),ie(I).bigHour=!0}),w("Hmm",function(T,H,I){var N=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N))}),w("Hmmss",function(T,H,I){var N=T.length-4,W=T.length-2;H[3]=de(T.substr(0,N)),H[4]=de(T.substr(N,2)),H[5]=de(T.substr(W))});var Uo=ke("Hours",!0);var fr,Qe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bn,monthsShort:Rr,week:{dow:0,doy:6},weekdays:Op,weekdaysMin:Vp,weekdaysShort:Vu,meridiemParse:/[ap]\.?m?\.?/i},Dt={},Ot={};function Et(T,H){var I,N=Math.min(T.length,H.length);for(I=0;I0;){if(W=Vt(se.slice(0,I).join("-")))return W;if(N&&N.length>=I&&Et(se,N)>=I-1)break;I--}H++}return fr}(T)}function ye(T){var H,I=T._a;return I&&-2===ie(T).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>Fn(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ie(T)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(T)._overflowWeeks&&-1===H&&(H=7),ie(T)._overflowWeekday&&-1===H&&(H=8),ie(T).overflow=H),T}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pi=/Z|[+-]\d\d(?::?\d\d)?/,Kt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Zt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ft=/^\/?Date\((-?\d+)/i,at=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ti(T){var H,I,se,we,st,Lt,N=T._i,W=ge.exec(N)||tt.exec(N),di=Kt.length,Gi=Zt.length;if(W){for(ie(T).iso=!0,H=0,I=di;H7)&&(Lt=!0)):(se=T._locale._week.dow,we=T._locale._week.doy,di=Qs(ci(),se,we),I=Xt(H.gg,T._a[0],di.year),N=Xt(H.w,di.week),null!=H.d?((W=H.d)<0||W>6)&&(Lt=!0):null!=H.e?(W=H.e+se,(H.e<0||H.e>6)&&(Lt=!0)):W=se),N<1||N>Lr(I,se,we)?ie(T)._overflowWeeks=!0:null!=Lt?ie(T)._overflowWeekday=!0:(st=ql(I,N,W,se,we),T._a[0]=st.year,T._dayOfYear=st.dayOfYear)}(T),null!=T._dayOfYear&&(we=Xt(T._a[0],W[0]),(T._dayOfYear>na(we)||0===T._dayOfYear)&&(ie(T)._overflowDayOfYear=!0),I=ps(we,0,T._dayOfYear),T._a[1]=I.getUTCMonth(),T._a[2]=I.getUTCDate()),H=0;H<3&&null==T._a[H];++H)T._a[H]=N[H]=W[H];for(;H<7;H++)T._a[H]=N[H]=T._a[H]??(2===H?1:0);24===T._a[3]&&0===T._a[4]&&0===T._a[5]&&0===T._a[6]&&(T._nextDay=!0,T._a[3]=0),T._d=(T._useUTC?ps:Nn).apply(null,N),se=T._useUTC?T._d.getUTCDay():T._d.getDay(),null!=T._tzm&&T._d.setUTCMinutes(T._d.getUTCMinutes()-T._tzm),T._nextDay&&(T._a[3]=24),T._w&&typeof T._w.d<"u"&&T._w.d!==se&&(ie(T).weekdayMismatch=!0)}}function gd(T){if(T._f!==i.ISO_8601)if(T._f!==i.RFC_2822){T._a=[],ie(T).empty=!0;var I,N,W,se,we,di,Gi,H=""+T._i,st=H.length,Lt=0;for(Gi=(W=Kr(T._f,T._locale).match(ni)||[]).length,I=0;I0&&ie(T).unusedInput.push(we),H=H.slice(H.indexOf(N)+N.length),Lt+=N.length),_n[se]?(N?ie(T).empty=!1:ie(T).unusedTokens.push(se),Rt(se,N,T)):T._strict&&!N&&ie(T).unusedTokens.push(se);ie(T).charsLeftOver=st-Lt,H.length>0&&ie(T).unusedInput.push(H),T._a[3]<=12&&!0===ie(T).bigHour&&T._a[3]>0&&(ie(T).bigHour=void 0),ie(T).parsedDateParts=T._a.slice(0),ie(T).meridiem=T._meridiem,T._a[3]=function Fp(T,H,I){var N;return null==I?H:null!=T.meridiemHour?T.meridiemHour(H,I):(null!=T.isPM&&((N=T.isPM(I))&&H<12&&(H+=12),!N&&12===H&&(H=0)),H)}(T._locale,T._a[3],T._meridiem),null!==(di=ie(T).era)&&(T._a[0]=T._locale.erasConvertYear(di,T._a[0])),ms(T),ye(T)}else Pa(T);else Ti(T)}function _d(T){var H=T._i,I=T._f;return T._locale=T._locale||$(T._l),null===H||void 0===I&&""===H?Ae({nullInput:!0}):("string"==typeof H&&(T._i=H=T._locale.preparse(H)),xe(H)?new ve(ye(H)):(J(H)?T._d=H:x(I)?function Go(T){var H,I,N,W,se,we,st=!1,Lt=T._f.length;if(0===Lt)return ie(T).invalidFormat=!0,void(T._d=new Date(NaN));for(W=0;Wthis?this:T:Ae()});function Xs(T,H){var I,N;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return ci();for(I=H[0],N=1;N=0?new Date(T+400,H,I)-ao:new Date(T,H,I).valueOf()}function Jo(T,H,I){return T<100&&T>=0?Date.UTC(T+400,H,I)-ao:Date.UTC(T,H,I)}function Dd(T,H){return H.erasAbbrRegex(T)}function Ko(){var W,se,T=[],H=[],I=[],N=[],we=this.eras();for(W=0,se=we.length;W(se=Lr(T,N,W))&&(H=se),Hd.call(this,T,H,I,N,W))}function Hd(T,H,I,N,W){var se=ql(T,H,I,N,W),we=ps(se.year,0,se.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ue("N",0,0,"eraAbbr"),Ue("NN",0,0,"eraAbbr"),Ue("NNN",0,0,"eraAbbr"),Ue("NNNN",0,0,"eraName"),Ue("NNNNN",0,0,"eraNarrow"),Ue("y",["y",1],"yo","eraYear"),Ue("y",["yy",2],0,"eraYear"),Ue("y",["yyy",3],0,"eraYear"),Ue("y",["yyyy",4],0,"eraYear"),Ne("N",Dd),Ne("NN",Dd),Ne("NNN",Dd),Ne("NNNN",function Qp(T,H){return H.erasNameRegex(T)}),Ne("NNNNN",function Qo(T,H){return H.erasNarrowRegex(T)}),w(["N","NN","NNN","NNNN","NNNNN"],function(T,H,I,N){var W=I._locale.erasParse(T,N,I._strict);W?ie(I).era=W:ie(I).invalidEra=T}),Ne("y",Qn),Ne("yy",Qn),Ne("yyy",Qn),Ne("yyyy",Qn),Ne("yo",function oc(T,H){return H._eraYearOrdinalRegex||Qn}),w(["y","yy","yyy","yyyy"],0),w(["yo"],function(T,H,I,N){var W;I._locale._eraYearOrdinalRegex&&(W=T.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(T,W):parseInt(T,10)}),Ue(0,["gg",2],0,function(){return this.weekYear()%100}),Ue(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gi("gggg","weekYear"),gi("ggggg","weekYear"),gi("GGGG","isoWeekYear"),gi("GGGGG","isoWeekYear"),Qt("weekYear","gg"),Qt("isoWeekYear","GG"),Wt("weekYear",1),Wt("isoWeekYear",1),Ne("G",ea),Ne("g",ea),Ne("GG",pt,vt),Ne("gg",pt,vt),Ne("GGGG",Pr,mt),Ne("gggg",Pr,mt),Ne("GGGGG",dr,$t),Ne("ggggg",dr,$t),zt(["gggg","ggggg","GGGG","GGGGG"],function(T,H,I,N){H[N.substr(0,2)]=de(T)}),zt(["gg","GG"],function(T,H,I,N){H[N]=i.parseTwoDigitYear(T)}),Ue("Q",0,"Qo","quarter"),Qt("quarter","Q"),Wt("quarter",7),Ne("Q",Di),w("Q",function(T,H){H[1]=3*(de(T)-1)}),Ue("D",["DD",2],"Do","date"),Qt("date","D"),Wt("date",9),Ne("D",pt),Ne("DD",pt,vt),Ne("Do",function(T,H){return T?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),w(["D","DD"],2),w("Do",function(T,H){H[2]=de(T.match(pt)[0])});var kd=ke("Date",!0);Ue("DDD",["DDDD",3],"DDDo","dayOfYear"),Qt("dayOfYear","DDD"),Wt("dayOfYear",4),Ne("DDD",Bi),Ne("DDDD",xn),w(["DDD","DDDD"],function(T,H,I){I._dayOfYear=de(T)}),Ue("m",["mm",2],0,"minute"),Qt("minute","m"),Wt("minute",14),Ne("m",pt),Ne("mm",pt,vt),w(["m","mm"],4);var ef=ke("Minutes",!1);Ue("s",["ss",2],0,"second"),Qt("second","s"),Wt("second",15),Ne("s",pt),Ne("ss",pt,vt),w(["s","ss"],5);var sn,lc,ih=ke("Seconds",!1);for(Ue("S",0,0,function(){return~~(this.millisecond()/100)}),Ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ue(0,["SSS",3],0,"millisecond"),Ue(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ue(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ue(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ue(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ue(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ue(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Qt("millisecond","ms"),Wt("millisecond",16),Ne("S",Bi,Di),Ne("SS",Bi,vt),Ne("SSS",Bi,xn),sn="SSSS";sn.length<=9;sn+="S")Ne(sn,Qn);function kn(T,H){H[6]=de(1e3*("0."+T))}for(sn="S";sn.length<=9;sn+="S")w(sn,kn);lc=ke("Milliseconds",!1),Ue("z",0,0,"zoneAbbr"),Ue("zz",0,0,"zoneName");var Ve=ve.prototype;function nh(T){return T}Ve.add=ro,Ve.calendar=function Zu(T,H){1===arguments.length&&(arguments[0]?Up(arguments[0])?(T=arguments[0],H=void 0):$u(arguments[0])&&(H=arguments[0],T=void 0):(T=void 0,H=void 0));var I=T||ci(),N=an(I,this).startOf("day"),W=i.calendarFormat(this,N)||"sameElse",se=H&&(ue(H[W])?H[W].call(this,I):H[W]);return this.format(se||this.localeData().calendar(W,this,ci(I)))},Ve.clone=function Kl(){return new ve(this)},Ve.diff=function Nr(T,H,I){var N,W,se;if(!this.isValid())return NaN;if(!(N=an(T,this)).isValid())return NaN;switch(W=6e4*(N.utcOffset()-this.utcOffset()),H=Xi(H)){case"year":se=ys(this,N)/12;break;case"month":se=ys(this,N);break;case"quarter":se=ys(this,N)/3;break;case"second":se=(this-N)/1e3;break;case"minute":se=(this-N)/6e4;break;case"hour":se=(this-N)/36e5;break;case"day":se=(this-N-W)/864e5;break;case"week":se=(this-N-W)/6048e5;break;default:se=this-N}return I?se:te(se)},Ve.endOf=function Hn(T){var H,I;if(void 0===(T=Xi(T))||"millisecond"===T||!this.isValid())return this;switch(I=this._isUTC?Jo:xd,T){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=tc-Yr(H+(this._isUTC?0:this.utcOffset()*ws),tc)-1;break;case"minute":H=this._d.valueOf(),H+=ws-Yr(H,ws)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Yr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Ve.format=function $o(T){T||(T=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=vi(this,T);return this.localeData().postformat(H)},Ve.from=function Ad(T,H){return this.isValid()&&(xe(T)&&T.isValid()||ci(T).isValid())?dn({to:this,from:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ve.fromNow=function vd(T){return this.from(ci(),T)},Ve.to=function Xl(T,H){return this.isValid()&&(xe(T)&&T.isValid()||ci(T).isValid())?dn({from:this,to:T}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ve.toNow=function ec(T){return this.to(ci(),T)},Ve.get=function et(T){return ue(this[T=Xi(T)])?this[T]():this},Ve.invalidAt=function Cs(){return ie(this).overflow},Ve.isAfter=function jr(T,H){var I=xe(T)?T:ci(T);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=Xi(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?vi(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ue(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",vi(I,"Z")):vi(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ve.inspect=function Ju(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,N,T="moment",H="";return this.isLocal()||(T=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+T+'("]',N=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+N+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ve.toJSON=function rc(){return this.isValid()?this.toISOString():null},Ve.toString=function la(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ve.unix=function Sd(){return Math.floor(this.valueOf()/1e3)},Ve.valueOf=function so(){return this._d.valueOf()-6e4*(this._offset||0)},Ve.creationData=function ac(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ve.eraName=function $p(){var T,H,I,N=this.localeData().eras();for(T=0,H=N.length;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ve.isLocal=function no(){return!!this.isValid()&&!this._isUTC},Ve.isUtcOffset=function bs(){return!!this.isValid()&&this._isUTC},Ve.isUtc=Ql,Ve.isUTC=Ql,Ve.zoneAbbr=function Pd(){return this._isUTC?"UTC":""},Ve.zoneName=function lo(){return this._isUTC?"Coordinated Universal Time":""},Ve.dates=Re("dates accessor is deprecated. Use date instead.",kd),Ve.months=Re("months accessor is deprecated. Use month instead",Kn),Ve.years=Re("years accessor is deprecated. Use year instead",Da),Ve.zone=Re("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Yu(T,H){return null!=T?("string"!=typeof T&&(T=-T),this.utcOffset(T,H),this):-this.utcOffset()}),Ve.isDSTShifted=Re("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Jl(){if(!j(this._isDSTShifted))return this._isDSTShifted;var H,T={};return Ee(T,this),(T=_d(T))._a?(H=T._isUTC?le(T._a):ci(T._a),this._isDSTShifted=this.isValid()&&function Nu(T,H,I){var we,N=Math.min(T.length,H.length),W=Math.abs(T.length-H.length),se=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var jt=_e.prototype;function ja(T,H,I,N){var W=$(),se=le().set(N,H);return W[I](se,T)}function rh(T,H,I){if(z(T)&&(H=T,T=void 0),T=T||"",null!=H)return ja(T,H,I,"month");var N,W=[];for(N=0;N<12;N++)W[N]=ja(T,N,I,"month");return W}function Rd(T,H,I,N){"boolean"==typeof T?(z(H)&&(I=H,H=void 0),H=H||""):(I=H=T,T=!1,z(H)&&(I=H,H=void 0),H=H||"");var we,W=$(),se=T?W._week.dow:0,st=[];if(null!=I)return ja(H,(I+se)%7,N,"day");for(we=0;we<7;we++)st[we]=ja(H,(we+se)%7,N,"day");return st}jt.calendar=function Ct(T,H,I){var N=this._calendar[T]||this._calendar.sameElse;return ue(N)?N.call(H,I):N},jt.longDateFormat=function Gs(T){var H=this._longDateFormat[T],I=this._longDateFormat[T.toUpperCase()];return H||!I?H:(this._longDateFormat[T]=I.match(ni).map(function(N){return"MMMM"===N||"MM"===N||"DD"===N||"dddd"===N?N.slice(1):N}).join(""),this._longDateFormat[T])},jt.invalidDate=function qs(){return this._invalidDate},jt.ordinal=function ds(T){return this._ordinal.replace("%d",T)},jt.preparse=nh,jt.postformat=nh,jt.relativeTime=function ct(T,H,I,N){var W=this._relativeTime[I];return ue(W)?W(T,H,I,N):W.replace(/%d/i,T)},jt.pastFuture=function zi(T,H){var I=this._relativeTime[T>0?"future":"past"];return ue(I)?I(H):I.replace(/%s/i,H)},jt.set=function fe(T){var H,I;for(I in T)P(T,I)&&(ue(H=T[I])?this[I]=H:this["_"+I]=H);this._config=T,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},jt.eras=function sc(T,H){var I,N,W,se=this._eras||$("en")._eras;for(I=0,N=se.length;I=0)return se[N]},jt.erasConvertYear=function Ku(T,H){var I=T.since<=T.until?1:-1;return void 0===H?i(T.since).year():i(T.since).year()+(H-T.offset)*I},jt.erasAbbrRegex=function Zp(T){return P(this,"_erasAbbrRegex")||Ko.call(this),T?this._erasAbbrRegex:this._erasRegex},jt.erasNameRegex=function Xu(T){return P(this,"_erasNameRegex")||Ko.call(this),T?this._erasNameRegex:this._erasRegex},jt.erasNarrowRegex=function Jp(T){return P(this,"_erasNarrowRegex")||Ko.call(this),T?this._erasNarrowRegex:this._erasRegex},jt.months=function Gl(T,H){return T?x(this._months)?this._months[T.month()]:this._months[(this._months.isFormat||$s).test(H)?"format":"standalone"][T.month()]:x(this._months)?this._months:this._months.standalone},jt.monthsShort=function Zs(T,H){return T?x(this._monthsShort)?this._monthsShort[T.month()]:this._monthsShort[$s.test(H)?"format":"standalone"][T.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},jt.monthsParse=function Sa(T,H,I){var N,W,se;if(this._monthsParseExact)return Js.call(this,T,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),N=0;N<12;N++){if(W=le([2e3,N]),I&&!this._longMonthsParse[N]&&(this._longMonthsParse[N]=new RegExp("^"+this.months(W,"").replace(".","")+"$","i"),this._shortMonthsParse[N]=new RegExp("^"+this.monthsShort(W,"").replace(".","")+"$","i")),!I&&!this._monthsParse[N]&&(se="^"+this.months(W,"")+"|^"+this.monthsShort(W,""),this._monthsParse[N]=new RegExp(se.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[N].test(T))return N;if(I&&"MMM"===H&&this._shortMonthsParse[N].test(T))return N;if(!I&&this._monthsParse[N].test(T))return N}},jt.monthsRegex=function mn(T){return this._monthsParseExact?(P(this,"_monthsRegex")||jn.call(this),T?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=pd),this._monthsStrictRegex&&T?this._monthsStrictRegex:this._monthsRegex)},jt.monthsShortRegex=function Lu(T){return this._monthsParseExact?(P(this,"_monthsRegex")||jn.call(this),T?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=ai),this._monthsShortStrictRegex&&T?this._monthsShortStrictRegex:this._monthsShortRegex)},jt.week=function Iu(T){return Qs(T,this._week.dow,this._week.doy).week},jt.firstDayOfYear=function Pp(){return this._week.doy},jt.firstDayOfWeek=function ur(){return this._week.dow},jt.weekdays=function ra(T,H){var I=x(this._weekdays)?this._weekdays:this._weekdays[T&&!0!==T&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===T?md(I,this._week.dow):T?I[T.day()]:I},jt.weekdaysMin=function cn(T){return!0===T?md(this._weekdaysMin,this._week.dow):T?this._weekdaysMin[T.day()]:this._weekdaysMin},jt.weekdaysShort=function Gt(T){return!0===T?md(this._weekdaysShort,this._week.dow):T?this._weekdaysShort[T.day()]:this._weekdaysShort},jt.weekdaysParse=function De(T,H,I){var N,W,se;if(this._weekdaysParseExact)return Be.call(this,T,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),N=0;N<7;N++){if(W=le([2e3,1]).day(N),I&&!this._fullWeekdaysParse[N]&&(this._fullWeekdaysParse[N]=new RegExp("^"+this.weekdays(W,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[N]=new RegExp("^"+this.weekdaysShort(W,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[N]=new RegExp("^"+this.weekdaysMin(W,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[N]||(se="^"+this.weekdays(W,"")+"|^"+this.weekdaysShort(W,"")+"|^"+this.weekdaysMin(W,""),this._weekdaysParse[N]=new RegExp(se.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[N].test(T))return N;if(I&&"ddd"===H&&this._shortWeekdaysParse[N].test(T))return N;if(I&&"dd"===H&&this._minWeekdaysParse[N].test(T))return N;if(!I&&this._weekdaysParse[N].test(T))return N}},jt.weekdaysRegex=function ka(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Bp),this._weekdaysStrictRegex&&T?this._weekdaysStrictRegex:this._weekdaysRegex)},jt.weekdaysShortRegex=function nn(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yo),this._weekdaysShortStrictRegex&&T?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},jt.weekdaysMinRegex=function Ir(T){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||hr.call(this),T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tt),this._weekdaysMinStrictRegex&&T?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},jt.isPM=function Xn(T){return"p"===(T+"").toLowerCase().charAt(0)},jt.meridiem=function Bu(T,H,I){return T>11?I?"pm":"PM":I?"am":"AM"},O("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(T){var H=T%10;return T+(1===de(T%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Re("moment.lang is deprecated. Use moment.locale instead.",O),i.langData=Re("moment.langData is deprecated. Use moment.localeData instead.",$);var ir=Math.abs;function ah(T,H,I,N){var W=dn(H,I);return T._milliseconds+=N*W._milliseconds,T._days+=N*W._days,T._months+=N*W._months,T._bubble()}function Ya(T){return T<0?Math.floor(T):Math.ceil(T)}function Ts(T){return 4800*T/146097}function Pi(T){return 146097*T/4800}function br(T){return function(){return this.as(T)}}var il=br("ms"),rf=br("s"),af=br("m"),sf=br("h"),Id=br("d"),co=br("w"),ch=br("M"),Ms=br("Q"),dh=br("y");function zr(T){return function(){return this.isValid()?this._data[T]:NaN}}var uh=zr("milliseconds"),lf=zr("seconds"),cf=zr("minutes"),ua=zr("hours"),uo=zr("days"),hh=zr("months"),Od=zr("years");var Ur=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ph(T,H,I,N,W){return W.relativeTime(H||1,!!I,T,N)}var Vd=Math.abs;function Gr(T){return(T>0)-(T<0)||+T}function Bd(){if(!this.isValid())return this.localeData().invalidDate();var N,W,se,we,Lt,di,Gi,nr,T=Vd(this._milliseconds)/1e3,H=Vd(this._days),I=Vd(this._months),st=this.asSeconds();return st?(N=te(T/60),W=te(N/60),T%=60,N%=60,se=te(I/12),I%=12,we=T?T.toFixed(3).replace(/\.?0+$/,""):"",Lt=st<0?"-":"",di=Gr(this._months)!==Gr(st)?"-":"",Gi=Gr(this._days)!==Gr(st)?"-":"",nr=Gr(this._milliseconds)!==Gr(st)?"-":"",Lt+"P"+(se?di+se+"Y":"")+(I?di+I+"M":"")+(H?Gi+H+"D":"")+(W||N||T?"T":"")+(W?nr+W+"H":"")+(N?nr+N+"M":"")+(T?nr+we+"S":"")):"P0D"}var Nt=sa.prototype;return Nt.isValid=function ju(){return this._isValid},Nt.abs=function nf(){var T=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),T.milliseconds=ir(T.milliseconds),T.seconds=ir(T.seconds),T.minutes=ir(T.minutes),T.hours=ir(T.hours),T.months=ir(T.months),T.years=ir(T.years),this},Nt.add=function h_(T,H){return ah(this,T,H,1)},Nt.subtract=function sh(T,H){return ah(this,T,H,-1)},Nt.as=function oh(T){if(!this.isValid())return NaN;var H,I,N=this._milliseconds;if("month"===(T=Xi(T))||"quarter"===T||"year"===T)switch(H=this._days+N/864e5,I=this._months+Ts(H),T){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(Pi(this._months)),T){case"week":return H/7+N/6048e5;case"day":return H+N/864e5;case"hour":return 24*H+N/36e5;case"minute":return 1440*H+N/6e4;case"second":return 86400*H+N/1e3;case"millisecond":return Math.floor(864e5*H)+N;default:throw new Error("Unknown unit "+T)}},Nt.asMilliseconds=il,Nt.asSeconds=rf,Nt.asMinutes=af,Nt.asHours=sf,Nt.asDays=Id,Nt.asWeeks=co,Nt.asMonths=ch,Nt.asQuarters=Ms,Nt.asYears=dh,Nt.valueOf=function lh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN},Nt._bubble=function da(){var W,se,we,st,Lt,T=this._milliseconds,H=this._days,I=this._months,N=this._data;return T>=0&&H>=0&&I>=0||T<=0&&H<=0&&I<=0||(T+=864e5*Ya(Pi(I)+H),H=0,I=0),N.milliseconds=T%1e3,W=te(T/1e3),N.seconds=W%60,se=te(W/60),N.minutes=se%60,we=te(se/60),N.hours=we%24,H+=te(we/24),I+=Lt=te(Ts(H)),H-=Ya(Pi(Lt)),st=te(I/12),I%=12,N.days=H,N.months=I,N.years=st,this},Nt.clone=function cc(){return dn(this)},Nt.get=function za(T){return T=Xi(T),this.isValid()?this[T+"s"]():NaN},Nt.milliseconds=uh,Nt.seconds=lf,Nt.minutes=cf,Nt.hours=ua,Nt.days=uo,Nt.weeks=function nl(){return te(this.days()/7)},Nt.months=hh,Nt.years=Od,Nt.humanize=function fh(T,H){if(!this.isValid())return this.localeData().invalidDate();var W,se,I=!1,N=ha;return"object"==typeof T&&(H=T,T=!1),"boolean"==typeof T&&(I=T),"object"==typeof H&&(N=Object.assign({},ha,H),null!=H.s&&null==H.ss&&(N.ss=H.s-1)),se=function df(T,H,I,N){var W=dn(T).abs(),se=Ur(W.as("s")),we=Ur(W.as("m")),st=Ur(W.as("h")),Lt=Ur(W.as("d")),di=Ur(W.as("M")),Gi=Ur(W.as("w")),nr=Ur(W.as("y")),pa=se<=I.ss&&["s",se]||se0,pa[4]=N,ph.apply(null,pa)}(this,!I,N,W=this.localeData()),I&&(se=W.pastFuture(+this,se)),W.postformat(se)},Nt.toISOString=Bd,Nt.toString=Bd,Nt.toJSON=Bd,Nt.locale=Qu,Nt.localeData=Md,Nt.toIsoString=Re("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bd),Nt.lang=Td,Ue("X",0,0,"unix"),Ue("x",0,0,"valueOf"),Ne("x",ea),Ne("X",/[+-]?\d+(\.\d{1,3})?/),w("X",function(T,H,I){I._d=new Date(1e3*parseFloat(T))}),w("x",function(T,H,I){I._d=new Date(de(T))}),i.version="2.29.4",function D(T){C=T}(ci),i.fn=Ve,i.min=function bd(){return Xs("isBefore",[].slice.call(arguments,0))},i.max=function aa(){return Xs("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function el(T){return ci(1e3*T)},i.months=function vs(T,H){return rh(T,H,"months")},i.isDate=J,i.locale=O,i.invalid=Ae,i.duration=dn,i.isMoment=xe,i.weekdays=function u_(T,H,I){return Rd(T,H,I,"weekdays")},i.parseZone=function tf(){return ci.apply(null,arguments).parseZone()},i.localeData=$,i.isDuration=to,i.monthsShort=function Na(T,H){return rh(T,H,"monthsShort")},i.weekdaysMin=function Ld(T,H,I){return Rd(T,H,I,"weekdaysMin")},i.defineLocale=q,i.updateLocale=function V(T,H){if(null!=H){var I,N,W=Qe;null!=Dt[T]&&null!=Dt[T].parentLocale?Dt[T].set(Ce(Dt[T]._config,H)):(null!=(N=Vt(T))&&(W=N._config),H=Ce(W,H),null==N&&(H.abbr=T),(I=new _e(H)).parentLocale=Dt[T],Dt[T]=I),O(T)}else null!=Dt[T]&&(null!=Dt[T].parentLocale?(Dt[T]=Dt[T].parentLocale,T===O()&&O(T)):null!=Dt[T]&&delete Dt[T]);return Dt[T]},i.locales=function ce(){return ze(Dt)},i.weekdaysShort=function tl(T,H,I){return Rd(T,H,I,"weekdaysShort")},i.normalizeUnits=Xi,i.relativeTimeRounding=function uf(T){return void 0===T?Ur:"function"==typeof T&&(Ur=T,!0)},i.relativeTimeThreshold=function dc(T,H){return void 0!==ha[T]&&(void 0===H?ha[T]:(ha[T]=H,"s"===T&&(ha.ss=H-1),!0))},i.calendarFormat=function qo(T,H){var I=T.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Ve,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9751:(Y,U,M)=>{"use strict";M.d(U,{y:()=>j});var C=M(930),i=M(727),D=M(8822),x=M(9635),S=M(2416),P=M(576),L=M(2806);let j=(()=>{class ne{constructor(re){re&&(this._subscribe=re)}lift(re){const ie=new ne;return ie.source=this,ie.operator=re,ie}subscribe(re,ie,me){const be=function Q(ne){return ne&&ne instanceof C.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(re)?re:new C.Hp(re,ie,me);return(0,L.x)(()=>{const{operator:Ae,source:$e}=this;be.add(Ae?Ae.call(be,$e):$e?this._subscribe(be):this._trySubscribe(be))}),be}_trySubscribe(re){try{return this._subscribe(re)}catch(ie){re.error(ie)}}forEach(re,ie){return new(ie=z(ie))((me,be)=>{const Ae=new C.Hp({next:$e=>{try{re($e)}catch(Ze){be(Ze),Ae.unsubscribe()}},error:be,complete:me});this.subscribe(Ae)})}_subscribe(re){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(re)}[D.L](){return this}pipe(...re){return(0,x.U)(re)(this)}toPromise(re){return new(re=z(re))((ie,me)=>{let be;this.subscribe(Ae=>be=Ae,Ae=>me(Ae),()=>ie(be))})}}return ne.create=le=>new ne(le),ne})();function z(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(Y,U,M)=>{"use strict";M.d(U,{x:()=>L});var C=M(9751),i=M(727);const x=(0,M(3888).d)(z=>function(){z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=M(8737),P=M(2806);let L=(()=>{class z extends C.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Q){const ne=new j(this,this);return ne.operator=Q,ne}_throwIfClosed(){if(this.closed)throw new x}next(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(Q)}})}error(Q){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Q;const{observers:ne}=this;for(;ne.length;)ne.shift().error(Q)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Q}=this;for(;Q.length;)Q.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Q;return(null===(Q=this.observers)||void 0===Q?void 0:Q.length)>0}_trySubscribe(Q){return this._throwIfClosed(),super._trySubscribe(Q)}_subscribe(Q){return this._throwIfClosed(),this._checkFinalizedStatuses(Q),this._innerSubscribe(Q)}_innerSubscribe(Q){const{hasError:ne,isStopped:le,observers:re}=this;return ne||le?i.Lc:(this.currentObservers=null,re.push(Q),new i.w0(()=>{this.currentObservers=null,(0,S.P)(re,Q)}))}_checkFinalizedStatuses(Q){const{hasError:ne,thrownError:le,isStopped:re}=this;ne?Q.error(le):re&&Q.complete()}asObservable(){const Q=new C.y;return Q.source=this,Q}}return z.create=(J,Q)=>new j(J,Q),z})();class j extends L{constructor(J,Q){super(),this.destination=J,this.source=Q}next(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.next)||void 0===ne||ne.call(Q,J)}error(J){var Q,ne;null===(ne=null===(Q=this.destination)||void 0===Q?void 0:Q.error)||void 0===ne||ne.call(Q,J)}complete(){var J,Q;null===(Q=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===Q||Q.call(J)}_subscribe(J){var Q,ne;return null!==(ne=null===(Q=this.source)||void 0===Q?void 0:Q.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(Y,U,M)=>{"use strict";M.d(U,{Hp:()=>me,Lv:()=>ne});var C=M(576),i=M(727),D=M(2416),x=M(7849),S=M(5032);const P=z("C",void 0,void 0);function z(Ee,ve,xe){return{kind:Ee,value:ve,error:xe}}var J=M(3410),Q=M(2806);class ne extends i.w0{constructor(ve){super(),this.isStopped=!1,ve?(this.destination=ve,(0,i.Nn)(ve)&&ve.add(this)):this.destination=Ze}static create(ve,xe,lt){return new me(ve,xe,lt)}next(ve){this.isStopped?$e(function j(Ee){return z("N",Ee,void 0)}(ve),this):this._next(ve)}error(ve){this.isStopped?$e(function L(Ee){return z("E",void 0,Ee)}(ve),this):(this.isStopped=!0,this._error(ve))}complete(){this.isStopped?$e(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ve){this.destination.next(ve)}_error(ve){try{this.destination.error(ve)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function re(Ee,ve){return le.call(Ee,ve)}class ie{constructor(ve){this.partialObserver=ve}next(ve){const{partialObserver:xe}=this;if(xe.next)try{xe.next(ve)}catch(lt){be(lt)}}error(ve){const{partialObserver:xe}=this;if(xe.error)try{xe.error(ve)}catch(lt){be(lt)}else be(ve)}complete(){const{partialObserver:ve}=this;if(ve.complete)try{ve.complete()}catch(xe){be(xe)}}}class me extends ne{constructor(ve,xe,lt){let Re;if(super(),(0,C.m)(ve)||!ve)Re={next:ve??void 0,error:xe??void 0,complete:lt??void 0};else{let Oe;this&&D.v.useDeprecatedNextContext?(Oe=Object.create(ve),Oe.unsubscribe=()=>this.unsubscribe(),Re={next:ve.next&&re(ve.next,Oe),error:ve.error&&re(ve.error,Oe),complete:ve.complete&&re(ve.complete,Oe)}):Re=ve}this.destination=new ie(Re)}}function be(Ee){D.v.useDeprecatedSynchronousErrorHandling?(0,Q.O)(Ee):(0,x.h)(Ee)}function $e(Ee,ve){const{onStoppedNotification:xe}=D.v;xe&&J.z.setTimeout(()=>xe(Ee,ve))}const Ze={closed:!0,next:S.Z,error:function Ae(Ee){throw Ee},complete:S.Z}},727:(Y,U,M)=>{"use strict";M.d(U,{Lc:()=>P,w0:()=>S,Nn:()=>L});var C=M(576);const D=(0,M(3888).d)(z=>function(Q){z(this),this.message=Q?`${Q.length} errors occurred during unsubscription:\n${Q.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Q});var x=M(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:Q}=this;if(Q)if(this._parentage=null,Array.isArray(Q))for(const re of Q)re.remove(this);else Q.remove(this);const{initialTeardown:ne}=this;if((0,C.m)(ne))try{ne()}catch(re){J=re instanceof D?re.errors:[re]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const re of le)try{j(re)}catch(ie){J=J??[],ie instanceof D?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new D(J)}}add(J){var Q;if(J&&J!==this)if(this.closed)j(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(Q=this._finalizers)&&void 0!==Q?Q:[]).push(J)}}_hasParent(J){const{_parentage:Q}=this;return Q===J||Array.isArray(Q)&&Q.includes(J)}_addParent(J){const{_parentage:Q}=this;this._parentage=Array.isArray(Q)?(Q.push(J),Q):Q?[Q,J]:J}_removeParent(J){const{_parentage:Q}=this;Q===J?this._parentage=null:Array.isArray(Q)&&(0,x.P)(Q,J)}remove(J){const{_finalizers:Q}=this;Q&&(0,x.P)(Q,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const z=new S;return z.closed=!0,z})();const P=S.EMPTY;function L(z){return z instanceof S||z&&"closed"in z&&(0,C.m)(z.remove)&&(0,C.m)(z.add)&&(0,C.m)(z.unsubscribe)}function j(z){(0,C.m)(z)?z():z.unsubscribe()}},2416:(Y,U,M)=>{"use strict";M.d(U,{v:()=>C});const C={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Y,U,M)=>{"use strict";M.d(U,{a:()=>J});var C=M(9751),i=M(4742),D=M(2076),x=M(4671),S=M(3268),P=M(3269),L=M(1810),j=M(5403),z=M(9672);function J(...le){const re=(0,P.yG)(le),ie=(0,P.jO)(le),{args:me,keys:be}=(0,i.D)(le);if(0===me.length)return(0,D.D)([],re);const Ae=new C.y(function Q(le,re,ie=x.y){return me=>{ne(re,()=>{const{length:be}=le,Ae=new Array(be);let $e=be,Ze=be;for(let Ee=0;Ee{const ve=(0,D.D)(le[Ee],re);let xe=!1;ve.subscribe((0,j.x)(me,lt=>{Ae[Ee]=lt,xe||(xe=!0,Ze--),Ze||me.next(ie(Ae.slice()))},()=>{--$e||me.complete()}))},me)},me)}}(me,re,be?$e=>(0,L.n)(be,$e):x.y));return ie?Ae.pipe((0,S.Z)(ie)):Ae}function ne(le,re,ie){le?(0,z.f)(ie,le,re):re()}},7272:(Y,U,M)=>{"use strict";M.d(U,{z:()=>S});var C=M(8189),D=M(3269),x=M(2076);function S(...P){return function i(){return(0,C.J)(1)}()((0,x.D)(P,(0,D.yG)(P)))}},515:(Y,U,M)=>{"use strict";M.d(U,{E:()=>i});const i=new(M(9751).y)(S=>S.complete())},2076:(Y,U,M)=>{"use strict";M.d(U,{D:()=>lt});var C=M(8421),i=M(9672),D=M(4482),x=M(5403);function S(Re,Oe=0){return(0,D.e)((Le,ue)=>{Le.subscribe((0,x.x)(ue,fe=>(0,i.f)(ue,Re,()=>ue.next(fe),Oe),()=>(0,i.f)(ue,Re,()=>ue.complete(),Oe),fe=>(0,i.f)(ue,Re,()=>ue.error(fe),Oe)))})}function P(Re,Oe=0){return(0,D.e)((Le,ue)=>{ue.add(Re.schedule(()=>Le.subscribe(ue),Oe))})}var z=M(9751),Q=M(2202),ne=M(576);function re(Re,Oe){if(!Re)throw new Error("Iterable cannot be null");return new z.y(Le=>{(0,i.f)(Le,Oe,()=>{const ue=Re[Symbol.asyncIterator]();(0,i.f)(Le,Oe,()=>{ue.next().then(fe=>{fe.done?Le.complete():Le.next(fe.value)})},0,!0)})})}var ie=M(3670),me=M(8239),be=M(1144),Ae=M(6495),$e=M(2206),Ze=M(4532),Ee=M(3260);function lt(Re,Oe){return Oe?function xe(Re,Oe){if(null!=Re){if((0,ie.c)(Re))return function L(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,be.z)(Re))return function J(Re,Oe){return new z.y(Le=>{let ue=0;return Oe.schedule(function(){ue===Re.length?Le.complete():(Le.next(Re[ue++]),Le.closed||this.schedule())})})}(Re,Oe);if((0,me.t)(Re))return function j(Re,Oe){return(0,C.Xf)(Re).pipe(P(Oe),S(Oe))}(Re,Oe);if((0,$e.D)(Re))return re(Re,Oe);if((0,Ae.T)(Re))return function le(Re,Oe){return new z.y(Le=>{let ue;return(0,i.f)(Le,Oe,()=>{ue=Re[Q.h](),(0,i.f)(Le,Oe,()=>{let fe,Ce;try{({value:fe,done:Ce}=ue.next())}catch(_e){return void Le.error(_e)}Ce?Le.complete():Le.next(fe)},0,!0)}),()=>(0,ne.m)(ue?.return)&&ue.return()})}(Re,Oe);if((0,Ee.L)(Re))return function ve(Re,Oe){return re((0,Ee.Q)(Re),Oe)}(Re,Oe)}throw(0,Ze.z)(Re)}(Re,Oe):(0,C.Xf)(Re)}},8421:(Y,U,M)=>{"use strict";M.d(U,{Xf:()=>le});var C=M(655),i=M(1144),D=M(8239),x=M(9751),S=M(3670),P=M(2206),L=M(4532),j=M(6495),z=M(3260),J=M(576),Q=M(7849),ne=M(8822);function le(Ee){if(Ee instanceof x.y)return Ee;if(null!=Ee){if((0,S.c)(Ee))return function re(Ee){return new x.y(ve=>{const xe=Ee[ne.L]();if((0,J.m)(xe.subscribe))return xe.subscribe(ve);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ee);if((0,i.z)(Ee))return function ie(Ee){return new x.y(ve=>{for(let xe=0;xe{Ee.then(xe=>{ve.closed||(ve.next(xe),ve.complete())},xe=>ve.error(xe)).then(null,Q.h)})}(Ee);if((0,P.D)(Ee))return Ae(Ee);if((0,j.T)(Ee))return function be(Ee){return new x.y(ve=>{for(const xe of Ee)if(ve.next(xe),ve.closed)return;ve.complete()})}(Ee);if((0,z.L)(Ee))return function $e(Ee){return Ae((0,z.Q)(Ee))}(Ee)}throw(0,L.z)(Ee)}function Ae(Ee){return new x.y(ve=>{(function Ze(Ee,ve){var xe,lt,Re,Oe;return(0,C.mG)(this,void 0,void 0,function*(){try{for(xe=(0,C.KL)(Ee);!(lt=yield xe.next()).done;)if(ve.next(lt.value),ve.closed)return}catch(Le){Re={error:Le}}finally{try{lt&&!lt.done&&(Oe=xe.return)&&(yield Oe.call(xe))}finally{if(Re)throw Re.error}}ve.complete()})})(Ee,ve).catch(xe=>ve.error(xe))})}},6451:(Y,U,M)=>{"use strict";M.d(U,{T:()=>P});var C=M(8189),i=M(8421),D=M(515),x=M(3269),S=M(2076);function P(...L){const j=(0,x.yG)(L),z=(0,x._6)(L,1/0),J=L;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,C.J)(z)((0,S.D)(J,j)):D.E}},9646:(Y,U,M)=>{"use strict";M.d(U,{of:()=>D});var C=M(3269),i=M(2076);function D(...x){const S=(0,C.yG)(x);return(0,i.D)(x,S)}},102:(Y,U,M)=>{"use strict";M.d(U,{S:()=>P});var C=M(9751),i=M(8421);const{isArray:D}=Array;var S=M(5403);function P(...j){return 1===(j=function x(j){return 1===j.length&&D(j[0])?j[0]:j}(j)).length?(0,i.Xf)(j[0]):new C.y(function L(j){return z=>{let J=[];for(let Q=0;J&&!z.closed&&Q{if(J){for(let le=0;le{"use strict";M.d(U,{_:()=>D});var C=M(9751),i=M(576);function D(x,S){const P=(0,i.m)(x)?x:()=>x,L=j=>j.error(P());return new C.y(S?j=>S.schedule(L,0,j):L)}},2805:(Y,U,M)=>{"use strict";M.d(U,{H:()=>S});var C=M(9751),i=M(4986),D=M(3532),x=M(1165);function S(P=0,L,j=i.P){let z=-1;return null!=L&&((0,D.K)(L)?j=L:z=L),new C.y(J=>{let Q=(0,x.q)(P)?+P-j.now():P;Q<0&&(Q=0);let ne=0;return j.schedule(function(){J.closed||(J.next(ne++),0<=z?this.schedule(void 0,z):J.complete())},Q)})}},5403:(Y,U,M)=>{"use strict";M.d(U,{x:()=>i});var C=M(930);function i(x,S,P,L,j){return new D(x,S,P,L,j)}class D extends C.Lv{constructor(S,P,L,j,z,J){super(S),this.onFinalize=z,this.shouldUnsubscribe=J,this._next=P?function(Q){try{P(Q)}catch(ne){S.error(ne)}}:super._next,this._error=j?function(Q){try{j(Q)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=L?function(){try{L()}catch(Q){S.error(Q)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(Y,U,M)=>{"use strict";M.d(U,{K:()=>x});var C=M(8421),i=M(5403),D=M(4482);function x(S){return(0,D.e)((P,L)=>{let J,j=null,z=!1;j=P.subscribe((0,i.x)(L,void 0,void 0,Q=>{J=(0,C.Xf)(S(Q,x(S)(P))),j?(j.unsubscribe(),j=null,J.subscribe(L)):z=!0})),z&&(j.unsubscribe(),j=null,J.subscribe(L))})}},4351:(Y,U,M)=>{"use strict";M.d(U,{b:()=>D});var C=M(5577),i=M(576);function D(x,S){return(0,i.m)(S)?(0,C.z)(x,S,1):(0,C.z)(x,1)}},8372:(Y,U,M)=>{"use strict";M.d(U,{b:()=>x});var C=M(4986),i=M(4482),D=M(5403);function x(S,P=C.z){return(0,i.e)((L,j)=>{let z=null,J=null,Q=null;const ne=()=>{if(z){z.unsubscribe(),z=null;const re=J;J=null,j.next(re)}};function le(){const re=Q+S,ie=P.now();if(ie{J=re,Q=P.now(),z||(z=P.schedule(le,S),j.add(z))},()=>{ne(),j.complete()},void 0,()=>{J=z=null}))})}},6590:(Y,U,M)=>{"use strict";M.d(U,{d:()=>D});var C=M(4482),i=M(5403);function D(x){return(0,C.e)((S,P)=>{let L=!1;S.subscribe((0,i.x)(P,j=>{L=!0,P.next(j)},()=>{L||P.next(x),P.complete()}))})}},1005:(Y,U,M)=>{"use strict";M.d(U,{g:()=>ne});var C=M(4986),i=M(7272),D=M(5698),x=M(4482),S=M(5403),P=M(5032),j=M(9718),z=M(5577);function J(le,re){return re?ie=>(0,i.z)(re.pipe((0,D.q)(1),function L(){return(0,x.e)((le,re)=>{le.subscribe((0,S.x)(re,P.Z))})}()),ie.pipe(J(le))):(0,z.z)((ie,me)=>le(ie,me).pipe((0,D.q)(1),(0,j.h)(ie)))}var Q=M(2805);function ne(le,re=C.z){const ie=(0,Q.H)(le,re);return J(()=>ie)}},9300:(Y,U,M)=>{"use strict";M.d(U,{h:()=>D});var C=M(4482),i=M(5403);function D(x,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,z=>x.call(S,z,j++)&&L.next(z)))})}},590:(Y,U,M)=>{"use strict";M.d(U,{P:()=>L});var C=M(6805),i=M(9300),D=M(5698),x=M(6590),S=M(8068),P=M(4671);function L(j,z){const J=arguments.length>=2;return Q=>Q.pipe(j?(0,i.h)((ne,le)=>j(ne,le,Q)):P.y,(0,D.q)(1),J?(0,x.d)(z):(0,S.T)(()=>new C.K))}},4004:(Y,U,M)=>{"use strict";M.d(U,{U:()=>D});var C=M(4482),i=M(5403);function D(x,S){return(0,C.e)((P,L)=>{let j=0;P.subscribe((0,i.x)(L,z=>{L.next(x.call(S,z,j++))}))})}},9718:(Y,U,M)=>{"use strict";M.d(U,{h:()=>i});var C=M(4004);function i(D){return(0,C.U)(()=>D)}},8189:(Y,U,M)=>{"use strict";M.d(U,{J:()=>D});var C=M(5577),i=M(4671);function D(x=1/0){return(0,C.z)(i.y,x)}},5577:(Y,U,M)=>{"use strict";M.d(U,{z:()=>j});var C=M(4004),i=M(8421),D=M(4482),x=M(9672),S=M(5403),L=M(576);function j(z,J,Q=1/0){return(0,L.m)(J)?j((ne,le)=>(0,C.U)((re,ie)=>J(ne,re,le,ie))((0,i.Xf)(z(ne,le))),Q):("number"==typeof J&&(Q=J),(0,D.e)((ne,le)=>function P(z,J,Q,ne,le,re,ie,me){const be=[];let Ae=0,$e=0,Ze=!1;const Ee=()=>{Ze&&!be.length&&!Ae&&J.complete()},ve=lt=>Ae{re&&J.next(lt),Ae++;let Re=!1;(0,i.Xf)(Q(lt,$e++)).subscribe((0,S.x)(J,Oe=>{le?.(Oe),re?ve(Oe):J.next(Oe)},()=>{Re=!0},void 0,()=>{if(Re)try{for(Ae--;be.length&&Aexe(Oe)):xe(Oe)}Ee()}catch(Oe){J.error(Oe)}}))};return z.subscribe((0,S.x)(J,ve,()=>{Ze=!0,Ee()})),()=>{me?.()}}(ne,le,z,Q)))}},3099:(Y,U,M)=>{"use strict";M.d(U,{B:()=>S});var C=M(8421),i=M(7579),D=M(930),x=M(4482);function S(L={}){const{connector:j=(()=>new i.x),resetOnError:z=!0,resetOnComplete:J=!0,resetOnRefCountZero:Q=!0}=L;return ne=>{let le,re,ie,me=0,be=!1,Ae=!1;const $e=()=>{re?.unsubscribe(),re=void 0},Ze=()=>{$e(),le=ie=void 0,be=Ae=!1},Ee=()=>{const ve=le;Ze(),ve?.unsubscribe()};return(0,x.e)((ve,xe)=>{me++,!Ae&&!be&&$e();const lt=ie=ie??j();xe.add(()=>{me--,0===me&&!Ae&&!be&&(re=P(Ee,Q))}),lt.subscribe(xe),!le&&me>0&&(le=new D.Hp({next:Re=>lt.next(Re),error:Re=>{Ae=!0,$e(),re=P(Ze,z,Re),lt.error(Re)},complete:()=>{be=!0,$e(),re=P(Ze,J),lt.complete()}}),(0,C.Xf)(ve).subscribe(le))})(ne)}}function P(L,j,...z){if(!0===j)return void L();if(!1===j)return;const J=new D.Hp({next:()=>{J.unsubscribe(),L()}});return j(...z).subscribe(J)}},3900:(Y,U,M)=>{"use strict";M.d(U,{w:()=>x});var C=M(8421),i=M(4482),D=M(5403);function x(S,P){return(0,i.e)((L,j)=>{let z=null,J=0,Q=!1;const ne=()=>Q&&!z&&j.complete();L.subscribe((0,D.x)(j,le=>{z?.unsubscribe();let re=0;const ie=J++;(0,C.Xf)(S(le,ie)).subscribe(z=(0,D.x)(j,me=>j.next(P?P(le,me,ie,re++):me),()=>{z=null,ne()}))},()=>{Q=!0,ne()}))})}},5698:(Y,U,M)=>{"use strict";M.d(U,{q:()=>x});var C=M(515),i=M(4482),D=M(5403);function x(S){return S<=0?()=>C.E:(0,i.e)((P,L)=>{let j=0;P.subscribe((0,D.x)(L,z=>{++j<=S&&(L.next(z),S<=j&&L.complete())}))})}},8505:(Y,U,M)=>{"use strict";M.d(U,{b:()=>S});var C=M(576),i=M(4482),D=M(5403),x=M(4671);function S(P,L,j){const z=(0,C.m)(P)||L||j?{next:P,error:L,complete:j}:P;return z?(0,i.e)((J,Q)=>{var ne;null===(ne=z.subscribe)||void 0===ne||ne.call(z);let le=!0;J.subscribe((0,D.x)(Q,re=>{var ie;null===(ie=z.next)||void 0===ie||ie.call(z,re),Q.next(re)},()=>{var re;le=!1,null===(re=z.complete)||void 0===re||re.call(z),Q.complete()},re=>{var ie;le=!1,null===(ie=z.error)||void 0===ie||ie.call(z,re),Q.error(re)},()=>{var re,ie;le&&(null===(re=z.unsubscribe)||void 0===re||re.call(z)),null===(ie=z.finalize)||void 0===ie||ie.call(z)}))}):x.y}},8068:(Y,U,M)=>{"use strict";M.d(U,{T:()=>x});var C=M(6805),i=M(4482),D=M(5403);function x(P=S){return(0,i.e)((L,j)=>{let z=!1;L.subscribe((0,D.x)(j,J=>{z=!0,j.next(J)},()=>z?j.complete():j.error(P())))})}function S(){return new C.K}},7414:(Y,U,M)=>{"use strict";M.d(U,{V:()=>z});var C=M(4986),i=M(1165),D=M(4482),x=M(8421),S=M(3888),P=M(5403),L=M(9672);const j=(0,S.d)(Q=>function(le=null){Q(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function z(Q,ne){const{first:le,each:re,with:ie=J,scheduler:me=ne??C.z,meta:be=null}=(0,i.q)(Q)?{first:Q}:"number"==typeof Q?{each:Q}:Q;if(null==le&&null==re)throw new TypeError("No timeout provided.");return(0,D.e)((Ae,$e)=>{let Ze,Ee,ve=null,xe=0;const lt=Re=>{Ee=(0,L.f)($e,me,()=>{try{Ze.unsubscribe(),(0,x.Xf)(ie({meta:be,lastValue:ve,seen:xe})).subscribe($e)}catch(Oe){$e.error(Oe)}},Re)};Ze=Ae.subscribe((0,P.x)($e,Re=>{Ee?.unsubscribe(),xe++,$e.next(ve=Re),re>0&<(re)},void 0,void 0,()=>{Ee?.closed||Ee?.unsubscribe(),ve=null})),!xe&<(null!=le?"number"==typeof le?le:+le-me.now():re)})}function J(Q){throw new j(Q)}},4408:(Y,U,M)=>{"use strict";M.d(U,{o:()=>S});var C=M(727);class i extends C.w0{constructor(L,j){super()}schedule(L,j=0){return this}}const D={setInterval(P,L,...j){const{delegate:z}=D;return z?.setInterval?z.setInterval(P,L,...j):setInterval(P,L,...j)},clearInterval(P){const{delegate:L}=D;return(L?.clearInterval||clearInterval)(P)},delegate:void 0};var x=M(8737);class S extends i{constructor(L,j){super(L,j),this.scheduler=L,this.work=j,this.pending=!1}schedule(L,j=0){if(this.closed)return this;this.state=L;const z=this.id,J=this.scheduler;return null!=z&&(this.id=this.recycleAsyncId(J,z,j)),this.pending=!0,this.delay=j,this.id=this.id||this.requestAsyncId(J,this.id,j),this}requestAsyncId(L,j,z=0){return D.setInterval(L.flush.bind(L,this),z)}recycleAsyncId(L,j,z=0){if(null!=z&&this.delay===z&&!1===this.pending)return j;D.clearInterval(j)}execute(L,j){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const z=this._execute(L,j);if(z)return z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(L,j){let J,z=!1;try{this.work(L)}catch(Q){z=!0,J=Q||new Error("Scheduled action threw falsy error")}if(z)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:L,scheduler:j}=this,{actions:z}=j;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(z,this),null!=L&&(this.id=this.recycleAsyncId(j,L,null)),this.delay=null,super.unsubscribe()}}}},7565:(Y,U,M)=>{"use strict";M.d(U,{v:()=>D});var C=M(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,L){return new this.schedulerActionCtor(this,S).schedule(L,P)}}i.now=C.l.now;class D extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let L;this._active=!0;do{if(L=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,L){for(;S=P.shift();)S.unsubscribe();throw L}}}},4986:(Y,U,M)=>{"use strict";M.d(U,{P:()=>x,z:()=>D});var C=M(4408);const D=new(M(7565).v)(C.o),x=D},6063:(Y,U,M)=>{"use strict";M.d(U,{l:()=>C});const C={now:()=>(C.delegate||Date).now(),delegate:void 0}},3410:(Y,U,M)=>{"use strict";M.d(U,{z:()=>C});const C={setTimeout(i,D,...x){const{delegate:S}=C;return S?.setTimeout?S.setTimeout(i,D,...x):setTimeout(i,D,...x)},clearTimeout(i){const{delegate:D}=C;return(D?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(Y,U,M)=>{"use strict";M.d(U,{h:()=>i});const i=function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Y,U,M)=>{"use strict";M.d(U,{L:()=>C});const C="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Y,U,M)=>{"use strict";M.d(U,{K:()=>i});const i=(0,M(3888).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Y,U,M)=>{"use strict";M.d(U,{_6:()=>P,jO:()=>x,yG:()=>S});var C=M(576),i=M(3532);function D(L){return L[L.length-1]}function x(L){return(0,C.m)(D(L))?L.pop():void 0}function S(L){return(0,i.K)(D(L))?L.pop():void 0}function P(L,j){return"number"==typeof D(L)?L.pop():j}},4742:(Y,U,M)=>{"use strict";M.d(U,{D:()=>S});const{isArray:C}=Array,{getPrototypeOf:i,prototype:D,keys:x}=Object;function S(L){if(1===L.length){const j=L[0];if(C(j))return{args:j,keys:null};if(function P(L){return L&&"object"==typeof L&&i(L)===D}(j)){const z=x(j);return{args:z.map(J=>j[J]),keys:z}}}return{args:L,keys:null}}},8737:(Y,U,M)=>{"use strict";function C(i,D){if(i){const x=i.indexOf(D);0<=x&&i.splice(x,1)}}M.d(U,{P:()=>C})},3888:(Y,U,M)=>{"use strict";function C(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}M.d(U,{d:()=>C})},1810:(Y,U,M)=>{"use strict";function C(i,D){return i.reduce((x,S,P)=>(x[S]=D[P],x),{})}M.d(U,{n:()=>C})},2806:(Y,U,M)=>{"use strict";M.d(U,{O:()=>x,x:()=>D});var C=M(2416);let i=null;function D(S){if(C.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:L,error:j}=i;if(i=null,L)throw j}}else S()}function x(S){C.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(Y,U,M)=>{"use strict";function C(i,D,x,S=0,P=!1){const L=D.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(L),!P)return L}M.d(U,{f:()=>C})},4671:(Y,U,M)=>{"use strict";function C(i){return i}M.d(U,{y:()=>C})},1144:(Y,U,M)=>{"use strict";M.d(U,{z:()=>C});const C=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(Y,U,M)=>{"use strict";M.d(U,{D:()=>i});var C=M(576);function i(D){return Symbol.asyncIterator&&(0,C.m)(D?.[Symbol.asyncIterator])}},1165:(Y,U,M)=>{"use strict";function C(i){return i instanceof Date&&!isNaN(i)}M.d(U,{q:()=>C})},576:(Y,U,M)=>{"use strict";function C(i){return"function"==typeof i}M.d(U,{m:()=>C})},3670:(Y,U,M)=>{"use strict";M.d(U,{c:()=>D});var C=M(8822),i=M(576);function D(x){return(0,i.m)(x[C.L])}},6495:(Y,U,M)=>{"use strict";M.d(U,{T:()=>D});var C=M(2202),i=M(576);function D(x){return(0,i.m)(x?.[C.h])}},8239:(Y,U,M)=>{"use strict";M.d(U,{t:()=>i});var C=M(576);function i(D){return(0,C.m)(D?.then)}},3260:(Y,U,M)=>{"use strict";M.d(U,{L:()=>x,Q:()=>D});var C=M(655),i=M(576);function D(S){return(0,C.FC)(this,arguments,function*(){const L=S.getReader();try{for(;;){const{value:j,done:z}=yield(0,C.qq)(L.read());if(z)return yield(0,C.qq)(void 0);yield yield(0,C.qq)(j)}}finally{L.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(Y,U,M)=>{"use strict";M.d(U,{K:()=>i});var C=M(576);function i(D){return D&&(0,C.m)(D.schedule)}},4482:(Y,U,M)=>{"use strict";M.d(U,{A:()=>i,e:()=>D});var C=M(576);function i(x){return(0,C.m)(x?.lift)}function D(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(L){this.error(L)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Y,U,M)=>{"use strict";M.d(U,{Z:()=>x});var C=M(4004);const{isArray:i}=Array;function x(S){return(0,C.U)(P=>function D(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(Y,U,M)=>{"use strict";function C(){}M.d(U,{Z:()=>C})},9635:(Y,U,M)=>{"use strict";M.d(U,{U:()=>D,z:()=>i});var C=M(4671);function i(...x){return D(x)}function D(x){return 0===x.length?C.y:1===x.length?x[0]:function(P){return x.reduce((L,j)=>j(L),P)}}},7849:(Y,U,M)=>{"use strict";M.d(U,{h:()=>D});var C=M(2416),i=M(3410);function D(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=C.v;if(!S)throw x;S(x)})}},4532:(Y,U,M)=>{"use strict";function C(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}M.d(U,{z:()=>C})},6700:(Y,U,M)=>{var C={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=D(x);return M(S)}function D(x){if(!M.o(C,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return C[x]}i.keys=function(){return Object.keys(C)},i.resolve=D,Y.exports=i,i.id=6700},655:(Y,U,M)=>{"use strict";function j(ue,fe,Ce,_e){return new(Ce||(Ce=Promise))(function(je,Ct){function It(Ki){try{Je(_e.next(Ki))}catch(_n){Ct(_n)}}function ni(Ki){try{Je(_e.throw(Ki))}catch(_n){Ct(_n)}}function Je(Ki){Ki.done?je(Ki.value):function ze(je){return je instanceof Ce?je:new Ce(function(Ct){Ct(je)})}(Ki.value).then(It,ni)}Je((_e=_e.apply(ue,fe||[])).next())})}function be(ue){return this instanceof be?(this.v=ue,this):new be(ue)}function Ae(ue,fe,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,_e=Ce.apply(ue,fe||[]),je=[];return ze={},Ct("next"),Ct("throw"),Ct("return"),ze[Symbol.asyncIterator]=function(){return this},ze;function Ct(Ue){_e[Ue]&&(ze[Ue]=function(ri){return new Promise(function(lr,vi){je.push([Ue,ri,lr,vi])>1||It(Ue,ri)})})}function It(Ue,ri){try{!function ni(Ue){Ue.value instanceof be?Promise.resolve(Ue.value.v).then(Je,Ki):_n(je[0][2],Ue)}(_e[Ue](ri))}catch(lr){_n(je[0][3],lr)}}function Je(Ue){It("next",Ue)}function Ki(Ue){It("throw",Ue)}function _n(Ue,ri){Ue(ri),je.shift(),je.length&&It(je[0][0],je[0][1])}}function Ze(ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,fe=ue[Symbol.asyncIterator];return fe?fe.call(ue):(ue=function ne(ue){var fe="function"==typeof Symbol&&Symbol.iterator,Ce=fe&&ue[fe],_e=0;if(Ce)return Ce.call(ue);if(ue&&"number"==typeof ue.length)return{next:function(){return ue&&_e>=ue.length&&(ue=void 0),{value:ue&&ue[_e++],done:!ue}}};throw new TypeError(fe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ue),Ce={},_e("next"),_e("throw"),_e("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function _e(je){Ce[je]=ue[je]&&function(Ct){return new Promise(function(It,ni){!function ze(je,Ct,It,ni){Promise.resolve(ni).then(function(Je){je({value:Je,done:It})},Ct)}(It,ni,(Ct=ue[je](Ct)).done,Ct.value)})}}}M.d(U,{FC:()=>Ae,KL:()=>Ze,mG:()=>j,qq:()=>be})},6895:(Y,U,M)=>{"use strict";M.d(U,{Do:()=>Ze,ED:()=>ps,EM:()=>fr,HT:()=>S,JF:()=>Vt,K0:()=>L,Mx:()=>pd,NF:()=>Uo,O5:()=>mn,Ov:()=>Ou,PC:()=>Lr,RF:()=>Ea,S$:()=>be,V_:()=>J,Ye:()=>Ee,b0:()=>$e,bD:()=>yi,ez:()=>pr,mk:()=>Gl,n9:()=>Nn,p6:()=>ke,q:()=>D,sg:()=>Kn,tP:()=>Iu,uU:()=>Yo,w_:()=>P});var C=M(4650);let i=null;function D(){return i}function S(O){i||(i=O)}class P{}const L=new C.OlP("DocumentToken");let j=(()=>{class O{historyGo(V){throw new Error("Not implemented")}}return O.\u0275fac=function(V){return new(V||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return function z(){return(0,C.LFG)(Q)}()},providedIn:"platform"}),O})();const J=new C.OlP("Location Initialized");let Q=(()=>{class O extends j{constructor(V){super(),this._doc=V,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(V){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("popstate",V,!1),()=>$.removeEventListener("popstate",V)}onHashChange(V){const $=D().getGlobalEventTarget(this._doc,"window");return $.addEventListener("hashchange",V,!1),()=>$.removeEventListener("hashchange",V)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(V){this.location.pathname=V}pushState(V,$,ce){ne()?this._history.pushState(V,$,ce):this.location.hash=ce}replaceState(V,$,ce){ne()?this._history.replaceState(V,$,ce):this.location.hash=ce}forward(){this._history.forward()}back(){this._history.back()}historyGo(V=0){this._history.go(V)}getState(){return this._history.state}}return O.\u0275fac=function(V){return new(V||O)(C.LFG(L))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function le(){return new Q((0,C.LFG)(L))}()},providedIn:"platform"}),O})();function ne(){return!!window.history.pushState}function re(O,q){if(0==O.length)return q;if(0==q.length)return O;let V=0;return O.endsWith("/")&&V++,q.startsWith("/")&&V++,2==V?O+q.substring(1):1==V?O+q:O+"/"+q}function ie(O){const q=O.match(/#|\?|$/),V=q&&q.index||O.length;return O.slice(0,V-("/"===O[V-1]?1:0))+O.slice(V)}function me(O){return O&&"?"!==O[0]?"?"+O:O}let be=(()=>{class O{historyGo(V){throw new Error("Not implemented")}}return O.\u0275fac=function(V){return new(V||O)},O.\u0275prov=C.Yz7({token:O,factory:function(){return(0,C.f3M)($e)},providedIn:"root"}),O})();const Ae=new C.OlP("appBaseHref");let $e=(()=>{class O extends be{constructor(V,$){super(),this._platformLocation=V,this._removeListenerFns=[],this._baseHref=$??this._platformLocation.getBaseHrefFromDOM()??(0,C.f3M)(L).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(V){this._removeListenerFns.push(this._platformLocation.onPopState(V),this._platformLocation.onHashChange(V))}getBaseHref(){return this._baseHref}prepareExternalUrl(V){return re(this._baseHref,V)}path(V=!1){const $=this._platformLocation.pathname+me(this._platformLocation.search),ce=this._platformLocation.hash;return ce&&V?`${$}${ce}`:$}pushState(V,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.pushState(V,$,ge)}replaceState(V,$,ce,ye){const ge=this.prepareExternalUrl(ce+me(ye));this._platformLocation.replaceState(V,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(V=0){this._platformLocation.historyGo?.(V)}}return O.\u0275fac=function(V){return new(V||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),Ze=(()=>{class O extends be{constructor(V,$){super(),this._platformLocation=V,this._baseHref="",this._removeListenerFns=[],null!=$&&(this._baseHref=$)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(V){this._removeListenerFns.push(this._platformLocation.onPopState(V),this._platformLocation.onHashChange(V))}getBaseHref(){return this._baseHref}path(V=!1){let $=this._platformLocation.hash;return null==$&&($="#"),$.length>0?$.substring(1):$}prepareExternalUrl(V){const $=re(this._baseHref,V);return $.length>0?"#"+$:$}pushState(V,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.pushState(V,$,ge)}replaceState(V,$,ce,ye){let ge=this.prepareExternalUrl(ce+me(ye));0==ge.length&&(ge=this._platformLocation.pathname),this._platformLocation.replaceState(V,$,ge)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(V=0){this._platformLocation.historyGo?.(V)}}return O.\u0275fac=function(V){return new(V||O)(C.LFG(j),C.LFG(Ae,8))},O.\u0275prov=C.Yz7({token:O,factory:O.\u0275fac}),O})(),Ee=(()=>{class O{constructor(V){this._subject=new C.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=V;const $=this._locationStrategy.getBaseHref();this._baseHref=ie(lt($)),this._locationStrategy.onPopState(ce=>{this._subject.emit({url:this.path(!0),pop:!0,state:ce.state,type:ce.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(V=!1){return this.normalize(this._locationStrategy.path(V))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(V,$=""){return this.path()==this.normalize(V+me($))}normalize(V){return O.stripTrailingSlash(function xe(O,q){return O&&q.startsWith(O)?q.substring(O.length):q}(this._baseHref,lt(V)))}prepareExternalUrl(V){return V&&"/"!==V[0]&&(V="/"+V),this._locationStrategy.prepareExternalUrl(V)}go(V,$="",ce=null){this._locationStrategy.pushState(ce,"",V,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(V+me($)),ce)}replaceState(V,$="",ce=null){this._locationStrategy.replaceState(ce,"",V,$),this._notifyUrlChangeListeners(this.prepareExternalUrl(V+me($)),ce)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(V=0){this._locationStrategy.historyGo?.(V)}onUrlChange(V){return this._urlChangeListeners.push(V),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe($=>{this._notifyUrlChangeListeners($.url,$.state)})),()=>{const $=this._urlChangeListeners.indexOf(V);this._urlChangeListeners.splice($,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(V="",$){this._urlChangeListeners.forEach(ce=>ce(V,$))}subscribe(V,$,ce){return this._subject.subscribe({next:V,error:$,complete:ce})}}return O.normalizeQueryParams=me,O.joinWithSlash=re,O.stripTrailingSlash=ie,O.\u0275fac=function(V){return new(V||O)(C.LFG(be))},O.\u0275prov=C.Yz7({token:O,factory:function(){return function ve(){return new Ee((0,C.LFG)(be))}()},providedIn:"root"}),O})();function lt(O){return O.replace(/\/index.html$/,"")}var ue=(()=>((ue=ue||{})[ue.Format=0]="Format",ue[ue.Standalone=1]="Standalone",ue))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),_e=(()=>((_e=_e||{})[_e.Decimal=0]="Decimal",_e[_e.Group=1]="Group",_e[_e.List=2]="List",_e[_e.PercentSign=3]="PercentSign",_e[_e.PlusSign=4]="PlusSign",_e[_e.MinusSign=5]="MinusSign",_e[_e.Exponential=6]="Exponential",_e[_e.SuperscriptingExponent=7]="SuperscriptingExponent",_e[_e.PerMille=8]="PerMille",_e[_e.Infinity=9]="Infinity",_e[_e.NaN=10]="NaN",_e[_e.TimeSeparator=11]="TimeSeparator",_e[_e.CurrencyDecimal=12]="CurrencyDecimal",_e[_e.CurrencyGroup=13]="CurrencyGroup",_e))();function Ue(O,q){return zi((0,C.cg1)(O)[C.wAp.DateFormat],q)}function ri(O,q){return zi((0,C.cg1)(O)[C.wAp.TimeFormat],q)}function lr(O,q){return zi((0,C.cg1)(O)[C.wAp.DateTimeFormat],q)}function vi(O,q){const V=(0,C.cg1)(O),$=V[C.wAp.NumberSymbols][q];if(typeof $>"u"){if(q===_e.CurrencyDecimal)return V[C.wAp.NumberSymbols][_e.Decimal];if(q===_e.CurrencyGroup)return V[C.wAp.NumberSymbols][_e.Group]}return $}function kr(O){if(!O[C.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[C.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zi(O,q){for(let V=q;V>-1;V--)if(typeof O[V]<"u")return O[V];throw new Error("Locale data API: locale data undefined")}function cr(O){const[q,V]=O.split(":");return{hours:+q,minutes:+V}}const Jn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wt={},Se=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.ShortGMT=1]="ShortGMT",ae[ae.Long=2]="Long",ae[ae.Extended=3]="Extended",ae))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),de=(()=>((de=de||{})[de.DayPeriods=0]="DayPeriods",de[de.Days=1]="Days",de[de.Months=2]="Months",de[de.Eras=3]="Eras",de))();function ke(O,q,V,$){let ce=function Ui(O){if(Ei(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[ce,ye=1,ge=1]=O.split("-").map(tt=>+tt);return dt(ce,ye-1,ge)}const V=parseFloat(O);if(!isNaN(O-V))return new Date(V);let $;if($=O.match(Jn))return function Ne(O){const q=new Date(0);let V=0,$=0;const ce=O[8]?q.setUTCFullYear:q.setFullYear,ye=O[8]?q.setUTCHours:q.setHours;O[9]&&(V=Number(O[9]+O[10]),$=Number(O[9]+O[11])),ce.call(q,Number(O[1]),Number(O[2])-1,Number(O[3]));const ge=Number(O[4]||0)-V,tt=Number(O[5]||0)-$,pi=Number(O[6]||0),Kt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return ye.call(q,ge,tt,pi,Kt),q}($)}const q=new Date(O);if(!Ei(q))throw new Error(`Unable to convert "${O}" into a date`);return q}(O);q=At(V,q)||q;let tt,ge=[];for(;q;){if(tt=Se.exec(q),!tt){ge.push(q);break}{ge=ge.concat(tt.slice(1));const Zt=ge.pop();if(!Zt)break;q=Zt}}let pi=ce.getTimezoneOffset();$&&(pi=us($,pi),ce=function Ni(O,q,V){const $=V?-1:1,ce=O.getTimezoneOffset();return function ti(O,q){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+q),O}(O,$*(us(q,ce)-ce))}(ce,$,!0));let Kt="";return ge.forEach(Zt=>{const Ft=function hd(O){if(ea[O])return ea[O];let q;switch(O){case"G":case"GG":case"GGG":q=mt(de.Eras,fe.Abbreviated);break;case"GGGG":q=mt(de.Eras,fe.Wide);break;case"GGGGG":q=mt(de.Eras,fe.Narrow);break;case"y":q=vt(te.FullYear,1,0,!1,!0);break;case"yy":q=vt(te.FullYear,2,0,!0,!0);break;case"yyy":q=vt(te.FullYear,3,0,!1,!0);break;case"yyyy":q=vt(te.FullYear,4,0,!1,!0);break;case"Y":q=Qn(1);break;case"YY":q=Qn(2,!0);break;case"YYY":q=Qn(3);break;case"YYYY":q=Qn(4);break;case"M":case"L":q=vt(te.Month,1,1);break;case"MM":case"LL":q=vt(te.Month,2,1);break;case"MMM":q=mt(de.Months,fe.Abbreviated);break;case"MMMM":q=mt(de.Months,fe.Wide);break;case"MMMMM":q=mt(de.Months,fe.Narrow);break;case"LLL":q=mt(de.Months,fe.Abbreviated,ue.Standalone);break;case"LLLL":q=mt(de.Months,fe.Wide,ue.Standalone);break;case"LLLLL":q=mt(de.Months,fe.Narrow,ue.Standalone);break;case"w":q=dr(1);break;case"ww":q=dr(2);break;case"W":q=dr(1,!0);break;case"d":q=vt(te.Date,1);break;case"dd":q=vt(te.Date,2);break;case"c":case"cc":q=vt(te.Day,1);break;case"ccc":q=mt(de.Days,fe.Abbreviated,ue.Standalone);break;case"cccc":q=mt(de.Days,fe.Wide,ue.Standalone);break;case"ccccc":q=mt(de.Days,fe.Narrow,ue.Standalone);break;case"cccccc":q=mt(de.Days,fe.Short,ue.Standalone);break;case"E":case"EE":case"EEE":q=mt(de.Days,fe.Abbreviated);break;case"EEEE":q=mt(de.Days,fe.Wide);break;case"EEEEE":q=mt(de.Days,fe.Narrow);break;case"EEEEEE":q=mt(de.Days,fe.Short);break;case"a":case"aa":case"aaa":q=mt(de.DayPeriods,fe.Abbreviated);break;case"aaaa":q=mt(de.DayPeriods,fe.Wide);break;case"aaaaa":q=mt(de.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":q=mt(de.DayPeriods,fe.Abbreviated,ue.Standalone,!0);break;case"bbbb":q=mt(de.DayPeriods,fe.Wide,ue.Standalone,!0);break;case"bbbbb":q=mt(de.DayPeriods,fe.Narrow,ue.Standalone,!0);break;case"B":case"BB":case"BBB":q=mt(de.DayPeriods,fe.Abbreviated,ue.Format,!0);break;case"BBBB":q=mt(de.DayPeriods,fe.Wide,ue.Format,!0);break;case"BBBBB":q=mt(de.DayPeriods,fe.Narrow,ue.Format,!0);break;case"h":q=vt(te.Hours,1,-12);break;case"hh":q=vt(te.Hours,2,-12);break;case"H":q=vt(te.Hours,1);break;case"HH":q=vt(te.Hours,2);break;case"m":q=vt(te.Minutes,1);break;case"mm":q=vt(te.Minutes,2);break;case"s":q=vt(te.Seconds,1);break;case"ss":q=vt(te.Seconds,2);break;case"S":q=vt(te.FractionalSeconds,1);break;case"SS":q=vt(te.FractionalSeconds,2);break;case"SSS":q=vt(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=pt(ae.Short);break;case"ZZZZZ":q=pt(ae.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=pt(ae.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=pt(ae.Long);break;default:return null}return ea[O]=q,q}(Zt);Kt+=Ft?Ft(ce,V,pi):"''"===Zt?"'":Zt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Kt}function dt(O,q,V){const $=new Date(0);return $.setFullYear(O,q,V),$.setHours(0,0,0),$}function At(O,q){const V=function je(O){return(0,C.cg1)(O)[C.wAp.LocaleId]}(O);if(Wt[V]=Wt[V]||{},Wt[V][q])return Wt[V][q];let $="";switch(q){case"shortDate":$=Ue(O,Ce.Short);break;case"mediumDate":$=Ue(O,Ce.Medium);break;case"longDate":$=Ue(O,Ce.Long);break;case"fullDate":$=Ue(O,Ce.Full);break;case"shortTime":$=ri(O,Ce.Short);break;case"mediumTime":$=ri(O,Ce.Medium);break;case"longTime":$=ri(O,Ce.Long);break;case"fullTime":$=ri(O,Ce.Full);break;case"short":const ce=At(O,"shortTime"),ye=At(O,"shortDate");$=et(lr(O,Ce.Short),[ce,ye]);break;case"medium":const ge=At(O,"mediumTime"),tt=At(O,"mediumDate");$=et(lr(O,Ce.Medium),[ge,tt]);break;case"long":const pi=At(O,"longTime"),Kt=At(O,"longDate");$=et(lr(O,Ce.Long),[pi,Kt]);break;case"full":const Zt=At(O,"fullTime"),Ft=At(O,"fullDate");$=et(lr(O,Ce.Full),[Zt,Ft])}return $&&(Wt[V][q]=$),$}function et(O,q){return q&&(O=O.replace(/\{([^}]+)}/g,function(V,$){return null!=q&&$ in q?q[$]:V})),O}function ht(O,q,V="-",$,ce){let ye="";(O<0||ce&&O<=0)&&(ce?O=1-O:(O=-O,ye=V));let ge=String(O);for(;ge.length0||tt>-V)&&(tt+=V),O===te.Hours)0===tt&&-12===V&&(tt=12);else if(O===te.FractionalSeconds)return function Di(O,q){return ht(O,3).substring(0,q)}(tt,q);const pi=vi(ge,_e.MinusSign);return ht(tt,q,pi,$,ce)}}function mt(O,q,V=ue.Format,$=!1){return function(ce,ye){return function $t(O,q,V,$,ce,ye){switch(V){case de.Months:return function ni(O,q,V){const $=(0,C.cg1)(O),ye=zi([$[C.wAp.MonthsFormat],$[C.wAp.MonthsStandalone]],q);return zi(ye,V)}(q,ce,$)[O.getMonth()];case de.Days:return function It(O,q,V){const $=(0,C.cg1)(O),ye=zi([$[C.wAp.DaysFormat],$[C.wAp.DaysStandalone]],q);return zi(ye,V)}(q,ce,$)[O.getDay()];case de.DayPeriods:const ge=O.getHours(),tt=O.getMinutes();if(ye){const Kt=function ds(O){const q=(0,C.cg1)(O);return kr(q),(q[C.wAp.ExtraData][2]||[]).map($=>"string"==typeof $?cr($):[cr($[0]),cr($[1])])}(q),Zt=function Ws(O,q,V){const $=(0,C.cg1)(O);kr($);const ye=zi([$[C.wAp.ExtraData][0],$[C.wAp.ExtraData][1]],q)||[];return zi(ye,V)||[]}(q,ce,$),Ft=Kt.findIndex(at=>{if(Array.isArray(at)){const[mi,Ti]=at,Me=ge>=mi.hours&&tt>=mi.minutes,Ht=ge0?Math.floor(ce/60):Math.ceil(ce/60);switch(O){case ae.Short:return(ce>=0?"+":"")+ht(ge,2,ye)+ht(Math.abs(ce%60),2,ye);case ae.ShortGMT:return"GMT"+(ce>=0?"+":"")+ht(ge,1,ye);case ae.Long:return"GMT"+(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);case ae.Extended:return 0===$?"Z":(ce>=0?"+":"")+ht(ge,2,ye)+":"+ht(Math.abs(ce%60),2,ye);default:throw new Error(`Unknown zone width "${O}"`)}}}function Pr(O){return dt(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function dr(O,q=!1){return function(V,$){let ce;if(q){const ye=new Date(V.getFullYear(),V.getMonth(),1).getDay()-1,ge=V.getDate();ce=1+Math.floor((ge+ye)/7)}else{const ye=Pr(V),ge=function Bi(O){const q=dt(O,0,1).getDay();return dt(O,0,1+(q<=4?4:11)-q)}(ye.getFullYear()),tt=ye.getTime()-ge.getTime();ce=1+Math.round(tt/6048e5)}return ht(ce,O,vi($,_e.MinusSign))}}function Qn(O,q=!1){return function(V,$){return ht(Pr(V).getFullYear(),O,vi($,_e.MinusSign),q)}}const ea={};function us(O,q){O=O.replace(/:/g,"");const V=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(V)?q:V}function Ei(O){return O instanceof Date&&!isNaN(O.valueOf())}function pd(O,q){q=encodeURIComponent(q);for(const V of O.split(";")){const $=V.indexOf("="),[ce,ye]=-1==$?[V,""]:[V.slice(0,$),V.slice($+1)];if(ce.trim()===q)return decodeURIComponent(ye)}return null}let Gl=(()=>{class O{constructor(V,$,ce,ye){this._iterableDiffers=V,this._keyValueDiffers=$,this._ngEl=ce,this._renderer=ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(V){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof V?V.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(V){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof V?V.split(/\s+/):V,this._rawClass&&((0,C.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const V=this._iterableDiffer.diff(this._rawClass);V&&this._applyIterableChanges(V)}else if(this._keyValueDiffer){const V=this._keyValueDiffer.diff(this._rawClass);V&&this._applyKeyValueChanges(V)}}_applyKeyValueChanges(V){V.forEachAddedItem($=>this._toggleClass($.key,$.currentValue)),V.forEachChangedItem($=>this._toggleClass($.key,$.currentValue)),V.forEachRemovedItem($=>{$.previousValue&&this._toggleClass($.key,!1)})}_applyIterableChanges(V){V.forEachAddedItem($=>{if("string"!=typeof $.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,C.AaK)($.item)}`);this._toggleClass($.item,!0)}),V.forEachRemovedItem($=>this._toggleClass($.item,!1))}_applyClasses(V){V&&(Array.isArray(V)||V instanceof Set?V.forEach($=>this._toggleClass($,!0)):Object.keys(V).forEach($=>this._toggleClass($,!!V[$])))}_removeClasses(V){V&&(Array.isArray(V)||V instanceof Set?V.forEach($=>this._toggleClass($,!1)):Object.keys(V).forEach($=>this._toggleClass($,!1)))}_toggleClass(V,$){(V=V.trim())&&V.split(/\s+/g).forEach(ce=>{$?this._renderer.addClass(this._ngEl.nativeElement,ce):this._renderer.removeClass(this._ngEl.nativeElement,ce)})}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.ZZ4),C.Y36(C.aQg),C.Y36(C.SBq),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),O})();class ia{constructor(q,V,$,ce){this.$implicit=q,this.ngForOf=V,this.index=$,this.count=ce}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Kn=(()=>{class O{constructor(V,$,ce){this._viewContainer=V,this._template=$,this._differs=ce,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(V){this._ngForOf=V,this._ngForOfDirty=!0}set ngForTrackBy(V){this._trackByFn=V}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(V){V&&(this._template=V)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const V=this._ngForOf;!this._differ&&V&&(this._differ=this._differs.find(V).create(this.ngForTrackBy))}if(this._differ){const V=this._differ.diff(this._ngForOf);V&&this._applyChanges(V)}}_applyChanges(V){const $=this._viewContainer;V.forEachOperation((ce,ye,ge)=>{if(null==ce.previousIndex)$.createEmbeddedView(this._template,new ia(ce.item,this._ngForOf,-1,-1),null===ge?void 0:ge);else if(null==ge)$.remove(null===ye?void 0:ye);else if(null!==ye){const tt=$.get(ye);$.move(tt,ge),tn(tt,ce)}});for(let ce=0,ye=$.length;ce{tn($.get(ce.currentIndex),ce)})}static ngTemplateContextGuard(V,$){return!0}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(C.ZZ4))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),O})();function tn(O,q){O.context.$implicit=q.item}let mn=(()=>{class O{constructor(V,$){this._viewContainer=V,this._context=new jn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=$}set ngIf(V){this._context.$implicit=this._context.ngIf=V,this._updateView()}set ngIfThen(V){na("ngIfThen",V),this._thenTemplateRef=V,this._thenViewRef=null,this._updateView()}set ngIfElse(V){na("ngIfElse",V),this._elseTemplateRef=V,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(V,$){return!0}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.s_b),C.Y36(C.Rgc))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),O})();class jn{constructor(){this.$implicit=null,this.ngIf=null}}function na(O,q){if(q&&!q.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,C.AaK)(q)}'.`)}class Da{constructor(q,V){this._viewContainerRef=q,this._templateRef=V,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(q){q&&!this._created?this.create():!q&&this._created&&this.destroy()}}let Ea=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(V){this._ngSwitch=V,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(V){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(V)}_matchCase(V){const $=V==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||$,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),$}_updateDefaultCases(V){if(this._defaultViews&&V!==this._defaultUsed){this._defaultUsed=V;for(let $=0;${class O{constructor(V,$,ce){this.ngSwitch=ce,ce._addCase(),this._view=new Da(V,$)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Ea,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),O})(),ps=(()=>{class O{constructor(V,$,ce){ce._addDefault(new Da(V,$))}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.s_b),C.Y36(C.Rgc),C.Y36(Ea,9))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngSwitchDefault",""]],standalone:!0}),O})(),Lr=(()=>{class O{constructor(V,$,ce){this._ngEl=V,this._differs=$,this._renderer=ce,this._ngStyle=null,this._differ=null}set ngStyle(V){this._ngStyle=V,!this._differ&&V&&(this._differ=this._differs.find(V).create())}ngDoCheck(){if(this._differ){const V=this._differ.diff(this._ngStyle);V&&this._applyChanges(V)}}_setStyle(V,$){const[ce,ye]=V.split("."),ge=-1===ce.indexOf("-")?void 0:C.JOm.DashCase;null!=$?this._renderer.setStyle(this._ngEl.nativeElement,ce,ye?`${$}${ye}`:$,ge):this._renderer.removeStyle(this._ngEl.nativeElement,ce,ge)}_applyChanges(V){V.forEachRemovedItem($=>this._setStyle($.key,null)),V.forEachAddedItem($=>this._setStyle($.key,$.currentValue)),V.forEachChangedItem($=>this._setStyle($.key,$.currentValue))}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.SBq),C.Y36(C.aQg),C.Y36(C.Qsj))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),O})(),Iu=(()=>{class O{constructor(V){this._viewContainerRef=V,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(V){if(V.ngTemplateOutlet||V.ngTemplateOutletInjector){const $=this._viewContainerRef;if(this._viewRef&&$.remove($.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ce,ngTemplateOutletContext:ye,ngTemplateOutletInjector:ge}=this;this._viewRef=$.createEmbeddedView(ce,ye,ge?{injector:ge}:void 0)}else this._viewRef=null}else this._viewRef&&V.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.s_b))},O.\u0275dir=C.lG2({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[C.TTD]}),O})();function ur(O,q){return new C.vHH(2100,!1)}class Pp{createSubscription(q,V){return q.subscribe({next:V,error:$=>{throw $}})}dispose(q){q.unsubscribe()}}class Rp{createSubscription(q,V){return q.then(V,$=>{throw $})}dispose(q){}}const Lp=new Rp,Ip=new Pp;let Ou=(()=>{class O{constructor(V){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=V}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(V){return this._obj?V!==this._obj?(this._dispose(),this.transform(V)):this._latestValue:(V&&this._subscribe(V),this._latestValue)}_subscribe(V){this._obj=V,this._strategy=this._selectStrategy(V),this._subscription=this._strategy.createSubscription(V,$=>this._updateLatestValue(V,$))}_selectStrategy(V){if((0,C.QGY)(V))return Lp;if((0,C.F4k)(V))return Ip;throw ur()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(V,$){V===this._obj&&(this._latestValue=$,this._ref.markForCheck())}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.sBO,16))},O.\u0275pipe=C.Yjl({name:"async",type:O,pure:!1,standalone:!0}),O})();const Bp=new C.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Yo=(()=>{class O{constructor(V,$){this.locale=V,this.defaultTimezone=$}transform(V,$="mediumDate",ce,ye){if(null==V||""===V||V!=V)return null;try{return ke(V,$,ye||this.locale,ce??this.defaultTimezone??void 0)}catch(ge){throw ur()}}}return O.\u0275fac=function(V){return new(V||O)(C.Y36(C.soG,16),C.Y36(Bp,24))},O.\u0275pipe=C.Yjl({name:"date",type:O,pure:!0,standalone:!0}),O})(),pr=(()=>{class O{}return O.\u0275fac=function(V){return new(V||O)},O.\u0275mod=C.oAB({type:O}),O.\u0275inj=C.cJS({}),O})();const yi="browser";function Uo(O){return O===yi}let fr=(()=>{class O{}return O.\u0275prov=(0,C.Yz7)({token:O,providedIn:"root",factory:()=>new Et((0,C.LFG)(L),window)}),O})();class Et{constructor(q,V){this.document=q,this.window=V,this.offset=()=>[0,0]}setOffset(q){this.offset=Array.isArray(q)?()=>q:q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(q){this.supportsScrolling()&&this.window.scrollTo(q[0],q[1])}scrollToAnchor(q){if(!this.supportsScrolling())return;const V=function er(O,q){const V=O.getElementById(q)||O.getElementsByName(q)[0];if(V)return V;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const $=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let ce=$.currentNode;for(;ce;){const ye=ce.shadowRoot;if(ye){const ge=ye.getElementById(q)||ye.querySelector(`[name="${q}"]`);if(ge)return ge}ce=$.nextNode()}}return null}(this.document,q);V&&(this.scrollToElement(V),V.focus())}setHistoryScrollRestoration(q){if(this.supportScrollRestoration()){const V=this.window.history;V&&V.scrollRestoration&&(V.scrollRestoration=q)}}scrollToElement(q){const V=q.getBoundingClientRect(),$=V.left+this.window.pageXOffset,ce=V.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo($-ye[0],ce-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const q=rn(this.window.history)||rn(Object.getPrototypeOf(this.window.history));return!(!q||!q.writable&&!q.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function rn(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Vt{}},529:(Y,U,M)=>{"use strict";M.d(U,{JF:()=>No,LE:()=>Ae,TP:()=>It,WM:()=>J,Zn:()=>Ce,eN:()=>je,qT:()=>Ze});var C=M(6895),i=M(4650),D=M(9646),x=M(9751),S=M(4351),P=M(9300),L=M(4004);class j{}class z{}class J{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(te=>{const de=te.indexOf(":");if(de>0){const ke=te.slice(0,de),dt=ke.toLowerCase(),At=te.slice(de+1).trim();this.maybeSetNormalizedName(ke,dt),this.headers.has(dt)?this.headers.get(dt).push(At):this.headers.set(dt,[At])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(te=>{let de=ae[te];const ke=te.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(ke,de),this.maybeSetNormalizedName(te,ke))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const te=this.headers.get(ae.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,te){return this.clone({name:ae,value:te,op:"a"})}set(ae,te){return this.clone({name:ae,value:te,op:"s"})}delete(ae,te){return this.clone({name:ae,value:te,op:"d"})}maybeSetNormalizedName(ae,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ae)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(te=>{this.headers.set(te,ae.headers.get(te)),this.normalizedNames.set(te,ae.normalizedNames.get(te))})}clone(ae){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),te}applyUpdate(ae){const te=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let de=ae.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(ae.name,te);const ke=("a"===ae.op?this.headers.get(te):void 0)||[];ke.push(...de),this.headers.set(te,ke);break;case"d":const dt=ae.value;if(dt){let At=this.headers.get(te);if(!At)return;At=At.filter(et=>-1===dt.indexOf(et)),0===At.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,At)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ae(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(ae){return me(ae)}encodeValue(ae){return me(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const re=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(Se){return encodeURIComponent(Se).replace(re,(ae,te)=>ie[te]??ae)}function be(Se){return`${Se}`}class Ae{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new ne,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Se,ae){const te=new Map;return Se.length>0&&Se.replace(/^\?/,"").split("&").forEach(ke=>{const dt=ke.indexOf("="),[At,et]=-1==dt?[ae.decodeKey(ke),""]:[ae.decodeKey(ke.slice(0,dt)),ae.decodeValue(ke.slice(dt+1))],ht=te.get(At)||[];ht.push(et),te.set(At,ht)}),te}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(te=>{const de=ae.fromObject[te],ke=Array.isArray(de)?de.map(be):[be(de)];this.map.set(te,ke)})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const te=this.map.get(ae);return te?te[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,te){return this.clone({param:ae,value:te,op:"a"})}appendAll(ae){const te=[];return Object.keys(ae).forEach(de=>{const ke=ae[de];Array.isArray(ke)?ke.forEach(dt=>{te.push({param:de,value:dt,op:"a"})}):te.push({param:de,value:ke,op:"a"})}),this.clone(te)}set(ae,te){return this.clone({param:ae,value:te,op:"s"})}delete(ae,te){return this.clone({param:ae,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const te=this.encoder.encodeKey(ae);return this.map.get(ae).map(de=>te+"="+this.encoder.encodeValue(de)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const te=new Ae({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ae),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const te=("a"===ae.op?this.map.get(ae.param):void 0)||[];te.push(be(ae.value)),this.map.set(ae.param,te);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let de=this.map.get(ae.param)||[];const ke=de.indexOf(be(ae.value));-1!==ke&&de.splice(ke,1),de.length>0?this.map.set(ae.param,de):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class Ze{constructor(){this.map=new Map}set(ae,te){return this.map.set(ae,te),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function ve(Se){return typeof ArrayBuffer<"u"&&Se instanceof ArrayBuffer}function xe(Se){return typeof Blob<"u"&&Se instanceof Blob}function lt(Se){return typeof FormData<"u"&&Se instanceof FormData}class Oe{constructor(ae,te,de,ke){let dt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Ee(Se){switch(Se){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ke?(this.body=void 0!==de?de:null,dt=ke):dt=de,dt&&(this.reportProgress=!!dt.reportProgress,this.withCredentials=!!dt.withCredentials,dt.responseType&&(this.responseType=dt.responseType),dt.headers&&(this.headers=dt.headers),dt.context&&(this.context=dt.context),dt.params&&(this.params=dt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Ze),this.params){const At=this.params.toString();if(0===At.length)this.urlWithParams=te;else{const et=te.indexOf("?");this.urlWithParams=te+(-1===et?"?":etxn.set(mt,ae.setHeaders[mt]),ht)),ae.setParams&&(Di=Object.keys(ae.setParams).reduce((xn,mt)=>xn.set(mt,ae.setParams[mt]),Di)),new Oe(te,de,dt,{params:Di,headers:ht,context:vt,reportProgress:et,responseType:ke,withCredentials:At})}}var Le=(()=>((Le=Le||{})[Le.Sent=0]="Sent",Le[Le.UploadProgress=1]="UploadProgress",Le[Le.ResponseHeader=2]="ResponseHeader",Le[Le.DownloadProgress=3]="DownloadProgress",Le[Le.Response=4]="Response",Le[Le.User=5]="User",Le))();class ue{constructor(ae,te=200,de="OK"){this.headers=ae.headers||new J,this.status=void 0!==ae.status?ae.status:te,this.statusText=ae.statusText||de,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class fe extends ue{constructor(ae={}){super(ae),this.type=Le.ResponseHeader}clone(ae={}){return new fe({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Ce extends ue{constructor(ae={}){super(ae),this.type=Le.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new Ce({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class _e extends ue{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function ze(Se,ae){return{body:ae,headers:Se.headers,context:Se.context,observe:Se.observe,params:Se.params,reportProgress:Se.reportProgress,responseType:Se.responseType,withCredentials:Se.withCredentials}}let je=(()=>{class Se{constructor(te){this.handler=te}request(te,de,ke={}){let dt;if(te instanceof Oe)dt=te;else{let ht,Di;ht=ke.headers instanceof J?ke.headers:new J(ke.headers),ke.params&&(Di=ke.params instanceof Ae?ke.params:new Ae({fromObject:ke.params})),dt=new Oe(te,de,void 0!==ke.body?ke.body:null,{headers:ht,context:ke.context,params:Di,reportProgress:ke.reportProgress,responseType:ke.responseType||"json",withCredentials:ke.withCredentials})}const At=(0,D.of)(dt).pipe((0,S.b)(ht=>this.handler.handle(ht)));if(te instanceof Oe||"events"===ke.observe)return At;const et=At.pipe((0,P.h)(ht=>ht instanceof Ce));switch(ke.observe||"body"){case"body":switch(dt.responseType){case"arraybuffer":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ht.body}));case"blob":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&!(ht.body instanceof Blob))throw new Error("Response is not a Blob.");return ht.body}));case"text":return et.pipe((0,L.U)(ht=>{if(null!==ht.body&&"string"!=typeof ht.body)throw new Error("Response is not a string.");return ht.body}));default:return et.pipe((0,L.U)(ht=>ht.body))}case"response":return et;default:throw new Error(`Unreachable: unhandled observe type ${ke.observe}}`)}}delete(te,de={}){return this.request("DELETE",te,de)}get(te,de={}){return this.request("GET",te,de)}head(te,de={}){return this.request("HEAD",te,de)}jsonp(te,de){return this.request("JSONP",te,{params:(new Ae).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,de={}){return this.request("OPTIONS",te,de)}patch(te,de,ke={}){return this.request("PATCH",te,ze(ke,de))}post(te,de,ke={}){return this.request("POST",te,ze(ke,de))}put(te,de,ke={}){return this.request("PUT",te,ze(ke,de))}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(j))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();class Ct{constructor(ae,te){this.next=ae,this.interceptor=te}handle(ae){return this.interceptor.intercept(ae,this.next)}}const It=new i.OlP("HTTP_INTERCEPTORS");let ni=(()=>{class Se{intercept(te,de){return de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Gs=/^\)\]\}',?\n/;let qs=(()=>{class Se{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(de=>{const ke=this.xhrFactory.build();if(ke.open(te.method,te.urlWithParams),te.withCredentials&&(ke.withCredentials=!0),te.headers.forEach(($t,pt)=>ke.setRequestHeader($t,pt.join(","))),te.headers.has("Accept")||ke.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const $t=te.detectContentTypeHeader();null!==$t&&ke.setRequestHeader("Content-Type",$t)}if(te.responseType){const $t=te.responseType.toLowerCase();ke.responseType="json"!==$t?$t:"text"}const dt=te.serializeBody();let At=null;const et=()=>{if(null!==At)return At;const $t=ke.statusText||"OK",pt=new J(ke.getAllResponseHeaders()),Bn=function ud(Se){return"responseURL"in Se&&Se.responseURL?Se.responseURL:/^X-Request-URL:/m.test(Se.getAllResponseHeaders())?Se.getResponseHeader("X-Request-URL"):null}(ke)||te.url;return At=new fe({headers:pt,status:ke.status,statusText:$t,url:Bn}),At},ht=()=>{let{headers:$t,status:pt,statusText:Bn,url:Xr}=et(),Bi=null;204!==pt&&(Bi=typeof ke.response>"u"?ke.responseText:ke.response),0===pt&&(pt=Bi?200:0);let Pr=pt>=200&&pt<300;if("json"===te.responseType&&"string"==typeof Bi){const dr=Bi;Bi=Bi.replace(Gs,"");try{Bi=""!==Bi?JSON.parse(Bi):null}catch(Qn){Bi=dr,Pr&&(Pr=!1,Bi={error:Qn,text:Bi})}}Pr?(de.next(new Ce({body:Bi,headers:$t,status:pt,statusText:Bn,url:Xr||void 0})),de.complete()):de.error(new _e({error:Bi,headers:$t,status:pt,statusText:Bn,url:Xr||void 0}))},Di=$t=>{const{url:pt}=et(),Bn=new _e({error:$t,status:ke.status||0,statusText:ke.statusText||"Unknown Error",url:pt||void 0});de.error(Bn)};let vt=!1;const xn=$t=>{vt||(de.next(et()),vt=!0);let pt={type:Le.DownloadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),"text"===te.responseType&&!!ke.responseText&&(pt.partialText=ke.responseText),de.next(pt)},mt=$t=>{let pt={type:Le.UploadProgress,loaded:$t.loaded};$t.lengthComputable&&(pt.total=$t.total),de.next(pt)};return ke.addEventListener("load",ht),ke.addEventListener("error",Di),ke.addEventListener("timeout",Di),ke.addEventListener("abort",Di),te.reportProgress&&(ke.addEventListener("progress",xn),null!==dt&&ke.upload&&ke.upload.addEventListener("progress",mt)),ke.send(dt),de.next({type:Le.Sent}),()=>{ke.removeEventListener("error",Di),ke.removeEventListener("abort",Di),ke.removeEventListener("load",ht),ke.removeEventListener("timeout",Di),te.reportProgress&&(ke.removeEventListener("progress",xn),null!==dt&&ke.upload&&ke.upload.removeEventListener("progress",mt)),ke.readyState!==ke.DONE&&ke.abort()}})}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.JF))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})();const Hr=new i.OlP("XSRF_COOKIE_NAME"),kr=new i.OlP("XSRF_HEADER_NAME");class ds{}let Ws=(()=>{class Se{constructor(te,de,ke){this.doc=te,this.platform=de,this.cookieName=ke,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(C.K0),i.LFG(i.Lbi),i.LFG(Hr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),ct=(()=>{class Se{constructor(te,de){this.tokenService=te,this.headerName=de}intercept(te,de){const ke=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||ke.startsWith("http://")||ke.startsWith("https://"))return de.handle(te);const dt=this.tokenService.getToken();return null!==dt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,dt)})),de.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(ds),i.LFG(kr))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),zi=(()=>{class Se{constructor(te,de){this.backend=te,this.injector=de,this.chain=null}handle(te){if(null===this.chain){const de=this.injector.get(It,[]);this.chain=de.reduceRight((ke,dt)=>new Ct(ke,dt),this.backend)}return this.chain.handle(te)}}return Se.\u0275fac=function(te){return new(te||Se)(i.LFG(z),i.LFG(i.zs3))},Se.\u0275prov=i.Yz7({token:Se,factory:Se.\u0275fac}),Se})(),Xi=(()=>{class Se{static disable(){return{ngModule:Se,providers:[{provide:ct,useClass:ni}]}}static withOptions(te={}){return{ngModule:Se,providers:[te.cookieName?{provide:Hr,useValue:te.cookieName}:[],te.headerName?{provide:kr,useValue:te.headerName}:[]]}}}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[ct,{provide:It,useExisting:ct,multi:!0},{provide:ds,useClass:Ws},{provide:Hr,useValue:"XSRF-TOKEN"},{provide:kr,useValue:"X-XSRF-TOKEN"}]}),Se})(),No=(()=>{class Se{}return Se.\u0275fac=function(te){return new(te||Se)},Se.\u0275mod=i.oAB({type:Se}),Se.\u0275inj=i.cJS({providers:[je,{provide:j,useClass:zi},qs,{provide:z,useExisting:qs}],imports:[Xi.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Se})()},4650:(Y,U,M)=>{"use strict";M.d(U,{$8M:()=>rc,$Z:()=>fb,AFp:()=>Sg,ALo:()=>aw,AaK:()=>j,AsE:()=>Li,BQk:()=>mm,CHM:()=>gn,CRH:()=>sM,CZH:()=>Kc,CqO:()=>$b,D6c:()=>TD,DdM:()=>tw,Dn7:()=>sw,EJc:()=>St,EiD:()=>w_,EpF:()=>Pc,F$t:()=>Xb,F4k:()=>qh,FYo:()=>DA,FiY:()=>co,G48:()=>hD,Gf:()=>hw,GfV:()=>kA,GkF:()=>Uh,Gpc:()=>Q,Gre:()=>Pm,Hsn:()=>ey,Ikx:()=>su,JOm:()=>Ss,JVY:()=>lA,Jf7:()=>UA,KtG:()=>Or,L6k:()=>cA,LAX:()=>pf,LFG:()=>Pi,LSH:()=>Cf,Lbi:()=>Pw,Lck:()=>HT,MAs:()=>pm,MMx:()=>dp,NdJ:()=>gm,O4$:()=>Yu,OlP:()=>ei,Oqu:()=>ts,PXZ:()=>Sr,Q6J:()=>Pe,QGY:()=>Gh,QP$:()=>ns,QbO:()=>Eg,Qsj:()=>EA,R0b:()=>$n,RDi:()=>I,Rgc:()=>Ho,SBq:()=>rr,Sil:()=>wp,Suo:()=>pw,TTD:()=>Hi,TgZ:()=>_t,Tol:()=>vm,Udp:()=>Am,VKq:()=>iw,W1O:()=>bg,WFA:()=>_m,WLB:()=>nw,XFs:()=>ct,Xpm:()=>Bn,Xts:()=>vf,Y36:()=>wc,YKP:()=>ag,YNc:()=>yt,Yjl:()=>us,Yz7:()=>ri,ZZ4:()=>Kw,_Bn:()=>rg,_UZ:()=>kc,_Vd:()=>qr,_c5:()=>AD,_uU:()=>ln,aQg:()=>Xw,c2e:()=>Hg,cJS:()=>vi,cg1:()=>Dy,d8E:()=>Bc,dDg:()=>TM,dqk:()=>de,eBb:()=>dA,eFA:()=>Ro,ekj:()=>Oc,eoX:()=>Og,f3M:()=>lh,g9A:()=>Dg,h0i:()=>zc,hGG:()=>vD,hij:()=>Jh,iGM:()=>uw,ifc:()=>te,ip1:()=>Os,kL8:()=>oT,kcU:()=>zu,lG2:()=>hd,lcZ:()=>fu,lqb:()=>wn,lri:()=>Bw,mCW:()=>Fd,n5z:()=>Sd,n_E:()=>Eo,oAB:()=>dr,oJD:()=>C_,oxw:()=>Kb,pB0:()=>m_,q3G:()=>qi,qLn:()=>xh,qOj:()=>jh,qZA:()=>fm,qzn:()=>al,rWj:()=>Zr,s9C:()=>bm,sBO:()=>fD,sIi:()=>iu,s_b:()=>_u,soG:()=>kg,tb:()=>bp,tp0:()=>Ms,uIk:()=>Hs,vHH:()=>ie,vpe:()=>Ls,wAp:()=>ft,xDo:()=>Qh,xi3:()=>ug,xp6:()=>Vf,ynx:()=>Pn,z2F:()=>Fg,z3N:()=>Ua,zSh:()=>ol,zs3:()=>Wa});var C=M(7579),i=M(727),D=M(9751),x=M(6451),S=M(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function L(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function j(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(j).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function z(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function Q(p){return p.__forward_ref__=Q,p.toString=function(){return j(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===Q}class ie extends Error{constructor(m,g){super(function me(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function be(p){return"string"==typeof p?p:null==p?"":String(p)}function ve(p,m){throw new ie(-201,!1)}function ni(p,m){null==p&&function Je(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function vi(p){return{providers:p.providers||[],imports:p.imports||[]}}function Kr(p){return Ul(p,Hr)||Ul(p,ds)}function Ul(p,m){return p.hasOwnProperty(m)?p[m]:null}function qs(p){return p&&(p.hasOwnProperty(kr)||p.hasOwnProperty(Ws))?p[kr]:null}const Hr=P({\u0275prov:P}),kr=P({\u0275inj:P}),ds=P({ngInjectableDef:P}),Ws=P({ngInjectorDef:P});var ct=(()=>((ct=ct||{})[ct.Default=0]="Default",ct[ct.Host=1]="Host",ct[ct.Self=2]="Self",ct[ct.SkipSelf=4]="SkipSelf",ct[ct.Optional=8]="Optional",ct))();let zi;function Qt(p){const m=zi;return zi=p,m}function Xi(p,m,g){const _=Kr(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&ct.Optional?null:void 0!==m?m:void ve(j(p))}function Jn(p){return{toString:p}.toString()}var Wt=(()=>((Wt=Wt||{})[Wt.OnPush=0]="OnPush",Wt[Wt.Default=1]="Default",Wt))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const de=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),At={},et=[],ht=P({\u0275cmp:P}),Di=P({\u0275dir:P}),vt=P({\u0275pipe:P}),xn=P({\u0275mod:P}),mt=P({\u0275fac:P}),$t=P({__NG_ELEMENT_ID__:P});let pt=0;function Bn(p){return Jn(()=>{const g=!0===p.standalone,_={},y={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===Wt.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||et,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+pt++,styles:p.styles||et,_:null,setInput:null,schemas:p.schemas||null,tView:null},v=p.dependencies,E=p.features;return y.inputs=ea(p.inputs,_),y.outputs=ea(p.outputs),E&&E.forEach(k=>k(y)),y.directiveDefs=v?()=>("function"==typeof v?v():v).map(Bi).filter(Pr):null,y.pipeDefs=v?()=>("function"==typeof v?v():v).map(Ui).filter(Pr):null,y})}function Bi(p){return ti(p)||Ni(p)}function Pr(p){return null!==p}function dr(p){return Jn(()=>({type:p.type,bootstrap:p.bootstrap||et,declarations:p.declarations||et,imports:p.imports||et,exports:p.exports||et,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ea(p,m){if(null==p)return At;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const hd=Bn;function us(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function ti(p){return p[ht]||null}function Ni(p){return p[Di]||null}function Ui(p){return p[vt]||null}function Ne(p,m){const g=p[xn]||null;if(!g&&!0===m)throw new Error(`Type ${j(p)} does not have '\u0275mod' property.`);return g}function mn(p){return Array.isArray(p)&&"object"==typeof p[1]}function jn(p){return Array.isArray(p)&&!0===p[1]}function na(p){return 0!=(8&p.flags)}function Da(p){return 2==(2&p.flags)}function Ea(p){return 1==(1&p.flags)}function Nn(p){return null!==p.template}function ps(p){return 0!=(256&p[2])}function Be(p,m){return p.hasOwnProperty(mt)?p[mt]:null}class De{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Hi(){return zo}function zo(p){return p.type.prototype.ngOnChanges&&(p.setInput=ka),Ha}function Ha(){const p=Ir(this),m=p?.current;if(m){const g=p.previous;if(g===At)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function ka(p,m,g,_){const y=Ir(p)||function hr(p,m){return p[nn]=m}(p,{previous:At,current:null}),v=y.current||(y.current={}),E=y.previous,k=this.declaredInputs[g],R=E[k];v[k]=new De(R&&R.currentValue,m,E===At),p[_]=m}Hi.ngInherit=!0;const nn="__ngSimpleChanges__";function Ir(p){return p[nn]||null}function Qe(p){for(;Array.isArray(p);)p=p[0];return p}function fr(p,m){return Qe(m[p])}function Et(p,m){return Qe(m[p.index])}function er(p,m){return p.data[m]}function En(p,m){return p[m]}function Vt(p,m){const g=m[p];return mn(g)?g:g[0]}function O(p){return 4==(4&p[2])}function q(p){return 64==(64&p[2])}function $(p,m){return null==m?null:p[m]}function ce(p){p[18]=0}function ye(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const ge={lFrame:to(null),bindingsEnabled:!0};function at(){return ge.bindingsEnabled}function Me(){return ge.lFrame.lView}function Ht(){return ge.lFrame.tView}function gn(p){return ge.lFrame.contextLView=p,p[8]}function Or(p){return ge.lFrame.contextLView=null,p}function Mi(){let p=Pa();for(;null!==p&&64===p.type;)p=p.parent;return p}function Pa(){return ge.lFrame.currentTNode}function Xt(p,m){const g=ge.lFrame;g.currentTNode=p,g.isParent=m}function mr(){return ge.lFrame.isParent}function ms(){ge.lFrame.isParent=!1}function yn(){const p=ge.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function Vr(){return ge.lFrame.bindingIndex}function gs(){return ge.lFrame.bindingIndex++}function gr(p){const m=ge.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Bt(p,m){const g=ge.lFrame;g.bindingIndex=g.bindingRootIndex=p,bd(m)}function bd(p){ge.lFrame.currentDirectiveIndex=p}function aa(p){const m=ge.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function Fu(){return ge.lFrame.currentQueryIndex}function La(p){ge.lFrame.currentQueryIndex=p}function yd(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ju(p,m,g){if(g&ct.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&ct.Host||(y=yd(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=ge.lFrame=sa();return _.currentTNode=m,_.lView=p,!0}function eo(p){const m=sa(),g=p[1];ge.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function sa(){const p=ge.lFrame,m=null===p?null:p.child;return null===m?to(p):m}function to(p){const m={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function _s(){const p=ge.lFrame;return ge.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const Nu=_s;function io(){const p=_s();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function an(){return ge.lFrame.selectedIndex}function Br(p){ge.lFrame.selectedIndex=p}function ki(){const p=ge.lFrame;return er(p.tView,p.selectedIndex)}function Yu(){ge.lFrame.currentNamespace="svg"}function zu(){!function jp(){ge.lFrame.currentNamespace=null}()}function Jl(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:E,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:F,ngOnDestroy:G}=v;E&&(p.contentHooks||(p.contentHooks=[])).push(-g,E),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=G&&(p.destroyHooks||(p.destroyHooks=[])).push(g,G)}}function no(p,m,g){Ia(p,m,3,g)}function bs(p,m,g,_){(3&p[2])===g&&Ia(p,m,g,_)}function Ql(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Ia(p,m,g,_){const v=_??-1,E=m.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class _r{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function oa(p,m,g){let _=0;for(;_m){E=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Cd=!0;function Wo(p){const m=Cd;return Cd=p,m}let la=0;const Yn={};function $o(p,m){const g=vd(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ad(_.data,p),Ad(m,null),Ad(_.blueprint,null));const y=Xl(p,m),v=p.injectorIndex;if(Kl(y)){const E=jr(y),k=Va(y,m),R=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[E+F]|R[E+F]}return m[v+8]=y,v}function Ad(p,m){p.push(0,0,0,0,0,0,0,0,m)}function vd(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function Xl(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=zn(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ec(p,m,g){!function Ju(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty($t)&&(_=g[$t]),null==_&&(_=g[$t]=la++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:so:m}(g);if("function"==typeof v){if(!ju(m,p,_))return _&ct.Host?Td(y,0,_):Md(m,g,_,y);try{const E=v(_);if(null!=E||_&ct.Optional)return E;ve()}finally{Nu()}}else if("number"==typeof v){let E=null,k=vd(p,m),R=-1,F=_&ct.Host?m[16][6]:null;for((-1===k||_&ct.SkipSelf)&&(R=-1===k?Xl(p,m):m[k+8],-1!==R&&ic(_,!1)?(E=m[1],k=jr(R),m=Va(R,m)):k=-1);-1!==k;){const G=m[1];if(Jo(v,k,G.data)){const X=tc(k,m,g,E,_,F);if(X!==Yn)return X}R=m[k+8],-1!==R&&ic(_,m[1].data[k+8]===F)&&Jo(v,k,m)?(E=G,k=jr(R),m=Va(R,m)):k=-1}}return y}function tc(p,m,g,_,y,v){const E=m[1],k=E.data[p+8],G=ao(k,E,g,null==_?Da(k)&&Cd:_!=E&&0!=(3&k.type),y&ct.Host&&v===k);return null!==G?Yr(m,E,G,k):Yn}function ao(p,m,g,_,y){const v=p.providerIndexes,E=m.data,k=1048575&v,R=p.directiveStart,G=v>>20,oe=y?k+G:p.directiveEnd;for(let pe=_?k:k+G;pe=R&&Te.type===g)return pe}if(y){const pe=E[R];if(pe&&Nn(pe)&&pe.type===g)return R}return null}function Yr(p,m,g,_){let y=p[g];const v=m.data;if(function Uu(p){return p instanceof _r}(y)){const E=y;E.resolving&&function $e(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function Ae(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():be(p)}(v[g]));const k=Wo(E.canSeeViewProviders);E.resolving=!0;const R=E.injectImpl?Qt(E.injectImpl):null;ju(p,_,ct.Default);try{y=p[g]=E.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Yp(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const E=zo(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,E),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,E)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==R&&Qt(R),Wo(k),E.resolving=!1,Nu()}}return y}function Jo(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[mt]||nc(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[mt]||nc(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function nc(p){return le(p)?()=>{const m=nc(ne(p));return m&&m()}:Be(p)}function zn(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function rc(p){return function Qu(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(Wu(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(Mi(),p)}const ca="__parameters__";function Ba(p,m,g){return Jn(()=>{const _=function sc(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const E=new y(...v);return k.annotation=E,k;function k(R,F,G){const X=R.hasOwnProperty(ca)?R[ca]:Object.defineProperty(R,ca,{value:[]})[ca];for(;X.length<=G;)X.push(null);return(X[G]=X[G]||[]).push(E),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class ei{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function tr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?Fa(g,m):m(g))}function th(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Hd(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function As(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function ef(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Pd(p,m){const g=lo(p,m);if(g>=0)return p[1|g]}function lo(p,m){return function el(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),E=p[v<m?y=v:_=v+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return W}()?.createHTML(p)||p}function pa(p){return function nr(){if(void 0===Gi&&(Gi=null,de.trustedTypes))try{Gi=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return Gi}()?.createHTML(p)||p}class rl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class rA extends rl{getTypeName(){return"HTML"}}class aA extends rl{getTypeName(){return"Style"}}class sA extends rl{getTypeName(){return"Script"}}class f_ extends rl{getTypeName(){return"URL"}}class hf extends rl{getTypeName(){return"ResourceURL"}}function Ua(p){return p instanceof rl?p.changingThisBreaksApplicationSecurity:p}function al(p,m){const g=function oA(p){return p instanceof rl&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function lA(p){return new rA(p)}function cA(p){return new aA(p)}function dA(p){return new sA(p)}function pf(p){return new f_(p)}function m_(p){return new hf(p)}class ff{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class uA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Fd(m.trim())).join(", ")),this.buf.push(" ",E,'="',yf(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();_f.hasOwnProperty(g)&&!Ri.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(yf(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const h0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y_=/([^\#-~ |!])/g;function yf(p){return p.replace(/&/g,"&").replace(h0,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(y_,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let yh;function w_(p,m){let g=null;try{yh=yh||function gh(p){const m=new uA(p);return function hA(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new ff(m):m}(p);let _=m?String(m):"";g=yh.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=yh.getInertBodyElement(_)}while(_!==v);return we((new ho).sanitizeChildren(wf(g)||g))}finally{if(g){const _=wf(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function wf(p){return"content"in p&&function wh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var qi=(()=>((qi=qi||{})[qi.NONE=0]="NONE",qi[qi.HTML=1]="HTML",qi[qi.STYLE=2]="STYLE",qi[qi.SCRIPT=3]="SCRIPT",qi[qi.URL=4]="URL",qi[qi.RESOURCE_URL=5]="RESOURCE_URL",qi))();function C_(p){const m=jd();return m?pa(m.sanitize(qi.HTML,p)||""):al(p,"HTML")?pa(Ua(p)):w_(function N(){return void 0!==H?H:typeof document<"u"?document:void 0}(),be(p))}function Cf(p){const m=jd();return m?m.sanitize(qi.URL,p)||"":al(p,"URL")?Ua(p):Fd(be(p))}function jd(){const p=Me();return p&&p[12]}const vf=new ei("ENVIRONMENT_INITIALIZER"),M_=new ei("INJECTOR",-1),wA=new ei("INJECTOR_DEF_TYPES");class Ch{get(m,g=tl){if(g===tl){const _=new Error(`NullInjectorError: No provider for ${j(m)}!`);throw _.name="NullInjectorError",_}return g}}function xi(...p){return{\u0275providers:CA(0,p)}}function CA(p,...m){const g=[],_=new Set;let y;return Fa(m,v=>{const E=v;Ah(E,g,[],_)&&(y||(y=[]),y.push(E))}),void 0!==y&&sl(y,g),g}function sl(p,m){for(let g=0;g{m.push(v)})}}function Ah(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,v=qs(p);const E=!v&&ti(p);if(v||E){if(E&&!E.standalone)return!1;y=p}else{const R=p.ngModule;if(v=qs(R),!v)return!1;y=R}const k=_.has(y);if(E){if(k)return!1;if(_.add(y),E.dependencies){const R="function"==typeof E.dependencies?E.dependencies():E.dependencies;for(const F of R)Ah(F,m,g,_)}}else{if(!v)return!1;{if(null!=v.imports&&!k){let F;_.add(y);try{Fa(v.imports,G=>{Ah(G,m,g,_)&&(F||(F=[]),F.push(G))})}finally{}void 0!==F&&sl(F,m)}if(!k){const F=Be(y)||(()=>new y);m.push({provide:y,useFactory:F,deps:et},{provide:wA,useValue:y,multi:!0},{provide:vf,useValue:()=>Pi(y),multi:!0})}const R=v.providers;null==R||k||Fa(R,G=>{m.push(G)})}}return y!==p&&void 0!==p.providers}const Nd=P({provide:String,useValue:P});function Tf(p){return null!==p&&"object"==typeof p&&Nd in p}function yr(p){return"function"==typeof p}const ol=new ei("Set Injector scope."),pc={},vA={};let fc;function xs(){return void 0===fc&&(fc=new Ch),fc}class wn{}class vh extends wn{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,E_(m,E=>this.processProvider(E)),this.records.set(M_,Wi(void 0,this)),y.has("environment")&&this.records.set(wn,Wi(void 0,this));const v=this.records.get(ol);null!=v&&"string"==typeof v.value&&this.scopes.add(v.value),this.injectorDefTypes=new Set(this.get(wA.multi,et,ct.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=da(this),_=Qt(void 0);try{return m()}finally{da(g),Qt(_)}}get(m,g=tl,_=ct.Default){this.assertNotDestroyed();const y=da(this),v=Qt(void 0);try{if(!(_&ct.SkipSelf)){let k=this.records.get(m);if(void 0===k){const R=function SA(p){return"function"==typeof p||"object"==typeof p&&p instanceof ei}(m)&&Kr(m);k=R&&this.injectableDefInScope(R)?Wi(S_(m),pc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&ct.Self?xs():this.parent).get(m,g=_&ct.Optional&&g===tl?null:g)}catch(E){if("NullInjectorError"===E.name){if((E[ir]=E[ir]||[]).unshift(j(m)),y)throw E;return function af(p,m,g,_){const y=p[ir];throw m[sh]&&y.unshift(m[sh]),p.message=function sf(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=j(m);if(Array.isArray(m))y=m.map(j).join(" -> ");else if("object"==typeof m){let v=[];for(let E in m)if(m.hasOwnProperty(E)){let k=m[E];v.push(E+":"+("string"==typeof k?JSON.stringify(k):j(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(ah,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[ir]=null,p}(E,m,"R3InjectorError",this.source)}throw E}finally{Qt(v),da(y)}}resolveInjectorInitializers(){const m=da(this),g=Qt(void 0);try{const _=this.get(vf.multi,et,ct.Self);for(const y of _)y()}finally{da(m),Qt(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(j(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=yr(m=ne(m))?m:ne(m&&m.provide);const _=function D_(p){return Tf(p)?Wi(void 0,p.useValue):Wi(TA(p),pc)}(m);if(yr(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Wi(void 0,pc,!0),y.factory=()=>br(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===pc&&(g.value=vA,g.value=g.factory()),"object"==typeof g.value&&g.value&&function xA(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function S_(p){const m=Kr(p),g=null!==m?m.factory:Be(p);if(null!==g)return g;if(p instanceof ei)throw new ie(204,!1);if(p instanceof Function)return function Mf(p){const m=p.length;if(m>0)throw As(m,"?"),new ie(204,!1);const g=function Gs(p){const m=p&&(p[Hr]||p[ds]);if(m){const g=function ud(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function TA(p,m,g){let _;if(yr(p)){const y=ne(p);return Be(y)||S_(y)}if(Tf(p))_=()=>ne(p.useValue);else if(function Yd(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...br(p.deps||[]));else if(function fa(p){return!(!p||!p.useExisting)}(p))_=()=>Pi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function MA(p){return!!p.deps}(p))return Be(y)||S_(y);_=()=>new y(...br(p.deps))}return _}function Wi(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function f0(p){return!!p.\u0275providers}function E_(p,m){for(const g of p)Array.isArray(g)?E_(g,m):f0(g)?E_(g.\u0275providers,m):m(g)}class Cn{}class Mh{resolveComponentFactory(m){throw function Th(p){const m=Error(`No component factory found for ${j(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let qr=(()=>{class p{}return p.NULL=new Mh,p})();function qa(){return wr(Mi(),Me())}function wr(p,m){return new rr(Et(p,m))}let rr=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=qa,p})();function m0(p){return p instanceof rr?p.nativeElement:p}class DA{}let EA=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function HA(){const p=Me(),g=Vt(Mi().index,p);return(mn(g)?g:p)[11]}(),p})(),g0=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class kA{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const _0=new kA("14.1.2"),H_={};function O_(p){return p.ngOriginalError}class xh{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&O_(m);for(;g&&O_(g);)g=O_(g);return g||null}}const V_=new Map;let H0=0;const F_="__ngContext__";function Un(p,m){mn(m)?(p[F_]=m[20],function P0(p){V_.set(p[20],p)}(m)):p[F_]=m}function Sh(p){const m=p[F_];return"number"==typeof m?function VA(p){return V_.get(p)||null}(m):m||null}function j_(p){const m=Sh(p);return m?mn(m)?m:m.lView:null}const F0=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(de))();function UA(p){return p.ownerDocument.defaultView}function fo(p){return p instanceof Function?p():p}var Ss=(()=>((Ss=Ss||{})[Ss.Important=1]="Important",Ss[Ss.DashCase=2]="DashCase",Ss))();function Y_(p,m){return undefined(p,m)}function Dh(p){const m=p[3];return jn(m)?m[3]:m}function z_(p){return $A(p[13])}function U_(p){return $A(p[4])}function $A(p){for(;null!==p&&!jn(p);)p=p[4];return p}function Gd(p,m,g,_,y){if(null!=_){let v,E=!1;jn(_)?v=_:mn(_)&&(E=!0,_=_[0]);const k=Qe(_);0===p&&null!==g?null==y?Fe(m,g,k):Ke(m,g,k,y||null,!0):1===p&&null!==g?Ke(m,g,k,y||null,!0):2===p?function K_(p,m,g){const _=ji(p,m);_&&function Z_(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,k,E):3===p&&m.destroyNode(k),null!=v&&function tb(p,m,g,_,y){const v=g[7];v!==Qe(g)&&Gd(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Hd(p,10+m);!function $0(p,m){_c(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const E=v[19];null!==E&&E.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $i(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&_c(p,m,g,3,null,null),function Q0(p){let m=p[13];if(!m)return ll(p[1],p);for(;m;){let g=null;if(mn(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)mn(m)&&ll(m[1],m),m=m[3];null===m&&(m=p),mn(m)&&ll(m[1],m),g=m&&m[4]}m=g}}(m)}}function ll(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function cl(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const E=_[y=g[v+1]];g[v].call(E)}if(null!==_){for(let v=y+1;v<_.length;v++)(0,_[v])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&jn(m[3])){g!==m[3]&&JA(g,m);const _=m[19];null!==_&&_.detachView(p)}!function BA(p){V_.delete(p[20])}(m)}}function W_(p,m,g){return function $_(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===te.None||y===te.Emulated)return null}return Et(_,g)}(p,m.parent,g)}function Ke(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Fe(p,m,g){p.appendChild(m,g)}function Fi(p,m,g,_,y){null!==_?Ke(p,m,g,_,y):Fe(p,m,g)}function ji(p,m){return p.parentNode(m)}function J_(p,m,g){return Q_(p,m,g)}let Q_=function Hf(p,m,g){return 40&p.type?Et(p,g):null};function kf(p,m,g,_){const y=W_(p,_,m),v=m[11],k=J_(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[X+1].toLowerCase();const pe=8&_?oe:null;if(pe&&-1!==KA(pe,F,0)||2&_&&F!==oe){if(Wr(_))return!1;E=!0}}}}else{if(!E&&!Wr(_)&&!Wr(R))return!1;if(E&&Wr(R))continue;E=!1,_=R|1&_}}return Wr(_)||E}function Wr(p){return 0==(1&p)}function ev(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+E:4&_&&(y+=" "+E);else""!==y&&!Wr(E)&&(m+=rb(v,y),y=""),_=E,v=v||!Wr(_);g++}return""!==y&&(m+=rb(v,y)),m}const kt={};function Vf(p){Bf(Ht(),Me(),an()+p,!1)}function Bf(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&no(m,v,g)}else{const v=p.preOrderHooks;null!==v&&bs(m,v,0,g)}Br(g)}function lv(p,m=null,g=null,_){const y=cv(p,m,g,_);return y.resolveInjectorInitializers(),y}function cv(p,m=null,g=null,_,y=new Set){const v=[g||et,xi(p)];return _=_||("object"==typeof p?void 0:j(p)),new vh(v,m||xs(),_||null,y)}let Wa=(()=>{class p{static create(g,_){if(Array.isArray(g))return lv({name:""},_,g,"");{const y=g.name??"";return lv({name:y},g.parent,g.providers,y)}}}return p.THROW_IF_NOT_FOUND=tl,p.NULL=new Ch,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Pi(M_)}),p.__NG_ELEMENT_ID__=-1,p})();function wc(p,m=ct.Default){const g=Me();return null===g?Pi(p,m):Zo(Mi(),g,ne(p),m)}function fb(){throw new Error("invalid")}function Ph(p,m){return p<<17|m<<2}function ma(p){return p>>17&32767}function ot(p){return 2|p}function go(p){return(131068&p)>>2}function gb(p,m){return-131069&p|m<<2}function sr(p){return 1|p}function Qf(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&Bf(p,m,22,!1),g(_,y)}finally{Br(v)}}function _a(p,m,g){if(na(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=R&&k.push(R),k.push(_,y,E)}}function Lb(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Ib(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Vh(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&Bb(g)}}function Bb(p){for(let _=z_(p);null!==_;_=U_(_))for(let y=10;y<_.length;y++){const v=_[y];if(q(v))if(512&v[2]){const E=v[1];eu(E,v,E.template,v[8])}else v[5]>0&&Bb(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&Bb(y)}}function yS(p,m){const g=Vt(m,p),_=g[1];(function Ov(p,m){for(let g=m.length;gPromise.resolve(null))();function Fv(p){return p[7]||(p[7]=[])}function jv(p){return p.cleanup||(p.cleanup=[])}function Ja(p,m,g){return(null===p||Nn(p))&&(g=function Dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function ml(p,m){const g=p[9],_=g?g.get(xh,null):null;_&&_.handleError(m)}function Nb(p,m,g,_,y){for(let v=0;v-1&&(Sf(m,_),Hd(g,_))}this._attachedToViewContainer=!1}$i(this._lView[1],this._lView)}onDestroy(m){im(this._lView[1],this._lView,null,m)}markForCheck(){fl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Fb(p,m,g){const _=m[10];_.begin&&_.begin();try{eu(p,m,p.template,g)}catch(y){throw ml(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function J0(p,m){_c(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class CS extends Fh{constructor(m){super(m),this._view=m}detectChanges(){Bv(this._view)}checkNoChanges(){}get context(){return null}}class tu extends qr{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ti(m);return new _l(g,this.ngModule)}}function gl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class Nv{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,H_,_);return y!==H_||g===H_?y:this.parentInjector.get(m,g,_)}}class _l extends Cn{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function rv(p){return p.map(nv).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return gl(this.componentDef.inputs)}get outputs(){return gl(this.componentDef.outputs)}create(m,g,_,y){let v=(y=y||this.ngModule)instanceof wn?y:y?.injector;v&&null!==this.componentDef.getStandaloneInjector&&(v=this.componentDef.getStandaloneInjector(v)||v);const E=v?new Nv(m,v):m,k=E.get(DA,null);if(null===k)throw new ie(407,!1);const R=E.get(g0,null),F=k.createRenderer(null,this.componentDef),G=this.componentDef.selectors[0][0]||"div",X=_?function Za(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(F,_,this.componentDef.encapsulation):q_(k.createRenderer(null,this.componentDef),G,function yo(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(G)),oe=this.componentDef.onPush?288:272,pe=function SS(p,m){return{components:[],scheduler:p||F0,clean:wS,playerHandler:m||null,flags:0}}(),Te=tm(0,null,null,1,0,null,null,null,null,null),Ie=Lh(null,Te,pe,oe,null,null,k,F,R,E,null);let qe,Xe;eo(Ie);try{const bt=function xS(p,m,g,_,y,v){const E=g[1];g[22]=p;const R=Mc(E,22,2,"#host",null),F=R.mergedAttrs=m.hostAttrs;null!==F&&(sm(R,F,!0),null!==p&&(oa(y,p,F),null!==R.classes&&bc(y,p,R.classes),null!==R.styles&&ib(y,p,R.styles)));const G=_.createRenderer(p,m),X=Lh(g,em(m),null,m.onPush?32:16,g[22],R,_,G,v||null,null,null);return E.firstCreatePass&&(ec($o(R,g),E,m.type),Ib(E,R),Ob(R,g.length,1)),_o(g,X),g[22]=X}(X,this.componentDef,Ie,k,F);if(X)if(_)oa(F,X,["ng-version",_0.full]);else{const{attrs:He,classes:ut}=function av(p){const m=[],g=[];let _=1,y=2;for(;_0&&bc(F,X,ut.join(" "))}if(Xe=er(Te,22),void 0!==g){const He=Xe.projection=[];for(let ut=0;ut=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=qo(y.hostAttrs,g=qo(g,y.hostAttrs))}}(_)}function Yb(p){return p===At?{}:p===et?[]:p}function zv(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function zb(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function lm(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let Co=null;function Sc(){if(!Co){const p=de.Symbol;if(p&&p.iterator)Co=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(Qe(qt[_.index])):_.index;let ut=null;if(!k&&R&&(ut=function Zv(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof E&&(v+=2)}return null}(p,m,y,_.index)),null!==ut)(ut.__ngLastListenerFn__||ut).__ngNextListenerFn__=v,ut.__ngLastListenerFn__=v,pe=!1;else{v=Qb(_,m,X,v,!1);const qt=g.listen(Xe,y,v);oe.push(v,qt),G&&G.push(y,He,bt,bt+1)}}else v=Qb(_,m,X,v,!1);const Te=_.outputs;let Ie;if(pe&&null!==Te&&(Ie=Te[y])){const qe=Ie.length;if(qe)for(let Xe=0;Xe0;)m=m[15],p--;return m}(p,ge.lFrame.contextLView))[8]}(p)}function Jv(p,m){let g=null;const _=function eS(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const pn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wa(p){return p.substring(pn.key,pn.keyEnd)}function Xv(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function cy(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),Lc(p,m,g))}function Lc(p,m,g){for(;m=0;g=Xv(m,g))kn(p,wa(m),!0)}function es(p,m,g,_){const y=Me(),v=Ht(),E=gr(2);v.firstUpdatePass&&hy(v,p,E,_),m!==kt&&on(y,E,m)&&gy(v,v.data[an()],y,y[11],p,y[E+1]=function To(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=j(Ua(p)))),p}(m,g),_,E)}function Tr(p,m,g,_){const y=Ht(),v=gr(2);y.firstUpdatePass&&hy(y,null,v,_);const E=Me();if(g!==kt&&on(E,v,g)){const k=y.data[an()];if(Mm(k,_)&&!Vc(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=z(R,g||"")),xt(y,k,E,g,_)}else!function iT(p,m,g,_,y,v,E,k){y===kt&&(y=et);let R=0,F=0,G=0=p.expandoStartIndex}function hy(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[an()],E=Vc(p,g);Mm(v,_)&&null===m&&!E&&(m=!1),m=function tT(p,m,g,_){const y=aa(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=au(g=Tn(null,p,m,g,_),m.attrs,_),v=null);else{const E=m.directiveStylingLast;if(-1===E||p[E]!==y)if(g=Tn(y,p,m,g,_),null===v){let R=function Tm(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==go(_))return p[ma(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=Tn(null,p,m,R[1],_),R=au(R,m.attrs,_),function py(p,m,g,_){p[ma(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else v=function vl(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else G=g;if(y)if(0!==R){const oe=ma(p[k+1]);p[_+1]=Ph(oe,k),0!==oe&&(p[oe+1]=gb(p[oe+1],_)),p[k+1]=function gv(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=Ph(k,0),0!==k&&(p[k+1]=gb(p[k+1],_)),k=_;else p[_+1]=Ph(R,0),0===k?k=_:p[R+1]=gb(p[R+1],_),R=_;F&&(p[_+1]=ot(p[_+1])),sy(p,G,_,!0),sy(p,G,_,!1),function PS(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&lo(v,m)>=0&&(g[_+1]=sr(g[_+1]))}(m,G,p,_,v),E=Ph(k,R),v?m.classBindings=E:m.styleBindings=E}(y,v,m,g,E,_)}}function Tn(p,m,g,_,y){let v=null;const E=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],F=Array.isArray(R),G=F?R[1]:R,X=null===G;let oe=g[y+1];oe===kt&&(oe=X?et:void 0);let pe=X?Pd(oe,_):G===_?oe:void 0;if(F&&!Zh(pe)&&(pe=Pd(R,_)),Zh(pe)&&(k=pe,E))return k;const Te=p[y+1];y=E?ma(Te):go(Te)}if(null!==m){let R=v?m.residualClasses:m.residualStyles;null!=R&&(k=Pd(R,_))}return k}function Zh(p){return void 0!==p}function Mm(p,m){return 0!=(p.flags&(m?16:32))}function ln(p,m=""){const g=Me(),_=Ht(),y=p+22,v=_.firstCreatePass?Mc(_,y,1,m,null):_.data[y],E=g[y]=function G_(p,m){return p.createText(m)}(g[11],m);kf(_,g,E,v),Xt(v,!1)}function ts(p){return Jh("",p,""),ts}function Jh(p,m,g){const _=Me(),y=yl(_,p,m,g);return y!==kt&&bo(_,an(),y),Jh}function Li(p,m,g,_,y){const v=Me(),E=function nu(p,m,g,_,y,v){const k=vo(p,Vr(),g,y);return gr(2),k?m+be(g)+_+be(y)+v:kt}(v,p,m,g,_,y);return E!==kt&&bo(v,an(),E),Li}function Qh(p,m,g,_,y,v,E,k,R,F,G){const X=Me(),oe=Dc(X,p,m,g,_,y,v,E,k,R,F,G);return oe!==kt&&bo(X,an(),oe),Qh}function Pm(p,m,g){Tr(kn,si,yl(Me(),p,m,g),!0)}function su(p,m,g){const _=Me();return on(_,gs(),m)&&vn(Ht(),ki(),_,p,m,_[11],g,!0),su}function Bc(p,m,g){const _=Me();if(on(_,gs(),m)){const v=Ht(),E=ki();vn(v,E,_,p,m,Ja(aa(v.data),E,_),g,!0)}return Bc}const Tl=void 0;var sT=["en",[["a","p"],["AM","PM"],Tl],[["AM","PM"],Tl,Tl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Tl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Tl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Tl,"{1} 'at' {0}",Tl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jm(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let ou={};function Dy(p){const m=function Ey(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=lT(m);if(g)return g;const _=m.split("-")[0];if(g=lT(_),g)return g;if("en"===_)return sT;throw new ie(701,!1)}function oT(p){return Dy(p)[ft.PluralCase]}function lT(p){return p in ou||(ou[p]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[p]),ou[p]}var ft=(()=>((ft=ft||{})[ft.LocaleId=0]="LocaleId",ft[ft.DayPeriodsFormat=1]="DayPeriodsFormat",ft[ft.DayPeriodsStandalone=2]="DayPeriodsStandalone",ft[ft.DaysFormat=3]="DaysFormat",ft[ft.DaysStandalone=4]="DaysStandalone",ft[ft.MonthsFormat=5]="MonthsFormat",ft[ft.MonthsStandalone=6]="MonthsStandalone",ft[ft.Eras=7]="Eras",ft[ft.FirstDayOfWeek=8]="FirstDayOfWeek",ft[ft.WeekendRange=9]="WeekendRange",ft[ft.DateFormat=10]="DateFormat",ft[ft.TimeFormat=11]="TimeFormat",ft[ft.DateTimeFormat=12]="DateTimeFormat",ft[ft.NumberSymbols=13]="NumberSymbols",ft[ft.NumberFormats=14]="NumberFormats",ft[ft.CurrencyCode=15]="CurrencyCode",ft[ft.CurrencySymbol=16]="CurrencySymbol",ft[ft.CurrencyName=17]="CurrencyName",ft[ft.Currencies=18]="Currencies",ft[ft.Directionality=19]="Directionality",ft[ft.PluralCase=20]="PluralCase",ft[ft.ExtraData=21]="ExtraData",ft))();const Fc="en-US";let tp=Fc;function ig(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let v=0;v>20;if(yr(p)||!p.multi){const pe=new _r(R,y,wc),Te=ng(k,m,y?G:G+oe,X);-1===Te?(ec($o(F,E),v,k),$y(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),E.push(pe)):(g[Te]=pe,E[Te]=pe)}else{const pe=ng(k,m,G+oe,X),Te=ng(k,m,G,G+oe),Ie=pe>=0&&g[pe],qe=Te>=0&&g[Te];if(y&&!qe||!y&&!Ie){ec($o(F,E),v,k);const Xe=function ET(p,m,g,_,y){const v=new _r(p,g,wc);return v.multi=[],v.index=m,v.componentProviders=0,cp(v,y,_&&!g),v}(y?Jy:Zy,g.length,y,_,R);!y&&qe&&(g[Te].providerFactory=Xe),$y(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(Xe),E.push(Xe)}else $y(v,p,pe>-1?pe:Te,cp(g[y?Te:pe],R,!y&&_));!y&&_&&qe&&g[Te].componentProviders++}}}function $y(p,m,g,_){const y=yr(m),v=function x_(p){return!!p.useClass}(m);if(y||v){const R=(v?ne(m.useClass):m).prototype.ngOnDestroy;if(R){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const G=F.indexOf(g);-1===G?F.push(g,[_,R]):F[G+1].push(_,R)}else F.push(g,R)}}}function cp(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function ng(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function Zy(p,m,g,_){return Rs(this.multi,[])}function Jy(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const E=this.providerFactory.componentProviders,k=Yr(g,g[1],this.providerFactory.index,_);v=k.slice(0,E),Rs(y,v);for(let R=E;R{g.providersResolver=(_,y)=>function Wy(p,m,g){const _=Ht();if(_.firstCreatePass){const y=Nn(p);ig(g,_.data,_.blueprint,y,!0),ig(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class zc{}class ag{}function HT(p,m){return new is(p,m??null)}class is extends zc{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new tu(this);const _=Ne(m);this._bootstrapComponents=fo(_.bootstrap),this._r3Injector=cv(m,g,[{provide:zc,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],j(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Uc extends ag{constructor(m){super(),this.moduleType=m}create(m){return new is(this.moduleType,m)}}class kT extends zc{constructor(m,g,_){super(),this.componentFactoryResolver=new tu(this),this.instance=null;const y=new vh([...m,{provide:zc,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],g||xs(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function dp(p,m,g=null){return new kT(p,m,g).injector}function tw(p,m,g){const _=yn()+p,y=Me();return y[_]===kt?Ka(y,_,g?m.call(g):m()):function Ao(p,m){return p[m]}(y,_)}function iw(p,m,g,_){return zT(Me(),yn(),p,m,g,_)}function nw(p,m,g,_,y){return UT(Me(),yn(),p,m,g,_,y)}function up(p,m){const g=p[m];return g===kt?void 0:g}function zT(p,m,g,_,y,v){const E=m+g;return on(p,E,y)?Ka(p,E+1,v?_.call(v,y):_(y)):up(p,E+1)}function UT(p,m,g,_,y,v,E){const k=m+g;return vo(p,k,y,v)?Ka(p,k+2,E?_.call(E,y,v):_(y,v)):up(p,k+2)}function dg(p,m,g,_,y,v,E,k){const R=m+g;return function Yh(p,m,g,_,y){const v=vo(p,m,g,_);return on(p,m+2,y)||v}(p,R,y,v,E)?Ka(p,R+3,k?_.call(k,y,v,E):_(y,v,E)):up(p,R+3)}function aw(p,m){const g=Ht();let _;const y=p+22;g.firstCreatePass?(_=function GT(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Be(_.type)),E=Qt(wc);try{const k=Wo(!1),R=v();return Wo(k),function zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Me(),y,R),R}finally{Qt(E)}}function fu(p,m,g){const _=p+22,y=Me(),v=En(y,_);return mu(y,_)?zT(y,yn(),m,v.transform,g,v):v.transform(g)}function ug(p,m,g,_){const y=p+22,v=Me(),E=En(v,y);return mu(v,y)?UT(v,yn(),m,E.transform,g,_,E):E.transform(g,_)}function sw(p,m,g,_,y){const v=p+22,E=Me(),k=En(E,v);return mu(E,v)?dg(E,yn(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function mu(p,m){return p[1].data[m].pure}function hg(p){return m=>{setTimeout(p,void 0,m)}}const Ls=class ZT extends C.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,v=g||(()=>null),E=_;if(m&&"object"==typeof m){const R=m;y=R.next?.bind(R),v=R.error?.bind(R),E=R.complete?.bind(R)}this.__isAsync&&(v=hg(v),y&&(y=hg(y)),E&&(E=hg(E)));const k=super.subscribe({next:y,error:v,complete:E});return m instanceof i.w0&&m.add(k),k}};function JT(){return this._results[Sc()]()}class Eo{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Sc(),_=Eo.prototype;_[g]||(_[g]=JT)}get changes(){return this._changes||(this._changes=new Ls)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=tr(m);(this._changesDetected=!function eh(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=$S,p})();const QT=Ho,KT=class extends QT{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Lh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const E=this._declarationLView[19];return null!==E&&(y[19]=E.createEmbeddedView(_)),Ih(_,y,m),new Fh(y)}};function $S(){return gu(Mi(),Me())}function gu(p,m){return 4&p.type?new KT(m,p,wr(p,m)):null}let _u=(()=>{class p{}return p.__NG_ELEMENT_ID__=XT,p})();function XT(){return lw(Mi(),Me())}const ZS=_u,pg=class extends ZS{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new Hn(this._hostTNode,this._hostLView)}get parentInjector(){const m=Xl(this._hostTNode,this._hostLView);if(Kl(m)){const g=Va(m,this._hostLView),_=jr(m);return new Hn(g[1].data[_+8],g)}return new Hn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=ow(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,v;"number"==typeof _?y=_:null!=_&&(y=_.index,v=_.injector);const E=m.createEmbeddedView(g||{},v);return this.insert(E,y),E}createComponent(m,g,_,y,v){const E=m&&!function Xo(p){return"function"==typeof p}(m);let k;if(E)k=g;else{const X=g||{};k=X.index,_=X.injector,y=X.projectableNodes,v=X.environmentInjector||X.ngModuleRef}const R=E?m:new _l(ti(m)),F=_||this.parentInjector;if(!v&&null==R.ngModule){const oe=(E?F:this.parentInjector).get(wn,null);oe&&(v=oe)}const G=R.create(F,y,void 0,v);return this.insert(G.hostView,k),G}insert(m,g){const _=m._lView,y=_[1];if(function V(p){return jn(p[3])}(_)){const G=this.indexOf(m);if(-1!==G)this.detach(G);else{const X=_[3],oe=new pg(X,X[6],X[3]);oe.detach(oe.indexOf(m))}}const v=this._adjustIndex(g),E=this._lContainer;!function K0(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(E[k/2]);else{const F=v[k+1],G=m[-R];for(let X=10;X{class p{constructor(g){this.appInits=g,this.resolve=Au,this.reject=Au,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:R})});g.push(E)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Pi(Os,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Sg=new ei("AppId",{providedIn:"root",factory:function vu(){return`${Xc()}${Xc()}${Xc()}`}});function Xc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Dg=new ei("Platform Initializer"),Pw=new ei("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),bp=new ei("appBootstrapListener"),Eg=new ei("AnimationModuleType");let Hg=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const kg=new ei("LocaleId",{providedIn:"root",factory:()=>lh(kg,ct.Optional|ct.SkipSelf)||function Yi(){return typeof $localize<"u"&&$localize.locale||Fc}()}),St=new ei("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class yM{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let wp=(()=>{class p{compileModuleSync(g){return new Uc(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=fo(Ne(g).declarations).reduce((E,k)=>{const R=ti(k);return R&&E.push(new _l(R)),E},[]);return new yM(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const CM=(()=>Promise.resolve(0))();function Lg(p){typeof Zone>"u"?CM.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class $n{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ls(!1),this.onMicrotaskEmpty=new Ls(!1),this.onStable=new Ls(!1),this.onError=new Ls(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const v=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new v("Angular"))}Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function Iw(){let p=de.requestAnimationFrame,m=de.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function vM(p){const m=()=>{!function ed(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(de,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Pl(p),p.isCheckStableRunning=!0,Ig(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Pl(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,E,k)=>{try{return Ow(p),g.invokeTask(y,v,E,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),Vw(p)}},onInvoke:(g,_,y,v,E,k,R)=>{try{return Ow(p),g.invoke(y,v,E,k,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),Vw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Pl(p),Ig(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$n.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if($n.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,E=v.scheduleEventTask("NgZoneEvent: "+y,m,AM,Au,Au);try{return v.runTask(E,g,_)}finally{v.cancelTask(E)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const AM={};function Ig(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Pl(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Ow(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function Vw(p){p._nesting--,Ig(p)}class In{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ls,this.onMicrotaskEmpty=new Ls,this.onStable=new Ls,this.onError=new Ls}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}const Bw=new ei(""),Zr=new ei("");let Vg,TM=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Vg||(function cD(p){Vg=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$n.assertNotInAngularZone(),Lg(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Lg(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(E=>E.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Pi($n),Pi(Og),Pi(Zr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),Og=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return Vg?.findTestabilityInTree(this,g,_)??null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Po=null;const Fw=new ei("AllowMultipleToken"),Bg=new ei("PlatformDestroyListeners");class Sr{constructor(m,g){this.name=m,this.token=g}}function Ro(p,m,g=[]){const _=`Platform: ${m}`,y=new ei(_);return(v=[])=>{let E=jw();if(!E||E.injector.get(Fw,!1)){const k=[...g,...v,{provide:y,useValue:!0}];p?p(k):function Dr(p){if(Po&&!Po.get(Fw,!1))throw new ie(400,!1);Po=p;const m=p.get(DM);(function Tu(p){const m=p.get(Dg,null);m&&m.forEach(g=>g())})(p)}(function SM(p=[],m){return Wa.create({name:m,providers:[{provide:ol,useValue:"platform"},{provide:Bg,useValue:new Set([()=>Po=null])},...p]})}(k,_))}return function uD(p){const m=jw();if(!m)throw new ie(401,!1);return m}()}}function jw(){return Po?.get(DM)??null}let DM=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function Nw(p,m){let g;return g="noop"===p?new In:("zone.js"===p?void 0:p)||new $n(m),g}(_?.ngZone,function EM(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),v=[{provide:$n,useValue:y}];return y.run(()=>{const E=Wa.create({providers:v,parent:this.injector,name:g.moduleType.name}),k=g.create(E),R=k.injector.get(xh,null);if(!R)throw new ie(402,!1);return y.runOutsideAngular(()=>{const F=y.onError.subscribe({next:G=>{R.handleError(G)}});k.onDestroy(()=>{jg(this._modules,k),F.unsubscribe()})}),function Yw(p,m,g){try{const _=g();return Gh(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(R,y,()=>{const F=k.injector.get(Kc);return F.runInitializers(),F.donePromise.then(()=>(function Ym(p){ni(p,"Expected localeId to be defined"),"string"==typeof p&&(tp=p.toLowerCase().replace(/_/g,"-"))}(k.injector.get(kg,Fc)||Fc),this._moduleDoBootstrap(k),k))})})}bootstrapModule(g,_=[]){const y=HM({},_);return function MM(p,m,g){const _=new Uc(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Fg);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Bg,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Pi(Wa))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function HM(p,m){return Array.isArray(m)?m.reduce(HM,p):{...p,...m}}let Fg=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const v=new D.y(k=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{k.next(this._stable),k.complete()})}),E=new D.y(k=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{$n.assertNotInAngularZone(),Lg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,k.next(!0))})})});const F=this._zone.onUnstable.subscribe(()=>{$n.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{k.next(!1)}))});return()=>{R.unsubscribe(),F.unsubscribe()}});this.isStable=(0,x.T)(v,E.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Cn;if(!this._injector.get(Kc).done)throw!y&&ns(g),new ie(405,false);let E;E=y?g:this._injector.get(qr).resolveComponentFactory(g),this.componentTypes.push(E.componentType);const k=function xr(p){return p.isBoundToModule}(E)?void 0:this._injector.get(zc),F=E.create(Wa.NULL,[],_||E.selector,k),G=F.location.nativeElement,X=F.injector.get(Bw,null);return X?.registerApplication(G),F.onDestroy(()=>{this.detachView(F.hostView),jg(this.components,F),X?.unregisterApplication(G)}),this._loadComponent(F),F}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;jg(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(bp,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>jg(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Pi($n),Pi(wn),Pi(xh))},p.\u0275prov=ri({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function jg(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let Uw=!0;function hD(){Uw=!1}let fD=(()=>{class p{}return p.__NG_ELEMENT_ID__=mD,p})();function mD(p){return function PM(p,m,g){if(Da(p)&&!g){const _=Vt(p.index,m);return new Fh(_,_)}return 47&p.type?new Fh(m[16],m):null}(Mi(),Me(),16==(16&p))}class VM{constructor(){}supports(m){return iu(m)}create(m){return new $w(m)}}const yD=(p,m)=>m;class $w{constructor(m){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=m||yD}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const E=!_||g&&g.currentIndex{E=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,E)?(_&&(g=this._verifyReinsertion(g,k,E,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,E,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new wD(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new FM),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new FM),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class wD{constructor(m,g){this.item=m,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class BM{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class FM{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new BM,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jM(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,E=y._next;return v&&(v._next=E),E&&(E._prev=v),y._next=null,y._prev=null,y}const _=new NM(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class NM{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Qw(){return new Kw([new VM])}let Kw=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||Qw()),deps:[[p,new Ms,new co]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Qw}),p})();function YM(){return new Xw([new Zw])}let Xw=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||YM()),deps:[[p,new Ms,new co]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:YM}),p})();const AD=Ro(null,"core",[]);let vD=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Pi(Fg))},p.\u0275mod=dr({type:p}),p.\u0275inj=vi({}),p})();function TD(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let U;return function(C){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(C||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(M){return this.data.get(M)}removeItem(M){this.data.delete(M)}setItem(M,C){this.data.set(M,C)}}return Y.\u0275fac=function(M){return new(M||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(U){this.type=U}}class OAuthSuccessEvent extends OAuthEvent{constructor(U,M=null){super(U),this.info=M}}class OAuthInfoEvent extends OAuthEvent{constructor(U,M=null){super(U),this.info=M}}class OAuthErrorEvent extends OAuthEvent{constructor(U,M,C=null){super(U),this.reason=M,this.params=C}}function b64DecodeUnicode(Y){const U=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(U).split("").map(function(M){return"%"+("00"+M.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(U){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=M=>{location.href=M},U&&Object.assign(this,U)}}class WebHttpUrlEncodingCodec{encodeKey(U){return encodeURIComponent(U)}encodeValue(U){return encodeURIComponent(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(U){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let C=M.inferHashAlgorithm(U.idTokenHeader),i=yield M.calcHash(U.accessToken,C),x=base64UrlEncode(i.substr(0,i.length/2)),S=U.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(U){let M=U.alg;if(!M.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+M);return"sha-"+M.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(M){let C=M||window.location.hash;if(C=decodeURIComponent(C),0!==C.indexOf("#"))return{};const i=C.indexOf("?");return C=C.substr(i>-1?i+1:1),this.parseQueryString(C)}parseQueryString(M){const C={};let i,D,x,S,P,L,j;if(null===M)return C;i=M.split("&");for(let z=0;z>6,D[S++]=128|63&P):P<55296||P>=57344?(D[S++]=224|P>>12,D[S++]=128|P>>6&63,D[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&Y.charCodeAt(++C)),D[S++]=240|P>>18,D[S++]=128|P>>12&63,D[S++]=128|P>>6&63,D[S++]=128|63&P);Y=D}else{if("object"!==i)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(U,!0).update(Y).array());var L=[],j=[];for(C=0;C<64;++C){var z=Y[C]||0;L[C]=92^z,j[C]=54^z}Sha256.call(this,U,M),this.update(j),this.oKeyPad=L,this.inner=!0,this.sharedMemory=M}Sha256.prototype.update=function(Y){if(!this.finalized){var U,M=typeof Y;if("string"!==M){if("object"!==M)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);U=!0}for(var C,D,i=0,x=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=C<>2]|=(192|C>>6)<>2]|=(128|63&C)<=57344?(S[D>>2]|=(224|C>>12)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<>2]|=(240|C>>18)<>2]|=(128|C>>12&63)<>2]|=(128|C>>6&63)<>2]|=(128|63&C)<=64?(this.block=S[16],this.start=D-64,this.hash(),this.hashed=!0):this.start=D}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,U=this.lastByteIndex;Y[16]=this.block,Y[U>>2]|=EXTRA[3&U],this.block=Y[16],U>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var L,Q,re,ie,me,be,Y=this.h0,U=this.h1,M=this.h2,C=this.h3,i=this.h4,D=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+(((Q=P[L-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+P[L-7]+(((Q=P[L-2])>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)<<0;for(be=U&M,L=0;L<64;L+=4)this.first?(this.is224?(re=300032,S=(Q=P[0]-1413257819)-150054599<<0,C=Q+24177077<<0):(re=704751109,S=(Q=P[0]-210244248)-1521486534<<0,C=Q+143694565<<0),this.first=!1):(S=C+(Q=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&D^~i&x)+K[L]+P[L])<<0,C=Q+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((re=Y&U)^Y&M^be))<<0),x=M+(Q=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&D)+K[L+1]+P[L+1])<<0,M=Q+(((C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10))+((ie=C&Y)^C&U^re))<<0,D=U+(Q=D+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[L+2]+P[L+2])<<0,U=Q+(((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+((me=M&C)^M&Y^ie))<<0,i=Y+(Q=i+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&x^~D&S)+K[L+3]+P[L+3])<<0,Y=Q+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((be=U&M)^U&C^me))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+M<<0,this.h3=this.h3+C<<0,this.h4=this.h4+i<<0,this.h5=this.h5+D<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,M=this.h2,C=this.h3,i=this.h4,D=this.h5,x=this.h6,S=this.h7,P=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[15&U]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[15&C]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[D>>28&15]+HEX_CHARS[D>>24&15]+HEX_CHARS[D>>20&15]+HEX_CHARS[D>>16&15]+HEX_CHARS[D>>12&15]+HEX_CHARS[D>>8&15]+HEX_CHARS[D>>4&15]+HEX_CHARS[15&D]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,U=this.h1,M=this.h2,C=this.h3,i=this.h4,D=this.h5,x=this.h6,S=this.h7,P=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,U>>24&255,U>>16&255,U>>8&255,255&U,M>>24&255,M>>16&255,M>>8&255,255&M,C>>24&255,C>>16&255,C>>8&255,255&C,i>>24&255,i>>16&255,i>>8&255,255&i,D>>24&255,D>>16&255,D>>8&255,255&D,x>>24&255,x>>16&255,x>>8&255,255&x];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),U=new DataView(Y);return U.setUint32(0,this.h0),U.setUint32(4,this.h1),U.setUint32(8,this.h2),U.setUint32(12,this.h3),U.setUint32(16,this.h4),U.setUint32(20,this.h5),U.setUint32(24,this.h6),this.is224||U.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var U,M=Y,C=new Uint8Array(M.length);for(U=0;U{class Y{calcHash(M,C){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(M)))})()}toHashString2(M){let C="";for(let i of M)C+=String.fromCharCode(i);return C}toHashString(M){const C=new Uint8Array(M);let i="";for(let D of C)i+=String.fromCharCode(D);return i}}return Y.\u0275fac=function(M){return new(M||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(M,C,i,D,x,S,P,L,j,z){super(),this.ngZone=M,this.http=C,this.config=x,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=z,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=j,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),D&&(this.tokenValidationHandler=D),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(J){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",J)}if(this.checkLocalStorageAccessable()){const J=window?.navigator?.userAgent;(J?.includes("MSIE ")||J?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const M="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(M,M),localStorage.removeItem(M),0))}catch{return!1}}configure(M){Object.assign(this,new AuthConfig,M),this.config=Object.assign({},new AuthConfig,M),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type)).subscribe(M=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(M={},C,i=!0){let D=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?D=!0:"logout"===x.type&&(D=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==C||"any"===C||x.info===C)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{D&&this.refreshInternal(M,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(M,C){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(M,C):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(M=null){return this.loadDiscoveryDocument().then(C=>this.tryLogin(M))}loadDiscoveryDocumentAndLogin(M=null){return this.loadDiscoveryDocumentAndTryLogin(M=M||{}).then(C=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof M.state?M.state:""),!1))}debug(...M){this.showDebugInformation&&this.logger.debug.apply(this.logger,M)}validateUrlFromDiscoveryDocument(M){const C=[],i=this.validateUrlForHttps(M),D=this.validateUrlAgainstIssuer(M);return i||C.push("https for all urls required. Also for urls received by discovery."),D||C.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),C}validateUrlForHttps(M){if(!M)return!0;const C=M.toLowerCase();return!(!1!==this.requireHttps&&(!C.match(/^http:\/\/localhost($|[:\/])/)&&!C.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||C.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(M,C){if(!M)throw new Error(`'${C}' should not be null`);if(!this.validateUrlForHttps(M))throw new Error(`'${C}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(M){return!this.strictDiscoveryDocumentValidation||!M||M.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type)).subscribe(M=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const M=this.getAccessTokenExpiration(),C=this.getAccessTokenStoredAt(),i=this.calcTimeout(C,M);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}setupIdTokenTimer(){const M=this.getIdTokenExpiration(),C=this.getIdTokenStoredAt(),i=this.calcTimeout(C,M);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(D=>{this.ngZone.run(()=>{this.eventsSubject.next(D)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(M,C){const i=this.dateTimeService.now();return Math.max(0,(C-M)*this.timeoutFactor-(i-M))}setStorage(M){this._storage=M,this.configChanged()}loadDiscoveryDocument(M=null){return new Promise((C,i)=>{M||((M=this.issuer||"").endsWith("/")||(M+="/"),M+=".well-known/openid-configuration"),this.validateUrlForHttps(M)?this.http.get(M).subscribe(D=>{if(!this.validateDiscoveryDocument(D))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=D.authorization_endpoint,this.logoutUrl=D.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=D.grant_types_supported,this.issuer=D.issuer,this.tokenEndpoint=D.token_endpoint,this.userinfoEndpoint=D.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=D.jwks_uri,this.sessionCheckIFrameUrl=D.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(D),this.revocationEndpoint=D.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:D,jwks:x});this.eventsSubject.next(P),C(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},D=>{this.logger.error("error loading discovery document",D),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",D)),i(D)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((M,C)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),M(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),C(i)}):M(null)})}validateDiscoveryDocument(M){let C;return this.skipIssuerCheck||M.issuer===this.issuer?(C=this.validateUrlFromDiscoveryDocument(M.authorization_endpoint),C.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(M.end_session_endpoint),C.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(M.token_endpoint),C.length>0&&this.logger.error("error validating token_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(M.revocation_endpoint),C.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",C),C=this.validateUrlFromDiscoveryDocument(M.userinfo_endpoint),C.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",C),!1):(C=this.validateUrlFromDiscoveryDocument(M.jwks_uri),C.length>0?(this.logger.error("error validating jwks_uri in discovery document",C),!1):(this.sessionChecksEnabled&&!M.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+M.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(M,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(M,C,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((M,C)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(D=>{if(this.debug("userinfo received",JSON.stringify(D)),D.headers.get("content-type").startsWith("application/json")){let x=JSON.parse(D.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.sub!==S.sub))return void C("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),M({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),M(JSON.parse(D.body))},D=>{this.logger.error("error loading user info",D),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",D)),C(D)})})}fetchTokenUsingPasswordFlow(M,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:M,password:C},i)}fetchTokenUsingGrant(M,C,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let D=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",M).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(D=D.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(D=D.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))D=D.set(x,this.customQueryParams[x]);for(const x of Object.keys(C))D=D.set(x,C[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,S)=>{this.http.post(this.tokenEndpoint,D,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((M,C)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),D=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);D=D.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:D}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),M(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),C(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=M=>{const C=this.processMessageEventMessage(M);this.tryLogin({customHashFragment:C,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(M={},C=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(M.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const D=this.document.getElementById(this.silentRefreshIFrameName);D&&this.document.body.removeChild(D),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,C,M).then(z=>{x.setAttribute("src",z),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(z=>z instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(z=>"token_received"===z.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,L,j]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(z=>{if(z instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===z.type||(z=new OAuthErrorEvent("silent_refresh_error",z)),this.eventsSubject.next(z),z;return"token_received"===z.type&&(z=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(z)),z})).toPromise()}initImplicitFlowInPopup(M){return this.initLoginFlowInPopup(M)}initLoginFlowInPopup(M){return M=M||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(C=>new Promise((i,D)=>{let P,S=null;M.windowRef?M.windowRef&&!M.windowRef.closed&&(S=M.windowRef,S.location.href=C):S=window.open(C,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(M));const L=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{z(),i(!0)},le=>{z(),D(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(z(),D(new OAuthErrorEvent("popup_closed",{})))},500):D(new OAuthErrorEvent("popup_blocked",{}));const z=()=>{window.clearInterval(P),window.removeEventListener("storage",Q),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",Q),L(le)):console.log("false event firing")},Q=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),L(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",Q)}))}calculatePopupFeatures(M){const C=M.height||470,i=M.width||500,D=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${C},top=${window.screenTop+(window.outerHeight-C)/2},left=${D}`}processMessageEventMessage(M){let C="#";if(this.silentRefreshMessagePrefix&&(C+=this.silentRefreshMessagePrefix),!M||!M.data||"string"!=typeof M.data)return;const i=M.data;return i.startsWith(C)?"#"+i.substr(C.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=M=>{const C=M.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(C)){switch(M.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",M)}else this.debug("sessionCheckEventListener","wrong origin",C,"expected",i,"event",M)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(M=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(M=>{this.debug("token refresh after session change worked")}).catch(M=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"silently_refreshed"===M.type||"silent_refresh_timeout"===M.type||"silent_refresh_error"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(M=>{"silently_refreshed"!==M.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const M=this.document.getElementById(this.sessionCheckIFrameName);M&&this.document.body.removeChild(M);const C=this.document.createElement("iframe");C.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),C.setAttribute("src",this.sessionCheckIFrameUrl),C.style.display="none",this.document.body.appendChild(C),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const M=this.document.getElementById(this.sessionCheckIFrameName);M||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const C=this.getSessionState();C||this.stopSessionCheckTimer(),M.contentWindow.postMessage(this.clientId+" "+C,this.issuer)}createLoginUrl(M="",C="",i="",D=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let L;L=i||S.redirectUri;const j=yield S.createAndSaveNonce();if(M=M?j+S.config.nonceStateSeparator+encodeURIComponent(M):j,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const z=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let Q=P.loginUrl+z+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(M)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),Q+="&code_challenge="+ne,Q+="&code_challenge_method=S256"}C&&(Q+="&login_hint="+encodeURIComponent(C)),P.resource&&(Q+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(Q+="&nonce="+encodeURIComponent(j)),D&&(Q+="&prompt=none");for(const ne of Object.keys(x))Q+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))Q+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return Q})()}initImplicitFlowInternal(M="",C=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(M,D,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(M="",C=""){""!==this.loginUrl?this.initImplicitFlowInternal(M,C):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(M,C))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(M){const C=this;if(M.onTokenReceived){const i={idClaims:C.getIdentityClaims(),idToken:C.getIdToken(),accessToken:C.getAccessToken(),state:C.state};M.onTokenReceived(i)}}storeAccessTokenResponse(M,C,i,D,x){if(this._storage.setItem("access_token",M),D&&!Array.isArray(D)?this._storage.setItem("granted_scopes",JSON.stringify(D.split(" "))):D&&Array.isArray(D)&&this._storage.setItem("granted_scopes",JSON.stringify(D)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}C&&this._storage.setItem("refresh_token",C),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(M=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(M).then(C=>!0):this.tryLoginImplicitFlow(M)}parseQueryString(M){return M&&0!==M.length?("?"===M.charAt(0)&&(M=M.substr(1)),this.urlHelper.parseQueryString(M)):{}}tryLoginCodeFlow(M=null){var C=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(M=M||{}).customHashFragment?M.customHashFragment.substring(1):window.location.search,D=C.getCodePartsFromUrl(i),x=D.code,S=D.state,P=D.session_state;if(!M.preventClearHashAfterLogin){const z=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,z)}let[L,j]=C.parseState(S);if(C.state=j,D.error){C.debug("error trying to login"),C.handleLoginError(M,D);const z=new OAuthErrorEvent("code_error",{},D);return C.eventsSubject.next(z),Promise.reject(z)}if(!M.disableNonceCheck){if(!L)return C.saveRequestedRoute(),Promise.resolve();if(!M.disableOAuth2StateCheck&&!C.validateNonce(L)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return C.eventsSubject.next(J),Promise.reject(J)}return C.storeSessionState(P),x&&(yield C.getTokenFromCode(x,M),C.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const M=this._storage.getItem("requested_route");M&&history.replaceState(null,"",window.location.origin+M)}getCodePartsFromUrl(M){return M&&0!==M.length?("?"===M.charAt(0)&&(M=M.substr(1)),this.urlHelper.parseQueryString(M)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(M,C){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",M).set("redirect_uri",C.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let D;D=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),D?i=i.set("code_verifier",D):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,C)}fetchAndProcessToken(M,C){C=C||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const D=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+D)}return this.useHttpBasicAuth||(M=M.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(M=M.set("client_secret",this.dummyClientSecret)),new Promise((D,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))M=M.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,M,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,C.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),x(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),D(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),x(S)})})}tryLoginImplicitFlow(M=null){let C;C=(M=M||{}).customHashFragment?this.urlHelper.getHashFragmentParams(M.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",C);const i=C.state;let[D,x]=this.parseState(i);if(this.state=x,C.error){this.debug("error trying to login"),this.handleLoginError(M,C);const z=new OAuthErrorEvent("token_error",{},C);return this.eventsSubject.next(z),Promise.reject(z)}const S=C.access_token,P=C.id_token,L=C.session_state,j=C.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!M.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!M.disableNonceCheck&&!this.validateNonce(D)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,C.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j),this.oidc?this.processIdToken(P,S,M.disableNonceCheck).then(z=>M.validationHandler?M.validationHandler({accessToken:S,idClaims:z.idTokenClaims,idToken:z.idToken,state:i}).then(J=>z):z).then(z=>(this.storeIdToken(z),this.storeSessionState(L),this.clearHashAfterLogin&&!M.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(M),this.inImplicitFlow=!1,!0)).catch(z=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",z)),this.logger.error("Error validating tokens"),this.logger.error(z),Promise.reject(z))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!M.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(M),Promise.resolve(!0))}parseState(M){let C=M,i="";if(M){const D=M.indexOf(this.config.nonceStateSeparator);D>-1&&(C=M.substr(0,D),i=M.substr(D+this.config.nonceStateSeparator.length))}return[C,i]}validateNonce(M){let C;return C=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),C===M||(console.error("Validating access_token failed, wrong state/nonce.",C,M),!1)}storeIdToken(M){this._storage.setItem("id_token",M.idToken),this._storage.setItem("id_token_claims_obj",M.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+M.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(M){this._storage.setItem("session_state",M)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(M,C){M.onLoginError&&M.onLoginError(C),this.clearHashAfterLogin&&!M.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(M=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:M}processIdToken(M,C,i=!1){const D=M.split("."),S=b64DecodeUnicode(this.padBase64(D[0])),P=JSON.parse(S),j=b64DecodeUnicode(this.padBase64(D[1])),z=JSON.parse(j);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(z.aud)){if(z.aud.every(me=>me!==this.clientId)){const me="Wrong audience: "+z.aud.join(",");return this.logger.warn(me),Promise.reject(me)}}else if(z.aud!==this.clientId){const me="Wrong audience: "+z.aud;return this.logger.warn(me),Promise.reject(me)}if(!z.sub){const me="No sub claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==z.sub){const me=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${z.sub}`;return this.logger.warn(me),Promise.reject(me)}if(!z.iat){const me="No iat claim in id_token";return this.logger.warn(me),Promise.reject(me)}if(!this.skipIssuerCheck&&z.iss!==this.issuer){const me="Wrong issuer: "+z.iss;return this.logger.warn(me),Promise.reject(me)}if(!i&&z.nonce!==J){const me="Wrong nonce: "+z.nonce;return this.logger.warn(me),Promise.reject(me)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!z.at_hash){const me="An at_hash is needed!";return this.logger.warn(me),Promise.reject(me)}const Q=this.dateTimeService.now(),ne=1e3*z.iat,le=1e3*z.exp,re=this.getClockSkewInMsec();if(ne-re>=Q||le+re<=Q){const me="Token has expired";return console.error(me),console.error({now:Q,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(me)}const ie={accessToken:C,idToken:M,jwks:this.jwks,idTokenClaims:z,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(me=>({idToken:M,idTokenClaims:z,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(me=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!me){const be="Wrong at_hash";return this.logger.warn(be),Promise.reject(be)}return this.checkSignature(ie).then(be=>{const $e={idToken:M,idTokenClaims:z,idTokenClaimsJson:j,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?$e:this.checkAtHash(ie).then(Ze=>{if(this.requestAccessToken&&!Ze){const Ee="Wrong at_hash";return this.logger.warn(Ee),Promise.reject(Ee)}return $e})})})}getIdentityClaims(){const M=this._storage.getItem("id_token_claims_obj");return M?JSON.parse(M):null}getGrantedScopes(){const M=this._storage.getItem("granted_scopes");return M?JSON.parse(M):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(M){for(;M.length%4!=0;)M+="=";return M}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const M=this._storage.getItem("expires_at"),C=this.dateTimeService.new();return!(M&&parseInt(M,10)=0&&null!==this._storage.getItem(M)?JSON.parse(this._storage.getItem(M)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(M={},C=""){let i=!1;"boolean"==typeof M&&(i=M,M={});const D=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!D&&!this.postLogoutRedirectUri)return;let x;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)x=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(D)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});D&&(S=S.set("id_token_hint",D));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),C&&(S=S.set("state",C)));for(let L in M)S=S.set(L,M[L]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const M=this;return this.createNonce().then(function(C){return M.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",C):M._storage.setItem("nonce",C),C})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const M=this.document.getElementById(this.silentRefreshIFrameName);M&&M.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const C=this.document.getElementById(this.sessionCheckIFrameName);C&&C.remove()}createNonce(){return new Promise(M=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,D="";const x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>C.charCodeAt(P%C.length)),D=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(M,C))}initCodeFlowInternal(M="",C={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},D=null;"string"==typeof C?D=C:"object"==typeof C&&(i=C),this.createLoginUrl(M,D,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var M=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!M.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const C=yield M.createNonce();return[base64UrlEncode(yield M.crypto.calcHash(C,"sha-256")),C]})()}extractRecognizedCustomParameters(M){let C=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{M[i]&&C.set(i,JSON.stringify(M[i]))}),C}revokeTokenAndLogout(M={},C=!1){let i=this.revocationEndpoint,D=this.getAccessToken(),x=this.getRefreshToken();if(!D)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+L)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,j)=>{let z,J;if(D){let Q=S.set("token",D).set("token_type_hint","access_token");z=this.http.post(i,Q,{headers:P})}else z=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let Q=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,Q,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);C&&(z=z.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(Q=>0===Q.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Q)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([z,J]).subscribe(Q=>{this.logOut(M),L(Q),this.logger.info("Token successfully revoked")},Q=>{this.logger.error("Error revoking token",Q),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",Q)),j(Q)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(M){return new(M||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(U){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(M,C,i){this.oAuthService=M,this.errorHandler=C,this.moduleConfig=i}checkUrl(M){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(M):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(C=>M.toLowerCase().startsWith(C.toLowerCase()))}intercept(M,C){const i=M.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=M.headers.set("Authorization","Bearer "+x);M=M.clone({headers:P})}return C.handle(M).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):C.handle(M).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):C.handle(M)}}return Y.\u0275fac=function(M){return new(M||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(U){return Promise.resolve(null)}validateAtHash(U){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(M=null,C=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:C},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:M},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(M){return new(M||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(Y,U,M)=>{"use strict";function C(D,x,S,P,L,j,z){try{var J=D[j](z),Q=J.value}catch(ne){return void S(ne)}J.done?x(Q):Promise.resolve(Q).then(P,L)}function i(D){return function(){var x=this,S=arguments;return new Promise(function(P,L){var j=D.apply(x,S);function z(Q){C(j,P,L,z,J,"next",Q)}function J(Q){C(j,P,L,z,J,"throw",Q)}z(void 0)})}}M.d(U,{Z:()=>i})},4147:Y=>{"use strict";Y.exports={i8:"9.2.0"}}},Y=>{Y(Y.s=2653)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index 27ce26073..535f698df 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -5,7 +5,7 @@ User Profile - + @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main.c40f633c98db5c67.js b/dist/apps/user-profile/main.ab91b64621d4d8de.js similarity index 50% rename from dist/apps/user-profile/main.c40f633c98db5c67.js rename to dist/apps/user-profile/main.ab91b64621d4d8de.js index c55da1827..ba7738297 100644 --- a/dist/apps/user-profile/main.c40f633c98db5c67.js +++ b/dist/apps/user-profile/main.ab91b64621d4d8de.js @@ -1 +1 @@ -(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{1573:(j,Y,T)=>{"use strict";var w=T(6895),i=T(4650);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends E{static makeCurrent(){(0,w.HT)(new x)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function F(n){R=R||document.createElement("a"),R.setAttribute("href",n);const a=R.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let R,S=null;const q=new i.OlP("TRANSITION_ID"),X=[{provide:i.ip1,useFactory:function J(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ae=new i.OlP("EventManagerPlugins");let ie=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),ve=(()=>{class n extends Ae{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,r.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Xe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xe))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Xe(n){(0,w.q)().remove(n)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},He=/%COMP%/g;function he(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ye=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new We(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new ai(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new Ke(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=he(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ie),i.LFG(ve),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class We{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Qe[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Qe[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Qe[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,me(t)):this.eventManager.addEventListener(a,e,me(t))}}function Ft(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ai extends We{constructor(a,e,t,r){super(a),this.component=t;const l=he(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ve(n){return"_ngcontent-%COMP%".replace(He,n)}(r+"-"+t.id),this.hostAttr=function Ne(n){return"_nghost-%COMP%".replace(He,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ke extends We{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=he(r.id,r.styles,[]);for(let c=0;c{class n extends ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Sn=["alt","control","meta","shift"],si={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let En=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),c=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let c="";if(Sn.forEach(o=>{const d=t.indexOf(o);d>-1&&(t.splice(d,1),c+=o+".")}),c+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=c,s}static getEventFullKey(e){let t="",r=function ui(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&jn.hasOwnProperty(a)&&(a=jn[a]))}return si[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Sn.forEach(l=>{l!=r&&(0,Ci[l])(e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const be=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function pr(){x.makeCurrent()},multi:!0},{provide:w.K0,useFactory:function de(){return(0,i.RDi)(document),document},deps:[]}]),qe=new i.OlP(""),st=[{provide:i.rWj,useClass:class ne{addToWindow(a){i.dqk.getAngularTestability=(t,r=!0)=>{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,c=!1;const s=function(o){c=c||o,l--,0==l&&t(c)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],ot=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function kn(){return new i.qLn},deps:[]},{provide:ae,useClass:Ki,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ae,useClass:En,multi:!0,deps:[w.K0]},{provide:ye,useClass:ye,deps:[ie,ve,i.AFp]},{provide:i.FYo,useExisting:ye},{provide:Ae,useExisting:ve},{provide:ve,useClass:ve,deps:[w.K0]},{provide:ie,useClass:ie,deps:[ae,i.R0b]},{provide:w.JF,useClass:le,deps:[]},[]];let Jt=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:q,useExisting:i.AFp},X]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qe,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...ot,...st],imports:[w.ez,i.hGG]}),n})(),se=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Le(){return new se((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Gi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(ct),t},providedIn:"root"}),n})(),ct=(()=>{class n extends Gi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function et(n){return new ct(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=T(529);class Kt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const zt=new i.OlP("basePath");class Je{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Xt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,c,s,o,d,u,h,f,b="body",N=!1,Q){let pe=new M.LE({encoder:this.encoder});null!=e&&(pe=this.addToHttpParams(pe,e,"attributeName")),null!=t&&(pe=this.addToHttpParams(pe,t,"attributeId")),null!=r&&(pe=this.addToHttpParams(pe,r,"facility")),null!=l&&(pe=this.addToHttpParams(pe,l,"user")),null!=c&&(pe=this.addToHttpParams(pe,c,"vo")),null!=s&&(pe=this.addToHttpParams(pe,s,"resource")),null!=o&&(pe=this.addToHttpParams(pe,o,"member")),null!=d&&(pe=this.addToHttpParams(pe,d,"group")),null!=u&&(pe=this.addToHttpParams(pe,u,"host")),null!=h&&(pe=this.addToHttpParams(pe,h,"userExtSource")),null!=f&&(pe=this.addToHttpParams(pe,f,"key"));let _t,Pe=this.defaultHeaders;_t=this.configuration.lookupCredential("BasicAuth"),_t&&(Pe=Pe.set("Authorization","Basic "+_t)),_t=this.configuration.lookupCredential("BearerAuth"),_t&&(Pe=Pe.set("Authorization","Bearer "+_t));let kt=Q&&Q.httpHeaderAccept;void 0===kt&&(kt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==kt&&(Pe=Pe.set("Accept",kt));let Ut=Q&&Q.context;void 0===Ut&&(Ut=new M.qT);let sa="json";return kt&&(sa=kt.startsWith("text")?"text":this.configuration.isJsonMime(kt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Ut,params:pe,responseType:sa,withCredentials:this.configuration.withCredentials,headers:Pe,observe:b,reportProgress:N})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,c,s,o,d,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=d&&(b=this.addToHttpParams(b,d,"userExtSource"));let Q,N=this.defaultHeaders;Q=this.configuration.lookupCredential("BasicAuth"),Q&&(N=N.set("Authorization","Basic "+Q)),Q=this.configuration.lookupCredential("BearerAuth"),Q&&(N=N.set("Authorization","Bearer "+Q));let pe=f&&f.httpHeaderAccept;void 0===pe&&(pe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==pe&&(N=N.set("Accept",pe));let Pe=f&&f.context;void 0===Pe&&(Pe=new M.qT);let _t="json";return pe&&(_t=pe.startsWith("text")?"text":this.configuration.isJsonMime(pe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Pe,params:b,responseType:_t,withCredentials:this.configuration.withCredentials,headers:N,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attrName")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"keys[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=l&&(u=this.addToHttpParams(u,l,"member")),null!=c&&(u=this.addToHttpParams(u,c,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=c&&(h=this.addToHttpParams(h,c,"member")),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}removeAttributesForFacilityResourceUserMember(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeResourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeVoAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ht=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"role")),null!=t&&(o=this.addToHttpParams(o,t,"complementaryObjectId")),null!=r&&(o=this.addToHttpParams(o,r,"complementaryObjectName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"parentGroup")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}deleteGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"members[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupUnions(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getGroupsWhereMemberIsActive(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"groupId")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"destinationGroup")),null!=e&&(s=this.addToHttpParams(s,e,"movingGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),On=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"members[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"attrsNames[]")}),c&&c.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedStatuses[]")}),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}findCompleteRichMembersForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"allowedStatuses[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString")),null!=l&&(d=this.addToHttpParams(d,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getAllMembers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(pe=>{u=this.addToHttpParams(u,pe,"allowedStatuses[]")}),l&&l.forEach(pe=>{u=this.addToHttpParams(u,pe,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"attrsNames[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extLogin")),null!=r&&(o=this.addToHttpParams(o,r,"extSourceName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"ids[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}moveMembership(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"sourceUser")),null!=r&&(o=this.addToHttpParams(o,r,"targetUser"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeSponsor(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=r&&(d=this.addToHttpParams(d,r,"emailAttributeURN")),null!=l&&(d=this.addToHttpParams(d,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=c&&(u=this.addToHttpParams(u,c,"baseUrl"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"sponsoredMember")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}setStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateSponsorshipValidity(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"memberId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"queue")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"voId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ic=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarRichIdentities(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"reason"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let d=new M.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendInvitationForGroup(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=c&&(u=this.addToHttpParams(u,c,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",c=!1,s){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId")),null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fa=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}addAdminToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(N=>{o=this.addToHttpParams(o,N,"groups[]")}),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}assignGroupToResource(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(pe=>{u=this.addToHttpParams(u,pe,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let u=new M.LE({encoder:this.encoder});e&&e.forEach(pe=>{u=this.addToHttpParams(u,pe,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResource(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"facility")),null!=r&&(d=this.addToHttpParams(d,r,"name")),null!=l&&(d=this.addToHttpParams(d,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMailingServiceRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAssignments(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"name"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"user"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRichAdmins(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"specificAttributes")}),null!=r&&(d=this.addToHttpParams(d,r,"allUserAttributes")),null!=l&&(d=this.addToHttpParams(d,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"loginNamespace")),null!=r&&(o=this.addToHttpParams(o,r,"passwordId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"userExtSource")),null!=r&&(o=this.addToHttpParams(o,r,"force"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=c&&(h=this.addToHttpParams(h,c,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"login")),null!=r&&(o=this.addToHttpParams(o,r,"namespace"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),null!=r&&(o=this.addToHttpParams(o,r,"maxNumOfResults"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}findCandidatesForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==c)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(pe=>{u=this.addToHttpParams(u,pe,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=c&&(u=this.addToHttpParams(u,c,"onlyDirectAdmins"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role")),null!=r&&(o=this.addToHttpParams(o,r,"onlyDirectAdmins"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"shortName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var It=(()=>{return(n=It||(It={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",It;var n})();let Ya=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER,It.FACILITYADMIN,It.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(It.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(It.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(It.PERUNADMIN,It.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(It.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(It.PERUNADMIN,It.VOOBSERVER,It.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let c=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const N of Object.keys(b.entitiesToManage))o="User"===N?[N].concat(o):o.concat(N);break}const d=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(c,d),h=this.resolveAuthorization(s,d);r.set(l,{readAuth:u,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const c of Object.keys(r)){const s=r[c];if(null===s)this.principalRoles.has(c)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(c,s,o)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const c=r.shift();if(t.has(c))continue;const s=this.getPerunPolicy(c);if(!s)return[];t.set(c,s),r=r.concat(s.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Yr.Xf)(n()).subscribe(a)})}var tl=T(9635),Zn=T(2843),Wr=T(515),Bt=T(727),Wn=T(4482),_r=T(5403);function Cs(){return(0,Wn.e)((n,a)=>{let e=null;n._refCount++;const t=(0,_r.x)(a,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),a.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class rc extends Bn.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Wn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Bt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,_r.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Bt.w0.EMPTY)}return a}refCount(){return Cs()(this)}}var At=T(4004),Nt=T(3900),dt=T(5698),po=T(3269);function ti(...n){const a=(0,po.yG)(n);return(0,Wn.e)((e,t)=>{(a?(0,Wa.z)(n,e,a):(0,Wa.z)(n,e)).subscribe(t)})}var Ti=T(5577),br=T(590),Ar=T(4351),mi=T(8505),li=T(262);function I(n,a,e,t,r){return(l,c)=>{let s=e,o=a,d=0;l.subscribe((0,_r.x)(c,u=>{const h=d++;o=s?n(o,u,h):(s=!0,u),t&&c.next(o)},r&&(()=>{s&&c.next(o),c.complete()})))}}function U(n,a){return(0,Wn.e)(I(n,a,arguments.length>=2,!0))}function B(n){return n<=0?()=>Wr.E:(0,Wn.e)((a,e)=>{let t=[];a.subscribe((0,_r.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var G=T(8068),re=T(6590),Me=T(4671);function _e(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,Yt.h)((r,l)=>n(r,l,t)):Me.y,B(1),e?(0,re.d)(a):(0,G.T)(()=>new ws.K))}function nt(n,a=!1){return(0,Wn.e)((e,t)=>{let r=0;e.subscribe((0,_r.x)(t,l=>{const c=n(l,r++);(c||a)&&t.next(l),!c&&t.complete()}))})}var xi=T(9718);function ii(n){return(0,Wn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(n)}})}var ci=T(8189);const tt="primary";class sn{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function gi(n){return new sn(n)}function _n(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Ur(n){return Array.prototype.concat.apply([],n)}function Ii(n){return n.length>0?n[n.length-1]:null}function ki(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function Bi(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,Dn.D)(Promise.resolve(n)):(0,$e.of)(n)}const gg={exact:function Nn(n,a,e){if(!ma(n.segments,a.segments)||!rr(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Nn(n.children[t],a.children[t],e))return!1;return!0},subset:oc},ac={exact:function sc(n,a){return yt(n,a)},subset:function fa(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>Ua(n[e],a[e]))},ignored:()=>!0};function uf(n,a,e){return gg[e.paths](n.root,a.root,e.matrixParams)&&ac[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function oc(n,a,e){return vs(n,a,a.segments,e)}function vs(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ma(r,e)||a.hasChildren()||!rr(r,e,t))}if(n.segments.length===e.length){if(!ma(n.segments,e)||!rr(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!oc(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(ma(n.segments,r)&&rr(n.segments,r,t)&&n.children[tt])&&vs(n.children[tt],a,l,t)}}function rr(n,a,e){return a.every((t,r)=>ac[e](n[r].parameters,t.parameters))}class di{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return hf.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ki(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return al(this)}}class rl{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return dc(this)}}function ma(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}let md=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new ga},providedIn:"root"}),n})();class ga{parse(a){const e=new gf(a);return new di(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ts(a.root,!0)}`,t=function Gr(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Ga(e)}=${Ga(r)}`).join("&"):`${Ga(e)}=${Ga(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function lc(n){return encodeURI(n)}(a.fragment)}`:""}`}}const hf=new ga;function al(n){return n.segments.map(a=>dc(a)).join("/")}function Ts(n,a){if(!n.hasChildren())return al(n);if(a){const e=n.children[tt]?Ts(n.children[tt],!1):"",t=[];return ki(n.children,(r,l)=>{l!==tt&&t.push(`${l}:${Ts(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function fd(n,a){let e=[];return ki(n.children,(t,r)=>{r===tt&&(e=e.concat(a(t,r)))}),ki(n.children,(t,r)=>{r!==tt&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===tt?[Ts(n.children[tt],!1)]:[`${r}:${Ts(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[tt]?`${al(n)}/${e[0]}`:`${al(n)}/(${e.join("//")})`}}function mo(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ga(n){return mo(n).replace(/%3B/gi,";")}function cc(n){return mo(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xs(n){return decodeURIComponent(n)}function eh(n){return xs(n.replace(/\+/g,"%20"))}function dc(n){return`${cc(n.path)}${function Hn(n){return Object.keys(n).map(a=>`;${cc(a)}=${cc(n[a])}`).join("")}(n.parameters)}`}const qi=/^[^\/()?;=#]+/;function sl(n){const a=n.match(qi);return a?a[0]:""}const pf=/^[^=?&#]+/,ff=/^[^&#]+/;class gf{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[tt]=new Wt(a,e)),t}parseSegment(){const a=sl(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(a),new rl(xs(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=sl(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=sl(this.remaining);r&&(t=r,this.capture(t))}a[xs(e)]=xs(t)}parseQueryParam(a){const e=function th(n){const a=n.match(pf);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function mf(n){const a=n.match(ff);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const r=eh(e),l=eh(t);if(a.hasOwnProperty(r)){let c=a[r];Array.isArray(c)||(c=[c],a[r]=c),c.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=sl(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=tt);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[tt]:new Wt([],c),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new i.vHH(4011,!1)}}function go(n){return n.segments.length>0?new Wt([],{[tt]:n}):n}function Ss(n){const a={};for(const t of Object.keys(n.children)){const l=Ss(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function uc(n){if(1===n.numberOfChildren&&n.children[tt]){const a=n.children[tt];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}function $r(n){return n instanceof di}function ih(n,a,e,t,r){var l;if(0===e.length)return _a(a.root,a.root,a.root,t,r);const c=function ah(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new rh(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return ki(l.outlets,(o,d)=>{s[d]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===c?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new rh(e,a,t)}(e);if(c.toRoot())return _a(a.root,a.root,new Wt([],{}),t,r);const o=function s(u){var h;const f=function sh(n,a,e,t){if(n.isAbsolute)return new ll(a.root,!0,0);if(-1===t)return new ll(e,e===a.root,0);return function gd(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new ll(t,!1,r-l)}(e,t+(ol(n.commands[0])?0:1),n.numberOfDoubleDots)}(c,a,null===(h=n.snapshot)||void 0===h?void 0:h._urlSegment,u),b=f.processChildren?_o(f.segmentGroup,f.index,c.commands):mc(f.segmentGroup,f.index,c.commands);return _a(a.root,f.segmentGroup,b,t,r)}(null===(l=n.snapshot)||void 0===l?void 0:l._lastPathIndex);return o}function ol(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Zr(n){return"object"==typeof n&&null!=n&&n.outlets}function _a(n,a,e,t,r){let c,l={};t&&ki(t,(o,d)=>{l[d]=Array.isArray(o)?o.map(u=>`${u}`):`${o}`}),c=n===a?e:nh(n,a,e);const s=go(Ss(c));return new di(s,l,r)}function nh(n,a,e){const t={};return ki(n.children,(r,l)=>{t[l]=r===a?e:nh(r,a,e)}),new Wt(n.segments,t)}class rh{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&ol(t[0]))throw new i.vHH(4003,!1);const r=t.find(Zr);if(r&&r!==Ii(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ll{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function mc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return _o(n,a,e);const t=function bo(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const c=n.segments[r],s=e[t];if(Zr(s))break;const o=`${s}`,d=t0&&void 0===o)break;if(o&&d&&"object"==typeof d&&void 0===d.outlets){if(!cl(o,d,c))return l;t+=2}else{if(!cl(o,{},c))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[c]=mc(n.children[c],a,l))}),ki(n.children,(l,c)=>{void 0===t[c]&&(r[c]=l)}),new Wt(n.segments,r)}}function _d(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=_d(new Wt([],{}),0,e))}),a}function gc(n){const a={};return ki(n,(e,t)=>a[t]=`${e}`),a}function cl(n,a,e){return n==e.path&&yt(a,e.parameters)}class $a{constructor(a,e){this.id=a,this.url=e}}class _c extends $a{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Jn extends $a{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class bc extends $a{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Er extends $a{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _f extends $a{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dl extends $a{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bd extends $a{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ad extends $a{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ac extends $a{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yc{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oh{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yd{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Md{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ul{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Es{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hl{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Dr{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Mc(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Mc(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=fl(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return fl(a,this._root).map(e=>e.value)}}function Mc(n,a){if(n===a.value)return a;for(const e of a.children){const t=Mc(n,e);if(t)return t}return null}function fl(n,a){if(n===a.value)return[a];for(const e of a.children){const t=fl(n,e);if(t.length)return t.unshift(a),t}return[]}class Jr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Hr(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class lh extends Dr{constructor(a,e){super(a),this.snapshot=e,Za(this,a)}toString(){return this.snapshot.toString()}}function wd(n,a){const e=function Cd(n,a){const c=new ba([],{},{},"",{},tt,a,null,n.root,-1,{});return new Ds("",new Jr(c,[]))}(n,a),t=new $i([new rl("",{})]),r=new $i({}),l=new $i({}),c=new $i({}),s=new $i(""),o=new Xn(t,r,c,s,l,tt,a,e.root);return o.snapshot=e.root,new lh(new Jr(o,[]),e)}class Xn{constructor(a,e,t,r,l,c,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,At.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function vd(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function Td(n){return n.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class ba{constructor(a,e,t,r,l,c,s,o,d,u,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this.routeConfig=o,this._urlSegment=d,this._lastPathIndex=u,this._correctedLastPathIndex=f??u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ds extends Dr{constructor(a,e){super(e),this.url=a,Za(this,e)}toString(){return xd(this._root)}}function Za(n,a){a.value._routerState=n,a.children.forEach(e=>Za(n,e))}function xd(n){const a=n.children.length>0?` { ${n.children.map(xd).join(", ")} } `:"";return`${n.value}${a}`}function ml(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,yt(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),yt(a.params,e.params)||n.params.next(e.params),function Ee(n,a){if(n.length!==a.length)return!1;for(let e=0;eyt(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ja(n.parent,a.parent))}function gl(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function Si(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return gl(n,t,r);return gl(n,t)})}(n,a,e);return new Jr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(s=>gl(n,s)),c}}const t=function Ag(n){return new Xn(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>gl(n,l));return new Jr(t,r)}}const ch="ngNavigationCancelingError";function bf(n,a){const{redirectTo:e,navigationBehaviorOptions:t}=$r(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=Af(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function Af(n,a,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[ch]=!0,t.cancellationCode=a,e&&(t.url=e),t}function yf(n){return Sd(n)&&$r(n.url)}function Sd(n){return n&&n[ch]}class yg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Aa,this.attachRef=null}}let Aa=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new yg,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ed=!1;let Xa=(()=>{class n{constructor(e,t,r,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=r||tt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Ed);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Ed);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Ed);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new i.vHH(4013,Ed);this._activatedRoute=e;const r=this.location,c=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,o=new Yi(e,s,r.injector);if(t&&function Dd(n){return!!n.resolveComponentFactory}(t)){const d=t.resolveComponentFactory(c);this.activated=r.createComponent(d,r.length,o)}else this.activated=r.createComponent(c,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Aa),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Yi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Xn?this.route:a===Aa?this.childContexts:this.parent.get(a,e)}}let yo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Xa],encapsulation:2}),n})();function Mf(n,a){var e;return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,a,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:a}function Ld(n){const a=n.children&&n.children.map(Ld),e=a?{...n,children:a}:{...n};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==tt&&(e.component=yo),e}function Lr(n){return n.outlet||tt}function Ka(n,a){const e=n.filter(t=>Lr(t)===a);return e.push(...n.filter(t=>Lr(t)!==a)),e}function wc(n){var a;if(!n)return null;if(null!==(a=n.routeConfig)&&void 0!==a&&a._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class Pd{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),ml(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Hr(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,r[c],t),delete r[c]}),ki(r,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const c=t.getContext(r.outlet);c&&this.deactivateChildRoutes(a,e,c.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Hr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);if(t&&t.outlet){const c=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Hr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=Hr(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Es(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Md(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(ml(r),r===l)if(r.component){const s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,s.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),ml(o.route.value),this.activateChildRoutes(a,null,s.children)}else{var c;const o=wc(r.snapshot),d=null!==(c=o?.get(i._Vd))&&void 0!==c?c:null;s.attachRef=null,s.route=r,s.resolver=d,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(a,null,s.children)}}else this.activateChildRoutes(a,null,t)}}class Hs{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Fe{constructor(a,e){this.component=a,this.route=e}}function uh(n,a,e){const t=n._root;return $t(t,a?a._root:null,e,[t.value])}function bl(n,a,e){return(wc(a)??e).get(n)}function $t(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=Hr(a);return n.children.forEach(c=>{(function Cc(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,c=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const o=function hh(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!ma(n.url,a.url);case"pathParamsOrQueryParamsChange":return!ma(n.url,a.url)||!yt(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ja(n,a)||!yt(n.queryParams,a.queryParams);default:return!Ja(n,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Hs(t)):(l.data=c.data,l._resolvedData=c._resolvedData),$t(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fe(s.outlet.component,c))}else c&&Ls(a,s,r),r.canActivateChecks.push(new Hs(t)),$t(n,null,l.component?s?s.children:null:e,t,r)})(c,l[c.value.outlet],e,t.concat([c.value]),r),delete l[c.value.outlet]}),ki(l,(c,s)=>Ls(c,e.getContext(s),r)),r}function Ls(n,a,e){const t=Hr(n),r=n.value;ki(t,(l,c)=>{Ls(l,r.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new Fe(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function Ps(n){return"function"==typeof n}function Tc(n){return n instanceof ws.K||"EmptyError"===n?.name}const ya=Symbol("INITIAL_VALUE");function Pr(){return(0,Nt.w)(n=>(0,pa.a)(n.map(a=>a.pipe((0,dt.q)(1),ti(ya)))).pipe((0,At.U)(a=>{for(const e of a)if(!0!==e){if(e===ya)return ya;if(!1===e||e instanceof di)return e}return!0}),(0,Yt.h)(a=>a!==ya),(0,dt.q)(1)))}function xc(n){return(0,tl.z)((0,mi.b)(a=>{if($r(a))throw bf(0,a)}),(0,At.U)(a=>!0===a))}const Sc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function wo(n,a,e,t,r){const l=Rd(n,a,e);return l.matched?function Ml(n,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function vf(n){return n&&Ps(n.canMatch)}(s)?s.canMatch(a,e):s(a,e);return Bi(o)});return(0,$e.of)(l).pipe(Pr(),xc())}(t=Mf(a,t),a,e).pipe((0,At.U)(c=>!0===c?l:{...Sc})):(0,$e.of)(l)}function Rd(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?{...Sc}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const l=(a.matcher||_n)(e,n,a);if(!l)return{...Sc};const c={};ki(l.posParams,(o,d)=>{c[d]=o.path});const s=l.consumed.length>0?{...c,...l.consumed[l.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:l.consumed,remainingSegments:e.slice(l.consumed.length),parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function wl(n,a,e,t,r="corrected"){if(e.length>0&&function gh(n,a,e){return e.some(t=>Ec(n,a,t)&&Lr(t)!==tt)}(n,e,t)){const c=new Wt(a,function Xr(n,a,e,t){const r={};r[tt]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Lr(l)!==tt){const c=new Wt([],{});c._sourceSegment=n,c._segmentIndexShift=a.length,r[Lr(l)]=c}return r}(n,a,t,new Wt(e,n.children)));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Hf(n,a,e){return e.some(t=>Ec(n,a,t))}(n,e,t)){const c=new Wt(n.segments,function Cl(n,a,e,t,r,l){const c={};for(const s of t)if(Ec(n,e,s)&&!r[Lr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,c[Lr(s)]=o}return{...r,...c}}(n,a,e,t,n.children,r));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Ec(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function ks(n,a,e,t){return!!(Lr(n)===t||t!==tt&&Ec(a,e,n))&&("**"===n.path||Rd(a,n,e).matched)}function Co(n,a,e){return 0===a.length&&!n.children[e]}const Dc=!1;class Od{constructor(a){this.segmentGroup=a||null}}class Id{constructor(a){this.urlTree=a}}function sr(n){return(0,Zn._)(new Od(n))}function vo(n){return(0,Zn._)(new Id(n))}class Hc{constructor(a,e,t,r,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const a=wl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,tt).pipe((0,At.U)(l=>this.createUrlTree(Ss(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,li.K)(l=>{if(l instanceof Id)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Od?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,tt).pipe((0,At.U)(r=>this.createUrlTree(Ss(r),a.queryParams,a.fragment))).pipe((0,li.K)(r=>{throw r instanceof Od?this.noMatchError(r):r}))}noMatchError(a){return new i.vHH(4002,Dc)}createUrlTree(a,e,t){const r=go(a);return new di(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,At.U)(l=>new Wt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,Dn.D)(r).pipe((0,Ar.b)(l=>{const c=t.children[l],s=Ka(e,l);return this.expandSegmentGroup(a,s,c,l).pipe((0,At.U)(o=>({segment:o,outlet:l})))}),U((l,c)=>(l[c.outlet]=c.segment,l),{}),_e())}expandSegment(a,e,t,r,l,c){return(0,Dn.D)(t).pipe((0,Ar.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,c).pipe((0,li.K)(d=>{if(d instanceof Od)return(0,$e.of)(null);throw d}))),(0,br.P)(s=>!!s),(0,li.K)((s,o)=>{if(Tc(s))return Co(e,r,l)?(0,$e.of)(new Wt([],{})):sr(e);throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,c,s){return ks(r,e,l,c)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,c):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c):sr(e):sr(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?vo(l):this.lineralizeSegments(t,l).pipe((0,Ti.z)(c=>{const s=new Wt(c,{});return this.expandSegment(a,s,e,c,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){const{matched:s,consumedSegments:o,remainingSegments:d,positionalParamSegments:u}=Rd(e,r,l);if(!s)return sr(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?vo(h):this.lineralizeSegments(r,h).pipe((0,Ti.z)(f=>this.expandSegment(a,e,t,f.concat(d),c,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){return"**"===t.path?(a=Mf(t,a),t.loadChildren?(t._loadedRoutes?(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,At.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}))):wo(e,t,r,a).pipe((0,Nt.w)(({matched:c,consumedSegments:s,remainingSegments:o})=>{var d;return c?(a=null!==(d=t._injector)&&void 0!==d?d:a,this.getChildConfig(a,t,r).pipe((0,Ti.z)(h=>{var f;const b=null!==(f=h.injector)&&void 0!==f?f:a,N=h.routes,{segmentGroup:Q,slicedSegments:pe}=wl(e,s,o,N),Pe=new Wt(Q.segments,Q.children);if(0===pe.length&&Pe.hasChildren())return this.expandChildren(b,N,Pe).pipe((0,At.U)(sa=>new Wt(s,sa)));if(0===N.length&&0===pe.length)return(0,$e.of)(new Wt(s,{}));const _t=Lr(t)===l;return this.expandSegment(b,Pe,N,pe,_t?tt:l,!0).pipe((0,At.U)(Ut=>new Wt(s.concat(Ut.segments),Ut.children)))}))):sr(e)}))}getChildConfig(a,e,t){return e.children?(0,$e.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,$e.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Df(n,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function wg(n){return n&&Ps(n.canLoad)}(s)?s.canLoad(a,e):s(a,e);return Bi(o)});return(0,$e.of)(l).pipe(Pr(),xc())}(a,e,t).pipe((0,Ti.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,mi.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function Pf(n){return(0,Zn._)(Af(Dc,3))}())):(0,$e.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,$e.of)(t);if(r.numberOfChildren>1||!r.children[tt])return(0,Zn._)(new i.vHH(4e3,Dc));r=r.children[tt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new di(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ki(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let c={};return ki(e.children,(s,o)=>{c[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,c)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Dc);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class Rs{}class v{constructor(a,e,t,r,l,c,s,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=s,this.urlSerializer=o}recognize(){const a=wl(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,tt).pipe((0,At.U)(e=>{if(null===e)return null;const t=new ba([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Jr(t,e),l=new Ds(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=vd(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Dn.D)(Object.keys(t.children)).pipe((0,Ar.b)(r=>{const l=t.children[r],c=Ka(e,r);return this.processSegmentGroup(a,c,l,r)}),U((r,l)=>r&&l?(r.push(...l),r):null),nt(r=>null!==r),(0,re.d)(null),_e(),(0,At.U)(r=>{if(null===r)return null;const l=$(r);return function H(n){n.sort((a,e)=>a.value.outlet===tt?-1:e.value.outlet===tt?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,r,l){return(0,Dn.D)(e).pipe((0,Ar.b)(c=>{var s;return this.processSegmentAgainstRoute(null!==(s=c._injector)&&void 0!==s?s:a,c,t,r,l)}),(0,br.P)(c=>!!c),(0,li.K)(c=>{if(Tc(c))return Co(t,r,l)?(0,$e.of)([]):(0,$e.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,r,l){if(e.redirectTo||!ks(e,t,r,l))return(0,$e.of)(null);let c;if("**"===e.path){var s,o;const d=r.length>0?Ii(r).parameters:{},u=ft(t)+r.length,h=new ba(r,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Lr(e),null!==(s=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==s?s:null,e,we(t),u,on(e),u);c=(0,$e.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else c=wo(t,e,r,a).pipe((0,At.U)(({matched:d,consumedSegments:u,remainingSegments:h,parameters:f})=>{var b,N;if(!d)return null;const Q=ft(t)+u.length;return{snapshot:new ba(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Lr(e),null!==(b=null!==(N=e.component)&&void 0!==N?N:e._loadedComponent)&&void 0!==b?b:null,e,we(t),Q,on(e),Q),consumedSegments:u,remainingSegments:h}}));return c.pipe((0,Nt.w)(d=>{var u,h;if(null===d)return(0,$e.of)(null);const{snapshot:f,consumedSegments:b,remainingSegments:N}=d;a=null!==(u=e._injector)&&void 0!==u?u:a;const Q=null!==(h=e._loadedInjector)&&void 0!==h?h:a,pe=function O(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Pe,slicedSegments:_t}=wl(t,b,N,pe.filter(Ut=>void 0===Ut.redirectTo),this.relativeLinkResolution);if(0===_t.length&&Pe.hasChildren())return this.processChildren(Q,pe,Pe).pipe((0,At.U)(Ut=>null===Ut?null:[new Jr(f,Ut)]));if(0===pe.length&&0===_t.length)return(0,$e.of)([new Jr(f,[])]);const kt=Lr(e)===l;return this.processSegment(Q,pe,Pe,_t,kt?tt:l).pipe((0,At.U)(Ut=>null===Ut?null:[new Jr(f,Ut)]))}))}}function z(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function $(n){const a=[],e=new Set;for(const t of n){if(!z(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=$(t.children);a.push(new Jr(t.value,r))}return a.filter(t=>!e.has(t))}function we(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ft(n){var a;let e=n,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function Mi(n){return n.data||{}}function on(n){return n.resolve||{}}const Or=Symbol("RouteTitle");function Tg(n){return"string"==typeof n.title||null===n.title}function Rf(n){return(0,Nt.w)(a=>{const e=n(a);return e?(0,Dn.D)(e).pipe((0,At.U)(()=>a)):(0,$e.of)(a)})}let xg=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var l;t=null!==(l=this.getResolvedTitleForRoute(r))&&void 0!==l?l:t,r=r.children.find(c=>c.outlet===tt)}return t}getResolvedTitleForRoute(e){return e.data[Or]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(es)},providedIn:"root"}),n})(),es=(()=>{class n extends xg{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(se))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Lc{}class yy extends class Ay{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Of=new i.OlP("",{providedIn:"root",factory:()=>({})}),If=new i.OlP("ROUTES");let bh=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,$e.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Bi(e.loadComponent()).pipe((0,mi.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),ii(()=>{this.componentLoaders.delete(e)})),r=new rc(t,()=>new De.x).pipe(Cs());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,At.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,d,u=!1;Array.isArray(s)?d=s:(o=s.create(e).injector,d=Ur(o.get(If,[],i.XFs.Self|i.XFs.Optional)));return{routes:d.map(Ld),injector:o}}),ii(()=>{this.childrenLoaders.delete(t)})),c=new rc(l,()=>new De.x).pipe(Cs());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Bi(e()).pipe((0,Ti.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,$e.of)(t):(0,Dn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class wy{}class Cy{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function vy(n){throw n}function LT(n,a,e){return a.parse("/")}const Ty={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Ma(){var n,a;const e=(0,i.f3M)(md),t=(0,i.f3M)(Aa),r=(0,i.f3M)(w.Ye),l=(0,i.f3M)(i.zs3),c=(0,i.f3M)(i.Sil),s=null!==(n=(0,i.f3M)(If,{optional:!0}))&&void 0!==n?n:[],o=null!==(a=(0,i.f3M)(Of,{optional:!0}))&&void 0!==a?a:{},d=(0,i.f3M)(es),u=(0,i.f3M)(xg,{optional:!0}),h=(0,i.f3M)(wy,{optional:!0}),f=(0,i.f3M)(Lc,{optional:!0}),b=new Ai(null,e,t,r,l,c,Ur(s));return h&&(b.urlHandlingStrategy=h),f&&(b.routeReuseStrategy=f),b.titleStrategy=u??d,function Eg(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(o,b),b}let Ai=(()=>{class n{constructor(e,t,r,l,c,s,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=vy,this.malformedUriErrorHandler=LT,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,$e.of)(void 0),this.urlHandlingStrategy=new Cy,this.routeReuseStrategy=new yy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(bh),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new oh(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new yc(f)),this.ngModule=c.get(i.h0i),this.console=c.get(i.c2e);const h=c.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function nl(){return new di(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wd(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Yt.h)(r=>0!==r.id),(0,At.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Nt.w)(r=>{let l=!1,c=!1;return(0,$e.of)(r).pipe((0,mi.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Nt.w)(s=>{const o=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Bf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,Nt.w)(h=>{const f=this.transitions.getValue();return t.next(new _c(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Wr.E:Promise.resolve(h)}),function _h(n,a,e,t){return(0,Nt.w)(r=>function kf(n,a,e,t,r){return new Hc(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,At.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mi.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Rr(n,a,e,t,r,l){return(0,Ti.z)(c=>function Qt(n,a,e,t,r,l,c="emptyOnly",s="legacy"){return new v(n,a,e,t,r,c,s,l).recognize().pipe((0,Nt.w)(o=>null===o?function Bd(n){return new Bn.y(a=>a.error(n))}(new Rs):(0,$e.of)(o)))}(n,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,r,l).pipe((0,At.U)(s=>({...c,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mi.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new _f(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:N,restoredState:Q,extras:pe}=s,Pe=new _c(f,this.serializeUrl(b),N,Q);t.next(Pe);const _t=wd(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:_t,urlAfterRedirects:b,extras:{...pe,skipLocationChange:!1,replaceUrl:!1}},(0,$e.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),Wr.E}),(0,mi.b)(s=>{const o=new dl(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,At.U)(s=>r={...s,guards:uh(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function ph(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,$e.of)({...e,guardsResult:!0}):function Wi(n,a,e,t){return(0,Dn.D)(n).pipe((0,Ti.z)(r=>function Ef(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,$e.of)(!0);const c=l.map(s=>{const o=bl(s,a,r);return Bi(function Mr(n){return n&&Ps(n.canDeactivate)}(o)?o.canDeactivate(n,a,e,t):o(n,a,e,t)).pipe((0,br.P)())});return(0,$e.of)(c).pipe(Pr())}(r.component,r.route,e,a,t)),(0,br.P)(r=>!0!==r,!0))}(c,t,r,n).pipe((0,Ti.z)(s=>s&&function vc(n){return"boolean"==typeof n}(s)?function fh(n,a,e,t){return(0,Dn.D)(a).pipe((0,Ar.b)(r=>(0,Wa.z)(function kr(n,a){return null!==n&&a&&a(new yd(n)),(0,$e.of)(!0)}(r.route.parent,t),function mh(n,a){return null!==n&&a&&a(new ul(n)),(0,$e.of)(!0)}(r.route,t),function Sf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function Cf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(c)).filter(c=>null!==c).map(c=>nr(()=>{const s=c.guards.map(o=>{const d=bl(o,c.node,e);return Bi(function kd(n){return n&&Ps(n.canActivateChild)}(d)?d.canActivateChild(t,n):d(t,n)).pipe((0,br.P)())});return(0,$e.of)(s).pipe(Pr())}));return(0,$e.of)(l).pipe(Pr())}(n,r.path,e),function yl(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,$e.of)(!0);const r=t.map(l=>nr(()=>{const c=bl(l,a,e);return Bi(function Al(n){return n&&Ps(n.canActivate)}(c)?c.canActivate(a,n):c(a,n)).pipe((0,br.P)())}));return(0,$e.of)(r).pipe(Pr())}(n,r.route,e))),(0,br.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,At.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,mi.b)(s=>{if(r.guardsResult=s.guardsResult,$r(s.guardsResult))throw bf(0,s.guardsResult);const o=new bd(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,Yt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Rf(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,mi.b)(o=>{const d=new Ad(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}),(0,Nt.w)(o=>{let d=!1;return(0,$e.of)(o).pipe(function Cg(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,Dn.D)(r).pipe((0,Ar.b)(c=>function vg(n,a,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!Tg(r)&&(l[Or]=r.title),function vl(n,a,e,t){const r=function _y(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,Dn.D)(r).pipe((0,Ti.z)(c=>function by(n,a,e,t){const r=bl(n,a,t);return Bi(r.resolve?r.resolve(a,e):r(a,e))}(n[c],a,e,t).pipe((0,br.P)(),(0,mi.b)(s=>{l[c]=s}))),B(1),(0,xi.h)(l),(0,li.K)(c=>Tc(c)?Wr.E:(0,Zn._)(c)))}(l,n,a,t).pipe((0,At.U)(c=>(n._resolvedData=c,n.data=vd(n,e).resolve,r&&Tg(r)&&(n.data[Or]=r.title),null)))}(c.route,t,n,a)),(0,mi.b)(()=>l++),B(1),(0,Ti.z)(c=>l===r.length?(0,$e.of)(e):Wr.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mi.b)({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,mi.b)(o=>{const d=new Ac(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}))}),Rf(s=>{const o=d=>{var u;const h=[];null!==(u=d.routeConfig)&&void 0!==u&&u.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe((0,mi.b)(f=>{d.component=f}),(0,At.U)(()=>{})));for(const f of d.children)h.push(...o(f));return h};return(0,pa.a)(o(s.targetSnapshot.root)).pipe((0,re.d)(),(0,dt.q)(1))}),Rf(()=>this.afterPreactivation()),(0,At.U)(s=>{const o=function bg(n,a,e){const t=gl(n,a._root,e?e._root:void 0);return new lh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:o}}),(0,mi.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,a,e)=>(0,At.U)(t=>(new Pd(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,mi.b)({next(){l=!0},complete(){l=!0}}),ii(()=>{var s;l||c||this.cancelNavigationTransition(r,"",1),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,li.K)(s=>{if(c=!0,Sd(s)){yf(s)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new bc(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(d),yf(s)){const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Bf(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const d=new Er(r.id,this.serializeUrl(r.extractedUrl),s,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(d);try{r.resolve(this.errorHandler(s))}catch(u){r.reject(u)}}return Wr.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},c=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(c){const o={...c};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,c,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Ld),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:c,queryParamsHandling:s,preserveFragment:o}=t,d=r||this.routerState.root,u=o?this.currentUrlTree.fragment:c;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),ih(d,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=$r(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Dg(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Jn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,c){if(this.disposed)return Promise.resolve(!1);let s,o,d;c?(s=c.resolve,o=c.reject,d=c.promise):d=new Promise((N,Q)=>{s=N,o=Q});const u=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(l.replaceUrl||l.skipLocationChange){var f;h=null!==(f=this.browserPageId)&&void 0!==f?f:0}else{var b;h=(null!==(b=this.browserPageId)&&void 0!==b?b:0)+1}else h=0;return this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:o,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(N=>Promise.reject(N))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){var r,l;const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===c?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new bc(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:function(){return Ma()},providedIn:"root"}),n})();function Bf(n){return"imperative"!==n}let xo=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),yh=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof Jn&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,c){if(0!==e||t||r||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();class Mh{}let Nf=(()=>{class n{preload(e,t){return t().pipe((0,li.K)(()=>(0,$e.of)(null)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xy=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn),(0,Ar.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var l,c;o.providers&&!o._injector&&(o._injector=(0,i.MMx)(o.providers,e,`Route: ${o.path}`));const d=null!==(l=o._injector)&&void 0!==l?l:e,u=null!==(c=o._loadedInjector)&&void 0!==c?c:d;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(d,o));else if(o.children||o._loadedRoutes){var s;r.push(this.processRoutes(u,null!==(s=o.children)&&void 0!==s?s:o._loadedRoutes))}}return(0,Dn.D)(r).pipe((0,ci.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,$e.of)(null);const l=r.pipe((0,Ti.z)(c=>{var s;return null===c?(0,$e.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(null!==(s=c.injector)&&void 0!==s?s:e,c.routes))}));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,Dn.D)([l,c]).pipe((0,ci.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Mh),i.LFG(bh))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Sy=new i.OlP("");let Lg=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof _c?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof hl&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new hl(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Pg=new i.OlP("ROUTER_FORROOT_GUARD"),kg=new i.OlP(""),Rg=[w.Ye,{provide:md,useClass:ga},{provide:Ai,useFactory:Ma},Aa,{provide:Xn,useFactory:function wh(n){return n.routerState.root},deps:[Ai]},bh];function Og(){return new i.PXZ("Router",Ai)}let Pc=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[Rg,[],Ch(e),{provide:Pg,useFactory:Dy,deps:[[Ai,new i.FiY,new i.tp0]]},{provide:Of,useValue:t||{}},null!=t&&t.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:Sy,useFactory:()=>{const n=(0,i.f3M)(Ai),a=(0,i.f3M)(w.EM),e=(0,i.f3M)(Of);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Lg(n,a,e)}},null!=t&&t.preloadingStrategy?Vf(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Og},null!=t&&t.initialNavigation?Hy(t):[],[{provide:Ng,useFactory:Bg},{provide:i.tb,multi:!0,useExisting:Ng}]]}}static forChild(e){return{ngModule:n,providers:[Ch(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pg,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Dy(n){return"guarded"}function Ch(n){return[{provide:If,multi:!0,useValue:n}]}function Bg(){const n=(0,i.f3M)(i.zs3);return a=>{var e,t;const r=n.get(i.z2F);if(a!==r.components[0])return;const l=n.get(Ai),c=n.get(Vg);1===n.get(Fg)&&l.initialNavigation(),null===(e=n.get(kg,null,i.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=n.get(Sy,null,i.XFs.Optional))||void 0===t||t.init(),l.resetRootComponentType(r.componentTypes[0]),c.next(),c.complete()}}const Ng=new i.OlP("");function Hy(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ai);return()=>{n.setUpLocationChangeListener()}}},{provide:Fg,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:Fg,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const a=n.get(w.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const l=n.get(Ai),c=n.get(Vg);(function t(r){n.get(Ai).events.pipe((0,Yt.h)(c=>c instanceof Jn||c instanceof bc||c instanceof Er),(0,At.U)(c=>c instanceof Jn||c instanceof bc&&(0===c.code||1===c.code)&&null),(0,Yt.h)(c=>null!==c),(0,dt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||c.closed?(0,$e.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Vg=new i.OlP("",{factory:()=>new De.x}),Fg=new i.OlP("",{providedIn:"root",factory:()=>1});function Vf(n){return[xy,{provide:kg,useExisting:xy},{provide:Mh,useExisting:n}]}let vh;try{vh=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vh=!1}let Tl,Ni=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.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&&!vh)&&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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ff=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Th(){if(Tl)return Tl;if("object"!=typeof document||!document)return Tl=new Set(Ff),Tl;let n=document.createElement("input");return Tl=new Set(Ff.filter(a=>(n.setAttribute("type",a),n.type===a))),Tl}let xh,Fd,Eo,jd;function Qr(n){return function Ry(){if(null==xh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xh=!0}))}finally{xh=xh||!1}return xh}()?n:!!n.capture}function Do(){if(null==Eo){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Eo=!1,Eo;if("scrollBehavior"in document.documentElement.style)Eo=!0;else{const n=Element.prototype.scrollTo;Eo=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Eo}function zd(){if("object"!=typeof document||!document)return 0;if(null==Fd){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Fd=0,0===n.scrollLeft&&(n.scrollLeft=1,Fd=0===n.scrollLeft?1:2),n.remove()}return Fd}function Eh(n){if(function Sh(){if(null==jd){const n=typeof document<"u"?document.head:null;jd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return jd}()){const a=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function qd(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function or(n){return n.composedPath?n.composedPath()[0]:n.target}function Os(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function An(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var Gd=T(8372);function Oh(n){return(0,Yt.h)((a,e)=>n<=e)}function Ih(n,a=Me.y){return n=n??nM,(0,Wn.e)((e,t)=>{let r,l=!0;e.subscribe((0,_r.x)(t,c=>{const s=a(c);(l||!n(r,s))&&(l=!1,r=s,t.next(c))}))})}function nM(n,a){return n===a}var l1=T(5032);function rt(n){return(0,Wn.e)((a,e)=>{(0,Yr.Xf)(n).subscribe((0,_r.x)(e,()=>e.complete(),l1.Z)),!e.closed&&a.subscribe(e)})}function je(n){return null!=n&&"false"!=`${n}`}function Zi(n,a=0){return qf(n)?Number(n):a}function qf(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function $d(n){return Array.isArray(n)?n:[n]}function Ln(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Vi(n){return n instanceof i.SBq?n.nativeElement:n}let Yf=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),c1=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Vi(e);return new Bn.y(r=>{const c=this._observeElement(t).subscribe(r);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Zi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Gd.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(c1),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),xl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yf]}),n})();const Zd=new Set;let Bs,d1=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):u1}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Wf(n){if(!Zd.has(n))try{Bs||(Bs=document.createElement("style"),Bs.setAttribute("type","text/css"),document.head.appendChild(Bs)),Bs.sheet&&(Bs.sheet.insertRule(`@media ${n} {body{ }}`,0),Zd.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function u1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Nh=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Rc($d(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Rc($d(e)).map(c=>this._registerQuery(c).observable);let l=(0,pa.a)(r);return l=(0,Wa.z)(l.pipe((0,dt.q)(1)),l.pipe(Oh(1),(0,Gd.b)(0))),l.pipe((0,At.U)(c=>{const s={matches:!1,breakpoints:{}};return c.forEach(({matches:o,query:d})=>{s.matches=s.matches||o,s.breakpoints[d]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Bn.y(c=>{const s=o=>this._zone.run(()=>c.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(ti(t),(0,At.U)(({matches:c})=>({query:e,matches:c})),rt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(d1),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Rc(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function Jd(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Gf="cdk-describedby-message",$f="cdk-describedby-host";let Vh=0,p1=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Vh++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Vh++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Fh(t,r);"string"!=typeof t?(f1(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const c=Fh(t,r);if(this._isElementDescribedByMessage(e,c)&&this._removeMessageReference(e,c),"string"==typeof t){const s=this._messageRegistry.get(c);s&&0===s.referenceCount&&this._deleteMessageElement(c)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${$f}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Gf));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function oM(n,a,e){const t=Jd(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute($f,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function lM(n,a,e){const r=Jd(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute($f)}_isElementDescribedByMessage(e,t){const r=Jd(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=r.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Fh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function f1(n,a){n.id||(n.id=`${Gf}-${a}-${Vh++}`)}class m1{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=Bt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,mi.b)(e=>this._pressedLetters.push(e)),(0,Gd.b)(a),(0,Yt.h)(()=>this._pressedLetters.length>0),(0,At.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||An(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ea extends m1{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class zh extends m1{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Xd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function uM(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function dM(n){try{return n.frameElement}catch{return null}}(function gM(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Zf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Zf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _1(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function b1(n){return!function g1(n){return function fM(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function hM(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function pM(n){return function mM(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Vt(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vt(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Zf(n){if(!Vt(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class _M{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(a)}}let Qd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new _M(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xd),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Kd(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function is(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const yM=new i.OlP("cdk-input-modality-detector-options"),Jf={ignoreKeys:[18,17,224,91,16]},Oc=Qr({passive:!0,capture:!0});let Px=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=c=>{var s,o;null!==(s=this._options)&&void 0!==s&&null!==(o=s.ignoreKeys)&&void 0!==o&&o.some(d=>d===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=or(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Kd(c)?"keyboard":"mouse"),this._mostRecentTarget=or(c))},this._onTouchstart=c=>{is(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=or(c))},this._options={...Jf,...l},this.modalityDetected=this._modality.pipe(Oh(1)),this.modalityChanged=this.modalityDetected.pipe(Ih()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Oc),r.addEventListener("mousedown",this._onMousedown,Oc),r.addEventListener("touchstart",this._onTouchstart,Oc)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Oc),document.removeEventListener("mousedown",this._onMousedown,Oc),document.removeEventListener("touchstart",this._onTouchstart,Oc))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(yM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kx=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Rx(){return null}}),MM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let A1=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,c;return 1===t.length&&"number"==typeof t[0]?c=t[0]:[l,c]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==c&&r&&(c=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof c&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let d=or(s);d;d=d.parentElement)"focus"===s.type?this._onFocus(s,d):this._onBlur(s,d)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const r=Vi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=Eh(r)||this._getDocument(),c=this._elementInfo.get(r);if(c)return t&&(c.checkChildren=!0),c.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Vi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=Vi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,o])=>this._originChanged(s,t,o)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=or(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ns),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ns)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ns),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ns),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(Nh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(qh,eu,y1),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(qh,eu):2===t&&e.add(qh,y1)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xl]}),n})();const vM=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function TM(){return(0,i.f3M)(w.K0)}}),xM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Vn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function w1(n){var a;const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?xM.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(vM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Po=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function EM(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Ox(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const Ic=["*"];let v1=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),Uh=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const T1=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function va(){return!0}});let gt=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Os()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1),i.LFG(T1,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Po,Po]}),n})();function Ta(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=je(a)}}}function ns(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function xa(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=je(a)}}}function Ro(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Zi(e):this.defaultTabIndex}}}function E1(n){return class extends n{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function tu(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Bn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const Gh=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Qf(){return(0,i.f3M)(i.soG)}});class Ir{constructor(){this._localeChanges=new De.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,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Bc=new i.OlP("mat-date-formats"),Ix=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Kf(n,a){const e=Array(n);for(let t=0;t{class n extends Ir{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Kf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Kf(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Kf(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ix.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gh,8),i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const DM={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 HM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ir,useClass:D1}]}),n})(),e0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Bc,useValue:DM}],imports:[HM]}),n})(),Nc=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Vc(n,a,e){n.nativeElement.classList.toggle(a,e)}let $h=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();class n0{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const PM={enterDuration:225,exitDuration:150},H1=Qr({passive:!0}),kM=["mousedown","touchstart"],RM=["mouseup","mouseleave","touchend","touchcancel"];class OM{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Vi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...PM,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const c=t.radius||function Nx(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),s=a-r.left,o=e-r.top,d=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-c+"px",u.style.top=o-c+"px",u.style.height=2*c+"px",u.style.width=2*c+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,N="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,Q=new n0(this,u,t,N);u.style.transform="scale3d(1, 1, 1)",Q.state=0,t.persistent||(this._mostRecentTransientRipple=Q);let pe=null;return!N&&(d||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pe=()=>this._finishRippleTransition(Q),_t=()=>this._destroyRipple(Q);u.addEventListener("transitionend",Pe),u.addEventListener("transitioncancel",_t),pe={onTransitionEnd:Pe,onTransitionCancel:_t}}),this._activeRipples.set(Q,pe),(N||!d)&&this._finishRippleTransition(Q),Q}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...PM,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Vi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(kM))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RM),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=Kd(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,H1)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(kM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}),this._pointerUpEventsRegistered&&RM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}))}}const IM=new i.OlP("mat-ripple-global-options");let ta=(()=>{class n{constructor(e,t,r,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new OM(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Ni),i.Y36(IM,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),Vs=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),n})(),iu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt]}),n})();const r0=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),nu=new i.OlP("MatOptgroup");let Oo=0;class a0{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let VM=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Oo++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.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(e){this._disabled=je(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!An(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new a0(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Fs=(()=>{class n extends VM{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(r0,8),i.Y36(nu,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:Ic,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(e,t){1&e&&(i.F$t(),i.YNc(0,EM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Ox,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[ta,w.O5,Vs],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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}),n})();function s0(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let c=0;ce+t?Math.max(0,n-t+a):e}let ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ia,w.ez,gt,iu]}),n})();const FM=["mat-button",""],Zh=["*"],Fc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Jh=ns(Ta(xa(class{constructor(n){this._elementRef=n}})));let Lt=(()=>{class n extends Jh{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Fc)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Cr),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,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(e,t){if(1&e&&i.Gf(ta,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:FM,ngContentSelectors:Zh,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(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[ta],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),Sa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ia,gt,gt]}),n})();var P1=T(1144),Ea=T(576),Xh=T(3268);const k1=["addListener","removeListener"],c0=["addEventListener","removeEventListener"],zM=["on","off"];function zs(n,a,e,t){if((0,Ea.m)(e)&&(t=e,e=void 0),t)return zs(n,a,e).pipe((0,Xh.Z)(t));const[r,l]=function I1(n){return(0,Ea.m)(n.addEventListener)&&(0,Ea.m)(n.removeEventListener)}(n)?c0.map(c=>s=>n[c](a,s,e)):function O1(n){return(0,Ea.m)(n.addListener)&&(0,Ea.m)(n.removeListener)}(n)?k1.map(R1(n,a)):function jM(n){return(0,Ea.m)(n.on)&&(0,Ea.m)(n.off)}(n)?zM.map(R1(n,a)):[];if(!r&&(0,P1.z)(n))return(0,Ti.z)(c=>zs(c,a,e))((0,Yr.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new Bn.y(c=>{const s=(...o)=>c.next(1l(s)})}function R1(n,a){return e=>t=>n[e](a,t)}var d0=T(4408);const su={schedule(n){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=su;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(l=>{e=void 0,n(l)});return new Bt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:a}=su;return(a?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:a}=su;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var u0=T(7565);const YM=new class qM extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Br extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=su.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(su.cancelAnimationFrame(e),a._scheduled=void 0)}});let Qh,h0=1;const Kh={};function B1(n){return n in Kh&&(delete Kh[n],!0)}const WM={setImmediate(n){const a=h0++;return Kh[a]=!0,Qh||(Qh=Promise.resolve()),Qh.then(()=>B1(a)&&n()),a},clearImmediate(n){B1(n)}},{setImmediate:GM,clearImmediate:N1}=WM,ep={setImmediate(...n){const{delegate:a}=ep;return(a?.setImmediate||GM)(...n)},clearImmediate(n){const{delegate:a}=ep;return(a?.clearImmediate||N1)(n)},delegate:void 0},tp=new class V1 extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class $M extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ep.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(ep.clearImmediate(e),a._scheduled=void 0)}});var Da=T(4986),f0=T(2805);function m0(n,a=Da.z){return function p0(n){return(0,Wn.e)((a,e)=>{let t=!1,r=null,l=null,c=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const d=r;r=null,e.next(d)}c&&e.complete()},o=()=>{l=null,c&&e.complete()};a.subscribe((0,_r.x)(e,d=>{t=!0,r=d,l||(0,Yr.Xf)(n(d)).subscribe(l=(0,_r.x)(e,s,o))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,f0.H)(n,a))}let zc=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Bn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(m0(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Yt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Vi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>zs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Ni),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Io=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new Bn.y(c=>this.ngZone.runOutsideAngular(()=>zs(this.elementRef.nativeElement,"scroll").pipe(rt(this._destroyed)).subscribe(c)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=zd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==zd()?e.left=e.right:1==zd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Do()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?r:t:"end"==e&&(e=c?t:r),c&&2==zd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==zd()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(zc),i.Y36(i.R0b),i.Y36(Vn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Bo=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new De.x,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(m0(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ha=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Sl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Po,Ha,Po,Ha]}),n})();class A0{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class jc extends A0{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class El extends A0{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class tw extends A0{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class y0{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof jc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof El?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof tw?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class iw extends y0{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=c=>{const s=c.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=c,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let rp=(()=>{class n extends y0{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const c=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(s,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(c,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Vo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Fi=T(6451);const M0=Do();class w0{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Ln(-this._previousScrollPosition.left),a.style.top=Ln(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",c=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),M0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),M0&&(t.scrollBehavior=l,r.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class C0{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Y1{enable(){}disable(){}attach(){}}function v0(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function W1(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class nw{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();v0(e,[{width:t,height:r,bottom:r,right:t,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 rw=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Y1,this.close=c=>new C0(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new w0(this._viewportRuler,this._document),this.reposition=c=>new nw(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zc),i.LFG(Bo),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ou{constructor(a){if(this.scrollStrategy=new Y1,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class Xx{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let U1=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),x0=(()=>{class n extends U1{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const s=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aw=(()=>{class n extends U1{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=or(l)},this._clickListener=l=>{const c=or(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let d=o.length-1;d>-1;d--){const u=o[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(c)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Ni),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nr=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Os()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,dt.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Ln(this._config.width),a.height=Ln(this._config.height),a.minWidth=Ln(this._config.minWidth),a.minHeight=Ln(this._config.minHeight),a.maxWidth=Ln(this._config.maxWidth),a.maxHeight=Ln(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="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(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=$d(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(rt((0,Fi.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Un="cdk-overlay-connected-position-bounding-box",Dl=/([A-Za-z%]+)$/;class sp{constructor(a,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,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 De.x,this._resizeSubscription=Bt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Un),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let c;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),d=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(d,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,d,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!c||c.overlayFit.visibleAreao&&(o=u,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Fn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Un),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const c=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?c:s}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=Hl(e);let{x:c,y:s}=a,o=this._getOffset(r,"x"),d=this._getOffset(r,"y");o&&(c+=o),d&&(s+=d);let f=0-s,b=s+l.height-t.height,N=this._subtractOverflows(l.width,0-c,c+l.width-t.width),Q=this._subtractOverflows(l.height,f,b),pe=N*Q;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:Q===l.height,fitsInViewportHorizontally:N==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,c=op(this._overlayRef.getConfig().minHeight),s=op(this._overlayRef.getConfig().minWidth),d=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=c&&c<=r)&&d}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=Hl(e),l=this._viewportRect,c=Math.max(a.x+r.width-l.width,0),s=Math.max(a.y+r.height-l.height,0),o=Math.max(l.top-t.top-a.y,0),d=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?d||-c:a.xN&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-N/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),N=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>N&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-N/2)}return{top:c,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;r.height=Ln(t.height),r.top=Ln(t.top),r.bottom=Ln(t.bottom),r.width=Ln(t.width),r.left=Ln(t.left),r.right=Ln(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=Ln(l)),c&&(r.maxWidth=Ln(c))}this._lastBoundingBoxSize=t,Fn(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Fn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Fn(t,this._getExactOverlayY(e,a,u)),Fn(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),d=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),d&&(s+=`translateY(${d}px)`),t.transform=s.trim(),c.maxHeight&&(r?t.maxHeight=Ln(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(r?t.maxWidth=Ln(c.maxWidth):l&&(t.maxWidth="")),Fn(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=Ln(l.y),r}_getExactOverlayX(a,e,t){let c,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=Ln(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:W1(a,t),isOriginOutsideView:v0(a,t),isOverlayClipped:W1(e,t),isOverlayOutsideView:v0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&$d(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Fn(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function op(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Dl);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Hl(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Ll="cdk-global-overlay-wrapper";class Yc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Ll),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:c,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||c&&"100%"!==c&&"100vw"!==c),d=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",N="",Q="";o?Q="flex-start":"center"===u?(Q="center",f?N=h:b=h):f?"left"===u||"end"===u?(Q="flex-end",b=h):("right"===u||"start"===u)&&(Q="flex-start",N=h):"left"===u||"start"===u?(Q="flex-start",b=h):("right"===u||"end"===u)&&(Q="flex-end",N=h),a.position=this._cssPosition,a.marginLeft=o?"0":b,a.marginTop=d?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":N,e.justifyContent=Q,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Ll),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Wc=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Yc}flexibleConnectedTo(e){return new sp(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bo),i.LFG(w.K0),i.LFG(Ni),i.LFG(Nr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uc=0,yn=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=s,this._ngZone=o,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),c=new ou(e);return c.direction=c.direction||this._directionality.value,new js(l,t,r,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Uc++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new iw(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rw),i.LFG(Nr),i.LFG(i._Vd),i.LFG(Wc),i.LFG(x0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Vn),i.LFG(w.Ye),i.LFG(aw),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Gc=[{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"}],lp=new i.OlP("cdk-connected-overlay-scroll-strategy");let S0=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),E0=(()=>{class n{constructor(e,t,r,l,c){this._overlay=e,this._dir=c,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Bt.w0.EMPTY,this._attachSubscription=Bt.w0.EMPTY,this._detachSubscription=Bt.w0.EMPTY,this._positionSubscription=Bt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new El(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Gc);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!An(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new ou({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof S0?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(nt(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(lp),i.Y36(Vn,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const $1={provide:lp,deps:[yn],useFactory:function G1(n){return()=>n.scrollStrategies.reposition()}};let Fo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[yn,$1],imports:[Po,Vo,Sl,Sl]}),n})();class D0{}const qs="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Et(n,a=null){return{type:4,styles:a,timings:n}}function du(n,a=null){return{type:3,steps:n,options:a}}function J1(n,a=null){return{type:2,steps:n,options:a}}function Ie(n){return{type:6,styles:n,offset:null}}function Rt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Ys(n){return{type:5,steps:n}}function Pt(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function Pl(n=null){return{type:9,options:n}}function Vr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function uu(n){Promise.resolve(null).then(n)}class kl{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){uu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class P0{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?uu(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,s)=>Math.max(c,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Q1=["connectionContainer"],K1=["inputContainer"],k0=["label"];function R0(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function ow(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function e_(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function t_(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function i_(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function n_(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,e_,4,1,"ng-container",12),i.YNc(3,t_,1,0,"ng-content",12),i.YNc(4,i_,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function lw(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function r_(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function a_(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function O0(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function cp(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,O0,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const I0=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],s_=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let o_=0;const B0=new i.OlP("MatError");let zo=(()=>{class n{constructor(e,t){this.id="mat-error-"+o_++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:B0,useExisting:n}])]}),n})();const l_={transitionMessages:wi("transitionMessages",[Rt("enter",Ie({opacity:1,transform:"translateY(0%)"})),Pt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),Et("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let $c=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),dw=0;const N0=new i.OlP("MatHint");let uw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+dw++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:N0,useExisting:n}])]}),n})(),Hi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),c_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const hw=new i.OlP("MatPrefix"),V0=new i.OlP("MatSuffix");let d_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:V0,useExisting:n}])]}),n})(),F0=0;const pw=ns(class{constructor(n){this._elementRef=n}},"primary"),fw=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Zc=new i.OlP("MatFormField");let cn=(()=>{class n extends pw{constructor(e,t,r,l,c,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=c,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+F0++,this._labelId="mat-form-field-label-"+F0++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ti(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Fi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ti(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ti(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,zs(this._label.nativeElement,"transitionend").pipe((0,dt.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*N+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,xl,gt]}),n})();function Jc(n){return n&&"function"==typeof n.connect}class La{applyChanges(a,e,t,r,l){a.forEachOperation((c,s,o)=>{let d,u;if(null==c.previousIndex){const f=t(c,s,o);d=e.createEmbeddedView(f.templateRef,f.context,f.index),u=1}else null==o?(e.remove(s),u=3):(d=e.get(s),e.move(d,o),u=2);var h;l&&l({context:null===(h=d)||void 0===h?void 0:h.context,operation:u,record:c})})}detach(){}}class Mn{constructor(a=!1,e,t=!0,r){this._multiple=a,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(a?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}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(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let Fr=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cr=new i.OlP("_ViewRepeater");var f_=T(4742),m_=T(1810);function z0(...n){const a=(0,po.jO)(n),{args:e,keys:t}=(0,f_.D)(n),r=new Bn.y(l=>{const{length:c}=e;if(!c)return void l.complete();const s=new Array(c);let o=c,d=c;for(let u=0;u{h||(h=!0,d--),s[u]=f},()=>o--,void 0,()=>{(!o||!h)&&(d||l.next(t?(0,m_.n)(t,s):s),l.complete())}))}});return a?r.pipe((0,Xh.Z)(a)):r}let g_=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),Ol=(()=>{class n extends g_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Qn=new i.OlP("NgValueAccessor"),mw={provide:Qn,useExisting:(0,i.Gpc)(()=>dn),multi:!0},gw=new i.OlP("CompositionEventMode");let dn=(()=>{class n extends g_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function __(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(gw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([mw]),i.qOj]}),n})();function Pa(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function A_(n){return null!=n&&"number"==typeof n.length}const wn=new i.OlP("NgValidators"),Us=new i.OlP("NgAsyncValidators"),q0=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ji{static min(a){return function dp(n){return a=>{if(Pa(a.value)||Pa(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Pa(a.value)||Pa(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return W0(a)}static requiredTrue(a){return function up(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function U0(n){return Pa(n.value)||q0.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function G0(n){return a=>Pa(a.value)||!A_(a.value)?null:a.value.lengthA_(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Z0(n){if(!n)return pu;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Pa(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return T_(a)}static composeAsync(a){return x_(a)}}function W0(n){return Pa(n.value)?{required:!0}:null}function pu(n){return null}function y_(n){return null!=n}function M_(n){return(0,i.QGY)(n)?(0,Dn.D)(n):n}function w_(n){let a={};return n.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function C_(n,a){return a.map(e=>e(n))}function v_(n){return n.map(a=>function _w(n){return!n.validate}(a)?a:e=>a.validate(e))}function T_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return w_(C_(e,a))}}function J0(n){return null!=n?T_(v_(n)):null}function x_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return z0(C_(e,a).map(M_)).pipe((0,At.U)(w_))}}function X0(n){return null!=n?x_(v_(n)):null}function S_(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function E_(n){return n._rawValidators}function D_(n){return n._rawAsyncValidators}function Q0(n){return n?Array.isArray(n)?n:[n]:[]}function hp(n,a){return Array.isArray(n)?n.includes(a):n===a}function H_(n,a){const e=Q0(a);return Q0(n).forEach(r=>{hp(e,r)||e.push(r)}),e}function L_(n,a){return Q0(a).filter(e=>!hp(n,e))}class K0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=J0(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=X0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Kn extends K0{get formDirective(){return null}get path(){return null}}class na extends K0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class em{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let un=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Qc=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const mu="VALID",Il="INVALID",$s="PENDING",Ri="DISABLED";function k_(n){return(gu(n)?n.validators:n)||null}function im(n){return Array.isArray(n)?J0(n):n||null}function fp(n,a){return(gu(a)?a.asyncValidators:n)||null}function R_(n){return Array.isArray(n)?X0(n):n||null}function gu(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function nm(n,a,e){const t=n.controls;if(!(a?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function rm(n,a,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class _u{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=im(this._rawValidators),this._composedAsyncValidatorFn=R_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===mu}get invalid(){return this.status===Il}get pending(){return this.status==$s}get disabled(){return this.status===Ri}get enabled(){return this.status!==Ri}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=im(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=R_(a)}addValidators(a){this.setValidators(H_(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(H_(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(L_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(L_(a,this._rawAsyncValidators))}hasValidator(a){return hp(this._rawValidators,a)}hasAsyncValidator(a){return hp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=$s,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Ri,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=mu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mu||this.status===$s)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ri:mu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=$s,this._hasOwnPendingAsyncValidator=!0;const e=M_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Ri:this.errors?Il:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($s)?$s:this._anyControlsHaveStatus(Il)?Il:mu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){gu(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mp extends _u{constructor(a,e,t){super(k_(e),fp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){rm(this,0,a),Object.keys(a).forEach(t=>{nm(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function gp(n,a){return[...a.path,n]}function Au(n,a){var e,t;_p(n,a),a.valueAccessor.writeValue(n.value),n.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function Mu(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&I_(n,a)})}(n,a),function xw(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function wu(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&I_(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function O_(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function Bl(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),bp(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function yu(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _p(n,a){const e=E_(n);null!==a.validator?n.setValidators(S_(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=D_(n);null!==a.asyncValidator?n.setAsyncValidators(S_(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();yu(a._rawValidators,r),yu(a._rawAsyncValidators,r)}function bp(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=E_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=D_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return yu(a._rawValidators,t),yu(a._rawAsyncValidators,t),e}function I_(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function B_(n,a){_p(n,a)}function am(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Hw(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function z_(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===dn?e=l:function Dw(n){return Object.getPrototypeOf(n.constructor)===Ol}(l)?t=l:r=l}),r||t||e||null}const j_={provide:Kn,useExisting:(0,i.Gpc)(()=>Nl)},qo=(()=>Promise.resolve(null))();let Nl=(()=>{class n extends Kn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new mp({},J0(e),X0(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Au(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qo.then(()=>{const t=this._findContainer(e.path),r=new mp({});B_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){qo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Hw(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36(Us,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([j_]),i.qOj]}),n})();function q_(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}function sm(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const as=class extends _u{constructor(a=null,e,t){super(k_(e),fp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sm(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){q_(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){sm(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},ka=as,Rw={provide:na,useExisting:(0,i.Gpc)(()=>ss)},om=(()=>Promise.resolve(null))();let ss=(()=>{class n extends na{constructor(e,t,r,l,c){super(),this._changeDetectorRef=c,this.control=new as,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),am(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Au(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){om.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);om.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?gp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,9),i.Y36(wn,10),i.Y36(Us,10),i.Y36(Qn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Rw]),i.qOj,i.TTD]}),n})(),Ap=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const Ow={provide:Qn,useExisting:(0,i.Gpc)(()=>Cu),multi:!0};let Cu=(()=>{class n extends Ol{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([Ow]),i.qOj]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const cm=new i.OlP("NgModelWithFormControlWarning"),dm={provide:na,useExisting:(0,i.Gpc)(()=>Ra)};let Ra=(()=>{class n extends na{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=z_(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Bl(t,this,!1),Au(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}am(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Bl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36(Us,10),i.Y36(Qn,10),i.Y36(cm,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([dm]),i.qOj,i.TTD]}),n})();const Z_={provide:Kn,useExisting:(0,i.Gpc)(()=>Zs)};let Zs=(()=>{class n extends Kn{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Au(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Bl(e.control||null,e,!1),function oS(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Hw(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Bl(t||null,e),(n=>n instanceof as)(r)&&(Au(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);B_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function N_(n,a){return bp(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_p(this.form,this),this._oldForm&&bp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36(Us,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Z_]),i.qOj,i.TTD]}),n})();const Fw={provide:na,useExisting:(0,i.Gpc)(()=>yp)};let yp=(()=>{class n extends na{constructor(e,t,r,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),am(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return gp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,13),i.Y36(wn,10),i.Y36(Us,10),i.Y36(Qn,10),i.Y36(cm,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Fw]),i.qOj,i.TTD]}),n})(),Fl=(()=>{class n{constructor(){this._validator=pu}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):pu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const ab={provide:wn,useExisting:(0,i.Gpc)(()=>ra),multi:!0};let ra=(()=>{class n extends Fl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>W0}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([ab]),i.qOj]}),n})(),cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[U_]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})(),Js=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:cm,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})();class Am extends _u{constructor(a,e,t){super(k_(e),fp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){rm(this,0,a),a.forEach((t,r)=>{nm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function db(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Zw=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return db(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new mp(r,l)}control(e,t,r){let l={};return this.useNonNullable?(db(t)?l=t:(l.validators=t,l.asyncValidators=r),new as(e,{...l,nonNullable:!0})):new as(e,t,r)}array(e,t,r){const l=e.map(c=>this._createControl(c));return new Am(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof as||e instanceof _u?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Js}),n})(),Jw=(()=>{class n extends Zw{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Js}),n})();const Xw=["trigger"],ub=["panel"];function hb(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function pb(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function Qw(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Kw(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,pb,2,1,"span",10),i.YNc(2,Qw,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function eC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const tC=[[["mat-select-trigger"]],"*"],iC=["mat-select-trigger","*"],fb={transformPanelWrap:wi("transformPanelWrap",[Pt("* => void",Vr("@transformPanel",[Pl()],{optional:!0}))]),transformPanel:wi("transformPanel",[Rt("void",Ie({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Rt("showing",Ie({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Rt("showing-multiple",Ie({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Pt("void => *",Et("120ms cubic-bezier(0, 0, 0.2, 1)")),Pt("* => void",Et("100ms 25ms linear",Ie({opacity:0})))])};let ym=0;const wm=new i.OlP("mat-select-scroll-strategy"),Ab=new i.OlP("MAT_SELECT_CONFIG"),rC={provide:wm,deps:[yn],useFactory:function bb(n){return()=>n.scrollStrategies.reposition()}};class aC{constructor(a,e){this.source=a,this.value=e}}const xu=xa(Ro(Ta(E1(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),sC=new i.OlP("MatSelectTrigger");let os=(()=>{class n extends xu{constructor(e,t,r,l,c,s,o,d,u,h,f,b,N,Q){var pe,Pe,_t;super(c,l,o,d,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=N,this._defaultOptions=Q,this._panelOpen=!1,this._compareWith=(kt,Ut)=>kt===Ut,this._uid="mat-select-"+ym++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ym++,this._panelDoneAnimatingStream=new De.x,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Pe=null===(_t=this._defaultOptions)||void 0===_t?void 0:_t.disableOptionCentering)&&void 0!==Pe&&Pe,this.ariaLabel="",this.optionSelectionChanges=nr(()=>{const kt=this.options;return kt?kt.changes.pipe(ti(kt),(0,Nt.w)(()=>(0,Fi.T)(...kt.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,dt.q)(1),(0,Nt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Yt.h)(kt=>kt),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Yt.h)(kt=>!kt),(0,At.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Q?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Q.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Zi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Mn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ih(),rt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(rt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ti(null),rt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,c=this._keyManager;if(!c.isTyping()&&l&&!An(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;c.onKeydown(e);const o=this.selected;o&&s!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,c=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(c||13!==r&&32!==r||!t.activeItem||An(e))if(!c&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(s?o.select():o.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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,dt.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(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ea(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(rt(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 e=(0,Fi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(rt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Fi.T)(...this.options.map(t=>t._stateChanges)).pipe(rt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bo),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Nc),i.Y36(i.SBq),i.Y36(Vn,8),i.Y36(Nl,8),i.Y36(Zs,8),i.Y36(Zc,8),i.Y36(na,10),i.$8M("tabindex"),i.Y36(wm),i.Y36(A1),i.Y36(Ab,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(Xw,5),i.Gf(ub,5),i.Gf(E0,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.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:[i.qOj,i.TTD]}),n})(),Tp=(()=>{class n extends os{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(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(rt(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,dt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=s0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:o0((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new aC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let c;if(this.multiple)c=40;else if(this.disableOptionCentering)c=16;else{let d=this._selectionModel.selected[0]||this.options.first;c=d&&d.group?32:16}r||(c*=-1);const s=0-(e.left+c-(r?l:0)),o=e.right+c-t.width+(r?0:l);s>0?c+=s+8:o>0&&(c-=o+8),this._overlayDir.offsetX=Math.round(c),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),c=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*o-c))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,c=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;d>c?this._adjustPanelUp(d,c):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),c=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=s0(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,c),this._offsetY=this._calculateOverlayOffsetY(s,o,c),this._checkOverlayWithinViewport(c)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,sC,5),i.Suo(r,Fs,5),i.Suo(r,nu,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:$c,useExisting:n},{provide:r0,useExisting:n}]),i.qOj],ngContentSelectors:iC,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(e,t){if(1&e&&(i.F$t(tC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,hb,2,1,"span",3),i.YNc(5,Kw,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,eC,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[w.mk,w.RF,w.n9,w.ED,E0,S0],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:[fb.transformPanelWrap,fb.transformPanel]},changeDetection:0}),n})(),Yo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[rC],imports:[w.ez,Fo,ru,gt,Ha,rs,ru,gt]}),n})();const Su=["tooltip"],Mb="tooltip-panel",Eu=Qr({passive:!0}),wb=new i.OlP("mat-tooltip-scroll-strategy"),vb={provide:wb,deps:[yn],useFactory:function Cb(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cm=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Tb(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let lC=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=c,this._platform=s,this._ariaDescriber=o,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(rt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Zi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Zi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Eu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new jc(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(rt(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Mb}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rt(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rt(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&27===l.keyCode&&!An(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.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(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...r.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1),rt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${Mb}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const l=t.relatedTarget;(!l||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(l))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Eu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),dr=(()=>{class n extends lC{constructor(e,t,r,l,c,s,o,d,u,h,f,b){super(e,t,r,l,c,s,o,d,u,h,f,b),this._tooltipComponent=vm}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.SBq),i.Y36(zc),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Ni),i.Y36(p1),i.Y36(Cr),i.Y36(wb),i.Y36(Vn,8),i.Y36(Cm,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),gS=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),vm=(()=>{class n extends gS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(Nh),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(Su,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[w.mk,w.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}),n})(),Xs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[vb],imports:[Yh,w.ez,Fo,gt,gt,Ha]}),n})();function Tm(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function xm(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,Tm,2,2,"mat-option",18),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dC(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function uC(n,a){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,xm,3,8,"mat-form-field",14),i.YNc(4,dC,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function hC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function pC(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let Du=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xb={provide:Du,deps:[[new i.FiY,new i.tp0,Du]],useFactory:function Sm(n){return n||new Du}},Eb=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),mC=Ta(tu(class{}));let Db=(()=>{class n extends mC{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:c,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=c&&(this._pageSizeOptions=c),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Zi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Zi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Zi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Zi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=je(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=je(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),Em=(()=>{class n extends Db{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Du),i.Y36(i.sBO),i.Y36(Eb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,uC,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,hC,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,pC,3,5,"button",11),i.qZA()()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[w.sg,w.O5,Lt,cn,Tp,Fs,dr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Hu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xb],imports:[w.ez,Sa,Yo,Xs,gt]}),n})();var Sp=T(1005);const gC=["mat-menu-item",""];function ur(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const ql=["*"];function _C(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ep={transformMenu:wi("transformMenu",[Rt("void",Ie({opacity:0,transform:"scale(0.8)"})),Pt("void => enter",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),Pt("* => void",Et("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:wi("fadeInItems",[Rt("showing",Ie({opacity:1})),Pt("void => *",[Ie({opacity:0}),Et("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Hb=new i.OlP("MatMenuContent"),Hp=new i.OlP("MAT_MENU_PANEL"),AC=xa(Ta(class{}));let Lu=(()=>{class n extends AC{constructor(e,t,r,l,c){var s;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,null==l||null===(s=l.addItem)||void 0===s||s.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=Bt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Dm++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new zh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,Nt.w)(e=>(0,Fi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const l=e.toArray(),c=Math.max(0,Math.min(l.length-1,r.activeItemIndex||0));l[c]&&!l[c].disabled?r.setActiveItem(c):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,Nt.w)(t=>(0,Fi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:An(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){var r;const l=this._classList;l["mat-menu-before"]="before"===e,l["mat-menu-after"]="after"===e,l["mat-menu-above"]="above"===t,l["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ti(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Yl),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Hb,5),i.Suo(r,Lu,5),i.Suo(r,Lu,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Hm=(()=>{class n extends td{constructor(e,t,r,l){super(e,t,r,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Yl),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Hp,useExisting:n}]),i.qOj],ngContentSelectors:ql,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,_C,3,6,"ng-template"))},dependencies:[w.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ep.transformMenu,Ep.fadeInItems]},changeDetection:0}),n})();const Pu=new i.OlP("mat-menu-scroll-strategy"),AS={provide:Pu,deps:[yn],useFactory:function Lm(n){return()=>n.scrollStrategies.reposition()}},Pb=Qr({passive:!0});let kb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Bt.w0.EMPTY,this._hoverSubscription=Bt.w0.EMPTY,this._menuCloseSubscription=Bt.w0.EMPTY,this._handleTouchStart=h=>{is(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof td?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pb),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pb),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof td&&(e._startAnimation(),e._directDescendantItems.changes.pipe(rt(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof td?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Yt.h)(l=>"void"===l.toState),(0,dt.q)(1),rt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new ou({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",c="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,d]=[c,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===c?"bottom":"top",d="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:u,overlayY:c,offsetY:f},{originX:l,originY:o,overlayX:h,overlayY:c,offsetY:f},{originX:r,originY:d,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:d,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,$e.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Yt.h)(c=>c!==this._menuItemInstance),(0,Yt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Fi.T)(e,r,l,t)}_handleMousedown(e){Kd(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Yt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Sp.g)(0,tp)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof td&&this.menu._isAnimating?this.menu._animationDone.pipe((0,dt.q)(1),(0,Sp.g)(0,tp),rt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new El(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(Pu),i.Y36(Hp,8),i.Y36(Lu,10),i.Y36(Vn,8),i.Y36(Cr),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Wl=(()=>{class n extends kb{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),ku=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[AS],imports:[w.ez,gt,ia,Fo,Ha,gt]}),n})();var Pm=T(3099);const km=["*"];let Rm;function Lp(n){var a;return(null===(a=function wC(){if(void 0===Rm&&(Rm=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Rm=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Rm}())||void 0===a?void 0:a.createHTML(n))||n}function Rb(n){return Error(`Unable to find icon with the name "${n}"`)}function Ob(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Om(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Wo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ru=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Wo(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const c=this._sanitizer.sanitize(i.q3G.HTML,r);if(!c)throw Om(r);const s=Lp(c);return this._addSvgIconConfig(e,t,new Wo("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Wo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Om(t);const c=Lp(l);return this._addSvgIconSetConfig(e,new Wo("",c,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw Ob(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(Pp(r)):this._loadSvgIconFromConfig(new Wo(e,null)).pipe((0,mi.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,At.U)(l=>Pp(l)))}getNamedSvgIcon(e,t=""){const r=Bb(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,Zn._)(Rb(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(Pp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,At.U)(t=>Pp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):z0(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,li.K)(s=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,c.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),(0,$e.of)(null)})))).pipe((0,At.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Rb(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(c,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,mi.b)(t=>e.svgText=t),(0,At.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,mi.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,r);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),r);const s=this._svgElementFromString(Lp(""));return s.appendChild(c),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Lp("")),r=e.attributes;for(let l=0;lLp(u)),ii(()=>this._inProgressUrlFetches.delete(s)),(0,Pm.B)());return this._inProgressUrlFetches.set(s,d),d}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Bb(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),Im=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xC=Im.map(n=>`[${n}]`).join(", "),SC=/^url\(['"]?#(.*?)['"]?\)$/;let Xi=(()=>{class n extends TC{constructor(e,t,r,l,c,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Bt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=je(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(xC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(c),d=o?o.match(SC):null;if(d){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:c,value:d[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,dt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ru),i.$8M("aria-hidden"),i.Y36(Fb),i.Y36(i.qLn),i.Y36(Vb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:km,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),n})(),Oa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();function Qs(n){return!!n&&(n instanceof Bn.y||(0,Ea.m)(n.lift)&&(0,Ea.m)(n.subscribe))}var yS=T(6063);class MS extends De.x{constructor(a=1/0,e=1/0,t=yS.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!r&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let c=0;cnew MS(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class kp{}let DC=(()=>{class n extends kp{getTranslation(e){return(0,$e.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class jb{}let HC=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Ul(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,c,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),n){if(!Ul(n[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Rp(a[t])?t in n?e[t]=Ou(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Iu{}let Bm=(()=>{class n extends Iu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Gl(e)||!Gl(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let c=this.getValue(t,l);return Gl(c)?c:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Nm{}let Op=(()=>{class n extends Nm{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Vm{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Fm=new i.OlP("USE_STORE"),Ip=new i.OlP("USE_DEFAULT_LANG"),qb=new i.OlP("DEFAULT_LANGUAGE"),zm=new i.OlP("USE_EXTEND");let _i=(()=>{class n{constructor(e,t,r,l,c,s=!0,o=!1,d=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=s,this.isolate=o,this.extend=d,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,dt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,$e.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,dt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(EC(1),(0,dt.q)(1));return this.loadingTranslations=t.pipe((0,At.U)(r=>this.compiler.compileTranslations(r,e)),EC(1),(0,dt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Ou(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let c={},s=!1;for(let o of t)c[o]=this.getParsedResult(e,o,r),Qs(c[o])&&(s=!0);return s?z0(t.map(d=>Qs(c[d])?c[d]:(0,$e.of)(c[d]))).pipe((0,At.U)(d=>{let u={};return d.forEach((h,f)=>{u[t[f]]=h}),u})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let c={key:t,translateService:this};typeof r<"u"&&(c.interpolateParams=r),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!Gl(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ar.b)(r=>Qs(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Qs(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!Gl(e)||!e.length)throw new Error('Parameter "key" required');return(0,Wa.z)(nr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Nt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!Gl(e)||!e.length)throw new Error('Parameter "key" required');return(0,Wa.z)(nr(()=>this.get(e,t)),this.onLangChange.pipe((0,Nt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Qs(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!Gl(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Qs(r)){if(e instanceof Array){let l={};return e.forEach((c,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vm),i.LFG(kp),i.LFG(Nm),i.LFG(Iu),i.LFG(jb),i.LFG(Ip),i.LFG(Fm),i.LFG(zm),i.LFG(qb))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(r){let c=this.translate.getParsedResult(r,e,t);Qs(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Ul(e,this.lastKey)&&Ul(t,this.lastParams))return this.value;let r;if(Gl(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Bu=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:kp,useClass:DC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Iu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:HC},Vm,{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},_i]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:kp,useClass:DC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Iu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:HC},{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},_i]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),LC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Hu,ku,Oa,Sa,Bu,w.ez]}),n})();var CS=T(5861);function vS(n,a){}class Bp{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 Yb=(()=>{class n extends y0{constructor(e,t,r,l,c,s,o,d){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=s,this._overlayRef=o,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=qd(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=qd();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=qd())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(w.K0,8),i.Y36(Bp),i.Y36(Xd),i.Y36(i.R0b),i.Y36(js),i.Y36(Cr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(rp,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,vS,0,0,"ng-template",0)},dependencies:[rp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Wb{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!An(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Ub=new i.OlP("DialogScrollStrategy"),Gb=new i.OlP("DialogData"),$b=new i.OlP("DefaultDialogConfig"),Ia={provide:Ub,deps:[yn],useFactory:function xS(n){return()=>n.scrollStrategies.block()}};let PC=0,Np=(()=>{class n{constructor(e,t,r,l,c,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Bp,...t}).id=t.id||"cdk-dialog-"+PC++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),s=new Wb(c,t),o=this._attachContainer(c,s,t);return s.containerInstance=o,this._attachDialogContent(e,s,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){jm(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jm(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jm(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new ou({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var l,c;const s=null!==(l=r.injector)&&void 0!==l?l:null===(c=r.viewContainerRef)||void 0===c?void 0:c.injector,o=[{provide:Bp,useValue:r},{provide:Wb,useValue:t},{provide:js,useValue:e}];let d;r.container?"function"==typeof r.container?d=r.container:(d=r.container.type,o.push(...r.container.providers(r))):d=Yb;const u=new jc(d,r.viewContainerRef,i.zs3.create({parent:s||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(u).instance}_attachDialogContent(e,t,r,l){const c=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new El(e,null,s,c))}else{const s=r.attachComponentPortal(new jc(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:Gb,useValue:e.data},{provide:Wb,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,r)):c.push(...e.providers)),e.direction&&(!l||!l.get(Vn,null,i.XFs.Optional))&&c.push({provide:Vn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(i.zs3),i.LFG($b,8),i.LFG(n,12),i.LFG(Nr),i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function jm(n,a){let e=n.length;for(;e--;)a(n[e])}let zr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Np,Ia],imports:[Fo,Vo,Yh,Vo]}),n})();function kC(n,a){}const Uo={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},RC={dialogContainer:wi("dialogContainer",[Rt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),Rt("enter",Ie({transform:"none"})),Pt("* => enter",du([Et("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),Vr("@*",Pl(),{optional:!0})]),Uo),Pt("* => void, * => exit",du([Et("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),Vr("@*",Pl(),{optional:!0})]),Uo)])};class Nu{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=Uo.params.enterAnimationDuration,this.exitAnimationDuration=Uo.params.exitAnimationDuration}}let qm=(()=>{class n extends Yb{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(w.K0,8),i.Y36(Nu),i.Y36(Xd),i.Y36(i.R0b),i.Y36(js),i.Y36(Cr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Zb=(()=>{class n extends qm{constructor(e,t,r,l,c,s,o,d,u){super(e,t,r,l,c,s,o,u),this._changeDetectorRef=d,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Uo.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Uo.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(w.K0,8),i.Y36(Nu),i.Y36(Xd),i.Y36(i.R0b),i.Y36(js),i.Y36(i.sBO),i.Y36(Cr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,kC,0,0,"ng-template",0)},dependencies:[rp],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:[RC.dialogContainer]}}),n})();class zi{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,Yt.h)(r=>"opened"===r.state),(0,dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Yt.h)(r=>"closed"===r.state),(0,dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Fi.T)(this.backdropClick(),this.keydownEvents().pipe((0,Yt.h)(r=>27===r.keyCode&&!this.disableClose&&!An(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function OC(n,a,e){n._closeInteractionType=a,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,Yt.h)(e=>"closing"===e.state),(0,dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Cn=new i.OlP("MatDialogData"),Jb=new i.OlP("mat-dialog-default-options"),Xb=new i.OlP("mat-dialog-scroll-strategy"),Ym={provide:Xb,deps:[yn],useFactory:function BC(n){return()=>n.scrollStrategies.block()}};let Go=0,Qb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=o,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(void 0))),this._scrollStrategy=s,this._dialog=t.get(Np)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Nu,...t}).id=t.id||`${this._idPrefix}${Go++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Nu,useValue:t},{provide:Bp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(c,s,o)=>{var d;return r=new this._dialogRefConstructor(c,t,o),r.updatePosition(null===(d=t)||void 0===d?void 0:d.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(r);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Oi=(()=>{class n extends Qb{constructor(e,t,r,l,c,s,o,d){super(e,t,l,s,o,c,zi,Zb,Cn,d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(Jb,8),i.LFG(Xb),i.LFG(n,12),i.LFG(Nr),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ks=0,Pn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+Ks++}ngOnInit(){this._dialogRef||(this._dialogRef=function NC(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi,8),i.Y36(i.SBq),i.Y36(Oi))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),hn=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Vp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Oi,Ym],imports:[zr,Fo,Vo,gt,gt]}),n})();var Kb=T(4327);const Vu=[5,10,25,100];function zp(){return(zp=(0,CS.Z)(function*(n,a){yield WC(n),a()})).apply(this,arguments)}function WC(n){return new Promise(a=>setTimeout(a,n))}function bi(){const n=new Nu;return n.disableClose=!0,n.autoFocus=!1,n}function $l(n){return"virt"===n.namespace.split(":")[4]}const Um=new Intl.Collator("cs",{numeric:!0});function Fu(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,c)=>{const s=e(l,t),o=e(c,t);return Um.compare(s,o)*("asc"===r?1:-1)}):n}function Zl(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(c=>{l+=";"+t(n,c)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function eo(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const c={};a.forEach(s=>{c[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(c)}),t}function zu(n,a="csv",e="export"){if("csv"===a){const t=(o,d)=>null===d?"":d,r=Object.keys(n[0]),l=n.map(o=>r.map(d=>JSON.stringify(o[d],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const c=l.join("\r\n"),s=new Blob([c],{type:"text/csv"});(0,Kb.saveAs)(s,`${e}.${a}`)}}function KC(n,a){return n.name.toLowerCase()>a.name.toLowerCase()?1:n.name.toLowerCase()===a.name.toLowerCase()?0:-1}const Gm="GUI_CONFIG.PREF_PAGE_SIZE.";let nv=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rv=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Gm+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Gm+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),eL=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA()()()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},dependencies:[Hm,Lu,Wl,Xi,Lt,lt]}),n})();function tL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportData.emit(r))}),i.qZA()}}function iL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportData.emit(r))}),i.qZA()}}const nL=["*"];let ls=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Vu,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(Em,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:nL,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,tL,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1)(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,iL,1,0,"perun-web-apps-table-options",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},dependencies:[Em,w.O5,eL]}),n})();class GS{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Zt=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let r=null;for(const l of t)l&&!r&&(r=l[e]);return r}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l{class n{constructor(e,t,r,l,c){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Ai),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const s=function tv(n,a){const e=a.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));s&&(c.idphint=s)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],r=t[c[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(r=>r?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Yt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const c={};return l.forEach(s=>{const o=s.split("=");c[o[0]]=o[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(Zt),i.LFG(Oi),i.LFG(Xn),i.LFG(ju.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rL=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[vn,lt]}),n})(),ov=(()=>{class n{constructor(e,t,r,l,c,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=c,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=bi();this.dialog.open(rL,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rd),i.LFG(Zt),i.LFG(Ya),i.LFG(ht),i.LFG(Oi),i.LFG(Ai))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$S=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ru),i.LFG(Gi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),aL=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})(),$m=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hr=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,c){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_i))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZS=(()=>{class n{constructor(e,t,r,l,c,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=c,this.initAuthService=s}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=bi();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(aL,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ii(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,mi.b)(s=>{s instanceof M.Zn&&c&&this.initAuthService.loadPrincipal()},s=>{const o=this.formatErrors(s,e);return void 0===o?(0,Zn._)(s):l?void this.notificator.showRPCError(o):(0,Zn._)(o)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rd),i.LFG($m),i.LFG(hr),i.LFG(Zt),i.LFG(Oi),i.LFG(ov))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),JS=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sL=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new M.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,li.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,li.K)(s=>this.formatErrors(s,l,c,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:s}).pipe((0,li.K)(o=>this.formatErrors(o,l,c,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,li.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const c=e.error;return c.call=t,c.payload=r,l&&this.notificator.showRPCError(e.error),(0,Zn._)(c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(hr),i.LFG(rd),i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lv=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,c,s,o,d){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=c*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,o).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{d?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(c=o[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xn),i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gA=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const r of e)if(r.newApps.admin===t||r.newApps.profile===t||r.newApps.pwdReset===t||r.newApps.consolidator===t||r.newApps.linker===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let o;if(s.newApps[e])o=s.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=s.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oL=(()=>{class n{setEntity(e){this.entity=e}getEntity(){return this.entity}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lL=(()=>{class n{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt),i.LFG(ju.Ct),i.LFG(M.eN))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _A=["*"],cL=["content"];function dL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function uL(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const hL=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],pL=["mat-drawer","mat-drawer-content","*"];function fL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function mL(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const gL=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_L=["mat-sidenav","mat-sidenav-content","*"],XS={transformDrawer:wi("transform",[Rt("open, open-instant",Ie({transform:"none",visibility:"visible"})),Rt("void",Ie({"box-shadow":"none",visibility:"hidden"})),Pt("void => open-instant",Et("0ms")),Pt("void <=> open, open-instant => void",Et("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},AL=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function yL(){return!1}}),dv=new i.OlP("MAT_DRAWER_CONTAINER");let bA=(()=>{class n extends Io{constructor(e,t,r,l,c){super(r,l,c),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>KS)),i.Y36(i.SBq),i.Y36(zc),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Io,useExisting:n}]),i.qOj],ngContentSelectors:_A,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),QS=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=c,this._interactivityChecker=s,this._doc=o,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Yt.h)(u=>u),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,xi.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Yt.h)(u=>!u),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,xi.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{zs(this._elementRef.nativeElement,"keydown").pipe((0,Yt.h)(u=>27===u.keyCode&&!this.disableClose&&!An(u)),rt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Ih((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=je(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=je(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(je(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,dt.q)(1)).subscribe(c=>l(c?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qd),i.Y36(Cr),i.Y36(Ni),i.Y36(i.R0b),i.Y36(Xd),i.Y36(w.K0,8),i.Y36(dv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(cL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:_A,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Io],encapsulation:2,data:{animation:[XS.transformDrawer]},changeDetection:0}),n})(),KS=(()=>{class n{constructor(e,t,r,l,c,s=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=o,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(rt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(rt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=je(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(ti(this._allDrawers),rt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ti(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Gd.b)(10),rt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Yt.h)(t=>t.fromState!==t.toState),rt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(rt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(rt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(rt((0,Fi.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Bo),i.Y36(AL),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,bA,5),i.Suo(r,QS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(bA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:dv,useExisting:n}])],ngContentSelectors:pL,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(hL),i.YNc(0,dL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,uL,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,bA],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),uv=(()=>{class n extends bA{constructor(e,t,r,l,c){super(e,t,r,l,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>tE)),i.Y36(i.SBq),i.Y36(zc),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Io,useExisting:n}]),i.qOj],ngContentSelectors:_A,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),eE=(()=>{class n extends QS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Zi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Zi(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:_A,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Io],encapsulation:2,data:{animation:[XS.transformDrawer]},changeDetection:0}),n})(),tE=(()=>{class n extends KS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,uv,5),i.Suo(r,eE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:dv,useExisting:n}]),i.qOj],ngContentSelectors:_L,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(gL),i.YNc(0,fL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,mL,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,uv],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,Ha,Ha,gt]}),n})();function iE(n){for(let e in n){var a;let t=null!==(a=n[e])&&void 0!==a?a:"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const pv="inline",AA=["row","column","row-reverse","column-reverse"];function nE(n){let[a,e,t]=function rE(n){var a,e;n=null!==(a=null===(e=n)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,l]=n.split(" ");return AA.find(c=>c===t)||(t=AA[0]),r===pv&&(r=l!==pv?l:"",l=pv),[t,ML(r),!!l]}(n);return function wL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function ML(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const vL={provide:i.tb,useFactory:function CL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${aE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${aE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},aE="flex-layout-";let fv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[vL]}),n})();class qu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new qu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let TL=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let l="";if(r){const c=r.get(t);("number"==typeof c||"string"==typeof c)&&(l=c+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const mv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},to=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>mv}),jp=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),gv=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function sE(n,a){var e,t;return n=null!==(e=null===(t=n)||void 0===t?void 0:t.clone())&&void 0!==e?e:new qu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class Tn{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let Qi=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:iE(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:iE(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,w.NF)(this._platformId)?e.style.getPropertyValue(t):function xL(n,a){var e;return null!==(e=oE(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],c=Array.isArray(l)?l:[l];c.sort();for(let s of c)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):SL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(TL),i.LFG(jp),i.LFG(i.Lbi),i.LFG(to))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=oE(n);t[a]=e??"",function EL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function oE(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const c=l.indexOf(":");if(-1===c)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,c).trim()]=l.substr(c+1).trim()}}}return a}function Jm(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function DL(n,a){return(n.priority||0)-(a.priority||0)}let _v=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new $i(new qu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,Yt.h)(c=>!t||e.indexOf(c.mediaQuery)>-1)),l=new Bn.y(c=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(d=>{c.next(d)}),this.source.next(o)}c.complete()});return(0,Fi.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function HL(n,a){const e=n.filter(t=>!lE[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),a.head.appendChild(r),e.forEach(l=>lE[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const c=o=>{this._zone.run(()=>this.source.next(new qu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(c),this.pendingRemoveListenerFns.push(()=>s.removeListener(c)),this.registry.set(l,s)),s.matches&&r.push(new qu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function LL(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lE={},PL=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],cE="(orientation: portrait) and (max-width: 599.98px)",dE="(orientation: landscape) and (max-width: 959.98px)",uE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",hE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",pE="(orientation: portrait) and (min-width: 840px)",fE="(orientation: landscape) and (min-width: 1280px)",Xl={HANDSET:`${cE}, ${dE}`,TABLET:`${uE} , ${hE}`,WEB:`${pE}, ${fE} `,HANDSET_PORTRAIT:`${cE}`,TABLET_PORTRAIT:`${uE} `,WEB_PORTRAIT:`${pE}`,HANDSET_LANDSCAPE:`${dE}`,TABLET_LANDSCAPE:`${hE}`,WEB_LANDSCAPE:`${fE}`},kL=[{alias:"handset",priority:2e3,mediaQuery:Xl.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Xl.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Xl.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Xl.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Xl.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Xl.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Xl.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Xl.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Xl.WEB_PORTRAIT,overlapping:!0}],RL=/(\.|-|_)/g;function OL(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const VL=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(gv),a=(0,i.f3M)(to),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function NL(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Jl(n,...a){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function BL(n){return n.forEach(a=>{a.suffix||(a.suffix=function IL(n){return n.replace(RL,"|").split("|").map(OL).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:PL).concat(a.addOrientationBps?kL:[]),e)}});let bv=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(DL)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);var c;return l||(l=null!==(c=this.items.find(t))&&void 0!==c?c:null,this.findByMap.set(e,l)),null!==(r=l)&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qp="print",FL={alias:qp,mediaQuery:qp,priority:1e3};let zL=(()=>{class n{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new jL,this.deactivations=[]}withPrintQuery(e){return[...e,qp]}isPrintEvent(e){return e.mediaQuery.startsWith(qp)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(Jm)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,l;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(l=t)||void 0===l?void 0:l.mediaQuery)&&void 0!==r?r:""),sE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new qu(!0,qp))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const l=this.formerActivations&&this.formerActivations.includes(r),c=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||c)&&(this.deactivations.push(r),this.deactivations.sort(Jm))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bv),i.LFG(to),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class jL{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(FL),a.sort(Jm),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function qL(n){var a;return null!==(a=n?.mediaQuery.startsWith(qp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let nn=(()=>{class n{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new De.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=sE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(Jm),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Jm),this.updateStyles())}}init(e,t,r,l,c=[]){mE(this.updateMap,e,t,r),mE(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,c)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const c=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(c)return c.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){let c=this.elementMap.get(e);if(c){var s;const d=(null!==(s=c.get(l))&&void 0!==s?s:new Map).set(t,r);c.set(l,d),this.elementMap.set(e,c)}else c=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,c);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,Yt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((c,s)=>{this.updateElement(t,s,c),r.delete(s)}),r.forEach(c=>{if(l=this.getActivatedValues(e,c),l){const s=l.get(c);this.updateElement(t,c,s)}else this.clearElement(t,c)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const c=l.get(t);c&&(c(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,c)=>r.delete(c)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((c,s)=>this.updateElement(e,s,c)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const s=(0,Fi.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});l.set(t,s)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,mi.b)(this.hook.interceptEvents(this)),(0,Yt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_v),i.LFG(bv),i.LFG(zL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mE(n,a,e,t){if(void 0!==t){var r;const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let pn=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new De.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let c=this.styleCache.get(e);(!c||!l)&&(c=r.buildStyles(e,t),l&&this.styleCache.set(e,c)),this.mru={...c},this.applyStyleToElement(c),r.sideEffect(e,c,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,l]=this.styler.getFlowDirection(e);if(!l&&t){const c=nE(r);this.styler.applyStyleToElements(c,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Tn),i.Y36(Qi),i.Y36(nn))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class rP{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function AE(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function ME(n){const[a,...e]=n.split(":");return new rP(a,e.join(":"))}function wE(n,a){return a.key&&(n[a.key]=a.value),n}let oP=(()=>{class n extends pn{constructor(e,t,r,l,c,s,o,d,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,c,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=d&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(AE(e)){case"string":return CE(function aP(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return CE(e,t);default:return function yE(n,a){let e=[];return"set"===AE(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function sP(n,a){return n.map(ME).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(wE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(nn),i.Y36(Gi),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(jp),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const lP=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let MA=(()=>{class n extends oP{constructor(){super(...arguments),this.inputs=lP}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.qOj]}),n})();function CE(n,a){return n.map(ME).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(wE,{})}let vE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv]}),n})();const TE=Qr({passive:!0});let cP=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wr.E;const t=Vi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,c="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,TE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,TE)}}),l}stopMonitoring(e){const t=Vi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new De.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Zi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Zi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=je(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{zs(this._getWindow(),"resize").pipe(m0(16),rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,c=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const s=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),xE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const SE=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),dP=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let uP=0;const hP=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let zn=(()=>{class n extends hP{constructor(e,t,r,l,c,s,o,d,u,h){super(s,l,c,r),this._elementRef=e,this._platform=t,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+uP++,this.focused=!1,this.stateChanges=new De.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(N=>Th().has(N)),this._iOSKeyupListener=N=>{const Q=N.target;!Q.value&&0===Q.selectionStart&&0===Q.selectionEnd&&(Q.setSelectionRange(1,1),Q.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=o||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Th().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=je(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){dP.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(na,10),i.Y36(Nl,8),i.Y36(Zs,8),i.Y36(Nc),i.Y36(SE,10),i.Y36(cP),i.Y36(i.R0b),i.Y36(Zc,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[i._Bn([{provide:$c,useExisting:n}]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Nc],imports:[xE,rs,gt,xE,rs]}),n})();function pP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let fP=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",T(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(_i),i.Y36(hr),i.Y36(fi),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,pP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i.TgZ(21,"div",6)(22,"div",7)(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA()()()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[w.O5,dn,un,ra,ss,Lt,zo,cn,uw,Hi,zn,Pn,vn,hn,lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),EE=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),mP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),gP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function _P(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function bP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function AP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_P,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,bP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const yP=function(n){return{"min-height":n}};function MP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,AP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,yP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const ad=function(n){return{color:n}};function wP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,ad,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function CP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.openDialog(r.dialog))}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,ad,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function vP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,ad,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function TP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,ad,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function xP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,wP,2,4,"i",17),i.YNc(2,CP,3,8,"span",18),i.YNc(3,vP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,TP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const SP=function(n){return{height:n}};function EP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,xP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,SP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function DP(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,MP,2,4,"div",9),i.YNc(5,EP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ad,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function HP(n,a){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,ad,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const LP=function(n){return{background:n}};let DE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=T(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=bi();"reportIssue"===e&&(t.width="550px",this.dialog.open(fP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(_i),i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,DP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,HP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(8,LP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,ad,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,ad,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},dependencies:[w.sg,w.O5,w.PC,EE,mP,gP],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),n})();wi("openClose",[Rt("open",Ie({overflow:"hidden"})),Rt("closed",Ie({height:"0px",overflow:"hidden"})),Pt("open <=> closed",[Et(".3s ease-in")])]);const PP=wi("flyInOut",[Pt(":enter",[Ie({transform:"translateX(100%)"}),Et(".25s")]),Pt(":leave",[Et(".5s",Ie({transform:"translateX(100%)"}))])]);wi("rollInOut",[Pt(":enter",[Ie({height:"0px"}),Et(".25s")]),Pt(":leave",[Et(".25s",Ie({height:"0px"}))])]),wi("routeAnimations",[Pt("* => *",[Ie({position:"relative"}),Vr(":enter",[Ie({width:"100%",opacity:0})],{optional:!0}),Vr(":leave",[Ie({position:"absolute",width:"100%",opacity:1}),Et("0.15s",Ie({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Vr(":enter",[Ie({position:"absolute",width:"100%",opacity:0}),Et("0.15s",Ie({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[Rt("open",Ie({})),Rt("closed",Ie({width:"0px",height:"0px"})),Pt("open <=> closed",[Et(".3s ease-in")])]),wi("switchAnimations",[Pt("true => false",[Vr(":enter, :leave",Ie({})),du([Vr(":enter",[Ie({transform:"translateX(-100%)"}),Et("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Vr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Et("1s ease-in-out",Ie({transform:"translateX(100%)"}))],{optional:!0})])]),Pt("false => true",[Vr(":enter, :leave",Ie({})),du([Vr(":enter",[Ie({transform:"translateX(100%)"}),Et("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Vr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Et("1s ease-in-out",Ie({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Pt(":enter",[Ie({transform:"translateX(-100%)",position:"relative"}),Et("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Et("0.5s ease-in",Ie({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Pt(":enter",[Ie({transform:"translateX(100%)",position:"fixed"}),Et("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Ie({transform:"translateX(-100%)",position:"relative"}),Et("0.5s ease-in",Ie({transform:"translateX(100%)"}))])]);let HE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez]}),n})(),CA=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),ri=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.get("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,16),i.Y36(Zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();function kP(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function RP(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const IP=ns(class{constructor(n){this._elementRef=n}},"primary"),BP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function NP(){return{diameter:100}}});class Ei extends IP{constructor(a,e,t,r,l,c,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Bt.w0.EMPTY,this.mode="determinate";const d=Ei._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(t.head)||d.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&c&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Zi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Zi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Zi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Eh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_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(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Ei._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ei._diameters=new WeakMap,Ei.\u0275fac=function(a){return new(a||Ei)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(w.K0,8),i.Y36(i.QbO,8),i.Y36(BP),i.Y36(i.sBO),i.Y36(Bo),i.Y36(i.R0b))},Ei.\u0275cmp=i.Xpm({type:Ei,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,kP,1,11,"circle",2),i.YNc(3,RP,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.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 Wp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,w.ez,gt]}),n})(),vA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Oa,w.ez]}),n})(),FP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,rs,Xs,Js,Yp,Bu,Wp,Oa,vA]}),n})();class zP{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const LE=(n,a,e,t=500)=>r=>(0,f0.H)(t).pipe((0,Nt.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength({password:r.value,namespace:n}):(0,$e.of)(null))),(0,At.U)(()=>null),(0,li.K)(l=>{const c=l.error,s={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,$e.of)(s)}));function jP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function qP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function YP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function WP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const UP=["*"];let Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:UP,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,jP,2,0,"mat-icon",1),i.YNc(2,qP,2,0,"mat-icon",1),i.YNc(3,YP,2,0,"mat-icon",1),i.YNc(4,WP,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},dependencies:[Xi,w.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function GP(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function $P(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function ZP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function JP(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function XP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function QP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let PE=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new zP,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Pi),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,GP,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,$P,2,2,"mat-icon",5),i.YNc(8,ZP,3,3,"mat-error",6),i.YNc(9,JP,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8)(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,XP,3,3,"mat-error",6),i.YNc(18,QP,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA()()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},dependencies:[w.O5,zo,cn,Hi,d_,dr,dn,un,Qc,ra,Zs,yp,zn,Ei,Xi,Gn,lt],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),n})();function ak(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function sk(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function ok(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function lk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,sk,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,ok,3,3,"mat-error",11),i.qZA()()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let ck=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=c,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",T(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(_i),i.Y36(hr),i.Y36(fi),i.Y36(Cn),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,ak,1,0,"mat-spinner",1),i.YNc(4,lk,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[w.O5,Pn,vn,hn,Lt,zo,cn,Hi,dn,un,ra,ss,zn,Ei,lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),dk=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=bi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(ck,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Oi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2)(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})();const uk=[[["caption"]],[["colgroup"],["col"]]],hk=["caption","colgroup, col"];function Mv(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=je(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const Up=new i.OlP("CDK_TABLE");let Gp=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),$p=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),TA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class gk{}const _k=Mv(gk);let Ql=(()=>{class n extends _k{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=je(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Gp,5),i.Suo(r,$p,5),i.Suo(r,TA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class wv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Cv=(()=>{class n extends wv{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),vv=(()=>{class n extends wv{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class RE{constructor(){this.tasks=[],this.endTasks=[]}}const Tv=new i.OlP("_COALESCED_STYLE_SCHEDULER");let OE=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RE,this._getScheduleObservable().pipe(rt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,dt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),xv=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Xm?e.headerCell.template:this instanceof Qm?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class bk extends xv{}const Ak=Mv(bk);let Xm=(()=>{class n extends Ak{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class yk extends xv{}const Mk=Mv(yk);let Qm=(()=>{class n extends Mk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),xA=(()=>{class n extends xv{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Kl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Kl],encapsulation:2}),n})(),Dv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Kl],encapsulation:2}),n})(),SA=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const IE=["top","bottom","left","right"];class wk{constructor(a,e,t,r,l=!0,c=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],c=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),d=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",N=f?"left":"right";for(const Q of a)for(let pe=0;pee[pe]?Q:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((Q,pe)=>t[pe+h]?Q:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,c=[],s=[],o=[];for(let u=0,h=0;u{for(let f=0;f{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);IE.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of IE)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const Hv=new i.OlP("CDK_SPL");let EA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),DA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),HA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),LA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),PA=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=c,this._platform=o,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new $i({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(rt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Jc(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,c)=>this._getEmbeddedViewArgs(r.item,c),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,dt.q)(1),rt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(c)?r.get(c):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,s)=>c||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Jc(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Jc(this.dataSource)?e=this.dataSource.connect(this):Qs(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(rt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),c=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Kl.mostRecentCellOutlet&&Kl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const c of r.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new wk(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,$e.of)()).pipe(rt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Vn,8),i.Y36(w.K0),i.Y36(Ni),i.Y36(cr),i.Y36(Tv),i.Y36(Bo),i.Y36(Hv,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SA,5),i.Suo(r,Ql,5),i.Suo(r,xA,5),i.Suo(r,Xm,5),i.Suo(r,Qm,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(EA,7),i.Gf(DA,7),i.Gf(HA,7),i.Gf(LA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Up,useExisting:n},{provide:cr,useClass:La},{provide:Tv,useClass:OE},{provide:Hv,useValue:null}])],ngContentSelectors:hk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(uk),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[EA,DA,HA,LA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function kA(n,a){return n.concat(Array.from(a))}let vk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sl]}),n})();const Tk=[[["caption"]],[["colgroup"],["col"]]],xk=["caption","colgroup, col"];let io=(()=>{class n extends PA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:cr,useClass:La},{provide:PA,useExisting:n},{provide:Up,useExisting:n},{provide:Tv,useClass:OE},{provide:Hv,useValue:null}]),i.qOj],ngContentSelectors:xk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(Tk),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[EA,DA,HA,LA],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),cs=(()=>{class n extends Gp{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:Gp,useExisting:n}]),i.qOj]}),n})(),ds=(()=>{class n extends $p{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:$p,useExisting:n}]),i.qOj]}),n})(),us=(()=>{class n extends Ql{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ql,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),hs=(()=>{class n extends Cv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),ps=(()=>{class n extends vv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),no=(()=>{class n extends Xm{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:Xm,useExisting:n}]),i.qOj]}),n})(),ro=(()=>{class n extends xA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:xA,useExisting:n}]),i.qOj]}),n})(),ao=(()=>{class n extends Sv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:Sv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Kl],encapsulation:2}),n})(),so=(()=>{class n extends Dv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Dv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[Kl],encapsulation:2}),n})(),Km=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[vk,gt,gt]}),n})();class $o extends class Bk extends class tS{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(qf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((c,s)=>{let o=this.sortingDataAccessor(c,r),d=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof d;u!==h&&("number"===u&&(o+=""),"number"===h&&(d+=""));let f=0;return null!=o&&null!=d?o>d?f=1:o{const r=Object.keys(e).reduce((c,s)=>c+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new $i(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Fi.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Fi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,pa.a)([this._data,this._filter]).pipe((0,At.U)(([o])=>this._filterData(o))),c=(0,pa.a)([l,e]).pipe((0,At.U)(([o])=>this._orderData(o))),s=(0,pa.a)([c,t]).pipe((0,At.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=s.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}{}function Nk(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function Vk(n,a){1&n&&i._UZ(0,"th",15)}function Fk(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function zk(n,a){1&n&&i._UZ(0,"tr",17)}function jk(n,a){1&n&&i._UZ(0,"tr",18)}function qk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4)(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,Vk,1,0,"th",8),i.YNc(13,Fk,2,1,"td",9),i.BQk(),i.YNc(14,zk,1,0,"tr",10),i.YNc(15,jk,1,0,"tr",11),i.qZA()(),i.TgZ(16,"div",12)(17,"button",13),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let Yk=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new $o(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi),i.Y36(_i),i.Y36(hr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,Nk,1,0,"mat-spinner",1),i.YNc(6,qk,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,io,ds,no,us,cs,ro,hs,ps,ao,so,Pn,vn,hn,Lt,Ei,lt,ri]}),n})();class Wk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let Uk=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new Wk(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Gk=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Lv=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const l=()=>{const c=r.copy();c||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(c)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Uk),i.Y36(i.R0b),i.Y36(Gk,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),NE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),RA=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1)(3,"textarea",2),i._uU(4),i.qZA()(),i.TgZ(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[Pn,vn,hn,Lt,wA,zn,Lv,lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),$k=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA()()(),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Pn,vn,hn,Lt,cn,dn,un,ss,wA,zn,lt]}),n})(),Zk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA()(),i.TgZ(9,"div",3)(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})();function Jk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function Xk(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Qk=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=c,this.authService=s,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new ka(null,[Ji.required,Ji.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,c)=>l===c.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(_i),i.Y36(hr),i.Y36(Pi),i.Y36(rd))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,Jk,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3)(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,Xk,4,5,"mat-error",5),i.qZA()(),i.TgZ(12,"div",6)(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[w.O5,Pn,vn,hn,Lt,zo,cn,dn,un,ra,zn,Ra,Gn,lt,ri]}),n})(),oR=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([]),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[Pn,vn,hn,Lt,Gn,lt]}),n})();function lR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function cR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.showOldPassword=!r.showOldPassword)}),i._uU(8),i.qZA(),i.YNc(9,lR,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function dR(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function uR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"div",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.close())}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changePassword())}),i._uU(6),i.ALo(7,"translate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let hR=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=c,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Ji.required],passwordCtrl:["",Ji.required,[LE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:GS.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Jw),i.Y36(Pi),i.Y36($m),i.Y36(hr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,cR,11,9,"form",2),i.YNc(5,dR,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,uR,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Pn,vn,hn,Lt,zo,cn,Hi,d_,Ap,dn,un,Qc,ra,zn,Ei,Zs,yp,Xi,PE,lt],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),n})();const pR=["input"],fR=function(n){return{enterDuration:n}},mR=["*"],gR=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function _R(){return{color:"accent"}}});let FE=0;const bR={provide:Qn,useExisting:(0,i.Gpc)(()=>qE),multi:!0};class zE{constructor(a,e){this.source=a,this.value=e}}const jE=new i.OlP("MatRadioGroup");let AR=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+FE++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new zE(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),qE=(()=>{class n extends AR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,YE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([bR,{provide:jE,useExisting:n}]),i.qOj]}),n})();class yR{constructor(a){this._elementRef=a}}const MR=xa(Ro(yR));let wR=(()=>{class n extends MR{constructor(e,t,r,l,c,s,o,d){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=c,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++FE,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,d&&(this.tabIndex=Zi(d,0)),this._removeUniqueSelectionListener=c.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=je(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_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(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new zE(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const l=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;l&&(l.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(pR,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.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:[i.qOj]}),n})(),YE=(()=>{class n extends wR{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jE,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Cr),i.Y36(Fr),i.Y36(i.QbO,8),i.Y36(gR,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.qOj],ngContentSelectors:mR,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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2),i._UZ(3,"span",3)(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()(),i.TgZ(9,"span",9)(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA()()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(17,fR,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[ta],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}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),WE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ia,gt,gt]}),n})();function CR(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function vR(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function TR(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function xR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.asyncValidation=r)}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function SR(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function ER(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function DR(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA()(),i.TgZ(8,"p")(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p")(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,vR,3,3,"span",9),i.YNc(19,TR,3,3,"span",9),i.YNc(20,xR,10,12,"mat-radio-group",10),i.YNc(21,SR,3,3,"span",9),i.YNc(22,ER,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function HR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15)(1,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let LR=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Fa),i.Y36(qn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,CR,1,0,"mat-spinner",1),i.YNc(5,DR,23,17,"div",2),i.YNc(6,HR,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Pn,vn,hn,Lt,un,ss,Ei,qE,YE,lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function PR(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function kR(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let RR=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=bi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(dk,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fp(n,a){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(JS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,PR,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,kR,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA()()()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},dependencies:[w.O5,Xi,lt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function OR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.removeNotification(l))}),i.qZA()()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const IR=function(n){return{top:n}};let BR=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hr),i.Y36(JS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,OR,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,IR,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[w.sg,w.PC,RR],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[PP]}}),n})();function NR(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function VR(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const FR=function(n){return{color:n}};function zR(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,FR,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const jR=function(n,a){return{background:n,color:a}},qR=function(n,a){return{"min-height":n,"background-color":a}};let YR=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Gi),i.Y36(cv),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,NR,2,1,"div",1),i.YNc(2,VR,3,1,"div",2),i.YNc(3,zR,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,jR,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,qR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[w.O5,w.PC,Xi,Xa,DE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})(),WR=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.get("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(l=>{const c={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(o=>{c[`label_${o}`]=String(l[`label_${o}`])??l.label_en}),t.push(c)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const kv=["*"],UR=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],GR=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],GE=Ta(xa(class{})),QR=xa(class{}),$E=new i.OlP("MatList"),ZE=new i.OlP("MatNavList");let KR=(()=>{class n extends GE{constructor(){super(...arguments),this._stateChanges=new De.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:ZE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),Rv=(()=>{class n extends GE{constructor(e){super(),this._elementRef=e,this._stateChanges=new De.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:$E,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),JE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),OA=(()=>{class n extends QR{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const c=this._getHostElement();"button"===c.nodeName.toLowerCase()&&!c.hasAttribute("type")&&c.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(rt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function t0(n,a,e="mat"){n.changes.pipe(ti(n)).subscribe(({length:t})=>{Vc(a,`${e}-2-line`,!1),Vc(a,`${e}-3-line`,!1),Vc(a,`${e}-multi-line`,!1),2===t||3===t?Vc(a,`${e}-${t}-line`,!0):t>3&&Vc(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ZE,8),i.Y36($E,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,JE,5),i.Suo(r,XE,5),i.Suo(r,LM,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:GR,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(UR),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[ta],encapsulation:2,changeDetection:0}),n})(),Ov=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,ia,gt,iu,w.ez,$h,gt,iu,Pv]}),n})();const aO=function(n){return{color:n}};function sO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(l.external?c.goToURL(l.link):c.shouldHideMenu())}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,aO,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let oO=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(c=>{c instanceof Jn&&(this.currentUrl=c.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(WR),i.Y36(Zt),i.Y36(Ai),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,sO,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,w.PC,Xi,KR,OA,xo,MA,ta,lt,ri,EE],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();const lO=["*",[["mat-toolbar-row"]]],cO=["*","mat-toolbar-row"],dO=ns(class{constructor(n){this._elementRef=n}});let uO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),hO=(()=>{class n extends dO{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,uO,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:cO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(lO),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),Iv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const Bv=function(n){return{color:n}};function pO(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA()()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,Bv,e.iconColor))}}function fO(n,a){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(6,Bv,e.textColor)),i.xp6(1),i.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function mO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onLogOut())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let gO=(()=>{class n{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rd))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(i.YNc(0,pO,4,7,"button",0),i.TgZ(1,"mat-menu",null,1)(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA()()(),i.TgZ(6,"button",3)(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.YNc(9,fO,2,8,"span",5),i.qZA(),i.TgZ(10,"mat-menu",null,6),i.YNc(12,mO,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(11);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(6,Bv,t.iconColor)),i.xp6(2),i.Q6J("ngIf",null!==t.user),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},dependencies:[w.O5,w.PC,Xi,Hm,Lu,Wl,Lt,dr,lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const KE=function(n){return{color:n}};function _O(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onToggleSidenav())}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,KE,e.iconColor))}}function bO(n,a){1&n&&(i.TgZ(0,"div",8)(1,"span",9),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",10),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",9),i._uU(6," \u{1f5f2} ~ "),i.qZA()())}const AO=function(n){return{background:n}},yO=function(){return[]},MO=function(){return["/"]};let wO=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.translate=r,this.otherApplicationService=l,this.sidenavToggle=new i.vpe,this.hideToggle=!1,this.disableLogo=!1,this.label=this.storeService.get("header_label_en"),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.adminLabel=this.storeService.get("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Gi),i.Y36(_i),i.Y36(gA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"url","label","user","logoutEnabled","iconColor","textColor"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0)(1,"div",1),i.YNc(2,_O,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA()(),i.YNc(6,bO,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,AO,t.bgColor)),i.xp6(2),i.Q6J("ngIf",!t.hideToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(15,yO):i.DdM(16,MO)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,KE,t.textColor)),i.xp6(1),i.Oqu(t.label),i.xp6(1),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},dependencies:[w.O5,w.PC,Xi,yh,Lt,MA,hO,gO],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function CO(n,a){if(1&n&&(i.TgZ(0,"span",1)(1,"a",2),i._uU(2),i.qZA()()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let vO=(()=>{class n{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(l=>{const c=l.snapshot.url.map(o=>o.path).join("/");""!==c&&(t+=`/${c}`);const s=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return s&&(!this.menuItems[this.menuItems.length-1]||s!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:s,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],["queryParamsHandling","merge",1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,CO,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},dependencies:[w.sg,yh],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),n})();const TO=["footer"],eD=function(n){return{background:n}},xO=function(n){return{"min-height":n}};function SO(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2)(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){i.CHM(e);const r=i.MAs(5);return i.KtG(r.toggle())}),i.qZA(),i.TgZ(3,"mat-sidenav-container")(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7)(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),i.qZA()()()()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(4),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,eD,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,eD,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,xO,t.contentHeight))}}function EO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",10),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let DO=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=c,this.preferredLangService=s,this.titleService=o,this.document=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.get("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{const t=this.store.get("document_title",e.lang);this.titleService.setTitle(t),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(c=>"preferredLanguage"===c.friendlyName)?.value??null,l=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(l)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(_i),i.Y36(ov),i.Y36(i.sBO),i.Y36(cv),i.Y36(se),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(TO,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"sidenavToggle"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i.YNc(0,SO,14,12,"ng-template",0),i.YNc(1,EO,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},dependencies:[w.O5,w.PC,eE,tE,uv,Xa,MA,DE,BR,YR,oO,wO,vO],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();var tD=T(1158);function HO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index,l=i.oxw();return i.KtG(l.removeValue(r))}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA()()}}function LO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9)(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.readonly&&c.attribute.displayName&&c.showValue(c.keys[l],c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.keys[c]=r)}),i.qZA()(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.values[c]=r)}),i.qZA()(),i.YNc(7,HO,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function PO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function kO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(1,PO,2,0,"mat-icon",17),i.YNc(2,kO,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function OO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addValue())}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA()()}}let IO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=$l(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},dependencies:[w.sg,w.O5,Ap,dn,un,Qc,ra,ss,Nl,Xi,Lt,dr,cn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),n})();const BO=["input"],NO=["label"],VO=function(n){return{enterDuration:n}},FO=["*"],zO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:iD});function iD(){return{color:"accent",clickAction:"check-indeterminate"}}let jO=0;const nD=iD(),qO={provide:Qn,useExisting:(0,i.Gpc)(()=>ec),multi:!0};class YO{}const WO=Ro(ns(xa(Ta(class{constructor(n){this._elementRef=n}}))));let UO=(()=>{class n extends WO{constructor(e,t,r,l,c,s,o){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||nD,this.color=this.defaultColor=this._options.color||nD.color,this.tabIndex=parseInt(c)||0,this.id=this._uniqueId=`${e}${++jO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=je(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=je(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=je(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},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(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(BO,5),i.Gf(NO,5),i.Gf(ta,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.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:[i.qOj]}),n})(),ec=(()=>{class n extends UO{constructor(e,t,r,l,c,s,o){super("mat-checkbox-",e,t,l,c,s,o),this._focusMonitor=r,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(e){const t=new YO;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Cr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(zO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i._Bn([qO]),i.qOj],ngContentSelectors:FO,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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,VO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[ta,Bh],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);position:relative}.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}.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%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),rD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ia,gt,xl,rD,gt,rD]}),n})(),Nv=(()=>{class n{transform(e){return e.replace(/\s/g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function ZO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())})("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.attribute.value=r)}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function JO(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let XO=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=$l(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,ZO,2,4,"mat-checkbox",0),i.YNc(2,JO,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},dependencies:[w.O5,ec,un,ss,Hi,Nv]}),n})();function Vv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,null!=e&&e.has(t)?"important":""):n.removeProperty(t)}return n}function Zp(n,a){const e=a?"":"none";Vv(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function aD(n,a,e){Vv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function IA(n,a){return a&&"none"!=a?n+" "+a:n}function sD(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function Fv(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function zv(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function jv(n,a,e){const{top:t,bottom:r,left:l,right:c}=n;return e>=t&&e<=r&&a>=l&&a<=c}function tg(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function oD(n,a,e,t){const{top:r,right:l,bottom:c,left:s,width:o,height:d}=n,u=o*a,h=d*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:zv(e)})})}handleScroll(a){const e=or(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,c;if(e===this._document){const d=this.getViewportScrollPosition();l=d.top,c=d.left}else l=e.scrollTop,c=e.scrollLeft;const s=r.top-l,o=r.left-c;return this.positions.forEach((d,u)=>{d.clientRect&&e!==u&&e.contains(u)&&tg(d.clientRect,s,o)}),r.top=l,r.left=c,{top:s,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function cD(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const o=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),N=this._dropContainer;if(!b)return void this._endDragSequence(s);(!N||!N.isDragging()&&!N.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const d=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,o);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=d.x-u.x+this._passiveTransform.x,h.y=d.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:s,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new lD(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=je(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Zp(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Vi(t)),this._handles.forEach(t=>Zp(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Vi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,BA),e.addEventListener("touchstart",this._pointerDown,pD),e.addEventListener("dragstart",this._nativeDragStart,BA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Vi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Zp(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Zp(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){ig(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),aD(t,!1,qv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=ig(e),l=!r&&0!==e.button,c=this._rootElement,s=or(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=r?is(e):Kd(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||d)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=zv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){aD(this._rootElement,!0,qv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),c=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),r=mD(c,this._document),this._previewRef=c,a.matchSize?gD(r,l):r.style.transform=NA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=cD(this._rootElement),gD(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Vv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},qv),Zp(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function KO(n){const a=getComputedStyle(n),e=Fv(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=Fv(a,"transition-duration"),c=Fv(a,"transition-delay");return sD(l[r])+sD(c[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=c=>{var s;(!c||or(c)===this._preview&&"transform"===c.propertyName)&&(null===(s=this._preview)||void 0===s||s.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=mD(this._placeholderRef,this._document)):t=cD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():a,c=ig(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-s.left),y:l.top-a.top+(c.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=ig(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(c.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,s=this._boundaryRect,{width:o,height:d}=this._getPreviewRect(),u=s.top+c,h=s.bottom-(d-c);t=fD(t,s.left+l,s.right-(o-l)),r=fD(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),s=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Zp(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,BA),a.removeEventListener("touchstart",this._pointerDown,pD),a.removeEventListener("dragstart",this._nativeDragStart,BA)}_applyRootElementTransform(a,e){const t=NA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=IA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,l=NA(a,e);this._preview.style.transform=IA(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,c=t.right-r.right,s=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,r.height>t.height?(s>0&&(e+=s),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:ig(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=or(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&tg(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Eh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Vi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function NA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function fD(n,a,e){return Math.max(a,Math.min(e,n))}function ig(n){return"t"===n.type[0]}function mD(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function gD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=NA(a.left,a.top)}function _D(n,a,e){const t=ng(a,n.length-1),r=ng(e,n.length-1);if(t===r)return;const l=n[t],c=r0)return null;const s="horizontal"===this.orientation,o=l.findIndex(pe=>pe.drag===a),d=l[c],h=d.clientRect,f=o>c?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),N=this._getSiblingOffsetPx(o,l,f),Q=l.slice();return _D(l,o,c),l.forEach((pe,Pe)=>{if(Q[Pe]===pe)return;const _t=pe.drag===a,kt=_t?b:N,Ut=_t?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=kt,s?(Ut.style.transform=IA(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),tg(pe.clientRect,0,kt)):(Ut.style.transform=IA(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),tg(pe.clientRect,kt,0))}),this._previousSwap.overlaps=jv(h,e,t),this._previousSwap.drag=d.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:o,currentIndex:c}}enter(a,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,c=this._activeDraggables,s=c.indexOf(a),o=a.getPlaceholderElement();let d=c[l];if(d===a&&(d=c[l+1]),!d&&(null==l||-1===l||l-1&&c.splice(s,1),d&&!this._dragDropRegistry.isDragging(d)){const u=d.getRootElement();u.parentElement.insertBefore(o,u),c.splice(l,0,a)}else Vi(this._element).appendChild(o),c.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(l=>l.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{tg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:zv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let s=l[r?"width":"height"]*t;if(c){const o=r?"left":"top",d=r?"right":"bottom";-1===t?s-=c.clientRect[o]-l[d]:s+=l[o]-c.clientRect[d]}return s}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return r?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return r?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const d=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Bt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function QO(n=0,a=Da.z){return n<0&&(n=0),(0,f0.H)(n,n,a)}(0,YM).pipe(rt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-s):2===this._verticalScrollDirection&&c.scrollBy(0,s),1===this._horizontalScrollDirection?c.scrollBy(-s,0):2===this._horizontalScrollDirection&&c.scrollBy(s,0)})},this.element=Vi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new lD(t),this._sortStrategy=new nI(this.element,e),this._sortStrategy.withSortPredicate((c,s)=>this.sortPredicate(c,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,c,s,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:c,dropPoint:s,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Vi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!oD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((c,s)=>{s===this._document||!c.clientRect||t||oD(c.clientRect,.05,a,e)&&([r,l]=function aI(n,a,e,t){const r=yD(a,t),l=MD(a,e);let c=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(c=1):n.scrollHeight-o>n.clientHeight&&(c=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[c,s]}(s,c.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:c,height:s}=this._viewportRuler.getViewportSize(),o={width:c,height:s,top:0,right:c,bottom:s,left:0};r=yD(o,e),l=MD(o,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Vi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Vi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Vi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&jv(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!jv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Vi(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Vi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function yD(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function MD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const VA=Qr({passive:!1,capture:!0});let sI=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,VA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,VA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:VA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:VA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Bn.y(r=>this._ngZone.runOutsideAngular(()=>{const c=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,Fi.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Yv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=oI){return new iI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new rI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(Bo),i.LFG(sI))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wD=new i.OlP("CDK_DRAG_PARENT"),CD=new i.OlP("CdkDropListGroup"),vD=new i.OlP("CDK_DRAG_CONFIG");let lI=0;const TD=new i.OlP("CdkDropList");let cI=(()=>{class n{constructor(e,t,r,l,c,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=c,this._group=s,this._destroyed=new De.x,this.connectedTo=[],this.id="cdk-drop-list-"+lI++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(d,u)=>this.enterPredicate(d.data,u.data),this._dropListRef.sortPredicate=(d,u,h)=>this.sortPredicate(d,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ti(this._dir.value),rt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=$d(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(c=>c.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=Zi(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:c,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=l??!1,this.autoScrollDisabled=c??!1,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yv),i.Y36(i.sBO),i.Y36(zc),i.Y36(Vn,8),i.Y36(CD,12),i.Y36(vD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[i._Bn([{provide:CD,useValue:void 0},{provide:TD,useExisting:n}])]}),n})();const xD=new i.OlP("CdkDragHandle"),dI=new i.OlP("CdkDragPlaceholder"),uI=new i.OlP("CdkDragPreview");let pI=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=c,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new De.x,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new Bn.y(b=>{const N=this._dragRef.moved.pipe((0,At.U)(Q=>({source:this,pointerPosition:Q.pointerPosition,event:Q.event,delta:Q.delta,distance:Q.distance}))).subscribe(b);return()=>{N.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=je(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,dt.q)(1),rt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Vi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,c=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Zi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(c).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=n._dragInstances.find(l=>l.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:c,boundaryElement:s,draggingDisabled:o,rootElementSelector:d,previewContainer:u}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),c&&(this.previewClass=c),s&&(this.boundaryElement=s),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(ti(this._handles),(0,mi.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,Nt.w)(e=>(0,Fi.T)(...e.map(t=>t._stateChanges.pipe(ti(t))))),rt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(TD,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(vD,8),i.Y36(Vn,8),i.Y36(Yv),i.Y36(i.sBO),i.Y36(xD,10),i.Y36(wD,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,uI,5),i.Suo(r,dI,5),i.Suo(r,xD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[i._Bn([{provide:wD,useExisting:n}]),i.TTD]}),n})(),fI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yv],imports:[Ha]}),n})();const mI=["*"],SD=new i.OlP("MatChipRemove"),ED=new i.OlP("MatChipAvatar"),DD=new i.OlP("MatChipTrailingIcon");class gI{constructor(a){this._elementRef=a}}const _I=Ro(ns(xa(gI),"primary"),-1);let FA=(()=>{class n extends _I{constructor(e,t,r,l,c,s,o,d){super(e),this._ngZone=t,this._changeDetectorRef=c,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new De.x,this._onBlur=new De.x,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new OM(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=d&&parseInt(d)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=je(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=je(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=je(e)}get removable(){return this._removable}set removable(e){this._removable=je(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Ni),i.Y36(IM,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ED,5),i.Suo(r,DD,5),i.Suo(r,SD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("role",t.role)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const HD=new i.OlP("mat-chips-default-options"),MI=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let wI=0;class CI{constructor(a,e){this.source=a,this.value=e}}let LD=(()=>{class n extends MI{constructor(e,t,r,l,c,s,o){super(s,l,c,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new De.x,this._uid="mat-chip-list-"+wI++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=je(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Fi.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Fi.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Fi.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Fi.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new zh(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(rt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ti(null),rt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Mn(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(l=>null!=l.value&&this._compareWith(l.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new CI(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Vn,8),i.Y36(Nl,8),i.Y36(Zs,8),i.Y36(Nc),i.Y36(na,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,FA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:$c,useExisting:n}]),i.qOj],ngContentSelectors:mI,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),vI=0,PD=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+vI++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=je(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=je(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!An(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!An(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(HD))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[i.TTD]}),n})(),Wv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Nc,{provide:HD,useValue:{separatorKeyCodes:[13]}}],imports:[gt]}),n})();function TI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.dragDisabled=!1)}),i._uU(1,"drag_indicator"),i.qZA()}}function xI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.edit(r))}),i._uU(1,"edit"),i.qZA()}}function SI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.remove(r))}),i._uU(1,"cancel"),i.qZA()}}function EI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,c=i.oxw();return c.remove(l),i.KtG(c._sendEventToParent())}),i.YNc(1,TI,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))}),i._uU(3),i.qZA(),i.YNc(4,xI,2,0,"mat-icon",7),i.YNc(5,SI,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function DI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function HI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function LI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"span",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(3,DI,2,0,"mat-icon",15),i.YNc(4,HI,2,0,"mat-icon",15),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function PI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12)(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.add(r))})("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())}),i.qZA()()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let kI=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!$l(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=$l(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=bi();t.width="400px",t.data={name:e},this.dialog.open(Zk,t).afterClosed().subscribe(l=>{if(l){const c=this.attribute.value.indexOf(e);this.attribute.value.splice(c,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,_D(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=bi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open($k,r).afterClosed().subscribe(c=>{c&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=bi();r.width="350px",r.data={value:e,title:t},this.dialog.open(RA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,EI,6,9,"mat-chip",2),i.YNc(4,LI,5,4,"div",3),i.YNc(5,PI,2,3,"mat-form-field",3),i.qZA()()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},dependencies:[w.sg,w.O5,LD,FA,PD,cI,pI,Xi,Lt,dr,cn,zn],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),RI=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=$l(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=bi();r.width="350px",r.data={value:e,title:t},this.dialog.open(RA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0)(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA()()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[dn,un,ss,cn,zn,Nv],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),OI=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=$l(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=bi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(RA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0)(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA()()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[dn,Cu,un,ss,cn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const II=["map"];function BI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function NI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function VI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function FI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function zI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let Uv=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(II,5),2&e){let r;i.iGM(r=i.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,BI,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,NI,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,VI,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,FI,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,zI,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},dependencies:[w.O5,XO,kI,IO,RI,OI]}),n})();function jI(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function qI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeLanguage(l))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function YI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",14),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentLang=r)}),i.YNc(2,qI,4,6,"mat-option",15),i.qZA()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function WI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeEmail())}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA()()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function UI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeTimeZone(l))}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function GI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",19),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentTimezone=r)}),i.YNc(2,UI,2,2,"mat-option",15),i.qZA()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function $I(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function ZI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function JI(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,$I,2,0,"p",20),i.YNc(2,ZI,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function XI(n,a){if(1&n&&(i.TgZ(0,"tr")(1,"td",7)(2,"div",8),i._uU(3),i.qZA()(),i.TgZ(4,"td",9),i.YNc(5,YI,3,2,"mat-form-field",10),i.YNc(6,WI,6,2,"div",11),i.YNc(7,GI,3,2,"mat-form-field",10),i.YNc(8,JI,3,2,"div",12),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function QI(n,a){if(1&n&&(i.TgZ(0,"table",4)(1,"tbody")(2,"tr")(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA()(),i.YNc(9,XI,9,6,"tr",6),i.qZA()()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let KI=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=c,this.route=s,this.router=o,this.notificator=d,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=tD.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const l=bi();l.width="600px",this.dialog.open(oR,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new CA).transform(t);const r=t.userAttributes.find(u=>"preferredMail"===u.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(u=>"preferredLanguage"===u.friendlyName);const c=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(c),this.currentLang=c,this.timezoneAttribute=t.userAttributes.find(u=>"timezone"===u.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const s=this.storeService.get("profile_page_attributes");let o=0;const d=this.storeService.get("supported_languages");s.forEach(u=>{const h=t.userAttributes.find(f=>f.friendlyName===u.friendly_name);h?(o++,this.addAttribute(h,u,d)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${u.is_virtual?"virt":"def"}:${u.friendly_name}`).subscribe(f=>{this.addAttribute(f,u,d),o++,this.loading=o!==s.length}),this.loading=o!==s.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=bi();e.width="350px",e.data={userId:this.userId},this.dialog.open(Qk,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const l={attribute:e};for(const c of r)l[`displayName_${c}`]=t?.[`display_name_${c}`]?.length?t[`display_name_${c}`]:e.displayName,l[`tooltip_${c}`]=t[`tooltip_${c}`]??"";this.additionalAttributes.push(l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Oi),i.Y36(ht),i.Y36(Xt),i.Y36(Pi),i.Y36(Xn),i.Y36(Ai),i.Y36(hr),i.Y36(Zt),i.Y36($m),i.Y36(cv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,jI,1,0,"mat-spinner",1),i.YNc(2,QI,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,w.RF,w.n9,w.ED,Xi,Lt,Uv,cn,Tp,Fs,Ei,dr,w.gd,lt,ri],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),n})(),eB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Xi,lt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),tB=(()=>{class n{constructor(e,t,r,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=l}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let l=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const o=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let f;if(h){const N=bi();N.width="450px",N.panelClass="noBorderDialog",f=this.dialog.open(eB,N)}window.addEventListener("message",N=>{sessionStorage.setItem("linkedResult",N.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const N=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(N)}},1e3)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(gA),i.LFG(Zt),i.LFG(ju.Ct),i.LFG(Oi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gv=(()=>{class n{}return n.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",n.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",n.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",n.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",n.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",n.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",n.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",n.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",n.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",n.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",n.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",n.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",n.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",n.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",n.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",n.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",n.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",n.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",n.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",n.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",n.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",n.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",n.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",n.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",n.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",n.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",n.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",n})();const iB=["mat-sort-header",""];function nB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const rB=["*"],kD=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),aB=tu(Ta(class{}));let fs=(()=>{class n extends aB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const c=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear);let s=function sB(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,c),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const sd=Uh.ENTERING+" "+v1.STANDARD_CURVE,Jp={indicator:wi("indicator",[Rt("active-asc, asc",Ie({transform:"translateY(0px)"})),Rt("active-desc, desc",Ie({transform:"translateY(10px)"})),Pt("active-asc <=> active-desc",Et(sd))]),leftPointer:wi("leftPointer",[Rt("active-asc, asc",Ie({transform:"rotate(-45deg)"})),Rt("active-desc, desc",Ie({transform:"rotate(45deg)"})),Pt("active-asc <=> active-desc",Et(sd))]),rightPointer:wi("rightPointer",[Rt("active-asc, asc",Ie({transform:"rotate(45deg)"})),Rt("active-desc, desc",Ie({transform:"rotate(-45deg)"})),Pt("active-asc <=> active-desc",Et(sd))]),arrowOpacity:wi("arrowOpacity",[Rt("desc-to-active, asc-to-active, active",Ie({opacity:1})),Rt("desc-to-hint, asc-to-hint, hint",Ie({opacity:.54})),Rt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ie({opacity:0})),Pt("* => asc, * => desc, * => active, * => hint, * => void",Et("0ms")),Pt("* <=> *",Et(sd))]),arrowPosition:wi("arrowPosition",[Pt("* => desc-to-hint, * => desc-to-active",Et(sd,Ys([Ie({transform:"translateY(-25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-desc, * => active-to-desc",Et(sd,Ys([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(25%)"})]))),Pt("* => asc-to-hint, * => asc-to-active",Et(sd,Ys([Ie({transform:"translateY(25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-asc, * => active-to-asc",Et(sd,Ys([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(-25%)"})]))),Rt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ie({transform:"translateY(0)"})),Rt("hint-to-desc, active-to-desc, desc",Ie({transform:"translateY(-25%)"})),Rt("hint-to-asc, active-to-asc, asc",Ie({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Pt("* <=> *",[Vr("@*",Pl(),{optional:!0})])])};let zA=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lB={provide:zA,deps:[[new i.FiY,new i.tp0,zA]],useFactory:function oB(n){return n||new zA}},cB=Ta(class{});let rg=(()=>{class n extends cB{constructor(e,t,r,l,c,s,o,d){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=c,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Fi.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zA),i.Y36(i.sBO),i.Y36(fs,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Cr),i.Y36(i.SBq),i.Y36(p1,8),i.Y36(kD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:iB,ngContentSelectors:rB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,nB,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[w.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Jp.indicator,Jp.leftPointer,Jp.rightPointer,Jp.arrowOpacity,Jp.arrowPosition,Jp.allowChildren]},changeDetection:0}),n})(),jA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[lB],imports:[w.ez,gt]}),n})(),dB=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),RD=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),uB=(()=>{class n{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function hB(n,a){1&n&&i._UZ(0,"th",18)}function pB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function fB(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function mB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function gB(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function bB(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function AB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function yB(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function MB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function wB(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function vB(n,a){1&n&&i._UZ(0,"tr",26)}const OD=function(n,a){return["/admin","users",n,"identities",a]};function TB(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,OD,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,OD,t.userId,e.userExtSource.id))}}function xB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function SB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let EB=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Mn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=Vu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(l=>"mail"===l.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(this.userExtSources),this.setDataSource()}exportData(e){zu(eo(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e.userExtSource)?"deselect":"select"} row ${e.userExtSource.id+1}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xn),i.Y36(Ya))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,hB,1,0,"th",4),i.YNc(5,pB,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,fB,4,5,"th",7),i.YNc(8,mB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,gB,4,5,"th",10),i.YNc(11,_B,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,bB,4,5,"th",7),i.YNc(14,AB,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,yB,4,5,"th",7),i.YNc(17,MB,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,wB,4,5,"th",7),i.YNc(20,CB,3,4,"td",14),i.BQk(),i.YNc(21,vB,1,0,"tr",15),i.YNc(22,TB,1,12,"tr",16),i.qZA()()(),i.YNc(23,xB,3,3,"perun-web-apps-alert",17),i.YNc(24,SB,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},dependencies:[w.O5,ec,io,ds,no,us,cs,ro,hs,ps,ao,so,xo,fs,rg,Gn,dr,ls,RD,w.uU,lt,uB,ri],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),n})();function DB(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function HB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.addIdentity())}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.removeIdentity(r.certSelection))}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function LB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addIdentity())}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeIdentity(r.idpSelection))}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i._UZ(9,"perun-web-apps-user-ext-sources-list",7),i.YNc(10,HB,14,22,"div",3),i.TgZ(11,"h1",8),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.TgZ(15,"mat-icon",9),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i._uU(18," info_outline "),i.qZA()(),i._UZ(19,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,16,i.lcZ(4,18,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(7,20,i.lcZ(8,22,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(13,24,i.lcZ(14,26,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(16,28,i.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let PB=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=l,this.translate=c,this.notificator=s,this.registrarManagerService=o,this.openLinkerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Mn(!0,[]),this.certSelection=new Mn(!0,[]),this.otherSelection=new Mn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[Gv.UES_SOURCE_IDP_NAME,Gv.UES_DEF_MAIL]).subscribe(l=>{let c;l.filter(s=>"mail"===s.baseFriendlyName&&null===s.value).map(s=>r.attributes.push(s)),l.filter(s=>"sourceIdPName"===s.baseFriendlyName&&s?.value).map(s=>c=s.value),c?(r.userExtSource.extSource.name=c,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,Gv.UES_IDP_ORGANIZATION_NAME).subscribe(s=>{t--,s?.value&&(r.userExtSource.extSource.name=s.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=bi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(Yk,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(Oi),i.Y36(Xt),i.Y36(_i),i.Y36(hr),i.Y36(ic),i.Y36(tB))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,DB,1,0,"mat-spinner",2),i.YNc(6,LB,20,32,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"IDENTITIES.IDP"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Xi,Lt,EB,Ei,dr,lt,ri],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const kB=["panel"];function RB(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const OB=["*"];let IB=0;class BB{constructor(a,e){this.source=a,this.option=e}}const NB=xa(class{}),ID=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function VB(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let FB=(()=>{class n extends NB{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Bt.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+IB++,this.inertGroups=l?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=je(e)}set classList(e){this._classList=e&&e.length?function rM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new ea(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new BB(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(ID),i.Y36(Ni))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(kB,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),zB=(()=>{class n extends FB{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,nu,5),i.Suo(r,Fs,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:r0,useExisting:n}]),i.qOj],ngContentSelectors:OB,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,RB,3,4,"ng-template"))},dependencies:[w.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const BD=new i.OlP("mat-autocomplete-scroll-strategy"),qB={provide:BD,deps:[yn],useFactory:function jB(n){return()=>n.scrollStrategies.reposition()}},YB={provide:Qn,useExisting:(0,i.Gpc)(()=>ND),multi:!0};let WB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=c,this._dir=o,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Bt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new De.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=nr(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(ti(b),(0,Nt.w)(()=>(0,Fi.T)(...b.map(N=>N.onSelectionChange)))):this._zone.onStable.pipe((0,dt.q)(1),(0,Nt.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Fi.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Yt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Yt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,At.U)(e=>e instanceof a0?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Fi.T)(zs(this._document,"click"),zs(this._document,"auxclick"),zs(this._document,"touchend")).pipe((0,Yt.h)(e=>{const t=or(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=An(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const l=this.autocomplete._keyManager.activeItem,c=38===t||40===t;9===t||c&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):c&&this._canOpen()&&this.openPanel(),(c||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,dt.q)(1)),t=this.autocomplete.options.changes.pipe((0,mi.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Sp.g)(0));return(0,Fi.T)(e,t).pipe((0,Nt.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,dt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new El(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new ou({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let c;c="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(c)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=s0(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const c=l._getHostElement(),s=o0(c.offsetTop,c.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!An(t)||38===t.keyCode&&An(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(yn),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(BD),i.Y36(Vn,8),i.Y36(Zc,9),i.Y36(w.K0,8),i.Y36(Bo),i.Y36(ID,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),ND=(()=>{class n extends WB{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)})("click",function(){return t._handleClick()}),2&e&&i.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i._Bn([YB]),i.qOj]}),n})(),UB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[qB],imports:[Fo,ru,gt,w.ez,Ha,ru,gt]}),n})(),GB=(()=>{class n{transform(e){return e?.value??"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function $B(n,a){1&n&&i._UZ(0,"th",17)}function ZB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(2,3,e.expirationAttribute))}}function JB(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function XB(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function QB(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function KB(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function eN(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function tN(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function iN(n,a){1&n&&i._UZ(0,"th",20)}function nN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.extend(l))}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function rN(n,a){1&n&&i._UZ(0,"tr",25)}function aN(n,a){1&n&&i._UZ(0,"tr",26)}function sN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let VD=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new Mn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=Vu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new $o(this.members),this.setDataSource()}exportData(e){zu(eo(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.entity.id+1}`}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,$B,1,0,"th",4),i.YNc(5,ZB,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JB,4,5,"th",7),i.YNc(8,XB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,QB,4,5,"th",7),i.YNc(11,KB,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,eN,4,5,"th",12),i.YNc(14,tN,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,iN,1,0,"th",7),i.YNc(17,nN,6,8,"td",10),i.BQk(),i.YNc(18,rN,1,0,"tr",14),i.YNc(19,aN,1,0,"tr",15),i.qZA()()(),i.YNc(20,sN,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},dependencies:[w.O5,Lt,Gn,io,ds,no,us,cs,ro,hs,ps,ao,so,ec,fs,rg,ls,lt,ri,GB]}),n})();function oN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function lN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7)(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterByVo(r))}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,oN,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA()()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function cN(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function dN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const uN=function(){return["name","description","expirationAttribute","extend"]};function hN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.extendMembership(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,uN))}}const pN=function(){return["name","description"]};function fN(n,a){if(1&n&&(i.TgZ(0,"div",18)(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,pN))}}let mN=(()=>{class n{constructor(e,t,r,l,c,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=c,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new ka,this.selection=new Mn(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(ti(""),(0,At.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(l=>{t--,this.groupService.getMemberGroups(l).subscribe(c=>{e+=c.length,this.loading=0===e&&0!==t,c.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(c=>{this.adminMemberships.push({entity:c,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(l=>{let c=l.length;this.loading=0!==c,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{c--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==c})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.get("registrar_base_url"),r=e.entity,l=this.vos.find(c=>c.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(On),i.Y36(qn),i.Y36(Zt),i.Y36(tn),i.Y36(Xt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,lN,15,19,"mat-form-field",2),i.YNc(6,cN,1,0,"mat-spinner",3),i.YNc(7,dN,4,5,"perun-web-apps-alert",4),i.YNc(8,hN,6,9,"div",5),i.YNc(9,fN,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},dependencies:[w.sg,w.O5,Gn,cn,Hi,Fs,zn,dn,un,Ra,Ei,zB,ND,VD,w.Ov,lt,ri]}),n})();function gN(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function _N(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let Xp=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new ka}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,gN,2,4,"input",1),i.YNc(2,_N,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[w.O5,dn,un,cn,Ra,zn,dB,lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})();function bN(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let AN=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&i.YNc(0,bN,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[w.O5,Xi,dr,lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function yN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function MN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA()()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function wN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA()()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function CN(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA()()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let vN=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.statusChange=new i.vpe}changeStatus(){const e=bi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(LR,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,yN,4,3,"span",1),i.YNc(2,MN,4,3,"span",1),i.YNc(3,wN,4,4,"span",1),i.YNc(4,CN,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},dependencies:[w.O5,Xi,dr,lt]}),n})(),TN=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),xN=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})();function SN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24)(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function EN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26)(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function DN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function HN(n,a){if(1&n&&(i.TgZ(0,"td",30),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function LN(n,a){1&n&&i._UZ(0,"th",31)}function PN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._UZ(1,"perun-web-apps-recently-viewed-icon",33),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function kN(n,a){1&n&&i._UZ(0,"th",31)}function RN(n,a){1&n&&(i.TgZ(0,"mat-icon",35),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function ON(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,RN,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function IN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function BN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function NN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function VN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function FN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function zN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function jN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function qN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32)(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable.emit())}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function YN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function WN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function UN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function GN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function $N(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function ZN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function JN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function XN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function QN(n,a){1&n&&i._UZ(0,"tr",37)}const KN=function(n){return[n]};function e3(n,a){if(1&n&&(i._UZ(0,"tr",38),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,KN,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function t3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function n3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let r3=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Mn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=Vu,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let c="";return e.resourceTags.forEach(function(s){c=c.concat(s.tagName)}),c}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportData(e){zu(eo(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new $o,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>Fu(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ya),i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[i.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,SN,2,3,"th",4),i.YNc(5,EN,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,DN,3,3,"th",7),i.YNc(8,HN,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,LN,1,0,"th",10),i.YNc(11,PN,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,kN,1,0,"th",10),i.YNc(14,ON,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,IN,3,3,"th",7),i.YNc(17,BN,2,2,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,NN,3,3,"th",7),i.YNc(20,VN,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,FN,3,3,"th",7),i.YNc(23,zN,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,jN,3,3,"th",7),i.YNc(26,qN,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,YN,3,3,"th",7),i.YNc(29,WN,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,UN,3,3,"th",7),i.YNc(32,GN,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,$N,3,3,"th",7),i.YNc(35,ZN,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,JN,3,3,"th",7),i.YNc(38,XN,2,1,"td",11),i.BQk(),i.YNc(39,QN,1,0,"tr",21),i.YNc(40,e3,3,14,"tr",22),i.qZA()()(),i.YNc(41,t3,3,3,"perun-web-apps-alert",23),i.YNc(42,n3,3,3,"perun-web-apps-alert",23)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(37),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},dependencies:[w.O5,ec,io,ds,no,us,cs,ro,hs,ps,ao,so,xo,fs,rg,Gn,Xi,dr,ls,RD,AN,vN,lt,TN,xN],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})(),a3=0;const $v=new i.OlP("CdkAccordion");let s3=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+a3++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=je(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:$v,useExisting:n}]),i.TTD]}),n})(),o3=0,l3=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Bt.w0.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+o3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=je(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($v,12),i.Y36(i.sBO),i.Y36(Fr))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:$v,useValue:void 0}])]}),n})(),c3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const d3=["body"];function u3(n,a){}const h3=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],p3=["mat-expansion-panel-header","*","mat-action-row"];function f3(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const m3=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],g3=["mat-panel-title","mat-panel-description","*"],Zv=new i.OlP("MAT_ACCORDION"),FD="225ms cubic-bezier(0.4,0.0,0.2,1)",zD={indicatorRotate:wi("indicatorRotate",[Rt("collapsed, void",Ie({transform:"rotate(0deg)"})),Rt("expanded",Ie({transform:"rotate(180deg)"})),Pt("expanded <=> collapsed, void => collapsed",Et(FD))]),bodyExpansion:wi("bodyExpansion",[Rt("collapsed, void",Ie({height:"0px",visibility:"hidden"})),Rt("expanded",Ie({height:"*",visibility:"visible"})),Pt("expanded <=> collapsed, void => collapsed",Et(FD))])},jD=new i.OlP("MAT_EXPANSION_PANEL");let ag=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(jD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),_3=0;const qD=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let sg=(()=>{class n extends l3{constructor(e,t,r,l,c,s,o){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new De.x,this._headerId="mat-expansion-panel-header-"+_3++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=c,this._bodyAnimationDone.pipe(Ih((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ti(null),(0,Yt.h)(()=>this.expanded&&!this._portal),(0,dt.q)(1)).subscribe(()=>{this._portal=new El(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zv,12),i.Y36(i.sBO),i.Y36(Fr),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(i.QbO,8),i.Y36(qD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,ag,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(d3,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Zv,useValue:void 0},{provide:jD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:p3,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(h3),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,u3,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},dependencies:[rp],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[zD.bodyExpansion]},changeDetection:0}),n})();class b3{}const A3=Ro(b3);let og=(()=>{class n extends A3{constructor(e,t,r,l,c,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=Bt.w0.EMPTY;const d=e.accordion?e.accordion._stateChanges.pipe((0,Yt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Wr.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Fi.T)(e.opened,e.closed,d,e._inputChanges.pipe((0,Yt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Yt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:An(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(sg,1),i.Y36(i.SBq),i.Y36(Cr),i.Y36(i.sBO),i.Y36(qD,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:g3,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(m3),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,f3,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[zD.indicatorRotate]},changeDetection:0}),n})(),qA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),YA=(()=>{class n extends s3{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=je(e)}ngAfterContentInit(){this._headers.changes.pipe(ti(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zh(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,og,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Zv,useExisting:n}]),i.qOj]}),n})(),Jv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,c3,Vo]}),n})();function y3(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const M3=function(){return["name","description"]};function w3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,M3))("disableRouting",!0)}}function C3(n,a){if(1&n&&(i.YNc(0,y3,1,0,"mat-spinner",6),i.YNc(1,w3,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function v3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,C3,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let T3=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(On),i.Y36(Fa),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,v3,5,1,"mat-expansion-panel",3),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Xp,r3,YA,sg,og,qA,ag,Ei,lt,ri]}),n})();function x3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilter(r))}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function S3(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const E3=function(){return["name","expirationAttribute","extend"]};function D3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.extendMembership(r))}),i.qZA()()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,E3))}}function H3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function L3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,D3,2,5,"div",9),i.YNc(6,H3,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function P3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const k3=function(){return["name"]};function R3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,k3))}}function O3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,P3,4,5,"perun-web-apps-alert",10),i.YNc(6,R3,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let I3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Mn(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.get("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const c=r.find(s=>s.voId===l.id);c?this.membersService.getRichMemberWithAttributes(c.id).subscribe(s=>{const o=s.memberAttributes.find(d=>"membershipExpiration"===d.friendlyName);t.push({entity:l,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(On))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,x3,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,S3,1,0,"mat-spinner",3),i.YNc(7,L3,7,7,"div",4),i.YNc(8,O3,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Xp,Gn,Ei,VD,lt,ri]}),n})(),B3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},dependencies:[Xa]}),n})(),N3=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA()(),i.TgZ(11,"div",3)(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},dependencies:[Lt,Pn,vn,hn,Lv,lt,ri],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function V3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function F3(n,a){1&n&&i._UZ(0,"th",16)}function z3(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function j3(n,a){1&n&&i._UZ(0,"tr",18)}function q3(n,a){1&n&&i._UZ(0,"tr",19)}function Y3(n,a){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,F3,1,0,"th",12),i.YNc(12,z3,2,1,"td",13),i.BQk(),i.YNc(13,j3,1,0,"tr",14),i.YNc(14,q3,1,0,"tr",15),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let W3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new $o(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,V3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,Y3,15,13,"div",3),i.TgZ(7,"div",4)(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},dependencies:[w.O5,Lt,Pn,vn,hn,io,ds,no,us,cs,ro,hs,ps,ao,so,Ei,lt,ri]}),n})();function U3(n,a){1&n&&i._UZ(0,"th",12)}function G3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13)(1,"mat-checkbox",14),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function $3(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function Z3(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function J3(n,a){1&n&&i._UZ(0,"tr",17)}function X3(n,a){1&n&&i._UZ(0,"tr",18)}function Q3(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let YD=(()=>{class n{constructor(){this.values=[],this.selection=new Mn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new $o(this.values),this.setDataSource()}exportData(e){zu(eo(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(ls,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,U3,1,0,"th",4),i.YNc(5,G3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,$3,2,1,"th",7),i.YNc(8,Z3,2,1,"td",8),i.BQk(),i.YNc(9,J3,1,0,"tr",9),i.YNc(10,X3,1,0,"tr",10),i.qZA()()(),i.YNc(11,Q3,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},dependencies:[w.O5,Gn,io,ds,no,us,cs,ro,hs,ps,ao,so,ec,ls],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function K3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function eV(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let tV=(()=>{class n{constructor(e,t,r,l,c){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=c,this.altPasswordCtrl=new ka(null,[Ji.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Mn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=bi();t.width="600px",t.data={password:e},this.dialog.open(N3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const c=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*c);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=bi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(W3,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i),i.Y36(Pi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA()(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,K3,1,4,"perun-web-apps-string-list",8),i.YNc(27,eV,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,Lt,Gn,cn,zn,dn,un,Ra,Ei,YD,lt,ri]}),n})();function iV(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1)(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let nV=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.get("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-list"),i.YNc(1,iV,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,Xi,Rv,OA,xo,ta,lt,ri],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),rV=(()=>{class n extends Tn{buildStyles(e,{display:t}){const r=nE(e);return{...r,display:"none"===t?t:r.display}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const aV=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let sV=(()=>{class n extends pn{constructor(e,t,r,l,c){super(e,r,t,l),this._config=c,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var t;const l=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(t=UD.get(l))&&void 0!==t?t:new Map,UD.set(l,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:l}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(rV),i.Y36(nn),i.Y36(to))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),WD=(()=>{class n extends sV{constructor(){super(...arguments),this.inputs=aV}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),n})();const UD=new Map;let VV=(()=>{class n extends Tn{buildStyles(e){const t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const FV=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let zV=(()=>{class n extends pn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=jV,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(VV),i.Y36(nn))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const jV=new Map;let ZD=(()=>{class n extends zV{constructor(){super(...arguments),this.inputs=FV}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.qOj]}),n})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv,Po]}),n})();function aF(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let sF=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=c,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",c.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new ka(null,[Ji.required]),this.newValueControl=new ka(null,[Ji.required,Ji.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new CA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(fi),i.Y36(hr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"div")(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA()(),i.TgZ(12,"div")(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA()(),i.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,aF,2,2,"mat-option",7),i.qZA()(),i.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA()()(),i.TgZ(33,"div",10)(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA()()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[w.sg,Lt,WD,ZD,cn,Tp,Fs,Pn,hn,zn,dn,Cu,un,ra,Ra,lt,ri],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),n})();function oF(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function lF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function cF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"p")(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit,c=i.oxw();return i.KtG(c.requestChangeQuota(l,r))}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.Oqu(i.lcZ(9,8,i.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function dF(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function uF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.getResAttributes(l.id))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,cF,15,16,"div",7),i.YNc(5,dF,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function hF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,uF,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function pF(n,a){if(1&n&&(i.YNc(0,oF,1,0,"mat-spinner",5),i.YNc(1,lF,4,5,"perun-web-apps-alert",6),i.YNc(2,hF,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function fF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.getMembersResources(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,pF,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let mF=(()=>{class n{constructor(e,t,r,l,c,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.dialog=s,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getResourceAttributes(c.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(c),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=bi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(sF,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Pi),i.Y36(On),i.Y36(Fa),i.Y36(Xt),i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,fF,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DATA_QUOTAS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Lt,Xp,Gn,YA,sg,og,qA,ag,Ei,lt,ri],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),n})();function gF(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function _F(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function bF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.deselectResource())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeSelectedResource(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"div",10)(5,"mat-checkbox",11),i.NdJ("change",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.setOptOut())}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.Oqu(i.lcZ(8,4,i.lcZ(9,6,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL")))}}function AF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,bF,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function yF(n,a){if(1&n&&(i.YNc(0,gF,1,0,"mat-spinner",5),i.YNc(1,_F,4,5,"perun-web-apps-alert",6),i.YNc(2,AF,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function MF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.deselectVo())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changeSelectedVo(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,yF,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let wF=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.route=s,this.router=o,this.notificator=d,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(KC),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"})}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,c.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(c.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const d=s.find(u=>"optOutMailingList"===u.friendlyName);d&&"true"!==o?.value&&(this.optOuts.push({resource:c.id,member:t.id,attribute:d}),this.resources.push(c),this.selectedResource===c.name&&(this.getOptOutAttribute(c),this.changeSelectedResource(c))),this.loading=0!==l})})})}),this.resources.sort(KC)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Pi),i.Y36(On),i.Y36(Fa),i.Y36(Xt),i.Y36(Xn),i.Y36(Ai),i.Y36(hr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,MF,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Xp,Gn,YA,sg,og,qA,ag,ec,Ei,lt,ri]}),n})();function CF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function vF(n,a){1&n&&i._UZ(0,"th",17)}function TF(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function xF(n,a){1&n&&i._UZ(0,"tr",19)}function SF(n,a){1&n&&i._UZ(0,"tr",20)}function EF(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,vF,1,0,"th",13),i.YNc(3,TF,2,1,"td",14),i.BQk(),i.YNc(4,xF,1,0,"tr",15),i.YNc(5,SF,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function DF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1)(1,"div",5)(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,EF,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8)(10,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let UA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new $o(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,CF,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,DF,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Lt,Pn,vn,hn,io,ds,no,us,cs,ro,hs,ps,ao,so,Ei,lt,ri]}),n})();function HF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function LF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeValue())}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function PF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),i.NdJ("valueChange",function(r){const c=i.CHM(e).index,s=i.oxw(2);return i.KtG(s.shells[c]=r)}),i.YNc(3,LF,2,2,"mat-option",9),i.qZA()(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw(2);return i.KtG(c.removeShell(l))}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function kF(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,PF,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let RF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=bi();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,HF,4,5,"perun-web-apps-alert",3),i.YNc(13,kF,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,Rv,OA,Lt,Gn,cn,Tp,Fs,lt,ri]}),n})();function OF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function IF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),i._UZ(4,"input",7),i.qZA()()(),i.TgZ(5,"div",8)(6,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let BF=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new ka(null,Ji.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,OF,1,0,"mat-spinner",2),i.YNc(6,IF,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Lt,cn,Pn,vn,hn,zn,dn,un,ra,Ra,Ei,lt,ri]}),n})();function NF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2)(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.addGroupName(l))}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,c=r.index,s=i.oxw();return i.KtG(s.removeGroupName(l,c))}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let VF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(c=>this.alertText=c),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new Mn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=bi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(BF,r).afterClosed().subscribe(c=>{c&&this.getAttribute(e)})}removeGroupName(e,t){const r=bi();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,r).afterClosed().subscribe(c=>{c&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,NF,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},dependencies:[w.sg,Lt,YD,lt,ri]}),n})();function FF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function zF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function jF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let qF=(()=>{class n{constructor(e,t,r,l,c){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=c,c.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),c.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),c.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new ka("",[Ji.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xt),i.Y36(Zt),i.Y36(Pi),i.Y36(hr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,FF,4,5,"perun-web-apps-alert",1),i.YNc(5,zF,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2)(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA()(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA()(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,jF,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},dependencies:[w.O5,Xi,Lt,Gn,cn,zn,dn,un,Ra,dr,lt,ri]}),n})();function YF(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Zo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new ka(null,[Ji.required,Ji.pattern(Zo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}Zo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Zo.sshKeyPattern="^("+Zo.allowedSshKeys.join("|")+").+$",Zo.\u0275fac=function(a){return new(a||Zo)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},Zo.\u0275cmp=i.Xpm({type:Zo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,YF,4,5,"mat-error",4),i.qZA()(),i.TgZ(11,"div",5)(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[w.O5,Lt,zo,cn,Pn,vn,hn,wA,zn,dn,un,ra,Ra,lt,ri],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let WF=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"textarea",1),i._uU(2),i.qZA()(),i.TgZ(3,"mat-dialog-actions")(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[Lt,hn,wA,zn,lt,ri],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function UF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA()(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!1))}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function GF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",9)(4,"mat-icon"),i._uU(5," file_copy "),i.qZA()(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!0))}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let $F=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new Mn(!1,[]),this.selectionAdmin=new Mn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=bi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Zo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=bi();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,r).afterClosed().subscribe(c=>{c&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=bi();t.width="600px",t.data={value:e},this.dialog.open(WF,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,UF,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,GF,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.Oqu(i.lcZ(16,20,i.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(20,24,i.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},dependencies:[w.sg,Xi,Rv,OA,Lt,Lv,ta,dr,lt,ri],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})(),ZF=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function JF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function XF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",t.checkboxLabel(e))}}function QF(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function KF(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function ez(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function tz(n,a){if(1&n&&(i.TgZ(0,"td",23)(1,"div",24),i._uU(2),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function iz(n,a){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function nz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23)(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.onValueChange(l))}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function rz(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function az(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function sz(n,a){1&n&&i._UZ(0,"tr",27)}function oz(n,a){if(1&n&&(i._UZ(0,"tr",28),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function lz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function cz(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}let dz=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Mn(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=Vu}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!$l(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new $o(function ZC(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){zu(eo(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,n.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,n.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ya),i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7),i.Gf(Uv,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,JF,2,3,"th",4),i.YNc(5,XF,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,QF,3,3,"th",7),i.YNc(8,KF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,ez,3,3,"th",7),i.YNc(11,tz,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,iz,3,3,"th",12),i.YNc(14,nz,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,rz,3,3,"th",7),i.YNc(17,az,2,1,"td",10),i.BQk(),i.YNc(18,sz,1,0,"tr",14),i.YNc(19,oz,2,5,"tr",15),i.qZA()()(),i.YNc(20,lz,3,3,"perun-web-apps-alert",16),i.YNc(21,cz,3,3,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[w.O5,ec,io,ds,no,us,cs,ro,hs,ps,ao,so,fs,rg,Gn,dr,ls,Uv,lt,ZF,Nv],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),n})();function uz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function hz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function pz(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function fz(n,a){if(1&n&&(i.YNc(0,hz,1,0,"mat-spinner",3),i.YNc(1,pz,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function mz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function gz(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function _z(n,a){if(1&n&&(i.YNc(0,mz,1,0,"mat-spinner",3),i.YNc(1,gz,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function bz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw(2);return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()(),i.YNc(6,_z,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function Az(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),i.NdJ("opened",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.getUserData())}),i.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()(),i.YNc(7,fz,2,2,"ng-template",7),i.qZA(),i.YNc(8,bz,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}let yz=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new CA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(On),i.Y36(Xt),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,uz,1,0,"mat-spinner",3),i.YNc(9,Az,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},dependencies:[w.sg,w.O5,Xp,dz,YA,sg,og,qA,ag,Ei,lt,ri]}),n})(),Mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Xa]}),n})(),xz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Rz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[xz,gt,gt]}),n})(),Bz=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Gz={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[yn],useFactory:function Uz(n){return()=>n.scrollStrategies.reposition()}};let tT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Bz,Gz],imports:[w.ez,Sa,Fo,Yh,Vo,gt,Ha]}),n})();new i.OlP("mat-selectsearch-default-options");let ij=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Js,Sa,eg,Oa,Wp,Xs]]}),n})(),iT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),t2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,gt,$h,gt]}),n})(),aj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Po]}),n})(),nT=(()=>{class n{constructor(){this.changes=new De.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const gj={provide:nT,deps:[[new i.FiY,new i.tp0,nT]],useFactory:function mj(n){return n||new nT}};let s2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[gj,Nc],imports:[gt,w.ez,Vo,Sa,aj,Oa,ia,gt]}),n})(),Mj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,Vo,ia,xl,Yh,gt]}),n})();const wj=["input"],Cj=function(n){return{enterDuration:n}},vj=["*"],Tj=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let xj=0;const Sj={provide:Qn,useExisting:(0,i.Gpc)(()=>o2),multi:!0};class Ej{constructor(a,e){this.source=a,this.checked=e}}const Dj=Ro(ns(xa(Ta(class{constructor(n){this._elementRef=n}}))));let Hj=(()=>{class n extends Dj{constructor(e,t,r,l,c,s,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=c,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=c.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${o}${++xj}`}get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[i.qOj]}),n})(),o2=(()=>{class n extends Hj{constructor(e,t,r,l,c,s){super(e,t,r,l,c,s,"mat-slide-toggle-")}_createChangeEvent(e){return new Ej(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Cr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(Tj),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&i.Gf(wj,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[i._Bn([Sj]),i.qOj],ngContentSelectors:vj,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()()(),i.TgZ(9,"span",9,10),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(11,"span",11),i._uU(12,"\xa0"),i.qZA(),i.Hsn(13),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(10);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(4),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,Cj,t._noopAnimations?0:150))}},dependencies:[ta,Bh],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),n})(),l2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),rT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[l2,ia,gt,xl,l2,gt]}),n})(),kj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,iT,Pv,Jv,Sa,t2,eg,Oa,Km,Vp,Wp,rs,Yp,Sl,Cp,Js,s2,tT,e0,hv,Ov,ku,Iv,jA,Hu,Xs,Yo,ia,Km,rT,Wv,iT,Pv,Jv,Sa,t2,eg,Oa,Km,Vp,Wp,rs,Yp,Sl,Cp,Js,s2,tT,e0,hv,Ov,ku,Iv,jA,Hu,Xs,Yo,ia,Mj,rT,Wv]}),n})(),Rj=(()=>{class n extends D1{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Oj={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let c2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ir,useClass:Rj},{provide:Bc,useValue:Oj}],imports:[w.ez,eg,Km,Cp,Wv,fI,Bu,Pc,jA,Hu,Wp,vA,Oa,ku,Sa,Xs,rs,Js,Yp,ia,HE,NE,Rz,tT,WE,ru,Yo,ij,Sl,Vp,LC,kj]}),n})();function Ij(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function Bj(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Nj(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function Vj(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Fj(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function zj(n,a){1&n&&i._UZ(0,"th",16)}function jj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.resetPassword(l.friendlyNameParameter))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function qj(n,a){1&n&&i._UZ(0,"th",16)}function Yj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changePassword(l))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Wj(n,a){1&n&&i._UZ(0,"tr",22)}function Uj(n,a){1&n&&i._UZ(0,"tr",23)}let Gj=(()=>{class n{constructor(e,t,r,l,c,s,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=c,this.otherApplicationService=s,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new i.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.get("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new $o(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const l=this.logins.find(c=>c.friendlyNameParameter===r);l&&this.changePassword(l)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=bi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(hR,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xt),i.Y36(Zt),i.Y36(Oi),i.Y36(Xn),i.Y36(Ai),i.Y36(gA),i.Y36(oL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Ij,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),i.ynx(9,6),i.YNc(10,Bj,4,5,"th",7),i.YNc(11,Nj,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,Vj,4,5,"th",7),i.YNc(14,Fj,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,zj,1,0,"th",7),i.YNc(17,jj,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,qj,1,0,"th",7),i.YNc(20,Yj,5,6,"td",12),i.BQk(),i.YNc(21,Wj,1,0,"tr",14),i.YNc(22,Uj,1,0,"tr",15),i.qZA()()()()),2&e&&(i.xp6(1),i.hij(" ",t.authenticationPage?"":i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length&&!t.authenticationPage),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[w.O5,io,ds,no,us,cs,ro,hs,ps,ao,so,fs,Gn,Lt,lt,ri],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function u4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function h4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function p4(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function f4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let g4=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){const t=e.dataTransfer?.files[0]??e.target?.files[0],l=new FileReader;t.type.match(/image-*/)?(l.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,l.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{c(t.result).then(s=>{r>50&&s.length>6144?(r-=10,l()):(this.newImage=s,this.imgTooLong=this.newImage.length>=6144)}).catch(s=>console.error(s))},c=s=>new Promise((o,d)=>{const u=new Image;u.src=s,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const N=h.getContext("2d");N.drawImage(u,0,0,f,b);const Q=N.canvas.toDataURL();o(Q)},u.onerror=h=>d(h)});l()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function d(f,b,N,Q){Q.beginPath(),Q.rect(20*f,20*b,20,20),Q.fillStyle="rgb("+N.join(",")+")",Q.fill()}this.newImage=function h(){const f=function o(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),N=function u(){const f=[];for(let b=0;b<3;b++){const N=Math.floor(256*Math.random()),Q=Math.max(120,N),pe=Math.min(200,Q);f.push(pe)}return f}();for(let Q=0;Q{class n{constructor(e,t,r,l,c,s,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=l,this.authService=c,this.httpClient=s,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,tD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const l in this.categories)if(this.categories[l].value){t=!0,this.includeCategories.push(l);for(const c in this.categories[l].rps)this.categories[l].rps_value[c]?t=!0:(e=!1,this.excludeRps.push(c))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Xt),i.Y36(Zt),i.Y36(ju.Ct),i.Y36(rd),i.Y36(M.eN),i.Y36(lL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&i.Gf(_4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(i.YNc(0,b4,1,0,"mat-spinner",0),i.TgZ(1,"div",1)(2,"span",2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.TgZ(5,"mat-slide-toggle",3,4),i.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.showDetailSettings()}),i.TgZ(11,"mat-icon"),i._uU(12),i.qZA()()()(),i.TgZ(13,"button",6),i.NdJ("click",function(){return t.saveSettings()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.YNc(16,w4,3,3,"div",7),i.YNc(17,C4,1,0,"mat-spinner",0),i.qZA()),2&e&&(i.Q6J("ngIf",t.loadingMfa),i.xp6(1),i.Q6J("hidden",t.loadingMfa),i.xp6(1),i.Q6J("matTooltip",i.lcZ(3,13,i.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.hij("",i.lcZ(8,17,i.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),i.xp6(3),i.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),i.xp6(1),i.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),i.xp6(1),i.hij(" ",i.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),i.xp6(2),i.Q6J("ngIf",t.showDetail),i.xp6(1),i.Q6J("ngIf",t.loadingCategories))},dependencies:[w.sg,w.O5,Xi,Lt,Ei,dr,o2,w.Nd,lt,ri],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),n})();const T4=["toggle"];function x4(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",9),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function S4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",5)(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,x4,2,1,"div",6),i.TgZ(10,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddImg())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onDeleteImg())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),i.xp6(3),i.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),i.xp6(3),i.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function E4(n,a){1&n&&i._UZ(0,"mat-spinner",10)}let D4=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=c,this.authService=s,this.notificatorService=o,this.imageSrc="",this.mfaUrl="",this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(d=>this.removeDialogDescription=d),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(d=>this.saveImgSuccess=d),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(d=>this.removeImgSuccess=d)}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(e=>this.removeDialogDescription=e),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}loadImage(){this.loadingImg=!0;const e=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?(this.imgAtt=t,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(r=>{this.imgAtt=r}),this.loadingImg=!1},t=>{console.error(t),this.loadingImg=!1})}onAddImg(){const e=bi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(g4,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}onDeleteImg(){const e=bi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(Xt),i.Y36(Zt),i.Y36(_i),i.Y36(ju.Ct),i.Y36(rd),i.Y36(hr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(T4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:12,vars:11,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,S4,18,22,"div",1),i.TgZ(2,"h1",2),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"button",3),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._UZ(9,"br")(10,"perun-web-apps-mfa-settings"),i.qZA(),i.YNc(11,E4,1,0,"mat-spinner",4)),2&e&&(i.Q6J("hidden",t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,5,i.lcZ(5,7,"AUTHENTICATION.MFA"))),i.xp6(4),i.hij(" ",i.lcZ(8,9,"AUTHENTICATION.MFA_INFO")," "),i.xp6(4),i.Q6J("ngIf",t.loadingImg))},dependencies:[w.O5,Lt,Ei,v4,lt,ri]}),n})(),H4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,Sa,Oa,Pc,c2,Bu,rs,Js,Yp,vA]}),n})(),L4=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rd),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Lt,Xi,lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function P4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let k4=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new ka(null,[Ji.required]),this.passwordCtrl=new ka(null,[Ji.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ht))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,P4,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA()(),i.TgZ(15,"mat-form-field",4)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[w.O5,Lt,Xi,zo,cn,Hi,dn,un,ra,Ra,zn,Gn,lt],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})(),R4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Xa]}),n})();function O4(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function I4(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function B4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,I4,2,1,"li",7),i.qZA()(),i.TgZ(13,"div",0)(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.rejectConsent())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.grantConsent())}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let N4=(()=>{class n{constructor(e,t,r,l,c,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=c,this.router=s,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe(r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},r=>{this.loading=!1;const l=r.error;"ConsentNotExistsException"!==l.name&&this.notificator.showRPCError(l),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hr),i.Y36(_i),i.Y36(Rn),i.Y36(Xn),i.Y36($m),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,O4,1,0,"mat-spinner",2),i.YNc(3,B4,22,22,"div",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,Lt,Ei,lt,ri],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function V4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function F4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function z4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let j4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(i.YNc(0,V4,7,5,"span",0),i.YNc(1,F4,7,5,"span",0),i.YNc(2,z4,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},dependencies:[w.O5,Xi,lt,ri],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function q4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15)(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Y4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17)(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function W4(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function U4(n,a){if(1&n&&(i.TgZ(0,"td",20),i._UZ(1,"perun-web-apps-consent-status",21),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function G4(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function $4(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function Z4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function J4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function X4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function Q4(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function K4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.rejectConsent.emit(r.id))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function eq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.grantConsent.emit(r.id))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function tq(n,a){if(1&n&&(i.TgZ(0,"td",20)(1,"div",22)(2,"div",23),i.YNc(3,Z4,4,5,"div",24),i.YNc(4,J4,4,5,"div",24),i.YNc(5,X4,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,Q4,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,K4,4,5,"button",27),i.YNc(10,eq,4,5,"button",28),i.qZA()()()()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function iq(n,a){1&n&&i._UZ(0,"tr",31)}function nq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.expandedConsent=c.expandedConsent===l?null:l)}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function rq(n,a){1&n&&i._UZ(0,"tr",33)}function aq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function sq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const oq=function(){return["expandedDetail"]};let lq=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Mn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=Vu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new $o(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){zu(eo(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Zl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>Fu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:19,vars:11,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,q4,2,2,"th",4),i.YNc(5,Y4,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,W4,4,5,"th",7),i.YNc(8,U4,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,G4,4,5,"th",7),i.YNc(11,$4,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,tq,11,8,"td",8),i.BQk(),i.YNc(14,iq,1,0,"tr",11),i.YNc(15,nq,1,2,"tr",12),i.YNc(16,rq,1,0,"tr",13),i.qZA()()(),i.YNc(17,aq,4,5,"perun-web-apps-alert",14),i.YNc(18,sq,4,5,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(12),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(10,oq)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[w.sg,w.O5,ec,io,ds,no,us,cs,ro,hs,ps,ao,so,fs,rg,Gn,Lt,ls,j4,lt,ri],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[wi("detailExpand",[Rt("collapsed",Ie({height:"0px",minHeight:"0"})),Rt("expanded",Ie({height:"*"})),Pt("expanded <=> collapsed",Et("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const h2=function(){return["status","name"]};function cq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilterUnsigned(r))}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,h2))}}function dq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilterSigned(r))}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,h2))}}function uq(n,a){1&n&&i._UZ(0,"mat-spinner",9)}let hq=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=c,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(l=>l.id===e)??this.signedConsents.find(l=>l.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(hr),i.Y36(_i),i.Y36(Zt),i.Y36(Rn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,cq,9,15,"div",2),i.YNc(6,dq,9,15,"div",2),i.YNc(7,uq,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,Xp,lq,Ei,lt,ri]}),n})();function pq(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function fq(n,a){if(1&n&&(i.TgZ(0,"div",7),i._UZ(1,"perun-web-apps-password-form",8),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let mq=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=l,this.translate=c,this.formBuilder=s,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",Ji.required,[LE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",Ji.required]},{validators:GS.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,Nt.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi),i.Y36(hr),i.Y36(_i),i.Y36(Jw),i.Y36($m))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,pq,1,0,"mat-spinner",1),i.YNc(5,fq,2,3,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.activate()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.loading||t.pwdForm.invalid),i.xp6(1),i.hij(" ",i.lcZ(13,14,i.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[w.O5,Lt,Pn,vn,hn,Qc,Zs,Ei,PE,lt,ri]}),n})();function gq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.openPwdReset())}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function _q(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.activateAccount())}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function bq(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,gq,4,5,"button",3),i.YNc(2,_q,4,5,"button",3),i.qZA()),2&n){const e=a.ngIf;i.xp6(1),i.Q6J("ngIf",e.exists),i.xp6(1),i.Q6J("ngIf",!e.exists)}}const Aq=function(n){return{exists:n}},yq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:L4},{path:"service-access",component:k4},{path:"profile",component:Mz,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:KI,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:PB,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:mN,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:T3,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:I3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:yz,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:R4,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:hq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:N4,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:B3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:nV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:tV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:D4,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:mF,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r,l,c){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=l,this.router=c,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=bi();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(mq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(gA),i.Y36(Oi),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,bq,3,2,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,Aq,i.lcZ(9,11,t.loginExists$))))},dependencies:[w.O5,Lt,w.Ov,lt,ri]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:wF,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:RF,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:VF,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:qF,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:$F,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:Gj,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Mq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Pc.forRoot(yq,{preloadingStrategy:Nf,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),n})();class wq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function p2(n){return new i.vHH(3e3,!1)}function r6(){return typeof window<"u"&&typeof window.document<"u"}function aT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function od(n){switch(n.length){case 0:return new kl;case 1:return n[0];default:return new P0(n)}}function f2(n,a,e,t,r=new Map,l=new Map){const c=[],s=[];let o=-1,d=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==o,b=f&&d||new Map;u.forEach((N,Q)=>{let pe=Q,Pe=N;if("offset"!==Q)switch(pe=a.normalizePropertyName(pe,c),Pe){case"!":Pe=r.get(Q);break;case qs:Pe=l.get(Q);break;default:Pe=a.normalizeStyleValue(Q,pe,Pe,c)}b.set(pe,Pe)}),f||s.push(b),d=b,o=h}),c.length)throw function Wq(n){return new i.vHH(3502,!1)}();return s}function sT(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&oT(e,"start",n)));break;case"done":n.onDone(()=>t(e&&oT(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&oT(e,"destroy",n)))}}function oT(n,a,e){const l=lT(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),c=n._data;return null!=c&&(l._data=c),l}function lT(n,a,e,t,r="",l=0,c){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!c}}function Ba(n,a,e){let t=n.get(a);return t||n.set(a,t=e),t}function m2(n){const a=n.indexOf(":");return[n.substring(1,a),n.slice(a+1)]}let cT=(n,a)=>!1,g2=(n,a,e)=>[],_2=null;function dT(n){const a=n.parentNode||n.host;return a===_2?null:a}(aT()||typeof Element<"u")&&(r6()?(_2=(()=>document.documentElement)(),cT=(n,a)=>{for(;a;){if(a===n)return!0;a=dT(a)}return!1}):cT=(n,a)=>n.contains(a),g2=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Wu=null,b2=!1;const A2=cT,y2=g2;let M2=(()=>{class n{validateStyleProperty(e){return function s6(n){Wu||(Wu=function o6(){return typeof document<"u"?document.body:null}()||{},b2=!!Wu.style&&"WebkitAppearance"in Wu.style);let a=!0;return Wu.style&&!function a6(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Wu.style,!a&&b2&&(a="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Wu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return A2(e,t)}getParentElement(e){return dT(e)}query(e,t,r){return y2(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,c,s=[],o){return new kl(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),uT=(()=>{class n{}return n.NOOP=new M2,n})();const hT="ng-enter",QA="ng-leave",KA="ng-trigger",ey=".ng-trigger",C2="ng-animating",pT=".ng-animating";function ld(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:fT(parseFloat(a[1]),a[2])}function fT(n,a){return"s"===a?1e3*n:n}function ty(n,a,e){return n.hasOwnProperty("duration")?n:function d6(n,a,e){let r,l=0,c="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return a.push(p2()),{duration:0,delay:0,easing:""};r=fT(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=fT(parseFloat(o),s[4]));const d=s[5];d&&(c=d)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push(function Cq(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(a.push(function vq(){return new i.vHH(3101,!1)}()),s=!0),s&&a.splice(o,0,p2())}return{duration:r,delay:l,easing:c}}(n,a,e)}function cg(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function v2(n){const a=new Map;return Object.keys(n).forEach(e=>{a.set(e,n[e])}),a}function cd(n,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of n)a.set(t,r);return a}function x2(n,a,e){return e?a+":"+e+";":""}function S2(n){let a="";for(let e=0;e{const l=gT(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),aT()&&S2(n))}function Uu(n,a){n.style&&(a.forEach((e,t)=>{const r=gT(t);n.style[r]=""}),aT()&&S2(n))}function dg(n){return Array.isArray(n)?1==n.length?n[0]:J1(n):n}const mT=new RegExp("{{\\s*(.+?)\\s*}}","g");function E2(n){let a=[];if("string"==typeof n){let e;for(;e=mT.exec(n);)a.push(e[1]);mT.lastIndex=0}return a}function iy(n,a,e){const t=n.toString(),r=t.replace(mT,(l,c)=>{let s=a[c];return null==s&&(e.push(function xq(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function ny(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const p6=/-+([a-z0-9])/g;function gT(n){return n.replace(p6,(...a)=>a[1].toUpperCase())}function f6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Na(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw function Sq(n){return new i.vHH(3004,!1)}()}}function D2(n,a){return window.getComputedStyle(n)[a]}function y6(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function M6(n,a,e){if(":"==n[0]){const o=function w6(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof o)return void a.push(o);n=o}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function Fq(n){return new i.vHH(3015,!1)}()),a;const r=t[1],l=t[2],c=t[3];a.push(H2(r,c));"<"==l[0]&&!("*"==r&&"*"==c)&&a.push(H2(c,r))}(t,e,a)):e.push(n),e}const oy=new Set(["true","1"]),ly=new Set(["false","0"]);function H2(n,a){const e=oy.has(n)||ly.has(n),t=oy.has(a)||ly.has(a);return(r,l)=>{let c="*"==n||n==r,s="*"==a||a==l;return!c&&e&&"boolean"==typeof r&&(c=r?oy.has(n):ly.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?oy.has(a):ly.has(a)),c&&s}}const C6=new RegExp("s*:selfs*,?","g");function _T(n,a,e,t){return new v6(n).build(a,e,t)}class v6{constructor(a){this._driver=a}build(a,e,t){const r=new S6(e);return this._resetContextStyleTimingState(r),Na(this,dg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function Dq(){return new i.vHH(3006,!1)}()),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,d=o.name;d.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=d}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,c.push(o)}else e.errors.push(function Hq(){return new i.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(o=>{E2(o).forEach(d=>{c.hasOwnProperty(d)||l.add(d)})})}),l.size&&(ny(l.values()),e.errors.push(function Lq(n,a){return new i.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Na(this,dg(a.animation),e);return{type:1,matchers:y6(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Gu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Na(this,t,e)),options:Gu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(c=>{e.currentTime=t;const s=Na(this,c,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Gu(a.options)}}visitAnimate(a,e){const t=function D6(n,a){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return bT(ty(n,a).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=bT(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=ty(e,a);return bT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Ie({});if(5==l.type)r=this.visitKeyframes(l,e);else{let c=a.styles,s=!1;if(!c){s=!0;const d={};t.easing&&(d.easing=t.easing),c=Ie(d)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(c,e);o.isEmptyStep=s,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let s of r)"string"==typeof s?s===qs?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(v2(s));let l=!1,c=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(c=s.get("easing"),s.delete("easing")),!l))for(let o of s.values())if(o.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(c=>{"string"!=typeof c&&c.forEach((s,o)=>{const d=e.collectedStyles.get(e.currentQuerySelector),u=d.get(o);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function kq(n,a,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&d.set(o,{startTime:l,endTime:r}),e.options&&function h6(n,a,e){const t=a.params||{},r=E2(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function Tq(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Rq(){return new i.vHH(3011,!1)}()),t;let l=0;const c=[];let s=!1,o=!1,d=0;const u=a.steps.map(Pe=>{const _t=this._makeStyleAst(Pe,e);let kt=null!=_t.offset?_t.offset:function E6(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(_t.styles),Ut=0;return null!=kt&&(l++,Ut=_t.offset=kt),o=o||Ut<0||Ut>1,s=s||Ut0&&l{const kt=f>0?_t==b?1:f*_t:c[_t],Ut=kt*pe;e.currentTime=N+Q.delay+Ut,Q.duration=Ut,this._validateStyleAst(Pe,e),Pe.offset=kt,t.styles.push(Pe)}),t}visitReference(a,e){return{type:8,animation:Na(this,dg(a.animation),e),options:Gu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Gu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Gu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function T6(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(C6,"")),n=n.replace(/@\*/g,ey).replace(/@\w+/g,e=>ey+"-"+e.slice(1)).replace(/:animating/g,pT),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Ba(e.collectedStyles,e.currentQuerySelector,new Map);const s=Na(this,dg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:c,animation:s,originalSelector:a.selector,options:Gu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function Nq(){return new i.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:ty(a.timings,e.errors,!0);return{type:12,animation:Na(this,dg(a.animation),e),timings:t,options:null}}}class S6{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Gu(n){return n?(n=cg(n)).params&&(n.params=function x6(n){return n?cg(n):null}(n.params)):n={},n}function bT(n,a,e){return{duration:n,delay:a,easing:e}}function AT(n,a,e,t,r,l,c=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:c,subTimeline:s}}class cy{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const P6=new RegExp(":enter","g"),R6=new RegExp(":leave","g");function yT(n,a,e,t,r,l=new Map,c=new Map,s,o,d=[]){return(new O6).buildKeyframes(n,a,e,t,r,l,c,s,o,d)}class O6{buildKeyframes(a,e,t,r,l,c,s,o,d,u=[]){d=d||new cy;const h=new MT(a,e,d,r,l,u,[]);h.options=o;const f=o.delay?ld(o.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,o),Na(this,t,h);const b=h.timelines.filter(N=>N.containsAnimation());if(b.length&&s.size){let N;for(let Q=b.length-1;Q>=0;Q--){const pe=b[Q];if(pe.element===e){N=pe;break}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([s],null,h.errors,o)}return b.length?b.map(N=>N.buildKeyframes()):[AT(e,[],[],[],0,f,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,r,r.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?ld(t.duration):null,s=null!=t.delay?ld(t.delay):null;return 0!==c&&a.forEach(o=>{const d=e.appendInstructionToTimeline(o,c,s);l=Math.max(l,d.duration+d.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Na(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=dy);const c=ld(l.delay);r.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>Na(this,c,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?ld(a.options.delay):0;a.steps.forEach(c=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Na(this,c,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return ty(e.params?iy(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,a.styles.forEach(o=>{s.forwardTime((o.offset||0)*l),s.setStyles(o.styles,o.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?ld(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=dy);let c=t;const s=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let o=null;s.forEach((d,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,d);l&&h.delayNextStep(l),d===e.element&&(o=h.currentTimeline),Na(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),s=c*(e.currentQueryTotal-1);let o=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":o=s-o;break;case"full":o=t.currentStaggerTime}const u=e.currentTimeline;o&&u.delayNextStep(o);const h=u.currentTime;Na(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const dy={};class MT{constructor(a,e,t,r,l,c,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=c,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new uy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=ld(t.duration)),null!=t.delay&&(r.delay=ld(t.delay));const l=t.params;if(l){let c=r.params;c||(c=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!c.hasOwnProperty(s))&&(c[s]=iy(l[s],c,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new MT(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=dy,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new I6(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,c){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(P6,"."+this._enterClassName)).replace(R6,"."+this._leaveClassName);let d=this._driver.query(this.element,a,1!=t);0!==t&&(d=t<0?d.slice(d.length+t,d.length):d.slice(0,t)),s.push(...d)}return!l&&0==s.length&&c.push(function Vq(n){return new i.vHH(3014,!1)}()),s}}class uy{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new uy(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||qs),this._currentKeyframe.set(e,qs);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},c=function B6(n,a){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||a.keys();for(let l of t)e.set(l,qs)}else cd(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,d]of c){const u=iy(d,l,t);var s;this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(s=this._globalTimelineStyles.get(o))&&void 0!==s?s:qs),this._updateStyle(o,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const d=cd(s,new Map,this._backFill);d.forEach((u,h)=>{"!"===u?a.add(h):u===qs&&e.add(h)}),t||d.set("offset",o/this.duration),r.push(d)});const l=a.size?ny(a.values()):[],c=e.size?ny(e.values()):[];if(t){const s=r[0],o=new Map(s);s.set("offset",0),o.set("offset",1),r=[s,o]}return AT(this.element,r,l,c,this.duration,this.startTime,this.easing,!1)}}class I6 extends uy{constructor(a,e,t,r,l,c,s=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,s=e/c,o=cd(a[0]);o.set("offset",0),l.push(o);const d=cd(a[0]);d.set("offset",k2(s)),l.push(d);const u=a.length-1;for(let h=1;h<=u;h++){let f=cd(a[h]);const b=f.get("offset");f.set("offset",k2((e+b*t)/c)),l.push(f)}t=c,e=0,r="",a=l}return AT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function k2(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class wT{}const N6=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class V6 extends wT{normalizePropertyName(a,e){return gT(a)}normalizeStyleValue(a,e,t,r){let l="";const c=t.toString().trim();if(N6.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function Eq(n,a){return new i.vHH(3005,!1)}())}return c+l}}function R2(n,a,e,t,r,l,c,s,o,d,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:s,queriedElements:o,preStyleProps:d,postStyleProps:u,totalTime:h,errors:f}}const CT={};class O2{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function F6(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,l,c,s,o,d,u){var h;const f=[],b=this.ast.options&&this.ast.options.params||CT,Q=this.buildStyles(t,s&&s.params||CT,f),pe=o&&o.params||CT,Pe=this.buildStyles(r,pe,f),_t=new Set,kt=new Map,Ut=new Map,sa="void"===r,Qo={params:z6(pe,b),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},oa=u?[]:yT(a,e,this.ast.animation,l,c,Q,Pe,Qo,d,f);let _s=0;if(oa.forEach(oo=>{_s=Math.max(oo.duration+oo.delay,_s)}),f.length)return R2(e,this._triggerName,t,r,sa,Q,Pe,[],[],kt,Ut,_s,f);oa.forEach(oo=>{const hg=oo.element,pg=Ba(kt,hg,new Set);oo.preStyleProps.forEach(tf=>pg.add(tf));const fg=Ba(Ut,hg,new Set);oo.postStyleProps.forEach(tf=>fg.add(tf)),hg!==e&&_t.add(hg)});const my=ny(_t.values());return R2(e,this._triggerName,t,r,sa,Q,Pe,oa,my,kt,Ut,_s)}}function z6(n,a){const e=cg(a);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class j6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=cg(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(r[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,s)=>{c&&(c=iy(c,r,e));const o=this.normalizer.normalizePropertyName(s,e);c=this.normalizer.normalizeStyleValue(s,o,c,e),t.set(o,c)})}),t}}class Y6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new j6(r.style,r.options&&r.options.params||{},t))}),I2(this.states,"true","1"),I2(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new O2(a,r,this.states))}),this.fallbackTransition=function W6(n,a,e){return new O2(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,s)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(c=>c.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function I2(n,a,e){n.has(a)?n.has(e)||n.set(e,n.get(a)):n.has(e)&&n.set(a,n.get(e))}const U6=new cy;class G6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=_T(this._driver,e,t,[]);if(t.length)throw function Uq(n){return new i.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const r=a.element,l=f2(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations.get(a);let c;const s=new Map;if(l?(c=yT(this._driver,e,l,hT,QA,new Map,new Map,t,U6,r),c.forEach(u=>{const h=Ba(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function Gq(){return new i.vHH(3300,!1)}()),c=[]),r.length)throw function $q(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,qs))})});const d=od(c.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(a,d),d.onDestroy(()=>this.destroy(a)),this.players.push(d),d}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function Zq(n){return new i.vHH(3301,!1)}();return e}listen(a,e,t,r){const l=lT(e,"","","");return sT(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const B2="ng-animate-queued",vT="ng-animate-disabled",Q6=[],N2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},K6={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ms="__ng_removed";class TT{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function nY(n){return n??null}(t?a.value:a),t){const l=cg(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const ug="void",xT=new TT(ug);class eY{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,gs(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function Jq(n,a){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function Xq(n){return new i.vHH(3303,!1)}();if(!function rY(n){return"start"==n||"done"==n}(t))throw function Qq(n,a){return new i.vHH(3400,!1)}();const l=Ba(this._elementListeners,a,[]),c={name:e,phase:t,callback:r};l.push(c);const s=Ba(this._engine.statesByElement,a,new Map);return s.has(e)||(gs(a,KA),gs(a,KA+"-"+e),s.set(e,xT)),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(c);o>=0&&l.splice(o,1),this._triggers.has(e)||s.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function Kq(n){return new i.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),c=new ST(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(gs(a,KA),gs(a,KA+"-"+e),this._engine.statesByElement.set(a,s=new Map));let o=s.get(e);const d=new TT(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&d.absorbOptions(o.options),s.set(e,d),o||(o=xT),d.value!==ug&&o.value===d.value){if(!function oY(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Uu(a,pe),Xo(a,Pe)})}return}const f=Ba(this._engine.playersByElement,a,[]);f.forEach(Q=>{Q.namespaceId==this.id&&Q.triggerName==e&&Q.queued&&Q.destroy()});let b=l.matchTransition(o.value,d.value,a,d.params),N=!1;if(!b){if(!r)return;b=l.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:d,player:c,isFallbackTransition:N}),N||(gs(a,B2),c.onStart(()=>{ef(a,B2)})),c.onDone(()=>{let Q=this.players.indexOf(c);Q>=0&&this.players.splice(Q,1);const pe=this._engine.playersByElement.get(a);if(pe){let Pe=pe.indexOf(c);Pe>=0&&pe.splice(Pe,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,ey,!0);t.forEach(r=>{if(r[ms])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(c=>c.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),c=new Map;if(l){const s=[];if(l.forEach((o,d)=>{if(c.set(d,o.value),this._triggers.has(d)){const u=this.trigger(a,d,ug,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&od(s).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const c=l.name;if(r.has(c))return;r.add(c);const o=this._triggers.get(c).fallbackTransition,d=t.get(c)||xT,u=new TT(ug),h=new ST(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:o,fromState:d,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[ms];(!l||l===N2)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){gs(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(s=>{if(s.name==t.triggerName){const o=lT(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,sT(t.player,s.phase,o,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,c=r.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class tY{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new eY(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,s=this.driver.getParentElement(e);for(;s;){const o=r.get(s);if(o){const d=t.indexOf(o);t.splice(d+1,0,a),c=!0;break}s=this.driver.getParentElement(s)}c||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,r){if(hy(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!hy(e))return;const l=e[ms];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),gs(a,vT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ef(a,vT))}removeNode(a,e,t,r){if(hy(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[ms]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return hy(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,ey,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,pT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return od(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[ms];if(t&&t.setForRemoval){if(a[ms]=N2,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(vT)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?od(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function e6(n){return new i.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new cy,r=[],l=new Map,c=[],s=new Map,o=new Map,d=new Map,u=new Set;this.disabledNodes.forEach(ut=>{u.add(ut);const Ct=this.driver.query(ut,".ng-animate-queued",!0);for(let Dt=0;Dt{const Dt=hT+Q++;N.set(Ct,Dt),ut.forEach(ni=>gs(ni,Dt))});const pe=[],Pe=new Set,_t=new Set;for(let ut=0;utPe.add(ni)):_t.add(Ct))}const kt=new Map,Ut=z2(f,Array.from(Pe));Ut.forEach((ut,Ct)=>{const Dt=QA+Q++;kt.set(Ct,Dt),ut.forEach(ni=>gs(ni,Dt))}),a.push(()=>{b.forEach((ut,Ct)=>{const Dt=N.get(Ct);ut.forEach(ni=>ef(ni,Dt))}),Ut.forEach((ut,Ct)=>{const Dt=kt.get(Ct);ut.forEach(ni=>ef(ni,Dt))}),pe.forEach(ut=>{this.processLeaveNode(ut)})});const sa=[],Qo=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(e).forEach(Dt=>{const ni=Dt.player,xn=Dt.element;if(sa.push(ni),this.collectedEnterElements.length){const vr=xn[ms];if(vr&&vr.setForMove){if(vr.previousTriggersValues&&vr.previousTriggersValues.has(Dt.triggerName)){const $u=vr.previousTriggersValues.get(Dt.triggerName),bs=this.statesByElement.get(Dt.element);if(bs&&bs.has(Dt.triggerName)){const gy=bs.get(Dt.triggerName);gy.value=$u,bs.set(Dt.triggerName,gy)}}return void ni.destroy()}}const Ko=!h||!this.driver.containsElement(h,xn),Va=kt.get(xn),dd=N.get(xn),fn=this._buildInstruction(Dt,t,dd,Va,Ko);if(fn.errors&&fn.errors.length)return void Qo.push(fn);if(Ko)return ni.onStart(()=>Uu(xn,fn.fromStyles)),ni.onDestroy(()=>Xo(xn,fn.toStyles)),void r.push(ni);if(Dt.isFallbackTransition)return ni.onStart(()=>Uu(xn,fn.fromStyles)),ni.onDestroy(()=>Xo(xn,fn.toStyles)),void r.push(ni);const aH=[];fn.timelines.forEach(vr=>{vr.stretchStartingKeyframe=!0,this.disabledNodes.has(vr.element)||aH.push(vr)}),fn.timelines=aH,t.append(xn,fn.timelines),c.push({instruction:fn,player:ni,element:xn}),fn.queriedElements.forEach(vr=>Ba(s,vr,[]).push(ni)),fn.preStyleProps.forEach((vr,$u)=>{if(vr.size){let bs=o.get($u);bs||o.set($u,bs=new Set),vr.forEach((gy,HT)=>bs.add(HT))}}),fn.postStyleProps.forEach((vr,$u)=>{let bs=d.get($u);bs||d.set($u,bs=new Set),vr.forEach((gy,HT)=>bs.add(HT))})});if(Qo.length){const ut=[];Qo.forEach(Ct=>{ut.push(function t6(n,a){return new i.vHH(3505,!1)}())}),sa.forEach(Ct=>Ct.destroy()),this.reportError(ut)}const oa=new Map,_s=new Map;c.forEach(ut=>{const Ct=ut.element;t.has(Ct)&&(_s.set(Ct,Ct),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,oa))}),r.forEach(ut=>{const Ct=ut.element;this._getPreviousPlayers(Ct,!1,ut.namespaceId,ut.triggerName,null).forEach(ni=>{Ba(oa,Ct,[]).push(ni),ni.destroy()})});const my=pe.filter(ut=>q2(ut,o,d)),oo=new Map;F2(oo,this.driver,_t,d,qs).forEach(ut=>{q2(ut,o,d)&&my.push(ut)});const pg=new Map;b.forEach((ut,Ct)=>{F2(pg,this.driver,new Set(ut),o,"!")}),my.forEach(ut=>{var Ct,Dt;const ni=oo.get(ut),xn=pg.get(ut);oo.set(ut,new Map([...Array.from(null!==(Ct=ni?.entries())&&void 0!==Ct?Ct:[]),...Array.from(null!==(Dt=xn?.entries())&&void 0!==Dt?Dt:[])]))});const fg=[],tf=[],rH={};c.forEach(ut=>{const{element:Ct,player:Dt,instruction:ni}=ut;if(t.has(Ct)){if(u.has(Ct))return Dt.onDestroy(()=>Xo(Ct,ni.toStyles)),Dt.disabled=!0,Dt.overrideTotalTime(ni.totalTime),void r.push(Dt);let xn=rH;if(_s.size>1){let Va=Ct;const dd=[];for(;Va=Va.parentNode;){const fn=_s.get(Va);if(fn){xn=fn;break}dd.push(Va)}dd.forEach(fn=>_s.set(fn,xn))}const Ko=this._buildAnimation(Dt.namespaceId,ni,oa,l,pg,oo);if(Dt.setRealPlayer(Ko),xn===rH)fg.push(Dt);else{const Va=this.playersByElement.get(xn);Va&&Va.length&&(Dt.parentPlayer=od(Va)),r.push(Dt)}}else Uu(Ct,ni.fromStyles),Dt.onDestroy(()=>Xo(Ct,ni.toStyles)),tf.push(Dt),u.has(Ct)&&r.push(Dt)}),tf.forEach(ut=>{const Ct=l.get(ut.element);if(Ct&&Ct.length){const Dt=od(Ct);ut.setRealPlayer(Dt)}}),r.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!Ko.destroyed);xn.length?aY(this,Ct,xn):this.processLeaveNode(Ct)}return pe.length=0,fg.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Ct=this.players.indexOf(ut);this.players.splice(Ct,1)}),ut.play()}),fg}elementContainsData(a,e){let t=!1;const r=e[ms];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let c=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(c=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==ug;s.forEach(d=>{d.queued||!o&&d.triggerName!=r||c.push(d)})}}return(t||r)&&(c=c.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const d=o.element,u=d!==l,h=Ba(t,d,[]);this._getPreviousPlayers(d,u,c,s,e.toState).forEach(b=>{const N=b.getRealPlayer();N.beforeDestroy&&N.beforeDestroy(),b.destroy(),h.push(b)})}Uu(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,c){const s=e.triggerName,o=e.element,d=[],u=new Set,h=new Set,f=e.timelines.map(N=>{const Q=N.element;u.add(Q);const pe=Q[ms];if(pe&&pe.removedBeforeQueried)return new kl(N.duration,N.delay);const Pe=Q!==o,_t=function sY(n){const a=[];return j2(n,a),a}((t.get(Q)||Q6).map(oa=>oa.getRealPlayer())).filter(oa=>!!oa.element&&oa.element===Q),kt=l.get(Q),Ut=c.get(Q),sa=f2(0,this._normalizer,0,N.keyframes,kt,Ut),Qo=this._buildPlayer(N,sa,_t);if(N.subTimeline&&r&&h.add(Q),Pe){const oa=new ST(a,s,Q);oa.setRealPlayer(Qo),d.push(oa)}return Qo});d.forEach(N=>{Ba(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>function iY(n,a,e){let t=n.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}return t}(this.playersByQueriedElement,N.element,N))}),u.forEach(N=>gs(N,C2));const b=od(f);return b.onDestroy(()=>{u.forEach(N=>ef(N,C2)),Xo(o,e.toStyles)}),h.forEach(N=>{Ba(r,N,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new kl(a.duration,a.delay)}}class ST{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new kl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>sT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Ba(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function hy(n){return n&&1===n.nodeType}function V2(n,a){const e=n.style.display;return n.style.display=a??"none",e}function F2(n,a,e,t,r){const l=[];e.forEach(o=>l.push(V2(o)));const c=[];t.forEach((o,d)=>{const u=new Map;o.forEach(h=>{const f=a.computeStyle(d,h,r);u.set(h,f),(!f||0==f.length)&&(d[ms]=K6,c.push(d))}),n.set(d,u)});let s=0;return e.forEach(o=>V2(o,l[s++])),c}function z2(n,a){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==a.length)return e;const r=new Set(a),l=new Map;function c(s){if(!s)return 1;let o=l.get(s);if(o)return o;const d=s.parentNode;return o=e.has(d)?d:r.has(d)?1:c(d),l.set(s,o),o}return a.forEach(s=>{const o=c(s);1!==o&&e.get(o).push(s)}),e}function gs(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function ef(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function aY(n,a,e){od(e).onDone(()=>n.processLeaveNode(a))}function j2(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class py{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new tY(a,e,t),this._timelineEngine=new G6(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const c=a+"-"+r;let s=this._triggerCache[c];if(!s){const o=[],u=_T(this._driver,l,o,[]);if(o.length)throw function Yq(n,a){return new i.vHH(3404,!1)}();s=function q6(n,a,e){return new Y6(n,a,e)}(r,u,this._normalizer),this._triggerCache[c]=s}this._transitionEngine.registerTrigger(e,r,s)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,c]=m2(t);this._timelineEngine.command(l,e,c,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[c,s]=m2(t);return this._timelineEngine.listen(c,e,s,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cY=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Xo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xo(this._element,this._initialStyles),this._endStyles&&(Xo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Uu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uu(this._element,this._endStyles),this._endStyles=null),Xo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ET(n){let a=null;return n.forEach((e,t)=>{(function dY(n){return"display"===n||"position"===n})(t)&&(a=a||new Map,a.set(t,e))}),a}class Y2{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:D2(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class uY{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return A2(a,e)}getParentElement(a){return dT(a)}query(a,e,t){return y2(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,c=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const d=new Map,u=c.filter(b=>b instanceof Y2);(function m6(n,a){return 0===n||0===a})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((N,Q)=>d.set(Q,N))});let h=function u6(n){return n.length?n[0]instanceof Map?n:n.map(a=>v2(a)):[]}(e).map(b=>cd(b));h=function g6(n,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((l,c)=>{t.has(c)||r.push(c),t.set(c,l)}),r.length)for(let l=1;lc.set(s,D2(n,s)))}}return a}(a,h,d);const f=function lY(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ET(a[0]),a.length>1&&(t=ET(a[a.length-1]))):a instanceof Map&&(e=ET(a)),e||t?new cY(n,e,t):null}(a,h);return new Y2(a,h,o,f)}}let hY=(()=>{class n extends D0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?J1(e):e;return W2(this._renderer,null,t,"register",[r]),new pY(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pY extends class Z1{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new fY(this._id,a,e||{},this._renderer)}}class fY{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return W2(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function W2(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const U2="@.disabled";let mY=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const s=c?.parentNode(l);s&&c.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new G2("",l,this.engine),this._rendererCache.set(l,u)),u}const c=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(c,s,e,u.name,u)};return t.data.animation.forEach(o),new gY(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,s]=l;c(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(py),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class G2{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==U2?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class gY extends G2{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==U2?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function _Y(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function bY(n){const a=n.indexOf(".");return[n.substring(0,a),n.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,c,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}const $2=[{provide:D0,useClass:hY},{provide:wT,useFactory:function yY(){return new V6}},{provide:py,useClass:(()=>{class n extends py{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(uT),i.LFG(wT),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function MY(n,a,e){return new mY(n,a,e)},deps:[ye,py,i.R0b]}],DT=[{provide:uT,useFactory:()=>new uY},{provide:i.QbO,useValue:"BrowserAnimations"},...$2],Z2=[{provide:uT,useClass:M2},{provide:i.QbO,useValue:"NoopAnimations"},...$2];let wY=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Z2:DT}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:DT,imports:[Jt]}),n})(),CY=(()=>{class n{constructor(e,t,r,l,c){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),r()})}setEntityTheme(e,t){const r=function vY(n){return[aa(tinycolor(n).lighten(52),"50"),aa(tinycolor(n).lighten(37),"100"),aa(tinycolor(n).lighten(26),"200"),aa(tinycolor(n).lighten(12),"300"),aa(tinycolor(n).lighten(6),"400"),aa(tinycolor(n),"500"),aa(tinycolor(n).darken(6),"600"),aa(tinycolor(n).darken(12),"700"),aa(tinycolor(n).darken(18),"800"),aa(tinycolor(n).darken(24),"900"),aa(tinycolor(n).lighten(50).saturate(30),"A100"),aa(tinycolor(n).lighten(30).saturate(30),"A200"),aa(tinycolor(n).lighten(10).saturate(15),"A400"),aa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,d=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(o,d)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new M.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Zt),i.LFG(ht),i.LFG(se),i.LFG(gr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function aa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let TY=(()=>{class n{constructor(e,t,r){this.initAuthService=e,this.appConfigService=t,this.location=r,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ov),i.LFG(CY),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv]}),n})(),$5=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:to,useValue:{...mv,...e}},{provide:gv,useValue:t,multi:!0},{provide:jp,useValue:!0}]:[{provide:to,useValue:{...mv,...e}},{provide:gv,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jp),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[JD,vE,nH,JD,vE,nH]}),n})();const Z5=new i.OlP("perun-api-service"),J5={provide:M.TP,useExisting:(0,i.Gpc)(()=>ZS),multi:!0};function X5(n){return new wq(n,"./assets/i18n/",".json")}function Q5(n){const a={basePath:n.get("api_url")};return new Je(a)}const K5=n=>()=>n.initialize();let eW=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($S),i.LFG(_i))},n.\u0275mod=i.oAB({type:n,bootstrap:[DO]}),n.\u0275inj=i.cJS({providers:[$S,{provide:i.ip1,useFactory:K5,multi:!0,deps:[TY]},{provide:Je,useFactory:Q5,deps:[Zt]},CA,ZS,J5,{provide:Z5,useClass:sL},se,{provide:ju.Hy,useFactory:()=>localStorage}],imports:[Jt,wY,M.JF,Bu.forRoot({loader:{provide:kp,useFactory:X5,deps:[M.eN]}}),Mq,Oa,hv,Ov,Pc,Sa,$5,Iv,c2,vA,Jv,rs,Yo,Vp,Km,Yp,Js,eg,Hu,Wp,jA,iT,NE,HE,UB,ia,Xs,rT,WE,Cp,H4,LC,ku,ju.zr.forRoot(),FP]}),n})();(0,i.G48)(),be().bootstrapModule(eW).catch(n=>console.error(n))},1302:function(j,Y,T){var w;!function(i,E){var x={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function x(le,ae,ie,ge,Ae){for(var ve,Xe,Qe,He,Te,Se,pt,Be,Ve,Ne,he,me,Ce;Ae>=64;){for(ve=ae[0],Xe=ae[1],Qe=ae[2],He=ae[3],Te=ae[4],Se=ae[5],pt=ae[6],Be=ae[7],Ne=0;Ne<16;Ne++)le[Ne]=(255&ie[he=ge+4*Ne])<<24|(255&ie[he+1])<<16|(255&ie[he+2])<<8|255&ie[he+3];for(Ne=16;Ne<64;Ne++)le[Ne]=((me=((Ve=le[Ne-2])>>>17|Ve<<15)^(Ve>>>19|Ve<<13)^Ve>>>10)+le[Ne-7]|0)+((Ce=((Ve=le[Ne-15])>>>7|Ve<<25)^(Ve>>>18|Ve<<14)^Ve>>>3)+le[Ne-16]|0);for(Ne=0;Ne<64;Ne++)me=(((Te>>>6|Te<<26)^(Te>>>11|Te<<21)^(Te>>>25|Te<<7))+(Te&Se^~Te&pt)|0)+(Be+(E[Ne]+le[Ne]|0)|0)|0,Ce=((ve>>>2|ve<<30)^(ve>>>13|ve<<19)^(ve>>>22|ve<<10))+(ve&Xe^ve&Qe^Xe&Qe)|0,Be=pt,pt=Se,Se=Te,Te=He+me|0,He=Qe,Qe=Xe,Xe=ve,ve=me+Ce|0;ae[0]+=ve,ae[1]+=Xe,ae[2]+=Qe,ae[3]+=He,ae[4]+=Te,ae[5]+=Se,ae[6]+=pt,ae[7]+=Be,ge+=64,Ae-=64}return ge}var S=function(){function le(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return le.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},le.prototype.clean=function(){for(var ae=0;ae0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(ge=x(this.temp,this.state,ae,ge,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;return this},le.prototype.finish=function(ae){if(!this.finished){var ie=this.bytesHashed,ge=this.bufferLength,Ae=ie/536870912|0,ve=ie<<3,Xe=ie%64<56?64:128;this.buffer[ge]=128;for(var Qe=ge+1;Qe>>24&255,this.buffer[Xe-7]=Ae>>>16&255,this.buffer[Xe-6]=Ae>>>8&255,this.buffer[Xe-5]=Ae>>>0&255,this.buffer[Xe-4]=ve>>>24&255,this.buffer[Xe-3]=ve>>>16&255,this.buffer[Xe-2]=ve>>>8&255,this.buffer[Xe-1]=ve>>>0&255,x(this.temp,this.state,this.buffer,0,Xe),this.finished=!0}for(Qe=0;Qe<8;Qe++)ae[4*Qe+0]=this.state[Qe]>>>24&255,ae[4*Qe+1]=this.state[Qe]>>>16&255,ae[4*Qe+2]=this.state[Qe]>>>8&255,ae[4*Qe+3]=this.state[Qe]>>>0&255;return this},le.prototype.digest=function(){var ae=new Uint8Array(this.digestLength);return this.finish(ae),ae},le.prototype._saveState=function(ae){for(var ie=0;iethis.blockSize)(new S).update(ae).finish(ie).clean();else for(var ge=0;ge1&&ae.update(le),ie&&ae.update(ie),ae.update(ge),ae.finish(le),ge[0]++}i.HMAC=P,i.hash=R,i.default=R,i.hmac=F;var J=new Uint8Array(i.digestLength);i.hkdf=function X(le,ae,ie,ge){void 0===ae&&(ae=J),void 0===ge&&(ge=32);for(var Ae=new Uint8Array([1]),ve=F(ae,le),Xe=new P(ve),Qe=new Uint8Array(Xe.digestLength),He=Qe.length,Te=new Uint8Array(ge),Se=0;Se>>24&255,Xe[1]=pt>>>16&255,Xe[2]=pt>>>8&255,Xe[3]=pt>>>0&255,Ae.reset(),Ae.update(ae),Ae.update(Xe),Ae.finish(He);for(var Be=0;Be=X.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var X=document.createEvent("MouseEvents");X.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(X)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,F=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),q=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!F?function(J,X,ne){var le=R.URL||R.webkitURL,ae=document.createElement("a");ae.download=X=X||J.name||"download",ae.rel="noopener","string"==typeof J?(ae.href=J,ae.origin===location.origin?P(ae):S(ae.href)?x(J,X,ne):P(ae,ae.target="_blank")):(ae.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(ae.href)},4e4),setTimeout(function(){P(ae)},0))}:"msSaveOrOpenBlob"in navigator?function(J,X,ne){if(X=X||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function E(J,X){return typeof X>"u"?X={autoBom:!1}:"object"!=typeof X&&(console.warn("Deprecated: Expected third argument to be a object"),X={autoBom:!X}),X.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),X);else if(S(J))x(J,X,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,X,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,X,ne);var ae="application/octet-stream"===J.type,ie=/constructor/i.test(R.HTMLElement)||R.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ae&&ie||F)&&typeof FileReader<"u"){var Ae=new FileReader;Ae.onloadend=function(){var Qe=Ae.result;Qe=ge?Qe:Qe.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Qe:location=Qe,le=null},Ae.readAsDataURL(J)}else{var ve=R.URL||R.webkitURL,Xe=ve.createObjectURL(J);le?le.location=Xe:location.href=Xe,le=null,setTimeout(function(){ve.revokeObjectURL(Xe)},4e4)}});R.saveAs=q.saveAs=q,j.exports=q}.apply(Y,[]))&&(j.exports=i)},1158:(j,Y,T)=>{(j.exports=T(7867)).tz.load(T(1128))},7867:function(j,Y,T){var w,i,E;!function(x,S){"use strict";j.exports?j.exports=S(T(5439)):(i=[T(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(Y,i):w)&&(j.exports=E))}(0,function(x){"use strict";void 0===x.version&&x.default&&(x=x.default);var X,P={},R={},F={},q={},J={};(!x||"string"!=typeof x.version)&&En("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ne=x.version.split("."),le=+ne[0],ae=+ne[1];function ie(de){return de>96?de-87:de>64?de-29:de-48}function ge(de){var ke=0,be=de.split("."),qe=be[0],st=be[1]||"",ot=1,rn=0,oi=1;for(45===de.charCodeAt(0)&&(ke=1,oi=-1);ke= 2.6.0. You are using Moment.js "+x.version+". See momentjs.com"),He.prototype={_set:function(de){this.name=de.name,this.abbrs=de.abbrs,this.untils=de.untils,this.offsets=de.offsets,this.population=de.population},_index:function(de){var qe,ke=+de,be=this.untils;for(qe=0;qern&&ui.moveInvalidForward&&(ot=rn),ke3){var ke=q[We(de)];if(ke)return ke;En("Moment Timezone found "+de+" from the Intl api, but did not have that data loaded.")}}catch{}var Jt,rn,oi,be=function Ve(){var qe,st,ot,de=(new Date).getFullYear()-2,ke=new Se(new Date(de,0,1)),be=[ke];for(ot=1;ot<48;ot++)(st=new Se(new Date(de,ot,1))).offset!==ke.offset&&(qe=Be(ke,st),be.push(qe),be.push(new Se(new Date(qe.at+6e4)))),ke=st;for(ot=0;ot<4;ot++)be.push(new Se(new Date(de+ot,0,1))),be.push(new Se(new Date(de+ot,6,1)));return be}(),qe=be.length,st=function me(de){var st,ot,Jt,ke=de.length,be={},qe=[];for(st=0;st0?ot[0].zone.name:void 0}()),X},ui.names=function Ft(){var de,ke=[];for(de in q)q.hasOwnProperty(de)&&(P[de]||P[R[de]])&&q[de]&&ke.push(q[de]);return ke.sort()},ui.Zone=He,ui.unpack=Qe,ui.unpackBase60=ge,ui.needsOffset=Ci,ui.moveInvalidForward=!0,ui.moveAmbiguousForward=!1,ui.countries=function ai(){return Object.keys(F)},ui.zonesForCountry=function Ge(de,ke){if(!(de=function Sn(de){return de=de.toUpperCase(),F[de]||null}(de)))return null;var be=de.zones.sort();return ke?be.map(function(qe){return{name:qe,offset:mt(qe).utcOffset(new Date)}}):be};var mn=x.fn;function lo(de){return function(){return this._z?this._z.abbr(this):de.call(this)}}function la(de){return function(){return this._z=null,de.apply(this,arguments)}}x.tz=ui,x.defaultZone=null,x.updateOffset=function(de,ke){var qe,be=x.defaultZone;if(void 0===de._z&&(be&&Ci(de)&&!de._isUTC&&(de._d=x.utc(de._a)._d,de.utc().add(be.parse(de),"minutes")),de._z=be),de._z)if(qe=de._z.utcOffset(de),Math.abs(qe)<16&&(qe/=60),void 0!==de.utcOffset){var st=de._z;de.utcOffset(-qe,ke),de._z=st}else de.zone(qe,ke)},mn.tz=function(de,ke){if(de){if("string"!=typeof de)throw new Error("Time zone name must be a string, got "+de+" ["+typeof de+"]");return this._z=mt(de),this._z?x.updateOffset(this,ke):En("Moment Timezone has no data for "+de+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},mn.zoneName=lo(mn.zoneName),mn.zoneAbbr=lo(mn.zoneAbbr),mn.utc=la(mn.utc),mn.local=la(mn.local),mn.utcOffset=function pr(de){return function(){return arguments.length>0&&(this._z=null),de.apply(this,arguments)}}(mn.utcOffset),x.tz.setDefault=function(de){return(le<2||2===le&&ae<9)&&En("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+x.version+"."),x.defaultZone=de?mt(de):null,x};var kn=x.momentProperties;return"[object Array]"===Object.prototype.toString.call(kn)?(kn.push("_z"),kn.push("_a")):kn&&(kn._z=null),x})},7088:function(j,Y,T){!function(w){"use strict";w.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,x,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},2502:function(j,Y,T){!function(w){"use strict";var i=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},x=function(R){return function(F,q,J,X){var ne=i(F),le=E[R][i(F)];return 2===ne&&(le=le[q?0:1]),le.replace(/%d/i,F)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(R){return"\u0645"===R},meridiem:function(R,F,q){return R<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(T(5439))},128:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(T(5439))},4519:function(j,Y,T){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},x={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(F){return function(q,J,X,ne){var le=E(q),ae=x[F][E(q)];return 2===le&&(ae=ae[J?0:1]),ae.replace(/%d/i,q)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(F){return"\u0645"===F},meridiem:function(F,q,J){return F<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(F){return F.replace(/\u060c/g,",")},postformat:function(F){return F.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},5443:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(T(5439))},7642:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,R){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(T(5439))},8592:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(T(5439))},7038:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=function(q){return 0===q?0:1===q?1:2===q?2:q%100>=3&&q%100<=10?3:q%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(q){return function(J,X,ne,le){var ae=x(J),ie=S[q][x(J)];return 2===ae&&(ie=ie[X?0:1]),ie.replace(/%d/i,J)}},R=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar",{months:R,monthsShort:R,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(q){return"\u0645"===q},meridiem:function(q,J,X){return q<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(q){return q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return E[J]}).replace(/\u060c/g,",")},postformat:function(q){return q.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},1213:function(j,Y,T){!function(w){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};w.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9191:function(j,Y,T){!function(w){"use strict";function E(S,P,R){return"m"===R?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var R=S.split("_");return P%10==1&&P%100!=11?R[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?R[1]:R[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[R],+S)}w.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,R){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(T(5439))},322:function(j,Y,T){!function(w){"use strict";w.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},8042:function(j,Y,T){!function(w){"use strict";w.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(T(5439))},5903:function(j,Y,T){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(T(5439))},9620:function(j,Y,T){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,R){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(T(5439))},9645:function(j,Y,T){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,R){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(T(5439))},5020:function(j,Y,T){!function(w){"use strict";function i(ie,ge,Ae){return ie+" "+function S(ie,ge){return 2===ge?function P(ie){var ge={m:"v",b:"v",d:"z"};return void 0===ge[ie.charAt(0)]?ie:ge[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[Ae],ie)}function x(ie){return ie>9?x(ie%10):ie}var R=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],F=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:le,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:le,monthsRegex:F,monthsShortRegex:F,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,ge,Ae){return ie<12?"a.m.":"g.m."}})}(T(5439))},4792:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var R=x+" ";switch(P){case"ss":return R+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return R+(1===x?"dan":"dana");case"MM":return R+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return R+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}w.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},7980:function(j,Y,T){!function(w){"use strict";w.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7322:function(j,Y,T){!function(w){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),x=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(q){return q>1&&q<5&&1!=~~(q/10)}function R(q,J,X,ne){var le=q+" ";switch(X){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(q)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(q)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(q)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(q)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(q)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(q)?"roky":"let"):le+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},365:function(j,Y,T){!function(w){"use strict";w.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(T(5439))},2092:function(j,Y,T){!function(w){"use strict";w.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(T(5439))},7387:function(j,Y,T){!function(w){"use strict";w.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9459:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3694:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},4307:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9659:function(j,Y,T){!function(w){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,R){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(T(5439))},3460:function(j,Y,T){!function(w){"use strict";w.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(x,S){var P=this._calendarEl[x],R=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(P)&&(P=P.apply(S)),P.replace("{}",R%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(T(5439))},4369:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(T(5439))},530:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9998:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3391:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},5414:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9615:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(T(5439))},1248:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3767:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},4530:function(j,Y,T){!function(w){"use strict";w.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,x,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(T(5439))},8944:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},9116:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(T(5439))},3609:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(T(5439))},6866:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(T(5439))},6725:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?F[P][2]?F[P][2]:F[P][1]:R?F[P][0]:F[P][1]}w.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},7931:function(j,Y,T){!function(w){"use strict";w.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6417:function(j,Y,T){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,R){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(T(5439))},944:function(j,Y,T){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function x(R,F,q,J){var X="";switch(q){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":X=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":X=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":X=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":X=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":X=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":X=J?"vuoden":"vuotta"}return function S(R,F){return R<10?F?E[R]:i[R]:R}(R,J)+" "+X}w.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1766:function(j,Y,T){!function(w){"use strict";w.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},5867:function(j,Y,T){!function(w){"use strict";w.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},6848:function(j,Y,T){!function(w){"use strict";w.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(T(5439))},7773:function(j,Y,T){!function(w){"use strict";w.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},1636:function(j,Y,T){!function(w){"use strict";var x=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];w.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:x,monthsShortRegex:x,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(R,F){switch(F){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},4940:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1402:function(j,Y,T){!function(w){"use strict";w.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6924:function(j,Y,T){!function(w){"use strict";w.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6398:function(j,Y,T){!function(w){"use strict";w.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},2457:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?F[P][0]:F[P][1]}w.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(T(5439))},2545:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return R?F[P][0]:F[P][1]}w.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(T(5439))},2641:function(j,Y,T){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(T(5439))},7536:function(j,Y,T){!function(w){"use strict";w.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,x,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(T(5439))},6335:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},x=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];w.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:x,longMonthsParse:x,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return E[F]})},postformat:function(R){return R.replace(/\d/g,function(F){return i[F]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,F){return 12===R&&(R=0),"\u0930\u093e\u0924"===F?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===F?R:"\u0926\u094b\u092a\u0939\u0930"===F?R>=10?R:R+12:"\u0936\u093e\u092e"===F?R+12:void 0},meridiem:function(R,F,q){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(T(5439))},7458:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var R=x+" ";switch(P){case"ss":return R+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return R+(1===x?"dan":"dana");case"MM":return R+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return R+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}w.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6540:function(j,Y,T){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,R,F,q){var J=P;switch(F){case"s":return q||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(q||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(q||R?" perc":" perce");case"mm":return J+(q||R?" perc":" perce");case"h":return"egy"+(q||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(q||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(q||R?" nap":" napja");case"dd":return J+(q||R?" nap":" napja");case"M":return"egy"+(q||R?" h\xf3nap":" h\xf3napja");case"MM":return J+(q||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(q||R?" \xe9v":" \xe9ve");case"yy":return J+(q||R?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,R,F){return P<12?!0===F?"de":"DE":!0===F?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},5283:function(j,Y,T){!function(w){"use strict";w.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,x){switch(x){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(T(5439))},8780:function(j,Y,T){!function(w){"use strict";w.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"siang"===x?E>=11?E:E+12:"sore"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(T(5439))},4205:function(j,Y,T){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,R,F){var q=S+" ";switch(R){case"s":return P||F?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?q+(P||F?"sek\xfandur":"sek\xfandum"):q+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?q+(P||F?"m\xedn\xfatur":"m\xedn\xfatum"):P?q+"m\xedn\xfata":q+"m\xedn\xfatu";case"hh":return i(S)?q+(P||F?"klukkustundir":"klukkustundum"):q+"klukkustund";case"d":return P?"dagur":F?"dag":"degi";case"dd":return i(S)?P?q+"dagar":q+(F?"daga":"d\xf6gum"):P?q+"dagur":q+(F?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":F?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?q+"m\xe1nu\xf0ir":q+(F?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?q+"m\xe1nu\xf0ur":q+(F?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||F?"\xe1r":"\xe1ri";case"yy":return i(S)?q+(P||F?"\xe1r":"\xe1rum"):q+(P||F?"\xe1r":"\xe1ri")}}w.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9985:function(j,Y,T){!function(w){"use strict";w.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},4211:function(j,Y,T){!function(w){"use strict";w.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},1003:function(j,Y,T){!function(w){"use strict";w.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,x){return"\u5143"===x[1]?1:parseInt(x[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,x,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,x){switch(x){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(T(5439))},420:function(j,Y,T){!function(w){"use strict";w.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,x){return 12===E&&(E=0),"enjing"===x?E:"siyang"===x?E>=11?E:E+12:"sonten"===x||"ndalu"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(T(5439))},851:function(j,Y,T){!function(w){"use strict";w.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(x,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(T(5439))},6074:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};w.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},3343:function(j,Y,T){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,R){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},4799:function(j,Y,T){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(T(5439))},3549:function(j,Y,T){!function(w){"use strict";w.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,x,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(T(5439))},1037:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];w.defineLocale("ku",{months:x,monthsShort:x,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,R,F){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},3125:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};w.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9586:function(j,Y,T){!function(w){"use strict";function i(R,F,q,J){var X={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return F?X[q][0]:X[q][1]}function S(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var F=R%10;return S(0===F?R/10:F)}if(R<1e4){for(;R>=10;)R/=10;return S(R)}return S(R/=1e3)}w.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(R){return S(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function x(R){return S(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2349:function(j,Y,T){!function(w){"use strict";w.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,x,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(T(5439))},2400:function(j,Y,T){!function(w){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function x(q,J,X,ne){return J?P(X)[0]:ne?P(X)[1]:P(X)[2]}function S(q){return q%10==0||q>10&&q<20}function P(q){return i[q].split("_")}function R(q,J,X,ne){var le=q+" ";return 1===q?le+x(0,J,X[0],ne):J?le+(S(q)?P(X)[1]:P(X)[0]):ne?le+P(X)[1]:le+(S(q)?P(X)[1]:P(X)[2])}w.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(q,J,X,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:x,mm:R,h:x,hh:R,d:x,dd:R,M:x,MM:R,y:x,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(q){return q+"-oji"},week:{dow:1,doy:4}})}(T(5439))},9991:function(j,Y,T){!function(w){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(F,q,J){return J?q%10==1&&q%100!=11?F[2]:F[3]:q%10==1&&q%100!=11?F[0]:F[1]}function x(F,q,J){return F+" "+E(i[J],F,q)}function S(F,q,J){return E(i[J],F,q)}w.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(F,q){return q?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8477:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var R=i.words[P];return 1===P.length?S?R[0]:R[1]:x+" "+i.correctGrammaticalCase(x,R)}};w.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},5118:function(j,Y,T){!function(w){"use strict";w.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},5943:function(j,Y,T){!function(w){"use strict";w.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},3849:function(j,Y,T){!function(w){"use strict";w.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,x){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?E+12:E},meridiem:function(E,x,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(T(5439))},1977:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}w.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(T(5439))},6184:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function x(P,R,F,q){var J="";if(R)switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}w.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(P){return P.replace(/\d/g,function(R){return i[R]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,R){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?P>=12?P:P+12:void 0},meridiem:function(P,R,F){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(T(5439))},4524:function(j,Y,T){!function(w){"use strict";w.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(T(5439))},485:function(j,Y,T){!function(w){"use strict";w.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(T(5439))},6681:function(j,Y,T){!function(w){"use strict";w.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},2024:function(j,Y,T){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},2688:function(j,Y,T){!function(w){"use strict";w.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8914:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,R){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(T(5439))},2272:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1758:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1510:function(j,Y,T){!function(w){"use strict";w.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2797:function(j,Y,T){!function(w){"use strict";w.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7944:function(j,Y,T){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(T(5439))},1605:function(j,Y,T){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),x=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(F){return F%10<5&&F%10>1&&~~(F/10)%10!=1}function P(F,q,J){var X=F+" ";switch(J){case"ss":return X+(S(F)?"sekundy":"sekund");case"m":return q?"minuta":"minut\u0119";case"mm":return X+(S(F)?"minuty":"minut");case"h":return q?"godzina":"godzin\u0119";case"hh":return X+(S(F)?"godziny":"godzin");case"ww":return X+(S(F)?"tygodnie":"tygodni");case"MM":return X+(S(F)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return X+(S(F)?"lata":"lat")}}w.defineLocale("pl",{months:function(F,q){return F?/D MMMM/.test(q)?E[F.month()]:i[F.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3840:function(j,Y,T){!function(w){"use strict";w.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(T(5439))},4225:function(j,Y,T){!function(w){"use strict";w.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},5128:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var F=" ";return(x%100>=20||x>=100&&x%100==0)&&(F=" de "),x+F+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}w.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(T(5439))},5127:function(j,Y,T){!function(w){"use strict";function E(P,R,F){return"m"===F?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,R){var F=P.split("_");return R%10==1&&R%100!=11?F[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?F[1]:F[2]}({ss:R?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:R?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[F],+P)}var x=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];w.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,R,F){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,R){switch(R){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(T(5439))},2525:function(j,Y,T){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(T(5439))},9893:function(j,Y,T){!function(w){"use strict";w.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3123:function(j,Y,T){!function(w){"use strict";w.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,x,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(T(5439))},3027:function(j,Y,T){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function x(R){return R>1&&R<5}function S(R,F,q,J){var X=R+" ";switch(q){case"s":return F||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return F||J?X+(x(R)?"sekundy":"sek\xfand"):X+"sekundami";case"m":return F?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return F||J?X+(x(R)?"min\xfaty":"min\xfat"):X+"min\xfatami";case"h":return F?"hodina":J?"hodinu":"hodinou";case"hh":return F||J?X+(x(R)?"hodiny":"hod\xedn"):X+"hodinami";case"d":return F||J?"de\u0148":"d\u0148om";case"dd":return F||J?X+(x(R)?"dni":"dn\xed"):X+"d\u0148ami";case"M":return F||J?"mesiac":"mesiacom";case"MM":return F||J?X+(x(R)?"mesiace":"mesiacov"):X+"mesiacmi";case"y":return F||J?"rok":"rokom";case"yy":return F||J?X+(x(R)?"roky":"rokov"):X+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8106:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F=x+" ";switch(P){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return F+(1===x?S?"sekundo":"sekundi":2===x?S||R?"sekundi":"sekundah":x<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return F+(1===x?S?"minuta":"minuto":2===x?S||R?"minuti":"minutama":x<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return F+(1===x?S?"ura":"uro":2===x?S||R?"uri":"urama":x<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return F+(1===x?S||R?"dan":"dnem":2===x?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return F+(1===x?S||R?"mesec":"mesecem":2===x?S||R?"meseca":"mesecema":x<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return F+(1===x?S||R?"leto":"letom":2===x?S||R?"leti":"letoma":x<5?S||R?"leta":"leti":S||R?"let":"leti")}}w.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},8799:function(j,Y,T){!function(w){"use strict";w.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,x,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2872:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,R){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===q?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+q)}};w.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},7949:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,R){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":R||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"godinu"===q?x+" godina":x+" "+q)}};w.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6167:function(j,Y,T){!function(w){"use strict";w.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,x,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,x){return 12===E&&(E=0),"ekuseni"===x?E:"emini"===x?E>=11?E:E+12:"entsambama"===x||"ebusuku"===x?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(T(5439))},9713:function(j,Y,T){!function(w){"use strict";w.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(T(5439))},1982:function(j,Y,T){!function(w){"use strict";w.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(T(5439))},2732:function(j,Y,T){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,R){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(T(5439))},3636:function(j,Y,T){!function(w){"use strict";w.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===x?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?E+12:void 0},meridiem:function(E,x,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(T(5439))},2115:function(j,Y,T){!function(w){"use strict";w.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9801:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};w.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},2868:function(j,Y,T){!function(w){"use strict";w.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,x,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(T(5439))},1310:function(j,Y,T){!function(w){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};w.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},2360:function(j,Y,T){!function(w){"use strict";w.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},6645:function(j,Y,T){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(F,q,J,X){var ne=function P(F){var q=Math.floor(F%1e3/100),J=Math.floor(F%100/10),X=F%10,ne="";return q>0&&(ne+=i[q]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),X>0&&(ne+=(""!==ne?" ":"")+i[X]),""===ne?"pagh":ne}(F);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}w.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"leS":-1!==F.indexOf("jar")?q.slice(0,-3)+"waQ":-1!==F.indexOf("DIS")?q.slice(0,-3)+"nem":q+" pIq"},past:function x(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"Hu\u2019":-1!==F.indexOf("jar")?q.slice(0,-3)+"wen":-1!==F.indexOf("DIS")?q.slice(0,-3)+"ben":q+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8374:function(j,Y,T){!function(w){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};w.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},256:function(j,Y,T){!function(w){"use strict";function E(x,S,P,R){var F={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return R||S?F[P][0]:F[P][1]}w.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1631:function(j,Y,T){!function(w){"use strict";w.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(T(5439))},1595:function(j,Y,T){!function(w){"use strict";w.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(T(5439))},6050:function(j,Y,T){!function(w){"use strict";w.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(T(5439))},5610:function(j,Y,T){!function(w){"use strict";function E(R,F,q){return"m"===q?F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===q?F?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,F){var q=R.split("_");return F%10==1&&F%100!=11?q[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?q[1]:q[2]}({ss:F?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:F?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[q],+R)}function S(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function x(R,F){var q={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===R?q.nominative.slice(1,7).concat(q.nominative.slice(0,1)):R?q[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(F)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(F)?"genitive":"nominative"][R.day()]:q.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,F,q){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,F){switch(F){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(T(5439))},6077:function(j,Y,T){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(T(5439))},2207:function(j,Y,T){!function(w){"use strict";w.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(T(5439))},2862:function(j,Y,T){!function(w){"use strict";w.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(T(5439))},8093:function(j,Y,T){!function(w){"use strict";w.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,x,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},5590:function(j,Y,T){!function(w){"use strict";w.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9058:function(j,Y,T){!function(w){"use strict";w.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(T(5439))},7908:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(T(5439))},8867:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},1133:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},3291:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},5439:function(j,Y,T){(j=T.nmd(j)).exports=function(){"use strict";var w,ge;function i(){return w.apply(null,arguments)}function x(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function S(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function P(v,H){return Object.prototype.hasOwnProperty.call(v,H)}function R(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var H;for(H in v)if(P(v,H))return!1;return!0}function F(v){return void 0===v}function q(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function J(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function X(v,H){var z,O=[],$=v.length;for(z=0;z<$;++z)O.push(H(v[z],z));return O}function ne(v,H){for(var O in H)P(H,O)&&(v[O]=H[O]);return P(H,"toString")&&(v.toString=H.toString),P(H,"valueOf")&&(v.valueOf=H.valueOf),v}function le(v,H,O,z){return rr(v,H,O,z,!0).utc()}function ie(v){return null==v._pf&&(v._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),v._pf}function Ae(v){if(null==v._isValid){var H=ie(v),O=ge.call(H.parsedDateParts,function($){return null!=$}),z=!isNaN(v._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&O);if(v._strict&&(z=z&&0===H.charsLeftOver&&0===H.unusedTokens.length&&void 0===H.bigHour),null!=Object.isFrozen&&Object.isFrozen(v))return z;v._isValid=z}return v._isValid}function ve(v){var H=le(NaN);return null!=v?ne(ie(H),v):ie(H).userInvalidated=!0,H}ge=Array.prototype.some?Array.prototype.some:function(v){var z,H=Object(this),O=H.length>>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var ai=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ki={},Sn={};function Ge(v,H,O,z){var $=z;"string"==typeof z&&($=function(){return this[z]()}),v&&(Sn[v]=$),H&&(Sn[H[0]]=function(){return Ft($.apply(this,arguments),H[1],H[2])}),O&&(Sn[O]=function(){return this.localeData().ordinal($.apply(this,arguments),v)})}function si(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function Ci(v,H){return v.isValid()?(H=En(H,v.localeData()),Ki[H]=Ki[H]||function jn(v){var O,z,H=v.match(ai);for(O=0,z=H.length;O=0&&Ke.test(v);)v=v.replace(Ke,z),Ke.lastIndex=0,O-=1;return v}var st={};function ot(v,H){var O=v.toLowerCase();st[O]=st[O+"s"]=st[H]=v}function Jt(v){return"string"==typeof v?st[v]||st[v.toLowerCase()]:void 0}function rn(v){var O,z,H={};for(z in v)P(v,z)&&(O=Jt(z))&&(H[O]=v[z]);return H}var oi={};function ei(v,H){oi[v]=H}function se(v){return v%4==0&&v%100!=0||v%400==0}function te(v){return v<0?Math.ceil(v)||0:Math.floor(v)}function ue(v){var H=+v,O=0;return 0!==H&&isFinite(H)&&(O=te(H)),O}function Re(v,H){return function(O){return null!=O?(Ot(this,v,O),i.updateOffset(this,H),this):bt(this,v)}}function bt(v,H){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+H]():NaN}function Ot(v,H,O){v.isValid()&&!isNaN(O)&&("FullYear"===H&&se(v.year())&&1===v.month()&&29===v.date()?(O=ue(O),v._d["set"+(v._isUTC?"UTC":"")+H](O,v.month(),qn(O,v.month()))):v._d["set"+(v._isUTC?"UTC":"")+H](O))}var an,ji=/\d/,Ht=/\d\d/,fr=/\d{3}/,St=/\d{4}/,Gt=/[+-]?\d{6}/,vt=/\d\d?/,er=/\d\d\d\d?/,ca=/\d\d\d\d\d\d?/,Ui=/\d{1,3}/,jr=/\d{1,4}/,Tr=/[+-]?\d{1,6}/,mr=/\d+/,da=/[+-]?\d+/,ud=/Z|[+-]\d\d:?\d\d/gi,As=/Z|[+-]\d\d(?::?\d\d)?/gi,en=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ue(v,H,O){an[v]=he(H)?H:function(z,$){return z&&O?O:H}}function Gi(v,H){return P(an,v)?an[v](H._strict,H._locale):new RegExp(function et(v){return ct(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,$,ce){return O||z||$||ce}))}(v))}function ct(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}an={};var pi={};function M(v,H){var O,$,z=H;for("string"==typeof v&&(v=[v]),q(H)&&(z=function(ce,we){we[H]=ue(ce)}),$=v.length,O=0;O<$;O++)pi[v[O]]=z}function Kt(v,H){M(v,function(O,z,$,ce){$._w=$._w||{},H(O,$._w,$,ce)})}function zt(v,H,O){null!=H&&P(pi,v)&&pi[v](H,O._a,O,v)}var vi;function qn(v,H){if(isNaN(v)||isNaN(H))return NaN;var O=function gn(v,H){return(v%H+H)%H}(H,12);return v+=(H-O)/12,1===O?se(v)?29:28:31-O%7%2}vi=Array.prototype.indexOf?Array.prototype.indexOf:function(v){var H;for(H=0;H68?1900:2e3)};var ja=Re("FullYear",!0);function ir(v,H,O,z,$,ce,we){var ft;return v<100&&v>=0?(ft=new Date(v+400,H,O,z,$,ce,we),isFinite(ft.getFullYear())&&ft.setFullYear(v)):ft=new Date(v,H,O,z,$,ce,we),ft}function Ms(v){var H,O;return v<100&&v>=0?((O=Array.prototype.slice.call(arguments))[0]=v+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(v)):H=new Date(Date.UTC.apply(null,arguments)),H}function hd(v,H,O){var z=7+H-O;return-(7+Ms(v,0,z).getUTCDay()-H)%7+z-1}function nc(v,H,O,z,$){var jt,Mi,ft=1+7*(H-1)+(7+O-z)%7+hd(v,z,$);return ft<=0?Mi=ha(jt=v-1)+ft:ft>ha(v)?(jt=v+1,Mi=ft-ha(v)):(jt=v,Mi=ft),{year:jt,dayOfYear:Mi}}function ho(v,H,O){var ce,we,z=hd(v.year(),H,O),$=Math.floor((v.dayOfYear()-z-1)/7)+1;return $<1?ce=$+qr(we=v.year()-1,H,O):$>qr(v.year(),H,O)?(ce=$-qr(v.year(),H,O),we=v.year()+1):(we=v.year(),ce=$),{week:ce,year:we}}function qr(v,H,O){var z=hd(v,H,O),$=hd(v+1,H,O);return(ha(v)-z+$)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),ot("week","w"),ot("isoWeek","W"),ei("week",5),ei("isoWeek",5),Ue("w",vt),Ue("ww",vt,Ht),Ue("W",vt),Ue("WW",vt,Ht),Kt(["w","ww","W","WW"],function(v,H,O,z){H[z.substr(0,1)]=ue(v)});function pd(v,H){return v.slice(H,7).concat(v.slice(0,H))}Ge("d",0,"do","day"),Ge("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),Ge("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),Ge("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),ei("day",11),ei("weekday",11),ei("isoWeekday",11),Ue("d",vt),Ue("e",vt),Ue("E",vt),Ue("dd",function(v,H){return H.weekdaysMinRegex(v)}),Ue("ddd",function(v,H){return H.weekdaysShortRegex(v)}),Ue("dddd",function(v,H){return H.weekdaysRegex(v)}),Kt(["dd","ddd","dddd"],function(v,H,O,z){var $=O._locale.weekdaysParse(v,z,O._strict);null!=$?H.d=$:ie(O).invalidWeekday=v}),Kt(["d","e","E"],function(v,H,O,z){H[z]=ue(v)});var cf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),df=en,It=en,Ya=en;function De(v,H,O){var z,$,ce,we=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)ce=le([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(ce,"").toLocaleLowerCase();return O?"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null}function tl(){function v(on,Rr){return Rr.length-on.length}var ce,we,ft,jt,Mi,H=[],O=[],z=[],$=[];for(ce=0;ce<7;ce++)we=le([2e3,1]).day(ce),ft=ct(this.weekdaysMin(we,"")),jt=ct(this.weekdaysShort(we,"")),Mi=ct(this.weekdays(we,"")),H.push(ft),O.push(jt),z.push(Mi),$.push(ft),$.push(jt),$.push(Mi);H.sort(v),O.sort(v),z.sort(v),$.sort(v),this._weekdaysRegex=new RegExp("^("+$.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function Zn(){return this.hours()%12||12}function Bt(v,H){Ge(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Wn(v,H){return H._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Zn),Ge("k",["kk",2],0,function Wr(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Zn.apply(this)+Ft(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Zn.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Bt("a",!0),Bt("A",!1),ot("hour","h"),ei("hour",13),Ue("a",Wn),Ue("A",Wn),Ue("H",vt),Ue("h",vt),Ue("k",vt),Ue("HH",vt,Ht),Ue("hh",vt,Ht),Ue("kk",vt,Ht),Ue("hmm",er),Ue("hmmss",ca),Ue("Hmm",er),Ue("Hmmss",ca),M(["H","HH"],3),M(["k","kk"],function(v,H,O){var z=ue(v);H[3]=24===z?0:z}),M(["a","A"],function(v,H,O){O._isPm=O._locale.isPM(v),O._meridiem=v}),M(["h","hh"],function(v,H,O){H[3]=ue(v),ie(O).bigHour=!0}),M("hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z)),ie(O).bigHour=!0}),M("hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($)),ie(O).bigHour=!0}),M("Hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z))}),M("Hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($))});var rc=Re("Hours",!0);var ti,Nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Yn,monthsShort:On,week:{dow:0,doy:6},weekdays:cf,weekdaysMin:Qu,weekdaysShort:Xu,meridiemParse:/[ap]\.?m?\.?/i},dt={},po={};function Ti(v,H){var O,z=Math.min(v.length,H.length);for(O=0;O0;){if($=li(ce.slice(0,O).join("-")))return $;if(z&&z.length>=O&&Ti(ce,z)>=O-1)break;O--}H++}return ti}(v)}function Me(v){var H,O=v._a;return O&&-2===ie(v).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>qn(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ie(v)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(v)._overflowWeeks&&-1===H&&(H=7),ie(v)._overflowWeekday&&-1===H&&(H=8),ie(v).overflow=H),v}var _e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xi=/Z|[+-]\d\d(?::?\d\d)?/,ii=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ci=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tt=/^\/?Date\((-?\d+)/i,sn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(v){var H,O,ce,we,ft,jt,z=v._i,$=_e.exec(z)||nt.exec(z),Mi=ii.length,on=ci.length;if($){for(ie(v).iso=!0,H=0,O=Mi;H7)&&(jt=!0)):(ce=v._locale._week.dow,we=v._locale._week.doy,Mi=ho(di(),ce,we),O=Bi(H.gg,v._a[0],Mi.year),z=Bi(H.w,Mi.week),null!=H.d?(($=H.d)<0||$>6)&&(jt=!0):null!=H.e?($=H.e+ce,(H.e<0||H.e>6)&&(jt=!0)):$=ce),z<1||z>qr(O,ce,we)?ie(v)._overflowWeeks=!0:null!=jt?ie(v)._overflowWeekday=!0:(ft=nc(O,z,$,ce,we),v._a[0]=ft.year,v._dayOfYear=ft.dayOfYear)}(v),null!=v._dayOfYear&&(we=Bi(v._a[0],$[0]),(v._dayOfYear>ha(we)||0===v._dayOfYear)&&(ie(v)._overflowDayOfYear=!0),O=Ms(we,0,v._dayOfYear),v._a[1]=O.getUTCMonth(),v._a[2]=O.getUTCDate()),H=0;H<3&&null==v._a[H];++H)v._a[H]=z[H]=$[H];for(;H<7;H++)v._a[H]=z[H]=v._a[H]??(2===H?1:0);24===v._a[3]&&0===v._a[4]&&0===v._a[5]&&0===v._a[6]&&(v._nextDay=!0,v._a[3]=0),v._d=(v._useUTC?Ms:ir).apply(null,z),ce=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[3]=24),v._w&&typeof v._w.d<"u"&&v._w.d!==ce&&(ie(v).weekdayMismatch=!0)}}function ac(v){if(v._f!==i.ISO_8601)if(v._f!==i.RFC_2822){v._a=[],ie(v).empty=!0;var O,z,$,ce,we,Mi,on,H=""+v._i,ft=H.length,jt=0;for(on=($=En(v._f,v._locale).match(ai)||[]).length,O=0;O0&&ie(v).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),jt+=z.length),Sn[ce]?(z?ie(v).empty=!1:ie(v).unusedTokens.push(ce),zt(ce,z,v)):v._strict&&!z&&ie(v).unusedTokens.push(ce);ie(v).charsLeftOver=ft-jt,H.length>0&&ie(v).unusedInput.push(H),v._a[3]<=12&&!0===ie(v).bigHour&&v._a[3]>0&&(ie(v).bigHour=void 0),ie(v).parsedDateParts=v._a.slice(0),ie(v).meridiem=v._meridiem,v._a[3]=function uf(v,H,O){var z;return null==O?H:null!=v.meridiemHour?v.meridiemHour(H,O):(null!=v.isPM&&((z=v.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(v._locale,v._a[3],v._meridiem),null!==(Mi=ie(v).era)&&(v._a[0]=v._locale.erasConvertYear(Mi,v._a[0])),nl(v),Me(v)}else fo(v);else _n(v)}function oc(v){var H=v._i,O=v._f;return v._locale=v._locale||G(v._l),null===H||void 0===O&&""===H?ve({nullInput:!0}):("string"==typeof H&&(v._i=H=v._locale.preparse(H)),Se(H)?new Te(Me(H)):(J(H)?v._d=H:x(O)?function sc(v){var H,O,z,$,ce,we,ft=!1,jt=v._f.length;if(0===jt)return ie(v).invalidFormat=!0,void(v._d=new Date(NaN));for($=0;$this?this:v:ve()});function Ku(v,H){var O,z;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return di();for(O=H[0],z=1;z=0?new Date(v+400,H,O)-pl:new Date(v,H,O).valueOf()}function fl(v,H,O){return v<100&&v>=0?Date.UTC(v+400,H,O)-pl:Date.UTC(v,H,O)}function Sd(v,H){return H.erasAbbrRegex(v)}function Xa(){var $,ce,v=[],H=[],O=[],z=[],we=this.eras();for($=0,ce=we.length;$(ce=qr(v,z,$))&&(H=ce),Mo.call(this,v,H,O,z,$))}function Mo(v,H,O,z,$){var ce=nc(v,H,O,z,$),we=Ms(ce.year,0,ce.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),Ue("N",Sd),Ue("NN",Sd),Ue("NNN",Sd),Ue("NNNN",function yg(v,H){return H.erasNameRegex(v)}),Ue("NNNNN",function Aa(v,H){return H.erasNarrowRegex(v)}),M(["N","NN","NNN","NNNN","NNNNN"],function(v,H,O,z){var $=O._locale.erasParse(v,z,O._strict);$?ie(O).era=$:ie(O).invalidEra=v}),Ue("y",mr),Ue("yy",mr),Ue("yyy",mr),Ue("yyyy",mr),Ue("yo",function Ed(v,H){return H._eraYearOrdinalRegex||mr}),M(["y","yy","yyy","yyyy"],0),M(["yo"],function(v,H,O,z){var $;O._locale._eraYearOrdinalRegex&&($=v.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(v,$):parseInt(v,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),ot("weekYear","gg"),ot("isoWeekYear","GG"),ei("weekYear",1),ei("isoWeekYear",1),Ue("G",da),Ue("g",da),Ue("GG",vt,Ht),Ue("gg",vt,Ht),Ue("GGGG",jr,St),Ue("gggg",jr,St),Ue("GGGGG",Tr,Gt),Ue("ggggg",Tr,Gt),Kt(["gggg","ggggg","GGGG","GGGGG"],function(v,H,O,z){H[z.substr(0,2)]=ue(v)}),Kt(["gg","GG"],function(v,H,O,z){H[z]=i.parseTwoDigitYear(v)}),Ge("Q",0,"Qo","quarter"),ot("quarter","Q"),ei("quarter",7),Ue("Q",ji),M("Q",function(v,H){H[1]=3*(ue(v)-1)}),Ge("D",["DD",2],"Do","date"),ot("date","D"),ei("date",9),Ue("D",vt),Ue("DD",vt,Ht),Ue("Do",function(v,H){return v?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),M(["D","DD"],2),M("Do",function(v,H){H[2]=ue(v.match(vt)[0])});var Hd=Re("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),ot("dayOfYear","DDD"),ei("dayOfYear",4),Ue("DDD",Ui),Ue("DDDD",fr),M(["DDD","DDDD"],function(v,H,O){O._dayOfYear=ue(v)}),Ge("m",["mm",2],0,"minute"),ot("minute","m"),ei("minute",14),Ue("m",vt),Ue("mm",vt,Ht),M(["m","mm"],4);var Ld=Re("Minutes",!1);Ge("s",["ss",2],0,"second"),ot("second","s"),ei("second",15),Ue("s",vt),Ue("ss",vt,Ht),M(["s","ss"],5);var Ka,wc,Lr=Re("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ot("millisecond","ms"),ei("millisecond",16),Ue("S",Ui,ji),Ue("SS",Ui,Ht),Ue("SSS",Ui,fr),Ka="SSSS";Ka.length<=9;Ka+="S")Ue(Ka,mr);function ar(v,H){H[6]=ue(1e3*("0."+v))}for(Ka="S";Ka.length<=9;Ka+="S")M(Ka,ar);wc=Re("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Te.prototype;function bl(v){return v}Fe.add=nh,Fe.calendar=function mc(v,H){1===arguments.length&&(arguments[0]?ll(arguments[0])?(v=arguments[0],H=void 0):gd(arguments[0])&&(H=arguments[0],v=void 0):(v=void 0,H=void 0));var O=v||di(),z=Hn(O,this).startOf("day"),$=i.calendarFormat(this,z)||"sameElse",ce=H&&(he(H[$])?H[$].call(this,O):H[$]);return this.format(ce||this.localeData().calendar($,this,di(O)))},Fe.clone=function _o(){return new Te(this)},Fe.diff=function _c(v,H,O){var z,$,ce;if(!this.isValid())return NaN;if(!(z=Hn(v,this)).isValid())return NaN;switch($=6e4*(z.utcOffset()-this.utcOffset()),H=Jt(H)){case"year":ce=Jn(this,z)/12;break;case"month":ce=Jn(this,z);break;case"quarter":ce=Jn(this,z)/3;break;case"second":ce=(this-z)/1e3;break;case"minute":ce=(this-z)/6e4;break;case"hour":ce=(this-z)/36e5;break;case"day":ce=(this-z-$)/864e5;break;case"week":ce=(this-z-$)/6048e5;break;default:ce=this-z}return O?ce:te(ce)},Fe.endOf=function Hr(v){var H,O;if(void 0===(v=Jt(v))||"millisecond"===v||!this.isValid())return this;switch(O=this._isUTC?fl:Mc,v){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=hl-Dr(H+(this._isUTC?0:this.utcOffset()*Es),hl)-1;break;case"minute":H=this._d.valueOf(),H+=Es-Dr(H,Es)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Dr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Fe.format=function dl(v){v||(v=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Ci(this,v);return this.localeData().postformat(H)},Fe.from=function bd(v,H){return this.isValid()&&(Se(v)&&v.isValid()||di(v).isValid())?bn({to:this,from:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.fromNow=function Ad(v){return this.from(di(),v)},Fe.to=function Ac(v,H){return this.isValid()&&(Se(v)&&v.isValid()||di(v).isValid())?bn({from:this,to:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.toNow=function yc(v){return this.to(di(),v)},Fe.get=function it(v){return he(this[v=Jt(v)])?this[v]():this},Fe.invalidAt=function Za(){return ie(this).overflow},Fe.isAfter=function bo(v,H){var O=Se(v)?v:di(v);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Jt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?Ci(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ci(O,"Z")):Ci(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function _f(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,v="moment",H="";return this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+v+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function Td(){return this.isValid()?this.toISOString():null},Fe.toString=function bc(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function wd(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function xd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function gl(){var v,H,O,z=this.localeData().eras();for(v=0,H=z.length;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function Ss(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function uc(){return!!this.isValid()&&this._isUTC},Fe.isUtc=$r,Fe.isUTC=$r,Fe.zoneAbbr=function Pd(){return this._isUTC?"UTC":""},Fe.zoneName=function Hs(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Be("dates accessor is deprecated. Use date instead.",Hd),Fe.months=Be("months accessor is deprecated. Use month instead",gr),Fe.years=Be("years accessor is deprecated. Use year instead",ja),Fe.zone=Be("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function sl(v,H){return null!=v?("string"!=typeof v&&(v=-v),this.utcOffset(v,H),this):-this.utcOffset()}),Fe.isDSTShifted=Be("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function go(){if(!F(this._isDSTShifted))return this._isDSTShifted;var H,v={};return He(v,this),(v=oc(v))._a?(H=v._isUTC?le(v._a):di(v._a),this._isDSTShifted=this.isValid()&&function cc(v,H,O){var we,z=Math.min(v.length,H.length),$=Math.abs(v.length-H.length),ce=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var $t=ye.prototype;function Cc(v,H,O,z){var $=G(),ce=le().set(z,H);return $[O](ce,v)}function hh(v,H,O){if(q(v)&&(H=v,v=void 0),v=v||"",null!=H)return Cc(v,H,O,"month");var z,$=[];for(z=0;z<12;z++)$[z]=Cc(v,z,O,"month");return $}function Ls(v,H,O,z){"boolean"==typeof v?(q(H)&&(O=H,H=void 0),H=H||""):(O=H=v,v=!1,q(H)&&(O=H,H=void 0),H=H||"");var we,$=G(),ce=v?$._week.dow:0,ft=[];if(null!=O)return Cc(H,(O+ce)%7,z,"day");for(we=0;we<7;we++)ft[we]=Cc(H,(we+ce)%7,z,"day");return ft}$t.calendar=function mt(v,H,O){var z=this._calendar[v]||this._calendar.sameElse;return he(z)?z.call(H,O):z},$t.longDateFormat=function mn(v){var H=this._longDateFormat[v],O=this._longDateFormat[v.toUpperCase()];return H||!O?H:(this._longDateFormat[v]=O.match(ai).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[v])},$t.invalidDate=function la(){return this._invalidDate},$t.ordinal=function de(v){return this._ordinal.replace("%d",v)},$t.preparse=bl,$t.postformat=bl,$t.relativeTime=function be(v,H,O,z){var $=this._relativeTime[O];return he($)?$(v,H,O,z):$.replace(/%d/i,v)},$t.pastFuture=function qe(v,H){var O=this._relativeTime[v>0?"future":"past"];return he(O)?O(H):O.replace(/%s/i,H)},$t.set=function me(v){var H,O;for(O in v)P(v,O)&&(he(H=v[O])?this[O]=H:this["_"+O]=H);this._config=v,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$t.eras=function ml(v,H){var O,z,$,ce=this._eras||G("en")._eras;for(O=0,z=ce.length;O=0)return ce[z]},$t.erasConvertYear=function bg(v,H){var O=v.since<=v.until?1:-1;return void 0===H?i(v.since).year():i(v.since).year()+(H-v.offset)*O},$t.erasAbbrRegex=function Af(v){return P(this,"_erasAbbrRegex")||Xa.call(this),v?this._erasAbbrRegex:this._erasRegex},$t.erasNameRegex=function bf(v){return P(this,"_erasNameRegex")||Xa.call(this),v?this._erasNameRegex:this._erasRegex},$t.erasNarrowRegex=function yf(v){return P(this,"_erasNarrowRegex")||Xa.call(this),v?this._erasNarrowRegex:this._erasRegex},$t.months=function Fa(v,H){return v?x(this._months)?this._months[v.month()]:this._months[(this._months.isFormat||el).test(H)?"format":"standalone"][v.month()]:x(this._months)?this._months:this._months.standalone},$t.monthsShort=function co(v,H){return v?x(this._monthsShort)?this._monthsShort[v.month()]:this._monthsShort[el.test(H)?"format":"standalone"][v.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$t.monthsParse=function za(v,H,O){var z,$,ce;if(this._monthsParseExact)return uo.call(this,v,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if($=le([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months($,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort($,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(ce="^"+this.months($,"")+"|^"+this.monthsShort($,""),this._monthsParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(v))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(v))return z;if(!O&&this._monthsParse[z].test(v))return z}},$t.monthsRegex=function In(v){return this._monthsParseExact?(P(this,"_monthsRegex")||tr.call(this),v?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=ic),this._monthsStrictRegex&&v?this._monthsStrictRegex:this._monthsRegex)},$t.monthsShortRegex=function Zu(v){return this._monthsParseExact?(P(this,"_monthsRegex")||tr.call(this),v?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=fi),this._monthsShortStrictRegex&&v?this._monthsShortStrictRegex:this._monthsShortRegex)},$t.week=function nf(v){return ho(v,this._week.dow,this._week.doy).week},$t.firstDayOfYear=function rf(){return this._week.doy},$t.firstDayOfWeek=function xr(){return this._week.dow},$t.weekdays=function Yt(v,H){var O=x(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===v?pd(O,this._week.dow):v?O[v.day()]:O},$t.weekdaysMin=function $e(v){return!0===v?pd(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin},$t.weekdaysShort=function Dn(v){return!0===v?pd(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort},$t.weekdaysParse=function $i(v,H,O){var z,$,ce;if(this._weekdaysParseExact)return De.call(this,v,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if($=le([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays($,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort($,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin($,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(ce="^"+this.weekdays($,"")+"|^"+this.weekdaysShort($,"")+"|^"+this.weekdaysMin($,""),this._weekdaysParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(v))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(v))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(v))return z;if(!O&&this._weekdaysParse[z].test(v))return z}},$t.weekdaysRegex=function Bn(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||tl.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=df),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)},$t.weekdaysShortRegex=function Yr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||tl.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},$t.weekdaysMinRegex=function nr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||tl.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ya),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},$t.isPM=function _r(v){return"p"===(v+"").toLowerCase().charAt(0)},$t.meridiem=function At(v,H,O){return v>11?O?"pm":"PM":O?"am":"AM"},I("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var H=v%10;return v+(1===ue(v%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Be("moment.lang is deprecated. Use moment.locale instead.",I),i.langData=Be("moment.langData is deprecated. Use moment.localeData instead.",G);var Mr=Math.abs;function Tf(v,H,O,z){var $=bn(H,O);return v._milliseconds+=z*$._milliseconds,v._days+=z*$._days,v._months+=z*$._months,v._bubble()}function ya(v){return v<0?Math.floor(v):Math.ceil(v)}function ph(v){return 4800*v/146097}function Wi(v){return 146097*v/4800}function kr(v){return function(){return this.as(v)}}var yl=kr("ms"),Sf=kr("s"),Ef=kr("m"),Df=kr("h"),xc=kr("d"),Ml=kr("w"),Sc=kr("M"),wo=kr("Q"),Rd=kr("y");function Xr(v){return function(){return this.isValid()?this._data[v]:NaN}}var gh=Xr("milliseconds"),Hf=Xr("seconds"),Ec=Xr("minutes"),ks=Xr("hours"),Co=Xr("days"),Dc=Xr("months"),Od=Xr("years");var sr=Math.round,vo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lf(v,H,O,z,$){return $.relativeTime(H||1,!!O,v,z)}var To=Math.abs;function Rs(v){return(v>0)-(v<0)||+v}function Bd(){if(!this.isValid())return this.localeData().invalidDate();var z,$,ce,we,jt,Mi,on,Rr,v=To(this._milliseconds)/1e3,H=To(this._days),O=To(this._months),ft=this.asSeconds();return ft?(z=te(v/60),$=te(z/60),v%=60,z%=60,ce=te(O/12),O%=12,we=v?v.toFixed(3).replace(/\.?0+$/,""):"",jt=ft<0?"-":"",Mi=Rs(this._months)!==Rs(ft)?"-":"",on=Rs(this._days)!==Rs(ft)?"-":"",Rr=Rs(this._milliseconds)!==Rs(ft)?"-":"",jt+"P"+(ce?Mi+ce+"Y":"")+(O?Mi+O+"M":"")+(H?on+H+"D":"")+($||z||v?"T":"")+($?Rr+$+"H":"")+(z?Rr+z+"M":"")+(v?Rr+we+"S":"")):"P0D"}var Qt=mo.prototype;return Qt.isValid=function al(){return this._isValid},Qt.abs=function vf(){var v=this._data;return this._milliseconds=Mr(this._milliseconds),this._days=Mr(this._days),this._months=Mr(this._months),v.milliseconds=Mr(v.milliseconds),v.seconds=Mr(v.seconds),v.minutes=Mr(v.minutes),v.hours=Mr(v.hours),v.months=Mr(v.months),v.years=Mr(v.years),this},Qt.add=function xf(v,H){return Tf(this,v,H,1)},Qt.subtract=function Tc(v,H){return Tf(this,v,H,-1)},Qt.as=function fh(v){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(v=Jt(v))||"quarter"===v||"year"===v)switch(H=this._days+z/864e5,O=this._months+ph(H),v){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(Wi(this._months)),v){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+v)}},Qt.asMilliseconds=yl,Qt.asSeconds=Sf,Qt.asMinutes=Ef,Qt.asHours=Df,Qt.asDays=xc,Qt.asWeeks=Ml,Qt.asMonths=Sc,Qt.asQuarters=wo,Qt.asYears=Rd,Qt.valueOf=function mh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN},Qt._bubble=function Pr(){var $,ce,we,ft,jt,v=this._milliseconds,H=this._days,O=this._months,z=this._data;return v>=0&&H>=0&&O>=0||v<=0&&H<=0&&O<=0||(v+=864e5*ya(Wi(O)+H),H=0,O=0),z.milliseconds=v%1e3,$=te(v/1e3),z.seconds=$%60,ce=te($/60),z.minutes=ce%60,we=te(ce/60),z.hours=we%24,H+=te(we/24),O+=jt=te(ph(H)),H-=ya(Wi(jt)),ft=te(O/12),O%=12,z.days=H,z.months=O,z.years=ft,this},Qt.clone=function wl(){return bn(this)},Qt.get=function Cl(v){return v=Jt(v),this.isValid()?this[v+"s"]():NaN},Qt.milliseconds=gh,Qt.seconds=Hf,Qt.minutes=Ec,Qt.hours=ks,Qt.days=Co,Qt.weeks=function Id(){return te(this.days()/7)},Qt.months=Dc,Qt.years=Od,Qt.humanize=function _h(v,H){if(!this.isValid())return this.localeData().invalidDate();var $,ce,O=!1,z=vo;return"object"==typeof v&&(H=v,v=!1),"boolean"==typeof v&&(O=v),"object"==typeof H&&(z=Object.assign({},vo,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),ce=function Pf(v,H,O,z){var $=bn(v).abs(),ce=sr($.as("s")),we=sr($.as("m")),ft=sr($.as("h")),jt=sr($.as("d")),Mi=sr($.as("M")),on=sr($.as("w")),Rr=sr($.as("y")),Or=ce<=O.ss&&["s",ce]||ce0,Or[4]=z,Lf.apply(null,Or)}(this,!O,z,$=this.localeData()),O&&(ce=$.pastFuture(+this,ce)),$.postformat(ce)},Qt.toISOString=Bd,Qt.toString=Bd,Qt.toJSON=Bd,Qt.locale=oh,Qt.localeData=Md,Qt.toIsoString=Be("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bd),Qt.lang=yd,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),Ue("x",da),Ue("X",/[+-]?\d+(\.\d{1,3})?/),M("X",function(v,H,O){O._d=new Date(1e3*parseFloat(v))}),M("x",function(v,H,O){O._d=new Date(ue(v))}),i.version="2.29.4",function E(v){w=v}(di),i.fn=Fe,i.min=function ma(){return Ku("isBefore",[].slice.call(arguments,0))},i.max=function fd(){return Ku("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function uh(v){return di(1e3*v)},i.months=function Ps(v,H){return hh(v,H,"months")},i.isDate=J,i.locale=I,i.invalid=ve,i.duration=bn,i.isMoment=Se,i.weekdays=function wg(v,H,O){return Ls(v,H,O,"weekdays")},i.parseZone=function Cf(){return di.apply(null,arguments).parseZone()},i.localeData=G,i.isDuration=Ga,i.monthsShort=function vc(v,H){return hh(v,H,"monthsShort")},i.weekdaysMin=function kd(v,H,O){return Ls(v,H,O,"weekdaysMin")},i.defineLocale=U,i.updateLocale=function B(v,H){if(null!=H){var O,z,$=Nt;null!=dt[v]&&null!=dt[v].parentLocale?dt[v].set(Ce(dt[v]._config,H)):(null!=(z=li(v))&&($=z._config),H=Ce($,H),null==z&&(H.abbr=v),(O=new ye(H)).parentLocale=dt[v],dt[v]=O),I(v)}else null!=dt[v]&&(null!=dt[v].parentLocale?(dt[v]=dt[v].parentLocale,v===I()&&I(v)):null!=dt[v]&&delete dt[v]);return dt[v]},i.locales=function re(){return We(dt)},i.weekdaysShort=function Al(v,H,O){return Ls(v,H,O,"weekdaysShort")},i.normalizeUnits=Jt,i.relativeTimeRounding=function kf(v){return void 0===v?sr:"function"==typeof v&&(sr=v,!0)},i.relativeTimeThreshold=function Hc(v,H){return void 0!==vo[v]&&(void 0===H?vo[v]:(vo[v]=H,"s"===v&&(vo.ss=H-1),!0))},i.calendarFormat=function fc(v,H){var O=v.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=Fe,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9751:(j,Y,T)=>{"use strict";T.d(Y,{y:()=>F});var w=T(930),i=T(727),E=T(8822),x=T(9635),S=T(2416),P=T(576),R=T(2806);let F=(()=>{class ne{constructor(ae){ae&&(this._subscribe=ae)}lift(ae){const ie=new ne;return ie.source=this,ie.operator=ae,ie}subscribe(ae,ie,ge){const Ae=function X(ne){return ne&&ne instanceof w.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(ae)?ae:new w.Hp(ae,ie,ge);return(0,R.x)(()=>{const{operator:ve,source:Xe}=this;Ae.add(ve?ve.call(Ae,Xe):Xe?this._subscribe(Ae):this._trySubscribe(Ae))}),Ae}_trySubscribe(ae){try{return this._subscribe(ae)}catch(ie){ae.error(ie)}}forEach(ae,ie){return new(ie=q(ie))((ge,Ae)=>{const ve=new w.Hp({next:Xe=>{try{ae(Xe)}catch(Qe){Ae(Qe),ve.unsubscribe()}},error:Ae,complete:ge});this.subscribe(ve)})}_subscribe(ae){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(ae)}[E.L](){return this}pipe(...ae){return(0,x.U)(ae)(this)}toPromise(ae){return new(ae=q(ae))((ie,ge)=>{let Ae;this.subscribe(ve=>Ae=ve,ve=>ge(ve),()=>ie(Ae))})}}return ne.create=le=>new ne(le),ne})();function q(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>R});var w=T(9751),i=T(727);const x=(0,T(3888).d)(q=>function(){q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=T(8737),P=T(2806);let R=(()=>{class q extends w.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(X){const ne=new F(this,this);return ne.operator=X,ne}_throwIfClosed(){if(this.closed)throw new x}next(X){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(X)}})}error(X){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=X;const{observers:ne}=this;for(;ne.length;)ne.shift().error(X)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:X}=this;for(;X.length;)X.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var X;return(null===(X=this.observers)||void 0===X?void 0:X.length)>0}_trySubscribe(X){return this._throwIfClosed(),super._trySubscribe(X)}_subscribe(X){return this._throwIfClosed(),this._checkFinalizedStatuses(X),this._innerSubscribe(X)}_innerSubscribe(X){const{hasError:ne,isStopped:le,observers:ae}=this;return ne||le?i.Lc:(this.currentObservers=null,ae.push(X),new i.w0(()=>{this.currentObservers=null,(0,S.P)(ae,X)}))}_checkFinalizedStatuses(X){const{hasError:ne,thrownError:le,isStopped:ae}=this;ne?X.error(le):ae&&X.complete()}asObservable(){const X=new w.y;return X.source=this,X}}return q.create=(J,X)=>new F(J,X),q})();class F extends R{constructor(J,X){super(),this.destination=J,this.source=X}next(J){var X,ne;null===(ne=null===(X=this.destination)||void 0===X?void 0:X.next)||void 0===ne||ne.call(X,J)}error(J){var X,ne;null===(ne=null===(X=this.destination)||void 0===X?void 0:X.error)||void 0===ne||ne.call(X,J)}complete(){var J,X;null===(X=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===X||X.call(J)}_subscribe(J){var X,ne;return null!==(ne=null===(X=this.source)||void 0===X?void 0:X.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(j,Y,T)=>{"use strict";T.d(Y,{Hp:()=>ge,Lv:()=>ne});var w=T(576),i=T(727),E=T(2416),x=T(7849),S=T(5032);const P=q("C",void 0,void 0);function q(He,Te,Se){return{kind:He,value:Te,error:Se}}var J=T(3410),X=T(2806);class ne extends i.w0{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,i.Nn)(Te)&&Te.add(this)):this.destination=Qe}static create(Te,Se,pt){return new ge(Te,Se,pt)}next(Te){this.isStopped?Xe(function F(He){return q("N",He,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?Xe(function R(He){return q("E",void 0,He)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?Xe(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function ae(He,Te){return le.call(He,Te)}class ie{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:Se}=this;if(Se.next)try{Se.next(Te)}catch(pt){Ae(pt)}}error(Te){const{partialObserver:Se}=this;if(Se.error)try{Se.error(Te)}catch(pt){Ae(pt)}else Ae(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(Se){Ae(Se)}}}class ge extends ne{constructor(Te,Se,pt){let Be;if(super(),(0,w.m)(Te)||!Te)Be={next:Te??void 0,error:Se??void 0,complete:pt??void 0};else{let Ve;this&&E.v.useDeprecatedNextContext?(Ve=Object.create(Te),Ve.unsubscribe=()=>this.unsubscribe(),Be={next:Te.next&&ae(Te.next,Ve),error:Te.error&&ae(Te.error,Ve),complete:Te.complete&&ae(Te.complete,Ve)}):Be=Te}this.destination=new ie(Be)}}function Ae(He){E.v.useDeprecatedSynchronousErrorHandling?(0,X.O)(He):(0,x.h)(He)}function Xe(He,Te){const{onStoppedNotification:Se}=E.v;Se&&J.z.setTimeout(()=>Se(He,Te))}const Qe={closed:!0,next:S.Z,error:function ve(He){throw He},complete:S.Z}},727:(j,Y,T)=>{"use strict";T.d(Y,{Lc:()=>P,w0:()=>S,Nn:()=>R});var w=T(576);const E=(0,T(3888).d)(q=>function(X){q(this),this.message=X?`${X.length} errors occurred during unsubscription:\n${X.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=X});var x=T(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:X}=this;if(X)if(this._parentage=null,Array.isArray(X))for(const ae of X)ae.remove(this);else X.remove(this);const{initialTeardown:ne}=this;if((0,w.m)(ne))try{ne()}catch(ae){J=ae instanceof E?ae.errors:[ae]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const ae of le)try{F(ae)}catch(ie){J=J??[],ie instanceof E?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new E(J)}}add(J){var X;if(J&&J!==this)if(this.closed)F(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(X=this._finalizers)&&void 0!==X?X:[]).push(J)}}_hasParent(J){const{_parentage:X}=this;return X===J||Array.isArray(X)&&X.includes(J)}_addParent(J){const{_parentage:X}=this;this._parentage=Array.isArray(X)?(X.push(J),X):X?[X,J]:J}_removeParent(J){const{_parentage:X}=this;X===J?this._parentage=null:Array.isArray(X)&&(0,x.P)(X,J)}remove(J){const{_finalizers:X}=this;X&&(0,x.P)(X,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const q=new S;return q.closed=!0,q})();const P=S.EMPTY;function R(q){return q instanceof S||q&&"closed"in q&&(0,w.m)(q.remove)&&(0,w.m)(q.add)&&(0,w.m)(q.unsubscribe)}function F(q){(0,w.m)(q)?q():q.unsubscribe()}},2416:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>w});const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(j,Y,T)=>{"use strict";T.d(Y,{a:()=>J});var w=T(9751),i=T(4742),E=T(2076),x=T(4671),S=T(3268),P=T(3269),R=T(1810),F=T(5403),q=T(9672);function J(...le){const ae=(0,P.yG)(le),ie=(0,P.jO)(le),{args:ge,keys:Ae}=(0,i.D)(le);if(0===ge.length)return(0,E.D)([],ae);const ve=new w.y(function X(le,ae,ie=x.y){return ge=>{ne(ae,()=>{const{length:Ae}=le,ve=new Array(Ae);let Xe=Ae,Qe=Ae;for(let He=0;He{const Te=(0,E.D)(le[He],ae);let Se=!1;Te.subscribe((0,F.x)(ge,pt=>{ve[He]=pt,Se||(Se=!0,Qe--),Qe||ge.next(ie(ve.slice()))},()=>{--Xe||ge.complete()}))},ge)},ge)}}(ge,ae,Ae?Xe=>(0,R.n)(Ae,Xe):x.y));return ie?ve.pipe((0,S.Z)(ie)):ve}function ne(le,ae,ie){le?(0,q.f)(ie,le,ae):ae()}},7272:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>S});var w=T(8189),E=T(3269),x=T(2076);function S(...P){return function i(){return(0,w.J)(1)}()((0,x.D)(P,(0,E.yG)(P)))}},515:(j,Y,T)=>{"use strict";T.d(Y,{E:()=>i});const i=new(T(9751).y)(S=>S.complete())},2076:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>pt});var w=T(8421),i=T(9672),E=T(4482),x=T(5403);function S(Be,Ve=0){return(0,E.e)((Ne,he)=>{Ne.subscribe((0,x.x)(he,me=>(0,i.f)(he,Be,()=>he.next(me),Ve),()=>(0,i.f)(he,Be,()=>he.complete(),Ve),me=>(0,i.f)(he,Be,()=>he.error(me),Ve)))})}function P(Be,Ve=0){return(0,E.e)((Ne,he)=>{he.add(Be.schedule(()=>Ne.subscribe(he),Ve))})}var q=T(9751),X=T(2202),ne=T(576);function ae(Be,Ve){if(!Be)throw new Error("Iterable cannot be null");return new q.y(Ne=>{(0,i.f)(Ne,Ve,()=>{const he=Be[Symbol.asyncIterator]();(0,i.f)(Ne,Ve,()=>{he.next().then(me=>{me.done?Ne.complete():Ne.next(me.value)})},0,!0)})})}var ie=T(3670),ge=T(8239),Ae=T(1144),ve=T(6495),Xe=T(2206),Qe=T(4532),He=T(3260);function pt(Be,Ve){return Ve?function Se(Be,Ve){if(null!=Be){if((0,ie.c)(Be))return function R(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Ae.z)(Be))return function J(Be,Ve){return new q.y(Ne=>{let he=0;return Ve.schedule(function(){he===Be.length?Ne.complete():(Ne.next(Be[he++]),Ne.closed||this.schedule())})})}(Be,Ve);if((0,ge.t)(Be))return function F(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Xe.D)(Be))return ae(Be,Ve);if((0,ve.T)(Be))return function le(Be,Ve){return new q.y(Ne=>{let he;return(0,i.f)(Ne,Ve,()=>{he=Be[X.h](),(0,i.f)(Ne,Ve,()=>{let me,Ce;try{({value:me,done:Ce}=he.next())}catch(ye){return void Ne.error(ye)}Ce?Ne.complete():Ne.next(me)},0,!0)}),()=>(0,ne.m)(he?.return)&&he.return()})}(Be,Ve);if((0,He.L)(Be))return function Te(Be,Ve){return ae((0,He.Q)(Be),Ve)}(Be,Ve)}throw(0,Qe.z)(Be)}(Be,Ve):(0,w.Xf)(Be)}},8421:(j,Y,T)=>{"use strict";T.d(Y,{Xf:()=>le});var w=T(655),i=T(1144),E=T(8239),x=T(9751),S=T(3670),P=T(2206),R=T(4532),F=T(6495),q=T(3260),J=T(576),X=T(7849),ne=T(8822);function le(He){if(He instanceof x.y)return He;if(null!=He){if((0,S.c)(He))return function ae(He){return new x.y(Te=>{const Se=He[ne.L]();if((0,J.m)(Se.subscribe))return Se.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(He);if((0,i.z)(He))return function ie(He){return new x.y(Te=>{for(let Se=0;Se{He.then(Se=>{Te.closed||(Te.next(Se),Te.complete())},Se=>Te.error(Se)).then(null,X.h)})}(He);if((0,P.D)(He))return ve(He);if((0,F.T)(He))return function Ae(He){return new x.y(Te=>{for(const Se of He)if(Te.next(Se),Te.closed)return;Te.complete()})}(He);if((0,q.L)(He))return function Xe(He){return ve((0,q.Q)(He))}(He)}throw(0,R.z)(He)}function ve(He){return new x.y(Te=>{(function Qe(He,Te){var Se,pt,Be,Ve;return(0,w.mG)(this,void 0,void 0,function*(){try{for(Se=(0,w.KL)(He);!(pt=yield Se.next()).done;)if(Te.next(pt.value),Te.closed)return}catch(Ne){Be={error:Ne}}finally{try{pt&&!pt.done&&(Ve=Se.return)&&(yield Ve.call(Se))}finally{if(Be)throw Be.error}}Te.complete()})})(He,Te).catch(Se=>Te.error(Se))})}},6451:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>P});var w=T(8189),i=T(8421),E=T(515),x=T(3269),S=T(2076);function P(...R){const F=(0,x.yG)(R),q=(0,x._6)(R,1/0),J=R;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,w.J)(q)((0,S.D)(J,F)):E.E}},9646:(j,Y,T)=>{"use strict";T.d(Y,{of:()=>E});var w=T(3269),i=T(2076);function E(...x){const S=(0,w.yG)(x);return(0,i.D)(x,S)}},102:(j,Y,T)=>{"use strict";T.d(Y,{S:()=>P});var w=T(9751),i=T(8421);const{isArray:E}=Array;var S=T(5403);function P(...F){return 1===(F=function x(F){return 1===F.length&&E(F[0])?F[0]:F}(F)).length?(0,i.Xf)(F[0]):new w.y(function R(F){return q=>{let J=[];for(let X=0;J&&!q.closed&&X{if(J){for(let le=0;le{"use strict";T.d(Y,{_:()=>E});var w=T(9751),i=T(576);function E(x,S){const P=(0,i.m)(x)?x:()=>x,R=F=>F.error(P());return new w.y(S?F=>S.schedule(R,0,F):R)}},2805:(j,Y,T)=>{"use strict";T.d(Y,{H:()=>S});var w=T(9751),i=T(4986),E=T(3532),x=T(1165);function S(P=0,R,F=i.P){let q=-1;return null!=R&&((0,E.K)(R)?F=R:q=R),new w.y(J=>{let X=(0,x.q)(P)?+P-F.now():P;X<0&&(X=0);let ne=0;return F.schedule(function(){J.closed||(J.next(ne++),0<=q?this.schedule(void 0,q):J.complete())},X)})}},5403:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>i});var w=T(930);function i(x,S,P,R,F){return new E(x,S,P,R,F)}class E extends w.Lv{constructor(S,P,R,F,q,J){super(S),this.onFinalize=q,this.shouldUnsubscribe=J,this._next=P?function(X){try{P(X)}catch(ne){S.error(ne)}}:super._next,this._error=F?function(X){try{F(X)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(X){S.error(X)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>x});var w=T(8421),i=T(5403),E=T(4482);function x(S){return(0,E.e)((P,R)=>{let J,F=null,q=!1;F=P.subscribe((0,i.x)(R,void 0,void 0,X=>{J=(0,w.Xf)(S(X,x(S)(P))),F?(F.unsubscribe(),F=null,J.subscribe(R)):q=!0})),q&&(F.unsubscribe(),F=null,J.subscribe(R))})}},4351:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>E});var w=T(5577),i=T(576);function E(x,S){return(0,i.m)(S)?(0,w.z)(x,S,1):(0,w.z)(x,1)}},8372:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>x});var w=T(4986),i=T(4482),E=T(5403);function x(S,P=w.z){return(0,i.e)((R,F)=>{let q=null,J=null,X=null;const ne=()=>{if(q){q.unsubscribe(),q=null;const ae=J;J=null,F.next(ae)}};function le(){const ae=X+S,ie=P.now();if(ie{J=ae,X=P.now(),q||(q=P.schedule(le,S),F.add(q))},()=>{ne(),F.complete()},void 0,()=>{J=q=null}))})}},6590:(j,Y,T)=>{"use strict";T.d(Y,{d:()=>E});var w=T(4482),i=T(5403);function E(x){return(0,w.e)((S,P)=>{let R=!1;S.subscribe((0,i.x)(P,F=>{R=!0,P.next(F)},()=>{R||P.next(x),P.complete()}))})}},1005:(j,Y,T)=>{"use strict";T.d(Y,{g:()=>ne});var w=T(4986),i=T(7272),E=T(5698),x=T(4482),S=T(5403),P=T(5032),F=T(9718),q=T(5577);function J(le,ae){return ae?ie=>(0,i.z)(ae.pipe((0,E.q)(1),function R(){return(0,x.e)((le,ae)=>{le.subscribe((0,S.x)(ae,P.Z))})}()),ie.pipe(J(le))):(0,q.z)((ie,ge)=>le(ie,ge).pipe((0,E.q)(1),(0,F.h)(ie)))}var X=T(2805);function ne(le,ae=w.z){const ie=(0,X.H)(le,ae);return J(()=>ie)}},9300:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,R)=>{let F=0;P.subscribe((0,i.x)(R,q=>x.call(S,q,F++)&&R.next(q)))})}},590:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>R});var w=T(6805),i=T(9300),E=T(5698),x=T(6590),S=T(8068),P=T(4671);function R(F,q){const J=arguments.length>=2;return X=>X.pipe(F?(0,i.h)((ne,le)=>F(ne,le,X)):P.y,(0,E.q)(1),J?(0,x.d)(q):(0,S.T)(()=>new w.K))}},4004:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,R)=>{let F=0;P.subscribe((0,i.x)(R,q=>{R.next(x.call(S,q,F++))}))})}},9718:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});var w=T(4004);function i(E){return(0,w.U)(()=>E)}},8189:(j,Y,T)=>{"use strict";T.d(Y,{J:()=>E});var w=T(5577),i=T(4671);function E(x=1/0){return(0,w.z)(i.y,x)}},5577:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>F});var w=T(4004),i=T(8421),E=T(4482),x=T(9672),S=T(5403),R=T(576);function F(q,J,X=1/0){return(0,R.m)(J)?F((ne,le)=>(0,w.U)((ae,ie)=>J(ne,ae,le,ie))((0,i.Xf)(q(ne,le))),X):("number"==typeof J&&(X=J),(0,E.e)((ne,le)=>function P(q,J,X,ne,le,ae,ie,ge){const Ae=[];let ve=0,Xe=0,Qe=!1;const He=()=>{Qe&&!Ae.length&&!ve&&J.complete()},Te=pt=>ve{ae&&J.next(pt),ve++;let Be=!1;(0,i.Xf)(X(pt,Xe++)).subscribe((0,S.x)(J,Ve=>{le?.(Ve),ae?Te(Ve):J.next(Ve)},()=>{Be=!0},void 0,()=>{if(Be)try{for(ve--;Ae.length&&veSe(Ve)):Se(Ve)}He()}catch(Ve){J.error(Ve)}}))};return q.subscribe((0,S.x)(J,Te,()=>{Qe=!0,He()})),()=>{ge?.()}}(ne,le,q,X)))}},3099:(j,Y,T)=>{"use strict";T.d(Y,{B:()=>S});var w=T(8421),i=T(7579),E=T(930),x=T(4482);function S(R={}){const{connector:F=(()=>new i.x),resetOnError:q=!0,resetOnComplete:J=!0,resetOnRefCountZero:X=!0}=R;return ne=>{let le,ae,ie,ge=0,Ae=!1,ve=!1;const Xe=()=>{ae?.unsubscribe(),ae=void 0},Qe=()=>{Xe(),le=ie=void 0,Ae=ve=!1},He=()=>{const Te=le;Qe(),Te?.unsubscribe()};return(0,x.e)((Te,Se)=>{ge++,!ve&&!Ae&&Xe();const pt=ie=ie??F();Se.add(()=>{ge--,0===ge&&!ve&&!Ae&&(ae=P(He,X))}),pt.subscribe(Se),!le&&ge>0&&(le=new E.Hp({next:Be=>pt.next(Be),error:Be=>{ve=!0,Xe(),ae=P(Qe,q,Be),pt.error(Be)},complete:()=>{Ae=!0,Xe(),ae=P(Qe,J),pt.complete()}}),(0,w.Xf)(Te).subscribe(le))})(ne)}}function P(R,F,...q){if(!0===F)return void R();if(!1===F)return;const J=new E.Hp({next:()=>{J.unsubscribe(),R()}});return F(...q).subscribe(J)}},3900:(j,Y,T)=>{"use strict";T.d(Y,{w:()=>x});var w=T(8421),i=T(4482),E=T(5403);function x(S,P){return(0,i.e)((R,F)=>{let q=null,J=0,X=!1;const ne=()=>X&&!q&&F.complete();R.subscribe((0,E.x)(F,le=>{q?.unsubscribe();let ae=0;const ie=J++;(0,w.Xf)(S(le,ie)).subscribe(q=(0,E.x)(F,ge=>F.next(P?P(le,ge,ie,ae++):ge),()=>{q=null,ne()}))},()=>{X=!0,ne()}))})}},5698:(j,Y,T)=>{"use strict";T.d(Y,{q:()=>x});var w=T(515),i=T(4482),E=T(5403);function x(S){return S<=0?()=>w.E:(0,i.e)((P,R)=>{let F=0;P.subscribe((0,E.x)(R,q=>{++F<=S&&(R.next(q),S<=F&&R.complete())}))})}},8505:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>S});var w=T(576),i=T(4482),E=T(5403),x=T(4671);function S(P,R,F){const q=(0,w.m)(P)||R||F?{next:P,error:R,complete:F}:P;return q?(0,i.e)((J,X)=>{var ne;null===(ne=q.subscribe)||void 0===ne||ne.call(q);let le=!0;J.subscribe((0,E.x)(X,ae=>{var ie;null===(ie=q.next)||void 0===ie||ie.call(q,ae),X.next(ae)},()=>{var ae;le=!1,null===(ae=q.complete)||void 0===ae||ae.call(q),X.complete()},ae=>{var ie;le=!1,null===(ie=q.error)||void 0===ie||ie.call(q,ae),X.error(ae)},()=>{var ae,ie;le&&(null===(ae=q.unsubscribe)||void 0===ae||ae.call(q)),null===(ie=q.finalize)||void 0===ie||ie.call(q)}))}):x.y}},8068:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>x});var w=T(6805),i=T(4482),E=T(5403);function x(P=S){return(0,i.e)((R,F)=>{let q=!1;R.subscribe((0,E.x)(F,J=>{q=!0,F.next(J)},()=>q?F.complete():F.error(P())))})}function S(){return new w.K}},7414:(j,Y,T)=>{"use strict";T.d(Y,{V:()=>q});var w=T(4986),i=T(1165),E=T(4482),x=T(8421),S=T(3888),P=T(5403),R=T(9672);const F=(0,S.d)(X=>function(le=null){X(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function q(X,ne){const{first:le,each:ae,with:ie=J,scheduler:ge=ne??w.z,meta:Ae=null}=(0,i.q)(X)?{first:X}:"number"==typeof X?{each:X}:X;if(null==le&&null==ae)throw new TypeError("No timeout provided.");return(0,E.e)((ve,Xe)=>{let Qe,He,Te=null,Se=0;const pt=Be=>{He=(0,R.f)(Xe,ge,()=>{try{Qe.unsubscribe(),(0,x.Xf)(ie({meta:Ae,lastValue:Te,seen:Se})).subscribe(Xe)}catch(Ve){Xe.error(Ve)}},Be)};Qe=ve.subscribe((0,P.x)(Xe,Be=>{He?.unsubscribe(),Se++,Xe.next(Te=Be),ae>0&&pt(ae)},void 0,void 0,()=>{He?.closed||He?.unsubscribe(),Te=null})),!Se&&pt(null!=le?"number"==typeof le?le:+le-ge.now():ae)})}function J(X){throw new F(X)}},4408:(j,Y,T)=>{"use strict";T.d(Y,{o:()=>S});var w=T(727);class i extends w.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const E={setInterval(P,R,...F){const{delegate:q}=E;return q?.setInterval?q.setInterval(P,R,...F):setInterval(P,R,...F)},clearInterval(P){const{delegate:R}=E;return(R?.clearInterval||clearInterval)(P)},delegate:void 0};var x=T(8737);class S extends i{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){if(this.closed)return this;this.state=R;const q=this.id,J=this.scheduler;return null!=q&&(this.id=this.recycleAsyncId(J,q,F)),this.pending=!0,this.delay=F,this.id=this.id||this.requestAsyncId(J,this.id,F),this}requestAsyncId(R,F,q=0){return E.setInterval(R.flush.bind(R,this),q)}recycleAsyncId(R,F,q=0){if(null!=q&&this.delay===q&&!1===this.pending)return F;E.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const q=this._execute(R,F);if(q)return q;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let J,q=!1;try{this.work(R)}catch(X){q=!0,J=X||new Error("Scheduled action threw falsy error")}if(q)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:q}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(q,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},7565:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>E});var w=T(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,R){return new this.schedulerActionCtor(this,S).schedule(R,P)}}i.now=w.l.now;class E extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let R;this._active=!0;do{if(R=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,R){for(;S=P.shift();)S.unsubscribe();throw R}}}},4986:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>x,z:()=>E});var w=T(4408);const E=new(T(7565).v)(w.o),x=E},6063:(j,Y,T)=>{"use strict";T.d(Y,{l:()=>w});const w={now:()=>(w.delegate||Date).now(),delegate:void 0}},3410:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w={setTimeout(i,E,...x){const{delegate:S}=w;return S?.setTimeout?S.setTimeout(i,E,...x):setTimeout(i,E,...x)},clearTimeout(i){const{delegate:E}=w;return(E?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});const i=(0,T(3888).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(j,Y,T)=>{"use strict";T.d(Y,{_6:()=>P,jO:()=>x,yG:()=>S});var w=T(576),i=T(3532);function E(R){return R[R.length-1]}function x(R){return(0,w.m)(E(R))?R.pop():void 0}function S(R){return(0,i.K)(E(R))?R.pop():void 0}function P(R,F){return"number"==typeof E(R)?R.pop():F}},4742:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>S});const{isArray:w}=Array,{getPrototypeOf:i,prototype:E,keys:x}=Object;function S(R){if(1===R.length){const F=R[0];if(w(F))return{args:F,keys:null};if(function P(R){return R&&"object"==typeof R&&i(R)===E}(F)){const q=x(F);return{args:q.map(J=>F[J]),keys:q}}}return{args:R,keys:null}}},8737:(j,Y,T)=>{"use strict";function w(i,E){if(i){const x=i.indexOf(E);0<=x&&i.splice(x,1)}}T.d(Y,{P:()=>w})},3888:(j,Y,T)=>{"use strict";function w(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}T.d(Y,{d:()=>w})},1810:(j,Y,T)=>{"use strict";function w(i,E){return i.reduce((x,S,P)=>(x[S]=E[P],x),{})}T.d(Y,{n:()=>w})},2806:(j,Y,T)=>{"use strict";T.d(Y,{O:()=>x,x:()=>E});var w=T(2416);let i=null;function E(S){if(w.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:R,error:F}=i;if(i=null,R)throw F}}else S()}function x(S){w.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(j,Y,T)=>{"use strict";function w(i,E,x,S=0,P=!1){const R=E.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(R),!P)return R}T.d(Y,{f:()=>w})},4671:(j,Y,T)=>{"use strict";function w(i){return i}T.d(Y,{y:()=>w})},1144:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>i});var w=T(576);function i(E){return Symbol.asyncIterator&&(0,w.m)(E?.[Symbol.asyncIterator])}},1165:(j,Y,T)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(i)}T.d(Y,{q:()=>w})},576:(j,Y,T)=>{"use strict";function w(i){return"function"==typeof i}T.d(Y,{m:()=>w})},3670:(j,Y,T)=>{"use strict";T.d(Y,{c:()=>E});var w=T(8822),i=T(576);function E(x){return(0,i.m)(x[w.L])}},6495:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>E});var w=T(2202),i=T(576);function E(x){return(0,i.m)(x?.[w.h])}},8239:(j,Y,T)=>{"use strict";T.d(Y,{t:()=>i});var w=T(576);function i(E){return(0,w.m)(E?.then)}},3260:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>x,Q:()=>E});var w=T(655),i=T(576);function E(S){return(0,w.FC)(this,arguments,function*(){const R=S.getReader();try{for(;;){const{value:F,done:q}=yield(0,w.qq)(R.read());if(q)return yield(0,w.qq)(void 0);yield yield(0,w.qq)(F)}}finally{R.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});var w=T(576);function i(E){return E&&(0,w.m)(E.schedule)}},4482:(j,Y,T)=>{"use strict";T.d(Y,{A:()=>i,e:()=>E});var w=T(576);function i(x){return(0,w.m)(x?.lift)}function E(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(j,Y,T)=>{"use strict";T.d(Y,{Z:()=>x});var w=T(4004);const{isArray:i}=Array;function x(S){return(0,w.U)(P=>function E(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(j,Y,T)=>{"use strict";function w(){}T.d(Y,{Z:()=>w})},9635:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E,z:()=>i});var w=T(4671);function i(...x){return E(x)}function E(x){return 0===x.length?w.y:1===x.length?x[0]:function(P){return x.reduce((R,F)=>F(R),P)}}},7849:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(2416),i=T(3410);function E(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=w.v;if(!S)throw x;S(x)})}},4532:(j,Y,T)=>{"use strict";function w(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}T.d(Y,{z:()=>w})},6700:(j,Y,T)=>{var w={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=E(x);return T(S)}function E(x){if(!T.o(w,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return w[x]}i.keys=function(){return Object.keys(w)},i.resolve=E,j.exports=i,i.id=6700},655:(j,Y,T)=>{"use strict";function F(he,me,Ce,ye){return new(Ce||(Ce=Promise))(function(Ye,mt){function Ft(Ki){try{Ke(ye.next(Ki))}catch(Sn){mt(Sn)}}function ai(Ki){try{Ke(ye.throw(Ki))}catch(Sn){mt(Sn)}}function Ke(Ki){Ki.done?Ye(Ki.value):function We(Ye){return Ye instanceof Ce?Ye:new Ce(function(mt){mt(Ye)})}(Ki.value).then(Ft,ai)}Ke((ye=ye.apply(he,me||[])).next())})}function Ae(he){return this instanceof Ae?(this.v=he,this):new Ae(he)}function ve(he,me,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var We,ye=Ce.apply(he,me||[]),Ye=[];return We={},mt("next"),mt("throw"),mt("return"),We[Symbol.asyncIterator]=function(){return this},We;function mt(Ge){ye[Ge]&&(We[Ge]=function(si){return new Promise(function(jn,Ci){Ye.push([Ge,si,jn,Ci])>1||Ft(Ge,si)})})}function Ft(Ge,si){try{!function ai(Ge){Ge.value instanceof Ae?Promise.resolve(Ge.value.v).then(Ke,Ki):Sn(Ye[0][2],Ge)}(ye[Ge](si))}catch(jn){Sn(Ye[0][3],jn)}}function Ke(Ge){Ft("next",Ge)}function Ki(Ge){Ft("throw",Ge)}function Sn(Ge,si){Ge(si),Ye.shift(),Ye.length&&Ft(Ye[0][0],Ye[0][1])}}function Qe(he){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,me=he[Symbol.asyncIterator];return me?me.call(he):(he=function ne(he){var me="function"==typeof Symbol&&Symbol.iterator,Ce=me&&he[me],ye=0;if(Ce)return Ce.call(he);if(he&&"number"==typeof he.length)return{next:function(){return he&&ye>=he.length&&(he=void 0),{value:he&&he[ye++],done:!he}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(he),Ce={},ye("next"),ye("throw"),ye("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function ye(Ye){Ce[Ye]=he[Ye]&&function(mt){return new Promise(function(Ft,ai){!function We(Ye,mt,Ft,ai){Promise.resolve(ai).then(function(Ke){Ye({value:Ke,done:Ft})},mt)}(Ft,ai,(mt=he[Ye](mt)).done,mt.value)})}}}T.d(Y,{FC:()=>ve,KL:()=>Qe,mG:()=>F,qq:()=>Ae})},6895:(j,Y,T)=>{"use strict";T.d(Y,{Do:()=>Qe,ED:()=>Ms,EM:()=>ti,HT:()=>S,JF:()=>li,K0:()=>R,Mx:()=>ic,NF:()=>rc,Nd:()=>$i,O5:()=>In,Ov:()=>Ju,PC:()=>qr,PM:()=>At,RF:()=>qa,S$:()=>Ae,V_:()=>J,Ye:()=>He,b0:()=>Xe,bD:()=>Bt,ez:()=>Wr,gd:()=>Qu,mk:()=>Fa,n9:()=>ir,q:()=>E,sg:()=>gr,uU:()=>It,w_:()=>P});var w=T(4650);let i=null;function E(){return i}function S(I){i||(i=I)}class P{}const R=new w.OlP("DocumentToken");let F=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return function q(){return(0,w.LFG)(X)}()},providedIn:"platform"}),I})();const J=new w.OlP("Location Initialized");let X=(()=>{class I extends F{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("popstate",B,!1),()=>G.removeEventListener("popstate",B)}onHashChange(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("hashchange",B,!1),()=>G.removeEventListener("hashchange",B)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(B){this.location.pathname=B}pushState(B,G,re){ne()?this._history.pushState(B,G,re):this.location.hash=re}replaceState(B,G,re){ne()?this._history.replaceState(B,G,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(R))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function le(){return new X((0,w.LFG)(R))}()},providedIn:"platform"}),I})();function ne(){return!!window.history.pushState}function ae(I,U){if(0==I.length)return U;if(0==U.length)return I;let B=0;return I.endsWith("/")&&B++,U.startsWith("/")&&B++,2==B?I+U.substring(1):1==B?I+U:I+"/"+U}function ie(I){const U=I.match(/#|\?|$/),B=U&&U.index||I.length;return I.slice(0,B-("/"===I[B-1]?1:0))+I.slice(B)}function ge(I){return I&&"?"!==I[0]?"?"+I:I}let Ae=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return(0,w.f3M)(Xe)},providedIn:"root"}),I})();const ve=new w.OlP("appBaseHref");let Xe=(()=>{class I extends Ae{constructor(B,G){var re,Me,_e;super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=null!==(re=null!==(Me=G??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Me?Me:null===(_e=(0,w.f3M)(R).location)||void 0===_e?void 0:_e.origin)&&void 0!==re?re:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return ae(this._baseHref,B)}path(B=!1){const G=this._platformLocation.pathname+ge(this._platformLocation.search),re=this._platformLocation.hash;return re&&B?`${G}${re}`:G}pushState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),Qe=(()=>{class I extends Ae{constructor(B,G){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=G&&(this._baseHref=G)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let G=this._platformLocation.hash;return null==G&&(G="#"),G.length>0?G.substring(1):G}prepareExternalUrl(B){const G=ae(this._baseHref,B);return G.length>0?"#"+G:G}pushState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac}),I})(),He=(()=>{class I{constructor(B){this._subject=new w.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const G=this._locationStrategy.getBaseHref();this._baseHref=ie(pt(G)),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){var B;null===(B=this._urlChangeSubscription)||void 0===B||B.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,G=""){return this.path()==this.normalize(B+ge(G))}normalize(B){return I.stripTrailingSlash(function Se(I,U){return I&&U.startsWith(I)?U.substring(I.length):U}(this._baseHref,pt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,G="",re=null){this._locationStrategy.pushState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}replaceState(B,G="",re=null){this._locationStrategy.replaceState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){var G,re;null===(G=(re=this._locationStrategy).historyGo)||void 0===G||G.call(re,B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(G=>{this._notifyUrlChangeListeners(G.url,G.state)})),()=>{const G=this._urlChangeListeners.indexOf(B);var re;this._urlChangeListeners.splice(G,1),0===this._urlChangeListeners.length&&(null===(re=this._urlChangeSubscription)||void 0===re||re.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",G){this._urlChangeListeners.forEach(re=>re(B,G))}subscribe(B,G,re){return this._subject.subscribe({next:B,error:G,complete:re})}}return I.normalizeQueryParams=ge,I.joinWithSlash=ae,I.stripTrailingSlash=ie,I.\u0275fac=function(B){return new(B||I)(w.LFG(Ae))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function Te(){return new He((0,w.LFG)(Ae))}()},providedIn:"root"}),I})();function pt(I){return I.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),ye=(()=>((ye=ye||{})[ye.Decimal=0]="Decimal",ye[ye.Group=1]="Group",ye[ye.List=2]="List",ye[ye.PercentSign=3]="PercentSign",ye[ye.PlusSign=4]="PlusSign",ye[ye.MinusSign=5]="MinusSign",ye[ye.Exponential=6]="Exponential",ye[ye.SuperscriptingExponent=7]="SuperscriptingExponent",ye[ye.PerMille=8]="PerMille",ye[ye.Infinity=9]="Infinity",ye[ye.NaN=10]="NaN",ye[ye.TimeSeparator=11]="TimeSeparator",ye[ye.CurrencyDecimal=12]="CurrencyDecimal",ye[ye.CurrencyGroup=13]="CurrencyGroup",ye))();function Ge(I,U){return qe((0,w.cg1)(I)[w.wAp.DateFormat],U)}function si(I,U){return qe((0,w.cg1)(I)[w.wAp.TimeFormat],U)}function jn(I,U){return qe((0,w.cg1)(I)[w.wAp.DateTimeFormat],U)}function Ci(I,U){const B=(0,w.cg1)(I),G=B[w.wAp.NumberSymbols][U];if(typeof G>"u"){if(U===ye.CurrencyDecimal)return B[w.wAp.NumberSymbols][ye.Decimal];if(U===ye.CurrencyGroup)return B[w.wAp.NumberSymbols][ye.Group]}return G}function kn(I){if(!I[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${I[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qe(I,U){for(let B=U;B>-1;B--)if(typeof I[B]<"u")return I[B];throw new Error("Locale data API: locale data undefined")}function st(I){const[U,B]=I.split(":");return{hours:+U,minutes:+B}}const oi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ei={},Le=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var se=(()=>((se=se||{})[se.Short=0]="Short",se[se.ShortGMT=1]="ShortGMT",se[se.Long=2]="Long",se[se.Extended=3]="Extended",se))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),ue=(()=>((ue=ue||{})[ue.DayPeriods=0]="DayPeriods",ue[ue.Days=1]="Days",ue[ue.Months=2]="Months",ue[ue.Eras=3]="Eras",ue))();function Re(I,U,B,G){let re=function an(I){if(Gi(I))return I;if("number"==typeof I&&!isNaN(I))return new Date(I);if("string"==typeof I){if(I=I.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(I)){const[re,Me=1,_e=1]=I.split("-").map(nt=>+nt);return bt(re,Me-1,_e)}const B=parseFloat(I);if(!isNaN(I-B))return new Date(B);let G;if(G=I.match(oi))return function Ue(I){const U=new Date(0);let B=0,G=0;const re=I[8]?U.setUTCFullYear:U.setFullYear,Me=I[8]?U.setUTCHours:U.setHours;I[9]&&(B=Number(I[9]+I[10]),G=Number(I[9]+I[11])),re.call(U,Number(I[1]),Number(I[2])-1,Number(I[3]));const _e=Number(I[4]||0)-B,nt=Number(I[5]||0)-G,xi=Number(I[6]||0),ii=Math.floor(1e3*parseFloat("0."+(I[7]||0)));return Me.call(U,_e,nt,xi,ii),U}(G)}const U=new Date(I);if(!Gi(U))throw new Error(`Unable to convert "${I}" into a date`);return U}(I);U=Ot(B,U)||U;let nt,_e=[];for(;U;){if(nt=Le.exec(U),!nt){_e.push(U);break}{_e=_e.concat(nt.slice(1));const ci=_e.pop();if(!ci)break;U=ci}}let xi=re.getTimezoneOffset();G&&(xi=As(G,xi),re=function en(I,U,B){const G=B?-1:1,re=I.getTimezoneOffset();return function hi(I,U){return(I=new Date(I.getTime())).setMinutes(I.getMinutes()+U),I}(I,G*(As(U,re)-re))}(re,G,!0));let ii="";return _e.forEach(ci=>{const tt=function ud(I){if(da[I])return da[I];let U;switch(I){case"G":case"GG":case"GGG":U=St(ue.Eras,me.Abbreviated);break;case"GGGG":U=St(ue.Eras,me.Wide);break;case"GGGGG":U=St(ue.Eras,me.Narrow);break;case"y":U=Ht(te.FullYear,1,0,!1,!0);break;case"yy":U=Ht(te.FullYear,2,0,!0,!0);break;case"yyy":U=Ht(te.FullYear,3,0,!1,!0);break;case"yyyy":U=Ht(te.FullYear,4,0,!1,!0);break;case"Y":U=mr(1);break;case"YY":U=mr(2,!0);break;case"YYY":U=mr(3);break;case"YYYY":U=mr(4);break;case"M":case"L":U=Ht(te.Month,1,1);break;case"MM":case"LL":U=Ht(te.Month,2,1);break;case"MMM":U=St(ue.Months,me.Abbreviated);break;case"MMMM":U=St(ue.Months,me.Wide);break;case"MMMMM":U=St(ue.Months,me.Narrow);break;case"LLL":U=St(ue.Months,me.Abbreviated,he.Standalone);break;case"LLLL":U=St(ue.Months,me.Wide,he.Standalone);break;case"LLLLL":U=St(ue.Months,me.Narrow,he.Standalone);break;case"w":U=Tr(1);break;case"ww":U=Tr(2);break;case"W":U=Tr(1,!0);break;case"d":U=Ht(te.Date,1);break;case"dd":U=Ht(te.Date,2);break;case"c":case"cc":U=Ht(te.Day,1);break;case"ccc":U=St(ue.Days,me.Abbreviated,he.Standalone);break;case"cccc":U=St(ue.Days,me.Wide,he.Standalone);break;case"ccccc":U=St(ue.Days,me.Narrow,he.Standalone);break;case"cccccc":U=St(ue.Days,me.Short,he.Standalone);break;case"E":case"EE":case"EEE":U=St(ue.Days,me.Abbreviated);break;case"EEEE":U=St(ue.Days,me.Wide);break;case"EEEEE":U=St(ue.Days,me.Narrow);break;case"EEEEEE":U=St(ue.Days,me.Short);break;case"a":case"aa":case"aaa":U=St(ue.DayPeriods,me.Abbreviated);break;case"aaaa":U=St(ue.DayPeriods,me.Wide);break;case"aaaaa":U=St(ue.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":U=St(ue.DayPeriods,me.Abbreviated,he.Standalone,!0);break;case"bbbb":U=St(ue.DayPeriods,me.Wide,he.Standalone,!0);break;case"bbbbb":U=St(ue.DayPeriods,me.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":U=St(ue.DayPeriods,me.Abbreviated,he.Format,!0);break;case"BBBB":U=St(ue.DayPeriods,me.Wide,he.Format,!0);break;case"BBBBB":U=St(ue.DayPeriods,me.Narrow,he.Format,!0);break;case"h":U=Ht(te.Hours,1,-12);break;case"hh":U=Ht(te.Hours,2,-12);break;case"H":U=Ht(te.Hours,1);break;case"HH":U=Ht(te.Hours,2);break;case"m":U=Ht(te.Minutes,1);break;case"mm":U=Ht(te.Minutes,2);break;case"s":U=Ht(te.Seconds,1);break;case"ss":U=Ht(te.Seconds,2);break;case"S":U=Ht(te.FractionalSeconds,1);break;case"SS":U=Ht(te.FractionalSeconds,2);break;case"SSS":U=Ht(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":U=vt(se.Short);break;case"ZZZZZ":U=vt(se.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":U=vt(se.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":U=vt(se.Long);break;default:return null}return da[I]=U,U}(ci);ii+=tt?tt(re,B,xi):"''"===ci?"'":ci.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ii}function bt(I,U,B){const G=new Date(0);return G.setFullYear(I,U,B),G.setHours(0,0,0),G}function Ot(I,U){const B=function Ye(I){return(0,w.cg1)(I)[w.wAp.LocaleId]}(I);if(ei[B]=ei[B]||{},ei[B][U])return ei[B][U];let G="";switch(U){case"shortDate":G=Ge(I,Ce.Short);break;case"mediumDate":G=Ge(I,Ce.Medium);break;case"longDate":G=Ge(I,Ce.Long);break;case"fullDate":G=Ge(I,Ce.Full);break;case"shortTime":G=si(I,Ce.Short);break;case"mediumTime":G=si(I,Ce.Medium);break;case"longTime":G=si(I,Ce.Long);break;case"fullTime":G=si(I,Ce.Full);break;case"short":const re=Ot(I,"shortTime"),Me=Ot(I,"shortDate");G=it(jn(I,Ce.Short),[re,Me]);break;case"medium":const _e=Ot(I,"mediumTime"),nt=Ot(I,"mediumDate");G=it(jn(I,Ce.Medium),[_e,nt]);break;case"long":const xi=Ot(I,"longTime"),ii=Ot(I,"longDate");G=it(jn(I,Ce.Long),[xi,ii]);break;case"full":const ci=Ot(I,"fullTime"),tt=Ot(I,"fullDate");G=it(jn(I,Ce.Full),[ci,tt])}return G&&(ei[B][U]=G),G}function it(I,U){return U&&(I=I.replace(/\{([^}]+)}/g,function(B,G){return null!=U&&G in U?U[G]:B})),I}function Tt(I,U,B="-",G,re){let Me="";(I<0||re&&I<=0)&&(re?I=1-I:(I=-I,Me=B));let _e=String(I);for(;_e.length0||nt>-B)&&(nt+=B),I===te.Hours)0===nt&&-12===B&&(nt=12);else if(I===te.FractionalSeconds)return function ji(I,U){return Tt(I,3).substring(0,U)}(nt,U);const xi=Ci(_e,ye.MinusSign);return Tt(nt,U,xi,G,re)}}function St(I,U,B=he.Format,G=!1){return function(re,Me){return function Gt(I,U,B,G,re,Me){switch(B){case ue.Months:return function ai(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.MonthsFormat],G[w.wAp.MonthsStandalone]],U);return qe(Me,B)}(U,re,G)[I.getMonth()];case ue.Days:return function Ft(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DaysFormat],G[w.wAp.DaysStandalone]],U);return qe(Me,B)}(U,re,G)[I.getDay()];case ue.DayPeriods:const _e=I.getHours(),nt=I.getMinutes();if(Me){const ii=function de(I){const U=(0,w.cg1)(I);return kn(U),(U[w.wAp.ExtraData][2]||[]).map(G=>"string"==typeof G?st(G):[st(G[0]),st(G[1])])}(U),ci=function ke(I,U,B){const G=(0,w.cg1)(I);kn(G);const Me=qe([G[w.wAp.ExtraData][0],G[w.wAp.ExtraData][1]],U)||[];return qe(Me,B)||[]}(U,re,G),tt=ii.findIndex(sn=>{if(Array.isArray(sn)){const[gi,_n]=sn,Ee=_e>=gi.hours&&nt>=gi.minutes,yt=_e<_n.hours||_e===_n.hours&&nt<_n.minutes;if(gi.hours<_n.hours){if(Ee&&yt)return!0}else if(Ee||yt)return!0}else if(sn.hours===_e&&sn.minutes===nt)return!0;return!1});if(-1!==tt)return ci[tt]}return function mt(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DayPeriodsFormat],G[w.wAp.DayPeriodsStandalone]],U);return qe(Me,B)}(U,re,G)[_e<12?0:1];case ue.Eras:return function Ke(I,U){return qe((0,w.cg1)(I)[w.wAp.Eras],U)}(U,G)[I.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${B}`)}}(re,Me,I,U,B,G)}}function vt(I){return function(U,B,G){const re=-1*G,Me=Ci(B,ye.MinusSign),_e=re>0?Math.floor(re/60):Math.ceil(re/60);switch(I){case se.Short:return(re>=0?"+":"")+Tt(_e,2,Me)+Tt(Math.abs(re%60),2,Me);case se.ShortGMT:return"GMT"+(re>=0?"+":"")+Tt(_e,1,Me);case se.Long:return"GMT"+(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);case se.Extended:return 0===G?"Z":(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);default:throw new Error(`Unknown zone width "${I}"`)}}}function jr(I){return bt(I.getFullYear(),I.getMonth(),I.getDate()+(4-I.getDay()))}function Tr(I,U=!1){return function(B,G){let re;if(U){const Me=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,_e=B.getDate();re=1+Math.floor((_e+Me)/7)}else{const Me=jr(B),_e=function Ui(I){const U=bt(I,0,1).getDay();return bt(I,0,1+(U<=4?4:11)-U)}(Me.getFullYear()),nt=Me.getTime()-_e.getTime();re=1+Math.round(nt/6048e5)}return Tt(re,I,Ci(G,ye.MinusSign))}}function mr(I,U=!1){return function(B,G){return Tt(jr(B).getFullYear(),I,Ci(G,ye.MinusSign),U)}}const da={};function As(I,U){I=I.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+I)/6e4;return isNaN(B)?U:B}function Gi(I){return I instanceof Date&&!isNaN(I.valueOf())}function ic(I,U){U=encodeURIComponent(U);for(const B of I.split(";")){const G=B.indexOf("="),[re,Me]=-1==G?[B,""]:[B.slice(0,G),B.slice(G+1)];if(re.trim()===U)return decodeURIComponent(Me)}return null}let Fa=(()=>{class I{constructor(B,G,re,Me){this._iterableDiffers=B,this._keyValueDiffers=G,this._ngEl=re,this._renderer=Me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,this._rawClass&&((0,w.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachChangedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachRemovedItem(G=>{G.previousValue&&this._toggleClass(G.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem(G=>{if("string"!=typeof G.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(G.item)}`);this._toggleClass(G.item,!0)}),B.forEachRemovedItem(G=>this._toggleClass(G.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!0)):Object.keys(B).forEach(G=>this._toggleClass(G,!!B[G])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!1)):Object.keys(B).forEach(G=>this._toggleClass(G,!1)))}_toggleClass(B,G){(B=B.trim())&&B.split(/\s+/g).forEach(re=>{G?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),I})();class Pi{constructor(U,B,G,re){this.$implicit=U,this.ngForOf=B,this.index=G,this.count=re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let gr=(()=>{class I{constructor(B,G,re){this._viewContainer=B,this._template=G,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const G=this._viewContainer;B.forEachOperation((re,Me,_e)=>{if(null==re.previousIndex)G.createEmbeddedView(this._template,new Pi(re.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)G.remove(null===Me?void 0:Me);else if(null!==Me){const nt=G.get(Me);G.move(nt,_e),tn(nt,re)}});for(let re=0,Me=G.length;re{tn(G.get(re.currentIndex),re)})}static ngTemplateContextGuard(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),I})();function tn(I,U){I.context.$implicit=U.item}let In=(()=>{class I{constructor(B,G){this._viewContainer=B,this._context=new tr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=G}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){ha("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){ha("ngIfElse",B),this._elseTemplateRef=B,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),I})();class tr{constructor(){this.$implicit=null,this.ngIf=null}}function ha(I,U){if(U&&!U.createEmbeddedView)throw new Error(`${I} must be a TemplateRef, but received '${(0,w.AaK)(U)}'.`)}class ja{constructor(U,B){this._viewContainerRef=U,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(U){U&&!this._created?this.create():!U&&this._created&&this.destroy()}}let qa=(()=>{class I{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const G=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||G,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),G}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let G=0;G{class I{constructor(B,G,re){this.ngSwitch=re,re._addCase(),this._view=new ja(B,G)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(qa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),I})(),Ms=(()=>{class I{constructor(B,G,re){re._addDefault(new ja(B,G))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(qa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchDefault",""]],standalone:!0}),I})(),qr=(()=>{class I{constructor(B,G,re){this._ngEl=B,this._differs=G,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,G){const[re,Me]=B.split("."),_e=-1===re.indexOf("-")?void 0:w.JOm.DashCase;null!=G?this._renderer.setStyle(this._ngEl.nativeElement,re,Me?`${G}${Me}`:G,_e):this._renderer.removeStyle(this._ngEl.nativeElement,re,_e)}_applyChanges(B){B.forEachRemovedItem(G=>this._setStyle(G.key,null)),B.forEachAddedItem(G=>this._setStyle(G.key,G.currentValue)),B.forEachChangedItem(G=>this._setStyle(G.key,G.currentValue))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),I})();function xr(I,U){return new w.vHH(2100,!1)}class rf{createSubscription(U,B){return U.subscribe({next:B,error:G=>{throw G}})}dispose(U){U.unsubscribe()}}class af{createSubscription(U,B){return U.then(B,G=>{throw G})}dispose(U){}}const sf=new af,lf=new rf;let Ju=(()=>{class I{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,G=>this._updateLatestValue(B,G))}_selectStrategy(B){if((0,w.QGY)(B))return sf;if((0,w.F4k)(B))return lf;throw xr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,G){B===this._obj&&(this._latestValue=G,this._ref.markForCheck())}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.sBO,16))},I.\u0275pipe=w.Yjl({name:"async",type:I,pure:!1,standalone:!0}),I})(),Qu=(()=>{class I{transform(B){if(null==B)return null;if("string"!=typeof B)throw xr();return B.toUpperCase()}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275pipe=w.Yjl({name:"uppercase",type:I,pure:!0,standalone:!0}),I})();const df=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let It=(()=>{class I{constructor(B,G){this.locale=B,this.defaultTimezone=G}transform(B,G="mediumDate",re,Me){if(null==B||""===B||B!=B)return null;try{var _e;return Re(B,G,Me||this.locale,null!==(_e=re??this.defaultTimezone)&&void 0!==_e?_e:void 0)}catch(nt){throw xr()}}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.soG,16),w.Y36(df,24))},I.\u0275pipe=w.Yjl({name:"date",type:I,pure:!0,standalone:!0}),I})(),$i=(()=>{class I{constructor(B){this.differs=B,this.keyValues=[],this.compareFn=ws}transform(B,G=ws){if(!B||!(B instanceof Map)&&"object"!=typeof B)return null;this.differ||(this.differ=this.differs.find(B).create());const re=this.differ.diff(B),Me=G!==this.compareFn;return re&&(this.keyValues=[],re.forEachItem(_e=>{this.keyValues.push(function De(I,U){return{key:I,value:U}}(_e.key,_e.currentValue))})),(re||Me)&&(this.keyValues.sort(G),this.compareFn=G),this.keyValues}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.aQg,16))},I.\u0275pipe=w.Yjl({name:"keyvalue",type:I,pure:!1,standalone:!0}),I})();function ws(I,U){const B=I.key,G=U.key;if(B===G)return 0;if(void 0===B)return 1;if(void 0===G)return-1;if(null===B)return 1;if(null===G)return-1;if("string"==typeof B&&"string"==typeof G)return B{class I{}return I.\u0275fac=function(B){return new(B||I)},I.\u0275mod=w.oAB({type:I}),I.\u0275inj=w.cJS({}),I})();const Bt="browser";function rc(I){return I===Bt}function At(I){return"server"===I}let ti=(()=>{class I{}return I.\u0275prov=(0,w.Yz7)({token:I,providedIn:"root",factory:()=>new Ti((0,w.LFG)(R),window)}),I})();class Ti{constructor(U,B){this.document=U,this.window=B,this.offset=()=>[0,0]}setOffset(U){this.offset=Array.isArray(U)?()=>U:U}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(U){this.supportsScrolling()&&this.window.scrollTo(U[0],U[1])}scrollToAnchor(U){if(!this.supportsScrolling())return;const B=function Ar(I,U){const B=I.getElementById(U)||I.getElementsByName(U)[0];if(B)return B;if("function"==typeof I.createTreeWalker&&I.body&&(I.body.createShadowRoot||I.body.attachShadow)){const G=I.createTreeWalker(I.body,NodeFilter.SHOW_ELEMENT);let re=G.currentNode;for(;re;){const Me=re.shadowRoot;if(Me){const _e=Me.getElementById(U)||Me.querySelector(`[name="${U}"]`);if(_e)return _e}re=G.nextNode()}}return null}(this.document,U);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(U){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=U)}}scrollToElement(U){const B=U.getBoundingClientRect(),G=B.left+this.window.pageXOffset,re=B.top+this.window.pageYOffset,Me=this.offset();this.window.scrollTo(G-Me[0],re-Me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const U=br(this.window.history)||br(Object.getPrototypeOf(this.window.history));return!(!U||!U.writable&&!U.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function br(I){return Object.getOwnPropertyDescriptor(I,"scrollRestoration")}class li{}},529:(j,Y,T)=>{"use strict";T.d(Y,{JF:()=>rn,LE:()=>ve,TP:()=>Ft,WM:()=>J,Zn:()=>Ce,eN:()=>Ye,qT:()=>Qe});var w=T(6895),i=T(4650),E=T(9646),x=T(9751),S=T(4351),P=T(9300),R=T(4004);class F{}class q{}class J{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(te=>{const ue=te.indexOf(":");if(ue>0){const Re=te.slice(0,ue),bt=Re.toLowerCase(),Ot=te.slice(ue+1).trim();this.maybeSetNormalizedName(Re,bt),this.headers.has(bt)?this.headers.get(bt).push(Ot):this.headers.set(bt,[Ot])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(te=>{let ue=se[te];const Re=te.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Re,ue),this.maybeSetNormalizedName(te,Re))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const te=this.headers.get(se.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,te){return this.clone({name:se,value:te,op:"a"})}set(se,te){return this.clone({name:se,value:te,op:"s"})}delete(se,te){return this.clone({name:se,value:te,op:"d"})}maybeSetNormalizedName(se,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,se)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(te=>{this.headers.set(te,se.headers.get(te)),this.normalizedNames.set(te,se.normalizedNames.get(te))})}clone(se){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([se]),te}applyUpdate(se){const te=se.name.toLowerCase();switch(se.op){case"a":case"s":let ue=se.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(se.name,te);const Re=("a"===se.op?this.headers.get(te):void 0)||[];Re.push(...ue),this.headers.set(te,Re);break;case"d":const bt=se.value;if(bt){let Ot=this.headers.get(te);if(!Ot)return;Ot=Ot.filter(it=>-1===bt.indexOf(it)),0===Ot.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ot)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>se(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(se){return ge(se)}encodeValue(se){return ge(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const ae=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ge(Le){return encodeURIComponent(Le).replace(ae,(se,te)=>{var ue;return null!==(ue=ie[te])&&void 0!==ue?ue:se})}function Ae(Le){return`${Le}`}class ve{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new ne,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Le,se){const te=new Map;return Le.length>0&&Le.replace(/^\?/,"").split("&").forEach(Re=>{const bt=Re.indexOf("="),[Ot,it]=-1==bt?[se.decodeKey(Re),""]:[se.decodeKey(Re.slice(0,bt)),se.decodeValue(Re.slice(bt+1))],Tt=te.get(Ot)||[];Tt.push(it),te.set(Ot,Tt)}),te}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(te=>{const ue=se.fromObject[te],Re=Array.isArray(ue)?ue.map(Ae):[Ae(ue)];this.map.set(te,Re)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const te=this.map.get(se);return te?te[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,te){return this.clone({param:se,value:te,op:"a"})}appendAll(se){const te=[];return Object.keys(se).forEach(ue=>{const Re=se[ue];Array.isArray(Re)?Re.forEach(bt=>{te.push({param:ue,value:bt,op:"a"})}):te.push({param:ue,value:Re,op:"a"})}),this.clone(te)}set(se,te){return this.clone({param:se,value:te,op:"s"})}delete(se,te){return this.clone({param:se,value:te,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const te=this.encoder.encodeKey(se);return this.map.get(se).map(ue=>te+"="+this.encoder.encodeValue(ue)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const te=new ve({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(se),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const te=("a"===se.op?this.map.get(se.param):void 0)||[];te.push(Ae(se.value)),this.map.set(se.param,te);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let ue=this.map.get(se.param)||[];const Re=ue.indexOf(Ae(se.value));-1!==Re&&ue.splice(Re,1),ue.length>0?this.map.set(se.param,ue):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Qe{constructor(){this.map=new Map}set(se,te){return this.map.set(se,te),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Te(Le){return typeof ArrayBuffer<"u"&&Le instanceof ArrayBuffer}function Se(Le){return typeof Blob<"u"&&Le instanceof Blob}function pt(Le){return typeof FormData<"u"&&Le instanceof FormData}class Ve{constructor(se,te,ue,Re){let bt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function He(Le){switch(Le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Re?(this.body=void 0!==ue?ue:null,bt=Re):bt=ue,bt&&(this.reportProgress=!!bt.reportProgress,this.withCredentials=!!bt.withCredentials,bt.responseType&&(this.responseType=bt.responseType),bt.headers&&(this.headers=bt.headers),bt.context&&(this.context=bt.context),bt.params&&(this.params=bt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Qe),this.params){const Ot=this.params.toString();if(0===Ot.length)this.urlWithParams=te;else{const it=te.indexOf("?");this.urlWithParams=te+(-1===it?"?":itSt.set(Gt,se.setHeaders[Gt]),ji)),se.setParams&&(Ht=Object.keys(se.setParams).reduce((St,Gt)=>St.set(Gt,se.setParams[Gt]),Ht)),new Ve(ue,Re,Ot,{params:Ht,headers:ji,context:fr,reportProgress:Tt,responseType:bt,withCredentials:it})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class he{constructor(se,te=200,ue="OK"){this.headers=se.headers||new J,this.status=void 0!==se.status?se.status:te,this.statusText=se.statusText||ue,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class me extends he{constructor(se={}){super(se),this.type=Ne.ResponseHeader}clone(se={}){return new me({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Ce extends he{constructor(se={}){super(se),this.type=Ne.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new Ce({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ye extends he{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function We(Le,se){return{body:se,headers:Le.headers,context:Le.context,observe:Le.observe,params:Le.params,reportProgress:Le.reportProgress,responseType:Le.responseType,withCredentials:Le.withCredentials}}let Ye=(()=>{class Le{constructor(te){this.handler=te}request(te,ue,Re={}){let bt;if(te instanceof Ve)bt=te;else{let Tt,ji;Tt=Re.headers instanceof J?Re.headers:new J(Re.headers),Re.params&&(ji=Re.params instanceof ve?Re.params:new ve({fromObject:Re.params})),bt=new Ve(te,ue,void 0!==Re.body?Re.body:null,{headers:Tt,context:Re.context,params:ji,reportProgress:Re.reportProgress,responseType:Re.responseType||"json",withCredentials:Re.withCredentials})}const Ot=(0,E.of)(bt).pipe((0,S.b)(Tt=>this.handler.handle(Tt)));if(te instanceof Ve||"events"===Re.observe)return Ot;const it=Ot.pipe((0,P.h)(Tt=>Tt instanceof Ce));switch(Re.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tt.body}));case"blob":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof Blob))throw new Error("Response is not a Blob.");return Tt.body}));case"text":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&"string"!=typeof Tt.body)throw new Error("Response is not a string.");return Tt.body}));default:return it.pipe((0,R.U)(Tt=>Tt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${Re.observe}}`)}}delete(te,ue={}){return this.request("DELETE",te,ue)}get(te,ue={}){return this.request("GET",te,ue)}head(te,ue={}){return this.request("HEAD",te,ue)}jsonp(te,ue){return this.request("JSONP",te,{params:(new ve).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ue={}){return this.request("OPTIONS",te,ue)}patch(te,ue,Re={}){return this.request("PATCH",te,We(Re,ue))}post(te,ue,Re={}){return this.request("POST",te,We(Re,ue))}put(te,ue,Re={}){return this.request("PUT",te,We(Re,ue))}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(F))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class mt{constructor(se,te){this.next=se,this.interceptor=te}handle(se){return this.interceptor.intercept(se,this.next)}}const Ft=new i.OlP("HTTP_INTERCEPTORS");let ai=(()=>{class Le{intercept(te,ue){return ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const mn=/^\)\]\}',?\n/;let la=(()=>{class Le{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(ue=>{const Re=this.xhrFactory.build();if(Re.open(te.method,te.urlWithParams),te.withCredentials&&(Re.withCredentials=!0),te.headers.forEach((Gt,vt)=>Re.setRequestHeader(Gt,vt.join(","))),te.headers.has("Accept")||Re.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const Gt=te.detectContentTypeHeader();null!==Gt&&Re.setRequestHeader("Content-Type",Gt)}if(te.responseType){const Gt=te.responseType.toLowerCase();Re.responseType="json"!==Gt?Gt:"text"}const bt=te.serializeBody();let Ot=null;const it=()=>{if(null!==Ot)return Ot;const Gt=Re.statusText||"OK",vt=new J(Re.getAllResponseHeaders()),er=function lo(Le){return"responseURL"in Le&&Le.responseURL?Le.responseURL:/^X-Request-URL:/m.test(Le.getAllResponseHeaders())?Le.getResponseHeader("X-Request-URL"):null}(Re)||te.url;return Ot=new me({headers:vt,status:Re.status,statusText:Gt,url:er}),Ot},Tt=()=>{let{headers:Gt,status:vt,statusText:er,url:ca}=it(),Ui=null;204!==vt&&(Ui=typeof Re.response>"u"?Re.responseText:Re.response),0===vt&&(vt=Ui?200:0);let jr=vt>=200&&vt<300;if("json"===te.responseType&&"string"==typeof Ui){const Tr=Ui;Ui=Ui.replace(mn,"");try{Ui=""!==Ui?JSON.parse(Ui):null}catch(mr){Ui=Tr,jr&&(jr=!1,Ui={error:mr,text:Ui})}}jr?(ue.next(new Ce({body:Ui,headers:Gt,status:vt,statusText:er,url:ca||void 0})),ue.complete()):ue.error(new ye({error:Ui,headers:Gt,status:vt,statusText:er,url:ca||void 0}))},ji=Gt=>{const{url:vt}=it(),er=new ye({error:Gt,status:Re.status||0,statusText:Re.statusText||"Unknown Error",url:vt||void 0});ue.error(er)};let Ht=!1;const fr=Gt=>{Ht||(ue.next(it()),Ht=!0);let vt={type:Ne.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),"text"===te.responseType&&!!Re.responseText&&(vt.partialText=Re.responseText),ue.next(vt)},St=Gt=>{let vt={type:Ne.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),ue.next(vt)};return Re.addEventListener("load",Tt),Re.addEventListener("error",ji),Re.addEventListener("timeout",ji),Re.addEventListener("abort",ji),te.reportProgress&&(Re.addEventListener("progress",fr),null!==bt&&Re.upload&&Re.upload.addEventListener("progress",St)),Re.send(bt),ue.next({type:Ne.Sent}),()=>{Re.removeEventListener("error",ji),Re.removeEventListener("abort",ji),Re.removeEventListener("load",Tt),Re.removeEventListener("timeout",ji),te.reportProgress&&(Re.removeEventListener("progress",fr),null!==bt&&Re.upload&&Re.upload.removeEventListener("progress",St)),Re.readyState!==Re.DONE&&Re.abort()}})}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.JF))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const pr=new i.OlP("XSRF_COOKIE_NAME"),kn=new i.OlP("XSRF_HEADER_NAME");class de{}let ke=(()=>{class Le{constructor(te,ue,Re){this.doc=te,this.platform=ue,this.cookieName=Re,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(pr))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),be=(()=>{class Le{constructor(te,ue){this.tokenService=te,this.headerName=ue}intercept(te,ue){const Re=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Re.startsWith("http://")||Re.startsWith("https://"))return ue.handle(te);const bt=this.tokenService.getToken();return null!==bt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,bt)})),ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(de),i.LFG(kn))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),qe=(()=>{class Le{constructor(te,ue){this.backend=te,this.injector=ue,this.chain=null}handle(te){if(null===this.chain){const ue=this.injector.get(Ft,[]);this.chain=ue.reduceRight((Re,bt)=>new mt(Re,bt),this.backend)}return this.chain.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(q),i.LFG(i.zs3))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),Jt=(()=>{class Le{static disable(){return{ngModule:Le,providers:[{provide:be,useClass:ai}]}}static withOptions(te={}){return{ngModule:Le,providers:[te.cookieName?{provide:pr,useValue:te.cookieName}:[],te.headerName?{provide:kn,useValue:te.headerName}:[]]}}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[be,{provide:Ft,useExisting:be,multi:!0},{provide:de,useClass:ke},{provide:pr,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Le})(),rn=(()=>{class Le{}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[Ye,{provide:F,useClass:qe},la,{provide:q,useExisting:la}],imports:[Jt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Le})()},4650:(j,Y,T)=>{"use strict";T.d(Y,{$8M:()=>Td,$Z:()=>Xf,AFp:()=>Iu,ALo:()=>gb,AaK:()=>F,AsE:()=>dp,BQk:()=>uu,CHM:()=>Ua,CRH:()=>Eb,CZH:()=>Ou,CqO:()=>K1,D6c:()=>WS,DdM:()=>ub,Dn7:()=>Ab,EJc:()=>Bu,EiD:()=>Og,EpF:()=>P0,F$t:()=>r_,F4k:()=>Q1,FYo:()=>jg,FiY:()=>Ml,G48:()=>HS,Gf:()=>Sb,GfV:()=>Fy,GkF:()=>kl,Gpc:()=>X,Gre:()=>pu,Hsn:()=>a_,Ikx:()=>Kc,JOm:()=>Is,JVY:()=>yy,Jf7:()=>Xy,KtG:()=>Ur,L6k:()=>My,LAX:()=>Sg,LFG:()=>Wi,LSH:()=>Ch,Lbi:()=>Fm,Lck:()=>Yw,MAs:()=>Ie,MGl:()=>cp,MMx:()=>_m,NdJ:()=>k0,O4$:()=>sl,OlP:()=>Si,Oqu:()=>q0,PXZ:()=>hn,Q2q:()=>lp,Q6J:()=>Rt,QGY:()=>hu,QP$:()=>Yl,QbO:()=>zm,Qsj:()=>Vy,R0b:()=>zr,RDi:()=>O,Rgc:()=>Su,SBq:()=>Lh,Sil:()=>TS,Suo:()=>fC,TTD:()=>ws,TgZ:()=>H0,Tol:()=>Mn,Udp:()=>Jc,VKq:()=>hb,WFA:()=>R0,WLB:()=>pb,XFs:()=>be,Xpm:()=>er,Xts:()=>Vf,Y36:()=>Ic,YKP:()=>ab,YNc:()=>du,Yjl:()=>As,Yz7:()=>si,ZZ4:()=>aA,_Bn:()=>rb,_UZ:()=>X1,_Vd:()=>Ca,_c5:()=>qS,_uU:()=>Us,aQg:()=>sA,c2e:()=>_i,cJS:()=>Ci,cg1:()=>P_,d8E:()=>tm,dDg:()=>Xb,dqk:()=>ue,eBb:()=>Of,eFA:()=>VC,ekj:()=>h_,eoX:()=>IC,f3M:()=>mh,g9A:()=>Vm,h0i:()=>zl,hGG:()=>YS,hYB:()=>I0,hij:()=>Ji,iGM:()=>xb,ifc:()=>te,ip1:()=>Rp,kL8:()=>Mw,kcU:()=>th,lG2:()=>ud,lcZ:()=>wm,lqb:()=>Os,lri:()=>Cn,mCW:()=>Nd,n5z:()=>wd,n_E:()=>Yo,oAB:()=>Tr,oJD:()=>Ig,oxw:()=>n_,pB0:()=>If,q3G:()=>ln,qLn:()=>Ph,qOj:()=>w0,qZA:()=>Pl,qzn:()=>Lc,rWj:()=>Jb,s9C:()=>O0,sBO:()=>ZC,sIi:()=>ap,s_b:()=>xp,soG:()=>lt,tb:()=>Ip,tp0:()=>wo,uIk:()=>op,vHH:()=>ie,vpe:()=>os,wAp:()=>Mt,xDo:()=>up,xi3:()=>bb,xp6:()=>Zf,ynx:()=>L0,z2F:()=>Wm,z3N:()=>es,zSh:()=>jd,zs3:()=>is});var w=T(7579),i=T(727),E=T(9751),x=T(6451),S=T(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function R(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function F(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(F).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function q(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function X(p){return p.__forward_ref__=X,p.toString=function(){return F(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===X}class ie extends Error{constructor(m,g){super(function ge(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function Ae(p){return"string"==typeof p?p:null==p?"":String(p)}function Te(p,m){throw new ie(-201,!1)}function ai(p,m){null==p&&function Ke(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function si(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Ci(p){return{providers:p.providers||[],imports:p.imports||[]}}function En(p){return ui(p,pr)||ui(p,de)}function ui(p,m){return p.hasOwnProperty(m)?p[m]:null}function la(p){return p&&(p.hasOwnProperty(kn)||p.hasOwnProperty(ke))?p[kn]:null}const pr=P({\u0275prov:P}),kn=P({\u0275inj:P}),de=P({ngInjectableDef:P}),ke=P({ngInjectorDef:P});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let qe;function ot(p){const m=qe;return qe=p,m}function Jt(p,m,g){const _=En(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&be.Optional?null:void 0!==m?m:void Te(F(p))}function oi(p){return{toString:p}.toString()}var ei=(()=>((ei=ei||{})[ei.OnPush=0]="OnPush",ei[ei.Default=1]="Default",ei))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ot={},it=[],Tt=P({\u0275cmp:P}),ji=P({\u0275dir:P}),Ht=P({\u0275pipe:P}),fr=P({\u0275mod:P}),St=P({\u0275fac:P}),Gt=P({__NG_ELEMENT_ID__:P});let vt=0;function er(p){return oi(()=>{const g=!0===p.standalone,_={},y={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===ei.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||it,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+vt++,styles:p.styles||it,_:null,setInput:null,schemas:p.schemas||null,tView:null},C=p.dependencies,D=p.features;return y.inputs=da(p.inputs,_),y.outputs=da(p.outputs),D&&D.forEach(L=>L(y)),y.directiveDefs=C?()=>("function"==typeof C?C():C).map(Ui).filter(jr):null,y.pipeDefs=C?()=>("function"==typeof C?C():C).map(an).filter(jr):null,y})}function Ui(p){return hi(p)||en(p)}function jr(p){return null!==p}function Tr(p){return oi(()=>({type:p.type,bootstrap:p.bootstrap||it,declarations:p.declarations||it,imports:p.imports||it,exports:p.exports||it,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function da(p,m){if(null==p)return Ot;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],C=y;Array.isArray(y)&&(C=y[1],y=y[0]),g[y]=_,m&&(m[y]=C)}return g}const ud=er;function As(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function hi(p){return p[Tt]||null}function en(p){return p[ji]||null}function an(p){return p[Ht]||null}function Ue(p,m){const g=p[fr]||null;if(!g&&!0===m)throw new Error(`Type ${F(p)} does not have '\u0275mod' property.`);return g}function In(p){return Array.isArray(p)&&"object"==typeof p[1]}function tr(p){return Array.isArray(p)&&!0===p[1]}function ha(p){return 0!=(8&p.flags)}function ja(p){return 2==(2&p.flags)}function qa(p){return 1==(1&p.flags)}function ir(p){return null!==p.template}function Ms(p){return 0!=(256&p[2])}function De(p,m){return p.hasOwnProperty(St)?p[St]:null}class $i{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function ws(){return pa}function pa(p){return p.type.prototype.ngOnChanges&&(p.setInput=Bn),Wa}function Wa(){const p=nr(this),m=p?.current;if(m){const g=p.previous;if(g===Ot)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Bn(p,m,g,_){const y=nr(p)||function tl(p,m){return p[Yr]=m}(p,{previous:Ot,current:null}),C=y.current||(y.current={}),D=y.previous,L=this.declaredInputs[g],k=D[L];C[L]=new $i(k&&k.currentValue,m,D===Ot),p[_]=m}ws.ngInherit=!0;const Yr="__ngSimpleChanges__";function nr(p){return p[Yr]||null}function Nt(p){for(;Array.isArray(p);)p=p[0];return p}function ti(p,m){return Nt(m[p])}function Ti(p,m){return Nt(m[p.index])}function Ar(p,m){return p.data[m]}function mi(p,m){return p[m]}function li(p,m){const g=m[p];return In(g)?g:g[0]}function I(p){return 4==(4&p[2])}function U(p){return 64==(64&p[2])}function G(p,m){return null==m?null:p[m]}function re(p){p[18]=0}function Me(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const _e={lFrame:Ga(null),bindingsEnabled:!0};function sn(){return _e.bindingsEnabled}function Ee(){return _e.lFrame.lView}function yt(){return _e.lFrame.tView}function Ua(p){return _e.lFrame.contextLView=p,p[8]}function Ur(p){return _e.lFrame.contextLView=null,p}function Ii(){let p=fo();for(;null!==p&&64===p.type;)p=p.parent;return p}function fo(){return _e.lFrame.currentTNode}function Bi(p,m){const g=_e.lFrame;g.currentTNode=p,g.isParent=m}function il(){return _e.lFrame.isParent}function nl(){_e.lFrame.isParent=!1}function Nn(){const p=_e.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function fa(){return _e.lFrame.bindingIndex}function vs(){return _e.lFrame.bindingIndex++}function rr(p){const m=_e.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function rl(p,m){const g=_e.lFrame;g.bindingIndex=g.bindingRootIndex=p,ma(m)}function ma(p){_e.lFrame.currentDirectiveIndex=p}function fd(p){const m=_e.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function md(){return _e.lFrame.currentQueryIndex}function ga(p){_e.lFrame.currentQueryIndex=p}function hf(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function al(p,m,g){if(g&be.SkipSelf){let y=m,C=p;for(;!(y=y.parent,null!==y||g&be.Host||(y=hf(C),null===y||(C=C[15],10&y.type))););if(null===y)return!1;m=y,p=C}const _=_e.lFrame=mo();return _.currentTNode=m,_.lView=p,!0}function Ts(p){const m=mo(),g=p[1];_e.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function mo(){const p=_e.lFrame,m=null===p?null:p.child;return null===m?Ga(p):m}function Ga(p){const m={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function lc(){const p=_e.lFrame;return _e.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const cc=lc;function xs(){const p=lc();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Hn(){return _e.lFrame.selectedIndex}function Gr(p){_e.lFrame.selectedIndex=p}function qi(){const p=_e.lFrame;return Ar(p.tView,p.selectedIndex)}function sl(){_e.lFrame.currentNamespace="svg"}function th(){!function ff(){_e.lFrame.currentNamespace=null}()}function go(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const C=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:L,ngAfterViewInit:k,ngAfterViewChecked:V,ngOnDestroy:W}=C;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),L&&((p.contentHooks||(p.contentHooks=[])).push(g,L),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,L)),k&&(p.viewHooks||(p.viewHooks=[])).push(-g,k),V&&((p.viewHooks||(p.viewHooks=[])).push(g,V),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,V)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Ss(p,m,g){hc(p,m,3,g)}function uc(p,m,g,_){(3&p[2])===g&&hc(p,m,g,_)}function $r(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function hc(p,m,g,_){const C=_??-1,D=m.length-1;let L=0;for(let k=void 0!==_?65535&p[18]:0;k=_)break}else m[k]<0&&(p[18]+=65536),(L>11>16&&(3&p[2])===m){p[2]+=2048;try{C.call(L)}finally{}}}else try{C.call(L)}finally{}}class Sr{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function pc(p,m,g){let _=0;for(;_m){D=C-1;break}}}for(;C>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let gc=!0;function cl(p){const m=gc;return gc=p,m}let bc=0;const Er={};function dl(p,m){const g=Ad(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,bd(_.data,p),bd(m,null),bd(_.blueprint,null));const y=Ac(p,m),C=p.injectorIndex;if(_o(y)){const D=bo(y),L=Ao(y,m),k=L[1].data;for(let V=0;V<8;V++)m[C+V]=L[D+V]|k[D+V]}return m[C+8]=y,C}function bd(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Ad(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function Ac(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=vd(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function yc(p,m,g){!function _f(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Gt)&&(_=g[Gt]),null==_&&(_=g[Gt]=bc++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:lh:m}(g);if("function"==typeof C){if(!al(m,p,_))return _&be.Host?yd(y,0,_):Md(m,g,_,y);try{const D=C(_);if(null!=D||_&be.Optional)return D;Te()}finally{cc()}}else if("number"==typeof C){let D=null,L=Ad(p,m),k=-1,V=_&be.Host?m[16][6]:null;for((-1===L||_&be.SkipSelf)&&(k=-1===L?Ac(p,m):m[L+8],-1!==k&&Jr(_,!1)?(D=m[1],L=bo(k),m=Ao(k,m)):L=-1);-1!==L;){const W=m[1];if(fl(C,L,W.data)){const ee=hl(L,m,g,D,_,V);if(ee!==Er)return ee}k=m[L+8],-1!==k&&Jr(_,m[1].data[L+8]===V)&&fl(C,L,m)?(D=W,L=bo(k),m=Ao(k,m)):L=-1}}return y}function hl(p,m,g,_,y,C){const D=m[1],L=D.data[p+8],W=pl(L,D,g,null==_?ja(L)&&gc:_!=D&&0!=(3&L.type),y&be.Host&&C===L);return null!==W?Dr(m,D,W,L):Er}function pl(p,m,g,_,y){const C=p.providerIndexes,D=m.data,L=1048575&C,k=p.directiveStart,W=C>>20,oe=y?L+W:p.directiveEnd;for(let fe=_?L:L+W;fe=k&&xe.type===g)return fe}if(y){const fe=D[k];if(fe&&ir(fe)&&fe.type===g)return k}return null}function Dr(p,m,g,_){let y=p[g];const C=m.data;if(function ih(p){return p instanceof Sr}(y)){const D=y;D.resolving&&function Xe(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function ve(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():Ae(p)}(C[g]));const L=cl(D.canSeeViewProviders);D.resolving=!0;const k=D.injectImpl?ot(D.injectImpl):null;al(p,_,be.Default);try{y=p[g]=D.factory(void 0,C,p,_),m.firstCreatePass&&g>=_.directiveStart&&function gf(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:C}=m.type.prototype;if(_){const D=pa(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),C&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,C),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,C))}(g,C[g],m)}finally{null!==k&&ot(k),cl(L),D.resolving=!1,cc()}}return y}function fl(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[St]||Cd(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const C=y[St]||Cd(y);if(C&&C!==g)return C;y=Object.getPrototypeOf(y)}return C=>new C})}function Cd(p){return le(p)?()=>{const m=Cd(ne(p));return m&&m()}:De(p)}function vd(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function Td(p){return function oh(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const C=g[y];if(sh(C))break;if(0===C)y+=2;else if("number"==typeof C)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(C===m)return g[y+1];y+=2}}}return null}(Ii(),p)}const Ds="__parameters__";function Ja(p,m,g){return oi(()=>{const _=function ml(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...C){if(this instanceof y)return _.apply(this,C),this;const D=new y(...C);return L.annotation=D,L;function L(k,V,W){const ee=k.hasOwnProperty(Ds)?k[Ds]:Object.defineProperty(k,Ds,{value:[]})[Ds];for(;ee.length<=W;)ee.push(null);return(ee[W]=ee[W]||[]).push(D),k}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class Si{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=si({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function yr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?Qa(g,m):m(g))}function dh(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Mo(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function _l(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Ld(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Pd(p,m){const g=Hs(p,m);if(g>=0)return p[1|g]}function Hs(p,m){return function uh(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const C=_+(y-_>>1),D=p[C<m?y=C:_=C+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return $}())||void 0===m?void 0:m.createHTML(p))||p}function Or(p){var m;return(null===(m=function Rr(){if(void 0===on&&(on=null,ue.trustedTypes))try{on=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return on}())||void 0===m?void 0:m.createHTML(p))||p}class vl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _y extends vl{getTypeName(){return"HTML"}}class by extends vl{getTypeName(){return"Style"}}class Tg extends vl{getTypeName(){return"Script"}}class Rf extends vl{getTypeName(){return"URL"}}class xg extends vl{getTypeName(){return"ResourceURL"}}function es(p){return p instanceof vl?p.changingThisBreaksApplicationSecurity:p}function Lc(p,m){const g=function Ay(p){return p instanceof vl&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function yy(p){return new _y(p)}function My(p){return new by(p)}function Of(p){return new Tg(p)}function Sg(p){return new Rf(p)}function If(p){return new xg(p)}class wy{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class Cy{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Nd(m.trim())).join(", ")),this.buf.push(" ",D,'="',Rg(k),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Mh.hasOwnProperty(g)&&!Dg.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Rg(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const Pg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kg=/([^\#-~ |!])/g;function Rg(p){return p.replace(/&/g,"&").replace(Pg,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(kg,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let wh;function Og(p,m){let g=null;try{wh=wh||function bh(p){const m=new Cy(p);return function Ah(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new wy(m):m}(p);let _=m?String(m):"";g=wh.getInertBodyElement(_);let y=5,C=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=C,C=g.innerHTML,g=wh.getInertBodyElement(_)}while(_!==C);return we((new RT).sanitizeChildren(Pc(g)||g))}finally{if(g){const _=Pc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Pc(p){return"content"in p&&function Ey(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ln=(()=>((ln=ln||{})[ln.NONE=0]="NONE",ln[ln.HTML=1]="HTML",ln[ln.STYLE=2]="STYLE",ln[ln.SCRIPT=3]="SCRIPT",ln[ln.URL=4]="URL",ln[ln.RESOURCE_URL=5]="RESOURCE_URL",ln))();function Ig(p){const m=Vd();return m?Or(m.sanitize(ln.HTML,p)||""):Lc(p,"HTML")?Or(es(p)):Og(function z(){return void 0!==H?H:typeof document<"u"?document:void 0}(),Ae(p))}function Ch(p){const m=Vd();return m?m.sanitize(ln.URL,p)||"":Lc(p,"URL")?es(p):Nd(Ae(p))}function Vd(){const p=Ee();return p&&p[12]}const Vf=new Si("ENVIRONMENT_INITIALIZER"),ky=new Si("INJECTOR",-1),vh=new Si("INJECTOR_DEF_TYPES");class Ni{get(m,g=Al){if(g===Al){const _=new Error(`NullInjectorError: No provider for ${F(m)}!`);throw _.name="NullInjectorError",_}return g}}function IT(...p){return{\u0275providers:Tl(0,p)}}function Tl(p,...m){const g=[],_=new Set;let y;return Qa(m,C=>{const D=C;Th(D,g,[],_)&&(y||(y=[]),y.push(D))}),void 0!==y&&Ff(y,g),g}function Ff(p,m){for(let g=0;g{m.push(C)})}}function Th(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,C=la(p);const D=!C&&hi(p);if(C||D){if(D&&!D.standalone)return!1;y=p}else{const k=p.ngModule;if(C=la(k),!C)return!1;y=k}const L=_.has(y);if(D){if(L)return!1;if(_.add(y),D.dependencies){const k="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const V of k)Th(V,m,g,_)}}else{if(!C)return!1;{if(null!=C.imports&&!L){let V;_.add(y);try{Qa(C.imports,W=>{Th(W,m,g,_)&&(V||(V=[]),V.push(W))})}finally{}void 0!==V&&Ff(V,m)}if(!L){const V=De(y)||(()=>new y);m.push({provide:y,useFactory:V,deps:it},{provide:vh,useValue:y,multi:!0},{provide:Vf,useValue:()=>Wi(y),multi:!0})}const k=C.providers;null==k||L||Qa(k,W=>{m.push(W)})}}return y!==p&&void 0!==p.providers}const Ry=P({provide:String,useValue:P});function Qr(p){return null!==p&&"object"==typeof p&&Ry in p}function Do(p){return"function"==typeof p}const jd=new Si("Set Injector scope."),Sh={},Eh={};let qd;function or(){return void 0===qd&&(qd=new Ni),qd}class Os{}class Oy extends Os{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ts(m,D=>this.processProvider(D)),this.records.set(ky,kc(void 0,this)),y.has("environment")&&this.records.set(Os,kc(void 0,this));const C=this.records.get(jd);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get(vh.multi,it,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=Pr(this),_=ot(void 0);try{return m()}finally{Pr(g),ot(_)}}get(m,g=Al,_=be.Default){this.assertNotDestroyed();const y=Pr(this),C=ot(void 0);try{if(!(_&be.SkipSelf)){let L=this.records.get(m);if(void 0===L){const k=function NT(p){return"function"==typeof p||"object"==typeof p&&p instanceof Si}(m)&&En(m);L=k&&this.injectableDefInScope(k)?kc(Yd(m),Sh):null,this.records.set(m,L)}if(null!=L)return this.hydrate(m,L)}return(_&be.Self?or():this.parent).get(m,g=_&be.Optional&&g===Al?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[Mr]=D[Mr]||[]).unshift(F(m)),y)throw D;return function Ef(p,m,g,_){const y=p[Mr];throw m[Tc]&&y.unshift(m[Tc]),p.message=function Df(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=F(m);if(Array.isArray(m))y=m.map(F).join(" -> ");else if("object"==typeof m){let C=[];for(let D in m)if(m.hasOwnProperty(D)){let L=m[D];C.push(D+":"+("string"==typeof L?JSON.stringify(L):F(L)))}y=`{${C.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(Tf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[Mr]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{ot(C),Pr(y)}}resolveInjectorInitializers(){const m=Pr(this),g=ot(void 0);try{const _=this.get(Vf.multi,it,be.Self);for(const y of _)y()}finally{Pr(m),ot(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(F(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=Do(m=ne(m))?m:ne(m&&m.provide);const _=function BT(p){return Qr(p)?kc(void 0,p.useValue):kc(wa(p),Sh)}(m);if(Do(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=kc(void 0,Sh,!0),y.factory=()=>kr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===Sh&&(g.value=Eh,g.value=g.factory()),"object"==typeof g.value&&g.value&&function By(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Yd(p){const m=En(p),g=null!==m?m.factory:De(p);if(null!==g)return g;if(p instanceof Si)throw new ie(204,!1);if(p instanceof Function)return function zf(p){const m=p.length;if(m>0)throw _l(m,"?"),new ie(204,!1);const g=function mn(p){const m=p&&(p[pr]||p[de]);if(m){const g=function lo(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function wa(p,m,g){let _;if(Do(p)){const y=ne(p);return De(y)||Yd(y)}if(Qr(p))_=()=>ne(p.useValue);else if(function Eo(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...kr(p.deps||[]));else if(function Fd(p){return!(!p||!p.useExisting)}(p))_=()=>Wi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function Iy(p){return!!p.deps}(p))return De(y)||Yd(y);_=()=>new y(...kr(p.deps))}return _}function kc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function VT(p){return!!p.\u0275providers}function ts(p,m){for(const g of p)Array.isArray(g)?ts(g,m):VT(g)?ts(g.\u0275providers,m):m(g)}class Ny{}class Dh{resolveComponentFactory(m){throw function FT(p){const m=Error(`No component factory found for ${F(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Ca=(()=>{class p{}return p.NULL=new Dh,p})();function Hh(){return Kr(Ii(),Ee())}function Kr(p,m){return new Lh(Ti(p,m))}let Lh=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Hh,p})();function jT(p){return p instanceof Lh?p.nativeElement:p}class jg{}let Vy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function qT(){const p=Ee(),g=li(Ii().index,p);return(In(g)?g:p)[11]}(),p})(),YT=(()=>{class p{}return p.\u0275prov=si({token:p,providedIn:"root",factory:()=>null}),p})();class Fy{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const WT=new Fy("14.1.2"),qg={};function Zg(p){return p.ngOriginalError}class Ph{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zg(m);for(;g&&Zg(g);)g=Zg(g);return g||null}}const Jg=new Map;let rx=0;const Kg="__ngContext__";function lr(p,m){In(m)?(p[Kg]=m[20],function sx(p){Jg.set(p[20],p)}(m)):p[Kg]=m}function kh(p){const m=p[Kg];return"number"==typeof m?function Xg(p){return Jg.get(p)||null}(m):m||null}function e1(p){const m=kh(p);return m?In(m)?m:m.lView:null}const fx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function Xy(p){return p.ownerDocument.defaultView}function Lo(p){return p instanceof Function?p():p}var Is=(()=>((Is=Is||{})[Is.Important=1]="Important",Is[Is.DashCase=2]="DashCase",Is))();function n1(p,m){return undefined(p,m)}function Rh(p){const m=p[3];return tr(m)?m[3]:m}function r1(p){return tM(p[13])}function a1(p){return tM(p[4])}function tM(p){for(;null!==p&&!tr(p);)p=p[4];return p}function Ud(p,m,g,_,y){if(null!=_){let C,D=!1;tr(_)?C=_:In(_)&&(D=!0,_=_[0]);const L=Nt(_);0===p&&null!==g?null==y?Zi(m,g,L):je(m,g,L,y||null,!0):1===p&&null!==g?je(m,g,L,y||null,!0):2===p?function u1(p,m,g){const _=Vi(p,m);_&&function $d(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,L,D):3===p&&m.destroyNode(L),null!=C&&function oM(p,m,g,_,y){const C=g[7];C!==Nt(g)&&Ud(m,p,_,C,y);for(let L=10;L0&&(p[g-1][4]=_[4]);const C=Mo(p,10+m);!function Cx(p,m){Rc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=C[19];null!==D&&D.detachView(C[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function Gd(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&Rc(p,m,g,3,null,null),function xx(p){let m=p[13];if(!m)return Oh(p[1],p);for(;m;){let g=null;if(In(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)In(m)&&Oh(m[1],m),m=m[3];null===m&&(m=p),In(m)&&Oh(m[1],m),g=m&&m[4]}m=g}}(m)}}function Oh(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function nM(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=V]():_[y=-V].unsubscribe(),C+=2}else{const D=_[y=g[C+1]];g[C].call(D)}if(null!==_){for(let C=y+1;C<_.length;C++)(0,_[C])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&tr(m[3])){g!==m[3]&&o1(g,m);const _=m[19];null!==_&&_.detachView(p)}!function Uy(p){Jg.delete(p[20])}(m)}}function l1(p,m,g){return function rt(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===te.None||y===te.Emulated)return null}return Ti(_,g)}(p,m.parent,g)}function je(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Zi(p,m,g){p.appendChild(m,g)}function qf(p,m,g,_,y){null!==_?je(p,m,g,_,y):Zi(p,m,g)}function Vi(p,m){return p.parentNode(m)}function Yf(p,m,g){return Bh(p,m,g)}let Bh=function c1(p,m,g){return 40&p.type?Ti(p,g):null};function Zd(p,m,g,_){const y=l1(p,_,m),C=m[11],L=Yf(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let k=0;kC?"":y[ee+1].toLowerCase();const fe=8&_?oe:null;if(fe&&-1!==Gf(fe,V,0)||2&_&&V!==oe){if(ea(_))return!1;D=!0}}}}else{if(!D&&!ea(_)&&!ea(k))return!1;if(D&&ea(k))continue;D=!1,_=k|1&_}}return ea(_)||D}function ea(p){return 0==(1&p)}function zh(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let C=!1;for(;y-1)for(g++;g0?'="'+L+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!ea(D)&&(m+=g1(C,y),y=""),_=D,C=C||!ea(_);g++}return""!==y&&(m+=g1(C,y)),m}const Vt={};function Zf(p){_1(yt(),Ee(),Hn()+p,!1)}function _1(p,m,g,_){if(!_)if(3==(3&m[2])){const C=p.preOrderCheckHooks;null!==C&&Ss(m,C,g)}else{const C=p.preOrderHooks;null!==C&&uc(m,C,0,g)}Gr(g)}function AM(p,m=null,g=null,_){const y=Kd(p,m,g,_);return y.resolveInjectorInitializers(),y}function Kd(p,m=null,g=null,_,y=new Set){const C=[g||it,IT(p)];return _=_||("object"==typeof p?void 0:F(p)),new Oy(C,m||or(),_||null,y)}let is=(()=>{class p{static create(g,_){if(Array.isArray(g))return AM({name:""},_,g,"");{var y;const C=null!==(y=g.name)&&void 0!==y?y:"";return AM({name:C},g.parent,g.providers,C)}}}return p.THROW_IF_NOT_FOUND=Al,p.NULL=new Ni,p.\u0275prov=si({token:p,providedIn:"any",factory:()=>Wi(ky)}),p.__NG_ELEMENT_ID__=-1,p})();function Ic(p,m=be.Default){const g=Ee();return null===g?Wi(p,m):ul(Ii(),g,ne(p),m)}function Xf(){throw new Error("invalid")}function Uh(p,m){return p<<17|m<<2}function va(p){return p>>17&32767}function x1(p){return 2|p}function ko(p){return(131068&p)>>2}function S1(p,m){return-131069&p|m<<2}function ns(p){return 1|p}function o0(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&_1(p,m,22,!1),g(_,y)}finally{Gr(C)}}function P1(p,m,g){if(ha(m)){const y=m.directiveEnd;for(let C=m.directiveStart;C0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(L)!=k&&L.push(k),L.push(_,y,D)}}function UM(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function N1(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function $M(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&F1(g)}}function F1(p){for(let _=r1(p);null!==_;_=a1(_))for(let y=10;y<_.length;y++){const C=_[y];if(U(C))if(512&C[2]){const D=C[1];Lt(D,C,D.template,C[8])}else C[5]>0&&F1(C)}const g=p[1].components;if(null!==g)for(let _=0;_0&&F1(y)}}function JM(p,m){const g=li(m,p),_=g[1];(function zc(p,m){for(let g=m.length;gPromise.resolve(null))();function KM(p){return p[7]||(p[7]=[])}function Ha(p){return p.cleanup||(p.cleanup=[])}function Sl(p,m,g){return(null===p||ir(p))&&(g=function dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function ew(p,m){const g=p[9],_=g?g.get(Ph,null):null;_&&_.handleError(m)}function q1(p,m,g,_,y){for(let C=0;C-1&&(An(m,_),Mo(g,_))}this._attachedToViewContainer=!1}Gd(this._lView[1],this._lView)}onDestroy(m){O1(this._lView[1],this._lView,null,m)}markForCheck(){g0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function z1(p,m,g){const _=m[10];_.begin&&_.begin();try{Lt(p,m,p.template,g)}catch(y){throw ew(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Tx(p,m){Rc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class A0 extends ip{constructor(m){super(m),this._view=m}detectChanges(){QM(this._view)}checkNoChanges(){}get context(){return null}}class jc extends Ca{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=hi(m);return new np(g,this.ngModule)}}function El(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class y0{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,qg,_);return y!==qg||g===qg?y:this.parentInjector.get(m,g,_)}}class np extends Ny{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function fM(p){return p.map(pM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return El(this.componentDef.inputs)}get outputs(){return El(this.componentDef.outputs)}create(m,g,_,y){var C;let D=(y=y||this.ngModule)instanceof Os?y:null===(C=y)||void 0===C?void 0:C.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const L=D?new y0(m,D):m,k=L.get(jg,null);if(null===k)throw new ie(407,!1);const V=L.get(YT,null),W=k.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",oe=_?function R1(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(W,_,this.componentDef.encapsulation):s1(k.createRenderer(null,this.componentDef),ee,function tw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(ee)),fe=this.componentDef.onPush?288:272,xe=function Vo(p,m){return{components:[],scheduler:p||fx,clean:Ux,playerHandler:m||null,flags:0}}(),ze=c0(0,null,null,1,0,null,null,null,null,null),Ze=Zh(null,ze,xe,fe,null,null,k,W,V,L,null);let at,wt;Ts(Ze);try{const Oe=function rp(p,m,g,_,y,C){const D=g[1];g[22]=p;const k=au(D,22,2,"#host",null),V=k.mergedAttrs=m.hostAttrs;null!==V&&(_0(k,V,!0),null!==p&&(pc(y,p,V),null!==k.classes&&h1(y,p,k.classes),null!==k.styles&&Jd(y,p,k.styles)));const W=_.createRenderer(p,m),ee=Zh(g,k1(m),null,m.onPush?32:16,g[22],k,_,W,C||null,null,null);return D.firstCreatePass&&(yc(dl(k,g),D,m.type),N1(D,k),V1(k,g.length,1)),Io(g,ee),g[22]=ee}(oe,this.componentDef,Ze,k,W);if(oe)if(_)pc(W,oe,["ng-version",WT.full]);else{const{attrs:xt,classes:qt}=function mM(p){const m=[],g=[];let _=1,y=2;for(;_0&&h1(W,oe,qt.join(" "))}if(wt=Ar(ze,22),void 0!==g){const xt=wt.projection=[];for(let qt=0;qt=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=fc(y.hostAttrs,g=fc(g,y.hostAttrs))}}(_)}function C0(p){return p===Ot?{}:p===it?[]:p}function Y1(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function v0(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,C)=>{m(_,y,C),g(_,y,C)}:m}function W1(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let T0=null;function qc(){if(!T0){const p=ue.Symbol;if(p&&p.iterator)T0=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gL(Nt(qt[_.index])):_.index;let xt=null;if(!L&&k&&(xt=function ow(p,m,g,_){const y=p.cleanup;if(null!=y)for(let C=0;Ck?L[k]:null}"string"==typeof D&&(C+=2)}return null}(p,m,y,_.index)),null!==xt)(xt.__ngLastListenerFn__||xt).__ngNextListenerFn__=C,xt.__ngLastListenerFn__=C,fe=!1;else{C=i_(_,m,ee,C,!1);const qt=g.listen(at,y,C);oe.push(C,qt),W&&W.push(y,Oe,wt,wt+1)}}else C=i_(_,m,ee,C,!1);const xe=_.outputs;let ze;if(fe&&null!==xe&&(ze=xe[y])){const Ze=ze.length;if(Ze)for(let at=0;at0;)m=m[15],p--;return m}(p,_e.lFrame.contextLView))[8]}(p)}function lw(p,m){let g=null;const _=function Xd(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const Hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function c_(p){return p.substring(Hi.key,Hi.keyEnd)}function V0(p,m){const g=Hi.textEnd;return g===m?-1:(m=Hi.keyEnd=function pw(p,m,g){for(;m32;)m++;return m}(p,Hi.key=m,g),Rl(p,m,g))}function Rl(p,m,g){for(;m=0;g=V0(m,g))ar(p,c_(m),!0)}function Fr(p,m,g,_){const y=Ee(),C=yt(),D=rr(2);C.firstUpdatePass&&m_(C,p,D,_),m!==Vt&&Un(y,D,m)&&dn(C,C.data[Hn()],y,y[11],p,y[D+1]=function A_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=F(es(p)))),p}(m,g),_,D)}function cr(p,m,g,_){const y=yt(),C=rr(2);y.firstUpdatePass&&m_(y,null,C,_);const D=Ee();if(g!==Vt&&Un(D,C,g)){const L=y.data[Hn()];if(wn(L,_)&&!f_(y,C)){let k=_?L.classesWithoutHost:L.stylesWithoutHost;null!==k&&(g=q(k,g||"")),Ys(y,L,D,g,_)}else!function gw(p,m,g,_,y,C,D,L){y===Vt&&(y=it);let k=0,V=0,W=0=p.expandoStartIndex}function m_(p,m,g,_){const y=p.data;if(null===y[g+1]){const C=y[Hn()],D=f_(p,g);wn(C,_)&&null===m&&!D&&(m=!1),m=function z0(p,m,g,_){const y=fd(p);let C=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=Xc(g=j0(null,p,m,g,_),m.attrs,_),C=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=j0(y,p,m,g,_),null===C){let k=function g_(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==ko(_))return p[va(_)]}(p,m,_);void 0!==k&&Array.isArray(k)&&(k=j0(null,p,m,k[1],_),k=Xc(k,m.attrs,_),function Ol(p,m,g,_){p[va(g?m.classBindings:m.styleBindings)]=_}(p,m,_,k))}else C=function Qn(p,m,g){let _;const y=m.directiveEnd;for(let C=1+m.directiveStylingLast;C0)&&(V=!0)}else W=g;if(y)if(0!==k){const oe=va(p[L+1]);p[_+1]=Uh(oe,L),0!==oe&&(p[oe+1]=S1(p[oe+1],_)),p[L+1]=function gt(p,m){return 131071&p|m<<17}(p[L+1],_)}else p[_+1]=Uh(L,0),0!==L&&(p[L+1]=S1(p[L+1],_)),L=_;else p[_+1]=Uh(k,0),0===L?L=_:p[k+1]=S1(p[k+1],_),k=_;V&&(p[_+1]=x1(p[_+1])),N0(p,W,_,!0),N0(p,W,_,!1),function dw(p,m,g,_,y){const C=y?p.residualClasses:p.residualStyles;null!=C&&"string"==typeof m&&Hs(C,m)>=0&&(g[_+1]=ns(g[_+1]))}(m,W,p,_,C),D=Uh(L,k),C?m.classBindings=D:m.styleBindings=D}(y,C,m,g,D,_)}}function j0(p,m,g,_,y){let C=null;const D=g.directiveEnd;let L=g.directiveStylingLast;for(-1===L?L=g.directiveStart:L++;L0;){const k=p[y],V=Array.isArray(k),W=V?k[1]:k,ee=null===W;let oe=g[y+1];oe===Vt&&(oe=ee?it:void 0);let fe=ee?Pd(oe,_):W===_?oe:void 0;if(V&&!Pa(fe)&&(fe=Pd(k,_)),Pa(fe)&&(L=fe,D))return L;const xe=p[y+1];y=D?va(xe):ko(xe)}if(null!==m){let k=C?m.residualClasses:m.residualStyles;null!=k&&(L=Pd(k,_))}return L}function Pa(p){return void 0!==p}function wn(p,m){return 0!=(p.flags&(m?16:32))}function Us(p,m=""){const g=Ee(),_=yt(),y=p+22,C=_.firstCreatePass?au(_,y,1,m,null):_.data[y],D=g[y]=function jf(p,m){return p.createText(m)}(g[11],m);Zd(_,g,D,C),Bi(C,!1)}function q0(p){return Ji("",p,""),q0}function Ji(p,m,g){const _=Ee(),y=lu(_,p,m,g);return y!==Vt&&No(_,Hn(),y),Ji}function dp(p,m,g,_,y){const C=Ee(),D=cu(C,p,m,g,_,y);return D!==Vt&&No(C,Hn(),D),dp}function up(p,m,g,_,y,C,D,L,k,V,W){const ee=Ee(),oe=Wc(ee,p,m,g,_,y,C,D,L,k,V,W);return oe!==Vt&&No(ee,Hn(),oe),up}function pu(p,m,g){cr(ar,Ws,lu(Ee(),p,m,g),!0)}function Kc(p,m,g){const _=Ee();return Un(_,vs(),m)&&Br(yt(),qi(),_,p,m,_[11],g,!0),Kc}function tm(p,m,g){const _=Ee();if(Un(_,vs(),m)){const C=yt(),D=qi();Br(C,D,_,p,m,Sl(fd(C.data),D,_),g,!0)}return tm}const Gs=void 0;var iS=["en",[["a","p"],["AM","PM"],Gs],[["AM","PM"],Gs,Gs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Gs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Gs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Gs,"{1} 'at' {0}",Gs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function yw(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let fu={};function P_(p){const m=function Cw(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=ww(m);if(g)return g;const _=m.split("-")[0];if(g=ww(_),g)return g;if("en"===_)return iS;throw new ie(701,!1)}function Mw(p){return P_(p)[Mt.PluralCase]}function ww(p){return p in fu||(fu[p]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[p]),fu[p]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const jo="en-US";let im=jo;function eb(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let C=0;C>20;if(Do(p)||!p.multi){const fe=new Sr(k,y,Ic),xe=Mp(L,m,y?W:W+oe,ee);-1===xe?(yc(dl(V,D),C,L),vu(C,p,m.length),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(fe),D.push(fe)):(g[xe]=fe,D[xe]=fe)}else{const fe=Mp(L,m,W+oe,ee),xe=Mp(L,m,W,W+oe),ze=fe>=0&&g[fe],Ze=xe>=0&&g[xe];if(y&&!Ze||!y&&!ze){yc(dl(V,D),C,L);const at=function nb(p,m,g,_,y){const C=new Sr(p,g,Ic);return C.multi=[],C.index=m,C.componentProviders=0,tb(C,y,_&&!g),C}(y?Fl:ib,g.length,y,_,k);!y&&Ze&&(g[xe].providerFactory=at),vu(C,p,m.length,0),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(at),D.push(at)}else vu(C,p,fe>-1?fe:xe,tb(g[y?xe:fe],k,!y&&_));!y&&_&&Ze&&g[xe].componentProviders++}}}function vu(p,m,g,_){const y=Do(m),C=function zd(p){return!!p.useClass}(m);if(y||C){const k=(C?ne(m.useClass):m).prototype.ngOnDestroy;if(k){const V=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=V.indexOf(g);-1===W?V.push(g,[_,k]):V[W+1].push(_,k)}else V.push(g,k)}}}function tb(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Mp(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function ib(p,m,g,_){return mm(this.multi,[])}function Fl(p,m,g,_){const y=this.multi;let C;if(this.providerFactory){const D=this.providerFactory.componentProviders,L=Dr(g,g[1],this.providerFactory.index,_);C=L.slice(0,D),mm(y,C);for(let k=D;k{g.providersResolver=(_,y)=>function qw(p,m,g){const _=yt();if(_.firstCreatePass){const y=ir(p);eb(g,_.data,_.blueprint,y,!0),eb(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class zl{}class ab{}function Yw(p,m){return new Tu(p,m??null)}class Tu extends zl{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new jc(this);const _=Ue(m);this._bootstrapComponents=Lo(_.bootstrap),this._r3Injector=Kd(m,g,[{provide:zl,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],F(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class gm extends ab{constructor(m){super(),this.moduleType=m}create(m){return new Tu(this.moduleType,m)}}class sb extends zl{constructor(m,g,_){super(),this.componentFactoryResolver=new jc(this),this.instance=null;const y=new Oy([...m,{provide:zl,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],g||or(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function _m(p,m,g=null){return new sb(p,m,g).injector}function ub(p,m,g){const _=Nn()+p,y=Ee();return y[_]===Vt?Nr(y,_,g?m.call(g):m()):function js(p,m){return p[m]}(y,_)}function hb(p,m,g,_){return nC(Ee(),Nn(),p,m,g,_)}function pb(p,m,g,_,y){return ym(Ee(),Nn(),p,m,g,_,y)}function vp(p,m){const g=p[m];return g===Vt?void 0:g}function nC(p,m,g,_,y,C){const D=m+g;return Un(p,D,y)?Nr(p,D+1,C?_.call(C,y):_(y)):vp(p,D+1)}function ym(p,m,g,_,y,C,D){const L=m+g;return Dl(p,L,y,C)?Nr(p,L+2,D?_.call(D,y,C):_(y,C)):vp(p,L+2)}function ed(p,m,g,_,y,C,D,L){const k=m+g;return function sp(p,m,g,_,y){const C=Dl(p,m,g,_);return Un(p,m+2,y)||C}(p,k,y,C,D)?Nr(p,k+3,L?_.call(L,y,C,D):_(y,C,D)):vp(p,k+3)}function gb(p,m){const g=yt();let _;const y=p+22;g.firstCreatePass?(_=function _b(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const C=_.factory||(_.factory=De(_.type)),D=ot(Ic);try{const L=cl(!1),k=C();return cl(L),function J1(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Ee(),y,k),k}finally{ot(D)}}function wm(p,m,g){const _=p+22,y=Ee(),C=mi(y,_);return xu(y,_)?nC(y,Nn(),m,C.transform,g,C):C.transform(g)}function bb(p,m,g,_){const y=p+22,C=Ee(),D=mi(C,y);return xu(C,y)?ym(C,Nn(),m,D.transform,g,_,D):D.transform(g,_)}function Ab(p,m,g,_,y){const C=p+22,D=Ee(),L=mi(D,C);return xu(D,C)?ed(D,Nn(),m,L.transform,g,_,y,L):L.transform(g,_,y)}function xu(p,m){return p[1].data[m].pure}function yb(p){return m=>{setTimeout(p,void 0,m)}}const os=class sC extends w.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,C=g||(()=>null),D=_;if(m&&"object"==typeof m){var L,k,V;const ee=m;y=null===(L=ee.next)||void 0===L?void 0:L.bind(ee),C=null===(k=ee.error)||void 0===k?void 0:k.bind(ee),D=null===(V=ee.complete)||void 0===V?void 0:V.bind(ee)}this.__isAsync&&(C=yb(C),y&&(y=yb(y)),D&&(D=yb(D)));const W=super.subscribe({next:y,error:C,complete:D});return m instanceof i.w0&&m.add(W),W}};function Tp(){return this._results[qc()]()}class Yo{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=qc(),_=Yo.prototype;_[g]||(_[g]=Tp)}get changes(){return this._changes||(this._changes=new os)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=yr(m);(this._changesDetected=!function Mg(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Mb,p})();const oC=Su,fS=class extends oC{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Zh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(_)),Jh(_,y,m),new ip(y)}};function Mb(){return Eu(Ii(),Ee())}function Eu(p,m){return 4&p.type?new fS(m,p,Kr(p,m)):null}let xp=(()=>{class p{}return p.__NG_ELEMENT_ID__=mS,p})();function mS(){return Tb(Ii(),Ee())}const wb=xp,Cb=class extends wb{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return Kr(this._hostTNode,this._hostLView)}get injector(){return new Hr(this._hostTNode,this._hostLView)}get parentInjector(){const m=Ac(this._hostTNode,this._hostLView);if(_o(m)){const g=Ao(m,this._hostLView),_=bo(m);return new Hr(g[1].data[_+8],g)}return new Hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=vb(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,C;"number"==typeof _?y=_:null!=_&&(y=_.index,C=_.injector);const D=m.createEmbeddedView(g||{},C);return this.insert(D,y),D}createComponent(m,g,_,y,C){const D=m&&!function yo(p){return"function"==typeof p}(m);let L;if(D)L=g;else{const ee=g||{};L=ee.index,_=ee.injector,y=ee.projectableNodes,C=ee.environmentInjector||ee.ngModuleRef}const k=D?m:new np(hi(m)),V=_||this.parentInjector;if(!C&&null==k.ngModule){const oe=(D?V:this.parentInjector).get(Os,null);oe&&(C=oe)}const W=k.create(V,y,void 0,C);return this.insert(W.hostView,L),W}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return tr(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const ee=_[3],oe=new Cb(ee,ee[6],ee[3]);oe.detach(oe.indexOf(m))}}const C=this._adjustIndex(g),D=this._lContainer;!function Sx(p,m,g,_){const y=10+_,C=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[L/2]);else{const V=C[L+1],W=m[-k];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Ul,this.reject=Ul,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{C.subscribe({complete:L,error:k})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Wi(Rp,8))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Iu=new Si("AppId",{providedIn:"root",factory:function Bm(){return`${Op()}${Op()}${Op()}`}});function Op(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vm=new Si("Platform Initializer"),Fm=new Si("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ip=new Si("appBootstrapListener"),zm=new Si("AnimationModuleType");let _i=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const lt=new Si("LocaleId",{providedIn:"root",factory:()=>mh(lt,be.Optional|be.SkipSelf)||function wS(){return typeof $localize<"u"&&$localize.locale||jo}()}),Bu=new Si("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Bp{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let TS=(()=>{class p{compileModuleSync(g){return new gm(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),C=Lo(Ue(g).declarations).reduce((D,L)=>{const k=hi(L);return k&&D.push(new np(k)),D},[]);return new Bp(_,C)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const PC=(()=>Promise.resolve(0))();function Np(p){typeof Zone>"u"?PC.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class zr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new os(!1),this.onMicrotaskEmpty=new os(!1),this.onStable=new os(!1),this.onError=new os(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new C("Angular"))}Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function jm(){let p=ue.requestAnimationFrame,m=ue.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Nu(p){const m=()=>{!function RC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ue,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,qm(p),p.isCheckStableRunning=!0,Uo(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),qm(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,C,D,L)=>{try{return Zb(p),g.invokeTask(y,C,D,L)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||p.shouldCoalesceRunChangeDetection)&&m(),zi(p)}},onInvoke:(g,_,y,C,D,L,k)=>{try{return Zb(p),g.invoke(y,C,D,L,k)}finally{p.shouldCoalesceRunChangeDetection&&m(),zi(p)}},onHasTask:(g,_,y,C)=>{g.hasTask(y,C),_===y&&("microTask"==C.change?(p._hasPendingMicrotasks=C.microTask,qm(p),Uo(p)):"macroTask"==C.change&&(p.hasPendingMacrotasks=C.macroTask))},onHandleError:(g,_,y,C)=>(g.handleError(y,C),p.runOutsideAngular(()=>p.onError.emit(C)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!zr.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(zr.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const C=this._inner,D=C.scheduleEventTask("NgZoneEvent: "+y,m,kC,Ul,Ul);try{return C.runTask(D,g,_)}finally{C.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const kC={};function Uo(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function qm(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Zb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function zi(p){p._nesting--,Uo(p)}class OC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new os,this.onMicrotaskEmpty=new os,this.onStable=new os,this.onError=new os}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}const Cn=new Si(""),Jb=new Si("");let Ym,Xb=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ym||(function BC(p){Ym=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{zr.assertNotInAngularZone(),Np(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Np(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let C=-1;_&&_>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==C),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:C,updateCb:y})}whenStable(g,_,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Wi(zr),Wi(IC),Wi(Jb))},p.\u0275prov=si({token:p,factory:p.\u0275fac}),p})(),IC=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){var y,C;return null!==(y=null===(C=Ym)||void 0===C?void 0:C.findTestabilityInTree(this,g,_))&&void 0!==y?y:null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),Go=null;const Qb=new Si("AllowMultipleToken"),Oi=new Si("PlatformDestroyListeners");class hn{constructor(m,g){this.name=m,this.token=g}}function VC(p,m,g=[]){const _=`Platform: ${m}`,y=new Si(_);return(C=[])=>{let D=eA();if(!D||D.injector.get(Qb,!1)){const L=[...g,...C,{provide:y,useValue:!0}];p?p(L):function NC(p){if(Go&&!Go.get(Qb,!1))throw new ie(400,!1);Go=p;const m=p.get(zC);(function Kb(p){const m=p.get(Vm,null);m&&m.forEach(g=>g())})(p)}(function FC(p=[],m){return is.create({name:m,providers:[{provide:jd,useValue:"platform"},{provide:Oi,useValue:new Set([()=>Go=null])},...p]})}(L,_))}return function ES(p){const m=eA();if(!m)throw new ie(401,!1);return m}()}}function eA(){var p,m;return null!==(p=null===(m=Go)||void 0===m?void 0:m.get(zC))&&void 0!==p?p:null}let zC=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function DS(p,m){let g;return g="noop"===p?new OC:("zone.js"===p?void 0:p)||new zr(m),g}(_?.ngZone,function jC(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),C=[{provide:zr,useValue:y}];return y.run(()=>{const D=is.create({providers:C,parent:this.injector,name:g.moduleType.name}),L=g.create(D),k=L.injector.get(Ph,null);if(!k)throw new ie(402,!1);return y.runOutsideAngular(()=>{const V=y.onError.subscribe({next:W=>{k.handleError(W)}});L.onDestroy(()=>{Fp(this._modules,L),V.unsubscribe()})}),function qC(p,m,g){try{const _=g();return hu(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(k,y,()=>{const V=L.injector.get(Ou);return V.runInitializers(),V.donePromise.then(()=>(function fp(p){ai(p,"Expected localeId to be defined"),"string"==typeof p&&(im=p.toLowerCase().replace(/_/g,"-"))}(L.injector.get(lt,jo)||jo),this._moduleDoBootstrap(L),L))})})}bootstrapModule(g,_=[]){const y=YC({},_);return function SS(p,m,g){const _=new gm(g);return Promise.resolve(_)}(0,0,g).then(C=>this.bootstrapModuleFactory(C,y))}_moduleDoBootstrap(g){const _=g.injector.get(Wm);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Oi,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Wi(is))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function YC(p,m){return Array.isArray(m)?m.reduce(YC,p):{...p,...m}}let Wm=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new E.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),D=new E.y(L=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{zr.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{zr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{k.unsubscribe(),V.unsubscribe()}});this.isStable=(0,x.T)(C,D.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Ny;if(!this._injector.get(Ou).done)throw!y&&Yl(g),new ie(405,false);let D;D=y?g:this._injector.get(Ca).resolveComponentFactory(g),this.componentTypes.push(D.componentType);const L=function vn(p){return p.isBoundToModule}(D)?void 0:this._injector.get(zl),V=D.create(is.NULL,[],_||D.selector,L),W=V.location.nativeElement,ee=V.injector.get(Cn,null);return ee?.registerApplication(W),V.onDestroy(()=>{this.detachView(V.hostView),Fp(this.components,V),ee?.unregisterApplication(W)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;Fp(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Ip,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Fp(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Wi(zr),Wi(Os),Wi(Ph))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Fp(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let UC=!0;function HS(){UC=!1}let ZC=(()=>{class p{}return p.__NG_ELEMENT_ID__=JC,p})();function JC(p){return function kS(p,m,g){if(ja(p)&&!g){const _=li(p.index,m);return new ip(_,_)}return 47&p.type?new ip(m[16],m):null}(Ii(),Ee(),16==(16&p))}class ev{constructor(){}supports(m){return ap(m)}create(m){return new VS(m)}}const nA=(p,m)=>m;class VS{constructor(m){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=m||nA}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,C=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,L),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,L,D,y)),Object.is(g.item,L)||this._addIdentityChange(g,L)):(g=this._mismatch(g,L,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let C;return null===m?C=this._itTail:(C=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,C,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,C,y)):m=this._addAfter(new tv(g,_),C,y),m}_verifyReinsertion(m,g,_,y){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==C?m=this._reinsertAfter(C,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,C=m._nextRemoved;return null===y?this._removalsHead=C:y._nextRemoved=C,null===C?this._removalsTail=y:C._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new iv),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iv),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class tv{constructor(m,g){this.item=m,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class FS{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class iv{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new FS,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rA(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const C=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,C)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const C=y._prev,D=y._next;return C&&(C._next=D),D&&(D._prev=C),y._next=null,y._prev=null,y}const _=new rv(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class rv{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function av(){return new aA([new ev])}let aA=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||av()),deps:[[p,new wo,new Ml]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:av}),p})();function sv(){return new sA([new Gm])}let sA=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||sv()),deps:[[p,new wo,new Ml]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:sv}),p})();const qS=VC(null,"core",[]);let YS=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Wi(Wm))},p.\u0275mod=Tr({type:p}),p.\u0275inj=Ci({}),p})();function WS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class j extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return j.\u0275fac=function(){let Y;return function(w){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(j)))(w||j)}}(),j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class j{constructor(){this.data=new Map}getItem(T){return this.data.get(T)}removeItem(T){this.data.delete(T)}setItem(T,w){this.data.set(T,w)}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class ReceivedTokens{}class OAuthEvent{constructor(Y){this.type=Y}}class OAuthSuccessEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthInfoEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthErrorEvent extends OAuthEvent{constructor(Y,T,w=null){super(Y),this.reason=T,this.params=w}}function b64DecodeUnicode(j){const Y=j.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(Y).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(j){return btoa(j).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(Y){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=T=>{location.href=T},Y&&Object.assign(this,Y)}}class WebHttpUrlEncodingCodec{encodeKey(Y){return encodeURIComponent(Y)}encodeValue(Y){return encodeURIComponent(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(Y){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let w=T.inferHashAlgorithm(Y.idTokenHeader),i=yield T.calcHash(Y.accessToken,w),x=base64UrlEncode(i.substr(0,i.length/2)),S=Y.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(Y){let T=Y.alg;if(!T.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+T);return"sha-"+T.substr(2)}}let UrlHelperService=(()=>{class j{getHashFragmentParams(T){let w=T||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(T){const w={};let i,E,x,S,P,R,F;if(null===T)return w;i=T.split("&");for(let q=0;q>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&j.charCodeAt(++w)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);j=E}else{if("object"!==i)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR)}j.length>64&&(j=new Sha256(Y,!0).update(j).array());var R=[],F=[];for(w=0;w<64;++w){var q=j[w]||0;R[w]=92^q,F[w]=54^q}Sha256.call(this,Y,T),this.update(F),this.oKeyPad=R,this.inner=!0,this.sharedMemory=T}Sha256.prototype.update=function(j){if(!this.finalized){var Y,T=typeof j;if("string"!==T){if("object"!==T)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR);Y=!0}for(var w,E,i=0,x=j.length,S=this.blocks;i>2]|=j[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var j=this.blocks,Y=this.lastByteIndex;j[16]=this.block,j[Y>>2]|=EXTRA[3&Y],this.block=j[16],Y>=56&&(this.hashed||this.hash(),j[0]=this.block,j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0),j[14]=this.hBytes<<3|this.bytes>>>29,j[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var R,X,ae,ie,ge,Ae,j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(R=16;R<64;++R)P[R]=P[R-16]+(((X=P[R-15])>>>7|X<<25)^(X>>>18|X<<14)^X>>>3)+P[R-7]+(((X=P[R-2])>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)<<0;for(Ae=Y&T,R=0;R<64;R+=4)this.first?(this.is224?(ae=300032,S=(X=P[0]-1413257819)-150054599<<0,w=X+24177077<<0):(ae=704751109,S=(X=P[0]-210244248)-1521486534<<0,w=X+143694565<<0),this.first=!1):(S=w+(X=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&x)+K[R]+P[R])<<0,w=X+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((ae=j&Y)^j&T^Ae))<<0),x=T+(X=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+P[R+1])<<0,T=X+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ie=w&j)^w&Y^ae))<<0,E=Y+(X=E+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[R+2]+P[R+2])<<0,Y=X+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ge=T&w)^T&j^ie))<<0,i=j+(X=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&x^~E&S)+K[R+3]+P[R+3])<<0,j=X+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((Ae=Y&T)^Y&w^ge))<<0;this.h0=this.h0+j<<0,this.h1=this.h1+Y<<0,this.h2=this.h2+T<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j]+HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=[j>>24&255,j>>16&255,j>>8&255,255&j,Y>>24&255,Y>>16&255,Y>>8&255,255&Y,T>>24&255,T>>16&255,T>>8&255,255&T,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,x>>24&255,x>>16&255,x>>8&255,255&x];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var j=new ArrayBuffer(this.is224?28:32),Y=new DataView(j);return Y.setUint32(0,this.h0),Y.setUint32(4,this.h1),Y.setUint32(8,this.h2),Y.setUint32(12,this.h3),Y.setUint32(16,this.h4),Y.setUint32(20,this.h5),Y.setUint32(24,this.h6),this.is224||Y.setUint32(28,this.h7),j},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var j=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(j),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(j){if("string"!=typeof j)throw new TypeError("expected string");var Y,T=j,w=new Uint8Array(T.length);for(Y=0;Y{class j{calcHash(T,w){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(T)))})()}toHashString2(T){let w="";for(let i of T)w+=String.fromCharCode(i);return w}toHashString(T){const w=new Uint8Array(T);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})(),OAuthService=(()=>{class j extends AuthConfig{constructor(T,w,i,E,x,S,P,R,F,q){super(),this.ngZone=T,this.http=w,this.config=x,this.urlHelper=S,this.logger=P,this.crypto=R,this.dateTimeService=q,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=F,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ne){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ne)}if(this.checkLocalStorageAccessable()){var J,X;const ne=null===(J=window)||void 0===J||null===(X=J.navigator)||void 0===X?void 0:X.userAgent;(ne?.includes("MSIE ")||ne?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const T="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(T,T),localStorage.removeItem(T),0))}catch{return!1}}configure(T){Object.assign(this,new AuthConfig,T),this.config=Object.assign({},new AuthConfig,T),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(T={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?E=!0:"logout"===x.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==w||"any"===w||x.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{E&&this.refreshInternal(T,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(T,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(T,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(T=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(T))}loadDiscoveryDocumentAndLogin(T=null){return this.loadDiscoveryDocumentAndTryLogin(T=T||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof T.state?T.state:""),!1))}debug(...T){this.showDebugInformation&&this.logger.debug.apply(this.logger,T)}validateUrlFromDiscoveryDocument(T){const w=[],i=this.validateUrlForHttps(T),E=this.validateUrlAgainstIssuer(T);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(T){if(!T)return!0;const w=T.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(T,w){if(!T)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(T))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(T){return!this.strictDiscoveryDocumentValidation||!T||T.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const T=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,T);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const T=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,T);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(T,w){const i=this.dateTimeService.now();return Math.max(0,(w-T)*this.timeoutFactor-(i-T))}setStorage(T){this._storage=T,this.configChanged()}loadDiscoveryDocument(T=null){return new Promise((w,i)=>{T||((T=this.issuer||"").endsWith("/")||(T+="/"),T+=".well-known/openid-configuration"),this.validateUrlForHttps(T)?this.http.get(T).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:x});this.eventsSubject.next(P),w(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((T,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),T(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):T(null)})}validateDiscoveryDocument(T){let w;return this.skipIssuerCheck||T.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(T.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!T.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+T.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(T,w,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((T,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let x=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.sub!==S.sub))return void w("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:T,password:w},i)}fetchTokenUsingGrant(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",T).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(x,this.customQueryParams[x]);for(const x of Object.keys(w))E=E.set(x,w[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(R=>{this.storeIdToken(R),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((T,w)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),w(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=T=>{const w=this.processMessageEventMessage(T);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(T={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(T.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,T).then(q=>{x.setAttribute("src",q),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>q instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>"token_received"===q.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,R,F]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(q=>{if(q instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===q.type||(q=new OAuthErrorEvent("silent_refresh_error",q)),this.eventsSubject.next(q),q;return"token_received"===q.type&&(q=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(q)),q})).toPromise()}initImplicitFlowInPopup(T){return this.initLoginFlowInPopup(T)}initLoginFlowInPopup(T){return T=T||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let P,S=null;T.windowRef?T.windowRef&&!T.windowRef.closed&&(S=T.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(T));const R=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{q(),i(!0)},le=>{q(),E(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(q(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const q=()=>{window.clearInterval(P),window.removeEventListener("storage",X),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",X),R(le)):console.log("false event firing")},X=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),R(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",X)}))}calculatePopupFeatures(T){const w=T.height||470,i=T.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(T){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!T||!T.data||"string"!=typeof T.data)return;const i=T.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=T=>{const w=T.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(T.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",T)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",T)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(T=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(T=>{this.debug("token refresh after session change worked")}).catch(T=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"silently_refreshed"===T.type||"silent_refresh_timeout"===T.type||"silent_refresh_error"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(T=>{"silently_refreshed"!==T.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const T=this.document.getElementById(this.sessionCheckIFrameName);T&&this.document.body.removeChild(T);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const T=this.document.getElementById(this.sessionCheckIFrameName);T||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),T.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(T="",w="",i="",E=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let R;R=i||S.redirectUri;const F=yield S.createAndSaveNonce();if(T=T?F+S.config.nonceStateSeparator+encodeURIComponent(T):F,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const q=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let X=P.loginUrl+q+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(T)+"&redirect_uri="+encodeURIComponent(R)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),X+="&code_challenge="+ne,X+="&code_challenge_method=S256"}w&&(X+="&login_hint="+encodeURIComponent(w)),P.resource&&(X+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(X+="&nonce="+encodeURIComponent(F)),E&&(X+="&prompt=none");for(const ne of Object.keys(x))X+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))X+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return X})()}initImplicitFlowInternal(T="",w=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(T="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(T,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(T,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(T){const w=this;if(T.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};T.onTokenReceived(i)}}storeAccessTokenResponse(T,w,i,E,x){if(this._storage.setItem("access_token",T),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,R=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+R)}w&&this._storage.setItem("refresh_token",w),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(T=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(T).then(w=>!0):this.tryLoginImplicitFlow(T)}parseQueryString(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):{}}tryLoginCodeFlow(T=null){var w=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(T=T||{}).customHashFragment?T.customHashFragment.substring(1):window.location.search,E=w.getCodePartsFromUrl(i),x=E.code,S=E.state,P=E.session_state;if(!T.preventClearHashAfterLogin){const q=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,q)}let[R,F]=w.parseState(S);if(w.state=F,E.error){w.debug("error trying to login"),w.handleLoginError(T,E);const q=new OAuthErrorEvent("code_error",{},E);return w.eventsSubject.next(q),Promise.reject(q)}if(!T.disableNonceCheck){if(!R)return w.saveRequestedRoute(),Promise.resolve();if(!T.disableOAuth2StateCheck&&!w.validateNonce(R)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return w.eventsSubject.next(J),Promise.reject(J)}return w.storeSessionState(P),x&&(yield w.getTokenFromCode(x,T),w.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const T=this._storage.getItem("requested_route");T&&history.replaceState(null,"",window.location.origin+T)}getCodePartsFromUrl(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(T,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",T).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(T,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(T=T.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(T=T.set("client_secret",this.dummyClientSecret)),new Promise((E,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))T=T.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,T,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),x(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),x(S)})})}tryLoginImplicitFlow(T=null){let w;w=(T=T||{}).customHashFragment?this.urlHelper.getHashFragmentParams(T.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,x]=this.parseState(i);if(this.state=x,w.error){this.debug("error trying to login"),this.handleLoginError(T,w);const q=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(q),Promise.reject(q)}const S=w.access_token,P=w.id_token,R=w.session_state,F=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!T.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!R&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!T.disableNonceCheck&&!this.validateNonce(E)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F),this.oidc?this.processIdToken(P,S,T.disableNonceCheck).then(q=>T.validationHandler?T.validationHandler({accessToken:S,idClaims:q.idTokenClaims,idToken:q.idToken,state:i}).then(J=>q):q).then(q=>(this.storeIdToken(q),this.storeSessionState(R),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(T),this.inImplicitFlow=!1,!0)).catch(q=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),this.logger.error("Error validating tokens"),this.logger.error(q),Promise.reject(q))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(T),Promise.resolve(!0))}parseState(T){let w=T,i="";if(T){const E=T.indexOf(this.config.nonceStateSeparator);E>-1&&(w=T.substr(0,E),i=T.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(T){let w;return w=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===T||(console.error("Validating access_token failed, wrong state/nonce.",w,T),!1)}storeIdToken(T){this._storage.setItem("id_token",T.idToken),this._storage.setItem("id_token_claims_obj",T.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+T.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(T){this._storage.setItem("session_state",T)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(T,w){T.onLoginError&&T.onLoginError(w),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(T=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:T}processIdToken(T,w,i=!1){const E=T.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),F=b64DecodeUnicode(this.padBase64(E[1])),q=JSON.parse(F);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(q.aud)){if(q.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+q.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(q.aud!==this.clientId){const ge="Wrong audience: "+q.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!q.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==q.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${q.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!q.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&q.iss!==this.issuer){const ge="Wrong issuer: "+q.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!i&&q.nonce!==J){const ge="Wrong nonce: "+q.nonce;return this.logger.warn(ge),Promise.reject(ge)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!q.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const X=this.dateTimeService.now(),ne=1e3*q.iat,le=1e3*q.exp,ae=this.getClockSkewInMsec();if(ne-ae>=X||le+ae<=X){const ge="Token has expired";return console.error(ge),console.error({now:X,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(ge)}const ie={accessToken:w,idToken:T,jwks:this.jwks,idTokenClaims:q,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(ge=>({idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return this.checkSignature(ie).then(Ae=>{const Xe={idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?Xe:this.checkAtHash(ie).then(Qe=>{if(this.requestAccessToken&&!Qe){const He="Wrong at_hash";return this.logger.warn(He),Promise.reject(He)}return Xe})})})}getIdentityClaims(){const T=this._storage.getItem("id_token_claims_obj");return T?JSON.parse(T):null}getGrantedScopes(){const T=this._storage.getItem("granted_scopes");return T?JSON.parse(T):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(T){for(;T.length%4!=0;)T+="=";return T}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const T=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(T&&parseInt(T,10)=0&&null!==this._storage.getItem(T)?JSON.parse(this._storage.getItem(T)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(T={},w=""){let i=!1;"boolean"==typeof T&&(i=T,T={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let x;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)x=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),w&&(S=S.set("state",w)));for(let R in T)S=S.set(R,T[R]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const T=this;return this.createNonce().then(function(w){return T.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",w):T._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const T=this.document.getElementById(this.silentRefreshIFrameName);T&&T.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(T=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>w.charCodeAt(P%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(T,w))}initCodeFlowInternal(T="",w={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!T.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const w=yield T.createNonce();return[base64UrlEncode(yield T.crypto.calcHash(w,"sha-256")),w]})()}extractRecognizedCustomParameters(T){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{T[i]&&w.set(i,JSON.stringify(T[i]))}),w}revokeTokenAndLogout(T={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),x=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const R=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+R)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const R of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(R,this.customQueryParams[R]);return new Promise((R,F)=>{let q,J;if(E){let X=S.set("token",E).set("token_type_hint","access_token");q=this.http.post(i,X,{headers:P})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let X=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,X,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(X=>0===X.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(X))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(X=>0===X.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(X)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([q,J]).subscribe(X=>{this.logOut(T),R(X),this.logger.info("Token successfully revoked")},X=>{this.logger.error("Error revoking token",X),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",X)),F(X)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return j.\u0275fac=function(T){return new(T||j)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(Y){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Y)}}let DefaultOAuthInterceptor=(()=>{class j{constructor(T,w,i){this.oAuthService=T,this.errorHandler=w,this.moduleConfig=i}checkUrl(T){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(T):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>T.toLowerCase().startsWith(w.toLowerCase()))}intercept(T,w){const i=T.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=T.headers.set("Authorization","Bearer "+x);T=T.clone({headers:P})}return w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):w.handle(T)}}return j.\u0275fac=function(T){return new(T||j)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class NullValidationHandler{validateSignature(Y){return Promise.resolve(null)}validateAtHash(Y){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class j{static forRoot(T=null,w=NullValidationHandler){return{ngModule:j,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:T},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:j}),j.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),j})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(j,Y,T)=>{"use strict";function w(E,x,S,P,R,F,q){try{var J=E[F](q),X=J.value}catch(ne){return void S(ne)}J.done?x(X):Promise.resolve(X).then(P,R)}function i(E){return function(){var x=this,S=arguments;return new Promise(function(P,R){var F=E.apply(x,S);function q(X){w(F,P,R,q,J,"next",X)}function J(X){w(F,P,R,q,J,"throw",X)}q(void 0)})}}T.d(Y,{Z:()=>i})},1128:j=>{"use strict";j.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:j=>{"use strict";j.exports={i8:"9.2.0"}}},j=>{j(j.s=1573)}]); \ No newline at end of file +(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{1573:(j,Y,T)=>{"use strict";var w=T(6895),i=T(4650);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class x extends E{static makeCurrent(){(0,w.HT)(new x)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function F(n){R=R||document.createElement("a"),R.setAttribute("href",n);const a=R.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let R,S=null;const q=new i.OlP("TRANSITION_ID"),X=[{provide:i.ip1,useFactory:function J(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ae=new i.OlP("EventManagerPlugins");let ie=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),ve=(()=>{class n extends Ae{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,r.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Xe),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Xe))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Xe(n){(0,w.q)().remove(n)}const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},He=/%COMP%/g;function he(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ye=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new We(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new ai(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new Ke(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=he(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ie),i.LFG(ve),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class We{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Qe[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){(Ft(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(Ft(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Qe[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Qe[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,me(t)):this.eventManager.addEventListener(a,e,me(t))}}function Ft(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class ai extends We{constructor(a,e,t,r){super(a),this.component=t;const l=he(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Ve(n){return"_ngcontent-%COMP%".replace(He,n)}(r+"-"+t.id),this.hostAttr=function Ne(n){return"_nghost-%COMP%".replace(He,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ke extends We{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=he(r.id,r.styles,[]);for(let c=0;c{class n extends ge{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Sn=["alt","control","meta","shift"],si={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},jn={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let En=(()=>{class n extends ge{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),c=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let c="";if(Sn.forEach(o=>{const d=t.indexOf(o);d>-1&&(t.splice(d,1),c+=o+".")}),c+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=c,s}static getEventFullKey(e){let t="",r=function ui(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&jn.hasOwnProperty(a)&&(a=jn[a]))}return si[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Sn.forEach(l=>{l!=r&&(0,Ci[l])(e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const be=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function fr(){x.makeCurrent()},multi:!0},{provide:w.K0,useFactory:function de(){return(0,i.RDi)(document),document},deps:[]}]),qe=new i.OlP(""),st=[{provide:i.rWj,useClass:class ne{addToWindow(a){i.dqk.getAngularTestability=(t,r=!0)=>{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,c=!1;const s=function(o){c=c||o,l--,0==l&&t(c)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){return null==e?null:a.getTestability(e)??(t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null)}},deps:[]},{provide:i.lri,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b,i.eoX,i.rWj]}],ot=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function kn(){return new i.qLn},deps:[]},{provide:ae,useClass:Ki,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ae,useClass:En,multi:!0,deps:[w.K0]},{provide:ye,useClass:ye,deps:[ie,ve,i.AFp]},{provide:i.FYo,useExisting:ye},{provide:Ae,useExisting:ve},{provide:ve,useClass:ve,deps:[w.K0]},{provide:ie,useClass:ie,deps:[ae,i.R0b]},{provide:w.JF,useClass:le,deps:[]},[]];let Jt=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:q,useExisting:i.AFp},X]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qe,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[...ot,...st],imports:[w.ez,i.hGG]}),n})(),se=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Le(){return new se((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();typeof window<"u"&&window;let Gi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(ct),t},providedIn:"root"}),n})(),ct=(()=>{class n extends Gi{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function et(n){return new ct(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=T(529);class Kt{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const zt=new i.OlP("basePath");class Je{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Xt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attributes[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,c,s,o,d,u,h,f,b="body",N=!1,Q){let pe=new M.LE({encoder:this.encoder});null!=e&&(pe=this.addToHttpParams(pe,e,"attributeName")),null!=t&&(pe=this.addToHttpParams(pe,t,"attributeId")),null!=r&&(pe=this.addToHttpParams(pe,r,"facility")),null!=l&&(pe=this.addToHttpParams(pe,l,"user")),null!=c&&(pe=this.addToHttpParams(pe,c,"vo")),null!=s&&(pe=this.addToHttpParams(pe,s,"resource")),null!=o&&(pe=this.addToHttpParams(pe,o,"member")),null!=d&&(pe=this.addToHttpParams(pe,d,"group")),null!=u&&(pe=this.addToHttpParams(pe,u,"host")),null!=h&&(pe=this.addToHttpParams(pe,h,"userExtSource")),null!=f&&(pe=this.addToHttpParams(pe,f,"key"));let _t,Pe=this.defaultHeaders;_t=this.configuration.lookupCredential("BasicAuth"),_t&&(Pe=Pe.set("Authorization","Basic "+_t)),_t=this.configuration.lookupCredential("BearerAuth"),_t&&(Pe=Pe.set("Authorization","Bearer "+_t));let kt=Q&&Q.httpHeaderAccept;void 0===kt&&(kt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==kt&&(Pe=Pe.set("Accept",kt));let Ut=Q&&Q.context;void 0===Ut&&(Ut=new M.qT);let oa="json";return kt&&(oa=kt.startsWith("text")?"text":this.configuration.isJsonMime(kt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Ut,params:pe,responseType:oa,withCredentials:this.configuration.withCredentials,headers:Pe,observe:b,reportProgress:N})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,c,s,o,d,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=d&&(b=this.addToHttpParams(b,d,"userExtSource"));let Q,N=this.defaultHeaders;Q=this.configuration.lookupCredential("BasicAuth"),Q&&(N=N.set("Authorization","Basic "+Q)),Q=this.configuration.lookupCredential("BearerAuth"),Q&&(N=N.set("Authorization","Bearer "+Q));let pe=f&&f.httpHeaderAccept;void 0===pe&&(pe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==pe&&(N=N.set("Accept",pe));let Pe=f&&f.context;void 0===Pe&&(Pe=new M.qT);let _t="json";return pe&&(_t=pe.startsWith("text")?"text":this.configuration.isJsonMime(pe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Pe,params:b,responseType:_t,withCredentials:this.configuration.withCredentials,headers:N,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attrName")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"keys[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=l&&(u=this.addToHttpParams(u,l,"member")),null!=c&&(u=this.addToHttpParams(u,c,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=r&&(d=this.addToHttpParams(d,r,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),null!=t&&(d=this.addToHttpParams(d,t,"group")),null!=r&&(d=this.addToHttpParams(d,r,"member")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=c&&(h=this.addToHttpParams(h,c,"member")),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}removeAttributesForFacilityResourceUserMember(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"group")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attributes[]")}),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeResourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attributes[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeVoAttribute(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ht=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"role")),null!=t&&(o=this.addToHttpParams(o,t,"complementaryObjectId")),null!=r&&(o=this.addToHttpParams(o,r,"complementaryObjectName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"specificAttributes")}),null!=c&&(h=this.addToHttpParams(h,c,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"name"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"parentGroup")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}createGroupWithVoNameDescription(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}deleteGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"members[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getGroupUnions(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getGroupsWhereMemberIsActive(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getGroupsWhereMemberIsActive.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsWhereMemberIsActive`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"groupId")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"destinationGroup")),null!=e&&(s=this.addToHttpParams(s,e,"movingGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),On=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"members[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}findCompleteRichMembersForGroup(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"attrsNames[]")}),c&&c.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedStatuses[]")}),s&&s.forEach(Pe=>{h=this.addToHttpParams(h,Pe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}findCompleteRichMembersForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"allowedStatuses[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),null!=r&&(d=this.addToHttpParams(d,r,"searchString")),null!=l&&(d=this.addToHttpParams(d,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getAllMembers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(pe=>{u=this.addToHttpParams(u,pe,"allowedStatuses[]")}),l&&l.forEach(pe=>{u=this.addToHttpParams(u,pe,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),c&&c.forEach(pe=>{u=this.addToHttpParams(u,pe,"attrsNames[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),r&&r.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrsNames[]")}),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"allowedStatuses[]")}),r&&r.forEach(N=>{o=this.addToHttpParams(o,N,"attrsNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extLogin")),null!=r&&(o=this.addToHttpParams(o,r,"extSourceName"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"ids[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}moveMembership(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"sourceUser")),null!=r&&(o=this.addToHttpParams(o,r,"targetUser"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}removeSponsor(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=r&&(d=this.addToHttpParams(d,r,"emailAttributeURN")),null!=l&&(d=this.addToHttpParams(d,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=c&&(u=this.addToHttpParams(u,c,"baseUrl"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"sponsoredMember")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}setStatus(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateSponsorshipValidity(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"memberId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"queue")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"voId")),null!=t&&(d=this.addToHttpParams(d,t,"queue")),null!=r&&(d=this.addToHttpParams(d,r,"subject")),null!=l&&(d=this.addToHttpParams(d,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nc=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarRichIdentities(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarRichIdentities`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputConsolidate was null or undefined when calling consolidate.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/consolidate`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"state[]")}),null!=r&&(d=this.addToHttpParams(d,r,"dateFrom")),null!=l&&(d=this.addToHttpParams(d,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"reason"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let d=new M.LE({encoder:this.encoder});null!=r&&(d=this.addToHttpParams(d,r,"voId")),null!=l&&(d=this.addToHttpParams(d,l,"name")),null!=e&&(d=this.addToHttpParams(d,e,"email")),null!=t&&(d=this.addToHttpParams(d,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}sendInvitationForGroup(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=c&&(u=this.addToHttpParams(u,c,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",c=!1,s){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId")),null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}sendInvitationToExistingUser(e,t,r="body",l=!1,c){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ja=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}addAdminToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(N=>{o=this.addToHttpParams(o,N,"groups[]")}),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}assignGroupToResource(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(pe=>{u=this.addToHttpParams(u,pe,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let u=new M.LE({encoder:this.encoder});e&&e.forEach(pe=>{u=this.addToHttpParams(u,pe,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=c&&(u=this.addToHttpParams(u,c,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputCopyResource was null or undefined when calling copyResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResource(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"facility")),null!=r&&(d=this.addToHttpParams(d,r,"name")),null!=l&&(d=this.addToHttpParams(d,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMailingServiceRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMailingServiceRichResourcesWithMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getMailingServiceRichResourcesWithMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAssignments(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"name"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getResourcesWhereUserIsAdmin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"user"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getRichAdmins(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource")),t&&t.forEach(Q=>{d=this.addToHttpParams(d,Q,"specificAttributes")}),null!=r&&(d=this.addToHttpParams(d,r,"allUserAttributes")),null!=l&&(d=this.addToHttpParams(d,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputSetBan was null or undefined when calling setResourceBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputUpdateResource was null or undefined when calling updateResource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputUpdateBan was null or undefined when calling updateResourceBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter inputUpdateResourceTag was null or undefined when calling updateResourceTag.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangeNonAuthzPasswordByToken was null or undefined when calling changeNonAuthzPasswordByToken.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changeNonAuthzPassword/token`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForLogin was null or undefined when calling changePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}changePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputChangePasswordForUser was null or undefined when calling changePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/changePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCheckPasswordStrength was null or undefined when calling checkPasswordStrength.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createAlternativePassword(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAlternativePassword was null or undefined when calling createAlternativePassword.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createAlternativePassword`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"loginNamespace")),null!=r&&(o=this.addToHttpParams(o,r,"passwordId"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"attrsNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,c="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo")),null!=t&&(d=this.addToHttpParams(d,t,"extSourceName")),null!=r&&(d=this.addToHttpParams(d,r,"extLogin")),l&&l.forEach(Q=>{d=this.addToHttpParams(d,Q,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let N="json";return f&&(N=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:d,responseType:N,withCredentials:this.configuration.withCredentials,headers:u,observe:c,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"userExtSource")),null!=r&&(o=this.addToHttpParams(o,r,"force"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,r,l,c,s,o="body",d=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=c&&(h=this.addToHttpParams(h,c,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let N=u&&u.httpHeaderAccept;void 0===N&&(N=this.configuration.selectHeaderAccept(["application/json"])),void 0!==N&&(f=f.set("Accept",N));let Q=u&&u.context;void 0===Q&&(Q=new M.qT);let pe="json";return N&&(pe=N.startsWith("text")?"text":this.configuration.isJsonMime(N)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:Q,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:d})}reservePasswordForLogin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForLogin was null or undefined when calling reservePasswordForLogin.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/login`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reservePasswordForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputReservePasswordForUser was null or undefined when calling reservePasswordForUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/reservePassword/user`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}reserveRandomPassword(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setLogin(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling setLogin.");if(null==t)throw new Error("Required parameter login was null or undefined when calling setLogin.");if(null==r)throw new Error("Required parameter namespace was null or undefined when calling setLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"login")),null!=r&&(o=this.addToHttpParams(o,r,"namespace"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/setLogin`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_r=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Je,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Kt}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),null!=r&&(o=this.addToHttpParams(o,r,"maxNumOfResults"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}findCandidatesForGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getCompleteCandidatesForVo(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(N=>{o=this.addToHttpParams(o,N,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,c,s="body",o=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==c)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(pe=>{u=this.addToHttpParams(u,pe,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=c&&(u=this.addToHttpParams(u,c,"onlyDirectAdmins"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=d&&d.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let N=d&&d.context;void 0===N&&(N=new M.qT);let Q="json";return b&&(Q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:N,params:u,responseType:Q,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",c=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role")),null!=r&&(o=this.addToHttpParams(o,r,"onlyDirectAdmins"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(d=d.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:c})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"shortName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let c=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{c=this.addToHttpParams(c,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let d="json";return s&&(d=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:d,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let d,o=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(o=o.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(o=o.set("Authorization","Bearer "+d));let u=c&&c.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=c&&c.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(s=s.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return d&&(h=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:c,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let s,c=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(c=c.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(c=c.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(c=c.set("Accept",o));let d=l&&l.context;void 0===d&&(d=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(c=c.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:d,responseType:f,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt,8),i.LFG(Je,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var It=(()=>{return(n=It||(It={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",It;var n})();let Ua=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER,It.FACILITYADMIN,It.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(It.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(It.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(It.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(It.PERUNADMIN,It.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(It.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(It.PERUNADMIN,It.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(It.PERUNADMIN,It.VOOBSERVER,It.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(It.PERUNADMIN,It.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let c=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const N of Object.keys(b.entitiesToManage))o="User"===N?[N].concat(o):o.concat(N);break}const d=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(c,d),h=this.resolveAuthorization(s,d);r.set(l,{readAuth:u,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const c of Object.keys(r)){const s=r[c];if(null===s)this.principalRoles.has(c)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(c,s,o)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const c=r.shift();if(t.has(c))continue;const s=this.getPerunPolicy(c);if(!s)return[];t.set(c,s),r=r.concat(s.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{(0,Wr.Xf)(n()).subscribe(a)})}var il=T(9635),Zn=T(2843),Ur=T(515),Bt=T(727),Wn=T(4482),br=T(5403);function Ts(){return(0,Wn.e)((n,a)=>{let e=null;n._refCount++;const t=(0,br.x)(a,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,l=e;e=null,r&&(!l||r===l)&&r.unsubscribe(),a.unsubscribe()});n.subscribe(t),t.closed||(e=n.connect())})}class ac extends Bn.y{constructor(a,e){super(),this.source=a,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,Wn.A)(a)&&(this.lift=a.lift)}_subscribe(a){return this.getSubject().subscribe(a)}getSubject(){const a=this._subject;return(!a||a.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:a}=this;this._subject=this._connection=null,a?.unsubscribe()}connect(){let a=this._connection;if(!a){a=this._connection=new Bt.w0;const e=this.getSubject();a.add(this.source.subscribe((0,br.x)(e,void 0,()=>{this._teardown(),e.complete()},t=>{this._teardown(),e.error(t)},()=>this._teardown()))),a.closed&&(this._connection=null,a=Bt.w0.EMPTY)}return a}refCount(){return Ts()(this)}}var At=T(4004),Nt=T(3900),dt=T(5698),fo=T(3269);function ti(...n){const a=(0,fo.yG)(n);return(0,Wn.e)((e,t)=>{(a?(0,Ga.z)(n,e,a):(0,Ga.z)(n,e)).subscribe(t)})}var Ti=T(5577),Ar=T(590),yr=T(4351),mi=T(8505),li=T(262);function I(n,a,e,t,r){return(l,c)=>{let s=e,o=a,d=0;l.subscribe((0,br.x)(c,u=>{const h=d++;o=s?n(o,u,h):(s=!0,u),t&&c.next(o)},r&&(()=>{s&&c.next(o),c.complete()})))}}function U(n,a){return(0,Wn.e)(I(n,a,arguments.length>=2,!0))}function B(n){return n<=0?()=>Ur.E:(0,Wn.e)((a,e)=>{let t=[];a.subscribe((0,br.x)(e,r=>{t.push(r),n{for(const r of t)e.next(r);e.complete()},void 0,()=>{t=null}))})}var G=T(8068),re=T(6590),Me=T(4671);function _e(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,Yt.h)((r,l)=>n(r,l,t)):Me.y,B(1),e?(0,re.d)(a):(0,G.T)(()=>new vs.K))}function nt(n,a=!1){return(0,Wn.e)((e,t)=>{let r=0;e.subscribe((0,br.x)(t,l=>{const c=n(l,r++);(c||a)&&t.next(l),!c&&t.complete()}))})}var xi=T(9718);function ii(n){return(0,Wn.e)((a,e)=>{try{a.subscribe(e)}finally{e.add(n)}})}var ci=T(8189);const tt="primary";class sn{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function gi(n){return new sn(n)}function _n(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Gr(n){return Array.prototype.concat.apply([],n)}function Ii(n){return n.length>0?n[n.length-1]:null}function ki(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function Bi(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,Dn.D)(Promise.resolve(n)):(0,$e.of)(n)}const gg={exact:function Nn(n,a,e){if(!ga(n.segments,a.segments)||!rr(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Nn(n.children[t],a.children[t],e))return!1;return!0},subset:lc},sc={exact:function oc(n,a){return yt(n,a)},subset:function ma(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>$a(n[e],a[e]))},ignored:()=>!0};function uf(n,a,e){return gg[e.paths](n.root,a.root,e.matrixParams)&&sc[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function lc(n,a,e){return xs(n,a,a.segments,e)}function xs(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!ga(r,e)||a.hasChildren()||!rr(r,e,t))}if(n.segments.length===e.length){if(!ga(n.segments,e)||!rr(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!lc(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(ga(n.segments,r)&&rr(n.segments,r,t)&&n.children[tt])&&xs(n.children[tt],a,l,t)}}function rr(n,a,e){return a.every((t,r)=>sc[e](n[r].parameters,t.parameters))}class di{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return hf.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ki(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return sl(this)}}class al{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return uc(this)}}function ga(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}let gd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return new _a},providedIn:"root"}),n})();class _a{parse(a){const e=new gf(a);return new di(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ss(a.root,!0)}`,t=function $r(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Za(e)}=${Za(r)}`).join("&"):`${Za(e)}=${Za(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function cc(n){return encodeURI(n)}(a.fragment)}`:""}`}}const hf=new _a;function sl(n){return n.segments.map(a=>uc(a)).join("/")}function Ss(n,a){if(!n.hasChildren())return sl(n);if(a){const e=n.children[tt]?Ss(n.children[tt],!1):"",t=[];return ki(n.children,(r,l)=>{l!==tt&&t.push(`${l}:${Ss(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function md(n,a){let e=[];return ki(n.children,(t,r)=>{r===tt&&(e=e.concat(a(t,r)))}),ki(n.children,(t,r)=>{r!==tt&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===tt?[Ss(n.children[tt],!1)]:[`${r}:${Ss(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[tt]?`${sl(n)}/${e[0]}`:`${sl(n)}/(${e.join("//")})`}}function go(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Za(n){return go(n).replace(/%3B/gi,";")}function dc(n){return go(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Es(n){return decodeURIComponent(n)}function eh(n){return Es(n.replace(/\+/g,"%20"))}function uc(n){return`${dc(n.path)}${function Hn(n){return Object.keys(n).map(a=>`;${dc(a)}=${dc(n[a])}`).join("")}(n.parameters)}`}const qi=/^[^\/()?;=#]+/;function ol(n){const a=n.match(qi);return a?a[0]:""}const pf=/^[^=?&#]+/,ff=/^[^&#]+/;class gf{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[tt]=new Wt(a,e)),t}parseSegment(){const a=ol(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new i.vHH(4009,!1);return this.capture(a),new al(Es(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=ol(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=ol(this.remaining);r&&(t=r,this.capture(t))}a[Es(e)]=Es(t)}parseQueryParam(a){const e=function th(n){const a=n.match(pf);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function mf(n){const a=n.match(ff);return a?a[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const r=eh(e),l=eh(t);if(a.hasOwnProperty(r)){let c=a[r];Array.isArray(c)||(c=[c],a[r]=c),c.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=ol(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new i.vHH(4010,!1);let l;t.indexOf(":")>-1?(l=t.slice(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=tt);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[tt]:new Wt([],c),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new i.vHH(4011,!1)}}function _o(n){return n.segments.length>0?new Wt([],{[tt]:n}):n}function Ds(n){const a={};for(const t of Object.keys(n.children)){const l=Ds(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function hc(n){if(1===n.numberOfChildren&&n.children[tt]){const a=n.children[tt];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}function Zr(n){return n instanceof di}function ih(n,a,e,t,r){var l;if(0===e.length)return ba(a.root,a.root,a.root,t,r);const c=function ah(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new rh(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return ki(l.outlets,(o,d)=>{s[d]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===c?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new rh(e,a,t)}(e);if(c.toRoot())return ba(a.root,a.root,new Wt([],{}),t,r);const o=function s(u){var h;const f=function sh(n,a,e,t){if(n.isAbsolute)return new cl(a.root,!0,0);if(-1===t)return new cl(e,e===a.root,0);return function _d(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new i.vHH(4005,!1);r=t.segments.length}return new cl(t,!1,r-l)}(e,t+(ll(n.commands[0])?0:1),n.numberOfDoubleDots)}(c,a,null===(h=n.snapshot)||void 0===h?void 0:h._urlSegment,u),b=f.processChildren?bo(f.segmentGroup,f.index,c.commands):gc(f.segmentGroup,f.index,c.commands);return ba(a.root,f.segmentGroup,b,t,r)}(null===(l=n.snapshot)||void 0===l?void 0:l._lastPathIndex);return o}function ll(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Jr(n){return"object"==typeof n&&null!=n&&n.outlets}function ba(n,a,e,t,r){let c,l={};t&&ki(t,(o,d)=>{l[d]=Array.isArray(o)?o.map(u=>`${u}`):`${o}`}),c=n===a?e:nh(n,a,e);const s=_o(Ds(c));return new di(s,l,r)}function nh(n,a,e){const t={};return ki(n.children,(r,l)=>{t[l]=r===a?e:nh(r,a,e)}),new Wt(n.segments,t)}class rh{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&ll(t[0]))throw new i.vHH(4003,!1);const r=t.find(Jr);if(r&&r!==Ii(t))throw new i.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cl{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function gc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return bo(n,a,e);const t=function Ao(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const c=n.segments[r],s=e[t];if(Jr(s))break;const o=`${s}`,d=t0&&void 0===o)break;if(o&&d&&"object"==typeof d&&void 0===d.outlets){if(!dl(o,d,c))return l;t+=2}else{if(!dl(o,{},c))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[c]=gc(n.children[c],a,l))}),ki(n.children,(l,c)=>{void 0===t[c]&&(r[c]=l)}),new Wt(n.segments,r)}}function bd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=bd(new Wt([],{}),0,e))}),a}function _c(n){const a={};return ki(n,(e,t)=>a[t]=`${e}`),a}function dl(n,a,e){return n==e.path&&yt(a,e.parameters)}class Ja{constructor(a,e){this.id=a,this.url=e}}class bc extends Ja{constructor(a,e,t="imperative",r=null){super(a,e),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Jn extends Ja{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ac extends Ja{constructor(a,e,t,r){super(a,e),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Dr extends Ja{constructor(a,e,t,r){super(a,e),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _f extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ul extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ad extends Ja{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yd extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yc extends Ja{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mc{constructor(a){this.route=a,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oh{constructor(a){this.route=a,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Md{constructor(a){this.snapshot=a,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wd{constructor(a){this.snapshot=a,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hl{constructor(a){this.snapshot=a,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hs{constructor(a){this.snapshot=a,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pl{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Hr{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=wc(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=wc(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=ml(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return ml(a,this._root).map(e=>e.value)}}function wc(n,a){if(n===a.value)return a;for(const e of a.children){const t=wc(n,e);if(t)return t}return null}function ml(n,a){if(n===a.value)return[a];for(const e of a.children){const t=ml(n,e);if(t.length)return t.unshift(a),t}return[]}class Xr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lr(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class lh extends Hr{constructor(a,e){super(a),this.snapshot=e,Xa(this,a)}toString(){return this.snapshot.toString()}}function Cd(n,a){const e=function vd(n,a){const c=new Aa([],{},{},"",{},tt,a,null,n.root,-1,{});return new Ls("",new Xr(c,[]))}(n,a),t=new $i([new al("",{})]),r=new $i({}),l=new $i({}),c=new $i({}),s=new $i(""),o=new Xn(t,r,c,s,l,tt,a,e.root);return o.snapshot=e.root,new lh(new Xr(o,[]),e)}class Xn{constructor(a,e,t,r,l,c,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,At.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,At.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Td(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function xd(n){return n.reduce((a,e)=>{var t;return{params:{...a.params,...e.params},data:{...a.data,...e.data},resolve:{...e.data,...a.resolve,...null===(t=e.routeConfig)||void 0===t?void 0:t.data,...e._resolvedData}}},{params:{},data:{},resolve:{}})}(e.slice(t))}class Aa{constructor(a,e,t,r,l,c,s,o,d,u,h,f){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=c,this.component=s,this.routeConfig=o,this._urlSegment=d,this._lastPathIndex=u,this._correctedLastPathIndex=f??u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ls extends Hr{constructor(a,e){super(e),this.url=a,Xa(this,e)}toString(){return Sd(this._root)}}function Xa(n,a){a.value._routerState=n,a.children.forEach(e=>Xa(n,e))}function Sd(n){const a=n.children.length>0?` { ${n.children.map(Sd).join(", ")} } `:"";return`${n.value}${a}`}function gl(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,yt(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),yt(a.params,e.params)||n.params.next(e.params),function Ee(n,a){if(n.length!==a.length)return!1;for(let e=0;eyt(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Qa(n.parent,a.parent))}function _l(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function Si(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return _l(n,t,r);return _l(n,t)})}(n,a,e);return new Xr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(s=>_l(n,s)),c}}const t=function Ag(n){return new Xn(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>_l(n,l));return new Xr(t,r)}}const ch="ngNavigationCancelingError";function bf(n,a){const{redirectTo:e,navigationBehaviorOptions:t}=Zr(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,r=Af(!1,0,a);return r.url=e,r.navigationBehaviorOptions=t,r}function Af(n,a,e){const t=new Error("NavigationCancelingError: "+(n||""));return t[ch]=!0,t.cancellationCode=a,e&&(t.url=e),t}function yf(n){return Ed(n)&&Zr(n.url)}function Ed(n){return n&&n[ch]}class yg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ya,this.attachRef=null}}let ya=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new yg,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Dd=!1;let Ka=(()=>{class n{constructor(e,t,r,l,c){this.parentContexts=e,this.location=t,this.changeDetector=l,this.environmentInjector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=r||tt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.vHH(4012,Dd);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.vHH(4012,Dd);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.vHH(4012,Dd);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new i.vHH(4013,Dd);this._activatedRoute=e;const r=this.location,c=e._futureSnapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,o=new Yi(e,s,r.injector);if(t&&function Hd(n){return!!n.resolveComponentFactory}(t)){const d=t.resolveComponentFactory(c);this.activated=r.createComponent(d,r.length,o)}else this.activated=r.createComponent(c,{index:r.length,injector:o,environmentInjector:t??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ya),i.Y36(i.s_b),i.$8M("name"),i.Y36(i.sBO),i.Y36(i.lqb))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Yi{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Xn?this.route:a===ya?this.childContexts:this.parent.get(a,e)}}let Mo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Ka],encapsulation:2}),n})();function Mf(n,a){var e;return n.providers&&!n._injector&&(n._injector=(0,i.MMx)(n.providers,a,`Route: ${n.path}`)),null!==(e=n._injector)&&void 0!==e?e:a}function Pd(n){const a=n.children&&n.children.map(Pd),e=a?{...n,children:a}:{...n};return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==tt&&(e.component=Mo),e}function Pr(n){return n.outlet||tt}function ts(n,a){const e=n.filter(t=>Pr(t)===a);return e.push(...n.filter(t=>Pr(t)!==a)),e}function Cc(n){var a;if(!n)return null;if(null!==(a=n.routeConfig)&&void 0!==a&&a._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(null!=t&&t._loadedInjector)return t._loadedInjector;if(null!=t&&t._injector)return t._injector}return null}class kd{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),gl(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Lr(e);a.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,r[c],t),delete r[c]}),ki(r,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const c=t.getContext(r.outlet);c&&this.deactivateChildRoutes(a,e,c.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Lr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);if(t&&t.outlet){const c=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Lr(a);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=Lr(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hs(l.value.snapshot))}),a.children.length&&this.forwardEvent(new wd(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(gl(r),r===l)if(r.component){const s=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,s.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const s=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),gl(o.route.value),this.activateChildRoutes(a,null,s.children)}else{var c;const o=Cc(r.snapshot),d=null!==(c=o?.get(i._Vd))&&void 0!==c?c:null;s.attachRef=null,s.route=r,s.resolver=d,s.injector=o,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(a,null,s.children)}}else this.activateChildRoutes(a,null,t)}}class Ps{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class Fe{constructor(a,e){this.component=a,this.route=e}}function uh(n,a,e){const t=n._root;return $t(t,a?a._root:null,e,[t.value])}function Al(n,a,e){return(Cc(a)??e).get(n)}function $t(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=Lr(a);return n.children.forEach(c=>{(function vc(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,c=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const o=function hh(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!ga(n.url,a.url);case"pathParamsOrQueryParamsChange":return!ga(n.url,a.url)||!yt(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qa(n,a)||!yt(n.queryParams,a.queryParams);default:return!Qa(n,a)}}(c,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Ps(t)):(l.data=c.data,l._resolvedData=c._resolvedData),$t(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new Fe(s.outlet.component,c))}else c&&ks(a,s,r),r.canActivateChecks.push(new Ps(t)),$t(n,null,l.component?s?s.children:null:e,t,r)})(c,l[c.value.outlet],e,t.concat([c.value]),r),delete l[c.value.outlet]}),ki(l,(c,s)=>ks(c,e.getContext(s),r)),r}function ks(n,a,e){const t=Lr(n),r=n.value;ki(t,(l,c)=>{ks(l,r.component?a?a.children.getContext(c):null:a,e)}),e.canDeactivateChecks.push(new Fe(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}function Rs(n){return"function"==typeof n}function xc(n){return n instanceof vs.K||"EmptyError"===n?.name}const Ma=Symbol("INITIAL_VALUE");function kr(){return(0,Nt.w)(n=>(0,fa.a)(n.map(a=>a.pipe((0,dt.q)(1),ti(Ma)))).pipe((0,At.U)(a=>{for(const e of a)if(!0!==e){if(e===Ma)return Ma;if(!1===e||e instanceof di)return e}return!0}),(0,Yt.h)(a=>a!==Ma),(0,dt.q)(1)))}function Sc(n){return(0,il.z)((0,mi.b)(a=>{if(Zr(a))throw bf(0,a)}),(0,At.U)(a=>!0===a))}const Ec={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(n,a,e,t,r){const l=Od(n,a,e);return l.matched?function wl(n,a,e,t){const r=a.canMatch;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function vf(n){return n&&Rs(n.canMatch)}(s)?s.canMatch(a,e):s(a,e);return Bi(o)});return(0,$e.of)(l).pipe(kr(),Sc())}(t=Mf(a,t),a,e).pipe((0,At.U)(c=>!0===c?l:{...Ec})):(0,$e.of)(l)}function Od(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?{...Ec}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const l=(a.matcher||_n)(e,n,a);if(!l)return{...Ec};const c={};ki(l.posParams,(o,d)=>{c[d]=o.path});const s=l.consumed.length>0?{...c,...l.consumed[l.consumed.length-1].parameters}:c;return{matched:!0,consumedSegments:l.consumed,remainingSegments:e.slice(l.consumed.length),parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Cl(n,a,e,t,r="corrected"){if(e.length>0&&function gh(n,a,e){return e.some(t=>Dc(n,a,t)&&Pr(t)!==tt)}(n,e,t)){const c=new Wt(a,function Qr(n,a,e,t){const r={};r[tt]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Pr(l)!==tt){const c=new Wt([],{});c._sourceSegment=n,c._segmentIndexShift=a.length,r[Pr(l)]=c}return r}(n,a,t,new Wt(e,n.children)));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function Hf(n,a,e){return e.some(t=>Dc(n,a,t))}(n,e,t)){const c=new Wt(n.segments,function vl(n,a,e,t,r,l){const c={};for(const s of t)if(Dc(n,e,s)&&!r[Pr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,c[Pr(s)]=o}return{...r,...c}}(n,a,e,t,n.children,r));return c._sourceSegment=n,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Dc(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Os(n,a,e,t){return!!(Pr(n)===t||t!==tt&&Dc(a,e,n))&&("**"===n.path||Od(a,n,e).matched)}function vo(n,a,e){return 0===a.length&&!n.children[e]}const Hc=!1;class Id{constructor(a){this.segmentGroup=a||null}}class Bd{constructor(a){this.urlTree=a}}function sr(n){return(0,Zn._)(new Id(n))}function To(n){return(0,Zn._)(new Bd(n))}class Lc{constructor(a,e,t,r,l){this.injector=a,this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0}apply(){const a=Cl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.injector,this.config,e,tt).pipe((0,At.U)(l=>this.createUrlTree(Ds(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,li.K)(l=>{if(l instanceof Bd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Id?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.injector,this.config,a.root,tt).pipe((0,At.U)(r=>this.createUrlTree(Ds(r),a.queryParams,a.fragment))).pipe((0,li.K)(r=>{throw r instanceof Id?this.noMatchError(r):r}))}noMatchError(a){return new i.vHH(4002,Hc)}createUrlTree(a,e,t){const r=_o(a);return new di(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,At.U)(l=>new Wt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,Dn.D)(r).pipe((0,yr.b)(l=>{const c=t.children[l],s=ts(e,l);return this.expandSegmentGroup(a,s,c,l).pipe((0,At.U)(o=>({segment:o,outlet:l})))}),U((l,c)=>(l[c.outlet]=c.segment,l),{}),_e())}expandSegment(a,e,t,r,l,c){return(0,Dn.D)(t).pipe((0,yr.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,c).pipe((0,li.K)(d=>{if(d instanceof Id)return(0,$e.of)(null);throw d}))),(0,Ar.P)(s=>!!s),(0,li.K)((s,o)=>{if(xc(s))return vo(e,r,l)?(0,$e.of)(new Wt([],{})):sr(e);throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,c,s){return Os(r,e,l,c)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,c):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c):sr(e):sr(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,c):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?To(l):this.lineralizeSegments(t,l).pipe((0,Ti.z)(c=>{const s=new Wt(c,{});return this.expandSegment(a,s,e,c,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,c){const{matched:s,consumedSegments:o,remainingSegments:d,positionalParamSegments:u}=Od(e,r,l);if(!s)return sr(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?To(h):this.lineralizeSegments(r,h).pipe((0,Ti.z)(f=>this.expandSegment(a,e,t,f.concat(d),c,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){return"**"===t.path?(a=Mf(t,a),t.loadChildren?(t._loadedRoutes?(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):this.configLoader.loadChildren(a,t)).pipe((0,At.U)(s=>(t._loadedRoutes=s.routes,t._loadedInjector=s.injector,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}))):Co(e,t,r,a).pipe((0,Nt.w)(({matched:c,consumedSegments:s,remainingSegments:o})=>{var d;return c?(a=null!==(d=t._injector)&&void 0!==d?d:a,this.getChildConfig(a,t,r).pipe((0,Ti.z)(h=>{var f;const b=null!==(f=h.injector)&&void 0!==f?f:a,N=h.routes,{segmentGroup:Q,slicedSegments:pe}=Cl(e,s,o,N),Pe=new Wt(Q.segments,Q.children);if(0===pe.length&&Pe.hasChildren())return this.expandChildren(b,N,Pe).pipe((0,At.U)(oa=>new Wt(s,oa)));if(0===N.length&&0===pe.length)return(0,$e.of)(new Wt(s,{}));const _t=Pr(t)===l;return this.expandSegment(b,Pe,N,pe,_t?tt:l,!0).pipe((0,At.U)(Ut=>new Wt(s.concat(Ut.segments),Ut.children)))}))):sr(e)}))}getChildConfig(a,e,t){return e.children?(0,$e.of)({routes:e.children,injector:a}):e.loadChildren?void 0!==e._loadedRoutes?(0,$e.of)({routes:e._loadedRoutes,injector:e._loadedInjector}):function Df(n,a,e,t){const r=a.canLoad;if(void 0===r||0===r.length)return(0,$e.of)(!0);const l=r.map(c=>{const s=n.get(c),o=function wg(n){return n&&Rs(n.canLoad)}(s)?s.canLoad(a,e):s(a,e);return Bi(o)});return(0,$e.of)(l).pipe(kr(),Sc())}(a,e,t).pipe((0,Ti.z)(r=>r?this.configLoader.loadChildren(a,e).pipe((0,mi.b)(l=>{e._loadedRoutes=l.routes,e._loadedInjector=l.injector})):function Pf(n){return(0,Zn._)(Af(Hc,3))}())):(0,$e.of)({routes:[],injector:a})}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,$e.of)(t);if(r.numberOfChildren>1||!r.children[tt])return(0,Zn._)(new i.vHH(4e3,Hc));r=r.children[tt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreateUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new di(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ki(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let c={};return ki(e.children,(s,o)=>{c[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,c)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new i.vHH(4001,Hc);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}class Is{}class v{constructor(a,e,t,r,l,c,s,o){this.injector=a,this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=s,this.urlSerializer=o}recognize(){const a=Cl(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,a,tt).pipe((0,At.U)(e=>{if(null===e)return null;const t=new Aa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Xr(t,e),l=new Ls(this.url,r);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(a){const e=a.value,t=Td(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(a,e,t):this.processSegment(a,e,t,t.segments,r)}processChildren(a,e,t){return(0,Dn.D)(Object.keys(t.children)).pipe((0,yr.b)(r=>{const l=t.children[r],c=ts(e,r);return this.processSegmentGroup(a,c,l,r)}),U((r,l)=>r&&l?(r.push(...l),r):null),nt(r=>null!==r),(0,re.d)(null),_e(),(0,At.U)(r=>{if(null===r)return null;const l=$(r);return function H(n){n.sort((a,e)=>a.value.outlet===tt?-1:e.value.outlet===tt?1:a.value.outlet.localeCompare(e.value.outlet))}(l),l}))}processSegment(a,e,t,r,l){return(0,Dn.D)(e).pipe((0,yr.b)(c=>{var s;return this.processSegmentAgainstRoute(null!==(s=c._injector)&&void 0!==s?s:a,c,t,r,l)}),(0,Ar.P)(c=>!!c),(0,li.K)(c=>{if(xc(c))return vo(t,r,l)?(0,$e.of)([]):(0,$e.of)(null);throw c}))}processSegmentAgainstRoute(a,e,t,r,l){if(e.redirectTo||!Os(e,t,r,l))return(0,$e.of)(null);let c;if("**"===e.path){var s,o;const d=r.length>0?Ii(r).parameters:{},u=ft(t)+r.length,h=new Aa(r,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Pr(e),null!==(s=null!==(o=e.component)&&void 0!==o?o:e._loadedComponent)&&void 0!==s?s:null,e,we(t),u,on(e),u);c=(0,$e.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else c=Co(t,e,r,a).pipe((0,At.U)(({matched:d,consumedSegments:u,remainingSegments:h,parameters:f})=>{var b,N;if(!d)return null;const Q=ft(t)+u.length;return{snapshot:new Aa(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Mi(e),Pr(e),null!==(b=null!==(N=e.component)&&void 0!==N?N:e._loadedComponent)&&void 0!==b?b:null,e,we(t),Q,on(e),Q),consumedSegments:u,remainingSegments:h}}));return c.pipe((0,Nt.w)(d=>{var u,h;if(null===d)return(0,$e.of)(null);const{snapshot:f,consumedSegments:b,remainingSegments:N}=d;a=null!==(u=e._injector)&&void 0!==u?u:a;const Q=null!==(h=e._loadedInjector)&&void 0!==h?h:a,pe=function O(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:Pe,slicedSegments:_t}=Cl(t,b,N,pe.filter(Ut=>void 0===Ut.redirectTo),this.relativeLinkResolution);if(0===_t.length&&Pe.hasChildren())return this.processChildren(Q,pe,Pe).pipe((0,At.U)(Ut=>null===Ut?null:[new Xr(f,Ut)]));if(0===pe.length&&0===_t.length)return(0,$e.of)([new Xr(f,[])]);const kt=Pr(e)===l;return this.processSegment(Q,pe,Pe,_t,kt?tt:l).pipe((0,At.U)(Ut=>null===Ut?null:[new Xr(f,Ut)]))}))}}function z(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function $(n){const a=[],e=new Set;for(const t of n){if(!z(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=$(t.children);a.push(new Xr(t.value,r))}return a.filter(t=>!e.has(t))}function we(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ft(n){var a;let e=n,t=null!==(a=e._segmentIndexShift)&&void 0!==a?a:0;for(;e._sourceSegment;){var r;e=e._sourceSegment,t+=null!==(r=e._segmentIndexShift)&&void 0!==r?r:0}return t-1}function Mi(n){return n.data||{}}function on(n){return n.resolve||{}}const Ir=Symbol("RouteTitle");function Tg(n){return"string"==typeof n.title||null===n.title}function Rf(n){return(0,Nt.w)(a=>{const e=n(a);return e?(0,Dn.D)(e).pipe((0,At.U)(()=>a)):(0,$e.of)(a)})}let xg=(()=>{class n{buildTitle(e){let t,r=e.root;for(;void 0!==r;){var l;t=null!==(l=this.getResolvedTitleForRoute(r))&&void 0!==l?l:t,r=r.children.find(c=>c.outlet===tt)}return t}getResolvedTitleForRoute(e){return e.data[Ir]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(){return(0,i.f3M)(is)},providedIn:"root"}),n})(),is=(()=>{class n extends xg{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(se))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Pc{}class yy extends class Ay{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Of=new i.OlP("",{providedIn:"root",factory:()=>({})}),If=new i.OlP("ROUTES");let bh=(()=>{class n{constructor(e,t){this.injector=e,this.compiler=t,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return(0,$e.of)(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=Bi(e.loadComponent()).pipe((0,mi.b)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=l}),ii(()=>{this.componentLoaders.delete(e)})),r=new ac(t,()=>new De.x).pipe(Ts());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return(0,$e.of)({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const l=this.loadModuleFactoryOrRoutes(t.loadChildren).pipe((0,At.U)(s=>{this.onLoadEndListener&&this.onLoadEndListener(t);let o,d,u=!1;Array.isArray(s)?d=s:(o=s.create(e).injector,d=Gr(o.get(If,[],i.XFs.Self|i.XFs.Optional)));return{routes:d.map(Pd),injector:o}}),ii(()=>{this.childrenLoaders.delete(t)})),c=new ac(l,()=>new De.x).pipe(Ts());return this.childrenLoaders.set(t,c),c}loadModuleFactoryOrRoutes(e){return Bi(e()).pipe((0,Ti.z)(t=>t instanceof i.YKP||Array.isArray(t)?(0,$e.of)(t):(0,Dn.D)(this.compiler.compileModuleAsync(t))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(i.Sil))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class wy{}class Cy{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function vy(n){throw n}function LT(n,a,e){return a.parse("/")}const Ty={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Vd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function wa(){var n,a;const e=(0,i.f3M)(gd),t=(0,i.f3M)(ya),r=(0,i.f3M)(w.Ye),l=(0,i.f3M)(i.zs3),c=(0,i.f3M)(i.Sil),s=null!==(n=(0,i.f3M)(If,{optional:!0}))&&void 0!==n?n:[],o=null!==(a=(0,i.f3M)(Of,{optional:!0}))&&void 0!==a?a:{},d=(0,i.f3M)(is),u=(0,i.f3M)(xg,{optional:!0}),h=(0,i.f3M)(wy,{optional:!0}),f=(0,i.f3M)(Pc,{optional:!0}),b=new Ai(null,e,t,r,l,c,Gr(s));return h&&(b.urlHandlingStrategy=h),f&&(b.routeReuseStrategy=f),b.titleStrategy=u??d,function Eg(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(o,b),b}let Ai=(()=>{class n{constructor(e,t,r,l,c,s,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new De.x,this.errorHandler=vy,this.malformedUriErrorHandler=LT,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,$e.of)(void 0),this.urlHandlingStrategy=new Cy,this.routeReuseStrategy=new yy,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=c.get(bh),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new oh(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new Mc(f)),this.ngModule=c.get(i.h0i),this.console=c.get(i.c2e);const h=c.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function rl(){return new di(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Cd(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,Yt.h)(r=>0!==r.id),(0,At.U)(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Nt.w)(r=>{let l=!1,c=!1;return(0,$e.of)(r).pipe((0,mi.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Nt.w)(s=>{const o=this.browserUrlTree.toString(),d=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||d)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Bf(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,Nt.w)(h=>{const f=this.transitions.getValue();return t.next(new bc(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Ur.E:Promise.resolve(h)}),function _h(n,a,e,t){return(0,Nt.w)(r=>function kf(n,a,e,t,r){return new Lc(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,At.U)(l=>({...r,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,mi.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},r.urlAfterRedirects=h.urlAfterRedirects}),function Or(n,a,e,t,r,l){return(0,Ti.z)(c=>function Qt(n,a,e,t,r,l,c="emptyOnly",s="legacy"){return new v(n,a,e,t,r,c,s,l).recognize().pipe((0,Nt.w)(o=>null===o?function Nd(n){return new Bn.y(a=>a.error(n))}(new Is):(0,$e.of)(o)))}(n,a,e,c.urlAfterRedirects,t.serialize(c.urlAfterRedirects),t,r,l).pipe((0,At.U)(s=>({...c,targetSnapshot:s}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,mi.b)(h=>{if(r.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new _f(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(d&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:N,restoredState:Q,extras:pe}=s,Pe=new bc(f,this.serializeUrl(b),N,Q);t.next(Pe);const _t=Cd(b,this.rootComponentType).snapshot;return r={...s,targetSnapshot:_t,urlAfterRedirects:b,extras:{...pe,skipLocationChange:!1,replaceUrl:!1}},(0,$e.of)(r)}return this.rawUrlTree=s.rawUrl,s.resolve(null),Ur.E}),(0,mi.b)(s=>{const o=new ul(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,At.U)(s=>r={...s,guards:uh(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function ph(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,$e.of)({...e,guardsResult:!0}):function Wi(n,a,e,t){return(0,Dn.D)(n).pipe((0,Ti.z)(r=>function Ef(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,$e.of)(!0);const c=l.map(s=>{const o=Al(s,a,r);return Bi(function wr(n){return n&&Rs(n.canDeactivate)}(o)?o.canDeactivate(n,a,e,t):o(n,a,e,t)).pipe((0,Ar.P)())});return(0,$e.of)(c).pipe(kr())}(r.component,r.route,e,a,t)),(0,Ar.P)(r=>!0!==r,!0))}(c,t,r,n).pipe((0,Ti.z)(s=>s&&function Tc(n){return"boolean"==typeof n}(s)?function fh(n,a,e,t){return(0,Dn.D)(a).pipe((0,yr.b)(r=>(0,Ga.z)(function Rr(n,a){return null!==n&&a&&a(new Md(n)),(0,$e.of)(!0)}(r.route.parent,t),function mh(n,a){return null!==n&&a&&a(new hl(n)),(0,$e.of)(!0)}(r.route,t),function Sf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(c=>function Cf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(c)).filter(c=>null!==c).map(c=>nr(()=>{const s=c.guards.map(o=>{const d=Al(o,c.node,e);return Bi(function Rd(n){return n&&Rs(n.canActivateChild)}(d)?d.canActivateChild(t,n):d(t,n)).pipe((0,Ar.P)())});return(0,$e.of)(s).pipe(kr())}));return(0,$e.of)(l).pipe(kr())}(n,r.path,e),function Ml(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,$e.of)(!0);const r=t.map(l=>nr(()=>{const c=Al(l,a,e);return Bi(function yl(n){return n&&Rs(n.canActivate)}(c)?c.canActivate(a,n):c(a,n)).pipe((0,Ar.P)())}));return(0,$e.of)(r).pipe(kr())}(n,r.route,e))),(0,Ar.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,At.U)(s=>({...e,guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,mi.b)(s=>{if(r.guardsResult=s.guardsResult,Zr(s.guardsResult))throw bf(0,s.guardsResult);const o=new Ad(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,Yt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Rf(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,mi.b)(o=>{const d=new yd(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}),(0,Nt.w)(o=>{let d=!1;return(0,$e.of)(o).pipe(function Cg(n,a){return(0,Ti.z)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,Dn.D)(r).pipe((0,yr.b)(c=>function vg(n,a,e,t){const r=n.routeConfig,l=n._resolve;return void 0!==r?.title&&!Tg(r)&&(l[Ir]=r.title),function Tl(n,a,e,t){const r=function _y(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,Dn.D)(r).pipe((0,Ti.z)(c=>function by(n,a,e,t){const r=Al(n,a,t);return Bi(r.resolve?r.resolve(a,e):r(a,e))}(n[c],a,e,t).pipe((0,Ar.P)(),(0,mi.b)(s=>{l[c]=s}))),B(1),(0,xi.h)(l),(0,li.K)(c=>xc(c)?Ur.E:(0,Zn._)(c)))}(l,n,a,t).pipe((0,At.U)(c=>(n._resolvedData=c,n.data=Td(n,e).resolve,r&&Tg(r)&&(n.data[Ir]=r.title),null)))}(c.route,t,n,a)),(0,mi.b)(()=>l++),B(1),(0,Ti.z)(c=>l===r.length?(0,$e.of)(e):Ur.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,mi.b)({next:()=>d=!0,complete:()=>{d||(this.restoreHistory(o),this.cancelNavigationTransition(o,"",2))}}))}),(0,mi.b)(o=>{const d=new yc(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(d)}))}),Rf(s=>{const o=d=>{var u;const h=[];null!==(u=d.routeConfig)&&void 0!==u&&u.loadComponent&&!d.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(d.routeConfig).pipe((0,mi.b)(f=>{d.component=f}),(0,At.U)(()=>{})));for(const f of d.children)h.push(...o(f));return h};return(0,fa.a)(o(s.targetSnapshot.root)).pipe((0,re.d)(),(0,dt.q)(1))}),Rf(()=>this.afterPreactivation()),(0,At.U)(s=>{const o=function bg(n,a,e){const t=_l(n,a._root,e?e._root:void 0);return new lh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:o}}),(0,mi.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,a,e)=>(0,At.U)(t=>(new kd(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,mi.b)({next(){l=!0},complete(){l=!0}}),ii(()=>{var s;l||c||this.cancelNavigationTransition(r,"",1),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,li.K)(s=>{if(c=!0,Ed(s)){yf(s)||(this.navigated=!0,this.restoreHistory(r,!0));const d=new Ac(r.id,this.serializeUrl(r.extractedUrl),s.message,s.cancellationCode);if(t.next(d),yf(s)){const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Bf(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{var o;this.restoreHistory(r,!0);const d=new Dr(r.id,this.serializeUrl(r.extractedUrl),s,null!==(o=r.targetSnapshot)&&void 0!==o?o:void 0);t.next(d);try{r.resolve(this.errorHandler(s))}catch(u){r.reject(u)}}return Ur.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},c=null!==(r=e.state)&&void 0!==r&&r.navigationId?e.state:null;if(c){const o={...c};delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,c,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(Pd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:c,queryParamsHandling:s,preserveFragment:o}=t,d=r||this.routerState.root,u=o?this.currentUrlTree.fragment:c;let h=null;switch(s){case"merge":h={...this.currentUrlTree.queryParams,...l};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),ih(d,this.currentUrlTree,e,h,u??null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=Zr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function Dg(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{var t;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Jn(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(t=this.titleStrategy)||void 0===t||t.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,c){if(this.disposed)return Promise.resolve(!1);let s,o,d;c?(s=c.resolve,o=c.reject,d=c.promise):d=new Promise((N,Q)=>{s=N,o=Q});const u=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(r=this.location.getState()),r&&r.\u0275routerPageId)h=r.\u0275routerPageId;else if(l.replaceUrl||l.skipLocationChange){var f;h=null!==(f=this.browserPageId)&&void 0!==f?f:0}else{var b;h=(null!==(b=this.browserPageId)&&void 0!==b?b:0)+1}else h=0;return this.setTransition({id:u,targetPageId:h,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:o,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(N=>Promise.reject(N))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l={...t.extras.state,...this.generateNgRouterState(t.id,t.targetPageId)};this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){var r,l;const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===c?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t,r){const l=new Ac(e.id,this.serializeUrl(e.extractedUrl),t,r);this.triggerEvent(l),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:function(){return wa()},providedIn:"root"}),n})();function Bf(n){return"imperative"!==n}let So=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=c,this.commands=null,this.onChanges=new De.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),yh=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new De.x,this.subscription=e.events.subscribe(l=>{l instanceof Jn&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,c){if(0!==e||t||r||l||c||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:(0,i.D6c)(this.skipLocationChange),replaceUrl:(0,i.D6c)(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:(0,i.D6c)(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();class Mh{}let Nf=(()=>{class n{preload(e,t){return t().pipe((0,li.K)(()=>(0,$e.of)(null)))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xy=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn),(0,yr.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const o of t){var l,c;o.providers&&!o._injector&&(o._injector=(0,i.MMx)(o.providers,e,`Route: ${o.path}`));const d=null!==(l=o._injector)&&void 0!==l?l:e,u=null!==(c=o._loadedInjector)&&void 0!==c?c:d;if(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)r.push(this.preloadConfig(d,o));else if(o.children||o._loadedRoutes){var s;r.push(this.processRoutes(u,null!==(s=o.children)&&void 0!==s?s:o._loadedRoutes))}}return(0,Dn.D)(r).pipe((0,ci.J)())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;r=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):(0,$e.of)(null);const l=r.pipe((0,Ti.z)(c=>{var s;return null===c?(0,$e.of)(void 0):(t._loadedRoutes=c.routes,t._loadedInjector=c.injector,this.processRoutes(null!==(s=c.injector)&&void 0!==s?s:e,c.routes))}));if(t.loadComponent&&!t._loadedComponent){const c=this.loader.loadComponent(t);return(0,Dn.D)([l,c]).pipe((0,ci.J)())}return l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai),i.LFG(i.Sil),i.LFG(i.lqb),i.LFG(Mh),i.LFG(bh))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Sy=new i.OlP("");let Lg=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof bc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Jn&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof pl&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new pl(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Pg=new i.OlP("ROUTER_FORROOT_GUARD"),kg=new i.OlP(""),Rg=[w.Ye,{provide:gd,useClass:_a},{provide:Ai,useFactory:wa},ya,{provide:Xn,useFactory:function wh(n){return n.routerState.root},deps:[Ai]},bh];function Og(){return new i.PXZ("Router",Ai)}let kc=(()=>{class n{constructor(e){}static forRoot(e,t){return{ngModule:n,providers:[Rg,[],Ch(e),{provide:Pg,useFactory:Dy,deps:[[Ai,new i.FiY,new i.tp0]]},{provide:Of,useValue:t||{}},null!=t&&t.useHash?{provide:w.S$,useClass:w.Do}:{provide:w.S$,useClass:w.b0},{provide:Sy,useFactory:()=>{const n=(0,i.f3M)(Ai),a=(0,i.f3M)(w.EM),e=(0,i.f3M)(Of);return e.scrollOffset&&a.setOffset(e.scrollOffset),new Lg(n,a,e)}},null!=t&&t.preloadingStrategy?Vf(t.preloadingStrategy):[],{provide:i.PXZ,multi:!0,useFactory:Og},null!=t&&t.initialNavigation?Hy(t):[],[{provide:Ng,useFactory:Bg},{provide:i.tb,multi:!0,useExisting:Ng}]]}}static forChild(e){return{ngModule:n,providers:[Ch(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pg,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function Dy(n){return"guarded"}function Ch(n){return[{provide:If,multi:!0,useValue:n}]}function Bg(){const n=(0,i.f3M)(i.zs3);return a=>{var e,t;const r=n.get(i.z2F);if(a!==r.components[0])return;const l=n.get(Ai),c=n.get(Vg);1===n.get(Fg)&&l.initialNavigation(),null===(e=n.get(kg,null,i.XFs.Optional))||void 0===e||e.setUpPreloading(),null===(t=n.get(Sy,null,i.XFs.Optional))||void 0===t||t.init(),l.resetRootComponentType(r.componentTypes[0]),c.next(),c.complete()}}const Ng=new i.OlP("");function Hy(n){return["disabled"===n.initialNavigation?[{provide:i.ip1,multi:!0,useFactory:()=>{const n=(0,i.f3M)(Ai);return()=>{n.setUpLocationChangeListener()}}},{provide:Fg,useValue:2}]:[],"enabledBlocking"===n.initialNavigation?[{provide:Fg,useValue:0},{provide:i.ip1,multi:!0,deps:[i.zs3],useFactory:n=>{const a=n.get(w.V_,Promise.resolve(null));let e=!1;return()=>a.then(()=>new Promise(r=>{const l=n.get(Ai),c=n.get(Vg);(function t(r){n.get(Ai).events.pipe((0,Yt.h)(c=>c instanceof Jn||c instanceof Ac||c instanceof Dr),(0,At.U)(c=>c instanceof Jn||c instanceof Ac&&(0===c.code||1===c.code)&&null),(0,Yt.h)(c=>null!==c),(0,dt.q)(1)).subscribe(()=>{r()})})(()=>{r(!0),e=!0}),l.afterPreactivation=()=>(r(!0),e||c.closed?(0,$e.of)(void 0):c),l.initialNavigation()}))}}]:[]]}const Vg=new i.OlP("",{factory:()=>new De.x}),Fg=new i.OlP("",{providedIn:"root",factory:()=>1});function Vf(n){return[xy,{provide:kg,useExisting:xy},{provide:Mh,useExisting:n}]}let vh;try{vh=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vh=!1}let xl,Ni=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.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&&!vh)&&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 n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ff=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Th(){if(xl)return xl;if("object"!=typeof document||!document)return xl=new Set(Ff),xl;let n=document.createElement("input");return xl=new Set(Ff.filter(a=>(n.setAttribute("type",a),n.type===a))),xl}let xh,zd,Do,qd;function Kr(n){return function Ry(){if(null==xh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xh=!0}))}finally{xh=xh||!1}return xh}()?n:!!n.capture}function Ho(){if(null==Do){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Do=!1,Do;if("scrollBehavior"in document.documentElement.style)Do=!0;else{const n=Element.prototype.scrollTo;Do=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Do}function jd(){if("object"!=typeof document||!document)return 0;if(null==zd){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),zd=0,0===n.scrollLeft&&(n.scrollLeft=1,zd=0===n.scrollLeft?1:2),n.remove()}return zd}function Eh(n){if(function Sh(){if(null==qd){const n=typeof document<"u"?document.head:null;qd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return qd}()){const a=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Yd(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function or(n){return n.composedPath?n.composedPath()[0]:n.target}function Bs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function An(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var $d=T(8372);function Oh(n){return(0,Yt.h)((a,e)=>n<=e)}function Ih(n,a=Me.y){return n=n??nM,(0,Wn.e)((e,t)=>{let r,l=!0;e.subscribe((0,br.x)(t,c=>{const s=a(c);(l||!n(r,s))&&(l=!1,r=s,t.next(c))}))})}function nM(n,a){return n===a}var l1=T(5032);function rt(n){return(0,Wn.e)((a,e)=>{(0,Wr.Xf)(n).subscribe((0,br.x)(e,()=>e.complete(),l1.Z)),!e.closed&&a.subscribe(e)})}function je(n){return null!=n&&"false"!=`${n}`}function Zi(n,a=0){return qf(n)?Number(n):a}function qf(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Zd(n){return Array.isArray(n)?n:[n]}function Ln(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Vi(n){return n instanceof i.SBq?n.nativeElement:n}let Yf=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),c1=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Vi(e);return new Bn.y(r=>{const c=this._observeElement(t).subscribe(r);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new De.x,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yf))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Zi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,$d.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(c1),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Sl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yf]}),n})();const Jd=new Set;let Vs,d1=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):u1}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Wf(n){if(!Jd.has(n))try{Vs||(Vs=document.createElement("style"),Vs.setAttribute("type","text/css"),document.head.appendChild(Vs)),Vs.sheet&&(Vs.sheet.insertRule(`@media ${n} {body{ }}`,0),Jd.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function u1(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let Nh=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new De.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Oc(Zd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Oc(Zd(e)).map(c=>this._registerQuery(c).observable);let l=(0,fa.a)(r);return l=(0,Ga.z)(l.pipe((0,dt.q)(1)),l.pipe(Oh(1),(0,$d.b)(0))),l.pipe((0,At.U)(c=>{const s={matches:!1,breakpoints:{}};return c.forEach(({matches:o,query:d})=>{s.matches=s.matches||o,s.breakpoints[d]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Bn.y(c=>{const s=o=>this._zone.run(()=>c.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(ti(t),(0,At.U)(({matches:c})=>({query:e,matches:c})),rt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(d1),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Oc(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}function Xd(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Gf="cdk-describedby-message",$f="cdk-describedby-host";let Vh=0,p1=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Vh++,this._document=e,this._id=(0,i.f3M)(i.AFp)+"-"+Vh++}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Fh(t,r);"string"!=typeof t?(f1(t,this._id),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const c=Fh(t,r);if(this._isElementDescribedByMessage(e,c)&&this._removeMessageReference(e,c),"string"==typeof t){const s=this._messageRegistry.get(c);s&&0===s.referenceCount&&this._deleteMessageElement(c)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${$f}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Gf));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function oM(n,a,e){const t=Xd(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute($f,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function lM(n,a,e){const r=Xd(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute($f)}_isElementDescribedByMessage(e,t){const r=Xd(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=r.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Fh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function f1(n,a){n.id||(n.id=`${Gf}-${a}-${Vh++}`)}class m1{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new De.x,this._typeaheadSubscription=Bt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new De.x,this.change=new De.x,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,mi.b)(e=>this._pressedLetters.push(e)),(0,$d.b)(a),(0,Yt.h)(()=>this._pressedLetters.length>0),(0,At.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||An(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a);this._activeItem=e[t]??null,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class ta extends m1{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class zh extends m1{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Qd=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function uM(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function dM(n){try{return n.frameElement}catch{return null}}(function gM(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Zf(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Zf(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _1(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function b1(n){return!function g1(n){return function fM(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function hM(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function pM(n){return function mM(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||Vt(n))}(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Vt(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Zf(n){if(!Vt(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class _M{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return t?.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(a)}}let Kd=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new _M(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Qd),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eu(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function rs(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const yM=new i.OlP("cdk-input-modality-detector-options"),Jf={ignoreKeys:[18,17,224,91,16]},Ic=Kr({passive:!0,capture:!0});let Px=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=c=>{var s,o;null!==(s=this._options)&&void 0!==s&&null!==(o=s.ignoreKeys)&&void 0!==o&&o.some(d=>d===c.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=or(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(eu(c)?"keyboard":"mouse"),this._mostRecentTarget=or(c))},this._onTouchstart=c=>{rs(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=or(c))},this._options={...Jf,...l},this.modalityDetected=this._modality.pipe(Oh(1)),this.modalityChanged=this.modalityDetected.pipe(Ih()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Ic),r.addEventListener("mousedown",this._onMousedown,Ic),r.addEventListener("touchstart",this._onTouchstart,Ic)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ic),document.removeEventListener("mousedown",this._onMousedown,Ic),document.removeEventListener("touchstart",this._onTouchstart,Ic))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(yM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kx=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Rx(){return null}}),MM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let A1=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,c;return 1===t.length&&"number"==typeof t[0]?c=t[0]:[l,c]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==c&&r&&(c=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof c&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,t;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(t=this._currentResolve)||void 0===t||t.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 De.x,this._rootNodeFocusAndBlurListener=s=>{for(let d=or(s);d;d=d.parentElement)"focus"===s.type?this._onFocus(s,d):this._onBlur(s,d)},this._document=l,this._detectionMode=c?.detectionMode||0}monitor(e,t=!1){const r=Vi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=Eh(r)||this._getDocument(),c=this._elementInfo.get(r);if(c)return t&&(c.checkChildren=!0),c.subject;const s={checkChildren:t,subject:new De.x,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=Vi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=Vi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,o])=>this._originChanged(s,t,o)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=or(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Fs),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Fs)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(rt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Fs),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Fs),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:t,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!t||t===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const l=e.labels;if(l)for(let c=0;c{class n{constructor(e,t){this._platform=e,this._document=t,this._breakpointSubscription=(0,i.f3M)(Nh).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){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 e=this._document.body.classList;e.remove(qh,tu,y1),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?e.add(qh,tu):2===t&&e.add(qh,y1)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sl]}),n})();const vM=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function TM(){return(0,i.f3M)(w.K0)}}),xM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Vn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function w1(n){var a;const e=n?.toLowerCase()||"";return"auto"===e&&typeof navigator<"u"&&null!==(a=navigator)&&void 0!==a&&a.language?xM.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(vM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function EM(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Ox(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const Bc=["*"];let v1=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),Uh=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const T1=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Ta(){return!0}});let gt=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Bs()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M1),i.LFG(T1,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ko,ko]}),n})();function xa(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=je(a)}}}function as(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Sa(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=je(a)}}}function Oo(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Zi(e):this.defaultTabIndex}}}function E1(n){return class extends n{constructor(...a){super(...a),this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function iu(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Bn.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const Gh=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Qf(){return(0,i.f3M)(i.soG)}});class Br{constructor(){this._localeChanges=new De.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,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Nc=new i.OlP("mat-date-formats"),Ix=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Kf(n,a){const e=Array(n);for(let t=0;t{class n extends Br{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Kf(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Kf(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Kf(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e,t){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,{...t,timeZone:"utc"});return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Ix.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gh,8),i.LFG(Ni))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const DM={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 HM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Br,useClass:D1}]}),n})(),e0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Nc,useValue:DM}],imports:[HM]}),n})(),Vc=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),LM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Fc(n,a,e){n.nativeElement.classList.toggle(a,e)}let $h=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();class n0{constructor(a,e,t,r=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const PM={enterDuration:225,exitDuration:150},H1=Kr({passive:!0}),kM=["mousedown","touchstart"],RM=["mouseup","mouseleave","touchend","touchcancel"];class OM{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Vi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l={...PM,...t.animation};t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const c=t.radius||function Nx(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),s=a-r.left,o=e-r.top,d=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-c+"px",u.style.top=o-c+"px",u.style.height=2*c+"px",u.style.width=2*c+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${d}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),b=h.transitionDuration,N="none"===h.transitionProperty||"0s"===b||"0s, 0s"===b,Q=new n0(this,u,t,N);u.style.transform="scale3d(1, 1, 1)",Q.state=0,t.persistent||(this._mostRecentTransientRipple=Q);let pe=null;return!N&&(d||l.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Pe=()=>this._finishRippleTransition(Q),_t=()=>this._destroyRipple(Q);u.addEventListener("transitionend",Pe),u.addEventListener("transitioncancel",_t),pe={onTransitionEnd:Pe,onTransitionCancel:_t}}),this._activeRipples.set(Q,pe),(N||!d)&&this._finishRippleTransition(Q),Q}fadeOutRipple(a){if(2===a.state||3===a.state)return;const e=a.element,t={...PM,...a.config.animation};e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=2,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Vi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(kM))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(RM),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){0===a.state?this._startFadeOutTransition(a):2===a.state&&this._destroyRipple(a)}_startFadeOutTransition(a){const e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=1,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){var e;const t=null!==(e=this._activeRipples.get(a))&&void 0!==e?e:null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=3,null!==t&&(a.element.removeEventListener("transitionend",t.onTransitionEnd),a.element.removeEventListener("transitioncancel",t.onTransitionCancel)),a.element.remove()}_onMousedown(a){const e=eu(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,H1)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(kM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}),this._pointerUpEventsRegistered&&RM.forEach(a=>{this._triggerElement.removeEventListener(a,this,H1)}))}}const IM=new i.OlP("mat-ripple-global-options");let ia=(()=>{class n{constructor(e,t,r,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new OM(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Ni),i.Y36(IM,8),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),na=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),zs=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},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}),n})(),nu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt]}),n})();const r0=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),ru=new i.OlP("MatOptgroup");let Io=0;class a0{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let VM=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Io++,this.onSelectionChange=new i.vpe,this._stateChanges=new De.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(e){this._disabled=je(e)}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(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!An(e)&&(this._selectViaInteraction(),e.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 e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new a0(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),js=(()=>{class n extends VM{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(r0,8),i.Y36(ru,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:Bc,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(e,t){1&e&&(i.F$t(),i.YNc(0,EM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Ox,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},dependencies:[ia,w.O5,zs],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}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.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}),n})();function s0(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let c=0;ce+t?Math.max(0,n-t+a):e}let au=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,w.ez,gt,nu]}),n})();const FM=["mat-button",""],Zh=["*"],zc=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Jh=as(xa(Sa(class{constructor(n){this._elementRef=n}})));let Lt=(()=>{class n extends Jh{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of zc)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.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(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vr),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,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(e,t){if(1&e&&i.Gf(ia,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:FM,ngContentSelectors:Zh,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(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1)(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},dependencies:[ia],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),n})(),Ea=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,gt]}),n})();var P1=T(1144),Da=T(576),Xh=T(3268);const k1=["addListener","removeListener"],c0=["addEventListener","removeEventListener"],zM=["on","off"];function qs(n,a,e,t){if((0,Da.m)(e)&&(t=e,e=void 0),t)return qs(n,a,e).pipe((0,Xh.Z)(t));const[r,l]=function I1(n){return(0,Da.m)(n.addEventListener)&&(0,Da.m)(n.removeEventListener)}(n)?c0.map(c=>s=>n[c](a,s,e)):function O1(n){return(0,Da.m)(n.addListener)&&(0,Da.m)(n.removeListener)}(n)?k1.map(R1(n,a)):function jM(n){return(0,Da.m)(n.on)&&(0,Da.m)(n.off)}(n)?zM.map(R1(n,a)):[];if(!r&&(0,P1.z)(n))return(0,Ti.z)(c=>qs(c,a,e))((0,Wr.Xf)(n));if(!r)throw new TypeError("Invalid event target");return new Bn.y(c=>{const s=(...o)=>c.next(1l(s)})}function R1(n,a){return e=>t=>n[e](a,t)}var d0=T(4408);const ou={schedule(n){let a=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:t}=ou;t&&(a=t.requestAnimationFrame,e=t.cancelAnimationFrame);const r=a(l=>{e=void 0,n(l)});return new Bt.w0(()=>e?.(r))},requestAnimationFrame(...n){const{delegate:a}=ou;return(a?.requestAnimationFrame||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:a}=ou;return(a?.cancelAnimationFrame||cancelAnimationFrame)(...n)},delegate:void 0};var u0=T(7565);const YM=new class qM extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class Nr extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ou.requestAnimationFrame(()=>a.flush(void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(ou.cancelAnimationFrame(e),a._scheduled=void 0)}});let Qh,h0=1;const Kh={};function B1(n){return n in Kh&&(delete Kh[n],!0)}const WM={setImmediate(n){const a=h0++;return Kh[a]=!0,Qh||(Qh=Promise.resolve()),Qh.then(()=>B1(a)&&n()),a},clearImmediate(n){B1(n)}},{setImmediate:GM,clearImmediate:N1}=WM,ep={setImmediate(...n){const{delegate:a}=ep;return(a?.setImmediate||GM)(...n)},clearImmediate(n){const{delegate:a}=ep;return(a?.clearImmediate||N1)(n)},delegate:void 0},tp=new class V1 extends u0.v{flush(a){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:t}=this;let r;a=a||t.shift();do{if(r=a.execute(a.state,a.delay))break}while((a=t[0])&&a.id===e&&t.shift());if(this._active=!1,r){for(;(a=t[0])&&a.id===e&&t.shift();)a.unsubscribe();throw r}}}(class $M extends d0.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}requestAsyncId(a,e,t=0){return null!==t&&t>0?super.requestAsyncId(a,e,t):(a.actions.push(this),a._scheduled||(a._scheduled=ep.setImmediate(a.flush.bind(a,void 0))))}recycleAsyncId(a,e,t=0){if(null!=t&&t>0||null==t&&this.delay>0)return super.recycleAsyncId(a,e,t);a.actions.some(r=>r.id===e)||(ep.clearImmediate(e),a._scheduled=void 0)}});var Ha=T(4986),f0=T(2805);function m0(n,a=Ha.z){return function p0(n){return(0,Wn.e)((a,e)=>{let t=!1,r=null,l=null,c=!1;const s=()=>{if(l?.unsubscribe(),l=null,t){t=!1;const d=r;r=null,e.next(d)}c&&e.complete()},o=()=>{l=null,c&&e.complete()};a.subscribe((0,br.x)(e,d=>{t=!0,r=d,l||(0,Wr.Xf)(n(d)).subscribe(l=(0,br.x)(e,s,o))},()=>{c=!0,(!t||!l||l.closed)&&e.complete()}))})}(()=>(0,f0.H)(n,a))}let jc=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new De.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Bn.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(m0(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,Yt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Vi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>qs(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Ni),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Bo=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new De.x,this._elementScrolled=new Bn.y(c=>this.ngZone.runOutsideAngular(()=>qs(this.elementRef.nativeElement,"scroll").pipe(rt(this._destroyed)).subscribe(c)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=jd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==jd()?e.left=e.right:1==jd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Ho()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const c=this.dir&&"rtl"==this.dir.value;return"start"==e?e=c?r:t:"end"==e&&(e=c?t:r),c&&2==jd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:c&&1==jd()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(jc),i.Y36(i.R0b),i.Y36(Vn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),No=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new De.x,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(m0(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),La=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),El=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ko,La,ko,La]}),n})();class A0{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class qc extends A0{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class Dl extends A0{constructor(a,e,t,r){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=r}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class tw extends A0{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class y0{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof qc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof Dl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof tw?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class iw extends y0{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=c=>{const s=c.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=c,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector||i.zs3.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let rp=(()=>{class n extends y0{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const c=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(s,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(c,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Fo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Fi=T(6451);const M0=Ho();class w0{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Ln(-this._previousScrollPosition.left),a.style.top=Ln(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",c=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),M0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),M0&&(t.scrollBehavior=l,r.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class C0{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Y1{enable(){}disable(){}attach(){}}function v0(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function W1(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class nw{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();v0(e,[{width:t,height:r,bottom:r,right:t,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 rw=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Y1,this.close=c=>new C0(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new w0(this._viewportRuler,this._document),this.reposition=c=>new nw(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jc),i.LFG(No),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class lu{constructor(a){if(this.scrollStrategy=new Y1,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class Xx{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}let U1=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),x0=(()=>{class n extends U1{constructor(e,t){super(e),this._ngZone=t,this._keydownListener=r=>{const l=this._attachedOverlays;for(let c=l.length-1;c>-1;c--)if(l[c]._keydownEvents.observers.length>0){const s=l[c]._keydownEvents;this._ngZone?this._ngZone.run(()=>s.next(r)):s.next(r);break}}}add(e){super.add(e),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 n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aw=(()=>{class n extends U1{constructor(e,t,r){super(e),this._platform=t,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=l=>{this._pointerDownEventTarget=or(l)},this._clickListener=l=>{const c=or(l),s="click"===l.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let d=o.length-1;d>-1;d--){const u=o[d];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(c)||u.overlayElement.contains(s))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(l)):h.next(l)}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(t)):this._addEventListeners(t),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Ni),i.LFG(i.R0b,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vr=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Bs()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;lthis._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new De.x,this._outsidePointerEvents=new De.x,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,dt.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),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config={...this._config,...a},this._updateElementSize()}setDirection(a){this._config={...this._config,direction:a},this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=Ln(this._config.width),a.height=Ln(this._config.height),a.minWidth=Ln(this._config.minWidth),a.minHeight=Ln(this._config.minHeight),a.maxWidth=Ln(this._config.maxWidth),a.maxHeight=Ln(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="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(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(a){if(this._animationsDisabled)return void this._disposeBackdrop(a);a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",this._backdropTransitionendHandler)}),a.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(a)},500))}}_toggleClasses(a,e,t){const r=Zd(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(rt((0,Fi.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",this._backdropTransitionendHandler),a.remove(),this._backdropElement===a&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Un="cdk-overlay-connected-position-bounding-box",Hl=/([A-Za-z%]+)$/;class sp{constructor(a,e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l,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 De.x,this._resizeSubscription=Bt.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(a)}get positions(){return this._preferredPositions}attach(a){this._validatePositions(),a.hostElement.classList.add(Un),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let c;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),d=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(d,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,d,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!c||c.overlayFit.visibleAreao&&(o=u,s=d)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Fn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Un),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const c=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?c:s}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=Ll(e);let{x:c,y:s}=a,o=this._getOffset(r,"x"),d=this._getOffset(r,"y");o&&(c+=o),d&&(s+=d);let f=0-s,b=s+l.height-t.height,N=this._subtractOverflows(l.width,0-c,c+l.width-t.width),Q=this._subtractOverflows(l.height,f,b),pe=N*Q;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:Q===l.height,fitsInViewportHorizontally:N==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,c=op(this._overlayRef.getConfig().minHeight),s=op(this._overlayRef.getConfig().minWidth),d=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=c&&c<=r)&&d}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=Ll(e),l=this._viewportRect,c=Math.max(a.x+r.width-l.width,0),s=Math.max(a.y+r.height-l.height,0),o=Math.max(l.top-t.top-a.y,0),d=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?d||-c:a.xN&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-N/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),N=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>N&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-N/2)}return{top:c,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;r.height=Ln(t.height),r.top=Ln(t.top),r.bottom=Ln(t.bottom),r.width=Ln(t.width),r.left=Ln(t.left),r.right=Ln(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=Ln(l)),c&&(r.maxWidth=Ln(c))}this._lastBoundingBoxSize=t,Fn(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Fn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Fn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Fn(t,this._getExactOverlayY(e,a,u)),Fn(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),d=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),d&&(s+=`translateY(${d}px)`),t.transform=s.trim(),c.maxHeight&&(r?t.maxHeight=Ln(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(r?t.maxWidth=Ln(c.maxWidth):l&&(t.maxWidth="")),Fn(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=Ln(l.y),r}_getExactOverlayX(a,e,t){let c,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===c?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=Ln(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:W1(a,t),isOriginOutsideView:v0(a,t),isOverlayClipped:W1(e,t),isOverlayOutsideView:v0(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?a.offsetX??this._offsetX:a.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Zd(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Fn(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function op(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Hl);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Ll(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Pl="cdk-global-overlay-wrapper";class Wc{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Pl),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:c,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||c&&"100%"!==c&&"100vw"!==c),d=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let b="",N="",Q="";o?Q="flex-start":"center"===u?(Q="center",f?N=h:b=h):f?"left"===u||"end"===u?(Q="flex-end",b=h):("right"===u||"start"===u)&&(Q="flex-start",N=h):"left"===u||"start"===u?(Q="flex-start",b=h):("right"===u||"end"===u)&&(Q="flex-end",N=h),a.position=this._cssPosition,a.marginLeft=o?"0":b,a.marginTop=d?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=o?"0":N,e.justifyContent=Q,e.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Pl),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Uc=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Wc}flexibleConnectedTo(e){return new sp(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(No),i.LFG(w.K0),i.LFG(Ni),i.LFG(Vr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gc=0,yn=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=s,this._ngZone=o,this._document=d,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=b}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),c=new lu(e);return c.direction=c.direction||this._directionality.value,new Ys(l,t,r,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+Gc++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new iw(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rw),i.LFG(Vr),i.LFG(i._Vd),i.LFG(Uc),i.LFG(x0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Vn),i.LFG(w.Ye),i.LFG(aw),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const $c=[{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"}],lp=new i.OlP("cdk-connected-overlay-scroll-strategy");let S0=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),E0=(()=>{class n{constructor(e,t,r,l,c){this._overlay=e,this._dir=c,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Bt.w0.EMPTY,this._attachSubscription=Bt.w0.EMPTY,this._detachSubscription=Bt.w0.EMPTY,this._positionSubscription=Bt.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new Dl(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(e)}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(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$c);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!An(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new lu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof S0?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(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(nt(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(lp),i.Y36(Vn,8))},n.\u0275dir=i.lG2({type:n,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:[i.TTD]}),n})();const $1={provide:lp,deps:[yn],useFactory:function G1(n){return()=>n.scrollStrategies.reposition()}};let zo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[yn,$1],imports:[ko,Fo,El,El]}),n})();class D0{}const Ws="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Et(n,a=null){return{type:4,styles:a,timings:n}}function uu(n,a=null){return{type:3,steps:n,options:a}}function J1(n,a=null){return{type:2,steps:n,options:a}}function Ie(n){return{type:6,styles:n,offset:null}}function Rt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Us(n){return{type:5,steps:n}}function Pt(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function kl(n=null){return{type:9,options:n}}function Fr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function hu(n){Promise.resolve(null).then(n)}class Rl{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){hu(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class P0{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?hu(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,s)=>Math.max(c,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const Q1=["connectionContainer"],K1=["inputContainer"],k0=["label"];function R0(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15)(3,"div",16)(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15)(7,"div",16)(8,"div",17),i.qZA(),i.BQk())}function ow(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function e_(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function t_(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function i_(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function n_(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.updateOutlineGap())}),i.YNc(2,e_,4,1,"ng-container",12),i.YNc(3,t_,1,0,"ng-content",12),i.YNc(4,i_,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function lw(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function r_(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function a_(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function O0(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function cp(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,O0,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const I0=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],s_=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let o_=0;const B0=new i.OlP("MatError");let jo=(()=>{class n{constructor(e,t){this.id="mat-error-"+o_++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:B0,useExisting:n}])]}),n})();const l_={transitionMessages:wi("transitionMessages",[Rt("enter",Ie({opacity:1,transform:"translateY(0%)"})),Pt("void => enter",[Ie({opacity:0,transform:"translateY(-5px)"}),Et("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),dw=0;const N0=new i.OlP("MatHint");let uw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+dw++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:N0,useExisting:n}])]}),n})(),Hi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),c_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const hw=new i.OlP("MatPrefix"),V0=new i.OlP("MatSuffix");let d_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:V0,useExisting:n}])]}),n})(),F0=0;const pw=as(class{constructor(n){this._elementRef=n}},"primary"),fw=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Jc=new i.OlP("MatFormField");let cn=(()=>{class n extends pw{constructor(e,t,r,l,c,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=c,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new De.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+F0++,this._labelId="mat-form-field-label-"+F0++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l?.appearance||"legacy",l&&(this._hideRequiredMarker=Boolean(l.hideRequiredMarker),l.color&&(this.color=this.defaultColor=l.color))}get appearance(){return this._appearance}set appearance(e){var t;const r=this._appearance;this._appearance=e||(null===(t=this._defaults)||void 0===t?void 0:t.appearance)||"legacy","outline"===this._appearance&&r!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(ti(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(rt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(rt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Fi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(ti(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(ti(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(rt(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(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_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,qs(this._label.nativeElement,"transitionend").pipe((0,dt.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 e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*N+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,Sl,gt]}),n})();function Xc(n){return n&&"function"==typeof n.connect}class Pa{applyChanges(a,e,t,r,l){a.forEachOperation((c,s,o)=>{let d,u;if(null==c.previousIndex){const f=t(c,s,o);d=e.createEmbeddedView(f.templateRef,f.context,f.index),u=1}else null==o?(e.remove(s),u=3):(d=e.get(s),e.move(d,o),u=2);var h;l&&l({context:null===(h=d)||void 0===h?void 0:h.context,operation:u,record:c})})}detach(){}}class Mn{constructor(a=!1,e,t=!0,r){this._multiple=a,this._emitChanges=t,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new De.x,e&&e.length&&(a?e.forEach(l=>this._markSelected(l)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(t=>this._markSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...a){this._verifyValueAssignment(a),a.forEach(t=>this._unmarkSelected(t));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...a){this._verifyValueAssignment(a);const e=this.selected,t=new Set(a);a.forEach(l=>this._markSelected(l)),e.filter(l=>!t.has(l)).forEach(l=>this._unmarkSelected(l));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(a){return this.isSelected(a)?this.deselect(a):this.select(a)}clear(a=!0){this._unmarkAll();const e=this._hasQueuedChanges();return a&&this._emitChangeEvent(),e}isSelected(a){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,a))return!0;return!1}return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}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(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let zr=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cr=new i.OlP("_ViewRepeater");var f_=T(4742),m_=T(1810);function z0(...n){const a=(0,fo.jO)(n),{args:e,keys:t}=(0,f_.D)(n),r=new Bn.y(l=>{const{length:c}=e;if(!c)return void l.complete();const s=new Array(c);let o=c,d=c;for(let u=0;u{h||(h=!0,d--),s[u]=f},()=>o--,void 0,()=>{(!o||!h)&&(d||l.next(t?(0,m_.n)(t,s):s),l.complete())}))}});return a?r.pipe((0,Xh.Z)(a)):r}let g_=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),Il=(()=>{class n extends g_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Qn=new i.OlP("NgValueAccessor"),mw={provide:Qn,useExisting:(0,i.Gpc)(()=>dn),multi:!0},gw=new i.OlP("CompositionEventMode");let dn=(()=>{class n extends g_{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function __(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(gw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([mw]),i.qOj]}),n})();function ka(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function A_(n){return null!=n&&"number"==typeof n.length}const wn=new i.OlP("NgValidators"),$s=new i.OlP("NgAsyncValidators"),q0=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ji{static min(a){return function dp(n){return a=>{if(ka(a.value)||ka(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ka(a.value)||ka(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return W0(a)}static requiredTrue(a){return function up(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function U0(n){return ka(n.value)||q0.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function G0(n){return a=>ka(a.value)||!A_(a.value)?null:a.value.lengthA_(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function Z0(n){if(!n)return fu;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(ka(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return T_(a)}static composeAsync(a){return x_(a)}}function W0(n){return ka(n.value)?{required:!0}:null}function fu(n){return null}function y_(n){return null!=n}function M_(n){return(0,i.QGY)(n)?(0,Dn.D)(n):n}function w_(n){let a={};return n.forEach(e=>{a=null!=e?{...a,...e}:a}),0===Object.keys(a).length?null:a}function C_(n,a){return a.map(e=>e(n))}function v_(n){return n.map(a=>function _w(n){return!n.validate}(a)?a:e=>a.validate(e))}function T_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return w_(C_(e,a))}}function J0(n){return null!=n?T_(v_(n)):null}function x_(n){if(!n)return null;const a=n.filter(y_);return 0==a.length?null:function(e){return z0(C_(e,a).map(M_)).pipe((0,At.U)(w_))}}function X0(n){return null!=n?x_(v_(n)):null}function S_(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function E_(n){return n._rawValidators}function D_(n){return n._rawAsyncValidators}function Q0(n){return n?Array.isArray(n)?n:[n]:[]}function hp(n,a){return Array.isArray(n)?n.includes(a):n===a}function H_(n,a){const e=Q0(a);return Q0(n).forEach(r=>{hp(e,r)||e.push(r)}),e}function L_(n,a){return Q0(a).filter(e=>!hp(n,e))}class K0{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=J0(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=X0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Kn extends K0{get formDirective(){return null}get path(){return null}}class ra extends K0{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class em{constructor(a){this._cd=a}get isTouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.touched)}get isUntouched(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.untouched)}get isPristine(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pristine)}get isDirty(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.dirty)}get isValid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.valid)}get isInvalid(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.invalid)}get isPending(){var a,e;return!(null===(a=this._cd)||void 0===a||null===(e=a.control)||void 0===e||!e.pending)}get isSubmitted(){var a;return!(null===(a=this._cd)||void 0===a||!a.submitted)}}let un=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ra,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)},features:[i.qOj]}),n})(),Kc=(()=>{class n extends em{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.isUntouched)("ng-touched",t.isTouched)("ng-pristine",t.isPristine)("ng-dirty",t.isDirty)("ng-valid",t.isValid)("ng-invalid",t.isInvalid)("ng-pending",t.isPending)("ng-submitted",t.isSubmitted)},features:[i.qOj]}),n})();const gu="VALID",Bl="INVALID",Js="PENDING",Ri="DISABLED";function k_(n){return(_u(n)?n.validators:n)||null}function im(n){return Array.isArray(n)?J0(n):n||null}function fp(n,a){return(_u(a)?a.asyncValidators:n)||null}function R_(n){return Array.isArray(n)?X0(n):n||null}function _u(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function nm(n,a,e){const t=n.controls;if(!(a?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[e])throw new i.vHH(1001,"")}function rm(n,a,e){n._forEachChild((t,r)=>{if(void 0===e[r])throw new i.vHH(1002,"")})}class bu{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=im(this._rawValidators),this._composedAsyncValidatorFn=R_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===gu}get invalid(){return this.status===Bl}get pending(){return this.status==Js}get disabled(){return this.status===Ri}get enabled(){return this.status!==Ri}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=im(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=R_(a)}addValidators(a){this.setValidators(H_(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(H_(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(L_(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(L_(a,this._rawAsyncValidators))}hasValidator(a){return hp(this._rawValidators,a)}hasAsyncValidator(a){return hp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Js,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Ri,this.errors=null,this._forEachChild(t=>{t.disable({...a,onlySelf:!0})}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=gu,this._forEachChild(t=>{t.enable({...a,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors({...a,skipPristineCheck:e}),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gu||this.status===Js)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ri:gu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Js,this._hasOwnPendingAsyncValidator=!0;const e=M_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){let e=a;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((t,r)=>t&&t._find(r),this)}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Ri:this.errors?Bl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Js)?Js:this._anyControlsHaveStatus(Bl)?Bl:gu}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){_u(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(a){return null}}class mp extends bu{constructor(a,e,t){super(k_(e),fp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){rm(this,0,a),Object.keys(a).forEach(t=>{nm(this,!0,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{const r=this.controls[t];r&&r.patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=e.getRawValue(),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const[e,t]of Object.entries(this.controls))if(this.contains(e)&&a(t))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,t,r)=>((t.enabled||this.disabled)&&(e[r]=t.value),e))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null}}function gp(n,a){return[...a.path,n]}function yu(n,a){var e,t;_p(n,a),a.valueAccessor.writeValue(n.value),n.disabled&&(null===(e=(t=a.valueAccessor).setDisabledState)||void 0===e||e.call(t,!0)),function wu(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&I_(n,a)})}(n,a),function xw(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function Cu(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&I_(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function O_(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function Nl(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),bp(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Mu(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function _p(n,a){const e=E_(n);null!==a.validator?n.setValidators(S_(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=D_(n);null!==a.asyncValidator?n.setAsyncValidators(S_(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Mu(a._rawValidators,r),Mu(a._rawAsyncValidators,r)}function bp(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=E_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=D_(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(c=>c!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Mu(a._rawValidators,t),Mu(a._rawAsyncValidators,t),e}function I_(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function B_(n,a){_p(n,a)}function am(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Hw(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function z_(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===dn?e=l:function Dw(n){return Object.getPrototypeOf(n.constructor)===Il}(l)?t=l:r=l}),r||t||e||null}const j_={provide:Kn,useExisting:(0,i.Gpc)(()=>Vl)},Yo=(()=>Promise.resolve(null))();let Vl=(()=>{class n extends Kn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new mp({},J0(e),X0(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Yo.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),yu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Yo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Yo.then(()=>{const t=this._findContainer(e.path),r=new mp({});B_(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Yo.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Yo.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Hw(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36($s,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([j_]),i.qOj]}),n})();function q_(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}function sm(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const os=class extends bu{constructor(a=null,e,t){super(k_(e),fp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),_u(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=sm(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){q_(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){q_(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(a){sm(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}},Ra=os,Rw={provide:ra,useExisting:(0,i.Gpc)(()=>ls)},om=(()=>Promise.resolve(null))();let ls=(()=>{class n extends ra{constructor(e,t,r,l,c){super(),this._changeDetectorRef=c,this.control=new os,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),am(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){yu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){om.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=0!==t&&(0,i.D6c)(t);om.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?gp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,9),i.Y36(wn,10),i.Y36($s,10),i.Y36(Qn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([Rw]),i.qOj,i.TTD]}),n})(),Ap=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const Ow={provide:Qn,useExisting:(0,i.Gpc)(()=>vu),multi:!0};let vu=(()=>{class n extends Il{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([Ow]),i.qOj]}),n})(),U_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const cm=new i.OlP("NgModelWithFormControlWarning"),dm={provide:ra,useExisting:(0,i.Gpc)(()=>Oa)};let Oa=(()=>{class n extends ra{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=z_(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Nl(t,this,!1),yu(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}am(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36($s,10),i.Y36(Qn,10),i.Y36(cm,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([dm]),i.qOj,i.TTD]}),n})();const Z_={provide:Kn,useExisting:(0,i.Gpc)(()=>Xs)};let Xs=(()=>{class n extends Kn{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return yu(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Nl(e.control||null,e,!1),function oS(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Hw(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Nl(t||null,e),(n=>n instanceof os)(r)&&(yu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);B_(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function N_(n,a){return bp(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_p(this.form,this),this._oldForm&&bp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10),i.Y36($s,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Z_]),i.qOj,i.TTD]}),n})();const Fw={provide:ra,useExisting:(0,i.Gpc)(()=>yp)};let yp=(()=>{class n extends ra{constructor(e,t,r,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=z_(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),am(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return gp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Kn,13),i.Y36(wn,10),i.Y36($s,10),i.Y36(Qn,10),i.Y36(cm,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Fw]),i.qOj,i.TTD]}),n})(),zl=(()=>{class n{constructor(){this._validator=fu}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):fu,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const ab={provide:wn,useExisting:(0,i.Gpc)(()=>aa),multi:!0};let aa=(()=>{class n extends zl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.D6c,this.createValidator=e=>W0}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([ab]),i.qOj]}),n})(),cb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[U_]}),n})(),Cp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})(),Qs=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:cm,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[cb]}),n})();class Am extends bu{constructor(a,e,t){super(k_(e),fp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[this._adjustIndex(a)]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){let t=this._adjustIndex(a);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){let r=this._adjustIndex(a);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){rm(this,0,a),a.forEach((t,r)=>{nm(this,!1,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>a.getRawValue())}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_adjustIndex(a){return a<0?a+this.length:a}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}_find(a){var e;return null!==(e=this.at(a))&&void 0!==e?e:null}}function db(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let Zw=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,t=null){const r=this._reduceControls(e);let l={};return db(t)?l=t:null!==t&&(l.validators=t.validator,l.asyncValidators=t.asyncValidator),new mp(r,l)}control(e,t,r){let l={};return this.useNonNullable?(db(t)?l=t:(l.validators=t,l.asyncValidators=r),new os(e,{...l,nonNullable:!0})):new os(e,t,r)}array(e,t,r){const l=e.map(c=>this._createControl(c));return new Am(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return e instanceof os||e instanceof bu?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Qs}),n})(),Jw=(()=>{class n extends Zw{group(e,t=null){return super.group(e,t)}control(e,t,r){return super.control(e,t,r)}array(e,t,r){return super.array(e,t,r)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Qs}),n})();const Xw=["trigger"],ub=["panel"];function hb(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function pb(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function Qw(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Kw(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,pb,2,1,"span",10),i.YNc(2,Qw,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function eC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13)(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._panelDoneAnimatingStream.next(r.toState))})("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))}),i.Hsn(3,1),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const tC=[[["mat-select-trigger"]],"*"],iC=["mat-select-trigger","*"],fb={transformPanelWrap:wi("transformPanelWrap",[Pt("* => void",Fr("@transformPanel",[kl()],{optional:!0}))]),transformPanel:wi("transformPanel",[Rt("void",Ie({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Rt("showing",Ie({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Rt("showing-multiple",Ie({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Pt("void => *",Et("120ms cubic-bezier(0, 0, 0.2, 1)")),Pt("* => void",Et("100ms 25ms linear",Ie({opacity:0})))])};let ym=0;const wm=new i.OlP("mat-select-scroll-strategy"),Ab=new i.OlP("MAT_SELECT_CONFIG"),rC={provide:wm,deps:[yn],useFactory:function bb(n){return()=>n.scrollStrategies.reposition()}};class aC{constructor(a,e){this.source=a,this.value=e}}const Su=Sa(Oo(xa(E1(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r,this.stateChanges=new De.x}})))),sC=new i.OlP("MatSelectTrigger");let cs=(()=>{class n extends Su{constructor(e,t,r,l,c,s,o,d,u,h,f,b,N,Q){var pe,Pe,_t;super(c,l,o,d,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=N,this._defaultOptions=Q,this._panelOpen=!1,this._compareWith=(kt,Ut)=>kt===Ut,this._uid="mat-select-"+ym++,this._triggerAriaLabelledBy=null,this._destroy=new De.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ym++,this._panelDoneAnimatingStream=new De.x,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Pe=null===(_t=this._defaultOptions)||void 0===_t?void 0:_t.disableOptionCentering)&&void 0!==Pe&&Pe,this.ariaLabel="",this.optionSelectionChanges=nr(()=>{const kt=this.options;return kt?kt.changes.pipe(ti(kt),(0,Nt.w)(()=>(0,Fi.T)(...kt.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,dt.q)(1),(0,Nt.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,Yt.h)(kt=>kt),(0,At.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Yt.h)(kt=>!kt),(0,At.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Q?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Q.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Zi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Mn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Ih(),rt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(rt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ti(null),rt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){const r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(void 0!==this._previousControl&&null!==t.disabled&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.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(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,c=this._keyManager;if(!c.isTyping()&&l&&!An(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;c.onKeydown(e);const o=this.selected;o&&s!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,c=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(c||13!==r&&32!==r||!t.activeItem||An(e))if(!c&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(s?o.select():o.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.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,dt.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(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{const t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new ta(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(rt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(rt(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 e=(0,Fi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(rt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Fi.T)(...this.options.map(t=>t._stateChanges)).pipe(rt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(No),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Vc),i.Y36(i.SBq),i.Y36(Vn,8),i.Y36(Vl,8),i.Y36(Xs,8),i.Y36(Jc,8),i.Y36(ra,10),i.$8M("tabindex"),i.Y36(wm),i.Y36(A1),i.Y36(Ab,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(Xw,5),i.Gf(ub,5),i.Gf(E0,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.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:[i.qOj,i.TTD]}),n})(),Tp=(()=>{class n extends cs{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(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(rt(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,dt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=s0(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:o0((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new aC(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let c;if(this.multiple)c=40;else if(this.disableOptionCentering)c=16;else{let d=this._selectionModel.selected[0]||this.options.first;c=d&&d.group?32:16}r||(c*=-1);const s=0-(e.left+c-(r?l:0)),o=e.right+c-t.width+(r?0:l);s>0?c+=s+8:o>0&&(c-=o+8),this._overlayDir.offsetX=Math.round(c),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),c=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*o-c))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,c=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),d=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;d>c?this._adjustPanelUp(d,c):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),c=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=s0(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,c),this._offsetY=this._calculateOverlayOffsetY(s,o,c),this._checkOverlayWithinViewport(c)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,sC,5),i.Suo(r,js,5),i.Suo(r,ru,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:Zc,useExisting:n},{provide:r0,useExisting:n}]),i.qOj],ngContentSelectors:iC,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(e,t){if(1&e&&(i.F$t(tC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,hb,2,1,"span",3),i.YNc(5,Kw,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA()(),i.YNc(8,eC,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},dependencies:[w.mk,w.RF,w.n9,w.ED,E0,S0],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:[fb.transformPanelWrap,fb.transformPanel]},changeDetection:0}),n})(),Wo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[rC],imports:[w.ez,zo,au,gt,La,ss,au,gt]}),n})();const Eu=["tooltip"],Mb="tooltip-panel",Du=Kr({passive:!0}),wb=new i.OlP("mat-tooltip-scroll-strategy"),vb={provide:wb,deps:[yn],useFactory:function Cb(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cm=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Tb(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let lC=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=c,this._platform=s,this._ariaDescriber=o,this._focusMonitor=d,this._dir=h,this._defaultOptions=f,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 De.x,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(rt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef)&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Zi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Zi(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(rt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,Du)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new qc(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=t.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),r=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(rt(this._destroyed)).subscribe(l=>{this._updateCurrentPositionClass(l.connectionPair),this._tooltipInstance&&l.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${Mb}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(rt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(rt(this._destroyed)).subscribe(()=>{var l;return null===(l=this._tooltipInstance)||void 0===l?void 0:l._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(rt(this._destroyed)).subscribe(l=>{this._isTooltipVisible()&&27===l.keyCode&&!An(l)&&(l.preventDefault(),l.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),null!==(e=this._defaultOptions)&&void 0!==e&&e.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(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset({...r.main,...l.main}),this._addOffset({...r.fallback,...l.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1),rt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${Mb}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+c)}this._currentPosition=c}}_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 e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{var r;const l=t.relatedTarget;(!l||null===(r=this._overlayRef)||void 0===r||!r.overlayElement.contains(l))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,Du)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),dr=(()=>{class n extends lC{constructor(e,t,r,l,c,s,o,d,u,h,f,b){super(e,t,r,l,c,s,o,d,u,h,f,b),this._tooltipComponent=vm}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.SBq),i.Y36(jc),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Ni),i.Y36(p1),i.Y36(vr),i.Y36(wb),i.Y36(Vn,8),i.Y36(Cm,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),gS=(()=>{class n{constructor(e,t){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new De.x,this._animationsDisabled="NoopAnimations"===t}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}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:e}){(!e||!this._triggerElement.contains(e))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const t=this._tooltip.nativeElement,r=this._showAnimation,l=this._hideAnimation;if(t.classList.remove(e?l:r),t.classList.add(e?r:l),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const c=getComputedStyle(t);("0s"===c.getPropertyValue("animation-duration")||"none"===c.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.QbO,8))},n.\u0275dir=i.lG2({type:n}),n})(),vm=(()=>{class n extends gS{constructor(e,t,r){super(e,r),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(Nh),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,t){if(1&e&&i.Gf(Eu,7),2&e){let r;i.iGM(r=i.CRH())&&(t._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("mouseleave",function(l){return t._handleMouseLeave(l)}),2&e&&i.Udp("zoom",t.isVisible()?1:null)},features:[i.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(l){return t._handleAnimationEnd(l)}),i.ALo(2,"async"),i._uU(3),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(2,4,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass),i.xp6(3),i.Oqu(t.message)}},dependencies:[w.mk,w.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}),n})(),Ks=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[vb],imports:[Yh,w.ez,zo,gt,gt,La]}),n})();function Tm(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function xm(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16)(1,"mat-select",17),i.NdJ("selectionChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l._changePageSize(r.value))}),i.YNc(2,Tm,2,2,"mat-option",18),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dC(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function uC(n,a){if(1&n&&(i.TgZ(0,"div",12)(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,xm,3,8,"mat-form-field",14),i.YNc(4,dC,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function hC(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.firstPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function pC(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.lastPage())}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let Hu=(()=>{class n{constructor(){this.changes=new De.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xb={provide:Hu,deps:[[new i.FiY,new i.tp0,Hu]],useFactory:function Sm(n){return n||new Hu}},Eb=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),mC=xa(iu(class{}));let Db=(()=>{class n extends mC{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:c,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=c&&(this._pageSizeOptions=c),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(Zi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=Zi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(Zi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>Zi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=je(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=je(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[i.qOj]}),n})(),Em=(()=>{class n extends Db{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hu),i.Y36(i.sBO),i.Y36(Eb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,uC,5,3,"div",2),i.TgZ(3,"div",3)(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,hC,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA()(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA()(),i.YNc(13,pC,3,5,"button",11),i.qZA()()()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},dependencies:[w.sg,w.O5,Lt,cn,Tp,js,dr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),n})(),Lu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xb],imports:[w.ez,Ea,Wo,Ks,gt]}),n})();var Sp=T(1005);const gC=["mat-menu-item",""];function ur(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Yl=["*"];function _C(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._handleKeydown(r))})("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.closed.emit("click"))})("@transformMenu.start",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationStart(r))})("@transformMenu.done",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l._onAnimationDone(r))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ep={transformMenu:wi("transformMenu",[Rt("void",Ie({opacity:0,transform:"scale(0.8)"})),Pt("void => enter",Et("120ms cubic-bezier(0, 0, 0.2, 1)",Ie({opacity:1,transform:"scale(1)"}))),Pt("* => void",Et("100ms 25ms linear",Ie({opacity:0})))]),fadeInItems:wi("fadeInItems",[Rt("showing",Ie({opacity:1})),Pt("void => *",[Ie({opacity:0}),Et("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Hb=new i.OlP("MatMenuContent"),Hp=new i.OlP("MAT_MENU_PANEL"),AC=Sa(xa(class{}));let Pu=(()=>{class n extends AC{constructor(e,t,r,l,c){var s;super(),this._elementRef=e,this._document=t,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new De.x,this._focused=new De.x,this._highlighted=!1,this._triggersSubmenu=!1,null==l||null===(s=l.addItem)||void 0===s||s.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._changeDetectorRef=l,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=Bt.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new De.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Dm++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new zh(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,Nt.w)(e=>(0,Fi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var t;const r=this._keyManager;if("enter"===this._panelAnimationState&&null!==(t=r.activeItem)&&void 0!==t&&t._hasFocus()){const l=e.toArray(),c=Math.max(0,Math.min(l.length-1,r.activeItemIndex||0));l[c]&&!l[c].disabled?r.setActiveItem(c):r.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(ti(this._directDescendantItems),(0,Nt.w)(t=>(0,Fi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:An(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){const r=this._keyManager;r.setFocusOrigin(e).setFirstItemActive(),!r.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){var r;const l=this._classList;l["mat-menu-before"]="before"===e,l["mat-menu-after"]="after"===e,l["mat-menu-above"]="above"===t,l["mat-menu-below"]="below"===t,null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(ti(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Wl),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Hb,5),i.Suo(r,Pu,5),i.Suo(r,Pu,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Hm=(()=>{class n extends id{constructor(e,t,r,l){super(e,t,r,l),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Wl),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Hp,useExisting:n}]),i.qOj],ngContentSelectors:Yl,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,_C,3,6,"ng-template"))},dependencies:[w.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Ep.transformMenu,Ep.fadeInItems]},changeDetection:0}),n})();const ku=new i.OlP("mat-menu-scroll-strategy"),AS={provide:ku,deps:[yn],useFactory:function Lm(n){return()=>n.scrollStrategies.reposition()}},Pb=Kr({passive:!0});let kb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=d,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Bt.w0.EMPTY,this._hoverSubscription=Bt.w0.EMPTY,this._menuCloseSubscription=Bt.w0.EMPTY,this._handleTouchStart=h=>{rs(h)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof id?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pb),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pb),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const t=this._createOverlay(e),r=t.getConfig(),l=r.positionStrategy;this._setPosition(e,l),r.hasBackdrop=e.hasBackdrop??!this.triggersSubmenu(),t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof id&&(e._startAnimation(),e._directDescendantItems.changes.pipe(rt(e.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;var r;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof id?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,Yt.h)(l=>"void"===l.toState),(0,dt.q)(1),rt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null==t||null===(r=t.lazyContent)||void 0===r||r.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,r=e.parentMenu;for(;r;)t++,r=r.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new lu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(r=>{const l="start"===r.connectionPair.overlayX?"after":"before",c="top"===r.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(l,c)):e.setPositionClasses(l,c)})}_setPosition(e,t){let[r,l]="before"===e.xPosition?["end","start"]:["start","end"],[c,s]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[o,d]=[c,s],[u,h]=[r,l],f=0;if(this.triggersSubmenu()){if(h=r="before"===e.xPosition?"start":"end",l=u="end"===r?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const b=this._parentMaterialMenu.items.first;this._parentInnerPadding=b?b._getHostElement().offsetTop:0}f="bottom"===c?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o="top"===c?"bottom":"top",d="top"===s?"bottom":"top");t.withPositions([{originX:r,originY:o,overlayX:u,overlayY:c,offsetY:f},{originX:l,originY:o,overlayX:h,overlayY:c,offsetY:f},{originX:r,originY:d,overlayX:u,overlayY:s,offsetY:-f},{originX:l,originY:d,overlayX:h,overlayY:s,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,$e.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Yt.h)(c=>c!==this._menuItemInstance),(0,Yt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Fi.T)(e,r,l,t)}_handleMousedown(e){eu(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Yt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Sp.g)(0,tp)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof id&&this.menu._isAnimating?this.menu._animationDone.pipe((0,dt.q)(1),(0,Sp.g)(0,tp),rt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Dl(e.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(ku),i.Y36(Hp,8),i.Y36(Pu,10),i.Y36(Vn,8),i.Y36(vr),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),n})(),Ul=(()=>{class n extends kb{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),Ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[AS],imports:[w.ez,gt,na,zo,La,gt]}),n})();var Pm=T(3099);const km=["*"];let Rm;function Lp(n){var a;return(null===(a=function wC(){if(void 0===Rm&&(Rm=null,typeof window<"u")){const n=window;void 0!==n.trustedTypes&&(Rm=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Rm}())||void 0===a?void 0:a.createHTML(n))||n}function Rb(n){return Error(`Unable to find icon with the name "${n}"`)}function Ob(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Om(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Uo{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ou=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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","mat-ligature-font"],this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Uo(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const c=this._sanitizer.sanitize(i.q3G.HTML,r);if(!c)throw Om(r);const s=Lp(c);return this._addSvgIconConfig(e,t,new Uo("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Uo(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Om(t);const c=Lp(l);return this._addSvgIconSetConfig(e,new Uo("",c,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw Ob(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(Pp(r)):this._loadSvgIconFromConfig(new Uo(e,null)).pipe((0,mi.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,At.U)(l=>Pp(l)))}getNamedSvgIcon(e,t=""){const r=Bb(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,Zn._)(Rb(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(Pp(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,At.U)(t=>Pp(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):z0(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,li.K)(s=>{const d=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,c.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(d)),(0,$e.of)(null)})))).pipe((0,At.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw Rb(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(c,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,mi.b)(t=>e.svgText=t),(0,At.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,mi.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,r);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),r);const s=this._svgElementFromString(Lp(""));return s.appendChild(c),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(Lp("")),r=e.attributes;for(let l=0;lLp(u)),ii(()=>this._inProgressUrlFetches.delete(s)),(0,Pm.B)());return this._inProgressUrlFetches.set(s,d),d}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(Bb(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),Im=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],xC=Im.map(n=>`[${n}]`).join(", "),SC=/^url\(['"]?#(.*?)['"]?\)$/;let Xi=(()=>{class n extends TC{constructor(e,t,r,l,c,s){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Bt.w0.EMPTY,s&&(s.color&&(this.color=this.defaultColor=s.color),s.fontSet&&(this.fontSet=s.fontSet)),r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=je(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){const r=e.childNodes[t];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(r=>r.length>0);this._previousFontSetClass.forEach(r=>e.classList.remove(r)),t.forEach(r=>e.classList.add(r)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const t=this._elementsWithExternalReferences;t&&t.forEach((r,l)=>{r.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(xC),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(c),d=o?o.match(SC):null;if(d){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:c,value:d[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,dt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ou),i.$8M("aria-hidden"),i.Y36(Fb),i.Y36(i.qLn),i.Y36(Vb,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:km,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.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}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}),n})(),Ia=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();function eo(n){return!!n&&(n instanceof Bn.y||(0,Da.m)(n.lift)&&(0,Da.m)(n.subscribe))}var yS=T(6063);class MS extends De.x{constructor(a=1/0,e=1/0,t=yS.l){super(),this._bufferSize=a,this._windowTime=e,this._timestampProvider=t,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,e)}next(a){const{isStopped:e,_buffer:t,_infiniteTimeWindow:r,_timestampProvider:l,_windowTime:c}=this;e||(t.push(a),!r&&t.push(l.now()+c)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(a),{_infiniteTimeWindow:t,_buffer:r}=this,l=r.slice();for(let c=0;cnew MS(t,a,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}class kp{}let DC=(()=>{class n extends kp{getTranslation(e){return(0,$e.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class jb{}let HC=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Gl(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,c,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in c=Object.create(null),n){if(!Gl(n[l],a[l]))return!1;c[l]=!0}for(l in a)if(!(l in c)&&typeof a[l]<"u")return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Rp(a[t])?t in n?e[t]=Iu(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Bu{}let Bm=(()=>{class n extends Bu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!$l(e)||!$l(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let c=this.getValue(t,l);return $l(c)?c:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Nm{}let Op=(()=>{class n extends Nm{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Vm{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Fm=new i.OlP("USE_STORE"),Ip=new i.OlP("USE_DEFAULT_LANG"),qb=new i.OlP("DEFAULT_LANGUAGE"),zm=new i.OlP("USE_EXTEND");let _i=(()=>{class n{constructor(e,t,r,l,c,s=!0,o=!1,d=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=s,this.isolate=o,this.extend=d,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);typeof t<"u"?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,dt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,$e.of)(this.translations[e]);let t=this.retrieveTranslations(e);return typeof t<"u"?(this.currentLang||(this.currentLang=e),t.pipe((0,dt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(EC(1),(0,dt.q)(1));return this.loadingTranslations=t.pipe((0,At.U)(r=>this.compiler.compileTranslations(r,e)),EC(1),(0,dt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?{...r,...this.translations[e]}:r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Iu(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let c={},s=!1;for(let o of t)c[o]=this.getParsedResult(e,o,r),eo(c[o])&&(s=!0);return s?z0(t.map(d=>eo(c[d])?c[d]:(0,$e.of)(c[d]))).pipe((0,At.U)(d=>{let u={};return d.forEach((h,f)=>{u[t[f]]=h}),u})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),typeof l>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),typeof l>"u"){let c={key:t,translateService:this};typeof r<"u"&&(c.interpolateParams=r),l=this.missingTranslationHandler.handle(c)}return typeof l<"u"?l:t}get(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,yr.b)(r=>eo(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return eo(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ga.z)(nr(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Nt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');return(0,Ga.z)(nr(()=>this.get(e,t)),this.onLangChange.pipe((0,Nt.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return eo(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!$l(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(eo(r)){if(e instanceof Array){let l={};return e.forEach((c,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Vm),i.LFG(kp),i.LFG(Nm),i.LFG(Bu),i.LFG(jb),i.LFG(Ip),i.LFG(Fm),i.LFG(zm),i.LFG(qb))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(r){let c=this.translate.getParsedResult(r,e,t);eo(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Gl(e,this.lastKey)&&Gl(t,this.lastParams))return this.value;let r;if($l(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Nu=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:kp,useClass:DC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Bu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:HC},Vm,{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},_i]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:kp,useClass:DC},e.compiler||{provide:Nm,useClass:Op},e.parser||{provide:Bu,useClass:Bm},e.missingTranslationHandler||{provide:jb,useClass:HC},{provide:Fm,useValue:e.isolate},{provide:Ip,useValue:e.useDefaultLang},{provide:zm,useValue:e.extend},{provide:qb,useValue:e.defaultLanguage},_i]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),LC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Lu,Ru,Ia,Ea,Nu,w.ez]}),n})();var CS=T(5861);function vS(n,a){}class Bp{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 Yb=(()=>{class n extends y0{constructor(e,t,r,l,c,s,o,d){super(),this._elementRef=e,this._focusTrapFactory=t,this._config=l,this._interactivityChecker=c,this._ngZone=s,this._overlayRef=o,this._focusMonitor=d,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=r}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();const t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._config.restoreFocus;let t=null;if("string"==typeof e?t=this._document.querySelector(e):"boolean"==typeof e?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&"function"==typeof t.focus){const r=Yd(),l=this._elementRef.nativeElement;(!r||r===this._document.body||r===l||l.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Yd();return e===t||e.contains(t)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Yd())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(Bp),i.Y36(Qd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(e,t){if(1&e&&i.Gf(rp,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,t){2&e&&i.uIk("id",t._config.id||null)("role",t._config.role)("aria-modal",t._config.ariaModal)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,vS,0,0,"ng-template",0)},dependencies:[rp],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),n})();class Wb{constructor(a,e){this.overlayRef=a,this.config=e,this.closed=new De.x,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{27===t.keyCode&&!this.disableClose&&!An(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(a,e){if(this.containerInstance){const t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}}const Ub=new i.OlP("DialogScrollStrategy"),Gb=new i.OlP("DialogData"),$b=new i.OlP("DefaultDialogConfig"),Ba={provide:Ub,deps:[yn],useFactory:function xS(n){return()=>n.scrollStrategies.block()}};let PC=0,Np=(()=>{class n{constructor(e,t,r,l,c,s){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._ariaHiddenElements=new Map,this.afterAllClosed=nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,t){(t={...this._defaultOptions||new Bp,...t}).id=t.id||"cdk-dialog-"+PC++,t.id&&this.getDialogById(t.id);const l=this._getOverlayConfig(t),c=this._overlay.create(l),s=new Wb(c,t),o=this._attachContainer(c,s,t);return s.containerInstance=o,this._attachDialogContent(e,s,o,t),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){jm(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){jm(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),jm(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const t=new lu({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,r){var l,c;const s=null!==(l=r.injector)&&void 0!==l?l:null===(c=r.viewContainerRef)||void 0===c?void 0:c.injector,o=[{provide:Bp,useValue:r},{provide:Wb,useValue:t},{provide:Ys,useValue:e}];let d;r.container?"function"==typeof r.container?d=r.container:(d=r.container.type,o.push(...r.container.providers(r))):d=Yb;const u=new qc(d,r.viewContainerRef,i.zs3.create({parent:s||this._injector,providers:o}),r.componentFactoryResolver);return e.attach(u).instance}_attachDialogContent(e,t,r,l){const c=this._createInjector(l,t,r);if(e instanceof i.Rgc){let s={$implicit:l.data,dialogRef:t};l.templateContext&&(s={...s,..."function"==typeof l.templateContext?l.templateContext():l.templateContext}),r.attachTemplatePortal(new Dl(e,null,s,c))}else{const s=r.attachComponentPortal(new qc(e,l.viewContainerRef,c,l.componentFactoryResolver));t.componentInstance=s.instance}}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:Gb,useValue:e.data},{provide:Wb,useValue:t}];return e.providers&&("function"==typeof e.providers?c.push(...e.providers(t,e,r)):c.push(...e.providers)),e.direction&&(!l||!l.get(Vn,null,i.XFs.Optional))&&c.push({provide:Vn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:e.injector||l||this._injector,providers:c})}_removeOpenDialog(e,t){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((l,c)=>{l?c.setAttribute("aria-hidden",l):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){const l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(i.zs3),i.LFG($b,8),i.LFG(n,12),i.LFG(Vr),i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function jm(n,a){let e=n.length;for(;e--;)a(n[e])}let jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Np,Ba],imports:[zo,Fo,Yh,Fo]}),n})();function kC(n,a){}const Go={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},RC={dialogContainer:wi("dialogContainer",[Rt("void, exit",Ie({opacity:0,transform:"scale(0.7)"})),Rt("enter",Ie({transform:"none"})),Pt("* => enter",uu([Et("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ie({transform:"none",opacity:1})),Fr("@*",kl(),{optional:!0})]),Go),Pt("* => void, * => exit",uu([Et("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ie({opacity:0})),Fr("@*",kl(),{optional:!0})]),Go)])};class Vu{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=Go.params.enterAnimationDuration,this.exitAnimationDuration=Go.params.exitAnimationDuration}}let qm=(()=>{class n extends Yb{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d),this._animationStateChanged=new i.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(Vu),i.Y36(Qd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],features:[i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2}),n})(),Zb=(()=>{class n extends qm{constructor(e,t,r,l,c,s,o,d,u){super(e,t,r,l,c,s,o,u),this._changeDetectorRef=d,this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?this._openAnimationDone(t):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:t})}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Go.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Go.params.exitAnimationDuration}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(w.K0,8),i.Y36(Vu),i.Y36(Qd),i.Y36(i.R0b),i.Y36(Ys),i.Y36(i.sBO),i.Y36(vr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._config.id),i.uIk("aria-modal",t._config.ariaModal)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._getAnimationState()))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,kC,0,0,"ng-template",0)},dependencies:[rp],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:[RC.dialogContainer]}}),n})();class zi{constructor(a,e,t){this._ref=a,this._containerInstance=t,this._afterOpened=new De.x,this._beforeClosed=new De.x,this._state=0,this.disableClose=e.disableClose,this.id=a.id,t._animationStateChanged.pipe((0,Yt.h)(r=>"opened"===r.state),(0,dt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe((0,Yt.h)(r=>"closed"===r.state),(0,dt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Fi.T)(this.backdropClick(),this.keydownEvents().pipe((0,Yt.h)(r=>27===r.keyCode&&!this.disableClose&&!An(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function OC(n,a,e){n._closeInteractionType=a,n.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,Yt.h)(e=>"closing"===e.state),(0,dt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.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(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Cn=new i.OlP("MatDialogData"),Jb=new i.OlP("mat-dialog-default-options"),Xb=new i.OlP("mat-dialog-scroll-strategy"),Ym={provide:Xb,deps:[yn],useFactory:function BC(n){return()=>n.scrollStrategies.block()}};let $o=0,Qb=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h){this._overlay=e,this._defaultOptions=r,this._parentDialog=l,this._dialogRefConstructor=o,this._dialogContainerType=d,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new De.x,this._afterOpenedAtThisLevel=new De.x,this._idPrefix="mat-dialog-",this.afterAllClosed=nr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ti(void 0))),this._scrollStrategy=s,this._dialog=t.get(Np)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){let r;(t={...this._defaultOptions||new Vu,...t}).id=t.id||`${this._idPrefix}${$o++}`,t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();const l=this._dialog.open(e,{...t,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Vu,useValue:t},{provide:Bp,useValue:t}]},templateContext:()=>({dialogRef:r}),providers:(c,s,o)=>{var d;return r=new this._dialogRefConstructor(c,t,o),r.updatePosition(null===(d=t)||void 0===d?void 0:d.position),[{provide:this._dialogContainerType,useValue:o},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}]}});return r.componentInstance=l.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const c=this.openDialogs.indexOf(r);c>-1&&(this.openDialogs.splice(c,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Oi=(()=>{class n extends Qb{constructor(e,t,r,l,c,s,o,d){super(e,t,l,s,o,c,zi,Zb,Cn,d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(Jb,8),i.LFG(Xb),i.LFG(n,12),i.LFG(Vr),i.LFG(i.QbO,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),to=0,Pn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+to++}ngOnInit(){this._dialogRef||(this._dialogRef=function NC(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi,8),i.Y36(i.SBq),i.Y36(Oi))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),hn=(()=>{class n{constructor(){this.align="start"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-dialog-actions-align-center","center"===t.align)("mat-dialog-actions-align-end","end"===t.align)},inputs:{align:"align"}}),n})(),Vp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Oi,Ym],imports:[jr,zo,Fo,gt,gt]}),n})();var Kb=T(4327);const Fu=[5,10,25,100];function zp(){return(zp=(0,CS.Z)(function*(n,a){yield WC(n),a()})).apply(this,arguments)}function WC(n){return new Promise(a=>setTimeout(a,n))}function bi(){const n=new Vu;return n.disableClose=!0,n.autoFocus=!1,n}function Zl(n){return"virt"===n.namespace.split(":")[4]}const Um=new Intl.Collator("cs",{numeric:!0});function zu(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,c)=>{const s=e(l,t),o=e(c,t);return Um.compare(s,o)*("asc"===r?1:-1)}):n}function Jl(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(c=>{l+=";"+t(n,c)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function hr(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const c={};a.forEach(s=>{c[s]=(e(l,s)??"").split('"').join("''").trim()}),t.push(c)}),t}function Na(n,a="csv",e="export"){if("csv"===a){const t=(o,d)=>null===d?"":d,r=Object.keys(n[0]),l=n.map(o=>r.map(d=>JSON.stringify(o[d],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const c=l.join("\r\n"),s=new Blob([c],{type:"text/csv"});(0,Kb.saveAs)(s,`${e}.${a}`)}}function KC(n,a){return n.name.toLowerCase()>a.name.toLowerCase()?1:n.name.toLowerCase()===a.name.toLowerCase()?0:-1}const Gm="GUI_CONFIG.PREF_PAGE_SIZE.";let nv=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),rv=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Gm+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Gm+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nv))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function eL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.exportAllData.emit("csv"))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.ALL_DATA")," "))}let tL=(()=>{class n{constructor(){this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],inputs:{allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},decls:19,vars:10,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["xPosition","before"],["selectData","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0)(1,"button",1)(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA()(),i.TgZ(4,"mat-menu",null,2)(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA()(),i.TgZ(9,"mat-menu",null,4)(11,"button",3),i._uU(12,"Csv"),i.qZA()(),i.TgZ(13,"mat-menu",5,6)(15,"button",7),i.NdJ("click",function(){return t.exportDisplayedData.emit("csv")}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.YNc(18,eL,3,3,"button",8),i.qZA()()),2&e){const r=i.MAs(5),l=i.MAs(10),c=i.MAs(14);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,6,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," "),i.xp6(4),i.Q6J("matMenuTriggerFor",c),i.xp6(5),i.hij(" ",i.lcZ(17,8,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.DISPLAYED_DATA")," "),i.xp6(2),i.Q6J("ngIf",t.allowExportAll)}},dependencies:[Hm,Pu,Ul,Xi,Lt,w.O5,lt]}),n})();function iL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}function nL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportDisplayedData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportDisplayedData.emit(r))})("exportAllData",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.exportAllData.emit(r))}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("allowExportAll",e.allowExportAll)}}const rL=["*"];let ds=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Fu,this.dataLength=0,this.allowExportAll=!0,this.exportDisplayedData=new i.vpe,this.exportAllData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(Em,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId",allowExportAll:"allowExportAll"},outputs:{exportDisplayedData:"exportDisplayedData",exportAllData:"exportAllData"},ngContentSelectors:rL,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"allowExportAll","exportDisplayedData","exportAllData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1)(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,iL,1,1,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1)(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,nL,1,1,"perun-web-apps-table-options",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},dependencies:[Em,w.O5,tL]}),n})();class GS{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let Zt=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.getProperty("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.getProperty("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.getProperty("skip_oidc")}getProperty(e){const t=[this.instanceConfig?.brandings?.[this.branding],this.instanceConfig,this.defaultConfig];let r=null;for(const l of t)l&&!r&&(r=l[e]);return r}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l{class n{constructor(e,t,r,l,c){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Ai),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};if(this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt?c.prompt+=" login":c.prompt="login",c.max_age="0"),"Linker"===this.store.getProperty("application")){c.prompt?c.prompt+=" login":c.prompt="login";const s=function tv(n,a){const e=a.split("&");for(const t of e){const[r,l]=t.split("=");if(r.includes(n))return l}return""}("idphint",location.search.substring(1));s&&(c.idphint=s)}return{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,userinfoEndpoint:this.store.getProperty("oidc_client").user_info_endpoint_url,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],r=t[c[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(r=>r?this.startRefreshToken():new Promise(l=>l(!1)))}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,Yt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const c={};return l.forEach(s=>{const o=s.split("=");c[o[0]]=o[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>"Linker"===this.store.getProperty("application")?(sessionStorage.setItem("auth:queryParams",t),localStorage.removeItem("access_token"),!1):!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(Zt),i.LFG(Oi),i.LFG(Xn),i.LFG(ju.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aL=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},dependencies:[vn,lt]}),n})(),ov=(()=>{class n{constructor(e,t,r,l,c,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=c,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):"/service-access"!==location.pathname?(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth()):void 0}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=bi();this.dialog.open(aL,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}simpleLoadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{this.storeService.setPerunPrincipal(e)})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ad),i.LFG(Zt),i.LFG(Ua),i.LFG(ht),i.LFG(Oi),i.LFG(Ai))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$S=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/authentication-blue.svg",name:"perun-authentication"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"},{url:"assets/img/PerunWebImages/verify-grey.svg",name:"perun-verify-grey"},{url:"assets/img/PerunWebImages/info-grey.svg",name:"perun-info-grey"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ou),i.LFG(Gi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),sL=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2)(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})(),$m=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pr=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,c){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_i))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZS=(()=>{class n{constructor(e,t,r,l,c,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=c,this.initAuthService=s}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=bi();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(sL,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ii(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isNotConsolidatorOrLinker()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,mi.b)(s=>{s instanceof M.Zn&&c&&this.initAuthService.loadPrincipal()},s=>{const o=this.formatErrors(s,e);return void 0===o?(0,Zn._)(s):l?void this.notificator.showRPCError(o):(0,Zn._)(o)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}isNotConsolidatorOrLinker(){const e=this.store.getProperty("application");return!("Linker"===e||"Consolidator"===e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ad),i.LFG($m),i.LFG(pr),i.LFG(Zt),i.LFG(Oi),i.LFG(ov))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),JS=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oL=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new M.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,li.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,li.K)(s=>this.formatErrors(s,l,c,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:s}).pipe((0,li.K)(o=>this.formatErrors(o,l,c,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,li.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const c=e.error;return c.call=t,c.payload=r,l&&this.notificator.showRPCError(e.error),(0,Zn._)(c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(pr),i.LFG(ad),i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lv=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,c,s,o,d){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=c*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,o).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{d?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(c=o[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Xn),i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gA=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const r of e)if(r.newApps.admin===t||r.newApps.profile===t||r.newApps.pwdReset===t||r.newApps.consolidator===t||r.newApps.linker===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),c=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,c);let o;if(s.newApps[e])o=s.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=s.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lL=(()=>{class n{setEntity(e){this.entity=e}getEntity(){return this.entity}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cL=(()=>{class n{constructor(e,t,r){this.store=e,this.oauthService=t,this.httpClient=r,this.mfaApiUrl=this.store.getProperty("mfa").api_url}isMfaAvailable(){return this.httpClient.get(this.mfaApiUrl+"mfaAvailable",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getCategories(){return this.httpClient.get(this.mfaApiUrl+"categories",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}getSettings(){return this.httpClient.get(this.mfaApiUrl+"settings",{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}enforceMfaForAllServices(e){const t=`value=${String(e)}`;return this.httpClient.put(this.mfaApiUrl+"mfaEnforced",t,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken()}})}updateDetailSettings(e){return this.httpClient.put(this.mfaApiUrl+"settings",e,{headers:{Authorization:"Bearer "+this.oauthService.getAccessToken(),"content-type":"application/json"}})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt),i.LFG(ju.Ct),i.LFG(M.eN))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _A=["*"],dL=["content"];function uL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function hL(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const pL=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],fL=["mat-drawer","mat-drawer-content","*"];function mL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._onBackdropClicked())}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function gL(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const _L=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],bL=["mat-sidenav","mat-sidenav-content","*"],XS={transformDrawer:wi("transform",[Rt("open, open-instant",Ie({transform:"none",visibility:"visible"})),Rt("void",Ie({"box-shadow":"none",visibility:"hidden"})),Pt("void => open-instant",Et("0ms")),Pt("void <=> open, open-instant => void",Et("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},yL=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function ML(){return!1}}),dv=new i.OlP("MAT_DRAWER_CONTAINER");let bA=(()=>{class n extends Bo{constructor(e,t,r,l,c){super(r,l,c),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>KS)),i.Y36(i.SBq),i.Y36(jc),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Bo,useExisting:n}]),i.qOj],ngContentSelectors:_A,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),QS=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=c,this._interactivityChecker=s,this._doc=o,this._container=d,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new De.x,this._animationEnd=new De.x,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,Yt.h)(u=>u),(0,At.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),(0,xi.h)(void 0)),this._closedStream=this.openedChange.pipe((0,Yt.h)(u=>!u),(0,At.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,Yt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),(0,xi.h)(void 0)),this._destroyed=new De.x,this.onPositionChanged=new i.vpe,this._modeChanged=new De.x,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{qs(this._elementRef.nativeElement,"keydown").pipe((0,Yt.h)(u=>27===u.keyCode&&!this.disableClose&&!An(u)),rt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Ih((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=je(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=je(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(je(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,dt.q)(1)).subscribe(c=>l(c?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Kd),i.Y36(vr),i.Y36(Ni),i.Y36(i.R0b),i.Y36(Qd),i.Y36(w.K0,8),i.Y36(dv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(dL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:_A,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Bo],encapsulation:2,data:{animation:[XS.transformDrawer]},changeDetection:0}),n})(),KS=(()=>{class n{constructor(e,t,r,l,c,s=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=o,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new De.x,this._doCheckSubject=new De.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new De.x,e&&e.change.pipe(rt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),c.change().pipe(rt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=je(e)}get hasBackdrop(){return this._backdropOverride??(!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode)}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(ti(this._allDrawers),rt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(ti(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,$d.b)(10),rt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,Yt.h)(t=>t.fromState!==t.toState),rt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(rt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(rt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,dt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(rt((0,Fi.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(No),i.Y36(yL),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,bA,5),i.Suo(r,QS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(bA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:dv,useExisting:n}])],ngContentSelectors:fL,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(pL),i.YNc(0,uL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,hL,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,bA],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),uv=(()=>{class n extends bA{constructor(e,t,r,l,c){super(e,t,r,l,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>tE)),i.Y36(i.SBq),i.Y36(jc),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Bo,useExisting:n}]),i.qOj],ngContentSelectors:_A,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),eE=(()=>{class n extends QS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Zi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Zi(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:_A,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},dependencies:[Bo],encapsulation:2,data:{animation:[XS.transformDrawer]},changeDetection:0}),n})(),tE=(()=>{class n extends KS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,uv,5),i.Suo(r,eE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:dv,useExisting:n}]),i.qOj],ngContentSelectors:bL,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(_L),i.YNc(0,mL,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,gL,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},dependencies:[w.O5,uv],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,La,La,gt]}),n})();function iE(n){for(let e in n){var a;let t=null!==(a=n[e])&&void 0!==a?a:"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const pv="inline",AA=["row","column","row-reverse","column-reverse"];function nE(n){let[a,e,t]=function rE(n){var a,e;n=null!==(a=null===(e=n)||void 0===e?void 0:e.toLowerCase())&&void 0!==a?a:"";let[t,r,l]=n.split(" ");return AA.find(c=>c===t)||(t=AA[0]),r===pv&&(r=l!==pv?l:"",l=pv),[t,wL(r),!!l]}(n);return function CL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function wL(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const TL={provide:i.tb,useFactory:function vL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${aE}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${aE}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},aE="flex-layout-";let fv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[TL]}),n})();class qu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new qu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let xL=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let l="";if(r){const c=r.get(t);("number"==typeof c||"string"==typeof c)&&(l=c+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const mv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},io=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>mv}),jp=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),gv=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function sE(n,a){var e,t;return n=null!==(e=null===(t=n)||void 0===t?void 0:t.clone())&&void 0!==e?e:new qu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class Tn{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let Qi=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:iE(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:iE(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,w.NF)(this._platformId)?e.style.getPropertyValue(t):function SL(n,a){var e;return null!==(e=oE(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],c=Array.isArray(l)?l:[l];c.sort();for(let s of c)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):EL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xL),i.LFG(jp),i.LFG(i.Lbi),i.LFG(io))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function EL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=oE(n);t[a]=e??"",function DL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function oE(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const c=l.indexOf(":");if(-1===c)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,c).trim()]=l.substr(c+1).trim()}}}return a}function Jm(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function HL(n,a){return(n.priority||0)-(a.priority||0)}let _v=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new $i(new qu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;return null!==(t=this.registry.get(e)?.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,Yt.h)(c=>!t||e.indexOf(c.mediaQuery)>-1)),l=new Bn.y(c=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(d=>{c.next(d)}),this.source.next(o)}c.complete()});return(0,Fi.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function LL(n,a){const e=n.filter(t=>!lE[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),a.head.appendChild(r),e.forEach(l=>lE[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const c=o=>{this._zone.run(()=>this.source.next(new qu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(c),this.pendingRemoveListenerFns.push(()=>s.removeListener(c)),this.registry.set(l,s)),s.matches&&r.push(new qu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function PL(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lE={},kL=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],cE="(orientation: portrait) and (max-width: 599.98px)",dE="(orientation: landscape) and (max-width: 959.98px)",uE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",hE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",pE="(orientation: portrait) and (min-width: 840px)",fE="(orientation: landscape) and (min-width: 1280px)",Ql={HANDSET:`${cE}, ${dE}`,TABLET:`${uE} , ${hE}`,WEB:`${pE}, ${fE} `,HANDSET_PORTRAIT:`${cE}`,TABLET_PORTRAIT:`${uE} `,WEB_PORTRAIT:`${pE}`,HANDSET_LANDSCAPE:`${dE}`,TABLET_LANDSCAPE:`${hE}`,WEB_LANDSCAPE:`${fE}`},RL=[{alias:"handset",priority:2e3,mediaQuery:Ql.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Ql.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Ql.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Ql.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Ql.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Ql.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Ql.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Ql.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Ql.WEB_PORTRAIT,overlapping:!0}],OL=/(\.|-|_)/g;function IL(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const FL=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(gv),a=(0,i.f3M)(io),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function VL(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Xl(n,...a){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function NL(n){return n.forEach(a=>{a.suffix||(a.suffix=function BL(n){return n.replace(OL,"|").split("|").map(IL).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:kL).concat(a.addOrientationBps?RL:[]),e)}});let bv=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(HL)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=e?.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);var c;return l||(l=null!==(c=this.items.find(t))&&void 0!==c?c:null,this.findByMap.set(e,l)),null!==(r=l)&&void 0!==r?r:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(FL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const qp="print",zL={alias:qp,mediaQuery:qp,priority:1e3};let jL=(()=>{class n{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new qL,this.deactivations=[]}withPrintQuery(e){return[...e,qp]}isPrintEvent(e){return e.mediaQuery.startsWith(qp)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(Jm)}updateEvent(e){let t=this.breakpoints.findByQuery(e.mediaQuery);var r,l;return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(r=null===(l=t)||void 0===l?void 0:l.mediaQuery)&&void 0!==r?r:""),sE(e,t)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new qu(!0,qp))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const l=this.formerActivations&&this.formerActivations.includes(r),c=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||c)&&(this.deactivations.push(r),this.deactivations.sort(Jm))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bv),i.LFG(io),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class qL{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(zL),a.sort(Jm),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function YL(n){var a;return null!==(a=n?.mediaQuery.startsWith(qp))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let nn=(()=>{class n{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new De.x,this.observeActivations()}get activatedAlias(){var e,t;return null!==(e=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==e?e:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=sE(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(Jm),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(Jm),this.updateStyles())}}init(e,t,r,l,c=[]){mE(this.updateMap,e,t,r),mE(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,c)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const c=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(c)return c.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){let c=this.elementMap.get(e);if(c){var s;const d=(null!==(s=c.get(l))&&void 0!==s?s:new Map).set(t,r);c.set(l,d),this.elementMap.set(e,c)}else c=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,c);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,Yt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((c,s)=>{this.updateElement(t,s,c),r.delete(s)}),r.forEach(c=>{if(l=this.getActivatedValues(e,c),l){const s=l.get(c);this.updateElement(t,c,s)}else this.clearElement(t,c)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const c=l.get(t);c&&(c(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,c)=>r.delete(c)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((c,s)=>this.updateElement(e,s,c)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const s=(0,Fi.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});l.set(t,s)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,mi.b)(this.hook.interceptEvents(this)),(0,Yt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_v),i.LFG(bv),i.LFG(jL))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function mE(n,a,e,t){if(void 0!==t){var r;const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let pn=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new De.x,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let c=this.styleCache.get(e);(!c||!l)&&(c=r.buildStyles(e,t),l&&this.styleCache.set(e,c)),this.mru={...c},this.applyStyleToElement(c),r.sideEffect(e,c,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,l]=this.styler.getFlowDirection(e);if(!l&&t){const c=nE(r);this.styler.applyStyleToElements(c,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Tn),i.Y36(Qi),i.Y36(nn))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class aP{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function AE(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function ME(n){const[a,...e]=n.split(":");return new aP(a,e.join(":"))}function wE(n,a){return a.key&&(n[a.key]=a.value),n}let lP=(()=>{class n extends pn{constructor(e,t,r,l,c,s,o,d,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,c,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=d&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...t},this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(AE(e)){case"string":return CE(function sP(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return CE(e,t);default:return function yE(n,a){let e=[];return"set"===AE(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function oP(n,a){return n.map(ME).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(wE,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(nn),i.Y36(Gi),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(jp),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const cP=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let MA=(()=>{class n extends lP{constructor(){super(...arguments),this.inputs=cP}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.qOj]}),n})();function CE(n,a){return n.map(ME).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(wE,{})}let vE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv]}),n})();const TE=Kr({passive:!0});let dP=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ur.E;const t=Vi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new De.x,c="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,TE),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,TE)}}),l}stopMonitoring(e){const t=Vi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ni),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new De.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=c=>{this._hasFocus="focus"===c.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=Zi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=Zi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=je(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{qs(this._getWindow(),"resize").pipe(m0(16),rt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,c=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(c);const s=e.scrollHeight-4;return e.classList.remove(c),l&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const l=this._measureScrollHeight(),c=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${c}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),xE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const SE=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),uP=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let hP=0;const pP=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let zn=(()=>{class n extends pP{constructor(e,t,r,l,c,s,o,d,u,h){super(s,l,c,r),this._elementRef=e,this._platform=t,this._autofillMonitor=d,this._formField=h,this._uid="mat-input-"+hP++,this.focused=!1,this.stateChanges=new De.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(N=>Th().has(N)),this._iOSKeyupListener=N=>{const Q=N.target;!Q.value&&0===Q.selectionStart&&0===Q.selectionEnd&&(Q.setSelectionRange(1,1),Q.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=o||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Th().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=je(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.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(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const t=this._formField,r=!t||"legacy"!==t.appearance||null!==(e=t._hasLabel)&&void 0!==e&&e.call(t)?this.placeholder:null;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){uP.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(ra,10),i.Y36(Vl,8),i.Y36(Xs,8),i.Y36(Vc),i.Y36(SE,10),i.Y36(dP),i.Y36(i.R0b),i.Y36(Jc,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._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:[i._Bn([{provide:Zc,useExisting:n}]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Vc],imports:[xE,ss,gt,xE,ss]}),n})();function fP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let mP=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",T(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(_i),i.Y36(pr),i.Y36(fi),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,fP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field")(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA()()(),i.TgZ(21,"div",6)(22,"div",7)(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA()()()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},dependencies:[w.O5,dn,un,aa,ls,Lt,jo,cn,uw,Hi,zn,Pn,vn,hn,lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),EE=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),gP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),_P=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function bP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function AP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function yP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,bP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,AP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const MP=function(n){return{"min-height":n}};function wP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,yP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,MP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const sd=function(n){return{color:n}};function CP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,sd,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function vP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3);return i.KtG(l.openDialog(r.dialog))}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,sd,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function TP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,sd,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function xP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,sd,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function SP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,CP,2,4,"i",17),i.YNc(2,vP,3,8,"span",18),i.YNc(3,TP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,xP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const EP=function(n){return{height:n}};function DP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,SP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,EP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function HP(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,wP,2,4,"div",9),i.YNc(5,DP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,sd,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function LP(n,a){if(1&n&&(i.TgZ(0,"span")(1,"a",6),i._uU(2),i.qZA()()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,sd,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const PP=function(n){return{background:n}};let DE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=T(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=bi();"reportIssue"===e&&(t.width="550px",this.dialog.open(mP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(_i),i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0)(1,"div",1),i.YNc(2,HP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,LP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.VKq(8,PP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,sd,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,sd,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},dependencies:[w.sg,w.O5,w.PC,EE,gP,_P],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),n})();wi("openClose",[Rt("open",Ie({overflow:"hidden"})),Rt("closed",Ie({height:"0px",overflow:"hidden"})),Pt("open <=> closed",[Et(".3s ease-in")])]);const kP=wi("flyInOut",[Pt(":enter",[Ie({transform:"translateX(100%)"}),Et(".25s")]),Pt(":leave",[Et(".5s",Ie({transform:"translateX(100%)"}))])]);wi("rollInOut",[Pt(":enter",[Ie({height:"0px"}),Et(".25s")]),Pt(":leave",[Et(".25s",Ie({height:"0px"}))])]),wi("routeAnimations",[Pt("* => *",[Ie({position:"relative"}),Fr(":enter",[Ie({width:"100%",opacity:0})],{optional:!0}),Fr(":leave",[Ie({position:"absolute",width:"100%",opacity:1}),Et("0.15s",Ie({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Fr(":enter",[Ie({position:"absolute",width:"100%",opacity:0}),Et("0.15s",Ie({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[Rt("open",Ie({})),Rt("closed",Ie({width:"0px",height:"0px"})),Pt("open <=> closed",[Et(".3s ease-in")])]),wi("switchAnimations",[Pt("true => false",[Fr(":enter, :leave",Ie({})),uu([Fr(":enter",[Ie({transform:"translateX(-100%)"}),Et("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Fr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Et("1s ease-in-out",Ie({transform:"translateX(100%)"}))],{optional:!0})])]),Pt("false => true",[Fr(":enter, :leave",Ie({})),uu([Fr(":enter",[Ie({transform:"translateX(100%)"}),Et("1s ease-in-out",Ie({transform:"translateX(0%)"}))],{optional:!0}),Fr(":leave",[Ie({transform:"translateX(0%)",position:"absolute"}),Et("1s ease-in-out",Ie({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Pt(":enter",[Ie({transform:"translateX(-100%)",position:"relative"}),Et("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Et("0.5s ease-in",Ie({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Pt(":enter",[Ie({transform:"translateX(100%)",position:"fixed"}),Et("0.5s ease-in",Ie({transform:"translateX(0%)"}))]),Pt(":leave",[Ie({transform:"translateX(-100%)",position:"relative"}),Et("0.5s ease-in",Ie({transform:"translateX(100%)"}))])]);let HE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez]}),n})(),CA=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),ri=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.get("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i,16),i.Y36(Zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();function RP(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function OP(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const BP=as(class{constructor(n){this._elementRef=n}},"primary"),NP=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function VP(){return{diameter:100}}});class Ei extends BP{constructor(a,e,t,r,l,c,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=Bt.w0.EMPTY,this.mode="determinate";const d=Ei._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),d.has(t.head)||d.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,"mat-spinner"===a.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),l&&(l.color&&(this.color=this.defaultColor=l.color),l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&c&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=Zi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=Zi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,Zi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Eh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_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(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Ei._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=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*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ei._diameters=new WeakMap,Ei.\u0275fac=function(a){return new(a||Ei)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(w.K0,8),i.Y36(i.QbO,8),i.Y36(NP),i.Y36(i.sBO),i.Y36(No),i.Y36(i.R0b))},Ei.\u0275cmp=i.Xpm({type:Ei,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.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(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,RP,1,11,"circle",2),i.YNc(3,OP,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[w.RF,w.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 Wp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,w.ez,gt]}),n})(),vA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Ia,w.ez]}),n})(),zP=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,ss,Ks,Qs,Yp,Nu,Wp,Ia,vA]}),n})();class jP{isErrorState(a){return!(!a?.invalid||!a?.dirty)}}const LE=(n,a,e,t=500)=>r=>(0,f0.H)(t).pipe((0,Nt.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength({password:r.value,namespace:n}):(0,$e.of)(null))),(0,At.U)(()=>null),(0,li.K)(l=>{const c=l.error,s={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,$e.of)(s)}));function qP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function YP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function WP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function UP(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const GP=["*"];let Gn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:GP,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,qP,2,0,"mat-icon",1),i.YNc(2,YP,2,0,"mat-icon",1),i.YNc(3,WP,2,0,"mat-icon",1),i.YNc(4,UP,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},dependencies:[Xi,w.O5],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function $P(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function ZP(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function JP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function XP(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function QP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function KP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let PE=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.tooltipPwdDisabledForNamespace=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new jP,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const t=e.userAttributes.find(r=>"preferredLanguage"===r.friendlyName);this.language=t?.value??"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Pi),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",tooltipPwdDisabledForNamespace:"tooltipPwdDisabledForNamespace",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,$P,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,ZP,2,2,"mat-icon",5),i.YNc(8,JP,3,3,"mat-error",6),i.YNc(9,XP,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8)(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,QP,3,3,"mat-error",6),i.YNc(18,KP,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA()()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled||t.tooltipPwdDisabledForNamespace),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},dependencies:[w.O5,jo,cn,Hi,d_,dr,dn,un,Kc,aa,Xs,yp,zn,Ei,Xi,Gn,lt],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),n})();function sk(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function ok(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function lk(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function ck(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8)(1,"mat-form-field")(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.subject=r)}),i.qZA(),i.YNc(7,ok,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field")(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.message=r)}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,lk,3,3,"mat-error",11),i.qZA()()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let dk=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=c,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){this.data?.error?.errorId&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",T(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(_i),i.Y36(pr),i.Y36(fi),i.Y36(Cn),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,sk,1,0,"mat-spinner",1),i.YNc(4,ck,17,13,"div",2),i.TgZ(5,"div",3)(6,"div",4)(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},dependencies:[w.O5,Pn,vn,hn,Lt,jo,cn,Hi,dn,un,aa,ls,zn,Ei,lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),uk=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=bi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(dk,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Oi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2)(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA()()()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})();const hk=[[["caption"]],[["colgroup"],["col"]]],pk=["caption","colgroup, col"];function Mv(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=je(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const Up=new i.OlP("CDK_TABLE");let Gp=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),$p=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),TA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class _k{}const bk=Mv(_k);let Kl=(()=>{class n extends bk{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=je(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Gp,5),i.Suo(r,$p,5),i.Suo(r,TA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class wv{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Cv=(()=>{class n extends wv{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),vv=(()=>{class n extends wv{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class RE{constructor(){this.tasks=[],this.endTasks=[]}}const Tv=new i.OlP("_COALESCED_STYLE_SCHEDULER");let OE=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new De.x}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new RE,this._getScheduleObservable().pipe(rt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new RE;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,dt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),xv=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Xm?e.headerCell.template:this instanceof Qm?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class Ak extends xv{}const yk=Mv(Ak);let Xm=(()=>{class n extends yk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class Mk extends xv{}const wk=Mv(Mk);let Qm=(()=>{class n extends wk{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),xA=(()=>{class n extends xv{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),ec=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ec],encapsulation:2}),n})(),Dv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ec],encapsulation:2}),n})(),SA=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const IE=["top","bottom","left","right"];class Ck{constructor(a,e,t,r,l=!0,c=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=c,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],c=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),d=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",N=f?"left":"right";for(const Q of a)for(let pe=0;pee[pe]?Q:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((Q,pe)=>t[pe+h]?Q:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,c=[],s=[],o=[];for(let u=0,h=0;u{for(let f=0;f{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);IE.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of IE)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const Hv=new i.OlP("CDK_SPL");let EA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),DA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),HA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),LA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),PA=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=c,this._platform=o,this._viewRepeater=d,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new De.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new $i({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(rt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Xc(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,c)=>this._getEmbeddedViewArgs(r.item,c),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,dt.q)(1),rt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(c=>c.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(c=>c.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,c)=>{this._addStickyColumnStyles([l],this._headerRowDefs[c])}),this._rowDefs.forEach(l=>{const c=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[c])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(c)?r.get(c):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:c,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(c,s)=>c||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Xc(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Xc(this.dataSource)?e=this.dataSource.connect(this):eo(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(rt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),c=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,c,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(c=>c.when&&c.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const c=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),c}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))ec.mostRecentCellOutlet&&ec.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const c of r.outlets)l.appendChild(c.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ck(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,$e.of)()).pipe(rt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),c=l.rootNodes[0];1===l.rootNodes.length&&c?.nodeType===this._document.ELEMENT_NODE&&(c.setAttribute("role","row"),c.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Vn,8),i.Y36(w.K0),i.Y36(Ni),i.Y36(cr),i.Y36(Tv),i.Y36(No),i.Y36(Hv,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SA,5),i.Suo(r,Kl,5),i.Suo(r,xA,5),i.Suo(r,Xm,5),i.Suo(r,Qm,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(EA,7),i.Gf(DA,7),i.Gf(HA,7),i.Gf(LA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Up,useExisting:n},{provide:cr,useClass:Pa},{provide:Tv,useClass:OE},{provide:Hv,useValue:null}])],ngContentSelectors:pk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(hk),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[EA,DA,HA,LA],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})();function kA(n,a){return n.concat(Array.from(a))}let Tk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[El]}),n})();const xk=[[["caption"]],[["colgroup"],["col"]]],Sk=["caption","colgroup, col"];let no=(()=>{class n extends PA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:cr,useClass:Pa},{provide:PA,useExisting:n},{provide:Up,useExisting:n},{provide:Tv,useClass:OE},{provide:Hv,useValue:null}]),i.qOj],ngContentSelectors:Sk,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(xk),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[EA,DA,HA,LA],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),n})(),us=(()=>{class n extends Gp{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:Gp,useExisting:n}]),i.qOj]}),n})(),hs=(()=>{class n extends $p{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:$p,useExisting:n}]),i.qOj]}),n})(),ps=(()=>{class n extends Kl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Kl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),fs=(()=>{class n extends Cv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),ms=(()=>{class n extends vv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),ro=(()=>{class n extends Xm{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:Xm,useExisting:n}]),i.qOj]}),n})(),ao=(()=>{class n extends xA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:xA,useExisting:n}]),i.qOj]}),n})(),so=(()=>{class n extends Sv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:Sv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ec],encapsulation:2}),n})(),oo=(()=>{class n extends Dv{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Dv,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},dependencies:[ec],encapsulation:2}),n})(),Km=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Tk,gt,gt]}),n})();class Zo extends class Nk extends class tS{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new De.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(qf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((c,s)=>{let o=this.sortingDataAccessor(c,r),d=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof d;u!==h&&("number"===u&&(o+=""),"number"===h&&(d+=""));let f=0;return null!=o&&null!=d?o>d?f=1:o{const r=Object.keys(e).reduce((c,s)=>c+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new $i(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Fi.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Fi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,fa.a)([this._data,this._filter]).pipe((0,At.U)(([o])=>this._filterData(o))),c=(0,fa.a)([l,e]).pipe((0,At.U)(([o])=>this._orderData(o))),s=(0,fa.a)([c,t]).pipe((0,At.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=s.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}{}function Vk(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function Fk(n,a){1&n&&i._UZ(0,"th",15)}function zk(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function jk(n,a){1&n&&i._UZ(0,"tr",17)}function qk(n,a){1&n&&i._UZ(0,"tr",18)}function Yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4)(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,Fk,1,0,"th",8),i.YNc(13,zk,2,1,"td",9),i.BQk(),i.YNc(14,jk,1,0,"tr",10),i.YNc(15,qk,1,0,"tr",11),i.qZA()(),i.TgZ(16,"div",12)(17,"button",13),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let Wk=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=c,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Zo(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi),i.Y36(_i),i.Y36(pr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,Vk,1,0,"mat-spinner",1),i.YNc(6,Yk,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,no,hs,ro,ps,us,ao,fs,ms,so,oo,Pn,vn,hn,Lt,Ei,lt,ri]}),n})();class Uk{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,t.readOnly=!0,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch{}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let Gk=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new Uk(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $k=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Lv=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const l=()=>{const c=r.copy();c||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(c)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Gk),i.Y36(i.R0b),i.Y36($k,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),NE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),RA=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1)(3,"textarea",2),i._uU(4),i.qZA()(),i.TgZ(5,"div",3)(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},dependencies:[Pn,vn,hn,Lt,wA,zn,Lv,lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),Zk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"mat-form-field")(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA()()(),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Pn,vn,hn,Lt,cn,dn,un,ls,wA,zn,lt]}),n})(),Jk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA()(),i.TgZ(9,"div",3)(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},dependencies:[Pn,vn,hn,Lt,lt]}),n})();function Xk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function Qk(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Kk=(()=>{class n{constructor(e,t,r,l,c,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=c,this.authService=s,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new Ra(null,[Ji.required,Ji.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,c)=>l===c.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(_i),i.Y36(pr),i.Y36(Pi),i.Y36(ad))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,Xk,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3)(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,Qk,4,5,"mat-error",5),i.qZA()(),i.TgZ(12,"div",6)(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},dependencies:[w.O5,Pn,vn,hn,Lt,jo,cn,dn,un,aa,zn,Oa,Gn,lt,ri]}),n})(),lR=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([]),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1)(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA()(),i.TgZ(7,"div",3)(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},dependencies:[Pn,vn,hn,Lt,Gn,lt]}),n})();function cR(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function dR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5)(1,"div",6)(2,"mat-form-field")(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.showOldPassword=!r.showOldPassword)}),i._uU(8),i.qZA(),i.YNc(9,cR,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function uR(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function hR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"div",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.close())}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changePassword())}),i._uU(6),i.ALo(7,"translate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let pR=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=c,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Ji.required],passwordCtrl:["",Ji.required,[LE(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:GS.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin({login:this.data.login,namespace:this.data.namespace,newPassword:this.newPwd.value,oldPassword:this.oldPwd.value,checkOldPassword:!0}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Jw),i.Y36(Pi),i.Y36($m),i.Y36(pr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,dR,11,9,"form",2),i.YNc(5,uR,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,hR,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Pn,vn,hn,Lt,jo,cn,Hi,d_,Ap,dn,un,Kc,aa,zn,Ei,Xs,yp,Xi,PE,lt],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),n})();const fR=["input"],mR=function(n){return{enterDuration:n}},gR=["*"],_R=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function bR(){return{color:"accent"}}});let FE=0;const AR={provide:Qn,useExisting:(0,i.Gpc)(()=>qE),multi:!0};class zE{constructor(a,e){this.source=a,this.value=e}}const jE=new i.OlP("MatRadioGroup");let yR=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+FE++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new zE(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),qE=(()=>{class n extends yR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,YE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([AR,{provide:jE,useExisting:n}]),i.qOj]}),n})();class MR{constructor(a){this._elementRef=a}}const wR=Sa(Oo(MR));let CR=(()=>{class n extends wR{constructor(e,t,r,l,c,s,o,d){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=c,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++FE,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,d&&(this.tabIndex=Zi(d,0)),this._removeUniqueSelectionListener=c.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=je(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_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(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new zE(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){const e=this.radioGroup;let t;if(t=e&&e.selected&&!this.disabled?e.selected===this?this.tabIndex:-1:this.tabIndex,t!==this._previousTabIndex){var r;const l=null===(r=this._inputElement)||void 0===r?void 0:r.nativeElement;l&&(l.setAttribute("tabindex",t+""),this._previousTabIndex=t)}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(fR,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.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:[i.qOj]}),n})(),YE=(()=>{class n extends CR{constructor(e,t,r,l,c,s,o,d){super(e,t,r,l,c,s,o,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jE,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vr),i.Y36(zr),i.Y36(i.QbO,8),i.Y36(_R,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.qOj],ngContentSelectors:gR,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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2),i._UZ(3,"span",3)(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()(),i.TgZ(9,"span",9)(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA()()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(17,mR,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},dependencies:[ia],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}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0}),n})(),WE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,gt]}),n})();function vR(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TR(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function xR(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function SR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.asyncValidation=r)}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA()()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function ER(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function DR(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function HR(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA()(),i.TgZ(8,"p")(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p")(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,TR,3,3,"span",9),i.YNc(19,xR,3,3,"span",9),i.YNc(20,SR,10,12,"mat-radio-group",10),i.YNc(21,ER,3,3,"span",9),i.YNc(22,DR,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function LR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15)(1,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(5),i.ALo(6,"translate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let PR=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(ja),i.Y36(qn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["data-cy","change-status-button","mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vR,1,0,"mat-spinner",1),i.YNc(5,HR,23,17,"div",2),i.YNc(6,LR,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Pn,vn,hn,Lt,un,ls,Ei,qE,YE,lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function kR(n,a){if(1&n&&(i.TgZ(0,"div",5)(1,"mat-icon"),i._uU(2),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function RR(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let OR=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=bi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(uk,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function Fp(n,a){zp.apply(this,arguments)}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(JS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,kR,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,RR,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA()()()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},dependencies:[w.O5,Xi,lt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function IR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.removeNotification(l))}),i.qZA()()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const BR=function(n){return{top:n}};let NR=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pr),i.Y36(JS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,IR,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,BR,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},dependencies:[w.sg,w.PC,OR],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[kP]}}),n})();function VR(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function FR(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11)(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const zR=function(n){return{color:n}};function jR(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,zR,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const qR=function(n,a){return{background:n,color:a}},YR=function(n,a){return{"min-height":n,"background-color":a}};let WR=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Gi),i.Y36(cv),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:10,vars:11,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["class","display-flex-row",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[1,"display-flex-row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,VR,2,1,"div",1),i.YNc(2,FR,3,1,"div",2),i.YNc(3,jR,2,4,"p",3),i.qZA(),i.TgZ(4,"div",4)(5,"div",5)(6,"div",6),i._UZ(7,"router-outlet"),i.qZA(),i.TgZ(8,"div",7),i._UZ(9,"perun-web-apps-footer"),i.qZA()()()),2&e&&(i.Q6J("ngStyle",i.WLB(5,qR,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application||"user-profile"===t.application||"consolidator"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(8,YR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},dependencies:[w.O5,w.PC,Xi,Ka,DE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}.display-flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]}),n})(),UR=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.get("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(l=>{const c={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(o=>{c[`label_${o}`]=String(l[`label_${o}`])??l.label_en}),t.push(c)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const kv=["*"],GR=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],$R=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],GE=xa(Sa(class{})),KR=Sa(class{}),$E=new i.OlP("MatList"),ZE=new i.OlP("MatNavList");let eO=(()=>{class n extends GE{constructor(){super(...arguments),this._stateChanges=new De.x}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:ZE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),Rv=(()=>{class n extends GE{constructor(e){super(),this._elementRef=e,this._stateChanges=new De.x,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:$E,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:kv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}'],encapsulation:2,changeDetection:0}),n})(),JE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),OA=(()=>{class n extends KR{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new De.x,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const c=this._getHostElement();"button"===c.nodeName.toLowerCase()&&!c.hasAttribute("type")&&c.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(rt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function t0(n,a,e="mat"){n.changes.pipe(ti(n)).subscribe(({length:t})=>{Fc(a,`${e}-2-line`,!1),Fc(a,`${e}-3-line`,!1),Fc(a,`${e}-multi-line`,!1),2===t||3===t?Fc(a,`${e}-${t}-line`,!0):t>3&&Fc(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ZE,8),i.Y36($E,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,JE,5),i.Suo(r,XE,5),i.Suo(r,LM,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:$R,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(GR),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},dependencies:[ia],encapsulation:2,changeDetection:0}),n})(),Ov=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,na,gt,nu,w.ez,$h,gt,nu,Pv]}),n})();const sO=function(n){return{color:n}};function oO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(l.external?c.goToURL(l.link):c.shouldHideMenu())}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,sO,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let lO=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(c=>{c instanceof Jn&&(this.currentUrl=c.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(UR),i.Y36(Zt),i.Y36(Ai),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,oO,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,w.PC,Xi,eO,OA,So,MA,ia,lt,ri,EE],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();const cO=["*",[["mat-toolbar-row"]]],dO=["*","mat-toolbar-row"],uO=as(class{constructor(n){this._elementRef=n}});let hO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),pO=(()=>{class n extends uO{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ni),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hO,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:dO,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(cO),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),n})(),Iv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})();const Bv=function(n){return{color:n}};function fO(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA()()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,Bv,e.iconColor))}}function mO(n,a){if(1&n&&(i.TgZ(0,"span",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(6,Bv,e.textColor)),i.xp6(1),i.xDo(" ",e.user.titleBefore," ",e.user.firstName," ",e.user.middleName," ",e.user.lastName," ",e.user.titleAfter," ")}}function gO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onLogOut())}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let _O=(()=>{class n{constructor(e){this.authService=e}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ad))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:13,vars:8,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["class","d-none d-lg-inline",3,"ngStyle",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],[1,"d-none","d-lg-inline",3,"ngStyle"]],template:function(e,t){if(1&e&&(i.YNc(0,fO,4,7,"button",0),i.TgZ(1,"mat-menu",null,1)(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA()()(),i.TgZ(6,"button",3)(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.YNc(9,mO,2,8,"span",5),i.qZA(),i.TgZ(10,"mat-menu",null,6),i.YNc(12,gO,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(11);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(6,Bv,t.iconColor)),i.xp6(2),i.Q6J("ngIf",null!==t.user),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},dependencies:[w.O5,w.PC,Xi,Hm,Pu,Ul,Lt,dr,lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const KE=function(n){return{color:n}};function bO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onToggleSidenav())}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,KE,e.iconColor))}}function AO(n,a){1&n&&(i.TgZ(0,"div",8)(1,"span",9),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",10),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",9),i._uU(6," \u{1f5f2} ~ "),i.qZA()())}const yO=function(n){return{background:n}},MO=function(){return[]},wO=function(){return["/"]};let CO=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.translate=r,this.otherApplicationService=l,this.sidenavToggle=new i.vpe,this.hideToggle=!1,this.disableLogo=!1,this.label=this.storeService.get("header_label_en"),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.adminLabel=this.storeService.get("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Gi),i.Y36(_i),i.Y36(gA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"url","label","user","logoutEnabled","iconColor","textColor"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0)(1,"div",1),i.YNc(2,bO,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA()(),i.YNc(6,AO,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,yO,t.bgColor)),i.xp6(2),i.Q6J("ngIf",!t.hideToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(15,MO):i.DdM(16,wO)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,KE,t.textColor)),i.xp6(1),i.Oqu(t.label),i.xp6(1),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},dependencies:[w.O5,w.PC,Xi,yh,Lt,MA,pO,_O],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function vO(n,a){if(1&n&&(i.TgZ(0,"span",1)(1,"a",2),i._uU(2),i.qZA()()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let TO=(()=>{class n{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,Yt.h)(e=>e instanceof Jn)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(l=>{const c=l.snapshot.url.map(o=>o.path).join("/");""!==c&&(t+=`/${c}`);const s=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return s&&(!this.menuItems[this.menuItems.length-1]||s!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:s,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(Xn),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],["queryParamsHandling","merge",1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,vO,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},dependencies:[w.sg,yh],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),n})();const xO=["footer"],eD=function(n){return{background:n}},SO=function(n){return{"min-height":n}};function EO(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2)(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){i.CHM(e);const r=i.MAs(5);return i.KtG(r.toggle())}),i.qZA(),i.TgZ(3,"mat-sidenav-container")(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7)(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs")(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),i.qZA()()()()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(4),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,eD,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,eD,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,SO,t.contentHeight))}}function DO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",10),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let HO=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=c,this.preferredLangService=s,this.titleService=o,this.document=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.get("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{const t=this.store.get("document_title",e.lang);this.titleService.setTitle(t),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{const r=e.find(c=>"preferredLanguage"===c.friendlyName)?.value??null,l=this.preferredLangService.getPreferredLanguage(r);this.translateService.use(l)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){const e=this.footer?.nativeElement?.offsetHeight?.toString()??"0";this.contentHeight="calc(100vh - 84px - "+e+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(_i),i.Y36(ov),i.Y36(i.sBO),i.Y36(cv),i.Y36(se),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(xO,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"sidenavToggle"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i.YNc(0,EO,14,12,"ng-template",0),i.YNc(1,DO,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},dependencies:[w.O5,w.PC,eE,tE,uv,Ka,MA,DE,NR,WR,lO,CO,TO],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();var tD=T(1158);function LO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index,l=i.oxw();return i.KtG(l.removeValue(r))}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA()()}}function PO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9)(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw();return i.KtG(c.readonly&&c.attribute.displayName&&c.showValue(c.keys[l],c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.keys[c]=r)}),i.qZA()(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))})("ngModelChange",function(r){const c=i.CHM(e).index,s=i.oxw();return i.KtG(s.values[c]=r)}),i.qZA()(),i.YNc(7,LO,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function kO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function RO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function OO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(1,kO,2,0,"mat-icon",17),i.YNc(2,RO,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function IO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addValue())}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA()()}}let BO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Zl(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},dependencies:[w.sg,w.O5,Ap,dn,un,Kc,aa,ls,Vl,Xi,Lt,dr,cn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),n})();const NO=["input"],VO=["label"],FO=function(n){return{enterDuration:n}},zO=["*"],jO=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:iD});function iD(){return{color:"accent",clickAction:"check-indeterminate"}}let qO=0;const nD=iD(),YO={provide:Qn,useExisting:(0,i.Gpc)(()=>tc),multi:!0};class WO{}const UO=Oo(as(Sa(xa(class{constructor(n){this._elementRef=n}}))));let GO=(()=>{class n extends UO{constructor(e,t,r,l,c,s,o){super(t),this._changeDetectorRef=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||nD,this.color=this.defaultColor=this._options.color||nD.color,this.tabIndex=parseInt(c)||0,this.id=this._uniqueId=`${e}${++qO}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const t=je(e);t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=je(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=je(e),t&&(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(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._getAnimationTargetElement();if(t!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},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(){var e;const t=null===(e=this._options)||void 0===e?void 0:e.clickAction;this.disabled||"noop"===t?!this.disabled&&"noop"===t&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==t&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===t)return this._animationClasses.uncheckedToChecked;if(3==t)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===t?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===t?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===t?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(NO,5),i.Gf(VO,5),i.Gf(ia,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t._labelElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.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:[i.qOj]}),n})(),tc=(()=>{class n extends GO{constructor(e,t,r,l,c,s,o){super("mat-checkbox-",e,t,l,c,s,o),this._focusMonitor=r,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(e){const t=new WO;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(i.QbO,8),i.Y36(jO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[i._Bn([YO]),i.qOj],ngContentSelectors:zO,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(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA()(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,FO,"NoopAnimations"===t._animationMode?0:150))}},dependencies:[ia,Bh],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);position:relative}.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}.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%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),n})(),rD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),eg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[na,gt,Sl,rD,gt,rD]}),n})(),Nv=(()=>{class n{transform(e){return e.replace(/\s/g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function JO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())})("ngModelChange",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.attribute.value=r)}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function XO(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let QO=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Zl(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,JO,2,4,"mat-checkbox",0),i.YNc(2,XO,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},dependencies:[w.O5,tc,un,ls,Hi,Nv]}),n})();function Vv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,null!=e&&e.has(t)?"important":""):n.removeProperty(t)}return n}function Zp(n,a){const e=a?"":"none";Vv(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function aD(n,a,e){Vv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function IA(n,a){return a&&"none"!=a?n+" "+a:n}function sD(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function Fv(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function zv(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function jv(n,a,e){const{top:t,bottom:r,left:l,right:c}=n;return e>=t&&e<=r&&a>=l&&a<=c}function tg(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function oD(n,a,e,t){const{top:r,right:l,bottom:c,left:s,width:o,height:d}=n,u=o*a,h=d*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:zv(e)})})}handleScroll(a){const e=or(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,c;if(e===this._document){const d=this.getViewportScrollPosition();l=d.top,c=d.left}else l=e.scrollTop,c=e.scrollLeft;const s=r.top-l,o=r.left-c;return this.positions.forEach((d,u)=>{d.clientRect&&e!==u&&e.contains(u)&&tg(d.clientRect,s,o)}),r.top=l,r.left=c,{top:s,left:o}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function cD(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const o=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),N=this._dropContainer;if(!b)return void this._endDragSequence(s);(!N||!N.isDragging()&&!N.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}s.preventDefault();const d=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,o);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=d.x-u.x+this._passiveTransform.x,h.y=d.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:s,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this._nativeDragStart=s=>{if(this._handles.length){const o=this._getTargetHandle(s);o&&!this._disabledHandles.has(o)&&!this.disabled&&s.preventDefault()}else this.disabled||s.preventDefault()},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new lD(t),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=je(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Zp(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Vi(t)),this._handles.forEach(t=>Zp(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Vi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,BA),e.addEventListener("touchstart",this._pointerDown,pD),e.addEventListener("dragstart",this._nativeDragStart,BA)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Vi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(a=this._anchor)||void 0===a||a.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Zp(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Zp(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:a}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:a})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){ig(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),aD(t,!1,qv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this,event:a}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=ig(e),l=!r&&0!==e.button,c=this._rootElement,s=or(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=r?rs(e):eu(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||d)return;if(this._handles.length){const f=c.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=zv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){aD(this._rootElement,!0,qv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),c=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r,event:a}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:r,event:a}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(a,e):this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._initialClientRect:null,c=a.viewContainer.createEmbeddedView(t,a.context);c.detectChanges(),r=mD(c,this._document),this._previewRef=c,a.matchSize?gD(r,l):r.style.transform=NA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=cD(this._rootElement),gD(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return Vv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},qv),Zp(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function eI(n){const a=getComputedStyle(n),e=Fv(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=Fv(a,"transition-duration"),c=Fv(a,"transition-delay");return sD(l[r])+sD(c[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=c=>{var s;(!c||or(c)===this._preview&&"transform"===c.propertyName)&&(null===(s=this._preview)||void 0===s||s.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=mD(this._placeholderRef,this._document)):t=cD(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e,t){const r=e===this._rootElement?null:e,l=r?r.getBoundingClientRect():a,c=ig(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition();return{x:l.left-a.left+(c.pageX-l.left-s.left),y:l.top-a.top+(c.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=ig(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(c.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this,this._initialClientRect,this._pickupPositionInElement):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,s=this._boundaryRect,{width:o,height:d}=this._getPreviewRect(),u=s.top+c,h=s.bottom-(d-c);t=fD(t,s.left+l,s.right-(o-l)),r=fD(r,u,h)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),s=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Zp(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,BA),a.removeEventListener("touchstart",this._pointerDown,pD),a.removeEventListener("dragstart",this._nativeDragStart,BA)}_applyRootElementTransform(a,e){const t=NA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=IA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=null!==(t=this._previewTemplate)&&void 0!==t&&t.template?void 0:this._initialTransform,l=NA(a,e);this._preview.style.transform=IA(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===t.width&&0===t.height)return;const l=r.left-t.left,c=t.right-r.right,s=r.top-t.top,o=t.bottom-r.bottom;r.width>t.width?(l>0&&(a+=l),c>0&&(a-=c)):a=0,r.height>t.height?(s>0&&(e+=s),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:ig(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=or(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&tg(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var a;return(null===(a=this._parentPositions.positions.get(this._document))||void 0===a?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Eh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Vi(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(a){return this._handles.find(e=>a.target&&(a.target===e||e.contains(a.target)))}}function NA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function fD(n,a,e){return Math.max(a,Math.min(e,n))}function ig(n){return"t"===n.type[0]}function mD(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function gD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=NA(a.left,a.top)}function _D(n,a,e){const t=ng(a,n.length-1),r=ng(e,n.length-1);if(t===r)return;const l=n[t],c=r0)return null;const s="horizontal"===this.orientation,o=l.findIndex(pe=>pe.drag===a),d=l[c],h=d.clientRect,f=o>c?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),N=this._getSiblingOffsetPx(o,l,f),Q=l.slice();return _D(l,o,c),l.forEach((pe,Pe)=>{if(Q[Pe]===pe)return;const _t=pe.drag===a,kt=_t?b:N,Ut=_t?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=kt,s?(Ut.style.transform=IA(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),tg(pe.clientRect,0,kt)):(Ut.style.transform=IA(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),tg(pe.clientRect,kt,0))}),this._previousSwap.overlaps=jv(h,e,t),this._previousSwap.drag=d.drag,this._previousSwap.delta=s?r.x:r.y,{previousIndex:o,currentIndex:c}}enter(a,e,t,r){const l=null==r||r<0?this._getItemIndexFromPointerPosition(a,e,t):r,c=this._activeDraggables,s=c.indexOf(a),o=a.getPlaceholderElement();let d=c[l];if(d===a&&(d=c[l+1]),!d&&(null==l||-1===l||l-1&&c.splice(s,1),d&&!this._dragDropRegistry.isDragging(d)){const u=d.getRootElement();u.parentElement.insertBefore(o,u),c.splice(l,0,a)}else Vi(this._element).appendChild(o),c.push(a);o.style.transform="",this._cacheItemPositions()}withItems(a){this._activeDraggables=a.slice(),this._cacheItemPositions()}withSortPredicate(a){this._sortPredicate=a}reset(){this._activeDraggables.forEach(a=>{const e=a.getRootElement();if(e){var t;const r=null===(t=this._itemPositions.find(l=>l.drag===a))||void 0===t?void 0:t.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(a){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a)}updateOnScroll(a,e){this._itemPositions.forEach(({clientRect:t})=>{tg(t,a,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}_cacheItemPositions(){const a="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:zv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(a,e,t){const r="horizontal"===this.orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this.orientation,l=e[a].clientRect,c=e[a+-1*t];let s=l[r?"width":"height"]*t;if(c){const o=r?"left":"top",d=r?"right":"bottom";-1===t?s-=c.clientRect[o]-l[d]:s+=l[o]-c.clientRect[d]}return s}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this.orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return r?a>=c.right:e>=c.bottom}{const c=t[0].clientRect;return r?a<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this.orientation,c=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const d=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&d===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&t!0,this.sortPredicate=()=>!0,this.beforeStarted=new De.x,this.entered=new De.x,this.exited=new De.x,this.dropped=new De.x,this.sorted=new De.x,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Bt.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new De.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function KO(n=0,a=Ha.z){return n<0&&(n=0),(0,f0.H)(n,n,a)}(0,YM).pipe(rt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-s):2===this._verticalScrollDirection&&c.scrollBy(0,s),1===this._horizontalScrollDirection?c.scrollBy(-s,0):2===this._horizontalScrollDirection&&c.scrollBy(s,0)})},this.element=Vi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new lD(t),this._sortStrategy=new rI(this.element,e),this._sortStrategy.withSortPredicate((c,s)=>this.sortPredicate(c,s,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(a)),this._sortStrategy.enter(a,e,t,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,c,s,o={}){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:c,dropPoint:s,event:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(a){return this._sortStrategy.direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._sortStrategy.orientation=a,this}withScrollableParents(a){const e=Vi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!oD(this._clientRect,.05,e,t))return;const l=this._sortStrategy.sort(a,e,t,r);l&&this.sorted.next({previousIndex:l.previousIndex,currentIndex:l.currentIndex,container:this,item:a})}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((c,s)=>{s===this._document||!c.clientRect||t||oD(c.clientRect,.05,a,e)&&([r,l]=function sI(n,a,e,t){const r=yD(a,t),l=MD(a,e);let c=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(c=1):n.scrollHeight-o>n.clientHeight&&(c=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[c,s]}(s,c.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:c,height:s}=this._viewportRuler.getViewportSize(),o={width:c,height:s,top:0,right:c,bottom:s,left:0};r=yD(o,e),l=MD(o,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Vi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Vi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_reset(){this._isDragging=!1;const a=Vi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(a,e){return null!=this._clientRect&&jv(this._clientRect,a,e)}_getSiblingContainerFromPosition(a,e,t){return this._siblings.find(r=>r._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!jv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Vi(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Vi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function yD(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function MD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const VA=Kr({passive:!1,capture:!0});let oI=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new De.x,this.pointerUp=new De.x,this.scroll=new De.x,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,VA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,VA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:VA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:VA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Bn.y(r=>this._ngZone.runOutsideAngular(()=>{const c=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,Fi.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const lI={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Yv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=lI){return new nI(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new aI(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(No),i.LFG(oI))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wD=new i.OlP("CDK_DRAG_PARENT"),CD=new i.OlP("CdkDropListGroup"),vD=new i.OlP("CDK_DRAG_CONFIG");let cI=0;const TD=new i.OlP("CdkDropList");let dI=(()=>{class n{constructor(e,t,r,l,c,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=c,this._group=s,this._destroyed=new De.x,this.connectedTo=[],this.id="cdk-drop-list-"+cI++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(d,u)=>this.enterPredicate(d.data,u.data),this._dropListRef.sortPredicate=(d,u,h)=>this.sortPredicate(d,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ti(this._dir.value),rt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Zd(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(c=>c.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=Zi(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:c,listOrientation:s}=e;this.disabled=r??!1,this.sortingDisabled=l??!1,this.autoScrollDisabled=c??!1,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yv),i.Y36(i.sBO),i.Y36(jc),i.Y36(Vn,8),i.Y36(CD,12),i.Y36(vD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[i._Bn([{provide:CD,useValue:void 0},{provide:TD,useExisting:n}])]}),n})();const xD=new i.OlP("CdkDragHandle"),uI=new i.OlP("CdkDragPlaceholder"),hI=new i.OlP("CdkDragPreview");let fI=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=c,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new De.x,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new Bn.y(b=>{const N=this._dragRef.moved.pipe((0,At.U)(Q=>({source:this,pointerPosition:Q.pointerPosition,event:Q.event,delta:Q.delta,distance:Q.distance}))).subscribe(b);return()=>{N.unsubscribe()}}),this._dragRef=d.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:s?.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=je(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,dt.q)(1),rt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){const e=this.element.nativeElement;let t=e;var r;this.rootElementSelector&&(t=void 0!==e.closest?e.closest(this.rootElementSelector):null===(r=e.parentElement)||void 0===r?void 0:r.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):Vi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,c=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:Zi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(c).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,dt.q)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let t=this.element.nativeElement.parentElement;for(;t;){if(t.classList.contains("cdk-drag")){var r;e.withParent((null===(r=n._dragInstances.find(l=>l.element.nativeElement===t))||void 0===r?void 0:r._dragRef)||null);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:c,boundaryElement:s,draggingDisabled:o,rootElementSelector:d,previewContainer:u}=e;this.disabled=o??!1,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),c&&(this.previewClass=c),s&&(this.boundaryElement=s),d&&(this.rootElementSelector=d),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(ti(this._handles),(0,mi.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,Nt.w)(e=>(0,Fi.T)(...e.map(t=>t._stateChanges.pipe(ti(t))))),rt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(TD,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(vD,8),i.Y36(Vn,8),i.Y36(Yv),i.Y36(i.sBO),i.Y36(xD,10),i.Y36(wD,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hI,5),i.Suo(r,uI,5),i.Suo(r,xD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[i._Bn([{provide:wD,useExisting:n}]),i.TTD]}),n})(),mI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yv],imports:[La]}),n})();const gI=["*"],SD=new i.OlP("MatChipRemove"),ED=new i.OlP("MatChipAvatar"),DD=new i.OlP("MatChipTrailingIcon");class _I{constructor(a){this._elementRef=a}}const bI=Oo(as(Sa(_I),"primary"),-1);let FA=(()=>{class n extends bI{constructor(e,t,r,l,c,s,o,d){super(e),this._ngZone=t,this._changeDetectorRef=c,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new De.x,this._onBlur=new De.x,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new OM(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=d&&parseInt(d)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=je(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=je(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=je(e)}get removable(){return this._removable}set removable(e){this._removable=je(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,dt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Ni),i.Y36(IM,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ED,5),i.Suo(r,DD,5),i.Suo(r,SD,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("role",t.role)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const HD=new i.OlP("mat-chips-default-options"),wI=E1(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t,this.stateChanges=new De.x}});let CI=0;class vI{constructor(a,e){this.source=a,this.value=e}}let LD=(()=>{class n extends wI{constructor(e,t,r,l,c,s,o){super(s,l,c,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new De.x,this._uid="mat-chip-list-"+CI++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(d,u)=>d===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,l;return null!==(e=null!==(t=this._required)&&void 0!==t?t:null===(r=this.ngControl)||void 0===r||null===(l=r.control)||void 0===l?void 0:l.hasValidator(Ji.required))&&void 0!==e&&e}set required(e){this._required=je(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=je(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Fi.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Fi.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Fi.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Fi.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new zh(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(rt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(rt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(ti(null),rt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Mn(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(l=>null!=l.value&&this._compareWith(l.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new vI(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Vn,8),i.Y36(Vl,8),i.Y36(Xs,8),i.Y36(Vc),i.Y36(ra,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,FA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:Zc,useExisting:n}]),i.qOj],ngContentSelectors:gI,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),n})(),TI=0,PD=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+TI++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=je(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=je(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!An(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),e?.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!An(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(HD))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[i.TTD]}),n})(),Wv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Vc,{provide:HD,useValue:{separatorKeyCodes:[13]}}],imports:[gt]}),n})();function xI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.dragDisabled=!1)}),i._uU(1,"drag_indicator"),i.qZA()}}function SI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.edit(r))}),i._uU(1,"edit"),i.qZA()}}function EI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.remove(r))}),i._uU(1,"cancel"),i.qZA()}}function DI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,c=i.oxw();return c.remove(l),i.KtG(c._sendEventToParent())}),i.YNc(1,xI,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.readonly&&void 0!==c.attribute.displayName&&c.showValue(l,c.attribute.displayName))}),i._uU(3),i.qZA(),i.YNc(4,SI,2,0,"mat-icon",7),i.YNc(5,EI,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function HI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function LI(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function PI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12)(1,"span",13)(2,"button",14),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onShowChange())}),i.YNc(3,HI,2,0,"mat-icon",15),i.YNc(4,LI,2,0,"mat-icon",15),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function kI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12)(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.add(r))})("change",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent())}),i.qZA()()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let RI=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!Zl(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Zl(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=bi();t.width="400px",t.data={name:e},this.dialog.open(Jk,t).afterClosed().subscribe(l=>{if(l){const c=this.attribute.value.indexOf(e);this.attribute.value.splice(c,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,_D(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=bi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(Zk,r).afterClosed().subscribe(c=>{c&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=bi();r.width="350px",r.data={value:e,title:t},this.dialog.open(RA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(i.TgZ(0,"div")(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,DI,6,9,"mat-chip",2),i.YNc(4,PI,5,4,"div",3),i.YNc(5,kI,2,3,"mat-form-field",3),i.qZA()()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},dependencies:[w.sg,w.O5,LD,FA,PD,dI,fI,Xi,Lt,dr,cn,zn],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),OI=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=Zl(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=bi();r.width="350px",r.data={value:e,title:t},this.dialog.open(RA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0)(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA()()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[dn,un,ls,cn,zn,Nv],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),II=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Zl(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=bi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(RA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0)(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA()()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},dependencies:[dn,vu,un,ls,cn,zn],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const BI=["map"];function NI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function VI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function FI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function zI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function jI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._sendEventToParent2())}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let Uv=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(BI,5),2&e){let r;i.iGM(r=i.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,NI,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,VI,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,FI,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,zI,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,jI,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},dependencies:[w.O5,QO,RI,BO,OI,II]}),n})();function qI(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function YI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeLanguage(l))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function WI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",14),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentLang=r)}),i.YNc(2,YI,4,6,"mat-option",15),i.qZA()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function UI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeEmail())}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA()()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function GI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeTimeZone(l))}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function $I(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13)(1,"mat-select",19),i.NdJ("valueChange",function(r){i.CHM(e);const l=i.oxw(3);return i.KtG(l.currentTimezone=r)}),i.YNc(2,GI,2,2,"mat-option",15),i.qZA()()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function ZI(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function JI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function XI(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZI,2,0,"p",20),i.YNc(2,JI,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function QI(n,a){if(1&n&&(i.TgZ(0,"tr")(1,"td",7)(2,"div",8),i._uU(3),i.qZA()(),i.TgZ(4,"td",9),i.YNc(5,WI,3,2,"mat-form-field",10),i.YNc(6,UI,6,2,"div",11),i.YNc(7,$I,3,2,"mat-form-field",10),i.YNc(8,XI,3,2,"div",12),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function KI(n,a){if(1&n&&(i.TgZ(0,"table",4)(1,"tbody")(2,"tr")(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA()(),i.YNc(9,QI,9,6,"tr",6),i.qZA()()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let eB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=c,this.route=s,this.router=o,this.notificator=d,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=tD.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const l=bi();l.width="600px",this.dialog.open(lR,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{this.fullName=(new CA).transform(t);const r=t.userAttributes.find(u=>"preferredMail"===u.friendlyName);this.email=r?.value??"-",this.languageAttribute=t.userAttributes.find(u=>"preferredLanguage"===u.friendlyName);const c=this.preferredLangService.getPreferredLanguage(this.languageAttribute?.value??null);this.translateService.use(c),this.currentLang=c,this.timezoneAttribute=t.userAttributes.find(u=>"timezone"===u.friendlyName),this.currentTimezone=this.timezoneAttribute?.value??"-";const s=this.storeService.get("profile_page_attributes");let o=0;const d=this.storeService.get("supported_languages");s.forEach(u=>{const h=t.userAttributes.find(f=>f.friendlyName===u.friendly_name);h?(o++,this.addAttribute(h,u,d)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${u.is_virtual?"virt":"def"}:${u.friendly_name}`).subscribe(f=>{this.addAttribute(f,u,d),o++,this.loading=o!==s.length}),this.loading=o!==s.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=bi();e.width="350px",e.data={userId:this.userId},this.dialog.open(Kk,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{this.email=e?.value??"-"})}addAttribute(e,t,r){const l={attribute:e};for(const c of r)l[`displayName_${c}`]=t?.[`display_name_${c}`]?.length?t[`display_name_${c}`]:e.displayName,l[`tooltip_${c}`]=t[`tooltip_${c}`]??"";this.additionalAttributes.push(l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Oi),i.Y36(ht),i.Y36(Xt),i.Y36(Pi),i.Y36(Xn),i.Y36(Ai),i.Y36(pr),i.Y36(Zt),i.Y36($m),i.Y36(cv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,qI,1,0,"mat-spinner",1),i.YNc(2,KI,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,w.RF,w.n9,w.ED,Xi,Lt,Uv,cn,Tp,js,Ei,dr,w.gd,lt,ri],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),n})(),tB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-focus-on-linker-dialog"]],decls:9,vars:6,consts:[[1,"text-center","custom-dialog"],[1,"align-text-bottom"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div")(2,"mat-icon",1),i._uU(3," info "),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div"),i._uU(7),i.ALo(8,"translate"),i.qZA()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.CONSOLIDATOR.FOCUS_ON_LINKER.MODAL_WARNING")," "))},dependencies:[Xi,lt],styles:[".custom-dialog[_ngcontent-%COMP%]{background-color:#000;color:#fffffff2;font-size:1.2rem}"]}),n})(),iB=(()=>{class n{constructor(e,t,r,l){this.otherApplicationsService=e,this.storeService=t,this.oauthService=r,this.dialog=l}openLinkerWindow(e,t){let r=this.otherApplicationsService.getUrlForOtherApplication("linker");this.storeService.getProperty("use_localhost_linker_url")&&(r="http://localhost:4201/");let l=r+"?formerToken="+this.oauthService.getAccessToken();t&&0!==t.length&&(l+="&idphint="+t.toString());const o=window.top,h=window.open(l,"_blank",`width=600,height=600,top=${o.outerHeight/2+o.screenY-300}, left=${o.outerWidth/2+o.screenX-300}`);let f;if(h){const N=bi();N.width="450px",N.panelClass="noBorderDialog",f=this.dialog.open(tB,N)}window.addEventListener("message",N=>{sessionStorage.setItem("linkedResult",N.data)});const b=setInterval(()=>{if(h.closed){clearInterval(b),f.close();const N=sessionStorage.getItem("linkedResult");sessionStorage.removeItem("linkedResult"),e(N)}},1e3)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(gA),i.LFG(Zt),i.LFG(ju.Ct),i.LFG(Oi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gv=(()=>{class n{}return n.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",n.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",n.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",n.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",n.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",n.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",n.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",n.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",n.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",n.VO_DEF_MAIL_HTML_FOOTER="urn:perun:vo:attribute-def:def:htmlMailFooter",n.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",n.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",n.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",n.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",n.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",n.GROUP_DEF_MAIL_HTML_FOOTER="urn:perun:group:attribute-def:def:htmlMailFooter",n.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",n.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",n.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",n.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",n.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",n.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",n.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",n.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",n.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",n.UES_SOURCE_IDP_NAME="urn:perun:ues:attribute-def:def:sourceIdPName",n.UES_IDP_ORGANIZATION_NAME="urn:perun:ues:attribute-def:def:IdPOrganizationName",n})();const nB=["mat-sort-header",""];function rB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){i.CHM(e);const r=i.oxw();return i.KtG(r._disableViewStateAnimation=!1)}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6)(4,"div",7)(5,"div",8),i.qZA()()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const aB=["*"],kD=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),sB=iu(xa(class{}));let gs=(()=>{class n extends sB{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new De.x,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const c=null!==(t=null!==(r=e?.disableClear)&&void 0!==r?r:this.disableClear)&&void 0!==t?t:!(null===(l=this._defaultOptions)||void 0===l||!l.disableClear);let s=function oB(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,c),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const od=Uh.ENTERING+" "+v1.STANDARD_CURVE,Jp={indicator:wi("indicator",[Rt("active-asc, asc",Ie({transform:"translateY(0px)"})),Rt("active-desc, desc",Ie({transform:"translateY(10px)"})),Pt("active-asc <=> active-desc",Et(od))]),leftPointer:wi("leftPointer",[Rt("active-asc, asc",Ie({transform:"rotate(-45deg)"})),Rt("active-desc, desc",Ie({transform:"rotate(45deg)"})),Pt("active-asc <=> active-desc",Et(od))]),rightPointer:wi("rightPointer",[Rt("active-asc, asc",Ie({transform:"rotate(45deg)"})),Rt("active-desc, desc",Ie({transform:"rotate(-45deg)"})),Pt("active-asc <=> active-desc",Et(od))]),arrowOpacity:wi("arrowOpacity",[Rt("desc-to-active, asc-to-active, active",Ie({opacity:1})),Rt("desc-to-hint, asc-to-hint, hint",Ie({opacity:.54})),Rt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Ie({opacity:0})),Pt("* => asc, * => desc, * => active, * => hint, * => void",Et("0ms")),Pt("* <=> *",Et(od))]),arrowPosition:wi("arrowPosition",[Pt("* => desc-to-hint, * => desc-to-active",Et(od,Us([Ie({transform:"translateY(-25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-desc, * => active-to-desc",Et(od,Us([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(25%)"})]))),Pt("* => asc-to-hint, * => asc-to-active",Et(od,Us([Ie({transform:"translateY(25%)"}),Ie({transform:"translateY(0)"})]))),Pt("* => hint-to-asc, * => active-to-asc",Et(od,Us([Ie({transform:"translateY(0)"}),Ie({transform:"translateY(-25%)"})]))),Rt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Ie({transform:"translateY(0)"})),Rt("hint-to-desc, active-to-desc, desc",Ie({transform:"translateY(-25%)"})),Rt("hint-to-asc, active-to-asc, asc",Ie({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Pt("* <=> *",[Fr("@*",kl(),{optional:!0})])])};let zA=(()=>{class n{constructor(){this.changes=new De.x}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cB={provide:zA,deps:[[new i.FiY,new i.tp0,zA]],useFactory:function lB(n){return n||new zA}},dB=xa(class{});let rg=(()=>{class n extends dB{constructor(e,t,r,l,c,s,o,d){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=c,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",null!=d&&d.arrowPosition&&(this.arrowPosition=d?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Fi.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zA),i.Y36(i.sBO),i.Y36(gs,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(vr),i.Y36(i.SBq),i.Y36(p1,8),i.Y36(kD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:nB,ngContentSelectors:aB,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0)(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,rB,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"===t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0)("role",t._isDisabled()?null:"button"),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},dependencies:[w.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Jp.indicator,Jp.leftPointer,Jp.rightPointer,Jp.arrowOpacity,Jp.arrowPosition,Jp.allowChildren]},changeDetection:0}),n})(),jA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[cB],imports:[w.ez,gt]}),n})(),uB=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),RD=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),hB=(()=>{class n{transform(e){return e.find(r=>"mail"===r.friendlyName)?.value??""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function pB(n,a){1&n&&i._UZ(0,"th",18)}function fB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function mB(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function gB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function _B(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function bB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function AB(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function yB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function MB(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function wB(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function CB(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function vB(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function TB(n,a){1&n&&i._UZ(0,"tr",26)}const OD=function(n,a){return["/admin","users",n,"identities",a]};function xB(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,OD,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,OD,t.userId,e.userExtSource.id))}}function SB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function EB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let DB=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new Mn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=Fu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(l=>"mail"===l.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Zo(this.userExtSources),this.setDataSource()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e.userExtSource)?"deselect":"select"} row ${e.userExtSource.id+1}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xn),i.Y36(Ua))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,pB,1,0,"th",4),i.YNc(5,fB,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,mB,4,5,"th",7),i.YNc(8,gB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,_B,4,5,"th",10),i.YNc(11,bB,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,AB,4,5,"th",7),i.YNc(14,yB,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,MB,4,5,"th",7),i.YNc(17,wB,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,CB,4,5,"th",7),i.YNc(20,vB,3,4,"td",14),i.BQk(),i.YNc(21,TB,1,0,"tr",15),i.YNc(22,xB,1,12,"tr",16),i.qZA()()(),i.YNc(23,SB,3,3,"perun-web-apps-alert",17),i.YNc(24,EB,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},dependencies:[w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,So,gs,rg,Gn,dr,ds,RD,w.uU,lt,hB,ri],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),n})();function HB(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function LB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.addIdentity())}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.removeIdentity(r.certSelection))}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function PB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"button",5),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.addIdentity())}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.removeIdentity(r.idpSelection))}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i._UZ(9,"perun-web-apps-user-ext-sources-list",7),i.YNc(10,LB,14,22,"div",3),i.TgZ(11,"h1",8),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.TgZ(15,"mat-icon",9),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i._uU(18," info_outline "),i.qZA()(),i._UZ(19,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,16,i.lcZ(4,18,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(7,20,i.lcZ(8,22,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(13,24,i.lcZ(14,26,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(16,28,i.lcZ(17,30,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let kB=(()=>{class n{constructor(e,t,r,l,c,s,o,d){this.usersManagerService=e,this.storage=t,this.dialog=r,this.attributesManagerService=l,this.translate=c,this.notificator=s,this.registrarManagerService=o,this.openLinkerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new Mn(!0,[]),this.certSelection=new Mn(!0,[]),this.otherSelection=new Mn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","mail","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributesByNames(r.userExtSource.id,[Gv.UES_SOURCE_IDP_NAME,Gv.UES_DEF_MAIL]).subscribe(l=>{let c;l.filter(s=>"mail"===s.baseFriendlyName&&null===s.value).map(s=>r.attributes.push(s)),l.filter(s=>"sourceIdPName"===s.baseFriendlyName&&s?.value).map(s=>c=s.value),c?(r.userExtSource.extSource.name=c,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,Gv.UES_IDP_ORGANIZATION_NAME).subscribe(s=>{t--,s?.value&&(r.userExtSource.extSource.name=s.value),this.loading=0!==t,this.addToList(r)})})})})}removeIdentity(e){const t=bi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(Wk,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addIdentity(){this.storage.getProperty("use_new_consolidator")?this.openLinkerService.openLinkerWindow(e=>{"TOKEN_EXPIRED"===e?location.reload():"OK"===e?(this.notificator.showSuccess(this.translate.instant("IDENTITIES.SUCCESSFULLY_ADDED")),this.refreshTables()):"MESSAGE_SENT_TO_SUPPORT"===e&&this.notificator.showSuccess(this.translate.instant("IDENTITIES.MESSAGE_SENT_TO_SUPPORT"))}):this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${t?.endsWith("X509")?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(Oi),i.Y36(Xt),i.Y36(_i),i.Y36(pr),i.Y36(nc),i.Y36(iB))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:7,vars:7,consts:[[1,"user-theme"],[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-flat-button","","color","accent",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,HB,1,0,"mat-spinner",2),i.YNc(6,PB,20,32,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"IDENTITIES.IDP"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Xi,Lt,DB,Ei,dr,lt,ri],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const RB=["panel"];function OB(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const IB=["*"];let BB=0;class NB{constructor(a,e){this.source=a,this.option=e}}const VB=Sa(class{}),ID=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function FB(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let zB=(()=>{class n extends VB{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=Bt.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+BB++,this.inertGroups=l?.SAFARI||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption,this._autoSelectActiveOption=!!r.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=je(e)}set classList(e){this._classList=e&&e.length?function rM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new ta(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new NB(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(ID),i.Y36(Ni))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(RB,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),jB=(()=>{class n extends zB{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ru,5),i.Suo(r,js,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:r0,useExisting:n}]),i.qOj],ngContentSelectors:IB,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,OB,3,4,"ng-template"))},dependencies:[w.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),n})();const BD=new i.OlP("mat-autocomplete-scroll-strategy"),YB={provide:BD,deps:[yn],useFactory:function qB(n){return()=>n.scrollStrategies.reposition()}},WB={provide:Qn,useExisting:(0,i.Gpc)(()=>ND),multi:!0};let UB=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=c,this._dir=o,this._formField=d,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Bt.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new De.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=nr(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(ti(b),(0,Nt.w)(()=>(0,Fi.T)(...b.map(N=>N.onSelectionChange)))):this._zone.onStable.pipe((0,dt.q)(1),(0,Nt.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Fi.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,Yt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,Yt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,At.U)(e=>e instanceof a0?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Fi.T)(qs(this._document,"click"),qs(this._document,"auxclick"),qs(this._document,"touchend")).pipe((0,Yt.h)(e=>{const t=or(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode,r=An(e);if(27===t&&!r&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const l=this.autocomplete._keyManager.activeItem,c=38===t||40===t;9===t||c&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):c&&this._canOpen()&&this.openPanel(),(c||this.autocomplete._keyManager.activeItem!==l)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._pendingAutoselectedOption=null,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,dt.q)(1)),t=this.autocomplete.options.changes.pipe((0,mi.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Sp.g)(0));return(0,Fi.T)(e,t).pipe((0,Nt.w)(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,dt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(t??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const t=e?e.source:this._pendingAutoselectedOption;t&&(this._clearPreviousSelectedOption(t),this._assignOptionValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){let e=this._overlayRef;var t;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Dl(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new lu({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let c;c="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(c)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=s0(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const c=l._getHostElement(),s=o0(c.offsetTop,c.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(t=>{var r;(27===t.keyCode&&!An(t)||38===t.keyCode&&An(t,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(null!==(r=this._valueBeforeAutoSelection)&&void 0!==r?r:""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),t.stopPropagation(),t.preventDefault())}),e.outsidePointerEvents().subscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(yn),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(BD),i.Y36(Vn,8),i.Y36(Jc,9),i.Y36(w.K0,8),i.Y36(No),i.Y36(ID,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),ND=(()=>{class n extends UB{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)})("click",function(){return t._handleClick()}),2&e&&i.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",t.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[i._Bn([WB]),i.qOj]}),n})(),GB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[YB],imports:[zo,au,gt,w.ez,La,au,gt]}),n})(),$B=(()=>{class n{transform(e){return e?.value??"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function ZB(n,a){1&n&&i._UZ(0,"th",17)}function JB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18)(1,"mat-checkbox",19),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(2,3,e.expirationAttribute))}}function XB(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function QB(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function KB(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function eN(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function tN(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function iN(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function nN(n,a){1&n&&i._UZ(0,"th",20)}function rN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22)(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.extend(l))}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function aN(n,a){1&n&&i._UZ(0,"tr",25)}function sN(n,a){1&n&&i._UZ(0,"tr",26)}function oN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let VD=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new Mn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=Fu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return e?.expirationAttribute?.value??"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Zo(this.members),this.setDataSource()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.entity.id+1}`}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZB,1,0,"th",4),i.YNc(5,JB,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,XB,4,5,"th",7),i.YNc(8,QB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KB,4,5,"th",7),i.YNc(11,eN,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,tN,4,5,"th",12),i.YNc(14,iN,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,nN,1,0,"th",7),i.YNc(17,rN,6,8,"td",10),i.BQk(),i.YNc(18,aN,1,0,"tr",14),i.YNc(19,sN,1,0,"tr",15),i.qZA()()(),i.YNc(20,oN,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},dependencies:[w.O5,Lt,Gn,no,hs,ro,ps,us,ao,fs,ms,so,oo,tc,gs,rg,ds,lt,ri,$B]}),n})();function lN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function cN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7)(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.filterByVo(r))}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,lN,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA()()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function dN(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function uN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const hN=function(){return["name","description","expirationAttribute","extend"]};function pN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.extendMembership(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,hN))}}const fN=function(){return["name","description"]};function mN(n,a){if(1&n&&(i.TgZ(0,"div",18)(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,fN))}}let gN=(()=>{class n{constructor(e,t,r,l,c,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=c,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new Ra,this.selection=new Mn(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(ti(""),(0,At.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(l=>{t--,this.groupService.getMemberGroups(l).subscribe(c=>{e+=c.length,this.loading=0===e&&0!==t,c.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(c=>{this.adminMemberships.push({entity:c,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(l=>{let c=l.length;this.loading=0!==c,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{c--,this.userMemberships.push({entity:s,expirationAttribute:o.find(d=>"groupMembershipExpiration"===d.friendlyName)}),this.loading=0!==c})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.get("registrar_base_url"),r=e.entity,l=this.vos.find(c=>c.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(On),i.Y36(qn),i.Y36(Zt),i.Y36(tn),i.Y36(Xt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,cN,15,19,"mat-form-field",2),i.YNc(6,dN,1,0,"mat-spinner",3),i.YNc(7,uN,4,5,"perun-web-apps-alert",4),i.YNc(8,pN,6,9,"div",5),i.YNc(9,mN,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},dependencies:[w.sg,w.O5,Gn,cn,Hi,js,zn,dn,un,Oa,Ei,jB,ND,VD,w.Ov,lt,ri]}),n})();function _N(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function bN(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let Xp=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ra}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","","data-cy","unfocused-filter",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,_N,2,4,"input",1),i.YNc(2,bN,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},dependencies:[w.O5,dn,un,cn,Oa,zn,uB,lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})();function AN(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let yN=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&i.YNc(0,AN,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},dependencies:[w.O5,Xi,dr,lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function MN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE")),i.Q2q("data-cy","",e.groupName,"-active")}}function wN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA()()}if(2&n){const e=i.oxw();i.s9C("matTooltip",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE")),i.Q2q("data-cy","",e.groupName,"-inactive")}}function CN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.changeStatus())}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA()()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function vN(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA()()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let TN=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.groupName="",this.statusChange=new i.vpe}changeStatus(){const e=bi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(PR,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",groupName:"groupName",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,MN,4,4,"span",1),i.YNc(2,wN,4,4,"span",1),i.YNc(3,CN,4,4,"span",1),i.YNc(4,vN,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},dependencies:[w.O5,Xi,dr,lt]}),n})(),xN=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),SN=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})();function EN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24)(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function DN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26)(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.itemSelectionToggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function HN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function LN(n,a){if(1&n&&(i.TgZ(0,"td",30),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function PN(n,a){1&n&&i._UZ(0,"th",31)}function kN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._UZ(1,"perun-web-apps-recently-viewed-icon",33),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function RN(n,a){1&n&&i._UZ(0,"th",31)}function ON(n,a){1&n&&(i.TgZ(0,"mat-icon",35),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function IN(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,ON,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function BN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function NN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("data-cy",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function VN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function FN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function zN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function jN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function qN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function YN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32)(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=!0)})("mouseleave",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.disabledRouting=r.disableRouting)})("statusChange",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.refreshTable.emit())}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function WN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function UN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function GN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function $N(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function ZN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function JN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function XN(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function QN(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function KN(n,a){1&n&&i._UZ(0,"tr",37)}const e3=function(n){return[n]};function t3(n,a){if(1&n&&(i._UZ(0,"tr",38),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,e3,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function n3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function r3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let a3=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new Mn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=Fu,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let c="";return e.resourceTags.forEach(function(s){c=c.concat(s.tagName)}),c}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new Zo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>zu(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ua),i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[i.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,EN,2,3,"th",4),i.YNc(5,DN,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,HN,3,3,"th",7),i.YNc(8,LN,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,PN,1,0,"th",10),i.YNc(11,kN,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,RN,1,0,"th",10),i.YNc(14,IN,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,BN,3,3,"th",7),i.YNc(17,NN,2,2,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,VN,3,3,"th",7),i.YNc(20,FN,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,zN,3,3,"th",7),i.YNc(23,jN,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,qN,3,3,"th",7),i.YNc(26,YN,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,WN,3,3,"th",7),i.YNc(29,UN,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,GN,3,3,"th",7),i.YNc(32,$N,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,ZN,3,3,"th",7),i.YNc(35,JN,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,XN,3,3,"th",7),i.YNc(38,QN,2,1,"td",11),i.BQk(),i.YNc(39,KN,1,0,"tr",21),i.YNc(40,t3,3,14,"tr",22),i.qZA()()(),i.YNc(41,n3,3,3,"perun-web-apps-alert",23),i.YNc(42,r3,3,3,"perun-web-apps-alert",23)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(37),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},dependencies:[w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,So,gs,rg,Gn,Xi,dr,ds,RD,yN,TN,lt,xN,SN],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})(),s3=0;const $v=new i.OlP("CdkAccordion");let o3=(()=>{class n{constructor(){this._stateChanges=new De.x,this._openCloseAllActions=new De.x,this.id="cdk-accordion-"+s3++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=je(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:$v,useExisting:n}]),i.TTD]}),n})(),l3=0,c3=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=Bt.w0.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+l3++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,c)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===c&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=je(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($v,12),i.Y36(i.sBO),i.Y36(zr))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:$v,useValue:void 0}])]}),n})(),d3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const u3=["body"];function h3(n,a){}const p3=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],f3=["mat-expansion-panel-header","*","mat-action-row"];function m3(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const g3=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_3=["mat-panel-title","mat-panel-description","*"],Zv=new i.OlP("MAT_ACCORDION"),FD="225ms cubic-bezier(0.4,0.0,0.2,1)",zD={indicatorRotate:wi("indicatorRotate",[Rt("collapsed, void",Ie({transform:"rotate(0deg)"})),Rt("expanded",Ie({transform:"rotate(180deg)"})),Pt("expanded <=> collapsed, void => collapsed",Et(FD))]),bodyExpansion:wi("bodyExpansion",[Rt("collapsed, void",Ie({height:"0px",visibility:"hidden"})),Rt("expanded",Ie({height:"*",visibility:"visible"})),Pt("expanded <=> collapsed, void => collapsed",Et(FD))])},jD=new i.OlP("MAT_EXPANSION_PANEL");let ag=(()=>{class n{constructor(e,t){this._template=e,this._expansionPanel=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(jD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),b3=0;const qD=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let sg=(()=>{class n extends c3{constructor(e,t,r,l,c,s,o){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new De.x,this._headerId="mat-expansion-panel-header-"+b3++,this._bodyAnimationDone=new De.x,this.accordion=e,this._document=c,this._bodyAnimationDone.pipe(Ih((d,u)=>d.fromState===u.fromState&&d.toState===u.toState)).subscribe(d=>{"void"!==d.fromState&&("expanded"===d.toState?this.afterExpand.emit():"collapsed"===d.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(ti(null),(0,Yt.h)(()=>this.expanded&&!this._portal),(0,dt.q)(1)).subscribe(()=>{this._portal=new Dl(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zv,12),i.Y36(i.sBO),i.Y36(zr),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(i.QbO,8),i.Y36(qD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,ag,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(u3,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Zv,useValue:void 0},{provide:jD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:f3,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(p3),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,h3,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},dependencies:[rp],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[zD.bodyExpansion]},changeDetection:0}),n})();class A3{}const y3=Oo(A3);let og=(()=>{class n extends y3{constructor(e,t,r,l,c,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=Bt.w0.EMPTY;const d=e.accordion?e.accordion._stateChanges.pipe((0,Yt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Ur.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Fi.T)(e.opened,e.closed,d,e._inputChanges.pipe((0,Yt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,Yt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:An(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(sg,1),i.Y36(i.SBq),i.Y36(vr),i.Y36(i.sBO),i.Y36(qD,8),i.Y36(i.QbO,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:_3,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(g3),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,m3,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},dependencies:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[zD.indicatorRotate]},changeDetection:0}),n})(),qA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),YA=(()=>{class n extends o3{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=je(e)}ngAfterContentInit(){this._headers.changes.pipe(ti(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new zh(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,og,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Zv,useExisting:n}]),i.qOj]}),n})(),Jv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,d3,Fo]}),n})();function M3(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const w3=function(){return["name","description"]};function C3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,w3))("disableRouting",!0)}}function v3(n,a){if(1&n&&(i.YNc(0,M3,1,0,"mat-spinner",6),i.YNc(1,C3,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function T3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,v3,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let x3=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(On),i.Y36(ja),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,T3,5,1,"mat-expansion-panel",3),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Xp,a3,YA,sg,og,qA,ag,Ei,lt,ri]}),n})();function S3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilter(r))}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function E3(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const D3=function(){return["name","expirationAttribute","extend"]};function H3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){i.CHM(e);const l=i.oxw(2);return i.KtG(l.extendMembership(r))}),i.qZA()()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,D3))}}function L3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function P3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,H3,2,5,"div",9),i.YNc(6,L3,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function k3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const R3=function(){return["name"]};function O3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,R3))}}function I3(n,a){if(1&n&&(i.TgZ(0,"div",7)(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,k3,4,5,"perun-web-apps-alert",10),i.YNc(6,O3,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let B3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new Mn(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.get("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const c=r.find(s=>s.voId===l.id);c?this.membersService.getRichMemberWithAttributes(c.id).subscribe(s=>{const o=s.memberAttributes.find(d=>"membershipExpiration"===d.friendlyName);t.push({entity:l,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(On))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,S3,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,E3,1,0,"mat-spinner",3),i.YNc(7,P3,7,7,"div",4),i.YNc(8,I3,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Xp,Gn,Ei,VD,lt,ri]}),n})(),N3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},dependencies:[Ka]}),n})(),V3=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA()(),i.TgZ(11,"div",3)(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},dependencies:[Lt,Pn,vn,hn,Lv,lt,ri],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function F3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function z3(n,a){1&n&&i._UZ(0,"th",16)}function j3(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function q3(n,a){1&n&&i._UZ(0,"tr",18)}function Y3(n,a){1&n&&i._UZ(0,"tr",19)}function W3(n,a){if(1&n&&(i.TgZ(0,"div",8)(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,z3,1,0,"th",12),i.YNc(12,j3,2,1,"td",13),i.BQk(),i.YNc(13,q3,1,0,"tr",14),i.YNc(14,Y3,1,0,"tr",15),i.qZA()()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let U3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Zo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,F3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,W3,15,13,"div",3),i.TgZ(7,"div",4)(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},dependencies:[w.O5,Lt,Pn,vn,hn,no,hs,ro,ps,us,ao,fs,ms,so,oo,Ei,lt,ri]}),n})();function G3(n,a){1&n&&i._UZ(0,"th",12)}function $3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13)(1,"mat-checkbox",14),i.NdJ("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)})("click",function(r){return r.stopPropagation()}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function Z3(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function J3(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function X3(n,a){1&n&&i._UZ(0,"tr",17)}function Q3(n,a){1&n&&i._UZ(0,"tr",18)}function K3(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let YD=(()=>{class n{constructor(){this.values=[],this.selection=new Mn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Zo(this.values),this.setDataSource()}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(ds,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportDisplayedData","exportAllData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,G3,1,0,"th",4),i.YNc(5,$3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Z3,2,1,"th",7),i.YNc(8,J3,2,1,"td",8),i.BQk(),i.YNc(9,X3,1,0,"tr",9),i.YNc(10,Q3,1,0,"tr",10),i.qZA()()(),i.YNc(11,K3,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},dependencies:[w.O5,Gn,no,hs,ro,ps,us,ao,fs,ms,so,oo,tc,ds],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function eV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function tV(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let iV=(()=>{class n{constructor(e,t,r,l,c){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=c,this.altPasswordCtrl=new Ra(null,[Ji.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new Mn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword({user:this.userId,description:this.altPasswordCtrl.value,loginNamespace:"einfra",password:e}).subscribe(()=>{const t=bi();t.width="600px",t.data={password:e},this.dialog.open(V3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const c=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*c);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=bi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(U3,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i),i.Y36(Pi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA()(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,eV,1,4,"perun-web-apps-string-list",8),i.YNc(27,tV,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,Lt,Gn,cn,zn,dn,un,Oa,Ei,YD,lt,ri]}),n})();function nV(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1)(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let rV=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.get("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-list"),i.YNc(1,nV,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},dependencies:[w.sg,Xi,Rv,OA,So,ia,lt,ri],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),aV=(()=>{class n extends Tn{buildStyles(e,{display:t}){const r=nE(e);return{...r,display:"none"===t?t:r.display}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sV=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let oV=(()=>{class n extends pn{constructor(e,t,r,l,c){super(e,r,t,l),this._config=c,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var t;const l=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(t=UD.get(l))&&void 0!==t?t:new Map,UD.set(l,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:l}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(aV),i.Y36(nn),i.Y36(io))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),WD=(()=>{class n extends oV{constructor(){super(...arguments),this.inputs=sV}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),n})();const UD=new Map;let FV=(()=>{class n extends Tn{buildStyles(e){const t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const zV=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let jV=(()=>{class n extends pn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=qV,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Qi),i.Y36(FV),i.Y36(nn))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const qV=new Map;let ZD=(()=>{class n extends jV{constructor(){super(...arguments),this.inputs=zV}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.qOj]}),n})(),JD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv,ko]}),n})();function sF(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let oF=(()=>{class n{constructor(e,t,r,l,c){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=c,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",c.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Ra(null,[Ji.required]),this.newValueControl=new Ra(null,[Ji.required,Ji.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new CA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(fi),i.Y36(pr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"div")(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA()(),i.TgZ(12,"div")(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA()(),i.TgZ(19,"div",3)(20,"mat-form-field")(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA()(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,sF,2,2,"mat-option",7),i.qZA()(),i.TgZ(27,"div")(28,"mat-form-field",8)(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA()()(),i.TgZ(33,"div",10)(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA()()()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},dependencies:[w.sg,Lt,WD,ZD,cn,Tp,js,Pn,hn,zn,dn,vu,un,aa,Oa,lt,ri],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),n})();function lF(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function cF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function dF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"p")(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit,c=i.oxw();return i.KtG(c.requestChangeQuota(l,r))}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.Oqu(i.lcZ(9,8,i.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function uF(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function hF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.getResAttributes(l.id))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,dF,15,16,"div",7),i.YNc(5,uF,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function pF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,hF,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function fF(n,a){if(1&n&&(i.YNc(0,lF,1,0,"mat-spinner",5),i.YNc(1,cF,4,5,"perun-web-apps-alert",6),i.YNc(2,pF,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function mF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.getMembersResources(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,fF,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let gF=(()=>{class n{constructor(e,t,r,l,c,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.dialog=s,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getResourceAttributes(c.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(c),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),r?.value){const l=Object.entries(r.value).map(c=>String(c[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=bi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(oF,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Pi),i.Y36(On),i.Y36(ja),i.Y36(Xt),i.Y36(Oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"color-gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,mF,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DATA_QUOTAS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Lt,Xp,Gn,YA,sg,og,qA,ag,Ei,lt,ri],styles:[".color-gray[_ngcontent-%COMP%]{color:gray}"]}),n})();function _F(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function bF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function AF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.deselectResource())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw(4);return i.KtG(c.changeSelectedResource(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.TgZ(4,"div",10)(5,"mat-checkbox",11),i.NdJ("change",function(){i.CHM(e);const r=i.oxw(4);return i.KtG(r.setOptOut())}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA()()()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.Oqu(i.lcZ(8,4,i.lcZ(9,6,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL")))}}function yF(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,AF,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function MF(n,a){if(1&n&&(i.YNc(0,_F,1,0,"mat-spinner",5),i.YNc(1,bF,4,5,"perun-web-apps-alert",6),i.YNc(2,yF,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function wF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.deselectVo())})("afterExpand",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changeSelectedVo(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i.YNc(4,MF,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let CF=(()=>{class n{constructor(e,t,r,l,c,s,o,d,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=c,this.route=s,this.router=o,this.notificator=d,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(KC),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"})}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getMailingServiceRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(c=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,c.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(c.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const d=s.find(u=>"optOutMailingList"===u.friendlyName);d&&"true"!==o?.value&&(this.optOuts.push({resource:c.id,member:t.id,attribute:d}),this.resources.push(c),this.selectedResource===c.name&&(this.getOptOutAttribute(c),this.changeSelectedResource(c))),this.loading=0!==l})})})}),this.resources.sort(KC)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Pi),i.Y36(On),i.Y36(ja),i.Y36(Xt),i.Y36(Xn),i.Y36(Ai),i.Y36(pr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,wF,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},dependencies:[w.sg,w.O5,Xp,Gn,YA,sg,og,qA,ag,tc,Ei,lt,ri]}),n})();function vF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TF(n,a){1&n&&i._UZ(0,"th",17)}function xF(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function SF(n,a){1&n&&i._UZ(0,"tr",19)}function EF(n,a){1&n&&i._UZ(0,"tr",20)}function DF(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,TF,1,0,"th",13),i.YNc(3,xF,2,1,"td",14),i.BQk(),i.YNc(4,SF,1,0,"tr",15),i.YNc(5,EF,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function HF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1)(1,"div",5)(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,DF,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8)(10,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let UA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Zo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let e=this.data.attribute?.value??[];void 0!==this.data.valueIndex?e.splice(this.data.valueIndex,1):e=e.filter(t=>!this.data.values.find(r=>r===t)),this.data.attribute.value=e}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,vF,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,HF,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Lt,Pn,vn,hn,no,hs,ro,ps,us,ao,fs,ms,so,oo,Ei,lt,ri]}),n})();function LF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function PF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(3);return i.KtG(r.changeValue())}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function kF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item")(1,"mat-form-field",7)(2,"mat-select",8),i.NdJ("valueChange",function(r){const c=i.CHM(e).index,s=i.oxw(2);return i.KtG(s.shells[c]=r)}),i.YNc(3,PF,2,2,"mat-option",9),i.qZA()(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index,c=i.oxw(2);return i.KtG(c.removeShell(l))}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function RF(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,kF,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let OF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=bi();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{this.prefShellsAttribute=e,this.shells=this.prefShellsAttribute?.value??[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,LF,4,5,"perun-web-apps-alert",3),i.YNc(13,RF,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,Rv,OA,Lt,Gn,cn,Tp,js,lt,ri]}),n})();function IF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function BF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",5)(2,"mat-form-field",6)(3,"label",6),i._UZ(4,"input",7),i.qZA()()(),i.TgZ(5,"div",8)(6,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onCancel())}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onSubmit())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let NF=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Ra(null,Ji.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{const t=e?.value??[];t.push(this.inputControl.value),e.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,IF,1,0,"mat-spinner",2),i.YNc(6,BF,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.O5,Lt,cn,Pn,vn,hn,zn,dn,un,aa,Oa,Ei,lt,ri]}),n})();function VF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2)(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.addGroupName(l))}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,c=r.index,s=i.oxw();return i.KtG(s.removeGroupName(l,c))}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let FF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(c=>this.alertText=c),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new Mn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{this.groupNames.set(e,t?.value??[]),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=bi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(NF,r).afterClosed().subscribe(c=>{c&&this.getAttribute(e)})}removeGroupName(e,t){const r=bi();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,r).afterClosed().subscribe(c=>{c&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,VF,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},dependencies:[w.sg,Lt,YD,lt,ri]}),n})();function zF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function jF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function qF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let YF=(()=>{class n{constructor(e,t,r,l,c){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=c,c.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),c.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),c.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Ra("",[Ji.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword({user:this.userId,description:e,loginNamespace:"samba-du",password:this.sambaControl.value}).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xt),i.Y36(Zt),i.Y36(Pi),i.Y36(pr),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,zF,4,5,"perun-web-apps-alert",1),i.YNc(5,jF,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2)(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA()(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA()(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,qF,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},dependencies:[w.O5,Xi,Lt,Gn,cn,zn,dn,un,Oa,dr,lt,ri]}),n})();function WF(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Jo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Ra(null,[Ji.required,Ji.pattern(Jo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){const a=this.data.attribute?.value??[],e=this.sshControl.value;a.includes(e)||a.push(e),this.data.attribute.value=a,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{a.pop()})}}Jo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Jo.sshKeyPattern="^("+Jo.allowedSshKeys.join("|")+").+$",Jo.\u0275fac=function(a){return new(a||Jo)(i.Y36(zi),i.Y36(Cn),i.Y36(Xt))},Jo.\u0275cmp=i.Xpm({type:Jo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"mat-form-field",2)(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,WF,4,5,"mat-error",4),i.qZA()(),i.TgZ(11,"div",5)(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA()()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},dependencies:[w.O5,Lt,jo,cn,Pn,vn,hn,wA,zn,dn,un,aa,Oa,lt,ri],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let UF=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"textarea",1),i._uU(2),i.qZA()(),i.TgZ(3,"mat-dialog-actions")(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA()()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},dependencies:[Lt,hn,wA,zn,lt,ri],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function GF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA()(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!1))}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function $F(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4)(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.showWholeKey(l))}),i._uU(2),i.qZA(),i.TgZ(3,"button",9)(4,"mat-icon"),i._uU(5," file_copy "),i.qZA()(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.removeKey(l,!0))}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA()()()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let ZF=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new Mn(!1,[]),this.selectionAdmin=new Mn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(c=>this.removeDialogDescription=c),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(c=>this.alertText=c),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(c=>this.headerColumnText=c)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=bi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Jo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=bi();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,r).afterClosed().subscribe(c=>{c&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=bi();t.width="600px",t.data={value:e},this.dialog.open(UF,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zt),i.Y36(Xt),i.Y36(Oi),i.Y36(_i))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item w-auto","matRipple","",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item","w-auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,GF,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,$F,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.Oqu(i.lcZ(16,20,i.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(20,24,i.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},dependencies:[w.sg,Xi,Rv,OA,Lt,Lv,ia,dr,lt,ri],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})(),JF=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function XF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17)(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function QF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",t.checkboxLabel(e))}}function KF(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function ez(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function tz(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function iz(n,a){if(1&n&&(i.TgZ(0,"td",23)(1,"div",24),i._uU(2),i.qZA()()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function nz(n,a){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function rz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23)(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.onValueChange(l))}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function az(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function sz(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function oz(n,a){1&n&&i._UZ(0,"tr",27)}function lz(n,a){if(1&n&&(i._UZ(0,"tr",28),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function cz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function dz(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}let uz=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new Mn(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=Fu}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Zl(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Zo(function ZC(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,n.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,n.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ua),i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7),i.Gf(Uv,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,XF,2,3,"th",4),i.YNc(5,QF,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,KF,3,3,"th",7),i.YNc(8,ez,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,tz,3,3,"th",7),i.YNc(11,iz,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,nz,3,3,"th",12),i.YNc(14,rz,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,az,3,3,"th",7),i.YNc(17,sz,2,1,"td",10),i.BQk(),i.YNc(18,oz,1,0,"tr",14),i.YNc(19,lz,2,5,"tr",15),i.qZA()()(),i.YNc(20,cz,3,3,"perun-web-apps-alert",16),i.YNc(21,dz,3,3,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,gs,rg,Gn,dr,ds,Uv,lt,JF,Nv],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),n})();function hz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function pz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function fz(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function mz(n,a){if(1&n&&(i.YNc(0,pz,1,0,"mat-spinner",3),i.YNc(1,fz,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function gz(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function _z(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function bz(n,a){if(1&n&&(i.YNc(0,gz,1,0,"mat-spinner",3),i.YNc(1,_z,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function Az(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit,c=i.oxw(2);return i.KtG(c.getMemberData(l))}),i.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA()(),i.YNc(6,bz,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function yz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion")(1,"mat-expansion-panel",6),i.NdJ("opened",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.getUserData())}),i.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()(),i.YNc(7,mz,2,2,"ng-template",7),i.qZA(),i.YNc(8,Az,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}let Mz=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new CA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(On),i.Y36(Xt),i.Y36(Zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1)(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,hz,1,0,"mat-spinner",3),i.YNc(9,yz,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},dependencies:[w.sg,w.O5,Xp,uz,YA,sg,og,qA,ag,Ei,lt,ri]}),n})(),wz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Ka]}),n})(),Sz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Oz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[Sz,gt,gt]}),n})(),Nz=(()=>{class n{constructor(){this.changes=new De.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $z={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[yn],useFactory:function Gz(n){return()=>n.scrollStrategies.reposition()}};let tT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Nz,$z],imports:[w.ez,Ea,zo,Yh,Fo,gt,La]}),n})();new i.OlP("mat-selectsearch-default-options");let nj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Qs,Ea,eg,Ia,Wp,Ks]]}),n})(),iT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[gt,gt]}),n})(),t2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[$h,gt,$h,gt]}),n})(),sj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[ko]}),n})(),nT=(()=>{class n{constructor(){this.changes=new De.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _j={provide:nT,deps:[[new i.FiY,new i.tp0,nT]],useFactory:function gj(n){return n||new nT}};let s2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_j,Vc],imports:[gt,w.ez,Fo,Ea,sj,Ia,na,gt]}),n})(),wj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,gt,Fo,na,Sl,Yh,gt]}),n})();const Cj=["input"],vj=function(n){return{enterDuration:n}},Tj=["*"],xj=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Sj=0;const Ej={provide:Qn,useExisting:(0,i.Gpc)(()=>o2),multi:!0};class Dj{constructor(a,e){this.source=a,this.checked=e}}const Hj=Oo(as(Sa(xa(class{constructor(n){this._elementRef=n}}))));let Lj=(()=>{class n extends Hj{constructor(e,t,r,l,c,s,o){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=c,this._onChange=d=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=c.color||"accent",this._noopAnimations="NoopAnimations"===s,this.id=this._uniqueId=`${o}${++Sj}`}get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[i.qOj]}),n})(),o2=(()=>{class n extends Lj{constructor(e,t,r,l,c,s){super(e,t,r,l,c,s,"mat-slide-toggle-")}_createChangeEvent(e){return new Dj(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(xj),i.Y36(i.QbO,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&i.Gf(Cj,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),i.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[i._Bn([Ej]),i.qOj],ngContentSelectors:Tj,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA()()(),i.TgZ(9,"span",9,10),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(11,"span",11),i._uU(12,"\xa0"),i.qZA(),i.Hsn(13),i.qZA()()),2&e){const r=i.MAs(1),l=i.MAs(10);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(4),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,vj,t._noopAnimations?0:150))}},dependencies:[ia,Bh],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),n})(),l2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),rT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[l2,na,gt,Sl,l2,gt]}),n})(),Rj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,iT,Pv,Jv,Ea,t2,eg,Ia,Km,Vp,Wp,ss,Yp,El,Cp,Qs,s2,tT,e0,hv,Ov,Ru,Iv,jA,Lu,Ks,Wo,na,Km,rT,Wv,iT,Pv,Jv,Ea,t2,eg,Ia,Km,Vp,Wp,ss,Yp,El,Cp,Qs,s2,tT,e0,hv,Ov,Ru,Iv,jA,Lu,Ks,Wo,na,wj,rT,Wv]}),n})(),Oj=(()=>{class n extends D1{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ij={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let c2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Br,useClass:Oj},{provide:Nc,useValue:Ij}],imports:[w.ez,eg,Km,Cp,Wv,mI,Nu,kc,jA,Lu,Wp,vA,Ia,Ru,Ea,Ks,ss,Qs,Yp,na,HE,NE,Oz,tT,WE,au,Wo,nj,El,Vp,LC,Rj]}),n})();function Bj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function Nj(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Vj(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function Fj(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function zj(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function jj(n,a){1&n&&i._UZ(0,"th",16)}function qj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.resetPassword(l.friendlyNameParameter))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function Yj(n,a){1&n&&i._UZ(0,"th",16)}function Wj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19)(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.changePassword(l))}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Uj(n,a){1&n&&i._UZ(0,"tr",22)}function Gj(n,a){1&n&&i._UZ(0,"tr",23)}let $j=(()=>{class n{constructor(e,t,r,l,c,s,o){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=c,this.otherApplicationService=s,this.entityStorageService=o,this.authenticationPage=!1,this.filteredNamespaces=new i.vpe,this.logins=[],this.nameSpaces=[]}ngOnInit(){this.userId=this.authenticationPage?this.entityStorageService.getEntity().id:this.store.getPerunPrincipal().userId,this.displayedColumns=this.authenticationPage?["namespace","value","change"]:["namespace","value","reset","change"],this.nameSpaces=this.store.get("password_namespace_attributes").map(e=>{const t=e.split(":");return t[t.length-1]}),this.refreshTable()}refreshTable(){this.attributesManagerService.getLogins(this.userId).subscribe(e=>{if(this.logins=e.filter(t=>this.nameSpaces.includes(t.friendlyNameParameter)),this.filteredNamespaces.emit(e.map(t=>t.friendlyNameParameter)),this.dataSource=new Zo(e),!this.authenticationPage){const r=this.route.snapshot.queryParamMap.get("namespace");if(r){const l=this.logins.find(c=>c.friendlyNameParameter===r);l&&this.changePassword(l)}}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.authenticationPage||this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=bi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(pR,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xt),i.Y36(Zt),i.Y36(Oi),i.Y36(Xn),i.Y36(Ai),i.Y36(gA),i.Y36(lL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],inputs:{authenticationPage:"authenticationPage"},outputs:{filteredNamespaces:"filteredNamespaces"},decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Bj,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"table",5),i.ynx(9,6),i.YNc(10,Nj,4,5,"th",7),i.YNc(11,Vj,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,Fj,4,5,"th",7),i.YNc(14,zj,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,jj,1,0,"th",7),i.YNc(17,qj,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,Yj,1,0,"th",7),i.YNc(20,Wj,5,6,"td",12),i.BQk(),i.YNc(21,Uj,1,0,"tr",14),i.YNc(22,Gj,1,0,"tr",15),i.qZA()()()()),2&e&&(i.xp6(1),i.hij(" ",t.authenticationPage?"":i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length&&!t.authenticationPage),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},dependencies:[w.O5,no,hs,ro,ps,us,ao,fs,ms,so,oo,gs,Gn,Lt,lt,ri],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function h4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function p4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function f4(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function m4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let _4=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){const t=e.dataTransfer?.files[0]??e.target?.files[0],l=new FileReader;t.type.match(/image-*/)?(l.onload=this._handleReaderLoaded.bind(this),this.imageType=t.type,l.readAsDataURL(t)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{c(t.result).then(s=>{r>50&&s.length>6144?(r-=10,l()):(this.newImage=s,this.imgTooLong=this.newImage.length>=6144)}).catch(s=>console.error(s))},c=s=>new Promise((o,d)=>{const u=new Image;u.src=s,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const N=h.getContext("2d");N.drawImage(u,0,0,f,b);const Q=N.canvas.toDataURL();o(Q)},u.onerror=h=>d(h)});l()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function d(f,b,N,Q){Q.beginPath(),Q.rect(20*f,20*b,20,20),Q.fillStyle="rgb("+N.join(",")+")",Q.fill()}this.newImage=function h(){const f=function o(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),N=function u(){const f=[];for(let b=0;b<3;b++){const N=Math.floor(256*Math.random()),Q=Math.max(120,N),pe=Math.min(200,Q);f.push(pe)}return f}();for(let Q=0;Q{class n{constructor(e,t,r,l,c,s,o){this.translate=e,this.attributesManagerService=t,this.store=r,this.oauthService=l,this.authService=c,this.httpClient=s,this.mfaApiService=o,this.mfaAvailable=!1,this.loadingMfa=!1,this.showDetail=!1,this.loadingCategories=!1,this.includeCategories=[],this.excludeRps=[],this.allCategories=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,this.categories={}}ngOnInit(){this.loadingMfa=!0,this.enableDetailSettings=this.store.getProperty("mfa").enable_detail_settings,this.mfaApiService.isMfaAvailable().subscribe({next:e=>{this.mfaAvailable=e,e?this.loadMfa():this.loadingMfa=!1},error:e=>{console.error(e),this.loadingMfa=!1}})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");t&&this.changeEnforceMfa("true"===t),sessionStorage.getItem("settings_mfa")&&this.updateDetailSettings()}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe({next:r=>{r.value?(this.enforceMfa=!0,this.toggle.toggle()):this.enforceMfa=!1,this.loadingMfa=!1},error:r=>{console.error(r),this.loadingMfa=!1}})}}getCategoriesAndSettings(){this.loadingCategories=!0,this.mfaApiService.getCategories().subscribe({next:e=>{this.categories=e,this.getSettings()},error:e=>{console.error(e),this.loadingCategories=!1}})}getSettings(){this.unchangedEnforce?this.mfaApiService.getSettings().subscribe({next:e=>{0!==e.length&&(e.all?this.allCategories=!0:(this.includeCategories=e.include_categories?e.include_categories:[],this.excludeRps=e.exclude_rps?e.exclude_rps:[])),this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1},error:e=>{console.error(e),this.loadingCategories=!1}}):(this.includeCategories=[],this.allCategories=this.toggle.checked,this.setValuesFromSetting(),this.showDetail=!this.showDetail,this.loadingCategories=!1)}setValuesFromSetting(){if(0===this.includeCategories.length){const e=this.allCategories;for(const t in this.categories){this.categories[t].value=e,this.categories[t].show=!1,this.categories[t].rps_value={};for(const r in this.categories[t].rps)this.categories[t].rps_value[r]=e}}else for(const e in this.categories){this.categories[e].value=this.includeCategories.includes(e),this.categories[e].show=!1,this.categories[e].rps_value={};for(const t in this.categories[e].rps)this.categories[e].rps_value[t]=!!this.categories[e].value&&!this.excludeRps.includes(t)}}showDetailSettings(){this.showDetail||0!==Object.keys(this.categories).length?this.showDetail=!this.showDetail:this.getCategoriesAndSettings()}toggleEnableMfa(){this.unchangedEnforce=!1,this.includeCategories=[],this.allCategories=!this.toggle.checked,this.setValuesFromSetting()}toggleCategory(e,t=!1){if(this.unchangedSettings=!1,this.checkAllCategoriesSelected()&&this.toggle.checked&&!t&&this.toggle.toggle(),e.value=!e.value,!t)for(const r in e.rps_value)e.rps_value[r]=e.value;this.checkAllCategoriesSelected()&&!this.toggle.checked&&!t&&this.toggle.toggle()}checkAllCategoriesSelected(){let e=!0;for(const t in this.categories)this.categories[t].value||(e=!1);return e}toggleRps(e,t){t=String(t),this.unchangedSettings=!1,this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle(),e.value.rps_value[t]=!e.value.rps_value[t],this.checkAllRpsDeselectedForCategory(String(e.key))&&this.toggleCategory(e.value,!0),this.checkAllRpsSelected()&&this.toggle.toggle()}checkAllRpsDeselectedForCategory(e){let t=!0;for(const r in this.categories[e].rps)this.categories[e].rps_value[r]&&(t=!1);return t}checkAllRpsSelected(){let e=!0;for(const t in this.categories){if(!this.categories[t].value)return!1;for(const r in this.categories[t].rps)this.categories[t].rps_value[r]||(e=!1)}return e}saveSettings(e=!1){this.oauthService.getIdTokenExpiration()-(0,tD.now)()>0&&!e?(this.enforceMfa!==this.toggle.checked&&(this.loadingMfa=!0,this.changeEnforceMfa(this.toggle.checked)),this.unchangedSettings||(this.loadingMfa=!0,this.saveDetailSettings(),this.updateDetailSettings())):(this.saveEnforceMfa(),this.unchangedSettings||this.saveDetailSettings(),this.reAuthenticate())}saveEnforceMfa(){this.enforceMfa!==this.toggle.checked&&sessionStorage.setItem("enforce_mfa",this.toggle.checked.toString())}saveDetailSettings(){let r,e=!0,t=!1;this.includeCategories=[],this.excludeRps=[];for(const l in this.categories)if(this.categories[l].value){t=!0,this.includeCategories.push(l);for(const c in this.categories[l].rps)this.categories[l].rps_value[c]?t=!0:(e=!1,this.excludeRps.push(c))}else e=!1;r=e===t?e?JSON.stringify({all:!0}):"{}":JSON.stringify({include_categories:this.includeCategories,exclude_rps:this.excludeRps}),sessionStorage.setItem("settings_mfa",r)}reAuthenticate(){sessionStorage.setItem("mfa_route","/profile/settings/auth"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}changeEnforceMfa(e){this.mfaApiService.enforceMfaForAllServices(e).subscribe({next:()=>{e?(this.enforceMfa=!0,this.toggle.checked||this.toggle.toggle()):this.enforceMfa=!1,this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}updateDetailSettings(){const e=sessionStorage.getItem("settings_mfa");this.mfaApiService.updateDetailSettings(e).subscribe({next:()=>{this.unchangedSettings=!0,this.unchangedEnforce=!0,sessionStorage.removeItem("settings_mfa"),sessionStorage.removeItem("mfa_route"),this.loadingMfa=!1},error:t=>{"MFA is required"===t.error.error?this.saveSettings(!0):this.loadingMfa=!1}})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(_i),i.Y36(Xt),i.Y36(Zt),i.Y36(ju.Ct),i.Y36(ad),i.Y36(M.eN),i.Y36(cL))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mfa-settings"]],viewQuery:function(e,t){if(1&e&&i.Gf(b4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:18,vars:23,consts:[["class","ml-auto mr-auto mt-2",4,"ngIf"],[3,"hidden"],["matTooltipPosition","right",1,"toggle-and-button",3,"matTooltip","matTooltipDisabled"],[1,"toggle-ellipsis",3,"disabled","toggleChange"],["toggle",""],["mat-icon-button","",1,"show-button",3,"hidden","disabled","click"],["mat-flat-button","","color","accent",1,"ml-3",3,"disabled","click"],[4,"ngIf"],[1,"ml-auto","mr-auto","mt-2"],[4,"ngFor","ngForOf"],[1,"toggle-and-button"],[1,"ml-4","toggle-ellipsis",3,"checked","toggleChange"],["mat-icon-button","",1,"show-button",3,"click"],[1,"ml-5",3,"checked","toggleChange"]],template:function(e,t){1&e&&(i.YNc(0,A4,1,0,"mat-spinner",0),i.TgZ(1,"div",1)(2,"span",2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.TgZ(5,"mat-slide-toggle",3,4),i.NdJ("toggleChange",function(){return t.toggleEnableMfa()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.showDetailSettings()}),i.TgZ(11,"mat-icon"),i._uU(12),i.qZA()()()(),i.TgZ(13,"button",6),i.NdJ("click",function(){return t.saveSettings()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.YNc(16,C4,3,3,"div",7),i.YNc(17,v4,1,0,"mat-spinner",0),i.qZA()),2&e&&(i.Q6J("ngIf",t.loadingMfa),i.xp6(1),i.Q6J("hidden",t.loadingMfa),i.xp6(1),i.Q6J("matTooltip",i.lcZ(3,13,i.lcZ(4,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.hij("",i.lcZ(8,17,i.lcZ(9,19,"AUTHENTICATION.MFA_TOGGLE"))," "),i.xp6(3),i.Q6J("hidden",!t.enableDetailSettings)("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(t.showDetail?"keyboard_arrow_up":"keyboard_arrow_down"),i.xp6(1),i.Q6J("disabled",t.unchangedSettings&&t.unchangedEnforce),i.xp6(1),i.hij(" ",i.lcZ(15,21,"AUTHENTICATION.MFA_SAVE")," "),i.xp6(2),i.Q6J("ngIf",t.showDetail),i.xp6(1),i.Q6J("ngIf",t.loadingCategories))},dependencies:[w.sg,w.O5,Xi,Lt,Ei,dr,o2,w.Nd,lt,ri],styles:[".toggle-and-button[_ngcontent-%COMP%]{display:inline-flex;max-width:100%}.toggle-ellipsis[_ngcontent-%COMP%]{height:40px;display:inline-block;vertical-align:middle;overflow:hidden}.show-button[_ngcontent-%COMP%]{white-space:nowrap}"]}),n})();const x4=["toggle"];function S4(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",9),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function E4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",5)(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,S4,2,1,"div",6),i.TgZ(10,"button",7),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onAddImg())}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.onDeleteImg())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),i.xp6(3),i.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),i.xp6(3),i.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function D4(n,a){1&n&&i._UZ(0,"mat-spinner",10)}let H4=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=c,this.authService=s,this.notificatorService=o,this.imageSrc="",this.mfaUrl="",this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(d=>this.removeDialogDescription=d),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(d=>this.saveImgSuccess=d),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(d=>this.removeImgSuccess=d)}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(e=>this.removeDialogDescription=e),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}loadImage(){this.loadingImg=!0;const e=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?(this.imgAtt=t,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(r=>{this.imgAtt=r}),this.loadingImg=!1},t=>{console.error(t),this.loadingImg=!1})}onAddImg(){const e=bi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(_4,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}onDeleteImg(){const e=bi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(UA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Oi),i.Y36(Xt),i.Y36(Zt),i.Y36(_i),i.Y36(ju.Ct),i.Y36(ad),i.Y36(pr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(x4,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:12,vars:11,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["mat-flat-button","","color","accent",1,"mb-2",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,E4,18,22,"div",1),i.TgZ(2,"h1",2),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"button",3),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._UZ(9,"br")(10,"perun-web-apps-mfa-settings"),i.qZA(),i.YNc(11,D4,1,0,"mat-spinner",4)),2&e&&(i.Q6J("hidden",t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,5,i.lcZ(5,7,"AUTHENTICATION.MFA"))),i.xp6(4),i.hij(" ",i.lcZ(8,9,"AUTHENTICATION.MFA_INFO")," "),i.xp6(4),i.Q6J("ngIf",t.loadingImg))},dependencies:[w.O5,Lt,Ei,T4,lt,ri]}),n})(),L4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[w.ez,Ea,Ia,kc,c2,Nu,ss,Qs,Yp,vA]}),n})(),P4=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ad),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},dependencies:[Lt,Xi,lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function k4(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let R4=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ra(null,[Ji.required]),this.passwordCtrl=new Ra(null,[Ji.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ht))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,k4,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4)(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA()(),i.TgZ(15,"mat-form-field",4)(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA()(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA()()()()()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},dependencies:[w.O5,Lt,Xi,jo,cn,Hi,dn,un,aa,Oa,zn,Gn,lt],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})(),O4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},dependencies:[Ka]}),n})();function I4(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function B4(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function N4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,B4,2,1,"li",7),i.qZA()(),i.TgZ(13,"div",0)(14,"button",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.rejectConsent())}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return i.KtG(r.grantConsent())}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA()()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let V4=(()=>{class n{constructor(e,t,r,l,c,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=c,this.router=s,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe(r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},r=>{this.loading=!1;const l=r.error;"ConsentNotExistsException"!==l.name&&this.notificator.showRPCError(l),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pr),i.Y36(_i),i.Y36(Rn),i.Y36(Xn),i.Y36($m),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,I4,1,0,"mat-spinner",2),i.YNc(3,N4,22,22,"div",3),i.qZA()()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},dependencies:[w.sg,w.O5,Lt,Ei,lt,ri],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function F4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function z4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function j4(n,a){1&n&&(i.TgZ(0,"span")(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA()()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let q4=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(i.YNc(0,F4,7,5,"span",0),i.YNc(1,z4,7,5,"span",0),i.YNc(2,j4,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},dependencies:[w.O5,Xi,lt,ri],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function Y4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15)(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return i.KtG(r?l.masterToggle():null)}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function W4(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17)(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const c=i.CHM(e).$implicit,s=i.oxw();return i.KtG(r?s.selection.toggle(c):null)}),i.qZA()()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function U4(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function G4(n,a){if(1&n&&(i.TgZ(0,"td",20),i._UZ(1,"perun-web-apps-consent-status",21),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function $4(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function Z4(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function J4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function X4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function Q4(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function K4(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function eq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.rejectConsent.emit(r.id))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function tq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw();return i.KtG(l.grantConsent.emit(r.id))}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function iq(n,a){if(1&n&&(i.TgZ(0,"td",20)(1,"div",22)(2,"div",23),i.YNc(3,J4,4,5,"div",24),i.YNc(4,X4,4,5,"div",24),i.YNc(5,Q4,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,K4,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,eq,4,5,"button",27),i.YNc(10,tq,4,5,"button",28),i.qZA()()()()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function nq(n,a){1&n&&i._UZ(0,"tr",31)}function rq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,c=i.oxw();return i.KtG(c.expandedConsent=c.expandedConsent===l?null:l)}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function aq(n,a){1&n&&i._UZ(0,"tr",33)}function sq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function oq(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const lq=function(){return["expandedDetail"]};let cq=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new Mn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=Fu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new Zo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportAllData(e){Na(hr(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}exportDisplayedData(e){const t=this.dataSource.paginator.pageIndex*this.dataSource.paginator.pageSize,r=t+this.dataSource.paginator.pageSize;Na(hr(this.dataSource.sortData(this.dataSource.filteredData,this.dataSource.sort).slice(t,r),this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>Jl(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>zu(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(lv))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ds,7),i.Gf(gs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:19,vars:11,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportDisplayedData","exportAllData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0)(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportDisplayedData",function(l){return t.exportDisplayedData(l)})("exportAllData",function(l){return t.exportAllData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Y4,2,2,"th",4),i.YNc(5,W4,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,U4,4,5,"th",7),i.YNc(8,G4,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,$4,4,5,"th",7),i.YNc(11,Z4,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,iq,11,8,"td",8),i.BQk(),i.YNc(14,nq,1,0,"tr",11),i.YNc(15,rq,1,2,"tr",12),i.YNc(16,aq,1,0,"tr",13),i.qZA()()(),i.YNc(17,sq,4,5,"perun-web-apps-alert",14),i.YNc(18,oq,4,5,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(12),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(10,lq)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},dependencies:[w.sg,w.O5,tc,no,hs,ro,ps,us,ao,fs,ms,so,oo,gs,rg,Gn,Lt,ds,q4,lt,ri],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[wi("detailExpand",[Rt("collapsed",Ie({height:"0px",minHeight:"0"})),Rt("expanded",Ie({height:"*"})),Pt("expanded <=> collapsed",Et("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const h2=function(){return["status","name"]};function dq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilterUnsigned(r))}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,h2))}}function uq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div")(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.applyFilterSigned(r))}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.grantConsent(r))})("rejectConsent",function(r){i.CHM(e);const l=i.oxw();return i.KtG(l.rejectConsent(r))}),i.qZA()()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,h2))}}function hq(n,a){1&n&&i._UZ(0,"mat-spinner",9)}let pq=(()=>{class n{constructor(e,t,r,l,c){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=c,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{const t=this.unsignedConsents.find(l=>l.id===e)??this.signedConsents.find(l=>l.id===e);this.moveConsent(t);const r=this.translate.instant("GRANTED"===t.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");t.status="REVOKED",this.notificator.showSuccess(r+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{const t=this.unsignedConsents.find(r=>r.id===e)??this.signedConsents.find(r=>r.id===e);this.moveConsent(t),t.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+t.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai),i.Y36(pr),i.Y36(_i),i.Y36(Zt),i.Y36(Rn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,dq,9,15,"div",2),i.YNc(6,uq,9,15,"div",2),i.YNc(7,hq,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},dependencies:[w.O5,Xp,cq,Ei,lt,ri]}),n})();function fq(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function mq(n,a){if(1&n&&(i.TgZ(0,"div",7),i._UZ(1,"perun-web-apps-password-form",8),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let gq=(()=>{class n{constructor(e,t,r,l,c,s,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=l,this.translate=c,this.formBuilder=s,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",Ji.required,[LE(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",Ji.required]},{validators:GS.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser({user:this.data.userId,namespace:this.data.namespace,password:e}).pipe((0,Nt.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zi),i.Y36(Cn),i.Y36(Pi),i.Y36(pr),i.Y36(_i),i.Y36(Jw),i.Y36($m))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,fq,1,0,"mat-spinner",1),i.YNc(5,mq,2,3,"div",2),i.TgZ(6,"div",3)(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.activate()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA()()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.loading||t.pwdForm.invalid),i.xp6(1),i.hij(" ",i.lcZ(13,14,i.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},dependencies:[w.O5,Lt,Pn,vn,hn,Kc,Xs,Ei,PE,lt,ri]}),n})();function _q(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.openPwdReset())}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function bq(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return i.KtG(r.activateAccount())}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function Aq(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_q,4,5,"button",3),i.YNc(2,bq,4,5,"button",3),i.qZA()),2&n){const e=a.ngIf;i.xp6(1),i.Q6J("ngIf",e.exists),i.xp6(1),i.Q6J("ngIf",!e.exists)}}const yq=function(n){return{exists:n}},Mq=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:P4},{path:"service-access",component:R4},{path:"profile",component:wz,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:eB,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:kB,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:gN,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:x3,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:B3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:Mz,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:O4,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:pq,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:V4,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:N3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:rV,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:iV,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:H4,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:gF,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r,l,c){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=l,this.router=c,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=bi();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(gq,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pi),i.Y36(Zt),i.Y36(gA),i.Y36(Oi),i.Y36(Ai))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,Aq,3,2,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,yq,i.lcZ(9,11,t.loginExists$))))},dependencies:[w.O5,Lt,w.Ov,lt,ri]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:CF,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:OF,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:FF,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:YF,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:ZF,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:$j,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let wq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[kc.forRoot(Mq,{preloadingStrategy:Nf,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]}),n})();class Cq{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}function p2(n){return new i.vHH(3e3,!1)}function a6(){return typeof window<"u"&&typeof window.document<"u"}function aT(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function ld(n){switch(n.length){case 0:return new Rl;case 1:return n[0];default:return new P0(n)}}function f2(n,a,e,t,r=new Map,l=new Map){const c=[],s=[];let o=-1,d=null;if(t.forEach(u=>{const h=u.get("offset"),f=h==o,b=f&&d||new Map;u.forEach((N,Q)=>{let pe=Q,Pe=N;if("offset"!==Q)switch(pe=a.normalizePropertyName(pe,c),Pe){case"!":Pe=r.get(Q);break;case Ws:Pe=l.get(Q);break;default:Pe=a.normalizeStyleValue(Q,pe,Pe,c)}b.set(pe,Pe)}),f||s.push(b),d=b,o=h}),c.length)throw function Uq(n){return new i.vHH(3502,!1)}();return s}function sT(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&oT(e,"start",n)));break;case"done":n.onDone(()=>t(e&&oT(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&oT(e,"destroy",n)))}}function oT(n,a,e){const l=lT(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),c=n._data;return null!=c&&(l._data=c),l}function lT(n,a,e,t,r="",l=0,c){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!c}}function Va(n,a,e){let t=n.get(a);return t||n.set(a,t=e),t}function m2(n){const a=n.indexOf(":");return[n.substring(1,a),n.slice(a+1)]}let cT=(n,a)=>!1,g2=(n,a,e)=>[],_2=null;function dT(n){const a=n.parentNode||n.host;return a===_2?null:a}(aT()||typeof Element<"u")&&(a6()?(_2=(()=>document.documentElement)(),cT=(n,a)=>{for(;a;){if(a===n)return!0;a=dT(a)}return!1}):cT=(n,a)=>n.contains(a),g2=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Wu=null,b2=!1;const A2=cT,y2=g2;let M2=(()=>{class n{validateStyleProperty(e){return function o6(n){Wu||(Wu=function l6(){return typeof document<"u"?document.body:null}()||{},b2=!!Wu.style&&"WebkitAppearance"in Wu.style);let a=!0;return Wu.style&&!function s6(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Wu.style,!a&&b2&&(a="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Wu.style)),a}(e)}matchesElement(e,t){return!1}containsElement(e,t){return A2(e,t)}getParentElement(e){return dT(e)}query(e,t,r){return y2(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,c,s=[],o){return new Rl(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),uT=(()=>{class n{}return n.NOOP=new M2,n})();const hT="ng-enter",QA="ng-leave",KA="ng-trigger",ey=".ng-trigger",C2="ng-animating",pT=".ng-animating";function cd(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:fT(parseFloat(a[1]),a[2])}function fT(n,a){return"s"===a?1e3*n:n}function ty(n,a,e){return n.hasOwnProperty("duration")?n:function u6(n,a,e){let r,l=0,c="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return a.push(p2()),{duration:0,delay:0,easing:""};r=fT(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=fT(parseFloat(o),s[4]));const d=s[5];d&&(c=d)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push(function vq(){return new i.vHH(3100,!1)}()),s=!0),l<0&&(a.push(function Tq(){return new i.vHH(3101,!1)}()),s=!0),s&&a.splice(o,0,p2())}return{duration:r,delay:l,easing:c}}(n,a,e)}function cg(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function v2(n){const a=new Map;return Object.keys(n).forEach(e=>{a.set(e,n[e])}),a}function dd(n,a=new Map,e){if(e)for(let[t,r]of e)a.set(t,r);for(let[t,r]of n)a.set(t,r);return a}function x2(n,a,e){return e?a+":"+e+";":""}function S2(n){let a="";for(let e=0;e{const l=gT(r);e&&!e.has(r)&&e.set(r,n.style[l]),n.style[l]=t}),aT()&&S2(n))}function Uu(n,a){n.style&&(a.forEach((e,t)=>{const r=gT(t);n.style[r]=""}),aT()&&S2(n))}function dg(n){return Array.isArray(n)?1==n.length?n[0]:J1(n):n}const mT=new RegExp("{{\\s*(.+?)\\s*}}","g");function E2(n){let a=[];if("string"==typeof n){let e;for(;e=mT.exec(n);)a.push(e[1]);mT.lastIndex=0}return a}function iy(n,a,e){const t=n.toString(),r=t.replace(mT,(l,c)=>{let s=a[c];return null==s&&(e.push(function Sq(n){return new i.vHH(3003,!1)}()),s=""),s.toString()});return r==t?n:r}function ny(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const f6=/-+([a-z0-9])/g;function gT(n){return n.replace(f6,(...a)=>a[1].toUpperCase())}function m6(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Fa(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw function Eq(n){return new i.vHH(3004,!1)}()}}function D2(n,a){return window.getComputedStyle(n)[a]}function M6(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function w6(n,a,e){if(":"==n[0]){const o=function C6(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof o)return void a.push(o);n=o}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(function zq(n){return new i.vHH(3015,!1)}()),a;const r=t[1],l=t[2],c=t[3];a.push(H2(r,c));"<"==l[0]&&!("*"==r&&"*"==c)&&a.push(H2(c,r))}(t,e,a)):e.push(n),e}const oy=new Set(["true","1"]),ly=new Set(["false","0"]);function H2(n,a){const e=oy.has(n)||ly.has(n),t=oy.has(a)||ly.has(a);return(r,l)=>{let c="*"==n||n==r,s="*"==a||a==l;return!c&&e&&"boolean"==typeof r&&(c=r?oy.has(n):ly.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?oy.has(a):ly.has(a)),c&&s}}const v6=new RegExp("s*:selfs*,?","g");function _T(n,a,e,t){return new T6(n).build(a,e,t)}class T6{constructor(a){this._driver=a}build(a,e,t){const r=new E6(e);return this._resetContextStyleTimingState(r),Fa(this,dg(a),r)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles=new Map,a.collectedStyles.set("",new Map),a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],c=[];return"@"==a.name.charAt(0)&&e.errors.push(function Hq(){return new i.vHH(3006,!1)}()),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,d=o.name;d.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=d}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,c.push(o)}else e.errors.push(function Lq(){return new i.vHH(3007,!1)}())}),{type:7,name:a.name,states:l,transitions:c,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=r||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(o=>{E2(o).forEach(d=>{c.hasOwnProperty(d)||l.add(d)})})}),l.size&&(ny(l.values()),e.errors.push(function Pq(n,a){return new i.vHH(3008,!1)}()))}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Fa(this,dg(a.animation),e);return{type:1,matchers:M6(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Gu(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Fa(this,t,e)),options:Gu(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(c=>{e.currentTime=t;const s=Fa(this,c,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Gu(a.options)}}visitAnimate(a,e){const t=function H6(n,a){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return bT(ty(n,a).duration,0,"");const e=n;if(e.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=bT(0,0,"");return l.dynamic=!0,l.strValue=e,l}const r=ty(e,a);return bT(r.duration,r.delay,r.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Ie({});if(5==l.type)r=this.visitKeyframes(l,e);else{let c=a.styles,s=!1;if(!c){s=!0;const d={};t.easing&&(d.easing=t.easing),c=Ie(d)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(c,e);o.isEmptyStep=s,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[],r=Array.isArray(a.styles)?a.styles:[a.styles];for(let s of r)"string"==typeof s?s===Ws?t.push(s):e.errors.push(new i.vHH(3002,!1)):t.push(v2(s));let l=!1,c=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(c=s.get("easing"),s.delete("easing")),!l))for(let o of s.values())if(o.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(c=>{"string"!=typeof c&&c.forEach((s,o)=>{const d=e.collectedStyles.get(e.currentQuerySelector),u=d.get(o);let h=!0;u&&(l!=r&&l>=u.startTime&&r<=u.endTime&&(e.errors.push(function Rq(n,a,e,t,r){return new i.vHH(3010,!1)}()),h=!1),l=u.startTime),h&&d.set(o,{startTime:l,endTime:r}),e.options&&function p6(n,a,e){const t=a.params||{},r=E2(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(function xq(n){return new i.vHH(3001,!1)}())})}(s,e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Oq(){return new i.vHH(3011,!1)}()),t;let l=0;const c=[];let s=!1,o=!1,d=0;const u=a.steps.map(Pe=>{const _t=this._makeStyleAst(Pe,e);let kt=null!=_t.offset?_t.offset:function D6(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const t=e;a=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;a=parseFloat(e.get("offset")),e.delete("offset")}return a}(_t.styles),Ut=0;return null!=kt&&(l++,Ut=_t.offset=kt),o=o||Ut<0||Ut>1,s=s||Ut0&&l{const kt=f>0?_t==b?1:f*_t:c[_t],Ut=kt*pe;e.currentTime=N+Q.delay+Ut,Q.duration=Ut,this._validateStyleAst(Pe,e),Pe.offset=kt,t.styles.push(Pe)}),t}visitReference(a,e){return{type:8,animation:Fa(this,dg(a.animation),e),options:Gu(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Gu(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Gu(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,c]=function x6(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(v6,"")),n=n.replace(/@\*/g,ey).replace(/@\w+/g,e=>ey+"-"+e.slice(1)).replace(/:animating/g,pT),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,Va(e.collectedStyles,e.currentQuerySelector,new Map);const s=Fa(this,dg(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:c,animation:s,originalSelector:a.selector,options:Gu(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push(function Vq(){return new i.vHH(3013,!1)}());const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:ty(a.timings,e.errors,!0);return{type:12,animation:Fa(this,dg(a.animation),e),timings:t,options:null}}}class E6{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Gu(n){return n?(n=cg(n)).params&&(n.params=function S6(n){return n?cg(n):null}(n.params)):n={},n}function bT(n,a,e){return{duration:n,delay:a,easing:e}}function AT(n,a,e,t,r,l,c=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:c,subTimeline:s}}class cy{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const k6=new RegExp(":enter","g"),O6=new RegExp(":leave","g");function yT(n,a,e,t,r,l=new Map,c=new Map,s,o,d=[]){return(new I6).buildKeyframes(n,a,e,t,r,l,c,s,o,d)}class I6{buildKeyframes(a,e,t,r,l,c,s,o,d,u=[]){d=d||new cy;const h=new MT(a,e,d,r,l,u,[]);h.options=o;const f=o.delay?cd(o.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([c],null,h.errors,o),Fa(this,t,h);const b=h.timelines.filter(N=>N.containsAnimation());if(b.length&&s.size){let N;for(let Q=b.length-1;Q>=0;Q--){const pe=b[Q];if(pe.element===e){N=pe;break}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([s],null,h.errors,o)}return b.length?b.map(N=>N.buildKeyframes()):[AT(e,[],[],[],0,f,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,r,r.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?cd(t.duration):null,s=null!=t.delay?cd(t.delay):null;return 0!==c&&a.forEach(o=>{const d=e.appendInstructionToTimeline(o,c,s);l=Math.max(l,d.duration+d.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Fa(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=dy);const c=cd(l.delay);r.delayNextStep(c)}a.steps.length&&(a.steps.forEach(c=>Fa(this,c,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?cd(a.options.delay):0;a.steps.forEach(c=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Fa(this,c,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return ty(e.params?iy(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.hasCurrentStyleProperties()&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,a.styles.forEach(o=>{s.forwardTime((o.offset||0)*l),s.setStyles(o.styles,o.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?cd(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=dy);let c=t;const s=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let o=null;s.forEach((d,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,d);l&&h.delayNextStep(l),d===e.element&&(o=h.currentTimeline),Fa(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,c=Math.abs(l.duration),s=c*(e.currentQueryTotal-1);let o=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":o=s-o;break;case"full":o=t.currentStaggerTime}const u=e.currentTimeline;o&&u.delayNextStep(o);const h=u.currentTime;Fa(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const dy={};class MT{constructor(a,e,t,r,l,c,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=c,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=dy,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new uy(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=cd(t.duration)),null!=t.delay&&(r.delay=cd(t.delay));const l=t.params;if(l){let c=r.params;c||(c=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!c.hasOwnProperty(s))&&(c[s]=iy(l[s],c,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new MT(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=dy,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:e??a.duration,delay:this.currentTimeline.currentTime+(t??0)+a.delay,easing:""},l=new B6(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,c){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(k6,"."+this._enterClassName)).replace(O6,"."+this._leaveClassName);let d=this._driver.query(this.element,a,1!=t);0!==t&&(d=t<0?d.slice(d.length+t,d.length):d.slice(0,t)),s.push(...d)}return!l&&0==s.length&&c.push(function Fq(n){return new i.vHH(3014,!1)}()),s}}class uy{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new uy(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles.set(a,e),this._globalTimelineStyles.set(a,e),this._styleSummary.set(a,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&this._previousKeyframe.set("easing",a);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||Ws),this._currentKeyframe.set(e,Ws);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&this._previousKeyframe.set("easing",e);const l=r&&r.params||{},c=function N6(n,a){const e=new Map;let t;return n.forEach(r=>{if("*"===r){t=t||a.keys();for(let l of t)e.set(l,Ws)}else dd(r,e)}),e}(a,this._globalTimelineStyles);for(let[o,d]of c){const u=iy(d,l,t);var s;this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,null!==(s=this._globalTimelineStyles.get(o))&&void 0!==s?s:Ws),this._updateStyle(o,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((a,e)=>{this._currentKeyframe.set(e,a)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((a,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,a)}))}snapshotCurrentStyles(){for(let[a,e]of this._localTimelineStyles)this._pendingStyles.set(a,e),this._updateStyle(a,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){a._styleSummary.forEach((e,t)=>{const r=this._styleSummary.get(t);(!r||e.time>r.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const d=dd(s,new Map,this._backFill);d.forEach((u,h)=>{"!"===u?a.add(h):u===Ws&&e.add(h)}),t||d.set("offset",o/this.duration),r.push(d)});const l=a.size?ny(a.values()):[],c=e.size?ny(e.values()):[];if(t){const s=r[0],o=new Map(s);s.set("offset",0),o.set("offset",1),r=[s,o]}return AT(this.element,r,l,c,this.duration,this.startTime,this.easing,!1)}}class B6 extends uy{constructor(a,e,t,r,l,c,s=!1){super(a,e,c.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,s=e/c,o=dd(a[0]);o.set("offset",0),l.push(o);const d=dd(a[0]);d.set("offset",k2(s)),l.push(d);const u=a.length-1;for(let h=1;h<=u;h++){let f=dd(a[h]);const b=f.get("offset");f.set("offset",k2((e+b*t)/c)),l.push(f)}t=c,e=0,r="",a=l}return AT(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function k2(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class wT{}const V6=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class F6 extends wT{normalizePropertyName(a,e){return gT(a)}normalizeStyleValue(a,e,t,r){let l="";const c=t.toString().trim();if(V6.has(e)&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(function Dq(n,a){return new i.vHH(3005,!1)}())}return c+l}}function R2(n,a,e,t,r,l,c,s,o,d,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:s,queriedElements:o,preStyleProps:d,postStyleProps:u,totalTime:h,errors:f}}const CT={};class O2{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function z6(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){let r=this._stateStyles.get("*");return void 0!==a&&(r=this._stateStyles.get(a?.toString())||r),r?r.buildStyles(e,t):new Map}build(a,e,t,r,l,c,s,o,d,u){var h;const f=[],b=this.ast.options&&this.ast.options.params||CT,Q=this.buildStyles(t,s&&s.params||CT,f),pe=o&&o.params||CT,Pe=this.buildStyles(r,pe,f),_t=new Set,kt=new Map,Ut=new Map,oa="void"===r,Ko={params:j6(pe,b),delay:null===(h=this.ast.options)||void 0===h?void 0:h.delay},la=u?[]:yT(a,e,this.ast.animation,l,c,Q,Pe,Ko,d,f);let As=0;if(la.forEach(lo=>{As=Math.max(lo.duration+lo.delay,As)}),f.length)return R2(e,this._triggerName,t,r,oa,Q,Pe,[],[],kt,Ut,As,f);la.forEach(lo=>{const hg=lo.element,pg=Va(kt,hg,new Set);lo.preStyleProps.forEach(tf=>pg.add(tf));const fg=Va(Ut,hg,new Set);lo.postStyleProps.forEach(tf=>fg.add(tf)),hg!==e&&_t.add(hg)});const my=ny(_t.values());return R2(e,this._triggerName,t,r,oa,Q,Pe,la,my,kt,Ut,As)}}function j6(n,a){const e=cg(a);for(const t in n)n.hasOwnProperty(t)&&null!=n[t]&&(e[t]=n[t]);return e}class q6{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t=new Map,r=cg(this.defaultParams);return Object.keys(a).forEach(l=>{const c=a[l];null!==c&&(r[l]=c)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((c,s)=>{c&&(c=iy(c,r,e));const o=this.normalizer.normalizePropertyName(s,e);c=this.normalizer.normalizeStyleValue(s,o,c,e),t.set(o,c)})}),t}}class W6{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new q6(r.style,r.options&&r.options.params||{},t))}),I2(this.states,"true","1"),I2(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new O2(a,r,this.states))}),this.fallbackTransition=function U6(n,a,e){return new O2(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,s)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(c=>c.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function I2(n,a,e){n.has(a)?n.has(e)||n.set(e,n.get(a)):n.has(e)&&n.set(a,n.get(e))}const G6=new cy;class $6{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(a,e){const t=[],l=_T(this._driver,e,t,[]);if(t.length)throw function Gq(n){return new i.vHH(3503,!1)}();this._animations.set(a,l)}_buildPlayer(a,e,t){const r=a.element,l=f2(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations.get(a);let c;const s=new Map;if(l?(c=yT(this._driver,e,l,hT,QA,new Map,new Map,t,G6,r),c.forEach(u=>{const h=Va(s,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function $q(){return new i.vHH(3300,!1)}()),c=[]),r.length)throw function Zq(n){return new i.vHH(3504,!1)}();s.forEach((u,h)=>{u.forEach((f,b)=>{u.set(b,this._driver.computeStyle(h,b,Ws))})});const d=ld(c.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(a,d),d.onDestroy(()=>this.destroy(a)),this.players.push(d),d}destroy(a){const e=this._getPlayer(a);e.destroy(),this._playersById.delete(a);const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById.get(a);if(!e)throw function Jq(n){return new i.vHH(3301,!1)}();return e}listen(a,e,t,r){const l=lT(e,"","","");return sT(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const B2="ng-animate-queued",vT="ng-animate-disabled",K6=[],N2={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eY={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_s="__ng_removed";class TT{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function rY(n){return n??null}(t?a.value:a),t){const l=cg(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const ug="void",xT=new TT(ug);class tY{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,bs(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.has(e))throw function Xq(n,a){return new i.vHH(3302,!1)}();if(null==t||0==t.length)throw function Qq(n){return new i.vHH(3303,!1)}();if(!function aY(n){return"start"==n||"done"==n}(t))throw function Kq(n,a){return new i.vHH(3400,!1)}();const l=Va(this._elementListeners,a,[]),c={name:e,phase:t,callback:r};l.push(c);const s=Va(this._engine.statesByElement,a,new Map);return s.has(e)||(bs(a,KA),bs(a,KA+"-"+e),s.set(e,xT)),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(c);o>=0&&l.splice(o,1),this._triggers.has(e)||s.delete(e)})}}register(a,e){return!this._triggers.has(a)&&(this._triggers.set(a,e),!0)}_getTrigger(a){const e=this._triggers.get(a);if(!e)throw function e6(n){return new i.vHH(3401,!1)}();return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),c=new ST(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(bs(a,KA),bs(a,KA+"-"+e),this._engine.statesByElement.set(a,s=new Map));let o=s.get(e);const d=new TT(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&d.absorbOptions(o.options),s.set(e,d),o||(o=xT),d.value!==ug&&o.value===d.value){if(!function lY(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Uu(a,pe),Qo(a,Pe)})}return}const f=Va(this._engine.playersByElement,a,[]);f.forEach(Q=>{Q.namespaceId==this.id&&Q.triggerName==e&&Q.queued&&Q.destroy()});let b=l.matchTransition(o.value,d.value,a,d.params),N=!1;if(!b){if(!r)return;b=l.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:d,player:c,isFallbackTransition:N}),N||(bs(a,B2),c.onStart(()=>{ef(a,B2)})),c.onDone(()=>{let Q=this.players.indexOf(c);Q>=0&&this.players.splice(Q,1);const pe=this._engine.playersByElement.get(a);if(pe){let Pe=pe.indexOf(c);Pe>=0&&pe.splice(Pe,1)}}),this.players.push(c),f.push(c),c}deregister(a){this._triggers.delete(a),this._engine.statesByElement.forEach(e=>e.delete(a)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,ey,!0);t.forEach(r=>{if(r[_s])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(c=>c.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),c=new Map;if(l){const s=[];if(l.forEach((o,d)=>{if(c.set(d,o.value),this._triggers.has(d)){const u=this.trigger(a,d,ug,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,c),t&&ld(s).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const c=l.name;if(r.has(c))return;r.add(c);const o=this._triggers.get(c).fallbackTransition,d=t.get(c)||xT,u=new TT(ug),h=new ST(this.id,c,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:c,transition:o,fromState:d,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let c=a;for(;c=c.parentNode;)if(t.statesByElement.get(c)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[_s];(!l||l===N2)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){bs(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(s=>{if(s.name==t.triggerName){const o=lT(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,sT(t.player,s.phase,o,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,c=r.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class iY{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new tY(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList,r=this.namespacesByHostElement;if(t.length-1>=0){let c=!1,s=this.driver.getParentElement(e);for(;s;){const o=r.get(s);if(o){const d=t.indexOf(o);t.splice(d+1,0,a),c=!0;break}s=this.driver.getParentElement(s)}c||t.unshift(a)}else t.push(a);return r.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t)for(let r of t.values())if(r.namespaceId){const l=this._fetchNamespace(r.namespaceId);l&&e.add(l)}return e}trigger(a,e,t,r){if(hy(e)){const l=this._fetchNamespace(a);if(l)return l.trigger(e,t,r),!0}return!1}insertNode(a,e,t,r){if(!hy(e))return;const l=e[_s];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const c=this.collectedLeaveElements.indexOf(e);c>=0&&this.collectedLeaveElements.splice(c,1)}if(a){const c=this._fetchNamespace(a);c&&c.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),bs(a,vT)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ef(a,vT))}removeNode(a,e,t,r){if(hy(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==a&&c.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[_s]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return hy(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,ey,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,pT,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return ld(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[_s];if(t&&t.setForRemoval){if(a[_s]=N2,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}null!==(e=a.classList)&&void 0!==e&&e.contains(vT)&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?ld(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw function t6(n){return new i.vHH(3402,!1)}()}_flushAnimations(a,e){const t=new cy,r=[],l=new Map,c=[],s=new Map,o=new Map,d=new Map,u=new Set;this.disabledNodes.forEach(ut=>{u.add(ut);const Ct=this.driver.query(ut,".ng-animate-queued",!0);for(let Dt=0;Dt{const Dt=hT+Q++;N.set(Ct,Dt),ut.forEach(ni=>bs(ni,Dt))});const pe=[],Pe=new Set,_t=new Set;for(let ut=0;utPe.add(ni)):_t.add(Ct))}const kt=new Map,Ut=z2(f,Array.from(Pe));Ut.forEach((ut,Ct)=>{const Dt=QA+Q++;kt.set(Ct,Dt),ut.forEach(ni=>bs(ni,Dt))}),a.push(()=>{b.forEach((ut,Ct)=>{const Dt=N.get(Ct);ut.forEach(ni=>ef(ni,Dt))}),Ut.forEach((ut,Ct)=>{const Dt=kt.get(Ct);ut.forEach(ni=>ef(ni,Dt))}),pe.forEach(ut=>{this.processLeaveNode(ut)})});const oa=[],Ko=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(e).forEach(Dt=>{const ni=Dt.player,xn=Dt.element;if(oa.push(ni),this.collectedEnterElements.length){const Tr=xn[_s];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(Dt.triggerName)){const $u=Tr.previousTriggersValues.get(Dt.triggerName),ys=this.statesByElement.get(Dt.element);if(ys&&ys.has(Dt.triggerName)){const gy=ys.get(Dt.triggerName);gy.value=$u,ys.set(Dt.triggerName,gy)}}return void ni.destroy()}}const el=!h||!this.driver.containsElement(h,xn),za=kt.get(xn),ud=N.get(xn),fn=this._buildInstruction(Dt,t,ud,za,el);if(fn.errors&&fn.errors.length)return void Ko.push(fn);if(el)return ni.onStart(()=>Uu(xn,fn.fromStyles)),ni.onDestroy(()=>Qo(xn,fn.toStyles)),void r.push(ni);if(Dt.isFallbackTransition)return ni.onStart(()=>Uu(xn,fn.fromStyles)),ni.onDestroy(()=>Qo(xn,fn.toStyles)),void r.push(ni);const aH=[];fn.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||aH.push(Tr)}),fn.timelines=aH,t.append(xn,fn.timelines),c.push({instruction:fn,player:ni,element:xn}),fn.queriedElements.forEach(Tr=>Va(s,Tr,[]).push(ni)),fn.preStyleProps.forEach((Tr,$u)=>{if(Tr.size){let ys=o.get($u);ys||o.set($u,ys=new Set),Tr.forEach((gy,HT)=>ys.add(HT))}}),fn.postStyleProps.forEach((Tr,$u)=>{let ys=d.get($u);ys||d.set($u,ys=new Set),Tr.forEach((gy,HT)=>ys.add(HT))})});if(Ko.length){const ut=[];Ko.forEach(Ct=>{ut.push(function n6(n,a){return new i.vHH(3505,!1)}())}),oa.forEach(Ct=>Ct.destroy()),this.reportError(ut)}const la=new Map,As=new Map;c.forEach(ut=>{const Ct=ut.element;t.has(Ct)&&(As.set(Ct,Ct),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,la))}),r.forEach(ut=>{const Ct=ut.element;this._getPreviousPlayers(Ct,!1,ut.namespaceId,ut.triggerName,null).forEach(ni=>{Va(la,Ct,[]).push(ni),ni.destroy()})});const my=pe.filter(ut=>q2(ut,o,d)),lo=new Map;F2(lo,this.driver,_t,d,Ws).forEach(ut=>{q2(ut,o,d)&&my.push(ut)});const pg=new Map;b.forEach((ut,Ct)=>{F2(pg,this.driver,new Set(ut),o,"!")}),my.forEach(ut=>{var Ct,Dt;const ni=lo.get(ut),xn=pg.get(ut);lo.set(ut,new Map([...Array.from(null!==(Ct=ni?.entries())&&void 0!==Ct?Ct:[]),...Array.from(null!==(Dt=xn?.entries())&&void 0!==Dt?Dt:[])]))});const fg=[],tf=[],rH={};c.forEach(ut=>{const{element:Ct,player:Dt,instruction:ni}=ut;if(t.has(Ct)){if(u.has(Ct))return Dt.onDestroy(()=>Qo(Ct,ni.toStyles)),Dt.disabled=!0,Dt.overrideTotalTime(ni.totalTime),void r.push(Dt);let xn=rH;if(As.size>1){let za=Ct;const ud=[];for(;za=za.parentNode;){const fn=As.get(za);if(fn){xn=fn;break}ud.push(za)}ud.forEach(fn=>As.set(fn,xn))}const el=this._buildAnimation(Dt.namespaceId,ni,la,l,pg,lo);if(Dt.setRealPlayer(el),xn===rH)fg.push(Dt);else{const za=this.playersByElement.get(xn);za&&za.length&&(Dt.parentPlayer=ld(za)),r.push(Dt)}}else Uu(Ct,ni.fromStyles),Dt.onDestroy(()=>Qo(Ct,ni.toStyles)),tf.push(Dt),u.has(Ct)&&r.push(Dt)}),tf.forEach(ut=>{const Ct=l.get(ut.element);if(Ct&&Ct.length){const Dt=ld(Ct);ut.setRealPlayer(Dt)}}),r.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut!el.destroyed);xn.length?sY(this,Ct,xn):this.processLeaveNode(Ct)}return pe.length=0,fg.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Ct=this.players.indexOf(ut);this.players.splice(Ct,1)}),ut.play()}),fg}elementContainsData(a,e){let t=!1;const r=e[_s];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let c=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(c=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==ug;s.forEach(d=>{d.queued||!o&&d.triggerName!=r||c.push(d)})}}return(t||r)&&(c=c.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),c}_beforeAnimationBuild(a,e,t){const l=e.element,c=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const d=o.element,u=d!==l,h=Va(t,d,[]);this._getPreviousPlayers(d,u,c,s,e.toState).forEach(b=>{const N=b.getRealPlayer();N.beforeDestroy&&N.beforeDestroy(),b.destroy(),h.push(b)})}Uu(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,c){const s=e.triggerName,o=e.element,d=[],u=new Set,h=new Set,f=e.timelines.map(N=>{const Q=N.element;u.add(Q);const pe=Q[_s];if(pe&&pe.removedBeforeQueried)return new Rl(N.duration,N.delay);const Pe=Q!==o,_t=function oY(n){const a=[];return j2(n,a),a}((t.get(Q)||K6).map(la=>la.getRealPlayer())).filter(la=>!!la.element&&la.element===Q),kt=l.get(Q),Ut=c.get(Q),oa=f2(0,this._normalizer,0,N.keyframes,kt,Ut),Ko=this._buildPlayer(N,oa,_t);if(N.subTimeline&&r&&h.add(Q),Pe){const la=new ST(a,s,Q);la.setRealPlayer(Ko),d.push(la)}return Ko});d.forEach(N=>{Va(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>function nY(n,a,e){let t=n.get(a);if(t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}return t}(this.playersByQueriedElement,N.element,N))}),u.forEach(N=>bs(N,C2));const b=ld(f);return b.onDestroy(()=>{u.forEach(N=>ef(N,C2)),Qo(o,e.toStyles)}),h.forEach(N=>{Va(r,N,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Rl(a.duration,a.delay)}}class ST{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Rl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,this._queuedCallbacks.forEach((e,t)=>{e.forEach(r=>sT(a,t,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Va(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function hy(n){return n&&1===n.nodeType}function V2(n,a){const e=n.style.display;return n.style.display=a??"none",e}function F2(n,a,e,t,r){const l=[];e.forEach(o=>l.push(V2(o)));const c=[];t.forEach((o,d)=>{const u=new Map;o.forEach(h=>{const f=a.computeStyle(d,h,r);u.set(h,f),(!f||0==f.length)&&(d[_s]=eY,c.push(d))}),n.set(d,u)});let s=0;return e.forEach(o=>V2(o,l[s++])),c}function z2(n,a){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==a.length)return e;const r=new Set(a),l=new Map;function c(s){if(!s)return 1;let o=l.get(s);if(o)return o;const d=s.parentNode;return o=e.has(d)?d:r.has(d)?1:c(d),l.set(s,o),o}return a.forEach(s=>{const o=c(s);1!==o&&e.get(o).push(s)}),e}function bs(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function ef(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function sY(n,a,e){ld(e).onDone(()=>n.processLeaveNode(a))}function j2(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class py{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new iY(a,e,t),this._timelineEngine=new $6(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const c=a+"-"+r;let s=this._triggerCache[c];if(!s){const o=[],u=_T(this._driver,l,o,[]);if(o.length)throw function Wq(n,a){return new i.vHH(3404,!1)}();s=function Y6(n,a,e){return new W6(n,a,e)}(r,u,this._normalizer),this._triggerCache[c]=s}this._transitionEngine.registerTrigger(e,r,s)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,c]=m2(t);this._timelineEngine.command(l,e,c,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[c,s]=m2(t);return this._timelineEngine.listen(c,e,s,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let dY=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Qo(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Qo(this._element,this._initialStyles),this._endStyles&&(Qo(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Uu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Uu(this._element,this._endStyles),this._endStyles=null),Qo(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ET(n){let a=null;return n.forEach((e,t)=>{(function uY(n){return"display"===n||"position"===n})(t)&&(a=a||new Map,a.set(t,e))}),a}class Y2{constructor(a,e,t,r){this.element=a,this.keyframes=e,this.options=t,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(a){const e=[];return a.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(a,e,t){return a.animate(this._convertKeyframesToObject(e),t)}onStart(a){this._originalOnStartFns.push(a),this._onStartFns.push(a)}onDone(a){this._originalOnDoneFns.push(a),this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,r)=>{"offset"!==r&&a.set(r,this._finished?t:D2(this.element,r))}),this.currentSnapshot=a}triggerCallback(a){const e="start"===a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class hY{validateStyleProperty(a){return!0}validateAnimatableStyleProperty(a){return!0}matchesElement(a,e){return!1}containsElement(a,e){return A2(a,e)}getParentElement(a){return dT(a)}query(a,e,t){return y2(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,c=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const d=new Map,u=c.filter(b=>b instanceof Y2);(function g6(n,a){return 0===n||0===a})(t,r)&&u.forEach(b=>{b.currentSnapshot.forEach((N,Q)=>d.set(Q,N))});let h=function h6(n){return n.length?n[0]instanceof Map?n:n.map(a=>v2(a)):[]}(e).map(b=>dd(b));h=function _6(n,a,e){if(e.size&&a.length){let t=a[0],r=[];if(e.forEach((l,c)=>{t.has(c)||r.push(c),t.set(c,l)}),r.length)for(let l=1;lc.set(s,D2(n,s)))}}return a}(a,h,d);const f=function cY(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ET(a[0]),a.length>1&&(t=ET(a[a.length-1]))):a instanceof Map&&(e=ET(a)),e||t?new dY(n,e,t):null}(a,h);return new Y2(a,h,o,f)}}let pY=(()=>{class n extends D0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?J1(e):e;return W2(this._renderer,null,t,"register",[r]),new fY(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class fY extends class Z1{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new mY(this._id,a,e||{},this._renderer)}}class mY{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return W2(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(a=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==a?a:0}}function W2(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const U2="@.disabled";let gY=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const s=c?.parentNode(l);s&&c.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new G2("",l,this.engine),this._rendererCache.set(l,u)),u}const c=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(c,s,e,u.name,u)};return t.data.animation.forEach(o),new _Y(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,s]=l;c(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(py),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class G2{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==U2?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class _Y extends G2{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==U2?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.slice(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function bY(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.slice(1),c="";return"@"!=l.charAt(0)&&([l,c]=function AY(n){const a=n.indexOf(".");return[n.substring(0,a),n.slice(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,c,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}const $2=[{provide:D0,useClass:pY},{provide:wT,useFactory:function MY(){return new F6}},{provide:py,useClass:(()=>{class n extends py{constructor(e,t,r,l){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(uT),i.LFG(wT),i.LFG(i.z2F))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})()},{provide:i.FYo,useFactory:function wY(n,a,e){return new gY(n,a,e)},deps:[ye,py,i.R0b]}],DT=[{provide:uT,useFactory:()=>new hY},{provide:i.QbO,useValue:"BrowserAnimations"},...$2],Z2=[{provide:uT,useClass:M2},{provide:i.QbO,useValue:"NoopAnimations"},...$2];let CY=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Z2:DT}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:DT,imports:[Jt]}),n})(),vY=(()=>{class n{constructor(e,t,r,l,c){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),r()})}setEntityTheme(e,t){const r=function TY(n){return[sa(tinycolor(n).lighten(52),"50"),sa(tinycolor(n).lighten(37),"100"),sa(tinycolor(n).lighten(26),"200"),sa(tinycolor(n).lighten(12),"300"),sa(tinycolor(n).lighten(6),"400"),sa(tinycolor(n),"500"),sa(tinycolor(n).darken(6),"600"),sa(tinycolor(n).darken(12),"700"),sa(tinycolor(n).darken(18),"800"),sa(tinycolor(n).darken(24),"900"),sa(tinycolor(n).lighten(50).saturate(30),"A100"),sa(tinycolor(n).lighten(30).saturate(30),"A200"),sa(tinycolor(n).lighten(10).saturate(15),"A400"),sa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,d=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(o,d)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setInstanceConfig(t);const r=document.location.hostname;t?.brandings?.[r]&&this.storeService.setBanding(r),e()},()=>{e()})})}getNoCacheHeaders(){return new M.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Zt),i.LFG(ht),i.LFG(se),i.LFG(_r))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let xY=(()=>{class n{constructor(e,t,r){this.initAuthService=e,this.appConfigService=t,this.location=r,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ov),i.LFG(vY),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[fv]}),n})(),Z5=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:io,useValue:{...mv,...e}},{provide:gv,useValue:t,multi:!0},{provide:jp,useValue:!0}]:[{provide:io,useValue:{...mv,...e}},{provide:gv,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(jp),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[JD,vE,nH,JD,vE,nH]}),n})();const J5=new i.OlP("perun-api-service"),X5={provide:M.TP,useExisting:(0,i.Gpc)(()=>ZS),multi:!0};function Q5(n){return new Cq(n,"./assets/i18n/",".json")}function K5(n){const a={basePath:n.get("api_url")};return new Je(a)}const eW=n=>()=>n.initialize();let tW=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG($S),i.LFG(_i))},n.\u0275mod=i.oAB({type:n,bootstrap:[HO]}),n.\u0275inj=i.cJS({providers:[$S,{provide:i.ip1,useFactory:eW,multi:!0,deps:[xY]},{provide:Je,useFactory:K5,deps:[Zt]},CA,ZS,X5,{provide:J5,useClass:oL},se,{provide:ju.Hy,useFactory:()=>localStorage}],imports:[Jt,CY,M.JF,Nu.forRoot({loader:{provide:kp,useFactory:Q5,deps:[M.eN]}}),wq,Ia,hv,Ov,kc,Ea,Z5,Iv,c2,vA,Jv,ss,Wo,Vp,Km,Yp,Qs,eg,Lu,Wp,jA,iT,NE,HE,GB,na,Ks,rT,WE,Cp,L4,LC,Ru,ju.zr.forRoot(),zP]}),n})();(0,i.G48)(),be().bootstrapModule(tW).catch(n=>console.error(n))},1302:function(j,Y,T){var w;!function(i,E){var x={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function x(le,ae,ie,ge,Ae){for(var ve,Xe,Qe,He,Te,Se,pt,Be,Ve,Ne,he,me,Ce;Ae>=64;){for(ve=ae[0],Xe=ae[1],Qe=ae[2],He=ae[3],Te=ae[4],Se=ae[5],pt=ae[6],Be=ae[7],Ne=0;Ne<16;Ne++)le[Ne]=(255&ie[he=ge+4*Ne])<<24|(255&ie[he+1])<<16|(255&ie[he+2])<<8|255&ie[he+3];for(Ne=16;Ne<64;Ne++)le[Ne]=((me=((Ve=le[Ne-2])>>>17|Ve<<15)^(Ve>>>19|Ve<<13)^Ve>>>10)+le[Ne-7]|0)+((Ce=((Ve=le[Ne-15])>>>7|Ve<<25)^(Ve>>>18|Ve<<14)^Ve>>>3)+le[Ne-16]|0);for(Ne=0;Ne<64;Ne++)me=(((Te>>>6|Te<<26)^(Te>>>11|Te<<21)^(Te>>>25|Te<<7))+(Te&Se^~Te&pt)|0)+(Be+(E[Ne]+le[Ne]|0)|0)|0,Ce=((ve>>>2|ve<<30)^(ve>>>13|ve<<19)^(ve>>>22|ve<<10))+(ve&Xe^ve&Qe^Xe&Qe)|0,Be=pt,pt=Se,Se=Te,Te=He+me|0,He=Qe,Qe=Xe,Xe=ve,ve=me+Ce|0;ae[0]+=ve,ae[1]+=Xe,ae[2]+=Qe,ae[3]+=He,ae[4]+=Te,ae[5]+=Se,ae[6]+=pt,ae[7]+=Be,ge+=64,Ae-=64}return ge}var S=function(){function le(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return le.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},le.prototype.clean=function(){for(var ae=0;ae0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;64===this.bufferLength&&(x(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(ge=x(this.temp,this.state,ae,ge,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=ae[ge++],ie--;return this},le.prototype.finish=function(ae){if(!this.finished){var ie=this.bytesHashed,ge=this.bufferLength,Ae=ie/536870912|0,ve=ie<<3,Xe=ie%64<56?64:128;this.buffer[ge]=128;for(var Qe=ge+1;Qe>>24&255,this.buffer[Xe-7]=Ae>>>16&255,this.buffer[Xe-6]=Ae>>>8&255,this.buffer[Xe-5]=Ae>>>0&255,this.buffer[Xe-4]=ve>>>24&255,this.buffer[Xe-3]=ve>>>16&255,this.buffer[Xe-2]=ve>>>8&255,this.buffer[Xe-1]=ve>>>0&255,x(this.temp,this.state,this.buffer,0,Xe),this.finished=!0}for(Qe=0;Qe<8;Qe++)ae[4*Qe+0]=this.state[Qe]>>>24&255,ae[4*Qe+1]=this.state[Qe]>>>16&255,ae[4*Qe+2]=this.state[Qe]>>>8&255,ae[4*Qe+3]=this.state[Qe]>>>0&255;return this},le.prototype.digest=function(){var ae=new Uint8Array(this.digestLength);return this.finish(ae),ae},le.prototype._saveState=function(ae){for(var ie=0;iethis.blockSize)(new S).update(ae).finish(ie).clean();else for(var ge=0;ge1&&ae.update(le),ie&&ae.update(ie),ae.update(ge),ae.finish(le),ge[0]++}i.HMAC=P,i.hash=R,i.default=R,i.hmac=F;var J=new Uint8Array(i.digestLength);i.hkdf=function X(le,ae,ie,ge){void 0===ae&&(ae=J),void 0===ge&&(ge=32);for(var Ae=new Uint8Array([1]),ve=F(ae,le),Xe=new P(ve),Qe=new Uint8Array(Xe.digestLength),He=Qe.length,Te=new Uint8Array(ge),Se=0;Se>>24&255,Xe[1]=pt>>>16&255,Xe[2]=pt>>>8&255,Xe[3]=pt>>>0&255,Ae.reset(),Ae.update(ae),Ae.update(Xe),Ae.finish(He);for(var Be=0;Be=X.status}function P(J){try{J.dispatchEvent(new MouseEvent("click"))}catch{var X=document.createEvent("MouseEvents");X.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),J.dispatchEvent(X)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,F=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),q=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!F?function(J,X,ne){var le=R.URL||R.webkitURL,ae=document.createElement("a");ae.download=X=X||J.name||"download",ae.rel="noopener","string"==typeof J?(ae.href=J,ae.origin===location.origin?P(ae):S(ae.href)?x(J,X,ne):P(ae,ae.target="_blank")):(ae.href=le.createObjectURL(J),setTimeout(function(){le.revokeObjectURL(ae.href)},4e4),setTimeout(function(){P(ae)},0))}:"msSaveOrOpenBlob"in navigator?function(J,X,ne){if(X=X||J.name||"download","string"!=typeof J)navigator.msSaveOrOpenBlob(function E(J,X){return typeof X>"u"?X={autoBom:!1}:"object"!=typeof X&&(console.warn("Deprecated: Expected third argument to be a object"),X={autoBom:!X}),X.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(J.type)?new Blob(["\ufeff",J],{type:J.type}):J}(J,ne),X);else if(S(J))x(J,X,ne);else{var le=document.createElement("a");le.href=J,le.target="_blank",setTimeout(function(){P(le)})}}:function(J,X,ne,le){if((le=le||open("","_blank"))&&(le.document.title=le.document.body.innerText="downloading..."),"string"==typeof J)return x(J,X,ne);var ae="application/octet-stream"===J.type,ie=/constructor/i.test(R.HTMLElement)||R.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ae&&ie||F)&&typeof FileReader<"u"){var Ae=new FileReader;Ae.onloadend=function(){var Qe=Ae.result;Qe=ge?Qe:Qe.replace(/^data:[^;]*;/,"data:attachment/file;"),le?le.location.href=Qe:location=Qe,le=null},Ae.readAsDataURL(J)}else{var ve=R.URL||R.webkitURL,Xe=ve.createObjectURL(J);le?le.location=Xe:location.href=Xe,le=null,setTimeout(function(){ve.revokeObjectURL(Xe)},4e4)}});R.saveAs=q.saveAs=q,j.exports=q}.apply(Y,[]))&&(j.exports=i)},1158:(j,Y,T)=>{(j.exports=T(7867)).tz.load(T(1128))},7867:function(j,Y,T){var w,i,E;!function(x,S){"use strict";j.exports?j.exports=S(T(5439)):(i=[T(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(Y,i):w)&&(j.exports=E))}(0,function(x){"use strict";void 0===x.version&&x.default&&(x=x.default);var X,P={},R={},F={},q={},J={};(!x||"string"!=typeof x.version)&&En("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var ne=x.version.split("."),le=+ne[0],ae=+ne[1];function ie(de){return de>96?de-87:de>64?de-29:de-48}function ge(de){var ke=0,be=de.split("."),qe=be[0],st=be[1]||"",ot=1,rn=0,oi=1;for(45===de.charCodeAt(0)&&(ke=1,oi=-1);ke= 2.6.0. You are using Moment.js "+x.version+". See momentjs.com"),He.prototype={_set:function(de){this.name=de.name,this.abbrs=de.abbrs,this.untils=de.untils,this.offsets=de.offsets,this.population=de.population},_index:function(de){var qe,ke=+de,be=this.untils;for(qe=0;qern&&ui.moveInvalidForward&&(ot=rn),ke3){var ke=q[We(de)];if(ke)return ke;En("Moment Timezone found "+de+" from the Intl api, but did not have that data loaded.")}}catch{}var Jt,rn,oi,be=function Ve(){var qe,st,ot,de=(new Date).getFullYear()-2,ke=new Se(new Date(de,0,1)),be=[ke];for(ot=1;ot<48;ot++)(st=new Se(new Date(de,ot,1))).offset!==ke.offset&&(qe=Be(ke,st),be.push(qe),be.push(new Se(new Date(qe.at+6e4)))),ke=st;for(ot=0;ot<4;ot++)be.push(new Se(new Date(de+ot,0,1))),be.push(new Se(new Date(de+ot,6,1)));return be}(),qe=be.length,st=function me(de){var st,ot,Jt,ke=de.length,be={},qe=[];for(st=0;st0?ot[0].zone.name:void 0}()),X},ui.names=function Ft(){var de,ke=[];for(de in q)q.hasOwnProperty(de)&&(P[de]||P[R[de]])&&q[de]&&ke.push(q[de]);return ke.sort()},ui.Zone=He,ui.unpack=Qe,ui.unpackBase60=ge,ui.needsOffset=Ci,ui.moveInvalidForward=!0,ui.moveAmbiguousForward=!1,ui.countries=function ai(){return Object.keys(F)},ui.zonesForCountry=function Ge(de,ke){if(!(de=function Sn(de){return de=de.toUpperCase(),F[de]||null}(de)))return null;var be=de.zones.sort();return ke?be.map(function(qe){return{name:qe,offset:mt(qe).utcOffset(new Date)}}):be};var mn=x.fn;function co(de){return function(){return this._z?this._z.abbr(this):de.call(this)}}function ca(de){return function(){return this._z=null,de.apply(this,arguments)}}x.tz=ui,x.defaultZone=null,x.updateOffset=function(de,ke){var qe,be=x.defaultZone;if(void 0===de._z&&(be&&Ci(de)&&!de._isUTC&&(de._d=x.utc(de._a)._d,de.utc().add(be.parse(de),"minutes")),de._z=be),de._z)if(qe=de._z.utcOffset(de),Math.abs(qe)<16&&(qe/=60),void 0!==de.utcOffset){var st=de._z;de.utcOffset(-qe,ke),de._z=st}else de.zone(qe,ke)},mn.tz=function(de,ke){if(de){if("string"!=typeof de)throw new Error("Time zone name must be a string, got "+de+" ["+typeof de+"]");return this._z=mt(de),this._z?x.updateOffset(this,ke):En("Moment Timezone has no data for "+de+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},mn.zoneName=co(mn.zoneName),mn.zoneAbbr=co(mn.zoneAbbr),mn.utc=ca(mn.utc),mn.local=ca(mn.local),mn.utcOffset=function fr(de){return function(){return arguments.length>0&&(this._z=null),de.apply(this,arguments)}}(mn.utcOffset),x.tz.setDefault=function(de){return(le<2||2===le&&ae<9)&&En("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+x.version+"."),x.defaultZone=de?mt(de):null,x};var kn=x.momentProperties;return"[object Array]"===Object.prototype.toString.call(kn)?(kn.push("_z"),kn.push("_a")):kn&&(kn._z=null),x})},7088:function(j,Y,T){!function(w){"use strict";w.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,x,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},2502:function(j,Y,T){!function(w){"use strict";var i=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},x=function(R){return function(F,q,J,X){var ne=i(F),le=E[R][i(F)];return 2===ne&&(le=le[q?0:1]),le.replace(/%d/i,F)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(R){return"\u0645"===R},meridiem:function(R,F,q){return R<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:x("s"),ss:x("s"),m:x("m"),mm:x("m"),h:x("h"),hh:x("h"),d:x("d"),dd:x("d"),M:x("M"),MM:x("M"),y:x("y"),yy:x("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(T(5439))},128:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(T(5439))},4519:function(j,Y,T){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(F){return 0===F?0:1===F?1:2===F?2:F%100>=3&&F%100<=10?3:F%100>=11?4:5},x={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(F){return function(q,J,X,ne){var le=E(q),ae=x[F][E(q)];return 2===le&&(ae=ae[J?0:1]),ae.replace(/%d/i,q)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(F){return"\u0645"===F},meridiem:function(F,q,J){return F<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(F){return F.replace(/\u060c/g,",")},postformat:function(F){return F.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},5443:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(T(5439))},7642:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,R){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(T(5439))},8592:function(j,Y,T){!function(w){"use strict";w.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(T(5439))},7038:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=function(q){return 0===q?0:1===q?1:2===q?2:q%100>=3&&q%100<=10?3:q%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(q){return function(J,X,ne,le){var ae=x(J),ie=S[q][x(J)];return 2===ae&&(ie=ie[X?0:1]),ie.replace(/%d/i,J)}},R=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar",{months:R,monthsShort:R,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(q){return"\u0645"===q},meridiem:function(q,J,X){return q<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(q){return q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(J){return E[J]}).replace(/\u060c/g,",")},postformat:function(q){return q.replace(/\d/g,function(J){return i[J]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},1213:function(j,Y,T){!function(w){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};w.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(x){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(x)},meridiem:function(x,S,P){return x<4?"gec\u0259":x<12?"s\u0259h\u0259r":x<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(x){if(0===x)return x+"-\u0131nc\u0131";var S=x%10;return x+(i[S]||i[x%100-S]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9191:function(j,Y,T){!function(w){"use strict";function E(S,P,R){return"m"===R?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var R=S.split("_");return P%10==1&&P%100!=11?R[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?R[1]:R[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[R],+S)}w.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,R){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(T(5439))},322:function(j,Y,T){!function(w){"use strict";w.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},8042:function(j,Y,T){!function(w){"use strict";w.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(T(5439))},5903:function(j,Y,T){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(T(5439))},9620:function(j,Y,T){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,R){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(T(5439))},9645:function(j,Y,T){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,R){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(T(5439))},5020:function(j,Y,T){!function(w){"use strict";function i(ie,ge,Ae){return ie+" "+function S(ie,ge){return 2===ge?function P(ie){var ge={m:"v",b:"v",d:"z"};return void 0===ge[ie.charAt(0)]?ie:ge[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[Ae],ie)}function x(ie){return ie>9?x(ie%10):ie}var R=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],F=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,le=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:le,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:le,monthsRegex:F,monthsShortRegex:F,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ie){switch(x(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ie){return"g.m."===ie},meridiem:function(ie,ge,Ae){return ie<12?"a.m.":"g.m."}})}(T(5439))},4792:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var R=x+" ";switch(P){case"ss":return R+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return R+(1===x?"dan":"dana");case"MM":return R+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return R+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}w.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},7980:function(j,Y,T){!function(w){"use strict";w.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7322:function(j,Y,T){!function(w){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),x=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(q){return q>1&&q<5&&1!=~~(q/10)}function R(q,J,X,ne){var le=q+" ";switch(X){case"s":return J||ne?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return J||ne?le+(P(q)?"sekundy":"sekund"):le+"sekundami";case"m":return J?"minuta":ne?"minutu":"minutou";case"mm":return J||ne?le+(P(q)?"minuty":"minut"):le+"minutami";case"h":return J?"hodina":ne?"hodinu":"hodinou";case"hh":return J||ne?le+(P(q)?"hodiny":"hodin"):le+"hodinami";case"d":return J||ne?"den":"dnem";case"dd":return J||ne?le+(P(q)?"dny":"dn\xed"):le+"dny";case"M":return J||ne?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return J||ne?le+(P(q)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):le+"m\u011bs\xedci";case"y":return J||ne?"rok":"rokem";case"yy":return J||ne?le+(P(q)?"roky":"let"):le+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},365:function(j,Y,T){!function(w){"use strict";w.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(T(5439))},2092:function(j,Y,T){!function(w){"use strict";w.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(T(5439))},7387:function(j,Y,T){!function(w){"use strict";w.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9459:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3694:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},4307:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[x+" Tage",x+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[x+" Monate",x+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[x+" Jahre",x+" Jahren"]};return S?F[P][0]:F[P][1]}w.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9659:function(j,Y,T){!function(w){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,R){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(T(5439))},3460:function(j,Y,T){!function(w){"use strict";w.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(x,S){return x?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[x.month()]:this._monthsNominativeEl[x.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(x,S,P){return x>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(x){return"\u03bc"===(x+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(x,S){var P=this._calendarEl[x],R=S&&S.hours();return function i(x){return typeof Function<"u"&&x instanceof Function||"[object Function]"===Object.prototype.toString.call(x)}(P)&&(P=P.apply(S)),P.replace("{}",R%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(T(5439))},4369:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:4}})}(T(5439))},530:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9998:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3391:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},5414:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")}})}(T(5439))},9615:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:0,doy:6}})}(T(5439))},1248:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},3767:function(j,Y,T){!function(w){"use strict";w.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},4530:function(j,Y,T){!function(w){"use strict";w.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,x,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(T(5439))},8944:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},9116:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(T(5439))},3609:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(T(5439))},6866:function(j,Y,T){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),x=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(T(5439))},6725:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[x+"sekundi",x+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[x+" minuti",x+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[x+" tunni",x+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[x+" kuu",x+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[x+" aasta",x+" aastat"]};return S?F[P][2]?F[P][2]:F[P][1]:R?F[P][0]:F[P][1]}w.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},7931:function(j,Y,T){!function(w){"use strict";w.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6417:function(j,Y,T){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,R){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(T(5439))},944:function(j,Y,T){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function x(R,F,q,J){var X="";switch(q){case"s":return J?"muutaman sekunnin":"muutama sekunti";case"ss":X=J?"sekunnin":"sekuntia";break;case"m":return J?"minuutin":"minuutti";case"mm":X=J?"minuutin":"minuuttia";break;case"h":return J?"tunnin":"tunti";case"hh":X=J?"tunnin":"tuntia";break;case"d":return J?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":X=J?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return J?"kuukauden":"kuukausi";case"MM":X=J?"kuukauden":"kuukautta";break;case"y":return J?"vuoden":"vuosi";case"yy":X=J?"vuoden":"vuotta"}return function S(R,F){return R<10?F?E[R]:i[R]:R}(R,J)+" "+X}w.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1766:function(j,Y,T){!function(w){"use strict";w.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},5867:function(j,Y,T){!function(w){"use strict";w.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},6848:function(j,Y,T){!function(w){"use strict";w.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(T(5439))},7773:function(j,Y,T){!function(w){"use strict";w.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,x){switch(x){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},1636:function(j,Y,T){!function(w){"use strict";var x=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];w.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:x,monthsShortRegex:x,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(R,F){switch(F){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(T(5439))},4940:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1402:function(j,Y,T){!function(w){"use strict";w.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6924:function(j,Y,T){!function(w){"use strict";w.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(F){return F+(1===F?"d":F%10==2?"na":"mh")},week:{dow:1,doy:4}})}(T(5439))},6398:function(j,Y,T){!function(w){"use strict";w.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},2457:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[x+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",x+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[x+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",x+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[x+" \u0935\u0930\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[x+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",x+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[x+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",x+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[x+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",x+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?F[P][0]:F[P][1]}w.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(x,S){return"D"===S?x+"\u0935\u0947\u0930":x},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0930\u093e\u0924\u0940"===S?x<4?x:x+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?x:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?x>12?x:x+12:"\u0938\u093e\u0902\u091c\u0947"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0930\u093e\u0924\u0940":x<12?"\u0938\u0915\u093e\u0933\u0940\u0902":x<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":x<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(T(5439))},2545:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F={s:["thoddea sekondamni","thodde sekond"],ss:[x+" sekondamni",x+" sekond"],m:["eka mintan","ek minut"],mm:[x+" mintamni",x+" mintam"],h:["eka voran","ek vor"],hh:[x+" voramni",x+" voram"],d:["eka disan","ek dis"],dd:[x+" disamni",x+" dis"],M:["eka mhoinean","ek mhoino"],MM:[x+" mhoineamni",x+" mhoine"],y:["eka vorsan","ek voros"],yy:[x+" vorsamni",x+" vorsam"]};return R?F[P][0]:F[P][1]}w.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(x,S){return"D"===S?x+"er":x},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(x,S){return 12===x&&(x=0),"rati"===S?x<4?x:x+12:"sokallim"===S?x:"donparam"===S?x>12?x:x+12:"sanje"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"rati":x<12?"sokallim":x<16?"donparam":x<20?"sanje":"rati"}})}(T(5439))},2641:function(j,Y,T){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(T(5439))},7536:function(j,Y,T){!function(w){"use strict";w.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,x,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(T(5439))},6335:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},x=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];w.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:x,longMonthsParse:x,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(F){return E[F]})},postformat:function(R){return R.replace(/\d/g,function(F){return i[F]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,F){return 12===R&&(R=0),"\u0930\u093e\u0924"===F?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===F?R:"\u0926\u094b\u092a\u0939\u0930"===F?R>=10?R:R+12:"\u0936\u093e\u092e"===F?R+12:void 0},meridiem:function(R,F,q){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(T(5439))},7458:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var R=x+" ";switch(P){case"ss":return R+(1===x?"sekunda":2===x||3===x||4===x?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===x?"minuta":2===x||3===x||4===x?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===x?"sat":2===x||3===x||4===x?"sata":"sati");case"dd":return R+(1===x?"dan":"dana");case"MM":return R+(1===x?"mjesec":2===x||3===x||4===x?"mjeseca":"mjeseci");case"yy":return R+(1===x?"godina":2===x||3===x||4===x?"godine":"godina")}}w.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6540:function(j,Y,T){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,R,F,q){var J=P;switch(F){case"s":return q||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return J+(q||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(q||R?" perc":" perce");case"mm":return J+(q||R?" perc":" perce");case"h":return"egy"+(q||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return J+(q||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(q||R?" nap":" napja");case"dd":return J+(q||R?" nap":" napja");case"M":return"egy"+(q||R?" h\xf3nap":" h\xf3napja");case"MM":return J+(q||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(q||R?" \xe9v":" \xe9ve");case"yy":return J+(q||R?" \xe9v":" \xe9ve")}return""}function x(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,R,F){return P<12?!0===F?"de":"DE":!0===F?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return x.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return x.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},5283:function(j,Y,T){!function(w){"use strict";w.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,x){switch(x){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(T(5439))},8780:function(j,Y,T){!function(w){"use strict";w.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"siang"===x?E>=11?E:E+12:"sore"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(T(5439))},4205:function(j,Y,T){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,R,F){var q=S+" ";switch(R){case"s":return P||F?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?q+(P||F?"sek\xfandur":"sek\xfandum"):q+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?q+(P||F?"m\xedn\xfatur":"m\xedn\xfatum"):P?q+"m\xedn\xfata":q+"m\xedn\xfatu";case"hh":return i(S)?q+(P||F?"klukkustundir":"klukkustundum"):q+"klukkustund";case"d":return P?"dagur":F?"dag":"degi";case"dd":return i(S)?P?q+"dagar":q+(F?"daga":"d\xf6gum"):P?q+"dagur":q+(F?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":F?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?q+"m\xe1nu\xf0ir":q+(F?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?q+"m\xe1nu\xf0ur":q+(F?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||F?"\xe1r":"\xe1ri";case"yy":return i(S)?q+(P||F?"\xe1r":"\xe1rum"):q+(P||F?"\xe1r":"\xe1ri")}}w.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},9985:function(j,Y,T){!function(w){"use strict";w.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},4211:function(j,Y,T){!function(w){"use strict";w.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},1003:function(j,Y,T){!function(w){"use strict";w.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,x){return"\u5143"===x[1]?1:parseInt(x[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,x,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,x){switch(x){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(T(5439))},420:function(j,Y,T){!function(w){"use strict";w.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,x){return 12===E&&(E=0),"enjing"===x?E:"siyang"===x?E>=11?E:E+12:"sonten"===x||"ndalu"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(T(5439))},851:function(j,Y,T){!function(w){"use strict";w.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(x,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(T(5439))},6074:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};w.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},3343:function(j,Y,T){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,R){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},4799:function(j,Y,T){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(T(5439))},3549:function(j,Y,T){!function(w){"use strict";w.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,x,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(T(5439))},1037:function(j,Y,T){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},x=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];w.defineLocale("ku",{months:x,monthsShort:x,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,R,F){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(T(5439))},3125:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};w.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},9586:function(j,Y,T){!function(w){"use strict";function i(R,F,q,J){var X={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return F?X[q][0]:X[q][1]}function S(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var F=R%10;return S(0===F?R/10:F)}if(R<1e4){for(;R>=10;)R/=10;return S(R)}return S(R/=1e3)}w.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(R){return S(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function x(R){return S(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2349:function(j,Y,T){!function(w){"use strict";w.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,x,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(T(5439))},2400:function(j,Y,T){!function(w){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function x(q,J,X,ne){return J?P(X)[0]:ne?P(X)[1]:P(X)[2]}function S(q){return q%10==0||q>10&&q<20}function P(q){return i[q].split("_")}function R(q,J,X,ne){var le=q+" ";return 1===q?le+x(0,J,X[0],ne):J?le+(S(q)?P(X)[1]:P(X)[0]):ne?le+P(X)[1]:le+(S(q)?P(X)[1]:P(X)[2])}w.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(q,J,X,ne){return J?"kelios sekund\u0117s":ne?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:x,mm:R,h:x,hh:R,d:x,dd:R,M:x,MM:R,y:x,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(q){return q+"-oji"},week:{dow:1,doy:4}})}(T(5439))},9991:function(j,Y,T){!function(w){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(F,q,J){return J?q%10==1&&q%100!=11?F[2]:F[3]:q%10==1&&q%100!=11?F[0]:F[1]}function x(F,q,J){return F+" "+E(i[J],F,q)}function S(F,q,J){return E(i[J],F,q)}w.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(F,q){return q?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:x,m:S,mm:x,h:S,hh:x,d:S,dd:x,M:S,MM:x,y:S,yy:x},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8477:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(x,S){return 1===x?S[0]:x>=2&&x<=4?S[1]:S[2]},translate:function(x,S,P){var R=i.words[P];return 1===P.length?S?R[0]:R[1]:x+" "+i.correctGrammaticalCase(x,R)}};w.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},5118:function(j,Y,T){!function(w){"use strict";w.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},5943:function(j,Y,T){!function(w){"use strict";w.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var x=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===x?E+"-\u0432\u0438":2===x?E+"-\u0440\u0438":7===x||8===x?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(T(5439))},3849:function(j,Y,T){!function(w){"use strict";w.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,x){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===x&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===x||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===x?E+12:E},meridiem:function(E,x,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(T(5439))},1977:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return x+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return x+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return x+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return x+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return x+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return x+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return x}}w.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(x){return"\u04ae\u0425"===x},meridiem:function(x,S,P){return x<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(x,S){switch(S){case"d":case"D":case"DDD":return x+" \u04e9\u0434\u04e9\u0440";default:return x}}})}(T(5439))},6184:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function x(P,R,F,q){var J="";if(R)switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":J="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":J="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":J="%d \u0924\u093e\u0938";break;case"d":J="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":J="%d \u0926\u093f\u0935\u0938";break;case"M":J="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":J="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u0947"}else switch(F){case"s":J="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":J="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":J="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":J="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":J="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":J="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":J="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":J="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":J="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":J="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":J="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":J="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return J.replace(/%d/i,P)}w.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:x,ss:x,m:x,mm:x,h:x,hh:x,d:x,dd:x,M:x,MM:x,y:x,yy:x},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(P){return P.replace(/\d/g,function(R){return i[R]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,R){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?P>=12?P:P+12:void 0},meridiem:function(P,R,F){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(T(5439))},4524:function(j,Y,T){!function(w){"use strict";w.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(T(5439))},485:function(j,Y,T){!function(w){"use strict";w.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,x){return 12===E&&(E=0),"pagi"===x?E:"tengahari"===x?E>=11?E:E+12:"petang"===x||"malam"===x?E+12:void 0},meridiem:function(E,x,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(T(5439))},6681:function(j,Y,T){!function(w){"use strict";w.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},2024:function(j,Y,T){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(T(5439))},2688:function(j,Y,T){!function(w){"use strict";w.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8914:function(j,Y,T){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,R){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(T(5439))},2272:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1758:function(j,Y,T){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),x=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,F){return R?/-MMM-/.test(F)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(T(5439))},1510:function(j,Y,T){!function(w){"use strict";w.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2797:function(j,Y,T){!function(w){"use strict";w.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,x){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===x||"W"===x)&&(S="a"),E+S},week:{dow:1,doy:4}})}(T(5439))},7944:function(j,Y,T){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,R){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(T(5439))},1605:function(j,Y,T){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),x=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(F){return F%10<5&&F%10>1&&~~(F/10)%10!=1}function P(F,q,J){var X=F+" ";switch(J){case"ss":return X+(S(F)?"sekundy":"sekund");case"m":return q?"minuta":"minut\u0119";case"mm":return X+(S(F)?"minuty":"minut");case"h":return q?"godzina":"godzin\u0119";case"hh":return X+(S(F)?"godziny":"godzin");case"ww":return X+(S(F)?"tygodnie":"tygodni");case"MM":return X+(S(F)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return X+(S(F)?"lata":"lat")}}w.defineLocale("pl",{months:function(F,q){return F?/D MMMM/.test(q)?E[F.month()]:i[F.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3840:function(j,Y,T){!function(w){"use strict";w.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(T(5439))},4225:function(j,Y,T){!function(w){"use strict";w.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(T(5439))},5128:function(j,Y,T){!function(w){"use strict";function i(x,S,P){var F=" ";return(x%100>=20||x>=100&&x%100==0)&&(F=" de "),x+F+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}w.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(T(5439))},5127:function(j,Y,T){!function(w){"use strict";function E(P,R,F){return"m"===F?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,R){var F=P.split("_");return R%10==1&&R%100!=11?F[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?F[1]:F[2]}({ss:R?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:R?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[F],+P)}var x=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];w.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:x,longMonthsParse:x,shortMonthsParse:x,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,R,F){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,R){switch(R){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(T(5439))},2525:function(j,Y,T){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(T(5439))},9893:function(j,Y,T){!function(w){"use strict";w.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},3123:function(j,Y,T){!function(w){"use strict";w.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,x,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(T(5439))},3027:function(j,Y,T){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function x(R){return R>1&&R<5}function S(R,F,q,J){var X=R+" ";switch(q){case"s":return F||J?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return F||J?X+(x(R)?"sekundy":"sek\xfand"):X+"sekundami";case"m":return F?"min\xfata":J?"min\xfatu":"min\xfatou";case"mm":return F||J?X+(x(R)?"min\xfaty":"min\xfat"):X+"min\xfatami";case"h":return F?"hodina":J?"hodinu":"hodinou";case"hh":return F||J?X+(x(R)?"hodiny":"hod\xedn"):X+"hodinami";case"d":return F||J?"de\u0148":"d\u0148om";case"dd":return F||J?X+(x(R)?"dni":"dn\xed"):X+"d\u0148ami";case"M":return F||J?"mesiac":"mesiacom";case"MM":return F||J?X+(x(R)?"mesiace":"mesiacov"):X+"mesiacmi";case"y":return F||J?"rok":"rokom";case"yy":return F||J?X+(x(R)?"roky":"rokov"):X+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8106:function(j,Y,T){!function(w){"use strict";function i(x,S,P,R){var F=x+" ";switch(P){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return F+(1===x?S?"sekundo":"sekundi":2===x?S||R?"sekundi":"sekundah":x<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return F+(1===x?S?"minuta":"minuto":2===x?S||R?"minuti":"minutama":x<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return F+(1===x?S?"ura":"uro":2===x?S||R?"uri":"urama":x<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return F+(1===x?S||R?"dan":"dnem":2===x?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return F+(1===x?S||R?"mesec":"mesecem":2===x?S||R?"meseca":"mesecema":x<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return F+(1===x?S||R?"leto":"letom":2===x?S||R?"leti":"letoma":x<5?S||R?"leta":"leti":S||R?"let":"leti")}}w.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},8799:function(j,Y,T){!function(w){"use strict";w.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,x,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},2872:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,R){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===q?x+" \u0433\u043e\u0434\u0438\u043d\u0430":x+" "+q)}};w.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},7949:function(j,Y,T){!function(w){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(x,S){return x%10>=1&&x%10<=4&&(x%100<10||x%100>=20)?x%10==1?S[0]:S[1]:S[2]},translate:function(x,S,P,R){var q,F=i.words[P];return 1===P.length?"y"===P&&S?"jedna godina":R||S?F[0]:F[1]:(q=i.correctGrammaticalCase(x,F),"yy"===P&&S&&"godinu"===q?x+" godina":x+" "+q)}};w.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(T(5439))},6167:function(j,Y,T){!function(w){"use strict";w.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,x,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,x){return 12===E&&(E=0),"ekuseni"===x?E:"emini"===x?E>=11?E:E+12:"entsambama"===x||"ebusuku"===x?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(T(5439))},9713:function(j,Y,T){!function(w){"use strict";w.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?":e":1===x||2===x?":a":":e")},week:{dow:1,doy:4}})}(T(5439))},1982:function(j,Y,T){!function(w){"use strict";w.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(T(5439))},2732:function(j,Y,T){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,R){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(T(5439))},3636:function(j,Y,T){!function(w){"use strict";w.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===x?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===x?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===x?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===x?E+12:void 0},meridiem:function(E,x,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(T(5439))},2115:function(j,Y,T){!function(w){"use strict";w.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9801:function(j,Y,T){!function(w){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};w.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(x,S){return 12===x&&(x=0),"\u0448\u0430\u0431"===S?x<4?x:x+12:"\u0441\u0443\u0431\u04b3"===S?x:"\u0440\u04ef\u0437"===S?x>=11?x:x+12:"\u0431\u0435\u0433\u043e\u04b3"===S?x+12:void 0},meridiem:function(x,S,P){return x<4?"\u0448\u0430\u0431":x<11?"\u0441\u0443\u0431\u04b3":x<16?"\u0440\u04ef\u0437":x<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(x){return x+(i[x]||i[x%10]||i[x>=100?100:null])},week:{dow:1,doy:7}})}(T(5439))},2868:function(j,Y,T){!function(w){"use strict";w.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,x,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(T(5439))},1310:function(j,Y,T){!function(w){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};w.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'unjy";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},2360:function(j,Y,T){!function(w){"use strict";w.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},6645:function(j,Y,T){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(F,q,J,X){var ne=function P(F){var q=Math.floor(F%1e3/100),J=Math.floor(F%100/10),X=F%10,ne="";return q>0&&(ne+=i[q]+"vatlh"),J>0&&(ne+=(""!==ne?" ":"")+i[J]+"maH"),X>0&&(ne+=(""!==ne?" ":"")+i[X]),""===ne?"pagh":ne}(F);switch(J){case"ss":return ne+" lup";case"mm":return ne+" tup";case"hh":return ne+" rep";case"dd":return ne+" jaj";case"MM":return ne+" jar";case"yy":return ne+" DIS"}}w.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"leS":-1!==F.indexOf("jar")?q.slice(0,-3)+"waQ":-1!==F.indexOf("DIS")?q.slice(0,-3)+"nem":q+" pIq"},past:function x(F){var q=F;return-1!==F.indexOf("jaj")?q.slice(0,-3)+"Hu\u2019":-1!==F.indexOf("jar")?q.slice(0,-3)+"wen":-1!==F.indexOf("DIS")?q.slice(0,-3)+"ben":q+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},8374:function(j,Y,T){!function(w){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};w.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(x,S,P){return x<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(x){return"\xf6s"===x||"\xd6S"===x},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(x,S){switch(S){case"d":case"D":case"Do":case"DD":return x;default:if(0===x)return x+"'\u0131nc\u0131";var P=x%10;return x+(i[P]||i[x%100-P]||i[x>=100?100:null])}},week:{dow:1,doy:7}})}(T(5439))},256:function(j,Y,T){!function(w){"use strict";function E(x,S,P,R){var F={s:["viensas secunds","'iensas secunds"],ss:[x+" secunds",x+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[x+" m\xeduts",x+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[x+" \xfeoras",x+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[x+" ziuas",x+" ziuas"],M:["'n mes","'iens mes"],MM:[x+" mesen",x+" mesen"],y:["'n ar","'iens ar"],yy:[x+" ars",x+" ars"]};return R||S?F[P][0]:F[P][1]}w.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(x){return"d'o"===x.toLowerCase()},meridiem:function(x,S,P){return x>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(T(5439))},1631:function(j,Y,T){!function(w){"use strict";w.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(T(5439))},1595:function(j,Y,T){!function(w){"use strict";w.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(T(5439))},6050:function(j,Y,T){!function(w){"use strict";w.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===x||"\u0633\u06d5\u06be\u06d5\u0631"===x||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===x?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===x||"\u0643\u06d5\u0686"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(T(5439))},5610:function(j,Y,T){!function(w){"use strict";function E(R,F,q){return"m"===q?F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===q?F?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,F){var q=R.split("_");return F%10==1&&F%100!=11?q[0]:F%10>=2&&F%10<=4&&(F%100<10||F%100>=20)?q[1]:q[2]}({ss:F?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:F?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:F?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[q],+R)}function S(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function x(R,F){var q={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===R?q.nominative.slice(1,7).concat(q.nominative.slice(0,1)):R?q[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(F)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(F)?"genitive":"nominative"][R.day()]:q.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,F,q){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,F){switch(F){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(T(5439))},6077:function(j,Y,T){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(T(5439))},2207:function(j,Y,T){!function(w){"use strict";w.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(T(5439))},2862:function(j,Y,T){!function(w){"use strict";w.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(T(5439))},8093:function(j,Y,T){!function(w){"use strict";w.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,x,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(T(5439))},5590:function(j,Y,T){!function(w){"use strict";w.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var x=E%10;return E+(1==~~(E%100/10)?"th":1===x?"st":2===x?"nd":3===x?"rd":"th")},week:{dow:1,doy:4}})}(T(5439))},9058:function(j,Y,T){!function(w){"use strict";w.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(T(5439))},7908:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:E>=11?E:E+12},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(T(5439))},8867:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},1133:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},3291:function(j,Y,T){!function(w){"use strict";w.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,x){return 12===E&&(E=0),"\u51cc\u6668"===x||"\u65e9\u4e0a"===x||"\u4e0a\u5348"===x?E:"\u4e2d\u5348"===x?E>=11?E:E+12:"\u4e0b\u5348"===x||"\u665a\u4e0a"===x?E+12:void 0},meridiem:function(E,x,S){var P=100*E+x;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,x){switch(x){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(T(5439))},5439:function(j,Y,T){(j=T.nmd(j)).exports=function(){"use strict";var w,ge;function i(){return w.apply(null,arguments)}function x(v){return v instanceof Array||"[object Array]"===Object.prototype.toString.call(v)}function S(v){return null!=v&&"[object Object]"===Object.prototype.toString.call(v)}function P(v,H){return Object.prototype.hasOwnProperty.call(v,H)}function R(v){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(v).length;var H;for(H in v)if(P(v,H))return!1;return!0}function F(v){return void 0===v}function q(v){return"number"==typeof v||"[object Number]"===Object.prototype.toString.call(v)}function J(v){return v instanceof Date||"[object Date]"===Object.prototype.toString.call(v)}function X(v,H){var z,O=[],$=v.length;for(z=0;z<$;++z)O.push(H(v[z],z));return O}function ne(v,H){for(var O in H)P(H,O)&&(v[O]=H[O]);return P(H,"toString")&&(v.toString=H.toString),P(H,"valueOf")&&(v.valueOf=H.valueOf),v}function le(v,H,O,z){return rr(v,H,O,z,!0).utc()}function ie(v){return null==v._pf&&(v._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),v._pf}function Ae(v){if(null==v._isValid){var H=ie(v),O=ge.call(H.parsedDateParts,function($){return null!=$}),z=!isNaN(v._d.getTime())&&H.overflow<0&&!H.empty&&!H.invalidEra&&!H.invalidMonth&&!H.invalidWeekday&&!H.weekdayMismatch&&!H.nullInput&&!H.invalidFormat&&!H.userInvalidated&&(!H.meridiem||H.meridiem&&O);if(v._strict&&(z=z&&0===H.charsLeftOver&&0===H.unusedTokens.length&&void 0===H.bigHour),null!=Object.isFrozen&&Object.isFrozen(v))return z;v._isValid=z}return v._isValid}function ve(v){var H=le(NaN);return null!=v?ne(ie(H),v):ie(H).userInvalidated=!0,H}ge=Array.prototype.some?Array.prototype.some:function(v){var z,H=Object(this),O=H.length>>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var ai=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ke=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ki={},Sn={};function Ge(v,H,O,z){var $=z;"string"==typeof z&&($=function(){return this[z]()}),v&&(Sn[v]=$),H&&(Sn[H[0]]=function(){return Ft($.apply(this,arguments),H[1],H[2])}),O&&(Sn[O]=function(){return this.localeData().ordinal($.apply(this,arguments),v)})}function si(v){return v.match(/\[[\s\S]/)?v.replace(/^\[|\]$/g,""):v.replace(/\\/g,"")}function Ci(v,H){return v.isValid()?(H=En(H,v.localeData()),Ki[H]=Ki[H]||function jn(v){var O,z,H=v.match(ai);for(O=0,z=H.length;O=0&&Ke.test(v);)v=v.replace(Ke,z),Ke.lastIndex=0,O-=1;return v}var st={};function ot(v,H){var O=v.toLowerCase();st[O]=st[O+"s"]=st[H]=v}function Jt(v){return"string"==typeof v?st[v]||st[v.toLowerCase()]:void 0}function rn(v){var O,z,H={};for(z in v)P(v,z)&&(O=Jt(z))&&(H[O]=v[z]);return H}var oi={};function ei(v,H){oi[v]=H}function se(v){return v%4==0&&v%100!=0||v%400==0}function te(v){return v<0?Math.ceil(v)||0:Math.floor(v)}function ue(v){var H=+v,O=0;return 0!==H&&isFinite(H)&&(O=te(H)),O}function Re(v,H){return function(O){return null!=O?(Ot(this,v,O),i.updateOffset(this,H),this):bt(this,v)}}function bt(v,H){return v.isValid()?v._d["get"+(v._isUTC?"UTC":"")+H]():NaN}function Ot(v,H,O){v.isValid()&&!isNaN(O)&&("FullYear"===H&&se(v.year())&&1===v.month()&&29===v.date()?(O=ue(O),v._d["set"+(v._isUTC?"UTC":"")+H](O,v.month(),qn(O,v.month()))):v._d["set"+(v._isUTC?"UTC":"")+H](O))}var an,ji=/\d/,Ht=/\d\d/,mr=/\d{3}/,St=/\d{4}/,Gt=/[+-]?\d{6}/,vt=/\d\d?/,er=/\d\d\d\d?/,da=/\d\d\d\d\d\d?/,Ui=/\d{1,3}/,qr=/\d{1,4}/,xr=/[+-]?\d{1,6}/,gr=/\d+/,ua=/[+-]?\d+/,hd=/Z|[+-]\d\d:?\d\d/gi,Ms=/Z|[+-]\d\d(?::?\d\d)?/gi,en=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ue(v,H,O){an[v]=he(H)?H:function(z,$){return z&&O?O:H}}function Gi(v,H){return P(an,v)?an[v](H._strict,H._locale):new RegExp(function et(v){return ct(v.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,$,ce){return O||z||$||ce}))}(v))}function ct(v){return v.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}an={};var pi={};function M(v,H){var O,$,z=H;for("string"==typeof v&&(v=[v]),q(H)&&(z=function(ce,we){we[H]=ue(ce)}),$=v.length,O=0;O<$;O++)pi[v[O]]=z}function Kt(v,H){M(v,function(O,z,$,ce){$._w=$._w||{},H(O,$._w,$,ce)})}function zt(v,H,O){null!=H&&P(pi,v)&&pi[v](H,O._a,O,v)}var vi;function qn(v,H){if(isNaN(v)||isNaN(H))return NaN;var O=function gn(v,H){return(v%H+H)%H}(H,12);return v+=(H-O)/12,1===O?se(v)?29:28:31-O%7%2}vi=Array.prototype.indexOf?Array.prototype.indexOf:function(v){var H;for(H=0;H68?1900:2e3)};var Ya=Re("FullYear",!0);function ir(v,H,O,z,$,ce,we){var ft;return v<100&&v>=0?(ft=new Date(v+400,H,O,z,$,ce,we),isFinite(ft.getFullYear())&&ft.setFullYear(v)):ft=new Date(v,H,O,z,$,ce,we),ft}function Cs(v){var H,O;return v<100&&v>=0?((O=Array.prototype.slice.call(arguments))[0]=v+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(v)):H=new Date(Date.UTC.apply(null,arguments)),H}function pd(v,H,O){var z=7+H-O;return-(7+Cs(v,0,z).getUTCDay()-H)%7+z-1}function rc(v,H,O,z,$){var jt,Mi,ft=1+7*(H-1)+(7+O-z)%7+pd(v,z,$);return ft<=0?Mi=pa(jt=v-1)+ft:ft>pa(v)?(jt=v+1,Mi=ft-pa(v)):(jt=v,Mi=ft),{year:jt,dayOfYear:Mi}}function po(v,H,O){var ce,we,z=pd(v.year(),H,O),$=Math.floor((v.dayOfYear()-z-1)/7)+1;return $<1?ce=$+Yr(we=v.year()-1,H,O):$>Yr(v.year(),H,O)?(ce=$-Yr(v.year(),H,O),we=v.year()+1):(we=v.year(),ce=$),{week:ce,year:we}}function Yr(v,H,O){var z=pd(v,H,O),$=pd(v+1,H,O);return(pa(v)-z+$)/7}Ge("w",["ww",2],"wo","week"),Ge("W",["WW",2],"Wo","isoWeek"),ot("week","w"),ot("isoWeek","W"),ei("week",5),ei("isoWeek",5),Ue("w",vt),Ue("ww",vt,Ht),Ue("W",vt),Ue("WW",vt,Ht),Kt(["w","ww","W","WW"],function(v,H,O,z){H[z.substr(0,1)]=ue(v)});function fd(v,H){return v.slice(H,7).concat(v.slice(0,H))}Ge("d",0,"do","day"),Ge("dd",0,0,function(v){return this.localeData().weekdaysMin(this,v)}),Ge("ddd",0,0,function(v){return this.localeData().weekdaysShort(this,v)}),Ge("dddd",0,0,function(v){return this.localeData().weekdays(this,v)}),Ge("e",0,0,"weekday"),Ge("E",0,0,"isoWeekday"),ot("day","d"),ot("weekday","e"),ot("isoWeekday","E"),ei("day",11),ei("weekday",11),ei("isoWeekday",11),Ue("d",vt),Ue("e",vt),Ue("E",vt),Ue("dd",function(v,H){return H.weekdaysMinRegex(v)}),Ue("ddd",function(v,H){return H.weekdaysShortRegex(v)}),Ue("dddd",function(v,H){return H.weekdaysRegex(v)}),Kt(["dd","ddd","dddd"],function(v,H,O,z){var $=O._locale.weekdaysParse(v,z,O._strict);null!=$?H.d=$:ie(O).invalidWeekday=v}),Kt(["d","e","E"],function(v,H,O,z){H[z]=ue(v)});var cf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qu="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),df=en,It=en,Ua=en;function De(v,H,O){var z,$,ce,we=v.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)ce=le([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(ce,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(ce,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(ce,"").toLocaleLowerCase();return O?"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"dddd"===H?-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:"ddd"===H?-1!==($=vi.call(this._shortWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._minWeekdaysParse,we))?$:null:-1!==($=vi.call(this._minWeekdaysParse,we))||-1!==($=vi.call(this._weekdaysParse,we))||-1!==($=vi.call(this._shortWeekdaysParse,we))?$:null}function il(){function v(on,Or){return Or.length-on.length}var ce,we,ft,jt,Mi,H=[],O=[],z=[],$=[];for(ce=0;ce<7;ce++)we=le([2e3,1]).day(ce),ft=ct(this.weekdaysMin(we,"")),jt=ct(this.weekdaysShort(we,"")),Mi=ct(this.weekdays(we,"")),H.push(ft),O.push(jt),z.push(Mi),$.push(ft),$.push(jt),$.push(Mi);H.sort(v),O.sort(v),z.sort(v),$.sort(v),this._weekdaysRegex=new RegExp("^("+$.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function Zn(){return this.hours()%12||12}function Bt(v,H){Ge(v,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Wn(v,H){return H._meridiemParse}Ge("H",["HH",2],0,"hour"),Ge("h",["hh",2],0,Zn),Ge("k",["kk",2],0,function Ur(){return this.hours()||24}),Ge("hmm",0,0,function(){return""+Zn.apply(this)+Ft(this.minutes(),2)}),Ge("hmmss",0,0,function(){return""+Zn.apply(this)+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Ge("Hmm",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)}),Ge("Hmmss",0,0,function(){return""+this.hours()+Ft(this.minutes(),2)+Ft(this.seconds(),2)}),Bt("a",!0),Bt("A",!1),ot("hour","h"),ei("hour",13),Ue("a",Wn),Ue("A",Wn),Ue("H",vt),Ue("h",vt),Ue("k",vt),Ue("HH",vt,Ht),Ue("hh",vt,Ht),Ue("kk",vt,Ht),Ue("hmm",er),Ue("hmmss",da),Ue("Hmm",er),Ue("Hmmss",da),M(["H","HH"],3),M(["k","kk"],function(v,H,O){var z=ue(v);H[3]=24===z?0:z}),M(["a","A"],function(v,H,O){O._isPm=O._locale.isPM(v),O._meridiem=v}),M(["h","hh"],function(v,H,O){H[3]=ue(v),ie(O).bigHour=!0}),M("hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z)),ie(O).bigHour=!0}),M("hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($)),ie(O).bigHour=!0}),M("Hmm",function(v,H,O){var z=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z))}),M("Hmmss",function(v,H,O){var z=v.length-4,$=v.length-2;H[3]=ue(v.substr(0,z)),H[4]=ue(v.substr(z,2)),H[5]=ue(v.substr($))});var ac=Re("Hours",!0);var ti,Nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Yn,monthsShort:On,week:{dow:0,doy:6},weekdays:cf,weekdaysMin:Qu,weekdaysShort:Xu,meridiemParse:/[ap]\.?m?\.?/i},dt={},fo={};function Ti(v,H){var O,z=Math.min(v.length,H.length);for(O=0;O0;){if($=li(ce.slice(0,O).join("-")))return $;if(z&&z.length>=O&&Ti(ce,z)>=O-1)break;O--}H++}return ti}(v)}function Me(v){var H,O=v._a;return O&&-2===ie(v).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>qn(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ie(v)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ie(v)._overflowWeeks&&-1===H&&(H=7),ie(v)._overflowWeekday&&-1===H&&(H=8),ie(v).overflow=H),v}var _e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xi=/Z|[+-]\d\d(?::?\d\d)?/,ii=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ci=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],tt=/^\/?Date\((-?\d+)/i,sn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,gi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _n(v){var H,O,ce,we,ft,jt,z=v._i,$=_e.exec(z)||nt.exec(z),Mi=ii.length,on=ci.length;if($){for(ie(v).iso=!0,H=0,O=Mi;H7)&&(jt=!0)):(ce=v._locale._week.dow,we=v._locale._week.doy,Mi=po(di(),ce,we),O=Bi(H.gg,v._a[0],Mi.year),z=Bi(H.w,Mi.week),null!=H.d?(($=H.d)<0||$>6)&&(jt=!0):null!=H.e?($=H.e+ce,(H.e<0||H.e>6)&&(jt=!0)):$=ce),z<1||z>Yr(O,ce,we)?ie(v)._overflowWeeks=!0:null!=jt?ie(v)._overflowWeekday=!0:(ft=rc(O,z,$,ce,we),v._a[0]=ft.year,v._dayOfYear=ft.dayOfYear)}(v),null!=v._dayOfYear&&(we=Bi(v._a[0],$[0]),(v._dayOfYear>pa(we)||0===v._dayOfYear)&&(ie(v)._overflowDayOfYear=!0),O=Cs(we,0,v._dayOfYear),v._a[1]=O.getUTCMonth(),v._a[2]=O.getUTCDate()),H=0;H<3&&null==v._a[H];++H)v._a[H]=z[H]=$[H];for(;H<7;H++)v._a[H]=z[H]=v._a[H]??(2===H?1:0);24===v._a[3]&&0===v._a[4]&&0===v._a[5]&&0===v._a[6]&&(v._nextDay=!0,v._a[3]=0),v._d=(v._useUTC?Cs:ir).apply(null,z),ce=v._useUTC?v._d.getUTCDay():v._d.getDay(),null!=v._tzm&&v._d.setUTCMinutes(v._d.getUTCMinutes()-v._tzm),v._nextDay&&(v._a[3]=24),v._w&&typeof v._w.d<"u"&&v._w.d!==ce&&(ie(v).weekdayMismatch=!0)}}function sc(v){if(v._f!==i.ISO_8601)if(v._f!==i.RFC_2822){v._a=[],ie(v).empty=!0;var O,z,$,ce,we,Mi,on,H=""+v._i,ft=H.length,jt=0;for(on=($=En(v._f,v._locale).match(ai)||[]).length,O=0;O0&&ie(v).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),jt+=z.length),Sn[ce]?(z?ie(v).empty=!1:ie(v).unusedTokens.push(ce),zt(ce,z,v)):v._strict&&!z&&ie(v).unusedTokens.push(ce);ie(v).charsLeftOver=ft-jt,H.length>0&&ie(v).unusedInput.push(H),v._a[3]<=12&&!0===ie(v).bigHour&&v._a[3]>0&&(ie(v).bigHour=void 0),ie(v).parsedDateParts=v._a.slice(0),ie(v).meridiem=v._meridiem,v._a[3]=function uf(v,H,O){var z;return null==O?H:null!=v.meridiemHour?v.meridiemHour(H,O):(null!=v.isPM&&((z=v.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(v._locale,v._a[3],v._meridiem),null!==(Mi=ie(v).era)&&(v._a[0]=v._locale.erasConvertYear(Mi,v._a[0])),rl(v),Me(v)}else mo(v);else _n(v)}function lc(v){var H=v._i,O=v._f;return v._locale=v._locale||G(v._l),null===H||void 0===O&&""===H?ve({nullInput:!0}):("string"==typeof H&&(v._i=H=v._locale.preparse(H)),Se(H)?new Te(Me(H)):(J(H)?v._d=H:x(O)?function oc(v){var H,O,z,$,ce,we,ft=!1,jt=v._f.length;if(0===jt)return ie(v).invalidFormat=!0,void(v._d=new Date(NaN));for($=0;$this?this:v:ve()});function Ku(v,H){var O,z;if(1===H.length&&x(H[0])&&(H=H[0]),!H.length)return di();for(O=H[0],z=1;z=0?new Date(v+400,H,O)-fl:new Date(v,H,O).valueOf()}function ml(v,H,O){return v<100&&v>=0?Date.UTC(v+400,H,O)-fl:Date.UTC(v,H,O)}function Ed(v,H){return H.erasAbbrRegex(v)}function Ka(){var $,ce,v=[],H=[],O=[],z=[],we=this.eras();for($=0,ce=we.length;$(ce=Yr(v,z,$))&&(H=ce),wo.call(this,v,H,O,z,$))}function wo(v,H,O,z,$){var ce=rc(v,H,O,z,$),we=Cs(ce.year,0,ce.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ge("N",0,0,"eraAbbr"),Ge("NN",0,0,"eraAbbr"),Ge("NNN",0,0,"eraAbbr"),Ge("NNNN",0,0,"eraName"),Ge("NNNNN",0,0,"eraNarrow"),Ge("y",["y",1],"yo","eraYear"),Ge("y",["yy",2],0,"eraYear"),Ge("y",["yyy",3],0,"eraYear"),Ge("y",["yyyy",4],0,"eraYear"),Ue("N",Ed),Ue("NN",Ed),Ue("NNN",Ed),Ue("NNNN",function yg(v,H){return H.erasNameRegex(v)}),Ue("NNNNN",function ya(v,H){return H.erasNarrowRegex(v)}),M(["N","NN","NNN","NNNN","NNNNN"],function(v,H,O,z){var $=O._locale.erasParse(v,z,O._strict);$?ie(O).era=$:ie(O).invalidEra=v}),Ue("y",gr),Ue("yy",gr),Ue("yyy",gr),Ue("yyyy",gr),Ue("yo",function Dd(v,H){return H._eraYearOrdinalRegex||gr}),M(["y","yy","yyy","yyyy"],0),M(["yo"],function(v,H,O,z){var $;O._locale._eraYearOrdinalRegex&&($=v.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(v,$):parseInt(v,10)}),Ge(0,["gg",2],0,function(){return this.weekYear()%100}),Ge(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),ot("weekYear","gg"),ot("isoWeekYear","GG"),ei("weekYear",1),ei("isoWeekYear",1),Ue("G",ua),Ue("g",ua),Ue("GG",vt,Ht),Ue("gg",vt,Ht),Ue("GGGG",qr,St),Ue("gggg",qr,St),Ue("GGGGG",xr,Gt),Ue("ggggg",xr,Gt),Kt(["gggg","ggggg","GGGG","GGGGG"],function(v,H,O,z){H[z.substr(0,2)]=ue(v)}),Kt(["gg","GG"],function(v,H,O,z){H[z]=i.parseTwoDigitYear(v)}),Ge("Q",0,"Qo","quarter"),ot("quarter","Q"),ei("quarter",7),Ue("Q",ji),M("Q",function(v,H){H[1]=3*(ue(v)-1)}),Ge("D",["DD",2],"Do","date"),ot("date","D"),ei("date",9),Ue("D",vt),Ue("DD",vt,Ht),Ue("Do",function(v,H){return v?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),M(["D","DD"],2),M("Do",function(v,H){H[2]=ue(v.match(vt)[0])});var Ld=Re("Date",!0);Ge("DDD",["DDDD",3],"DDDo","dayOfYear"),ot("dayOfYear","DDD"),ei("dayOfYear",4),Ue("DDD",Ui),Ue("DDDD",mr),M(["DDD","DDDD"],function(v,H,O){O._dayOfYear=ue(v)}),Ge("m",["mm",2],0,"minute"),ot("minute","m"),ei("minute",14),Ue("m",vt),Ue("mm",vt,Ht),M(["m","mm"],4);var Pd=Re("Minutes",!1);Ge("s",["ss",2],0,"second"),ot("second","s"),ei("second",15),Ue("s",vt),Ue("ss",vt,Ht),M(["s","ss"],5);var ts,Cc,Pr=Re("Seconds",!1);for(Ge("S",0,0,function(){return~~(this.millisecond()/100)}),Ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ge(0,["SSS",3],0,"millisecond"),Ge(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ge(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ge(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ge(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ge(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ge(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ot("millisecond","ms"),ei("millisecond",16),Ue("S",Ui,ji),Ue("SS",Ui,Ht),Ue("SSS",Ui,mr),ts="SSSS";ts.length<=9;ts+="S")Ue(ts,gr);function ar(v,H){H[6]=ue(1e3*("0."+v))}for(ts="S";ts.length<=9;ts+="S")M(ts,ar);Cc=Re("Milliseconds",!1),Ge("z",0,0,"zoneAbbr"),Ge("zz",0,0,"zoneName");var Fe=Te.prototype;function Al(v){return v}Fe.add=nh,Fe.calendar=function gc(v,H){1===arguments.length&&(arguments[0]?cl(arguments[0])?(v=arguments[0],H=void 0):_d(arguments[0])&&(H=arguments[0],v=void 0):(v=void 0,H=void 0));var O=v||di(),z=Hn(O,this).startOf("day"),$=i.calendarFormat(this,z)||"sameElse",ce=H&&(he(H[$])?H[$].call(this,O):H[$]);return this.format(ce||this.localeData().calendar($,this,di(O)))},Fe.clone=function bo(){return new Te(this)},Fe.diff=function bc(v,H,O){var z,$,ce;if(!this.isValid())return NaN;if(!(z=Hn(v,this)).isValid())return NaN;switch($=6e4*(z.utcOffset()-this.utcOffset()),H=Jt(H)){case"year":ce=Jn(this,z)/12;break;case"month":ce=Jn(this,z);break;case"quarter":ce=Jn(this,z)/3;break;case"second":ce=(this-z)/1e3;break;case"minute":ce=(this-z)/6e4;break;case"hour":ce=(this-z)/36e5;break;case"day":ce=(this-z-$)/864e5;break;case"week":ce=(this-z-$)/6048e5;break;default:ce=this-z}return O?ce:te(ce)},Fe.endOf=function Lr(v){var H,O;if(void 0===(v=Jt(v))||"millisecond"===v||!this.isValid())return this;switch(O=this._isUTC?ml:wc,v){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=pl-Hr(H+(this._isUTC?0:this.utcOffset()*Hs),pl)-1;break;case"minute":H=this._d.valueOf(),H+=Hs-Hr(H,Hs)-1;break;case"second":H=this._d.valueOf(),H+=1e3-Hr(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Fe.format=function ul(v){v||(v=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Ci(this,v);return this.localeData().postformat(H)},Fe.from=function Ad(v,H){return this.isValid()&&(Se(v)&&v.isValid()||di(v).isValid())?bn({to:this,from:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.fromNow=function yd(v){return this.from(di(),v)},Fe.to=function yc(v,H){return this.isValid()&&(Se(v)&&v.isValid()||di(v).isValid())?bn({from:this,to:v}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Fe.toNow=function Mc(v){return this.to(di(),v)},Fe.get=function it(v){return he(this[v=Jt(v)])?this[v]():this},Fe.invalidAt=function Xa(){return ie(this).overflow},Fe.isAfter=function Ao(v,H){var O=Se(v)?v:di(v);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Jt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?Ci(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Ci(O,"Z")):Ci(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Fe.inspect=function _f(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,v="moment",H="";return this.isLocal()||(v=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+v+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Fe.toJSON=function xd(){return this.isValid()?this.toISOString():null},Fe.toString=function Ac(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Fe.unix=function Cd(){return Math.floor(this.valueOf()/1e3)},Fe.valueOf=function lh(){return this._d.valueOf()-6e4*(this._offset||0)},Fe.creationData=function Sd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Fe.eraName=function _l(){var v,H,O,z=this.localeData().eras();for(v=0,H=z.length;vthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Fe.isLocal=function Ds(){return!!this.isValid()&&!this._isUTC},Fe.isUtcOffset=function hc(){return!!this.isValid()&&this._isUTC},Fe.isUtc=Zr,Fe.isUTC=Zr,Fe.zoneAbbr=function kd(){return this._isUTC?"UTC":""},Fe.zoneName=function Ps(){return this._isUTC?"Coordinated Universal Time":""},Fe.dates=Be("dates accessor is deprecated. Use date instead.",Ld),Fe.months=Be("months accessor is deprecated. Use month instead",_r),Fe.years=Be("years accessor is deprecated. Use year instead",Ya),Fe.zone=Be("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ol(v,H){return null!=v?("string"!=typeof v&&(v=-v),this.utcOffset(v,H),this):-this.utcOffset()}),Fe.isDSTShifted=Be("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function _o(){if(!F(this._isDSTShifted))return this._isDSTShifted;var H,v={};return He(v,this),(v=lc(v))._a?(H=v._isUTC?le(v._a):di(v._a),this._isDSTShifted=this.isValid()&&function dc(v,H,O){var we,z=Math.min(v.length,H.length),$=Math.abs(v.length-H.length),ce=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var $t=ye.prototype;function vc(v,H,O,z){var $=G(),ce=le().set(z,H);return $[O](ce,v)}function hh(v,H,O){if(q(v)&&(H=v,v=void 0),v=v||"",null!=H)return vc(v,H,O,"month");var z,$=[];for(z=0;z<12;z++)$[z]=vc(v,z,O,"month");return $}function ks(v,H,O,z){"boolean"==typeof v?(q(H)&&(O=H,H=void 0),H=H||""):(O=H=v,v=!1,q(H)&&(O=H,H=void 0),H=H||"");var we,$=G(),ce=v?$._week.dow:0,ft=[];if(null!=O)return vc(H,(O+ce)%7,z,"day");for(we=0;we<7;we++)ft[we]=vc(H,(we+ce)%7,z,"day");return ft}$t.calendar=function mt(v,H,O){var z=this._calendar[v]||this._calendar.sameElse;return he(z)?z.call(H,O):z},$t.longDateFormat=function mn(v){var H=this._longDateFormat[v],O=this._longDateFormat[v.toUpperCase()];return H||!O?H:(this._longDateFormat[v]=O.match(ai).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[v])},$t.invalidDate=function ca(){return this._invalidDate},$t.ordinal=function de(v){return this._ordinal.replace("%d",v)},$t.preparse=Al,$t.postformat=Al,$t.relativeTime=function be(v,H,O,z){var $=this._relativeTime[O];return he($)?$(v,H,O,z):$.replace(/%d/i,v)},$t.pastFuture=function qe(v,H){var O=this._relativeTime[v>0?"future":"past"];return he(O)?O(H):O.replace(/%s/i,H)},$t.set=function me(v){var H,O;for(O in v)P(v,O)&&(he(H=v[O])?this[O]=H:this["_"+O]=H);this._config=v,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},$t.eras=function gl(v,H){var O,z,$,ce=this._eras||G("en")._eras;for(O=0,z=ce.length;O=0)return ce[z]},$t.erasConvertYear=function bg(v,H){var O=v.since<=v.until?1:-1;return void 0===H?i(v.since).year():i(v.since).year()+(H-v.offset)*O},$t.erasAbbrRegex=function Af(v){return P(this,"_erasAbbrRegex")||Ka.call(this),v?this._erasAbbrRegex:this._erasRegex},$t.erasNameRegex=function bf(v){return P(this,"_erasNameRegex")||Ka.call(this),v?this._erasNameRegex:this._erasRegex},$t.erasNarrowRegex=function yf(v){return P(this,"_erasNarrowRegex")||Ka.call(this),v?this._erasNarrowRegex:this._erasRegex},$t.months=function ja(v,H){return v?x(this._months)?this._months[v.month()]:this._months[(this._months.isFormat||tl).test(H)?"format":"standalone"][v.month()]:x(this._months)?this._months:this._months.standalone},$t.monthsShort=function uo(v,H){return v?x(this._monthsShort)?this._monthsShort[v.month()]:this._monthsShort[tl.test(H)?"format":"standalone"][v.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},$t.monthsParse=function qa(v,H,O){var z,$,ce;if(this._monthsParseExact)return ho.call(this,v,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if($=le([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months($,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort($,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(ce="^"+this.months($,"")+"|^"+this.monthsShort($,""),this._monthsParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(v))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(v))return z;if(!O&&this._monthsParse[z].test(v))return z}},$t.monthsRegex=function In(v){return this._monthsParseExact?(P(this,"_monthsRegex")||tr.call(this),v?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=nc),this._monthsStrictRegex&&v?this._monthsStrictRegex:this._monthsRegex)},$t.monthsShortRegex=function Zu(v){return this._monthsParseExact?(P(this,"_monthsRegex")||tr.call(this),v?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=fi),this._monthsShortStrictRegex&&v?this._monthsShortStrictRegex:this._monthsShortRegex)},$t.week=function nf(v){return po(v,this._week.dow,this._week.doy).week},$t.firstDayOfYear=function rf(){return this._week.doy},$t.firstDayOfWeek=function Sr(){return this._week.dow},$t.weekdays=function Yt(v,H){var O=x(this._weekdays)?this._weekdays:this._weekdays[v&&!0!==v&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===v?fd(O,this._week.dow):v?O[v.day()]:O},$t.weekdaysMin=function $e(v){return!0===v?fd(this._weekdaysMin,this._week.dow):v?this._weekdaysMin[v.day()]:this._weekdaysMin},$t.weekdaysShort=function Dn(v){return!0===v?fd(this._weekdaysShort,this._week.dow):v?this._weekdaysShort[v.day()]:this._weekdaysShort},$t.weekdaysParse=function $i(v,H,O){var z,$,ce;if(this._weekdaysParseExact)return De.call(this,v,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if($=le([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays($,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort($,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin($,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(ce="^"+this.weekdays($,"")+"|^"+this.weekdaysShort($,"")+"|^"+this.weekdaysMin($,""),this._weekdaysParse[z]=new RegExp(ce.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(v))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(v))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(v))return z;if(!O&&this._weekdaysParse[z].test(v))return z}},$t.weekdaysRegex=function Bn(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||il.call(this),v?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=df),this._weekdaysStrictRegex&&v?this._weekdaysStrictRegex:this._weekdaysRegex)},$t.weekdaysShortRegex=function Wr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||il.call(this),v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&v?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},$t.weekdaysMinRegex=function nr(v){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||il.call(this),v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ua),this._weekdaysMinStrictRegex&&v?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},$t.isPM=function br(v){return"p"===(v+"").toLowerCase().charAt(0)},$t.meridiem=function At(v,H,O){return v>11?O?"pm":"PM":O?"am":"AM"},I("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(v){var H=v%10;return v+(1===ue(v%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Be("moment.lang is deprecated. Use moment.locale instead.",I),i.langData=Be("moment.langData is deprecated. Use moment.localeData instead.",G);var wr=Math.abs;function Tf(v,H,O,z){var $=bn(H,O);return v._milliseconds+=z*$._milliseconds,v._days+=z*$._days,v._months+=z*$._months,v._bubble()}function Ma(v){return v<0?Math.floor(v):Math.ceil(v)}function ph(v){return 4800*v/146097}function Wi(v){return 146097*v/4800}function Rr(v){return function(){return this.as(v)}}var Ml=Rr("ms"),Sf=Rr("s"),Ef=Rr("m"),Df=Rr("h"),Sc=Rr("d"),wl=Rr("w"),Ec=Rr("M"),Co=Rr("Q"),Od=Rr("y");function Qr(v){return function(){return this.isValid()?this._data[v]:NaN}}var gh=Qr("milliseconds"),Hf=Qr("seconds"),Dc=Qr("minutes"),Os=Qr("hours"),vo=Qr("days"),Hc=Qr("months"),Id=Qr("years");var sr=Math.round,To={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Lf(v,H,O,z,$){return $.relativeTime(H||1,!!O,v,z)}var xo=Math.abs;function Is(v){return(v>0)-(v<0)||+v}function Nd(){if(!this.isValid())return this.localeData().invalidDate();var z,$,ce,we,jt,Mi,on,Or,v=xo(this._milliseconds)/1e3,H=xo(this._days),O=xo(this._months),ft=this.asSeconds();return ft?(z=te(v/60),$=te(z/60),v%=60,z%=60,ce=te(O/12),O%=12,we=v?v.toFixed(3).replace(/\.?0+$/,""):"",jt=ft<0?"-":"",Mi=Is(this._months)!==Is(ft)?"-":"",on=Is(this._days)!==Is(ft)?"-":"",Or=Is(this._milliseconds)!==Is(ft)?"-":"",jt+"P"+(ce?Mi+ce+"Y":"")+(O?Mi+O+"M":"")+(H?on+H+"D":"")+($||z||v?"T":"")+($?Or+$+"H":"")+(z?Or+z+"M":"")+(v?Or+we+"S":"")):"P0D"}var Qt=go.prototype;return Qt.isValid=function sl(){return this._isValid},Qt.abs=function vf(){var v=this._data;return this._milliseconds=wr(this._milliseconds),this._days=wr(this._days),this._months=wr(this._months),v.milliseconds=wr(v.milliseconds),v.seconds=wr(v.seconds),v.minutes=wr(v.minutes),v.hours=wr(v.hours),v.months=wr(v.months),v.years=wr(v.years),this},Qt.add=function xf(v,H){return Tf(this,v,H,1)},Qt.subtract=function xc(v,H){return Tf(this,v,H,-1)},Qt.as=function fh(v){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(v=Jt(v))||"quarter"===v||"year"===v)switch(H=this._days+z/864e5,O=this._months+ph(H),v){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(Wi(this._months)),v){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+v)}},Qt.asMilliseconds=Ml,Qt.asSeconds=Sf,Qt.asMinutes=Ef,Qt.asHours=Df,Qt.asDays=Sc,Qt.asWeeks=wl,Qt.asMonths=Ec,Qt.asQuarters=Co,Qt.asYears=Od,Qt.valueOf=function mh(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN},Qt._bubble=function kr(){var $,ce,we,ft,jt,v=this._milliseconds,H=this._days,O=this._months,z=this._data;return v>=0&&H>=0&&O>=0||v<=0&&H<=0&&O<=0||(v+=864e5*Ma(Wi(O)+H),H=0,O=0),z.milliseconds=v%1e3,$=te(v/1e3),z.seconds=$%60,ce=te($/60),z.minutes=ce%60,we=te(ce/60),z.hours=we%24,H+=te(we/24),O+=jt=te(ph(H)),H-=Ma(Wi(jt)),ft=te(O/12),O%=12,z.days=H,z.months=O,z.years=ft,this},Qt.clone=function Cl(){return bn(this)},Qt.get=function vl(v){return v=Jt(v),this.isValid()?this[v+"s"]():NaN},Qt.milliseconds=gh,Qt.seconds=Hf,Qt.minutes=Dc,Qt.hours=Os,Qt.days=vo,Qt.weeks=function Bd(){return te(this.days()/7)},Qt.months=Hc,Qt.years=Id,Qt.humanize=function _h(v,H){if(!this.isValid())return this.localeData().invalidDate();var $,ce,O=!1,z=To;return"object"==typeof v&&(H=v,v=!1),"boolean"==typeof v&&(O=v),"object"==typeof H&&(z=Object.assign({},To,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),ce=function Pf(v,H,O,z){var $=bn(v).abs(),ce=sr($.as("s")),we=sr($.as("m")),ft=sr($.as("h")),jt=sr($.as("d")),Mi=sr($.as("M")),on=sr($.as("w")),Or=sr($.as("y")),Ir=ce<=O.ss&&["s",ce]||ce0,Ir[4]=z,Lf.apply(null,Ir)}(this,!O,z,$=this.localeData()),O&&(ce=$.pastFuture(+this,ce)),$.postformat(ce)},Qt.toISOString=Nd,Qt.toString=Nd,Qt.toJSON=Nd,Qt.locale=oh,Qt.localeData=wd,Qt.toIsoString=Be("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nd),Qt.lang=Md,Ge("X",0,0,"unix"),Ge("x",0,0,"valueOf"),Ue("x",ua),Ue("X",/[+-]?\d+(\.\d{1,3})?/),M("X",function(v,H,O){O._d=new Date(1e3*parseFloat(v))}),M("x",function(v,H,O){O._d=new Date(ue(v))}),i.version="2.29.4",function E(v){w=v}(di),i.fn=Fe,i.min=function ga(){return Ku("isBefore",[].slice.call(arguments,0))},i.max=function md(){return Ku("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=le,i.unix=function uh(v){return di(1e3*v)},i.months=function Rs(v,H){return hh(v,H,"months")},i.isDate=J,i.locale=I,i.invalid=ve,i.duration=bn,i.isMoment=Se,i.weekdays=function wg(v,H,O){return ks(v,H,O,"weekdays")},i.parseZone=function Cf(){return di.apply(null,arguments).parseZone()},i.localeData=G,i.isDuration=Za,i.monthsShort=function Tc(v,H){return hh(v,H,"monthsShort")},i.weekdaysMin=function Rd(v,H,O){return ks(v,H,O,"weekdaysMin")},i.defineLocale=U,i.updateLocale=function B(v,H){if(null!=H){var O,z,$=Nt;null!=dt[v]&&null!=dt[v].parentLocale?dt[v].set(Ce(dt[v]._config,H)):(null!=(z=li(v))&&($=z._config),H=Ce($,H),null==z&&(H.abbr=v),(O=new ye(H)).parentLocale=dt[v],dt[v]=O),I(v)}else null!=dt[v]&&(null!=dt[v].parentLocale?(dt[v]=dt[v].parentLocale,v===I()&&I(v)):null!=dt[v]&&delete dt[v]);return dt[v]},i.locales=function re(){return We(dt)},i.weekdaysShort=function yl(v,H,O){return ks(v,H,O,"weekdaysShort")},i.normalizeUnits=Jt,i.relativeTimeRounding=function kf(v){return void 0===v?sr:"function"==typeof v&&(sr=v,!0)},i.relativeTimeThreshold=function Lc(v,H){return void 0!==To[v]&&(void 0===H?To[v]:(To[v]=H,"s"===v&&(To.ss=H-1),!0))},i.calendarFormat=function mc(v,H){var O=v.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=Fe,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},9751:(j,Y,T)=>{"use strict";T.d(Y,{y:()=>F});var w=T(930),i=T(727),E=T(8822),x=T(9635),S=T(2416),P=T(576),R=T(2806);let F=(()=>{class ne{constructor(ae){ae&&(this._subscribe=ae)}lift(ae){const ie=new ne;return ie.source=this,ie.operator=ae,ie}subscribe(ae,ie,ge){const Ae=function X(ne){return ne&&ne instanceof w.Lv||function J(ne){return ne&&(0,P.m)(ne.next)&&(0,P.m)(ne.error)&&(0,P.m)(ne.complete)}(ne)&&(0,i.Nn)(ne)}(ae)?ae:new w.Hp(ae,ie,ge);return(0,R.x)(()=>{const{operator:ve,source:Xe}=this;Ae.add(ve?ve.call(Ae,Xe):Xe?this._subscribe(Ae):this._trySubscribe(Ae))}),Ae}_trySubscribe(ae){try{return this._subscribe(ae)}catch(ie){ae.error(ie)}}forEach(ae,ie){return new(ie=q(ie))((ge,Ae)=>{const ve=new w.Hp({next:Xe=>{try{ae(Xe)}catch(Qe){Ae(Qe),ve.unsubscribe()}},error:Ae,complete:ge});this.subscribe(ve)})}_subscribe(ae){var ie;return null===(ie=this.source)||void 0===ie?void 0:ie.subscribe(ae)}[E.L](){return this}pipe(...ae){return(0,x.U)(ae)(this)}toPromise(ae){return new(ae=q(ae))((ie,ge)=>{let Ae;this.subscribe(ve=>Ae=ve,ve=>ge(ve),()=>ie(Ae))})}}return ne.create=le=>new ne(le),ne})();function q(ne){var le;return null!==(le=ne??S.v.Promise)&&void 0!==le?le:Promise}},7579:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>R});var w=T(9751),i=T(727);const x=(0,T(3888).d)(q=>function(){q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=T(8737),P=T(2806);let R=(()=>{class q extends w.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(X){const ne=new F(this,this);return ne.operator=X,ne}_throwIfClosed(){if(this.closed)throw new x}next(X){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const ne of this.currentObservers)ne.next(X)}})}error(X){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=X;const{observers:ne}=this;for(;ne.length;)ne.shift().error(X)}})}complete(){(0,P.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:X}=this;for(;X.length;)X.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var X;return(null===(X=this.observers)||void 0===X?void 0:X.length)>0}_trySubscribe(X){return this._throwIfClosed(),super._trySubscribe(X)}_subscribe(X){return this._throwIfClosed(),this._checkFinalizedStatuses(X),this._innerSubscribe(X)}_innerSubscribe(X){const{hasError:ne,isStopped:le,observers:ae}=this;return ne||le?i.Lc:(this.currentObservers=null,ae.push(X),new i.w0(()=>{this.currentObservers=null,(0,S.P)(ae,X)}))}_checkFinalizedStatuses(X){const{hasError:ne,thrownError:le,isStopped:ae}=this;ne?X.error(le):ae&&X.complete()}asObservable(){const X=new w.y;return X.source=this,X}}return q.create=(J,X)=>new F(J,X),q})();class F extends R{constructor(J,X){super(),this.destination=J,this.source=X}next(J){var X,ne;null===(ne=null===(X=this.destination)||void 0===X?void 0:X.next)||void 0===ne||ne.call(X,J)}error(J){var X,ne;null===(ne=null===(X=this.destination)||void 0===X?void 0:X.error)||void 0===ne||ne.call(X,J)}complete(){var J,X;null===(X=null===(J=this.destination)||void 0===J?void 0:J.complete)||void 0===X||X.call(J)}_subscribe(J){var X,ne;return null!==(ne=null===(X=this.source)||void 0===X?void 0:X.subscribe(J))&&void 0!==ne?ne:i.Lc}}},930:(j,Y,T)=>{"use strict";T.d(Y,{Hp:()=>ge,Lv:()=>ne});var w=T(576),i=T(727),E=T(2416),x=T(7849),S=T(5032);const P=q("C",void 0,void 0);function q(He,Te,Se){return{kind:He,value:Te,error:Se}}var J=T(3410),X=T(2806);class ne extends i.w0{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,i.Nn)(Te)&&Te.add(this)):this.destination=Qe}static create(Te,Se,pt){return new ge(Te,Se,pt)}next(Te){this.isStopped?Xe(function F(He){return q("N",He,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?Xe(function R(He){return q("E",void 0,He)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?Xe(P,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function ae(He,Te){return le.call(He,Te)}class ie{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:Se}=this;if(Se.next)try{Se.next(Te)}catch(pt){Ae(pt)}}error(Te){const{partialObserver:Se}=this;if(Se.error)try{Se.error(Te)}catch(pt){Ae(pt)}else Ae(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(Se){Ae(Se)}}}class ge extends ne{constructor(Te,Se,pt){let Be;if(super(),(0,w.m)(Te)||!Te)Be={next:Te??void 0,error:Se??void 0,complete:pt??void 0};else{let Ve;this&&E.v.useDeprecatedNextContext?(Ve=Object.create(Te),Ve.unsubscribe=()=>this.unsubscribe(),Be={next:Te.next&&ae(Te.next,Ve),error:Te.error&&ae(Te.error,Ve),complete:Te.complete&&ae(Te.complete,Ve)}):Be=Te}this.destination=new ie(Be)}}function Ae(He){E.v.useDeprecatedSynchronousErrorHandling?(0,X.O)(He):(0,x.h)(He)}function Xe(He,Te){const{onStoppedNotification:Se}=E.v;Se&&J.z.setTimeout(()=>Se(He,Te))}const Qe={closed:!0,next:S.Z,error:function ve(He){throw He},complete:S.Z}},727:(j,Y,T)=>{"use strict";T.d(Y,{Lc:()=>P,w0:()=>S,Nn:()=>R});var w=T(576);const E=(0,T(3888).d)(q=>function(X){q(this),this.message=X?`${X.length} errors occurred during unsubscription:\n${X.map((ne,le)=>`${le+1}) ${ne.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=X});var x=T(8737);class S{constructor(J){this.initialTeardown=J,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let J;if(!this.closed){this.closed=!0;const{_parentage:X}=this;if(X)if(this._parentage=null,Array.isArray(X))for(const ae of X)ae.remove(this);else X.remove(this);const{initialTeardown:ne}=this;if((0,w.m)(ne))try{ne()}catch(ae){J=ae instanceof E?ae.errors:[ae]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const ae of le)try{F(ae)}catch(ie){J=J??[],ie instanceof E?J=[...J,...ie.errors]:J.push(ie)}}if(J)throw new E(J)}}add(J){var X;if(J&&J!==this)if(this.closed)F(J);else{if(J instanceof S){if(J.closed||J._hasParent(this))return;J._addParent(this)}(this._finalizers=null!==(X=this._finalizers)&&void 0!==X?X:[]).push(J)}}_hasParent(J){const{_parentage:X}=this;return X===J||Array.isArray(X)&&X.includes(J)}_addParent(J){const{_parentage:X}=this;this._parentage=Array.isArray(X)?(X.push(J),X):X?[X,J]:J}_removeParent(J){const{_parentage:X}=this;X===J?this._parentage=null:Array.isArray(X)&&(0,x.P)(X,J)}remove(J){const{_finalizers:X}=this;X&&(0,x.P)(X,J),J instanceof S&&J._removeParent(this)}}S.EMPTY=(()=>{const q=new S;return q.closed=!0,q})();const P=S.EMPTY;function R(q){return q instanceof S||q&&"closed"in q&&(0,w.m)(q.remove)&&(0,w.m)(q.add)&&(0,w.m)(q.unsubscribe)}function F(q){(0,w.m)(q)?q():q.unsubscribe()}},2416:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>w});const w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(j,Y,T)=>{"use strict";T.d(Y,{a:()=>J});var w=T(9751),i=T(4742),E=T(2076),x=T(4671),S=T(3268),P=T(3269),R=T(1810),F=T(5403),q=T(9672);function J(...le){const ae=(0,P.yG)(le),ie=(0,P.jO)(le),{args:ge,keys:Ae}=(0,i.D)(le);if(0===ge.length)return(0,E.D)([],ae);const ve=new w.y(function X(le,ae,ie=x.y){return ge=>{ne(ae,()=>{const{length:Ae}=le,ve=new Array(Ae);let Xe=Ae,Qe=Ae;for(let He=0;He{const Te=(0,E.D)(le[He],ae);let Se=!1;Te.subscribe((0,F.x)(ge,pt=>{ve[He]=pt,Se||(Se=!0,Qe--),Qe||ge.next(ie(ve.slice()))},()=>{--Xe||ge.complete()}))},ge)},ge)}}(ge,ae,Ae?Xe=>(0,R.n)(Ae,Xe):x.y));return ie?ve.pipe((0,S.Z)(ie)):ve}function ne(le,ae,ie){le?(0,q.f)(ie,le,ae):ae()}},7272:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>S});var w=T(8189),E=T(3269),x=T(2076);function S(...P){return function i(){return(0,w.J)(1)}()((0,x.D)(P,(0,E.yG)(P)))}},515:(j,Y,T)=>{"use strict";T.d(Y,{E:()=>i});const i=new(T(9751).y)(S=>S.complete())},2076:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>pt});var w=T(8421),i=T(9672),E=T(4482),x=T(5403);function S(Be,Ve=0){return(0,E.e)((Ne,he)=>{Ne.subscribe((0,x.x)(he,me=>(0,i.f)(he,Be,()=>he.next(me),Ve),()=>(0,i.f)(he,Be,()=>he.complete(),Ve),me=>(0,i.f)(he,Be,()=>he.error(me),Ve)))})}function P(Be,Ve=0){return(0,E.e)((Ne,he)=>{he.add(Be.schedule(()=>Ne.subscribe(he),Ve))})}var q=T(9751),X=T(2202),ne=T(576);function ae(Be,Ve){if(!Be)throw new Error("Iterable cannot be null");return new q.y(Ne=>{(0,i.f)(Ne,Ve,()=>{const he=Be[Symbol.asyncIterator]();(0,i.f)(Ne,Ve,()=>{he.next().then(me=>{me.done?Ne.complete():Ne.next(me.value)})},0,!0)})})}var ie=T(3670),ge=T(8239),Ae=T(1144),ve=T(6495),Xe=T(2206),Qe=T(4532),He=T(3260);function pt(Be,Ve){return Ve?function Se(Be,Ve){if(null!=Be){if((0,ie.c)(Be))return function R(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Ae.z)(Be))return function J(Be,Ve){return new q.y(Ne=>{let he=0;return Ve.schedule(function(){he===Be.length?Ne.complete():(Ne.next(Be[he++]),Ne.closed||this.schedule())})})}(Be,Ve);if((0,ge.t)(Be))return function F(Be,Ve){return(0,w.Xf)(Be).pipe(P(Ve),S(Ve))}(Be,Ve);if((0,Xe.D)(Be))return ae(Be,Ve);if((0,ve.T)(Be))return function le(Be,Ve){return new q.y(Ne=>{let he;return(0,i.f)(Ne,Ve,()=>{he=Be[X.h](),(0,i.f)(Ne,Ve,()=>{let me,Ce;try{({value:me,done:Ce}=he.next())}catch(ye){return void Ne.error(ye)}Ce?Ne.complete():Ne.next(me)},0,!0)}),()=>(0,ne.m)(he?.return)&&he.return()})}(Be,Ve);if((0,He.L)(Be))return function Te(Be,Ve){return ae((0,He.Q)(Be),Ve)}(Be,Ve)}throw(0,Qe.z)(Be)}(Be,Ve):(0,w.Xf)(Be)}},8421:(j,Y,T)=>{"use strict";T.d(Y,{Xf:()=>le});var w=T(655),i=T(1144),E=T(8239),x=T(9751),S=T(3670),P=T(2206),R=T(4532),F=T(6495),q=T(3260),J=T(576),X=T(7849),ne=T(8822);function le(He){if(He instanceof x.y)return He;if(null!=He){if((0,S.c)(He))return function ae(He){return new x.y(Te=>{const Se=He[ne.L]();if((0,J.m)(Se.subscribe))return Se.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(He);if((0,i.z)(He))return function ie(He){return new x.y(Te=>{for(let Se=0;Se{He.then(Se=>{Te.closed||(Te.next(Se),Te.complete())},Se=>Te.error(Se)).then(null,X.h)})}(He);if((0,P.D)(He))return ve(He);if((0,F.T)(He))return function Ae(He){return new x.y(Te=>{for(const Se of He)if(Te.next(Se),Te.closed)return;Te.complete()})}(He);if((0,q.L)(He))return function Xe(He){return ve((0,q.Q)(He))}(He)}throw(0,R.z)(He)}function ve(He){return new x.y(Te=>{(function Qe(He,Te){var Se,pt,Be,Ve;return(0,w.mG)(this,void 0,void 0,function*(){try{for(Se=(0,w.KL)(He);!(pt=yield Se.next()).done;)if(Te.next(pt.value),Te.closed)return}catch(Ne){Be={error:Ne}}finally{try{pt&&!pt.done&&(Ve=Se.return)&&(yield Ve.call(Se))}finally{if(Be)throw Be.error}}Te.complete()})})(He,Te).catch(Se=>Te.error(Se))})}},6451:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>P});var w=T(8189),i=T(8421),E=T(515),x=T(3269),S=T(2076);function P(...R){const F=(0,x.yG)(R),q=(0,x._6)(R,1/0),J=R;return J.length?1===J.length?(0,i.Xf)(J[0]):(0,w.J)(q)((0,S.D)(J,F)):E.E}},9646:(j,Y,T)=>{"use strict";T.d(Y,{of:()=>E});var w=T(3269),i=T(2076);function E(...x){const S=(0,w.yG)(x);return(0,i.D)(x,S)}},102:(j,Y,T)=>{"use strict";T.d(Y,{S:()=>P});var w=T(9751),i=T(8421);const{isArray:E}=Array;var S=T(5403);function P(...F){return 1===(F=function x(F){return 1===F.length&&E(F[0])?F[0]:F}(F)).length?(0,i.Xf)(F[0]):new w.y(function R(F){return q=>{let J=[];for(let X=0;J&&!q.closed&&X{if(J){for(let le=0;le{"use strict";T.d(Y,{_:()=>E});var w=T(9751),i=T(576);function E(x,S){const P=(0,i.m)(x)?x:()=>x,R=F=>F.error(P());return new w.y(S?F=>S.schedule(R,0,F):R)}},2805:(j,Y,T)=>{"use strict";T.d(Y,{H:()=>S});var w=T(9751),i=T(4986),E=T(3532),x=T(1165);function S(P=0,R,F=i.P){let q=-1;return null!=R&&((0,E.K)(R)?F=R:q=R),new w.y(J=>{let X=(0,x.q)(P)?+P-F.now():P;X<0&&(X=0);let ne=0;return F.schedule(function(){J.closed||(J.next(ne++),0<=q?this.schedule(void 0,q):J.complete())},X)})}},5403:(j,Y,T)=>{"use strict";T.d(Y,{x:()=>i});var w=T(930);function i(x,S,P,R,F){return new E(x,S,P,R,F)}class E extends w.Lv{constructor(S,P,R,F,q,J){super(S),this.onFinalize=q,this.shouldUnsubscribe=J,this._next=P?function(X){try{P(X)}catch(ne){S.error(ne)}}:super._next,this._error=F?function(X){try{F(X)}catch(ne){S.error(ne)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(X){S.error(X)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:P}=this;super.unsubscribe(),!P&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},262:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>x});var w=T(8421),i=T(5403),E=T(4482);function x(S){return(0,E.e)((P,R)=>{let J,F=null,q=!1;F=P.subscribe((0,i.x)(R,void 0,void 0,X=>{J=(0,w.Xf)(S(X,x(S)(P))),F?(F.unsubscribe(),F=null,J.subscribe(R)):q=!0})),q&&(F.unsubscribe(),F=null,J.subscribe(R))})}},4351:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>E});var w=T(5577),i=T(576);function E(x,S){return(0,i.m)(S)?(0,w.z)(x,S,1):(0,w.z)(x,1)}},8372:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>x});var w=T(4986),i=T(4482),E=T(5403);function x(S,P=w.z){return(0,i.e)((R,F)=>{let q=null,J=null,X=null;const ne=()=>{if(q){q.unsubscribe(),q=null;const ae=J;J=null,F.next(ae)}};function le(){const ae=X+S,ie=P.now();if(ie{J=ae,X=P.now(),q||(q=P.schedule(le,S),F.add(q))},()=>{ne(),F.complete()},void 0,()=>{J=q=null}))})}},6590:(j,Y,T)=>{"use strict";T.d(Y,{d:()=>E});var w=T(4482),i=T(5403);function E(x){return(0,w.e)((S,P)=>{let R=!1;S.subscribe((0,i.x)(P,F=>{R=!0,P.next(F)},()=>{R||P.next(x),P.complete()}))})}},1005:(j,Y,T)=>{"use strict";T.d(Y,{g:()=>ne});var w=T(4986),i=T(7272),E=T(5698),x=T(4482),S=T(5403),P=T(5032),F=T(9718),q=T(5577);function J(le,ae){return ae?ie=>(0,i.z)(ae.pipe((0,E.q)(1),function R(){return(0,x.e)((le,ae)=>{le.subscribe((0,S.x)(ae,P.Z))})}()),ie.pipe(J(le))):(0,q.z)((ie,ge)=>le(ie,ge).pipe((0,E.q)(1),(0,F.h)(ie)))}var X=T(2805);function ne(le,ae=w.z){const ie=(0,X.H)(le,ae);return J(()=>ie)}},9300:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,R)=>{let F=0;P.subscribe((0,i.x)(R,q=>x.call(S,q,F++)&&R.next(q)))})}},590:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>R});var w=T(6805),i=T(9300),E=T(5698),x=T(6590),S=T(8068),P=T(4671);function R(F,q){const J=arguments.length>=2;return X=>X.pipe(F?(0,i.h)((ne,le)=>F(ne,le,X)):P.y,(0,E.q)(1),J?(0,x.d)(q):(0,S.T)(()=>new w.K))}},4004:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E});var w=T(4482),i=T(5403);function E(x,S){return(0,w.e)((P,R)=>{let F=0;P.subscribe((0,i.x)(R,q=>{R.next(x.call(S,q,F++))}))})}},9718:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});var w=T(4004);function i(E){return(0,w.U)(()=>E)}},8189:(j,Y,T)=>{"use strict";T.d(Y,{J:()=>E});var w=T(5577),i=T(4671);function E(x=1/0){return(0,w.z)(i.y,x)}},5577:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>F});var w=T(4004),i=T(8421),E=T(4482),x=T(9672),S=T(5403),R=T(576);function F(q,J,X=1/0){return(0,R.m)(J)?F((ne,le)=>(0,w.U)((ae,ie)=>J(ne,ae,le,ie))((0,i.Xf)(q(ne,le))),X):("number"==typeof J&&(X=J),(0,E.e)((ne,le)=>function P(q,J,X,ne,le,ae,ie,ge){const Ae=[];let ve=0,Xe=0,Qe=!1;const He=()=>{Qe&&!Ae.length&&!ve&&J.complete()},Te=pt=>ve{ae&&J.next(pt),ve++;let Be=!1;(0,i.Xf)(X(pt,Xe++)).subscribe((0,S.x)(J,Ve=>{le?.(Ve),ae?Te(Ve):J.next(Ve)},()=>{Be=!0},void 0,()=>{if(Be)try{for(ve--;Ae.length&&veSe(Ve)):Se(Ve)}He()}catch(Ve){J.error(Ve)}}))};return q.subscribe((0,S.x)(J,Te,()=>{Qe=!0,He()})),()=>{ge?.()}}(ne,le,q,X)))}},3099:(j,Y,T)=>{"use strict";T.d(Y,{B:()=>S});var w=T(8421),i=T(7579),E=T(930),x=T(4482);function S(R={}){const{connector:F=(()=>new i.x),resetOnError:q=!0,resetOnComplete:J=!0,resetOnRefCountZero:X=!0}=R;return ne=>{let le,ae,ie,ge=0,Ae=!1,ve=!1;const Xe=()=>{ae?.unsubscribe(),ae=void 0},Qe=()=>{Xe(),le=ie=void 0,Ae=ve=!1},He=()=>{const Te=le;Qe(),Te?.unsubscribe()};return(0,x.e)((Te,Se)=>{ge++,!ve&&!Ae&&Xe();const pt=ie=ie??F();Se.add(()=>{ge--,0===ge&&!ve&&!Ae&&(ae=P(He,X))}),pt.subscribe(Se),!le&&ge>0&&(le=new E.Hp({next:Be=>pt.next(Be),error:Be=>{ve=!0,Xe(),ae=P(Qe,q,Be),pt.error(Be)},complete:()=>{Ae=!0,Xe(),ae=P(Qe,J),pt.complete()}}),(0,w.Xf)(Te).subscribe(le))})(ne)}}function P(R,F,...q){if(!0===F)return void R();if(!1===F)return;const J=new E.Hp({next:()=>{J.unsubscribe(),R()}});return F(...q).subscribe(J)}},3900:(j,Y,T)=>{"use strict";T.d(Y,{w:()=>x});var w=T(8421),i=T(4482),E=T(5403);function x(S,P){return(0,i.e)((R,F)=>{let q=null,J=0,X=!1;const ne=()=>X&&!q&&F.complete();R.subscribe((0,E.x)(F,le=>{q?.unsubscribe();let ae=0;const ie=J++;(0,w.Xf)(S(le,ie)).subscribe(q=(0,E.x)(F,ge=>F.next(P?P(le,ge,ie,ae++):ge),()=>{q=null,ne()}))},()=>{X=!0,ne()}))})}},5698:(j,Y,T)=>{"use strict";T.d(Y,{q:()=>x});var w=T(515),i=T(4482),E=T(5403);function x(S){return S<=0?()=>w.E:(0,i.e)((P,R)=>{let F=0;P.subscribe((0,E.x)(R,q=>{++F<=S&&(R.next(q),S<=F&&R.complete())}))})}},8505:(j,Y,T)=>{"use strict";T.d(Y,{b:()=>S});var w=T(576),i=T(4482),E=T(5403),x=T(4671);function S(P,R,F){const q=(0,w.m)(P)||R||F?{next:P,error:R,complete:F}:P;return q?(0,i.e)((J,X)=>{var ne;null===(ne=q.subscribe)||void 0===ne||ne.call(q);let le=!0;J.subscribe((0,E.x)(X,ae=>{var ie;null===(ie=q.next)||void 0===ie||ie.call(q,ae),X.next(ae)},()=>{var ae;le=!1,null===(ae=q.complete)||void 0===ae||ae.call(q),X.complete()},ae=>{var ie;le=!1,null===(ie=q.error)||void 0===ie||ie.call(q,ae),X.error(ae)},()=>{var ae,ie;le&&(null===(ae=q.unsubscribe)||void 0===ae||ae.call(q)),null===(ie=q.finalize)||void 0===ie||ie.call(q)}))}):x.y}},8068:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>x});var w=T(6805),i=T(4482),E=T(5403);function x(P=S){return(0,i.e)((R,F)=>{let q=!1;R.subscribe((0,E.x)(F,J=>{q=!0,F.next(J)},()=>q?F.complete():F.error(P())))})}function S(){return new w.K}},7414:(j,Y,T)=>{"use strict";T.d(Y,{V:()=>q});var w=T(4986),i=T(1165),E=T(4482),x=T(8421),S=T(3888),P=T(5403),R=T(9672);const F=(0,S.d)(X=>function(le=null){X(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=le});function q(X,ne){const{first:le,each:ae,with:ie=J,scheduler:ge=ne??w.z,meta:Ae=null}=(0,i.q)(X)?{first:X}:"number"==typeof X?{each:X}:X;if(null==le&&null==ae)throw new TypeError("No timeout provided.");return(0,E.e)((ve,Xe)=>{let Qe,He,Te=null,Se=0;const pt=Be=>{He=(0,R.f)(Xe,ge,()=>{try{Qe.unsubscribe(),(0,x.Xf)(ie({meta:Ae,lastValue:Te,seen:Se})).subscribe(Xe)}catch(Ve){Xe.error(Ve)}},Be)};Qe=ve.subscribe((0,P.x)(Xe,Be=>{He?.unsubscribe(),Se++,Xe.next(Te=Be),ae>0&&pt(ae)},void 0,void 0,()=>{He?.closed||He?.unsubscribe(),Te=null})),!Se&&pt(null!=le?"number"==typeof le?le:+le-ge.now():ae)})}function J(X){throw new F(X)}},4408:(j,Y,T)=>{"use strict";T.d(Y,{o:()=>S});var w=T(727);class i extends w.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const E={setInterval(P,R,...F){const{delegate:q}=E;return q?.setInterval?q.setInterval(P,R,...F):setInterval(P,R,...F)},clearInterval(P){const{delegate:R}=E;return(R?.clearInterval||clearInterval)(P)},delegate:void 0};var x=T(8737);class S extends i{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){if(this.closed)return this;this.state=R;const q=this.id,J=this.scheduler;return null!=q&&(this.id=this.recycleAsyncId(J,q,F)),this.pending=!0,this.delay=F,this.id=this.id||this.requestAsyncId(J,this.id,F),this}requestAsyncId(R,F,q=0){return E.setInterval(R.flush.bind(R,this),q)}recycleAsyncId(R,F,q=0){if(null!=q&&this.delay===q&&!1===this.pending)return F;E.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const q=this._execute(R,F);if(q)return q;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let J,q=!1;try{this.work(R)}catch(X){q=!0,J=X||new Error("Scheduled action threw falsy error")}if(q)return this.unsubscribe(),J}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:q}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(q,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},7565:(j,Y,T)=>{"use strict";T.d(Y,{v:()=>E});var w=T(6063);class i{constructor(S,P=i.now){this.schedulerActionCtor=S,this.now=P}schedule(S,P=0,R){return new this.schedulerActionCtor(this,S).schedule(R,P)}}i.now=w.l.now;class E extends i{constructor(S,P=i.now){super(S,P),this.actions=[],this._active=!1,this._scheduled=void 0}flush(S){const{actions:P}=this;if(this._active)return void P.push(S);let R;this._active=!0;do{if(R=S.execute(S.state,S.delay))break}while(S=P.shift());if(this._active=!1,R){for(;S=P.shift();)S.unsubscribe();throw R}}}},4986:(j,Y,T)=>{"use strict";T.d(Y,{P:()=>x,z:()=>E});var w=T(4408);const E=new(T(7565).v)(w.o),x=E},6063:(j,Y,T)=>{"use strict";T.d(Y,{l:()=>w});const w={now:()=>(w.delegate||Date).now(),delegate:void 0}},3410:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w={setTimeout(i,E,...x){const{delegate:S}=w;return S?.setTimeout?S.setTimeout(i,E,...x):setTimeout(i,E,...x)},clearTimeout(i){const{delegate:E}=w;return(E?.clearTimeout||clearTimeout)(i)},delegate:void 0}},2202:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});const i=(0,T(3888).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(j,Y,T)=>{"use strict";T.d(Y,{_6:()=>P,jO:()=>x,yG:()=>S});var w=T(576),i=T(3532);function E(R){return R[R.length-1]}function x(R){return(0,w.m)(E(R))?R.pop():void 0}function S(R){return(0,i.K)(E(R))?R.pop():void 0}function P(R,F){return"number"==typeof E(R)?R.pop():F}},4742:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>S});const{isArray:w}=Array,{getPrototypeOf:i,prototype:E,keys:x}=Object;function S(R){if(1===R.length){const F=R[0];if(w(F))return{args:F,keys:null};if(function P(R){return R&&"object"==typeof R&&i(R)===E}(F)){const q=x(F);return{args:q.map(J=>F[J]),keys:q}}}return{args:R,keys:null}}},8737:(j,Y,T)=>{"use strict";function w(i,E){if(i){const x=i.indexOf(E);0<=x&&i.splice(x,1)}}T.d(Y,{P:()=>w})},3888:(j,Y,T)=>{"use strict";function w(i){const x=i(S=>{Error.call(S),S.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}T.d(Y,{d:()=>w})},1810:(j,Y,T)=>{"use strict";function w(i,E){return i.reduce((x,S,P)=>(x[S]=E[P],x),{})}T.d(Y,{n:()=>w})},2806:(j,Y,T)=>{"use strict";T.d(Y,{O:()=>x,x:()=>E});var w=T(2416);let i=null;function E(S){if(w.v.useDeprecatedSynchronousErrorHandling){const P=!i;if(P&&(i={errorThrown:!1,error:null}),S(),P){const{errorThrown:R,error:F}=i;if(i=null,R)throw F}}else S()}function x(S){w.v.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=S)}},9672:(j,Y,T)=>{"use strict";function w(i,E,x,S=0,P=!1){const R=E.schedule(function(){x(),P?i.add(this.schedule(null,S)):this.unsubscribe()},S);if(i.add(R),!P)return R}T.d(Y,{f:()=>w})},4671:(j,Y,T)=>{"use strict";function w(i){return i}T.d(Y,{y:()=>w})},1144:(j,Y,T)=>{"use strict";T.d(Y,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2206:(j,Y,T)=>{"use strict";T.d(Y,{D:()=>i});var w=T(576);function i(E){return Symbol.asyncIterator&&(0,w.m)(E?.[Symbol.asyncIterator])}},1165:(j,Y,T)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(i)}T.d(Y,{q:()=>w})},576:(j,Y,T)=>{"use strict";function w(i){return"function"==typeof i}T.d(Y,{m:()=>w})},3670:(j,Y,T)=>{"use strict";T.d(Y,{c:()=>E});var w=T(8822),i=T(576);function E(x){return(0,i.m)(x[w.L])}},6495:(j,Y,T)=>{"use strict";T.d(Y,{T:()=>E});var w=T(2202),i=T(576);function E(x){return(0,i.m)(x?.[w.h])}},8239:(j,Y,T)=>{"use strict";T.d(Y,{t:()=>i});var w=T(576);function i(E){return(0,w.m)(E?.then)}},3260:(j,Y,T)=>{"use strict";T.d(Y,{L:()=>x,Q:()=>E});var w=T(655),i=T(576);function E(S){return(0,w.FC)(this,arguments,function*(){const R=S.getReader();try{for(;;){const{value:F,done:q}=yield(0,w.qq)(R.read());if(q)return yield(0,w.qq)(void 0);yield yield(0,w.qq)(F)}}finally{R.releaseLock()}})}function x(S){return(0,i.m)(S?.getReader)}},3532:(j,Y,T)=>{"use strict";T.d(Y,{K:()=>i});var w=T(576);function i(E){return E&&(0,w.m)(E.schedule)}},4482:(j,Y,T)=>{"use strict";T.d(Y,{A:()=>i,e:()=>E});var w=T(576);function i(x){return(0,w.m)(x?.lift)}function E(x){return S=>{if(i(S))return S.lift(function(P){try{return x(P,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(j,Y,T)=>{"use strict";T.d(Y,{Z:()=>x});var w=T(4004);const{isArray:i}=Array;function x(S){return(0,w.U)(P=>function E(S,P){return i(P)?S(...P):S(P)}(S,P))}},5032:(j,Y,T)=>{"use strict";function w(){}T.d(Y,{Z:()=>w})},9635:(j,Y,T)=>{"use strict";T.d(Y,{U:()=>E,z:()=>i});var w=T(4671);function i(...x){return E(x)}function E(x){return 0===x.length?w.y:1===x.length?x[0]:function(P){return x.reduce((R,F)=>F(R),P)}}},7849:(j,Y,T)=>{"use strict";T.d(Y,{h:()=>E});var w=T(2416),i=T(3410);function E(x){i.z.setTimeout(()=>{const{onUnhandledError:S}=w.v;if(!S)throw x;S(x)})}},4532:(j,Y,T)=>{"use strict";function w(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}T.d(Y,{z:()=>w})},6700:(j,Y,T)=>{var w={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":5283,"./hy-am.js":5283,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":3027,"./sk.js":3027,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":2868,"./th.js":2868,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(x){var S=E(x);return T(S)}function E(x){if(!T.o(w,x)){var S=new Error("Cannot find module '"+x+"'");throw S.code="MODULE_NOT_FOUND",S}return w[x]}i.keys=function(){return Object.keys(w)},i.resolve=E,j.exports=i,i.id=6700},655:(j,Y,T)=>{"use strict";function F(he,me,Ce,ye){return new(Ce||(Ce=Promise))(function(Ye,mt){function Ft(Ki){try{Ke(ye.next(Ki))}catch(Sn){mt(Sn)}}function ai(Ki){try{Ke(ye.throw(Ki))}catch(Sn){mt(Sn)}}function Ke(Ki){Ki.done?Ye(Ki.value):function We(Ye){return Ye instanceof Ce?Ye:new Ce(function(mt){mt(Ye)})}(Ki.value).then(Ft,ai)}Ke((ye=ye.apply(he,me||[])).next())})}function Ae(he){return this instanceof Ae?(this.v=he,this):new Ae(he)}function ve(he,me,Ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var We,ye=Ce.apply(he,me||[]),Ye=[];return We={},mt("next"),mt("throw"),mt("return"),We[Symbol.asyncIterator]=function(){return this},We;function mt(Ge){ye[Ge]&&(We[Ge]=function(si){return new Promise(function(jn,Ci){Ye.push([Ge,si,jn,Ci])>1||Ft(Ge,si)})})}function Ft(Ge,si){try{!function ai(Ge){Ge.value instanceof Ae?Promise.resolve(Ge.value.v).then(Ke,Ki):Sn(Ye[0][2],Ge)}(ye[Ge](si))}catch(jn){Sn(Ye[0][3],jn)}}function Ke(Ge){Ft("next",Ge)}function Ki(Ge){Ft("throw",Ge)}function Sn(Ge,si){Ge(si),Ye.shift(),Ye.length&&Ft(Ye[0][0],Ye[0][1])}}function Qe(he){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce,me=he[Symbol.asyncIterator];return me?me.call(he):(he=function ne(he){var me="function"==typeof Symbol&&Symbol.iterator,Ce=me&&he[me],ye=0;if(Ce)return Ce.call(he);if(he&&"number"==typeof he.length)return{next:function(){return he&&ye>=he.length&&(he=void 0),{value:he&&he[ye++],done:!he}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")}(he),Ce={},ye("next"),ye("throw"),ye("return"),Ce[Symbol.asyncIterator]=function(){return this},Ce);function ye(Ye){Ce[Ye]=he[Ye]&&function(mt){return new Promise(function(Ft,ai){!function We(Ye,mt,Ft,ai){Promise.resolve(ai).then(function(Ke){Ye({value:Ke,done:Ft})},mt)}(Ft,ai,(mt=he[Ye](mt)).done,mt.value)})}}}T.d(Y,{FC:()=>ve,KL:()=>Qe,mG:()=>F,qq:()=>Ae})},6895:(j,Y,T)=>{"use strict";T.d(Y,{Do:()=>Qe,ED:()=>Cs,EM:()=>ti,HT:()=>S,JF:()=>li,K0:()=>R,Mx:()=>nc,NF:()=>ac,Nd:()=>$i,O5:()=>In,Ov:()=>Ju,PC:()=>Yr,PM:()=>At,RF:()=>Wa,S$:()=>Ae,V_:()=>J,Ye:()=>He,b0:()=>Xe,bD:()=>Bt,ez:()=>Ur,gd:()=>Qu,mk:()=>ja,n9:()=>ir,q:()=>E,sg:()=>_r,uU:()=>It,w_:()=>P});var w=T(4650);let i=null;function E(){return i}function S(I){i||(i=I)}class P{}const R=new w.OlP("DocumentToken");let F=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return function q(){return(0,w.LFG)(X)}()},providedIn:"platform"}),I})();const J=new w.OlP("Location Initialized");let X=(()=>{class I extends F{constructor(B){super(),this._doc=B,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("popstate",B,!1),()=>G.removeEventListener("popstate",B)}onHashChange(B){const G=E().getGlobalEventTarget(this._doc,"window");return G.addEventListener("hashchange",B,!1),()=>G.removeEventListener("hashchange",B)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(B){this.location.pathname=B}pushState(B,G,re){ne()?this._history.pushState(B,G,re):this.location.hash=re}replaceState(B,G,re){ne()?this._history.replaceState(B,G,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(B=0){this._history.go(B)}getState(){return this._history.state}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(R))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function le(){return new X((0,w.LFG)(R))}()},providedIn:"platform"}),I})();function ne(){return!!window.history.pushState}function ae(I,U){if(0==I.length)return U;if(0==U.length)return I;let B=0;return I.endsWith("/")&&B++,U.startsWith("/")&&B++,2==B?I+U.substring(1):1==B?I+U:I+"/"+U}function ie(I){const U=I.match(/#|\?|$/),B=U&&U.index||I.length;return I.slice(0,B-("/"===I[B-1]?1:0))+I.slice(B)}function ge(I){return I&&"?"!==I[0]?"?"+I:I}let Ae=(()=>{class I{historyGo(B){throw new Error("Not implemented")}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275prov=w.Yz7({token:I,factory:function(){return(0,w.f3M)(Xe)},providedIn:"root"}),I})();const ve=new w.OlP("appBaseHref");let Xe=(()=>{class I extends Ae{constructor(B,G){var re,Me,_e;super(),this._platformLocation=B,this._removeListenerFns=[],this._baseHref=null!==(re=null!==(Me=G??this._platformLocation.getBaseHrefFromDOM())&&void 0!==Me?Me:null===(_e=(0,w.f3M)(R).location)||void 0===_e?void 0:_e.origin)&&void 0!==re?re:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}prepareExternalUrl(B){return ae(this._baseHref,B)}path(B=!1){const G=this._platformLocation.pathname+ge(this._platformLocation.search),re=this._platformLocation.hash;return re&&B?`${G}${re}`:G}pushState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){const _e=this.prepareExternalUrl(re+ge(Me));this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),Qe=(()=>{class I extends Ae{constructor(B,G){super(),this._platformLocation=B,this._baseHref="",this._removeListenerFns=[],null!=G&&(this._baseHref=G)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(B){this._removeListenerFns.push(this._platformLocation.onPopState(B),this._platformLocation.onHashChange(B))}getBaseHref(){return this._baseHref}path(B=!1){let G=this._platformLocation.hash;return null==G&&(G="#"),G.length>0?G.substring(1):G}prepareExternalUrl(B){const G=ae(this._baseHref,B);return G.length>0?"#"+G:G}pushState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.pushState(B,G,_e)}replaceState(B,G,re,Me){let _e=this.prepareExternalUrl(re+ge(Me));0==_e.length&&(_e=this._platformLocation.pathname),this._platformLocation.replaceState(B,G,_e)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(B=0){var G,re;null===(G=(re=this._platformLocation).historyGo)||void 0===G||G.call(re,B)}}return I.\u0275fac=function(B){return new(B||I)(w.LFG(F),w.LFG(ve,8))},I.\u0275prov=w.Yz7({token:I,factory:I.\u0275fac}),I})(),He=(()=>{class I{constructor(B){this._subject=new w.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=B;const G=this._locationStrategy.getBaseHref();this._baseHref=ie(pt(G)),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){var B;null===(B=this._urlChangeSubscription)||void 0===B||B.unsubscribe(),this._urlChangeListeners=[]}path(B=!1){return this.normalize(this._locationStrategy.path(B))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(B,G=""){return this.path()==this.normalize(B+ge(G))}normalize(B){return I.stripTrailingSlash(function Se(I,U){return I&&U.startsWith(I)?U.substring(I.length):U}(this._baseHref,pt(B)))}prepareExternalUrl(B){return B&&"/"!==B[0]&&(B="/"+B),this._locationStrategy.prepareExternalUrl(B)}go(B,G="",re=null){this._locationStrategy.pushState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}replaceState(B,G="",re=null){this._locationStrategy.replaceState(re,"",B,G),this._notifyUrlChangeListeners(this.prepareExternalUrl(B+ge(G)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(B=0){var G,re;null===(G=(re=this._locationStrategy).historyGo)||void 0===G||G.call(re,B)}onUrlChange(B){return this._urlChangeListeners.push(B),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(G=>{this._notifyUrlChangeListeners(G.url,G.state)})),()=>{const G=this._urlChangeListeners.indexOf(B);var re;this._urlChangeListeners.splice(G,1),0===this._urlChangeListeners.length&&(null===(re=this._urlChangeSubscription)||void 0===re||re.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(B="",G){this._urlChangeListeners.forEach(re=>re(B,G))}subscribe(B,G,re){return this._subject.subscribe({next:B,error:G,complete:re})}}return I.normalizeQueryParams=ge,I.joinWithSlash=ae,I.stripTrailingSlash=ie,I.\u0275fac=function(B){return new(B||I)(w.LFG(Ae))},I.\u0275prov=w.Yz7({token:I,factory:function(){return function Te(){return new He((0,w.LFG)(Ae))}()},providedIn:"root"}),I})();function pt(I){return I.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Format=0]="Format",he[he.Standalone=1]="Standalone",he))(),me=(()=>((me=me||{})[me.Narrow=0]="Narrow",me[me.Abbreviated=1]="Abbreviated",me[me.Wide=2]="Wide",me[me.Short=3]="Short",me))(),Ce=(()=>((Ce=Ce||{})[Ce.Short=0]="Short",Ce[Ce.Medium=1]="Medium",Ce[Ce.Long=2]="Long",Ce[Ce.Full=3]="Full",Ce))(),ye=(()=>((ye=ye||{})[ye.Decimal=0]="Decimal",ye[ye.Group=1]="Group",ye[ye.List=2]="List",ye[ye.PercentSign=3]="PercentSign",ye[ye.PlusSign=4]="PlusSign",ye[ye.MinusSign=5]="MinusSign",ye[ye.Exponential=6]="Exponential",ye[ye.SuperscriptingExponent=7]="SuperscriptingExponent",ye[ye.PerMille=8]="PerMille",ye[ye.Infinity=9]="Infinity",ye[ye.NaN=10]="NaN",ye[ye.TimeSeparator=11]="TimeSeparator",ye[ye.CurrencyDecimal=12]="CurrencyDecimal",ye[ye.CurrencyGroup=13]="CurrencyGroup",ye))();function Ge(I,U){return qe((0,w.cg1)(I)[w.wAp.DateFormat],U)}function si(I,U){return qe((0,w.cg1)(I)[w.wAp.TimeFormat],U)}function jn(I,U){return qe((0,w.cg1)(I)[w.wAp.DateTimeFormat],U)}function Ci(I,U){const B=(0,w.cg1)(I),G=B[w.wAp.NumberSymbols][U];if(typeof G>"u"){if(U===ye.CurrencyDecimal)return B[w.wAp.NumberSymbols][ye.Decimal];if(U===ye.CurrencyGroup)return B[w.wAp.NumberSymbols][ye.Group]}return G}function kn(I){if(!I[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${I[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function qe(I,U){for(let B=U;B>-1;B--)if(typeof I[B]<"u")return I[B];throw new Error("Locale data API: locale data undefined")}function st(I){const[U,B]=I.split(":");return{hours:+U,minutes:+B}}const oi=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ei={},Le=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var se=(()=>((se=se||{})[se.Short=0]="Short",se[se.ShortGMT=1]="ShortGMT",se[se.Long=2]="Long",se[se.Extended=3]="Extended",se))(),te=(()=>((te=te||{})[te.FullYear=0]="FullYear",te[te.Month=1]="Month",te[te.Date=2]="Date",te[te.Hours=3]="Hours",te[te.Minutes=4]="Minutes",te[te.Seconds=5]="Seconds",te[te.FractionalSeconds=6]="FractionalSeconds",te[te.Day=7]="Day",te))(),ue=(()=>((ue=ue||{})[ue.DayPeriods=0]="DayPeriods",ue[ue.Days=1]="Days",ue[ue.Months=2]="Months",ue[ue.Eras=3]="Eras",ue))();function Re(I,U,B,G){let re=function an(I){if(Gi(I))return I;if("number"==typeof I&&!isNaN(I))return new Date(I);if("string"==typeof I){if(I=I.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(I)){const[re,Me=1,_e=1]=I.split("-").map(nt=>+nt);return bt(re,Me-1,_e)}const B=parseFloat(I);if(!isNaN(I-B))return new Date(B);let G;if(G=I.match(oi))return function Ue(I){const U=new Date(0);let B=0,G=0;const re=I[8]?U.setUTCFullYear:U.setFullYear,Me=I[8]?U.setUTCHours:U.setHours;I[9]&&(B=Number(I[9]+I[10]),G=Number(I[9]+I[11])),re.call(U,Number(I[1]),Number(I[2])-1,Number(I[3]));const _e=Number(I[4]||0)-B,nt=Number(I[5]||0)-G,xi=Number(I[6]||0),ii=Math.floor(1e3*parseFloat("0."+(I[7]||0)));return Me.call(U,_e,nt,xi,ii),U}(G)}const U=new Date(I);if(!Gi(U))throw new Error(`Unable to convert "${I}" into a date`);return U}(I);U=Ot(B,U)||U;let nt,_e=[];for(;U;){if(nt=Le.exec(U),!nt){_e.push(U);break}{_e=_e.concat(nt.slice(1));const ci=_e.pop();if(!ci)break;U=ci}}let xi=re.getTimezoneOffset();G&&(xi=Ms(G,xi),re=function en(I,U,B){const G=B?-1:1,re=I.getTimezoneOffset();return function hi(I,U){return(I=new Date(I.getTime())).setMinutes(I.getMinutes()+U),I}(I,G*(Ms(U,re)-re))}(re,G,!0));let ii="";return _e.forEach(ci=>{const tt=function hd(I){if(ua[I])return ua[I];let U;switch(I){case"G":case"GG":case"GGG":U=St(ue.Eras,me.Abbreviated);break;case"GGGG":U=St(ue.Eras,me.Wide);break;case"GGGGG":U=St(ue.Eras,me.Narrow);break;case"y":U=Ht(te.FullYear,1,0,!1,!0);break;case"yy":U=Ht(te.FullYear,2,0,!0,!0);break;case"yyy":U=Ht(te.FullYear,3,0,!1,!0);break;case"yyyy":U=Ht(te.FullYear,4,0,!1,!0);break;case"Y":U=gr(1);break;case"YY":U=gr(2,!0);break;case"YYY":U=gr(3);break;case"YYYY":U=gr(4);break;case"M":case"L":U=Ht(te.Month,1,1);break;case"MM":case"LL":U=Ht(te.Month,2,1);break;case"MMM":U=St(ue.Months,me.Abbreviated);break;case"MMMM":U=St(ue.Months,me.Wide);break;case"MMMMM":U=St(ue.Months,me.Narrow);break;case"LLL":U=St(ue.Months,me.Abbreviated,he.Standalone);break;case"LLLL":U=St(ue.Months,me.Wide,he.Standalone);break;case"LLLLL":U=St(ue.Months,me.Narrow,he.Standalone);break;case"w":U=xr(1);break;case"ww":U=xr(2);break;case"W":U=xr(1,!0);break;case"d":U=Ht(te.Date,1);break;case"dd":U=Ht(te.Date,2);break;case"c":case"cc":U=Ht(te.Day,1);break;case"ccc":U=St(ue.Days,me.Abbreviated,he.Standalone);break;case"cccc":U=St(ue.Days,me.Wide,he.Standalone);break;case"ccccc":U=St(ue.Days,me.Narrow,he.Standalone);break;case"cccccc":U=St(ue.Days,me.Short,he.Standalone);break;case"E":case"EE":case"EEE":U=St(ue.Days,me.Abbreviated);break;case"EEEE":U=St(ue.Days,me.Wide);break;case"EEEEE":U=St(ue.Days,me.Narrow);break;case"EEEEEE":U=St(ue.Days,me.Short);break;case"a":case"aa":case"aaa":U=St(ue.DayPeriods,me.Abbreviated);break;case"aaaa":U=St(ue.DayPeriods,me.Wide);break;case"aaaaa":U=St(ue.DayPeriods,me.Narrow);break;case"b":case"bb":case"bbb":U=St(ue.DayPeriods,me.Abbreviated,he.Standalone,!0);break;case"bbbb":U=St(ue.DayPeriods,me.Wide,he.Standalone,!0);break;case"bbbbb":U=St(ue.DayPeriods,me.Narrow,he.Standalone,!0);break;case"B":case"BB":case"BBB":U=St(ue.DayPeriods,me.Abbreviated,he.Format,!0);break;case"BBBB":U=St(ue.DayPeriods,me.Wide,he.Format,!0);break;case"BBBBB":U=St(ue.DayPeriods,me.Narrow,he.Format,!0);break;case"h":U=Ht(te.Hours,1,-12);break;case"hh":U=Ht(te.Hours,2,-12);break;case"H":U=Ht(te.Hours,1);break;case"HH":U=Ht(te.Hours,2);break;case"m":U=Ht(te.Minutes,1);break;case"mm":U=Ht(te.Minutes,2);break;case"s":U=Ht(te.Seconds,1);break;case"ss":U=Ht(te.Seconds,2);break;case"S":U=Ht(te.FractionalSeconds,1);break;case"SS":U=Ht(te.FractionalSeconds,2);break;case"SSS":U=Ht(te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":U=vt(se.Short);break;case"ZZZZZ":U=vt(se.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":U=vt(se.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":U=vt(se.Long);break;default:return null}return ua[I]=U,U}(ci);ii+=tt?tt(re,B,xi):"''"===ci?"'":ci.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ii}function bt(I,U,B){const G=new Date(0);return G.setFullYear(I,U,B),G.setHours(0,0,0),G}function Ot(I,U){const B=function Ye(I){return(0,w.cg1)(I)[w.wAp.LocaleId]}(I);if(ei[B]=ei[B]||{},ei[B][U])return ei[B][U];let G="";switch(U){case"shortDate":G=Ge(I,Ce.Short);break;case"mediumDate":G=Ge(I,Ce.Medium);break;case"longDate":G=Ge(I,Ce.Long);break;case"fullDate":G=Ge(I,Ce.Full);break;case"shortTime":G=si(I,Ce.Short);break;case"mediumTime":G=si(I,Ce.Medium);break;case"longTime":G=si(I,Ce.Long);break;case"fullTime":G=si(I,Ce.Full);break;case"short":const re=Ot(I,"shortTime"),Me=Ot(I,"shortDate");G=it(jn(I,Ce.Short),[re,Me]);break;case"medium":const _e=Ot(I,"mediumTime"),nt=Ot(I,"mediumDate");G=it(jn(I,Ce.Medium),[_e,nt]);break;case"long":const xi=Ot(I,"longTime"),ii=Ot(I,"longDate");G=it(jn(I,Ce.Long),[xi,ii]);break;case"full":const ci=Ot(I,"fullTime"),tt=Ot(I,"fullDate");G=it(jn(I,Ce.Full),[ci,tt])}return G&&(ei[B][U]=G),G}function it(I,U){return U&&(I=I.replace(/\{([^}]+)}/g,function(B,G){return null!=U&&G in U?U[G]:B})),I}function Tt(I,U,B="-",G,re){let Me="";(I<0||re&&I<=0)&&(re?I=1-I:(I=-I,Me=B));let _e=String(I);for(;_e.length0||nt>-B)&&(nt+=B),I===te.Hours)0===nt&&-12===B&&(nt=12);else if(I===te.FractionalSeconds)return function ji(I,U){return Tt(I,3).substring(0,U)}(nt,U);const xi=Ci(_e,ye.MinusSign);return Tt(nt,U,xi,G,re)}}function St(I,U,B=he.Format,G=!1){return function(re,Me){return function Gt(I,U,B,G,re,Me){switch(B){case ue.Months:return function ai(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.MonthsFormat],G[w.wAp.MonthsStandalone]],U);return qe(Me,B)}(U,re,G)[I.getMonth()];case ue.Days:return function Ft(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DaysFormat],G[w.wAp.DaysStandalone]],U);return qe(Me,B)}(U,re,G)[I.getDay()];case ue.DayPeriods:const _e=I.getHours(),nt=I.getMinutes();if(Me){const ii=function de(I){const U=(0,w.cg1)(I);return kn(U),(U[w.wAp.ExtraData][2]||[]).map(G=>"string"==typeof G?st(G):[st(G[0]),st(G[1])])}(U),ci=function ke(I,U,B){const G=(0,w.cg1)(I);kn(G);const Me=qe([G[w.wAp.ExtraData][0],G[w.wAp.ExtraData][1]],U)||[];return qe(Me,B)||[]}(U,re,G),tt=ii.findIndex(sn=>{if(Array.isArray(sn)){const[gi,_n]=sn,Ee=_e>=gi.hours&&nt>=gi.minutes,yt=_e<_n.hours||_e===_n.hours&&nt<_n.minutes;if(gi.hours<_n.hours){if(Ee&&yt)return!0}else if(Ee||yt)return!0}else if(sn.hours===_e&&sn.minutes===nt)return!0;return!1});if(-1!==tt)return ci[tt]}return function mt(I,U,B){const G=(0,w.cg1)(I),Me=qe([G[w.wAp.DayPeriodsFormat],G[w.wAp.DayPeriodsStandalone]],U);return qe(Me,B)}(U,re,G)[_e<12?0:1];case ue.Eras:return function Ke(I,U){return qe((0,w.cg1)(I)[w.wAp.Eras],U)}(U,G)[I.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${B}`)}}(re,Me,I,U,B,G)}}function vt(I){return function(U,B,G){const re=-1*G,Me=Ci(B,ye.MinusSign),_e=re>0?Math.floor(re/60):Math.ceil(re/60);switch(I){case se.Short:return(re>=0?"+":"")+Tt(_e,2,Me)+Tt(Math.abs(re%60),2,Me);case se.ShortGMT:return"GMT"+(re>=0?"+":"")+Tt(_e,1,Me);case se.Long:return"GMT"+(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);case se.Extended:return 0===G?"Z":(re>=0?"+":"")+Tt(_e,2,Me)+":"+Tt(Math.abs(re%60),2,Me);default:throw new Error(`Unknown zone width "${I}"`)}}}function qr(I){return bt(I.getFullYear(),I.getMonth(),I.getDate()+(4-I.getDay()))}function xr(I,U=!1){return function(B,G){let re;if(U){const Me=new Date(B.getFullYear(),B.getMonth(),1).getDay()-1,_e=B.getDate();re=1+Math.floor((_e+Me)/7)}else{const Me=qr(B),_e=function Ui(I){const U=bt(I,0,1).getDay();return bt(I,0,1+(U<=4?4:11)-U)}(Me.getFullYear()),nt=Me.getTime()-_e.getTime();re=1+Math.round(nt/6048e5)}return Tt(re,I,Ci(G,ye.MinusSign))}}function gr(I,U=!1){return function(B,G){return Tt(qr(B).getFullYear(),I,Ci(G,ye.MinusSign),U)}}const ua={};function Ms(I,U){I=I.replace(/:/g,"");const B=Date.parse("Jan 01, 1970 00:00:00 "+I)/6e4;return isNaN(B)?U:B}function Gi(I){return I instanceof Date&&!isNaN(I.valueOf())}function nc(I,U){U=encodeURIComponent(U);for(const B of I.split(";")){const G=B.indexOf("="),[re,Me]=-1==G?[B,""]:[B.slice(0,G),B.slice(G+1)];if(re.trim()===U)return decodeURIComponent(Me)}return null}let ja=(()=>{class I{constructor(B,G,re,Me){this._iterableDiffers=B,this._keyValueDiffers=G,this._ngEl=re,this._renderer=Me,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(B){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof B?B.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(B){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof B?B.split(/\s+/):B,this._rawClass&&((0,w.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const B=this._iterableDiffer.diff(this._rawClass);B&&this._applyIterableChanges(B)}else if(this._keyValueDiffer){const B=this._keyValueDiffer.diff(this._rawClass);B&&this._applyKeyValueChanges(B)}}_applyKeyValueChanges(B){B.forEachAddedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachChangedItem(G=>this._toggleClass(G.key,G.currentValue)),B.forEachRemovedItem(G=>{G.previousValue&&this._toggleClass(G.key,!1)})}_applyIterableChanges(B){B.forEachAddedItem(G=>{if("string"!=typeof G.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(G.item)}`);this._toggleClass(G.item,!0)}),B.forEachRemovedItem(G=>this._toggleClass(G.item,!1))}_applyClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!0)):Object.keys(B).forEach(G=>this._toggleClass(G,!!B[G])))}_removeClasses(B){B&&(Array.isArray(B)||B instanceof Set?B.forEach(G=>this._toggleClass(G,!1)):Object.keys(B).forEach(G=>this._toggleClass(G,!1)))}_toggleClass(B,G){(B=B.trim())&&B.split(/\s+/g).forEach(re=>{G?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),I})();class Pi{constructor(U,B,G,re){this.$implicit=U,this.ngForOf=B,this.index=G,this.count=re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let _r=(()=>{class I{constructor(B,G,re){this._viewContainer=B,this._template=G,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(B){this._ngForOf=B,this._ngForOfDirty=!0}set ngForTrackBy(B){this._trackByFn=B}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(B){B&&(this._template=B)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const B=this._ngForOf;!this._differ&&B&&(this._differ=this._differs.find(B).create(this.ngForTrackBy))}if(this._differ){const B=this._differ.diff(this._ngForOf);B&&this._applyChanges(B)}}_applyChanges(B){const G=this._viewContainer;B.forEachOperation((re,Me,_e)=>{if(null==re.previousIndex)G.createEmbeddedView(this._template,new Pi(re.item,this._ngForOf,-1,-1),null===_e?void 0:_e);else if(null==_e)G.remove(null===Me?void 0:Me);else if(null!==Me){const nt=G.get(Me);G.move(nt,_e),tn(nt,re)}});for(let re=0,Me=G.length;re{tn(G.get(re.currentIndex),re)})}static ngTemplateContextGuard(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),I})();function tn(I,U){I.context.$implicit=U.item}let In=(()=>{class I{constructor(B,G){this._viewContainer=B,this._context=new tr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=G}set ngIf(B){this._context.$implicit=this._context.ngIf=B,this._updateView()}set ngIfThen(B){pa("ngIfThen",B),this._thenTemplateRef=B,this._thenViewRef=null,this._updateView()}set ngIfElse(B){pa("ngIfElse",B),this._elseTemplateRef=B,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(B,G){return!0}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),I})();class tr{constructor(){this.$implicit=null,this.ngIf=null}}function pa(I,U){if(U&&!U.createEmbeddedView)throw new Error(`${I} must be a TemplateRef, but received '${(0,w.AaK)(U)}'.`)}class Ya{constructor(U,B){this._viewContainerRef=U,this._templateRef=B,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(U){U&&!this._created?this.create():!U&&this._created&&this.destroy()}}let Wa=(()=>{class I{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(B){this._ngSwitch=B,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(B){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(B)}_matchCase(B){const G=B==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||G,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),G}_updateDefaultCases(B){if(this._defaultViews&&B!==this._defaultUsed){this._defaultUsed=B;for(let G=0;G{class I{constructor(B,G,re){this.ngSwitch=re,re._addCase(),this._view=new Ya(B,G)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(Wa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),I})(),Cs=(()=>{class I{constructor(B,G,re){re._addDefault(new Ya(B,G))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(Wa,9))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngSwitchDefault",""]],standalone:!0}),I})(),Yr=(()=>{class I{constructor(B,G,re){this._ngEl=B,this._differs=G,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(B){this._ngStyle=B,!this._differ&&B&&(this._differ=this._differs.find(B).create())}ngDoCheck(){if(this._differ){const B=this._differ.diff(this._ngStyle);B&&this._applyChanges(B)}}_setStyle(B,G){const[re,Me]=B.split("."),_e=-1===re.indexOf("-")?void 0:w.JOm.DashCase;null!=G?this._renderer.setStyle(this._ngEl.nativeElement,re,Me?`${G}${Me}`:G,_e):this._renderer.removeStyle(this._ngEl.nativeElement,re,_e)}_applyChanges(B){B.forEachRemovedItem(G=>this._setStyle(G.key,null)),B.forEachAddedItem(G=>this._setStyle(G.key,G.currentValue)),B.forEachChangedItem(G=>this._setStyle(G.key,G.currentValue))}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},I.\u0275dir=w.lG2({type:I,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),I})();function Sr(I,U){return new w.vHH(2100,!1)}class rf{createSubscription(U,B){return U.subscribe({next:B,error:G=>{throw G}})}dispose(U){U.unsubscribe()}}class af{createSubscription(U,B){return U.then(B,G=>{throw G})}dispose(U){}}const sf=new af,lf=new rf;let Ju=(()=>{class I{constructor(B){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=B}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(B){return this._obj?B!==this._obj?(this._dispose(),this.transform(B)):this._latestValue:(B&&this._subscribe(B),this._latestValue)}_subscribe(B){this._obj=B,this._strategy=this._selectStrategy(B),this._subscription=this._strategy.createSubscription(B,G=>this._updateLatestValue(B,G))}_selectStrategy(B){if((0,w.QGY)(B))return sf;if((0,w.F4k)(B))return lf;throw Sr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(B,G){B===this._obj&&(this._latestValue=G,this._ref.markForCheck())}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.sBO,16))},I.\u0275pipe=w.Yjl({name:"async",type:I,pure:!1,standalone:!0}),I})(),Qu=(()=>{class I{transform(B){if(null==B)return null;if("string"!=typeof B)throw Sr();return B.toUpperCase()}}return I.\u0275fac=function(B){return new(B||I)},I.\u0275pipe=w.Yjl({name:"uppercase",type:I,pure:!0,standalone:!0}),I})();const df=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let It=(()=>{class I{constructor(B,G){this.locale=B,this.defaultTimezone=G}transform(B,G="mediumDate",re,Me){if(null==B||""===B||B!=B)return null;try{var _e;return Re(B,G,Me||this.locale,null!==(_e=re??this.defaultTimezone)&&void 0!==_e?_e:void 0)}catch(nt){throw Sr()}}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.soG,16),w.Y36(df,24))},I.\u0275pipe=w.Yjl({name:"date",type:I,pure:!0,standalone:!0}),I})(),$i=(()=>{class I{constructor(B){this.differs=B,this.keyValues=[],this.compareFn=vs}transform(B,G=vs){if(!B||!(B instanceof Map)&&"object"!=typeof B)return null;this.differ||(this.differ=this.differs.find(B).create());const re=this.differ.diff(B),Me=G!==this.compareFn;return re&&(this.keyValues=[],re.forEachItem(_e=>{this.keyValues.push(function De(I,U){return{key:I,value:U}}(_e.key,_e.currentValue))})),(re||Me)&&(this.keyValues.sort(G),this.compareFn=G),this.keyValues}}return I.\u0275fac=function(B){return new(B||I)(w.Y36(w.aQg,16))},I.\u0275pipe=w.Yjl({name:"keyvalue",type:I,pure:!1,standalone:!0}),I})();function vs(I,U){const B=I.key,G=U.key;if(B===G)return 0;if(void 0===B)return 1;if(void 0===G)return-1;if(null===B)return 1;if(null===G)return-1;if("string"==typeof B&&"string"==typeof G)return B{class I{}return I.\u0275fac=function(B){return new(B||I)},I.\u0275mod=w.oAB({type:I}),I.\u0275inj=w.cJS({}),I})();const Bt="browser";function ac(I){return I===Bt}function At(I){return"server"===I}let ti=(()=>{class I{}return I.\u0275prov=(0,w.Yz7)({token:I,providedIn:"root",factory:()=>new Ti((0,w.LFG)(R),window)}),I})();class Ti{constructor(U,B){this.document=U,this.window=B,this.offset=()=>[0,0]}setOffset(U){this.offset=Array.isArray(U)?()=>U:U}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(U){this.supportsScrolling()&&this.window.scrollTo(U[0],U[1])}scrollToAnchor(U){if(!this.supportsScrolling())return;const B=function yr(I,U){const B=I.getElementById(U)||I.getElementsByName(U)[0];if(B)return B;if("function"==typeof I.createTreeWalker&&I.body&&(I.body.createShadowRoot||I.body.attachShadow)){const G=I.createTreeWalker(I.body,NodeFilter.SHOW_ELEMENT);let re=G.currentNode;for(;re;){const Me=re.shadowRoot;if(Me){const _e=Me.getElementById(U)||Me.querySelector(`[name="${U}"]`);if(_e)return _e}re=G.nextNode()}}return null}(this.document,U);B&&(this.scrollToElement(B),B.focus())}setHistoryScrollRestoration(U){if(this.supportScrollRestoration()){const B=this.window.history;B&&B.scrollRestoration&&(B.scrollRestoration=U)}}scrollToElement(U){const B=U.getBoundingClientRect(),G=B.left+this.window.pageXOffset,re=B.top+this.window.pageYOffset,Me=this.offset();this.window.scrollTo(G-Me[0],re-Me[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const U=Ar(this.window.history)||Ar(Object.getPrototypeOf(this.window.history));return!(!U||!U.writable&&!U.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function Ar(I){return Object.getOwnPropertyDescriptor(I,"scrollRestoration")}class li{}},529:(j,Y,T)=>{"use strict";T.d(Y,{JF:()=>rn,LE:()=>ve,TP:()=>Ft,WM:()=>J,Zn:()=>Ce,eN:()=>Ye,qT:()=>Qe});var w=T(6895),i=T(4650),E=T(9646),x=T(9751),S=T(4351),P=T(9300),R=T(4004);class F{}class q{}class J{constructor(se){this.normalizedNames=new Map,this.lazyUpdate=null,se?this.lazyInit="string"==typeof se?()=>{this.headers=new Map,se.split("\n").forEach(te=>{const ue=te.indexOf(":");if(ue>0){const Re=te.slice(0,ue),bt=Re.toLowerCase(),Ot=te.slice(ue+1).trim();this.maybeSetNormalizedName(Re,bt),this.headers.has(bt)?this.headers.get(bt).push(Ot):this.headers.set(bt,[Ot])}})}:()=>{this.headers=new Map,Object.keys(se).forEach(te=>{let ue=se[te];const Re=te.toLowerCase();"string"==typeof ue&&(ue=[ue]),ue.length>0&&(this.headers.set(Re,ue),this.maybeSetNormalizedName(te,Re))})}:this.headers=new Map}has(se){return this.init(),this.headers.has(se.toLowerCase())}get(se){this.init();const te=this.headers.get(se.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(se){return this.init(),this.headers.get(se.toLowerCase())||null}append(se,te){return this.clone({name:se,value:te,op:"a"})}set(se,te){return this.clone({name:se,value:te,op:"s"})}delete(se,te){return this.clone({name:se,value:te,op:"d"})}maybeSetNormalizedName(se,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,se)}init(){this.lazyInit&&(this.lazyInit instanceof J?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(se=>this.applyUpdate(se)),this.lazyUpdate=null))}copyFrom(se){se.init(),Array.from(se.headers.keys()).forEach(te=>{this.headers.set(te,se.headers.get(te)),this.normalizedNames.set(te,se.normalizedNames.get(te))})}clone(se){const te=new J;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof J?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([se]),te}applyUpdate(se){const te=se.name.toLowerCase();switch(se.op){case"a":case"s":let ue=se.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(se.name,te);const Re=("a"===se.op?this.headers.get(te):void 0)||[];Re.push(...ue),this.headers.set(te,Re);break;case"d":const bt=se.value;if(bt){let Ot=this.headers.get(te);if(!Ot)return;Ot=Ot.filter(it=>-1===bt.indexOf(it)),0===Ot.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ot)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(se){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>se(this.normalizedNames.get(te),this.headers.get(te)))}}class ne{encodeKey(se){return ge(se)}encodeValue(se){return ge(se)}decodeKey(se){return decodeURIComponent(se)}decodeValue(se){return decodeURIComponent(se)}}const ae=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ge(Le){return encodeURIComponent(Le).replace(ae,(se,te)=>{var ue;return null!==(ue=ie[te])&&void 0!==ue?ue:se})}function Ae(Le){return`${Le}`}class ve{constructor(se={}){if(this.updates=null,this.cloneFrom=null,this.encoder=se.encoder||new ne,se.fromString){if(se.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function le(Le,se){const te=new Map;return Le.length>0&&Le.replace(/^\?/,"").split("&").forEach(Re=>{const bt=Re.indexOf("="),[Ot,it]=-1==bt?[se.decodeKey(Re),""]:[se.decodeKey(Re.slice(0,bt)),se.decodeValue(Re.slice(bt+1))],Tt=te.get(Ot)||[];Tt.push(it),te.set(Ot,Tt)}),te}(se.fromString,this.encoder)}else se.fromObject?(this.map=new Map,Object.keys(se.fromObject).forEach(te=>{const ue=se.fromObject[te],Re=Array.isArray(ue)?ue.map(Ae):[Ae(ue)];this.map.set(te,Re)})):this.map=null}has(se){return this.init(),this.map.has(se)}get(se){this.init();const te=this.map.get(se);return te?te[0]:null}getAll(se){return this.init(),this.map.get(se)||null}keys(){return this.init(),Array.from(this.map.keys())}append(se,te){return this.clone({param:se,value:te,op:"a"})}appendAll(se){const te=[];return Object.keys(se).forEach(ue=>{const Re=se[ue];Array.isArray(Re)?Re.forEach(bt=>{te.push({param:ue,value:bt,op:"a"})}):te.push({param:ue,value:Re,op:"a"})}),this.clone(te)}set(se,te){return this.clone({param:se,value:te,op:"s"})}delete(se,te){return this.clone({param:se,value:te,op:"d"})}toString(){return this.init(),this.keys().map(se=>{const te=this.encoder.encodeKey(se);return this.map.get(se).map(ue=>te+"="+this.encoder.encodeValue(ue)).join("&")}).filter(se=>""!==se).join("&")}clone(se){const te=new ve({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(se),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(se=>this.map.set(se,this.cloneFrom.map.get(se))),this.updates.forEach(se=>{switch(se.op){case"a":case"s":const te=("a"===se.op?this.map.get(se.param):void 0)||[];te.push(Ae(se.value)),this.map.set(se.param,te);break;case"d":if(void 0===se.value){this.map.delete(se.param);break}{let ue=this.map.get(se.param)||[];const Re=ue.indexOf(Ae(se.value));-1!==Re&&ue.splice(Re,1),ue.length>0?this.map.set(se.param,ue):this.map.delete(se.param)}}}),this.cloneFrom=this.updates=null)}}class Qe{constructor(){this.map=new Map}set(se,te){return this.map.set(se,te),this}get(se){return this.map.has(se)||this.map.set(se,se.defaultValue()),this.map.get(se)}delete(se){return this.map.delete(se),this}has(se){return this.map.has(se)}keys(){return this.map.keys()}}function Te(Le){return typeof ArrayBuffer<"u"&&Le instanceof ArrayBuffer}function Se(Le){return typeof Blob<"u"&&Le instanceof Blob}function pt(Le){return typeof FormData<"u"&&Le instanceof FormData}class Ve{constructor(se,te,ue,Re){let bt;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=se.toUpperCase(),function He(Le){switch(Le){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Re?(this.body=void 0!==ue?ue:null,bt=Re):bt=ue,bt&&(this.reportProgress=!!bt.reportProgress,this.withCredentials=!!bt.withCredentials,bt.responseType&&(this.responseType=bt.responseType),bt.headers&&(this.headers=bt.headers),bt.context&&(this.context=bt.context),bt.params&&(this.params=bt.params)),this.headers||(this.headers=new J),this.context||(this.context=new Qe),this.params){const Ot=this.params.toString();if(0===Ot.length)this.urlWithParams=te;else{const it=te.indexOf("?");this.urlWithParams=te+(-1===it?"?":itSt.set(Gt,se.setHeaders[Gt]),ji)),se.setParams&&(Ht=Object.keys(se.setParams).reduce((St,Gt)=>St.set(Gt,se.setParams[Gt]),Ht)),new Ve(ue,Re,Ot,{params:Ht,headers:ji,context:mr,reportProgress:Tt,responseType:bt,withCredentials:it})}}var Ne=(()=>((Ne=Ne||{})[Ne.Sent=0]="Sent",Ne[Ne.UploadProgress=1]="UploadProgress",Ne[Ne.ResponseHeader=2]="ResponseHeader",Ne[Ne.DownloadProgress=3]="DownloadProgress",Ne[Ne.Response=4]="Response",Ne[Ne.User=5]="User",Ne))();class he{constructor(se,te=200,ue="OK"){this.headers=se.headers||new J,this.status=void 0!==se.status?se.status:te,this.statusText=se.statusText||ue,this.url=se.url||null,this.ok=this.status>=200&&this.status<300}}class me extends he{constructor(se={}){super(se),this.type=Ne.ResponseHeader}clone(se={}){return new me({headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class Ce extends he{constructor(se={}){super(se),this.type=Ne.Response,this.body=void 0!==se.body?se.body:null}clone(se={}){return new Ce({body:void 0!==se.body?se.body:this.body,headers:se.headers||this.headers,status:void 0!==se.status?se.status:this.status,statusText:se.statusText||this.statusText,url:se.url||this.url||void 0})}}class ye extends he{constructor(se){super(se,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${se.url||"(unknown url)"}`:`Http failure response for ${se.url||"(unknown url)"}: ${se.status} ${se.statusText}`,this.error=se.error||null}}function We(Le,se){return{body:se,headers:Le.headers,context:Le.context,observe:Le.observe,params:Le.params,reportProgress:Le.reportProgress,responseType:Le.responseType,withCredentials:Le.withCredentials}}let Ye=(()=>{class Le{constructor(te){this.handler=te}request(te,ue,Re={}){let bt;if(te instanceof Ve)bt=te;else{let Tt,ji;Tt=Re.headers instanceof J?Re.headers:new J(Re.headers),Re.params&&(ji=Re.params instanceof ve?Re.params:new ve({fromObject:Re.params})),bt=new Ve(te,ue,void 0!==Re.body?Re.body:null,{headers:Tt,context:Re.context,params:ji,reportProgress:Re.reportProgress,responseType:Re.responseType||"json",withCredentials:Re.withCredentials})}const Ot=(0,E.of)(bt).pipe((0,S.b)(Tt=>this.handler.handle(Tt)));if(te instanceof Ve||"events"===Re.observe)return Ot;const it=Ot.pipe((0,P.h)(Tt=>Tt instanceof Ce));switch(Re.observe||"body"){case"body":switch(bt.responseType){case"arraybuffer":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tt.body}));case"blob":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&!(Tt.body instanceof Blob))throw new Error("Response is not a Blob.");return Tt.body}));case"text":return it.pipe((0,R.U)(Tt=>{if(null!==Tt.body&&"string"!=typeof Tt.body)throw new Error("Response is not a string.");return Tt.body}));default:return it.pipe((0,R.U)(Tt=>Tt.body))}case"response":return it;default:throw new Error(`Unreachable: unhandled observe type ${Re.observe}}`)}}delete(te,ue={}){return this.request("DELETE",te,ue)}get(te,ue={}){return this.request("GET",te,ue)}head(te,ue={}){return this.request("HEAD",te,ue)}jsonp(te,ue){return this.request("JSONP",te,{params:(new ve).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ue={}){return this.request("OPTIONS",te,ue)}patch(te,ue,Re={}){return this.request("PATCH",te,We(Re,ue))}post(te,ue,Re={}){return this.request("POST",te,We(Re,ue))}put(te,ue,Re={}){return this.request("PUT",te,We(Re,ue))}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(F))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();class mt{constructor(se,te){this.next=se,this.interceptor=te}handle(se){return this.interceptor.intercept(se,this.next)}}const Ft=new i.OlP("HTTP_INTERCEPTORS");let ai=(()=>{class Le{intercept(te,ue){return ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const mn=/^\)\]\}',?\n/;let ca=(()=>{class Le{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new x.y(ue=>{const Re=this.xhrFactory.build();if(Re.open(te.method,te.urlWithParams),te.withCredentials&&(Re.withCredentials=!0),te.headers.forEach((Gt,vt)=>Re.setRequestHeader(Gt,vt.join(","))),te.headers.has("Accept")||Re.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const Gt=te.detectContentTypeHeader();null!==Gt&&Re.setRequestHeader("Content-Type",Gt)}if(te.responseType){const Gt=te.responseType.toLowerCase();Re.responseType="json"!==Gt?Gt:"text"}const bt=te.serializeBody();let Ot=null;const it=()=>{if(null!==Ot)return Ot;const Gt=Re.statusText||"OK",vt=new J(Re.getAllResponseHeaders()),er=function co(Le){return"responseURL"in Le&&Le.responseURL?Le.responseURL:/^X-Request-URL:/m.test(Le.getAllResponseHeaders())?Le.getResponseHeader("X-Request-URL"):null}(Re)||te.url;return Ot=new me({headers:vt,status:Re.status,statusText:Gt,url:er}),Ot},Tt=()=>{let{headers:Gt,status:vt,statusText:er,url:da}=it(),Ui=null;204!==vt&&(Ui=typeof Re.response>"u"?Re.responseText:Re.response),0===vt&&(vt=Ui?200:0);let qr=vt>=200&&vt<300;if("json"===te.responseType&&"string"==typeof Ui){const xr=Ui;Ui=Ui.replace(mn,"");try{Ui=""!==Ui?JSON.parse(Ui):null}catch(gr){Ui=xr,qr&&(qr=!1,Ui={error:gr,text:Ui})}}qr?(ue.next(new Ce({body:Ui,headers:Gt,status:vt,statusText:er,url:da||void 0})),ue.complete()):ue.error(new ye({error:Ui,headers:Gt,status:vt,statusText:er,url:da||void 0}))},ji=Gt=>{const{url:vt}=it(),er=new ye({error:Gt,status:Re.status||0,statusText:Re.statusText||"Unknown Error",url:vt||void 0});ue.error(er)};let Ht=!1;const mr=Gt=>{Ht||(ue.next(it()),Ht=!0);let vt={type:Ne.DownloadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),"text"===te.responseType&&!!Re.responseText&&(vt.partialText=Re.responseText),ue.next(vt)},St=Gt=>{let vt={type:Ne.UploadProgress,loaded:Gt.loaded};Gt.lengthComputable&&(vt.total=Gt.total),ue.next(vt)};return Re.addEventListener("load",Tt),Re.addEventListener("error",ji),Re.addEventListener("timeout",ji),Re.addEventListener("abort",ji),te.reportProgress&&(Re.addEventListener("progress",mr),null!==bt&&Re.upload&&Re.upload.addEventListener("progress",St)),Re.send(bt),ue.next({type:Ne.Sent}),()=>{Re.removeEventListener("error",ji),Re.removeEventListener("abort",ji),Re.removeEventListener("load",Tt),Re.removeEventListener("timeout",ji),te.reportProgress&&(Re.removeEventListener("progress",mr),null!==bt&&Re.upload&&Re.upload.removeEventListener("progress",St)),Re.readyState!==Re.DONE&&Re.abort()}})}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.JF))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})();const fr=new i.OlP("XSRF_COOKIE_NAME"),kn=new i.OlP("XSRF_HEADER_NAME");class de{}let ke=(()=>{class Le{constructor(te,ue,Re){this.doc=te,this.platform=ue,this.cookieName=Re,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(fr))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),be=(()=>{class Le{constructor(te,ue){this.tokenService=te,this.headerName=ue}intercept(te,ue){const Re=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Re.startsWith("http://")||Re.startsWith("https://"))return ue.handle(te);const bt=this.tokenService.getToken();return null!==bt&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,bt)})),ue.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(de),i.LFG(kn))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),qe=(()=>{class Le{constructor(te,ue){this.backend=te,this.injector=ue,this.chain=null}handle(te){if(null===this.chain){const ue=this.injector.get(Ft,[]);this.chain=ue.reduceRight((Re,bt)=>new mt(Re,bt),this.backend)}return this.chain.handle(te)}}return Le.\u0275fac=function(te){return new(te||Le)(i.LFG(q),i.LFG(i.zs3))},Le.\u0275prov=i.Yz7({token:Le,factory:Le.\u0275fac}),Le})(),Jt=(()=>{class Le{static disable(){return{ngModule:Le,providers:[{provide:be,useClass:ai}]}}static withOptions(te={}){return{ngModule:Le,providers:[te.cookieName?{provide:fr,useValue:te.cookieName}:[],te.headerName?{provide:kn,useValue:te.headerName}:[]]}}}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[be,{provide:Ft,useExisting:be,multi:!0},{provide:de,useClass:ke},{provide:fr,useValue:"XSRF-TOKEN"},{provide:kn,useValue:"X-XSRF-TOKEN"}]}),Le})(),rn=(()=>{class Le{}return Le.\u0275fac=function(te){return new(te||Le)},Le.\u0275mod=i.oAB({type:Le}),Le.\u0275inj=i.cJS({providers:[Ye,{provide:F,useClass:qe},ca,{provide:q,useExisting:ca}],imports:[Jt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Le})()},4650:(j,Y,T)=>{"use strict";T.d(Y,{$8M:()=>xd,$Z:()=>Xf,AFp:()=>Bu,ALo:()=>gb,AaK:()=>F,AsE:()=>dp,BQk:()=>hu,CHM:()=>$a,CRH:()=>Eb,CZH:()=>Iu,CqO:()=>K1,D6c:()=>WS,DdM:()=>ub,Dn7:()=>Ab,EJc:()=>Nu,EiD:()=>Og,EpF:()=>P0,F$t:()=>r_,F4k:()=>Q1,FYo:()=>jg,FiY:()=>wl,G48:()=>HS,Gf:()=>Sb,GfV:()=>Fy,GkF:()=>Rl,Gpc:()=>X,Gre:()=>fu,Hsn:()=>a_,Ikx:()=>ed,JOm:()=>Ns,JVY:()=>yy,Jf7:()=>Xy,KtG:()=>Gr,L6k:()=>My,LAX:()=>Sg,LFG:()=>Wi,LSH:()=>Ch,Lbi:()=>Fm,Lck:()=>Yw,MAs:()=>Ie,MGl:()=>cp,MMx:()=>_m,NdJ:()=>k0,O4$:()=>ol,OlP:()=>Si,Oqu:()=>q0,PXZ:()=>hn,Q2q:()=>lp,Q6J:()=>Rt,QGY:()=>pu,QP$:()=>Wl,QbO:()=>zm,Qsj:()=>Vy,R0b:()=>jr,RDi:()=>O,Rgc:()=>Eu,SBq:()=>Lh,Sil:()=>TS,Suo:()=>fC,TTD:()=>vs,TgZ:()=>H0,Tol:()=>Mn,Udp:()=>Xc,VKq:()=>hb,WFA:()=>R0,WLB:()=>pb,XFs:()=>be,Xpm:()=>er,Xts:()=>Vf,Y36:()=>Bc,YKP:()=>ab,YNc:()=>uu,Yjl:()=>Ms,Yz7:()=>si,ZZ4:()=>aA,_Bn:()=>rb,_UZ:()=>X1,_Vd:()=>va,_c5:()=>qS,_uU:()=>$s,aQg:()=>sA,c2e:()=>_i,cJS:()=>Ci,cg1:()=>P_,d8E:()=>tm,dDg:()=>Xb,dqk:()=>ue,eBb:()=>Of,eFA:()=>VC,ekj:()=>h_,eoX:()=>IC,f3M:()=>mh,g9A:()=>Vm,h0i:()=>jl,hGG:()=>YS,hYB:()=>I0,hij:()=>Ji,iGM:()=>xb,ifc:()=>te,ip1:()=>Rp,kL8:()=>Mw,kcU:()=>th,lG2:()=>hd,lcZ:()=>wm,lqb:()=>Bs,lri:()=>Cn,mCW:()=>Vd,n5z:()=>Cd,n_E:()=>Wo,oAB:()=>xr,oJD:()=>Ig,oxw:()=>n_,pB0:()=>If,q3G:()=>ln,qLn:()=>Ph,qOj:()=>w0,qZA:()=>kl,qzn:()=>Pc,rWj:()=>Jb,s9C:()=>O0,sBO:()=>ZC,sIi:()=>ap,s_b:()=>xp,soG:()=>lt,tb:()=>Ip,tp0:()=>Co,uIk:()=>op,vHH:()=>ie,vpe:()=>cs,wAp:()=>Mt,xDo:()=>up,xi3:()=>bb,xp6:()=>Zf,ynx:()=>L0,z2F:()=>Wm,z3N:()=>is,zSh:()=>qd,zs3:()=>rs});var w=T(7579),i=T(727),E=T(9751),x=T(6451),S=T(3099);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function R(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function F(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(F).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function q(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const J=P({__forward_ref__:P});function X(p){return p.__forward_ref__=X,p.toString=function(){return F(this())},p}function ne(p){return le(p)?p():p}function le(p){return"function"==typeof p&&p.hasOwnProperty(J)&&p.__forward_ref__===X}class ie extends Error{constructor(m,g){super(function ge(p,m){return`NG0${Math.abs(p)}${m?": "+m.trim():""}`}(m,g)),this.code=m}}function Ae(p){return"string"==typeof p?p:null==p?"":String(p)}function Te(p,m){throw new ie(-201,!1)}function ai(p,m){null==p&&function Ke(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function si(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Ci(p){return{providers:p.providers||[],imports:p.imports||[]}}function En(p){return ui(p,fr)||ui(p,de)}function ui(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(kn)||p.hasOwnProperty(ke))?p[kn]:null}const fr=P({\u0275prov:P}),kn=P({\u0275inj:P}),de=P({ngInjectableDef:P}),ke=P({ngInjectorDef:P});var be=(()=>((be=be||{})[be.Default=0]="Default",be[be.Host=1]="Host",be[be.Self=2]="Self",be[be.SkipSelf=4]="SkipSelf",be[be.Optional=8]="Optional",be))();let qe;function ot(p){const m=qe;return qe=p,m}function Jt(p,m,g){const _=En(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&be.Optional?null:void 0!==m?m:void Te(F(p))}function oi(p){return{toString:p}.toString()}var ei=(()=>((ei=ei||{})[ei.OnPush=0]="OnPush",ei[ei.Default=1]="Default",ei))(),te=(()=>{return(p=te||(te={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",te;var p})();const ue=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ot={},it=[],Tt=P({\u0275cmp:P}),ji=P({\u0275dir:P}),Ht=P({\u0275pipe:P}),mr=P({\u0275mod:P}),St=P({\u0275fac:P}),Gt=P({__NG_ELEMENT_ID__:P});let vt=0;function er(p){return oi(()=>{const g=!0===p.standalone,_={},y={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:_,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===ei.OnPush,directiveDefs:null,pipeDefs:null,standalone:g,dependencies:g&&p.dependencies||null,getStandaloneInjector:null,selectors:p.selectors||it,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||te.Emulated,id:"c"+vt++,styles:p.styles||it,_:null,setInput:null,schemas:p.schemas||null,tView:null},C=p.dependencies,D=p.features;return y.inputs=ua(p.inputs,_),y.outputs=ua(p.outputs),D&&D.forEach(L=>L(y)),y.directiveDefs=C?()=>("function"==typeof C?C():C).map(Ui).filter(qr):null,y.pipeDefs=C?()=>("function"==typeof C?C():C).map(an).filter(qr):null,y})}function Ui(p){return hi(p)||en(p)}function qr(p){return null!==p}function xr(p){return oi(()=>({type:p.type,bootstrap:p.bootstrap||it,declarations:p.declarations||it,imports:p.imports||it,exports:p.exports||it,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null}))}function ua(p,m){if(null==p)return Ot;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],C=y;Array.isArray(y)&&(C=y[1],y=y[0]),g[y]=_,m&&(m[y]=C)}return g}const hd=er;function Ms(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,standalone:!0===p.standalone,onDestroy:p.type.prototype.ngOnDestroy||null}}function hi(p){return p[Tt]||null}function en(p){return p[ji]||null}function an(p){return p[Ht]||null}function Ue(p,m){const g=p[mr]||null;if(!g&&!0===m)throw new Error(`Type ${F(p)} does not have '\u0275mod' property.`);return g}function In(p){return Array.isArray(p)&&"object"==typeof p[1]}function tr(p){return Array.isArray(p)&&!0===p[1]}function pa(p){return 0!=(8&p.flags)}function Ya(p){return 2==(2&p.flags)}function Wa(p){return 1==(1&p.flags)}function ir(p){return null!==p.template}function Cs(p){return 0!=(256&p[2])}function De(p,m){return p.hasOwnProperty(St)?p[St]:null}class $i{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function vs(){return fa}function fa(p){return p.type.prototype.ngOnChanges&&(p.setInput=Bn),Ga}function Ga(){const p=nr(this),m=p?.current;if(m){const g=p.previous;if(g===Ot)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Bn(p,m,g,_){const y=nr(p)||function il(p,m){return p[Wr]=m}(p,{previous:Ot,current:null}),C=y.current||(y.current={}),D=y.previous,L=this.declaredInputs[g],k=D[L];C[L]=new $i(k&&k.currentValue,m,D===Ot),p[_]=m}vs.ngInherit=!0;const Wr="__ngSimpleChanges__";function nr(p){return p[Wr]||null}function Nt(p){for(;Array.isArray(p);)p=p[0];return p}function ti(p,m){return Nt(m[p])}function Ti(p,m){return Nt(m[p.index])}function yr(p,m){return p.data[m]}function mi(p,m){return p[m]}function li(p,m){const g=m[p];return In(g)?g:g[0]}function I(p){return 4==(4&p[2])}function U(p){return 64==(64&p[2])}function G(p,m){return null==m?null:p[m]}function re(p){p[18]=0}function Me(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const _e={lFrame:Za(null),bindingsEnabled:!0};function sn(){return _e.bindingsEnabled}function Ee(){return _e.lFrame.lView}function yt(){return _e.lFrame.tView}function $a(p){return _e.lFrame.contextLView=p,p[8]}function Gr(p){return _e.lFrame.contextLView=null,p}function Ii(){let p=mo();for(;null!==p&&64===p.type;)p=p.parent;return p}function mo(){return _e.lFrame.currentTNode}function Bi(p,m){const g=_e.lFrame;g.currentTNode=p,g.isParent=m}function nl(){return _e.lFrame.isParent}function rl(){_e.lFrame.isParent=!1}function Nn(){const p=_e.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function ma(){return _e.lFrame.bindingIndex}function xs(){return _e.lFrame.bindingIndex++}function rr(p){const m=_e.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function al(p,m){const g=_e.lFrame;g.bindingIndex=g.bindingRootIndex=p,ga(m)}function ga(p){_e.lFrame.currentDirectiveIndex=p}function md(p){const m=_e.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function gd(){return _e.lFrame.currentQueryIndex}function _a(p){_e.lFrame.currentQueryIndex=p}function hf(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function sl(p,m,g){if(g&be.SkipSelf){let y=m,C=p;for(;!(y=y.parent,null!==y||g&be.Host||(y=hf(C),null===y||(C=C[15],10&y.type))););if(null===y)return!1;m=y,p=C}const _=_e.lFrame=go();return _.currentTNode=m,_.lView=p,!0}function Ss(p){const m=go(),g=p[1];_e.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function go(){const p=_e.lFrame,m=null===p?null:p.child;return null===m?Za(p):m}function Za(p){const m={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function cc(){const p=_e.lFrame;return _e.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const dc=cc;function Es(){const p=cc();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Hn(){return _e.lFrame.selectedIndex}function $r(p){_e.lFrame.selectedIndex=p}function qi(){const p=_e.lFrame;return yr(p.tView,p.selectedIndex)}function ol(){_e.lFrame.currentNamespace="svg"}function th(){!function ff(){_e.lFrame.currentNamespace=null}()}function _o(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const C=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:L,ngAfterViewInit:k,ngAfterViewChecked:V,ngOnDestroy:W}=C;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),L&&((p.contentHooks||(p.contentHooks=[])).push(g,L),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,L)),k&&(p.viewHooks||(p.viewHooks=[])).push(-g,k),V&&((p.viewHooks||(p.viewHooks=[])).push(g,V),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,V)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Ds(p,m,g){pc(p,m,3,g)}function hc(p,m,g,_){(3&p[2])===g&&pc(p,m,g,_)}function Zr(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function pc(p,m,g,_){const C=_??-1,D=m.length-1;let L=0;for(let k=void 0!==_?65535&p[18]:0;k=_)break}else m[k]<0&&(p[18]+=65536),(L>11>16&&(3&p[2])===m){p[2]+=2048;try{C.call(L)}finally{}}}else try{C.call(L)}finally{}}class Er{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function fc(p,m,g){let _=0;for(;_m){D=C-1;break}}}for(;C>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let _c=!0;function dl(p){const m=_c;return _c=p,m}let Ac=0;const Dr={};function ul(p,m){const g=yd(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ad(_.data,p),Ad(m,null),Ad(_.blueprint,null));const y=yc(p,m),C=p.injectorIndex;if(bo(y)){const D=Ao(y),L=yo(y,m),k=L[1].data;for(let V=0;V<8;V++)m[C+V]=L[D+V]|k[D+V]}return m[C+8]=y,C}function Ad(p,m){p.push(0,0,0,0,0,0,0,0,m)}function yd(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function yc(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){if(_=Td(y),null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function Mc(p,m,g){!function _f(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(Gt)&&(_=g[Gt]),null==_&&(_=g[Gt]=Ac++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:lh:m}(g);if("function"==typeof C){if(!sl(m,p,_))return _&be.Host?Md(y,0,_):wd(m,g,_,y);try{const D=C(_);if(null!=D||_&be.Optional)return D;Te()}finally{dc()}}else if("number"==typeof C){let D=null,L=yd(p,m),k=-1,V=_&be.Host?m[16][6]:null;for((-1===L||_&be.SkipSelf)&&(k=-1===L?yc(p,m):m[L+8],-1!==k&&Xr(_,!1)?(D=m[1],L=Ao(k),m=yo(k,m)):L=-1);-1!==L;){const W=m[1];if(ml(C,L,W.data)){const ee=pl(L,m,g,D,_,V);if(ee!==Dr)return ee}k=m[L+8],-1!==k&&Xr(_,m[1].data[L+8]===V)&&ml(C,L,m)?(D=W,L=Ao(k),m=yo(k,m)):L=-1}}return y}function pl(p,m,g,_,y,C){const D=m[1],L=D.data[p+8],W=fl(L,D,g,null==_?Ya(L)&&_c:_!=D&&0!=(3&L.type),y&be.Host&&C===L);return null!==W?Hr(m,D,W,L):Dr}function fl(p,m,g,_,y){const C=p.providerIndexes,D=m.data,L=1048575&C,k=p.directiveStart,W=C>>20,oe=y?L+W:p.directiveEnd;for(let fe=_?L:L+W;fe=k&&xe.type===g)return fe}if(y){const fe=D[k];if(fe&&ir(fe)&&fe.type===g)return k}return null}function Hr(p,m,g,_){let y=p[g];const C=m.data;if(function ih(p){return p instanceof Er}(y)){const D=y;D.resolving&&function Xe(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ie(-200,`Circular dependency in DI detected for ${p}${g}`)}(function ve(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():Ae(p)}(C[g]));const L=dl(D.canSeeViewProviders);D.resolving=!0;const k=D.injectImpl?ot(D.injectImpl):null;sl(p,_,be.Default);try{y=p[g]=D.factory(void 0,C,p,_),m.firstCreatePass&&g>=_.directiveStart&&function gf(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:C}=m.type.prototype;if(_){const D=fa(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),C&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,C),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,C))}(g,C[g],m)}finally{null!==k&&ot(k),dl(L),D.resolving=!1,dc()}}return y}function ml(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[St]||vd(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const C=y[St]||vd(y);if(C&&C!==g)return C;y=Object.getPrototypeOf(y)}return C=>new C})}function vd(p){return le(p)?()=>{const m=vd(ne(p));return m&&m()}:De(p)}function Td(p){const m=p[1],g=m.type;return 2===g?m.declTNode:1===g?p[6]:null}function xd(p){return function oh(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const C=g[y];if(sh(C))break;if(0===C)y+=2;else if("number"==typeof C)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(C===m)return g[y+1];y+=2}}}return null}(Ii(),p)}const Ls="__parameters__";function Qa(p,m,g){return oi(()=>{const _=function gl(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...C){if(this instanceof y)return _.apply(this,C),this;const D=new y(...C);return L.annotation=D,L;function L(k,V,W){const ee=k.hasOwnProperty(Ls)?k[Ls]:Object.defineProperty(k,Ls,{value:[]})[Ls];for(;ee.length<=W;)ee.push(null);return(ee[W]=ee[W]||[]).push(D),k}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class Si{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=si({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Mr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?es(g,m):m(g))}function dh(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function wo(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function bl(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function Pd(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function kd(p,m){const g=Ps(p,m);if(g>=0)return p[1|g]}function Ps(p,m){return function uh(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const C=_+(y-_>>1),D=p[C<m?y=C:_=C+1}return~(y<p,createScript:p=>p,createScriptURL:p=>p})}catch{}return $}())||void 0===m?void 0:m.createHTML(p))||p}function Ir(p){var m;return(null===(m=function Or(){if(void 0===on&&(on=null,ue.trustedTypes))try{on=ue.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch{}return on}())||void 0===m?void 0:m.createHTML(p))||p}class Tl{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class _y extends Tl{getTypeName(){return"HTML"}}class by extends Tl{getTypeName(){return"Style"}}class Tg extends Tl{getTypeName(){return"Script"}}class Rf extends Tl{getTypeName(){return"URL"}}class xg extends Tl{getTypeName(){return"ResourceURL"}}function is(p){return p instanceof Tl?p.changingThisBreaksApplicationSecurity:p}function Pc(p,m){const g=function Ay(p){return p instanceof Tl&&p.getTypeName()||null}(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function yy(p){return new _y(p)}function My(p){return new by(p)}function Of(p){return new Tg(p)}function Sg(p){return new Rf(p)}function If(p){return new xg(p)}class wy{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(we(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch{return null}}}class Cy{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=we(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=we(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Vd(m.trim())).join(", ")),this.buf.push(" ",D,'="',Rg(k),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Mh.hasOwnProperty(g)&&!Dg.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Rg(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const Pg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kg=/([^\#-~ |!])/g;function Rg(p){return p.replace(/&/g,"&").replace(Pg,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(kg,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let wh;function Og(p,m){let g=null;try{wh=wh||function bh(p){const m=new Cy(p);return function Ah(){try{return!!(new window.DOMParser).parseFromString(we(""),"text/html")}catch{return!1}}()?new wy(m):m}(p);let _=m?String(m):"";g=wh.getInertBodyElement(_);let y=5,C=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=C,C=g.innerHTML,g=wh.getInertBodyElement(_)}while(_!==C);return we((new RT).sanitizeChildren(kc(g)||g))}finally{if(g){const _=kc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function kc(p){return"content"in p&&function Ey(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var ln=(()=>((ln=ln||{})[ln.NONE=0]="NONE",ln[ln.HTML=1]="HTML",ln[ln.STYLE=2]="STYLE",ln[ln.SCRIPT=3]="SCRIPT",ln[ln.URL=4]="URL",ln[ln.RESOURCE_URL=5]="RESOURCE_URL",ln))();function Ig(p){const m=Fd();return m?Ir(m.sanitize(ln.HTML,p)||""):Pc(p,"HTML")?Ir(is(p)):Og(function z(){return void 0!==H?H:typeof document<"u"?document:void 0}(),Ae(p))}function Ch(p){const m=Fd();return m?m.sanitize(ln.URL,p)||"":Pc(p,"URL")?is(p):Vd(Ae(p))}function Fd(){const p=Ee();return p&&p[12]}const Vf=new Si("ENVIRONMENT_INITIALIZER"),ky=new Si("INJECTOR",-1),vh=new Si("INJECTOR_DEF_TYPES");class Ni{get(m,g=yl){if(g===yl){const _=new Error(`NullInjectorError: No provider for ${F(m)}!`);throw _.name="NullInjectorError",_}return g}}function IT(...p){return{\u0275providers:xl(0,p)}}function xl(p,...m){const g=[],_=new Set;let y;return es(m,C=>{const D=C;Th(D,g,[],_)&&(y||(y=[]),y.push(D))}),void 0!==y&&Ff(y,g),g}function Ff(p,m){for(let g=0;g{m.push(C)})}}function Th(p,m,g,_){if(!(p=ne(p)))return!1;let y=null,C=ca(p);const D=!C&&hi(p);if(C||D){if(D&&!D.standalone)return!1;y=p}else{const k=p.ngModule;if(C=ca(k),!C)return!1;y=k}const L=_.has(y);if(D){if(L)return!1;if(_.add(y),D.dependencies){const k="function"==typeof D.dependencies?D.dependencies():D.dependencies;for(const V of k)Th(V,m,g,_)}}else{if(!C)return!1;{if(null!=C.imports&&!L){let V;_.add(y);try{es(C.imports,W=>{Th(W,m,g,_)&&(V||(V=[]),V.push(W))})}finally{}void 0!==V&&Ff(V,m)}if(!L){const V=De(y)||(()=>new y);m.push({provide:y,useFactory:V,deps:it},{provide:vh,useValue:y,multi:!0},{provide:Vf,useValue:()=>Wi(y),multi:!0})}const k=C.providers;null==k||L||es(k,W=>{m.push(W)})}}return y!==p&&void 0!==p.providers}const Ry=P({provide:String,useValue:P});function Kr(p){return null!==p&&"object"==typeof p&&Ry in p}function Ho(p){return"function"==typeof p}const qd=new Si("Set Injector scope."),Sh={},Eh={};let Yd;function or(){return void 0===Yd&&(Yd=new Ni),Yd}class Bs{}class Oy extends Bs{constructor(m,g,_,y){super(),this.parent=g,this.source=_,this.scopes=y,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ns(m,D=>this.processProvider(D)),this.records.set(ky,Rc(void 0,this)),y.has("environment")&&this.records.set(Bs,Rc(void 0,this));const C=this.records.get(qd);null!=C&&"string"==typeof C.value&&this.scopes.add(C.value),this.injectorDefTypes=new Set(this.get(vh.multi,it,be.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const g=kr(this),_=ot(void 0);try{return m()}finally{kr(g),ot(_)}}get(m,g=yl,_=be.Default){this.assertNotDestroyed();const y=kr(this),C=ot(void 0);try{if(!(_&be.SkipSelf)){let L=this.records.get(m);if(void 0===L){const k=function NT(p){return"function"==typeof p||"object"==typeof p&&p instanceof Si}(m)&&En(m);L=k&&this.injectableDefInScope(k)?Rc(Wd(m),Sh):null,this.records.set(m,L)}if(null!=L)return this.hydrate(m,L)}return(_&be.Self?or():this.parent).get(m,g=_&be.Optional&&g===yl?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[wr]=D[wr]||[]).unshift(F(m)),y)throw D;return function Ef(p,m,g,_){const y=p[wr];throw m[xc]&&y.unshift(m[xc]),p.message=function Df(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.slice(2):p;let y=F(m);if(Array.isArray(m))y=m.map(F).join(" -> ");else if("object"==typeof m){let C=[];for(let D in m)if(m.hasOwnProperty(D)){let L=m[D];C.push(D+":"+("string"==typeof L?JSON.stringify(L):F(L)))}y=`{${C.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(Tf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[wr]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{ot(C),kr(y)}}resolveInjectorInitializers(){const m=kr(this),g=ot(void 0);try{const _=this.get(Vf.multi,it,be.Self);for(const y of _)y()}finally{kr(m),ot(g)}}toString(){const m=[],g=this.records;for(const _ of g.keys())m.push(F(_));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processProvider(m){let g=Ho(m=ne(m))?m:ne(m&&m.provide);const _=function BT(p){return Kr(p)?Rc(void 0,p.useValue):Rc(Ca(p),Sh)}(m);if(Ho(m)||!0!==m.multi)this.records.get(g);else{let y=this.records.get(g);y||(y=Rc(void 0,Sh,!0),y.factory=()=>Rr(y.multi),this.records.set(g,y)),g=m,y.multi.push(m)}this.records.set(g,_)}hydrate(m,g){return g.value===Sh&&(g.value=Eh,g.value=g.factory()),"object"==typeof g.value&&g.value&&function By(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this._ngOnDestroyHooks.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=ne(m.providedIn);return"string"==typeof g?"any"===g||this.scopes.has(g):this.injectorDefTypes.has(g)}}function Wd(p){const m=En(p),g=null!==m?m.factory:De(p);if(null!==g)return g;if(p instanceof Si)throw new ie(204,!1);if(p instanceof Function)return function zf(p){const m=p.length;if(m>0)throw bl(m,"?"),new ie(204,!1);const g=function mn(p){const m=p&&(p[fr]||p[de]);if(m){const g=function co(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ie(204,!1)}function Ca(p,m,g){let _;if(Ho(p)){const y=ne(p);return De(y)||Wd(y)}if(Kr(p))_=()=>ne(p.useValue);else if(function Do(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Rr(p.deps||[]));else if(function zd(p){return!(!p||!p.useExisting)}(p))_=()=>Wi(ne(p.useExisting));else{const y=ne(p&&(p.useClass||p.provide));if(!function Iy(p){return!!p.deps}(p))return De(y)||Wd(y);_=()=>new y(...Rr(p.deps))}return _}function Rc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function VT(p){return!!p.\u0275providers}function ns(p,m){for(const g of p)Array.isArray(g)?ns(g,m):VT(g)?ns(g.\u0275providers,m):m(g)}class Ny{}class Dh{resolveComponentFactory(m){throw function FT(p){const m=Error(`No component factory found for ${F(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let va=(()=>{class p{}return p.NULL=new Dh,p})();function Hh(){return ea(Ii(),Ee())}function ea(p,m){return new Lh(Ti(p,m))}let Lh=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Hh,p})();function jT(p){return p instanceof Lh?p.nativeElement:p}class jg{}let Vy=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function qT(){const p=Ee(),g=li(Ii().index,p);return(In(g)?g:p)[11]}(),p})(),YT=(()=>{class p{}return p.\u0275prov=si({token:p,providedIn:"root",factory:()=>null}),p})();class Fy{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const WT=new Fy("14.1.2"),qg={};function Zg(p){return p.ngOriginalError}class Ph{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m);this._console.error("ERROR",m),g&&this._console.error("ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zg(m);for(;g&&Zg(g);)g=Zg(g);return g||null}}const Jg=new Map;let rx=0;const Kg="__ngContext__";function lr(p,m){In(m)?(p[Kg]=m[20],function sx(p){Jg.set(p[20],p)}(m)):p[Kg]=m}function kh(p){const m=p[Kg];return"number"==typeof m?function Xg(p){return Jg.get(p)||null}(m):m||null}function e1(p){const m=kh(p);return m?In(m)?m:m.lView:null}const fx=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(ue))();function Xy(p){return p.ownerDocument.defaultView}function Po(p){return p instanceof Function?p():p}var Ns=(()=>((Ns=Ns||{})[Ns.Important=1]="Important",Ns[Ns.DashCase=2]="DashCase",Ns))();function n1(p,m){return undefined(p,m)}function Rh(p){const m=p[3];return tr(m)?m[3]:m}function r1(p){return tM(p[13])}function a1(p){return tM(p[4])}function tM(p){for(;null!==p&&!tr(p);)p=p[4];return p}function Gd(p,m,g,_,y){if(null!=_){let C,D=!1;tr(_)?C=_:In(_)&&(D=!0,_=_[0]);const L=Nt(_);0===p&&null!==g?null==y?Zi(m,g,L):je(m,g,L,y||null,!0):1===p&&null!==g?je(m,g,L,y||null,!0):2===p?function u1(p,m,g){const _=Vi(p,m);_&&function Zd(p,m,g,_){p.removeChild(m,g,_)}(p,_,m,g)}(m,L,D):3===p&&m.destroyNode(L),null!=C&&function oM(p,m,g,_,y){const C=g[7];C!==Nt(g)&&Gd(m,p,_,C,y);for(let L=10;L0&&(p[g-1][4]=_[4]);const C=wo(p,10+m);!function Cx(p,m){Oc(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=C[19];null!==D&&D.detachView(C[1]),_[3]=null,_[4]=null,_[2]&=-65}return _}function $d(p,m){if(!(128&m[2])){const g=m[11];g.destroyNode&&Oc(p,m,g,3,null,null),function xx(p){let m=p[13];if(!m)return Oh(p[1],p);for(;m;){let g=null;if(In(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)In(m)&&Oh(m[1],m),m=m[3];null===m&&(m=p),In(m)&&Oh(m[1],m),g=m&&m[4]}m=g}}(m)}}function Oh(p,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function nM(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=V]():_[y=-V].unsubscribe(),C+=2}else{const D=_[y=g[C+1]];g[C].call(D)}if(null!==_){for(let C=y+1;C<_.length;C++)(0,_[C])();m[7]=null}}(p,m),1===m[1].type&&m[11].destroy();const g=m[17];if(null!==g&&tr(m[3])){g!==m[3]&&o1(g,m);const _=m[19];null!==_&&_.detachView(p)}!function Uy(p){Jg.delete(p[20])}(m)}}function l1(p,m,g){return function rt(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===te.None||y===te.Emulated)return null}return Ti(_,g)}(p,m.parent,g)}function je(p,m,g,_,y){p.insertBefore(m,g,_,y)}function Zi(p,m,g){p.appendChild(m,g)}function qf(p,m,g,_,y){null!==_?je(p,m,g,_,y):Zi(p,m,g)}function Vi(p,m){return p.parentNode(m)}function Yf(p,m,g){return Bh(p,m,g)}let Bh=function c1(p,m,g){return 40&p.type?Ti(p,g):null};function Jd(p,m,g,_){const y=l1(p,_,m),C=m[11],L=Yf(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let k=0;kC?"":y[ee+1].toLowerCase();const fe=8&_?oe:null;if(fe&&-1!==Gf(fe,V,0)||2&_&&V!==oe){if(ta(_))return!1;D=!0}}}}else{if(!D&&!ta(_)&&!ta(k))return!1;if(D&&ta(k))continue;D=!1,_=k|1&_}}return ta(_)||D}function ta(p){return 0==(1&p)}function zh(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let C=!1;for(;y-1)for(g++;g0?'="'+L+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!ta(D)&&(m+=g1(C,y),y=""),_=D,C=C||!ta(_);g++}return""!==y&&(m+=g1(C,y)),m}const Vt={};function Zf(p){_1(yt(),Ee(),Hn()+p,!1)}function _1(p,m,g,_){if(!_)if(3==(3&m[2])){const C=p.preOrderCheckHooks;null!==C&&Ds(m,C,g)}else{const C=p.preOrderHooks;null!==C&&hc(m,C,0,g)}$r(g)}function AM(p,m=null,g=null,_){const y=eu(p,m,g,_);return y.resolveInjectorInitializers(),y}function eu(p,m=null,g=null,_,y=new Set){const C=[g||it,IT(p)];return _=_||("object"==typeof p?void 0:F(p)),new Oy(C,m||or(),_||null,y)}let rs=(()=>{class p{static create(g,_){if(Array.isArray(g))return AM({name:""},_,g,"");{var y;const C=null!==(y=g.name)&&void 0!==y?y:"";return AM({name:C},g.parent,g.providers,C)}}}return p.THROW_IF_NOT_FOUND=yl,p.NULL=new Ni,p.\u0275prov=si({token:p,providedIn:"any",factory:()=>Wi(ky)}),p.__NG_ELEMENT_ID__=-1,p})();function Bc(p,m=be.Default){const g=Ee();return null===g?Wi(p,m):hl(Ii(),g,ne(p),m)}function Xf(){throw new Error("invalid")}function Uh(p,m){return p<<17|m<<2}function Ta(p){return p>>17&32767}function x1(p){return 2|p}function Ro(p){return(131068&p)>>2}function S1(p,m){return-131069&p|m<<2}function as(p){return 1|p}function o0(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_22&&_1(p,m,22,!1),g(_,y)}finally{$r(C)}}function P1(p,m,g){if(pa(m)){const y=m.directiveEnd;for(let C=m.directiveStart;C0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(L)!=k&&L.push(k),L.push(_,y,D)}}function UM(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function N1(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function $M(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&F1(g)}}function F1(p){for(let _=r1(p);null!==_;_=a1(_))for(let y=10;y<_.length;y++){const C=_[y];if(U(C))if(512&C[2]){const D=C[1];Lt(D,C,D.template,C[8])}else C[5]>0&&F1(C)}const g=p[1].components;if(null!==g)for(let _=0;_0&&F1(y)}}function JM(p,m){const g=li(m,p),_=g[1];(function jc(p,m){for(let g=m.length;gPromise.resolve(null))();function KM(p){return p[7]||(p[7]=[])}function La(p){return p.cleanup||(p.cleanup=[])}function El(p,m,g){return(null===p||ir(p))&&(g=function dt(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function ew(p,m){const g=p[9],_=g?g.get(Ph,null):null;_&&_.handleError(m)}function q1(p,m,g,_,y){for(let C=0;C-1&&(An(m,_),wo(g,_))}this._attachedToViewContainer=!1}$d(this._lView[1],this._lView)}onDestroy(m){O1(this._lView[1],this._lView,null,m)}markForCheck(){g0(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function z1(p,m,g){const _=m[10];_.begin&&_.begin();try{Lt(p,m,p.template,g)}catch(y){throw ew(m,y),y}finally{_.end&&_.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ie(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Tx(p,m){Oc(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ie(902,!1);this._appRef=m}}class A0 extends ip{constructor(m){super(m),this._view=m}detectChanges(){QM(this._view)}checkNoChanges(){}get context(){return null}}class qc extends va{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=hi(m);return new np(g,this.ngModule)}}function Dl(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}class y0{constructor(m,g){this.injector=m,this.parentInjector=g}get(m,g,_){const y=this.injector.get(m,qg,_);return y!==qg||g===qg?y:this.parentInjector.get(m,g,_)}}class np extends Ny{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function fM(p){return p.map(pM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return Dl(this.componentDef.inputs)}get outputs(){return Dl(this.componentDef.outputs)}create(m,g,_,y){var C;let D=(y=y||this.ngModule)instanceof Bs?y:null===(C=y)||void 0===C?void 0:C.injector;D&&null!==this.componentDef.getStandaloneInjector&&(D=this.componentDef.getStandaloneInjector(D)||D);const L=D?new y0(m,D):m,k=L.get(jg,null);if(null===k)throw new ie(407,!1);const V=L.get(YT,null),W=k.createRenderer(null,this.componentDef),ee=this.componentDef.selectors[0][0]||"div",oe=_?function R1(p,m,g){return p.selectRootElement(m,g===te.ShadowDom)}(W,_,this.componentDef.encapsulation):s1(k.createRenderer(null,this.componentDef),ee,function tw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(ee)),fe=this.componentDef.onPush?288:272,xe=function Fo(p,m){return{components:[],scheduler:p||fx,clean:Ux,playerHandler:m||null,flags:0}}(),ze=c0(0,null,null,1,0,null,null,null,null,null),Ze=Zh(null,ze,xe,fe,null,null,k,W,V,L,null);let at,wt;Ss(Ze);try{const Oe=function rp(p,m,g,_,y,C){const D=g[1];g[22]=p;const k=su(D,22,2,"#host",null),V=k.mergedAttrs=m.hostAttrs;null!==V&&(_0(k,V,!0),null!==p&&(fc(y,p,V),null!==k.classes&&h1(y,p,k.classes),null!==k.styles&&Xd(y,p,k.styles)));const W=_.createRenderer(p,m),ee=Zh(g,k1(m),null,m.onPush?32:16,g[22],k,_,W,C||null,null,null);return D.firstCreatePass&&(Mc(ul(k,g),D,m.type),N1(D,k),V1(k,g.length,1)),Bo(g,ee),g[22]=ee}(oe,this.componentDef,Ze,k,W);if(oe)if(_)fc(W,oe,["ng-version",WT.full]);else{const{attrs:xt,classes:qt}=function mM(p){const m=[],g=[];let _=1,y=2;for(;_0&&h1(W,oe,qt.join(" "))}if(wt=yr(ze,22),void 0!==g){const xt=wt.projection=[];for(let qt=0;qt=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=mc(y.hostAttrs,g=mc(g,y.hostAttrs))}}(_)}function C0(p){return p===Ot?{}:p===it?[]:p}function Y1(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function v0(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,C)=>{m(_,y,C),g(_,y,C)}:m}function W1(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let T0=null;function Yc(){if(!T0){const p=ue.Symbol;if(p&&p.iterator)T0=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gL(Nt(qt[_.index])):_.index;let xt=null;if(!L&&k&&(xt=function ow(p,m,g,_){const y=p.cleanup;if(null!=y)for(let C=0;Ck?L[k]:null}"string"==typeof D&&(C+=2)}return null}(p,m,y,_.index)),null!==xt)(xt.__ngLastListenerFn__||xt).__ngNextListenerFn__=C,xt.__ngLastListenerFn__=C,fe=!1;else{C=i_(_,m,ee,C,!1);const qt=g.listen(at,y,C);oe.push(C,qt),W&&W.push(y,Oe,wt,wt+1)}}else C=i_(_,m,ee,C,!1);const xe=_.outputs;let ze;if(fe&&null!==xe&&(ze=xe[y])){const Ze=ze.length;if(Ze)for(let at=0;at0;)m=m[15],p--;return m}(p,_e.lFrame.contextLView))[8]}(p)}function lw(p,m){let g=null;const _=function Qd(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const Hi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function c_(p){return p.substring(Hi.key,Hi.keyEnd)}function V0(p,m){const g=Hi.textEnd;return g===m?-1:(m=Hi.keyEnd=function pw(p,m,g){for(;m32;)m++;return m}(p,Hi.key=m,g),Ol(p,m,g))}function Ol(p,m,g){for(;m=0;g=V0(m,g))ar(p,c_(m),!0)}function zr(p,m,g,_){const y=Ee(),C=yt(),D=rr(2);C.firstUpdatePass&&m_(C,p,D,_),m!==Vt&&Un(y,D,m)&&dn(C,C.data[Hn()],y,y[11],p,y[D+1]=function A_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=F(is(p)))),p}(m,g),_,D)}function cr(p,m,g,_){const y=yt(),C=rr(2);y.firstUpdatePass&&m_(y,null,C,_);const D=Ee();if(g!==Vt&&Un(D,C,g)){const L=y.data[Hn()];if(wn(L,_)&&!f_(y,C)){let k=_?L.classesWithoutHost:L.stylesWithoutHost;null!==k&&(g=q(k,g||"")),Us(y,L,D,g,_)}else!function gw(p,m,g,_,y,C,D,L){y===Vt&&(y=it);let k=0,V=0,W=0=p.expandoStartIndex}function m_(p,m,g,_){const y=p.data;if(null===y[g+1]){const C=y[Hn()],D=f_(p,g);wn(C,_)&&null===m&&!D&&(m=!1),m=function z0(p,m,g,_){const y=md(p);let C=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=Qc(g=j0(null,p,m,g,_),m.attrs,_),C=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=j0(y,p,m,g,_),null===C){let k=function g_(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Ro(_))return p[Ta(_)]}(p,m,_);void 0!==k&&Array.isArray(k)&&(k=j0(null,p,m,k[1],_),k=Qc(k,m.attrs,_),function Il(p,m,g,_){p[Ta(g?m.classBindings:m.styleBindings)]=_}(p,m,_,k))}else C=function Qn(p,m,g){let _;const y=m.directiveEnd;for(let C=1+m.directiveStylingLast;C0)&&(V=!0)}else W=g;if(y)if(0!==k){const oe=Ta(p[L+1]);p[_+1]=Uh(oe,L),0!==oe&&(p[oe+1]=S1(p[oe+1],_)),p[L+1]=function gt(p,m){return 131071&p|m<<17}(p[L+1],_)}else p[_+1]=Uh(L,0),0!==L&&(p[L+1]=S1(p[L+1],_)),L=_;else p[_+1]=Uh(k,0),0===L?L=_:p[k+1]=S1(p[k+1],_),k=_;V&&(p[_+1]=x1(p[_+1])),N0(p,W,_,!0),N0(p,W,_,!1),function dw(p,m,g,_,y){const C=y?p.residualClasses:p.residualStyles;null!=C&&"string"==typeof m&&Ps(C,m)>=0&&(g[_+1]=as(g[_+1]))}(m,W,p,_,C),D=Uh(L,k),C?m.classBindings=D:m.styleBindings=D}(y,C,m,g,D,_)}}function j0(p,m,g,_,y){let C=null;const D=g.directiveEnd;let L=g.directiveStylingLast;for(-1===L?L=g.directiveStart:L++;L0;){const k=p[y],V=Array.isArray(k),W=V?k[1]:k,ee=null===W;let oe=g[y+1];oe===Vt&&(oe=ee?it:void 0);let fe=ee?kd(oe,_):W===_?oe:void 0;if(V&&!ka(fe)&&(fe=kd(k,_)),ka(fe)&&(L=fe,D))return L;const xe=p[y+1];y=D?Ta(xe):Ro(xe)}if(null!==m){let k=C?m.residualClasses:m.residualStyles;null!=k&&(L=kd(k,_))}return L}function ka(p){return void 0!==p}function wn(p,m){return 0!=(p.flags&(m?16:32))}function $s(p,m=""){const g=Ee(),_=yt(),y=p+22,C=_.firstCreatePass?su(_,y,1,m,null):_.data[y],D=g[y]=function jf(p,m){return p.createText(m)}(g[11],m);Jd(_,g,D,C),Bi(C,!1)}function q0(p){return Ji("",p,""),q0}function Ji(p,m,g){const _=Ee(),y=cu(_,p,m,g);return y!==Vt&&Vo(_,Hn(),y),Ji}function dp(p,m,g,_,y){const C=Ee(),D=du(C,p,m,g,_,y);return D!==Vt&&Vo(C,Hn(),D),dp}function up(p,m,g,_,y,C,D,L,k,V,W){const ee=Ee(),oe=Uc(ee,p,m,g,_,y,C,D,L,k,V,W);return oe!==Vt&&Vo(ee,Hn(),oe),up}function fu(p,m,g){cr(ar,Gs,cu(Ee(),p,m,g),!0)}function ed(p,m,g){const _=Ee();return Un(_,xs(),m)&&Nr(yt(),qi(),_,p,m,_[11],g,!0),ed}function tm(p,m,g){const _=Ee();if(Un(_,xs(),m)){const C=yt(),D=qi();Nr(C,D,_,p,m,El(md(C.data),D,_),g,!0)}return tm}const Zs=void 0;var iS=["en",[["a","p"],["AM","PM"],Zs],[["AM","PM"],Zs,Zs],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zs,"{1} 'at' {0}",Zs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function yw(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let mu={};function P_(p){const m=function Cw(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=ww(m);if(g)return g;const _=m.split("-")[0];if(g=ww(_),g)return g;if("en"===_)return iS;throw new ie(701,!1)}function Mw(p){return P_(p)[Mt.PluralCase]}function ww(p){return p in mu||(mu[p]=ue.ng&&ue.ng.common&&ue.ng.common.locales&&ue.ng.common.locales[p]),mu[p]}var Mt=(()=>((Mt=Mt||{})[Mt.LocaleId=0]="LocaleId",Mt[Mt.DayPeriodsFormat=1]="DayPeriodsFormat",Mt[Mt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Mt[Mt.DaysFormat=3]="DaysFormat",Mt[Mt.DaysStandalone=4]="DaysStandalone",Mt[Mt.MonthsFormat=5]="MonthsFormat",Mt[Mt.MonthsStandalone=6]="MonthsStandalone",Mt[Mt.Eras=7]="Eras",Mt[Mt.FirstDayOfWeek=8]="FirstDayOfWeek",Mt[Mt.WeekendRange=9]="WeekendRange",Mt[Mt.DateFormat=10]="DateFormat",Mt[Mt.TimeFormat=11]="TimeFormat",Mt[Mt.DateTimeFormat=12]="DateTimeFormat",Mt[Mt.NumberSymbols=13]="NumberSymbols",Mt[Mt.NumberFormats=14]="NumberFormats",Mt[Mt.CurrencyCode=15]="CurrencyCode",Mt[Mt.CurrencySymbol=16]="CurrencySymbol",Mt[Mt.CurrencyName=17]="CurrencyName",Mt[Mt.Currencies=18]="Currencies",Mt[Mt.Directionality=19]="Directionality",Mt[Mt.PluralCase=20]="PluralCase",Mt[Mt.ExtraData=21]="ExtraData",Mt))();const qo="en-US";let im=qo;function eb(p,m,g,_,y){if(p=ne(p),Array.isArray(p))for(let C=0;C>20;if(Ho(p)||!p.multi){const fe=new Er(k,y,Bc),xe=Mp(L,m,y?W:W+oe,ee);-1===xe?(Mc(ul(V,D),C,L),Tu(C,p,m.length),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(fe),D.push(fe)):(g[xe]=fe,D[xe]=fe)}else{const fe=Mp(L,m,W+oe,ee),xe=Mp(L,m,W,W+oe),ze=fe>=0&&g[fe],Ze=xe>=0&&g[xe];if(y&&!Ze||!y&&!ze){Mc(ul(V,D),C,L);const at=function nb(p,m,g,_,y){const C=new Er(p,g,Bc);return C.multi=[],C.index=m,C.componentProviders=0,tb(C,y,_&&!g),C}(y?zl:ib,g.length,y,_,k);!y&&Ze&&(g[xe].providerFactory=at),Tu(C,p,m.length,0),m.push(L),V.directiveStart++,V.directiveEnd++,y&&(V.providerIndexes+=1048576),g.push(at),D.push(at)}else Tu(C,p,fe>-1?fe:xe,tb(g[y?xe:fe],k,!y&&_));!y&&_&&Ze&&g[xe].componentProviders++}}}function Tu(p,m,g,_){const y=Ho(m),C=function jd(p){return!!p.useClass}(m);if(y||C){const k=(C?ne(m.useClass):m).prototype.ngOnDestroy;if(k){const V=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=V.indexOf(g);-1===W?V.push(g,[_,k]):V[W+1].push(_,k)}else V.push(g,k)}}}function tb(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Mp(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function ib(p,m,g,_){return mm(this.multi,[])}function zl(p,m,g,_){const y=this.multi;let C;if(this.providerFactory){const D=this.providerFactory.componentProviders,L=Hr(g,g[1],this.providerFactory.index,_);C=L.slice(0,D),mm(y,C);for(let k=D;k{g.providersResolver=(_,y)=>function qw(p,m,g){const _=yt();if(_.firstCreatePass){const y=ir(p);eb(g,_.data,_.blueprint,y,!0),eb(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class jl{}class ab{}function Yw(p,m){return new xu(p,m??null)}class xu extends jl{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new qc(this);const _=Ue(m);this._bootstrapComponents=Po(_.bootstrap),this._r3Injector=eu(m,g,[{provide:jl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],F(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class gm extends ab{constructor(m){super(),this.moduleType=m}create(m){return new xu(this.moduleType,m)}}class sb extends jl{constructor(m,g,_){super(),this.componentFactoryResolver=new qc(this),this.instance=null;const y=new Oy([...m,{provide:jl,useValue:this},{provide:va,useValue:this.componentFactoryResolver}],g||or(),_,new Set(["environment"]));this.injector=y,y.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function _m(p,m,g=null){return new sb(p,m,g).injector}function ub(p,m,g){const _=Nn()+p,y=Ee();return y[_]===Vt?Vr(y,_,g?m.call(g):m()):function Ys(p,m){return p[m]}(y,_)}function hb(p,m,g,_){return nC(Ee(),Nn(),p,m,g,_)}function pb(p,m,g,_,y){return ym(Ee(),Nn(),p,m,g,_,y)}function vp(p,m){const g=p[m];return g===Vt?void 0:g}function nC(p,m,g,_,y,C){const D=m+g;return Un(p,D,y)?Vr(p,D+1,C?_.call(C,y):_(y)):vp(p,D+1)}function ym(p,m,g,_,y,C,D){const L=m+g;return Hl(p,L,y,C)?Vr(p,L+2,D?_.call(D,y,C):_(y,C)):vp(p,L+2)}function td(p,m,g,_,y,C,D,L){const k=m+g;return function sp(p,m,g,_,y){const C=Hl(p,m,g,_);return Un(p,m+2,y)||C}(p,k,y,C,D)?Vr(p,k+3,L?_.call(L,y,C,D):_(y,C,D)):vp(p,k+3)}function gb(p,m){const g=yt();let _;const y=p+22;g.firstCreatePass?(_=function _b(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const C=_.factory||(_.factory=De(_.type)),D=ot(Bc);try{const L=dl(!1),k=C();return dl(L),function J1(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Ee(),y,k),k}finally{ot(D)}}function wm(p,m,g){const _=p+22,y=Ee(),C=mi(y,_);return Su(y,_)?nC(y,Nn(),m,C.transform,g,C):C.transform(g)}function bb(p,m,g,_){const y=p+22,C=Ee(),D=mi(C,y);return Su(C,y)?ym(C,Nn(),m,D.transform,g,_,D):D.transform(g,_)}function Ab(p,m,g,_,y){const C=p+22,D=Ee(),L=mi(D,C);return Su(D,C)?td(D,Nn(),m,L.transform,g,_,y,L):L.transform(g,_,y)}function Su(p,m){return p[1].data[m].pure}function yb(p){return m=>{setTimeout(p,void 0,m)}}const cs=class sC extends w.x{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){let y=m,C=g||(()=>null),D=_;if(m&&"object"==typeof m){var L,k,V;const ee=m;y=null===(L=ee.next)||void 0===L?void 0:L.bind(ee),C=null===(k=ee.error)||void 0===k?void 0:k.bind(ee),D=null===(V=ee.complete)||void 0===V?void 0:V.bind(ee)}this.__isAsync&&(C=yb(C),y&&(y=yb(y)),D&&(D=yb(D)));const W=super.subscribe({next:y,error:C,complete:D});return m instanceof i.w0&&m.add(W),W}};function Tp(){return this._results[Yc()]()}class Wo{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Yc(),_=Wo.prototype;_[g]||(_[g]=Tp)}get changes(){return this._changes||(this._changes=new cs)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=Mr(m);(this._changesDetected=!function Mg(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Mb,p})();const oC=Eu,fS=class extends oC{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m,g){const _=this._declarationTContainer.tViews,y=Zh(this._declarationLView,_,m,16,null,_.declTNode,null,null,null,null,g||null);y[17]=this._declarationLView[this._declarationTContainer.index];const D=this._declarationLView[19];return null!==D&&(y[19]=D.createEmbeddedView(_)),Jh(_,y,m),new ip(y)}};function Mb(){return Du(Ii(),Ee())}function Du(p,m){return 4&p.type?new fS(m,p,ea(p,m)):null}let xp=(()=>{class p{}return p.__NG_ELEMENT_ID__=mS,p})();function mS(){return Tb(Ii(),Ee())}const wb=xp,Cb=class extends wb{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return ea(this._hostTNode,this._hostLView)}get injector(){return new Lr(this._hostTNode,this._hostLView)}get parentInjector(){const m=yc(this._hostTNode,this._hostLView);if(bo(m)){const g=yo(m,this._hostLView),_=Ao(m);return new Lr(g[1].data[_+8],g)}return new Lr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=vb(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){let y,C;"number"==typeof _?y=_:null!=_&&(y=_.index,C=_.injector);const D=m.createEmbeddedView(g||{},C);return this.insert(D,y),D}createComponent(m,g,_,y,C){const D=m&&!function Mo(p){return"function"==typeof p}(m);let L;if(D)L=g;else{const ee=g||{};L=ee.index,_=ee.injector,y=ee.projectableNodes,C=ee.environmentInjector||ee.ngModuleRef}const k=D?m:new np(hi(m)),V=_||this.parentInjector;if(!C&&null==k.ngModule){const oe=(D?V:this.parentInjector).get(Bs,null);oe&&(C=oe)}const W=k.create(V,y,void 0,C);return this.insert(W.hostView,L),W}insert(m,g){const _=m._lView,y=_[1];if(function B(p){return tr(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const ee=_[3],oe=new Cb(ee,ee[6],ee[3]);oe.detach(oe.indexOf(m))}}const C=this._adjustIndex(g),D=this._lContainer;!function Sx(p,m,g,_){const y=10+_,C=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[L/2]);else{const V=C[L+1],W=m[-k];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Gl,this.reject=Gl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{C.subscribe({complete:L,error:k})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Wi(Rp,8))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const Bu=new Si("AppId",{providedIn:"root",factory:function Bm(){return`${Op()}${Op()}${Op()}`}});function Op(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Vm=new Si("Platform Initializer"),Fm=new Si("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ip=new Si("appBootstrapListener"),zm=new Si("AnimationModuleType");let _i=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();const lt=new Si("LocaleId",{providedIn:"root",factory:()=>mh(lt,be.Optional|be.SkipSelf)||function wS(){return typeof $localize<"u"&&$localize.locale||qo}()}),Nu=new Si("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class Bp{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let TS=(()=>{class p{compileModuleSync(g){return new gm(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),C=Po(Ue(g).declarations).reduce((D,L)=>{const k=hi(L);return k&&D.push(new np(k)),D},[]);return new Bp(_,C)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const PC=(()=>Promise.resolve(0))();function Np(p){typeof Zone>"u"?PC.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class jr{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new cs(!1),this.onMicrotaskEmpty=new cs(!1),this.onStable=new cs(!1),this.onError=new cs(!1),typeof Zone>"u")throw new ie(908,!1);Zone.assertZonePatched();const y=this;if(y._nesting=0,y._outer=y._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const C=Zone.AsyncStackTaggingZoneSpec;y._inner=y._inner.fork(new C("Angular"))}Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function jm(){let p=ue.requestAnimationFrame,m=ue.cancelAnimationFrame;if(typeof Zone<"u"&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Vu(p){const m=()=>{!function RC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(ue,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,qm(p),p.isCheckStableRunning=!0,Go(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),qm(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,C,D,L)=>{try{return Zb(p),g.invokeTask(y,C,D,L)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===C.type||p.shouldCoalesceRunChangeDetection)&&m(),zi(p)}},onInvoke:(g,_,y,C,D,L,k)=>{try{return Zb(p),g.invoke(y,C,D,L,k)}finally{p.shouldCoalesceRunChangeDetection&&m(),zi(p)}},onHasTask:(g,_,y,C)=>{g.hasTask(y,C),_===y&&("microTask"==C.change?(p._hasPendingMicrotasks=C.microTask,qm(p),Go(p)):"macroTask"==C.change&&(p.hasPendingMacrotasks=C.macroTask))},onHandleError:(g,_,y,C)=>(g.handleError(y,C),p.runOutsideAngular(()=>p.onError.emit(C)),!1)})}(y)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jr.isInAngularZone())throw new ie(909,!1)}static assertNotInAngularZone(){if(jr.isInAngularZone())throw new ie(909,!1)}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const C=this._inner,D=C.scheduleEventTask("NgZoneEvent: "+y,m,kC,Gl,Gl);try{return C.runTask(D,g,_)}finally{C.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const kC={};function Go(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function qm(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Zb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function zi(p){p._nesting--,Go(p)}class OC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new cs,this.onMicrotaskEmpty=new cs,this.onStable=new cs,this.onError=new cs}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}const Cn=new Si(""),Jb=new Si("");let Ym,Xb=(()=>{class p{constructor(g,_,y){this._ngZone=g,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Ym||(function BC(p){Ym=p}(y),y.addToWindow(_)),this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{jr.assertNotInAngularZone(),Np(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Np(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let C=-1;_&&_>0&&(C=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==C),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:C,updateCb:y})}whenStable(g,_,y){if(y&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(g){this.registry.registerApplication(g,this)}unregisterApplication(g){this.registry.unregisterApplication(g)}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Wi(jr),Wi(IC),Wi(Jb))},p.\u0275prov=si({token:p,factory:p.\u0275fac}),p})(),IC=(()=>{class p{constructor(){this._applications=new Map}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){var y,C;return null!==(y=null===(C=Ym)||void 0===C?void 0:C.findTestabilityInTree(this,g,_))&&void 0!==y?y:null}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})(),$o=null;const Qb=new Si("AllowMultipleToken"),Oi=new Si("PlatformDestroyListeners");class hn{constructor(m,g){this.name=m,this.token=g}}function VC(p,m,g=[]){const _=`Platform: ${m}`,y=new Si(_);return(C=[])=>{let D=eA();if(!D||D.injector.get(Qb,!1)){const L=[...g,...C,{provide:y,useValue:!0}];p?p(L):function NC(p){if($o&&!$o.get(Qb,!1))throw new ie(400,!1);$o=p;const m=p.get(zC);(function Kb(p){const m=p.get(Vm,null);m&&m.forEach(g=>g())})(p)}(function FC(p=[],m){return rs.create({name:m,providers:[{provide:qd,useValue:"platform"},{provide:Oi,useValue:new Set([()=>$o=null])},...p]})}(L,_))}return function ES(p){const m=eA();if(!m)throw new ie(401,!1);return m}()}}function eA(){var p,m;return null!==(p=null===(m=$o)||void 0===m?void 0:m.get(zC))&&void 0!==p?p:null}let zC=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const y=function DS(p,m){let g;return g="noop"===p?new OC:("zone.js"===p?void 0:p)||new jr(m),g}(_?.ngZone,function jC(p){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!p||!p.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!p||!p.ngZoneRunCoalescing)||!1}}(_)),C=[{provide:jr,useValue:y}];return y.run(()=>{const D=rs.create({providers:C,parent:this.injector,name:g.moduleType.name}),L=g.create(D),k=L.injector.get(Ph,null);if(!k)throw new ie(402,!1);return y.runOutsideAngular(()=>{const V=y.onError.subscribe({next:W=>{k.handleError(W)}});L.onDestroy(()=>{Fp(this._modules,L),V.unsubscribe()})}),function qC(p,m,g){try{const _=g();return pu(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(k,y,()=>{const V=L.injector.get(Iu);return V.runInitializers(),V.donePromise.then(()=>(function fp(p){ai(p,"Expected localeId to be defined"),"string"==typeof p&&(im=p.toLowerCase().replace(/_/g,"-"))}(L.injector.get(lt,qo)||qo),this._moduleDoBootstrap(L),L))})})}bootstrapModule(g,_=[]){const y=YC({},_);return function SS(p,m,g){const _=new gm(g);return Promise.resolve(_)}(0,0,g).then(C=>this.bootstrapModuleFactory(C,y))}_moduleDoBootstrap(g){const _=g.injector.get(Wm);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ie(403,!1);g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const g=this._injector.get(Oi,null);g&&(g.forEach(_=>_()),g.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Wi(rs))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"platform"}),p})();function YC(p,m){return Array.isArray(m)?m.reduce(YC,p):{...p,...m}}let Wm=(()=>{class p{constructor(g,_,y){this._zone=g,this._injector=_,this._exceptionHandler=y,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const C=new E.y(L=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{L.next(this._stable),L.complete()})}),D=new E.y(L=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{jr.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,L.next(!0))})})});const V=this._zone.onUnstable.subscribe(()=>{jr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{L.next(!1)}))});return()=>{k.unsubscribe(),V.unsubscribe()}});this.isStable=(0,x.T)(C,D.pipe((0,S.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(g,_){const y=g instanceof Ny;if(!this._injector.get(Iu).done)throw!y&&Wl(g),new ie(405,false);let D;D=y?g:this._injector.get(va).resolveComponentFactory(g),this.componentTypes.push(D.componentType);const L=function vn(p){return p.isBoundToModule}(D)?void 0:this._injector.get(jl),V=D.create(rs.NULL,[],_||D.selector,L),W=V.location.nativeElement,ee=V.injector.get(Cn,null);return ee?.registerApplication(W),V.onDestroy(()=>{this.detachView(V.hostView),Fp(this.components,V),ee?.unregisterApplication(W)}),this._loadComponent(V),V}tick(){if(this._runningTick)throw new ie(101,!1);try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;Fp(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Ip,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(g=>g()),this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(g){return this._destroyListeners.push(g),()=>Fp(this._destroyListeners,g)}destroy(){if(this._destroyed)throw new ie(406,!1);const g=this._injector;g.destroy&&!g.destroyed&&g.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return p.\u0275fac=function(g){return new(g||p)(Wi(jr),Wi(Bs),Wi(Ph))},p.\u0275prov=si({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();function Fp(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let UC=!0;function HS(){UC=!1}let ZC=(()=>{class p{}return p.__NG_ELEMENT_ID__=JC,p})();function JC(p){return function kS(p,m,g){if(Ya(p)&&!g){const _=li(p.index,m);return new ip(_,_)}return 47&p.type?new ip(m[16],m):null}(Ii(),Ee(),16==(16&p))}class ev{constructor(){}supports(m){return ap(m)}create(m){return new VS(m)}}const nA=(p,m)=>m;class VS{constructor(m){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=m||nA}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,C=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,L),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,L,D,y)),Object.is(g.item,L)||this._addIdentityChange(g,L)):(g=this._mismatch(g,L,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let C;return null===m?C=this._itTail:(C=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,C,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,C,y)):m=this._addAfter(new tv(g,_),C,y),m}_verifyReinsertion(m,g,_,y){let C=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==C?m=this._reinsertAfter(C,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,C=m._nextRemoved;return null===y?this._removalsHead=C:y._nextRemoved=C,null===C?this._removalsTail=y:C._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new iv),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iv),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class tv{constructor(m,g){this.item=m,this.trackById=g,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class FS{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class iv{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new FS,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rA(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const C=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,C)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const C=y._prev,D=y._next;return C&&(C._next=D),D&&(D._prev=C),y._next=null,y._prev=null,y}const _=new rv(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class rv{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function av(){return new aA([new ev])}let aA=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||av()),deps:[[p,new Co,new wl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:av}),p})();function sv(){return new sA([new Gm])}let sA=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||sv()),deps:[[p,new Co,new wl]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(_)return _;throw new ie(901,!1)}}return p.\u0275prov=si({token:p,providedIn:"root",factory:sv}),p})();const qS=VC(null,"core",[]);let YS=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Wi(Wm))},p.\u0275mod=xr({type:p}),p.\u0275inj=Ci({}),p})();function WS(p){return"boolean"==typeof p?p:null!=p&&"false"!==p}},1214:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Ct:()=>OAuthService,Hy:()=>OAuthStorage,zr:()=>OAuthModule});var _home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5861),_angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4650),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6895),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(529),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(7579),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2076),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(102),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(2843),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(9841),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6451),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8505),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1005),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(590),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(5577),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class j extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return j.\u0275fac=function(){let Y;return function(w){return(Y||(Y=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(j)))(w||j)}}(),j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class j{constructor(){this.data=new Map}getItem(T){return this.data.get(T)}removeItem(T){this.data.delete(T)}setItem(T,w){this.data.set(T,w)}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class ReceivedTokens{}class OAuthEvent{constructor(Y){this.type=Y}}class OAuthSuccessEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthInfoEvent extends OAuthEvent{constructor(Y,T=null){super(Y),this.info=T}}class OAuthErrorEvent extends OAuthEvent{constructor(Y,T,w=null){super(Y),this.reason=T,this.params=w}}function b64DecodeUnicode(j){const Y=j.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(Y).split("").map(function(T){return"%"+("00"+T.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(j){return btoa(j).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(Y){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=T=>{location.href=T},Y&&Object.assign(this,Y)}}class WebHttpUrlEncodingCodec{encodeKey(Y){return encodeURIComponent(Y)}encodeValue(Y){return encodeURIComponent(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(Y){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){let w=T.inferHashAlgorithm(Y.idTokenHeader),i=yield T.calcHash(Y.accessToken,w),x=base64UrlEncode(i.substr(0,i.length/2)),S=Y.idTokenClaims.at_hash.replace(/=/g,"");return x!==S&&(console.error("exptected at_hash: "+x),console.error("actual at_hash: "+S)),x===S})()}inferHashAlgorithm(Y){let T=Y.alg;if(!T.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+T);return"sha-"+T.substr(2)}}let UrlHelperService=(()=>{class j{getHashFragmentParams(T){let w=T||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(T){const w={};let i,E,x,S,P,R,F;if(null===T)return w;i=T.split("&");for(let q=0;q>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&j.charCodeAt(++w)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);j=E}else{if("object"!==i)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR)}j.length>64&&(j=new Sha256(Y,!0).update(j).array());var R=[],F=[];for(w=0;w<64;++w){var q=j[w]||0;R[w]=92^q,F[w]=54^q}Sha256.call(this,Y,T),this.update(F),this.oKeyPad=R,this.inner=!0,this.sharedMemory=T}Sha256.prototype.update=function(j){if(!this.finalized){var Y,T=typeof j;if("string"!==T){if("object"!==T)throw new Error(ERROR);if(null===j)throw new Error(ERROR);if(ARRAY_BUFFER&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!(Array.isArray(j)||ARRAY_BUFFER&&ArrayBuffer.isView(j)))throw new Error(ERROR);Y=!0}for(var w,E,i=0,x=j.length,S=this.blocks;i>2]|=j[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var j=this.blocks,Y=this.lastByteIndex;j[16]=this.block,j[Y>>2]|=EXTRA[3&Y],this.block=j[16],Y>=56&&(this.hashed||this.hash(),j[0]=this.block,j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0),j[14]=this.hBytes<<3|this.bytes>>>29,j[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var R,X,ae,ie,ge,Ae,j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=this.blocks;for(R=16;R<64;++R)P[R]=P[R-16]+(((X=P[R-15])>>>7|X<<25)^(X>>>18|X<<14)^X>>>3)+P[R-7]+(((X=P[R-2])>>>17|X<<15)^(X>>>19|X<<13)^X>>>10)<<0;for(Ae=Y&T,R=0;R<64;R+=4)this.first?(this.is224?(ae=300032,S=(X=P[0]-1413257819)-150054599<<0,w=X+24177077<<0):(ae=704751109,S=(X=P[0]-210244248)-1521486534<<0,w=X+143694565<<0),this.first=!1):(S=w+(X=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&x)+K[R]+P[R])<<0,w=X+(((j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10))+((ae=j&Y)^j&T^Ae))<<0),x=T+(X=x+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+P[R+1])<<0,T=X+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ie=w&j)^w&Y^ae))<<0,E=Y+(X=E+((x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7))+(x&S^~x&i)+K[R+2]+P[R+2])<<0,Y=X+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ge=T&w)^T&j^ie))<<0,i=j+(X=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&x^~E&S)+K[R+3]+P[R+3])<<0,j=X+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((Ae=Y&T)^Y&w^ge))<<0;this.h0=this.h0+j<<0,this.h1=this.h1+Y<<0,this.h2=this.h2+T<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+x<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j]+HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var j=this.h0,Y=this.h1,T=this.h2,w=this.h3,i=this.h4,E=this.h5,x=this.h6,S=this.h7,P=[j>>24&255,j>>16&255,j>>8&255,255&j,Y>>24&255,Y>>16&255,Y>>8&255,255&Y,T>>24&255,T>>16&255,T>>8&255,255&T,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,x>>24&255,x>>16&255,x>>8&255,255&x];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var j=new ArrayBuffer(this.is224?28:32),Y=new DataView(j);return Y.setUint32(0,this.h0),Y.setUint32(4,this.h1),Y.setUint32(8,this.h2),Y.setUint32(12,this.h3),Y.setUint32(16,this.h4),Y.setUint32(20,this.h5),Y.setUint32(24,this.h6),this.is224||Y.setUint32(28,this.h7),j},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var j=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(j),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(j){if("string"!=typeof j)throw new TypeError("expected string");var Y,T=j,w=new Uint8Array(T.length);for(Y=0;Y{class j{calcHash(T,w){return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(T)))})()}toHashString2(T){let w="";for(let i of T)w+=String.fromCharCode(i);return w}toHashString(T){const w=new Uint8Array(T);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})(),OAuthService=(()=>{class j extends AuthConfig{constructor(T,w,i,E,x,S,P,R,F,q){super(),this.ngZone=T,this.http=w,this.config=x,this.urlHelper=S,this.logger=P,this.crypto=R,this.dateTimeService=q,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.x,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=F,x||(x={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),x&&this.configure(x);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(ne){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",ne)}if(this.checkLocalStorageAccessable()){var J,X;const ne=null===(J=window)||void 0===J||null===(X=J.navigator)||void 0===X?void 0:X.userAgent;(ne?.includes("MSIE ")||ne?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;const T="test";try{return!(typeof window.localStorage>"u"||(localStorage.setItem(T,T),localStorage.removeItem(T),0))}catch{return!1}}configure(T){Object.assign(this,new AuthConfig,T),this.config=Object.assign({},new AuthConfig,T),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(T={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(x=>{"token_received"===x.type?E=!0:"logout"===x.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_expires"===x.type&&(null==w||"any"===w||x.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(x=>{E&&this.refreshInternal(T,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(T,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(T,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(T=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(T))}loadDiscoveryDocumentAndLogin(T=null){return this.loadDiscoveryDocumentAndTryLogin(T=T||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof T.state?T.state:""),!1))}debug(...T){this.showDebugInformation&&this.logger.debug.apply(this.logger,T)}validateUrlFromDiscoveryDocument(T){const w=[],i=this.validateUrlForHttps(T),E=this.validateUrlAgainstIssuer(T);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(T){if(!T)return!0;const w=T.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(T,w){if(!T)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(T))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(T){return!this.strictDiscoveryDocumentValidation||!T||T.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){typeof window>"u"?this.debug("timer not supported on this plattform"):((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type)).subscribe(T=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()}))}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const T=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,T);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const T=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,T);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(T,w){const i=this.dateTimeService.now();return Math.max(0,(w-T)*this.timeoutFactor-(i-T))}setStorage(T){this._storage=T,this.configChanged()}loadDiscoveryDocument(T=null){return new Promise((w,i)=>{T||((T=this.issuer||"").endsWith("/")||(T+="/"),T+=".well-known/openid-configuration"),this.validateUrlForHttps(T)?this.http.get(T).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(x=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:x});this.eventsSubject.next(P),w(P)}).catch(x=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",x)),i(x)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((T,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),T(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):T(null)})}validateDiscoveryDocument(T){let w;return this.skipIssuerCheck||T.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(T.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(T.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(T.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!T.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+T.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(T,w,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((T,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let x=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||x.sub!==S.sub))return void w("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");x=Object.assign({},S,x),this._storage.setItem("id_token_claims_obj",JSON.stringify(x)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T({info:x})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),T(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:T,password:w},i)}fetchTokenUsingGrant(T,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",T).set("scope",this.scope);if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(x,this.customQueryParams[x]);for(const x of Object.keys(w))E=E.set(x,w[x]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((x,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(R=>{this.storeIdToken(R),x(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),x(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((T,w)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const x=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+x)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const x of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(x,this.customQueryParams[x]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(x=>x.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(x.id_token,x.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>x)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(x))).subscribe(x=>{this.debug("refresh tokenResponse",x),this.storeAccessTokenResponse(x.access_token,x.refresh_token,x.expires_in||this.fallbackAccessTokenExpirationTimeInSec,x.scope,this.extractRecognizedCustomParameters(x)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),T(x)},x=>{this.logger.error("Error refreshing token",x),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",x)),w(x)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=T=>{const w=this.processMessageEventMessage(T);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(T={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(T.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const x=this.document.createElement("iframe");x.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,T).then(q=>{x.setAttribute("src",q),this.silentRefreshShowIFrame||(x.style.display="none"),this.document.body.appendChild(x)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>q instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(q=>"token_received"===q.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S)([P,R,F]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(q=>{if(q instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===q.type||(q=new OAuthErrorEvent("silent_refresh_error",q)),this.eventsSubject.next(q),q;return"token_received"===q.type&&(q=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(q)),q})).toPromise()}initImplicitFlowInPopup(T){return this.initLoginFlowInPopup(T)}initLoginFlowInPopup(T){return T=T||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let P,S=null;T.windowRef?T.windowRef&&!T.windowRef.closed&&(S=T.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(T));const R=ne=>{this.tryLogin({customHashFragment:ne,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{q(),i(!0)},le=>{q(),E(le)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(q(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const q=()=>{window.clearInterval(P),window.removeEventListener("storage",X),window.removeEventListener("message",J),null!==S&&S.close(),S=null},J=ne=>{const le=this.processMessageEventMessage(ne);le&&null!==le?(window.removeEventListener("storage",X),R(le)):console.log("false event firing")},X=ne=>{"auth_hash"===ne.key&&(window.removeEventListener("message",J),R(ne.newValue))};window.addEventListener("message",J),window.addEventListener("storage",X)}))}calculatePopupFeatures(T){const w=T.height||470,i=T.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(T){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!T||!T.data||"string"!=typeof T.data)return;const i=T.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!(!this.sessionChecksEnabled||(this.sessionCheckIFrameUrl?this.getSessionState()?typeof this.document>"u":(console.warn("sessionChecksEnabled is activated but there is no session_state"),1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),1)))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=T=>{const w=T.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(T.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",T)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",T)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(T=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(T=>{this.debug("token refresh after session change worked")}).catch(T=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"silently_refreshed"===T.type||"silent_refresh_timeout"===T.type||"silent_refresh_error"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(T=>{"silently_refreshed"!==T.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const T=this.document.getElementById(this.sessionCheckIFrameName);T&&this.document.body.removeChild(T);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const T=this.document.getElementById(this.sessionCheckIFrameName);T||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),T.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(T="",w="",i="",E=!1,x={}){var S=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const P=S;let R;R=i||S.redirectUri;const F=yield S.createAndSaveNonce();if(T=T?F+S.config.nonceStateSeparator+encodeURIComponent(T):F,!S.requestAccessToken&&!S.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");S.responseType=S.config.responseType?S.config.responseType:S.oidc&&S.requestAccessToken?"id_token token":S.oidc&&!S.requestAccessToken?"id_token":"token";const q=P.loginUrl.indexOf("?")>-1?"&":"?";let J=P.scope;S.oidc&&!J.match(/(^|\s)openid($|\s)/)&&(J="openid "+J);let X=P.loginUrl+q+"response_type="+encodeURIComponent(P.responseType)+"&client_id="+encodeURIComponent(P.clientId)+"&state="+encodeURIComponent(T)+"&redirect_uri="+encodeURIComponent(R)+"&scope="+encodeURIComponent(J);if(S.responseType.includes("code")&&!S.disablePKCE){const[ne,le]=yield S.createChallangeVerifierPairForPKCE();S.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",le):S._storage.setItem("PKCE_verifier",le),X+="&code_challenge="+ne,X+="&code_challenge_method=S256"}w&&(X+="&login_hint="+encodeURIComponent(w)),P.resource&&(X+="&resource="+encodeURIComponent(P.resource)),P.oidc&&(X+="&nonce="+encodeURIComponent(F)),E&&(X+="&prompt=none");for(const ne of Object.keys(x))X+="&"+encodeURIComponent(ne)+"="+encodeURIComponent(x[ne]);if(S.customQueryParams)for(const ne of Object.getOwnPropertyNames(S.customQueryParams))X+="&"+ne+"="+encodeURIComponent(S.customQueryParams[ne]);return X})()}initImplicitFlowInternal(T="",w=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initImplicitFlow",x),this.inImplicitFlow=!1})}initImplicitFlow(T="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(T,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(T,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(T){const w=this;if(T.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};T.onTokenReceived(i)}}storeAccessTokenResponse(T,w,i,E,x){if(this._storage.setItem("access_token",T),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,R=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+R)}w&&this._storage.setItem("refresh_token",w),x&&x.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(T=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(T).then(w=>!0):this.tryLoginImplicitFlow(T)}parseQueryString(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):{}}tryLoginCodeFlow(T=null){var w=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){const i=(T=T||{}).customHashFragment?T.customHashFragment.substring(1):window.location.search,E=w.getCodePartsFromUrl(i),x=E.code,S=E.state,P=E.session_state;if(!T.preventClearHashAfterLogin){const q=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,q)}let[R,F]=w.parseState(S);if(w.state=F,E.error){w.debug("error trying to login"),w.handleLoginError(T,E);const q=new OAuthErrorEvent("code_error",{},E);return w.eventsSubject.next(q),Promise.reject(q)}if(!T.disableNonceCheck){if(!R)return w.saveRequestedRoute(),Promise.resolve();if(!T.disableOAuth2StateCheck&&!w.validateNonce(R)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return w.eventsSubject.next(J),Promise.reject(J)}return w.storeSessionState(P),x&&(yield w.getTokenFromCode(x,T),w.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})()}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const T=this._storage.getItem("requested_route");T&&history.replaceState(null,"",window.location.origin+T)}getCodePartsFromUrl(T){return T&&0!==T.length?("?"===T.charAt(0)&&(T=T.substr(1)),this.urlHelper.parseQueryString(T)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(T,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",T).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(T,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(T=T.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(T=T.set("client_secret",this.dummyClientSecret)),new Promise((E,x)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))T=T.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,T,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),x(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),x(S)})})}tryLoginImplicitFlow(T=null){let w;w=(T=T||{}).customHashFragment?this.urlHelper.getHashFragmentParams(T.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,x]=this.parseState(i);if(this.state=x,w.error){this.debug("error trying to login"),this.handleLoginError(T,w);const q=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(q),Promise.reject(q)}const S=w.access_token,P=w.id_token,R=w.session_state,F=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!T.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!R&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!T.disableNonceCheck&&!this.validateNonce(E)){const J=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(J),Promise.reject(J)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,F),this.oidc?this.processIdToken(P,S,T.disableNonceCheck).then(q=>T.validationHandler?T.validationHandler({accessToken:S,idClaims:q.idTokenClaims,idToken:q.idToken,state:i}).then(J=>q):q).then(q=>(this.storeIdToken(q),this.storeSessionState(R),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(T),this.inImplicitFlow=!1,!0)).catch(q=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",q)),this.logger.error("Error validating tokens"),this.logger.error(q),Promise.reject(q))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(T),Promise.resolve(!0))}parseState(T){let w=T,i="";if(T){const E=T.indexOf(this.config.nonceStateSeparator);E>-1&&(w=T.substr(0,E),i=T.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(T){let w;return w=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===T||(console.error("Validating access_token failed, wrong state/nonce.",w,T),!1)}storeIdToken(T){this._storage.setItem("id_token",T.idToken),this._storage.setItem("id_token_claims_obj",T.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+T.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(T){this._storage.setItem("session_state",T)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(T,w){T.onLoginError&&T.onLoginError(w),this.clearHashAfterLogin&&!T.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(T=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:T}processIdToken(T,w,i=!1){const E=T.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),F=b64DecodeUnicode(this.padBase64(E[1])),q=JSON.parse(F);let J;if(J=this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(q.aud)){if(q.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+q.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(q.aud!==this.clientId){const ge="Wrong audience: "+q.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!q.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==q.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${q.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!q.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&q.iss!==this.issuer){const ge="Wrong issuer: "+q.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!i&&q.nonce!==J){const ge="Wrong nonce: "+q.nonce;return this.logger.warn(ge),Promise.reject(ge)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!q.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const X=this.dateTimeService.now(),ne=1e3*q.iat,le=1e3*q.exp,ae=this.getClockSkewInMsec();if(ne-ae>=X||le+ae<=X){const ge="Token has expired";return console.error(ge),console.error({now:X,issuedAtMSec:ne,expiresAtMSec:le}),Promise.reject(ge)}const ie={accessToken:w,idToken:T,jwks:this.jwks,idTokenClaims:q,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(ge=>({idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le})):this.checkAtHash(ie).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const Ae="Wrong at_hash";return this.logger.warn(Ae),Promise.reject(Ae)}return this.checkSignature(ie).then(Ae=>{const Xe={idToken:T,idTokenClaims:q,idTokenClaimsJson:F,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:le};return this.disableAtHashCheck?Xe:this.checkAtHash(ie).then(Qe=>{if(this.requestAccessToken&&!Qe){const He="Wrong at_hash";return this.logger.warn(He),Promise.reject(He)}return Xe})})})}getIdentityClaims(){const T=this._storage.getItem("id_token_claims_obj");return T?JSON.parse(T):null}getGrantedScopes(){const T=this._storage.getItem("granted_scopes");return T?JSON.parse(T):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(T){for(;T.length%4!=0;)T+="=";return T}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const T=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(T&&parseInt(T,10)=0&&null!==this._storage.getItem(T)?JSON.parse(this._storage.getItem(T)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(T={},w=""){let i=!1;"boolean"==typeof T&&(i=T,T={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let x;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)x=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),w&&(S=S.set("state",w)));for(let R in T)S=S.set(R,T[R]);x=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(x)}createAndSaveNonce(){const T=this;return this.createNonce().then(function(w){return T.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",w):T._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const T=this.document.getElementById(this.silentRefreshIFrameName);T&&T.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(T=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const x=typeof self>"u"?null:self.crypto||self.msCrypto;if(x){let S=new Uint8Array(i);x.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>w.charCodeAt(P%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(T,w))}initCodeFlowInternal(T="",w={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(T,E,null,!1,i).then(this.config.openUri).catch(x=>{console.error("Error in initAuthorizationCodeFlow"),console.error(x)})}createChallangeVerifierPairForPKCE(){var T=this;return(0,_home_runner_work_perun_web_apps_perun_web_apps_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__.Z)(function*(){if(!T.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const w=yield T.createNonce();return[base64UrlEncode(yield T.crypto.calcHash(w,"sha-256")),w]})()}extractRecognizedCustomParameters(T){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{T[i]&&w.set(i,JSON.stringify(T[i]))}),w}revokeTokenAndLogout(T={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),x=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const R=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+R)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const R of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(R,this.customQueryParams[R]);return new Promise((R,F)=>{let q,J;if(E){let X=S.set("token",E).set("token_type_hint","access_token");q=this.http.post(i,X,{headers:P})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(x){let X=S.set("token",x).set("token_type_hint","refresh_token");J=this.http.post(i,X,{headers:P})}else J=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(X=>0===X.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(X))),J=J.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(X=>0===X.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(X)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.a)([q,J]).subscribe(X=>{this.logOut(T),R(X),this.logger.info("Token successfully revoked")},X=>{this.logger.error("Error revoking token",X),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",X)),F(X)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return j.\u0275fac=function(T){return new(T||j)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(Y){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(Y)}}let DefaultOAuthInterceptor=(()=>{class j{constructor(T,w,i){this.oAuthService=T,this.errorHandler=w,this.moduleConfig=i}checkUrl(T){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(T):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>T.toLowerCase().startsWith(w.toLowerCase()))}intercept(T,w){const i=T.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>!!x)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(x=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.z)(x=>{if(x){const P=T.headers.set("Authorization","Bearer "+x);T=T.clone({headers:P})}return w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(T).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(x=>this.errorHandler.handleError(x))):w.handle(T)}}return j.\u0275fac=function(T){return new(T||j)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},j.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:j,factory:j.\u0275fac}),j})();class NullValidationHandler{validateSignature(Y){return Promise.resolve(null)}validateAtHash(Y){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return typeof sessionStorage<"u"?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class j{static forRoot(T=null,w=NullValidationHandler){return{ngModule:j,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:T},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return j.\u0275fac=function(T){return new(T||j)},j.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:j}),j.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),j})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},5861:(j,Y,T)=>{"use strict";function w(E,x,S,P,R,F,q){try{var J=E[F](q),X=J.value}catch(ne){return void S(ne)}J.done?x(X):Promise.resolve(X).then(P,R)}function i(E){return function(){var x=this,S=arguments;return new Promise(function(P,R){var F=E.apply(x,S);function q(X){w(F,P,R,q,J,"next",X)}function J(X){w(F,P,R,q,J,"throw",X)}q(void 0)})}}T.d(Y,{Z:()=>i})},1128:j=>{"use strict";j.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:j=>{"use strict";j.exports={i8:"9.3.0"}}},j=>{j(j.s=1573)}]); \ No newline at end of file